You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1179 lines
2.4 MiB
1179 lines
2.4 MiB
!(function(){var aP=Object.defineProperty,sP=Object.defineProperties;var lP=Object.getOwnPropertyDescriptors;var ev=Object.getOwnPropertySymbols;var Sx=Object.prototype.hasOwnProperty,xx=Object.prototype.propertyIsEnumerable;var yx=(cn,Jt,Pe)=>Jt in cn?aP(cn,Jt,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):cn[Jt]=Pe,bd=(cn,Jt)=>{for(var Pe in Jt||(Jt={}))Sx.call(Jt,Pe)&&yx(cn,Pe,Jt[Pe]);if(ev)for(var Pe of ev(Jt))xx.call(Jt,Pe)&&yx(cn,Pe,Jt[Pe]);return cn},Xy=(cn,Jt)=>sP(cn,lP(Jt));var Px=(cn,Jt)=>{var Pe={};for(var me in cn)Sx.call(cn,me)&&Jt.indexOf(me)<0&&(Pe[me]=cn[me]);if(cn!=null&&ev)for(var me of ev(cn))Jt.indexOf(me)<0&&xx.call(cn,me)&&(Pe[me]=cn[me]);return Pe};(self.webpackChunk=self.webpackChunk||[]).push([[5825],{8336:function(){"use strict"},12469:function(){"use strict"},99587:function(cn,Jt){"use strict";Jt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},98737:function(cn,Jt){"use strict";Jt.Z={flex_box_center:"flex_box_center___iyIe6",flex_space_between:"flex_space_between___g2WjG",flex_box_vertical_center:"flex_box_vertical_center___Tde0v",flex_box_center_end:"flex_box_center_end___W1D5W",flex_box_column:"flex_box_column___ZiFvs",bg:"bg___T2R2s",containerTitle:"containerTitle___yARn_",containerDesc:"containerDesc___fKSYF",menus:"menus___e8wtg",listItem:"listItem___s7xhg",info:"info___Hx2bW",title:"title___W7a1R",titleLeft:"titleLeft___C5r0w",titleRight:"titleRight___g5GZv",acitons:"acitons___H0RU0",move:"move___qYkSy",hideHeadCheckbox:"hideHeadCheckbox___Hq5gw",moveCategory:"moveCategory___bZSGQ",tabSearch:"tabSearch___NaKI4",warpModal:"warpModal___HLUgh",modalColumn:"modalColumn___F7R5w",modalRow:"modalRow___L6ghw",sup:"sup___VGKXV",name:"name___QMvgh"}},22982:function(cn,Jt){"use strict";Jt.Z={flex_box_center:"flex_box_center___IBr6x",flex_space_between:"flex_space_between___n2Iz0",flex_box_vertical_center:"flex_box_vertical_center___1umwO",flex_box_center_end:"flex_box_center_end___SRZYb",flex_box_column:"flex_box_column___b90Da",form:"form___V3fAH",title_icon:"title_icon____uDZy",title:"title___RxKwK",content:"content___vFT5m",pubColSty:"pubColSty___dfLkL",selectSty:"selectSty____Wuek",borderSty:"borderSty___EuFYV",delSty:"delSty___AdEeI",delBorder:"delBorder___vcTJc",copHover:"copHover___JVVXI",multiple_select:"multiple_select___ZMPhl",work_checkbox_group:"work_checkbox_group___sGLxY"}},19493:function(cn,Jt){"use strict";Jt.Z={flex_box_center:"flex_box_center___SF0m3",flex_space_between:"flex_space_between___ChLjp",flex_box_vertical_center:"flex_box_vertical_center____l_EF",flex_box_center_end:"flex_box_center_end___YcZNu",flex_box_column:"flex_box_column___R9dNq",downloadbutton:"downloadbutton___oEXJW",configWorkContainer:"configWorkContainer___CHUrh"}},12327:function(cn,Jt,Pe){"use strict";var me=Pe(59301),Ve=Object.defineProperty,ut=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,ze=(ot,Me,Et)=>Me in ot?Ve(ot,Me,{enumerable:!0,configurable:!0,writable:!0,value:Et}):ot[Me]=Et,Ue=(ot,Me)=>{for(var Et in Me||(Me={}))nt.call(Me,Et)&&ze(ot,Et,Me[Et]);if(ut)for(var Et of ut(Me))it.call(Me,Et)&&ze(ot,Et,Me[Et]);return ot};const yt=ot=>React.createElement("svg",Ue({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},ot),React.createElement("title",null,"\u7F16\u7EC4 18"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("circle",{fill:"#FCB041",cx:7,cy:7,r:7}),React.createElement("path",{d:"M7.531 9.638a.616.616 0 1 1-1.231 0v-.02a.616.616 0 1 1 1.231 0v.02Zm0-2.25a.616.616 0 1 1-1.231 0V4.117a.616.616 0 1 1 1.231 0v3.273Z",fill:"#FFF",fillRule:"nonzero"})));Jt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},63720:function(){"use strict";function cn(Ee,ne,ee,ue){ee===void 0&&(ee=0),ue===void 0&&(ue=1/0),this._name=Ee,this._defaultValue=ne,this._minimum=ee,this._maximum=ue}Object.defineProperty(cn.prototype,"name",{get:function(){return this._name},set:function(Ee){if(typeof Ee!="string"||Ee==="")throw new Error("Shape name must be a valid string.");this._name=Ee}}),Object.defineProperty(cn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Ee){if(typeof Ee!="number"||isNaN(Ee))throw new Error("The default value must be a real number, not: "+Ee);this._defaultValue=Ee}}),Object.defineProperty(cn.prototype,"minimum",{get:function(){return this._minimum},set:function(Ee){if(typeof Ee!="number"||isNaN(Ee))throw new Error("Minimum must be a real number, not: "+Ee);this._minimum=Ee}}),Object.defineProperty(cn.prototype,"maximum",{get:function(){return this._maximum},set:function(Ee){if(typeof Ee!="number"||isNaN(Ee))throw new Error("Maximum must be a real number, not: "+Ee);this._maximum=Ee}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Ee,ne){var ee=go.Shape._FigureParameters[Ee];return ee?ee[ne]:null},go.Shape.setFigureParameter=function(Ee,ne,ee){if(!(ee instanceof cn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+ee);if(ee.defaultValue<ee.minimum||ee.defaultValue>ee.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+ee.defaultValue);var ue=go.Shape._FigureParameters[Ee];ue||(ue=[],go.Shape._FigureParameters[Ee]=ue),ue[ne]=ee};var Jt=[];function Pe(Ee,ne){var ee=Jt.pop();return ee===void 0?new go.Point(Ee,ne):(ee.x=Ee,ee.y=ne,ee)}function me(){var Ee=Jt.pop();return Ee===void 0?new go.Point:Ee}function Ve(Ee){Jt.push(Ee)}function ut(Ee,ne,ee,ue,se,de,pe,ye,Ce){Ce||(Ce=new go.Point);var Re=Ee-ee,Oe=se-pe,We=NaN,Be=NaN;if(Re===0)if(Oe===0)Ee===ee&&(We=Ee,Be=ne);else{var Ie=(de-ye)/Oe,Qe=de-Ie*se;We=Ee,Be=Ie*We+Qe}else if(Oe===0){var rt=(ne-ue)/Re,xt=ne-rt*Ee;We=se,Be=rt*We+xt}else{var rt=(ne-ue)/Re,Ie=(de-ye)/Oe,xt=ne-rt*Ee,Qe=de-Ie*se;We=(Qe-xt)/(rt-Ie),Be=rt*We+xt}return Ce.x=We,Ce.y=Be,Ce}function nt(Ee,ne,ee,ue,se,de,pe,ye,Ce,Re,Oe,We,Be,Ie){var Qe=1-Ce,rt=Ce,xt=Ee*Qe+ee*rt,gt=ne*Qe+ue*rt,bt=ee*Qe+se*rt,At=ue*Qe+de*rt,Tt=se*Qe+pe*rt,Nt=de*Qe+ye*rt,Ut=xt*Qe+bt*rt,st=gt*Qe+At*rt,He=bt*Qe+Tt*rt,jt=At*Qe+Nt*rt,fn=Ut*Qe+He*rt,Bt=st*Qe+jt*rt;Re.x=xt,Re.y=gt,Oe.x=Ut,Oe.y=st,We.x=fn,We.y=Bt,Be.x=He,Be.y=jt,Ie.x=Tt,Ie.y=Nt}var it=new go.Spot(.156,.156),ze=new go.Spot(.844,.844),Ue=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new cn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=5),ue=Math.min(ue,ne/3),ue=Math.min(ue,ee/3);var se=ue*Ue,de=new go.Geometry().add(new go.PathFigure(ue,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne-ue,0)).add(new go.PathSegment(go.PathSegment.Bezier,ne,ue,ne-se,0,ne,se)).add(new go.PathSegment(go.PathSegment.Line,ne,ee-ue)).add(new go.PathSegment(go.PathSegment.Bezier,ne-ue,ee,ne,ee-se,ne-se,ee)).add(new go.PathSegment(go.PathSegment.Line,ue,ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,ee-ue,se,ee,0,ee-se)).add(new go.PathSegment(go.PathSegment.Line,0,ue)).add(new go.PathSegment(go.PathSegment.Bezier,ue,0,0,se,se,0).close()));return se>1&&(de.spot1=new go.Spot(0,0,se,se),de.spot2=new go.Spot(1,1,-se,-se)),de}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,ee).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(ne,ee).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,ne,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(ne,ee).add(new go.PathSegment(go.PathSegment.Line,0,ee)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(.5*ne,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,ee)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*ee).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Ee,ne,ee){var ue=new go.Geometry(go.Geometry.Line);return ue.startX=0,ue.startY=ee/2,ue.endX=ne,ue.endY=ee/2,ue}),go.Shape.defineFigureGenerator("LineV",function(Ee,ne,ee){var ue=new go.Geometry(go.Geometry.Line);return ue.startX=ne/2,ue.startY=0,ue.endX=ne/2,ue.endY=ee,ue}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(0,ee/2,!1).add(new go.PathSegment(go.PathSegment.Line,ne,ee/2)).add(new go.PathSegment(go.PathSegment.Move,ne/2,0)).add(new go.PathSegment(go.PathSegment.Line,ne/2,ee)))}),go.Shape.defineFigureGenerator("XLine",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,ne,ee)))}),go.Shape.defineFigureGenerator("LineRight",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(.25*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*ne,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.25*ne,ee)))}),go.Shape.defineFigureGenerator("LineDown",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(0,.25*ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,.75*ee)).add(new go.PathSegment(go.PathSegment.Line,ne,.25*ee)))}),go.Shape.defineFigureGenerator("LineLeft",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(.75*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*ne,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.75*ne,ee)))}),go.Shape.defineFigureGenerator("LineUp",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(0,.75*ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,ne,.75*ee)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Ee,ne,ee){var ue=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(ue*ne,(1-ue)*ee,!1).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ne,ue*ee)).add(new go.PathSegment(go.PathSegment.Move,ue*ne,ue*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ne,(1-ue)*ee)).add(new go.PathSegment(go.PathSegment.Move,0,ee/2)).add(new go.PathSegment(go.PathSegment.Line,ne,ee/2)).add(new go.PathSegment(go.PathSegment.Move,ne/2,0)).add(new go.PathSegment(go.PathSegment.Line,ne/2,ee)))}),go.Shape.defineFigureGenerator("CircleLine",function(Ee,ne,ee){var ue=ne/2,se=new go.Geometry().add(new go.PathFigure(ne,ne/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,ue,ue,ue,ue).close()));return se.spot1=it,se.spot2=ze,se.defaultStretch=go.GraphObject.Uniform,se}),go.Shape.defineFigureGenerator("Line1",function(Ee,ne,ee){var ue=new go.Geometry(go.Geometry.Line);return ue.startX=0,ue.startY=0,ue.endX=ne,ue.endY=ee,ue}),go.Shape.defineFigureGenerator("Line2",function(Ee,ne,ee){var ue=new go.Geometry(go.Geometry.Line);return ue.startX=ne,ue.startY=0,ue.endX=0,ue.endY=ee,ue}),go.Shape.defineFigureGenerator("Curve1",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,ne,ee,Ue*ne,0,ne,(1-Ue)*ee)))}),go.Shape.defineFigureGenerator("Curve2",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,ne,ee,0,Ue*ee,(1-Ue)*ne,ee)))}),go.Shape.defineFigureGenerator("Curve3",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(ne,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,ne,Ue*ee,Ue*ne,ee)))}),go.Shape.defineFigureGenerator("Curve4",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(ne,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,(1-Ue)*ne,0,0,(1-Ue)*ee)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(ne,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,ee).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new cn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)?ue=.1:ue<-1?ue=-1:ue>1&&(ue=1);var se=Math.abs(ue)*ne;if(ue===0){var de=new go.Geometry(go.Geometry.Rectangle);return de.startX=0,de.startY=0,de.endX=ne,de.endY=ee,de}else{var de=new go.Geometry;return ue>0?de.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-se,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):de.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne-se,0)).add(new go.PathSegment(go.PathSegment.Line,ne,ee)).add(new go.PathSegment(go.PathSegment.Line,se,ee).close())),se<ne/2&&de.setSpots(se/ne,0,(ne-se)/ne,1),de}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new cn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)?ue=10:ue<-ne?ue=-ne:ue>ne&&(ue=ne);var se=Math.abs(ue);if(ue===0){var de=new go.Geometry(go.Geometry.Rectangle);return de.startX=0,de.startY=0,de.endX=ne,de.endY=ee,de}else{var de=new go.Geometry;return ue>0?de.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-se,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):de.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne-se,0)).add(new go.PathSegment(go.PathSegment.Line,ne,ee)).add(new go.PathSegment(go.PathSegment.Line,se,ee).close())),se<ne/2&&de.setSpots(se/ne,0,(ne-se)/ne,1),de}}),go.Shape.setFigureParameter("Trapezoid1",0,new cn("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)?ue=.2:ue<.5?ue=-.5:ue>.5&&(ue=.5);var se=Math.abs(ue)*ne;if(ue===0){var de=new go.Geometry(go.Geometry.Rectangle);return de.startX=0,de.startY=0,de.endX=ne,de.endY=ee,de}else{var de=new go.Geometry;return ue>0?de.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,ne-se,0)).add(new go.PathSegment(go.PathSegment.Line,ne,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):de.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-se,ee)).add(new go.PathSegment(go.PathSegment.Line,se,ee).close())),se<ne/2&&de.setSpots(se/ne,0,(ne-se)/ne,1),de}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new cn("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)?ue=20:ue<-ne?ue=-ne/2:ue>ne&&(ue=ne/2);var se=Math.abs(ue);if(ue===0){var de=new go.Geometry(go.Geometry.Rectangle);return de.startX=0,de.startY=0,de.endX=ne,de.endY=ee,de}else{var de=new go.Geometry;return ue>0?de.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,ne-se,0)).add(new go.PathSegment(go.PathSegment.Line,ne,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):de.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-se,ee)).add(new go.PathSegment(go.PathSegment.Line,se,ee).close())),se<ne/2&&de.setSpots(se/ne,0,(ne-se)/ne,1),de}}),go.Shape.setFigureParameter("ManualOperation",0,new cn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)?ue=10:ue<-ne?ue=-ne/2:ue>ne&&(ue=ne/2);var se=Math.abs(ue);if(ue===0){var de=new go.Geometry(go.Geometry.Rectangle);return de.startX=0,de.startY=0,de.endX=ne,de.endY=ee,de}else{var de=new go.Geometry;return ue>0?de.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-se,ee)).add(new go.PathSegment(go.PathSegment.Line,se,ee).close())):de.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,ne-se,0)).add(new go.PathSegment(go.PathSegment.Line,ne,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())),se<ne/2&&de.setSpots(se/ne,0,(ne-se)/ne,1),de}});var yt=[];function ot(){var Ee=yt.pop();return Ee===void 0?[]:Ee}function Me(Ee){Ee.length=0,yt.push(Ee)}function Et(Ee){for(var ne=ot(),ee=.5,ue=.5,se=Math.PI*1.5,de=0,pe=0;pe<Ee;pe++)de=2*Math.PI/Ee*pe+se,ne[pe]=new go.Point(ue+ee*Math.cos(de),ue+ee*Math.sin(de));return ne.push(ne[0]),ne}function _e(Ee){var ne=ht(Ee),ee=ot();ee[0]=ne[0];for(var ue=1,se=1;ue<ne.length;ue+=2,se+=3)ee[se]=ne[ue],ee[se+1]=ne[ue],ee[se+2]=ne[ue+1];return Me(ne),ee}function ht(Ee){for(var ne=Et(Ee),ee=ot(),ue=Math.floor(ne.length/2),se=ne.length-1,de=Ee%2===0?2:1,pe=0;pe<se;pe++){var ye=ne[pe],Ce=ne[pe+1],Re=ne[(ue+pe-1)%se],Oe=ne[(ue+pe+de)%se];ee[pe*2]=ye,ee[pe*2+1]=ut(ye.x,ye.y,Re.x,Re.y,Ce.x,Ce.y,Oe.x,Oe.y,new go.Point)}return ee[ee.length]=ee[0],Me(ne),ee}go.Shape.defineFigureGenerator("Pentagon",function(Ee,ne,ee){var ue=Et(5),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*ee,!0);se.add(de);for(var pe=1;pe<5;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*ne,ue[pe].y*ee));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*ee).close()),Me(ue),se.spot1=new go.Spot(.2,.22),se.spot2=new go.Spot(.8,.9),se}),go.Shape.defineFigureGenerator("Hexagon",function(Ee,ne,ee){var ue=Et(6),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*ee,!0);se.add(de);for(var pe=1;pe<6;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*ne,ue[pe].y*ee));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*ee).close()),Me(ue),se.spot1=new go.Spot(.07,.25),se.spot2=new go.Spot(.93,.75),se}),go.Shape.defineFigureGenerator("Heptagon",function(Ee,ne,ee){var ue=Et(7),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*ee,!0);se.add(de);for(var pe=1;pe<7;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*ne,ue[pe].y*ee));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*ee).close()),Me(ue),se.spot1=new go.Spot(.2,.15),se.spot2=new go.Spot(.8,.85),se}),go.Shape.defineFigureGenerator("Octagon",function(Ee,ne,ee){var ue=Et(8),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*ee,!0);se.add(de);for(var pe=1;pe<8;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*ne,ue[pe].y*ee));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*ee).close()),Me(ue),se.spot1=new go.Spot(.15,.15),se.spot2=new go.Spot(.85,.85),se}),go.Shape.defineFigureGenerator("Nonagon",function(Ee,ne,ee){var ue=Et(9),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*ee,!0);se.add(de);for(var pe=1;pe<9;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*ne,ue[pe].y*ee));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*ee).close()),Me(ue),se.spot1=new go.Spot(.17,.13),se.spot2=new go.Spot(.82,.82),se}),go.Shape.defineFigureGenerator("Decagon",function(Ee,ne,ee){var ue=Et(10),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*ee,!0);se.add(de);for(var pe=1;pe<10;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*ne,ue[pe].y*ee));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*ee).close()),Me(ue),se.spot1=new go.Spot(.16,.16),se.spot2=new go.Spot(.84,.84),se}),go.Shape.defineFigureGenerator("Dodecagon",function(Ee,ne,ee){var ue=Et(12),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*ee,!0);se.add(de);for(var pe=1;pe<12;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*ne,ue[pe].y*ee));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*ee).close()),Me(ue),se.spot1=new go.Spot(.16,.16),se.spot2=new go.Spot(.84,.84),se}),go.Shape.defineFigureGenerator("FivePointedStar",function(Ee,ne,ee){var ue=ht(5),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*ee,!0);se.add(de);for(var pe=1;pe<10;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*ne,ue[pe].y*ee));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*ee).close()),Me(ue),se.spot1=new go.Spot(.266,.333),se.spot2=new go.Spot(.733,.733),se}),go.Shape.defineFigureGenerator("SixPointedStar",function(Ee,ne,ee){var ue=ht(6),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*ee,!0);se.add(de);for(var pe=1;pe<12;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*ne,ue[pe].y*ee));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*ee).close()),Me(ue),se.spot1=new go.Spot(.17,.25),se.spot2=new go.Spot(.83,.75),se}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Ee,ne,ee){var ue=ht(7),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*ee,!0);se.add(de);for(var pe=1;pe<14;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*ne,ue[pe].y*ee));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*ee).close()),Me(ue),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.666),se}),go.Shape.defineFigureGenerator("EightPointedStar",function(Ee,ne,ee){var ue=ht(8),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*ee,!0);se.add(de);for(var pe=1;pe<16;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*ne,ue[pe].y*ee));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*ee).close()),Me(ue),se.spot1=new go.Spot(.25,.25),se.spot2=new go.Spot(.75,.75),se}),go.Shape.defineFigureGenerator("NinePointedStar",function(Ee,ne,ee){var ue=ht(9),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*ee,!0);se.add(de);for(var pe=1;pe<18;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*ne,ue[pe].y*ee));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*ee).close()),Me(ue),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.666),se}),go.Shape.defineFigureGenerator("TenPointedStar",function(Ee,ne,ee){var ue=ht(10),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*ee,!0);se.add(de);for(var pe=1;pe<20;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*ne,ue[pe].y*ee));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*ee).close()),Me(ue),se.spot1=new go.Spot(.281,.261),se.spot2=new go.Spot(.723,.748),se}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Ee,ne,ee){var ue=_e(5),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*ee,!0);se.add(de);for(var pe=1;pe<ue.length;pe+=3)de.add(new go.PathSegment(go.PathSegment.Bezier,ue[pe+2].x*ne,ue[pe+2].y*ee,ue[pe].x*ne,ue[pe].y*ee,ue[pe+1].x*ne,ue[pe+1].y*ee));return de.segments.last().close(),Me(ue),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Ee,ne,ee){var ue=_e(6),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*ee,!0);se.add(de);for(var pe=1;pe<ue.length;pe+=3)de.add(new go.PathSegment(go.PathSegment.Bezier,ue[pe+2].x*ne,ue[pe+2].y*ee,ue[pe].x*ne,ue[pe].y*ee,ue[pe+1].x*ne,ue[pe+1].y*ee));return de.segments.last().close(),Me(ue),se.spot1=new go.Spot(.17,.222),se.spot2=new go.Spot(.833,.777),se}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Ee,ne,ee){var ue=_e(7),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*ee,!0);se.add(de);for(var pe=1;pe<ue.length;pe+=3)de.add(new go.PathSegment(go.PathSegment.Bezier,ue[pe+2].x*ne,ue[pe+2].y*ee,ue[pe].x*ne,ue[pe].y*ee,ue[pe+1].x*ne,ue[pe+1].y*ee));return de.segments.last().close(),Me(ue),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Ee,ne,ee){var ue=_e(8),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*ee,!0);se.add(de);for(var pe=1;pe<ue.length;pe+=3)de.add(new go.PathSegment(go.PathSegment.Bezier,ue[pe+2].x*ne,ue[pe+2].y*ee,ue[pe].x*ne,ue[pe].y*ee,ue[pe+1].x*ne,ue[pe+1].y*ee));return de.segments.last().close(),Me(ue),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Ee,ne,ee){var ue=_e(9),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*ee,!0);se.add(de);for(var pe=1;pe<ue.length;pe+=3)de.add(new go.PathSegment(go.PathSegment.Bezier,ue[pe+2].x*ne,ue[pe+2].y*ee,ue[pe].x*ne,ue[pe].y*ee,ue[pe+1].x*ne,ue[pe+1].y*ee));return de.segments.last().close(),Me(ue),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Ee,ne,ee){var ue=_e(10),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*ee,!0);se.add(de);for(var pe=1;pe<ue.length;pe+=3)de.add(new go.PathSegment(go.PathSegment.Bezier,ue[pe+2].x*ne,ue[pe+2].y*ee,ue[pe].x*ne,ue[pe].y*ee,ue[pe+1].x*ne,ue[pe+1].y*ee));return de.segments.last().close(),Me(ue),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.setFigureParameter("FramedRectangle",0,new cn("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new cn("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN,se=Ee?Ee.parameter2:NaN;isNaN(ue)&&(ue=8),isNaN(se)&&(se=8);var de=new go.Geometry,pe=new go.PathFigure(0,0,!0);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne,0)),pe.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ue<ne/2&&se<ee/2&&(pe.add(new go.PathSegment(go.PathSegment.Move,ue,se)),pe.add(new go.PathSegment(go.PathSegment.Line,ue,ee-se)),pe.add(new go.PathSegment(go.PathSegment.Line,ne-ue,ee-se)),pe.add(new go.PathSegment(go.PathSegment.Line,ne-ue,se).close())),de.setSpots(0,0,1,1,ue,se,-ue,-se),de}),go.Shape.setFigureParameter("Ring",0,new cn("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=8);var se=ne/2,de=new go.Geometry,pe=new go.PathFigure(ne,ne/2,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Arc,0,360,se,se,se,se).close());var ye=Math.max(se-ue,0);return ye>0&&(pe.add(new go.PathSegment(go.PathSegment.Move,ne/2+ye,ne/2)),pe.add(new go.PathSegment(go.PathSegment.Arc,0,-360,se,se,ye,ye).close())),de.spot1=it,de.spot2=ze,de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("Cloud",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(.08034461*ne,.1944299*ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*ne,.05349299*ee,-.09239631*ne,.07836421*ee,.1406031*ne,-.0542823*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*ne,.074219*ee,.2450511*ne,-.00697547*ee,.3776197*ne,-.01112067*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*ne,.07004196*ee,.4539471*ne,0,.6066018*ne,-.02526587*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*ne,.08370865*ee,.6914277*ne,-.01904177*ee,.8921095*ne,-.01220843*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*ne,.3194596*ee,1.036446*ne,.04105738*ee,1.020377*ne,.3022052*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*ne,.562044*ee,1.04448*ne,.360238*ee,.992256*ne,.5219009*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*ne,.8217117*ee,1.032337*ne,.5771781*ee,1.018411*ne,.8120651*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*ne,.9156953*ee,1.028411*ne,.9571472*ee,.8556702*ne,1.052487*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*ne,.9310455*ee,.7431877*ne,1.009325*ee,.5624123*ne,1.021761*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*ne,.9344623*ee,.4820677*ne,1.031761*ee,.3030112*ne,1.002796*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*ne,.870098*ee,.2329994*ne,1.01518*ee,.03213784*ne,1.01518*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*ne,.6545475*ee,-.02812061*ne,.9032597*ee,-.01205169*ne,.6835638*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*ne,.4265613*ee,-.01812061*ne,.6089503*ee,-.00606892*ne,.4555777*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*ne,.1944299*ee,-.01606892*ne,.3892545*ee,-.01205169*ne,.1944299*ee))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Ee,ne,ee){var ue=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(ue*ne,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,ue*ee)).add(new go.PathSegment(go.PathSegment.Line,ne,(1-ue)*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ne,ee)).add(new go.PathSegment(go.PathSegment.Line,ue*ne,ee)).add(new go.PathSegment(go.PathSegment.Line,0,(1-ue)*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ue*ee).close())).setSpots(ue/2,ue/2,1-ue/2,1-ue/2)}),go.Shape.setFigureParameter("Pie",0,new cn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new cn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN,se=Ee?Ee.parameter2:NaN;isNaN(ue)&&(ue=0),isNaN(se)&&(se=315);var de=ue%360;de<0&&(de+=360);var pe=se%360,ye=Math.min(ne,ee)/2;return new go.Geometry().add(new go.PathFigure(ye,ye).add(new go.PathSegment(go.PathSegment.Arc,de,pe,ye,ye,ye,ye).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Ee,ne,ee){var ue=Ue/Math.SQRT2*.5,se=Math.SQRT2/2,de=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(ne,ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,se*ne,de*ee,ne,(1-ue)*ee,(se+ue)*ne,(de+ue)*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close()))}),go.Shape.setFigureParameter("ThickCross",0,new cn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=30);var se=Math.min(ue,ne)/2,de=ne/2,pe=ee/2;return new go.Geometry().add(new go.PathFigure(de-se,0,!0).add(new go.PathSegment(go.PathSegment.Line,de+se,0)).add(new go.PathSegment(go.PathSegment.Line,de+se,pe-se)).add(new go.PathSegment(go.PathSegment.Line,ne,pe-se)).add(new go.PathSegment(go.PathSegment.Line,ne,pe+se)).add(new go.PathSegment(go.PathSegment.Line,de+se,pe+se)).add(new go.PathSegment(go.PathSegment.Line,de+se,ee)).add(new go.PathSegment(go.PathSegment.Line,de-se,ee)).add(new go.PathSegment(go.PathSegment.Line,de-se,pe+se)).add(new go.PathSegment(go.PathSegment.Line,0,pe+se)).add(new go.PathSegment(go.PathSegment.Line,0,pe-se)).add(new go.PathSegment(go.PathSegment.Line,de-se,pe-se).close()))}),go.Shape.setFigureParameter("ThinCross",0,new cn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=10);var se=Math.min(ue,ne)/2,de=ne/2,pe=ee/2;return new go.Geometry().add(new go.PathFigure(de-se,0,!0).add(new go.PathSegment(go.PathSegment.Line,de+se,0)).add(new go.PathSegment(go.PathSegment.Line,de+se,pe-se)).add(new go.PathSegment(go.PathSegment.Line,ne,pe-se)).add(new go.PathSegment(go.PathSegment.Line,ne,pe+se)).add(new go.PathSegment(go.PathSegment.Line,de+se,pe+se)).add(new go.PathSegment(go.PathSegment.Line,de+se,ee)).add(new go.PathSegment(go.PathSegment.Line,de-se,ee)).add(new go.PathSegment(go.PathSegment.Line,de-se,pe+se)).add(new go.PathSegment(go.PathSegment.Line,0,pe+se)).add(new go.PathSegment(go.PathSegment.Line,0,pe-se)).add(new go.PathSegment(go.PathSegment.Line,de-se,pe-se).close()))}),go.Shape.setFigureParameter("ThickX",0,new cn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;if((isNaN(ue)||ue<0)&&(ue=30),ne===0||ee===0){var se=new go.Geometry(go.Geometry.Rectangle);return se.startX=0,se.startY=0,se.endX=ne,se.endY=ee,se}else{var de=ne/2,pe=ee/2,ye=Math.atan2(ee,ne),Ce=ue-Math.min(Math.cos(ye)*ue/2,de),Re=ue-Math.min(Math.sin(ye)*ue/2,pe),se=new go.Geometry,Oe=new go.PathFigure(Ce,0,!0);return se.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Line,de,.2*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,ne-Ce,0)),Oe.add(new go.PathSegment(go.PathSegment.Line,ne,Re)),Oe.add(new go.PathSegment(go.PathSegment.Line,.8*ne,pe)),Oe.add(new go.PathSegment(go.PathSegment.Line,ne,ee-Re)),Oe.add(new go.PathSegment(go.PathSegment.Line,ne-Ce,ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,de,.8*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,Ce,ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,0,ee-Re)),Oe.add(new go.PathSegment(go.PathSegment.Line,.2*ne,pe)),Oe.add(new go.PathSegment(go.PathSegment.Line,0,Re).close()),se}}),go.Shape.setFigureParameter("ThinX",0,new cn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=10);var se=new go.Geometry,de=new go.PathFigure(.1*ne,0,!0);return se.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.4*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.9*ne,0)),de.add(new go.PathSegment(go.PathSegment.Line,ne,.1*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.5*ee)),de.add(new go.PathSegment(go.PathSegment.Line,ne,.9*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.9*ne,ee)),de.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.1*ne,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,.9*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.5*ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee).close()),se}),go.Shape.setFigureParameter("SquareIBeam",0,new cn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.2);var se=new go.Geometry,de=new go.PathFigure(0,0,!0);return se.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne,0)),de.add(new go.PathSegment(go.PathSegment.Line,ne,ue*ee)),de.add(new go.PathSegment(go.PathSegment.Line,(.5+ue/2)*ne,ue*ee)),de.add(new go.PathSegment(go.PathSegment.Line,(.5+ue/2)*ne,(1-ue)*ee)),de.add(new go.PathSegment(go.PathSegment.Line,ne,(1-ue)*ee)),de.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,(1-ue)*ee)),de.add(new go.PathSegment(go.PathSegment.Line,(.5-ue/2)*ne,(1-ue)*ee)),de.add(new go.PathSegment(go.PathSegment.Line,(.5-ue/2)*ne,ue*ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ue*ee).close()),se}),go.Shape.setFigureParameter("RoundedIBeam",0,new cn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.5);var se=new go.Geometry,de=new go.PathFigure(0,0,!0);return se.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne,0)),de.add(new go.PathSegment(go.PathSegment.Bezier,ne,ee,Math.abs(1-ue)*ne,.25*ee,Math.abs(1-ue)*ne,.75*ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee)),de.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ue*ne,.75*ee,ue*ne,.25*ee).close()),se}),go.Shape.defineFigureGenerator("HalfEllipse",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*ee,Ue*ne,0,ne,(.5-Ue/2)*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,ne,(.5+Ue/2)*ee,Ue*ne,ee).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,ne,0,ne,ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*ne,.75*ee,.5*ne,.25*ee).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(.5*ne,ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ee,.1*ne,.8*ee,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.3*ee,0,0,.45*ne,0)).add(new go.PathSegment(go.PathSegment.Bezier,ne,.3*ee,.55*ne,0,ne,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,ee,ne,.5*ee,.9*ne,.8*ee).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(.5*ne,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*ne,.01*ee)).add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*ee,.6*ne,.2*ee,ne,.25*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.55*ne,.7*ee,ne,.8*ee,.6*ne,.8*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.75*ne,ee,.5*ne,.75*ee,.55*ne,.95*ee)).add(new go.PathSegment(go.PathSegment.Line,.25*ne,ee)).add(new go.PathSegment(go.PathSegment.Bezier,.45*ne,.7*ee,.45*ne,.95*ee,.5*ne,.75*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.4*ne,.8*ee,0,.8*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.49*ne,.01*ee,0,.25*ee,.4*ne,.2*ee).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(.4*ne,.6*ee,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.15*ne,ee,.5*ne,.75*ee,.45*ne,.95*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.85*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.6*ne,.6*ee,.55*ne,.95*ee,.5*ne,.75*ee));var de=.2,pe=.3,ye=0,Ce=de*Ue;return se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pe)*ne,(.5+de+ye)*ee,(.5-de+pe)*ne,(.5+Ce+ye)*ee,(.5-Ce+pe)*ne,(.5+de+ye)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+de+pe)*ne,(.5+ye)*ee,(.5+Ce+pe)*ne,(.5+de+ye)*ee,(.5+de+pe)*ne,(.5+Ce+ye)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pe)*ne,(.5-de+ye)*ee,(1-.5+de+pe)*ne,(.5-Ce+ye)*ee,(.5+Ce+pe)*ne,(.5-de+ye)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.65*ne,.36771243*ee,(.5-Ce+pe)*ne,(.5-de+ye)*ee,(.5-de+pe+.05)*ne,(.5-Ce+ye-.02)*ee)),de=.2,pe=0,ye=-.3,Ce=de*Ue,se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+de+pe)*ne,(.5+ye)*ee,(.5+Ce+pe)*ne,(.5+de+ye)*ee,(.5+de+pe)*ne,(.5+Ce+ye)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pe)*ne,(.5-de+ye)*ee,(1-.5+de+pe)*ne,(.5-Ce+ye)*ee,(.5+Ce+pe)*ne,(.5-de+ye)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-de+pe)*ne,(.5+ye)*ee,(.5-Ce+pe)*ne,(.5-de+ye)*ee,(.5-de+pe)*ne,(.5-Ce+ye)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Ce+pe)*ne,(.5+de+ye)*ee,(.5-de+pe)*ne,(.5+Ce+ye)*ee,(.5-Ce+pe)*ne,(.5+de+ye)*ee)),de=.2,pe=-.3,ye=0,Ce=de*Ue,se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pe)*ne,(.5-de+ye)*ee,(1-.5+de+pe-.05)*ne,(.5-Ce+ye-.02)*ee,(.5+Ce+pe)*ne,(.5-de+ye)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-de+pe)*ne,(.5+ye)*ee,(.5-Ce+pe)*ne,(.5-de+ye)*ee,(.5-de+pe)*ne,(.5-Ce+ye)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pe)*ne,(.5+de+ye)*ee,(.5-de+pe)*ne,(.5+Ce+ye)*ee,(.5-Ce+pe)*ne,(.5+de+ye)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*ne,.6*ee,(.5+Ce+pe)*ne,(.5+de+ye)*ee,(.5+de+pe)*ne,(.5+Ce+ye)*ee).close()),ue.setSpots(.06,.33,.93,.68),ue}),go.Shape.defineFigureGenerator("YinYang",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(ne*.5,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,ne*.5,ne*.5,ne*.5,ne*.5)),se.add(new go.PathSegment(go.PathSegment.Arc,90,-180,ne*.5,ne*.75,ne*.25,ne*.25)),se.add(new go.PathSegment(go.PathSegment.Arc,90,180,ne*.5,ne*.25,ne*.25,ne*.25));var de=.1,pe=.5,ye=.25;return se.add(new go.PathSegment(go.PathSegment.Move,(pe+de)*ne,ye*ee)),se.add(new go.PathSegment(go.PathSegment.Arc,0,-360,ne*pe,ee*ye,de*ne,de*ne).close()),se=new go.PathFigure(ne*.5,0,!1),ue.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,-180,ne*.5,ne*.5,ne*.5,ne*.5)),ye=.75,se=new go.PathFigure((pe+de)*ne,ye*ee,!0),ue.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,0,360,ne*pe,ee*ye,de*ne,de*ne).close()),ue.defaultStretch=go.GraphObject.Uniform,ue}),go.Shape.defineFigureGenerator("Peace",function(Ee,ne,ee){var ue=.8535533905932737,se=.5*ne,de=.5*ee;return new go.Geometry().add(new go.PathFigure(se,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,se,de,se,de)).add(new go.PathSegment(go.PathSegment.Line,se,ee)).add(new go.PathSegment(go.PathSegment.Move,se,de)).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ne,ue*ee)).add(new go.PathSegment(go.PathSegment.Move,se,de)).add(new go.PathSegment(go.PathSegment.Line,ue*ne,ue*ee)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Ee,ne,ee){var ue=new go.Geometry,se=Ue*.5,de=.5,pe=.5,ye=.5,Ce=new go.PathFigure(pe*ne,(ye-de)*ee);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe-de)*ne,ye*ee,(pe-se)*ne,(ye-de)*ee,(pe-de)*ne,(ye-se)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye+de)*ee,(pe-de)*ne,(ye+se)*ee,(pe-se)*ne,(ye+de)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*ne,ye*ee,(pe+se)*ne,(ye+de)*ee,(pe+de)*ne,(ye+se)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye-de)*ee,(pe+de)*ne,(ye-se)*ee,(pe+se)*ne,(ye-de)*ee)),de=.4,se=Ue*.4;var Re=me(),Oe=me(),We=me(),Be=me();nt(pe,ye-de,pe+se,ye-de,pe+de,ye-se,pe+de,ye,.42,Re,Oe,We,Be,Be);var Ie=me(),Qe=me(),rt=me();nt(pe,ye-de,pe+se,ye-de,pe+de,ye-se,pe+de,ye,.58,Be,Be,rt,Ie,Qe);var xt=me(),gt=me(),bt=me();nt(pe,ye+de,pe-se,ye+de,pe-de,ye+se,pe-de,ye,.42,xt,gt,bt,Be,Be);var At=me(),Tt=me(),Nt=me();return nt(pe,ye+de,pe-se,ye+de,pe-de,ye+se,pe-de,ye,.58,Be,Be,Nt,At,Tt),Ce.add(new go.PathSegment(go.PathSegment.Move,Nt.x*ne,Nt.y*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe-de)*ne,ye*ee,At.x*ne,At.y*ee,Tt.x*ne,Tt.y*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye-de)*ee,(pe-de)*ne,(ye-se)*ee,(pe-se)*ne,(ye-de)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,We.x*ne,We.y*ee,Re.x*ne,Re.y*ee,Oe.x*ne,Oe.y*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,Nt.x*ne,Nt.y*ee).close()),Ce.add(new go.PathSegment(go.PathSegment.Move,bt.x*ne,bt.y*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,rt.x*ne,rt.y*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*ne,ye*ee,Ie.x*ne,Ie.y*ee,Qe.x*ne,Qe.y*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye+de)*ee,(pe+de)*ne,(ye+se)*ee,(pe+se)*ne,(ye+de)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,bt.x*ne,bt.y*ee,xt.x*ne,xt.y*ee,gt.x*ne,gt.y*ee).close()),Ve(Re),Ve(Oe),Ve(We),Ve(Be),Ve(Ie),Ve(Qe),Ve(rt),Ve(xt),Ve(gt),Ve(bt),Ve(At),Ve(Tt),Ve(Nt),ue.defaultStretch=go.GraphObject.Uniform,ue}),go.Shape.defineFigureGenerator("Fragile",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*ne,0)).add(new go.PathSegment(go.PathSegment.Line,.2*ne,.15*ee)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,.29*ne,.33*ee)).add(new go.PathSegment(go.PathSegment.Line,.35*ne,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,.15*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*ne,.5*ee,ne,.25*ee,.75*ne,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.55*ne,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,ee)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,ee)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.45*ne,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.45*ne,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ne,.5*ee,0,.25*ee).close()))}),go.Shape.setFigureParameter("HourGlass",0,new cn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=30),ue>ne&&(ue=ne);var se=(ne-ue)/2,de=se+ue;return new go.Geometry().add(new go.PathFigure(de,.5*ee).add(new go.PathSegment(go.PathSegment.Line,ne,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee)).add(new go.PathSegment(go.PathSegment.Line,se,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,ne,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(0,.55*ee).add(new go.PathSegment(go.PathSegment.Line,.6*ne,0)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,.45*ee)).add(new go.PathSegment(go.PathSegment.Line,ne,.45*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*ne,ee)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,.55*ee).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Ee,ne,ee){var ue=new go.Geometry,se=Ue*.4,de=.4,pe=.5,ye=.5,Ce=me(),Re=me(),Oe=me(),We=me(),Be=new go.PathFigure((pe-de)*ne,ye*ee,!1);ue.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye-de)*ee,(pe-de)*ne,(ye-se)*ee,(pe-se)*ne,(ye-de)*ee)),nt(pe,ye-de,pe+se,ye-de,pe+de,ye-se,pe+de,ye,.44,Oe,We,Re,Ce,Ce),Be.add(new go.PathSegment(go.PathSegment.Bezier,Re.x*ne,Re.y*ee,Oe.x*ne,Oe.y*ee,We.x*ne,We.y*ee));var Ie=Pe(Re.x,Re.y);nt(pe,ye-de,pe+se,ye-de,pe+de,ye-se,pe+de,ye,.56,Ce,Ce,Re,Oe,We);var Qe=Pe(Re.x,Re.y);Be.add(new go.PathSegment(go.PathSegment.Line,(Ie.x*.1+.95*.9)*ne,Ie.y*.1*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,.85*ne,Ie.y*.1*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,.85*ne,0)),Be.add(new go.PathSegment(go.PathSegment.Line,ne,0)),Be.add(new go.PathSegment(go.PathSegment.Line,ne,.15*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,(Qe.x*.1+.9)*ne,.15*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,(Qe.x*.1+.9)*ne,(Qe.y*.1+.05*.9)*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,Qe.x*ne,Qe.y*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*ne,ye*ee,Oe.x*ne,Oe.y*ee,We.x*ne,We.y*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye+de)*ee,(pe+de)*ne,(ye+se)*ee,(pe+se)*ne,(ye+de)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(pe-de)*ne,ye*ee,(pe-se)*ne,(ye+de)*ee,(pe-de)*ne,(ye+se)*ee)),de=.35,se=Ue*.35;var rt=new go.PathFigure(pe*ne,(ye-de)*ee,!1);ue.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,(pe-de)*ne,ye*ee,(pe-se)*ne,(ye-de)*ee,(pe-de)*ne,(ye-se)*ee)),rt.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye+de)*ee,(pe-de)*ne,(ye+se)*ee,(pe-se)*ne,(ye+de)*ee)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*ne,ye*ee,(pe+se)*ne,(ye+de)*ee,(pe+de)*ne,(ye+se)*ee)),rt.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye-de)*ee,(pe+de)*ne,(ye-se)*ee,(pe+se)*ne,(ye-de)*ee));var xt=new go.PathFigure((pe-de)*ne,ye*ee,!1);return ue.add(xt),Ve(Ce),Ve(Re),Ve(Oe),Ve(We),Ve(Ie),Ve(Qe),ue.spot1=new go.Spot(.202,.257),ue.spot2=new go.Spot(.792,.739),ue.defaultStretch=go.GraphObject.Uniform,ue}),go.Shape.defineFigureGenerator("GenderFemale",function(Ee,ne,ee){var ue=new go.Geometry,se=.375,de=0,pe=-.125,ye=se*Ue,Ce=new go.PathFigure((.525+de)*ne,(.5+se+pe)*ee,!1);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+de)*ne,(.5+pe)*ee,(.5+ye+de)*ne,(.5+se+pe)*ee,(.5+se+de)*ne,(.5+ye+pe)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.5+de)*ne,(.5-se+pe)*ee,(1-.5+se+de)*ne,(.5-ye+pe)*ee,(.5+ye+de)*ne,(.5-se+pe)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+de)*ne,(.5+pe)*ee,(.5-ye+de)*ne,(.5-se+pe)*ee,(.5-se+de)*ne,(.5-ye+pe)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.475+de)*ne,(.5+se+pe)*ee,(.5-se+de)*ne,(.5+ye+pe)*ee,(.5-ye+de)*ne,(.5+se+pe)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.475*ne,.85*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.425*ne,.85*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.425*ne,.9*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.475*ne,.9*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.475*ne,ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.525*ne,ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.525*ne,.9*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.575*ne,.9*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.575*ne,.85*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.525*ne,.85*ee).close()),se=.325,de=0,pe=-.125,ye=se*Ue;var Ce=new go.PathFigure((1-.5+se+de)*ne,(.5+pe)*ee,!1);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.5+de)*ne,(.5+se+pe)*ee,(.5+se+de)*ne,(.5+ye+pe)*ee,(.5+ye+de)*ne,(.5+se+pe)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+de)*ne,(.5+pe)*ee,(.5-ye+de)*ne,(.5+se+pe)*ee,(.5-se+de)*ne,(.5+ye+pe)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.5+de)*ne,(.5-se+pe)*ee,(.5-se+de)*ne,(.5-ye+pe)*ee,(.5-ye+de)*ne,(.5-se+pe)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+de)*ne,(.5+pe)*ee,(.5+ye+de)*ne,(.5-se+pe)*ee,(1-.5+se+de)*ne,(.5-ye+pe)*ee));var Ce=new go.PathFigure((.525+de)*ne,(.5+se+pe)*ee,!1);return ue.add(Ce),ue.spot1=new go.Spot(.232,.136),ue.spot2=new go.Spot(.682,.611),ue.defaultStretch=go.GraphObject.Uniform,ue}),go.Shape.defineFigureGenerator("LogicImplies",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;return isNaN(ue)&&(ue=.2),new go.Geometry().add(new go.PathFigure((1-ue)*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ne,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*ee))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;return isNaN(ue)&&(ue=.2),new go.Geometry().add(new go.PathFigure((1-ue)*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ne,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,ue*ne,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,ue*ne,ee))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,ee)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,ee))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,ee)).add(new go.PathSegment(go.PathSegment.Line,ne,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Ee,ne,ee){var ue=new go.Geometry().add(new go.PathFigure(.5*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*ee)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*ne,.5*ee,.5*ne,.5*ee)));return ue.defaultStretch=go.GraphObject.Uniform,ue}),go.Shape.defineFigureGenerator("LogicTruth",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Move,.5*ne,0)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,ee)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,ne,ee)).add(new go.PathSegment(go.PathSegment.Move,.5*ne,ee)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,ne,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,ne,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,ee)).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Move,.25*ne,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.75*ne,.5*ee))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,0,ee)).add(new go.PathSegment(go.PathSegment.Line,ne,ee))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Ee,ne,ee){var ue=.5;return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,0,ue*ee)).add(new go.PathSegment(go.PathSegment.Arc,180,180,ue*ne,ue*ee,ue*ne,ue*ee)).add(new go.PathSegment(go.PathSegment.Line,ne,ee))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Ee,ne,ee){var ue=.5;return new go.Geometry().add(new go.PathFigure(ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,ue*ee)).add(new go.PathSegment(go.PathSegment.Arc,0,180,ue*ne,ue*ee,ue*ne,ue*ee)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new cn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new cn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.3);var se=Ee?Ee.parameter2:NaN;isNaN(se)&&(se=.3);var de=(1-ue)*ne,pe=(.5-se/2)*ee,ye=(.5+se/2)*ee,Ce=new go.Geometry,Re=new go.PathFigure(0,pe,!0);Ce.add(Re),Re.add(new go.PathSegment(go.PathSegment.Line,de,pe)),Re.add(new go.PathSegment(go.PathSegment.Line,de,0)),Re.add(new go.PathSegment(go.PathSegment.Line,ne,.5*ee)),Re.add(new go.PathSegment(go.PathSegment.Line,de,ee)),Re.add(new go.PathSegment(go.PathSegment.Line,de,ye)),Re.add(new go.PathSegment(go.PathSegment.Line,0,ye).close()),Ce.spot1=new go.Spot(0,pe/ee);var Oe=ut(0,ye/ee,1,ye/ee,de/ne,1,1,.5,me());return Ce.spot2=new go.Spot(Oe.x,Oe.y),Ve(Oe),Ce}),go.Shape.setFigureParameter("Arrow2",0,new cn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new cn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=30),ue>ne&&(ue=ne);var se=Ee?Ee.parameter2:NaN;isNaN(se)&&(se=30),se=Math.min(se,ee/2);var de=ne-ue,pe=(ee-se)/2,ye=pe+se,Ce=new go.Geometry,Re=new go.PathFigure(0,pe,!0);Ce.add(Re),Re.add(new go.PathSegment(go.PathSegment.Line,de,pe)),Re.add(new go.PathSegment(go.PathSegment.Line,de,0)),Re.add(new go.PathSegment(go.PathSegment.Line,ne,.5*ee)),Re.add(new go.PathSegment(go.PathSegment.Line,de,ee)),Re.add(new go.PathSegment(go.PathSegment.Line,de,ye)),Re.add(new go.PathSegment(go.PathSegment.Line,0,ye).close()),Ce.spot1=new go.Spot(0,pe/ee);var Oe=ut(0,ye/ee,1,ye/ee,de/ne,1,1,.5,me());return Ce.spot2=new go.Spot(Oe.x,Oe.y),Ve(Oe),Ce}),go.Shape.defineFigureGenerator("Chevron",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*ee).close()),ue}),go.Shape.defineFigureGenerator("DoubleArrow",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,.214*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,1*ne,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,1*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,.786*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,1*ee).close()),ue}),go.Shape.setFigureParameter("DoubleEndArrow",0,new cn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.3);var se=(.5-ue/2)*ee,de=(.5+ue/2)*ee,pe=new go.Geometry,ye=new go.PathFigure(ne,.5*ee,!0);pe.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ee)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,de)),ye.add(new go.PathSegment(go.PathSegment.Line,.3*ne,de)),ye.add(new go.PathSegment(go.PathSegment.Line,.3*ne,ee)),ye.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),ye.add(new go.PathSegment(go.PathSegment.Line,.3*ne,0)),ye.add(new go.PathSegment(go.PathSegment.Line,.3*ne,se)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,se)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0).close());var Ce=ut(0,.5,.3,0,0,se/ee,.1,se/ee,me());return pe.spot1=new go.Spot(Ce.x,Ce.y),Ce=ut(.7,1,1,.5,0,de/ee,1,de/ee,Ce),pe.spot2=new go.Spot(Ce.x,Ce.y),Ve(Ce),pe}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new cn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new cn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=40);var se=Ee?Ee.parameter2:NaN;isNaN(se)&&(se=100);var de=(ee-ue)/2,pe=de+ue,ye=(ee-se)/2,Ce=ye+se;(ue>ee||se>ee)&&(se>ue?(ue=ue*ee/se,de=(ee-ue)/2,pe=de+ue,ye=0,Ce=ee):(de=0,pe=ee,ye=0,Ce=ee));var Re=new go.Geometry,Oe=new go.PathFigure(ne,.5*ee,!0);Re.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,Ce)),Oe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,pe)),Oe.add(new go.PathSegment(go.PathSegment.Line,.3*ne,pe)),Oe.add(new go.PathSegment(go.PathSegment.Line,.3*ne,Ce)),Oe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.3*ne,ye)),Oe.add(new go.PathSegment(go.PathSegment.Line,.3*ne,de)),Oe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,de)),Oe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ye).close());var We=ut(0,.5,.3,ye/ee,0,de/ee,1,de/ee,me());return Re.spot1=new go.Spot(We.x,We.y),We=ut(.7,Ce/ee,1,.5,0,pe/ee,1,pe/ee,We),Re.spot2=new go.Spot(We.x,We.y),Ve(We),Re}),go.Shape.setFigureParameter("IBeamArrow",0,new cn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.3);var se=(.5-ue/2)*ee,de=(.5+ue/2)*ee,pe=new go.Geometry,ye=new go.PathFigure(ne,.5*ee,!0);pe.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ee)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,de)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*ne,de)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*ne,ee)),ye.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ye.add(new go.PathSegment(go.PathSegment.Line,0,0)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*ne,0)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*ne,se)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,se)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0).close()),pe.spot1=new go.Spot(0,se/ee);var Ce=ut(.7,1,1,.5,0,de/ee,1,de/ee,me());return pe.spot2=new go.Spot(Ce.x,Ce.y),Ve(Ce),pe}),go.Shape.setFigureParameter("IBeamArrow2",0,new cn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new cn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=40);var se=Ee?Ee.parameter2:NaN;isNaN(se)&&(se=100);var de=(ee-ue)/2,pe=de+ue,ye=(ee-se)/2,Ce=ye+se;(ue>ee||se>ee)&&(se>ue?(ue=ue*ee/se,de=(ee-ue)/2,pe=de+ue,ye=0,Ce=ee):(de=0,pe=ee,ye=0,Ce=ee));var Re=new go.Geometry,Oe=new go.PathFigure(ne,.5*ee,!0);Re.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,Ce)),Oe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,pe)),Oe.add(new go.PathSegment(go.PathSegment.Line,.2*ne,pe)),Oe.add(new go.PathSegment(go.PathSegment.Line,.2*ne,Ce)),Oe.add(new go.PathSegment(go.PathSegment.Line,0,Ce)),Oe.add(new go.PathSegment(go.PathSegment.Line,0,ye)),Oe.add(new go.PathSegment(go.PathSegment.Line,.2*ne,ye)),Oe.add(new go.PathSegment(go.PathSegment.Line,.2*ne,de)),Oe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,de)),Oe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ye).close()),Re.spot1=new go.Spot(0,de/ee);var We=ut(.7,Ce/ee,1,.5,0,pe/ee,1,pe/ee,me());return Re.spot2=new go.Spot(We.x,We.y),Ve(We),Re}),go.Shape.setFigureParameter("Pointer",0,new cn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.1);var se=new go.Geometry,de=new go.PathFigure(ne,.5*ee,!0);se.add(de),de.add(new go.PathSegment(go.PathSegment.Line,0,ee)),de.add(new go.PathSegment(go.PathSegment.Line,ue*ne,.5*ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),se.spot1=new go.Spot(ue,.35);var pe=ut(.2,.65,1,.65,0,1,1,.5,me());return se.spot2=new go.Spot(pe.x,pe.y),Ve(pe),se}),go.Shape.setFigureParameter("RoundedPointer",0,new cn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.3);var se=new go.Geometry,de=new go.PathFigure(ne,.5*ee,!0);se.add(de),de.add(new go.PathSegment(go.PathSegment.Line,0,ee)),de.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ue*ne,.75*ee,ue*ne,.25*ee).close()),se.spot1=new go.Spot(ue,.35);var pe=ut(0,.65,1,.65,0,1,1,.5,me());return se.spot2=new go.Spot(pe.x,pe.y),Ve(pe),se}),go.Shape.setFigureParameter("SplitEndArrow",0,new cn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.4);var se=(.5-ue/2)*ee,de=(.5+ue/2)*ee,pe=new go.Geometry,ye=new go.PathFigure(ne,.5*ee,!0);pe.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ee)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,de)),ye.add(new go.PathSegment(go.PathSegment.Line,0,de)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.5*ee)),ye.add(new go.PathSegment(go.PathSegment.Line,0,se)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,se)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0).close()),pe.spot1=new go.Spot(.2,.3);var Ce=ut(.7,1,1,.5,0,de/ee,1,de/ee,me());return pe.spot2=new go.Spot(Ce.x,Ce.y),Ve(Ce),pe}),go.Shape.setFigureParameter("SplitEndArrow2",0,new cn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=50);var se=(ee-ue)/2,de=se+ue;ue>ee&&(se=0,de=ee);var pe=new go.Geometry,ye=new go.PathFigure(ne,.5*ee,!0);pe.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ee)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,de)),ye.add(new go.PathSegment(go.PathSegment.Line,0,de)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.5*ee)),ye.add(new go.PathSegment(go.PathSegment.Line,0,se)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,se)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0).close()),pe.spot1=new go.Spot(.2,se/ee);var Ce=ut(.7,1,1,.5,0,de/ee,1,de/ee,me());return pe.spot2=new go.Spot(Ce.x,Ce.y),Ve(Ce),pe}),go.Shape.setFigureParameter("SquareArrow",0,new cn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.7);var se=new go.Geometry,de=new go.PathFigure(ne,.5*ee,!0);return se.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ue*ne,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,0)),de.add(new go.PathSegment(go.PathSegment.Line,ue*ne,0).close()),se.spot1=go.Spot.TopLeft,se.spot2=new go.Spot(ue,1),se}),go.Shape.defineFigureGenerator("Cone1",function(Ee,ne,ee){var ue=new go.Geometry,se=Ue*.5,de=Ue*.1,pe=new go.PathFigure(0,.9*ee,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Line,ne,.9*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,ee,ne,(.9+de)*ee,(.5+se)*ne,ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-se)*ne,ee,0,(.9+de)*ee).close()),ue.spot1=new go.Spot(.25,.5),ue.spot2=new go.Spot(.75,.97),ue}),go.Shape.defineFigureGenerator("Cone2",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,.9*ee,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.9*ee,(1-.85/.9)*ne,ee,.85/.9*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.9*ee).close());var de=new go.PathFigure(0,.9*ee,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ne,.9*ee,(1-.85/.9)*ne,.8*ee,.85/.9*ne,.8*ee)),ue.spot1=new go.Spot(.25,.5),ue.spot2=new go.Spot(.75,.82),ue}),go.Shape.defineFigureGenerator("Cube1",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(.5*ne,ee,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.85*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.15*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.15*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee).close());var de=new go.PathFigure(.5*ne,ee,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.3*ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,.15*ee)),de.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.3*ee)),de.add(new go.PathSegment(go.PathSegment.Line,ne,.15*ee)),ue.spot1=new go.Spot(0,.3),ue.spot2=new go.Spot(.5,.85),ue}),go.Shape.defineFigureGenerator("Cube2",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,.3*ee,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,0).close());var de=new go.PathFigure(0,.3*ee,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.3*ee)),de.add(new go.PathSegment(go.PathSegment.Line,ne,0)),de.add(new go.PathSegment(go.PathSegment.Move,.7*ne,.3*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ee)),ue.spot1=new go.Spot(0,.3),ue.spot2=new go.Spot(.7,1),ue}),go.Shape.defineFigureGenerator("Cylinder1",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=5),ue=Math.min(ue,ee/3);var se=new go.Geometry,de=Ue*.5,pe=new go.PathFigure(0,ue,!0);se.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,Ue*ue,(.5-de)*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,1*ne,ue,(.5+de)*ne,0,1*ne,Ue*ue)),pe.add(new go.PathSegment(go.PathSegment.Line,ne,ee-ue)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,1*ee,1*ne,ee-Ue*ue,(.5+de)*ne,1*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-ue,(.5-de)*ne,1*ee,0,ee-Ue*ue)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ue));var ye=new go.PathFigure(ne,ue,!1);return se.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,2*ue,1*ne,2*ue-Ue*ue,(.5+de)*ne,2*ue)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,ue,(.5-de)*ne,2*ue,0,2*ue-Ue*ue)),se.spot1=new go.Spot(0,0,0,2*ue),se.spot2=new go.Spot(1,1),se}),go.Shape.defineFigureGenerator("Cylinder2",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=5),ue=Math.min(ue,ee/3);var se=new go.Geometry,de=Ue*.5,pe=new go.PathFigure(0,ee-ue,!0);se.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,0,ue)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,Ue*ue,(.5-de)*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne,ue,(.5+de)*ne,0,ne,Ue*ue)),pe.add(new go.PathSegment(go.PathSegment.Line,ne,ee-ue)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,ee,ne,ee-Ue*ue,(.5+de)*ne,ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-ue,(.5-de)*ne,ee,0,ee-Ue*ue));var ye=new go.PathFigure(0,ee-ue,!1);return se.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,ee-2*ue,0,ee-ue-Ue*ue,(.5-de)*ne,ee-2*ue)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ne,ee-ue,(.5+de)*ne,ee-2*ue,ne,ee-ue-Ue*ue)),se.spot1=new go.Spot(0,0),se.spot2=new go.Spot(1,1,0,-2*ue),se}),go.Shape.defineFigureGenerator("Cylinder3",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=5),ue=Math.min(ue,ne/3);var se=new go.Geometry,de=Ue*.5,pe=new go.PathFigure(ue,0,!0);se.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne-ue,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*ee,ne-Ue*ue,0,ne,(.5-de)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne-ue,ee,ne,(.5+de)*ee,ne-Ue*ue,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,ue,ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,Ue*ue,ee,0,(.5+de)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ue,0,0,(.5-de)*ee,Ue*ue,0));var ye=new go.PathFigure(ue,0,!1);return se.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,2*ue,.5*ee,ue+Ue*ue,0,2*ue,(.5-de)*ee)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ue,ee,2*ue,(.5+de)*ee,ue+Ue*ue,ee)),se.spot1=new go.Spot(0,0,2*ue,0),se.spot2=new go.Spot(1,1),se}),go.Shape.defineFigureGenerator("Cylinder4",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=5),ue=Math.min(ue,ne/3);var se=new go.Geometry,de=Ue*.5,pe=new go.PathFigure(ne-ue,0,!0);se.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*ee,ne-Ue*ue,0,ne,(.5-de)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne-ue,ee,ne,(.5+de)*ee,ne-Ue*ue,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,ue,ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,Ue*ue,ee,0,(.5+de)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ue,0,0,(.5-de)*ee,Ue*ue,0)),pe.add(new go.PathSegment(go.PathSegment.Line,ne-ue,0));var ye=new go.PathFigure(ne-ue,0,!1);return se.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,ne-2*ue,.5*ee,ne-ue-Ue*ue,0,ne-2*ue,(.5-de)*ee)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ne-ue,ee,ne-2*ue,(.5+de)*ee,ne-ue-Ue*ue,ee)),se.spot1=new go.Spot(0,0),se.spot2=new go.Spot(1,1,-2*ue,0),se}),go.Shape.defineFigureGenerator("Prism1",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(.25*ne,.25*ee,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var de=new go.PathFigure(.25*ne,.25*ee,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*ne,ee)),ue.spot1=new go.Spot(.408,.172),ue.spot2=new go.Spot(.833,.662),ue}),go.Shape.defineFigureGenerator("Prism2",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,.25*ee,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var de=new go.PathFigure(0,ee,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.5*ee)),de.add(new go.PathSegment(go.PathSegment.Line,ne,.25*ee)),de.add(new go.PathSegment(go.PathSegment.Move,0,.25*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.5*ee)),ue.spot1=new go.Spot(.25,.5),ue.spot2=new go.Spot(.75,.75),ue}),go.Shape.defineFigureGenerator("Pyramid1",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(.5*ne,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee).close());var de=new go.PathFigure(.5*ne,0,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*ne,ee)),ue.spot1=new go.Spot(.25,.367),ue.spot2=new go.Spot(.75,.875),ue}),go.Shape.defineFigureGenerator("Pyramid2",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(.5*ne,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.85*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee).close());var de=new go.PathFigure(.5*ne,0,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.7*ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee)),de.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.7*ee)),de.add(new go.PathSegment(go.PathSegment.Line,ne,.85*ee)),ue.spot1=new go.Spot(.25,.367),ue.spot2=new go.Spot(.75,.875),ue}),go.Shape.defineFigureGenerator("Actor",function(Ee,ne,ee){var ue=new go.Geometry,se=.2,de=.1,pe=Ue*se,ye=Ue*de,Ce=.5,Re=.1,Oe=new go.PathFigure(Ce*ne,(Re+de)*ee,!0);ue.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-se)*ne,Re*ee,(Ce-pe)*ne,(Re+de)*ee,(Ce-se)*ne,(Re+ye)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne,(Re-de)*ee,(Ce-se)*ne,(Re-ye)*ee,(Ce-pe)*ne,(Re-de)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+se)*ne,Re*ee,(Ce+pe)*ne,(Re-de)*ee,(Ce+se)*ne,(Re-ye)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne,(Re+de)*ee,(Ce+se)*ne,(Re+ye)*ee,(Ce+pe)*ne,(Re+de)*ee));var We=.05,Be=Ue*We;Ce=.05,Re=.25;var Ie=new go.PathFigure(.5*ne,.2*ee,!0);return ue.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,.95*ne,.2*ee)),Ce=.95,Re=.25,Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+We)*ne,Re*ee,(Ce+Be)*ne,(Re-We)*ee,(Ce+We)*ne,(Re-Be)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,ne,.6*ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.6*ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.35*ee)),We=.025,Be=Ue*We,Ce=.825,Re=.35,Ie.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne,(Re-We)*ee,(Ce+We)*ne,(Re-Be)*ee,(Ce+Be)*ne,(Re-We)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-We)*ne,Re*ee,(Ce-Be)*ne,(Re-We)*ee,(Ce-We)*ne,(Re-Be)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,.8*ne,ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,.55*ne,ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.7*ee)),We=.05,Be=Ue*We,Ce=.5,Re=.7,Ie.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne,(Re-We)*ee,(Ce+We)*ne,(Re-Be)*ee,(Ce+Be)*ne,(Re-We)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-We)*ne,Re*ee,(Ce-Be)*ne,(Re-We)*ee,(Ce-We)*ne,(Re-Be)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,.45*ne,ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*ne,ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.35*ee)),We=.025,Be=Ue*We,Ce=.175,Re=.35,Ie.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne,(Re-We)*ee,(Ce+We)*ne,(Re-Be)*ee,(Ce+Be)*ne,(Re-We)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-We)*ne,Re*ee,(Ce-Be)*ne,(Re-We)*ee,(Ce-We)*ne,(Re-Be)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.6*ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),We=.05,Be=Ue*We,Ce=.05,Re=.25,Ie.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne,(Re-We)*ee,(Ce-We)*ne,(Re-Be)*ee,(Ce-Be)*ne,(Re-We)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.2*ee)),ue.spot1=new go.Spot(.2,.2),ue.spot2=new go.Spot(.8,.65),ue}),go.Shape.setFigureParameter("Card",0,new cn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.2);var se=new go.Geometry,de=new go.PathFigure(ne,0,!0);return se.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ue*ee)),de.add(new go.PathSegment(go.PathSegment.Line,ue*ne,0).close()),se.spot1=new go.Spot(0,ue),se.spot2=go.Spot.BottomRight,se}),go.Shape.defineFigureGenerator("Collate",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(.5*ne,.5*ee,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*ee));var de=new go.PathFigure(.5*ne,.5*ee,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee)),de.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*ee)),ue.spot1=new go.Spot(.25,0),ue.spot2=new go.Spot(.75,.25),ue}),go.Shape.defineFigureGenerator("CreateRequest",function(Ee,ne,ee){var ue=new go.Geometry,se=Ee?Ee.parameter1:NaN;isNaN(se)&&(se=.1);var de=new go.PathFigure(0,0,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne,0)),de.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var pe=new go.PathFigure(0,se*ee,!1);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne,se*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,ne,(1-se)*ee)),ue}),go.Shape.defineFigureGenerator("Database",function(Ee,ne,ee){var ue=new go.Geometry,se=Ue*.5,de=Ue*.1,pe=new go.PathFigure(ne,.1*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne,.9*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,ee,ne,(.9+de)*ee,(.5+se)*ne,ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-se)*ne,ee,0,(.9+de)*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,(.1-de)*ee,(.5-se)*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne,.1*ee,(.5+se)*ne,0,ne,(.1-de)*ee));var ye=new go.PathFigure(ne,.1*ee,!1);return ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.2*ee,ne,(.1+de)*ee,(.5+se)*ne,.2*ee)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ee,(.5-se)*ne,.2*ee,0,(.1+de)*ee)),ye.add(new go.PathSegment(go.PathSegment.Move,ne,.2*ee)),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.3*ee,ne,(.2+de)*ee,(.5+se)*ne,.3*ee)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ee,(.5-se)*ne,.3*ee,0,(.2+de)*ee)),ye.add(new go.PathSegment(go.PathSegment.Move,ne,.3*ee)),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.4*ee,ne,(.3+de)*ee,(.5+se)*ne,.4*ee)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ee,(.5-se)*ne,.4*ee,0,(.3+de)*ee)),ue.spot1=new go.Spot(0,.4),ue.spot2=new go.Spot(1,.9),ue}),go.Shape.defineFigureGenerator("DataStorage",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*ne,ee,ne,0,ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ne,.9*ee,.25*ne,.1*ee).close()),ue.spot1=new go.Spot(.226,0),ue.spot2=new go.Spot(.81,1),ue}),go.Shape.defineFigureGenerator("DiskStorage",function(Ee,ne,ee){var ue=new go.Geometry,se=Ue*.5,de=Ue*.1,pe=new go.PathFigure(ne,.1*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne,.9*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,ee,ne,(.9+de)*ee,(.5+se)*ne,ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-se)*ne,ee,0,(.9+de)*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,(.1-de)*ee,(.5-se)*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne,.1*ee,(.5+se)*ne,0,ne,(.1-de)*ee));var ye=new go.PathFigure(ne,.1*ee,!1);return ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.2*ee,ne,(.1+de)*ee,(.5+se)*ne,.2*ee)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ee,(.5-se)*ne,.2*ee,0,(.1+de)*ee)),ye.add(new go.PathSegment(go.PathSegment.Move,ne,.2*ee)),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.3*ee,ne,(.2+de)*ee,(.5+se)*ne,.3*ee)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ee,(.5-se)*ne,.3*ee,0,(.2+de)*ee)),ue.spot1=new go.Spot(0,.3),ue.spot2=new go.Spot(1,.9),ue}),go.Shape.defineFigureGenerator("Display",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(.25*ne,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*ne,ee,ne,0,ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.25*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close()),ue.spot1=new go.Spot(.25,0),ue.spot2=new go.Spot(.75,1),ue}),go.Shape.defineFigureGenerator("DividedEvent",function(Ee,ne,ee){var ue=new go.Geometry,se=Ee?Ee.parameter1:NaN;isNaN(se)?se=.2:se<.15&&(se=.15);var de=Ue*.2,pe=new go.PathFigure(0,.2*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,0,0,(.2-de)*ee,(.2-de)*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne,.2*ee,(.8+de)*ne,0,ne,(.2-de)*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,ne,.8*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,ee,ne,(.8+de)*ee,(.8+de)*ne,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*ne,ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*ee,(.2-de)*ne,ee,0,(.8+de)*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee));var ye=new go.PathFigure(0,se*ee,!1);return ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne,se*ee)),ue}),go.Shape.defineFigureGenerator("DividedProcess",function(Ee,ne,ee){var ue=new go.Geometry,se=Ee?Ee.parameter1:NaN;(isNaN(se)||se<.1)&&(se=.1);var de=new go.PathFigure(0,0,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne,0)),de.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var pe=new go.PathFigure(0,se*ee,!1);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne,se*ee)),ue}),go.Shape.defineFigureGenerator("Document",function(Ee,ne,ee){var ue=new go.Geometry;ee=ee/.8;var se=new go.PathFigure(0,.7*ee,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*ne,.4*ee,.5*ne,ee).close()),ue.spot1=go.Spot.TopLeft,ue.spot2=new go.Spot(1,.6),ue}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Ee,ne,ee){var ue=new go.Geometry,se=Ee?Ee.parameter1:NaN;(isNaN(se)||se<.2)&&(se=.2);var de=new go.PathFigure(0,0,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne,0)),de.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var pe=new go.PathFigure(se*ne,0,!1);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,0,se*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,ne,se*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,(1-se)*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,se*ne,ee)),pe.add(new go.PathSegment(go.PathSegment.Move,(1-se)*ne,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,ne,(1-se)*ee)),ue}),go.Shape.defineFigureGenerator("ExternalProcess",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(.5*ne,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close());var de=new go.PathFigure(.1*ne,.4*ee,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.6*ee)),de.add(new go.PathSegment(go.PathSegment.Move,.9*ne,.6*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.4*ee)),de.add(new go.PathSegment(go.PathSegment.Move,.6*ne,.1*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.1*ee)),de.add(new go.PathSegment(go.PathSegment.Move,.4*ne,.9*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.9*ee)),ue.spot1=new go.Spot(.25,.25),ue.spot2=new go.Spot(.75,.75),ue}),go.Shape.defineFigureGenerator("File",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var de=new go.PathFigure(.75*ne,0,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.25*ee)),de.add(new go.PathSegment(go.PathSegment.Line,ne,.25*ee)),ue.spot1=new go.Spot(0,.25),ue.spot2=go.Spot.BottomRight,ue}),go.Shape.defineFigureGenerator("Interrupt",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(ne,.5*ee,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*ee));var de=new go.PathFigure(ne,.5*ee,!1);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne,ee));var pe=new go.PathFigure(ne,.5*ee,!1);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ue.spot1=new go.Spot(0,.25),ue.spot2=new go.Spot(.5,.75),ue}),go.Shape.defineFigureGenerator("InternalStorage",function(Ee,ne,ee){var ue=new go.Geometry,se=Ee?Ee.parameter1:NaN,de=Ee?Ee.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(de)&&(de=.1);var pe=new go.PathFigure(0,0,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne,0)),pe.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ye=new go.PathFigure(se*ne,0,!1);return ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,se*ne,ee)),ye.add(new go.PathSegment(go.PathSegment.Move,0,de*ee)),ye.add(new go.PathSegment(go.PathSegment.Line,ne,de*ee)),ue}),go.Shape.defineFigureGenerator("Junction",function(Ee,ne,ee){var ue=new go.Geometry,se=1/Math.SQRT2,de=(1-1/Math.SQRT2)/2,pe=Ue*.5,ye=.5,Ce=new go.PathFigure(ne,ye*ee,!0);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,ee,ne,(ye+pe)*ee,(ye+pe)*ne,ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,ye*ee,(ye-pe)*ne,ee,0,(ye+pe)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,0,0,(ye-pe)*ee,(ye-pe)*ne,0)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ne,ye*ee,(ye+pe)*ne,0,ne,(ye-pe)*ee));var Re=new go.PathFigure((de+se)*ne,(de+se)*ee,!1);return ue.add(Re),Re.add(new go.PathSegment(go.PathSegment.Line,de*ne,de*ee)),Re.add(new go.PathSegment(go.PathSegment.Move,de*ne,(de+se)*ee)),Re.add(new go.PathSegment(go.PathSegment.Line,(de+se)*ne,de*ee)),ue}),go.Shape.defineFigureGenerator("LinedDocument",function(Ee,ne,ee){var ue=new go.Geometry;ee=ee/.8;var se=new go.PathFigure(0,.7*ee,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*ne,.4*ee,.5*ne,ee).close());var de=new go.PathFigure(.1*ne,0,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.75*ee)),ue.spot1=new go.Spot(.1,0),ue.spot2=new go.Spot(1,.6),ue}),go.Shape.defineFigureGenerator("LoopLimit",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,ee,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.25*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,ee).close()),ue.spot1=new go.Spot(0,.25),ue.spot2=go.Spot.BottomRight,ue}),go.Shape.defineFigureGenerator("MagneticTape",function(Ee,ne,ee){var ue=new go.Geometry,se=Ue*.5,de=.5,pe=new go.PathFigure(.5*ne,ee,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,de*ee,(de-se)*ne,ee,0,(de+se)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,de*ne,0,0,(de-se)*ee,(de-se)*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne,de*ee,(de+se)*ne,0,ne,(de-se)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(de+.1)*ne,.9*ee,ne,(de+se)*ee,(de+se)*ne,.9*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,ne,.9*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*ne,ee)),ue.spot1=new go.Spot(.15,.15),ue.spot2=new go.Spot(.85,.8),ue}),go.Shape.defineFigureGenerator("ManualInput",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(ne,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee).close()),ue.spot1=new go.Spot(0,.25),ue.spot2=go.Spot.BottomRight,ue}),go.Shape.defineFigureGenerator("MessageFromUser",function(Ee,ne,ee){var ue=new go.Geometry,se=Ee?Ee.parameter1:NaN;isNaN(se)&&(se=.7);var de=new go.PathFigure(0,0,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne,0)),de.add(new go.PathSegment(go.PathSegment.Line,se*ne,.5*ee)),de.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ue.spot1=go.Spot.TopLeft,ue}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Ee,ne,ee){var ue=new go.Geometry,se=Ee?Ee.parameter1:NaN;isNaN(se)&&(se=.25);var de=new go.PathFigure(0,0,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*ne,se*ee)),de.add(new go.PathSegment(go.PathSegment.Line,ne,0)),de.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),de.add(new go.PathSegment(go.PathSegment.Line,.5*ne,(1-se)*ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ue}),go.Shape.defineFigureGenerator("MicroformRecording",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.15*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.85*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ue.spot1=new go.Spot(0,.25),ue.spot2=new go.Spot(1,.75),ue}),go.Shape.defineFigureGenerator("MultiDocument",function(Ee,ne,ee){var ue=new go.Geometry;ee=ee/.8;var se=new go.PathFigure(ne,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,.44*ee,.96*ne,.47*ee,.93*ne,.45*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.54*ee,.86*ne,.57*ee,.83*ne,.55*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.4*ne,.4*ee,.4*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,0).close());var de=new go.PathFigure(.1*ne,.2*ee,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.54*ee)),de.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.1*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.1*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.44*ee)),ue.spot1=new go.Spot(0,.25),ue.spot2=new go.Spot(.8,.77),ue}),go.Shape.defineFigureGenerator("MultiProcess",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(.1*ne,.1*ee,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.9*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.9*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.2*ee).close());var de=new go.PathFigure(.2*ne,.1*ee,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.1*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*ee)),de.add(new go.PathSegment(go.PathSegment.Move,.1*ne,.2*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.9*ee)),ue.spot1=new go.Spot(0,.2),ue.spot2=new go.Spot(.8,1),ue}),go.Shape.defineFigureGenerator("OfflineStorage",function(Ee,ne,ee){var ue=new go.Geometry,se=Ee?Ee.parameter1:NaN;isNaN(se)&&(se=.1);var de=1-se,pe=new go.PathFigure(0,0,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*ne,ee).close());var ye=new go.PathFigure(.5*se*ne,se*ee,!1);return ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,(1-.5*se)*ne,se*ee)),ue}),go.Shape.defineFigureGenerator("OffPageConnector",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ue.spot1=go.Spot.TopLeft,ue.spot2=new go.Spot(.75,1),ue}),go.Shape.defineFigureGenerator("Or",function(Ee,ne,ee){var ue=new go.Geometry,se=Ue*.5,de=.5,pe=new go.PathFigure(ne,de*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,de*ne,ee,ne,(de+se)*ee,(de+se)*ne,ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,de*ee,(de-se)*ne,ee,0,(de+se)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,de*ne,0,0,(de-se)*ee,(de-se)*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne,de*ee,(de+se)*ne,0,ne,(de-se)*ee));var ye=new go.PathFigure(ne,.5*ee,!1);return ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),ye.add(new go.PathSegment(go.PathSegment.Move,.5*ne,ee)),ye.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),ue}),go.Shape.defineFigureGenerator("PaperTape",function(Ee,ne,ee){var ue=new go.Geometry;ee=ee/.8;var se=new go.PathFigure(0,.7*ee,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.3*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.3*ee,.5*ne,.6*ee,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*ne,.4*ee,.5*ne,ee).close()),ue.spot1=new go.Spot(0,.49),ue.spot2=new go.Spot(1,.75),ue}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Ee,ne,ee){var ue=new go.Geometry,se=Ee?Ee.parameter1:NaN,de=Ee?Ee.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(de)&&(de=.3);var pe=new go.PathFigure(0,0,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne,0)),pe.add(new go.PathSegment(go.PathSegment.Line,(1-de)*ne,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ue}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Ee,ne,ee){var ue=new go.Geometry,se=Ee?Ee.parameter1:NaN,de=Ee?Ee.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(de)&&(de=.3);var pe=new go.PathFigure(0,0,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,(1-de)*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Line,ne,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,(1-de)*ne,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ue}),go.Shape.defineFigureGenerator("Procedure",function(Ee,ne,ee){var ue=new go.Geometry,se=Ee?Ee.parameter1:NaN;isNaN(se)&&(se=.1);var de=new go.PathFigure(0,0,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne,0)),de.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var pe=new go.PathFigure((1-se)*ne,0,!1);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,(1-se)*ne,ee)),pe.add(new go.PathSegment(go.PathSegment.Move,se*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Line,se*ne,ee)),ue}),go.Shape.defineFigureGenerator("Process",function(Ee,ne,ee){var ue=new go.Geometry,se=Ee?Ee.parameter1:NaN;isNaN(se)&&(se=.1);var de=new go.PathFigure(0,0,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne,0)),de.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var pe=new go.PathFigure(se*ne,0,!1);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,se*ne,ee)),ue.spot2=go.Spot.BottomRight,ue}),go.Shape.defineFigureGenerator("Sort",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(.5*ne,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close());var de=new go.PathFigure(0,.5*ee,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne,.5*ee)),ue.spot1=new go.Spot(.25,.25),ue.spot2=new go.Spot(.75,.5),ue}),go.Shape.defineFigureGenerator("Start",function(Ee,ne,ee){var ue=new go.Geometry,se=Ee?Ee.parameter1:NaN;isNaN(se)&&(se=.25);var de=new go.PathFigure(se*ne,0,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*ne,.5*ee,.25*ne,.5*ee)),de.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*ne,.5*ee,.25*ne,.5*ee));var pe=new go.PathFigure(se*ne,0,!1);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,se*ne,ee)),pe.add(new go.PathSegment(go.PathSegment.Move,(1-se)*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Line,(1-se)*ne,ee)),ue.spot1=new go.Spot(se,0),ue.spot2=new go.Spot(1-se,1),ue}),go.Shape.defineFigureGenerator("Terminator",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(.25*ne,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*ne,.5*ee,.25*ne,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*ne,.5*ee,.25*ne,.5*ee)),ue.spot1=new go.Spot(.23,0),ue.spot2=new go.Spot(.77,1),ue}),go.Shape.defineFigureGenerator("TransmittalTape",function(Ee,ne,ee){var ue=new go.Geometry,se=Ee?Ee.parameter1:NaN;isNaN(se)&&(se=.1);var de=new go.PathFigure(0,0,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne,0)),de.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),de.add(new go.PathSegment(go.PathSegment.Line,.75*ne,(1-se)*ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,(1-se)*ee).close()),ue.spot1=go.Spot.TopLeft,ue}),go.Shape.defineFigureGenerator("AndGate",function(Ee,ne,ee){var ue=new go.Geometry,se=Ue*.5,de=new go.PathFigure(0,0,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),de.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*ee,(.5+se)*ne,0,ne,(.5-se)*ee)),de.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,ee,ne,(.5+se)*ee,(.5+se)*ne,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ue.spot1=go.Spot.TopLeft,ue.spot2=new go.Spot(.55,1),ue}),go.Shape.defineFigureGenerator("Buffer",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ue.spot1=new go.Spot(0,.25),ue.spot2=new go.Spot(.5,.75),ue}),go.Shape.defineFigureGenerator("Clock",function(Ee,ne,ee){var ue=new go.Geometry,se=Ue*.5,de=.5,pe=new go.PathFigure(ne,de*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,de*ne,ee,ne,(de+se)*ee,(de+se)*ne,ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,de*ee,(de-se)*ne,ee,0,(de+se)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,de*ne,0,0,(de-se)*ee,(de-se)*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne,de*ee,(de+se)*ne,0,ne,(de-se)*ee));var ye=new go.PathFigure(ne,de*ee,!1);ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne,de*ee));var Ce=new go.PathFigure(.8*ne,.75*ee,!1);return ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.25*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.25*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.75*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.75*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.25*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.25*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.75*ee)),ue}),go.Shape.defineFigureGenerator("Ground",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(.5*ne,0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.3*ne,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.4*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,ee)),ue}),go.Shape.defineFigureGenerator("Inverter",function(Ee,ne,ee){var ue=new go.Geometry,se=Ue*.1,de=.1,pe=.9,ye=.5,Ce=new go.PathFigure(.8*ne,.5*ee,!0);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,0,ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ce.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.5*ee));var Re=new go.PathFigure((pe+de)*ne,ye*ee,!0);return ue.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye+de)*ee,(pe+de)*ne,(ye+se)*ee,(pe+se)*ne,(ye+de)*ee)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(pe-de)*ne,ye*ee,(pe-se)*ne,(ye+de)*ee,(pe-de)*ne,(ye+se)*ee)),Re.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye-de)*ee,(pe-de)*ne,(ye-se)*ee,(pe-se)*ne,(ye-de)*ee)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*ne,ye*ee,(pe+se)*ne,(ye-de)*ee,(pe+de)*ne,(ye-se)*ee)),ue.spot1=new go.Spot(0,.25),ue.spot2=new go.Spot(.4,.75),ue}),go.Shape.defineFigureGenerator("NandGate",function(Ee,ne,ee){var ue=new go.Geometry,se=Ue*.5,de=Ue*.4,pe=Ue*.1,ye=.1,Ce=.9,Re=.5,Oe=new go.PathFigure(.8*ne,.5*ee,!0);ue.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,.4*ne,ee,.8*ne,(.5+de)*ee,(.4+se)*ne,ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,0,0)),Oe.add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.5*ee,(.4+se)*ne,0,.8*ne,(.5-de)*ee));var We=new go.PathFigure((Ce+ye)*ne,Re*ee,!0);return ue.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne,(Re+ye)*ee,(Ce+ye)*ne,(Re+pe)*ee,(Ce+pe)*ne,(Re+ye)*ee)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-ye)*ne,Re*ee,(Ce-pe)*ne,(Re+ye)*ee,(Ce-ye)*ne,(Re+pe)*ee)),We.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne,(Re-ye)*ee,(Ce-ye)*ne,(Re-pe)*ee,(Ce-pe)*ne,(Re-ye)*ee)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+ye)*ne,Re*ee,(Ce+pe)*ne,(Re-ye)*ee,(Ce+ye)*ne,(Re-pe)*ee)),ue.spot1=new go.Spot(0,.05),ue.spot2=new go.Spot(.55,.95),ue}),go.Shape.defineFigureGenerator("NorGate",function(Ee,ne,ee){var ue=new go.Geometry,se=.5,de=Ue*se,pe=0,ye=.5,Ce=new go.PathFigure(.8*ne,.5*ee,!0);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.7*ne,(ye+de)*ee,(pe+de)*ne,(ye+se)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ne,.75*ee,.25*ne,.25*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.5*ee,(pe+de)*ne,(ye-se)*ee,.7*ne,(ye-de)*ee)),se=.1,de=Ue*.1,pe=.9,ye=.5;var Re=new go.PathFigure((pe-se)*ne,ye*ee,!0);return ue.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye-se)*ee,(pe-se)*ne,(ye-de)*ee,(pe-de)*ne,(ye-se)*ee)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(pe+se)*ne,ye*ee,(pe+de)*ne,(ye-se)*ee,(pe+se)*ne,(ye-de)*ee)),Re.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye+se)*ee,(pe+se)*ne,(ye+de)*ee,(pe+de)*ne,(ye+se)*ee)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(pe-se)*ne,ye*ee,(pe-de)*ne,(ye+se)*ee,(pe-se)*ne,(ye+de)*ee)),ue.spot1=new go.Spot(.2,.25),ue.spot2=new go.Spot(.6,.75),ue}),go.Shape.defineFigureGenerator("OrGate",function(Ee,ne,ee){var ue=new go.Geometry,se=.5,de=Ue*se,pe=0,ye=.5,Ce=new go.PathFigure(0,0,!0);return ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*ee,(pe+de+de)*ne,(ye-se)*ee,.8*ne,(ye-de)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.8*ne,(ye+de)*ee,(pe+de+de)*ne,(ye+se)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ne,.75*ee,.25*ne,.25*ee).close()),ue.spot1=new go.Spot(.2,.25),ue.spot2=new go.Spot(.75,.75),ue}),go.Shape.defineFigureGenerator("XnorGate",function(Ee,ne,ee){var ue=new go.Geometry,se=.5,de=Ue*se,pe=.2,ye=.5,Ce=new go.PathFigure(.1*ne,0,!1);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.1*ne,ee,.35*ne,.25*ee,.35*ne,.75*ee));var Re=new go.PathFigure(.8*ne,.5*ee,!0);ue.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,ee,.7*ne,(ye+de)*ee,(pe+de)*ne,(ye+se)*ee)),Re.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,0,.45*ne,.75*ee,.45*ne,.25*ee)),Re.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.5*ee,(pe+de)*ne,(ye-se)*ee,.7*ne,(ye-de)*ee)),se=.1,de=Ue*.1,pe=.9,ye=.5;var Oe=new go.PathFigure((pe-se)*ne,ye*ee,!0);return ue.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye-se)*ee,(pe-se)*ne,(ye-de)*ee,(pe-de)*ne,(ye-se)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(pe+se)*ne,ye*ee,(pe+de)*ne,(ye-se)*ee,(pe+se)*ne,(ye-de)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye+se)*ee,(pe+se)*ne,(ye+de)*ee,(pe+de)*ne,(ye+se)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(pe-se)*ne,ye*ee,(pe-de)*ne,(ye+se)*ee,(pe-se)*ne,(ye+de)*ee)),ue.spot1=new go.Spot(.4,.25),ue.spot2=new go.Spot(.65,.75),ue}),go.Shape.defineFigureGenerator("XorGate",function(Ee,ne,ee){var ue=new go.Geometry,se=.5,de=Ue*se,pe=.2,ye=.5,Ce=new go.PathFigure(.1*ne,0,!1);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.1*ne,ee,.35*ne,.25*ee,.35*ne,.75*ee));var Re=new go.PathFigure(.2*ne,0,!0);return ue.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*ee,(pe+de)*ne,(ye-se)*ee,.9*ne,(ye-de)*ee)),Re.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,ee,.9*ne,(ye+de)*ee,(pe+de)*ne,(ye+se)*ee)),Re.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,0,.45*ne,.75*ee,.45*ne,.25*ee).close()),ue.spot1=new go.Spot(.4,.25),ue.spot2=new go.Spot(.8,.75),ue}),go.Shape.defineFigureGenerator("Capacitor",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Move,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),ue}),go.Shape.defineFigureGenerator("Resistor",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,.5*ee,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.5*ee)),ue}),go.Shape.defineFigureGenerator("Inductor",function(Ee,ne,ee){var ue=new go.Geometry,se=Ue*.1,de=.1,pe=.1,ye=.5,Ce=new go.PathFigure((pe-se*.5)*ne,ee,!1);return ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*ne,0,(pe-se)*ne,ee,(pe-de)*ne,0)),pe=.3,Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,ee,(pe+de)*ne,0,(pe+se)*ne,ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*ne,0,(pe-se)*ne,ee,(pe-de)*ne,0)),pe=.5,Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,ee,(pe+de)*ne,0,(pe+se)*ne,ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*ne,0,(pe-se)*ne,ee,(pe-de)*ne,0)),pe=.7,Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,ee,(pe+de)*ne,0,(pe+se)*ne,ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*ne,0,(pe-se)*ne,ee,(pe-de)*ne,0)),pe=.9,Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+se*.5)*ne,ee,(pe+de)*ne,0,(pe+se)*ne,ee)),ue}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Ee,ne,ee){var ue=new go.Geometry,se=Ue*.5,de=.5,pe=.5,ye=.5,Ce=new go.PathFigure((pe-de)*ne,ye*ee,!1);return ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye-de)*ee,(pe-de)*ne,(ye-se)*ee,(pe-se)*ne,(ye-de)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*ne,ye*ee,(pe+se)*ne,(ye-de)*ee,(pe+de)*ne,(ye-se)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye+de)*ee,(pe+de)*ne,(ye+se)*ee,(pe+se)*ne,(ye+de)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe-de)*ne,ye*ee,(pe-se)*ne,(ye+de)*ee,(pe-de)*ne,(ye+se)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Move,(pe-de+.1)*ne,ye*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de-.1)*ne,ye*ee,pe*ne,(ye-de)*ee,pe*ne,(ye+de)*ee)),ue}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,.75*ee,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Move,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),ue}),go.Shape.defineFigureGenerator("Diode",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(ne,0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),ue.spot1=new go.Spot(0,.25),ue.spot2=new go.Spot(.5,.75),ue}),go.Shape.defineFigureGenerator("Wifi",function(Ee,ne,ee){var ue=new go.Geometry,se=ne,de=ee;ne=ne*.38,ee=ee*.6;var pe=Ue*.8,ye=.8,Ce=0,Re=.5,Oe=(se-ne)/2,We=(de-ee)/2,Be=new go.PathFigure(Ce*ne+Oe,(Re+ye)*ee+We,!0);ue.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-ye)*ne+Oe,Re*ee+We,(Ce-pe)*ne+Oe,(Re+ye)*ee+We,(Ce-ye)*ne+Oe,(Re+pe)*ee+We)),Be.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne+Oe,(Re-ye)*ee+We,(Ce-ye)*ne+Oe,(Re-pe)*ee+We,(Ce-pe)*ne+Oe,(Re-ye)*ee+We)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-ye+pe*.5)*ne+Oe,Re*ee+We,Ce*ne+Oe,(Re-ye)*ee+We,(Ce-ye+pe*.5)*ne+Oe,(Re-pe)*ee+We)),Be.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne+Oe,(Re+ye)*ee+We,(Ce-ye+pe*.5)*ne+Oe,(Re+pe)*ee+We,Ce*ne+Oe,(Re+ye)*ee+We).close()),pe=Ue*.4,ye=.4,Ce=.2,Re=.5;var Ie=new go.PathFigure(Ce*ne+Oe,(Re+ye)*ee+We,!0);ue.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-ye)*ne+Oe,Re*ee+We,(Ce-pe)*ne+Oe,(Re+ye)*ee+We,(Ce-ye)*ne+Oe,(Re+pe)*ee+We)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne+Oe,(Re-ye)*ee+We,(Ce-ye)*ne+Oe,(Re-pe)*ee+We,(Ce-pe)*ne+Oe,(Re-ye)*ee+We)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-ye+pe*.5)*ne+Oe,Re*ee+We,Ce*ne+Oe,(Re-ye)*ee+We,(Ce-ye+pe*.5)*ne+Oe,(Re-pe)*ee+We)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne+Oe,(Re+ye)*ee+We,(Ce-ye+pe*.5)*ne+Oe,(Re+pe)*ee+We,Ce*ne+Oe,(Re+ye)*ee+We).close()),pe=Ue*.2,ye=.2,Ce=.5,Re=.5;var Qe=new go.PathFigure((Ce-ye)*ne+Oe,Re*ee+We,!0);ue.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne+Oe,(Re-ye)*ee+We,(Ce-ye)*ne+Oe,(Re-pe)*ee+We,(Ce-pe)*ne+Oe,(Re-ye)*ee+We)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+ye)*ne+Oe,Re*ee+We,(Ce+pe)*ne+Oe,(Re-ye)*ee+We,(Ce+ye)*ne+Oe,(Re-pe)*ee+We)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne+Oe,(Re+ye)*ee+We,(Ce+ye)*ne+Oe,(Re+pe)*ee+We,(Ce+pe)*ne+Oe,(Re+ye)*ee+We)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-ye)*ne+Oe,Re*ee+We,(Ce-pe)*ne+Oe,(Re+ye)*ee+We,(Ce-ye)*ne+Oe,(Re+pe)*ee+We)),pe=Ue*.4,ye=.4,Ce=.8,Re=.5;var rt=new go.PathFigure(Ce*ne+Oe,(Re-ye)*ee+We,!0);ue.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+ye)*ne+Oe,Re*ee+We,(Ce+pe)*ne+Oe,(Re-ye)*ee+We,(Ce+ye)*ne+Oe,(Re-pe)*ee+We)),rt.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne+Oe,(Re+ye)*ee+We,(Ce+ye)*ne+Oe,(Re+pe)*ee+We,(Ce+pe)*ne+Oe,(Re+ye)*ee+We)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+ye-pe*.5)*ne+Oe,Re*ee+We,Ce*ne+Oe,(Re+ye)*ee+We,(Ce+ye-pe*.5)*ne+Oe,(Re+pe)*ee+We)),rt.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne+Oe,(Re-ye)*ee+We,(Ce+ye-pe*.5)*ne+Oe,(Re-pe)*ee+We,Ce*ne+Oe,(Re-ye)*ee+We).close()),pe=Ue*.8,ye=.8,Ce=1,Re=.5;var xt=new go.PathFigure(Ce*ne+Oe,(Re-ye)*ee+We,!0);return ue.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+ye)*ne+Oe,Re*ee+We,(Ce+pe)*ne+Oe,(Re-ye)*ee+We,(Ce+ye)*ne+Oe,(Re-pe)*ee+We)),xt.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne+Oe,(Re+ye)*ee+We,(Ce+ye)*ne+Oe,(Re+pe)*ee+We,(Ce+pe)*ne+Oe,(Re+ye)*ee+We)),xt.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+ye-pe*.5)*ne+Oe,Re*ee+We,Ce*ne+Oe,(Re+ye)*ee+We,(Ce+ye-pe*.5)*ne+Oe,(Re+pe)*ee+We)),xt.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne+Oe,(Re-ye)*ee+We,(Ce+ye-pe*.5)*ne+Oe,(Re-pe)*ee+We,Ce*ne+Oe,(Re-ye)*ee+We).close()),ue}),go.Shape.defineFigureGenerator("Email",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var de=new go.PathFigure(0,0,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*ee)),de.add(new go.PathSegment(go.PathSegment.Line,ne,0)),de.add(new go.PathSegment(go.PathSegment.Move,0,ee)),de.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.54*ee)),de.add(new go.PathSegment(go.PathSegment.Move,ne,ee)),de.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.54*ee)),ue}),go.Shape.defineFigureGenerator("Ethernet",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(.35*ne,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.65*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.35*ne,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.35*ne,0).close());var de=new go.PathFigure(.1*ne,ee,!0,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.4*ne,ee)),de.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.6*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.6*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.1*ne,ee).close());var pe=new go.PathFigure(.6*ne,ee,!0,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.9*ne,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.6*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.6*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.6*ne,ee).close());var ye=new go.PathFigure(0,.5*ee,!1);return ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne,.5*ee)),ye.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.5*ee)),ye.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.4*ee)),ye.add(new go.PathSegment(go.PathSegment.Move,.75*ne,.5*ee)),ye.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.6*ee)),ye.add(new go.PathSegment(go.PathSegment.Move,.25*ne,.5*ee)),ye.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.6*ee)),ue}),go.Shape.defineFigureGenerator("Power",function(Ee,ne,ee){var ue=new go.Geometry,se=Ue*.4,de=.4,pe=.5,ye=.5,Ce=me(),Re=me(),Oe=me(),We=me();nt(pe,ye-de,pe+se,ye-de,pe+de,ye-se,pe+de,ye,.5,Ce,Ce,Re,Oe,We);var Be=Pe(Re.x,Re.y),Ie=new go.PathFigure(Re.x*ne,Re.y*ee,!0);ue.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*ne,ye*ee,Oe.x*ne,Oe.y*ee,We.x*ne,We.y*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye+de)*ee,(pe+de)*ne,(ye+se)*ee,(pe+se)*ne,(ye+de)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(pe-de)*ne,ye*ee,(pe-se)*ne,(ye+de)*ee,(pe-de)*ne,(ye+se)*ee)),nt(pe-de,ye,pe-de,ye-se,pe-se,ye-de,pe,ye-de,.5,Oe,We,Re,Ce,Ce),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Re.x*ne,Re.y*ee,Oe.x*ne,Oe.y*ee,We.x*ne,We.y*ee)),se=Ue*.3,de=.3,nt(pe-de,ye,pe-de,ye-se,pe-se,ye-de,pe,ye-de,.5,Oe,We,Re,Ce,Ce),Ie.add(new go.PathSegment(go.PathSegment.Line,Re.x*ne,Re.y*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(pe-de)*ne,ye*ee,We.x*ne,We.y*ee,Oe.x*ne,Oe.y*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye+de)*ee,(pe-de)*ne,(ye+se)*ee,(pe-se)*ne,(ye+de)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*ne,ye*ee,(pe+se)*ne,(ye+de)*ee,(pe+de)*ne,(ye+se)*ee)),nt(pe,ye-de,pe+se,ye-de,pe+de,ye-se,pe+de,ye,.5,Ce,Ce,Re,Oe,We),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Re.x*ne,Re.y*ee,We.x*ne,We.y*ee,Oe.x*ne,Oe.y*ee).close());var Ie=new go.PathFigure(.45*ne,0,!0);return ue.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.5*ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.5*ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,.55*ne,0).close()),Ve(Ce),Ve(Re),Ve(Oe),Ve(We),Ve(Be),ue.spot1=new go.Spot(.25,.45),ue.spot2=new go.Spot(.75,.8),ue}),go.Shape.defineFigureGenerator("Fallout",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,ee/2,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,180,360,ne/2,ee/2,ne/2,ee/2));function de(pe,ye,Ce){pe.add(new go.PathSegment(go.PathSegment.Move,(.3+ye)*ne,(.8+Ce)*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,(.5+ye)*ne,(.5+Ce)*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,(.1+ye)*ne,(.5+Ce)*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,(.3+ye)*ne,(.8+Ce)*ee).close())}return de(se,0,0),de(se,.4,0),de(se,.2,-.3),ue}),go.Shape.defineFigureGenerator("IrritationHazard",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(.2*ne,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.3*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee).close()),ue.spot1=new go.Spot(.3,.3),ue.spot2=new go.Spot(.7,.7),ue}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(.37*ne,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.11*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.77*ne,.04*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.33*ne,.49*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.37*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.63*ne,.86*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.77*ne,.91*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.34*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.34*ne,.78*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.44*ne,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.56*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.68*ee).close()),ue}),go.Shape.defineFigureGenerator("FireHazard",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(.1*ne,ee,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.29*ne,0,-.25*ne,.63*ee,.45*ne,.44*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.51*ne,.42*ee,.48*ne,.17*ee,.54*ne,.35*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.59*ne,.18*ee,.59*ne,.29*ee,.58*ne,.28*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*ne,.6*ee,.8*ne,.34*ee,.88*ne,.43*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.88*ne,.31*ee,.87*ne,.48*ee,.88*ne,.43*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,ee,1.17*ne,.76*ee,.82*ne,.8*ee).close()),ue.spot1=new go.Spot(.07,.445),ue.spot2=new go.Spot(.884,.958),ue}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Ee,ne,ee){var ue=new go.Geometry,se=.5,de=0,pe=0,ye=se*Ue,Ce=.4*Math.SQRT2/2+.5,Re=.5-.5*Math.SQRT2/2,Oe=1,We=.5,Be=.5,Ie=0,Qe=new go.PathFigure(Ce*ne,(1-Re)*ee,!1);return ue.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Bezier,Oe*ne,We*ee,Oe*ne,.7*ee,Oe*ne,We*ee)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(Be+de)*ne,(Ie+de)*ee,(.5+se+de)*ne,(.5-ye+de)*ee,(.5+ye+de)*ne,(.5-se+de)*ee)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+de)*ne,(.5+pe)*ee,(.5-ye+de)*ne,(.5-se+pe)*ee,(.5-se+de)*ne,(.5-ye+pe)*ee)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(.35+de)*ne,.9*ee,(.5-se+de)*ne,(.5+ye+pe)*ee,(.5-ye+de)*ne,.9*ee)),Qe.add(new go.PathSegment(go.PathSegment.Move,(.25+de)*ne,.8*ee)),Qe.add(new go.PathSegment(go.PathSegment.Line,(.35+de)*ne,.9*ee)),Qe.add(new go.PathSegment(go.PathSegment.Line,(.2+de)*ne,.95*ee)),ue}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Move,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),ue}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Move,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),ue}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,0,!1);ue.add(se);var de=new go.PathFigure(ne,ee,!1);ue.add(de);var pe=new go.PathFigure(0,.5*ee,!1);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.5*ee,.2*ne,.35*ee,.3*ne,.35*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*ee,.7*ne,.65*ee,.8*ne,.65*ee)),ue}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,.5*ee,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,ee).close()),ue}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,.2*ee,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee).close());var se=new go.PathFigure(0,.2*ee,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.2*ee)),ue}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(.7*ne,ee,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,0,.6*ne,.5*ee,0,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*ne,ee,.4*ne,.5*ee,ne,.5*ee).close());var de=new go.PathFigure(.45*ne,.73*ee,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.73*ee)),de.add(new go.PathSegment(go.PathSegment.Move,.38*ne,.5*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.63*ne,.5*ee)),de.add(new go.PathSegment(go.PathSegment.Move,.31*ne,.27*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.56*ne,.27*ee)),ue}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,0,!1);ue.add(se);var de=new go.PathFigure(.335*ne,(1-.555)*ee,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.335*ne,(1-.405)*ee)),de.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ne,(1-.405)*ee)),de.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ne,(1-.555)*ee)),de.add(new go.PathSegment(go.PathSegment.Bezier,ne,.68*ee,(1-.12)*ne,.46*ee,(1-.02)*ne,.54*ee)),de.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,.68*ee)),de.add(new go.PathSegment(go.PathSegment.Bezier,.335*ne,(1-.555)*ee,.02*ne,.54*ee,.12*ne,.46*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.365*ne,(1-.595)*ee));var pe=.5-.285,ye=.5,Ce=pe,Re=Math.PI/4,Oe=4*(1-Math.cos(Re))/(3*Math.sin(Re)),We=Oe*.5,Be=pe,Ie=pe,Qe=Oe*Be,rt=Oe*Ie;de.add(new go.PathSegment(go.PathSegment.Bezier,(ye-Be)*ne,Ce*ee,(ye-(Qe+Be)/2)*ne,(Ce+(Ie+rt)/2)*ee,(ye-Be)*ne,(Ce+rt)*ee)),de.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,(Ce-Ie)*ee,(ye-Be)*ne,(Ce-rt)*ee,(ye-Qe)*ne,(Ce-Ie)*ee)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ye+Be)*ne,Ce*ee,(ye+Qe)*ne,(Ce-Ie)*ee,(ye+Be)*ne,(Ce-rt)*ee)),de.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*ne,(1-.595)*ee,(ye+Be)*ne,(Ce+rt)*ee,(ye+(Qe+Be)/2)*ne,(Ce+(Ie+rt)/2)*ee)),de.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*ne,(1-.595)*ee)),de.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ne,(1-.555)*ee)),de.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ne,(1-.405)*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.335*ne,(1-.405)*ee));var xt=new go.PathFigure(.2*ne,ee,!1);ue.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.8*ee));var gt=new go.PathFigure(.8*ne,ee,!1);return ue.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.8*ee)),ue}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(.1*ne,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,ee).close());var de=new go.PathFigure(.2*ne,.2*ee,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*ee)),de.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.4*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.4*ee)),de.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.6*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.6*ee)),de.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.8*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.8*ee)),ue}),go.Shape.defineFigureGenerator("BpmnEventError",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,ee,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.33*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*ne,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.33*ne,.5*ee).close()),ue}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,0,!1);ue.add(se);var de=new go.PathFigure(ne,ee,!1);ue.add(de);var pe=new go.PathFigure(.1*ne,ee,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.9*ne,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*ee).close()),ue}),go.Shape.defineFigureGenerator("Caution",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(.05*ne,ee,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*ne,.8*ee,0,ee,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.55*ne,.1*ee,.5*ne,0,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.95*ne,.9*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,ee,ne,ee,ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.05*ne,ee));var de=.05;return se.add(new go.PathSegment(go.PathSegment.Move,(.5-de)*ne,.875*ee)),se.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*ne,.875*ee,de*ne,de*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.325*ee,.575*ne,.725*ee,.625*ne,.375*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.75*ee,.375*ne,.375*ee,.425*ne,.725*ee)),ue}),go.Shape.defineFigureGenerator("Recycle",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(.45*ne,.95*ee,!1);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.95*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.185*ne,.85*ee,.17*ne,.95*ee,.15*ne,.9*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.235*ne,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,.625*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.35*ne,.65*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.275*ne,.45*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.05*ne,.45*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.05*ne,.575*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.1875*ne,.95*ee,0,.675*ee,0,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.45*ne,.95*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.775*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.22*ne,.775*ee));var de=new go.PathFigure(.475*ne,.2*ee,!1);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.4*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.225*ne,.3*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.275*ne,.175*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.325*ne,.05*ee)),de.add(new go.PathSegment(go.PathSegment.Bezier,.4*ne,.05*ee,.35*ne,0,.375*ne,0)),de.add(new go.PathSegment(go.PathSegment.Line,.575*ne,.375*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.525*ne,.4*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.475*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.315*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.32*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.05*ee)),de.add(new go.PathSegment(go.PathSegment.Bezier,.575*ne,0,.65*ne,.05*ee,.625*ne,0)),de.add(new go.PathSegment(go.PathSegment.Line,.38*ne,.0105*ee));var pe=new go.PathFigure(.675*ne,.575*ee,!1);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.875*ne,.525*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,ne,.775*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.85*ne,.95*ee,ne,.8*ee,ne,.85*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.95*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.65*ne,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.85*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.725*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.775*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.775*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,ne,.775*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.675*ne,.575*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.775*ne,.775*ee)),ue}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Ee,ne,ee){var ue=new go.Geometry,se=.5,de=Ue*.5,pe=new go.PathFigure(ne,se*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,se*ne,ee,ne,(se+de)*ee,(se+de)*ne,ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,se*ee,(se-de)*ne,ee,0,(se+de)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,se*ne,0,0,(se-de)*ee,(se-de)*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne,se*ee,(se+de)*ne,0,ne,(se-de)*ee));var ye=new go.PathFigure(se*ne,0,!1);return ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,se*ne,.15*ee)),ye.add(new go.PathSegment(go.PathSegment.Move,se*ne,ee)),ye.add(new go.PathSegment(go.PathSegment.Line,se*ne,.85*ee)),ye.add(new go.PathSegment(go.PathSegment.Move,0,se*ee)),ye.add(new go.PathSegment(go.PathSegment.Line,.15*ne,se*ee)),ye.add(new go.PathSegment(go.PathSegment.Move,ne,se*ee)),ye.add(new go.PathSegment(go.PathSegment.Line,.85*ne,se*ee)),ye.add(new go.PathSegment(go.PathSegment.Move,se*ne,se*ee)),ye.add(new go.PathSegment(go.PathSegment.Line,.58*ne,.1*ee)),ye.add(new go.PathSegment(go.PathSegment.Move,se*ne,se*ee)),ye.add(new go.PathSegment(go.PathSegment.Line,.78*ne,.54*ee)),ue}),go.Shape.defineFigureGenerator("Package",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,.15*ee,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.15*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var de=new go.PathFigure(0,.15*ee,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,0,0)),de.add(new go.PathSegment(go.PathSegment.Line,.6*ne,0)),de.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.15*ee).close()),ue.spot1=new go.Spot(0,.1),ue.spot2=new go.Spot(1,1),ue}),go.Shape.defineFigureGenerator("Class",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var de=new go.PathFigure(0,.2*ee,!1);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne,.2*ee).close());var pe=new go.PathFigure(0,.5*ee,!1);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne,.5*ee).close()),ue}),go.Shape.defineFigureGenerator("Component",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(ne,ee,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,ee).close());var de=new go.PathFigure(0,.2*ee,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.2*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.4*ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,.4*ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee).close());var pe=new go.PathFigure(0,.6*ee,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.6*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.8*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee).close()),ue}),go.Shape.defineFigureGenerator("Boat Shipment",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(.15*ne,.6*ee,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.85*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.6*ee));var de=new go.PathFigure(.15*ne,.6*ee,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.6*ee)),ue}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(ne,ee,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*ne,.33*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.66*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.33*ne,.33*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.33*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.33*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,ee).close()),ue}),go.Shape.defineFigureGenerator("Workcell",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,ee,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.65*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.35*ne,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.35*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ue}),go.Shape.defineFigureGenerator("Supermarket",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.33*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.33*ee)),se.add(new go.PathSegment(go.PathSegment.Move,ne,.33*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.66*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.66*ee)),se.add(new go.PathSegment(go.PathSegment.Move,ne,.66*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue}),go.Shape.defineFigureGenerator("TruckShipment",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var de=new go.PathFigure(ne,.8*ee,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne,.4*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.4*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.8*ee)),de.add(new go.PathSegment(go.PathSegment.Line,ne,.8*ee).close());var pe=.1,ye=Ue*.1,Ce=.2,Re=.9,Oe=new go.PathFigure((Ce-pe)*ne,Re*ee,!0);ue.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne,(Re-pe)*ee,(Ce-pe)*ne,(Re-ye)*ee,(Ce-ye)*ne,(Re-pe)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+pe)*ne,Re*ee,(Ce+ye)*ne,(Re-pe)*ee,(Ce+pe)*ne,(Re-ye)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne,(Re+pe)*ee,(Ce+pe)*ne,(Re+ye)*ee,(Ce+ye)*ne,(Re+pe)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-pe)*ne,Re*ee,(Ce-ye)*ne,(Re+pe)*ee,(Ce-pe)*ne,(Re+ye)*ee).close()),pe=.1,ye=Ue*.1,Ce=.8,Re=.9;var We=new go.PathFigure((Ce-pe)*ne,Re*ee,!0);return ue.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne,(Re-pe)*ee,(Ce-pe)*ne,(Re-ye)*ee,(Ce-ye)*ne,(Re-pe)*ee)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+pe)*ne,Re*ee,(Ce+ye)*ne,(Re-pe)*ee,(Ce+pe)*ne,(Re-ye)*ee)),We.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne,(Re+pe)*ee,(Ce+pe)*ne,(Re+ye)*ee,(Ce+ye)*ne,(Re+pe)*ee)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-pe)*ne,Re*ee,(Ce-ye)*ne,(Re+pe)*ee,(Ce-pe)*ne,(Re+ye)*ee).close()),ue}),go.Shape.defineFigureGenerator("KanbanPost",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(.2*ne,0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,0)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,ee)),ue}),go.Shape.defineFigureGenerator("Forklift",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0));var de=new go.PathFigure(0,.5*ee,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.8*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var pe=new go.PathFigure(.5*ne,.8*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.1*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.1*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.8*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.8*ee));var ye=new go.PathFigure(.5*ne,.7*ee,!1);ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne,.7*ee));var Ce=.1,Re=Ue*.1,Oe=.1,We=.9,Be=new go.PathFigure((Oe-Ce)*ne,We*ee,!0);ue.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,Oe*ne,(We-Ce)*ee,(Oe-Ce)*ne,(We-Re)*ee,(Oe-Re)*ne,(We-Ce)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+Ce)*ne,We*ee,(Oe+Re)*ne,(We-Ce)*ee,(Oe+Ce)*ne,(We-Re)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,Oe*ne,(We+Ce)*ee,(Oe+Ce)*ne,(We+Re)*ee,(Oe+Re)*ne,(We+Ce)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-Ce)*ne,We*ee,(Oe-Re)*ne,(We+Ce)*ee,(Oe-Ce)*ne,(We+Re)*ee)),Ce=.1,Re=Ue*.1,Oe=.4,We=.9;var Ie=new go.PathFigure((Oe-Ce)*ne,We*ee,!0);return ue.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Oe*ne,(We-Ce)*ee,(Oe-Ce)*ne,(We-Re)*ee,(Oe-Re)*ne,(We-Ce)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+Ce)*ne,We*ee,(Oe+Re)*ne,(We-Ce)*ee,(Oe+Ce)*ne,(We-Re)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Oe*ne,(We+Ce)*ee,(Oe+Ce)*ne,(We+Re)*ee,(Oe+Re)*ne,(We+Ce)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-Ce)*ne,We*ee,(Oe-Re)*ne,(We+Ce)*ee,(Oe-Ce)*ne,(We+Re)*ee)),ue}),go.Shape.defineFigureGenerator("RailShipment",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(.1*ne,.4*ee,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.9*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.9*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.4*ee).close());var de=new go.PathFigure(.45*ne,.7*ee,!1);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.7*ee));var pe=new go.PathFigure(.55*ne,.4*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.4*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.9*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.9*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.4*ee).close());var Oe=.05,We=Ue*.05,Be=.175,Ie=.95,ye=new go.PathFigure((Be-Oe)*ne,Ie*ee,!0);ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,Be*ne,(Ie-Oe)*ee,(Be-Oe)*ne,(Ie-We)*ee,(Be-We)*ne,(Ie-Oe)*ee)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(Be+Oe)*ne,Ie*ee,(Be+We)*ne,(Ie-Oe)*ee,(Be+Oe)*ne,(Ie-We)*ee)),ye.add(new go.PathSegment(go.PathSegment.Bezier,Be*ne,(Ie+Oe)*ee,(Be+Oe)*ne,(Ie+We)*ee,(Be+We)*ne,(Ie+Oe)*ee)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(Be-Oe)*ne,Ie*ee,(Be-We)*ne,(Ie+Oe)*ee,(Be-Oe)*ne,(Ie+We)*ee));var Oe=.05,We=Ue*.05,Be=.375,Ie=.95,Ce=new go.PathFigure((Be-Oe)*ne,Ie*ee,!0);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,Be*ne,(Ie-Oe)*ee,(Be-Oe)*ne,(Ie-We)*ee,(Be-We)*ne,(Ie-Oe)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(Be+Oe)*ne,Ie*ee,(Be+We)*ne,(Ie-Oe)*ee,(Be+Oe)*ne,(Ie-We)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,Be*ne,(Ie+Oe)*ee,(Be+Oe)*ne,(Ie+We)*ee,(Be+We)*ne,(Ie+Oe)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(Be-Oe)*ne,Ie*ee,(Be-We)*ne,(Ie+Oe)*ee,(Be-Oe)*ne,(Ie+We)*ee));var Oe=.05,We=Ue*.05,Be=.625,Ie=.95,Re=new go.PathFigure((Be-Oe)*ne,Ie*ee,!0);ue.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,Be*ne,(Ie-Oe)*ee,(Be-Oe)*ne,(Ie-We)*ee,(Be-We)*ne,(Ie-Oe)*ee)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Be+Oe)*ne,Ie*ee,(Be+We)*ne,(Ie-Oe)*ee,(Be+Oe)*ne,(Ie-We)*ee)),Re.add(new go.PathSegment(go.PathSegment.Bezier,Be*ne,(Ie+Oe)*ee,(Be+Oe)*ne,(Ie+We)*ee,(Be+We)*ne,(Ie+Oe)*ee)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Be-Oe)*ne,Ie*ee,(Be-We)*ne,(Ie+Oe)*ee,(Be-Oe)*ne,(Ie+We)*ee));var Oe=.05,We=Ue*.05,Be=.825,Ie=.95,Qe=new go.PathFigure((Be-Oe)*ne,Ie*ee,!0);ue.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Bezier,Be*ne,(Ie-Oe)*ee,(Be-Oe)*ne,(Ie-We)*ee,(Be-We)*ne,(Ie-Oe)*ee)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(Be+Oe)*ne,Ie*ee,(Be+We)*ne,(Ie-Oe)*ee,(Be+Oe)*ne,(Ie-We)*ee)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,Be*ne,(Ie+Oe)*ee,(Be+Oe)*ne,(Ie+We)*ee,(Be+We)*ne,(Ie+Oe)*ee)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(Be-Oe)*ne,Ie*ee,(Be-We)*ne,(Ie+Oe)*ee,(Be-Oe)*ne,(Ie+We)*ee).close());var rt=new go.PathFigure(0,ee,!1);return ue.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,ne,ee).close()),ue}),go.Shape.defineFigureGenerator("Warehouse",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var de=new go.PathFigure(0,.2*ee,!1);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne,.2*ee).close());var pe=new go.PathFigure(.15*ne,ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.4*ne,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.15*ne,ee).close());var ye=.05,Ce=Ue*.05,Re=.35,Oe=.775,We=new go.PathFigure((Re-ye)*ne,Oe*ee,!0);return ue.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,Re*ne,(Oe-ye)*ee,(Re-ye)*ne,(Oe-Ce)*ee,(Re-Ce)*ne,(Oe-ye)*ee)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Re+ye)*ne,Oe*ee,(Re+Ce)*ne,(Oe-ye)*ee,(Re+ye)*ne,(Oe-Ce)*ee)),We.add(new go.PathSegment(go.PathSegment.Bezier,Re*ne,(Oe+ye)*ee,(Re+ye)*ne,(Oe+Ce)*ee,(Re+Ce)*ne,(Oe+ye)*ee)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Re-ye)*ne,Oe*ee,(Re-Ce)*ne,(Oe+ye)*ee,(Re-ye)*ne,(Oe+Ce)*ee).close()),ue}),go.Shape.defineFigureGenerator("ControlCenter",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,ee,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Move,.1*ne,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*ee).close()),ue}),go.Shape.defineFigureGenerator("Bluetooth",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,.75*ee,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),ue}),go.Shape.defineFigureGenerator("Bookmark",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.4*ee)),ue}),go.Shape.defineFigureGenerator("Bookmark",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.4*ee)),ue}),go.Shape.defineFigureGenerator("Globe",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(.5*ne,0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*ee,.75*ne,0,ne,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,ee,ne,.75*ee,.75*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.25*ne,ee,0,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,.25*ee,.25*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,ee,.15*ne,.25*ee,.15*ne,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,.85*ne,.75*ee,.85*ne,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.1675*ne,.15*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8325*ne,.15*ee,.35*ne,.3*ee,.65*ne,.3*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.1675*ne,.85*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8325*ne,.85*ee,.35*ne,.7*ee,.65*ne,.7*ee)),ue}),go.Shape.defineFigureGenerator("Wave",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,.25*ee,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,.25*ee,.1*ne,0,.2*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*ne,.25*ee,.425*ne,.5*ee,.575*ne,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.25*ee,.8*ne,0,.9*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Move,0,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,.75*ee,.1*ne,.5*ee,.2*ne,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*ne,.75*ee,.425*ne,ee,.575*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.75*ee,.8*ne,.5*ee,.9*ne,.5*ee)),ue}),go.Shape.defineFigureGenerator("Operator",function(Ee,ne,ee){var ue=new go.Geometry,se=.3,de=Ue*.3,pe=.5,ye=.7,Ce=new go.PathFigure((pe-se)*ne,ye*ee,!0);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye-se)*ee,(pe-se)*ne,(ye-de)*ee,(pe-de)*ne,(ye-se)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+se)*ne,ye*ee,(pe+de)*ne,(ye-se)*ee,(pe+se)*ne,(ye-de)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye+se)*ee,(pe+se)*ne,(ye+de)*ee,(pe+de)*ne,(ye+se)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe-se)*ne,ye*ee,(pe-de)*ne,(ye+se)*ee,(pe-se)*ne,(ye+de)*ee));var Re=new go.PathFigure(0,.7*ee,!1);return ue.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,ne,.7*ee,0,0,ne,0)),ue}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(.5*ne,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.65*ee,.65*ne,.3*ee,.65*ne,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,.35*ne,.5*ee,.35*ne,.3*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.65*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.3*ne,.6*ee,.1*ne,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.65*ee,.2*ne,ee,.35*ne,.95*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.65*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,ee,.7*ne,.6*ee,.9*ne,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.65*ee,.8*ne,ee,.65*ne,.95*ee)),ue}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(ne,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,0,.075*ee,0,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*ne,ee,0,ee,.4*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.4*ee,.8*ne,ee,.85*ne,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ue}),go.Shape.defineFigureGenerator("Battery",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,ee,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Move,.4*ne,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.1*ee));var de=new go.PathFigure(0,.6*ee,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Move,0,.4*ee)),de.add(new go.PathSegment(go.PathSegment.Line,ne,.4*ee)),ue}),go.Shape.defineFigureGenerator("Delete",function(Ee,ne,ee){var ue=new go.Geometry,se=.5,de=Ue*.5,pe=.5,ye=.5,Ce=new go.PathFigure((pe-se)*ne,ye*ee,!0);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye-se)*ee,(pe-se)*ne,(ye-de)*ee,(pe-de)*ne,(ye-se)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+se)*ne,ye*ee,(pe+de)*ne,(ye-se)*ee,(pe+se)*ne,(ye-de)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye+se)*ee,(pe+se)*ne,(ye+de)*ee,(pe+de)*ne,(ye+se)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe-se)*ne,ye*ee,(pe-de)*ne,(ye+se)*ee,(pe-se)*ne,(ye+de)*ee));var Re=new go.PathFigure(.15*ne,.5*ee,!1);return ue.add(Re),Re.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.5*ee)),ue}),go.Shape.defineFigureGenerator("Flag",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,.1*ee,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Move,0,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.1*ee,.15*ne,0,.35*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.1*ee,.65*ne,.2*ee,.85*ne,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.5*ee,.85*ne,.6*ee,.65*ne,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.35*ne,.4*ee,.15*ne,.4*ee).close()),ue}),go.Shape.defineFigureGenerator("Help",function(Ee,ne,ee){var ue=new go.Geometry,se=.5,de=Ue*.5,pe=.5,ye=.5,Ce=new go.PathFigure((pe-se)*ne,ye*ee,!1);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye-se)*ee,(pe-se)*ne,(ye-de)*ee,(pe-de)*ne,(ye-se)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+se)*ne,ye*ee,(pe+de)*ne,(ye-se)*ee,(pe+se)*ne,(ye-de)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye+se)*ee,(pe+se)*ne,(ye+de)*ee,(pe+de)*ne,(ye+se)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe-se)*ne,ye*ee,(pe-de)*ne,(ye+se)*ee,(pe-se)*ne,(ye+de)*ee).close()),se=.05,de=Ue*.05,pe=.5,ye=.8;var Re=new go.PathFigure((pe-se)*ne,ye*ee,!1);return ue.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye-se)*ee,(pe-se)*ne,(ye-de)*ee,(pe-de)*ne,(ye-se)*ee)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(pe+se)*ne,ye*ee,(pe+de)*ne,(ye-se)*ee,(pe+se)*ne,(ye-de)*ee)),Re.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye+se)*ee,(pe+se)*ne,(ye+de)*ee,(pe+de)*ne,(ye+se)*ee)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(pe-se)*ne,ye*ee,(pe-de)*ne,(ye+se)*ee,(pe-se)*ne,(ye+de)*ee).close()),Re.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.7*ee)),Re.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*ee)),Re.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.2*ee,.75*ne,.475*ee,.75*ne,.225*ee)),Re.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,.35*ee,.4*ne,.2*ee,.3*ne,.25*ee)),ue}),go.Shape.defineFigureGenerator("Location",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(.5*ne,ee,!0).add(new go.PathSegment(go.PathSegment.Line,.75*ne,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,.975*ne,.025*ee,.5*ne,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*ne,.5*ee,.5*ne,0,.025*ne,.025*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.5*ne,.2*ee)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*ne,.3*ee,.1*ne,.1*ee).close()))}),go.Shape.defineFigureGenerator("Lock",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,.5*ee,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var de=new go.PathFigure(.2*ne,.5*ee,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.5*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.3*ee)),de.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.3*ee,.25*ne,0,.75*ne,0)),de.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.5*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.3*ee)),ue}),go.Shape.defineFigureGenerator("Unlocked",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,.5*ee,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var de=new go.PathFigure(.2*ne,.5*ee,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.5*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.3*ee)),de.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.3*ee,.25*ne,0,.75*ne,0)),de.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.35*ee)),ue}),go.Shape.defineFigureGenerator("Gear",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(.9375*ne,.56246875*ee,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*ne,.4375*ee)).add(new go.PathSegment(go.PathSegment.Line,.80621875*ne,.4375*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.763*ne,.3316875*ee,.79840625*ne,.39915625*ee,.7834375*ne,.3635*ee)).add(new go.PathSegment(go.PathSegment.Line,.8566875*ne,.23796875*ee)).add(new go.PathSegment(go.PathSegment.Line,.76825*ne,.14959375*ee)).add(new go.PathSegment(go.PathSegment.Line,.67596875*ne,.24184375*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*ne,.19378125*ee,.64228125*ne,.2188125*ee,.603875*ne,.2021875*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*ne,.0625*ee)).add(new go.PathSegment(go.PathSegment.Line,.4375*ne,.0625*ee)).add(new go.PathSegment(go.PathSegment.Line,.4375*ne,.19378125*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*ne,.239375*ee,.39759375*ne,.20190625*ee,.36053125*ne,.2176875*ee)).add(new go.PathSegment(go.PathSegment.Line,.2379375*ne,.14959375*ee)).add(new go.PathSegment(go.PathSegment.Line,.14953125*ne,.2379375*ee)).add(new go.PathSegment(go.PathSegment.Line,.23934375*ne,.3278125*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*ne,.4375*ee,.21765625*ne,.36059375*ee,.201875*ne,.397625*ee)).add(new go.PathSegment(go.PathSegment.Line,.0625*ne,.4375*ee)).add(new go.PathSegment(go.PathSegment.Line,.0625*ne,.5625*ee)).add(new go.PathSegment(go.PathSegment.Line,.1938125*ne,.5625*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*ne,.67596875*ee,.20221875*ne,.603875*ee,.21884375*ne,.64228125*ee)).add(new go.PathSegment(go.PathSegment.Line,.1495625*ne,.76825*ee)).add(new go.PathSegment(go.PathSegment.Line,.238*ne,.8566875*ee)).add(new go.PathSegment(go.PathSegment.Line,.3316875*ne,.76296875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*ne,.80621875*ee,.36353125*ne,.78340625*ee,.3991875*ne,.79840625*ee)).add(new go.PathSegment(go.PathSegment.Line,.43753125*ne,.9375*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*ne,.9375*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*ne,.80621875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*ne,.760625*ee,.602375*ne,.79809375*ee,.63946875*ne,.78234375*ee)).add(new go.PathSegment(go.PathSegment.Line,.76828125*ne,.8566875*ee)).add(new go.PathSegment(go.PathSegment.Line,.85671875*ne,.76825*ee)).add(new go.PathSegment(go.PathSegment.Line,.76065625*ne,.67221875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*ne,.56246875*ee,.78234375*ne,.63940625*ee,.798125*ne,.602375*ee)).add(new go.PathSegment(go.PathSegment.Line,.9375*ne,.56246875*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.5*ne,.6*ee)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*ne,.5*ee,.1*ne,.1*ee).close()))}),go.Shape.defineFigureGenerator("Hand",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,.5*ee,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*ne,.3*ee,0,.375*ee,.05*ne,.325*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.45*ne,.075*ee,.3*ne,.225*ee,.4*ne,.175*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.525*ne,.075*ee,.46*ne,.05*ee,.525*ne,.05*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,.4*ee,.525*ne,.275*ee,.475*ne,.325*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,.55*ee,ne,.4*ee,ne,.55*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.425*ne,.55*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.55*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.6*ne,.7*ee,.675*ne,.55*ee,.675*ne,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.575*ne,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.575*ne,.85*ee,.65*ne,.7*ee,.65*ne,.85*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.85*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.525*ne,.85*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.535*ne,ee,.61*ne,.85*ee,.61*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,.435*ne,ee,0,ee).close()),ue}),go.Shape.defineFigureGenerator("Map",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,.2*ee,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.25*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),se.add(new go.PathSegment(go.PathSegment.Move,.25*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,ee)),se.add(new go.PathSegment(go.PathSegment.Move,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.8*ee)),ue}),go.Shape.defineFigureGenerator("Eject",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,ee,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne,ee*.7)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee*.7).close());var de=new go.PathFigure(0,ee*.6,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne,.6*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0).close()),ue}),go.Shape.defineFigureGenerator("Pencil",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*ne,.1*ee)).add(new go.PathSegment(go.PathSegment.Line,ne,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*ne,ee)).add(new go.PathSegment(go.PathSegment.Line,.1*ne,.2*ee).close()))}),go.Shape.defineFigureGenerator("Building",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(ne*1,ee*1,!1);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee*.85)),se.add(new go.PathSegment(go.PathSegment.Line,.046*ne,ee*.85)),se.add(new go.PathSegment(go.PathSegment.Line,.046*ne,ee*.45)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee*.45)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee*.3)),se.add(new go.PathSegment(go.PathSegment.Line,.046*ne,ee*.3)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ne,ee*.3)),se.add(new go.PathSegment(go.PathSegment.Line,ne,ee*.3)),se.add(new go.PathSegment(go.PathSegment.Line,ne,ee*.45)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ne,ee*.45)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ne,ee*.85)),se.add(new go.PathSegment(go.PathSegment.Line,ne,ee*.85).close());var de=new go.PathFigure(.126*ne,.85*ee,!1);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.126*ne,.45*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.322*ne,.45*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.322*ne,.85*ee).close());var pe=new go.PathFigure(.402*ne,.85*ee,!1);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.402*ne,.45*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.598*ne,.45*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.598*ne,.85*ee).close());var ye=new go.PathFigure(.678*ne,.85*ee,!1);ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.678*ne,.45*ee)),ye.add(new go.PathSegment(go.PathSegment.Line,.874*ne,.45*ee)),ye.add(new go.PathSegment(go.PathSegment.Line,.874*ne,.85*ee).close());var Ce=new go.PathFigure(.5*ne,.1*ee,!1);return ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*ne,.3*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*ne,.3*ee).close()),ue}),go.Shape.defineFigureGenerator("Staircase",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,ee*1,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.2,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.2,ee*.8)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.4,ee*.8)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.4,ee*.6)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.6,ee*.6)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.6,ee*.4)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.8,ee*.4)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.8,ee*.2)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,ee*.2)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,ee*.15)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,ee*.15)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,ee*.35)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,ee*.35)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,ee*.55)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.35,ee*.55)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.35,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.15,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.15,ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee*.95).close()),ue}),go.Shape.defineFigureGenerator("5Bars",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,ee*1,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.184,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.184,ee*(1-.184)).close());var de=new go.PathFigure(ne*.204,ee,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne*.204,ee*(1-.184))),de.add(new go.PathSegment(go.PathSegment.Line,ne*.388,ee*(1-.184*2))),de.add(new go.PathSegment(go.PathSegment.Line,ne*.388,ee*1).close());var pe=new go.PathFigure(ne*.408,ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.408,ee*(1-.184*2))),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.592,ee*(1-.184*3))),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.592,ee*1).close());var ye=new go.PathFigure(ne*.612,ee,!0);ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.612,ee*(1-.184*3))),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.796,ee*(1-.184*4))),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.796,ee*1).close());var Ce=new go.PathFigure(ne*.816,ee,!0);return ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,ne*.816,ee*(1-.184*4))),Ce.add(new go.PathSegment(go.PathSegment.Line,ne*1,ee*(1-.184*5))),Ce.add(new go.PathSegment(go.PathSegment.Line,ne*1,ee*1).close()),ue}),go.Shape.defineFigureGenerator("PC",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,0).close());var de=new go.PathFigure(ne*.055,.07*ee,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne*.245,ee*.07)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.245,ee*.1)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.055,ee*.1).close());var pe=new go.PathFigure(ne*.055,.13*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.245,ee*.13)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.245,ee*.16)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.055,ee*.16).close());var ye=new go.PathFigure(ne*.055,.18*ee,!0);ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.245,ee*.18)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.245,ee*.21)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.055,ee*.21).close());var Ce=new go.PathFigure(ne*1,0,!0);return ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,ne*.4,0)),Ce.add(new go.PathSegment(go.PathSegment.Line,ne*.4,ee*.65)),Ce.add(new go.PathSegment(go.PathSegment.Line,ne*1,ee*.65).close()),ue}),go.Shape.defineFigureGenerator("Plane",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(.55*ne,ee,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.475*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.35*ne,.525*ee,0,.4*ee,.225*ne,.45*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.475*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.35*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.325*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.325*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,.2*ee,.975*ne,0,ne,.08*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.45*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.95*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.55*ne,ee).close()),ue}),go.Shape.defineFigureGenerator("Key",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(ne*1,ee*.5,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.9,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,.35*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,.35*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.15,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.35*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.65*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.15,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,.65*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,.65*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.6,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.65,.55*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.7,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,.55*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.8,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.85,.575*ee)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.9,.6*ee).close()),se.add(new go.PathSegment(go.PathSegment.Move,.17*ne,.425*ee)),se.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*ne,.5*ee,.075*ne,.075*ee).close()),ue}),go.Shape.defineFigureGenerator("FilmTape",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(0,0,!1);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,ne*0,ne*.3,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.08,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.08,ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*1),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*1),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*2),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*2),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*3),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*3),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*4),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*4),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*5),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*5),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*6),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*6),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*7),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*7),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*8),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*8),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*9),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*9),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*10),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*10),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*11),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*11),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*12),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*12),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*13),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*13),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*14),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*14),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*15),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*15),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,ee*1));var de=new go.PathFigure(0,0,!1);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne*1,ee*0)),de.add(new go.PathSegment(go.PathSegment.Arc,270,-180,ne*1,ne*.3,ne*.055)),de.add(new go.PathSegment(go.PathSegment.Line,ne*1,ee*1));var pe=new go.PathFigure(ne*.11,ee*.1,!1);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*1+.028*0),ee*.1)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*1+.028*0),ee*.8)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.11,ee*.8).close());var ye=new go.PathFigure(ne*(.11+.24133333*1+.028*1),ee*.1,!1);ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*2+.028*1),ee*.1)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*2+.028*1),ee*.8)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*1+.028*1),ee*.8).close());var Ce=new go.PathFigure(ne*(.11+.24133333*2+.028*2),ee*.1,!1);return ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*3+.028*2),ee*.1)),Ce.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*3+.028*2),ee*.8)),Ce.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*2+.028*2),ee*.8).close()),ue}),go.Shape.defineFigureGenerator("FloppyDisk",function(Ee,ne,ee){var ue=new go.Geometry,se=8,de=se*Ue,pe=new go.PathFigure(se,0,!1);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.86,0)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*1,ee*.14)),pe.add(new go.PathSegment(go.PathSegment.Line,ne,ee-se)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne-se,ee,ne,ee-de,ne-de,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,se,ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-se,de,ee,0,ee-de)),pe.add(new go.PathSegment(go.PathSegment.Line,0,se)),pe.add(new go.PathSegment(go.PathSegment.Bezier,se,0,0,de,de,0).close());var ye=new go.PathFigure(ne*.83,0,!1);ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.83,ee*.3)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.17,ee*.3)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.17,ee*0).close());var Ce=new go.PathFigure(ne*.83,ee*1,!1);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,ne*.83,ee*.5)),Ce.add(new go.PathSegment(go.PathSegment.Line,ne*.17,ee*.5)),Ce.add(new go.PathSegment(go.PathSegment.Line,ne*.17,ee*1).close());var Re=new go.PathFigure(ne*.78,ee*.05,!1);return ue.add(Re),Re.add(new go.PathSegment(go.PathSegment.Line,ne*.66,ee*.05)),Re.add(new go.PathSegment(go.PathSegment.Line,ne*.66,ee*.25)),Re.add(new go.PathSegment(go.PathSegment.Line,ne*.78,ee*.25).close()),ue}),go.Shape.defineFigureGenerator("SpeechBubble",function(Ee,ne,ee){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=15),ue=Math.min(ue,ne/3),ue=Math.min(ue,ee/3);var se=ue*Ue,de=ee*.8,pe=new go.Geometry,ye=new go.PathFigure(ue,0,!0);return pe.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne-ue,0)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ne,ue,ne-se,0,ne,se)),ye.add(new go.PathSegment(go.PathSegment.Line,ne,de-ue)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ne-ue,de,ne,de-se,ne-se,de)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.7,de)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.7,ee)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.55,de)),ye.add(new go.PathSegment(go.PathSegment.Line,ue,de)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,de-ue,se,de,0,de-se)),ye.add(new go.PathSegment(go.PathSegment.Line,0,ue)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ue,0,0,se,se,0).close()),se>1?(pe.spot1=new go.Spot(0,0,se,se),pe.spot2=new go.Spot(1,.8,-se,-se)):(pe.spot1=go.Spot.TopLeft,pe.spot2=new go.Spot(1,.8)),pe}),go.Shape.defineFigureGenerator("Repeat",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(ne*0,ee*.45,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.25,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,ee*.45)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,ee*.45)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,ee*.9)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.6,ee*.9)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.65,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.2,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.2,ee*.45).close());var de=new go.PathFigure(ne*1,ee*.55,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne*.75,ee*1)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.5,ee*.55)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.7,ee*.55)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.7,ee*.1)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.4,ee*.1)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.35,ee*0)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.8,ee*0)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.8,ee*.55).close()),ue}),go.Shape.defineFigureGenerator("Windows",function(Ee,ne,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close()).add(new go.PathSegment(go.PathSegment.Move,.4*ne,.4*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*ne,.8*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*ne,.4*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.2*ne,.1*ee)).add(new go.PathSegment(go.PathSegment.Line,.2*ne,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,.1*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.1*ne,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.1*ne,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*ee).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(ne*0,ee*.1,!1);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,ee*.1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,ee*.9)),se.add(new go.PathSegment(go.PathSegment.Line,ne*0,ee*.9).close());var de=new go.PathFigure(ne*.1,ee*.2,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne*.1,ee*.25)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.22,ee*.285)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.1,ee*.32)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.1,ee*.37)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.275,ee*.32)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.275,ee*.25).close());var pe=new go.PathFigure(ne*.28,ee*.37,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.45,ee*.37)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.45,ee*.41)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.28,ee*.41).close()),ue}),go.Shape.defineFigureGenerator("Beaker",function(Ee,ne,ee){var ue=new go.Geometry,se=15,de=se*Ue,pe=new go.PathFigure(ne*.62,ee*.475,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne,ee-se)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne-se,ee,ne,ee-de,ne-de,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,se,ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-se,de,ee,0,ee-de)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.38,ee*.475)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.38,ee*.03)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.36,ee*0)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.64,ee*0)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.62,ee*.03).close()),de>1?(ue.spot1=new go.Spot(0,0,de,de),ue.spot2=new go.Spot(1,1,-de,-de)):(ue.spot1=go.Spot.TopLeft,ue.spot2=go.Spot.BottomRight),ue}),go.Shape.defineFigureGenerator("Download",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(ne*0,ee*1,!0);ue.add(se);var de=.1/.3;se.add(new go.PathSegment(go.PathSegment.Line,ne*1,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,ee*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.8,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.66,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.66,ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.755,ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.93,ee*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.64,ee*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.61,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.39,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.36,ee*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.07,ee*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.755),ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.8),ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*0,ee*(1-de)).close());var pe=new go.PathFigure(ne*.4,ee*0,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.4,ee*.44)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.26,ee*.44)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.5,ee*.66)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.26),ee*.44)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.6,ee*.44)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.6,ee*0).close()),ue}),go.Shape.defineFigureGenerator("Bin",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(ne*0,ee*1,!0);ue.add(se);var de=.1/.3;return se.add(new go.PathSegment(go.PathSegment.Line,ne*1,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,ee*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.8,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.66,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.66,ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.755,ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.93,ee*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.64,ee*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.61,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.39,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.36,ee*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.07,ee*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.755),ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.8),ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*0,ee*(1-de)).close()),ue}),go.Shape.defineFigureGenerator("Upload",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(ne*0,ee*1,!0);ue.add(se);var de=.1/.3;se.add(new go.PathSegment(go.PathSegment.Line,ne*1,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,ee*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.8,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.66,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.66,ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.755,ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.93,ee*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.64,ee*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.61,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.39,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.36,ee*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.07,ee*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.755),ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.8),ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*0,ee*(1-de)).close());var pe=new go.PathFigure(ne*.5,ee*0,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.26,ee*.25)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.4,ee*.25)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.4,ee*.63)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.6,ee*.63)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.6,ee*.25)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.74,ee*.25).close()),ue}),go.Shape.defineFigureGenerator("EmptyDrink",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(ne*.15,ee*0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.85,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.7,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,ee*1).close()),ue}),go.Shape.defineFigureGenerator("Drink",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(ne*.15,ee*0,!1);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.85,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.7,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,ee*1).close());var de=new go.PathFigure(ne*.235,ee*.28,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne*.765,ee*.28)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.655,ee*.97)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.345,ee*.97).close()),ue}),go.Shape.defineFigureGenerator("4Arrows",function(Ee,ne,ee){var ue=new go.Geometry,se=new go.PathFigure(ne*.5,ee*0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.65,ee*.25)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,ee*.25)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,ee*.45)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,ee*.45)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,ee*.35)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,ee*.5)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,ee*.65)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,ee*.55)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,ee*.55)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.65,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.35,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,ee*.55)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.25,ee*.55)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.25,ee*.65)),se.add(new go.PathSegment(go.PathSegment.Line,ne*0,ee*.5)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.25,ee*.35)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.25,ee*.45)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,ee*.45)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,ee*.25)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.35,ee*.25).close()),ue}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},43001:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var cn={},Jt="5.0",Pe={},me=null,Ve=!1,ut=!1,nt=null,it=!1,ze=null,Ue=null,yt=0;yt<arguments.length;yt++){var ot=arguments[yt];if(ot!==null)switch(typeof ot){case"number":Jt=ot.toFixed(1);break;case"string":ot.match(new RegExp("^[0-9]\\.[0-9]+$"))?Jt=ot:nt=ot;break;case"object":typeof ot.is3D!="undefined"?me=ot:Pe=ot;break;case"boolean":Ve=ot,ut=!0;break}}me===null&&(me={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Pe.material_id!==void 0&&!ut&&(Ve=!0)),nt!==null&&Pe.id===void 0&&(Pe.id=nt);var Me="",Et="",_e=!1,ht=null,Ee=null,ne=null,ee=!1,ue=null,se=null,de=null,pe=null,ye=null;Pe.height!==void 0&&(Pe.height=Math.round(Pe.height)),Pe.width!==void 0&&(Pe.width=Math.round(Pe.width));var Ce=function(Ft){return parseFloat(Ft)>4?parseFloat(Ft):5};cn.setHTML5Codebase=function(Ft,It){Ue=Ft,jt(Ft,It)},cn.setJavaCodebase=cn.setJavaCodebaseVersion=cn.isCompiledInstalled=cn.setPreCompiledScriptPath=cn.setPreCompiledResourcePath=function(){},cn.setHTML5CodebaseVersion=function(Ft,It){var Vt=parseFloat(Ft);if(Vt!==NaN&&Vt<5){console.log("The GeoGebra HTML5 codebase version "+Vt+" is deprecated. Using version latest instead.");return}ze=Ft,He(Ft,It)},cn.getHTML5CodebaseVersion=function(){return Ee},cn.getParameters=function(){return Pe},cn.setFontsCSSURL=function(Ft){pe=Ft},cn.setGiacJSURL=function(Ft){},cn.setJNLPFile=function(Ft){Me=Ft},cn.setJNLPBaseDir=function(Ft){},cn.inject=function(){function Ft(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var It="auto",Vt=Pe.id,wn,Dt=!1,vt=0;vt<arguments.length;vt++){var zt=arguments[vt];typeof zt=="string"?(zt=zt.toLowerCase(),zt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?It=zt:Vt=arguments[vt]):typeof zt=="boolean"?Dt=zt:zt instanceof HTMLElement&&(wn=zt)}En();function En(){if(!it){setTimeout(En,200);return}It=Ut(It);var kn=wn||document.getElementById(Vt);if(!kn){console.log("possibly bug on ajax loading? ");return}if(cn.removeExistingApplet(kn,!1),Pe.width===void 0&&kn.clientWidth&&(Pe.width=kn.clientWidth),Pe.height===void 0&&kn.clientHeight&&(Pe.height=kn.clientHeight),!(Pe.width&&Pe.height)&&It==="html5"&&(delete Pe.width,delete Pe.height),ht=It,It==="screenshot")gt(kn,Pe);else{var Ze=!1;Pe.hasOwnProperty("playButton")&&Pe.playButton||Pe.hasOwnProperty("clickToLoad")&&Pe.clickToLoad?Ze=!0:Pe.hasOwnProperty("playButtonAutoDecide")&&Pe.playButtonAutoDecide&&(Ze=(!Re()||Ft())&&Oe()),Ze?(ht="screenshot",At(kn,Pe,Dt,It)):xt(kn,Pe,Dt)}}};function Re(){try{return window.self!==window.top}catch(Ft){return!0}}function Oe(){return Pe.hasOwnProperty("screenshotGenerator")&&Pe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}cn.getViews=function(){return me},cn.isJavaInstalled=function(){return!1};var We=function(Ft){var It=function(vt){var zt=JSON.parse(vt),En=function(Fe){return Fe.type=="G"||Fe.type=="E"},kn=zt.elements?zt.elements.filter(En)[0]:zt;if(!kn||!kn.url){Vt();return}Pe.fileName=kn.url,Be(kn.settings||{}),me.is3D=!0;var Ze="https://www.geogebra.org/images/";cn.setPreviewImage(ue||kn.previewUrl,Ze+"GeoGebra_loading.png",Ze+"applet_play.png"),Ft()},Vt=function(){Pe.onError&&Pe.onError(),fn("Error: Fetching material (id "+Pe.material_id+") failed.",Pe)},wn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Dt="/materials/"+Pe.material_id+"?scope=basic";Ie("https://"+wn+"/api/proxy.php?path="+encodeURIComponent(Dt),It,Vt)};function Be(Ft){var It=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Vt){Ft[Vt]=!!Ft[Vt]}),It.forEach(function(Vt){Pe[Vt]===void 0&&Ft[Vt]!==void 0&&(Pe[Vt]=Ft[Vt])}),Pe.showToolBarHelp===void 0&&(Pe.showToolBarHelp=Pe.showToolBar)}function Ie(Ft,It,Vt){var wn=new XMLHttpRequest;wn.open("GET",Ft),wn.onload=function(){It(wn.responseText)},wn.onerror=Vt,wn.send()}cn.isHTML5Installed=function(){return!0},cn.getLoadedAppletType=function(){return ht},cn.setPreviewImage=function(Ft,It,Vt){ue=Ft,se=It,de=Vt},cn.removeExistingApplet=function(Ft,It){var Vt;typeof Ft=="string"&&(Ft=document.getElementById(Ft)),ht=null;var wn=null;for(Vt=0;Vt<Ft.childNodes.length;Vt++){var Dt=Ft.childNodes[Vt],vt=Dt.className;vt==="applet_screenshot"?It?(Dt.style.display="block",ht="screenshot"):Dt.style.display="none":vt!=="applet_scaler prerender"&&(Ft.removeChild(Dt),wn=vt&&vt.indexOf("appletParameters")!=-1?Dt.id:null,Vt--)}var zt=Pe.id!==void 0?Pe.id:wn,En=window[zt];En&&typeof En.getBase64=="function"&&(En.remove(),window[zt]=null)},cn.refreshHitPoints=function(){if(Ce(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ft=cn.getAppletObject();return Ft&&typeof Ft.recalculateEnvironments=="function"?(Ft.recalculateEnvironments(),!0):!1},cn.startAnimation=function(){var Ft=cn.getAppletObject();return Ft&&typeof Ft.startAnimation=="function"?(Ft.startAnimation(),!0):!1},cn.stopAnimation=function(){var Ft=cn.getAppletObject();return Ft&&typeof Ft.stopAnimation=="function"?(Ft.stopAnimation(),!0):!1},cn.getAppletObject=function(){var Ft=Pe.id!==void 0?Pe.id:"ggbApplet";return window[Ft]},cn.resize=function(){};var Qe=function(Ft,It,Vt){var wn=document.createElement("param");wn.setAttribute("name",It),wn.setAttribute("value",Vt),Ft.appendChild(wn)},rt=function(Ft){return Ft&&Ft!=="false"},xt=function(Ft,It,Vt){Ce(Ee)<=4.2&&(Vt=!0);var wn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ee||ggbHTML5LoadedCodebaseIsWebSimple&&!ee)&&(wn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Dt=document.createElement("div");Dt.classList.add("appletParameters","notranslate");var vt=It.width,zt=It.height;if(It.disableAutoScale=It.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():It.disableAutoScale,It.width!==void 0)if(Ce(Ee)<=4.4)rt(It.showToolBar)&&(It.height-=7),rt(It.showAlgebraInput)&&(It.height-=37),It.width<605&&rt(It.showToolBar)&&(It.width=605,vt=605);else{var En=100;(rt(It.showToolBar)||rt(It.showMenuBar))&&(It.hasOwnProperty("customToolBar")&&(It.customToolbar=It.customToolBar),En=rt(It.showMenuBar)?245:155),vt<En&&(It.width=En,vt=En)}Dt.style.border="none",Dt.style.display="inline-block";for(var kn in It)It.hasOwnProperty(kn)&&kn!=="appletOnLoad"&&Dt.setAttribute("data-param-"+kn,It[kn]);pe&&Dt.setAttribute("data-param-fontscssurl",pe),cn.resize=function(){GGBAppletUtils.responsiveResize(Ft,It)},window.addEventListener("resize",function(nn){cn.resize()});var Ze=typeof It.appletOnLoad=="function"?It.appletOnLoad:function(){};if(!Vt&&It.width!==void 0){It.hasOwnProperty("showSplash")||Dt.setAttribute("data-param-showSplash","false");var Fe=Ft.querySelector(".applet_scaler.prerender"),xe=Fe!==null;if(xe)var Te=Fe.querySelector(".ggb_preview");else{var Te=Nt(vt,zt,It.borderColor,!1);Fe=document.createElement("div"),Fe.className="applet_scaler",Fe.style.position="relative",Fe.style.display="block",Fe.style.width=vt+"px",Fe.style.height=zt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Fe,"66%"),Ce(Ee)>=5?(It.appletOnLoad=function(nn){var hn=Ft.querySelector(".ggb_preview");hn&&hn.parentNode.removeChild(hn),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Fe),window.GGBT_wsf_view&&$(window).trigger("resize"),Ze(nn)},xe||Fe.appendChild(Te)):Dt.appendChild(Te),Fe.appendChild(Dt),xe||Ft.appendChild(Fe),setTimeout(function(){cn.resize()},1)}else{var Ye=document.createElement("div");Ye.className="applet_scaler",Ye.style.position="relative",Ye.style.display="block",Ye.appendChild(Dt),Ft.appendChild(Ye),It.appletOnLoad=function(nn){cn.resize(),Ze(nn)}}function De(nn,hn){hn&&typeof hn.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(nn,hn.appletOnLoad):renderGGBElement(nn),fn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",hn)}function tt(nn,hn){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:nn,params:hn}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(zn){De(zn.article,zn.params)}),html5AppletsToProcess=null)},Ce(Ee)<5&&(nn.className+=" geogebraweb")):De(nn,hn)}if(wn){scriptLoadStarted=!0;for(var Ht=0;Ht<Dt.childNodes.length;Ht++){var $t=Dt.childNodes[Ht].tagName;$t==="TABLE"&&(Dt.removeChild(Dt.childNodes[Ht]),Ht--)}if(ggbHTML5LoadedScript!==null){var Sn=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Sn!=null&&Sn.parentNode.removeChild(Sn)}var en=document.createElement("script"),kt=function(){tt(Dt,It)};en.src=Et+ne,ggbHTML5LoadedCodebaseIsWebSimple=ee,ggbHTML5LoadedCodebaseVersion=Ee,ggbHTML5LoadedScript=en.src,fn("GeoGebra HTML5 codebase loaded: '"+Et+"'.",It),!Ue&&(!ze||ze=="5.0")?(ee?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),kt()):Et.requirejs?__webpack_require__.e(7963).then(function(){var nn=[__webpack_require__(87963)];kt.apply(null,nn)}.bind(this)).catch(__webpack_require__.oe):(en.onload=kt,Ft.appendChild(en))}else tt(Dt,It);It.height=zt,It.width=vt},gt=function(Ft,It,Vt){var wn=Nt(It.width,It.height,It.borderColor,Vt),Dt=document.createElement("div");Dt.style.position="relative",Dt.style.display="block",Dt.style.width=It.width+"px",Dt.style.height=It.height+"px",Dt.className="applet_screenshot applet_scaler"+(Vt?" applet_screenshot_play":""),Dt.appendChild(wn);var vt=GGBAppletUtils.getScale(It,Ft,Vt);Vt?(Ft.appendChild(Tt()),window.GGBT_wsf_view||(Ft.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Dt,"66%"),Ft.appendChild(Dt),vt!==1&&!isNaN(vt)&&(GGBAppletUtils.scaleElement(Dt,vt),Dt.style.width=It.width+"px",Dt.style.height=It.height+"px",Dt.parentNode.style.width=It.width*vt+"px",Dt.parentNode.style.height=It.height*vt+"px"),cn.resize=function(){bt(Ft,wn,Dt,Vt)},window.addEventListener("resize",function(zt){cn.resize()}),cn.resize()};function bt(Ft,It,Vt,wn){if(Ft.contains(It)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ft.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ft)}var Dt=GGBAppletUtils.getScale(Pe,Ft,wn);Vt.parentNode!==null&&(!isNaN(Dt)&&Dt!==1?(GGBAppletUtils.scaleElement(Vt,Dt),Vt.parentNode.style.width=Pe.width*Dt+"px",Vt.parentNode.style.height=Pe.height*Dt+"px"):(GGBAppletUtils.scaleElement(Vt,1),Vt.parentNode.style.width=Pe.width+"px",Vt.parentNode.style.height=Pe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ft),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}cn.onExitFullscreen=function(Ft,It){It.appendChild(Ft)};var At=function(Ft,It,Vt,wn){gt(Ft,It,!0);for(var Dt=function(){var En=[];for(zt=0;zt<Ft.childNodes.length;zt++)En.push(Ft.childNodes[zt]);if(window.GGBT_wsf_view){var kn=window.GGBT_wsf_view.renderFullScreen(Ft,It.id),Ze=document.getElementById("fullscreencontainer"),Fe=jQuery(Ft).find(".fullscreencontent");Fe.length>0?(kn.remove(),Fe.attr("id","fullscreencontent").show(),jQuery(Ze).append(Fe),window.dispatchEvent(new Event("resize"))):xt(kn,It,!1),window.GGBT_wsf_view.launchFullScreen(Ze)}else ht=wn,xt(Ft,It,!1);if(!window.GGBT_wsf_view)for(zt=0;zt<En.length;zt++)Ft.removeChild(En[zt])},vt=Ft.getElementsByClassName("ggb_preview_play"),zt=0;zt<vt.length;zt++)vt[zt].addEventListener("click",Dt,!1),vt[zt].addEventListener("ontouchstart",Dt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ft),Oe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Tt=function(){var Ft=document.createElement("div");if(Ft.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var It='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Vt=document.createElement("style");Vt.styleSheet?Vt.styleSheet.cssText=It:Vt.appendChild(document.createTextNode(It)),document.getElementsByTagName("head")[0].appendChild(Vt)}return Ft},Nt=function(Ft,It,Vt,wn){var Dt=document.createElement("div");Dt.className="ggb_preview",Dt.style.position="absolute",Dt.style.zIndex="90",Dt.style.width=Ft-2+"px",Dt.style.height=It-2+"px",Dt.style.top="0px",Dt.style.left="0px",Dt.style.overflow="hidden",Dt.style.backgroundColor="white";var vt="lightgrey";Vt!==void 0&&(Vt==="none"?vt="transparent":vt=Vt),Dt.style.border="1px solid "+vt;var zt=document.createElement("img");if(zt.style.position="relative",zt.style.zIndex="1000",zt.style.top="-1px",zt.style.left="-1px",ue!==null&&zt.setAttribute("src",ue),zt.style.opacity=.7,se!==null){var En,kn,Ze;if(!wn){En=document.createElement("img"),En.style.position="absolute",En.style.zIndex="1001",En.style.opacity=1,zt.style.opacity=.3,kn=360,kn>Ft/4*3&&(kn=Ft/4*3),Ze=kn/5.8,En.setAttribute("src",se),En.setAttribute("width",kn),En.setAttribute("height",Ze);var Fe=(Ft-kn)/2,xe=(It-Ze)/2;En.style.left=Fe+"px",En.style.top=xe+"px",Dt.appendChild(En)}}return Dt.appendChild(zt),Dt},Ut=function(Ft){return Ft=Ft.toLowerCase(),Ft==="html5"||Ft==="screenshot"?Ft:"html5"},st=["web","webSimple","web3d","tablet","tablet3d","phone"],He=function(Ft,It){if(Ee=Ft,It){jt(Ee,!0);return}var Vt=!Ve;if(Vt){var wn=Ce(Ee);!isNaN(wn)&&wn<4.4&&(Vt=!1)}var Dt,vt;window.location.protocol.substr(0,4)==="http"?Dt=window.location.protocol:Dt="http:";var zt=Ee.indexOf("//");zt>0?vt=Ee:zt===0?vt=Dt+Ee:vt="https://www.geogebra.org/apps/5.2.814.0/";for(var En in st)if(Ee.slice(st[En].length*-1)===st[En]||Ee.slice((st[En].length+1)*-1)===st[En]+"/"){jt(vt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Vt&&!me.is3D&&!me.AV&&!me.SV&&!me.CV&&!me.EV2&&!me.CP&&!me.PC&&!me.DA&&!me.FI&&!me.PV&&!rt(Pe.showToolBar)&&!rt(Pe.showMenuBar)&&!rt(Pe.showAlgebraInput)&&!rt(Pe.enableRightClick)&&(!Pe.appName||Pe.appName=="classic")?vt+="webSimple/":vt+="web3d/",jt(vt,!1)},jt=function(Ft,It){if(Ft.requirejs){Et=Ft;return}Ft.slice(-1)!=="/"&&(Ft+="/"),Et=Ft,It===null&&(It=Ft.indexOf("http")===-1),_e=It,ne="web.nocache.js",ee=!1;var Vt=Et.split("/");Vt.length>1&&(!It&&Vt[Vt.length-2]==="webSimple"?(ne="webSimple.nocache.js",ee=!0):st.indexOf(Vt[Vt.length-2])>=0&&(ne=Vt[Vt.length-2]+".nocache.js")),Vt=Ft.split("/"),Ee=Vt[Vt.length-3],Ee.substr(0,4)==="test"?Ee=Ee.substr(4,1)+"."+Ee.substr(5,1):(Ee.substr(0,3)==="war"||Ee.substr(0,4)==="beta")&&(Ee="5.0");var wn=parseFloat(Ee);wn!==NaN&&wn<5&&Ft.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+wn+" is deprecated. Using version latest instead."),He("5.0",It))},fn=function(Ft,It){window.console&&window.console.log&&(!It||typeof It.showLogging=="undefined"||It.showLogging&&It.showLogging!=="false")&&console.log(Ft)};Pe.material_id!==void 0?We(Bt):Bt();function Bt(){var Ft=Jt;ze!==null?Ft=ze:parseFloat(Ft)<5&&(Ft="5.0"),He(Ft,!1),Ue!==null&&jt(Ue,_e),it=!0}return cn},GGBAppletUtils=function(){"use strict";function cn(){return window.GGBT_wsf_edit!==void 0}function Jt(it,ze){ze!=1?(it.style.transformOrigin="0% 0% 0px",it.style.webkitTransformOrigin="0% 0% 0px",it.style.transform="scale("+ze+","+ze+")",it.style.webkitTransform="scale("+ze+","+ze+")",it.style.maxWidth="initial",it.querySelector(".ggb_preview")!==null&&(it.querySelector(".ggb_preview").style.maxWidth="initial"),it.querySelectorAll(".ggb_preview img")[0]!==void 0&&(it.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),it.querySelectorAll(".ggb_preview img")[1]!==void 0&&(it.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(it.style.transform="none",it.style.webkitTransform="none")}function Pe(it,ze,Ue,yt,ot,Me){var Et=null;if(Me!=null&&Me!="")for(var _e=it.parentNode;_e!=null;)if((" "+_e.className+" ").indexOf(" "+Me+" ")>-1){Et=_e;break}else _e=_e.parentNode;var ht=0,Ee=0,ne=0,ee=0,ue=0,se=0,de=0;if(Et)ht=Et.offsetWidth,Ee=Math.max(yt?Et.offsetWidth:0,Et.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ht=Math.min(window.innerWidth,document.documentElement.clientWidth),Ee=Math.min(window.innerHeight,document.documentElement.clientHeight),ne=ht):(ht=window.innerWidth,Ee=window.innerHeight,ne=window.innerWidth),it){var pe=it.getBoundingClientRect();pe.left>0&&pe.left<=ht&&(ot===void 0||!ot)&&(document.dir==="rtl"?(ue=ht-pe.width-pe.left,se=ne<=480?10:30):(se=pe.left,ue=ne<=480?10:30),ee=se+ue)}if(it&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ye=it.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ee=40,de=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee=0,de=40)}}return it&&((Ue===void 0||!Ue)&&ze>0&&ze+ee<ht?ht=ze:ht-=ee,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ue===void 0||!Ue)&&(Ee-=de)),{width:ht,height:Ee}}function me(it,ze,Ue,yt,ot){if(it.isScreenshoGenerator)return 1;var Me=yt!==void 0&&yt,Et=it.noScaleMargin!=null&&it.noScaleMargin,_e=function(ye){return ye&&ye!=="false"},ht=_e(it.autoHeight),Ee=Pe(ze,it.width,Ue,ht,Me&&window.GGBT_wsf_view||Et,ot),ne=parseInt(Ee.width),ee=it.width,ue=it.height;if(ee===void 0){var se=ze.querySelector(".appletParameters");se&&(ee=se.offsetWidth,ue=se.offsetHeight)}var de=ne/ee,pe=Me?1:Ee.height/ue;return Ue!==void 0&&!Ue&&(de=Math.min(1,de),pe=Math.min(1,pe)),Math.min(de,pe)}function Ve(it,ze,Ue){var yt=1,ot,Me=!1;if(it.hasOwnProperty("allowUpscale")&&(Me=it.allowUpscale),it.hasOwnProperty("scale")&&(yt=parseFloat(it.scale),(isNaN(yt)||yt===null||yt===0)&&(yt=1),yt>1&&(Me=!0)),ze&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Me=!0),!(it.hasOwnProperty("disableAutoScale")&&it.disableAutoScale))ot=me(it,ze,Me,Ue,it.scaleContainerClass);else return yt;return Me&&(!it.hasOwnProperty("scale")||yt===1)?ot:Math.min(yt,ot)}function ut(it){var ze=Math.min(window.innerWidth,document.documentElement.clientWidth),Ue=Math.min(window.innerHeight,document.documentElement.clientHeight),yt=it.getBoundingClientRect(),ot=(ze-yt.width)/2,Me=(Ue-yt.height)/2;Me<0&&(Me=0),it.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ot<40?it.style.left="40px":it.style.left=ot+"px",it.style.top=Me+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Me<40?it.style.top="40px":it.style.top=Me+"px",it.style.left=ot+"px")}function nt(it,ze){var Ue=it.querySelector(".appletParameters");if(Ue){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ze.id!==Ue.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(it)}if(Ue.parentElement&&/fullscreen/.test(Ue.parentElement.className))return;var yt=Ve(ze,it);cn()&&Ue.setAttribute("data-param-scale",yt);for(var ot=null,Me=0;Me<it.childNodes.length;Me++)if(it.childNodes[Me].className!==void 0&&it.childNodes[Me].className.match(/^applet_scaler/)){ot=it.childNodes[Me];break}if(ot!==null&&ot.querySelector(".noscale")!==null)return;var Et=ze.id!==void 0?ze.id:"ggbApplet",_e=window[Et];(_e==null||!_e.recalculateEnvironments)&&ot!==null&&!ot.className.match(/fullscreen/)&&(ot.parentNode.style.transform="",!isNaN(yt)&&yt!==1?(ot.parentNode.style.width=ze.width*yt+"px",ot.parentNode.style.height=ze.height*yt+"px",Jt(ot,yt)):(Jt(ot,1),ot.parentNode.style.width=ze.width+"px",ot.parentNode.style.height=ze.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&ut(it),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ue).parents(".content-added-content"))}}return{responsiveResize:nt,isFlexibleWorksheetEditor:cn,positionCenter:ut,getScale:Ve,scaleElement:Jt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var cn=n.location.search;return cn.indexOf(J)!=-1||cn.indexOf(K)!=-1}function q(cn,Jt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(cn){var Jt=s[L].bindings;s[L].bindings=function(){for(var Pe=Jt?Jt():{},me=cn[webModule.__softPermutationId],Ve=O;Ve<me.length;Ve++){var ut=me[Ve];Pe[ut[O]]=ut[P]}return Pe}};var t;function u(){return v(),t}function v(){if(!t){var cn=o.createElement(Q);if(cn.id=L,cn.style.cssText=R+S,cn.tabIndex=-1,o.body.appendChild(cn),t=cn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Jt=document.compatMode==U?V:W;t.write(Jt+X),t.close()}}}function w(cn){function Jt(me){function Ve(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ut=Ve();if(ut){me();return}function nt(){if(!ut){if(!Ve())return;ut=!0,me(),o.removeEventListener&&o.removeEventListener(Z,nt,!1),it&&clearInterval(it)}}o.addEventListener&&o.addEventListener(Z,nt,!1);var it=setInterval(function(){nt()},$)}function Pe(me){var Ve=u(),ut=Ve.body,nt=Ve.createElement(_);nt.language=ab,nt.crossOrigin=W,nt.src=me,webModule.__errFn&&(nt.onerror=function(){webModule.__errFn(L,new Error(bb+me))}),ut.appendChild(nt)}Jt(function(){Pe(cn)})}webModule.__startLoadingFragment=function(cn){return C(cn)},webModule.__installRunAsyncCode=function(cn){var Jt=u(),Pe=Jt.body,me=Jt.createElement(_);me.language=ab,me.text=cn,Pe.appendChild(me),Pe.removeChild(me)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(cn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(cn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(cn){var Jt=c[cn];return Jt==null?null:Jt},r=d,webModule.__errFn=e}function B(){function cn(it){var ze=it.lastIndexOf(rb);ze==-1&&(ze=it.length);var Ue=it.indexOf(sb);Ue==-1&&(Ue=it.length);var yt=it.lastIndexOf(tb,Math.min(Ue,ze));return yt>=O?it.substring(O,yt+P):W}function Jt(it){if(!it.match(/^\w+:\/\//)){var ze=o.createElement(ub);ze.src=it+vb,it=cn(ze.src)}return it}function Pe(){var it=__gwt_getMetaProperty(wb);return it!=null?it:W}function me(){for(var it=o.getElementsByTagName(_),ze=O;ze<it.length;++ze)if(it[ze].src.indexOf(xb)!=-1)return cn(it[ze].src);return W}function Ve(){var it=o.getElementsByTagName(yb);return it.length>O?it[it.length-P].href:W}function ut(){var it=o.location;return it.href==it.protocol+zb+it.host+it.pathname+it.search+it.hash}var nt=Pe();return nt==W&&(nt=me()),nt==W&&(nt=Ve()),nt==W&&ut()&&(nt=cn(o.location.href)),nt=Jt(nt),nt}function C(cn){return cn.match(/^\//)||cn.match(/^[a-zA-Z]+:\/\//)?cn:webModule.__moduleBase+cn}function D(){var cn=[],Jt=O,Pe=[],me=[];function Ve(it){var ze=me[it](),Ue=Pe[it];if(ze in Ue)return ze;var yt=[];for(var ot in Ue)yt[Ue[ot]]=ot;throw r&&r(it,yt,ze),null}if(__gwt_isKnownPropertyValue=function(it,ze){return ze in Pe[it]},webModule.__getPropMap=function(){var it={};for(var ze in Pe)Pe.hasOwnProperty(ze)&&(it[ze]=Ve(ze));return it},webModule.__computePropValue=Ve,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ut;try{ut=Cb;var nt=ut.indexOf(Db);nt!=-1&&(Jt=parseInt(ut.substring(nt+P),$),ut=ut.substring(O,nt))}catch(it){}return webModule.__softPermutationId=Jt,C(ut+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},46699:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Ax:function(){return nt},Ds:function(){return it},KI:function(){return Ue},SI:function(){return ut},f1:function(){return Ve}});var me=Pe(346);function Ve(yt){let ot=!0;if(yt.length>0){for(let Me=0;Me<yt.length;Me++)if(yt[Me].compile_success==0||!yt[Me].compile_success){ot=!1;break}}else ot=!1;return ot}function ut(yt,ot=""){let Me=[];for(let Et=0;Et<yt.length;Et++){let _e=yt[Et],ht=ot?`${ot}/${_e.name}`:`${_e.name}`;Me.push({title:_e.name,type:_e.type,isLeaf:_e.type!=="tree",key:ht})}return Me}function nt(yt,ot,Me){for(let Et=0;Et<yt.length;Et++){let _e=yt[Et];if(_e.key===ot){_e.children=Me;break}_e.children&&nt(_e.children,ot,Me)}return yt}function it(yt,ot,Me){let Et;return function(){let _e=this,ht=arguments,Ee=function(){Et=null,Me||yt.apply(_e,ht)},ne=Me&&!Et;clearTimeout(Et),Et=setTimeout(Ee,ot),ne&&yt.apply(_e,ht)}}const ze=!0,Ue=me.Z.API_SERVER},54650:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Z:function(){return ht}});var me=Pe(59301),Ve=Pe(6767),ut=Pe(37568),nt={codeBox:"codeBox___WpkVl"},it=Pe(92310),ze=Pe.n(it),Ue=Object.defineProperty,yt=(Ee,ne,ee)=>ne in Ee?Ue(Ee,ne,{enumerable:!0,configurable:!0,writable:!0,value:ee}):Ee[ne]=ee,ot=(Ee,ne,ee)=>yt(Ee,typeof ne!="symbol"?ne+"":ne,ee),Me=(Ee,ne,ee)=>new Promise((ue,se)=>{var de=Ce=>{try{ye(ee.next(Ce))}catch(Re){se(Re)}},pe=Ce=>{try{ye(ee.throw(Ce))}catch(Re){se(Re)}},ye=Ce=>Ce.done?ue(Ce.value):Promise.resolve(Ce.value).then(de,pe);ye((ee=ee.apply(Ee,ne)).next())});class Et extends me.Component{constructor(ne){super(ne),ot(this,"canvas"),ot(this,"randomNum",(ee,ue)=>Math.floor(Math.random()*(ue-ee)+ee)),ot(this,"drawPic",()=>{this.randomCode()}),ot(this,"reloadPic",()=>{this.drawPic()}),ot(this,"changeCode",ee=>{console.log(ee.target.value,222),this.setState({value:ee.target.value,showError:!1})}),ot(this,"onVerify",()=>{let ee;return this.state.value.toLowerCase()!==""&&this.state.value.toLowerCase()!==this.state.code.toLowerCase()?(ee=!0,Ve.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u9A8C\u8BC1\u7801"),this.reloadPic()):this.state.value.toLowerCase()===""?(ee=!0,Ve.ZP.error("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801")):this.state.value.toLowerCase()===this.state.code.toLowerCase()&&(ee=!1),this.setState({showError:ee}),ee}),this.canvas=me.createRef(),this.state={value:"",code:"",codeLength:4,fontSizeMin:20,fontSizeMax:22,backgroundColorMin:240,backgroundColorMax:250,colorMin:10,colorMax:20,lineColorMin:40,lineColorMax:180,contentWidth:96,contentHeight:38,showError:!1}}componentDidMount(){this.drawPic()}randomColor(ne,ee){const ue=this.randomNum(ne,ee),se=this.randomNum(ne,ee),de=this.randomNum(ne,ee);return`rgb(${ue}, ${se}, ${de})`}drawText(ne,ee,ue){ne.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);const se=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);ne.font=se+"px SimHei";const de=10,pe=(this.state.contentWidth-40)/(this.state.code.length-1);let ye=de;ue>0&&(ye=de+ue*pe);let Ce=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);se>40&&(Ce=40);const Re=this.randomNum(-10,10);ne.translate(ye,Ce),ne.rotate(Re*Math.PI/180),ne.fillText(ee,0,0),ne.rotate(-Re*Math.PI/180),ne.translate(-ye,-Ce)}drawLine(ne){for(let ee=0;ee<1;ee++)ne.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),ne.beginPath(),ne.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),ne.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),ne.stroke()}drawDot(ne){for(let ee=0;ee<100;ee++)ne.fillStyle=this.randomColor(0,255),ne.beginPath(),ne.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),ne.fill()}randomCode(){let ne="";const ee="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890";for(let ue=0;ue<this.state.codeLength;ue++){const se=Math.floor(Math.random()*57);ne+=ee[se]}this.setState({code:ne},()=>{const se=this.canvas.current.getContext("2d");se.textBaseline="bottom",se.fillStyle=this.randomColor(this.state.backgroundColorMin,this.state.backgroundColorMax),se.fillRect(0,0,this.state.contentWidth,this.state.contentHeight);for(let de=0;de<this.state.code.length;de++)this.drawText(se,this.state.code[de],de);this.drawLine(se),this.drawDot(se)})}render(){const{className:ne,width:ee=300}=this.props;return me.createElement("div",{className:ze()(nt.codeBox,ne),style:{width:ee}},me.createElement("aside",null,me.createElement(ut.default,{value:this.state.value,onChange:this.changeCode,placeholder:"\u8BF7\u8F93\u5165\u56FE\u7247\u4E2D\u7684\u9A8C\u8BC1\u7801"})),me.createElement("div",null,me.createElement("canvas",{onClick:this.reloadPic,ref:this.canvas,width:"100",height:"30"}),me.createElement("div",{className:"current",onClick:this.reloadPic},"\u770B\u4E0D\u6E05\uFF1F\u6362\u4E00\u5F20")))}}const _e=(Ee,ne)=>{let ee;Modal.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:React.createElement("div",null,React.createElement("p",null,ne),React.createElement(Et,{ref:ue=>ee=ue})),onOk:()=>Me(void 0,null,function*(){if(ee.onVerify())return Promise.reject();Ee()})})};var ht=Et},94361:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Z:function(){return ze}});var me=Pe(37639),Ve={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},ut=Pe(32637),nt=Pe(59301),ze=({type:Ue,style:yt})=>{const ot=nt.createElement("div",{className:Ve.wrap,onClick:Me=>{Me.preventDefault(),Me.stopPropagation()}},nt.createElement("p",null,Ue==="shixun"||Ue==="paths"?"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002":"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",nt.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",Ue==="paths"?"\u53D1\u9001\u5230\u8BFE\u5802":"\u53D1\u5E03","\u4F7F\u7528\u4E4B\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),nt.createElement("div",{className:Ve.contact},nt.createElement("div",{className:Ve.img},nt.createElement("img",{src:ut,width:"124px",height:"124px"})),nt.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return nt.createElement(me.Z,{content:ot},nt.createElement("span",{className:Ve.text,style:yt},"\u9AD8\u6D88\u8017"))}},9507:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Z:function(){return Et}});var me=Pe(59301),Ve={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ut=Pe(92310),nt=Pe.n(ut),it=Pe(29787),ze=Pe(2859),Ue=Pe(38986),yt=Pe(51257),ot=(_e,ht,Ee)=>new Promise((ne,ee)=>{var ue=pe=>{try{de(Ee.next(pe))}catch(ye){ee(ye)}},se=pe=>{try{de(Ee.throw(pe))}catch(ye){ee(ye)}},de=pe=>pe.done?ne(pe.value):Promise.resolve(pe.value).then(ue,se);de((Ee=Ee.apply(_e,ht)).next())}),Et=({data:_e,className:ht,fullWidth:Ee,style:ne={},onClose:ee,onOk:ue,showFullTools:se,noAssociationId:de})=>{const pe=(0,me.useRef)(null),ye=(0,me.useRef)(null),Ce=(0,me.useRef)(null),Re=(0,me.useRef)(null),[Oe,We]=(0,me.useState)(!1),[Be,Ie]=(0,me.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,me.useEffect)(()=>(Ce.current||(Ce.current=document.createElement("style"),document.head.appendChild(Ce.current)),_e!=null&&_e.visible?(document.body.setAttribute("data-custom","y-hidden"),Ce.current.innerHTML=" html { overflow-y: hidden; }",_e!=null&&_e.src&&Qe()):(document.body.removeAttribute("data-custom"),Ce.current&&(document.head.removeChild(Ce.current),Ce.current=null)),()=>{document.body.removeAttribute("data-custom"),Ce.current&&(document.head.removeChild(Ce.current),Ce.current=null)}),[_e==null?void 0:_e.visible]);const Qe=()=>ot(void 0,null,function*(){We(!0),Ie("\u6B63\u5728\u52A0\u8F7D\u4E2D");const bt=yield(0,yt.ZJ)(_e==null?void 0:_e.src);pe.current.src="",pe.current.src=bt,pe.current.onload=function(){gt()},We(!1),Ie("")}),rt=bt=>ot(void 0,null,function*(){We(!0),Ie("\u6B63\u5728\u4FDD\u5B58\u4E2D");const At=yield(0,Ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:_e.title,file:bt.dataUrl}});At!=null&&At.id&&!de?(yield(0,Ue.ZP)(`/api/attachments/${_e.id}/add_subitem.json`,{method:"post",body:{subitem_id:At==null?void 0:At.id,settings:JSON.stringify(bt.state)}})).status===0&&ue():At!=null&&At.id&&ue(At),We(!1),Ie("")}),xt=()=>{const bt=document.querySelector('a[href="https://markerjs.com/"]');bt&&bt.parentNode&&(bt.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(Tt=>{const Nt=document.querySelector(Tt.name);Nt&&Nt.setAttribute("title",Tt.title)})},gt=()=>{ye.current=new ze.hP(pe.current),ye.current.targetRoot=Re.current,ye.current.addEventListener("render",rt),ye.current.addEventListener("beforeclose",ee),se&&(ye.current.availableMarkerTypes=ye.current.ALL_MARKER_TYPES,ye.current.uiStyleSettings.redoButtonVisible=!0,ye.current.uiStyleSettings.notesButtonVisible=!0,ye.current.uiStyleSettings.zoomButtonVisible=!0,ye.current.uiStyleSettings.zoomOutButtonVisible=!0,ye.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ye.current.uiStyleSettings,ye.current.show(),_e!=null&&_e.snapshotData&&ye.current.restoreState(_e.snapshotData),setTimeout(()=>{window.scrollTo(0,0),xt()},300)};return me.createElement(me.Fragment,null,(_e==null?void 0:_e.visible)&&me.createElement(it.Z,{spinning:Oe,tip:Be,style:{position:"absolute",width:"100vw"}},me.createElement("div",{ref:Re,className:nt()(Ve.imageDimensions,ht,Ee?Ve.fullWidth:""),style:ne},me.createElement("img",{className:Ve.img,ref:pe}))))}},76562:function(cn,Jt,Pe){"use strict";var me=Pe(59301),Ve=Pe(77019),ut=Pe(5269),nt=Pe(20554),it=Pe(99571),ze=Pe(76902),Ue=Pe(99587),yt=Pe(48136),ot=Pe(59301);const Me=(0,me.forwardRef)(({callback:Et,showSaveButton:_e,value:ht=""},Ee)=>{const ne=(0,me.useRef)(),ee=[{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 "}]}]}],ue=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],se=ye=>{ne.current.setValue(ne.current.getValue()+" "+ye.value+" ")},de=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ot.createElement(Ve.Z,{className:Ue.Z.lists,gutter:[10,10]},ee.map((ye,Ce)=>ot.createElement(ut.Z,{flex:"110px",className:Ue.Z.item},ot.createElement("div",null,ot.createElement(ze.Z,{value:`$$${ye.value}$$`}),ye.name),ot.createElement("div",{className:Ue.Z.children},ye.children.map((Re,Oe)=>ot.createElement("div",{key:Oe},ot.createElement("h1",null,Re.name),ot.createElement(Ve.Z,{gutter:[10,10]},Re.data.map((We,Be)=>ot.createElement(ut.Z,{key:Be,onClick:()=>se(We),className:Ue.Z.diamond},ot.createElement(ze.Z,{value:"`$$"+We.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ot.createElement(Ve.Z,{className:Ue.Z.lists,gutter:[10,10]},ue.map((ye,Ce)=>ot.createElement(ut.Z,{flex:"110px",className:Ue.Z.item},ot.createElement("div",null,ot.createElement(ze.Z,{value:"`$$"+ye.value+"$$`"}),ye.name),ot.createElement("div",{className:Ue.Z.children},ye.children.map((Re,Oe)=>ot.createElement("div",{key:Oe},Re.name&&ot.createElement("h1",null,Re.name),ot.createElement(Ve.Z,{gutter:[10,10]},Re.data.map((We,Be)=>ot.createElement(ut.Z,{key:Be,onClick:()=>se(We),className:Ue.Z.diamond},ot.createElement(ze.Z,{value:"`$$"+We.value+"$$`"}))))))))))}],pe=()=>{var ye=document.createElement("div");ye.innerHTML=ne.current.getValue();var Ce=ye.innerText;return Et&&Et(Ce),Ce};return(0,me.useImperativeHandle)(Ee,()=>({getData:pe})),ot.createElement("div",{className:Ue.Z.mathWrap},ot.createElement(nt.default,{defaultActiveKey:"1",items:de}),ot.createElement("math-field",{locale:"zh_cn",className:Ue.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:ne,style:{width:800,marginTop:30,fontSize:18}},ht||""),_e&&ot.createElement("div",{className:Ue.Z.button},ot.createElement(it.ZP,{size:"large",onClick:pe,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Jt.Z=Me},28426:function(cn,Jt,Pe){"use strict";var me=Pe(59301),Ve=Pe(93314),ut=Pe(99571),nt=Object.defineProperty,it=Object.defineProperties,ze=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,Me=(Ee,ne,ee)=>ne in Ee?nt(Ee,ne,{enumerable:!0,configurable:!0,writable:!0,value:ee}):Ee[ne]=ee,Et=(Ee,ne)=>{for(var ee in ne||(ne={}))yt.call(ne,ee)&&Me(Ee,ee,ne[ee]);if(Ue)for(var ee of Ue(ne))ot.call(ne,ee)&&Me(Ee,ee,ne[ee]);return Ee},_e=(Ee,ne)=>it(Ee,ze(ne));const ht=({img:Ee,buttonProps:ne={},styles:ee={},customText:ue,ButtonText:se,ButtonClick:de,Buttonclass:pe,ButtonTwo:ye,imgStyles:Ce,loading:Re=!1,className:Oe=""})=>me.createElement("section",{className:`tc animated fadeIn ${Oe}`,style:Et({color:"#999",margin:"100px auto",visibility:Re?"hidden":"visible"},ee)},me.createElement("img",{src:Ee||Ve,style:_e(Et({},Ce),{pointerEvents:"none",userSelect:"none"})}),me.createElement("p",{className:"mt20 font14"},ue||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),se&&me.createElement(ut.ZP,Et({className:pe,onClick:de},ne),se),ye&&ye);Jt.Z=ht},43155:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Q:function(){return ze}});var me=Pe(59301),Ve=Pe(82326),ut=Pe(47889),nt=Pe(71051),it=Pe(59301),ze=(yt=>(yt[yt.Number=1]="Number",yt[yt.Percent=2]="Percent",yt))(ze||{});const Ue=({value:yt,onChange:ot,disabled:Me,hidePercentOption:Et=!1,percentType:_e="select"})=>{const ht=(0,me.useMemo)(()=>Et?1:2,[Et]),[Ee,ne]=(0,me.useState)(ht);console.log(Ee);const ee=se=>yt.type===1?`${se}\u5206`:`${se}%`,ue=(0,me.useCallback)(se=>{if(Ee===1){const de=se.replace("\u5206","");return isNaN(parseInt(de,10))?0:de}else return se.replace("%","")},[Ee]);return(0,me.useEffect)(()=>{ne(yt.type)},[yt]),it.createElement("div",{style:{display:"flex",alignItems:"center"}},_e=="select"&&it.createElement(Ve.default,{size:"large",onChange:se=>{ne(se),ot({type:se,inputValue:se===1?5:20})},value:Ee||ht,style:{width:100},options:Et?[{label:"\u5206\u503C",value:1}]:[{label:"\u767E\u5206\u6BD4",value:2},{label:"\u5206\u503C",value:1}],disabled:Me}),_e=="radio"&&it.createElement(ut.ZP.Group,{size:"large",onChange:se=>{const de=se.target.value;ne(de),ot({type:de,inputValue:de===1?5:20})},value:Ee||ht,disabled:Me},!Et&&it.createElement(ut.ZP,{value:2,style:{marginRight:"50px"}},"\u767E\u5206\u6BD4\u6263\u5206"),it.createElement(ut.ZP,{value:1},"\u56FA\u5B9A\u5206\u503C")),_e=="radio"&&it.createElement("div",{style:{marginRight:"10px",color:"#000000"}},yt.type==2?"\u6263\u9664\u8865\u4EA4\u9636\u6BB5\u5F97\u5206\u7684":"\u6263\u9664\u603B\u6210\u7EE9\u7684"),it.createElement(nt.Z,{size:"large",disabled:Me,value:yt.inputValue,style:{width:"120px"},parser:ue,addonAfter:yt.type===1?"\u5206":"%",max:Ee===2?100:Number.MAX_SAFE_INTEGER,min:0,precision:0,onChange:se=>{ot({type:Ee,inputValue:se})}}),_e=="radio"&&yt.type==2&&it.createElement("div",{style:{marginLeft:"10px",color:"#000000"}},"\u5206\u6570"))};Jt.Z=Ue},45677:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Z:function(){return pe}});var me=Pe(59301),Ve={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},ut=Pe(99571),nt=Pe(70557),it=Pe(75975),ze=Pe(25399),Ue=Pe(51257),yt=Pe(81722),ot=Pe(28426),Me=Pe(346),Et=Pe(44203),_e=Pe(59301),ht=Object.defineProperty,Ee=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ue=(ye,Ce,Re)=>Ce in ye?ht(ye,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Re}):ye[Ce]=Re,se=(ye,Ce)=>{for(var Re in Ce||(Ce={}))ne.call(Ce,Re)&&ue(ye,Re,Ce[Re]);if(Ee)for(var Re of Ee(Ce))ee.call(Ce,Re)&&ue(ye,Re,Ce[Re]);return ye},de=(ye,Ce,Re)=>new Promise((Oe,We)=>{var Be=rt=>{try{Qe(Re.next(rt))}catch(xt){We(xt)}},Ie=rt=>{try{Qe(Re.throw(rt))}catch(xt){We(xt)}},Qe=rt=>rt.done?Oe(rt.value):Promise.resolve(rt.value).then(Be,Ie);Qe((Re=Re.apply(ye,Ce)).next())}),pe=({editOffice:ye="view",data:Ce,issaver:Re,onSaver:Oe,theme:We,type:Be,filename:Ie,monacoEditor:Qe,className:rt,style:xt,close:gt,onClose:bt,hasMask:At,disabledDownload:Tt,onImgDimensions:Nt,showNodata:Ut,recordInfo:st})=>{const[He,jt]=(0,me.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[fn,Bt]=(0,me.useState)(""),[Ft,It]=(0,me.useState)(),Vt=window.ENV==="build"?"/react/build":"",wn=location.host.startsWith("localhost")?Me.Z.PROXY_SERVER:Me.Z.API_SERVER,vt=10*(1024*1024),zt=(0,me.useRef)();Ce!=null&&Ce.startsWith("/api")&&Be!=="txt"&&(Ce=Me.Z.API_SERVER+Ce);const En=Te=>Te.substring(Te.lastIndexOf("/")+1).split(".").pop();Ie&&Qe&&(Qe.filename=Ie),(0,me.useEffect)(()=>{var Te,Ye;const De=(Ye=(Te=document.cookie)==null?void 0:Te.replace(/\s/g,""))==null?void 0:Ye.split(";");De==null||De.map(tt=>{let Ht=tt.split("=");Ht[0]==="_educoder_session"&&Bt(Ht[1])})},[]),(0,me.useEffect)(()=>{Be==="office"&&(Ce.indexOf("bigfilescdn.")>-1||Ce.indexOf("bigfiles1")>-1?It({url:Ce,fileType:En(Ce),model:Ce.indexOf("model=edit")?"edit":"view"}):Ze())},[Be,Ce]);function kn(Te){return de(this,null,function*(){Te.data.type==="pdfdata"&&(Oe(Te.data.data),window.removeEventListener("message",kn,!1)),console.log("mess---:",Te.data)})}const Ze=()=>de(void 0,null,function*(){console.log("data:",Ce);let Te=Ce;Ce.startsWith("http")||(Te=location.origin+Te);let Ye=new URL(Te).pathname.split("/").pop();const De=yield(0,yt.gJ)({attachment_id:Ye});De.url=wn+De.url,It(De)}),Fe=()=>{if(Ce.startsWith("http")||Ce.startsWith("blob:")){xe();return}(0,Ue.Sv)(Ie||"educoder",Ce,Ie)},xe=()=>{st&&(0,Et.fc)({id:st==null?void 0:st.id,watch_type:1,course_id:st==null?void 0:st.course_id}),(0,Ue.Nd)(Ie||"educoder",decodeURIComponent(Ce))};return _e.createElement("div",{style:se({},xt||{}),className:`${At&&Ve.bgBlack} ${Be?Ve.wrp:"hide"}`},gt&&_e.createElement("div",{className:Ve.close,ref:zt},!!Nt&&_e.createElement(ze.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>zt.current},_e.createElement("span",{onClick:()=>{bt(),Nt()}},_e.createElement("i",{className:"icon-yulanpizhu"}))),!Tt&&_e.createElement(ze.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>zt.current},_e.createElement("span",{onClick:xe},_e.createElement("i",{className:"icon-quxiaozhiding"}))),Re&&_e.createElement(ze.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>zt.current},_e.createElement("span",{className:"",onClick:()=>{const Te=document.getElementById("pdfiframe");window.addEventListener("message",kn,!1),setTimeout(()=>{Te.contentWindow.postMessage("getData","*")},300)}},_e.createElement("i",{className:"icon-baocun"}))),_e.createElement(ze.Z,{title:"\u5173\u95ED",getPopupContainer:()=>zt.current},_e.createElement("span",{className:"",onClick:()=>{bt()}},_e.createElement("i",{className:"icon-guanbi1"})))),_e.createElement("div",{className:`${Ve[rt]} ${rt} ${Ve.monaco} ${Be==="txt"?"show":"hide"}`},Be==="txt"&&_e.createElement(_e.Fragment,null,_e.createElement(it.ZP,se({},Qe)))),Be==="audio"&&_e.createElement("audio",{src:`${(Ce==null?void 0:Ce.indexOf("http://"))>-1||(Ce==null?void 0:Ce.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Ce}`,autoPlay:!0}),Be==="video"&&_e.createElement(_e.Fragment,null,(Ce==null?void 0:Ce.indexOf("http"))>-1?_e.createElement("video",{controls:!0,src:`${Ce}`,autoPlay:!0}):_e.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ce}`,autoPlay:!0})),Be==="office"&&Ft&&_e.createElement("iframe",{src:`${Vt}/office.html?key=${Ft.key}&url=${btoa(Ft.url)}&callbackUrl=${wn+(Ft.callbackUrl||"")}&fileType=${Ft.fileType}&title=${Ft.title||""}&model=${ye}&officeServer=${Me.Z.ONLYOFFICE}&disabledDownload=${!!Tt}`}),Be==="html"&&_e.createElement("iframe",{src:Ce+"&disposition=inline"}),Be==="pdf"&&_e.createElement("iframe",{id:"pdfiframe",src:`${Vt}/js/pdfview/index.html?filename=${Ie||"educoder.pdf"}&url=${encodeURIComponent(Ce)}&disabledDownload=${!!Tt}&model=${ye}`}),Be==="image"&&_e.createElement("img",{src:`${(Ce==null?void 0:Ce.indexOf("http://"))>-1||(Ce==null?void 0:Ce.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ce}`}),(Be==="other"||Be==="download")&&_e.createElement(_e.Fragment,null,Ut?_e.createElement(ot.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:_e.createElement(ut.ZP,{icon:_e.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Fe,disabled:Tt},"\u4E0B\u8F7D")}):_e.createElement(ut.ZP,{type:"primary",size:"middle",onClick:Fe,disabled:Tt},_e.createElement(nt.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},76902:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{z:function(){return We},Z:function(){return Be}});var me=Pe(59301),Ve=Pe(8944),ut=Pe(81428),nt=Pe(64018),it=Pe(81168),ze=Pe(346),Ue=Pe(51257),yt=Pe(15342),ot=Pe(1012),Me=Pe(45677),Et=Pe(59301),ht=({html:Ie})=>{const Qe=(0,me.useRef)(null),rt=(0,me.useRef)(null),xt=`.markdown-body p {
|
|
margin: 0 0 16px 0 !important;
|
|
line-height: 28px;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
ol,
|
|
ul,
|
|
li {
|
|
list-style-type: none
|
|
}
|
|
|
|
ol,
|
|
ul,
|
|
dl {
|
|
margin-bottom: 0px;
|
|
}
|
|
|
|
.markdown-body {
|
|
-ms-text-size-adjust: 100%;
|
|
-webkit-text-size-adjust: 100%;
|
|
color: #333;
|
|
overflow: hidden;
|
|
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
|
|
word-break: break-word;
|
|
font-size: 16px;
|
|
line-height: 1.6;
|
|
white-space: normal;
|
|
word-wrap: break-word;
|
|
position: relative;
|
|
}
|
|
|
|
.markdown-body ul>li {
|
|
list-style-type: disc;
|
|
}
|
|
|
|
.markdown-body ol>li {
|
|
list-style-type: decimal;
|
|
}
|
|
|
|
.markdown-body a {
|
|
background: transparent;
|
|
}
|
|
|
|
.markdown-body a:active,
|
|
.markdown-body a:hover {
|
|
outline: 0;
|
|
}
|
|
|
|
.markdown-body strong {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body h1 {
|
|
font-size: 2em;
|
|
margin: 0.67em 0;
|
|
}
|
|
|
|
.markdown-body img {
|
|
border: 0;
|
|
}
|
|
|
|
.markdown-body hr {
|
|
-moz-box-sizing: content-box;
|
|
box-sizing: content-box;
|
|
height: 0;
|
|
}
|
|
|
|
.markdown-body pre {
|
|
overflow: auto;
|
|
}
|
|
|
|
.markdown-body code,
|
|
.markdown-body kbd,
|
|
.markdown-body pre {
|
|
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
|
|
font-size: 1em;
|
|
}
|
|
|
|
.markdown-body input {
|
|
color: inherit;
|
|
font: inherit;
|
|
margin: 0;
|
|
}
|
|
|
|
.markdown-body html input[disabled] {
|
|
cursor: default;
|
|
}
|
|
|
|
.markdown-body input {
|
|
line-height: normal;
|
|
}
|
|
|
|
.markdown-body input[type="checkbox"] {
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
padding: 0;
|
|
}
|
|
|
|
.markdown-body table {
|
|
border-collapse: collapse;
|
|
border-spacing: 0;
|
|
}
|
|
|
|
.markdown-body td,
|
|
.markdown-body th {
|
|
padding: 0;
|
|
}
|
|
|
|
.markdown-body * {
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.markdown-body input {
|
|
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
|
|
}
|
|
|
|
.markdown-body a {
|
|
color: #4183c4;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.markdown-body a:hover,
|
|
.markdown-body a:active {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.markdown-body hr {
|
|
height: 0;
|
|
margin: 15px 0;
|
|
overflow: hidden;
|
|
background: transparent;
|
|
border: 0;
|
|
border-bottom: 1px solid #ddd;
|
|
}
|
|
|
|
.markdown-body hr:before {
|
|
display: table;
|
|
content: "";
|
|
}
|
|
|
|
.markdown-body hr:after {
|
|
display: table;
|
|
clear: both;
|
|
content: "";
|
|
}
|
|
|
|
.markdown-body h1,
|
|
.markdown-body h2,
|
|
.markdown-body h3,
|
|
.markdown-body h4,
|
|
.markdown-body h5,
|
|
.markdown-body h6 {
|
|
margin-top: 15px;
|
|
margin-bottom: 15px;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.markdown-body h1 {
|
|
font-size: 30px;
|
|
}
|
|
|
|
.markdown-body h2 {
|
|
font-size: 21px;
|
|
}
|
|
|
|
.markdown-body h3 {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.markdown-body h4 {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.markdown-body h5 {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.markdown-body h6 {
|
|
font-size: 11px;
|
|
}
|
|
|
|
.markdown-body blockquote {
|
|
margin: 0;
|
|
}
|
|
|
|
.markdown-body ul,
|
|
.markdown-body ol {
|
|
padding: 0;
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
ul.linenums,
|
|
ol.linenums {
|
|
padding: 16px 0 0 56px !important;
|
|
}
|
|
|
|
.markdown-body ul,
|
|
.markdown-body ol {
|
|
padding-left: 2em;
|
|
}
|
|
|
|
|
|
.markdown-body ol ol,
|
|
.markdown-body ul ol {
|
|
list-style-type: lower-roman;
|
|
}
|
|
|
|
.markdown-body ul ul ol,
|
|
.markdown-body ul ol ol,
|
|
.markdown-body ol ul ol,
|
|
.markdown-body ol ol ol {
|
|
list-style-type: lower-alpha;
|
|
}
|
|
|
|
.markdown-body dd {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.markdown-body code {
|
|
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.markdown-body pre {
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
}
|
|
|
|
.markdown-body .octicon {
|
|
font: normal normal 16px octicons-anchor;
|
|
line-height: 1;
|
|
display: inline-block;
|
|
text-decoration: none;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.markdown-body .octicon-link:before {
|
|
content: '\f05c';
|
|
}
|
|
|
|
.markdown-body>*:first-child {
|
|
margin-top: 0 !important;
|
|
}
|
|
|
|
.markdown-body>*:last-child {
|
|
margin-bottom: 0 !important;
|
|
}
|
|
|
|
.markdown-body .anchor {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
display: block;
|
|
padding-right: 6px;
|
|
padding-left: 30px;
|
|
margin-left: -30px;
|
|
}
|
|
|
|
.markdown-body .anchor:focus {
|
|
outline: none;
|
|
}
|
|
|
|
.markdown-body h1,
|
|
.markdown-body h2,
|
|
.markdown-body h3,
|
|
.markdown-body h4,
|
|
.markdown-body h5,
|
|
.markdown-body h6 {
|
|
position: relative;
|
|
margin-top: 1em;
|
|
margin-bottom: 16px;
|
|
font-weight: bold;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.markdown-body h1 .octicon-link,
|
|
.markdown-body h2 .octicon-link,
|
|
.markdown-body h3 .octicon-link,
|
|
.markdown-body h4 .octicon-link,
|
|
.markdown-body h5 .octicon-link,
|
|
.markdown-body h6 .octicon-link {
|
|
display: none;
|
|
color: #000;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.markdown-body h1:hover .anchor,
|
|
.markdown-body h2:hover .anchor,
|
|
.markdown-body h3:hover .anchor,
|
|
.markdown-body h4:hover .anchor,
|
|
.markdown-body h5:hover .anchor,
|
|
.markdown-body h6:hover .anchor {
|
|
padding-left: 8px;
|
|
margin-left: -30px;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.markdown-body h1:hover .anchor .octicon-link,
|
|
.markdown-body h2:hover .anchor .octicon-link,
|
|
.markdown-body h3:hover .anchor .octicon-link,
|
|
.markdown-body h4:hover .anchor .octicon-link,
|
|
.markdown-body h5:hover .anchor .octicon-link,
|
|
.markdown-body h6:hover .anchor .octicon-link {
|
|
display: inline-block;
|
|
}
|
|
|
|
.markdown-body h1 {
|
|
padding-bottom: 0.3em;
|
|
font-size: 2.25em;
|
|
line-height: 1.2;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.markdown-body h1 .anchor {
|
|
line-height: 1;
|
|
}
|
|
|
|
.markdown-body h2 {
|
|
padding-bottom: 0.3em;
|
|
font-size: 1.75em;
|
|
line-height: 1.225;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.markdown-body h2 .anchor {
|
|
line-height: 1;
|
|
}
|
|
|
|
.markdown-body h3 {
|
|
font-size: 1.5em;
|
|
line-height: 1.43;
|
|
}
|
|
|
|
.markdown-body h3 .anchor {
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.markdown-body h4 {
|
|
font-size: 1.25em;
|
|
}
|
|
|
|
.markdown-body h4 .anchor {
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.markdown-body h5 {
|
|
font-size: 1em;
|
|
}
|
|
|
|
.markdown-body h5 .anchor {
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.markdown-body h6 {
|
|
font-size: 1em;
|
|
color: #777;
|
|
}
|
|
|
|
.markdown-body h6 .anchor {
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.markdown-body p,
|
|
.markdown-body blockquote,
|
|
.markdown-body ul,
|
|
.markdown-body ol,
|
|
.markdown-body dl,
|
|
.markdown-body table,
|
|
.markdown-body pre {
|
|
margin-top: 0;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.markdown-body ul ul,
|
|
.markdown-body ul ol,
|
|
.markdown-body ol ol,
|
|
.markdown-body ol ul {
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.markdown-body li>p {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.markdown-body dl {
|
|
padding: 0;
|
|
}
|
|
|
|
.markdown-body dl dt {
|
|
padding: 0;
|
|
margin-top: 16px;
|
|
font-size: 1em;
|
|
font-style: italic;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body dl dd {
|
|
padding: 0 16px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.markdown-body blockquote {
|
|
padding: 0 15px;
|
|
color: #777;
|
|
border-left: 4px solid #ddd;
|
|
}
|
|
|
|
.markdown-body blockquote> :first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.markdown-body blockquote> :last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.markdown-body table {
|
|
display: block;
|
|
width: 100%;
|
|
overflow: auto;
|
|
word-break: normal;
|
|
word-break: keep-all;
|
|
}
|
|
|
|
.markdown-body table th {
|
|
font-weight: bold;
|
|
text-align: revert;
|
|
}
|
|
|
|
.markdown-body table th,
|
|
.markdown-body table td {
|
|
padding: 6px 13px;
|
|
border: 1px solid #ddd;
|
|
}
|
|
|
|
.markdown-body table tr {
|
|
background-color: #fff;
|
|
border-top: 1px solid #ccc;
|
|
}
|
|
|
|
.markdown-body table tr:nth-child(2n) {
|
|
background-color: #f8f8f8;
|
|
}
|
|
|
|
.markdown-body img {
|
|
max-width: 100%;
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.markdown-body code {
|
|
padding: 0;
|
|
padding-top: 0.2em;
|
|
padding-bottom: 0.2em;
|
|
margin: 0;
|
|
font-size: 85%;
|
|
background-color: rgba(0, 0, 0, 0.04);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.markdown-body code:has(.katex) {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.markdown-body code:before,
|
|
.markdown-body code:after {
|
|
letter-spacing: -0.2em;
|
|
content: "\\00a0";
|
|
}
|
|
|
|
.markdown-body pre>code {
|
|
padding: 0;
|
|
margin: 0;
|
|
font-size: 100%;
|
|
word-break: normal;
|
|
white-space: pre;
|
|
background: transparent;
|
|
border: 0;
|
|
}
|
|
|
|
.markdown-body .highlight {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.markdown-body .highlight pre,
|
|
.markdown-body pre {
|
|
padding: 16px;
|
|
overflow: auto;
|
|
font-size: 85%;
|
|
line-height: 1.45;
|
|
background-color: #f7f7f7;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.markdown-body .highlight pre {
|
|
margin-bottom: 0;
|
|
word-break: normal;
|
|
}
|
|
|
|
.markdown-body pre {
|
|
word-wrap: normal;
|
|
}
|
|
|
|
.markdown-body pre code {
|
|
display: inline;
|
|
max-width: initial;
|
|
padding: 0;
|
|
margin: 0;
|
|
overflow: initial;
|
|
line-height: inherit;
|
|
word-wrap: normal;
|
|
background-color: transparent;
|
|
border: 0;
|
|
}
|
|
|
|
.markdown-body pre code:before,
|
|
.markdown-body pre code:after {
|
|
content: normal;
|
|
}
|
|
|
|
.markdown-body kbd {
|
|
display: inline-block;
|
|
padding: 3px 5px;
|
|
font-size: 11px;
|
|
line-height: 10px;
|
|
color: #555;
|
|
vertical-align: middle;
|
|
background-color: #fcfcfc;
|
|
border: solid 1px #ccc;
|
|
border-bottom-color: #bbb;
|
|
border-radius: 3px;
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
}
|
|
|
|
.markdown-body .pl-c {
|
|
color: #969896;
|
|
}
|
|
|
|
.markdown-body .pl-c1,
|
|
.markdown-body .pl-mdh,
|
|
.markdown-body .pl-mm,
|
|
.markdown-body .pl-mp,
|
|
.markdown-body .pl-mr,
|
|
.markdown-body .pl-s1 .pl-v,
|
|
.markdown-body .pl-s3,
|
|
.markdown-body .pl-sc,
|
|
.markdown-body .pl-sv {
|
|
color: #0086b3;
|
|
}
|
|
|
|
.markdown-body .pl-e,
|
|
.markdown-body .pl-en {
|
|
color: #795da3;
|
|
}
|
|
|
|
.markdown-body .pl-s1 .pl-s2,
|
|
.markdown-body .pl-smi,
|
|
.markdown-body .pl-smp,
|
|
.markdown-body .pl-stj,
|
|
.markdown-body .pl-vo,
|
|
.markdown-body .pl-vpf {
|
|
color: #333;
|
|
}
|
|
|
|
.markdown-body .pl-ent {
|
|
color: #63a35c;
|
|
}
|
|
|
|
.markdown-body .pl-k,
|
|
.markdown-body .pl-s,
|
|
.markdown-body .pl-st {
|
|
color: #a71d5d;
|
|
}
|
|
|
|
.markdown-body .pl-pds,
|
|
.markdown-body .pl-s1,
|
|
.markdown-body .pl-s1 .pl-pse .pl-s2,
|
|
.markdown-body .pl-sr,
|
|
.markdown-body .pl-sr .pl-cce,
|
|
.markdown-body .pl-sr .pl-sra,
|
|
.markdown-body .pl-sr .pl-sre,
|
|
.markdown-body .pl-src {
|
|
color: #df5000;
|
|
}
|
|
|
|
.markdown-body .pl-mo,
|
|
.markdown-body .pl-v {
|
|
color: #1d3e81;
|
|
}
|
|
|
|
.markdown-body .pl-id {
|
|
color: #b52a1d;
|
|
}
|
|
|
|
.markdown-body .pl-ii {
|
|
background-color: #b52a1d;
|
|
color: #f8f8f8;
|
|
}
|
|
|
|
.markdown-body .pl-sr .pl-cce {
|
|
color: #63a35c;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body .pl-ml {
|
|
color: #693a17;
|
|
}
|
|
|
|
.markdown-body .pl-mh,
|
|
.markdown-body .pl-mh .pl-en,
|
|
.markdown-body .pl-ms {
|
|
color: #1d3e81;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body .pl-mq {
|
|
color: #008080;
|
|
}
|
|
|
|
.markdown-body .pl-mi {
|
|
color: #333;
|
|
font-style: italic;
|
|
}
|
|
|
|
.markdown-body .pl-mb {
|
|
color: #333;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body .pl-md,
|
|
.markdown-body .pl-mdhf {
|
|
background-color: #ffecec;
|
|
color: #bd2c00;
|
|
}
|
|
|
|
.markdown-body .pl-mdht,
|
|
.markdown-body .pl-mi1 {
|
|
background-color: #eaffea;
|
|
color: #55a532;
|
|
}
|
|
|
|
.markdown-body .pl-mdr {
|
|
color: #795da3;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body kbd {
|
|
display: inline-block;
|
|
padding: 3px 5px;
|
|
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
line-height: 10px;
|
|
color: #555;
|
|
vertical-align: middle;
|
|
background-color: #fcfcfc;
|
|
border: solid 1px #ccc;
|
|
border-bottom-color: #bbb;
|
|
border-radius: 3px;
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
}
|
|
|
|
.markdown-body .task-list-item {
|
|
list-style-type: none;
|
|
}
|
|
|
|
.markdown-body .task-list-item+.task-list-item {
|
|
margin-top: 3px;
|
|
}
|
|
|
|
.markdown-body .task-list-item input {
|
|
float: left;
|
|
margin: 0.3em 0 0.25em -1.6em;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.markdown-body :checked+.radio-label {
|
|
z-index: 1;
|
|
position: relative;
|
|
border-color: #4183c4;
|
|
}
|
|
|
|
|
|
/*! Pretty printing styles. Used with prettify.js. */
|
|
/* SPAN elements with the classes below are added by prettyprint. */
|
|
.pln {
|
|
color: #000
|
|
}
|
|
|
|
/* plain text */
|
|
|
|
@media screen {
|
|
.str {
|
|
color: #080
|
|
}
|
|
|
|
/* string content */
|
|
.kwd {
|
|
color: #008
|
|
}
|
|
|
|
/* a keyword */
|
|
.com {
|
|
color: #800
|
|
}
|
|
|
|
/* a comment */
|
|
.typ {
|
|
color: #606
|
|
}
|
|
|
|
/* a type name */
|
|
.lit {
|
|
color: #066
|
|
}
|
|
|
|
/* a literal value */
|
|
/* punctuation, lisp open bracket, lisp close bracket */
|
|
.pun,
|
|
.opn,
|
|
.clo {
|
|
color: #660
|
|
}
|
|
|
|
.tag {
|
|
color: #008
|
|
}
|
|
|
|
/* a markup tag name */
|
|
.atn {
|
|
color: #606
|
|
}
|
|
|
|
/* a markup attribute name */
|
|
.atv {
|
|
color: #080
|
|
}
|
|
|
|
/* a markup attribute value */
|
|
.dec,
|
|
.var {
|
|
color: #606
|
|
}
|
|
|
|
/* a declaration; a variable name */
|
|
.fun {
|
|
color: red
|
|
}
|
|
|
|
/* a function name */
|
|
}
|
|
|
|
/* Use higher contrast and text-weight for printable form. */
|
|
@media print,
|
|
projection {
|
|
.str {
|
|
color: #060
|
|
}
|
|
|
|
.kwd {
|
|
color: #006;
|
|
font-weight: bold
|
|
}
|
|
|
|
.com {
|
|
color: #600;
|
|
font-style: italic
|
|
}
|
|
|
|
.typ {
|
|
color: #404;
|
|
font-weight: bold
|
|
}
|
|
|
|
.lit {
|
|
color: #044
|
|
}
|
|
|
|
.pun,
|
|
.opn,
|
|
.clo {
|
|
color: #440
|
|
}
|
|
|
|
.tag {
|
|
color: #006;
|
|
font-weight: bold
|
|
}
|
|
|
|
.atn {
|
|
color: #404
|
|
}
|
|
|
|
.atv {
|
|
color: #060
|
|
}
|
|
}
|
|
|
|
/* Put a border around prettyprinted code snippets. */
|
|
pre.prettyprint {
|
|
padding: 2px;
|
|
/* border: 1px solid #888 */
|
|
}
|
|
|
|
/* Specify class=linenums on a pre to get line numbering */
|
|
ol.linenums {
|
|
margin-top: 0;
|
|
margin-bottom: 0
|
|
}
|
|
|
|
/* IE indents via margin-left */
|
|
li.L0,
|
|
li.L1,
|
|
li.L2,
|
|
li.L3,
|
|
li.L5,
|
|
li.L6,
|
|
li.L7,
|
|
li.L8 {
|
|
list-style-type: none
|
|
}
|
|
|
|
/* Alternate shading for lines */
|
|
li.L1,
|
|
li.L3,
|
|
li.L5,
|
|
li.L7,
|
|
li.L9 {
|
|
background: #eee
|
|
}
|
|
|
|
.markdown-body p,
|
|
.markdown-body blockquote,
|
|
.markdown-body ul,
|
|
.markdown-body ol,
|
|
.markdown-body dl,
|
|
.markdown-body table,
|
|
.markdown-body pre {
|
|
margin-top: 0;
|
|
margin-bottom: 16px;
|
|
}`;return(0,me.useEffect)(()=>{const gt=Qe.current.attachShadow({mode:"open"});rt.current=document.createElement("div"),rt.current.className="markdown-body",rt.current.innerHTML=Ie,gt.appendChild(rt.current);const bt=document.createElement("style");return bt.textContent=xt,gt.appendChild(bt),()=>{gt.innerHTML=""}},[]),(0,me.useEffect)(()=>{rt.current&&(rt.current.innerHTML=Ie)},[Ie]),Et.createElement("div",{ref:Qe})};function Ee(Ie){const Qe=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],rt=new RegExp(`\\b(${Qe.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return Ie.replace(rt,"").trim()}var ne=Object.defineProperty,ee=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,de=(Ie,Qe,rt)=>Qe in Ie?ne(Ie,Qe,{enumerable:!0,configurable:!0,writable:!0,value:rt}):Ie[Qe]=rt,pe=(Ie,Qe)=>{for(var rt in Qe||(Qe={}))ue.call(Qe,rt)&&de(Ie,rt,Qe[rt]);if(ee)for(var rt of ee(Qe))se.call(Qe,rt)&&de(Ie,rt,Qe[rt]);return Ie};const ye="@\u2581\u2581@",Ce="@\u2581@",Re=/<pre[^>]*>/g;function Oe(Ie){let Qe=document.createElement("div");return Qe.innerHTML=Ie,Qe.childNodes.length===0?"":Qe.childNodes[0].nodeValue}const We=(Ie,Qe)=>{Ie=Ie||"";const rt=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,xt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,gt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,bt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Qe?Ie.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(rt,(At,Tt,Nt,Ut,st,He,jt)=>{const fn=Tt||Ut||He,Bt=Nt||st||jt||"?";return ze.Z.API_SERVER+"/api/attachments/"+fn+Bt+"&t="+(0,Ue.Jn)(fn,Date.now())+(At.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Ie=Ie.replace(bt,(At,Tt,Nt,Ut,st,He,jt)=>{const fn=Tt||Ut||He,Bt=Nt||st||jt||"?";return ze.Z.API_SERVER+"/attachments/download/"+fn+Bt+"&t="+(0,Ue.Jn)(fn,Date.now())+(At.indexOf(")")>-1?")":"&")}).replace(rt,(At,Tt,Nt,Ut,st,He,jt)=>{const fn=Tt||Ut||He,Bt=Nt||st||jt||"?";return ze.Z.API_SERVER+"/api/attachments/"+fn+Bt+"&t="+(0,Ue.Jn)(fn,Date.now())+(At.indexOf(")")>-1?")":"&")}).replace(xt,(At,Tt,Nt,Ut,st)=>{const He=Tt||Ut,jt=Nt||st||"";return'"'+ze.Z.API_SERVER+"/api/attachments/"+He+jt+He+jt+"&t="+(0,Ue.Jn)(He,Date.now())}).replace(gt,(At,Tt,Nt,Ut,st)=>{const He=Tt||Ut,jt=Nt||st||"";return"("+ze.Z.API_SERVER+"/files/uploads/"+He+jt+He+jt+"&t="+(0,Ue.Jn)(He,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
`),Ie)};var Be=({value:Ie="",className:Qe,showTextOnly:rt,showLines:xt,style:gt={},stylesPrev:bt={},highlightKeywords:At,showProgramFill:Tt,isProgramFill:Nt,disabledFill:Ut=!1,programFillValue:st,onFillChange:He=Bt=>{},onFillBlur:jt=()=>{},onFillFocus:fn=()=>{}})=>{let Bt=Ee(String(Ie||""));const[Ft,It]=(0,me.useState)(""),[Vt,wn]=(0,me.useState)("office"),[Dt,vt]=(0,me.useState)([]),zt=(0,me.useRef)("a"+(0,ot.Z)()),En={},kn=kt=>/<style[\s\S]*?>/i.test(kt||""),Ze=(kt,nn,hn)=>{const zn=document.createElement(kt===Ce?"input":"textarea");zn.style.width="100%",zn.style.height=kt===Ce?"40px":"151px",zn.rows=5,zn.spellcheck=!1,zn.name="edu-program-fill",zn.placeholder="\u8BF7\u8F93\u5165",zn.dataset.id=nn;const fi=Object.keys(En).length;return En[fi]=zn,`<span class="edu-program-fill-wrap ${kt===Ce?"":"show"}" style="width:${kt===Ce?"600px":"100%"}" title=${hn||""}><span>${zn.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Fe(kt){return kt=kt.replace(/!\[.*?\]\(.*?\)/g,""),kt=kt.replace(/\[.*?\]\(.*?\)/g,""),kt=kt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),kt=kt.replace(/<embed.*?>/g,""),kt=kt.replace(/<img.*?>/g,""),kt=kt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),kt=kt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),kt=kt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),kt=kt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),kt}const xe=kt=>!rt&&kn(Bt)?kt:kt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(nn,hn){let zn=hn.replace(/(\n|\r)/g,"").split("}"),fi=[];return zn.map(_n=>{_n!=""&&fi.push(`.${zt.current} ${_n}`)}),`<style>${fi.join("}")}</style>`}),Te=(0,me.useMemo)(()=>{try{const zn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,fi=/\"\/api\/attachments\/|\"\/attachments\/download\//g,_n=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Pi=/\(\/attachments\/download\//g;Bt=Bt.replace(Pi,"("+ze.Z.API_SERVER+"/attachments/download/").replace(zn,"("+ze.Z.API_SERVER+"/api/attachments/").replace(fi,'"'+ze.Z.API_SERVER+"/api/attachments/").replace(_n,'"'+ze.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
`)}catch(zn){}if(Tt){let zn=-1;return Bt=Bt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(fi,_n,Pi){var Ci;return++zn,Ze(fi,zn,(Ci=st==null?void 0:st[zn])==null?void 0:Ci.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${xe(Bt||"")}</pre>`}let kt=xe(Bt);kt=(0,ut.ZP)(kt);const nn=(0,ut.ez)();Bt.match(/\[TOC\]/)&&(kt=kt.replace("<p>[TOC]</p>",(0,ut.Qv)()),(0,ut.Iy)()),kt=kt.replace(/(__special_katext_id_\d+__)/g,(zn,fi)=>{const{type:_n,expression:Pi}=nn[fi];return(0,yt.renderToString)(Oe(Pi)||"",{displayMode:_n==="block",throwOnError:!1,output:"html"})}),kt=kt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ut.AL)();const hn=document.createElement("div");if(hn.innerHTML=kt,rt)return hn.innerText;if(At){const zn=At.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Ht(hn,zn),hn.innerHTML}return setTimeout(()=>en(),500),hn.innerHTML},[Bt,At]);(0,me.useEffect)(()=>{$t.current&&$t.current.querySelectorAll(["input","textarea"]).forEach(nn=>{nn.oninput=Ye,nn.onblur=De,nn.onfocus=tt})},[Dt]),(0,me.useEffect)(()=>{var kt,nn,hn,zn,fi;if(st!=null&&st.length)try{const _n=$t.current.querySelectorAll(".edu-program-fill-score"),Pi=$t.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ci,Yn]of Pi.entries())Yn.value=((kt=st==null?void 0:st[Ci])==null?void 0:kt.value)||"",((nn=st==null?void 0:st[Ci])==null?void 0:nn.type)==="warning"?Yn.className="program-fill-warning":((hn=st==null?void 0:st[Ci])==null?void 0:hn.type)==="success"?Yn.className="program-fill-success":Yn.className="";for(const[Ci,Yn]of _n.entries())Yn.innerHTML=(zn=st==null?void 0:st[Ci])!=null&&zn.score?`${(fi=st==null?void 0:st[Ci])==null?void 0:fi.score}\u5206`:"";vt(st)}catch(_n){console.log(_n,"error")}},[st]);const Ye=kt=>{Dt[kt.target.dataset.id]=Dt[kt.target.dataset.id]||{},Dt[kt.target.dataset.id].value=kt.target.value,vt([...Dt]),He(Dt,kt.target.dataset.id)},De=kt=>{Dt[kt.target.dataset.id]=Dt[kt.target.dataset.id]||{},Dt[kt.target.dataset.id].value=kt.target.value,vt([...Dt]),jt(Dt,kt.target.dataset.id)},tt=kt=>{Dt[kt.target.dataset.id]=Dt[kt.target.dataset.id]||{},Dt[kt.target.dataset.id].value=kt.target.value,vt([...Dt]),fn(Dt,kt.target.dataset.id)};function Ht(kt,nn){return kt.childNodes.forEach(hn=>{var zn;if(hn.childNodes.length>0)Ht(hn,nn);else if(hn.nodeName!=="IMG")if(hn.innerHTML)hn.innerHTML=(zn=hn.innerHTML)==null?void 0:zn.replace(new RegExp(nn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const fi=document.createElement("span");fi.innerHTML=hn.textContent.replace(new RegExp(nn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),hn.replaceWith(fi)}})}const $t=(0,me.useRef)();ut.jb.WebkitLineClamp=xt,xt&&(gt=pe(pe({},gt),ut.jb));function Sn(kt){let nn=kt.target;if(nn.tagName.toUpperCase()==="A"){let hn=nn.getAttribute("href");if(hn.indexOf("office")>-1)kt.preventDefault(),It(hn),wn("office");else if(hn.indexOf("application/pdf")>-1)kt.preventDefault(),It(hn),wn("pdf");else if(hn.indexOf("text/html")>-1)kt.preventDefault(),It(hn),wn("html");else if(hn.startsWith("#")){kt.preventDefault();let zn=document.getElementById(hn.replace("#",""));zn&&zn.scrollIntoView(!0)}}}const en=()=>{var kt;const nn=(kt=$t.current)==null?void 0:kt.querySelectorAll("video");nn==null||nn.forEach(hn=>{if(hn.oncontextmenu=()=>!1,hn.src.indexOf(".m3u8")>-1&&!hn.canPlayType("application/vnd.apple.mpegurl")){if(it.ZP.isSupported()){var zn=new it.ZP;zn.loadSource(hn.src),zn.attachMedia(hn)}}})};return(0,me.useEffect)(()=>{if($t.current&&Te&&Te.match(Re)&&window.PR.prettyPrint(),$t.current)return $t.current.addEventListener("click",Sn),()=>{var kt;(kt=$t.current)==null||kt.removeEventListener("click",Sn),(0,ut.AL)(),(0,ut.Iy)()}},[Te,$t.current,Sn]),(0,me.useEffect)(()=>{var kt;const nn=hn=>{hn.preventDefault(),hn.clipboardData.setData("text",window.getSelection().toString())};return(kt=$t.current)==null||kt.addEventListener("copy",nn),()=>{var hn;(hn=$t.current)==null||hn.removeEventListener("copy",nn)}},[$t.current]),me.createElement(me.Fragment,null,rt&&me.createElement("div",{ref:$t},Te),!rt&&!kn(Te)&&me.createElement("div",{ref:$t,style:pe({},gt),className:`${Qe||""} ${Ut?"disabled-fill":""} markdown-body ${zt.current}`,dangerouslySetInnerHTML:{__html:Te}}),!rt&&kn(Te)&&me.createElement(ht,{html:Te}),me.createElement(Me.Z,{close:!0,data:Ft,type:Ft!=null&&Ft.length?Vt:"",style:pe({},bt),onClose:()=>It("")}))}},59639:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Z:function(){return Oe}});var me=Pe(59301),Ve=Pe(9221),ut=Object.defineProperty,nt=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,Ue=(We,Be,Ie)=>Be in We?ut(We,Be,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):We[Be]=Ie,yt=(We,Be)=>{for(var Ie in Be||(Be={}))it.call(Be,Ie)&&Ue(We,Ie,Be[Ie]);if(nt)for(var Ie of nt(Be))ze.call(Be,Ie)&&Ue(We,Ie,Be[Ie]);return We},ot=(We,Be)=>{var Ie={};for(var Qe in We)it.call(We,Qe)&&Be.indexOf(Qe)<0&&(Ie[Qe]=We[Qe]);if(We!=null&&nt)for(var Qe of nt(We))Be.indexOf(Qe)<0&&ze.call(We,Qe)&&(Ie[Qe]=We[Qe]);return Ie};const Et={header:{cell:We=>{var Be=We,{onResize:Ie,width:Qe}=Be,rt=ot(Be,["onResize","width"]);return Qe?me.createElement(Ve.Resizable,{width:Qe,height:0,handle:me.createElement("span",{className:"react-resizable-handle",onClick:xt=>{xt.stopPropagation()}}),onResize:Ie,draggableOpts:{enableUserSelectHack:!1}},me.createElement("th",yt({},rt))):me.createElement("th",yt({},rt))}}};var _e=Pe(54172),ht=Object.defineProperty,Ee=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,de=(We,Be,Ie)=>Be in We?ht(We,Be,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):We[Be]=Ie,pe=(We,Be)=>{for(var Ie in Be||(Be={}))ue.call(Be,Ie)&&de(We,Ie,Be[Ie]);if(ee)for(var Ie of ee(Be))se.call(Be,Ie)&&de(We,Ie,Be[Ie]);return We},ye=(We,Be)=>Ee(We,ne(Be)),Ce=(We,Be)=>{var Ie={};for(var Qe in We)ue.call(We,Qe)&&Be.indexOf(Qe)<0&&(Ie[Qe]=We[Qe]);if(We!=null&&ee)for(var Qe of ee(We))Be.indexOf(Qe)<0&&se.call(We,Qe)&&(Ie[Qe]=We[Qe]);return Ie},Oe=We=>{var Be=We,{pagination:Ie,resColumns:Qe,dataSource:rt,onRow:xt}=Be,gt=Ce(Be,["pagination","resColumns","dataSource","onRow"]);const[bt,At]=(0,me.useState)(!1),[Tt,Nt]=(0,me.useState)([{}]),Ut=(0,me.useRef)(null);(0,me.useEffect)(()=>{let He=Qe;He=He.map((jt,fn)=>ye(pe({},jt),{onHeaderCell:Bt=>({width:Bt.width,onResize:st(fn)})})),Nt(He)},[]),(0,me.useEffect)(()=>{Ut.current=Tt},[Tt]);const st=He=>(jt,{size:fn})=>{const Bt=[...Ut.current];Bt[He]=ye(pe({},Bt[He]),{width:fn.width}),Nt(Bt)};return me.createElement("div",null,me.createElement(_e.default,ye(pe({bordered:!0,components:Et,columns:Tt,dataSource:rt,pagination:Ie,loading:bt,onRow:xt},gt),{rowKey:He=>He.key||He.id})))}},87444:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Z:function(){return Be},P:function(){return Re}});var me=Pe(59301),Ve=Pe(28284),ut=Pe(62957),nt=Pe(47889),it=Pe(37568),ze=Pe(54172),Ue={brief:"brief___LOzpE",contentTitle:"contentTitle___xkdcN",content:"content___Vtri0",tips:"tips___tuAtH",antdTable:"antdTable___s8T2N",tableCell:"tableCell___kN9Fw",antdModal:"antdModal___WVBk3",orangeColor:"orangeColor___ryB2u"},yt=Pe(75736),ot=Object.defineProperty,Me=Object.defineProperties,Et=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,ht=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,ne=(Ie,Qe,rt)=>Qe in Ie?ot(Ie,Qe,{enumerable:!0,configurable:!0,writable:!0,value:rt}):Ie[Qe]=rt,ee=(Ie,Qe)=>{for(var rt in Qe||(Qe={}))ht.call(Qe,rt)&&ne(Ie,rt,Qe[rt]);if(_e)for(var rt of _e(Qe))Ee.call(Qe,rt)&&ne(Ie,rt,Qe[rt]);return Ie},ue=(Ie,Qe)=>Me(Ie,Et(Qe)),se=(Ie,Qe)=>{var rt={};for(var xt in Ie)ht.call(Ie,xt)&&Qe.indexOf(xt)<0&&(rt[xt]=Ie[xt]);if(Ie!=null&&_e)for(var xt of _e(Ie))Qe.indexOf(xt)<0&&Ee.call(Ie,xt)&&(rt[xt]=Ie[xt]);return rt},de=(Ie,Qe,rt)=>new Promise((xt,gt)=>{var bt=Nt=>{try{Tt(rt.next(Nt))}catch(Ut){gt(Ut)}},At=Nt=>{try{Tt(rt.throw(Nt))}catch(Ut){gt(Ut)}},Tt=Nt=>Nt.done?xt(Nt.value):Promise.resolve(Nt.value).then(bt,At);Tt((rt=rt.apply(Ie,Qe)).next())});const pe=({studentNames:Ie,total:Qe})=>{const rt=["","\u4E00","\u4E24","\u4E09"];return Qe>3?me.createElement(me.Fragment,null,"\u8BFE\u5802\u5185\u6709",me.createElement("span",{className:Ue.orangeColor},Ie==null?void 0:Ie.join("\u3001")),"\u7B49",me.createElement("span",{className:Ue.orangeColor},Qe),"\u540D\u5B66\u751F"):me.createElement(me.Fragment,null,"\u8BFE\u5802\u5185\u6709",me.createElement("span",{className:Ue.orangeColor},Ie==null?void 0:Ie.join("\u3001")),rt[Qe],"\u540D\u5B66\u751F")},ye=({used:Ie,copy:Qe,canNotCopy:rt,studentNames:xt,studentCount:gt,inPaper:bt,is_random:At=!1,position:Tt=""})=>{const Nt=()=>{if(Qe>0&&rt>0)return me.createElement(me.Fragment,null,"\u5176\u4E2D",me.createElement("span",{className:Ue.orangeColor},Qe),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C",me.createElement("span",{className:Ue.orangeColor},rt),"\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236");if(Qe>0&&rt===0)return me.createElement(me.Fragment,null,"\u5176\u4E2D",me.createElement("span",{className:Ue.orangeColor},Qe),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236");if(Qe===0&&rt>0)return me.createElement(me.Fragment,null,"\u5176\u4E2D",me.createElement("span",{className:Ue.orangeColor},rt),"\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236")},Ut=Tt||(bt?"\u8BD5\u5377":"\u8BFE\u7A0B");return me.createElement("span",null,me.createElement(pe,{studentNames:xt,total:gt}),"\u5B66\u4E60\u8FC7",Ut,"\u4E2D\u7684",me.createElement("span",{className:Ue.orangeColor},Ie),"\u4E2A\u9879\u76EE\uFF0C",Nt(),"\u3002\u8BF7\u9009\u62E9",At?"":"\u662F\u5426\u7EE7\u7EED\u4F7F\u7528\u548C","\u662F\u5426\u590D\u5236\u4E3A\u65B0\u9879\u76EE\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\uFF1F")},Ce=({onCancel:Ie,onOk:Qe,visible:rt,inPaper:xt,renderData:gt,type:bt,isMultipleCourse:At=!1})=>{const[Tt]=Ve.default.useForm(),[Nt,Ut]=(0,me.useState)(1),[st,He]=(0,me.useState)(!1),jt=(0,me.useMemo)(()=>(gt==null?void 0:gt.total_num)===1&&(gt==null?void 0:gt.can_copy_num)===1,[gt]),fn=(0,me.useMemo)(()=>{var Bt;return(Bt=gt==null?void 0:gt.course_data_list)==null?void 0:Bt.filter(Ft=>Ft.is_show)},[gt]);return me.createElement(me.Fragment,null,jt?me.createElement(ut.default,{centered:!0,closable:!0,open:rt,destroyOnClose:!0,title:"\u63D0\u793A",className:Ue.antdModal,width:682,confirmLoading:st,onCancel:Ie,onOk:()=>de(void 0,null,function*(){var Bt;He(!0);let Ft=Nt;if(At){const It=ee({},Tt.getFieldsValue());Ft=(Bt=gt==null?void 0:gt.course_data_list)==null?void 0:Bt.map(Vt=>It[Vt.id]!==void 0?ue(ee({},Vt),{is_copy:It[Vt.id]}):Vt)}yield Qe(Ft),He(!1)})},me.createElement("div",{className:Ue.content,style:{marginBottom:20}},At?"\u68C0\u6D4B\u5230\u4EE5\u4E0B\u8BFE\u5802\u5DF2\u5728\u6559\u5B66\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u8BF7\u95EE\u662F\u5426\u590D\u5236\u6210\u65B0\u7684\u5B9E\u8BAD\u53D1\u9001\u81F3\u6559\u5B66\u8BFE\u5802\u4E2D?":me.createElement(me.Fragment,null,me.createElement(pe,{studentNames:gt==null?void 0:gt.student_names,total:gt==null?void 0:gt.student_count}),"\u5B66\u4E60\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\u3002\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u8BF7\u9009\u62E9\u662F\u5426\u5C06\u8BE5\u9879\u76EE\u590D\u5236\u4E3A\u65B0\u9879\u76EE\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\uFF1F")),At?me.createElement(Ve.default,{form:Tt,preserve:!1},fn==null?void 0:fn.map(Bt=>me.createElement(me.Fragment,{key:Bt.id},me.createElement("h3",{className:"ml15 mb5"},Bt.name),me.createElement(Ve.default.Item,{name:Bt.id,initialValue:1},me.createElement(nt.ZP.Group,{className:Ue.content},me.createElement(nt.ZP,{value:1,style:{color:"#464f66"}},"\u590D\u5236\u5B9E\u8BAD"),me.createElement(nt.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u590D\u5236\u5B9E\u8BAD")))))):me.createElement(nt.ZP.Group,{value:Nt,onChange:Bt=>Ut(Bt.target.value),className:Ue.content,style:{marginBottom:30}},me.createElement(nt.ZP,{value:1,style:{color:"#464f66"}},"\u590D\u5236"),me.createElement(nt.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u590D\u5236")),me.createElement("div",null,me.createElement("div",{className:Ue.content,style:{marginBottom:10}},"* \u8BF4\u660E\uFF1A"),me.createElement("div",{className:Ue.content,style:{marginBottom:20}},"1\u3001\u590D\u5236\uFF1A\u7CFB\u7EDF\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF08\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF09\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\u3002"),me.createElement("div",{className:`${Ue.content} ${Ue.orangeColor}`},"2\u3001\u4E0D\u590D\u5236\uFF1A\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002"))):me.createElement(ut.default,{centered:!0,closable:!0,destroyOnClose:!0,open:rt,confirmLoading:st,title:"\u63D0\u793A",width:682,onCancel:Ie,onOk:()=>de(void 0,null,function*(){var Bt;He(!0);let Ft=0;if(At){const It=ee({},Tt.getFieldsValue());Ft=(Bt=gt==null?void 0:gt.course_data_list)==null?void 0:Bt.map(Vt=>It[Vt.id]!==void 0?ue(ee({},Vt),{is_use:It[Vt.id]}):Vt)}yield Qe(Ft),He(!1)})},me.createElement("div",{className:Ue.content},me.createElement(pe,{studentNames:gt==null?void 0:gt.student_names,total:gt==null?void 0:gt.student_count}),"\u5B66\u4E60\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\u3002",At?me.createElement(Ve.default,{form:Tt,preserve:!1},me.createElement("h3",null,"\u5F53\u524D\u5B9E\u8BAD\u4E0D\u53EF\u590D\u5236\uFF0C\u5DF2\u7ECF\u68C0\u6D4B\u5230\u4EE5\u4E0B\u8BFE\u5802\u5B58\u5728\u8BE5\u5B9E\u8BAD\uFF0C\u540C\u4E00\u5B9E\u8BAD\u5728\u8BFE\u5802\u4E2D\u91CD\u590D\u4F7F\u7528\u65F6\uFF0C\u4F1A\u5BFC\u81F4\u6210\u7EE9\u4E92\u76F8\u5F71\u54CD\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u7EE7\u7EED\u4F7F\u7528"),fn==null?void 0:fn.map(Bt=>me.createElement(me.Fragment,{key:Bt.id},me.createElement("h3",{className:"ml15 mb5"},Bt.name),me.createElement(Ve.default.Item,{name:Bt.id,initialValue:1},me.createElement(nt.ZP.Group,{className:Ue.content},me.createElement(nt.ZP,{value:1,style:{color:"#464f66"}},"\u7EE7\u7EED\u4F7F\u7528"),me.createElement(nt.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u4F7F\u7528")))))):me.createElement("div",null,"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u82E5\u786E\u8BA4\u7EE7\u7EED\u53D1\u9001\uFF0C",me.createElement("span",{className:Ue.orangeColor},"\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002"),"\uFF08\u5982\u679C\u4E0D\u60F3\u6E05\u7A7A\u5B66\u751F\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u5EFA\u8BAE\u53C2\u7167\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u5185\u5BB9\u81EA\u884C\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u6216\u8005\u5C1D\u8BD5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u4EBA\u5F00\u653E\u672C\u9879\u76EE\u7684\u590D\u5236\u6743\u9650\uFF09\u3002"))))},Re=function(){const[Ie,Qe]=(0,me.useState)(!1),[rt,xt]=(0,me.useState)();return[Ie,()=>Qe(!1),rt,At=>de(this,null,function*(){var Tt;const Nt=At,{isImportMultipleCourse:Ut=!1}=Nt,st=se(Nt,["isImportMultipleCourse"]);console.log(At);const He=(At==null?void 0:At.result)||(yield(0,yt.Tr)(st));return"status"in He?!1:Ut?((Tt=He==null?void 0:He.course_data_list)==null?void 0:Tt.some(fn=>fn.is_show))?(xt(He),Qe(!0),!0):He.course_data_list||[]:He.student_count===0?!1:(xt(He),Qe(!0),!0)})]},Oe=Ie=>{const[Qe]=Ve.default.useForm(),[rt,xt]=(0,me.useState)(!1),{onCancel:gt,onOk:bt,visible:At,inPaper:Tt=!1,renderData:Nt,type:Ut,isMultipleCourse:st=!1,position:He}=Ie;let jt=(0,me.useMemo)(()=>Tt?[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:Ue.tableCell,render(Ft,It){return me.createElement("a",{href:`/shixuns/${It.identifier}/challenges`,target:"_blank"},Ft)}},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:(Ft,It)=>me.createElement(me.Fragment,null,me.createElement(Ve.default.Item,{name:[`${Ut==="subject"?It.stage_shixun_id:It.shixun_course_id||It.id}`,"is_copy"],initialValue:1},me.createElement(nt.ZP.Group,null,me.createElement(nt.ZP,{value:1},"\u662F"),me.createElement(nt.ZP,{value:0},"\u5426"))),me.createElement(Ve.default.Item,{name:[`${Ut==="subject"?It==null?void 0:It.stage_shixun_id:It.shixun_course_id||It.id}`,"is_use"],hidden:!0,initialValue:1},me.createElement(it.default,{type:"hidden"})))}]:[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:Ue.tableCell,render(Ft,It){return me.createElement("a",{href:`/shixuns/${It.identifier}/challenges`,target:"_blank"},Ft)}},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:(Ft,It)=>me.createElement(Ve.default.Item,{name:[`${Ut==="subject"?It.stage_shixun_id:It.shixun_course_id||It.id}`,"is_use"],initialValue:1},me.createElement(nt.ZP.Group,null,me.createElement(nt.ZP,{value:1},"\u662F"),me.createElement(nt.ZP,{value:0},"\u5426")))},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:(Ft,It)=>me.createElement(Ve.default.Item,{name:[`${Ut==="subject"?It.stage_shixun_id:It.shixun_course_id||It.id}`,"is_copy"],initialValue:1},me.createElement(nt.ZP.Group,null,me.createElement(nt.ZP,{value:1},"\u662F"),me.createElement(nt.ZP,{value:0},"\u5426")))}],[Tt]),fn=(0,me.useMemo)(()=>Tt?[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,className:Ue.tableCell,align:"center",ellipsis:!0,render:(Ft,It)=>me.createElement(me.Fragment,null,me.createElement("a",{href:`/shixuns/${It.identifier}/challenges`,target:"_blank"},Ft),me.createElement(Ve.default.Item,{name:[`${Ut==="subject"?It==null?void 0:It.stage_shixun_id:It.shixun_course_id||It.id}`,"is_copy"],hidden:!0,initialValue:0},me.createElement(it.default,{type:"hidden"})),me.createElement(Ve.default.Item,{name:[`${Ut==="subject"?It==null?void 0:It.stage_shixun_id:It.shixun_course_id||It.id}`,"is_use"],hidden:!0,initialValue:1},me.createElement(it.default,{type:"hidden"})))}]:[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,className:Ue.tableCell,ellipsis:!0,align:"center",render:(Ft,It)=>me.createElement("a",{href:`/shixuns/${It.identifier}/challenges`,target:"_blank"},Ft)},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:(Ft,It)=>me.createElement(me.Fragment,null,me.createElement(Ve.default.Item,{name:[`${Ut==="subject"?It==null?void 0:It.stage_shixun_id:It.shixun_course_id||It.id}`,"is_use"],initialValue:0},me.createElement(nt.ZP.Group,null,me.createElement(nt.ZP,{value:1},"\u662F"),me.createElement(nt.ZP,{value:0},"\u5426"))),me.createElement(Ve.default.Item,{name:[`${Ut==="subject"?It==null?void 0:It.stage_shixun_id:It.shixun_course_id||It.id}`,"is_copy"],hidden:!0,initialValue:0},me.createElement(it.default,{type:"hidden"})))}],[Tt]);if(st){const Ft={title:"\u8BFE\u5802\u540D\u79F0",ellipsis:!0,dataIndex:"course_name",width:190,align:"center",className:Ue.tableCell,render:(It,Vt)=>me.createElement("a",{href:`/classrooms/${Vt.course_id}`},It)};jt=[Ft,...jt],fn=[Ft,...fn]}const Bt=(0,me.useMemo)(()=>ye({used:Nt==null?void 0:Nt.repeat_shixun_num,copy:Nt==null?void 0:Nt.can_copy_num,canNotCopy:Nt==null?void 0:Nt.no_copy_num,studentNames:Nt==null?void 0:Nt.student_names,studentCount:Nt==null?void 0:Nt.student_count,is_random:Nt==null?void 0:Nt.is_random,inPaper:Tt,position:He}),[Nt,Tt,He]);return me.createElement(ut.default,{title:"\u63D0\u793A",centered:!0,open:At,confirmLoading:rt,onOk:()=>de(void 0,null,function*(){xt(!0);const Ft=Qe.getFieldsValue(),It=Object.keys(Ft).map(Vt=>({id:parseInt(Vt.split("_")[0]),course_id:parseInt(Vt.split("_")[1]),is_use:Ft[Vt].is_use,is_copy:Ft[Vt].is_copy}));yield bt(It),xt(!1)}),onCancel:gt,width:880,okText:"\u786E\u8BA4",className:Ue.antdModal,destroyOnClose:!0},me.createElement(Ve.default,{form:Qe,preserve:!1},me.createElement("div",{className:Ue.brief},Bt),me.createElement("div",{style:{marginBottom:30}},me.createElement("div",{style:{marginBottom:20}},"* \u8BF4\u660E"),me.createElement("div",{style:{marginBottom:20}},"1\u3001\u590D\u5236\uFF1A\u7CFB\u7EDF\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF08\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF09\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\u3002"),me.createElement("div",{className:Ue.orangeColor},"2\u3001\u4E0D\u590D\u5236\uFF1A\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002")),(Nt==null?void 0:Nt.can_copy_num)>0&&me.createElement("div",null,me.createElement("div",{className:Ue.contentTitle},"\u652F\u6301\u590D\u5236\u7684\u9879\u76EE"),me.createElement(ze.default,{columns:jt,className:Ue.antdTable,dataSource:Nt==null?void 0:Nt.can_copy_list,rowKey:Ut==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})),(Nt==null?void 0:Nt.no_copy_num)>0&&me.createElement("div",null,me.createElement("div",{className:Ue.contentTitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u9879\u76EE"),me.createElement(ze.default,{columns:fn,className:Ue.antdTable,dataSource:Nt==null?void 0:Nt.no_copy_list,rowKey:Ut==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:200},bordered:!0})),(Nt==null?void 0:Nt.no_use_list.length)>0&&(Nt==null?void 0:Nt.no_use_list.map(Ft=>me.createElement("div",{key:Ut==="subject"?Ft.stage_shixun_id:Ft.shixun_course_id||Ft.id},me.createElement(Ve.default.Item,{name:[`${Ut==="subject"?Ft==null?void 0:Ft.stage_shixun_id:Ft.shixun_course_id||Ft.id}`,"is_copy"],hidden:!0,initialValue:0},me.createElement(it.default,{type:"hidden"})),me.createElement(Ve.default.Item,{name:[`${Ut==="subject"?Ft==null?void 0:Ft.stage_shixun_id:Ft.shixun_course_id||Ft.id}`,"is_use"],hidden:!0,initialValue:1},me.createElement(it.default,{type:"hidden"})))))))};var Be=Ie=>{const{modalType:Qe}=Ie;return Qe==="multiple"?me.createElement(Oe,ee({},Ie)):me.createElement(Ce,ee({},Ie))}},3039:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Z:function(){return yt}});var me=Pe(59301),Ve={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},ut=Pe(62957),nt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",it="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",ze=(ot,Me,Et)=>new Promise((_e,ht)=>{var Ee=ue=>{try{ee(Et.next(ue))}catch(se){ht(se)}},ne=ue=>{try{ee(Et.throw(ue))}catch(se){ht(se)}},ee=ue=>ue.done?_e(ue.value):Promise.resolve(ue.value).then(Ee,ne);ee((Et=Et.apply(ot,Me)).next())}),yt=({type:ot,resdata:Me,onok:Et,oktext:_e,okloading:ht})=>{const[Ee,ne]=(0,me.useState)(!1),{can_copy_list:ee,can_copy_num:ue,challenge_type:se,course_data_list:de,no_copy_list:pe,no_copy_num:ye,no_use_list:Ce,no_use_num:Re,repeat_shixun_num:Oe,student_count:We,total_num:Be,use_num:Ie}=Me;let Qe=ue>0||ot==="exercise";(0,me.useEffect)(()=>{(Me==null?void 0:Me.student_count)>0&&ne(!0)},[Me]),console.log("---11",ht),(0,me.useEffect)(()=>{ht||ne(!1)},[ht]);const rt=()=>{if(ot==="exercise"&&se===1)return me.createElement(me.Fragment,null,"\u8BFE\u5802\u5185\u6709",me.createElement("span",{className:Ve.orangeColor},We),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",me.createElement("span",{className:Ve.orangeColor},Ie),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",me.createElement("span",{className:Ve.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(ot==="exercise"&&se===2)return me.createElement(me.Fragment,null,"\u8BFE\u5802\u5185\u6709",me.createElement("span",{className:Ve.orangeColor},We),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",me.createElement("span",{className:Ve.orangeColor},Ie),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",me.createElement("span",{className:Ve.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ot==="shixun"&&se===1)return me.createElement(me.Fragment,null,"\u8BFE\u5802\u5185\u6709",me.createElement("span",{className:Ve.orangeColor},We),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",me.createElement("span",{className:Ve.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ot==="shixun"&&se===2)return me.createElement(me.Fragment,null,"\u8BFE\u5802\u5185\u6709",me.createElement("span",{className:Ve.orangeColor},We),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",me.createElement("span",{className:Ve.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ot==="subject"&&se===1)return me.createElement(me.Fragment,null,"\u8BFE\u5802\u5185\u6709",me.createElement("span",{className:Ve.orangeColor},We),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",me.createElement("span",{className:Ve.orangeColor},Ie),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",me.createElement("span",{className:Ve.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ot==="subject"&&se===2)return me.createElement(me.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",me.createElement("span",{className:Ve.orangeColor},We)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",me.createElement("span",{className:Ve.orangeColor},Ie)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",me.createElement("span",{className:Ve.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ot==="exercisepush")return me.createElement(me.Fragment,null,"\u8BFE\u5802\u5185\u6709",me.createElement("span",{className:Ve.orangeColor},We),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",me.createElement("span",{className:Ve.orangeColor},Ie),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",me.createElement("span",{className:Ve.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(ot==="shixunpush"&&se===1)return me.createElement(me.Fragment,null,"\u8BFE\u5802\u5185\u6709",me.createElement("span",{className:Ve.orangeColor},We),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",me.createElement("span",{className:Ve.orangeColor},Ie),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",me.createElement("span",{className:Ve.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ot==="shixunpush"&&se===2)return me.createElement(me.Fragment,null,"\u8BFE\u5802\u5185\u6709",me.createElement("span",{className:Ve.orangeColor},We),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",me.createElement("span",{className:Ve.orangeColor},Ie),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",me.createElement("span",{className:Ve.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},xt=()=>{if(ot==="exercise"||ot==="subject"||ot==="exercisepush"||ot==="shixunpush")return me.createElement("div",{style:{marginTop:20}},ye>0&&me.createElement("div",null,me.createElement("span",{className:Ve.flex},me.createElement("img",{src:it,style:{width:14}}),me.createElement("span",{className:Ve.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),me.createElement("div",{className:Ve.statusbody},ot==="exercise"&&me.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",me.createElement("span",{className:Ve.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(ot==="subject"||ot==="exercisepush")&&me.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Qe&&me.createElement("span",{className:Ve.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),ot==="shixunpush"&&me.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Qe&&me.createElement("span",{className:Ve.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),me.createElement("div",null,pe==null?void 0:pe.map((gt,bt)=>me.createElement("a",{href:`/shixuns/${gt.identifier}/challenges`,target:"_blank"},"\u300A",gt==null?void 0:gt.name,"\u300B",bt+1!==ye&&"\u3001"))))),ue>0&&me.createElement("div",{style:{marginTop:20}},me.createElement("span",{className:Ve.flex},me.createElement("img",{src:nt,style:{width:14}}),me.createElement("span",{className:Ve.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),me.createElement("div",{className:Ve.statusbody},ot==="exercise"&&me.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(ot==="subject"||ot==="exercisepush")&&me.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),ot==="shixunpush"&&me.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),me.createElement("div",null,ee==null?void 0:ee.map((gt,bt)=>me.createElement("a",{href:`/shixuns/${gt.identifier}/challenges`,target:"_blank"},"\u300A",gt==null?void 0:gt.name,"\u300B",bt+1!==ue&&"\u3001"))))));if(ot==="shixun")return me.createElement("div",{style:{marginTop:20}},ue>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return me.createElement(ut.default,{open:Ee,onCancel:()=>{ne(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!Qe&&"none"}},zIndex:1003,confirmLoading:ht,okText:Qe?_e:"\u6211\u77E5\u9053\u4E86",onOk:()=>ze(void 0,null,function*(){Qe?yield Et([...ee,...Ce]):ne(!1)})},me.createElement("div",{style:{maxHeight:600,overflow:"auto"}},rt(),xt()))}},97991:function(cn,Jt,Pe){"use strict";var me=Pe(59301),Ve=Pe(25690),ut=Pe(62957),nt=Pe(54650),it=Pe(59301),ze=(yt,ot,Me)=>new Promise((Et,_e)=>{var ht=ee=>{try{ne(Me.next(ee))}catch(ue){_e(ue)}},Ee=ee=>{try{ne(Me.throw(ee))}catch(ue){_e(ue)}},ne=ee=>ee.done?Et(ee.value):Promise.resolve(ee.value).then(ht,Ee);ne((Me=Me.apply(yt,ot)).next())});const Ue=({classroomList:yt,dispatch:ot})=>{var Me,Et;const _e=(0,me.useRef)(null),[ht,Ee]=(0,me.useState)(!1),ne=()=>{ot({type:"classroomList/setActionTabs",payload:{}})};return it.createElement(ut.default,{centered:!0,maskClosable:!1,width:560,title:"\u540C\u6B65\u786E\u8BA4",open:((Me=yt==null?void 0:yt.actionTabs)==null?void 0:Me.key)==="\u5B9E\u8BAD\u540C\u6B65\u786E\u8BA4",destroyOnClose:!0,onCancel:ne,onOk:()=>ze(void 0,null,function*(){var ee,ue;(ee=_e.current)!=null&&ee.onVerify()||(Ee(!0),yield(ue=yt==null?void 0:yt.actionTabs)==null?void 0:ue.onOK(),Ee(!1))}),okText:"\u786E\u8BA4\u540C\u6B65",comfirmLoading:(Et=yt==null?void 0:yt.actionTabs)==null?void 0:Et.loading},it.createElement("p",null,"\u672C\u64CD\u4F5C\u4F1A\u5C06\u5F53\u524D\u5B9E\u8BAD\u5168\u90E8\u5185\u5BB9\u540C\u6B65\u81F3\u9009\u62E9\u5B9E\u8BAD\u4E2D\uFF0C\u8BF7\u4ED4\u7EC6\u786E\u8BA4\u9700\u540C\u6B65\u7684\u5B9E\u8BAD\u5185\u5BB9\uFF0C\u786E\u8BA4\u65E0\u8BEF\uFF0C\u8BF7\u5728\u4E0B\u65B9\u6587\u672C\u6846\u8F93\u5165\u9A8C\u8BC1\u7801\u540E\uFF0C\u8FDB\u884C\u5B9E\u8BAD\u540C\u6B65\u3002"),it.createElement("p",{style:{color:"#DD0000"}},"*\u6CE8\u610F\uFF1A\u5B9E\u8BAD\u540C\u6B65\u540E\u5C06\u65E0\u6CD5\u6062\u590D\u81F3\u539F\u6709\u7248\u672C\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\u3002"),it.createElement(nt.Z,{ref:ee=>_e.current=ee}))};Jt.Z=(0,Ve.connect)(({classroomList:yt})=>({classroomList:yt}))(Ue)},69221:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Z:function(){return it}});var me=Pe(59301),Ve={flex_box_center:"flex_box_center___sOi51",flex_space_between:"flex_space_between___pl96A",flex_box_vertical_center:"flex_box_vertical_center___LVWaS",flex_box_center_end:"flex_box_center_end___bFW2z",flex_box_column:"flex_box_column___Iuosg",disabled:"disabled___kyQ47"},ut=Pe(25399),it=({children:ze,tips:Ue,title:yt,style:ot})=>{const Me=yt||me.createElement("div",null,me.createElement("div",null,"\u63D0\u793A\uFF1A"),me.createElement("div",null,"\u672C\u573A\u8003\u8BD5\u5DF2\u5F00\u542F\u96C6\u4E2D\u9605\u5377\uFF0C\u4E3A\u4E86\u4E0D\u5F71\u54CD\u6210\u7EE9\u8BC4\u5B9A\uFF0C\u4E0D\u53EF\u8FDB\u884C\u6B64\u64CD\u4F5C\u3002"),me.createElement("div",null,"\uFF08\u5982\u9700\u53D1\u5E03\u65B0\u73ED\u7EA7\u8003\u8BD5\uFF0C\u8BF7\u521B\u5EFA\u65B0\u8BD5\u5377\u540E\u53D1\u5E03\uFF09"));return ze&&Ue?me.createElement(ut.Z,{overlayStyle:{maxWidth:"initial"},title:Me},me.createElement("span",{className:Ve.disabled,style:ot},ze)):ze&&!Ue?me.createElement(me.Fragment,null,ze):me.createElement(me.Fragment,null)}},16107:function(cn,Jt,Pe){"use strict";var me=Pe(59301),Ve=Pe(62957),ut=Pe(54172);const nt=({dataSource:it,visible:ze,onClose:Ue=()=>{},onSuccess:yt=()=>{},text:ot,okText:Me})=>{var Et;return me.createElement(Ve.default,{centered:!0,destroyOnClose:!0,open:!!ze,title:"\u63D0\u793A",width:"600px",okText:Me,cancelText:"\u53D6\u6D88",onCancel:Ue,onOk:yt},ze==="single"&&me.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",me.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},(Et=it==null?void 0:it[0])==null?void 0:Et.total_score),"\u5206\uFF0C\u8BF7\u786E\u8BA4",ot),ze==="multiple"&&me.createElement(me.Fragment,null,me.createElement("div",{className:"c-grey-333 mb10"},"\u4EE5\u4E0B\u8BD5\u5377\u603B\u5206\u5F02\u5E38\uFF0C\u8BF7\u786E\u8BA4",ot),me.createElement(ut.default,{columns:[{title:"\u8BD5\u5377\u540D\u79F0",dataIndex:"name",ellipsis:!0},{title:"\u603B\u5206",width:90,dataIndex:"total_score"}],dataSource:it,scroll:(it==null?void 0:it.length)>7?{y:300}:{},pagination:!1})))};Jt.Z=nt},69720:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{h:function(){return ye}});var me=Pe(59301),Ve=Pe(82326),ut=Pe(28284),nt=Pe(99571),it=Pe(89780),ze=Pe.n(it),Ue=Pe(8336),yt=Pe(12469),ot=Object.defineProperty,Me=Object.defineProperties,Et=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,ht=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,ne=(Ce,Re,Oe)=>Re in Ce?ot(Ce,Re,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Re]=Oe,ee=(Ce,Re)=>{for(var Oe in Re||(Re={}))ht.call(Re,Oe)&&ne(Ce,Oe,Re[Oe]);if(_e)for(var Oe of _e(Re))Ee.call(Re,Oe)&&ne(Ce,Oe,Re[Oe]);return Ce},ue=(Ce,Re)=>Me(Ce,Et(Re));const se=Ve.default.Option,de={labelCol:{span:4},wrapperCol:{span:20}},pe={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"]};Jt.Z=({callback:Ce,onCancel:Re})=>{const[Oe,We]=(0,me.useState)("python");function Be(Qe){We(pe[Qe][1])}function Ie(Qe){Ce(Qe)}return me.createElement(ut.default,ue(ee({},de),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ie,style:{width:500}}),me.createElement(ut.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},me.createElement(Ve.default,{getPopupContainer:Qe=>Qe.parentNode,onChange:Be},Object.keys(pe).map(Qe=>me.createElement(se,{key:Qe,value:Qe},pe[Qe][0])))),me.createElement(ut.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},me.createElement(ye,{mode:Oe})),me.createElement("div",{className:"flex-container flex-end"},me.createElement(nt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),me.createElement(nt.ZP,{type:"ghost",onClick:Re},"\u53D6\u6D88")))};function ye({value:Ce,onChange:Re,mode:Oe,options:We={}}){const Be=(0,me.useRef)(),[Ie,Qe]=(0,me.useState)();return(0,me.useEffect)(()=>{if(Ie){let rt=function(xt){const gt=xt.getValue();Re&&Re(gt)};return Ie.on("change",rt),()=>{Ie.off("change",rt)}}},[Ie,Re]),(0,me.useEffect)(()=>{Ie&&Ie.setOption("mode",Oe)},[Ie,Oe]),(0,me.useEffect)(()=>{Ie&&(Ce!==Ie.getValue()||Ce==="")&&setTimeout(()=>{Ie.setValue(Ce||"")},300)},[Ie,Ce]),(0,me.useEffect)(()=>{if(Be.current&&!Ie){const rt=ze().fromTextArea(Be.current,ee({mode:Oe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},We));Qe(rt)}},[Be.current,Ie]),me.createElement("div",{className:"my-codemirror-container"},me.createElement("textarea",{ref:Be}))}},39793:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Z:function(){return vr}});var me=Pe(59301),Ve=Pe(89780),ut=Pe.n(Ve),nt=Pe(76374),it=Pe(8336),ze=Pe(6313),Ue=Pe(25717),yt=Pe(99498),ot=Pe(25419),Me=Pe(67549),Et=Pe(76902),_e=({value:an="",className:ln,showTextOnly:Zt,showLines:pn,style:zi={}})=>{const Ti=(0,me.useMemo)(()=>"",[an]);return me.createElement(me.Fragment,null,me.createElement("div",{dangerouslySetInnerHTML:{__html:Ti}}))},ht=Object.defineProperty,Ee=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,de=(an,ln,Zt)=>ln in an?ht(an,ln,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):an[ln]=Zt,pe=(an,ln)=>{for(var Zt in ln||(ln={}))ue.call(ln,Zt)&&de(an,Zt,ln[Zt]);if(ee)for(var Zt of ee(ln))se.call(ln,Zt)&&de(an,Zt,ln[Zt]);return an},ye=(an,ln)=>Ee(an,ne(ln));let Ce=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Re({onActionCallback:an,title:ln,icon:Zt,actionName:pn,className:zi="",children:Ti}){function dr(){an(pn)}return me.createElement("a",{title:ln,className:zi,onClick:dr},me.createElement("i",{className:`${Zt}`}),Ti)}var Oe=({watch:an,showNullButton:ln,showNullProgramButton:Zt,onActionCallback:pn,fullScreen:zi,insertTemp:Ti,hidetoolBar:dr,extraUse:un})=>{const In=[...Ce,{title:`${an?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${an?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return me.createElement("ul",{className:"markdown-toolbar-container"},!dr&&In.map((Vi,Fr)=>me.createElement("li",{key:Fr},Vi.actionName?me.createElement(Re,ye(pe({},Vi),{onActionCallback:pn})):me.createElement("span",{className:"v-line"}))),ln?me.createElement("li",null,me.createElement(Re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:pn},me.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Zt?me.createElement(me.Fragment,null,me.createElement("li",null,me.createElement(Re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:pn},me.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),me.createElement("li",null,me.createElement(Re,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:pn},me.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Ti&&me.createElement("li",null,me.createElement(Re,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Ti}`,onActionCallback:pn},me.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),un&&me.createElement("li",null,un),me.createElement("li",{className:"btn-full-screen"},me.createElement(Re,{icon:`${zi?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:zi?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:pn})))},We=Pe(91558),Be=Pe(28284),Ie=Pe(37568),Qe=Pe(99571),rt=Object.defineProperty,xt=Object.defineProperties,gt=Object.getOwnPropertyDescriptors,bt=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,Tt=Object.prototype.propertyIsEnumerable,Nt=(an,ln,Zt)=>ln in an?rt(an,ln,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):an[ln]=Zt,Ut=(an,ln)=>{for(var Zt in ln||(ln={}))At.call(ln,Zt)&&Nt(an,Zt,ln[Zt]);if(bt)for(var Zt of bt(ln))Tt.call(ln,Zt)&&Nt(an,Zt,ln[Zt]);return an},st=(an,ln)=>xt(an,gt(ln));const He={labelCol:{span:4},wrapperCol:{span:20}};var jt=({callback:an,onCancel:ln})=>{function Zt(pn){an(pn)}return me.createElement(Be.default,st(Ut({},He),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Zt,style:{width:500}}),me.createElement(Be.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},me.createElement(Ie.default,null)),me.createElement(Be.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},me.createElement(Ie.default,null)),me.createElement("div",{className:"flex-container flex-end"},me.createElement(Qe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),me.createElement(Qe.ZP,{type:"ghost",onClick:ln},"\u53D6\u6D88")))},fn=Pe(69720),Bt=Pe(17077),Ft=Pe(62957),It=Pe(77019),Vt=Pe(9507),wn=Pe(59301),Dt=({callback:an,onCancel:ln})=>{const Zt=document.createElement("canvas"),pn=Zt.getContext("2d");Zt.width=1e3,Zt.height=800,pn.fillStyle="#ffffff",pn.fillRect(0,0,Zt.width,Zt.height);const zi=Zt.toDataURL("image/png");return wn.createElement(Ft.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},wn.createElement(It.Z,{style:{height:"100vh"}},wn.createElement(Vt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:zi,visible:!0,title:String(Date.now())},onOk:Ti=>{an({src:Ti.url})},onClose:ln})))},vt=Pe(12378);function zt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(zt,go.CommandHandler),zt.prototype.canAlignSelection=function(){var an=this.diagram;return!(an===null||an.isReadOnly||an.isModelReadOnly||an.selection.count<2)},zt.prototype.alignLeft=function(){var an=this.diagram;an.startTransaction("aligning left");var ln=1/0;an.selection.each(function(Zt){Zt instanceof go.Link||(ln=Math.min(Zt.position.x,ln))}),an.selection.each(function(Zt){Zt instanceof go.Link||Zt.move(new go.Point(ln,Zt.position.y))}),an.commitTransaction("aligning left")},zt.prototype.alignRight=function(){var an=this.diagram;an.startTransaction("aligning right");var ln=-1/0;an.selection.each(function(Zt){if(!(Zt instanceof go.Link)){var pn=Zt.actualBounds.x+Zt.actualBounds.width;ln=Math.max(pn,ln)}}),an.selection.each(function(Zt){Zt instanceof go.Link||Zt.move(new go.Point(ln-Zt.actualBounds.width,Zt.position.y))}),an.commitTransaction("aligning right")},zt.prototype.alignTop=function(){var an=this.diagram;an.startTransaction("alignTop");var ln=1/0;an.selection.each(function(Zt){Zt instanceof go.Link||(ln=Math.min(Zt.position.y,ln))}),an.selection.each(function(Zt){Zt instanceof go.Link||Zt.move(new go.Point(Zt.position.x,ln))}),an.commitTransaction("alignTop")},zt.prototype.alignBottom=function(){var an=this.diagram;an.startTransaction("aligning bottom");var ln=-1/0;an.selection.each(function(Zt){if(!(Zt instanceof go.Link)){var pn=Zt.actualBounds.y+Zt.actualBounds.height;ln=Math.max(pn,ln)}}),an.selection.each(function(Zt){Zt instanceof go.Link||Zt.move(new go.Point(Zt.actualBounds.x,ln-Zt.actualBounds.height))}),an.commitTransaction("aligning bottom")},zt.prototype.alignCenterX=function(){var an=this.diagram,ln=an.selection.first();if(ln){an.startTransaction("aligning Center X");var Zt=ln.actualBounds.x+ln.actualBounds.width/2;an.selection.each(function(pn){pn instanceof go.Link||pn.move(new go.Point(Zt-pn.actualBounds.width/2,pn.actualBounds.y))}),an.commitTransaction("aligning Center X")}},zt.prototype.alignCenterY=function(){var an=this.diagram,ln=an.selection.first();if(ln){an.startTransaction("aligning Center Y");var Zt=ln.actualBounds.y+ln.actualBounds.height/2;an.selection.each(function(pn){pn instanceof go.Link||pn.move(new go.Point(pn.actualBounds.x,Zt-pn.actualBounds.height/2))}),an.commitTransaction("aligning Center Y")}},zt.prototype.alignColumn=function(an){var ln=this.diagram;ln.startTransaction("align Column"),an===void 0&&(an=0),an=parseFloat(an);var Zt=new Array;ln.selection.each(function(un){un instanceof go.Link||Zt.push(un)});for(var pn=0;pn<Zt.length-1;pn++){var zi=Zt[pn],Ti=zi.actualBounds.y+zi.actualBounds.height+an,dr=Zt[pn+1];dr.move(new go.Point(zi.actualBounds.x,Ti))}ln.commitTransaction("align Column")},zt.prototype.alignRow=function(an){an===void 0&&(an=0),an=parseFloat(an);var ln=this.diagram;ln.startTransaction("align Row");var Zt=new Array;ln.selection.each(function(un){un instanceof go.Link||Zt.push(un)});for(var pn=0;pn<Zt.length-1;pn++){var zi=Zt[pn],Ti=zi.actualBounds.x+zi.actualBounds.width+an,dr=Zt[pn+1];dr.move(new go.Point(Ti,zi.actualBounds.y))}ln.commitTransaction("align Row")},zt.prototype.canRotate=function(an){var ln=this.diagram;return!(ln===null||ln.isReadOnly||ln.isModelReadOnly||ln.selection.count<1)},zt.prototype.rotate=function(an){an===void 0&&(an=90);var ln=this.diagram;ln.startTransaction("rotate "+an.toString());var ln=this.diagram;ln.selection.each(function(Zt){Zt instanceof go.Link||Zt instanceof go.Group||(Zt.angle+=an)}),ln.commitTransaction("rotate "+an.toString())},zt.prototype.pullToFront=function(){var an=this.diagram;an.startTransaction("pullToFront");var ln=new go.Map;an.selection.each(function(Zt){ln.set(Zt.layer,0)}),ln.iteratorKeys.each(function(Zt){var pn=0;Zt.parts.each(function(zi){if(!zi.isSelected){var Ti=zi.zOrder;isNaN(Ti)?zi.zOrder=0:pn=Math.max(pn,Ti)}}),ln.set(Zt,pn)}),an.selection.each(function(Zt){zt._assignZOrder(Zt,ln.get(Zt.layer)+1)}),an.commitTransaction("pullToFront")},zt.prototype.pushToBack=function(){var an=this.diagram;an.startTransaction("pushToBack");var ln=new go.Map;an.selection.each(function(Zt){ln.set(Zt.layer,0)}),ln.iteratorKeys.each(function(Zt){var pn=0;Zt.parts.each(function(zi){if(!zi.isSelected){var Ti=zi.zOrder;isNaN(Ti)?zi.zOrder=0:pn=Math.min(pn,Ti)}}),ln.set(Zt,pn)}),an.selection.each(function(Zt){zt._assignZOrder(Zt,ln.get(Zt.layer)-1-zt._findGroupDepth(Zt))}),an.commitTransaction("pushToBack")},zt._assignZOrder=function(an,ln,Zt){Zt===void 0&&(Zt=an),an.layer===Zt.layer&&(an.zOrder=ln),an instanceof go.Group&&an.memberParts.each(function(pn){zt._assignZOrder(pn,ln+1,Zt)})},zt._findGroupDepth=function(an){if(an instanceof go.Group){var ln=0;return an.memberParts.each(function(Zt){ln=Math.max(ln,zt._findGroupDepth(Zt))}),ln+1}else return 0},zt.prototype.doKeyDown=function(){var an=this.diagram;if(an!==null){var ln=an.lastInput;if(ln.key==="Up"||ln.key==="Down"||ln.key==="Left"||ln.key==="Right"){var Zt=this.arrowKeyBehavior;if(Zt==="none")return;if(Zt==="select"){this._arrowKeySelect();return}else if(Zt==="move"){this._arrowKeyMove();return}else if(Zt==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},zt.prototype._getAllParts=function(){var an=new Array;return this.diagram.nodes.each(function(ln){an.push(ln)}),this.diagram.parts.each(function(ln){an.push(ln)}),an},zt.prototype._arrowKeyMove=function(){var an=this.diagram,ln=an.lastInput,Zt=0,pn=0;if(ln.control||ln.meta)Zt=1,pn=1;else if(an.grid!==null){var zi=an.grid.gridCellSize;pn=zi.width,Zt=zi.height}an.startTransaction("arrowKeyMove"),an.selection.each(function(Ti){ln.key==="Up"?Ti.move(new go.Point(Ti.actualBounds.x,Ti.actualBounds.y-Zt)):ln.key==="Down"?Ti.move(new go.Point(Ti.actualBounds.x,Ti.actualBounds.y+Zt)):ln.key==="Left"?Ti.move(new go.Point(Ti.actualBounds.x-pn,Ti.actualBounds.y)):ln.key==="Right"&&Ti.move(new go.Point(Ti.actualBounds.x+pn,Ti.actualBounds.y))}),an.commitTransaction("arrowKeyMove")},zt.prototype._arrowKeySelect=function(){var an=this.diagram,ln=an.lastInput,Zt=null;ln.key==="Up"?Zt=this._findNearestPartTowards(270):ln.key==="Down"?Zt=this._findNearestPartTowards(90):ln.key==="Left"?Zt=this._findNearestPartTowards(180):ln.key==="Right"&&(Zt=this._findNearestPartTowards(0)),Zt!==null&&(ln.shift?Zt.isSelected=!0:ln.control||ln.meta?Zt.isSelected=!Zt.isSelected:an.select(Zt))},zt.prototype._findNearestPartTowards=function(an){var ln=this.diagram.selection.first();if(ln===null)return null;for(var Zt=ln.actualBounds.center,pn=this._getAllParts(),zi=1/0,Ti=ln,dr=0;dr<pn.length;dr++){var un=pn[dr];if(un!==ln&&un.canSelect()){var In=un.actualBounds.center,Vi=Zt.directionPoint(In),Fr=this._angleCloseness(Vi,an);if(Fr<=45){var ii=Zt.distanceSquaredPoint(In);ii*=1+Math.sin(Fr*Math.PI/180),ii<zi&&(zi=ii,Ti=un)}}}return Ti},zt.prototype._angleCloseness=function(an,ln){return Math.min(Math.abs(ln-an),Math.min(Math.abs(ln+360-an),Math.abs(ln-360-an)))},zt.prototype._arrowKeyTree=function(){var an=this.diagram,ln=an.selection.first();if(ln instanceof go.Node){var Zt=an.lastInput;if(Zt.key==="Right"){if(!ln.isTreeLeaf)if(!ln.isTreeExpanded)an.commandHandler.canExpandTree(ln)&&an.commandHandler.expandTree(ln);else{var pn=this._sortTreeChildrenByY(ln).first();pn!==null&&an.select(pn)}}else if(Zt.key==="Left")if(!ln.isTreeLeaf&&ln.isTreeExpanded)an.commandHandler.canCollapseTree(ln)&&an.commandHandler.collapseTree(ln);else{var zi=ln.findTreeParentNode();zi!==null&&an.select(zi)}else if(Zt.key==="Up"){var zi=ln.findTreeParentNode();if(zi!==null){var Ti=this._sortTreeChildrenByY(zi),dr=Ti.indexOf(ln);if(dr>0){for(var un=Ti.elt(dr-1);un!==null&&un.isTreeExpanded&&!un.isTreeLeaf;){var In=this._sortTreeChildrenByY(un);un=In.last()}un!==null&&an.select(un)}else an.select(zi)}}else if(Zt.key==="Down")if(ln.isTreeExpanded&&!ln.isTreeLeaf){var pn=this._sortTreeChildrenByY(ln).first();pn!==null&&an.select(pn)}else for(;ln!==null;){var zi=ln.findTreeParentNode();if(zi===null)break;var Ti=this._sortTreeChildrenByY(zi),dr=Ti.indexOf(ln);if(dr<Ti.length-1){an.select(Ti.elt(dr+1));break}else ln=zi}var Vi=an.selection.first();Vi!==null&&an.scrollToRect(Vi.actualBounds)}},zt.prototype._sortTreeChildrenByY=function(an){var ln=new go.List().addAll(an.findTreeChildrenNodes());return ln.sort(function(Zt,pn){var zi=Zt.location,Ti=pn.location;return zi.y<Ti.y?-1:zi.y>Ti.y?1:zi.x<Ti.x?-1:zi.x>Ti.x?1:0}),ln},zt.prototype.copyToClipboard=function(an){go.CommandHandler.prototype.copyToClipboard.call(this,an),this._lastPasteOffset.set(this.pasteOffset)},zt.prototype.pasteFromClipboard=function(){var an=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(an,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),an},Object.defineProperty(zt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(an){if(an!=="move"&&an!=="select"&&an!=="scroll"&&an!=="tree"&&an!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+an);this._arrowKeyBehavior=an}}),Object.defineProperty(zt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(an){if(!(an instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+an);this._pasteOffset.set(an)}});var En=zt,kn=Pe(63720),Ze=Pe(5269),Fe=Pe(38986),xe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Te=Pe(48790),Ye=Pe(59301),De=(an,ln,Zt)=>new Promise((pn,zi)=>{var Ti=In=>{try{un(Zt.next(In))}catch(Vi){zi(Vi)}},dr=In=>{try{un(Zt.throw(In))}catch(Vi){zi(Vi)}},un=In=>In.done?pn(In.value):Promise.resolve(In.value).then(Ti,dr);un((Zt=Zt.apply(an,ln)).next())});function tt({onCancel:an,callback:ln}){let Zt=(0,me.useRef)(),pn=(0,me.useRef)(),zi=(0,me.useRef)(),Ti=(0,me.useRef)(!1);const dr=(0,me.useRef)(!1),[un,In]=(0,me.useState)(0);function Vi(){const ii=vt.bx.make,lt={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"};Zt.current=new vt.S0(pn.current,{padding:20,grid:ii(vt.s_,"Grid",ii(vt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ii(vt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Kt=>{var Oi=Kt.diagram.commandHandler.addTopLevelParts(Kt.diagram.selection,!0);Oi||Kt.diagram.currentTool.doCancel()},commandHandler:ii(En),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Kt=>{var Oi=Kt.subject;Oi.location=Oi.location.copy().snapToGridPoint(Kt.diagram.grid.gridOrigin,Kt.diagram.grid.gridCellSize),setTimeout(()=>{Kt.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Kt=>{var Oi=Kt.subject;setTimeout(()=>{Kt.diagram.commandHandler.editTextBlock()})},LinkRelinked:Kt=>{var Oi=Kt.parameter.part;Oi.invalidateConnectedLinks();var Nr=Kt.subject;Kt.diagram.toolManager.linkingTool.isForwards?Nr.toNode.invalidateConnectedLinks():Nr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Zt.current.nodeTemplate=ii(vt.NB,"Auto",{locationSpot:vt.z6.Center,locationObjectName:"SHAPE",desiredSize:new vt.$u(120,60),minSize:new vt.$u(40,40),resizable:!0,resizeCellSize:new vt.$u(10,10),rotatable:!0},new vt.KX("location","loc",vt.E9.parse).makeTwoWay(vt.E9.stringify),new vt.KX("desiredSize","size",vt.$u.parse).makeTwoWay(vt.$u.stringify),ii(vt.bn,{name:"SHAPE",fill:lt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:vt.z6.AllSides,toSpot:vt.z6.AllSides},new vt.KX("figure"),new vt.KX("fill"),new vt.KX("stroke","borderColor"),new vt.KX("strokeWidth","thickness"),new vt.KX("strokeDashArray","dash")),ii(vt.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),ii(vt.al,{margin:1,textAlign:"center",overflow:vt.al.OverflowEllipsis,editable:!0},new vt.KX("text").makeTwoWay(),new vt.KX("stroke","color"))),Zt.current.nodeTemplate.toolTip=ii("ToolTip",ii(vt.s_,"Vertical",{maxSize:new vt.$u(200,NaN)},ii(vt.al,{font:"bold 10pt sans-serif",textAlign:"center"},new vt.KX("text")),ii(vt.al,{font:"10pt sans-serif",textAlign:"center"},new vt.KX("text","details"))));function Rt(Kt,Oi){var Nr=(_i,Jr)=>{_i.handled=!0,_i.diagram.model.commit(Zr=>{var Xr=Jr.part.adornedPart,Rr=new vt.E9().setRectSpot(Xr.actualBounds,Kt);Rr.subtract(Xr.location),Rr.scale(2,2),Rr.x+=Math.sign(Rr.x)*130,Rr.y+=Math.sign(Rr.y)*130,Rr.add(Xr.location),Rr.snapToGridPoint(_i.diagram.grid.gridOrigin,_i.diagram.grid.gridCellSize);var Gr=Zr.copyNodeData(Xr.data);Zr.setGroupKeyForNodeData(Gr,Zr.getGroupKeyForNodeData(Xr.data)),Zr.addNodeData(Gr);var oo={from:Xr.key,to:Zr.getKeyForNodeData(Gr)};Zr.addLinkData(oo);var An=_i.diagram.findNodeForData(Gr);An.location=Rr,_i.diagram.select(An),setTimeout(()=>{_i.diagram.commandHandler.editTextBlock()},20)})};return ii(vt.bn,{figure:Oi,alignment:Kt,alignmentFocus:Kt.opposite(),width:Kt.equals(vt.z6.Top)||Kt.equals(vt.z6.Bottom)?25:18,height:Kt.equals(vt.z6.Top)||Kt.equals(vt.z6.Bottom)?18:25,fill:"orange",stroke:lt.white,strokeWidth:4,mouseEnter:(_i,Jr)=>Jr.fill="dodgerblue",mouseLeave:(_i,Jr)=>Jr.fill="orange",isActionable:!0,click:Nr,contextClick:Nr})}function ai(Kt){return ii(vt.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(Oi,Nr)=>Nr.fill="dodgerblue",mouseLeave:(Oi,Nr)=>Nr.fill="orange",click:(Oi,Nr)=>{Oi.diagram.commandHandler.showContextMenu(Nr.part.adornedPart)}},Kt||{})}Zt.current.nodeTemplate.selectionAdornmentTemplate=ii(vt.uz,"Spot",ii(vt.Vm,{padding:10}),Rt(vt.z6.Top,"TriangleUp"),Rt(vt.z6.Left,"TriangleLeft"),Rt(vt.z6.Right,"TriangleRight"),Rt(vt.z6.Bottom,"TriangleDown"),ai({alignment:new vt.z6(.75,0)}));function ti(Kt,Oi){return(Nr,_i)=>{Nr.handled=!0,Nr.diagram.model.commit(Jr=>{Jr.set(_i.part.adornedPart.data,Kt,Oi)})}}function tn(Kt,Oi){return Oi||(Oi="color"),ii(vt.bn,{width:16,height:16,stroke:"lightgray",fill:Kt,margin:1,background:"transparent",mouseEnter:(Nr,_i)=>_i.stroke="dodgerblue",mouseLeave:(Nr,_i)=>_i.stroke="lightgray",click:ti(Oi,Kt),contextClick:ti(Oi,Kt)})}function si(){return[ii("ContextMenuButton",ii(vt.s_,"Horizontal",tn(lt.white,"fill"),tn(lt.beige,"fill"),tn(lt.extralightblue,"fill"),tn(lt.extralightred,"fill"))),ii("ContextMenuButton",ii(vt.s_,"Horizontal",tn(lt.lightgray,"fill"),tn(lt.lightgreen,"fill"),tn(lt.lightblue,"fill"),tn(lt.lightred,"fill")))]}function Ri(){return[ii("ContextMenuButton",ii(vt.s_,"Horizontal",tn(lt.black),tn(lt.green),tn(lt.blue),tn(lt.red))),ii("ContextMenuButton",ii(vt.s_,"Horizontal",tn(lt.white),tn(lt.magenta),tn(lt.purple),tn(lt.orange)))]}function Yi(Kt,Oi){return Oi||(Oi="thickness"),ii(vt.bn,"LineH",{width:16,height:16,strokeWidth:Kt,margin:1,background:"transparent",mouseEnter:(Nr,_i)=>_i.background="dodgerblue",mouseLeave:(Nr,_i)=>_i.background="transparent",click:ti(Oi,Kt),contextClick:ti(Oi,Kt)})}function tr(Kt,Oi){return Oi||(Oi="dash"),ii(vt.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Kt,margin:1,background:"transparent",mouseEnter:(Nr,_i)=>_i.background="dodgerblue",mouseLeave:(Nr,_i)=>_i.background="transparent",click:ti(Oi,Kt),contextClick:ti(Oi,Kt)})}function Bn(){return[ii("ContextMenuButton",ii(vt.s_,"Horizontal",Yi(1),Yi(2),Yi(3),Yi(4))),ii("ContextMenuButton",ii(vt.s_,"Horizontal",tr(null),tr([2,4]),tr([4,4])))]}function Ot(Kt,Oi){return Oi||(Oi="figure"),ii(vt.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Kt,margin:1,background:"transparent",mouseEnter:(Nr,_i)=>_i.fill="dodgerblue",mouseLeave:(Nr,_i)=>_i.fill="lightgray",click:ti(Oi,Kt),contextClick:ti(Oi,Kt)})}Zt.current.nodeTemplate.contextMenu=ii("ContextMenu",ii("ContextMenuButton",ii(vt.s_,"Horizontal",Ot("Rectangle"),Ot("RoundedRectangle"),Ot("Ellipse"),Ot("Diamond"))),ii("ContextMenuButton",ii(vt.s_,"Horizontal",Ot("Parallelogram2"),Ot("ManualOperation"),Ot("Procedure"),Ot("Cylinder1"))),ii("ContextMenuButton",ii(vt.s_,"Horizontal",Ot("Terminator"),Ot("CreateRequest"),Ot("Document"),Ot("TriangleDown"))),si(),Ri(),Bn()),Zt.current.groupTemplate=ii(vt.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:vt.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Kt,Oi)=>{var Nr=Oi.addMembers(Oi.diagram.selection,!0);Nr||Oi.diagram.currentTool.doCancel()},avoidable:!1},new vt.KX("location","loc",vt.E9.parse).makeTwoWay(vt.E9.stringify),ii(vt.s_,"Auto",{name:"BODY"},ii(vt.bn,{parameter1:10,fill:lt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:vt.z6.AllSides,toSpot:vt.z6.AllSides},new vt.KX("fill"),new vt.KX("stroke","color"),new vt.KX("strokeWidth","thickness"),new vt.KX("strokeDashArray","dash")),ii(vt.Vm,{background:"transparent",margin:20})),ii(vt.al,{alignment:vt.z6.Top,alignmentFocus:vt.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new vt.KX("text"),new vt.KX("stroke","color"))),Zt.current.groupTemplate.selectionAdornmentTemplate=ii(vt.uz,"Spot",ii(vt.s_,"Auto",ii(vt.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),ii(vt.Vm,{margin:1.5})),ai({alignment:vt.z6.TopRight,alignmentFocus:vt.z6.BottomRight})),Zt.current.groupTemplate.contextMenu=ii("ContextMenu",si(),Ri(),Bn()),Zt.current.linkTemplate=ii(vt.rU,{layerName:"Foreground",routing:vt.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new vt.KX("fromSpot","fromSpot",vt.z6.parse),new vt.KX("toSpot","toSpot",vt.z6.parse),new vt.KX("fromShortLength","dir",Kt=>Kt>=1?10:0),new vt.KX("toShortLength","dir",Kt=>Kt>=1?10:0),new vt.KX("points").makeTwoWay(),ii(vt.bn,{strokeWidth:2},new vt.KX("stroke","color"),new vt.KX("strokeWidth","thickness"),new vt.KX("strokeDashArray","dash")),ii(vt.bn,{segmentIndex:0,segmentOffset:new vt.E9(15,0),segmentOrientation:vt.rU.OrientAlong,alignmentFocus:vt.z6.Right,figure:"circle",width:10,strokeWidth:0},new vt.KX("fill","color"),new vt.KX("visible","dir",Kt=>Kt===1)),ii(vt.bn,{segmentIndex:-1,segmentOffset:new vt.E9(-10,6),segmentOrientation:vt.rU.OrientPlus90,alignmentFocus:vt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new vt.KX("fill","color"),new vt.KX("visible","dir",Kt=>Kt>=1),new vt.KX("width","thickness",Kt=>7+3*Kt),new vt.KX("height","thickness",Kt=>7+3*Kt),new vt.KX("segmentOffset","thickness",Kt=>new vt.E9(-15,4+1.5*Kt))),ii(vt.bn,{segmentIndex:0,segmentOffset:new vt.E9(15,-6),segmentOrientation:vt.rU.OrientMinus90,alignmentFocus:vt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new vt.KX("fill","color"),new vt.KX("visible","dir",Kt=>Kt===2),new vt.KX("width","thickness",Kt=>7+3*Kt),new vt.KX("height","thickness",Kt=>7+3*Kt),new vt.KX("segmentOffset","thickness",Kt=>new vt.E9(-15,4+1.5*Kt))),ii(vt.al,{alignmentFocus:new vt.z6(0,1,-4,0),editable:!0},new vt.KX("text").makeTwoWay(),new vt.KX("stroke","color"))),Zt.current.linkTemplate.selectionAdornmentTemplate=ii(vt.uz,ii(vt.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:qn(2)},new vt.KX("pathPattern","thickness",qn)),ai({alignmentFocus:new vt.z6(0,0,-6,-4)}));function qn(Kt){return ii(vt.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Kt+4).toString()+" H3"})}function Ji(Kt){var Oi="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Kt===0?Oi="M0 0 M16 16 M0 8 L16 8":Kt===2&&(Oi="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),ii(vt.bn,{geometryString:Oi,margin:2,background:"transparent",mouseEnter:(Nr,_i)=>_i.background="dodgerblue",mouseLeave:(Nr,_i)=>_i.background="transparent",click:ti("dir",Kt),contextClick:ti("dir",Kt)})}function $i(Kt){var Oi=(Nr,_i)=>{Nr.handled=!0,Nr.diagram.model.commit(Jr=>{var Zr=_i.part.adornedPart;Jr.set(Zr.data,Kt?"toSpot":"fromSpot",vt.z6.stringify(vt.z6.AllSides)),(Kt?Zr.toNode:Zr.fromNode).invalidateConnectedLinks()})};return ii(vt.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Nr,_i)=>_i.background="dodgerblue",mouseLeave:(Nr,_i)=>_i.background="transparent",click:Oi,contextClick:Oi})}function Pn(Kt,Oi){var Nr=0,_i=vt.z6.RightSide;Kt.equals(vt.z6.Top)?(Nr=270,_i=vt.z6.TopSide):Kt.equals(vt.z6.Left)?(Nr=180,_i=vt.z6.LeftSide):Kt.equals(vt.z6.Bottom)&&(Nr=90,_i=vt.z6.BottomSide),Oi||(Nr-=180);var Jr=(Zr,Xr)=>{Zr.handled=!0,Zr.diagram.model.commit(Rr=>{var Gr=Xr.part.adornedPart;Rr.set(Gr.data,Oi?"toSpot":"fromSpot",vt.z6.stringify(_i)),(Oi?Gr.toNode:Gr.fromNode).invalidateConnectedLinks()})};return ii(vt.bn,{alignment:Kt,alignmentFocus:Kt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Nr,background:"transparent",mouseEnter:(Zr,Xr)=>Xr.background="dodgerblue",mouseLeave:(Zr,Xr)=>Xr.background="transparent",click:Jr,contextClick:Jr})}Zt.current.linkTemplate.contextMenu=ii("ContextMenu",Ri(),Bn(),ii("ContextMenuButton",ii(vt.s_,"Horizontal",Ji(0),Ji(1),Ji(2))),ii("ContextMenuButton",ii(vt.s_,"Horizontal",ii(vt.s_,"Spot",$i(!1),Pn(vt.z6.Top,!1),Pn(vt.z6.Left,!1),Pn(vt.z6.Right,!1),Pn(vt.z6.Bottom,!1)),ii(vt.s_,"Spot",{margin:new vt.Zt(0,0,0,2)},$i(!0),Pn(vt.z6.Top,!0),Pn(vt.z6.Left,!0),Pn(vt.z6.Right,!0),Pn(vt.z6.Bottom,!0)))));const Mi=`{ "class": "GraphLinksModel",
|
|
"nodeDataArray": [
|
|
{"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3},
|
|
{"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"},
|
|
{"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"},
|
|
{"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"},
|
|
{"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"},
|
|
{"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3},
|
|
{"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
{"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
{"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"}
|
|
],
|
|
"linkDataArray": [
|
|
{"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1},
|
|
{"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1},
|
|
{"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]},
|
|
{"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2},
|
|
{"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"},
|
|
{"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1},
|
|
{"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]}
|
|
]}`;var Er=["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 Hr(Kt){return console.log("shapeName:",Kt),Er.indexOf(Kt)>=0}var wo=new vt.YI(zi.current,{maxSelectionCount:1,linkTemplate:ii(vt.rU,{locationSpot:vt.z6.Center,selectionAdornmentTemplate:ii(vt.uz,"Link",{locationSpot:vt.z6.Center},ii(vt.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),ii(vt.bn,{toArrow:"Standard",stroke:null}))},{routing:vt.rU.AvoidsNodes,curve:vt.rU.JumpOver,corner:5,toShortLength:4},new vt.KX("points"),ii(vt.bn,{isPanelMain:!0,strokeWidth:2}),ii(vt.bn,{toArrow:"Standard",stroke:null})),model:new vt.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...vt.bn.getFigureGenerators().toArray().map(Kt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Kt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Zt.current.addDiagramListener("TextEdited",function(Kt){var Oi;const Nr=Kt.subject.part;var _i=(Oi=document.activeElement)==null?void 0:Oi.value;typeof _i=="string"&&_i.trim()===""&&Zt.current.model.commit(function(Jr){Jr.set(Nr.data,"text","\u672A\u547D\u540D"),Zt.current.commandHandler.stopCommand()},"increment")}),wo.nodeTemplate=ii(vt.NB,"Auto",{locationSpot:vt.z6.Center},new vt.KX("location","location",vt.E9.parse).makeTwoWay(vt.E9.stringify),ii(vt.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 vt.KX("stroke").makeTwoWay(),new vt.KX("fill").makeTwoWay(),new vt.KX("figure")),ii(vt.al,{margin:new vt.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new vt.$u(16,16),maxSize:new vt.$u(10,NaN),textAlign:"center",editable:!0},new vt.KX("key").makeTwoWay())),setTimeout(()=>{Zt.current.grid=ii(vt.s_,"Grid",ii(vt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ii(vt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Zt.current.grid.visible=!0,Zt.current.grid.gridCellStroke="darkgray",Zt.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Zt.current,Zt.current}const Fr=()=>De(this,null,function*(){var ii,lt=Zt.current.makeImage();const Rt=yield(0,Fe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:lt.src,file_data:JSON.stringify({login:(ii=(0,Te.eY)())==null?void 0:ii.login,data:JSON.parse(Zt.current.model.toJson())})}});ln({src:Rt.url})});return(0,me.useEffect)(()=>(setTimeout(()=>{Vi()},500),In(un+1),()=>{Zt.current=null}),[]),Ye.createElement("div",{ref:dr,className:"body-overflow-initial"},Ye.createElement(Ft.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!un,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ye.createElement(It.Z,null,Ye.createElement(Ze.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ye.createElement(Ze.Z,{onClick:()=>{var ii,lt,Rt=Zt.current.selection.first();if(Ti.current=!Ti.current,document.activeElement&&Rt){let ai=(lt=(ii=document.activeElement)==null?void 0:ii.value)==null?void 0:lt.trim();typeof ai=="string"&&Zt.current.model.commit(function(ti){ti.set(Rt.data,"text",ai||"\u672A\u547D\u540D"),Zt.current.commandHandler.stopCommand()},"increment")}In(un+1)}},Ye.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:an},Ye.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:Ti.current?"none":"block"},className:xe.flowChartWrp},Ye.createElement("div",{style:{display:"flex",height:"100%"}},Ye.createElement("div",{style:{width:"300px",height:"100%"}},Ye.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Ye.createElement("div",{style:{height:"calc(100% - 50px)"},className:xe.myPaletteDiv,ref:zi})),Ye.createElement("div",{style:{flex:1,position:"relative"}},Ye.createElement("div",{ref:pn,style:{height:"80vh"}}))),Ye.createElement("div",{className:"tr"},Ye.createElement(Qe.ZP,{size:"large",onClick:Fr,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Ht=tt,$t=Pe(47889),Sn=Pe(71051);const en=$t.ZP.Group,kt={margin:"0 8px"};var nn=({callback:an,onCancel:ln})=>{function Zt(pn){an(pn)}return me.createElement(Be.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Zt},me.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},me.createElement("span",{style:kt},"\u5355\u5143\u683C\u6570\uFF1A"),me.createElement("span",{style:kt},"\u884C\u6570"),me.createElement(Be.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},me.createElement(Sn.Z,null)),me.createElement("span",{style:kt},"\u5217\u6570"),me.createElement(Be.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},me.createElement(Sn.Z,null))),me.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},me.createElement("span",{style:kt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),me.createElement(Be.default.Item,{name:"align"},me.createElement(en,null,me.createElement($t.ZP,{value:"default"},me.createElement("i",{className:"fa fa-align-justify"})),me.createElement($t.ZP,{value:"left"},me.createElement("i",{className:"fa fa-align-left"})),me.createElement($t.ZP,{value:"center"},me.createElement("i",{className:"fa fa-align-center"})),me.createElement($t.ZP,{value:"right"},me.createElement("i",{className:"fa fa-align-right"}))))),me.createElement("div",{className:"flex-container flex-end"},me.createElement(Qe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),me.createElement(Qe.ZP,{type:"ghost",onClick:ln},"\u53D6\u6D88")))},hn=Pe(71411),zn=Pe(43001),fi=Pe.n(zn),Pi=(0,me.forwardRef)(({use3d:an,width:ln,height:Zt,callback:pn,showSaveButton:zi},Ti)=>{const dr=(0,me.useRef)(),un=(0,me.useRef)(),[In,Vi]=(0,me.useState)(!1),Fr=(0,me.useRef)({id:dr,appName:"graphing",width:ln||1e3,height:Zt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,me.useEffect)(()=>{un.current=new(fi())(Fr.current,!0),window.onload=function(){un.current.inject("applet_container")}},[]);const ii=()=>{var lt=window.ggbApplet.getPNGBase64(1,!0,72);return pn&&pn(lt),lt};return(0,me.useEffect)(()=>{Fr.current.appName=In?"3D":"graphing",un.current.inject("applet_container")},[In]),(0,me.useEffect)(()=>{Vi(an)},[an]),(0,me.useImperativeHandle)(Ti,()=>({getImgData:ii})),me.createElement(me.Fragment,null,me.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:dr}),me.createElement(It.Z,{align:"middle"},me.createElement(Ze.Z,{flex:1},me.createElement(hn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:In,onChange:lt=>Vi(lt)})),me.createElement(Ze.Z,null,me.createElement(Qe.ZP,{size:"large",onClick:ii,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ci=Pe(76562),Yn=Pe(6767);const Ei="link",pi="upload-image",ji="add-flowchart",Qi="draw-image",lr="add-flowchart",Lr="code-block",Di="add-table",cr="------------",to={default:cr,left:`:${cr}`,center:`:${cr}:`,right:`${cr}:`};var ki=Pe(37808);function no(){}let fo=0;const po=1e4,io="\u2581",hr="@\u2581\u2581@",ao="@\u2581@",be=`
|
|
**\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`,Un=["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 Xn(an){return/^\d+$/.test(an)?`${an}px`:an}const mi=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",ei={[mi+"-B"]:"bold",[mi+"-I"]:"italic"},Gi={[Ei]:"\u6DFB\u52A0\u94FE\u63A5",[Lr]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[pi]:"\u6DFB\u52A0\u56FE\u7247",[Qi]:"\u6DFB\u52A0\u753B\u56FE",[ji]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Di]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var vr=({defaultValue:an="",onChange:ln,width:Zt="100%",height:pn=400,miniToolbar:zi=!1,isFocus:Ti=!1,watch:dr,insertTemp:un,mode:In="markdown",id:Vi="markdown-editor-id",showResizeBar:Fr=!1,noStorage:ii=!1,showNullButton:lt=!1,showNullProgramButton:Rt=!1,hidetoolBar:ai=!1,fullScreen:ti=!1,onBlur:tn,onCMBeforeChange:si,onFullScreen:Ri,className:Yi="",disablePaste:tr=!1,disabled:Bn=!1,disabledFill:Ot=!1,placeholder:qn="",values:Ji="",extraUse:$i})=>{const[Pn,Mi]=(0,me.useState)(null),[Er,Hr]=(0,me.useState)(an),[wo,Kt]=(0,me.useState)(dr),[Oi,Nr]=(0,me.useState)(ti),[_i,Jr]=(0,me.useState)(""),[Zr,Xr]=(0,me.useState)(0),[Rr,Gr]=(0,me.useState)(pn),[oo,An]=(0,me.useState)(!1),[ho,Fn]=(0,me.useState)(0),[Kn,zr]=(0,me.useState)(0),Tr=(0,me.useRef)(),Co=(0,me.useRef)(),Yr=(0,me.useRef)(),Or=(0,me.useRef)();(0,me.useEffect)(()=>{const Mn=window.scrollY||window.pageYOffset;Hr(Ji),Pn==null||Pn.setValue(Ji),window.scrollTo(0,Mn)},[Ji]),(0,me.useEffect)(()=>{Ri==null||Ri(Oi)},[Oi]),(0,me.useEffect)(()=>{if(Tr.current){let Mn=function(ct,Xe){var Pt;if(tr){Xe.preventDefault();return}const Ct=Xe.clipboardData;if(Ct){const Xt=Ct.types.toString(),qt=Ct.items;if(Xt==="Files"||Ct.types.indexOf("Files")>-1){if(Xe.preventDefault(),In=="stex")return;try{let sn=qt[1];((Pt=qt[0])==null?void 0:Pt.kind)==="file"&&(sn=qt[0]);const Tn=sn.getAsFile(),jn=Tn.name.split(".").pop();(0,Bt.I)(Tn,gn=>{var $n,gi,pt;gn.id?(($n=Tn==null?void 0:Tn.type)==null?void 0:$n.indexOf("image"))>-1?ke.replaceSelection(`<img width="100%" src="/api/attachments/${gn.id}?type=${gn.content_type})" alt="" />`):((gi=Tn==null?void 0:Tn.type)==null?void 0:gi.indexOf("video"))>-1?ke.replaceSelection(`<video width="100%" controls src="/api/attachments/${gn.id}"></video>`):((pt=Tn==null?void 0:Tn.type)==null?void 0:pt.indexOf("pdf"))>-1?ke.replaceSelection(`<a href="/api/attachments/${gn.id}?type=${Tn.type}&disposition=inline" target="_blank">${Tn.name}</a>`):Un.includes(jn)?ke.replaceSelection(`<a href="/api/attachments/${gn.id}?type=office&disposition=inline" target="_blank">${Tn.name}</a>`):ke.replaceSelection(`[${Tn.name}](/api/attachments/${gn.id}?type=${gn.content_type})`):(gn==null?void 0:gn.status)===401&&(document.location.href="/user/login")})}catch(sn){Yn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const ke=ut().fromTextArea(Tr.current,{mode:In,lineNumbers:!zi,lineWrapping:!0,value:an,autoCloseTags:!0,autoCloseBrackets:!0});return ke.on("keyup",function(ct,Xe){Xe.keyCode===8&&(ct.getValue()==""?ke.setOption("placeholder",qn):ke.setOption("placeholder",null))}),ke.on("keydown",function(ct,Xe){if(Xe.keyCode===8){var Pt=Qt(ct);Pt&&Xe.preventDefault()}}),Ti&&ke.focus(),ke.on("paste",Mn),Bn&&ke.on("beforeChange",function(ct,Xe){(Xe.origin==="paste"||Xe.origin==="+input")&&Xe.cancel()}),Mi(ke),()=>{ke.off("paste",Mn)}}},[]);const No=(0,me.useCallback)(()=>{if(Co.current)try{}catch(Mn){console.log(Mn,"---- to set md editor body height")}},[Rr,Co,Oi]);(0,me.useEffect)(()=>{function Mn(){let ke=new nt.Z(ct=>{for(let Xe of ct)(Xe.target.offsetHeight>0||Xe.target.offsetWidth>0)&&(No(),Pn.setSize("100%","100%"),Pn.refresh())});return ke.observe(Tr.current.parentElement),ke}if(Pn){const ke=Mn();return()=>{var ct,Xe;(ct=Tr.current)!=null&&ct.parentElement&&ke.unobserve((Xe=Tr.current)==null?void 0:Xe.parentElement)}}},[Pn,No]),(0,me.useEffect)(()=>{if(Pn){let Mn=[];for(const[ke,ct]of Object.entries(ei)){let Xe={[ke]:()=>{mn(ct)}};Mn.push(Xe),Pn.addKeyMap(Xe)}return()=>{for(let ke of Mn)Pn.removeKeyMap(ke)}}},[Pn]),(0,me.useEffect)(()=>{ti!==Oi&&Nr(ti)},[ti]),(0,ki.Z)(()=>{if(!ii&&Zr>0){let Mn=new Date().getTime(),ke=window.sessionStorage.getItem(Vi);Mn>=Zr+po&&(!ke||ke!==Er)&&(window.sessionStorage.setItem(Vi,Er),An(!0))}},po),(0,me.useEffect)(()=>{Kt(dr)},[Pn,dr]),(0,me.useEffect)(()=>{Pn&&Ti&&Pn.focus()},[Pn,Ti]),(0,me.useEffect)(()=>{if(wo&&Pn){let Mn=function(ct){let Xe=ct.target;if(Or.current){let Pt=Xe.scrollTop/Xe.scrollHeight;Or.current.scrollTop=Or.current.scrollHeight*Pt}};const ke=Pn.getScrollerElement();return ke.addEventListener("scroll",Mn),()=>{ke.removeEventListener("scroll",Mn)}}},[Pn,wo]),(0,me.useEffect)(()=>{if(Pn&&si){let Mn=function(ke,ct){si(ke,ct)};return Pn.on("beforeChange",Mn),()=>{Pn.off("beforeChange",Mn)}}},[Pn,si]),(0,me.useEffect)(()=>{if(Pn&&tn){let Mn=function(){tn(Pn.getValue())};return Pn.on("blur",Mn),()=>{Pn.off("blur",Mn)}}},[Pn,tn]);function Qt(Mn,ke){var ct=Mn.getDoc(),Xe=ct.getCursor(),Pt=ct.getLine(Xe.line),Ct=Pt.charAt(Xe.ch-1),Xt=Pt.lastIndexOf("@\u2581@",Xe.ch),qt=Pt.lastIndexOf("@\u2581\u2581@",Xe.ch),sn=Xt>qt?Xt:qt,Tn=Xt>qt?3:4;if(hr.indexOf(Ct)===-1)return null;if(console.log("change1:",ke,Mn,Pt,Xe,sn,Xt,qt,Ct),sn>=0&&Xe.ch-sn<5){var jn=sn+Tn;return ct.replaceRange("",{line:Xe.line,ch:sn},{line:Xe.line,ch:jn}),{line:Xe.line,ch:jn}}return null}(0,me.useEffect)(()=>{if(Pn){let Mn=function(ke,ct){const Xe=ke.getValue();Hr(Xe),Xr(new Date().getTime()),ke.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ln&&(Rt?ln(Xe,Lt(Xe)):ln(Xe))};return Pn.on("change",Mn),()=>{Pn.off("change",Mn)}}},[Pn,ln]),(0,me.useEffect)(()=>{if(Pn)if(an==null)Pn.setValue(""),Hr("");else{const Mn=window.scrollY||window.pageYOffset;an!==Pn.getValue()&&(Pn.setValue(an),Hr(an),Pn.setCursor(Bn?1:Pn.lineCount(),0),window.scrollTo(0,Mn))}},[Pn,an]);const mn=(0,me.useCallback)(Mn=>{const ke=Pn.getCursor(),ct=Pn.getSelection();let Xe=ct.split(`
|
|
`);switch(Mn){case"bold":return Pn.replaceSelection("**"+ct+"**"),ct===""&&Pn.setCursor(ke.line,ke.ch+2),Pn.focus();case"italic":return Pn.replaceSelection("*"+ct+"*"),ct===""&&Pn.setCursor(ke.line,ke.ch+1),Pn.focus();case"code":return Pn.replaceSelection("`"+ct+"`"),ct===""&&Pn.setCursor(ke.line,ke.ch+1),Pn.focus();case"inline-latex":return Jr("inline-latex"),Pn.focus();case"latex":return Pn.replaceSelection("```latex\n"+ct+"\n```"),Pn.setCursor(ke.line+1,ct.length+1),Pn.focus();case"line-break":return Pn.replaceSelection(`<br/>
|
|
`),Pn.focus();case"list-ul":return ct===""?Pn.replaceSelection("- "+ct):Pn.replaceSelection(Xe.map(Pt=>Pt===""?"":`- ${Pt}`).join(`
|
|
`)),Pn.focus();case"list-ol":return ct===""?Pn.replaceSelection("1. "+ct):Pn.replaceSelection(Xe.map((Pt,Ct)=>Pt===""?"":`${Ct+1}. ${Pt}`).join(`
|
|
`)),Pn.focus();case"add-null-ch":return ct===""&&Pn.setCursor(ke.line,ke.ch),Pn.replaceSelection(io),Pn.focus();case"add-signal":return ct===""&&Pn.setCursor(ke.line,ke.ch),Pn.replaceSelection(ao),Pn.focus();case"add-multiple":return ct===""&&Pn.setCursor(ke.line,ke.ch),Pn.replaceSelection(hr),Pn.focus();case"inster-template-1":return ct===""&&Pn.setCursor(ke.line,ke.ch),Pn.replaceSelection(be),Pn.focus();case"eraser":return Pn.setValue(""),Pn.focus();case"trigger-watch":return Kt(!wo),Pn.focus();case"trigger-full-screen":return Nr(!Oi),Pn.focus();case Ei:Jr(Ei);return;case Lr:Jr(Lr);return;case pi:Jr(pi);return;case Qi:Jr(Qi);return;case"maths-latex":Jr("maths-latex");return;case ji:Jr(ji);return;case Di:Jr(Di);return;default:throw new Error}},[Pn,wo,Oi]),Wt=(0,me.useCallback)((Mn,ke)=>{var ct,Xe,Pt,Ct,Xt,qt;switch(Jr(""),_i){case Ei:const{title:$n,link:gi}=Mn;return Pn.replaceSelection(`[${$n}](${gi})`),Pn.focus();case Lr:const{language:pt,content:Vn}=Mn;return Pn.replaceSelection(["```"+pt,Vn,"```"].join(`
|
|
`)),Pn.focus();case"maths-latex":for(var sn=atob(Mn),Tn=new Uint8Array(sn.length),jn=0;jn<sn.length;jn++)Tn[jn]=sn.charCodeAt(jn);var gn=new Blob([Tn],{type:"image/png"});(0,Bt.I)(gn,wi=>{wi.id?Pn.replaceSelection(``):(wi==null?void 0:wi.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Pn.replaceSelection("`$$"+Mn+"$$`");break;case pi:case Qi:case lr:const{src:Wn,alt:Rn}=Mn,Ln=ke,di=(Pt=(Xe=(ct=Ln==null?void 0:Ln.name)==null?void 0:ct.split("."))==null?void 0:Xe.pop)==null?void 0:Pt.call(Xe);return((Ct=Ln==null?void 0:Ln.type)==null?void 0:Ct.indexOf("image"))>-1||!(Ln!=null&&Ln.type)?Ln!=null&&Ln.align||Ln!=null&&Ln.width?Pn.replaceSelection(`<p style="text-align:${Ln.align||"initial"}"><img width="${Ln.width?Ln.width+"%":"initial"}" src="${Wn}" alt="${Rn||""}" /></p>`):Pn.replaceSelection(`<img width="100%" src="${Wn}" alt="${Rn||""}" />`):((Xt=Ln==null?void 0:Ln.type)==null?void 0:Xt.indexOf("video"))>-1?Pn.replaceSelection(`<video width="100%" controls src="${Wn}"></video>`):((qt=Ln==null?void 0:Ln.type)==null?void 0:qt.indexOf("pdf"))>-1?Pn.replaceSelection(`<a href="${Wn}?type=${Ln.type}&disposition=inline" target="_blank">${Ln.name}</a>`):Un.includes(di)?Pn.replaceSelection(`<a href="${Wn}?type=office&disposition=inline" target="_blank">${Ln.name}</a>`):Pn.replaceSelection(`[${Ln.name}](${Wn})`),Pn.focus();case Di:const{row:vi,col:Dn,align:yi}=Mn;let xi=`
|
|
`;for(let wi=0;wi<vi;wi++){let gr=[],Ar=[];for(let ur=0;ur<Dn;ur++)wi===1&&Ar.push(to[yi]),gr.push(" ");wi===1&&(xi+=`| ${Ar.join(" | ")} |
|
|
`),xi+=`| ${gr.join(Dn===1?"":" | ")} |
|
|
`}return Pn.replaceSelection(xi+`
|
|
`),Pn.focus();default:throw new Error}},[Pn,_i]),je=(0,me.useMemo)(()=>{switch(_i){case Ei:return me.createElement(jt,{callback:Wt,onCancel:Qn});case Lr:return me.createElement(fn.Z,{callback:Wt,onCancel:Qn});case pi:return me.createElement(Bt.Z,{callback:Wt,onCancel:Qn});case ji:return me.createElement(Ht,{callback:Wt,onCancel:Qn});case Di:return me.createElement(nn,{callback:Wt,onCancel:Qn});case"maths-latex":return me.createElement(Pi,{showSaveButton:!0,callback:Wt});case"inline-latex":return me.createElement(Ci.Z,{showSaveButton:!0,callback:Wt});default:return null}},[_i]);function Qn(){Jr("")}(0,me.useEffect)(()=>{if(Yr.current){let Mn=function(Xt){Pt=!0,Ct=Xt.pageY},ke=function(){Pt=!1},ct=function(Xt){if(Pt){let qt=Xt.pageY-Ct;qt<0&&(qt=0),qt>300&&(qt=300);let sn=pn+qt+"px";Gr(sn)}},Xe=Yr.current,Pt=!1,Ct=0;return Xe.addEventListener("mousedown",Mn),document.addEventListener("mousemove",ct),document.addEventListener("mouseup",ke),()=>{Xe.removeEventListener("mousedown",Mn),document.removeEventListener("mousemove",ct),document.removeEventListener("mouseup",ke)}}},[Pn,Yr]),(0,me.useEffect)(()=>{Gr(pn)},[pn]);const Ai=Xn(Zt),qi=Xn(Rr),Je={width:Ai,height:qi},Yt=(0,me.useMemo)(()=>{if(Zr){let Mn=new Date(Zr),ke=Mn.getHours(),ct=Mn.getMinutes(),Xe=Mn.getSeconds();return ke=ke<10?"0"+ke:ke,ct=ct<10?"0"+ct:ct,Xe=Xe<10?"0"+Xe:Xe,`${ke}:${ct}:${Xe}`}return 0},[Zr]),Lt=Mn=>{const ke=[];if(Rt){let ct=-1;Mn=Mn.replace(/(@▁▁@|@▁@)/g,function(Xe,Pt,Ct){ke.push({multiLine:Xe!==ao})})}return ke};function on(){window.sessionStorage.removeItem(Vi),An(!1),Xr(0)}function Gn(){An(!1),Xr(0),Pn.setValue(window.sessionStorage.getItem(Vi))}(0,me.useEffect)(()=>{Gi[_i]&&_i!==Qi&&_i!==ji&&setTimeout(()=>{const Mn=document.getElementsByClassName("markdown-popup-form")[0],ke=window.innerWidth/2-Mn.offsetWidth/2,ct=window.innerHeight/2-Mn.offsetHeight/2;Fn(ke),zr(ct)},0)},[_i]);const vn=Mn=>{Mn.preventDefault();const ke=Mn.clientX-ho,ct=Mn.clientY-Kn;document.body.onmousemove=Xe=>{let Pt=Xe.clientX-ke,Ct=Xe.clientY-ct;const Xt=document.getElementsByClassName("markdown-popup-form")[0],qt=window.innerWidth-Xt.offsetWidth,sn=window.innerHeight-Xt.offsetHeight;Pt=Math.max(0,Math.min(Pt,qt)),Ct=Math.max(0,Math.min(Ct,sn)),dn(Xe.clientX,Xe.clientY,ke,ct)&&(Fn(Pt),zr(Ct))},document.body.onmouseup=function(){document.body.onmousemove=null}},dn=(Mn,ke,ct,Xe)=>{const Pt=document.body.clientHeight,Ct=document.body.clientWidth;return Mn<20&&ct>Mn||Mn>Ct-20&&ct<Mn||ke<20&&Xe>ke||ke>Pt-20&&Xe<ke?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return me.createElement(me.Fragment,null,me.createElement("div",{className:"markdown-editor-wrapper",ref:Co},me.createElement("div",{className:`markdown-editor-container ${Yi} ${wo?"on-preview":""} ${zi?"mini":""} ${Oi?"full-screen":""}`,style:Je},me.createElement(Oe,{insertTemp:un,watch:wo,fullScreen:Oi,showNullButton:lt,showNullProgramButton:Rt,onActionCallback:mn,hidetoolBar:ai,extraUse:$i}),me.createElement("div",{className:"markdown-editor-body"},me.createElement("div",{className:"codemirror-container"},me.createElement("textarea",{ref:Tr,placeholder:qn})),wo?me.createElement("div",{ref:Or,className:"preview-container"},In==="stex"&&me.createElement(_e,{value:Er}),In!=="stex"&&me.createElement(Et.Z,{disabledFill:Ot,showProgramFill:Rt,value:Er})):null))),Fr?me.createElement("a",{ref:Yr,className:"editor-resize"}):null,_i===Qi&&me.createElement(Dt,{callback:Wt,onCancel:Qn}),_i===ji&&me.createElement(Ht,{callback:Wt,onCancel:Qn}),me.createElement(We.Z,null,Gi[_i]&&_i!==Qi&&_i!==ji?me.createElement(Ft.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:ho,top:Kn},title:me.createElement("div",{style:{cursor:"move"},onMouseDown:vn},Gi[_i]),open:!0,onCancel:Qn,footer:null,destroyOnClose:!0,width:_i===ji?"1200px":null,height:_i===ji?"80vh":null,className:"markdown-popup-form"},je):null))}},17077:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Z:function(){return Re},I:function(){return We}});var me=Pe(28284),Ve=Pe(6767),ut=Pe(37568),nt=Pe(77736),it=Pe(71051),ze=Pe(47889),Ue=Pe(99571),yt=Pe(46699),ot=Pe(59301),Me=Pe(59301),Et=Object.defineProperty,_e=Object.defineProperties,ht=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ue=(Be,Ie,Qe)=>Ie in Be?Et(Be,Ie,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Be[Ie]=Qe,se=(Be,Ie)=>{for(var Qe in Ie||(Ie={}))ne.call(Ie,Qe)&&ue(Be,Qe,Ie[Qe]);if(Ee)for(var Qe of Ee(Ie))ee.call(Ie,Qe)&&ue(Be,Qe,Ie[Qe]);return Be},de=(Be,Ie)=>_e(Be,ht(Ie));const{useForm:pe}=me.default,ye={width:280,marginRight:10},Ce={labelCol:{span:5},wrapperCol:{span:19}};var Re=({callback:Be,onCancel:Ie})=>{const[Qe]=pe();let rt=(0,ot.useRef)();function xt(At){rt.current.width=Qe.getFieldValue("width"),rt.current.align=Qe.getFieldValue("align"),Be(At,rt.current)}function gt(At,Tt){if(At.status===-1){Ve.ZP.error(At.message);return}Qe.setFieldsValue({src:`/api/attachments/${At.id}`,type:Tt.type})}function bt(At){let Tt=At.target.files[0];rt.current=Tt,We(Tt,gt)}return Me.createElement(me.default,de(se({form:Qe},Ce),{className:"upload-image-panel",onFinish:xt,style:{width:470,overflow:"hidden"}}),Me.createElement(me.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Me.createElement("div",{className:"flex-container"},Me.createElement(me.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Me.createElement(ut.default,{style:ye})),Me.createElement(Oe,{onFileChange:bt}))),Me.createElement(me.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Me.createElement(ut.default,{style:{width:264}})),Me.createElement(me.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Me.createElement(nt.Z,null,Me.createElement(me.default.Item,{name:"width",style:{margin:0}},Me.createElement(it.Z,{style:{width:264}})),Me.createElement("span",{className:"ml8"},"%"))),Me.createElement(me.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Me.createElement(ze.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Me.createElement("aside",null,Me.createElement(me.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Me.createElement(Ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Me.createElement(Ue.ZP,{type:"default",onClick:Ie},"\u53D6\u6D88"))))};function Oe({onFileChange:Be}){return Me.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Me.createElement("input",{type:"file",onChange:Be}))}function We(Be,Ie){if(!Be)throw new String("\u6CA1\u6709\u6587\u4EF6");let Qe=new FormData;Qe.append("editormd-image-file",Be),Qe.append("file_param_name","editormd-image-file"),Qe.append("byxhr","true");var rt=new window.XMLHttpRequest;rt.withCredentials=!0,rt.addEventListener("load",function(xt){Ie(JSON.parse(xt.target.responseText),Be)},!1),rt.addEventListener("error",function(xt){console.error(xt)},!1),rt.open("POST",`${yt.KI}/api/attachments.json`),rt.send(Qe)}},91558:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Z:function(){return ut}});var me=Pe(59301),Ve=Pe(4676);class ut extends me.Component{constructor(it){super(it);const ze=window.document;this.node=ze.createElement("div"),ze.body.appendChild(this.node)}render(){const{children:it}=this.props;return(0,Ve.createPortal)(it,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},75975:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{SV:function(){return vt},ZP:function(){return Dt}});var me=Pe(59301),Ve=Pe(76374);const ut={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},nt={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
|
|
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
|
|
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
|
|
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},it={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
|
|
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
|
|
`)},{label:"include <vector>",content:["#include <vector>"].join(`
|
|
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
`)},{label:"include <map>",content:["#include <map>"].join(`
|
|
`)},{label:"include <string>",content:["#include <string>"].join(`
|
|
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
|
|
`)}]},ze={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
|
|
`)}]},Ue={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
|
|
`)}]};var yt=Pe(53184),ot=Pe.n(yt),Me=(zt,En,kn)=>new Promise((Ze,Fe)=>{var xe=De=>{try{Ye(kn.next(De))}catch(tt){Fe(tt)}},Te=De=>{try{Ye(kn.throw(De))}catch(tt){Fe(tt)}},Ye=De=>De.done?Ze(De.value):Promise.resolve(De.value).then(xe,Te);Ye((kn=kn.apply(zt,En)).next())});const Et={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},_e=(zt,En,kn,Ze)=>{const Fe=En.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:kn.lineNumber,endColumn:kn.column});return Array.from(new Set(Fe.match(/\b\w{2,}\b/g)||[])).map(Te=>({label:Te,kind:zt.languages.CompletionItemKind.Text,insertText:Te,range:Ze}))},ht=(zt,En,kn,Ze)=>{zt.languages.registerCompletionItemProvider(En,{provideCompletionItems(Fe,xe){const Te=Fe.getWordUntilPosition(xe),Ye={startLineNumber:xe.lineNumber,endLineNumber:xe.lineNumber,startColumn:Te.startColumn,endColumn:Te.endColumn},De=Fe.getLineContent(xe.lineNumber).substring(Te.startColumn-2,Te.endColumn);return{suggestions:[..._e(zt,Fe,xe,Ye),...kn.map(Ht=>({label:Ht,kind:zt.languages.CompletionItemKind.Keyword,documentation:Ht,insertText:Ht,insertTextRules:zt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ye})),...Ze.map(Ht=>({label:Ht.label,kind:zt.languages.CompletionItemKind.Snippet,documentation:Ht.content,insertText:De.startsWith("#")?Ht.content.replace(/#/,""):Ht.content,insertTextRules:zt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ye}))]}}})};var Ee=zt=>{Et.languages.forEach(En=>{zt.languages.registerDocumentFormattingEditProvider(En,{provideDocumentFormattingEdits(kn){return Me(this,null,function*(){const Ze=ot()(kn.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:kn.getFullModelRange(),text:Ze}]})}})}),ht(zt,"java",nt.keywords,nt.quickKey),ht(zt,"cpp",it.keywords,it.quickKey),ht(zt,"c",ut.keywords,[]),ht(zt,"python",ze.keywords,ze.quickKey),ht(zt,"scala",Ue.keywords,Ue.quickKey)};const ne="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var ee=Object.defineProperty,ue=(zt,En,kn)=>En in zt?ee(zt,En,{enumerable:!0,configurable:!0,writable:!0,value:kn}):zt[En]=kn,se=(zt,En,kn)=>ue(zt,typeof En!="symbol"?En+"":En,kn);const de=class wx{constructor(En,kn,Ze){this.placeholder=En,this.editor=kn,this.monaco=Ze,kn.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return wx.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};se(de,"ID","editor.widget.placeholderHint");var ye=de,Ce=Pe(96236),Re=Pe(6767),Oe=Pe(25399),We=Pe(89392),Be=Pe(49535),Ie=Pe(56102),Qe=Object.defineProperty,rt=Object.defineProperties,xt=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,bt=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,Tt=(zt,En,kn)=>En in zt?Qe(zt,En,{enumerable:!0,configurable:!0,writable:!0,value:kn}):zt[En]=kn,Nt=(zt,En)=>{for(var kn in En||(En={}))bt.call(En,kn)&&Tt(zt,kn,En[kn]);if(gt)for(var kn of gt(En))At.call(En,kn)&&Tt(zt,kn,En[kn]);return zt},Ut=(zt,En)=>rt(zt,xt(En)),st=(zt,En)=>{var kn={};for(var Ze in zt)bt.call(zt,Ze)&&En.indexOf(Ze)<0&&(kn[Ze]=zt[Ze]);if(zt!=null&>)for(var Ze of gt(zt))En.indexOf(Ze)<0&&At.call(zt,Ze)&&(kn[Ze]=zt[Ze]);return kn},He=(zt,En,kn)=>new Promise((Ze,Fe)=>{var xe=De=>{try{Ye(kn.next(De))}catch(tt){Fe(tt)}},Te=De=>{try{Ye(kn.throw(De))}catch(tt){Fe(tt)}},Ye=De=>De.done?Ze(De.value):Promise.resolve(De.value).then(xe,Te);Ye((kn=kn.apply(zt,En)).next())});function jt(zt){return/^\d+$/.test(zt)?`${zt}px`:zt}function fn(){}let Bt=!1;const Ft={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function It(zt=[]){let En=zt;if(Array.isArray(zt)){for(let kn=0;kn<zt.length;kn++){let Ze=Ft[zt[kn]];if(Ze)return Ze}return En[0]}return Ft[En]||En}let Vt=null;const wn=()=>He(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(zt){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",zt)}});var Dt=zt=>{var En=zt,{width:kn="100%",height:Ze="100%",value:Fe,language:xe="javascript",style:Te={},options:Ye={},overrideServices:De={},theme:tt="vs-dark",onEditBlur:Ht,isCopy:$t=!1,onSave:Sn,autoHeight:en=!1,forbidCopy:kt=!1,onChange:nn=fn,editorDidMount:hn=fn,onFocus:zn=fn,onBreakPoint:fi=fn,breakPointValue:_n=[],filename:Pi="educoder.txt",errorLine:Ci,errorContent:Yn="",highlightLine:Ei,openBreakPoint:pi=!1,placeholder:ji="",showMiniMap:Qi=!0}=En,lr=st(En,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const Lr=(0,me.useRef)(),Di=(0,me.useRef)({}),cr=(0,me.useRef)(),to=(0,me.useRef)(),ki=(0,me.useRef)([]),no=(0,me.useRef)(!1),fo=(0,me.useRef)(),po=(0,me.useRef)(),io=(0,me.useRef)(!1),[hr,ao]=(0,me.useState)(!1);function be(){let un;return Lr.current&&(un=new Ve.Z(In=>{for(let Vi of In)(Vi.target.offsetHeight>0||Vi.target.offsetWidth>0)&&Di.current.instance.layout()}),un.observe(Lr.current)),un}function Un(){Re.ZP.warning({content:decodeURIComponent(ne),key:"monaco-editor-tip"})}const Xn=()=>{let un=Di.current.instance;if(Fe!=null&&un&&hr){const In=un.getModel();In&&Fe!==In.getValue()&&(Bt=!0,In.setValue(Fe),un.layout(),Bt=!1)}};(0,me.useEffect)(()=>{const un=Be.Z.subscribe("formatDocument",In=>{var Vi;let Fr=Di.current.instance;(Vi=Fr==null?void 0:Fr.getAction)==null||Vi.call(Fr,"editor.action.formatDocument").run()});return window.updateMonacoValue=In=>{nn(In)},un},[]),(0,me.useEffect)(()=>{var un;let In=Di.current.instance;to.current&&clearTimeout(to.current),to.current=setTimeout(()=>{Xn()},500),Fe&&(Fe!=null&&Fe.length)&&((un=In==null?void 0:In.updateOptions)==null||un.call(In,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Fe.split(/\r\n|\r|\n/g).length))+3,5)}))},[Fe,hr,Di.current]),(0,me.useEffect)(()=>{if(Ci&&Di.current&&Di.current.instance){let In=Di.current.instance;In.changeViewZones(function(Vi){var Fr=document.createElement("div");Fr.style.padding="10px 20px",Fr.style.width="calc(100% - 20px)",Fr.className="my-error-line-wrp",Fr.innerHTML=Yn,Vi.addZone({afterLineNumber:Ci||11,heightInLines:3,domNode:Fr})});var un={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};In.addOverlayWidget(un),In.revealPositionInCenter({lineNumber:20,column:1})}},[Ci,Di.current,hr]);const ci=(un="",In)=>{if(!un||un.trim()==="")return!0;const Fr=Di.current.instance.getModel().getLineTokens(In);let ii=!1;for(let lt=0;lt<2;lt++)Fr.getStandardTokenType(lt)===1&&(ii=!0);return ii};(0,me.useEffect)(()=>{var un;const In=(un=Di.current)==null?void 0:un.instance;if(In&&hr&&kt){const Vi=In.onDidBlurEditorWidget(()=>{io.current=!1}),Fr=In.onDidFocusEditorText(()=>{io.current=!0});return()=>{Vi.dispose(),Fr.dispose()}}},[Di.current,hr,kt]),(0,me.useEffect)(()=>{var un;if((un=Di.current)!=null&&un.instance&&hr&&pi){let In=Di.current.instance,Vi=In.getModel();if(!Vi)return;(()=>{var Bn;let Ot=[],qn=[];const Ji=Vi.getAllDecorations();for(let Pn of Ji)Pn.options.className==="highlighted-line"&&(Ot.push((Bn=Pn==null?void 0:Pn.range)==null?void 0:Bn.startLineNumber),qn.push(Pn==null?void 0:Pn.id));if(Ei===Ot[0])return;Vi.deltaDecorations(qn,[]);const $i=Vi.getLineCount();Ei&&Ei<=$i&&(In.deltaDecorations([],[{range:new Vt.Range(Ei,1,Ei,Vi.getLineMaxColumn(Ei)),options:{isWholeLine:!0,className:"highlighted-line"}}]),In.revealLineInCenter(Ei))})();const ii=(Bn=!1)=>{var Ot;let qn=[],Ji=[];const $i=Vi.getAllDecorations();for(let Pn of $i)Pn.options.linesDecorationsClassName==="breakpoints-select"&&(qn.push((Ot=Pn==null?void 0:Pn.range)==null?void 0:Ot.startLineNumber),Ji.push(Pn==null?void 0:Pn.id));if(Bn)return{lines:qn,ids:Ji};fi(qn)},lt=Bn=>He(void 0,null,function*(){let Ot={range:new Vt.Range(Bn,1,Bn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Vi.deltaDecorations([],[Ot]),ii()}),Rt=Bn=>He(void 0,null,function*(){let Ot=[];const qn=In.getLineDecorations(Bn);for(let Ji of qn)Ji.options.linesDecorationsClassName==="breakpoints-select"&&Ot.push(Ji.id);yield Vi.deltaDecorations(Ot,[]),ii()}),ai=Bn=>{let Ot=In.getLineDecorations(Bn);for(let qn of Ot)if(qn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,We.isEqual)(_n,ii(!0).lines)){Vi.deltaDecorations(ii(!0).ids,[]);const Bn=_n.map(Ot=>({range:new Vt.Range(Ot,1,Ot,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Vi.deltaDecorations([],Bn)}const ti=In.onDidChangeModelContent(Bn=>{let Ot=In.getPosition();if(Ot){let qn=Ot.lineNumber;clearTimeout(po.current),po.current=setTimeout(()=>{ci(Vi.getLineContent(qn),qn)?Rt(qn):ai(qn)?(Rt(qn),lt(qn)):ii()},100)}}),tn=In.onMouseDown(Bn=>{var Ot,qn,Ji;if(Bn.target.detail&&((Ji=(qn=(Ot=Bn.target)==null?void 0:Ot.element)==null?void 0:qn.className)!=null&&Ji.includes("line-numbers"))){let $i=Bn.target.position.lineNumber;if(ci(Vi.getLineContent($i),$i))return;ai($i)?Rt($i):lt($i)}}),si=Bn=>{let Ot={range:new Vt.Range(Bn,1,Bn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};ki.current=In.deltaDecorations(ki.current,[Ot])},Ri=()=>{ki.current=In.deltaDecorations(ki.current,[])},Yi=In.onMouseMove(Bn=>{var Ot,qn,Ji;if(Ri(),Bn.target.detail&&((Ji=(qn=(Ot=Bn.target)==null?void 0:Ot.element)==null?void 0:qn.className)!=null&&Ji.includes("line-numbers"))){let $i=Bn.target.position.lineNumber;if(ci(Vi.getLineContent($i),$i))return;si($i)}}),tr=In.onMouseLeave(()=>{Ri()});return()=>{ti.dispose(),tn.dispose(),Yi.dispose(),tr.dispose()}}},[Di.current,hr,_n,Ei,pi,xe]),(0,me.useEffect)(()=>{var un;(un=Di.current)!=null&&un.instance&&pi&&Di.current.instance.setPosition({lineNumber:0,column:0})},[Ei]);function mi(){let un=Di.current.instance;if(un){const In=un.getSelection(),Vi=Di.current.pastePos||{},Fr=new Vt.Range(Vi.startLineNumber||In.endLineNumber,Vi.startColumn||In.endColumn,Vi.endLineNumber||In.endLineNumber,Vi.endColumn||In.endColumn);setTimeout(()=>{un.executeEdits("",[{range:Fr,text:""}])},300)}}function ei(un){(window.navigator.platform.match("Mac")?un.metaKey:un.ctrlKey)&&un.keyCode==83&&(un.preventDefault(),Sn())}const Gi=()=>{if(en&&Di.current.instance){const un=Di.current.instance.getContentHeight();Ti(un<Ze?Ze:un)}else Ti(Ze)};function vr(un){var In=document.createEvent("MouseEvents");In.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),un.dispatchEvent(In)}const an=un=>{if(!io.current)return;const{keyCode:In,ctrlKey:Vi,metaKey:Fr,target:ii,type:lt}=un;return(lt==="paste"||(In===67||In===86)&&(Fr||Vi))&&ii.nodeName==="TEXTAREA"&&(Un(),un.preventDefault()),!1};function ln(un,In){var Vi=window.URL||window.webkitURL||window,Fr=new Blob([In]),ii=document.createElementNS("http://www.w3.org/1999/xhtml","a");ii.href=Vi.createObjectURL(Fr),ii.download=un,vr(ii)}(0,me.useEffect)(()=>{Gi()},[Gi]),(0,me.useEffect)(()=>{Lr.current&&!hr&&Promise.all([Pe.e(8909),Pe.e(6656)]).then(Pe.bind(Pe,71448)).then(un=>{try{Vt=un,Di.current.instance=Vt.editor.create(Lr.current,{value:Fe,language:It(xe),theme:tt,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Qi||!1}},De);const In=Di.current.instance;let ii=[...Ce.BH._menuItems].find(ti=>ti[0]._debugName=="EditorContext")[1],lt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Rt=(ti,tn)=>{var si,Ri;let Yi=ti._first;do tn.includes((Ri=(si=Yi.element)==null?void 0:si.command)==null?void 0:Ri.id)&&ti._remove(Yi);while(Yi=Yi.next)};if(hn(In,Vt),setTimeout(()=>{Gi(),Di.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{ln(Pi||"educoder.txt",In.getValue())}})},500),Di.current.subscription=In.onDidChangeModelContent(ti=>{no.current?clearTimeout(fo.current):(Gi(),nn(In.getValue(),ti)),fo.current=setTimeout(()=>{no.current=!1},500)}),window.Monaco||Ee(Vt,It(xe)),kt&&(Rt(ii,lt),Lr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",an),window.removeEventListener("paste",an),window.addEventListener("keydown",an),window.addEventListener("paste",an)),window.Monaco=Vt,Ht&&In.onDidBlurEditorWidget(()=>{Ht(In.getValue())}),zn&&In.onDidFocusEditorText(()=>{kt&&wn(),zn(In.getValue())}),kt){wn();try{In.onDidPaste(ti=>{const tn=In.getSelection(),si=Di.current.pastePos||{},Ri=new Vt.Range(si.startLineNumber||tn.endLineNumber,si.startColumn||tn.endColumn,si.endLineNumber||tn.endLineNumber,si.endColumn||tn.endColumn);In.executeEdits("",[{range:ti.range,text:""}])})}catch(ti){}}let ai=be();return ji&&typeof ji=="string"&&new ye(ji,In,Vt),ao(!0),()=>{const ti=Di.current.instance;ti.dispose();const tn=ti.getModel();tn&&tn.dispose(),Di.current.subscription&&Di.current.subscription.dispose(),ai.unobserve(Lr.current)}}catch(In){}})},[]),(0,me.useEffect)(()=>{if(Di.current.instance&&hr)return document.addEventListener("keydown",ei,!1),()=>{document.removeEventListener("keydown",ei)}},[Sn,hr]),(0,me.useEffect)(()=>{let un=Di.current.instance;if(un&&hr){let In=It(xe);Vt.editor.setModelLanguage(un.getModel(),In)}},[xe,hr]),(0,me.useEffect)(()=>{Di.current.instance&&hr&&Vt.editor.setTheme(tt)},[tt,hr]),(0,me.useEffect)(()=>{let un=Di.current.instance;cr.current=Ye,un&&hr&&(un.updateOptions(Nt({},Ye)),setTimeout(()=>{un.getModel().updateOptions(Nt({},Ye))},200))},[JSON.stringify(Ye),hr]),(0,me.useEffect)(()=>{let un=Di.current.instance;un&&hr&&un.layout()},[kn,Ze,hr]);const[Zt,pn]=(0,me.useState)(jt(kn)),[zi,Ti]=(0,me.useState)(jt(Ze)),dr=Ut(Nt({},Te),{width:Zt,height:zi,position:"relative"});return me.createElement("div",{className:"my-monaco-editor",ref:Lr,style:dr},$t&&me.createElement(Ie.CopyToClipboard,{text:Fe,onCopy:()=>Re.ZP.success("\u590D\u5236\u6210\u529F")},me.createElement(Oe.Z,{title:"\u590D\u5236\u4EE3\u7801"},me.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},me.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function vt({width:zt="100%",height:En="100%",original:kn,modified:Ze,language:Fe,options:xe={}}){const Te=(0,me.useRef)(),[Ye,De]=(0,me.useState)(null);function tt(en){let kt;return Te.current&&(kt=new Ve.Z(nn=>{for(let hn of nn)(hn.target.offsetHeight>0||hn.target.offsetWidth>0)&&en.layout()}),kt.observe(Te.current)),kt}(0,me.useEffect)(()=>(Te.current&&Promise.all([Pe.e(8909),Pe.e(9404)]).then(Pe.bind(Pe,2550)).then(en=>{Vt=en;const kt=Vt.editor.createDiffEditor(Te.current,Ut(Nt({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},xe),{wordWrap:!0}));De(kt);let nn=tt(kt);return()=>{kt.dispose();const hn=kt.getModel();hn&&hn.dispose(),nn.unobserve(Te.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,me.useEffect)(()=>{Ye&&Ye.setModel({original:Vt.editor.createModel(kn,Fe),modified:Vt.editor.createModel(Ze,Fe)})},[kn,Ze,Fe,Ye]);const Ht=jt(zt),$t=jt(En),Sn={width:Ht,height:$t};return me.createElement("div",{className:"my-diff-editor",ref:Te,style:Sn})}},10661:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Z:function(){return _e}});var me={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT"},Ve=Pe(29787),ut=Pe(25399),nt=Pe(60242),it=Pe(92310),ze=Pe.n(it),Ue=Pe(51257),yt=Pe(28426),ot=Pe(48790),Me=Pe(59301),_e=({className:ht,dataSource:Ee=[],col:ne=4,right:ee,bottom:ue=23,precision:se=0,wrapWidth:de=1200,trackEventItems:pe,loading:ye,onRemove:Ce=()=>{},isCurrent:Re=!0,showProgress:Oe=!1,showAlias:We=!1})=>{const Be=Math.floor((de-(ne-1)*ee)/ne),Ie=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return Me.createElement(Ve.Z,{spinning:ye},Me.createElement("div",{className:ze()(me.list,ht)},!!(Ee!=null&&Ee.length)&&(Ee==null?void 0:Ee.map((Qe,rt)=>{var xt,gt,bt,At,Tt,Nt;const{name:Ut,id:st,identifier:He,featured:jt,school_name:fn,image_url:Bt,excellent:Ft,is_plan:It}=Qe;return Me.createElement("div",{key:st,className:Re&&Oe?me.wrapisCurrent:me.wrap,style:{width:Be,marginRight:(1+rt)%ne===0?0:ee+se,marginBottom:ue}},Me.createElement("a",{className:me.li,onClick:Vt=>{Vt.preventDefault(),Vt.stopPropagation(),pe&&(0,Ue.L9)([pe]),(0,Ue.xg)(`/paths/${He}`)}},Me.createElement("div",{className:me.img},Me.createElement("img",{className:me.cover,src:`${Bt}`}),Re&&(0,ot.bg)()&&(Qe==null?void 0:Qe.studying)&&Me.createElement("div",{className:`${me.movebq} user-path-items`,onClick:Vt=>{Vt.stopPropagation(),Ce(Qe)}},Me.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Me.createElement("span",{className:"c-red"},"\u79FB\u9664")),(xt=Qe==null?void 0:Qe.subject_tags)==null?void 0:xt.map((Vt,wn)=>{var Dt,vt;if(wn===0){const En=(Dt=Ie.find(kn=>kn.name==Vt))==null?void 0:Dt.swimg;return Me.createElement("img",{className:me.sign,src:En,style:{left:"-4px"}})}const zt=(vt=Ie.find(En=>En.name==Vt))==null?void 0:vt.ptimg;return Me.createElement("img",{className:me.sign,src:zt,style:{left:`${48+52*(wn-1)+2*wn}px`}})}),Me.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Qe==null?void 0:Qe.excellent)&&Me.createElement("div",{className:me.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Me.createElement("div",{className:me.name},Me.createElement(ut.Z,{title:We&&(Qe!=null&&Qe.excellent_alias_name)?Me.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Ut}`,Me.createElement("br",null),Me.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Qe==null?void 0:Qe.excellent_alias_name}`)):Ut},Me.createElement("span",{className:me.e},We&&(Qe==null?void 0:Qe.excellent_alias_name)||Ut))),Re&&Oe&&((gt=Qe==null?void 0:Qe.progress)==null?void 0:gt.all_score)!=0&&Me.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Me.createElement(nt.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((bt=Qe==null?void 0:Qe.progress)==null?void 0:bt.my_score)/((At=Qe==null?void 0:Qe.progress)==null?void 0:At.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Tt=Qe==null?void 0:Qe.progress)==null?void 0:Tt.my_score,"/",(Nt=Qe==null?void 0:Qe.progress)==null?void 0:Nt.all_score),(!Re||!Oe)&&Me.createElement(ut.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${fn}`},Me.createElement("div",{className:me.unit},Me.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),fn)),(!Re||!Oe)&&Me.createElement("div",{className:me.tags},Me.createElement("div",null,Me.createElement(ut.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Me.createElement("span",null,Me.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Me.createElement("span",null,Qe.stages_count))),Me.createElement(ut.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Me.createElement("span",null,Me.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Me.createElement("span",null,Qe.members_count)))))))})),!Ee.length&&Me.createElement(yt.Z,null)))}},9148:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{jL:function(){return it},w9:function(){return jt},QD:function(){return Ci},cQ:function(){return Tt.Z},op:function(){return nn},O5:function(){return Xn},_b:function(){return lr},t7:function(){return se},Gi:function(){return wn},YG:function(){return It},qp:function(){return Et},vr:function(){return pi},qE:function(){return fi},Je:function(){return ye},wb:function(){return At},cq:function(){return Ze},tp:function(){return Ee}});var me=Pe(59301),Ve={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},ut="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6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qOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",it=({dataSource:ci=[],img:mi,imgWidth:ei=346,title:Gi,sunTitle:vr,bannerExtraContent:an})=>me.createElement("div",{className:Ve.banner},me.createElement("div",{className:Ve.content},me.createElement("aside",null,me.createElement("p",null,me.createElement("b",null,Gi),me.createElement("span",null,vr)),ci.length>0&&me.createElement("div",{className:Ve.btns},ci.map((ln,Zt)=>me.createElement("div",{key:Zt,onClick:ln.click},ln.name,ln.sign?me.createElement("img",{src:ut,width:39}):null))),an),mi&&me.createElement("img",{style:{marginTop:33,marginRight:38},src:mi,width:ei}))),ze={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},Ue=Pe(92310),yt=Pe.n(Ue),ot=Pe(89392),Et=({dataSource:ci=[],value:mi,onChange:ei,onTitleChange:Gi,className:vr,title:an,titleWidth:ln=41,style:Zt={},fontColor:pn="#6A7283",showCount:zi})=>{const[Ti,dr]=(0,me.useState)(0),[un,In]=(0,me.useState)(!1),Vi=(0,me.useRef)(null),Fr=(0,me.useRef)(null);return(0,me.useEffect)(()=>{var ii;ci.length!==0&&(((ii=Vi==null?void 0:Vi.current)==null?void 0:ii.clientHeight)>97?dr(1):dr(0)),ci.length===0&&dr(0),In(!1)},[ci]),me.createElement("div",{className:yt()(ze.row,vr),style:Zt},me.createElement("div",{onClick:(0,ot.throttle)(()=>Gi==null?void 0:Gi(),2e3),style:{width:ln,marginTop:un?12:4},className:`${ze.title} ${Gi?"current":""}`},an),me.createElement("div",{className:un?`${ze.tagsWrap} ${ze.tagsBorderWrap}`:ze.tagsWrap},me.createElement("div",{className:ze.bar,ref:Fr,style:Ti>0?{height:Ti===1?97:"auto",overflow:Ti===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},me.createElement("div",{className:ze.tag,ref:Vi},ci==null?void 0:ci.map(ii=>me.createElement("span",{onClick:()=>ei(ii.id),key:ii.id,style:{color:pn},className:mi===ii.id?ze.active:""},me.createElement("span",{title:ii.name,className:ze.name},ii.name),!!zi&&me.createElement("span",{className:ze.num},ii.count))))),!!Ti&&me.createElement(me.Fragment,null,Ti===1?me.createElement("div",{onClick:()=>{var ii;dr(2),((ii=Vi==null?void 0:Vi.current)==null?void 0:ii.clientHeight)>245?In(!0):In(!1)},className:ze.action},"\u5C55\u5F00",me.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):me.createElement("div",{onClick:()=>{Fr.current.scrollTop=0,dr(1),In(!1)},className:ze.action},"\u6536\u8D77",me.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},_e={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Ee=({dataSource:ci=[],value:mi,onChange:ei,className:Gi,style:vr={}})=>me.createElement("div",{style:vr,className:yt()(_e.tabs,Gi)},ci.map(an=>me.createElement("span",{onClick:()=>ei(an.id),className:mi===an.id?_e.active:"",key:an.id},an.name))),ne={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},ee=Pe(37568),se=({dataSource:ci=[],value:mi="",onChange:ei,onInputChange:Gi=()=>{},className:vr,style:an={},placeholder:ln,allowClear:Zt=!1})=>{var pn;const[zi,Ti]=(0,me.useState)(""),[dr,un]=(0,me.useState)("");(0,me.useEffect)(()=>{var Fr;let ii=mi;(Fr=JSON.stringify(mi))!=null&&Fr.includes("{")&&(Ti(mi.id),ii=mi.value||"");try{un(decodeURIComponent(ii||""))}catch(lt){un(decodeURIComponent(ii||""))}},[mi]);const In=()=>{ei(encodeURIComponent(dr),zi||null)},Vi=Fr=>{Fr!==zi&&(Ti(Fr),ei(encodeURIComponent(dr),Fr))};return me.createElement("div",{className:yt()(ne.input,vr),style:an},!!ci.length&&me.createElement("div",{className:ne.dropdown},me.createElement("div",{className:ne.text},(pn=ci.find(Fr=>Fr.id===zi))==null?void 0:pn.name,me.createElement("i",{className:"iconfont icon-zhankai4"}),me.createElement("b",{className:ne.b1}),me.createElement("b",{className:ne.b2})),me.createElement("div",{className:ne.menu},ci.map((Fr,ii)=>me.createElement("div",{key:ii,onClick:()=>Vi(Fr.id)},Fr.name)))),me.createElement(ee.default,{onPressEnter:In,value:dr,onChange:Fr=>{un(Fr.target.value),Gi(encodeURIComponent(Fr.target.value),zi||null)},bordered:!1,placeholder:ln}),me.createElement("i",{onClick:In,className:"iconfont icon-sousuo9 font14 pl10 current"}))},de={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},ye=({value:ci,onChange:mi,className:ei,total:Gi,pageSize:vr,style:an={}})=>{const ln=ci<2,Zt=ci>=Math.ceil(Gi/vr);return Gi<=vr?me.createElement(me.Fragment,null):me.createElement("div",{className:yt()(de.quickPager,ei),style:an},me.createElement("div",{onClick:()=>{ln||mi(ci-1,"prev")},className:ln?de.disabled:""},"\u4E0A\u4E00\u9875"),me.createElement("div",{onClick:()=>{Zt||mi(ci+1,"next")},className:Zt?de.disabled:""},"\u4E0B\u4E00\u9875"))},Ce={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},Re=Pe(29787),Oe=Pe(25399),We=Pe(58018),Be=Pe(346),Ie=Pe(51257),Qe=Pe(96908),rt=Pe(57177),xt=Pe(81378),gt=Pe(28426),At=({className:ci,dataSource:mi=[],col:ei=4,right:Gi,bottom:vr=23,precision:an=0,wrapWidth:ln=1200,trackEventItems:Zt,loading:pn})=>{const zi=Math.floor((ln-(ei-1)*Gi)/ei);return me.createElement(Re.Z,{spinning:pn},me.createElement("div",{className:yt()(Ce.list,ci)},!!mi.length&&mi.map((Ti,dr)=>{const{name:un,id:In,identifier:Vi,power:Fr,cover_image_id:ii,pic:lt}=Ti;return me.createElement("div",{className:Ce.wrap,key:In,style:{width:zi,marginRight:(1+dr)%ei===0?0:Gi+an,marginBottom:vr}},me.createElement("a",{target:"_blank",href:`/shixuns/${Vi}/challenges`,className:Ce.li,onClick:Rt=>{Rt.preventDefault(),Zt&&(0,Ie.L9)([Zt]),Fr&&(0,Ie.xg)(`/shixuns/${Vi}/challenges`)}},me.createElement("div",{className:Ce.img},me.createElement("img",{className:Ce.cover,src:`${lt}`}),Ti.is_jupyter&&me.createElement("img",{className:Ce.sign,src:Qe}),Ti.is_jupyter_lab&&me.createElement("img",{className:Ce.sign,src:rt}),Ti.is_unity_3d&&me.createElement("img",{className:Ce.sign,src:xt})),me.createElement("div",{className:Ce.name},me.createElement(Oe.Z,{title:un||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},me.createElement("span",{className:Ce.e},un||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),me.createElement("div",{className:Ce.tags},me.createElement(Oe.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},me.createElement("span",null,me.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),me.createElement("span",null,Ti.challenges_count))),!!Ti.myshixuns_count&&me.createElement(Oe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},me.createElement("span",null,me.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),me.createElement("span",null,Ti.myshixuns_count))),me.createElement(Oe.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},me.createElement("span",null,me.createElement("span",null,Ti.level))),me.createElement("div",{className:Ce.rate},me.createElement(We.Z,{allowHalf:!0,disabled:!0,defaultValue:Ti.score_info}),me.createElement("span",null,"\xA0",Ti.score_info?`${Ti.score_info}\u5206`:"5\u5206")))),!Fr&&me.createElement("div",{className:Ce.lockWrap},me.createElement("img",{src:`${Be.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),me.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!mi.length&&me.createElement(gt.Z,null)))},Tt=Pe(10661),Nt={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Ut="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTz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+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",st=Pe(59301),jt=({className:ci,dataSource:mi=[],col:ei=4,right:Gi,bottom:vr=23,precision:an=0,wrapWidth:ln=1200,trackEventItems:Zt,loading:pn,handleVery:zi=()=>!0})=>{const Ti=Math.floor((ln-(ei-1)*Gi)/ei);return st.createElement(Re.Z,{spinning:pn},st.createElement("div",{className:yt()(Nt.list,ci)},!!mi.length&&mi.map((dr,un)=>{const{subject_identifier:In,id:Vi,identifier:Fr,power:ii}=dr,lt=dr.is_public!=0&&dr.is_public;return st.createElement("div",{className:Nt.wrap,key:Vi,style:{width:Ti,marginRight:(1+un)%ei===0?0:Gi+an,marginBottom:vr}},st.createElement("a",{className:Nt.li,onClick:Rt=>{Rt.preventDefault(),zi(dr==null?void 0:dr.first_category_url)&&(Zt&&(0,Ie.L9)([Zt]),(0,Ie.xg)(dr.first_category_url))}},st.createElement("div",{className:Nt.top},st.createElement(Oe.Z,{title:dr.name},st.createElement("div",{className:Nt.name},dr.name)),st.createElement("img",{className:Nt.img,src:Be.Z.IMG_SERVER+"/images/"+dr.avatar_url}),st.createElement("div",{className:Nt.text,title:dr.creator},dr.creator),In&&st.createElement("div",{className:Nt.btns},st.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),st.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),lt&&st.createElement("div",{className:Nt.sign},"\u516C\u5F00")),st.createElement("div",{className:Nt.bottom},dr.visits>0&&st.createElement(Oe.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},st.createElement("span",null,st.createElement("i",{className:"iconfont icon-liulanyan"}),st.createElement("span",null,dr.visits))),dr.course_members_count>0&&st.createElement(Oe.Z,{title:"\u6210\u5458",placement:"bottom"},st.createElement("span",null,st.createElement("i",{className:"iconfont icon-chengyuan"}),dr.course_members_count)),dr.tasks_count>0&&st.createElement(Oe.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},st.createElement("span",null,st.createElement("i",{className:"iconfont icon-zuoye"}),dr.tasks_count)),dr.is_end?st.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):st.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!dr.is_accessible&&st.createElement("div",{className:Nt.lockWrap},st.createElement("img",{src:`${Be.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),st.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!mi.length&&st.createElement(gt.Z,null)))},fn={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},Bt=Pe(25690),It=({dataSource:ci=[],value:mi,onChange:ei,className:Gi,style:vr={},tabBarExtraContent:an})=>me.createElement("div",{className:yt()(fn.tabs,Gi),style:vr},me.createElement("div",{className:fn.tabsWrap},ci.map((ln,Zt)=>!(ln!=null&&ln.hide)&&me.createElement("aside",{className:fn.tab,onClick:()=>{ei(ln.id),ln.link&&Bt.history.push(ln.link)},key:Zt},me.createElement("div",{className:mi===ln.id?fn.active:""},ln.name),(ln==null?void 0:ln.resetCount)==null&&(ln==null?void 0:ln.total)!==void 0&&me.createElement("span",null,"\uFF08",ln==null?void 0:ln.total,"\uFF09"),(ln==null?void 0:ln.resetCount)!==void 0&&(ln==null?void 0:ln.total)!==void 0&&me.createElement(Oe.Z,{title:(ln==null?void 0:ln.tip)!=null?ln==null?void 0:ln.tip:""},me.createElement("span",{style:{color:"#9096A3"}},"\uFF08",me.createElement("span",{style:{color:"#000"}},ln==null?void 0:ln.resetCount),"/",me.createElement("span",null,ln==null?void 0:ln.total),"\uFF09"))))),me.createElement("div",{className:fn.tabBar},an)),wn=({className:ci,style:mi={},children:ei})=>me.createElement("div",{className:yt()(ci),style:mi},ei),Dt={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},vt=Pe(75727),zt=Pe(93041);const En=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Ze=({sortValue:ci,dropValue:mi,className:ei,onSort:Gi,onDrop:vr,dataSource:an=En})=>{var ln;return me.createElement("div",{className:yt()(Dt.orderWrap,ei)},me.createElement(vt.Z,{dropdownRender:()=>me.createElement(zt.default,null,an.map((Zt,pn)=>me.createElement(zt.default.Item,{key:pn,onClick:()=>vr(Zt.id)},Zt.name)))},me.createElement("span",{className:Dt.orderTextWrap},(ln=an.find(Zt=>mi===Zt.id))==null?void 0:ln.name)),me.createElement("span",{className:Dt.orderIconWrap},me.createElement("span",{className:Dt.orderAsc},me.createElement("i",{className:ci==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Dt.cursorPointer} ${Dt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Dt.cursorPointer}`,onClick:()=>Gi(ci==="asc"?"desc":"asc")})),me.createElement("span",{className:Dt.orderDesc},me.createElement("i",{className:ci==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Dt.cursorPointer} ${Dt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Dt.cursorPointer}`,onClick:()=>Gi(ci==="asc"?"desc":"asc")}))))},Fe={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},xe=Pe(99571),Te=Object.defineProperty,Ye=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,Ht=(ci,mi,ei)=>mi in ci?Te(ci,mi,{enumerable:!0,configurable:!0,writable:!0,value:ei}):ci[mi]=ei,$t=(ci,mi)=>{for(var ei in mi||(mi={}))De.call(mi,ei)&&Ht(ci,ei,mi[ei]);if(Ye)for(var ei of Ye(mi))tt.call(mi,ei)&&Ht(ci,ei,mi[ei]);return ci},Sn=(ci,mi)=>{var ei={};for(var Gi in ci)De.call(ci,Gi)&&mi.indexOf(Gi)<0&&(ei[Gi]=ci[Gi]);if(ci!=null&&Ye)for(var Gi of Ye(ci))mi.indexOf(Gi)<0&&tt.call(ci,Gi)&&(ei[Gi]=ci[Gi]);return ei},en=(ci,mi,ei)=>new Promise((Gi,vr)=>{var an=pn=>{try{Zt(ei.next(pn))}catch(zi){vr(zi)}},ln=pn=>{try{Zt(ei.throw(pn))}catch(zi){vr(zi)}},Zt=pn=>pn.done?Gi(pn.value):Promise.resolve(pn.value).then(an,ln);Zt((ei=ei.apply(ci,mi)).next())}),nn=ci=>{var mi=ci,{className:ei,style:Gi,children:vr,loading:an=!1,openLoading:ln,onClick:Zt=()=>{},size:pn="middle",shape:zi="round"}=mi,Ti=Sn(mi,["className","style","children","loading","openLoading","onClick","size","shape"]);const[dr,un]=(0,me.useState)(!1);return me.createElement(xe.ZP,$t({onClick:(0,ot.throttle)(In=>en(void 0,null,function*(){ln&&un(!0);try{yield Zt(In)}catch(Vi){console.log("error",Vi)}ln&&un(!1)}),2e3,{leading:!0,trailing:!1}),className:yt()(Fe.btn,Fe[`${pn}-${zi}`],ei),style:Gi,size:pn,shape:zi,loading:dr||an},Ti),vr)},hn={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},fi=({className:ci,style:mi,children:ei=null,onClick:Gi,title:vr})=>me.createElement("div",{className:yt()(hn.head,ci),style:mi},me.createElement("span",{className:"primary-hover",onClick:Gi},me.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),me.createElement("b",{title:vr},vr),me.createElement("div",{className:hn.node},ei)),_n={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},Ci=({confirmShow:ci=!0,confirmTitle:mi,confirmClick:ei,cancelShow:Gi=!0,cancelTitle:vr,cancelClick:an,className:ln,style:Zt,confirmLoading:pn=!1})=>me.createElement("div",{className:yt()(_n.btns,ln),style:Zt},ci&&me.createElement(xe.ZP,{loading:pn,onClick:ei,type:"primary",className:_n.confirm},mi),Gi&&me.createElement(xe.ZP,{onClick:an,className:_n.cancel},vr)),Yn={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},pi=({className:ci,style:mi={},LeftContent:ei,children:Gi,RightContent:vr})=>me.createElement("div",{className:yt()(Yn.fixedBottom,ci),style:mi},me.createElement("div",{className:Yn.wrap},me.createElement("div",{className:Yn.left},ei),me.createElement("div",{className:Yn.center},Gi),me.createElement("div",{className:Yn.right},vr))),ji={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},lr=({className:ci,style:mi={},dataSource:ei=[]})=>me.createElement("div",{className:yt()(ji.crumbs,ci),style:mi},ei.map((Gi,vr)=>vr<ei.length-1?me.createElement(me.Fragment,{key:vr},Gi.path||Gi.onClick?me.createElement("span",{className:ji.hover,onClick:Gi!=null&&Gi.onClick?Gi.onClick:()=>Bt.history.push(Gi.path)},Gi.name):me.createElement("span",null,Gi.name),me.createElement("span",null,"\xA0",">","\xA0")):me.createElement("span",{key:vr,style:{color:"#5F6368"}},Gi.name))),Lr=Pe(11938),Di=Object.defineProperty,cr=Object.defineProperties,to=Object.getOwnPropertyDescriptors,ki=Object.getOwnPropertySymbols,no=Object.prototype.hasOwnProperty,fo=Object.prototype.propertyIsEnumerable,po=(ci,mi,ei)=>mi in ci?Di(ci,mi,{enumerable:!0,configurable:!0,writable:!0,value:ei}):ci[mi]=ei,io=(ci,mi)=>{for(var ei in mi||(mi={}))no.call(mi,ei)&&po(ci,ei,mi[ei]);if(ki)for(var ei of ki(mi))fo.call(mi,ei)&&po(ci,ei,mi[ei]);return ci},hr=(ci,mi)=>cr(ci,to(mi)),ao=(ci,mi)=>{var ei={};for(var Gi in ci)no.call(ci,Gi)&&mi.indexOf(Gi)<0&&(ei[Gi]=ci[Gi]);if(ci!=null&&ki)for(var Gi of ki(ci))mi.indexOf(Gi)<0&&fo.call(ci,Gi)&&(ei[Gi]=ci[Gi]);return ei};const{Countdown:be}=Lr.default;var Xn=ci=>{var mi=ci,{onChange:ei}=mi,Gi=ao(mi,["onChange"]);const[vr,an]=(0,me.useState)(null);(0,me.useEffect)(()=>{typeof vr=="number"&&vr>=0&&ei(vr)},[vr]);const ln=Zt=>{const pn=Math.floor(Zt/1e3);an(pn)};return me.createElement(be,hr(io({},Gi),{onChange:ln}))}},37808:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Z:function(){return Ve}});var me=Pe(59301);function Ve(ut,nt){const it=(0,me.useRef)();(0,me.useEffect)(()=>{it.current=ut}),(0,me.useEffect)(()=>{function ze(){it.current()}if(nt!==null){let Ue=setInterval(ze,nt);return()=>clearInterval(Ue)}},[nt])}},95024:function(cn,Jt,Pe){"use strict";var me=Pe(59301),Ve=Pe(62957),ut=Pe(38986),nt=Pe(25690),it=Pe(59301),ze=(yt,ot,Me)=>new Promise((Et,_e)=>{var ht=ee=>{try{ne(Me.next(ee))}catch(ue){_e(ue)}},Ee=ee=>{try{ne(Me.throw(ee))}catch(ue){_e(ue)}},ne=ee=>ee.done?Et(ee.value):Promise.resolve(ee.value).then(ht,Ee);ne((Me=Me.apply(yt,ot)).next())});const Ue=({exercise:yt,dispatch:ot,init:Me,haveInit:Et=!1})=>{const _e=(0,nt.useParams)(),[ht,Ee]=(0,me.useState)(!1);let[ne,ee]=(0,me.useState)();const[ue,se]=(0,me.useState)(!1),[de,pe]=(0,me.useState)(!1);(0,me.useEffect)(()=>{yt.actionTabs.key==="\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93"&&ye()},[yt.actionTabs]);function ye(){return ze(this,null,function*(){var Ce,Re;let Oe=yield(0,ut.ZP)(`/api/courses/${_e==null?void 0:_e.coursesId}/exercises/check_exercise_cover.json`,{method:"post",body:{check_ids:yt.actionTabs.selectArrs}});if(((Ce=Oe==null?void 0:Oe.cover_exercises)==null?void 0:Ce.length)>0)Ee(!0),ee((Re=Oe==null?void 0:Oe.cover_exercises)==null?void 0:Re[0]);else{let We=yield(0,ut.ZP)(`/api/courses/${_e==null?void 0:_e.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:yt.actionTabs.selectArrs}});ot({type:"exercise/setActionTabs",payload:{key:""}}),(We==null?void 0:We.status)===0&&(Et&&Me(),Ve.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{nt.history.push("/paperlibrary")}}))}})}return it.createElement("div",null,it.createElement(Ve.default,{open:ht,centered:!0,onCancel:Ce=>ze(void 0,null,function*(){if(Ce.target.outerText==="\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377"){se(!0);let Re=yield(0,ut.ZP)(`/api/courses/${_e==null?void 0:_e.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:yt.actionTabs.selectArrs,update:1}});ot({type:"exercise/setActionTabs",payload:{key:""}}),se(!1),(Re==null?void 0:Re.status)===0&&(Et&&Me(),Ee(!1),Ve.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{nt.history.push("/paperlibrary")}}))}else Ee(!1)}),cancelButtonProps:{loading:ue},okText:"\u5F62\u6210\u65B0\u8BD5\u5377",cancelText:"\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377",okButtonProps:{loading:de},onOk:()=>ze(void 0,null,function*(){pe(!0);let Ce=yield(0,ut.ZP)(`/api/courses/${_e==null?void 0:_e.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:yt.actionTabs.selectArrs}});pe(!1),(Ce==null?void 0:Ce.status)===0&&(Et&&Me(),ot({type:"exercise/setActionTabs",payload:{key:""}}),Ee(!1),Ve.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{nt.history.push("/paperlibrary")}}))}),title:"\u52A0\u5165\u8BD5\u5377\u5E93\u63D0\u793A"},it.createElement("div",null,it.createElement("p",null,"\u8BE5\u8BD5\u5377\u5728\u8BD5\u5377\u5E93\u91CD\u590D\uFF0C\u662F\u5426\u9700\u8981\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377\uFF1F"),it.createElement("div",null,it.createElement("div",null,"\u8BD5\u5377\uFF1A",ne==null?void 0:ne.origin_exercise_nam),it.createElement("div",null,"\u539F\u8BD5\u5377\uFF1A",it.createElement("a",{href:`/paperlibrary/see/${ne==null?void 0:ne.examination_bank_id}?defaultActiveKey=0`,target:"_blank"},ne==null?void 0:ne.examination_bank_name))))))};Jt.Z=(0,nt.connect)(({exercise:yt})=>({exercise:yt}))(Ue)},50242:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Z:function(){return We}});var me=Pe(59301),Ve=Pe(62957),ut=Pe(77019),nt=Pe(5269),it=Pe(82326),ze=Pe(54172),Ue=Pe(99571),yt=Pe(9148),ot=Pe(38986),Me={cstuModal:"cstuModal___aIPVR",removeStyle:"removeStyle___wY4gp",bottom:"bottom___a8tK0",yes:"yes___Zhc4z",no:"no___Ngwsa",Onerow:"Onerow___Q59ve",searchMember:"searchMember___Jj460",searchMemberHeader:"searchMemberHeader___SxfUY"},Et=Pe(25690),_e=Pe(96622),ht=Pe(59301),Ee=Object.defineProperty,ne=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,pe=(Be,Ie,Qe)=>Ie in Be?Ee(Be,Ie,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Be[Ie]=Qe,ye=(Be,Ie)=>{for(var Qe in Ie||(Ie={}))se.call(Ie,Qe)&&pe(Be,Qe,Ie[Qe]);if(ue)for(var Qe of ue(Ie))de.call(Ie,Qe)&&pe(Be,Qe,Ie[Qe]);return Be},Ce=(Be,Ie)=>ne(Be,ee(Ie)),Re=(Be,Ie,Qe)=>new Promise((rt,xt)=>{var gt=Tt=>{try{At(Qe.next(Tt))}catch(Nt){xt(Nt)}},bt=Tt=>{try{At(Qe.throw(Tt))}catch(Nt){xt(Nt)}},At=Tt=>Tt.done?rt(Tt.value):Promise.resolve(Tt.value).then(gt,bt);At((Qe=Qe.apply(Be,Ie)).next())});const Oe=({visible:Be,setVisible:Ie,onK:Qe,selectKeys:rt,selectRows:xt,appointStudent:gt,modalParams:bt,courseId:At})=>{const Tt=(0,Et.useParams)(),[Nt,Ut]=(0,me.useState)(!1),[st,He]=(0,me.useState)(!1),[jt,fn]=(0,me.useState)([]),[Bt,Ft]=(0,me.useState)([]),[It,Vt]=(0,me.useState)([]),[wn,Dt]=(0,me.useState)("all"),[vt,zt]=(0,me.useState)("all");let[En,kn]=(0,me.useState)(!0);const[Ze,Fe]=(0,me.useState)([{value:"all",label:"\u5168\u90E8\u5206\u73ED"}]),[xe,Te]=(0,me.useState)({page:1,limit:1e4,status:null,course_group_id:null,keywords:"",sort_by:null,direction:null}),Ye={selectedRowKeys:Bt,columnWidth:40,hideSelectAll:!0,onSelect:(Sn,en,kt)=>{let nn=!0;for(let hn=0;hn<Bt.length;hn++)(Sn==null?void 0:Sn.user_id)===Bt[hn]&&(Bt==null||Bt.splice(hn,1),It==null||It.splice(hn,1),nn=!1);nn&&(Bt.push(Sn==null?void 0:Sn.user_id),It.push(Sn)),Ft([...Bt]),Vt([...It])},onSelectAll:(Sn,en,kt)=>{if(Sn&&kt.length>0){kt.forEach(nn=>{Bt.push(nn.user_id),It.push(nn)}),Ft([...Bt]),Vt([...It]);return}if(!Sn&&kt.length>0){let nn=[],hn=[];const zn=new Set(kt),fi=new Set(Bt),_n=new Set(It);nn=[...fi].filter(Pi=>[...zn].every(Ci=>Ci.user_id!==Pi)),hn=[..._n].filter(Pi=>[...zn].every(Ci=>Ci.user_id!==Pi.user_id)),Ft([...nn]),Vt([...hn])}}};(0,me.useEffect)(()=>{Be&&rt&&(Ft([...rt]),Vt(xt))},[Be,rt]),(0,me.useEffect)(()=>{Be&&(!gt&&bt?xe.status=bt:xe.status=null,Te(ye({},xe)),tt())},[Be,gt,bt]);const De=[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",ellipsis:!0,fixed:"left",width:100,render:(Sn,en,kt)=>ht.createElement("span",{style:{color:"#333"}},kt+1)},{title:"\u59D3\u540D",dataIndex:"user_name",key:"user_name",ellipsis:!0,render:(Sn,en,kt)=>ht.createElement("span",null,Sn)},{title:"\u5B66\u53F7",dataIndex:"student_id",key:"student_id",ellipsis:!0,render:(Sn,en,kt)=>ht.createElement("span",{style:{color:"#666"}},Sn)},{title:"\u5206\u73ED1",dataIndex:"user_group_name",key:"user_group_name",align:"left",ellipsis:!0,render:(Sn,en)=>ht.createElement("span",null,Sn)},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",key:"score",sorter:!0,render:(Sn,en)=>ht.createElement("span",null,Sn||"--")},{title:"\u72B6\u6001",dataIndex:"status_cn",key:"status_cn",align:"center",ellipsis:!0,render:(Sn,en)=>ht.createElement("span",null,Sn)}].filter(Sn=>bt===1||bt===2?Sn.title!=="\u72B6\u6001":!0),tt=()=>Re(void 0,null,function*(){var Sn,en,kt;He(!0);const nn=yield(0,ot.ZP)(`/api/exercises/${Tt.categoryId||At}/wait_make_up_students.json`,{method:"get",params:Ce(ye({},xe),{keywords:(Sn=xe==null?void 0:xe.keywords)==null?void 0:Sn.trim()})});if(nn.status===0){const hn=((kt=(en=nn==null?void 0:nn.data)==null?void 0:en.all_course_groups)==null?void 0:kt.map(zn=>({value:zn==null?void 0:zn.id,label:zn==null?void 0:zn.name})))||[];Fe([{value:"all",label:"\u5168\u90E8\u5206\u73ED"},...hn]),fn(nn.data)}He(!1)}),Ht=()=>{xe.page=1,xe.status=null,xe.course_group_id=null,xe.keywords="",Dt("all"),zt("all"),Ft([]),Vt([]),Te(ye({},xe)),gt&&Qe(Bt==null?void 0:Bt.length,Bt,It)},$t=()=>{xe.page=1,xe.status=null,xe.course_group_id=null,xe.keywords="",Te(ye({},xe)),Dt("all"),zt("all"),Ft([]),Vt([]),Ie(!1)};return ht.createElement(Ve.default,{centered:!0,className:Me.cstuModal,title:bt===1?"\u7F3A\u8003\u5B66\u751F":bt===2?"\u672A\u53CA\u683C\u5B66\u751F":"\u9009\u62E9\u8865\u8003\u5B66\u751F",open:Be,width:1200,footer:null,onCancel:()=>{$t()}},ht.createElement(ut.Z,{style:{marginBottom:"20px",marginTop:"15px",display:"flex",alignItems:"center",justifyContent:"space-between"}},ht.createElement(ut.Z,null,ht.createElement(nt.Z,null,ht.createElement(it.default,{size:"large",value:wn,style:{width:200,marginRight:20},onChange:Sn=>{Dt(Sn),Sn==="all"?xe.course_group_id=null:xe.course_group_id=Sn,xe.page=1,Te(ye({},xe)),tt()},options:Ze})),gt&&ht.createElement(nt.Z,null,ht.createElement(it.default,{size:"large",value:vt,style:{width:200},onChange:Sn=>{zt(Sn),Sn==="all"?xe.status=null:xe.status=Sn,xe.page=1,Te(ye({},xe)),tt()},options:[{value:"all",label:"\u5168\u90E8\u72B6\u6001"},{value:"1",label:"\u7F3A\u8003"},{value:"2",label:"\u672A\u53CA\u683C"},{value:"3",label:"\u53CA\u683C"}]}))),ht.createElement(nt.Z,null,ht.createElement(yt.t7,{style:{width:300,marginLeft:15},value:xe.keywords,allowClear:!0,onChange:Sn=>{xe.keywords=Sn,xe.page=1,Te(ye({},xe)),tt()},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u8FDB\u884C\u641C\u7D22"}))),ht.createElement(ut.Z,{align:"middle",className:"mb30"},ht.createElement(nt.Z,{span:14},ht.createElement("div",{className:"flexd-table-header"},ht.createElement(ze.default,{pagination:!1,dataSource:[],columns:De,rowSelection:gt?Ye:null,rowKey:Sn=>Sn.user_id})),ht.createElement("div",null,ht.createElement(ze.default,{rowSelection:gt?Ye:null,columns:De,showHeader:!1,style:{minHeight:390},scroll:{y:390},rowKey:Sn=>Sn.user_id,loading:st,dataSource:jt==null?void 0:jt.exercise_users,onChange:(Sn,en,kt)=>{xe.page=Sn==null?void 0:Sn.current,xe.limit=Sn==null?void 0:Sn.pageSize,kt!=null&&kt.order?(xe.sort_by=kt==null?void 0:kt.field,xe.direction=(kt==null?void 0:kt.order)==="ascend"?"asc":"desc"):(xe.sort_by=null,xe.direction=null),Te(ye({},xe)),tt()},pagination:!1}))),ht.createElement(nt.Z,{span:1},ht.createElement("img",{src:_e,style:{marginLeft:10}})),ht.createElement(nt.Z,{span:9,style:{display:"flex",justifyContent:"flex-end"}},ht.createElement("div",{className:Me.searchMember,style:{width:550}},ht.createElement(ut.Z,{className:Me.searchMemberHeader},ht.createElement(nt.Z,{className:"ml30",flex:"100px"},"\u59D3\u540D"),ht.createElement(nt.Z,{flex:"110px"},"\u5B66\u53F7"),ht.createElement(nt.Z,{flex:"120px",style:{marginLeft:5}},"\u5206\u73ED")),ht.createElement("div",{style:{overflow:"auto",height:390}},It==null?void 0:It.map((Sn,en)=>ht.createElement(ut.Z,{key:en,align:"middle",style:{height:48,lineHeight:"48px",paddingLeft:30,borderBottom:"1px solid rgba(48,97,208,0.1)"}},ht.createElement(nt.Z,{flex:"100px"},Sn.user_name),ht.createElement(nt.Z,{flex:"110px"},Sn.student_id),ht.createElement(nt.Z,{flex:"120px",style:{marginLeft:5}},Sn.user_group_name),ht.createElement(nt.Z,{style:{marginLeft:10}},ht.createElement("i",{className:"iconfont icon-shanchudiao current",onClick:()=>{Vt(It.filter(kt=>kt.user_id!=Sn.user_id)),Ft(Bt.filter(kt=>kt!=Sn.user_id))}})))))))),!(bt===1||bt===2)&&ht.createElement("div",{className:Me.bottom},ht.createElement(Ue.ZP,{className:Me.no,onClick:()=>{$t()}},"\u53D6\u6D88"),ht.createElement(Ue.ZP,{loading:Nt,type:"primary",onClick:()=>{Ht()}},"\u786E\u5B9A")))};var We=(0,Et.connect)(({})=>({}))(Oe)},64205:function(cn,Jt,Pe){"use strict";var me=Pe(59301),Ve=Pe(28284),ut=Pe(6767),nt=Pe(62957),it=Pe(29787),ze=Pe(77019),Ue=Pe(47889),yt=Pe(16326),ot=Pe(62673),Me=Pe(61186),Et=Pe.n(Me),_e=Pe(38986),ht=Pe(51257),Ee=Pe(25690),ne=Pe(12327),ee=Pe(71037),ue=Object.defineProperty,se=Object.defineProperties,de=Object.getOwnPropertyDescriptors,pe=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,Re=(xt,gt,bt)=>gt in xt?ue(xt,gt,{enumerable:!0,configurable:!0,writable:!0,value:bt}):xt[gt]=bt,Oe=(xt,gt)=>{for(var bt in gt||(gt={}))ye.call(gt,bt)&&Re(xt,bt,gt[bt]);if(pe)for(var bt of pe(gt))Ce.call(gt,bt)&&Re(xt,bt,gt[bt]);return xt},We=(xt,gt)=>se(xt,de(gt)),Be=(xt,gt,bt)=>new Promise((At,Tt)=>{var Nt=He=>{try{st(bt.next(He))}catch(jt){Tt(jt)}},Ut=He=>{try{st(bt.throw(He))}catch(jt){Tt(jt)}},st=He=>He.done?At(He.value):Promise.resolve(He.value).then(Nt,Ut);st((bt=bt.apply(xt,gt)).next())});function Ie(xt,gt){const bt=[];for(let At=xt;At<gt;At++)bt.push(At);return bt}const Qe=xt=>{let gt=new Date;const bt=Et()(xt).format("HH");if(Et()(xt).isSame(Et()(gt),"day")){const At=Et()(gt).format("HH"),Tt=Et()(gt).format("mm");return{disabledHours:()=>Ie(0,24).splice(1,At*1-1),disabledMinutes:()=>Et()(xt).isSame(Et()(gt),"hour")&&bt<=At?Ie(0,60).splice(0,Tt):Ie(60,60)}}else if(Et()(xt).isSame(Et()(),"day")){const At=Et()().format("HH"),Tt=Et()().format("mm");return{disabledHours:()=>Ie(0,24).splice(0,At),disabledMinutes:()=>bt<=At?Ie(0,Tt):Ie(60,60)}}else return!1},rt=({exercise:xt,dispatch:gt})=>{var bt;const At=(0,Ee.useParams)(),[Tt]=Ve.default.useForm(),[Nt,Ut]=(0,me.useState)(1),[st,He]=(0,me.useState)([]),[jt,fn]=(0,me.useState)(!0),[Bt,Ft]=(0,me.useState)([]),[It,Vt]=(0,me.useState)(!0),[wn,Dt]=(0,me.useState)(!1);(0,me.useEffect)(()=>{xt.actionTabs.key==="\u6279\u91CF\u7ED3\u675F"&&vt()},[xt.actionTabs]);const vt=kn=>Be(void 0,null,function*(){var Ze,Fe;fn(!0);const xe=yield gt({type:"exercise/getEndGroups",payload:We(Oe({},At),{check_ids:[...((Ze=xt.actionTabs.selectArrs)==null?void 0:Ze.map(Ye=>Number(Ye)))||[]]})}),Te=(Fe=xe==null?void 0:xe.course_info)==null?void 0:Fe.map((Ye,De)=>We(Oe({},Ye),{key:Ye.course_group_id,title:Ye.course_group_name,name:Ye.course_group_name,disabled:!!Ye.is_published}));xe&&(xe!=null&&xe.course_info)&&(He([...Te]),Tt.setFieldsValue({end_time:Et()(Et()(new Date((0,ht.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})),fn(!1)}),zt=()=>Be(void 0,null,function*(){var kn,Ze,Fe,xe;const Te=Oe({},Tt.getFieldsValue());if((Bt==null?void 0:Bt.length)<=0&&st.length>0&&!((kn=xt.actionTabs)!=null&&kn.unified_setting)){ut.ZP.info("\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A");return}Dt(!0);const Ye={check_ids:[...((Ze=xt.actionTabs.selectArrs)==null?void 0:Ze.map(tt=>Number(tt)))||[]],group_ids:Bt};It||(Ye.end_time=Et()(Te.end_time).format("YYYY-MM-DD HH:mm")),Ye.group_ids=Bt.map(tt=>tt.course_group_id),(yield(0,_e.ZP)(`/api/courses/${At.coursesId}/exercises/end_exercise.json`,{method:"post",body:Ye})).status===0&&(ut.ZP.success("\u64CD\u4F5C\u6210\u529F"),(0,ht.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u6279\u91CF\u7ED3\u675F"]),gt({type:"exercise/setActionTabs",payload:{}}),(Fe=xt==null?void 0:xt.actionTabs)!=null&&Fe.cb?(xe=xt==null?void 0:xt.actionTabs)==null||xe.cb():gt({type:"classroomList/getClassroomExercisesList",payload:Oe({},xt.actionTabs.params)})),Dt(!1)}),En=()=>{Ut(1),He([]),Ft([]),Vt(!0)};return me.createElement(nt.default,{centered:!0,title:"\u7ED3\u675F\u8003\u8BD5",open:xt.actionTabs.key==="\u6279\u91CF\u7ED3\u675F",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:zt,width:680,confirmLoading:wn||jt,onCancel:()=>{En(),gt({type:"exercise/setActionTabs",payload:{}})}},me.createElement(it.Z,{spinning:jt},st&&me.createElement(Ve.default,{form:Tt},me.createElement("div",{style:{color:"#333333",display:"flex"},className:"font14 mb10"},me.createElement("img",{style:{marginRight:5,objectFit:"contain"},src:ne.Z}),"\u8003\u8BD5\u65F6\u95F4\u7ED3\u675F\u540E\uFF0C\u5B66\u751F\u5C06\u4E0D\u80FD\u518D\u7B54\u9898\u3002"),me.createElement(ze.Z,{className:"mt20 mb10"},me.createElement("span",{className:"mr10"},me.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u7ED3\u675F\u65F6\u95F4"),me.createElement(Ue.ZP.Group,{value:It,onChange:kn=>{Vt(kn.target.value),Ft([])}},me.createElement(Ue.ZP,{value:!0},"\u7ACB\u5373\u7ED3\u675F"),me.createElement(Ue.ZP,{value:!1},"\u5B9A\u65F6\u7ED3\u675F")),me.createElement(Ve.default.Item,{name:"end_time",style:{marginTop:-3,visibility:It?"hidden":"visible"}},me.createElement(yt.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Et()((0,ht.U6)(),"HH:mm")},disabledDate:kn=>kn&&kn<Et()().subtract(0,"days"),disabledTime:Qe,format:"YYYY-MM-DD HH:mm",allowClear:!1}))),st.length>0&&!((bt=xt.actionTabs)!=null&&bt.unified_setting)&&me.createElement(ze.Z,{style:{marginBottom:"10px"}},me.createElement("span",{className:"mr10"},me.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u9009\u62E9\u73ED\u7EA7:"),me.createElement("div",null,st.length>0&&me.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},me.createElement("span",{style:{flex:1}},me.createElement(ot.default,{checked:Bt.length===st.length,onChange:kn=>{Bt.length===st.length?Ft([]):Ft(st)}},"\u5168\u9009")," "),me.createElement("span",{style:{width:16}}),me.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",Bt.length||0,"\u4E2A\u5206\u73ED")),me.createElement(ee.Z,{data:st,selectedRowKeys:Bt,setSelectedRowKeys:Ft}))))))};Jt.Z=(0,Ee.connect)(({exercise:xt})=>({exercise:xt}))(rt)},2773:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Z:function(){return fn}});var me=Pe(59301),Ve=Pe(28284),ut=Pe(6767),nt=Pe(62957),it=Pe(29787),ze=Pe(77019),Ue=Pe(47889),yt=Pe(71051),ot=Pe(16326),Me=Pe(71411),Et=Pe(62673),_e=Pe(99571),ht=Pe(61186),Ee=Pe.n(ht),ne=Pe(38986),ee=Pe(51257),ue=Pe(25690),se=Pe(81722),de=Pe(12327),pe=Pe(71037),ye=Pe(50242),Ce={contentInterval:"contentInterval___wAfD8",numberInput:"numberInput___R9kLf",minorRuleText:"minorRuleText___LjpSg",failedList:"failedList___KYTHd",name:"name___MqNtz",publish:"publish___TPl6Z"},Re=Pe(3039),Oe=Pe(75736),We=Pe(16107),Be=Pe(59301),Ie=Object.defineProperty,Qe=Object.defineProperties,rt=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,At=(Bt,Ft,It)=>Ft in Bt?Ie(Bt,Ft,{enumerable:!0,configurable:!0,writable:!0,value:It}):Bt[Ft]=It,Tt=(Bt,Ft)=>{for(var It in Ft||(Ft={}))gt.call(Ft,It)&&At(Bt,It,Ft[It]);if(xt)for(var It of xt(Ft))bt.call(Ft,It)&&At(Bt,It,Ft[It]);return Bt},Nt=(Bt,Ft)=>Qe(Bt,rt(Ft)),Ut=(Bt,Ft,It)=>new Promise((Vt,wn)=>{var Dt=En=>{try{zt(It.next(En))}catch(kn){wn(kn)}},vt=En=>{try{zt(It.throw(En))}catch(kn){wn(kn)}},zt=En=>En.done?Vt(En.value):Promise.resolve(En.value).then(Dt,vt);zt((It=It.apply(Bt,Ft)).next())});function st(Bt,Ft){const It=[];for(let Vt=Bt;Vt<Ft;Vt++)It.push(Vt);return It}const He=Bt=>{let Ft=new Date;const It=Ee()(Bt).format("HH");if(Ee()(Bt).isSame(Ee()(Ft),"day")){const Vt=Ee()(Ft).format("HH"),wn=Ee()(Ft).format("mm");return{disabledHours:()=>st(0,24).splice(1,Vt*1-1),disabledMinutes:()=>(console.log("\u7981\u6B62\u65F6\u95F4\uFF1A",It,Vt),Ee()(Bt).isSame(Ee()(Ft),"hour")&&It<=Vt?st(0,60).splice(0,wn):st(60,60))}}else if(Ee()(Bt).isSame(Ee()(),"day")){const Vt=Ee()().format("HH"),wn=Ee()().format("mm");return{disabledHours:()=>st(0,24).splice(0,Vt),disabledMinutes:()=>It<=Vt?st(0,wn):st(60,60)}}else return!1},jt=({exercise:Bt,dispatch:Ft})=>{var It,Vt,wn,Dt,vt,zt,En,kn,Ze,Fe,xe,Te,Ye,De,tt,Ht,$t,Sn,en,kt,nn,hn,zn;const fi=(0,ue.useParams)(),[_n]=Ve.default.useForm(),[Pi,Ci]=(0,me.useState)(1),[Yn,Ei]=(0,me.useState)([]),[pi,ji]=(0,me.useState)(!0),[Qi,lr]=(0,me.useState)([]),[Lr,Di]=(0,me.useState)(!0),[cr,to]=(0,me.useState)(!1),{workSetting:ki}=Bt,[no,fo]=(0,me.useState)(!1),[po,io]=(0,me.useState)([]),[hr,ao]=(0,me.useState)([]),[be,Un]=(0,me.useState)(!1),[Xn,ci]=(0,me.useState)(!1),[mi,ei]=(0,me.useState)(!1),[Gi,vr]=(0,me.useState)(null),[an,ln]=(0,me.useState)(1),[Zt,pn]=(0,me.useState)({}),[zi,Ti]=(0,me.useState)({}),[dr,un]=(0,me.useState)(!1),[In,Vi]=(0,me.useState)(!1),[Fr,ii]=(0,me.useState)(!1),[lt,Rt]=(0,me.useState)([]);(0,me.useEffect)(()=>{if(Bt.actionTabs.key==="\u6279\u91CF\u53D1\u5E03"){const{selectArrsAll:Bn=[],type:Ot}=Bt.actionTabs||{},qn=Bn.filter(Ji=>![100,120,150].includes(Number(Ji.total_score)));qn.length?(ii(Ot===1?"multiple":"single"),Rt(qn.map(Ji=>Nt(Tt({},Ji),{name:Ji.exercise_name})))):Vi(!0)}},[(It=Bt==null?void 0:Bt.actionTabs)==null?void 0:It.key]),console.log(Fr,"visible"),(0,me.useEffect)(()=>{var Bn;if(Bt.actionTabs.key==="\u6279\u91CF\u53D1\u5E03"&&(ti(),Yi(),Bt.actionTabs.type===2)){const Ot=(Bn=Bt.actionTabs)==null?void 0:Bn.unified_setting;Di(Ot)}},[Bt.actionTabs]),(0,me.useEffect)(()=>{var Bn,Ot,qn,Ji,$i,Pn,Mi;(Bn=ki==null?void 0:ki.exercise)!=null&&Bn.publish_time&&_n.setFieldsValue({publish_time:Ee()((Ot=ki==null?void 0:ki.exercise)==null?void 0:Ot.publish_time)}),(qn=ki==null?void 0:ki.exercise)!=null&&qn.end_time&&_n.setFieldsValue({end_time:Ee()((Ji=ki==null?void 0:ki.exercise)==null?void 0:Ji.end_time)}),_n.setFieldsValue({exercise_type:($i=ki==null?void 0:ki.exercise)==null?void 0:$i.exercise_type,simulate_exercise_num:(Pn=ki==null?void 0:ki.exercise)==null?void 0:Pn.simulate_exercise_num}),ln((Mi=ki==null?void 0:ki.exercise)==null?void 0:Mi.exercise_type)},[Bt]);const ai=Bn=>{var Ot;const qn=_n.getFieldValue("publish_time");if(!qn||(Ot=ki==null?void 0:ki.exercise)!=null&&Ot.publish_time)return;let Ji;Bn===1?Ji=Ee()(qn).add(120,"minutes"):Ji=Ee()(qn).add(7,"days"),_n.setFieldsValue({end_time:Ji})},ti=Bn=>Ut(void 0,null,function*(){var Ot,qn;ji(!0);const Ji=yield(0,se.N3)({coursesId:fi.coursesId,check_ids:[...((Ot=Bt.actionTabs.selectArrs)==null?void 0:Ot.map(Pn=>Number(Pn)))||[]]});console.log(Ji,"res");const $i=((qn=Ji==null?void 0:Ji.course_info)==null?void 0:qn.map((Pn,Mi)=>Nt(Tt({},Pn),{key:Pn.course_group_id,title:Pn.course_group_name,name:Pn.course_group_name,disabled:!!Pn.is_published})))||[];if((Ji==null?void 0:Ji.status)!==-1){Ei([...$i]);const Pn=Ee()();_n.setFieldsValue({publish_time:Pn}),(_n.getFieldValue("exercise_type")||1)===1?_n.setFieldsValue({end_time:Ee()(Pn).add(120,"minutes")}):_n.setFieldsValue({end_time:Ee()(Pn).add(7,"days")})}ji(!1)});(0,me.useEffect)(()=>{var Bn,Ot,qn,Ji,$i,Pn;if((Bn=ki==null?void 0:ki.exercise)!=null&&Bn.is_appoint_user){const Mi=((qn=(Ot=ki==null?void 0:ki.exercise)==null?void 0:Ot.all_exercise_users)==null?void 0:qn.map(Er=>Er.user_id))||[];io([...Mi])}Un((Ji=ki==null?void 0:ki.exercise)==null?void 0:Ji.is_appoint_user),ci(($i=ki==null?void 0:ki.exercise)==null?void 0:$i.is_miss_exam_user),ei((Pn=ki==null?void 0:ki.exercise)==null?void 0:Pn.is_no_passing_user)},[ki]),(0,me.useEffect)(()=>{var Bn,Ot,qn,Ji,$i,Pn,Mi,Er;(Ot=(Bn=Bt==null?void 0:Bt.actionTabs)==null?void 0:Bn.selectArrs)!=null&&Ot[0]&&Bt.actionTabs.key==="\u6279\u91CF\u53D1\u5E03"&&Ft({type:"exercise/getWorkSetting",payload:{categoryId:(Ji=(qn=Bt==null?void 0:Bt.actionTabs)==null?void 0:qn.selectArrs)==null?void 0:Ji[0],category:(Pn=($i=Bt==null?void 0:Bt.actionTabs)==null?void 0:$i.selectArrs)==null?void 0:Pn[0],coursesId:(Er=(Mi=Bt==null?void 0:Bt.actionTabs)==null?void 0:Mi.params)==null?void 0:Er.id}})},[(Vt=Bt==null?void 0:Bt.actionTabs)==null?void 0:Vt.selectArrs]);const tn=()=>Ut(void 0,null,function*(){var Bn,Ot,qn,Ji,$i,Pn,Mi;const Er=Tt({},_n.getFieldsValue()),Hr=Ee()(Ee()(Er.publish_time).format("YYYY-MM-DD HH:mm")).valueOf(),wo=Ee()(Ee()(Er.end_time).format("YYYY-MM-DD HH:mm")).valueOf();if(console.log(Hr,Hr,33),wo<=Hr){ut.ZP.info("\u7ED3\u675F\u65F6\u95F4\u4E0D\u5141\u8BB8\u5C0F\u4E8E\u7B49\u4E8E\u5F00\u59CB\u65F6\u95F4");return}if((Qi==null?void 0:Qi.length)<=0&&!Lr&&Yn.length>0&&!((Bn=ki==null?void 0:ki.exercise)!=null&&Bn.is_make_up_exercise)){ut.ZP.info("\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A");return}const Kt=Yn.map(Kn=>Kn.key),Oi={check_ids:[...((Ot=Bt.actionTabs.selectArrs)==null?void 0:Ot.map(Kn=>Number(Kn)))||[]],end_time:Ee()(Er.end_time).format("YYYY-MM-DD HH:mm"),publish_time:Ee()(Er.publish_time).format("YYYY-MM-DD HH:mm"),group_ids:Qi.map(Kn=>Kn.course_group_id),unified_setting:!Qi.length,exercise_type:Er.exercise_type,simulate_exercise_num:Er.simulate_exercise_num};if(((qn=Bt.actionTabs.selectArrsAll)==null?void 0:qn.length)>0&&Bt.actionTabs.type===1&&(Oi.check_ids=[...(($i=(Ji=Bt.actionTabs.selectArrsAll)==null?void 0:Ji.filter(Kn=>!Kn.high_resources_consume||Kn.high_resources_consume_permission))==null?void 0:$i.map(Kn=>Number(Kn==null?void 0:Kn.id)))||[]]),(Pn=ki==null?void 0:ki.exercise)!=null&&Pn.is_make_up_exercise){if(be&&po.length<=0||!be&&!(Xn||mi)){ut.ZP.error("\u8BF7\u9009\u62E9\u8865\u8003\u5B66\u751F");return}Oi.is_appoint_user=be,Oi.is_miss_exam_user=Xn,Oi.is_no_passing_user=mi,be?Oi.make_up_exercise_users=po.map(Kn=>({user_id:Kn})):Oi.make_up_exercise_user=[]}let{is_locked:Nr,open_camera:_i,screen_open:Jr,login_restrict:Zr,ip_bind:Xr,ip_limit:Rr,is_random:Gr,id:oo,identity_verify:An,open_phone_video_recording:ho}=ki==null?void 0:ki.exercise;if(Bt.actionTabs.key!=="\u6279\u91CF\u53D1\u5E03"||(Nr||_i||Jr||Zr||Xr||Rr=="pub"||Rr=="inner"||An||ho)&&Er.exercise_type==2){if(Vi(!1),Ft({type:"exercise/setActionTabs",payload:{}}),Bt.actionTabs.type==2){let Kn=nt.default.confirm({width:666,centered:!0,okText:"\u7ACB\u5373\u8C03\u6574",cancelText:"\u4E0D\u9700\u8981",title:"\u63D0\u793A",icon:null,content:Be.createElement("div",null,"\u5F53\u524D\u8003\u8BD5\u6A21\u5F0F\u4E3A\u201C\u6A21\u62DF\u8003\u8BD5\u201D\uFF0C\u60A8\u5DF2\u5F00\u542F",Be.createElement("span",{style:{color:"#FA6400"}}," ",(0,ee.hi)(ki==null?void 0:ki.exercise)," "),"\u9632\u4F5C\u5F0A\u89C4\u5219\uFF0C\u53EF\u80FD\u4F1A\u5F71\u54CD\u5B66\u751F\u8FDB\u884C\u91CD\u590D\u8003\u8BD5\u3002\u662F\u5426\u9700\u8981\u8FDB\u884C\u8C03\u6574\uFF1F"),onOk:()=>Ut(void 0,null,function*(){var zr;un(!0);let Tr=yield(0,Oe.Tr)({exercise_ids:[...((zr=Bt.actionTabs.selectArrs)==null?void 0:zr.map(Co=>Number(Co)))||[]],course_id:fi.coursesId,type:"exercise"});if((Tr==null?void 0:Tr.student_count)===0){if((yield Ri(Oi))&&Bt.actionTabs.isRouter){Kn.destroy(),ue.history.push(`/classrooms/${fi.coursesId}/exercise/${oo}/detail?random=${Gr}&tabs=3&childrenTabs=2`);return}Ft({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574tabs\u9009\u4E2D"}})}else Ti(Oi),pn(Tr)}),onCancel:()=>{Kn.destroy(),un(!1),Ri(Oi)}})}else{let Kn=nt.default.info({width:580,centered:!0,okText:"\u6211\u77E5\u9053\u4E86",title:"\u63D0\u793A",icon:null,content:Be.createElement("div",null,"\u6A21\u62DF\u8003\u8BD5\u5F00\u542F\u9632\u4F5C\u5F0A\u89C4\u5219\u53EF\u80FD\u4F1A\u5F71\u54CD\u5B66\u751F\u8FDB\u884C\u91CD\u590D\u8003\u8BD5\uFF0C\u53EF\u6839\u636E\u8003\u8BD5\u9700\u8981\u8FDB\u884C\u8C03\u6574\u3002"),onOk:()=>Ut(void 0,null,function*(){var zr;un(!0);let Tr=yield(0,Oe.Tr)({exercise_ids:[...((zr=Bt.actionTabs.selectArrs)==null?void 0:zr.map(Co=>Number(Co)))||[]],course_id:fi.coursesId,type:"exercise"});if((Tr==null?void 0:Tr.student_count)===0){if((yield Ri(Oi))&&Bt.actionTabs.isRouter){ue.history.push(`/classrooms/${fi.coursesId}/exercise/${oo}/detail?random=${Gr}&tabs=3&childrenTabs=2`);return}Ft({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574tabs\u9009\u4E2D"}})}else Ti(Oi),pn(Tr)})})}return}let Fn=yield(0,Oe.Tr)({exercise_ids:[...((Mi=Bt.actionTabs.selectArrs)==null?void 0:Mi.map(Kn=>Number(Kn)))||[]],course_id:fi.coursesId,type:"exercise"});(Fn==null?void 0:Fn.student_count)===0?Ri(Oi):(Ti(Oi),pn(Fn))}),si=()=>{var Bn;let Ot=[...(Bn=Bt.actionTabs.selectArrsAll)==null?void 0:Bn.filter(qn=>qn.high_resources_consume&&!qn.high_resources_consume_permission)];(Ot==null?void 0:Ot.length)>0&&Bt.actionTabs.type===1&&nt.default.confirm({centered:!0,icon:null,footer:null,width:560,title:"\u63D0\u793A",closable:!0,content:Be.createElement("div",null,Be.createElement("div",{className:Ce.tipcontent},Be.createElement("div",{style:{color:"#191919"}},"\u60A8\u6709 ",Ot==null?void 0:Ot.length," \u4E2A\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u53D1\u5E03\u5931\u8D25\uFF0C\u8BF7\u5355\u72EC\u8FDB\u884C\u53D1\u5E03\u3002"),Be.createElement("div",{className:"mt20 mb20"},Ot==null?void 0:Ot.map(qn=>Be.createElement("div",{className:Ce.failedList,key:qn.id},Be.createElement("div",{className:Ce.name},qn==null?void 0:qn.exercise_name),Be.createElement("div",{className:Ce.publish,onClick:()=>{(0,ee.xg)(`/classrooms/${fi.coursesId}/exercise/${qn.id}/detail?random=${qn.is_random}`)}},"\u53D1\u5E03"))))))})},Ri=Bn=>Ut(void 0,null,function*(){var Ot,qn,Ji;if(Bt.actionTabs.type===1){let Mi=[...(Ot=Bt.actionTabs.selectArrsAll)==null?void 0:Ot.filter(Er=>Er.high_resources_consume&&!Er.high_resources_consume_permission)];if((Mi==null?void 0:Mi.length)==Bt.actionTabs.selectArrsAll.length){Vi(!1),Ft({type:"exercise/setActionTabs",payload:{}}),si();return}}let $i=!1;return to(!0),(yield(0,ne.ZP)(`/api/courses/${fi.coursesId}/exercises/publish.json`,{method:"post",body:Bn})).status===0&&((0,ee.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u7ACB\u5373\u53D1\u5E03"]),Yi(),ut.ZP.success("\u53D1\u5E03\u6210\u529F"),Vi(!1),Ft({type:"exercise/setActionTabs",payload:{}}),(qn=Bt==null?void 0:Bt.actionTabs)!=null&&qn.cb?(Ji=Bt==null?void 0:Bt.actionTabs)==null||Ji.cb():Ft({type:"classroomList/getClassroomExercisesList",payload:Tt({},Bt.actionTabs.params)}),$i=!0,Bt.actionTabs.type===1&&si()),to(!1),$i}),Yi=()=>{Ci(1),Ei([]),lr([])},tr=(Bn,Ot,qn)=>{Bn<=0?ut.ZP.info("\u8BF7\u9009\u62E9\u8865\u8003\u5B66\u751F"):(io(Ot),ao(qn),fo(!1))};return Be.createElement(me.Fragment,null,Be.createElement(nt.default,{centered:!0,title:"\u53D1\u5E03\u8003\u8BD5",open:In,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",width:660,onOk:tn,confirmLoading:cr||pi,onCancel:()=>{Yi(),Vi(!1),Ft({type:"exercise/setActionTabs",payload:{}})}},Be.createElement(it.Z,{spinning:pi},Yn&&Be.createElement(Ve.default,{form:_n},!!((wn=Bt==null?void 0:Bt.actionTabs)!=null&&wn.disabled)&&Be.createElement("div",{style:{color:"#333333",display:"flex"},className:"font14 mb10"},Be.createElement("img",{style:{marginRight:5,objectFit:"contain"},src:de.Z}),"\u5DF2\u7ECF\u53D1\u5E03\u8FC7\u8003\u8BD5\u7684\u8BD5\u5377\u4E0D\u53EF\u4EE5\u7EDF\u4E00\u53D1\u5E03\u3002"),!((Dt=ki==null?void 0:ki.exercise)!=null&&Dt.is_make_up_exercise)&&Be.createElement(Be.Fragment,null,Be.createElement(ze.Z,null,Be.createElement("span",{className:"mr10",style:{lineHeight:"32px"}},Be.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u8003\u8BD5\u6A21\u5F0F"),Be.createElement(Ve.default.Item,{name:"exercise_type"},Be.createElement(Ue.ZP.Group,{disabled:((vt=ki==null?void 0:ki.exercise)==null?void 0:vt.exercise_status)>1,onChange:Bn=>{ln(Bn.target.value),ai(Bn.target.value)}},Be.createElement(Ue.ZP,{value:1},"\u6B63\u5F0F\u8003\u8BD5"),Be.createElement(Ue.ZP,{value:2},"\u6A21\u62DF\u8003\u8BD5")))),an==2&&Be.createElement(ze.Z,{className:`${Ce.contentInterval}`},Be.createElement("span",{className:`${Ce.minorRuleText}`,style:{marginLeft:50}},"\u6BCF\u4E2A\u5B66\u751F\u5141\u8BB8\u8FDB\u884C\u8003\u8BD5"),Be.createElement(Ve.default.Item,{name:"simulate_exercise_num"},Be.createElement(yt.Z,{className:Ce.numberInput,style:{width:145},precision:0,size:"middle",disabled:((zt=ki==null?void 0:ki.exercise)==null?void 0:zt.exercise_status)>1,min:1,max:999})),Be.createElement("span",null,"\u6B21",Be.createElement("span",{style:{color:"#999999"}},"\uFF08\u53EF\u8BBE\u7F6E1~999\u6B21\uFF09")))),Be.createElement(ze.Z,null,Be.createElement("span",{className:"mr10 mt5"},Be.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u8003\u8BD5\u65F6\u95F4"),Be.createElement(Ve.default.Item,{name:"publish_time"},Be.createElement(ot.default,{style:{width:170},disabledDate:Bn=>Bn&&Bn<=Ee()().subtract(0,"days"),disabledTime:He,placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ee()((0,ee.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})),Be.createElement("span",{className:"mt5 ml5 mr5"},"\u5230"),Be.createElement(Ve.default.Item,{name:"end_time"},Be.createElement(ot.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ee()((0,ee.U6)(),"HH:mm")},disabledDate:Bn=>Bn&&Bn<Ee()().subtract(0,"days"),disabledTime:He,format:"YYYY-MM-DD HH:mm",allowClear:!1}))),((En=ki==null?void 0:ki.exercise)==null?void 0:En.is_make_up_exercise)&&Be.createElement(Be.Fragment,null,Be.createElement(ze.Z,null,Be.createElement("span",{style:{marginRight:"20px",fontSize:"14px",color:"3333",fontWeight:600}},"\u5F85\u8865\u8003\u5B66\u751F"),Be.createElement(Me.Z,{checked:be,onChange:(Bn,Ot)=>{var qn,Ji,$i,Pn,Mi;if(Un(Bn),Bn)if((qn=ki==null?void 0:ki.exercise)!=null&&qn.is_appoint_user){const Er=($i=(Ji=ki==null?void 0:ki.exercise)==null?void 0:Ji.all_exercise_users)==null?void 0:$i.map(Hr=>Hr.user_id);io([...Er])}else io([]),ci(!1),ei(!1);else ci((Pn=ki==null?void 0:ki.exercise)==null?void 0:Pn.is_miss_exam_user),ei((Mi=ki==null?void 0:ki.exercise)==null?void 0:Mi.is_no_passing_user)},disabled:((kn=ki==null?void 0:ki.exercise)==null?void 0:kn.exercise_status)!==1}),Be.createElement("span",{style:{marginLeft:"10px",fontSize:"14px",color:"3333"}},"\u6307\u5B9A\u5B66\u751F")),!be&&Be.createElement(ze.Z,{className:"mt20",style:{paddingLeft:"90px"},align:"middle"},Be.createElement(Et.default,{checked:Xn,disabled:((Ze=ki==null?void 0:ki.exercise)==null?void 0:Ze.exercise_status)!==1||((Fe=ki==null?void 0:ki.exercise)==null?void 0:Fe.miss_exam_count)<=0,onChange:Bn=>{ci(Bn.target.checked)}},Be.createElement("span",{style:{fontSize:"14px",color:"#333"}},"\u7F3A\u8003")),Be.createElement("span",{style:{color:"#0152d9",cursor:"pointer",marginRight:"60px"},onClick:()=>{vr(1),Un(!1),fo(!0)}},"\uFF08",`${(xe=ki==null?void 0:ki.exercise)==null?void 0:xe.miss_exam_count}\u4EBA`,"\uFF09"),Be.createElement(Et.default,{checked:mi,disabled:((Te=ki==null?void 0:ki.exercise)==null?void 0:Te.exercise_status)!==1||((Ye=ki==null?void 0:ki.exercise)==null?void 0:Ye.no_passing_count)<=0,onChange:Bn=>{ei(Bn.target.checked)}},Be.createElement("span",{style:{fontSize:"14px",color:"#333"}},"\u672A\u53CA\u683C")),Be.createElement("span",{style:{color:"#0152d9",cursor:"pointer"},onClick:()=>{vr(2),Un(!1),fo(!0)}},"\uFF08",`${(De=ki==null?void 0:ki.exercise)==null?void 0:De.no_passing_count}\u4EBA`,"\uFF09")),be&&Be.createElement(ze.Z,{className:"mt20",style:{paddingLeft:"90px"}},Be.createElement(_e.ZP,{type:"primary",ghost:!0,disabled:((tt=ki==null?void 0:ki.exercise)==null?void 0:tt.exercise_status)!==1,onClick:()=>{fo(!0),vr(void 0)}},Be.createElement("span",null,Be.createElement("i",{className:"iconfont icon-tianjia4 mr5",style:{fontSize:"14px"}})),Be.createElement("span",null,"\u9009\u62E9\u5B66\u751F")),Be.createElement("span",{style:{color:"#333",display:"inline-block",height:"32px",lineHeight:"32px",marginLeft:"10px"}},"\uFF08\u5DF2\u9009 ",`${po.length||0} \u4EBA`,"\uFF09"))),Bt.actionTabs.type===2&&!((Ht=ki==null?void 0:ki.exercise)!=null&&Ht.is_make_up_exercise)&&Be.createElement(ze.Z,{style:{marginBottom:"10px"}},Be.createElement("span",{className:"mr10"},Be.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u9009\u62E9\u73ED\u7EA7"),Be.createElement(Ue.ZP.Group,{value:Lr,onChange:Bn=>{Di(Bn.target.value),lr([])}},Be.createElement(Ue.ZP,{disabled:!!(($t=Bt==null?void 0:Bt.actionTabs)!=null&&$t.disabled)||Yn.some(Bn=>Bn==null?void 0:Bn.is_published)||!((Sn=Bt==null?void 0:Bt.actionTabs)!=null&&Sn.manage_all_group),value:!0},"\u7EDF\u4E00\u53D1\u5E03"),Be.createElement(Ue.ZP,{disabled:Yn.length<=0,value:!1},"\u5206\u73ED\u53D1\u5E03"))),Yn.length<=0&&Bt.actionTabs.type===2&&!((en=ki==null?void 0:ki.exercise)!=null&&en.is_make_up_exercise)&&Be.createElement("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"}},'\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03"'),(Bt.actionTabs.type===1||!Lr)&&!((kt=ki==null?void 0:ki.exercise)!=null&&kt.is_make_up_exercise)&&Yn.length>0&&Be.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},Be.createElement("span",{style:{flex:1}},Be.createElement(Et.default,{checked:Qi.length===Yn.length,onChange:Bn=>{Qi.length===Yn.length?lr([]):lr(Yn)}},"\u5168\u9009")),Be.createElement("span",{style:{width:16}}),Be.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",Qi.length||0,"\u4E2A\u5206\u73ED")),(Bt.actionTabs.type===1||!Lr)&&!((nn=ki==null?void 0:ki.exercise)!=null&&nn.is_make_up_exercise)&&Yn.length>0&&Be.createElement(pe.Z,{data:Yn,selectedRowKeys:Qi,setSelectedRowKeys:lr})),Be.createElement(ye.Z,{visible:no,setVisible:fo,onK:tr,selectKeys:po,selectRows:hr,appointStudent:be,modalParams:Gi,courseId:fi.categoryId||((zn=(hn=Bt==null?void 0:Bt.actionTabs)==null?void 0:hn.selectArrs)==null?void 0:zn[0])})),Be.createElement(Re.Z,{resdata:Zt,type:"exercisepush",okloading:cr,oktext:(Zt==null?void 0:Zt.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Bn=>Ut(void 0,null,function*(){var Ot,qn,Ji;to(!0);let $i=yield(0,ne.ZP)(`/api/courses/${fi.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"exercise",ids:[...((Ot=Bt.actionTabs.selectArrs)==null?void 0:Ot.map(Pn=>Number(Pn)))||[]]}});if(to(!1),($i==null?void 0:$i.status)===0)if(dr){let Pn=yield Ri(zi);if(nt.default.destroyAll(),Pn&&Bt.actionTabs.isRouter){ue.history.push(`/classrooms/${fi.coursesId}/exercise/${(qn=ki==null?void 0:ki.exercise)==null?void 0:qn.id}/detail?random=${(Ji=ki==null?void 0:ki.exercise)==null?void 0:Ji.is_random}&tabs=3&childrenTabs=2`);return}Ft({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574tabs\u9009\u4E2D"}})}else Ri(zi)})})),Be.createElement(We.Z,{text:"\u662F\u5426\u7EE7\u7EED\u5728\u6559\u5B66\u8BFE\u5802\u4E2D\u53D1\u5E03\uFF1F",okText:"\u786E\u8BA4\u53D1\u5E03",visible:Fr,dataSource:lt,onSuccess:()=>{ii(!1),Vi(!0)},onClose:()=>{ii(!1),Yi(),Ft({type:"exercise/setActionTabs",payload:{}})}}))};var fn=(0,ue.connect)(({exercise:Bt})=>({exercise:Bt}))(jt)},71037:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Z:function(){return Me}});var me=Pe(59301),Ve=Pe(37568),ut=Pe(62673),nt=Pe(77019),it={leftdiv:"leftdiv___iuhY9",listClass:"listClass___o5N53",spantitle:"spantitle___KVMSL",rightdiv:"rightdiv___f2zZr"},ze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",Ue=Pe(28426),yt=(Et,_e,ht)=>new Promise((Ee,ne)=>{var ee=de=>{try{se(ht.next(de))}catch(pe){ne(pe)}},ue=de=>{try{se(ht.throw(de))}catch(pe){ne(pe)}},se=de=>de.done?Ee(de.value):Promise.resolve(de.value).then(ee,ue);se((ht=ht.apply(Et,_e)).next())}),Me=({data:Et,value:_e=[],handleChangePage:ht,setSelectedRowKeys:Ee,selectedRowKeys:ne,onChange:ee=()=>{}})=>{const[ue,se]=(0,me.useState)([]),[de,pe]=(0,me.useState)([]),[ye,Ce]=(0,me.useState)([]);let[Re,Oe]=(0,me.useState)(1),[We,Be]=(0,me.useState)();return(0,me.useEffect)(()=>{se(Et),pe([]),Ce([])},[Et]),(0,me.useEffect)(()=>{Ee&&(pe(ne),Ce(ne))},[ne]),me.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},me.createElement("div",{className:it.leftdiv},me.createElement(Ve.default.Search,{size:"middle",onChange:Ie=>yt(void 0,null,function*(){se(Et.filter(Qe=>{var rt;return(rt=Qe==null?void 0:Qe.name)==null?void 0:rt.includes(Ie.target.value)}))}),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),ue.length===0&&me.createElement(Ue.Z,{styles:{margin:"70px auto"},customText:"\u6682\u65E0\u5206\u73ED"}),me.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},me.createElement(ut.default.Group,{value:de.map(Ie=>`${Ie.course_group_id}`),onChange:Ie=>{Ee(ue.filter(Qe=>Ie.includes(`${Qe.course_group_id}`)))},style:{marginTop:"10px",flexDirection:"column"}},ue.map((Ie,Qe)=>me.createElement(nt.Z,{key:Ie.course_group_id,style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200}},me.createElement(ut.default,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:Ie.is_published,value:`${Ie.course_group_id}`},me.createElement("div",{className:it.listClass},me.createElement("span",{className:it.spantitle,style:{width:Ie.is_published?"108px":"170px"}},Ie.name),Ie.is_published&&me.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03")))))))),me.createElement("div",{className:it.rightdiv},me.createElement(Ve.default.Search,{onChange:Ie=>{Ce(de.filter(Qe=>Qe.name.includes(Ie.target.value)))},size:"middle",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),ye.length===0&&me.createElement(Ue.Z,{styles:{margin:"70px auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),ye.length>0&&me.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},me.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},ye.map((Ie,Qe)=>me.createElement(nt.Z,{justify:"space-between",style:{marginTop:"10px"},key:Ie.course_group_id},me.createElement("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"}},Ie.name),me.createElement("img",{src:ze,style:{cursor:"pointer",height:"16px",marginRight:17},onClick:()=>{Ee(de.filter(rt=>`${rt.course_group_name}`!=`${Ie.course_group_name}`))}})))))))}},74255:function(cn,Jt,Pe){"use strict";var me=Pe(59301),Ve=Pe(11938),ut=Pe(71051),nt=Pe(28284),it=Pe(62957),ze=Pe(29787),Ue=Pe(54172),yt=Pe(37568),ot=Pe(77019),Me=Pe(5269),Et=Pe(99571),_e=Pe(81722),ht=Pe(61186),Ee=Pe.n(ht),ne=Pe(25690),ee=Pe(51257),ue=Pe(6383),se=Pe(48790),de=Pe(45937),pe=Pe(59301),ye=(We,Be,Ie)=>new Promise((Qe,rt)=>{var xt=At=>{try{bt(Ie.next(At))}catch(Tt){rt(Tt)}},gt=At=>{try{bt(Ie.throw(At))}catch(Tt){rt(Tt)}},bt=At=>At.done?Qe(At.value):Promise.resolve(At.value).then(xt,gt);bt((Ie=Ie.apply(We,Be)).next())});const{Countdown:Ce}=Ve.default,Re=({value:We,onChange:Be,MaxMinutes:Ie})=>pe.createElement(pe.Fragment,null,pe.createElement("div",{className:"p10 mb20",style:{background:"#F6F7F9"}},"1.\u53EA\u6709\u5F53\u8003\u8BD5\u622A\u6B62\u65F6\u95F4\u665A\u4E8E\u5B66\u751F\u7684\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u65F6\uFF0C\u624D\u652F\u6301\u5BF9\u5B66\u751F\u8FDB\u884C\u5EF6\u65F6\u64CD\u4F5C\uFF1B",pe.createElement("br",null),"2.\u6BCF\u4E2A\u5B66\u751F\u7684\u6700\u5927\u53EF\u5EF6\u65F6\u65F6\u95F4=\u8003\u8BD5\u622A\u6B62\u65F6\u95F4-\u5B66\u751F\u5F53\u524D\u7684\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u3002",pe.createElement("br",null)),pe.createElement(ut.Z,{value:We,onChange:Be,min:0,precision:0,max:Ie,style:{width:"100%"},placeholder:`\u6700\u5927\u53EF\u5EF6\u957F\u65F6\u95F4\u4E3A${Ie}\u5206\u949F\uFF0C\u5728\u5B66\u751F\u5269\u4F59\u65F6\u95F4\u57FA\u7840\u4E0A\u5EF6\u65F6`,addonAfter:"\u5206\u949F"})),Oe=({exercise:We,successCb:Be,dispatch:Ie})=>{var Qe,rt,xt,gt;const bt=(0,ne.useParams)(),[At]=nt.default.useForm(),Tt=nt.default.useWatch("time",At),[Nt,Ut]=(0,me.useState)(!1),st=(0,me.useRef)(),{actionTabs:He}=We,[jt,fn]=(0,me.useState)(),[,Bt,Ft,It]=(0,de.U)(_e.n7,{id:bt.categoryId}),[,Vt,wn]=(0,de.U)(_e.Cd,{});(0,me.useEffect)(()=>{We.actionTabs.key==="student-unlock"&&(Ut(!1),At.resetFields())},[We.actionTabs.key]);const Dt=()=>new Promise(Ye=>ye(void 0,null,function*(){var De,tt;return st.current=yield(0,ue.y)({ip_limit:(De=He==null?void 0:He.exerciseParams)==null?void 0:De.ip_limit,ip_bind:(tt=He==null?void 0:He.exerciseParams)==null?void 0:tt.ip_bind_type}),Ye()})),vt=()=>ye(void 0,null,function*(){var Ye,De,tt,Ht,$t;yield At.validateFields();const Sn=At.getFieldsValue();if(Ut(!0),(((Ye=He==null?void 0:He.exerciseParams)==null?void 0:Ye.ip_limit)!=="no"||(De=He==null?void 0:He.exerciseParams)!=null&&De.ip_bind_type)&&(yield Dt()),(yield(0,_e.ZD)((tt=He==null?void 0:He.exerciseParams)==null?void 0:tt.id,{exercise_user_id:(Ht=He==null?void 0:He.exerciseParams)==null?void 0:Ht.exercise_user_id,unlock_key:Sn.unlock_key,time:Sn.time,ip:st.current})).status===0){if(Be){Ie({type:"exercise/setActionTabs",payload:{}}),Be();return}const kt=He==null?void 0:He.exerciseParams;(0,ee.nr)({inner_ip:kt.inner_ip,public_ip:kt.public_ip,open_camera:kt.open_camera,ip_limit:kt.ip_limit,ip_bind:kt.ip_bind,ip_bind_type:kt.ip_bind_type,exercise_tips:kt.exercise_tips,exerciseId:kt.id,screen_open:kt.screen_open,screen_num:kt.screen_num,screen_sec:kt.screen_sec,coursesId:bt.coursesId,login:($t=(0,se.eY)())==null?void 0:$t.login,history,identity_verify:kt.identity_verify,open_phone_video_recording:kt.open_phone_video_recording,current_status:kt.current_status}),Ie({type:"exercise/setActionTabs",payload:{}})}Ut(!1)}),zt=[{title:"IP\u5730\u5740",dataIndex:"ip",key:"ip",render:Ye=>pe.createElement("span",{className:Ye.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},Ye)},{title:"\u6D4F\u89C8\u5668",dataIndex:"browser",key:"browser",render:Ye=>pe.createElement("span",{className:Ye.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},Ye)},{title:"\u4E0A\u6B21\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_time",key:"last_login_time"}],En=((Qe=He==null?void 0:He.exerciseParams)==null?void 0:Qe.errorMessage)&&typeof((rt=He==null?void 0:He.exerciseParams)==null?void 0:rt.errorMessage)=="object";(0,me.useEffect)(()=>{We.actionTabs.key==="student-unlock"&&ye(void 0,null,function*(){const Ye=yield wn(bt);yield Ft({}),Ye.status||fn(Ye)})},[We.actionTabs.key]);const{time:kn,end_time:Ze}=(jt==null?void 0:jt.exercise)||{},Fe=It!=null&&It.user_end_time?Ee()(It==null?void 0:It.user_end_time).add(1,"minutes"):Ee()(),xe=Ee()(It==null?void 0:It.user_total_end_time)>Fe?Math.round(Ee().duration(Ee()(It==null?void 0:It.user_total_end_time).diff(Fe.startOf("minute"))).asMinutes()):0,Te=((It==null?void 0:It.student_left_minutes)||0)+(Tt||0);return pe.createElement(pe.Fragment,null,pe.createElement(it.default,{width:514,centered:!0,closable:!!((xt=He==null?void 0:He.exerciseParams)!=null&&xt.unlockClose),maskClosable:!1,keyboard:!1,maskStyle:{background:"#000"},title:"\u63D0\u793A",open:We.actionTabs.key==="student-unlock",footer:null,onCancel:()=>{Ie({type:"exercise/setActionTabs",payload:{}})}},pe.createElement(ze.Z,{spinning:Bt||Vt},En&&pe.createElement("div",{style:{marginBottom:16}},"\u8BE5\u8D26\u53F7\u5DF2\u7ECF\u5B58\u5728\u5F02\u5E38\u60C5\u51B5\uFF0C\u82E5\u975E\u672C\u4EBA\u64CD\u4F5C\uFF0C\u8BF7\u8054\u7CFB\u76D1\u8003\u8001\u5E08\u8BF4\u660E\u60C5\u51B5\u3002 "),!En&&pe.createElement("div",{style:{marginBottom:16}},"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u60A8\u5728\u8003\u8BD5\u65F6\u4E2D\u9014\u9000\u51FA\uFF0C\u73B0\u5DF2\u5C06\u8003\u8BD5\u9501\u5B9A\u3002\u5982\u9700\u7EE7\u7EED\u8FDB\u884C\u8003\u8BD5\uFF0C \u8BF7\u5C3D\u5FEB\u8054\u7CFB\u8BFE\u5802\u8001\u5E08\u8FDB\u884C\u89E3\u9501\uFF01"),En&&pe.createElement(Ue.default,{className:"mb20",pagination:{hideOnSinglePage:!0},dataSource:[((gt=He==null?void 0:He.exerciseParams)==null?void 0:gt.errorMessage)||{}],columns:zt}),pe.createElement("div",{className:""},pe.createElement(nt.default,{form:At,layout:"vertical",autoComplete:"off"},pe.createElement(nt.default.Item,{label:"\u8003\u8BD5\u89E3\u9501\u7801",name:"unlock_key",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801"}]},pe.createElement(yt.default.Password,{autoComplete:"off",placeholder:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801",visibilityToggle:!1})),kn!==-1?pe.createElement(pe.Fragment,null,pe.createElement(nt.default.Item,{name:"time",label:pe.createElement("span",null,"\u5EF6\u957F\u65F6\u95F4\uFF08",pe.createElement("span",{style:{color:"#9096A3"}},"\u5F53\u524D\u8003\u8BD5\u622A\u6B62\u65F6\u95F4",Ee()(It==null?void 0:It.user_total_end_time).format("YYYY-MM-DD HH:mm")),"\uFF09")},pe.createElement(Re,{MaxMinutes:xe})),pe.createElement("div",{className:"mb20",style:{color:"#FA6400"}},"\u8BE5\u5B66\u751F\u5269\u4F59\u8003\u8BD5\u65F6\u95F4\uFF1A",pe.createElement("span",{className:"ml5"},Bt||Vt?"--":Te),"\u5206\u949F",Te!==0&&(It==null?void 0:It.user_end_time)&&pe.createElement("span",null,"\uFF0C\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\uFF1A",pe.createElement("span",{className:"ml5"},Ee()(It==null?void 0:It.user_end_time).add(Tt||0,"m").format("YYYY-MM-DD HH:mm:ss"))))):pe.createElement("span",{style:{color:"#F6A53B"}}," \u5F53\u524D\u8003\u8BD5\u672A\u9650\u5236\u8003\u751F\u7B54\u9898\u65F6\u957F\uFF0C\u8003\u8BD5\u622A\u6B62\u65F6\u95F4\u4E3A ",Ee()(Ze).format("YYYY-MM-DD HH:mm")))),pe.createElement(ot.Z,{justify:"space-between",align:"middle"},pe.createElement(Me.Z,null),pe.createElement(Me.Z,null,pe.createElement(Et.ZP,{loading:Nt,onClick:vt},"\u8FDB\u5165\u8003\u8BD5"))))))};Jt.Z=(0,ne.connect)(({exercise:We})=>({exercise:We}))(Oe)},75582:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{w:function(){return ze}});var me=Pe(38986),Ve=Pe(62957),ut=Pe(25690),nt=Pe(59301),it=(Ue,yt,ot)=>new Promise((Me,Et)=>{var _e=ne=>{try{Ee(ot.next(ne))}catch(ee){Et(ee)}},ht=ne=>{try{Ee(ot.throw(ne))}catch(ee){Et(ee)}},Ee=ne=>ne.done?Me(ne.value):Promise.resolve(ne.value).then(_e,ht);Ee((ot=ot.apply(Ue,yt)).next())});const ze=(Ue,yt,ot="\u6B63\u5728\u8FDB\u5165\u8BC4\u9605\uFF0C\u8BF7\u7A0D\u540E...",Me=1,Et=2)=>it(void 0,null,function*(){Me===1&&(0,ut.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:Me===1?ot:"\u6B63\u5728\u68C0\u6D4B\u4E2D\uFF0C\u8BF7\u7A0D\u540E..."}});const _e=yield(0,me.ZP)(`/api/exercises/${yt}/user_appraise_status.json`,{method:"get",params:{appraise_type:Me}});if((_e==null?void 0:_e.status)===-1)return(0,ut.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1}}),Promise.reject();let ht={status:0};if((_e==null?void 0:_e.type)===2&&(ht=yield(0,me.ZP)(`/api/exercises/${yt}/create_appraise_students.json`,{method:"get"})),(0,ut.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),(ht==null?void 0:ht.status)===-1)return Promise.reject();if((_e==null?void 0:_e.type)===2){const Ee=()=>{ut.history.replace(`/classrooms/${Ue}/exercise/${yt}/centralizeReview/${ht==null?void 0:ht.login}`)};if(Ve.default.confirm({centered:!0,width:470,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",keyboard:!1,onOk:Ee,onCancel:()=>{Et===1&&ut.history.replace(`/classrooms/${Ue}/exercise/${yt}/detail`)},content:nt.createElement("div",null,nt.createElement("div",null,"\u60A8\u5DF2\u6210\u4E3A\u6307\u5B9A\u9605\u5377\u6559\u5E08\uFF0C\u662F\u5426\u73B0\u5728\u524D\u5F80",nt.createElement("span",{onClick:Ee,className:"ml5 mr5 c-light-primary current"},"\u96C6\u4E2D\u9605\u5377"),"\u7EE7\u7EED\u8BC4\u9605\uFF1F"),nt.createElement("div",{className:"c-grey-999"},"\uFF08\u9605\u5377\u7ED3\u675F\u540E\u6062\u590D\u5B66\u751F\u4E2A\u4EBA\u8BC4\u9605\u529F\u80FD\uFF0C\u5E76\u5C55\u793A\u5B66\u751F\u6210\u7EE9\uFF09"))}),Et!==3)return Promise.reject()}if((_e==null?void 0:_e.type)===3&&(Ve.default.info({centered:!0,width:470,okText:"\u786E\u5B9A",keyboard:!1,title:"\u63D0\u793A",onOk:()=>{Et===1&&ut.history.replace(`/classrooms/${Ue}/exercise/${yt}/detail`)},content:nt.createElement("div",null,(_e==null?void 0:_e.message)||"")}),Et!==3)||(_e==null?void 0:_e.type)===4&&(Ve.default.info({centered:!0,width:470,okText:"\u786E\u5B9A",title:"\u63D0\u793A",keyboard:!1,onOk:()=>{Et===1&&ut.history.replace(`/classrooms/${Ue}/exercise/${yt}/detail`)},content:nt.createElement("div",null,(_e==null?void 0:_e.message)||"")}),Et!==3))return Promise.reject()})},57720:function(cn,Jt,Pe){"use strict";Pe.r(Jt),Pe.d(Jt,{default:function(){return qi}});var me=Pe(59301),Ve=Pe(25690),ut=Pe(62957),nt=Pe(93041),it=Pe(6767),ze=Pe(458),Ue=Pe(13747),yt=Pe(48608),ot=Pe(99571),Me=Pe(62673),Et=Pe(61186),_e=Pe.n(Et),ht=Pe(48790),Ee=Pe(51257),ne=Pe(28426),ee=Pe(38986),ue=Pe(20554),se=Pe(28284),de=Pe(25399),pe=Pe(71051),ye=Pe(82326),Ce=Pe(37568),Re=Pe(26724),Oe=Pe.n(Re),We=Pe(59639),Be=Pe(98737),Ie=Pe(40197),Qe=Pe(87444),rt=Pe(22072),xt=Pe(94361),gt=Pe(3039),bt=Pe(75736),At=Pe(59301),Tt=Object.defineProperty,Nt=Object.defineProperties,Ut=Object.getOwnPropertyDescriptors,st=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,fn=(Je,Yt,Lt)=>Yt in Je?Tt(Je,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):Je[Yt]=Lt,Bt=(Je,Yt)=>{for(var Lt in Yt||(Yt={}))He.call(Yt,Lt)&&fn(Je,Lt,Yt[Lt]);if(st)for(var Lt of st(Yt))jt.call(Yt,Lt)&&fn(Je,Lt,Yt[Lt]);return Je},Ft=(Je,Yt)=>Nt(Je,Ut(Yt)),It=(Je,Yt,Lt)=>new Promise((on,Gn)=>{var vn=ke=>{try{Mn(Lt.next(ke))}catch(ct){Gn(ct)}},dn=ke=>{try{Mn(Lt.throw(ke))}catch(ct){Gn(ct)}},Mn=ke=>ke.done?on(ke.value):Promise.resolve(ke.value).then(vn,dn);Mn((Lt=Lt.apply(Je,Yt)).next())});const{TabPane:Vt}=ue.default,wn=({classroomList:Je,exercise:Yt,loading:Lt,dispatch:on})=>{var Gn;const vn=(0,Ve.useParams)(),dn=(0,Ve.useLocation)(),[Mn]=se.default.useForm(),{brankList:ke}=Yt;let[ct,Xe]=(0,me.useState)(!0),[Pt,Ct]=(0,me.useState)(!1);const[Xt,qt]=(0,me.useState)("myself");let[sn,Tn]=(0,me.useState)([]),[jn,gn]=(0,me.useState)([]),[$n,gi]=(0,me.useState)(),[pt,Vn]=(0,me.useState)([]);const Wn=(0,me.useRef)(null),[Rn,Ln]=(0,me.useState)(!1),[di,vi]=(0,me.useState)(""),[Dn,yi]=(0,me.useState)(""),[xi,wi]=(0,me.useState)(!1),[gr,Ar]=(0,me.useState)({}),ur=[{title:"\u8BD5\u5377\u540D\u79F0",dataIndex:"name",ellipsis:!0,align:"left",render:(Li,pr,Jn)=>At.createElement("div",{style:{display:"flex",alignItems:"center"}},At.createElement(de.Z,{title:Li},At.createElement("div",{title:Li,className:Be.Z.name},Li)),(pr==null?void 0:pr.high_resources_consume)&&At.createElement(xt.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u65B9\u5411&\u8BFE\u7A0B",dataIndex:"course_list_name",width:180,ellipsis:!0,align:"left",render:Li=>At.createElement(de.Z,{title:Li},At.createElement("span",null,Li))},{title:"\u7C7B\u578B",dataIndex:"is_random",width:90,align:"left",render:Li=>Li?"\u968F\u673A\u7EC4\u5377":"\u4EBA\u5DE5\u7EC4\u5377"},{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updated_at",width:150,align:"left"},{title:"\u8BD5\u9898\u6570",dataIndex:"item_num",width:60,align:"center"},{title:"\u603B\u5206",dataIndex:"total_score",width:60,align:"center"},{title:"\u64CD\u4F5C",dataIndex:"is_random",width:60,align:"center",render:(Li,pr)=>At.createElement("a",{href:Li?`/randompaper/detail/${pr.id}`:`/paperlibrary/see/${pr.id}?defaultActiveKey=1`,target:"_blank>"},"\u9884\u89C8")}],[ri,mr]=(0,me.useState)({page:0,limit:20,group_id:null,object_type:"examination_bank",search:"",filter:"myself"});(0,me.useEffect)(()=>{Yt.actionTabs.key==="\u8BD5\u5377\u9009\u7528"&&(nr(),Vn([]),rr())},[Yt.actionTabs.key]);const rr=()=>It(void 0,null,function*(){const Li=yield on({type:"paperlibrary/getTeachGroupData"});gn(Li)}),fr=Li=>{const pr=parseInt(Li);return isNaN(pr)?"":pr},nr=()=>It(void 0,null,function*(){var Li,pr;if(ct){++ri.page,Xe(!1);const Jn=yield on({type:"exercise/getBrankList",payload:Ft(Bt({},ri),{search:(Li=ri.search)==null?void 0:Li.trim()})});sn=Jn!=null&&Jn.object_list?[...sn.concat(Jn==null?void 0:Jn.object_list)]:sn,ri.filter==="public"?gi(Jn.is_teacher):gi(!0),((pr=Jn.object_list)==null?void 0:pr.length)<ri.limit?Xe(!1):Xe(!0),Tn([...sn])}}),wr=Li=>{Wn.current.scrollTop=0,sn=[],ri.page=0,ri.group_id=Li,ct=!0,Vn([]),mr(Bt({},ri)),nr()},bn={selectedRowKeys:pt,onChange:Li=>{Vn(Li)},type:"radio"},Fi=()=>{mr(Bt({},{page:0,limit:20,group_id:null,object_type:"examination_bank",search:"",filter:"myself"})),Tn([]),Xe(!0),qt("myself"),on({type:"exercise/setActionTabs",payload:{}}),Ct(!1)},[Ii,Ki,Wi,Hi]=(0,Qe.P)(),hi=Li=>It(void 0,null,function*(){let pr=!1;sn.forEach(or=>{pt.includes(or.id)&&(pr=or.is_random)});const Jn=Li.map(or=>({shixun_id:or.id,is_use:or.is_use,is_copy:or.is_copy}));if(!pr){wi(!0);const or=yield on({type:"exercise/saveBanks",payload:{course_id:vn.coursesId,category_id:(vn==null?void 0:vn.categoryId)||null,object_type:"examination_bank",bank_id:pt,shixuns_info:Jn}});wi(!1),(or==null?void 0:or.status)===0&&((0,Ee.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u8BD5\u5377\u9009\u7528"]),on({type:"classroomList/getClassroomExercisesList",payload:Bt({},Yt.actionTabs.params)}),on({type:"classroomList/getClassroomLeftMenus",payload:{id:vn.coursesId}}),vi(`/classrooms/${vn.coursesId}/exercise/${or.exercise_id}/detail?random=${or.is_random}&tabs=3`),yi(`/classrooms/${vn.coursesId}/exercise/add/${or.exercise_id}?random=${or.is_random}&type=2`),Ln(!0),it.ZP.success("\u751F\u6210\u8BD5\u5377\u6210\u529F"),Ki(),Fi());return}wi(!0),setTimeout(()=>{wi(!1)},500),on({type:"exercise/setActionTabs",payload:{}});let ni=1,Ui=ut.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,maskClosable:!1,keyboard:!1,cancelButtonProps:{disabled:!1},title:"\u914D\u7F6E\u51FA\u5377\u6570\u91CF",content:At.createElement("div",{className:Be.Z.modalColumn},At.createElement("div",{className:Be.Z.modalRow},At.createElement("sup",{className:Be.Z.sup},"*"),At.createElement("span",{style:{flexShrink:0}},"\u968F\u673A\u51FA\u5377\u6570\u91CF\uFF1A"),At.createElement(pe.Z,{parser:fr,style:{width:120},placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u6570\u91CF",min:1,defaultValue:ni,onChange:or=>{ni=or;const br=document.getElementById("model_error");ni<1||ni>50?br.style.display="block":br.style.display="none"}})),At.createElement("div",{style:{display:"none",marginLeft:106},id:"model_error",className:"c-red"},"\u8BF7\u8F93\u51651-50\u4E4B\u95F4\u7684\u6574\u6570")),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onCancel:Fi,onOk:()=>It(void 0,null,function*(){if(ni<1||ni>50){const br=document.getElementById("model_error");return br.style.display="block",Promise.reject()}Ui.update({cancelButtonProps:{disabled:!0}});const or=yield on({type:"exercise/saveBanks",payload:{course_id:vn.coursesId,object_type:"examination_bank",bank_id:pt,shixuns_info:Jn,num:ni}});Ui.update({cancelButtonProps:{disabled:!1}}),or&&or.status===0?((0,Ee.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u8BD5\u5377\u9009\u7528"]),ut.default.destroyAll(),on({type:"classroomList/getClassroomExercisesList",payload:Bt({},Yt.actionTabs.params)}),Fi(),Ki(),it.ZP.success("\u751F\u6210\u8BD5\u5377\u6210\u529F")):(Fi(),Ki())})})});return At.createElement(At.Fragment,null,At.createElement(ut.default,{centered:!0,width:1012,title:"\u9009\u62E9\u8BD5\u5377",maskClosable:!1,destroyOnClose:!0,open:Yt.actionTabs.key==="\u8BD5\u5377\u9009\u7528",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:Pt,bodyStyle:{minHeight:200},wrapClassName:Be.Z.warpModal,onOk:()=>It(void 0,null,function*(){var Li;if(!pt.length){it.ZP.error("\u8BF7\u9009\u62E9\u8BD5\u5377");return}Ct(!0);let pr=!1,Jn=!1;if(sn.forEach(Ui=>{pt.includes(Ui.id)&&Ui.need_authorize&&(pr=Ui.need_authorize),pt.includes(Ui.id)&&(Jn=Ui.is_random)}),pr){(0,Ie.rX)(!1,"\u8BE5\u8BD5\u5377\u4E2D\u5305\u542B\u5B9E\u8BAD\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002");return}let ni=yield(0,bt.Tr)({id:`${pt[0]}`,course_id:(Li=Je.detailTopBanner)==null?void 0:Li.course_id,type:"examination_bank"});Ct(!1),(ni==null?void 0:ni.student_count)===0?hi([]):Ar(ni)}),onCancel:Fi},At.createElement(ue.default,{activeKey:Xt,onTabClick:Li=>It(void 0,null,function*(){Wn.current.scrollTop=0,sn=[],Xt!==Li&&Vn([]),qt(Li),ri.page=0,ri.filter=Li,ri.group_id=null,ct=!0,nr()})},At.createElement(Vt,{tab:At.createElement("span",null,"\u6211\u7684\u8BD5\u5377\u5E93"),key:"myself"}),At.createElement(Vt,{tab:At.createElement("span",null,"\u6559\u7814\u5171\u4EAB"),key:"teacher"}),At.createElement(Vt,{tab:At.createElement("span",null,"\u516C\u5171\u8BD5\u5377\u5E93"),key:"public"})),At.createElement("div",{className:Be.Z.tabSearch},Xt==="teacher"&&At.createElement(ye.default,{value:ri.group_id,onChange:wr,size:"middle",style:{width:200,marginRight:30}},At.createElement(ye.default.Option,{value:null},"\u5168\u90E8\u6559\u7814\u56E2\u961F"),(Gn=jn==null?void 0:jn.groups)==null?void 0:Gn.map(Li=>At.createElement(ye.default.Option,{key:Li==null?void 0:Li.group_id,value:Li==null?void 0:Li.group_id},Li==null?void 0:Li.name))),At.createElement(Ce.default.Search,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0\u8FDB\u884C\u641C\u7D22",value:ri.search,onChange:Li=>{ri.search=Li.target.value,mr(Bt({},ri))},onSearch:Li=>{Wn.current.scrollTop=0,sn=[],ri.page=0,ct=!0,Vn([]),Li&&(0,rt.tk)({name:Li,copywriting:Li,position:"Exercise"}),nr()}})),At.createElement("div",{ref:Wn,style:{maxHeight:350,overflowY:"auto",overflowX:"hidden",marginTop:10,paddingBottom:20}},!$n&&Xt==="public"&&At.createElement("div",{style:{display:"flex",flexDirection:"column",paddingTop:"30px",alignItems:"center",justifyContent:"center"}},At.createElement("span",null,"\u901A\u8FC7\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u624D\u80FD\u8BBF\u95EE\u516C\u5171\u8BD5\u5377\u5E93\u8D44\u6E90"),At.createElement("p",{style:{cursor:"pointer",background:"#ff6800",height:"30px",textAlign:"center",marginTop:"5px",padding:"5px 0px",color:"#fff",width:"80px"},onClick:()=>{window.open("/account/certification")}},"\u7ACB\u5373\u8BA4\u8BC1")),At.createElement(Oe(),{initialLoad:!1,pageStart:0,loadMore:()=>{nr()},hasMore:ct,useWindow:!1},Yt.actionTabs.key==="\u8BD5\u5377\u9009\u7528"&&$n&&At.createElement(We.Z,{className:Be.Z.hideHeadCheckbox,pagination:!1,hideSelectAll:!0,dataSource:sn,onRow:Li=>({onClick:()=>{Vn([Li==null?void 0:Li.id])}}),resColumns:ur,rowSelection:bn})))),At.createElement(ut.default,{title:"\u63D0\u793A",open:Rn,confirmLoading:!1,centered:!0,okText:"\u8BBE\u7F6E\u89C4\u5219",cancelText:"\u4FEE\u6539\u8BD5\u5377",footer:At.createElement("div",null,At.createElement(ot.ZP,{onClick:()=>{Ln(!1),Ve.history.push(Dn)}},"\u4FEE\u6539\u8BD5\u5377"),At.createElement(ot.ZP,{type:"primary",onClick:()=>{Ve.history.push(di),Ln(!1)}},"\u8BBE\u7F6E\u89C4\u5219")),onCancel:()=>{Ln(!1)}},At.createElement("p",null,"\u8BD5\u5377\u521B\u5EFA\u5B8C\u6210\uFF01\u76EE\u524D\u5904\u4E8E\u672A\u53D1\u5E03\u72B6\u6001\uFF0C\u662F\u5426\u8BBE\u7F6E\u8003\u8BD5\u89C4\u5219\uFF1F")),At.createElement(gt.Z,{resdata:gr,type:"exercise",okloading:xi,oktext:(gr==null?void 0:gr.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Li=>{hi(Li)}}),At.createElement(Qe.Z,{inPaper:!0,visible:Ii,onCancel:Ki,onOk:hi,renderData:Wi,modalType:"multiple",type:"examination_bank"}))};var Dt=(0,Ve.connect)(({exercise:Je,loading:Yt,classroomList:Lt})=>({exercise:Je,loading:Yt,classroomList:Lt}))(wn),vt=Pe(2773),zt=Pe(64205),En=Object.defineProperty,kn=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,xe=(Je,Yt,Lt)=>Yt in Je?En(Je,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):Je[Yt]=Lt,Te=(Je,Yt)=>{for(var Lt in Yt||(Yt={}))Ze.call(Yt,Lt)&&xe(Je,Lt,Yt[Lt]);if(kn)for(var Lt of kn(Yt))Fe.call(Yt,Lt)&&xe(Je,Lt,Yt[Lt]);return Je},Ye=(Je,Yt,Lt)=>new Promise((on,Gn)=>{var vn=ke=>{try{Mn(Lt.next(ke))}catch(ct){Gn(ct)}},dn=ke=>{try{Mn(Lt.throw(ke))}catch(ct){Gn(ct)}},Mn=ke=>ke.done?on(ke.value):Promise.resolve(ke.value).then(vn,dn);Mn((Lt=Lt.apply(Je,Yt)).next())});const De=({exercise:Je,dispatch:Yt})=>{const Lt=(0,Ve.useParams)();return me.createElement(ut.default,{centered:!0,title:"\u63D0\u793A",open:Je.actionTabs.key==="\u8BBE\u4E3A\u516C\u5F00",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Ye(void 0,null,function*(){(yield(0,ee.ZP)(`/api/courses/${Lt.coursesId}/exercises/set_public.json`,{method:"post",body:{check_ids:[...Je.actionTabs.selectArrs]}})).status===0&&((0,Ee.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u8BBE\u4E3A\u516C\u5F00"]),it.ZP.success("\u64CD\u4F5C\u6210\u529F"),Yt({type:"exercise/setActionTabs",payload:{}}),Yt({type:"classroomList/getClassroomExercisesList",payload:Te({},Je.actionTabs.params)}))}),onCancel:()=>{Yt({type:"exercise/setActionTabs",payload:{}})}},me.createElement("p",null,"\u8BBE\u4E3A\u516C\u5F00\u540E\uFF0C\u975E\u8BFE\u5802\u6210\u5458\u4E5F\u53EF\u4EE5\u8BBF\u95EE\u67E5\u770B",me.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u8BBE\u4E3A\u516C\u5F00\uFF1F"))};var tt=(0,Ve.connect)(({exercise:Je})=>({exercise:Je}))(De),Ht=Pe(54650),$t=Object.defineProperty,Sn=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,nn=(Je,Yt,Lt)=>Yt in Je?$t(Je,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):Je[Yt]=Lt,hn=(Je,Yt)=>{for(var Lt in Yt||(Yt={}))en.call(Yt,Lt)&&nn(Je,Lt,Yt[Lt]);if(Sn)for(var Lt of Sn(Yt))kt.call(Yt,Lt)&&nn(Je,Lt,Yt[Lt]);return Je},zn=(Je,Yt)=>{var Lt={};for(var on in Je)en.call(Je,on)&&Yt.indexOf(on)<0&&(Lt[on]=Je[on]);if(Je!=null&&Sn)for(var on of Sn(Je))Yt.indexOf(on)<0&&kt.call(Je,on)&&(Lt[on]=Je[on]);return Lt},fi=(Je,Yt,Lt)=>new Promise((on,Gn)=>{var vn=ke=>{try{Mn(Lt.next(ke))}catch(ct){Gn(ct)}},dn=ke=>{try{Mn(Lt.throw(ke))}catch(ct){Gn(ct)}},Mn=ke=>ke.done?on(ke.value):Promise.resolve(ke.value).then(vn,dn);Mn((Lt=Lt.apply(Je,Yt)).next())});const _n=Je=>{var Yt=Je,{exercise:Lt,dispatch:on,user:Gn}=Yt,vn=zn(Yt,["exercise","dispatch","user"]),dn,Mn;const ke=(0,Ve.useParams)(),[ct,Xe]=(0,me.useState)(!1),[Pt,Ct]=(0,me.useState)(!1),Xt=(0,me.useRef)(null);(0,me.useEffect)(()=>{var sn,Tn;if(Lt.actionTabs.key==="\u6279\u91CF\u5220\u9664"){if((0,ht.j5)()){Ct(!0);return}const jn={hasNum:0,noHasNum:0};(Tn=(sn=Lt==null?void 0:Lt.actionTabs)==null?void 0:sn.selectArrsAll)==null||Tn.map(gn=>{var $n;gn.author_login===(($n=Gn.userInfo)==null?void 0:$n.login)?++jn.hasNum:++jn.noHasNum}),jn.noHasNum>0?ut.default.info({title:"\u6743\u9650\u63D0\u793A",className:"custom-modal-divider ",icon:null,content:me.createElement("div",null,"\u5F53\u524D\u9009\u4E2D\u8D44\u6E90\u4E2D\uFF1A",me.createElement("span",{className:"c-blue"},jn.hasNum),"\u4E2A\u7531\u60A8\u672C\u4EBA\u53D1\u5E03\uFF0C",me.createElement("span",{className:"c-red"},jn.noHasNum)," \u4E2A\u7531\u5176\u4ED6\u8001\u5E08\u53D1\u5E03\u3002",me.createElement("br",null),"\u8BFE\u5802\u5185\u53EA\u80FD\u5220\u9664\u672C\u4EBA\u53D1\u5E03\u7684\u8D44\u6E90\uFF0C\u8BF7\u53D6\u6D88\u9009\u4E2D\u5176\u4ED6\u8001\u5E08\u53D1\u5E03\u7684\u8D44\u6E90\u3002"),onOk:()=>{qt()}}):Ct(!0)}else Ct(!1)},[Lt.actionTabs.key]);const qt=()=>{on({type:"exercise/setActionTabs",payload:{}})};return me.createElement(ut.default,{centered:!0,title:"\u63D0\u793A",open:Pt,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:ct,destroyOnClose:!0,onOk:()=>fi(void 0,null,function*(){var sn;if((sn=Xt.current)!=null&&sn.onVerify())return;Xe(!0);const Tn=yield(0,ee.ZP)(`/api/courses/${ke.coursesId}/exercises/destroys.json`,{method:"post",body:{check_ids:[...Lt.actionTabs.selectArrs]}});Xe(!1),Tn.status===0&&((0,Ee.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u5220\u9664"]),it.ZP.success("\u5220\u9664\u6210\u529F"),on({type:"exercise/setActionTabs",payload:{}}),on({type:"classroomList/getClassroomExercisesList",payload:hn({},Lt.actionTabs.params)}),on({type:"classroomList/getClassroomLeftMenus",payload:hn({},Lt.actionTabs.params)}))}),onCancel:()=>{on({type:"exercise/setActionTabs",payload:{}})}},!((dn=Lt==null?void 0:Lt.actionTabs)!=null&&dn.status)||!["\u672A\u5F00\u59CB"].includes((Mn=Lt==null?void 0:Lt.actionTabs)==null?void 0:Mn.status)?me.createElement(me.Fragment,null,me.createElement("p",{style:{color:"#DD0000"}},"\u5220\u9664\u8003\u8BD5\u5219\u4F1A\u6E05\u9664\u5B66\u751F\u6240\u6709\u7684\u7B54\u9898\u6570\u636E\uFF0C\u4E14\u6570\u636E\u4E0D\u53EF\u6062\u590D\uFF0C\u5982\u786E\u5B9A\u5220\u9664\uFF0C\u8BF7\u8F93\u5165\u4E0B\u65B9\u9A8C\u8BC1\u7801"),me.createElement(Ht.Z,{ref:sn=>Xt.current=sn})):me.createElement("p",null,"\u5220\u9664\u8BD5\u5377\u4F1A\u540C\u6B65\u5220\u9664\u8BD5\u5377\u4E2D\u7684\u6240\u6709\u8003\u8BD5\uFF0C\u786E\u8BA4\u662F\u5426\u5220\u9664\uFF1F"))};var Pi=(0,Ve.connect)(({exercise:Je,user:Yt})=>({exercise:Je,user:Yt}))(_n),Ci=Object.getOwnPropertySymbols,Yn=Object.prototype.hasOwnProperty,Ei=Object.prototype.propertyIsEnumerable,pi=(Je,Yt)=>{var Lt={};for(var on in Je)Yn.call(Je,on)&&Yt.indexOf(on)<0&&(Lt[on]=Je[on]);if(Je!=null&&Ci)for(var on of Ci(Je))Yt.indexOf(on)<0&&Ei.call(Je,on)&&(Lt[on]=Je[on]);return Lt},ji=(Je,Yt,Lt)=>new Promise((on,Gn)=>{var vn=ke=>{try{Mn(Lt.next(ke))}catch(ct){Gn(ct)}},dn=ke=>{try{Mn(Lt.throw(ke))}catch(ct){Gn(ct)}},Mn=ke=>ke.done?on(ke.value):Promise.resolve(ke.value).then(vn,dn);Mn((Lt=Lt.apply(Je,Yt)).next())});const Qi=Je=>{var Yt=Je,{exercise:Lt,dispatch:on}=Yt,Gn=pi(Yt,["exercise","dispatch"]);const vn=(0,Ve.useParams)();return vn.id=vn.coursesId,(0,me.useEffect)(()=>{Lt.actionTabs.key==="\u52A0\u5165\u8BD5\u5377\u5E93"&&new Promise(()=>ji(void 0,null,function*(){(yield(0,ee.ZP)(`/api/courses/${vn.id}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:[...Lt.actionTabs.selectArrs]}})).status===0&&((0,Ee.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u52A0\u5165\u8BD5\u5377\u5E93"]),it.ZP.success("\u5DF2\u52A0\u5165\u4E2A\u4EBA\u8BD5\u5377\u5E93\uFF0C\u8BD5\u9898\u540C\u6B65\u52A0\u5165\u81F3\u4E2A\u4EBA\u9898\u5E93")),on({type:"exercise/setActionTabs",payload:{}})}))},[Lt.actionTabs.key]),me.createElement(me.Fragment,null)};var lr=(0,Ve.connect)(({exercise:Je})=>({exercise:Je}))(Qi),Lr=Pe(37639),Di=Pe(54172),cr={flex_box_center:"flex_box_center___VejG5",flex_space_between:"flex_space_between___RwAiX",flex_box_vertical_center:"flex_box_vertical_center___N5QNs",flex_box_center_end:"flex_box_center_end___SUMZc",flex_box_column:"flex_box_column___ombQA",bg:"bg___i74VI",containerTitle:"containerTitle___eAbbs",containerDesc:"containerDesc___WeE4m",tablestyle:"tablestyle___uKNiL",listItem:"listItem___aJrbL",info:"info___X9HlC",title:"title___ZDroC",titleLeft:"titleLeft___JzNZc",titleRight:"titleRight___RP0gb",flexBox:"flexBox___txRbA",iconV:"iconV___JMCv9",acitons:"acitons___iqFGc",moveCategory:"moveCategory___Rihfv",name:"name___LdzGg",categoryName:"categoryName___Tz45n",schedule:"schedule___a20T3",fnSign:"fnSign___gsn3j",spanSize:"spanSize___jht3F",classromediv:"classromediv___T7h_f",glow:"glow___LU7dg",popover:"popover___Qeg0P",dot:"dot___c9Vwj",moni:"moni___LBVeo",ErrorPushTag:"ErrorPushTag___F0OTF",authorized:"authorized___yQPQx",btn_warp:"btn_warp___u9pTu"},to=Object.defineProperty,ki=Object.getOwnPropertySymbols,no=Object.prototype.hasOwnProperty,fo=Object.prototype.propertyIsEnumerable,po=(Je,Yt,Lt)=>Yt in Je?to(Je,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):Je[Yt]=Lt,io=(Je,Yt)=>{for(var Lt in Yt||(Yt={}))no.call(Yt,Lt)&&po(Je,Lt,Yt[Lt]);if(ki)for(var Lt of ki(Yt))fo.call(Yt,Lt)&&po(Je,Lt,Yt[Lt]);return Je};const hr=Je=>React.createElement("svg",io({width:22,height:22,xmlns:"http://www.w3.org/2000/svg"},Je),React.createElement("title",null,"\u7F16\u7EC4 5\u5907\u4EFD 2"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("path",{d:"M0 0h22v22H0z"}),React.createElement("g",{fill:"#979797",fillRule:"nonzero"},React.createElement("path",{d:"M10.422 5.818h.8v10.4h-.8z"}),React.createElement("path",{d:"M10.743 17.018a.49.49 0 0 1-.38-.197c-.38-.541-1.21-.91-1.993-.91H3.697a.485.485 0 0 1-.475-.493V4.883c0-.173.071-.32.166-.443.214-.222.522-.222.736-.222h4.104c1.139 0 2.301.64 2.823 1.576.143.221.071.541-.166.664a.438.438 0 0 1-.64-.172C9.889 5.67 9.01 5.178 8.228 5.178H4.171v9.723h4.2c1.067 0 2.182.517 2.751 1.28a.493.493 0 0 1-.095.69c-.094.098-.19.147-.284.147Z"}),React.createElement("path",{d:"M11.006 17.018a.469.469 0 0 1-.294-.098.483.483 0 0 1-.098-.69c.588-.763 1.714-1.28 2.84-1.28h3.99V5.203h-3.868c-.857 0-1.885.492-2.252 1.107-.147.222-.44.32-.66.173-.22-.148-.319-.443-.172-.665.612-1.034 2.056-1.6 3.084-1.6h4.234c.098 0 .294 0 .44.148.172.172.172.37.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E0Ny4yMjItLjQ0LjMyLS42Ni4xNzMtLjIyLS4xNDgtLjMxOS0uNDQzLS4xNzItLjY2NS42MTItMS4wMzQgMi4wNTYtMS42IDMuMDg0LTEuNmg0LjIzNGMuMDk4IDAgLjI5NCAwIC40NC4xNDguMTcyLjE3Mi4xNzIuMzcuMTcyLjQ2OHYxMC41ODRjMCAuMjcxLS4yMi40OTItLjQ5LjQ5MkgxMy40M2MtLjgwOCAwLTEuNjQuMzctMi4wNTYuOTExYS40My40MyAwIDAgMS0uMzY3LjE5N1oiLz48L2c+PC9nPjwvc3ZnPg==",be=Object.defineProperty,Un=Object.getOwnPropertySymbols,Xn=Object.prototype.hasOwnProperty,ci=Object.prototype.propertyIsEnumerable,mi=(Je,Yt,Lt)=>Yt in Je?be(Je,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):Je[Yt]=Lt,ei=(Je,Yt)=>{for(var Lt in Yt||(Yt={}))Xn.call(Yt,Lt)&&mi(Je,Lt,Yt[Lt]);if(Un)for(var Lt of Un(Yt))ci.call(Yt,Lt)&&mi(Je,Lt,Yt[Lt]);return Je};const Gi=Je=>React.createElement("svg",ei({width:22,height:22,xmlns:"http://www.w3.org/2000/svg"},Je),React.createElement("title",null,"\u7F16\u7EC4 5\u5907\u4EFD"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("path",{d:"M0 0h22v22H0z"}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{fill:"#229BFF",d:"M10.422 5.818h.8v10.4h-.8z"}),React.createElement("path",{d:"M10.743 17.018a.49.49 0 0 1-.38-.197c-.38-.541-1.21-.91-1.993-.91H3.697a.485.485 0 0 1-.475-.493V4.883c0-.173.071-.32.166-.443.214-.222.522-.222.736-.222h4.104c1.139 0 2.301.64 2.823 1.576.143.221.071.541-.166.664a.438.438 0 0 1-.64-.172C9.889 5.67 9.01 5.178 8.228 5.178H4.171v9.723h4.2c1.067 0 2.182.517 2.751 1.28a.493.493 0 0 1-.095.69c-.094.098-.19.147-.284.147Z",fill:"#0152d9"}),React.createElement("path",{d:"M11.006 17.018a.469.469 0 0 1-.294-.098.483.483 0 0 1-.098-.69c.588-.763 1.714-1.28 2.84-1.28h3.99V5.203h-3.868c-.857 0-1.885.492-2.252 1.107-.147.222-.44.32-.66.173-.22-.148-.319-.443-.172-.665.612-1.034 2.056-1.6 3.084-1.6h4.234c.098 0 .294 0 .44.148.172.172.172.37.172.468v10.584c0 .271-.22.492-.49.492H13.43c-.808 0-1.64.37-2.056.911a.43.43 0 0 1-.367.197Z",fill:"#0152d9"}))));var vr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMCAwaDIydjIySDB6Ii8+PGcgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBmaWxsPSIjMjI5QkZGIiBkPSJNMTAuNDIyIDUuODE4aC44djEwLjRoLS44eiIvPjxwYXRoIGQ9Ik0xMC43NDMgMTcuMDE4YS40OS40OSAwIDAgMS0uMzgtLjE5N2MtLjM4LS41NDEtMS4yMS0uOTEtMS45OTMtLjkxSDMuNjk3YS40ODUuNDg1IDAgMCAxLS40NzUtLjQ5M1Y0Ljg4M2MwLS4xNzMuMDcxLS4zMi4xNjYtLjQ0My4yMTQtLjIyMi41MjItLjIyMi43MzYtLjIyMmg0LjEwNGMxLjEzOSAwIDIuMzAxLjY0IDIuODIzIDEuNTc2LjE0My4yMjEuMDcxLjU0MS0uMTY2LjY2NGEuNDM4LjQzOCAwIDAgMS0uNjQtLjE3MkM5Ljg4OSA1LjY3IDkuMDEgNS4xNzggOC4yMjggNS4xNzhINC4xNzF2OS43MjNoNC4yYzEuMDY3IDAgMi4xODIuNTE3IDIuNzUxIDEuMjhhLjQ5My40OTMgMCAwIDEtLjA5NS42OWMtLjA5NC4wOTgtLjE5LjE0Ny0uMjg0LjE0N1oiIGZpbGw9IiMwMTUyZDkiLz48cGF0aCBkPSJNMTEuMDA2IDE3LjAxOGEuNDY5LjQ2OSAwIDAgMS0uMjk0LS4wOTguNDgzLjQ4MyAwIDAgMS0uMDk4LS42OWMuNTg4LS43NjMgMS43MTQtMS4yOCAyLjg0LTEuMjhoMy45OVY1LjIwM2gtMy44NjhjLS44NTcgMC0xLjg4NS40OTItMi4yNTIgMS4xMDctLjE0Ny4yMjItLjQ0LjMyLS42Ni4xNzMtLjIyLS4xNDgtLjMxOS0uNDQzLS4xNzItLjY2NS42MTItMS4wMzQgMi4wNTYtMS42IDMuMDg0LTEuNmg0LjIzNGMuMDk4IDAgLjI5NCAwIC40NC4xNDguMTcyLjE3Mi4xNzIuMzcuMTcyLjQ2OHYxMC41ODRjMCAuMjcxLS4yMi40OTItLjQ5LjQ5MkgxMy40M2MtLjgwOCAwLTEuNjQuMzctMi4wNTYuOTExYS40My40MyAwIDAgMS0uMzY3LjE5N1oiIGZpbGw9IiMwMTUyZDkiLz48L2c+PC9nPjwvc3ZnPg==",an=Pe(41727),ln=Pe(12971),Zt=Object.defineProperty,pn=Object.getOwnPropertySymbols,zi=Object.prototype.hasOwnProperty,Ti=Object.prototype.propertyIsEnumerable,dr=(Je,Yt,Lt)=>Yt in Je?Zt(Je,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):Je[Yt]=Lt,un=(Je,Yt)=>{for(var Lt in Yt||(Yt={}))zi.call(Yt,Lt)&&dr(Je,Lt,Yt[Lt]);if(pn)for(var Lt of pn(Yt))Ti.call(Yt,Lt)&&dr(Je,Lt,Yt[Lt]);return Je};const In=Je=>React.createElement("svg",un({width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},Je),React.createElement("title",null,"3"),React.createElement("defs",null,React.createElement("path",{id:"ErrorPushIcon_svg__a",d:"M0 0h24v24H0z"})),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("mask",{id:"ErrorPushIcon_svg__b",fill:"#fff"},React.createElement("use",{xlinkHref:"#ErrorPushIcon_svg__a"})),React.createElement("use",{fill:"#F4F8FF",opacity:.01,xlinkHref:"#ErrorPushIcon_svg__a"}),React.createElement("g",{mask:"url(#ErrorPushIcon_svg__b)",fillRule:"nonzero"},React.createElement("path",{d:"M7.598 2.582 2.8 3.428A1.701 1.701 0 0 0 1.42 5.396l2.92 16.562a1.695 1.695 0 0 0 1.969 1.38l1.564-.277a1.152 1.152 0 0 1-.276-.749V2.582Z",fill:"#AEF0FF"}),React.createElement("path",{d:"M21.863 1.403H8.755c-.639 0-1.156.518-1.157 1.156v19.752a1.159 1.159 0 0 0 1.157 1.157h13.108a.14.14 0 0 0 .14-.14V1.542a.14.14 0 0 0-.14-.14Zm-3.575 6.67h-6.493V4.928h6.493v3.145Z",fill:"#EF6A6A"}),React.createElement("path",{fill:"#F9DB91",d:"M11.795 4.928h6.493v3.146h-6.493z"}),React.createElement("path",{d:"M21.863 1.073H8.755c-.721 0-1.339.517-1.464 1.228l-4.548.8a2.029 2.029 0 0 0-1.645 2.353l2.92 16.56a2.027 2.027 0 0 0 2.35 1.647l1.392-.246c.273.247.627.383.995.382h13.108c.26 0 .47-.21.47-.47V1.543a.47.47 0 0 0-.47-.47ZM6.253 23.01a1.366 1.366 0 0 1-1.587-1.112L1.746 5.34a1.37 1.37 0 0 1 1.11-1.587l4.412-.777v1.534c-.85.061-1.522.726-1.522 1.535 0 .809.672 1.474 1.522 1.534v1.193c-.85.06-1.522.725-1.522 1.534 0 .81.672 1.475 1.522 1.535v1.192c-.85.06-1.522.726-1.522 1.535 0 .809.672 1.474 1.522 1.535v1.192c-.85.06-1.522.725-1.522 1.534 0 .81.672 1.474 1.522 1.535v1.95c0 .171.03.342.089.505l-1.105.193Zm1.014-17.84v1.746c-.486-.055-.862-.425-.862-.872 0-.448.377-.818.863-.874Zm0 4.261v1.747c-.486-.056-.862-.426-.862-.874 0-.447.377-.818.863-.873Zm0 4.261v1.746c-.486-.056-.862-.426-.862-.873s.377-.818.863-.873Zm0 4.26V19.7c-.486-.056-.862-.426-.862-.873 0-.448.377-.818.863-.874Zm14.406 5.185H8.755a.828.828 0 0 1-.827-.827v-4.226c.274.157.456.431.456.742a.79.79 0 0 1-.121.422.33.33 0 1 0 .56.347c.144-.231.22-.498.22-.77 0-.675-.467-1.25-1.115-1.456v-3.545c.273.156.456.43.456.74 0 .15-.042.297-.121.423a.33.33 0 1 0 .56.347c.144-.231.22-.498.22-.77 0-.675-.467-1.249-1.115-1.456V9.564c.273.156.456.43.456.74 0 .15-.042.296-.121.423a.33.33 0 1 0 .56.347c.144-.231.22-.497.22-.77 0-.674-.467-1.249-1.115-1.456V5.303c.273.156.456.431.456.74 0 .15-.042.297-.121.423a.33.33 0 1 0 .56.347c.144-.23.22-.497.22-.769 0-.675-.467-1.25-1.115-1.457V2.56c0-.456.37-.826.827-.827h12.918v21.406Z",fill:"#512C56"}),React.createElement("path",{d:"M11.565 8.402h6.953a.101.101 0 0 0 .1-.101V4.699a.101.101 0 0 0-.1-.101h-6.953a.101.101 0 0 0-.101.101v3.605a.1.1 0 0 0 .101.098Zm.558-3.144h5.833v2.485h-5.833V5.258Zm5.163 11.89h-4.489a.33.33 0 1 0 0 .659h4.489a.33.33 0 1 0 0-.66Zm0 2.334h-4.489a.33.33 0 0 0 0 .66h4.489a.33.33 0 1 0 0-.66Z",fill:"#512C56"}))));var Vi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNMCAwaDI0djI0SDB6Ii8+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PG1hc2sg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NC40ODlhLjMzLjMzIDAgMSAwIDAtLjY2WiIgZmlsbD0iIzUxMkM1NiIvPjwvZz48L2c+PC9zdmc+",Fr=Pe(69221),ii=Pe(75582),lt=Pe(74255),Rt=Pe(69429),ai=Object.defineProperty,ti=Object.getOwnPropertySymbols,tn=Object.prototype.hasOwnProperty,si=Object.prototype.propertyIsEnumerable,Ri=(Je,Yt,Lt)=>Yt in Je?ai(Je,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):Je[Yt]=Lt,Yi=(Je,Yt)=>{for(var Lt in Yt||(Yt={}))tn.call(Yt,Lt)&&Ri(Je,Lt,Yt[Lt]);if(ti)for(var Lt of ti(Yt))si.call(Yt,Lt)&&Ri(Je,Lt,Yt[Lt]);return Je};const tr=Je=>React.createElement("svg",Yi({width:18,height:13,xmlns:"http://www.w3.org/2000/svg"},Je),React.createElement("title",null,"\u7F16\u7EC4 3"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("path",{d:"m2.288 4.95 5.456 1.725 3.085-1.016c.176-.058.176.039.013.167-.686.544-1.286 1.24-1.613 2.076a4.679 4.679 0 0 0 2.414 2.542l-1.313 1.311-2.748.863-5.294-1.763V4.95ZM7.661 0l7.502 2.936-7.502 2.692L.73 3.192V8.14h-.7V2.946L0 2.936 7.661 0Z",fill:"#739EFF"}),React.createElement("g",{fill:"#FF9D18",fillRule:"nonzero"},React.createElement("path",{d:"m11.381 9.3.949-.948a1.305 1.305 0 0 1-.097-.498c0-.762.623-1.385 1.384-1.385.18 0 .346.035.499.097l.713-.713a3.6 3.6 0 0 0-1.212-.215c-1.453 0-2.852.921-3.323 2.216A3.281 3.281 0 0 0 11.381 9.3Z"}),React.createElement("path",{d:"M12.787 7.854v.041l.872-.872h-.042a.833.833 0 0 0-.83.83Zm3.066-1.447.674-.674.738-.738-.394-.395-.795.795-4.629 4.629-1.097 1.097.394.395.664-.665.567-.566.438-.438c.384.147.793.222 1.204.222 1.447 0 2.86-.92 3.33-2.215-.208-.568-.602-1.067-1.094-1.447Zm-2.236 2.831c-.173 0-.346-.035-.498-.097l.464-.464h.041c.457 0 .83-.373.83-.83v-.042l.465-.464c.048.166.083.34.083.513 0 .761-.623 1.384-1.385 1.384Z"}))));var Bn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJtMi4yODggNC45NSA1LjQ1NiAxLjcyNSAzLjA4NS0xLjAxNmMuMTc2LS4wNTguMTc2LjAzOS4wMTMuMTY3LS42ODYuNTQ0LTEuMjg2IDEuMjQtMS42MTMgMi4wNzZhNC42NzkgNC42NzkgMCAwIDAgMi40MTQgMi41NDJsLTEuMzEzIDEuMzExLTIuNzQ4Ljg2My01LjI5NC0xLjc2M1Y0Ljk1Wk03LjY2MSAwbDcuNTAyIDIuOTM2LTcuNTAyIDIuNjkyTC43MyAzLjE5MlY4LjE0aC0uN1YyLjk0NkwwIDIuOTM2IDcuNjYxIDBaIiBmaWxsPSIjNzM5RUZGIi8+PGcgZmlsbD0iI0ZGOUQxOCIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJtMTEuMzgxIDkuMy45NDktLjk0OGExLjMwNSAxLjMwNSAwIDAgMS0uMDk3LS40OThjMC0uNzYyLjYyMy0xLjM4NSAxLjM4NC0xLjM4NS4xOCAwIC4zNDYuMDM1LjQ5OS4wOTdsLjcxMy0uNzEzYTMuNiAzLjYgMCAwIDAtMS4yMTItLjIxNWMtMS40NTMgMC0yLjg1Mi45MjEtMy4zMjMgMi4yMTZBMy4yODEgMy4yODEgMCAwIDAgMTEuMzgxIDkuM1oiLz48cGF0aCBkPSJNMTIuNzg3IDcuODU0di4wNDFsLjg3Mi0uODcyaC0uMDQyYS44MzMuODMzIDAgMCAwLS44My44M1ptMy4wNjYtMS40NDcuNjc0LS42NzQuNzM4LS43MzgtLjM5NC0uMzk1LS43OTUuNzk1LTQuNjI5IDQuNjI5LTEuMDk3IDEuMDk3LjM5NC4zOTUuNjY0LS42NjUuNTY3LS41NjYuNDM4LS40MzhjLjM4NC4xNDcuNzkzLjIyMiAxLjIwNC4yMjIgMS40NDcgMCAyLjg2LS45MiAzLjMzLTIuMjE1LS4yMDgtLjU2OC0uNjAyLTEuMDY3LTEuMDk0LTEuNDQ3Wm0tMi4yMzYgMi44MzFjLS4xNzMgMC0uMzQ2LS4wMzUtLjQ5OC0uMDk3bC40NjQtLjQ2NGguMDQxYy40NTcgMCAuODMtLjM3My44My0uODN2LS4wNDJsLjQ2NS0uNDY0Yy4wNDguMTY2LjA4My4zNC4wODMuNTEzIDAgLjc2MS0uNjIzIDEuMzg0LTEuMzg1IDEuMzg0WiIvPjwvZz48L2c+PC9zdmc+",Ot=Pe(59301),qn=Object.defineProperty,Ji=Object.defineProperties,$i=Object.getOwnPropertyDescriptors,Pn=Object.getOwnPropertySymbols,Mi=Object.prototype.hasOwnProperty,Er=Object.prototype.propertyIsEnumerable,Hr=(Je,Yt,Lt)=>Yt in Je?qn(Je,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):Je[Yt]=Lt,wo=(Je,Yt)=>{for(var Lt in Yt||(Yt={}))Mi.call(Yt,Lt)&&Hr(Je,Lt,Yt[Lt]);if(Pn)for(var Lt of Pn(Yt))Er.call(Yt,Lt)&&Hr(Je,Lt,Yt[Lt]);return Je},Kt=(Je,Yt)=>Ji(Je,$i(Yt)),Oi=(Je,Yt,Lt)=>new Promise((on,Gn)=>{var vn=ke=>{try{Mn(Lt.next(ke))}catch(ct){Gn(ct)}},dn=ke=>{try{Mn(Lt.throw(ke))}catch(ct){Gn(ct)}},Mn=ke=>ke.done?on(ke.value):Promise.resolve(ke.value).then(vn,dn);Mn((Lt=Lt.apply(Je,Yt)).next())});const Nr=({v:Je,k:Yt,match:Lt,selectArrs:on,setSelectArrs:Gn,dispatch:vn,params:dn,classroomList:Mn,batchStatus:ke,manageAllGroup:ct,user:Xe})=>{var Pt,Ct,Xt,qt,sn,Tn,jn,gn,$n,gi,pt,Vn,Wn,Rn,Ln,di,vi,Dn,yi;const[xi,wi]=(0,me.useState)([]),[gr,Ar]=(0,me.useState)(!1),ur=(0,me.useRef)(),ri=(0,me.useRef)(),[mr,rr]=(0,me.useState)(!1);var fr=!1;const nr="YYYY-MM-DD",wr=_e()("2020-11-15",nr);function bn(){return Oi(this,null,function*(){console.log(dn,222);let Jn=yield(0,ee.ZP)(`/api/courses/${dn==null?void 0:dn.coursesId}/exercises/group_use_list.json`,{method:"get",params:Kt(wo({},dn),{id:Je.id})});wi((Jn==null?void 0:Jn.groups)||[])})}const Fi=()=>ut.default.info({title:"\u9898\u5E93\u6539\u7248\u544A\u77E5",content:Ot.createElement(Ot.Fragment,null,"EduCoder\u5DF2\u5347\u7EA7\u9898\u5E93\u529F\u80FD\uFF0C\u6240\u6709\u8BD5\u9898\u5747\u9700\u5339\u914D\u77E5\u8BC6\u70B9\u3002 \u5F53\u524D\u8BD5\u5377\u6240\u6D89\u53CA\u8BD5\u9898\u5747\u672A\u5339\u914D\u77E5\u8BC6\u70B9\uFF0C\u65E0\u6CD5\u968F\u673A\u62BD\u53D6\uFF0C\u5DF2\u4E0D\u80FD\u6709\u6548\u4F7F\u7528\u3002\u8BF7\u5728\u8BD5\u5377\u5E93\u91CD\u65B0\u7EC4\u5377\u540E\u4F7F\u7528\u3002 \u7531\u6B64\u5E26\u6765\u7684\u4E0D\u4FBF\uFF0C\u656C\u8BF7\u8C05\u89E3\uFF01")});Je!=null&&Je.appraise_label&&(fr=!0);const Ii=(Jn,ni=!1)=>{var Ui;Ve.history.push(`/classrooms/${dn.coursesId}/exercisenotice/${Jn.id}/users/${(Ui=(0,ht.eY)())==null?void 0:Ui.login}`)},Ki=[{title:"\u73ED\u7EA7",dataIndex:"name",key:"name"},{title:"\u8003\u8BD5\u72B6\u6001",dataIndex:"exercise_status",key:"exercise_status",width:100,filters:[{text:"\u672A\u5F00\u59CB",value:1},{text:"\u8003\u8BD5\u4E2D",value:2},{text:"\u5DF2\u622A\u6B62",value:3}],onFilter:(Jn,ni)=>ni.exercise_status===Jn,render:(Jn,ni)=>Ot.createElement("div",null,Jn===1&&Ot.createElement("span",null,Ot.createElement("i",{className:cr.dot,style:{background:"#C3C3C3"}}),"\u672A\u5F00\u59CB"),Jn===2&&Ot.createElement("span",null,Ot.createElement("i",{className:cr.dot,style:{background:"#4EACFF"}}),"\u8003\u8BD5\u4E2D"),Jn===3&&Ot.createElement("span",null,Ot.createElement("i",{className:cr.dot,style:{background:"#FC2D6B"}}),"\u5DF2\u622A\u6B62"))},{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"publish_time",key:"publish_time",sorter:!0,width:170,showSorterTooltip:!1,sortOrder:dn.order_by==="publish_time"?dn.sort_direction==="desc"?"descend":"ascend":null},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time",key:"end_time",sorter:!0,width:170,showSorterTooltip:!1,sortOrder:dn.order_by==="end_time"?dn.sort_direction==="desc"?"descend":"ascend":null},{title:"\u63D0\u4EA4\u4EBA\u6570",dataIndex:"exercise_answer",key:"exercise_answer",align:"center",width:80,render:(Jn,ni)=>ni.exercise_status===1?"-":Ot.createElement("span",null,Jn,"/",ni.exercise_users)},{title:"\u5F85\u8BC4\u9605\u8BD5\u5377",dataIndex:"unreview_count",key:"unreview_count",align:"center",width:90,render:(Jn,ni)=>ni.exercise_status===1?"-":Jn===0?Ot.createElement("span",{style:{cursor:"no-drop",color:"#999999"}},Jn):Ot.createElement("a",{onClick:()=>(0,Ee.xg)(`/classrooms/${dn==null?void 0:dn.coursesId}/exercise/${Je==null?void 0:Je.id}/detail?random=false&exercise_group_id=${ni.course_group_id}`)},Jn)},{title:"\u64CD\u4F5C",dataIndex:"action",align:"center",key:"action",width:60,render:(Jn,ni)=>ni.exercise_status===1?Ot.createElement("img",{style:{cursor:"not-allowed"},src:ao}):Ot.createElement(de.Z,{title:"\u8BC4\u9605"},Ot.createElement("a",{onClick:()=>(0,Ee.xg)(`/classrooms/${dn==null?void 0:dn.coursesId}/exercise/${Je==null?void 0:Je.id}/detail?random=false&exercise_group_id=${ni.course_group_id}`)},Ot.createElement("img",{src:vr})))}],Wi=Jn=>{if(fr)return Ot.createElement("span",{style:{backgroundColor:"#f59a23"},className:"tag-style mr10"},"\u96C6\u4E2D\u9605\u5377");if(Jn!=null&&Jn.includes("\u672A\u5F00\u59CB"))return Ot.createElement("span",{style:{backgroundColor:"#B8B8B8"},className:"tag-style mr10"},"\u672A\u5F00\u59CB");if(Jn!=null&&Jn.includes("\u8003\u8BD5\u4E2D"))return Ot.createElement("span",{style:{backgroundColor:"#007AFF"},className:"tag-style mr10"},"\u8003\u8BD5\u4E2D");if(Jn!=null&&Jn.includes("\u5DF2\u622A\u6B62"))return Ot.createElement("span",{style:{backgroundColor:"#FC2D6B"},className:"tag-style mr10"},"\u5DF2\u622A\u6B62");if(Jn!=null&&Jn.includes("\u5BFC\u5165"))return Ot.createElement("span",{className:"export mr10"},"\u5BFC\u5165")},Hi=()=>{const Jn=(Je==null?void 0:Je.simulate_exercise_num)-(Je==null?void 0:Je.user_simulate_num);return Jn>=0?Jn:0},hi=(Jn=Je)=>{var ni,Ui,or;if(Jn!=null&&Jn.is_encrypt){vn({type:"classroomList/setActionTabs",payload:{open:"\u89E3\u5C01",id:Jn==null?void 0:Jn.id,phone:(ni=Xe==null?void 0:Xe.userInfo)==null?void 0:ni.phone,login:(Ui=Xe==null?void 0:Xe.userInfo)==null?void 0:Ui.login}});return}(or=Xe==null?void 0:Xe.userInfo)!=null&&or.phone?vn({type:"classroomList/setActionTabs",payload:{open:"\u8BD5\u5377\u5C01\u5B58",id:Jn==null?void 0:Jn.id}}):vn({type:"classroomList/setActionTabs",payload:{open:"\u624B\u673A\u53F7\u7ED1\u5B9A"}})},Li=Jn=>{var ni,Ui,or;if(((ni=Xe==null?void 0:Xe.userInfo)==null?void 0:ni.login)!==(Je==null?void 0:Je.author_login)){it.ZP.warning("\u8BD5\u5377\u5DF2\u5C01\u5B58\uFF0C\u8BF7\u8054\u7CFB\u8BD5\u5377\u6240\u6709\u8005\u8FDB\u884C\u89E3\u5C01~");return}vn({type:"classroomList/setActionTabs",payload:{open:"\u63D0\u793A",id:Je==null?void 0:Je.id,phone:(Ui=Xe==null?void 0:Xe.userInfo)==null?void 0:Ui.phone,login:(or=Xe==null?void 0:Xe.userInfo)==null?void 0:or.login,onFinish:Jn}})},pr=Jn=>Oi(void 0,null,function*(){const ni=yield(0,ee.ZP)(`/api/courses/${dn==null?void 0:dn.coursesId}/sync_shixuns.json`,{method:"post",body:{exercise_ids:[Jn]}});(ni==null?void 0:ni.status)===0&&(vn({type:"classroomList/setActionTabs",payload:{}}),it.ZP.info("\u5B9E\u8BAD\u540C\u6B65\u4E2D\uFF0C\u8BF7\u7A0D\u540E"),vn({type:"classroomList/getClassroomExercisesList",payload:wo({},dn)}))});return Ot.createElement("div",{className:cr.listItem,onClick:Jn=>{const ni=()=>{(!(0,ht.GJ)()||(0,ht.GJ)()&&ri.current&&!ri.current.contains(Jn.target))&&(0,Ee.xg)(`/classrooms/${dn.coursesId}/exercise/${Je.id}/detail?random=${Je.is_random}`)};if(Je!=null&&Je.is_encrypt){Li(ni);return}ni()}},(0,ht.GJ)()&&Ot.createElement("span",{ref:ri},Ot.createElement(Me.default,{checked:on.includes(Je.id),value:Je.id,style:{padding:"10px"},onClick:Jn=>{Jn.stopPropagation()},disabled:(Je==null?void 0:Je.is_encrypt)||(Je==null?void 0:Je.is_make_up_exercise),onChange:Jn=>{let ni=on.indexOf(Je.id);on.indexOf(Je.id)>-1?Gn(on.filter(Ui=>Ui!==Je.id)):Gn(on.concat(Je.id))}})),Ot.createElement("div",{className:cr.info},Ot.createElement("div",{className:cr.title},Ot.createElement("div",{className:cr.titleLeft,style:{marginRight:15}},Wi(Je==null?void 0:Je.exercise_tips),(Je==null?void 0:Je.is_make_up_exercise)&&Ot.createElement("img",{src:an,width:44,height:24,style:{marginRight:10}}),Ot.createElement(de.Z,{title:Je.exercise_name},Ot.createElement("span",{className:cr.name},Je.exercise_name)),(0,ht.G5)()&&(Je==null?void 0:Je.shixun_change)&&Ot.createElement(Lr.Z,{open:mr,onOpenChange:Jn=>{rr(Jn)},placement:"bottomLeft",title:null,content:Ot.createElement("div",{style:{width:"310px",color:"#000"},onClick:Jn=>Jn.stopPropagation()},Ot.createElement("div",null,"\u5B9E\u8BAD\u7BA1\u7406\u5458\u5BF9\u8BD5\u5377\u4E2D\u4F7F\u7528\u7684\u5B9E\u8DF5\u9879\u76EE\u8FDB\u884C\u4E86\u4FEE\u6539\uFF0C\u8BF7\u68C0\u67E5\u540E\uFF0C\u786E\u8BA4\u662F\u5426\u9700\u8981\u540C\u6B65\u5230\u8BD5\u5377\u4E2D"),Ot.createElement("div",{className:cr.btn_warp},Ot.createElement(ot.ZP,{size:"small",onClick:()=>rr(!1)},"\u5FFD\u7565"),Ot.createElement(ot.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>{rr(!1),vn({type:"classroomList/setActionTabs",payload:{key:"\u5B9E\u8BAD\u540C\u6B65\u786E\u8BA4",onOK:()=>pr(Je==null?void 0:Je.id)}})}},"\u786E\u8BA4\u540C\u6B65"),Ot.createElement(ot.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>(0,Ee.xg)(`/classrooms/${dn.coursesId}/exercise/${Je.id}/detail?random=${Je.is_random}&tabs=2`)},"\u524D\u5F80\u67E5\u770B")))},Ot.createElement("i",{className:"iconfont icon-tongzhi1 pl10 current",style:{fontSize:"16px",color:"#F7B500"},onClick:Jn=>Jn.stopPropagation()})),(Je==null?void 0:Je.high_resources_consume)&&!(Je!=null&&Je.high_resources_consume_permission)&&Ot.createElement(xt.Z,{type:"exercise",style:{marginLeft:10}}),(Je==null?void 0:Je.high_resources_consume)&&(Je==null?void 0:Je.high_resources_consume_permission)&&Ot.createElement("span",{className:cr.authorized},"\u5DF2\u6388\u6743"),((Pt=Je==null?void 0:Je.exercise_tips)==null?void 0:Pt.includes("\u5DF2\u622A\u6B62"))&&((Ct=Mn==null?void 0:Mn.detailTopBanner)==null?void 0:Ct.forbid_end_exercise)&&Ot.createElement(de.Z,{title:"\u5DF2\u5BF9\u5B66\u751F\u9690\u85CF"},Ot.createElement("img",{src:Bn,width:20,className:"ml10"})),!Je.is_public&&(0,ht.GJ)()&&Ot.createElement(de.Z,{title:"\u79C1\u6709\u5C5E\u6027\uFF0C\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u80FD\u8BBF\u95EE"},Ot.createElement("span",{className:"iconfont icon-suo1 ml10 mr10 c-light-black font12"})),(Je==null?void 0:Je.exercise_type)==2&&Ot.createElement("span",{style:{flexShrink:0,marginLeft:10,display:"flex",alignItems:"center"},className:cr.moni},Ot.createElement("img",{src:ln,width:18,height:14}),"\u6A21\u62DF\u8003\u8BD5"),((Xt=Je==null?void 0:Je.exercise_tips)==null?void 0:Xt.includes("\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A"))&&Ot.createElement("span",{style:{flexShrink:0,marginLeft:10,display:"flex"},className:"tag-style-fzb iconfont icon-fangzuobi"},"\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A"),(Je==null?void 0:Je.ai_push_wrong_question)&&Ot.createElement("span",{className:cr.ErrorPushTag},Ot.createElement("img",{src:Vi,width:12,className:"mr5"}),"AI\u9519\u9898\u63A8\u9001"),((qt=Je==null?void 0:Je.exercise_tips)==null?void 0:qt.includes("\u5DF2\u622A\u6B62"))&&((sn=Je==null?void 0:Je.exercise_tips)==null?void 0:sn.includes("\u672A\u63D0\u4EA4"))&&Ot.createElement("span",{style:{flexShrink:0,backgroundColor:"#B8B8B8"},className:"tag-style ml10"},"\u672A\u63D0\u4EA4"),(Je==null?void 0:Je.is_encrypt)&&Ot.createElement(de.Z,{title:"\u8BD5\u5377\u5DF2\u52A0\u5BC6"}," ",Ot.createElement("img",{src:Rt,width:21,className:"ml10",style:{marginTop:"-8px"}})," ")),Ot.createElement("div",{className:cr.titleRight,onClick:Jn=>{Jn.stopPropagation(),Jn.preventDefault()}},(Je==null?void 0:Je.appraise_setting)&&Ot.createElement("span",{className:cr.flexBox,style:{marginRight:"16px"},onClick:()=>Oi(void 0,null,function*(){const Jn=()=>Oi(void 0,null,function*(){vn({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u8BC4\u9605\uFF0C\u8BF7\u7A0D\u540E..."}});const ni=yield(0,ee.ZP)(`/api/exercises/${Je.id}/create_appraise_students.json`,{method:"get"});vn({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),(0,Ee.xg)(`/classrooms/${dn==null?void 0:dn.coursesId}/exercise/${Je.id}/centralizeReview/${ni==null?void 0:ni.login}`)});if(Je!=null&&Je.is_encrypt){Li(Jn);return}Jn()})},Ot.createElement("i",{className:"iconfont icon-jizhongyuejuan"}),Ot.createElement("div",null,"\u96C6\u4E2D\u9605\u5377")),!(Je!=null&&Je.exercise_tips.includes("\u5BFC\u5165"))&&(0,ht.GJ)()&&(!(Je!=null&&Je.is_make_up_exercise)||(Je==null?void 0:Je.is_make_up_exercise)&&(Je==null?void 0:Je.exercise_status)===1&&(Je==null?void 0:Je.allow_create_make_up))&&Ot.createElement(Fr.Z,{tips:Je==null?void 0:Je.open_appraise},Ot.createElement("span",{className:cr.flexBox,style:{marginRight:"16px"},onClick:()=>{const Jn=()=>{var ni,Ui,or;if(((ni=Xe==null?void 0:Xe.userInfo)==null?void 0:ni.user_status)===2){(0,Ie.Rd)();return}if((0,ht.Rm)()&&!((or=(Ui=Mn==null?void 0:Mn.AssistantObject)==null?void 0:Ui.exercise)!=null&&or.can_publish)){it.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}if((Je==null?void 0:Je.exercise_question_count)===0){it.ZP.warning("\u8BD5\u5377\u5185\u6CA1\u6709\u8BD5\u9898\u4E0D\u5141\u8BB8\u53D1\u5E03\u8003\u8BD5");return}let br=()=>{vn({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u53D1\u5E03",selectArrs:[Je.id],selectArrsAll:[Je],unified_setting:Je.unified_setting,params:dn,disabled:Je.exercise_status!==1,type:2,manage_all_group:ct,isRouter:!0}})};Je!=null&&Je.high_resources_consume&&!(Je!=null&&Je.high_resources_consume_permission)?vn({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:dn.coursesId,type:"exercise",type_id:Je.id,name:Je.exercise_name,fn:()=>{vn({type:"classroomList/getClassroomExercisesList",payload:wo({},dn)}),br()}}}):br()};if(Je!=null&&Je.is_encrypt){Li(Jn);return}Jn()}},Ot.createElement("i",{className:"iconfont icon-yishezhifabushijian1"}),Ot.createElement("div",null,"\u53D1\u5E03"))),!(Je!=null&&Je.exercise_tips.includes("\u5BFC\u5165"))&&(0,ht.GJ)()&&!(0,Ee._m)()&&Je.assistant_auth&&Ot.createElement("span",{className:cr.flexBox,style:{marginRight:"16px"},onClick:Jn=>{Jn.stopPropagation();const ni=()=>{var Ui,or;if((0,ht.Rm)()&&!((or=(Ui=Mn==null?void 0:Mn.AssistantObject)==null?void 0:Ui.exercise)!=null&&or.can_preview)){it.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const br=_e()(Je.created_at,nr);_e()(wr).diff(_e()(br),"days")>0&&(Je!=null&&Je.is_random)?Fi():Je!=null&&Je.is_random?(0,Ee.xg)(`/classrooms/${dn.coursesId}/exercise/${Je.id}/random/preview?random=${Je.is_random}`):(0,Ee.xg)(`/classrooms/${dn.coursesId}/exercise/${Je.id}/detail?random=${Je.is_random}&tabs=2`)};if(Je!=null&&Je.is_encrypt){Li(ni);return}ni()}},Ot.createElement("i",{className:"iconfont icon-yulan3"}),Ot.createElement("div",null,"\u9884\u89C8")),(0,ht.RV)()&&Ot.createElement("span",{className:cr.flexBox,style:{marginRight:"16px"},onClick:()=>{const Jn=()=>{(0,Ee.xg)(`/classrooms/${dn.coursesId}/exercise/${Je.id}/detail?random=${Je.is_random}`)};if(Je!=null&&Je.is_encrypt){Li(Jn);return}Jn()}},Ot.createElement("i",{className:"iconfont icon-yuyuexiangqing1"}),Ot.createElement("div",null,"\u8BE6\u60C5")),(0,ht.GJ)()&&!(0,Ee._m)()&&Ot.createElement(Lr.Z,{placement:"bottom",content:Ot.createElement("div",{className:cr.popover},!(Je!=null&&Je.exercise_tips.includes("\u5BFC\u5165"))&&Ot.createElement("p",{onClick:Jn=>Oi(void 0,null,function*(){const ni=()=>{(0,Ee.xg)(`/classrooms/${dn.coursesId}/exercise/${Je.id}/detail?random=${Je.is_random}&tabs=3`)};if(Je!=null&&Je.is_encrypt){Li(ni);return}ni()})},"\u89C4\u5219\u8BBE\u7F6E"),(Je==null?void 0:Je.exercise_tips.includes("\u5BFC\u5165"))&&Ot.createElement("p",{onClick:Jn=>Oi(void 0,null,function*(){const ni=()=>{vn({type:"classroomList/setActionTabs",payload:{key:"\u8865\u5145\u6210\u7EE9",name:Je==null?void 0:Je.exercise_name,id:Je==null?void 0:Je.id,type:"hack"}})};if(Je!=null&&Je.is_encrypt){Li(ni);return}ni()})},"\u8865\u5145\u6210\u7EE9"),!(Je!=null&&Je.exercise_tips.includes("\u5BFC\u5165"))&&(0,ht.GJ)()&&Je.is_random&&Je.assistant_auth&&Ot.createElement("p",{onClick:Jn=>{Jn.stopPropagation();const ni=()=>{const Ui=_e()(Je.created_at,nr);_e()(wr).diff(_e()(Ui),"days")>0&&(Je!=null&&Je.is_random)?Fi():(0,Ee.xg)(`/classrooms/${dn.coursesId}/exercise/${Je.id}/random/edit?type=settings`)};if(Je!=null&&Je.is_encrypt){Li(ni);return}ni()}},"\u7F16\u8F91\u8003\u8BD5"),Ot.createElement("p",{onClick:Jn=>Oi(void 0,null,function*(){const ni=()=>{var Ui;vn({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u5220\u9664",selectArrs:[Je.id],selectArrsAll:[Je],params:dn,status:(Ui=Je==null?void 0:Je.exercise_tips)==null?void 0:Ui[0]}})};if(Je!=null&&Je.is_encrypt){Li(ni);return}ni()})},"\u5220\u9664\u8BD5\u5377"),!(Je!=null&&Je.exercise_tips.includes("\u5BFC\u5165"))&&Ot.createElement("p",{onClick:()=>{const Jn=()=>{vn({type:"exercise/setActionTabs",payload:{key:"\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93",selectArrs:[Je.id],params:dn}})};if(Je!=null&&Je.is_encrypt){Li(Jn);return}Jn()}},"\u52A0\u5165\u8BD5\u5377\u5E93"),((Tn=Je==null?void 0:Je.exercise_tips)==null?void 0:Tn.includes("\u672A\u5F00\u59CB"))&&(Je==null?void 0:Je.author_login)===((jn=Xe==null?void 0:Xe.userInfo)==null?void 0:jn.login)&&Ot.createElement("p",{onClick:Jn=>Oi(void 0,null,function*(){hi(Je)})}," ",Je!=null&&Je.is_encrypt?"\u89E3\u5C01":"\u52A0\u5BC6\u5C01\u5B58"),!(Je!=null&&Je.exercise_tips.includes("\u5BFC\u5165"))&&((0,ht.GJ)()||(($n=(gn=Mn==null?void 0:Mn.AssistantObject)==null?void 0:gn.exercise)==null?void 0:$n.can_stop))&&![1,3].includes(Je==null?void 0:Je.exercise_status)&&Ot.createElement("p",{onClick:Jn=>Oi(void 0,null,function*(){const ni=()=>{var Ui,or;if((0,ht.Rm)()&&!((or=(Ui=Mn==null?void 0:Mn.AssistantObject)==null?void 0:Ui.exercise)!=null&&or.can_stop)){it.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}vn({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u7ED3\u675F",selectArrs:[Je.id],params:dn,unified_setting:Je.unified_setting}})};if(Je!=null&&Je.is_encrypt){Li(ni);return}ni()})},"\u7ED3\u675F\u8003\u8BD5"))},Ot.createElement("span",{onClick:Jn=>Jn.stopPropagation(),className:cr.flexBox,style:{cursor:"default"}},Ot.createElement("i",{className:"iconfont icon-gengduo4"}),Ot.createElement("div",null,"\u66F4\u591A"))),(0,ht.dE)()&&Ot.createElement(Ot.Fragment,null,!!Je.off_limits&&Ot.createElement(de.Z,{title:`\u8FDF\u5230\u8D85\u8FC7${Je==null?void 0:Je.last_times}\u5206\u949F\uFF0C\u7981\u6B62\u8FDB\u5165\u7B54\u9898`},Ot.createElement("b",{className:"font16 c-grey-999"},"\u8FDF\u5230\u7981\u6B62\u7B54\u9898")),(Je==null?void 0:Je.exercise_type)==1&&!Je.off_limits&&Je.current_status===0&&Je.exercise_status>1&&!((gi=Je.exercise_tips)!=null&&gi.includes("\u5DF2\u622A\u6B62"))&&Ot.createElement("a",{className:cr.flexBox,style:{marginRight:"16px"},onClick:Jn=>{Jn.stopPropagation(),Jn.preventDefault(),Ii(Je,!0)},href:""},Ot.createElement("i",{className:"iconfont icon-jixukaoshi"}),Ot.createElement("div",null,(Je==null?void 0:Je.screen_used_num)>(Je==null?void 0:Je.screen_total_num)&&"\u7533\u8BF7"," \u7EE7\u7EED\u8003\u8BD5")),!((pt=Je.exercise_tips)!=null&&pt.includes("\u5DF2\u622A\u6B62"))&&(Je==null?void 0:Je.screen_used_num)>(Je==null?void 0:Je.screen_total_num)&&Ot.createElement("a",{className:cr.flexBox,style:{marginRight:"16px"},onClick:Jn=>{Jn.stopPropagation(),Jn.preventDefault(),Ii(Je,!0)},href:""},Ot.createElement("i",{className:"iconfont icon-jixukaoshi"}),Ot.createElement("div",null,"\u7533\u8BF7\u7EE7\u7EED\u8003\u8BD5")),!Je.off_limits&&Je.current_status===1&&(Je==null?void 0:Je.screen_used_num)<(Je==null?void 0:Je.screen_total_num)&&Je.exercise_status>1&&document.domain!="kepukehuan.educoder.net"&&!((Je==null?void 0:Je.exercise_type)==2&&(Je==null?void 0:Je.exercise_status)!=3)&&Ot.createElement("span",{className:cr.flexBox,style:{marginRight:"16px"},onClick:Jn=>Oi(void 0,null,function*(){var ni;if(Jn.stopPropagation(),!(Je!=null&&Je.answered_open)){it.ZP.info("\u8001\u5E08\u5DF2\u8BBE\u7F6E\u672C\u8BD5\u5377\u5728\u4EA4\u5377\u540E\u4E0D\u53EF\u67E5\u770B");return}yield(0,ii.w)(dn.coursesId,Je.id,"\u6B63\u5728\u8FDB\u5165\u67E5\u770B\uFF0C\u8BF7\u7A0D\u540E..."),(0,Ee.xg)(`/classrooms/${dn.coursesId}/exercise/${Je.id}/users/${(ni=(0,ht.eY)())==null?void 0:ni.login}?check=true`)})},Ot.createElement("i",{className:"iconfont icon-chakankaoshi"}),Ot.createElement("div",null,"\u67E5\u770B\u8003\u8BD5")),(Je==null?void 0:Je.exercise_type)==1&&!Je.off_limits&&Je.current_status===2&&Je.exercise_status>1&&!((Vn=Je.exercise_tips)!=null&&Vn.includes("\u5DF2\u622A\u6B62"))&&Ot.createElement("a",{className:cr.flexBox,style:{marginRight:"16px",color:(Je==null?void 0:Je.is_redo)===1&&"red"},onClick:Jn=>{Jn.stopPropagation(),Jn.preventDefault(),Ii(Je)},href:""},Ot.createElement("i",{className:"iconfont icon-a-kaishijixudajuan"}),Ot.createElement("div",null,(Je==null?void 0:Je.is_redo)===0?"\u5F00\u59CB\u8003\u8BD5":"\u91CD\u65B0\u8003\u8BD5")),(Je==null?void 0:Je.exercise_type)==2&&!Je.off_limits&&Je.exercise_status>1&&!((Wn=Je.exercise_tips)!=null&&Wn.includes("\u5DF2\u622A\u6B62"))&&Ot.createElement(de.Z,{title:Ot.createElement("span",null,"\u672C\u6B21\u8003\u8BD5\u53EF\u91CD\u590D\u8003\u8BD5",Je==null?void 0:Je.simulate_exercise_num,"\u6B21\uFF0C\u5269\u4F59",Hi(),"\u6B21")},Ot.createElement("a",{className:cr.flexBox,onClick:Jn=>{Hi()==0&&(Je==null?void 0:Je.current_status)!=0||(Jn.stopPropagation(),Jn.preventDefault(),Ii(Je))},href:""},Ot.createElement("i",{className:`iconfont ${(Je==null?void 0:Je.current_status)!=0?"icon-a-kaishijixudajuan":"icon-jixukaoshi"}`}),Ot.createElement("div",null,(Je==null?void 0:Je.current_status)!=0?"\u5F00\u59CB\u8003\u8BD5":"\u7EE7\u7EED\u8003\u8BD5"))),(Je==null?void 0:Je.ai_push_wrong_question)&&(Je==null?void 0:Je.whole_exercise_status)===3&&!((Rn=Je==null?void 0:Je.exercise_tips)!=null&&Rn.includes("\u672A\u63D0\u4EA4"))&&Ot.createElement("span",{className:cr.flexBox,style:{marginRight:"16px"},onClick:Jn=>Oi(void 0,null,function*(){var ni,Ui;if(Jn.stopPropagation(),(Je==null?void 0:Je.wrong_questions_size)===0){it.ZP.warning("\u672C\u6B21\u8003\u8BD5\u4F60\u65E0\u9700\u8FDB\u884C\u9519\u9898\u5DE9\u56FA\uFF5E");return}if(((ni=Je==null?void 0:Je.progress)==null?void 0:ni.stat)===1){it.ZP.warning("\u63A8\u8350\u8BD5\u9898\u6B63\u5728\u751F\u6210\u4E2D\uFF0C\u8BF7\u7B49\u5F85\u751F\u6210\u5B8C\u6210\u540E\u518D\u5F00\u59CB\u5DE9\u56FA");return}(0,Ee.xg)(`/classrooms/${dn.coursesId}/exercise/${Je.id}/wrongAnswer/${(Ui=(0,ht.eY)())==null?void 0:Ui.login}`)})},Ot.createElement("i",{className:"iconfont icon-cuotigonggu"}),Ot.createElement("div",null,"\u9519\u9898\u5DE9\u56FA"))))),(0,ht.GJ)()&&Ot.createElement("p",{style:{display:"flex"}},Ot.createElement("span",{className:"c-grey-666",style:{display:"inline-block",maxWidth:"90px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",WebkitLineClamp:1},title:Je.author},Je.author),Ot.createElement("span",{className:"ml30 c-grey-666"},"\u521B\u5EFA\u65F6\u95F4\uFF1A",_e()(Je.created_at).format("YYYY-MM-DD HH:mm:ss")),((Ln=Je==null?void 0:Je.exercise_tips)==null?void 0:Ln.includes("\u672A\u5F00\u59CB"))&&Je.publish_time&&Ot.createElement("span",{className:"ml30 c-grey-666"},"\u5F00\u59CB\u65F6\u95F4\uFF1A",_e()(Je.publish_time).format("YYYY-MM-DD HH:mm:ss")),Ot.createElement("span",{className:"ml30 c-grey-666"},"\u7B54\u9898\u65F6\u957F\uFF1A",Je.time===null?"\u4E0D\u9650":`${Je.time}\u5206\u949F`),Ot.createElement("span",{className:"ml30 c-grey-666"},"\u7C7B\u578B\uFF1A",Je.is_random?"\u968F\u673A\u7EC4\u5377":"\u4EBA\u5DE5\u7EC4\u5377"),!((di=Je==null?void 0:Je.exercise_tips)!=null&&di.includes("\u672A\u5F00\u59CB"))&&!(Je!=null&&Je.is_make_up_exercise)&&!(Je!=null&&Je.exercise_tips.includes("\u5BFC\u5165"))&&Ot.createElement("span",{className:cr.iconV,style:{marginLeft:"auto",textAlign:"end"},onClick:Jn=>Oi(void 0,null,function*(){Jn.stopPropagation(),Jn.preventDefault(),gr||bn(),Ar(!gr)})},Ot.createElement(de.Z,{title:`${gr?"\u6536\u8D77":"\u5C55\u5F00"}`},Ot.createElement("i",{className:`iconfont icon-${gr?"shouqi":"xiala2"}`})))),(0,ht.dE)()&&Ot.createElement("p",{style:{display:"flex"}},Ot.createElement("span",{className:"c-grey-333"},Je.author),Ot.createElement("span",{className:"ml30 c-grey-999 mr20"},"\u7B54\u9898\u65F6\u957F\uFF1A",Je.time===null?"\u4E0D\u9650":`${Je.time}\u5206\u949F`),!!(Je!=null&&Je.exercise_left_time)&&Ot.createElement("span",{className:"ml15 c-grey-999"},"\u8003\u8BD5\u5269\u4F59\u65F6\u95F4\uFF1A",Je==null?void 0:Je.exercise_left_time),!!(Je!=null&&Je.before_start)&&Ot.createElement("span",{className:"ml15 c-grey-999"},"\u8DDD\u79BB\u8003\u8BD5\u5F00\u59CB\u65F6\u95F4\uFF1A",Je==null?void 0:Je.before_start)),(0,ht.GJ)()&&!((vi=Je==null?void 0:Je.exercise_tips)!=null&&vi.includes("\u672A\u5F00\u59CB"))&&Ot.createElement("p",null,Ot.createElement("span",{style:{letterSpacing:2},className:"c-grey-333 mr15"},"\u63D0\u4EA4\u72B6\u6001\uFF1A"),Ot.createElement("span",{className:"c-grey-333 mr20"},"\u672A\u5F00\u59CB ",Ot.createElement("span",null,Je==null?void 0:Je.unanswer_users)),Ot.createElement("span",{className:"c-grey-333 mr20"},"\u8003\u8BD5\u4E2D ",Ot.createElement("span",{style:{color:"rgb(90, 184, 145)"}},Je==null?void 0:Je.answering_users)),Ot.createElement("span",{className:"c-grey-333 mr20"},"\u5DF2\u4EA4\u5377 ",Ot.createElement("span",{style:{color:"#FC2D6B"}},Je==null?void 0:Je.answer_users)),Ot.createElement("span",{className:"c-grey-333"},"\u5DF2\u4EA4\u5377/\u672A\u7B54 ",Ot.createElement("span",{style:{color:"#FC2D6B"}},Je==null?void 0:Je.commit_with_no_answers_users))),(0,ht.GJ)()&&!((Dn=Je==null?void 0:Je.exercise_tips)!=null&&Dn.includes("\u672A\u5F00\u59CB"))&&gr&&xi.length>5&&Ot.createElement(Di.default,{scroll:{y:240},pagination:!1,dataSource:xi,onRow:Jn=>({onClick:ni=>{ni.stopPropagation(),ni.preventDefault()}}),onHeaderRow:(Jn,ni)=>({onClick:Ui=>{Ui.stopPropagation(),Ui.preventDefault()}}),rowKey:"course_group_id",style:{marginTop:"10px"},onChange:(Jn,ni,Ui)=>{Ui.field&&(dn.order_by=Ui.field),Ui.order||(dn.sort_direction="asc"),Ui.order==="ascend"&&(dn.sort_direction="asc"),Ui.order==="descend"&&(dn.sort_direction="desc"),Ui.order||(dn.sort_direction="asc"),bn()},columns:Ki}),(0,ht.GJ)()&&!((yi=Je==null?void 0:Je.exercise_tips)!=null&&yi.includes("\u672A\u5F00\u59CB"))&&gr&&xi.length<6&&xi.length>0&&Ot.createElement(Di.default,{rowKey:"course_group_id",pagination:!1,onRow:Jn=>({onClick:ni=>{ni.stopPropagation(),ni.preventDefault()}}),onHeaderRow:(Jn,ni)=>({onClick:Ui=>{Ui.stopPropagation(),Ui.preventDefault()}}),dataSource:xi,style:{marginTop:"10px"},onChange:(Jn,ni,Ui)=>{Ui.field&&(dn.order_by=Ui.field),Ui.order||(dn.sort_direction="asc"),Ui.order==="ascend"&&(dn.sort_direction="asc"),Ui.order==="descend"&&(dn.sort_direction="desc"),Ui.order||(dn.sort_direction="asc"),bn()},columns:Ki}),(Je==null?void 0:Je.total)!==void 0&&Ot.createElement("p",null,Ot.createElement("span",{className:"c-grey-333 mr15"},"\u96C6\u4E2D\u9605\u5377\u603B\u8FDB\u5EA6\uFF1A"),Ot.createElement("span",{className:"c-grey-333 mr20"},"\u603B\u8BC4\u6570",Ot.createElement("span",null,Je==null?void 0:Je.total)),Ot.createElement("span",{className:"c-grey-333 mr20"},"\u5DF2\u8BC4\u9605 ",Ot.createElement("span",{style:{color:"#4EACFF"}},Je==null?void 0:Je.finish_total)),Ot.createElement("span",{className:"c-grey-333"},"\u5F85\u8BC4\u9605 ",Ot.createElement("span",{style:{color:"#FC2D6B"}},Je==null?void 0:Je.unfinished_total)))),Ot.createElement(lt.Z,{closable:!0,successCb:()=>Ii(ur.current)}))};var _i=(0,Ve.connect)(({classroomList:Je})=>({classroomList:Je}))(Nr),Jr=Pe(46373),Zr=Pe(11492),Xr=Pe(19541),Rr=Pe(95024),Gr=Pe(87169),oo=Pe(98895),An=Pe(93603),ho=Pe(40746),Fn=Pe(97991),Kn=Pe(59301),zr=Object.defineProperty,Tr=Object.defineProperties,Co=Object.getOwnPropertyDescriptors,Yr=Object.getOwnPropertySymbols,Or=Object.prototype.hasOwnProperty,No=Object.prototype.propertyIsEnumerable,Qt=(Je,Yt,Lt)=>Yt in Je?zr(Je,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):Je[Yt]=Lt,mn=(Je,Yt)=>{for(var Lt in Yt||(Yt={}))Or.call(Yt,Lt)&&Qt(Je,Lt,Yt[Lt]);if(Yr)for(var Lt of Yr(Yt))No.call(Yt,Lt)&&Qt(Je,Lt,Yt[Lt]);return Je},Wt=(Je,Yt)=>Tr(Je,Co(Yt)),je=(Je,Yt)=>{var Lt={};for(var on in Je)Or.call(Je,on)&&Yt.indexOf(on)<0&&(Lt[on]=Je[on]);if(Je!=null&&Yr)for(var on of Yr(Je))Yt.indexOf(on)<0&&No.call(Je,on)&&(Lt[on]=Je[on]);return Lt},Qn=(Je,Yt,Lt)=>new Promise((on,Gn)=>{var vn=ke=>{try{Mn(Lt.next(ke))}catch(ct){Gn(ct)}},dn=ke=>{try{Mn(Lt.throw(ke))}catch(ct){Gn(ct)}},Mn=ke=>ke.done?on(ke.value):Promise.resolve(ke.value).then(vn,dn);Mn((Lt=Lt.apply(Je,Yt)).next())});const Ai=Je=>{var Yt=Je,{user:Lt,classroomList:on,globalSetting:Gn,loading:vn,dispatch:dn,match:Mn}=Yt,ke=je(Yt,["user","classroomList","globalSetting","loading","dispatch","match"]),ct,Xe,Pt,Ct,Xt,qt,sn,Tn,jn,gn,$n,gi,pt,Vn,Wn,Rn,Ln;const di=(0,Ve.useParams)(),[vi]=(0,Ve.useSearchParams)(),[Dn,yi]=(0,me.useState)(()=>Wt(mn({},di),{limit:20})),xi=(0,Ve.useLocation)(),{detailExerciseList:wi,detailTopBanner:gr,detailLeftMenus:Ar}=on,[ur,ri]=(0,me.useState)([]),[mr,rr]=(0,me.useState)(!1),[fr,nr]=(0,me.useState)([]),[wr,bn]=(0,me.useState)(!1),[Fi,Ii]=(0,me.useState)(!1),[Ki,Wi]=(0,me.useState)(!1),[Hi,hi]=(0,me.useState)(!1),[Li,pr]=(0,me.useState)("\u6309\u521B\u5EFA\u65F6\u95F4\u964D\u5E8F"),Jn=[{name:"\u6309\u521B\u5EFA\u65F6\u95F4\u5347\u5E8F",type:"created_at",direction:"asc"},{name:"\u6309\u521B\u5EFA\u65F6\u95F4\u964D\u5E8F",type:"created_at",direction:"desc"},{name:"\u6309\u8003\u8BD5\u65F6\u957F\u5347\u5E8F",type:"time",direction:"asc"},{name:"\u6309\u8003\u8BD5\u65F6\u957F\u964D\u5E8F",type:"time",direction:"desc"},{name:"\u6309\u8BD5\u5377\u540D\u79F0\u5347\u5E8F",type:"exercise_name",direction:"asc"},{name:"\u6309\u8BD5\u5377\u540D\u79F0\u964D\u5E8F",type:"exercise_name",direction:"desc"}];Dn.type=vi.get("tabs")==="all"?"":vi.get("tabs")||"",Dn.id=Dn.coursesId,(0,me.useEffect)(()=>{var ar,Ir,bo;if((ar=Lt==null?void 0:Lt.userInfo)!=null&&ar.login){if((0,ht.GJ)()){const Zo=Ee.cX.getItem(`${(Ir=Lt==null?void 0:Lt.userInfo)==null?void 0:Ir.login}Teacher`,"Exercise");Zo&&(Dn.sort_by=Zo==null?void 0:Zo.type,Dn.sort_direction=Zo==null?void 0:Zo.direction,pr(Zo==null?void 0:Zo.name))}dn({type:"classroomList/getClassroomExercisesList",payload:mn(mn({},Dn),di)})}else(bo=Lt==null?void 0:Lt.userInfo)!=null&&bo.username&&dn({type:"classroomList/getClassroomExercisesList",payload:mn(mn({},Dn),di)});rr(!1)},[(ct=Lt==null?void 0:Lt.userInfo)==null?void 0:ct.login,xi.pathname]),(0,me.useEffect)(()=>{on.actionTabs.key==="\u76EE\u5F55\u91CD\u547D\u540D\u6210\u529F"&&dn({type:"classroomList/getClassroomExercisesList",payload:mn(mn({},Dn),di)})},[on.actionTabs.key]),(0,me.useEffect)(()=>{on.actionTabs.key==="\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E"&&(bn(!0),Ii(gr==null?void 0:gr.show_unstart_exercise),Wi(gr==null?void 0:gr.forbid_end_exercise))},[on.actionTabs.key]),(0,me.useEffect)(()=>{ri([])},[wi]);const ni=(ar,Ir)=>{ri([]),Dn.page=ar,Dn.limit=Ir,dn({type:"classroomList/getClassroomExercisesList",payload:mn(mn({},Dn),di)})},Ui=ar=>{Dn.type=ar.key==="all"?"":ar.key,Dn.page=1,Ve.history.replace(`${xi.pathname}?tabs=${ar.key}`),hi(!1),dn({type:"classroomList/getClassroomExercisesList",payload:mn(mn({},Dn),di)})};(0,me.useEffect)(()=>{vi.get("tabs")==="all"&&(Dn.type="",Dn.page=1)},[vi.get("tabs")]),(0,me.useEffect)(()=>{(0,ht.Rm)()&&dn({type:"classroomList/getAssistantPermissions",payload:{course_id:Dn.coursesId}})},[(Xe=Lt==null?void 0:Lt.userInfo)==null?void 0:Xe.username]),(0,me.useEffect)(()=>{const ar=sessionStorage.getItem("illegalEntry");sessionStorage.getItem("illegalEntry")&&(sessionStorage.removeItem("illegalEntry"),ut.default.info({title:"\u63D0\u793A",centered:!0,width:600,content:Kn.createElement("div",null,"\u5728\u7EBF\u8003\u8BD5\u7981\u6B62\u4F7F\u7528\u94FE\u63A5\u76F4\u63A5\u8BBF\u95EE\u7B54\u9898\u9875\u9762\uFF0C\u8BF7\u4F7F\u7528\u4E0B\u9762\u4E24\u79CD\u6B63\u5E38\u65B9\u5F0F\u8FDB\u5165\u8003\u8BD5\u7B54\u9898\u9875\u9762\u3002",Kn.createElement("br",null),"1\u3001\u5728",Kn.createElement("span",{className:"c-red blod"},"\u8003\u8BD5\u5217\u8868"),"\u9875\u9762\u4E2D\uFF0C\u70B9\u51FB\u201C",Kn.createElement("span",{className:"c-blue blod"},"\u5F00\u59CB\u8003\u8BD5"),"\u201D\u6216\u201C",Kn.createElement("span",{className:"c-blue blod"},"\u7EE7\u7EED\u8003\u8BD5"),"\u201D\u6309\u94AE\u8FDB\u5165\u8003\u8BD5\u7B54\u9898\u9875\u9762\u3002",Kn.createElement("br",null),"2\u3001\u5728",Kn.createElement("span",{className:"c-red blod"},"\u8003\u8BD5\u8BE6\u60C5"),"\u9875\u9762\u4E2D\uFF0C\u70B9\u51FB\u201C",Kn.createElement("span",{className:"c-blue blod"},"\u5F00\u59CB\u8003\u8BD5"),"\u201D\u6216\u201C",Kn.createElement("span",{className:"c-blue blod"},"\u7EE7\u7EED\u8003\u8BD5"),"\u201D\u6309\u94AE\u8FDB\u5165\u8003\u8BD5\u7B54\u9898\u9875\u9762\u3002",Kn.createElement("br",null),ar==="allowRouter"&&Kn.createElement(Kn.Fragment,null,"3\u3001",Kn.createElement("span",{className:"c-red blod"},"\u4E25\u7981\u67E5\u770B\u4ED6\u4EBA\u7684\u8BD5\u5377\u3002"))),okText:"\u77E5\u9053\u4E86"}))},[]);const or=[{name:"\u5168\u90E8",id:"all",total:(Pt=wi.exercises_counts)==null?void 0:Pt.exercises_total_counts},{name:"\u672A\u5F00\u59CB",id:1,total:(Ct=wi.exercises_counts)==null?void 0:Ct.unstart_counts},{name:"\u8003\u8BD5\u4E2D",id:2,total:(Xt=wi.exercises_counts)==null?void 0:Xt.publish_counts},{name:"\u96C6\u4E2D\u9605\u5377",id:4,total:(qt=wi.exercises_counts)==null?void 0:qt.appraise_exercise_count},{name:"\u5DF2\u622A\u6B62",id:3,total:(sn=wi.exercises_counts)==null?void 0:sn.end_counts}],br=[{name:"\u6279\u91CF\u53D1\u5E03",icon:Kn.createElement("i",{className:"iconfont icon-fabu5"})},{name:"\u6279\u91CF\u7ED3\u675F",icon:Kn.createElement("i",{className:"iconfont icon-piliangjiezhi2"})},{name:"\u6279\u91CF\u5220\u9664",icon:Kn.createElement("i",{className:"iconfont icon-piliangshanchu2"})},{name:"\u8BBE\u4E3A\u516C\u5F00",icon:Kn.createElement("i",{className:"iconfont icon-sheweigongkai2"})},{name:"\u52A0\u5165\u8BD5\u5377\u5E93",icon:Kn.createElement("i",{className:"iconfont icon-piliangjiaru font14"})}].filter(ar=>(0,ht.GJ)()?!0:ar.name!=="\u6279\u91CF\u5220\u9664").filter(ar=>gr.is_public?!0:ar.name!=="\u8BBE\u4E3A\u516C\u5F00"),co=()=>ut.default.info({title:"\u9898\u5E93\u6539\u7248\u544A\u77E5",content:Kn.createElement(Kn.Fragment,null,"EduCoder\u5DF2\u5347\u7EA7\u9898\u5E93\u529F\u80FD\uFF0C\u6240\u6709\u8BD5\u9898\u5747\u9700\u5339\u914D\u77E5\u8BC6\u70B9\u3002 \u5F53\u524D\u8BD5\u5377\u6240\u6D89\u53CA\u8BD5\u9898\u5747\u672A\u5339\u914D\u77E5\u8BC6\u70B9\uFF0C\u65E0\u6CD5\u968F\u673A\u62BD\u53D6\uFF0C\u5DF2\u4E0D\u80FD\u6709\u6548\u4F7F\u7528\u3002\u8BF7\u5728\u8BD5\u5377\u5E93\u91CD\u65B0\u7EC4\u5377\u540E\u4F7F\u7528\u3002 \u7531\u6B64\u5E26\u6765\u7684\u4E0D\u4FBF\uFF0C\u656C\u8BF7\u8C05\u89E3\uFF01")}),mo="YYYY-MM-DD",To=_e()("2020-11-15",mo),qr=ar=>{var Ir;Dn.sort_by=ar.type,Dn.sort_direction=ar.direction,(0,ht.GJ)()&&Ee.cX.setItem(`${(Ir=Lt==null?void 0:Lt.userInfo)==null?void 0:Ir.login}Teacher`,ar,"Exercise"),Dn.page=1,dn({type:"classroomList/getClassroomExercisesList",payload:mn({},Dn)}),pr(ar.name)},ta=()=>Kn.createElement(nt.default,null,Kn.createElement(nt.default.Item,{key:1,onClick:()=>{var ar,Ir;if((0,ht.Rm)()&&!((Ir=(ar=on==null?void 0:on.AssistantObject)==null?void 0:ar.exercise)!=null&&Ir.can_create)){it.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}dn({type:"exercise/setActionTabs",payload:{key:"\u8BD5\u5377\u9009\u7528",params:Dn}})}},"\u5FEB\u901F\u9009\u62E9\u8BD5\u5377"),Kn.createElement(nt.default.Item,{key:2,onClick:()=>{var ar,Ir;if((0,ht.Rm)()&&!((Ir=(ar=on==null?void 0:on.AssistantObject)==null?void 0:ar.exercise)!=null&&Ir.can_create)){it.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}window.scrollTo(0,0),Ve.history.push(`/classrooms/${Dn.coursesId}/exercise/add?catalogue=${(di==null?void 0:di.categoryId)||""}`)}},"\u521B\u5EFA\u65B0\u8BD5\u5377"),Kn.createElement(nt.default.Item,{key:3,onClick:()=>{var ar,Ir;if((0,ht.Rm)()&&!((Ir=(ar=on.AssistantObject)==null?void 0:ar.practice)!=null&&Ir.can_create)){it.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}dn({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u5165\u5916\u90E8\u6210\u7EE9",type:"exercise"}})}},"\u5BFC\u5165\u5916\u90E8\u6210\u7EE9")),Fo=ar=>Qn(void 0,null,function*(){var Ir,bo,Zo,Ko,Io,Eo,ia,ma;const Oo=ar.name;if(((Ir=Lt==null?void 0:Lt.userInfo)==null?void 0:Ir.user_status)===2&&ar.name==="\u6279\u91CF\u53D1\u5E03"){(0,Ie.Rd)();return}const Da=[];if((bo=wi.exercises)==null||bo.map(Kr=>{if(ur.includes(Kr.id)&&Kr.is_random){const so=_e()(Kr.created_at,mo);_e()(To).diff(_e()(so),"days")>0&&(Kr!=null&&Kr.is_random)&&Da.push(Kr)}}),ur==""){let Kr="\u8BF7\u9009\u62E9\u4F60\u8981\u64CD\u4F5C\u7684\u4EFB\u52A1";Oo==="\u52A0\u5165\u8BD5\u5377\u5E93"&&(Kr="\u8BF7\u9009\u62E9\u8981\u52A0\u5165\u8BD5\u5377\u5E93\u7684\u8BD5\u5377"),it.ZP.error(Kr)}else if(Da.length)co();else{if(Oo==="\u6279\u91CF\u53D1\u5E03"){if((0,ht.Rm)()&&!((Ko=(Zo=on==null?void 0:on.AssistantObject)==null?void 0:Zo.exercise)!=null&&Ko.can_publish)){it.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}let Kr=!1;wi.exercises.forEach(Do=>{ur.includes(Do.id)&&Do.total_num===0&&Do.is_random&&(Kr=!0)});let so;if(so=(Eo=(Io=wi.exercises.filter(Do=>ur.includes(Do==null?void 0:Do.id)).filter(Do=>(Do==null?void 0:Do.exercise_question_count)===0))==null?void 0:Io[0])==null?void 0:Eo.exercise_name,(so==null?void 0:so.length)>0){it.ZP.warning(`${so}\u8BD5\u5377\u5185\u6CA1\u6709\u8BD5\u9898\u4E0D\u5141\u8BB8\u53D1\u5E03\u8003\u8BD5`);return}if(Kr){it.ZP.warning("\u968F\u673A\u8BD5\u5377\u8FD8\u672A\u5728\u8BE5\u8BFE\u5802\u751F\u6210\u8BD5\u5377\uFF0C\u8BF7\u70B9\u51FB\u7F16\u8F91\u53BB\u8BBE\u7F6E\u51FA\u5377\u6570\u91CF\u5427\u3002");return}let uo=!1;if(wi.exercises.forEach(Do=>{ur.includes(Do.id)&&Do.exercise_status!==1&&(uo=!0)}),uo){it.ZP.warning("\u8BD5\u5377\u5DF2\u53D1\u5E03\u8003\u8BD5\u4E0D\u53EF\u6279\u91CF\u53D1\u5E03\u3002");return}}if(Oo==="\u52A0\u5165\u8BD5\u5377\u5E93"){const Kr=yield(0,ee.ZP)(`/api/courses/${Dn.id}/exercises/check_exercise_cover.json`,{method:"post",body:{check_ids:[...ur]}});if(((ia=Kr==null?void 0:Kr.cover_exercises)==null?void 0:ia.length)>0){nr(Kr==null?void 0:Kr.cover_exercises);return}}dn({type:"exercise/setActionTabs",payload:{key:Oo,selectArrs:ur,selectArrsAll:(ma=wi.exercises)==null?void 0:ma.filter(Kr=>ur.includes(Kr.id)),params:Dn,type:1}})}});return Kn.createElement("section",{className:"minH500"},Kn.createElement(Jr.Z,{isLoading:vn["classroomList/getClassroomExercisesList"],tabDataSource:or,isAdmin:(0,ht.GJ)(),dispatch:dn,type:wi==null?void 0:wi.main_category_name,isExercise:!0,user:Lt,getDropdownMenu:ta,onTabMenuClick:Ui,classroomList:on,defaultSelectedKeys:[Dn.type||"all"]}),Kn.createElement(Zr.Z,{dataSource:wi.exercises||[],isAdmin:(0,ht.GJ)(),batchStatus:Hi,SortMenuName:Li,setSortMenuName:pr,SortMenus:Jn,onSearch:ar=>{Dn.search=ar.trim(),Dn.page=1,dn({type:"classroomList/getClassroomExercisesList",payload:mn({},Dn)})},isShowMode:!0,onModeChange:ar=>{Dn.is_normal=ar,Dn.page=1,dn({type:"classroomList/getClassroomExercisesList",payload:mn({},Dn)})},onSort:qr,onBatch:ar=>hi(ar)}),Kn.createElement(ze.Z,{loading:vn["classroomList/getClassroomExercisesList"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30"},(Tn=wi.exercises_counts)!=null&&Tn.exercises_all_counts?wi.exercises.map(function(ar,Ir){return Kn.createElement(_i,{key:Ir,v:ar,k:Ir,match:Mn,batchStatus:Hi,selectArrs:ur,setSelectArrs:ri,dispatch:dn,params:Dn,user:Lt,manageAllGroup:wi.manage_all_group})}):Kn.createElement(ne.Z,null),Kn.createElement("aside",{className:"tc mb50 mt30"},((jn=wi.exercises_counts)==null?void 0:jn.exercises_all_counts)>0&&Kn.createElement(Ue.Z,{showTotal:ar=>{var Ir;return`\u5171 ${(Ir=wi==null?void 0:wi.exercises_counts)==null?void 0:Ir.exercises_all_counts} \u6761`},showSizeChanger:!0,onChange:ni,defaultCurrent:Dn.page,current:Dn.page||1,pageSize:Dn.limit||20,total:wi.exercises_counts&&wi.exercises_counts.exercises_all_counts}))),ur.length>0&&(0,ht.GJ)()&&Kn.createElement(yt.Z,{offsetBottom:0},Kn.createElement(Xr.Z,{buttonDataSource:br,onButtonClick:Fo,useBatchStatus:hi,setSeleArr:ri,catalogue:(($n=(gn=Ar==null?void 0:Ar.course_modules)==null?void 0:gn.find(ar=>ar.type==="exercise"))==null?void 0:$n.second_category)||[],addCatalogue:ar=>{ar.preventDefault(),dn({type:"classroomList/setActionTabs",payload:{key:"\u6DFB\u52A0\u76EE\u5F55",params:Dn,selectArrs:{category_id:wi==null?void 0:wi.main_category_id,type:"exercise"}}})},allSelect:ur.length?ur.length===((pt=(gi=wi.exercises)==null?void 0:gi.filter(ar=>!ar.is_make_up_exercise))==null?void 0:pt.length):!1,setAllSelect:ar=>{var Ir;ar.target.checked?ri((Ir=wi==null?void 0:wi.exercises)==null?void 0:Ir.filter(bo=>!bo.is_make_up_exercise).map(bo=>bo.id)):ri([])},selectArrs:ur,onMenuClick:ar=>Qn(void 0,[ar],function*({key:Ir}){if(ur=="")return it.ZP.error("\u8BF7\u9009\u62E9\u4F60\u8981\u64CD\u4F5C\u7684\u4EFB\u52A1"),null;(yield(0,ee.ZP)(`/api/courses/${Dn.id}/exercises/move_to_category.json`,{method:"post",body:{exercise_ids:ur,new_category_id:Ir}})).status===0&&(it.ZP.success("\u64CD\u4F5C\u6210\u529F"),dn({type:"classroomList/getClassroomExercisesList",payload:mn({},di)}))})})),Kn.createElement(vt.Z,null),Kn.createElement(zt.Z,null),Kn.createElement(Pi,null),Kn.createElement(tt,null),Kn.createElement(oo.Z,{onOk:()=>{dn({type:"classroomList/getClassroomExercisesList",payload:mn({},di)})}}),Kn.createElement(An.Z,{onOk:()=>{}}),Kn.createElement(Dt,{cb:()=>ri([])}),Kn.createElement(lr,null),Kn.createElement(lt.Z,null),Kn.createElement(ut.default,{title:Kn.createElement("span",null,Kn.createElement(Gr.Z,{style:{color:"#faad14",fontSize:"18px"}})," \u52A0\u5165\u8BD5\u5377\u5E93\u63D0\u793A"),open:fr.length>0,footer:!1,onCancel:()=>{nr([])}},Kn.createElement("div",{style:{height:300,overflow:"auto"}},Kn.createElement("div",null,"\u6709",fr==null?void 0:fr.length,"\u5F20\u8BD5\u5377\u5728\u8BD5\u5377\u5E93\u91CD\u590D\uFF0C\u662F\u5426\u9700\u8981\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377\uFF1F"),fr==null?void 0:fr.map(ar=>Kn.createElement("div",{style:{marginTop:25}},Kn.createElement("div",null,"\u8BD5\u5377\uFF1A",ar==null?void 0:ar.origin_exercise_nam),Kn.createElement("div",null,"\u539F\u8BD5\u5377\uFF1A",Kn.createElement("a",{href:`/paperlibrary/see/${ar==null?void 0:ar.examination_bank_id}?defaultActiveKey=0`,target:"_blank"},ar==null?void 0:ar.examination_bank_name))))),Kn.createElement("div",{style:{textAlign:"end"}},Kn.createElement(ot.ZP,{style:{height:30},onClick:()=>Qn(void 0,null,function*(){const ar=yield(0,ee.ZP)(`/api/courses/${Dn.id}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:[...ur],update:1}});(ar==null?void 0:ar.status)===0&&(it.ZP.info("\u8986\u76D6\u6210\u529F"),nr([]))})},"\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377"),Kn.createElement(ot.ZP,{type:"primary",onClick:()=>Qn(void 0,null,function*(){const ar=yield(0,ee.ZP)(`/api/courses/${Dn.id}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:[...ur]}});(ar==null?void 0:ar.status)===0&&(it.ZP.info("\u5F62\u6210\u6210\u529F"),nr([]))}),style:{marginLeft:10,height:30}},"\u5F62\u6210\u65B0\u8BD5\u5377"))),Kn.createElement(ut.default,{title:"\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E",open:wr,centered:!0,onOk:()=>Qn(void 0,null,function*(){let ar=yield(0,ee.ZP)(`/api/courses/${Dn.coursesId}/update_show_unstart_exercise`,{method:"put",body:{show_unstart_exercise:Fi,forbid_end_exercise:Ki}});(ar==null?void 0:ar.status)===0&&(bn(!1),dn({type:"classroomList/setActionTabs",payload:{key:""}}),dn({type:"classroomList/getClassroomTopBanner",payload:{id:Dn.coursesId}}),it.ZP.info("\u64CD\u4F5C\u6210\u529F"))}),onCancel:()=>{bn(!1),dn({type:"classroomList/setActionTabs",payload:{key:""}})}},Kn.createElement(Me.default,{checked:Fi,onChange:ar=>{Ii(ar.target.checked)}},"\u5141\u8BB8\u5B66\u751F\u67E5\u770B\u5DF2\u53D1\u5E03\u4F46\u672A\u5F00\u59CB\u7684\u8003\u8BD5",Kn.createElement("span",{style:{color:"#666666"}},"\uFF08\u8003\u8BD5\u5F00\u59CB\u4E4B\u540E\u5B66\u751F\u624D\u80FD\u4F5C\u7B54\uFF09")),Kn.createElement(Me.default,{className:"mt20",checked:Ki,onChange:ar=>{Wi(ar.target.checked)}},"\u7981\u6B62\u5B66\u751F\u67E5\u770B\u5DF2\u622A\u6B62\u7684\u8003\u8BD5")),Kn.createElement(Rr.Z,null),Kn.createElement(Kn.Fragment,null,Kn.createElement(ho.T$,{onCancel:()=>{dn({type:"classroomList/setActionTabs",payload:Wt(mn({},on==null?void 0:on.actionTabs),{open:""})})},open:((Vn=on==null?void 0:on.actionTabs)==null?void 0:Vn.open)==="\u624B\u673A\u53F7\u7ED1\u5B9A"}),Kn.createElement(ho.$i,{onCancel:()=>{dn({type:"classroomList/setActionTabs",payload:Wt(mn({},on==null?void 0:on.actionTabs),{open:""})})},onFinish:()=>{dn({type:"classroomList/getClassroomExercisesList",payload:mn(mn({},Dn),di)})},open:((Wn=on==null?void 0:on.actionTabs)==null?void 0:Wn.open)==="\u8BD5\u5377\u5C01\u5B58",Data:Wt(mn({},on==null?void 0:on.actionTabs),{type:"exercise"})}),Kn.createElement(ho.K1,{onCancel:()=>{dn({type:"classroomList/setActionTabs",payload:Wt(mn({},on==null?void 0:on.actionTabs),{open:""})})},onFinish:()=>{dn({type:"classroomList/getClassroomExercisesList",payload:mn(mn({},Dn),di)})},open:((Rn=on==null?void 0:on.actionTabs)==null?void 0:Rn.open)==="\u89E3\u5C01",Data:Wt(mn({},on==null?void 0:on.actionTabs),{type:"exercise"})}),Kn.createElement(ho.O7,{onCancel:()=>{dn({type:"classroomList/setActionTabs",payload:Wt(mn({},on==null?void 0:on.actionTabs),{open:""})})},onFinish:()=>{dn({type:"classroomList/getClassroomExercisesList",payload:mn(mn({},Dn),di)})},open:((Ln=on==null?void 0:on.actionTabs)==null?void 0:Ln.open)==="\u63D0\u793A",Data:Wt(mn({},on==null?void 0:on.actionTabs),{type:"exercise"})})),Kn.createElement(Fn.Z,null))};var qi=(0,Ve.connect)(({user:Je,classroomList:Yt,loading:Lt,globalSetting:on})=>({user:Je,classroomList:Yt,globalSetting:on,loading:Lt.effects}))(Ai)},48716:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Q8:function(){return He},d0:function(){return jt},w6:function(){return st}});var me=Pe(59301),Ve=Pe(16326),ut=Pe(82326),nt=Pe(6767),it=Pe(62957),ze=Pe(47889),Ue=Pe(77019),yt=Pe(5269),ot=Pe(25399),Me=Pe(62673),Et=Pe(99571),_e=Pe(61186),ht=Pe.n(_e),Ee=Pe(48790),ne=Pe(38986),ee=Pe(89392),ue=Pe.n(ee),se=Pe(51257),de=Pe(22982),pe=Pe(25690),ye=Pe(43155),Ce=Pe(40197),Re=Pe(59229),Oe=Pe(3039),We=Pe(75736),Be=Pe(59301),Ie=Object.defineProperty,Qe=Object.defineProperties,rt=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,At=(Vt,wn,Dt)=>wn in Vt?Ie(Vt,wn,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):Vt[wn]=Dt,Tt=(Vt,wn)=>{for(var Dt in wn||(wn={}))gt.call(wn,Dt)&&At(Vt,Dt,wn[Dt]);if(xt)for(var Dt of xt(wn))bt.call(wn,Dt)&&At(Vt,Dt,wn[Dt]);return Vt},Nt=(Vt,wn)=>Qe(Vt,rt(wn)),Ut=(Vt,wn,Dt)=>new Promise((vt,zt)=>{var En=Fe=>{try{Ze(Dt.next(Fe))}catch(xe){zt(xe)}},kn=Fe=>{try{Ze(Dt.throw(Fe))}catch(xe){zt(xe)}},Ze=Fe=>Fe.done?vt(Fe.value):Promise.resolve(Fe.value).then(En,kn);Ze((Dt=Dt.apply(Vt,wn)).next())});function st(Vt,wn){const Dt=[];for(let vt=Vt;vt<wn;vt++)Dt.push(vt);return Dt}const He=(Vt,wn,Dt)=>{const vt=Vt<ht()().startOf("day"),zt=Vt>ht()(wn).endOf("day"),En=Vt<ht()(Dt).startOf("day");return wn?Dt?ht()()<=ht()(Dt)?En||zt:vt||zt:Vt&&vt||zt:Dt&&ht()()<=ht()(Dt)?En:vt},jt=(Vt,wn)=>{const Dt=parseInt(ht()(Vt).format("HH")),vt=parseInt(ht()().format("HH")),zt=parseInt(ht()().format("mm"));if(!Vt)return{disabledHours:()=>st(0,vt),disabledMinutes:()=>st(0,zt)};if(wn){const En=parseInt(ht()(wn).format("HH")),kn=parseInt(ht()(wn).format("mm"));return ht()(Vt).isSame(ht()(wn),"day")?{disabledHours:()=>st(0,En),disabledMinutes:()=>Dt<=En?st(0,kn):[]}:void 0}if(ht()(Vt).isSame(ht()(),"day"))return{disabledHours:()=>st(0,vt),disabledMinutes:()=>ht()(Vt).isSame(ht()(),"hour")&&Dt<=vt?st(0,zt):[]}},fn=(Vt,wn)=>Vt==null?void 0:Vt.map(Dt=>{var vt;return(vt=wn==null?void 0:wn.find(zt=>zt.value===Dt))==null?void 0:vt.id}),{RangePicker:Bt}=Ve.default,{Option:Ft}=ut.default,It=({shixunHomeworks:Vt,loading:wn,dispatch:Dt,classroomList:vt,user:zt})=>{var En,kn,Ze,Fe,xe,Te,Ye,De,tt;const Ht=(0,pe.useParams)(),{workSetting:$t,workList:Sn,shixunWorkList:en,headerInfo:kt,changeData:nn}=Vt,[hn,zn]=(0,me.useState)(!1),[fi,_n]=(0,me.useState)(!1);let[Pi,Ci]=(0,me.useState)([]),[Yn,Ei]=(0,me.useState)([]),[pi,ji]=(0,me.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,penalty_type:ye.Q.Percent,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,action_analysis:!1,work_end_forbid_evaluate:!1});const[Qi,lr]=(0,me.useState)({}),[Lr,Di]=(0,me.useState)({});(0,me.useEffect)(()=>()=>{Ci([])},[]),(0,me.useEffect)(()=>{zn(!(0,Ee.GJ)())},[(0,Ee.GJ)()]);const cr=()=>{Dt({type:"shixunHomeworks/getWorkSetting",payload:Tt({},Ht)})};(0,me.useEffect)(()=>{if(!($t!=null&&$t.course_id))return;Object.keys(pi).map(function(Xn){pi[Xn]=$t[Xn]}),(!pi.allow_late||!pi.unified_late)&&(pi.late_penalty=20,pi.penalty_type=ye.Q.Percent),pi.unified_setting||(pi.unified_late=!1,pi.unified_anonymous_comment=!1,pi.unified_anonymous_appeal=!1),Pi=JSON.parse(JSON.stringify($t.group_settings.map(Xn=>Nt(Tt({},Xn),{group_name:[Xn.group_name]})).filter(Xn=>Xn.publish_time!==null))),Yn=JSON.parse(JSON.stringify($t.allow_late_settings.map(Xn=>Nt(Tt({},Xn),{group_name:[Xn.group_name]})).filter(Xn=>Xn.late_time!==null))),ji(Tt({},pi));const Un=(0,se.QE)((Pi==null?void 0:Pi.length)>0?Pi:[]);Ci([...Un]),(Yn==null?void 0:Yn.length)<=0?Ei([{penalty_type:ye.Q.Percent,late_penalty:20}]):Ei([...Yn])},[$t]);const to=()=>Ut(void 0,null,function*(){var Un,Xn;if(((Un=zt==null?void 0:zt.userInfo)==null?void 0:Un.user_status)===2){(0,Ce.Rd)();return}const ci=JSON.parse(JSON.stringify(pi));if(ci.challenge_settings.filter(ei=>!ei.hide),ci.categoryId=Ht.categoryId,(Xn=ci.challenge_settings)!=null&&Xn.every(ei=>!ei.checked)){nt.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(console.log(Pi),!pi.unified_setting)Pi=Pi==null?void 0:Pi.map(ei=>{var Gi;if(!ei.publish_time||!ei.end_time)throw nt.ZP.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!ei.group_name)throw nt.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return ei.group_name=typeof(ei==null?void 0:ei.group_name)=="string"?[ei==null?void 0:ei.group_name]:ei==null?void 0:ei.group_name,ei.group_id=(Gi=$t.group_settings)==null?void 0:Gi.filter(vr=>{var an;return(an=ei==null?void 0:ei.group_name)==null?void 0:an.includes(vr.group_name)}).map(vr=>vr.group_id||vr.id).toString().split(","),ei});else if(!pi.publish_time||!pi.end_time)throw nt.ZP.error("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A");if(ci.group_settings=Pi,pi.allow_late)if(pi.unified_late){if(pi.late_penalty===null||pi.late_penalty===void 0||pi.late_penalty<0||pi.late_penalty>100)throw nt.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!pi.late_time)throw nt.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else Yn=Yn==null?void 0:Yn.map(ei=>{var Gi,vr;if(ei.late_penalty===null||ei.late_penalty===void 0||ei.late_penalty<0||ei.late_penalty>100)throw nt.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!ei.late_time)throw nt.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!ei.group_name)throw nt.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return ei.group_name=typeof(ei==null?void 0:ei.group_name)=="string"?[ei==null?void 0:ei.group_name]:ei==null?void 0:ei.group_name,ei.group_id=(vr=(Gi=ei==null?void 0:ei.group_name)==null?void 0:Gi.map(an=>{var ln,Zt;let pn=(Zt=(ln=$t.group_settings)==null?void 0:ln.filter(zi=>(zi==null?void 0:zi.group_name)===an))==null?void 0:Zt[0];return pn==null?void 0:pn.group_id}))==null?void 0:vr.toString().split(","),ei}),ci.allow_late_settings=Yn;let mi=yield(0,We.Tr)({homework_common_ids:[parseInt(Ht.categoryId)],course_id:Ht.coursesId,type:"homework_common"});(mi==null?void 0:mi.student_count)===0?ki(ci):(Di(ci),lr(mi))}),ki=Un=>{var Xn;if(Un.total_score===null){nt.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(Un!=null&&Un.work_efficiency&&Un.eff_score===null){nt.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const ci=Un.challenge_settings.reduce((Gi,vr)=>Gi+Number(vr.challenge_score),0);if((ci==null?void 0:ci.toFixed(10))!==((Xn=Un.total_score-Un.eff_score)==null?void 0:Xn.toFixed(10))){nt.ZP.warning(`\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A${Un.total_score}\u5206`);return}const mi={shixun_evaluation:Un.shixun_evaluation,challenge_settings:Un.challenge_settings};let ei=()=>{var Gi;const vr=()=>Ut(void 0,null,function*(){_n(!0),(yield(0,ne.ZP)(`/api/homework_commons/${Ht.categoryId}/publish_setting.json`,{method:"post",body:Tt({},Un)})).status===0&&(nt.ZP.success("\u66F4\u65B0\u6210\u529F"),cr(),Dt({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:Tt({},Ht)})),_n(!1)});!(0,ee.isEqual)(nn,mi)&&!((Gi=kt==null?void 0:kt.homework_status)!=null&&Gi.includes("\u672A\u53D1\u5E03"))?it.default.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:vr}):vr()};$t!=null&&$t.high_resources_consume&&!($t!=null&&$t.high_resources_consume_permission)?Dt({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:Ht.coursesId,type:"shixun",type_id:Ht.categoryId,name:$t.homework_name,fn:()=>{ei()}}}):ei()},no=(Un,Xn,ci="group_id")=>{var mi;return Xn?Xn.find(ei=>ei[ci]===Un):(mi=$t==null?void 0:$t.group_settings)==null?void 0:mi.find(ei=>ei.group_id[0]===Un)},fo=($t==null?void 0:$t.allow_late)||($t==null?void 0:$t.anonymous_comment),po=Un=>{var Xn,ci;const mi=no(Un,$t==null?void 0:$t.allow_late_settings,"id"),ei=no(Un,$t==null?void 0:$t.anonymous_comment_settings),Gi=no(Un);return($t==null?void 0:$t.allow_late)&&mi&&ht()(mi==null?void 0:mi.late_time)<=ht()()||($t==null?void 0:$t.anonymous_comment)&&ei&&(ei==null?void 0:ei.evaluation_start)!==null||((ci=(ht()(Gi==null?void 0:Gi.end_time)<=ht()()&&((Xn=$t==null?void 0:$t.allow_late_settings)==null?void 0:Xn.filter(vr=>vr.group_id.includes(Un))))[0])==null?void 0:ci.late_time)!=null},io=(0,me.useMemo)(()=>($t==null?void 0:$t.allow_late)||($t==null?void 0:$t.all_group_late),[$t,kt]),hr=$t==null?void 0:$t.anonymous_comment,ao=Un=>{if(!Un)return!1;const Xn=no(Un,$t==null?void 0:$t.anonymous_comment_settings);return($t==null?void 0:$t.anonymous_comment)&&Xn&&(Xn==null?void 0:Xn.evaluation_start)!==null},be=(Un,Xn)=>{var ci,mi,ei,Gi,vr;Un!=null&&Un.group_id||(Un.group_id=fn(Un==null?void 0:Un.group_name,$t==null?void 0:$t.group_settings)),Dt({type:"classroomList/setActionTabs",payload:{key:"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",data:Un,index:Xn,rangePickerDisabled:(mi=(ci=Un==null?void 0:Un.group_id)==null?void 0:ci[0])!=null&&mi.publish_time?hn||(ht()()<=ht()((Gi=no((ei=Un==null?void 0:Un.group_id)==null?void 0:ei[0]))==null?void 0:Gi.publish_time)?!1:[!0,po((vr=Un==null?void 0:Un.group_id)==null?void 0:vr[0])]):!1,disabledDate:$t==null?void 0:$t.course_end_date}})};return Be.createElement("section",{className:de.Z.form},Be.createElement("div",{className:de.Z.title},"\u4F5C\u4E1A\u53D1\u5E03",Be.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u4F5C\u4E1A\u4E00\u65E6\u53D1\u5E03\u540E\u4E0D\u53EF\u53D8\u66F4\u8BD5\u9898\u53D1\u5E03\u6A21\u5F0F\uFF09")),Be.createElement("div",null,Be.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Be.createElement(ze.ZP.Group,{disabled:hn||!((En=kt==null?void 0:kt.homework_status)!=null&&En.includes("\u672A\u53D1\u5E03"))||(0,Ee.Rm)()&&!((kn=vt.AssistantObject.practice)!=null&&kn.can_publish),value:pi.unified_setting,onChange:Un=>{var Xn;if(!((Xn=kt==null?void 0:kt.homework_status)!=null&&Xn.includes("\u672A\u53D1\u5E03"))){nt.ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(pi.unified_setting=!pi.unified_setting,pi.unified_setting||(pi.unified_late=!1,Ei([{late_penalty:5}])),ji(Object.assign({},pi)),pi.unified_setting===!1&&Pi==""){Ci(Pi.concat({}));return}pi.unified_setting&&(Ci([]),Ei([{late_penalty:5}]))}},Be.createElement(ze.ZP,{value:!0,disabled:hn||!($t!=null&&$t.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u53D1\u5E03"),Be.createElement(ze.ZP,{disabled:hn||!((Ze=$t==null?void 0:$t.group_settings)!=null&&Ze.length),value:!1},"\u5206\u73ED\u53D1\u5E03")),((Fe=$t==null?void 0:$t.group_settings)==null?void 0:Fe.length)===0&&Be.createElement("div",{style:{color:"rgba(0, 0, 0, 0.25)",height:"22px"}},"\uFF08\u672C\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03\u201C\uFF09")),pi.unified_setting&&Be.createElement("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",height:"50px",marginTop:"1px"}},Be.createElement(Ue.Z,{align:"middle"},Be.createElement(yt.Z,{style:{marginLeft:"23px"}},"\u53D1\u5E03\u65F6\u95F4"),Be.createElement(yt.Z,{className:"ml10"},Be.createElement(Ve.default,{size:"large",disabled:hn||!((xe=kt==null?void 0:kt.homework_status)!=null&&xe.includes("\u672A\u53D1\u5E03")||(Te=kt==null?void 0:kt.homework_status)!=null&&Te.includes("\u672A\u5F00\u59CB"))||(0,Ee.Rm)()&&!((Ye=vt.AssistantObject.practice)!=null&&Ye.can_publish),style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:Un=>He(Un,$t==null?void 0:$t.course_end_date),disabledTime:Un=>jt(Un),value:pi.publish_time?ht()(pi.publish_time):"",onChange:(Un,Xn)=>{pi.publish_time=Xn,(pi.end_time==""||!pi.end_time)&&pi.unified_setting&&(pi.end_time=ht()(Un).add(7,"days").format("YYYY-MM-DD HH:mm:ss")),ji(Object.assign({},pi))}}))),Be.createElement(Ue.Z,{align:"middle",className:"pl30"},Be.createElement(yt.Z,null,"\u622A\u6B62\u65F6\u95F4"),Be.createElement(yt.Z,{className:"ml10"},Be.createElement(Ve.default,{size:"large",style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ht()((0,se.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:($t==null?void 0:$t.allow_late)&&($t==null?void 0:$t.homework_status.includes("\u5DF2\u622A\u6B62"))||hn||($t==null?void 0:$t.allow_late)&&ht()()>=ht()($t==null?void 0:$t.end_time)||(0,Ee.Rm)()&&!((De=vt.AssistantObject.practice)!=null&&De.can_publish),disabledDate:Un=>He(Un,$t==null?void 0:$t.course_end_date,pi.publish_time),disabledTime:Un=>jt(Un,pi.publish_time),value:pi.end_time?ht()(pi.end_time):"",onChange:(Un,Xn)=>{pi.end_time=Xn,ji(Object.assign({},pi))}})))),!pi.unified_setting&&(Pi==null?void 0:Pi.length)>0&&Be.createElement(Ue.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},Pi&&Pi.map(function(Un,Xn){var ci,mi,ei,Gi,vr,an,ln;return Be.createElement(yt.Z,{span:24,key:Xn},Be.createElement(Ue.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:Xn==(Pi==null?void 0:Pi.length)-1?"0px":"10px"}},Be.createElement("div",{style:{minWidth:85,marginRight:"15px",textAlign:"right"}},"\u53D1\u5E03\u89C4\u5219",Xn+1),Be.createElement(ut.default,{disabled:hn||((ci=kt==null?void 0:kt.homework_status)!=null&&ci.includes("\u672A\u53D1\u5E03")&&Un.id||ht()()<ht()(Un==null?void 0:Un.publish_time)?!1:!!(Un!=null&&Un.publish_time))||(0,Ee.Rm)()&&!((mi=vt.AssistantObject.practice)!=null&&mi.can_publish),mode:"multiple",className:de.Z.multiple_select,style:{width:"250px"},value:Un.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:Zt=>{var pn;if((0,Ee.Rm)()&&!((pn=vt.AssistantObject.practice)!=null&&pn.can_publish)){nt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Pi[Xn].group_name=Zt,Pi[Xn].group_id=Un.group_id;const zi=(0,ee.flattenDeep)(Pi.map(dr=>dr.group_name)),Ti=Yn.map(dr=>{let un=(dr==null?void 0:dr.group_name)||[];return Nt(Tt({},dr),{group_name:(0,ee.remove)(un,In=>zi.includes(In))})});Ei(Ti),Ci(Pi.slice())},maxTagCount:4,maxTagPlaceholder:Zt=>Be.createElement("div",{style:{cursor:"pointer"},onClick:()=>be(Un,Xn)},"+",Zt==null?void 0:Zt.length)},$t.group_settings&&$t.group_settings.map(function(Zt){if(!Pi.map(zi=>zi.group_name).flat().includes(Zt.group_name))return Be.createElement(Ft,{value:Zt.group_name,key:Zt.id},Zt.group_name)})),Be.createElement("div",{className:"ml20"},Be.createElement(Bt,{size:"large",ranges:{\u6B64\u523B:[Un.publish_time?ht()(Un.publish_time):ht()(),ht()()]},allowClear:!1,disabled:hn||(ht()()<=ht()((Gi=no((ei=Un==null?void 0:Un.group_id)==null?void 0:ei[0]))==null?void 0:Gi.publish_time)?!1:[!0,po((vr=Un==null?void 0:Un.group_id)==null?void 0:vr[0])]),style:{width:605},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:Zt=>He(Zt,$t==null?void 0:$t.course_end_date),disabledTime:Zt=>jt(Zt),showTime:{showNow:!0,format:"HH:mm",defaultValue:[ht()((0,se.U6)(),"HH:mm"),ht()((0,se.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:[Un.publish_time?ht()(Un.publish_time):void 0,Un.end_time?ht()(Un.end_time):void 0],onChange:(Zt,pn)=>{var zi;if((0,Ee.Rm)()&&!((zi=vt.AssistantObject.practice)!=null&&zi.can_publish)){nt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Pi[Xn].publish_time=pn[0],!Un.end_time&&pn[0]?Pi[Xn].end_time=ht()(pn[0]).add(7,"days"):Pi[Xn].end_time=pn[1],Ci([...Pi])},onCalendarChange:(Zt,pn,zi)=>{if(pn!=null&&pn[0]&&!pn[1]){const Ti=ht()(pn[0]).add(7,"days");Pi[Xn].publish_time=pn[0],Pi[Xn].end_time=Ti,Ci([...Pi])}}})),!hn&&Be.createElement("div",{style:{display:"flex",width:"50px"}},((an=Un==null?void 0:Un.group_id)==null?void 0:an.length)>1&&Be.createElement(ot.Z,{title:"\u89C4\u5219\u62C6\u5206"},Be.createElement("i",{className:"iconfont icon-chaifen ml10",style:{cursor:"pointer",color:"#3061d0"},onClick:()=>be(Un,Xn)})),Pi.length<((ln=$t==null?void 0:$t.group_settings)==null?void 0:ln.length)&&Be.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var Zt;if((0,Ee.Rm)()&&!((Zt=vt.AssistantObject.practice)!=null&&Zt.can_publish)){nt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ci(Pi.concat({}))}}),((Un==null?void 0:Un.publish_time)&&ht()()<ht()(Un==null?void 0:Un.publish_time)||!(Un!=null&&Un.publish_time))&&Xn!=0&&Be.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{const Zt=(0,ee.cloneDeep)(Yn);Zt.forEach((pn,zi)=>{pn.group_name&&(pn.group_name=pn.group_name.filter(Ti=>{var dr;return!((dr=Pi[Xn].group_name)!=null&&dr.includes(Ti))}))}),Pi=Pi.filter((pn,zi)=>Xn!==zi),Ei(Zt),Ci(Pi.slice()),setTimeout(()=>Ci(Pi.slice()),10)}}))))}))),Be.createElement(Ue.Z,null,Be.createElement(yt.Z,null,Be.createElement("div",{className:de.Z.title,style:{marginTop:"30px"}},"\u8865\u4EA4\u8BBE\u7F6E",Be.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u53EF\u5BF9\u5728\u4F5C\u4E1A\u53D1\u5E03\u65F6\u95F4\u8303\u56F4\u5185\u672A\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\uFF0C\u5EF6\u957F\u65F6\u95F4\u8FDB\u884C\u8865\u4EA4\uFF09"))),Be.createElement(yt.Z,{span:24,style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Be.createElement(Me.default,{checked:pi.allow_late,disabled:hn||io,onChange:Un=>{var Xn;if((0,Ee.Rm)()&&!((Xn=vt.AssistantObject.practice)!=null&&Xn.can_late)){nt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Un.target.checked&&it.default.warning({title:"\u5F00\u542F\u8865\u4EA4\u63D0\u793A",centered:!0,width:480,content:Be.createElement("div",{style:{padding:10,background:"#f5f6f9"}},Be.createElement("div",null,"1.\u5F00\u542F\u8865\u4EA4\u540E\u4E0D\u53EF\u5173\u95ED\uFF0C\u8865\u4EA4\u65B9\u5F0F\u63D0\u4EA4\u4FDD\u5B58\u540E\u4E0D\u53EF\u4FEE\u6539\uFF1B"),Be.createElement("div",null,"2.\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u5FC5\u987B\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\uFF1B"),Be.createElement("div",null,"3.\u73ED\u7EA7\u9636\u6BB5\u8FDB\u5165\u201C\u8865\u4EA4\u4E2D\u201D\u5219\u4E0D\u53EF\u53D8\u66F4\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3002"))}),pi.allow_late=!pi.allow_late,Yn==""&&Ei([{late_penalty:5}]),ji(Object.assign({},pi))}},Be.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")))),(pi==null?void 0:pi.allow_late)&&Be.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:"1px",color:"#666666"}},Be.createElement("div",{style:{display:"flex"}},Be.createElement("div",{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u65B9\u5F0F"),Be.createElement(ze.ZP.Group,{style:{marginLeft:"20px"},disabled:hn||($t==null?void 0:$t.anonymous_comment)||($t==null?void 0:$t.allow_late),value:pi.unified_late,onChange:Un=>{var Xn;if((0,Ee.Rm)()&&!((Xn=vt.AssistantObject.practice)!=null&&Xn.can_late)){nt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}pi.unified_late=Un.target.value,Yn==""&&!Un.target.value&&Ei([{penalty_type:ye.Q.Percent,late_penalty:20}]),ji(Tt({},pi))}},(pi==null?void 0:pi.unified_setting)&&Be.createElement(ze.ZP,{value:!0,disabled:!($t!=null&&$t.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u8865\u4EA4"),((tt=$t==null?void 0:$t.group_settings)==null?void 0:tt.length)>0&&Be.createElement(ze.ZP,{value:!1},"\u5206\u73ED\u8865\u4EA4"))),pi!=null&&pi.unified_late?Be.createElement(Be.Fragment,null,Be.createElement(Ue.Z,{align:"middle",style:{marginTop:"10px"}},Be.createElement(yt.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u6263\u5206"),Be.createElement(yt.Z,{className:"ml20"},Be.createElement(ye.Z,{disabled:hn||hr,value:{type:pi.penalty_type,inputValue:pi.late_penalty},onChange:Un=>{var Xn;if((0,Ee.Rm)()&&!((Xn=vt.AssistantObject.practice)!=null&&Xn.can_late)){nt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ji(Nt(Tt({},pi),{late_penalty:Un.inputValue,penalty_type:Un.type}))}})),Be.createElement(yt.Z,{flex:"1",className:"ml5"},Be.createElement("span",{className:"c-grey-c ml10"},pi.penalty_type===ye.Q.Number?"(\u8865\u4EA4\u65F6\u6309\u7167\u5B66\u751F\u603B\u6210\u7EE9\u6263\u5206)":"(\u5B66\u751F\u6700\u7EC8\u5F97\u5206=\u8865\u4EA4\u524D\u5F97\u5206+\u8865\u4EA4\u9636\u6BB5\u589E\u52A0\u7684\u5206\u503C*\uFF08100%-\u767E\u5206\u6BD4%\uFF09)"))),Be.createElement(Ue.Z,{align:"middle",style:{marginTop:"15px"}},Be.createElement(yt.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Be.createElement(yt.Z,{className:"ml20"},Be.createElement(Ve.default,{size:"large",allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ht()((0,se.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:hn||hr,value:pi.late_time?ht()(pi.late_time):"",disabledDate:Un=>He(Un,$t==null?void 0:$t.course_end_date),onChange:(Un,Xn)=>{var ci;if((0,Ee.Rm)()&&!((ci=vt.AssistantObject.practice)!=null&&ci.can_late)){nt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}pi.late_time=Xn,ji(Object.assign({},pi))}})))):Yn.map(function(Un,Xn){var ci;return Be.createElement(yt.Z,{span:24,key:Xn},Be.createElement(Ue.Z,{style:{display:"flex",alignItems:"center",marginTop:"10px"}},Be.createElement("div",{style:{width:"85px",marginLeft:"27px",textAlign:"right"}},"\u8865\u4EA4\u89C4\u5219",Xn+1),Be.createElement(ut.default,{disabled:hn||!((ci=kt==null?void 0:kt.homework_status)!=null&&ci.includes("\u672A\u53D1\u5E03"))&&Un.id||($t==null?void 0:$t.anonymous_comment),mode:"multiple",className:de.Z.multiple_select,style:{width:"212px",marginLeft:"18px"},value:typeof Un.group_name=="string"?[Un.group_name]:Un.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:mi=>{var ei;if((0,Ee.Rm)()&&!((ei=vt.AssistantObject.practice)!=null&&ei.can_late)){nt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Yn[Xn].group_name=mi,Yn[Xn].group_id=Un.group_id,Ei(Yn.slice())}},$t.group_settings&&$t.group_settings.map(function(mi){const ei=Yn.map(vr=>vr.group_name).flat(),Gi=Pi.map(vr=>vr.group_name).flat();if(pi!=null&&pi.unified_setting){if(!ei.includes(mi.group_name))return Be.createElement(Ft,{value:mi.group_name,key:mi.id},mi.group_name)}else if(Gi.includes(mi.group_name)&&!ei.includes(mi.group_name))return Be.createElement(Ft,{value:mi.group_name,key:mi.id},mi.group_name)})),Be.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u6263\u5206"),Be.createElement(ye.Z,{disabled:hn||ao(Un.id),value:{type:Un.penalty_type,inputValue:Un.late_penalty},onChange:mi=>{var ei;if((0,Ee.Rm)()&&!((ei=vt.AssistantObject.practice)!=null&&ei.can_late)){nt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Yn[Xn].late_penalty=mi.inputValue,Yn[Xn].penalty_type=mi.type,Ei([...Yn])}}),Be.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Be.createElement(Ve.default,{size:"large",disabled:hn||ao(Un.id),style:{width:225},showTime:{format:"HH:mm",defaultValue:ht()((0,se.U6)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:mi=>He(mi,$t==null?void 0:$t.course_end_date),format:"YYYY-MM-DD HH:mm",value:Un!=null&&Un.late_time?ht()(Un.late_time):void 0,onChange:(mi,ei)=>{var Gi;if((0,Ee.Rm)()&&!((Gi=vt.AssistantObject.practice)!=null&&Gi.can_late)){nt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Yn[Xn].late_time=ei,Ei([...Yn])}}),!hn&&Be.createElement("div",{style:{display:"flex",width:"50px"}},Be.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var mi;if((0,Ee.Rm)()&&!((mi=vt.AssistantObject.practice)!=null&&mi.can_late)){nt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ei(Yn.concat({penalty_type:ye.Q.Percent,late_penalty:20}))}}),Xn>0&&!Un.id&&Be.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{var mi;if((0,Ee.Rm)()&&!((mi=vt.AssistantObject.practice)!=null&&mi.can_late)){nt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Yn=Yn.filter((ei,Gi)=>Xn!==Gi),Ei(Yn.slice()),setTimeout(()=>Ei(Yn.slice()),10)}}))))})),!hn&&Be.createElement(Be.Fragment,null,Be.createElement(Et.ZP,{type:"primary",size:"large",loading:fi,style:{width:"138px",marginTop:"30px"},onClick:()=>to()},"\u4FDD\u5B58")),Be.createElement(Re.Z,{onConfirm:(Un,Xn)=>{Pi.splice(Un,0,...Xn),Pi.splice(Un+Xn.length,1);const ci=(0,se.QE)([...Pi]);Ci([...ci])}}),Be.createElement(Oe.Z,{resdata:Qi,type:"shixun",okloading:fi,oktext:(Qi==null?void 0:Qi.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Un=>Ut(void 0,null,function*(){_n(!0);let Xn=yield(0,ne.ZP)(`/api/courses/${Ht.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"homework_common",ids:[parseInt(Ht.categoryId)]}});_n(!1),(Xn==null?void 0:Xn.status)===0&&ki(Lr)})}))};Jt.ZP=(0,pe.connect)(({shixunHomeworks:Vt,classroomList:wn,loading:Dt,user:vt})=>({shixunHomeworks:Vt,classroomList:wn,loading:Dt.effects,user:vt}))(It)},93603:function(cn,Jt,Pe){"use strict";var me=Pe(59301),Ve=Pe(14566),ut=Pe(28284),nt=Pe(62957),it=Pe(6767),ze=Pe(54172),Ue=Pe(25690),yt=Pe(346),ot=Pe(19493),Me=Pe(38986),Et=Pe(61186),_e=Pe.n(Et),ht=Pe(51257),Ee=Pe(59301),ne=Object.defineProperty,ee=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,de=(Oe,We,Be)=>We in Oe?ne(Oe,We,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Oe[We]=Be,pe=(Oe,We)=>{for(var Be in We||(We={}))ue.call(We,Be)&&de(Oe,Be,We[Be]);if(ee)for(var Be of ee(We))se.call(We,Be)&&de(Oe,Be,We[Be]);return Oe},ye=(Oe,We,Be)=>new Promise((Ie,Qe)=>{var rt=bt=>{try{gt(Be.next(bt))}catch(At){Qe(At)}},xt=bt=>{try{gt(Be.throw(bt))}catch(At){Qe(At)}},gt=bt=>bt.done?Ie(bt.value):Promise.resolve(bt.value).then(rt,xt);gt((Be=Be.apply(Oe,We)).next())});const{Dragger:Ce}=Ve.default,Re=({classroomList:Oe,dispatch:We,onOk:Be})=>{const Ie=(0,Ue.useParams)(),[Qe]=ut.default.useForm(),[rt,xt]=(0,me.useState)(),[gt,bt]=(0,me.useState)(!1),At={height:100,onRemove:()=>{xt("")},accept:".xls,.xlsx",multiple:!1,maxCount:1,beforeUpload:Tt=>ye(void 0,null,function*(){return xt(Tt),!1})};return(0,me.useEffect)(()=>{Qe.setFieldsValue({publish_time:_e()(_e()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:_e()(_e()(new Date((0,ht.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})},[]),Ee.createElement(nt.default,{centered:!0,title:"\u8865\u5145\u6210\u7EE9",open:Oe.actionTabs.key==="\u8865\u5145\u6210\u7EE9",okText:"\u786E\u5B9A",width:750,destroyOnClose:!0,cancelText:"\u53D6\u6D88",okButtonProps:{loading:gt},onOk:()=>ye(void 0,null,function*(){Qe.submit()}),onCancel:()=>{Qe.resetFields(),We({type:"classroomList/setActionTabs",payload:{}})}},Ee.createElement(ut.default,{form:Qe,onFinish:Tt=>ye(void 0,null,function*(){var Nt,Ut,st;if(!(rt!=null&&rt.size)){it.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}bt(!0);let He=new FormData;He.append("type",Oe.actionTabs.type),He.append("file",rt);let jt;window.location.href.indexOf("exercise")>-1?jt=`/api/exercises/${Oe.actionTabs.id}/supplement_score.json`:jt=`/api/homework_commons/${Oe.actionTabs.id}/supplement_score.json`;let fn=yield(0,Me.ZP)(jt,{method:"post",body:He},!0);bt(!1),(fn==null?void 0:fn.status)===0&&(Be(),Qe.resetFields(),We({type:"classroomList/setActionTabs",payload:{}}),((Ut=(Nt=fn==null?void 0:fn.data)==null?void 0:Nt.fail)==null?void 0:Ut.length)>0&&nt.default.confirm({title:"\u5BFC\u5165\u5931\u8D25",closable:!0,icon:null,width:610,content:Ee.createElement(ze.default,{pagination:!1,dataSource:(st=fn==null?void 0:fn.data)==null?void 0:st.fail,scroll:{y:400},columns:[{title:"\u59D3\u540D",align:"left",dataIndex:"name"},{title:"\u5B66\u53F7/\u624B\u673A\u53F7/\u90AE\u7BB1",align:"left",dataIndex:"student_id"},{title:"\u5BFC\u5165\u5931\u8D25\u539F\u56E0",align:"left",dataIndex:"message"}]}),okText:"\u4E0B\u8F7D\u5BFC\u5165\u5931\u8D25\u6587\u4EF6",cancelText:"\u53D6\u6D88",onOk:()=>{(0,ht.FH)("",yt.Z.API_SERVER+`/api/courses/get_external_score_fail_data.xlsx?type=${Oe.actionTabs.type}`)}}))})},Ee.createElement(ut.default.Item,{label:"\u4F5C\u4E1A\u540D\u79F0",labelCol:{span:3},name:"name"},Oe.actionTabs.name),Ee.createElement(ut.default.Item,{style:{marginBottom:0},label:Ee.createElement("div",null,Ee.createElement("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"}},"*"),Ee.createElement("span",null,"\u5BFC\u5165\u6587\u4EF6")),labelCol:{span:3},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0"}]},Ee.createElement("div",null,Ee.createElement("a",{download:"\u6A21\u7248.xlsx",className:ot.Z.downloadbutton,href:yt.Z.API_SERVER+`/api/courses/down_external_score_template.json?type=${Oe.actionTabs.type}`},"\u4E0B\u8F7D\u6A21\u7248\u8868\u683C"),Ee.createElement("span",{style:{marginLeft:10,color:"#999999"}},"\uFF08\u6839\u636E\u63D0\u793A\u4FE1\u606F\u5B8C\u5584\u8868\u683C\u5185\u5BB9\uFF09")),Ee.createElement(ut.default.Item,{style:{marginBottom:0}},Ee.createElement(Ce,pe({},At),Ee.createElement("a",{className:ot.Z.downloadbutton,style:{width:96}},"\u9009\u62E9\u6587\u4EF6"),Ee.createElement("br",null),Ee.createElement("span",{style:{color:"#999999"}},"\u4E0B\u8F7D\u6A21\u677F\u5E76\u5B8C\u5584\u4FE1\u606F\u540E\uFF0C\u53EF\u5C06\u6587\u4EF6\u62D6\u66F3\u81F3\u6B64\u5904\u4E0A\u4F20\u3002\u652F\u6301\u683C\u5F0F\uFF1A.xls\u3001.xlsx"))))))};Jt.Z=(0,Ue.connect)(({classroomList:Oe})=>({classroomList:Oe}))(Re)},98895:function(cn,Jt,Pe){"use strict";var me=Pe(59301),Ve=Pe(14566),ut=Pe(28284),nt=Pe(62957),it=Pe(6767),ze=Pe(54172),Ue=Pe(37568),yt=Pe(77019),ot=Pe(5269),Me=Pe(71051),Et=Pe(16326),_e=Pe(25690),ht=Pe(39793),Ee=Pe(346),ne=Pe(19493),ee=Pe(38986),ue=Pe(48716),se=Pe(61186),de=Pe.n(se),pe=Pe(51257),ye=Pe(59301),Ce=Object.defineProperty,Re=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Be=(gt,bt,At)=>bt in gt?Ce(gt,bt,{enumerable:!0,configurable:!0,writable:!0,value:At}):gt[bt]=At,Ie=(gt,bt)=>{for(var At in bt||(bt={}))Oe.call(bt,At)&&Be(gt,At,bt[At]);if(Re)for(var At of Re(bt))We.call(bt,At)&&Be(gt,At,bt[At]);return gt},Qe=(gt,bt,At)=>new Promise((Tt,Nt)=>{var Ut=jt=>{try{He(At.next(jt))}catch(fn){Nt(fn)}},st=jt=>{try{He(At.throw(jt))}catch(fn){Nt(fn)}},He=jt=>jt.done?Tt(jt.value):Promise.resolve(jt.value).then(Ut,st);He((At=At.apply(gt,bt)).next())});const{Dragger:rt}=Ve.default,xt=({classroomList:gt,dispatch:bt,onOk:At})=>{const Tt=(0,_e.useParams)(),[Nt]=ut.default.useForm(),[Ut,st]=(0,me.useState)(),[He,jt]=(0,me.useState)(!1),fn={height:100,onRemove:()=>{st("")},accept:".xls,.xlsx",maxCount:1,multiple:!1,beforeUpload:Bt=>Qe(void 0,null,function*(){return st(Bt),!1})};return(0,me.useEffect)(()=>{Nt.setFieldsValue({publish_time:de()(de()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:de()(de()(new Date((0,pe.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})},[gt.actionTabs.key==="\u5BFC\u5165\u5916\u90E8\u6210\u7EE9"]),ye.createElement(nt.default,{centered:!0,title:"\u5BFC\u5165\u5916\u90E8\u6210\u7EE9",open:gt.actionTabs.key==="\u5BFC\u5165\u5916\u90E8\u6210\u7EE9",okText:"\u786E\u5B9A",width:750,destroyOnClose:!0,cancelText:"\u53D6\u6D88",okButtonProps:{loading:He},onOk:()=>Qe(void 0,null,function*(){Nt.submit()}),onCancel:()=>{Nt.resetFields(),bt({type:"classroomList/setActionTabs",payload:{}})}},ye.createElement(ut.default,{form:Nt,colon:!1,onFinish:Bt=>Qe(void 0,null,function*(){var Ft,It,Vt;if(!(Ut!=null&&Ut.size)){it.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}jt(!0);let wn=new FormData;wn.append("name",Bt.name),wn.append("type",gt.actionTabs.type),wn.append("category_id",(Tt==null?void 0:Tt.categoryId)||null),gt.actionTabs.type==="exercise"?(wn.append("time",Bt.time||""),wn.append("total_score",Bt.total_score)):wn.append("description",Bt.description||""),wn.append("publish_time",de()(Bt.publish_time).format("YYYY-MM-DD HH:mm")),wn.append("end_time",de()(Bt.end_time).format("YYYY-MM-DD HH:mm")),wn.append("file",Ut);let Dt=yield(0,ee.ZP)(`/api/courses/${Tt.coursesId}/export_external_score_homework.json`,{method:"post",body:wn},!0);jt(!1),(Dt==null?void 0:Dt.status)===0&&(Nt.resetFields(),bt({type:"classroomList/setActionTabs",payload:{}}),At(),((It=(Ft=Dt==null?void 0:Dt.data)==null?void 0:Ft.fail)==null?void 0:It.length)>0&&nt.default.confirm({title:"\u5BFC\u5165\u5931\u8D25",closable:!0,icon:null,width:610,content:ye.createElement(ze.default,{pagination:!1,dataSource:(Vt=Dt==null?void 0:Dt.data)==null?void 0:Vt.fail,scroll:{y:400},columns:[{title:"\u59D3\u540D",align:"left",dataIndex:"name"},{title:"\u5B66\u53F7/\u624B\u673A\u53F7/\u90AE\u7BB1",align:"left",dataIndex:"student_id"},{title:"\u5BFC\u5165\u5931\u8D25\u539F\u56E0",align:"left",dataIndex:"message"}]}),okText:"\u4E0B\u8F7D\u5BFC\u5165\u5931\u8D25\u6587\u4EF6",cancelText:"\u53D6\u6D88",onOk:()=>{(0,pe.FH)("",Ee.Z.API_SERVER+`/api/courses/get_external_score_fail_data.xlsx?type=${gt.actionTabs.type}`)}}))})},ye.createElement(ut.default.Item,{label:gt.actionTabs.type!=="exercise"?"\u4F5C\u4E1A":"\u8BD5\u5377\u540D\u79F0",labelCol:{span:3},name:"name",rules:[{required:!0,message:`\u8BF7\u8F93\u5165${gt.actionTabs.type!=="exercise"?"\u4F5C\u4E1A":"\u8BD5\u5377"}\u540D\u79F0`}]},ye.createElement(Ue.default,{showCount:!0,placeholder:`\u8BF7\u8F93\u5165${gt.actionTabs.type!=="exercise"?"\u4F5C\u4E1A":"\u8BD5\u5377"}\u540D\u79F0`,maxLength:60})),gt.actionTabs.type!=="exercise"&&ye.createElement(ut.default.Item,{label:"\u4F5C\u4E1A\u63CF\u8FF0",labelCol:{span:3},name:"description"},ye.createElement(ht.Z,{watch:!0})),gt.actionTabs.type==="exercise"&&ye.createElement(yt.Z,{style:{marginLeft:6}},ye.createElement(ot.Z,{span:12},ye.createElement(ut.default.Item,{label:"\u8BD5\u5377\u603B\u5206",name:"total_score",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BD5\u5377\u603B\u5206"},{pattern:/^(?:[1-9]\d*(?:\.\d+)?|0\.\d*[1-9]\d*)$/,message:"\u8BD5\u5377\u603B\u5206\u5FC5\u987B\u4E3A\u6B63\u6570"}]},ye.createElement(Ue.default,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u603B\u5206",style:{width:256},addonAfter:"\u5206"}))),ye.createElement(ot.Z,{span:12},ye.createElement(ut.default.Item,{label:"\u7B54\u9898\u65F6\u957F",labelCol:{span:6},name:"time"},ye.createElement(Me.Z,{style:{width:"100%"},addonAfter:"\u5206\u949F",placeholder:"\u8BF7\u8F93\u5165\u7B54\u9898\u65F6\u957F"})))),ye.createElement(yt.Z,{style:{marginLeft:6,marginBottom:12}},ye.createElement(ot.Z,{span:12},ye.createElement(ut.default.Item,{label:"\u5F00\u59CB\u65F6\u95F4",name:"publish_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4"}]},ye.createElement(Et.default,{placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},style:{width:256},disabledDate:Bt=>(0,ue.Q8)(Bt),disabledTime:Bt=>(0,ue.d0)(Bt),allowClear:!1,format:"YYYY-MM-DD HH:mm"}))),ye.createElement(ot.Z,{span:12},ye.createElement(ut.default.Item,{label:"\u7ED3\u675F\u65F6\u95F4",labelCol:{span:6},name:"end_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4"}]},ye.createElement(Et.default,{placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},style:{width:"100%"},disabledDate:Bt=>(0,ue.Q8)(Bt,"",Nt.getFieldValue("publish_time")),disabledTime:Bt=>(0,ue.d0)(Bt,Nt.getFieldValue("publish_time")),allowClear:!1,format:"YYYY-MM-DD HH:mm"})))),ye.createElement(ut.default.Item,{style:{marginBottom:0},label:ye.createElement("div",null,ye.createElement("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"}},"*"),ye.createElement("span",null,"\u5BFC\u5165\u6587\u4EF6")),labelCol:{span:3},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0"}]},ye.createElement("div",null,ye.createElement("a",{download:"\u6A21\u7248.xlsx",className:ne.Z.downloadbutton,href:Ee.Z.API_SERVER+`/api/courses/down_external_score_template.json?type=${gt.actionTabs.type}`},"\u4E0B\u8F7D\u6A21\u7248\u8868\u683C"),ye.createElement("span",{style:{marginLeft:10,color:"#999999"}},"\uFF08\u6839\u636E\u63D0\u793A\u4FE1\u606F\u5B8C\u5584\u8868\u683C\u5185\u5BB9\uFF09")),ye.createElement(ut.default.Item,{style:{marginBottom:0}},ye.createElement(rt,Ie({},fn),ye.createElement("a",{className:ne.Z.downloadbutton,style:{width:96}},"\u9009\u62E9\u6587\u4EF6"),ye.createElement("br",null),ye.createElement("span",{style:{color:"#999999"}},"\u4E0B\u8F7D\u6A21\u677F\u5E76\u5B8C\u5584\u4FE1\u606F\u540E\uFF0C\u53EF\u5C06\u6587\u4EF6\u62D6\u66F3\u81F3\u6B64\u5904\u4E0A\u4F20\u3002\u652F\u6301\u683C\u5F0F\uFF1A.xls\u3001.xlsx"))))))};Jt.Z=(0,_e.connect)(({classroomList:gt})=>({classroomList:gt}))(xt)},19541:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Z:function(){return Et}});var me=Pe(59301),Ve=Pe(93041),ut=Pe(37568),nt=Pe(62673),it=Pe(99571),ze=Pe(75727),Ue={bottomControlContainer:"bottomControlContainer___woAeo",buttonWrap:"buttonWrap___iRw4K",moveCategory:"moveCategory___oiQqw"},yt=Pe(48790),ot=Pe(84105),Et=({buttonDataSource:_e,onButtonClick:ht,useBatchStatus:Ee,allSelect:ne,setAllSelect:ee,selectArrs:ue,onMenuClick:se,setSeleArr:de,catalogue:pe,addCatalogue:ye})=>{const[Ce,Re]=(0,me.useState)(!1),[Oe,We]=(0,me.useState)("");console.log("---",pe);const Be=me.createElement("div",{className:Ue.moveCategory,onMouseLeave:Ie=>Re(!1)},me.createElement(Ve.default,{onClick:se,style:{maxHeight:300,width:240,overflow:"auto"}},me.createElement("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child"},me.createElement(ut.default,{onChange:Ie=>{We(Ie.target.value)}})),pe==null?void 0:pe.map(function(Ie,Qe){var rt;if(!(Oe!==""&&Ie.category_name.indexOf(Oe)<0))return me.createElement(me.Fragment,null,me.createElement(Ve.default.Item,{className:"multi-llipsis1e",key:Ie.category_id,title:Ie.category_name},Ie.category_name),(rt=Ie==null?void 0:Ie.third_category)==null?void 0:rt.map(xt=>me.createElement(Ve.default.Item,{style:{marginLeft:20},className:"multi-llipsis1e",key:xt.category_id,title:xt.category_name},xt.category_name)))}),ye&&me.createElement("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",onClick:ye},"\u65B0\u5EFA\u5B50\u76EE\u5F55...")));return me.createElement("div",{className:Ue.bottomControlContainer},me.createElement("div",null,me.createElement("div",null,me.createElement(nt.default,{checked:ne,onChange:ee},"\u5168\u9009\u672C\u9875\uFF08",ue.length,"\uFF09")),(0,yt.GJ)()&&_e.map(Ie=>me.createElement("div",{key:Ie.name},me.createElement(it.ZP,{type:"primary",icon:Ie.icon,className:Ue.buttonWrap,onClick:()=>ht(Ie)},Ie.name))),(0,yt.GJ)()&&(ye||pe)&&me.createElement("div",null,me.createElement(ze.Z,{open:Ce,placement:"topLeft",autoAdjustOverflow:!1,dropdownRender:()=>Be,getPopupContainer:Ie=>Ie.parentNode},me.createElement("span",{className:"ant-dropdown-link",onMouseEnter:Ie=>Re(!0)},me.createElement(it.ZP,{type:"primary",className:Ue.buttonWrap,icon:me.createElement("i",{className:"iconfont icon-yidongmulu"})},me.createElement("span",null,"\u79FB\u52A8\u5230\u76EE\u5F55 ",me.createElement(ot.Z,null))))))),me.createElement("div",null,me.createElement(it.ZP,{type:"primary",ghost:!0,onClick:()=>{Ee(!1),de([])}},"\u53D6\u6D88\u64CD\u4F5C")))}},59229:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Z:function(){return ue}});var me=Pe(59301),Ve=Pe(25690),ut=Pe(16326),nt=Pe(62957),it=Pe(37568),ze=Pe(6767),Ue=Pe(77019),yt=Pe(5269),ot={title_tooltip:"title_tooltip___LLdrn",multiple_select:"multiple_select___kDXUm",modal_con:"modal_con___ERnkW"},Me=Pe(61186),Et=Pe.n(Me),_e=Pe(51257),ht=Pe(28426),Ee=Pe(59301);const{RangePicker:ne}=ut.default,ee=({dispatch:se,classroomList:de,onConfirm:pe})=>{const[ye,Ce]=(0,me.useState)([]),[Re,Oe]=(0,me.useState)([]),[We,Be]=(0,me.useState)(""),[Ie,Qe]=(0,me.useState)([!1,!1]);(0,me.useEffect)(()=>{var gt,bt,At,Tt;if(de.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206"){console.log((gt=de.actionTabs)==null?void 0:gt.rangePickerDisabled),(bt=de.actionTabs)!=null&&bt.rangePickerDisabled?Qe((At=de.actionTabs)==null?void 0:At.rangePickerDisabled):Qe([!1,!1]);let Nt=de.actionTabs.data,Ut=(Tt=Nt==null?void 0:Nt.group_name)==null?void 0:Tt.map((st,He)=>{var jt;return{group_id:Nt==null?void 0:Nt.group_id[He],group_name:Nt==null?void 0:Nt.group_name[He],is_admin:Nt==null?void 0:Nt.is_admin,end_time:Nt==null?void 0:Nt.end_time,publish_time:Array.isArray(Nt==null?void 0:Nt.publish_time)?(jt=Nt==null?void 0:Nt.publish_time)==null?void 0:jt[0]:Nt==null?void 0:Nt.publish_time}});Ut&&(Ce([...Ut]),Oe([...Ut]))}},[de.actionTabs]);const rt=()=>{se({type:"classroomList/setActionTabs",payload:{}}),Be("")},xt=gt=>{if(gt){const bt=Re==null?void 0:Re.filter(At=>{var Tt,Nt;return(Nt=(Tt=At==null?void 0:At.group_name)==null?void 0:Tt.toLowerCase())==null?void 0:Nt.includes(gt==null?void 0:gt.toLowerCase())});Ce(bt)}else Ce(Re)};return Ee.createElement(nt.default,{width:980,title:Ee.createElement("div",{style:{fontWeight:"bold",display:"flex"}},Ee.createElement("div",null,"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",Ee.createElement("span",{className:ot.title_tooltip},"\uFF08\u5F53\u5206\u73ED\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u4E0D\u76F8\u540C\u65F6\u5019\uFF0C\u73ED\u7EA7\u81EA\u52A8\u62C6\u5206\u51FA\u53BB\u65B0\u8D77\u89C4\u5219\uFF09")),Ee.createElement(it.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",style:{width:220,marginLeft:"60px"},value:We,onChange:gt=>{Be(gt.target.value.trim()),xt(gt.target.value.trim())}})),centered:!0,maskClosable:!1,open:de.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",onCancel:()=>rt(),onOk:()=>{var gt;if(Re.some(At=>!At.end_time||!At.publish_time)){ze.ZP.warning("\u8BF7\u5C06\u5217\u8868\u6570\u636E\u4E2D\u7684\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u8865\u5145\u5B8C\u6574\uFF01");return}pe((gt=de.actionTabs)==null?void 0:gt.index,Re),rt()}},Ee.createElement("div",{className:ot.modal_con},Ee.createElement(Ue.Z,{style:{display:"flex",color:"#666666",padding:"5px",marginTop:"1px"}},(ye==null?void 0:ye.length)>0?ye.map(function(gt,bt){return Ee.createElement(yt.Z,{span:24,key:bt},Ee.createElement(Ue.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:bt==(ye==null?void 0:ye.length)-1?"0px":"10px"}},Ee.createElement("div",{className:ot.multiple_select,title:gt==null?void 0:gt.group_name},gt==null?void 0:gt.group_name),Ee.createElement("div",{className:"ml20"},Ee.createElement(ne,{size:"large",allowClear:!1,disabled:Ie,style:{width:600},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:At=>{var Tt;return(0,_e.Q8)(At,(Tt=de.actionTabs)==null?void 0:Tt.disabledDate)},disabledTime:At=>(0,_e.d0)(At),showTime:{showNow:!0,format:"HH:mm",defaultValue:[Et()((0,_e.U6)(),"HH:mm"),Et()((0,_e.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:(gt==null?void 0:gt.publish_time)&&[Et()(gt==null?void 0:gt.publish_time),gt!=null&>.end_time?Et()(gt==null?void 0:gt.end_time):void 0],onChange:(At,Tt)=>{ye[bt].publish_time=Tt[0],ye[bt].end_time=Tt[1],Ce([...ye]),Re.forEach(Nt=>{Nt.group_id===(gt==null?void 0:gt.group_id)&&(Nt.publish_time=Tt[0],Nt.end_time=Tt[1])}),Oe([...Re])},onCalendarChange:(At,Tt,Nt)=>{if(Tt!=null&&Tt[0]&&!Tt[1]){const Ut=Et()(Tt[0]).add(7,"days");ye[bt].publish_time=Tt[0],ye[bt].end_time=Ut,Ce([...ye]),Re.forEach(st=>{st.group_id===(gt==null?void 0:gt.group_id)&&(st.publish_time=Tt[0],st.end_time=Ut)}),Oe([...Re])}}})),Ie[0]?Ee.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{color:"#E30000",opacity:"0.2",cursor:"not-allowed"}}):Ee.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{ye.splice(bt,1),Ce([...ye]),Re.forEach((At,Tt)=>{At.group_id===(gt==null?void 0:gt.group_id)&&Re.splice(Tt,1)}),Oe([...Re])}})))}):Ee.createElement(ht.Z,null))))};var ue=(0,Ve.connect)(({classroomList:se})=>({classroomList:se}))(ee)},11492:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Z:function(){return se}});var me=Pe(59301),Ve=Pe(93041),ut=Pe(62673),nt=Pe(99571),it=Pe(75727),ze=Pe(25399),Ue=Pe(82326),yt=Pe(37568),ot={searchSortControllerContainer:"searchSortControllerContainer___Xca1m",btn:"btn___sNJPX",btnSort:"btnSort___Fx9OM",tips:"tips___LrmpR"},Me=Pe(48790),Et=Pe(87395),_e=Pe(84105),ht=Pe(26724),Ee=Pe.n(ht),ne=Pe(25690),ee=(de,pe,ye)=>new Promise((Ce,Re)=>{var Oe=Ie=>{try{Be(ye.next(Ie))}catch(Qe){Re(Qe)}},We=Ie=>{try{Be(ye.throw(Ie))}catch(Qe){Re(Qe)}},Be=Ie=>Ie.done?Ce(Ie.value):Promise.resolve(Ie.value).then(Oe,We);Be((ye=ye.apply(de,pe)).next())}),se=({isAdmin:de,dataSource:pe,batchStatus:ye,SortMenuName:Ce,setSortMenuName:Re,detailCourseGroupsList:Oe,onSearch:We,onBoard:Be,onSort:Ie,isboard:Qe,dispatch:rt,onBatch:xt,SortMenus:gt,isShowMode:bt=!1,onModeChange:At})=>{const[Tt,Nt]=(0,me.useState)(!1),[Ut,st]=(0,me.useState)([]),[He,jt]=(0,me.useState)(!0);let[fn,Bt]=(0,me.useState)([]);const[Ft,It]=(0,me.useState)(1),[Vt,wn]=(0,me.useState)(!1),Dt=(0,ne.useParams)(),vt=Ze=>{Re(Ze.name),Ie(Ze)};(0,me.useEffect)(()=>{Qe&&zt()},[Qe]);const zt=()=>ee(void 0,null,function*(){var Ze;if(He&&!Vt){wn(!0),It(Ft+1);const Fe=yield rt({type:"classroomList/getCourseGroupsList",payload:{page:Ft,id:Dt.coursesId,limit:20,nonenavigate:!0}});let xe=[...(Fe==null?void 0:Fe.course_groups)||[]];((Ze=Fe==null?void 0:Fe.course_groups)==null?void 0:Ze.length)<20&&(jt(!1),xe.push({id:0,name:"\u672A\u5206\u73ED"})),wn(!1),Bt([...fn,...xe])}}),En=me.createElement("section",{className:ot.dropmenu},me.createElement("div",{style:{maxHeight:200,overflow:"auto"}},me.createElement(Ee(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:Ze=>{zt()},hasMore:He,useWindow:!1},me.createElement(Ve.default,{style:{width:240,zIndex:10}},(Oe==null?void 0:Oe.group_count)>0&&(fn==null?void 0:fn.filter(Ze=>Ze.edit_auth||Ze.name==="\u672A\u5206\u73ED").map(function(Ze,Fe){return me.createElement(Ve.default.Item,{key:Ze.id},me.createElement(ut.default,{checked:Ut.includes(Ze.id),value:Ze.id,onChange:xe=>{let Te=Ut.indexOf(Ze.id);Ut.indexOf(Ze.id)>-1?st(Ut.filter(Ye=>Ye!==Ze.id)):st(Ut.concat(Ze.id))}},Ze.name))}))))),me.createElement("aside",{style:{background:"#fff"}},me.createElement("div",null,me.createElement(nt.ZP,{type:"link",onClick:()=>{Be(Ut)}},"\u786E\u5B9A"),me.createElement(nt.ZP,{type:"link",onClick:()=>{st([])}},"\u91CD\u7F6E")))),kn=Ce==="\u9ED8\u8BA4\u6392\u5E8F";return me.createElement("div",{className:ot.searchSortControllerContainer},!!(gt!=null&>.length)&&me.createElement("div",null,me.createElement(it.Z,{dropdownRender:()=>me.createElement(Ve.default,{selectedKeys:[Ce]},gt.map(Ze=>me.createElement(Ve.default.Item,{key:Ze.name,onClick:()=>vt(Ze)},Ze.name)))},me.createElement("div",null,me.createElement("span",{className:`${ot.btn} ${kn?ot.btnSort:""}`},me.createElement("i",{className:"iconfont icon-paixu font14 mr5"}),Ce)))),kn&&me.createElement(ze.Z,{title:"\u4F18\u5148\u6309\u7167\u8C03\u6574\u6392\u5E8F\u7ED3\u679C\u5C55\u793A\uFF0C\u672A\u8BBE\u7F6E\u6392\u5E8F\u65F6\uFF0C\u6309\u7167\u521B\u5EFA\u65F6\u95F4\u964D\u5E8F\u6392\u5217"},me.createElement("span",{className:ot.tips},me.createElement("i",{className:"iconfont icon-a-wenhaobeifen2"}))),bt&&me.createElement(Ue.default,{defaultValue:"",onChange:At,style:{width:160,marginLeft:"auto",marginRight:"20px"},options:[{value:"",label:"\u5168\u90E8\u8003\u8BD5\u6A21\u5F0F"},{value:!0,label:"\u6B63\u5F0F\u8003\u8BD5"},{value:!1,label:"\u6A21\u62DF\u8003\u8BD5"}]}),me.createElement(yt.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\u8FDB\u884C\u641C\u7D22",onSearch:We,style:{width:220,marginLeft:bt?"":"auto"}}),(0,Me.eB)()&&Qe&&me.createElement(it.Z,{dropdownRender:()=>En,open:Tt,onOpenChange:Ze=>{Nt(Ze)}},me.createElement("a",null,"\u5206\u73ED",Tt?me.createElement(Et.Z,{style:{marginLeft:6}}):me.createElement(_e.Z,{style:{marginLeft:6}}))))}},46373:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Z:function(){return _e}});var me=Pe(59301),Ve=Pe(77019),ut=Pe(5269),nt=Pe(93041),it=Pe(75727),ze=Pe(6767),Ue=Pe(25399),yt={tabMenuContainer:"tabMenuContainer___uf5IP",control:"control___GheLs",iconH:"iconH___Wzw_r",selectBtn:"selectBtn___mfEnI",selectBtn1:"selectBtn1___rJF8S"},ot=Pe(25690),Me=Pe(48790),_e=({isLoading:ht,addText:Ee,tabDataSource:ne,isAdmin:ee,dispatch:ue,classroomList:se,type:de,isExercise:pe,defaultSelectedKeys:ye,onTabMenuClick:Ce,getDropdownMenu:Re,showControlButton:Oe,buttonText:We,buttonIcon:Be="icon-tianjiadaohang",extraNode:Ie,user:Qe,onButtonClick:rt,isModelUser:xt,menuItemWidth:gt=125})=>{var bt,At,Tt,Nt,Ut;const st=(0,ot.useParams)();return me.createElement("div",{className:yt.tabMenuContainer},me.createElement(Ve.Z,null,me.createElement(ut.Z,{flex:"1"},me.createElement(nt.default,{onSelect:He=>ht?{}:Ce(He),mode:"horizontal",selectedKeys:ye},ne.map(He=>me.createElement(nt.default.Item,{style:{width:gt},key:typeof He.index=="number"?He.index:He.id},me.createElement("span",{className:"c-grey-666"},He.name),He.total!==void 0&&ee&&me.createElement("span",{className:"c-grey-999 ml20"},He.total||0))))),ee&&pe&&me.createElement("i",{className:"iconfont icon-shezhi8",style:{display:"flex",alignItems:"center",cursor:"pointer"},onClick:()=>{ue({type:"classroomList/setActionTabs",payload:{key:"\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E"}})}}),ee&&me.createElement(ut.Z,{className:"mr20 gutter-row",style:{display:"flex",alignItems:"center",color:"#0152d9",paddingBottom:3}},pe&&me.createElement(it.Z,{className:"mr15",placement:"bottom",arrow:!0,dropdownRender:()=>me.createElement(nt.default,null,me.createElement(nt.default.Item,{key:1,onClick:()=>{var He;if((0,Me.Rm)()&&!((He=se.AssistantObject.exercise)!=null&&He.can_download)){ze.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ue({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u6210\u7EE9",type:de,exportType:"exercise",category_id:st.categoryId}})}},"\u5B66\u751F\u6210\u7EE9"),me.createElement(nt.default.Item,{key:3,onClick:()=>{var He;if((0,Me.Rm)()&&!((He=se.AssistantObject.exercise)!=null&&He.can_download)){ze.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ot.history.push(`/classrooms/${st==null?void 0:st.coursesId}/exportlist/exercise_score,export_exercise_users`)}},"\u5386\u53F2\u5BFC\u51FA"))},me.createElement("div",{className:"c-blue font16 ml20 current",style:{marginTop:2}},me.createElement("span",{style:{color:"#666666",cursor:"pointer"}},me.createElement("i",{className:"iconfont icon-xiazai6"})))),me.createElement("div",{className:yt.control},me.createElement("div",{className:yt.extra},Ie),Oe&&(We=="\u6DFB\u52A0\u76F4\u64AD"?me.createElement(it.Z,{menu:{items:(At=(bt=[{label:me.createElement("div",{onClick:()=>{rt("\u5916\u94FE")}},"\u5916\u94FE\u76F4\u64AD"),key:"1",show:!0},xt&&{label:me.createElement("div",{onClick:()=>{rt("\u5934\u6B4C")}},"\u5934\u6B4C\u76F4\u64AD"),key:"2",show:!0}])==null?void 0:bt.filter(He=>He==null?void 0:He.show))==null?void 0:At.map(He=>({label:He==null?void 0:He.label,key:He==null?void 0:He.key}))}},me.createElement("span",{className:yt.selectBtn},me.createElement("span",null,me.createElement("i",{className:`iconfont ${Be}`})),me.createElement("span",null,We))):me.createElement("span",{onClick:rt,style:{cursor:"pointer"},className:yt.selectBtn},me.createElement("span",null,me.createElement("i",{className:`iconfont ${Be}`})),me.createElement("span",null,We))),!!Re&&me.createElement(it.Z,{disabled:((Tt=Qe==null?void 0:Qe.userInfo)==null?void 0:Tt.user_status)===2,className:"ml10",dropdownRender:Re},me.createElement("span",{className:((Nt=Qe==null?void 0:Qe.userInfo)==null?void 0:Nt.user_status)===2?yt.selectBtn1:yt.selectBtn},me.createElement("span",null,me.createElement("i",{className:"iconfont icon-tianjiadaohang"})),me.createElement(Ue.Z,{title:((Ut=Qe==null?void 0:Qe.userInfo)==null?void 0:Ut.user_status)===2&&"\u6559\u5B66\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u5E73\u53F0\u5DF2\u6682\u505C\u63D0\u4F9B\u5728\u7EBF\u8003\u8BD5\u521B\u5EFA\u529F\u80FD"},me.createElement("span",null,Ee||"\u521B\u5EFA\u8BD5\u5377"))))))))}},40746:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{$i:function(){return Ie},K1:function(){return rt},O7:function(){return xt},T$:function(){return Be}});var me=Pe(9148),Ve=Pe(93629),ut=Pe(81722),nt=Pe(86245),it=Pe(45937),ze=Pe(62957),Ue=Pe(28284),yt=Pe(6767),ot=Pe(37568),Me=Pe(77019),Et=Pe(5269),_e=Pe(59301),ht=Pe(25690),Ee=Pe(28209),ne=Pe.n(Ee),ee=Pe(51257),ue=Pe(59301),se=Object.defineProperty,de=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,Ce=(gt,bt,At)=>bt in gt?se(gt,bt,{enumerable:!0,configurable:!0,writable:!0,value:At}):gt[bt]=At,Re=(gt,bt)=>{for(var At in bt||(bt={}))pe.call(bt,At)&&Ce(gt,At,bt[At]);if(de)for(var At of de(bt))ye.call(bt,At)&&Ce(gt,At,bt[At]);return gt},Oe=(gt,bt,At)=>new Promise((Tt,Nt)=>{var Ut=jt=>{try{He(At.next(jt))}catch(fn){Nt(fn)}},st=jt=>{try{He(At.throw(jt))}catch(fn){Nt(fn)}},He=jt=>jt.done?Tt(jt.value):Promise.resolve(jt.value).then(Ut,st);He((At=At.apply(gt,bt)).next())});const We=gt=>{const bt=ne().enc.Utf8.parse("c03f36595bd5610b");return ne().AES.encrypt(gt||"",bt,{iv:bt,mode:ne().mode.CBC}).toString()},Be=({onCancel:gt,open:bt})=>ue.createElement(ze.default,{title:"\u63D0\u793A",width:619,centered:!0,open:bt,destroyOnClose:!0,okText:"\u7ACB\u5373\u524D\u5F80",cancelText:"\u7A0D\u540E\u518D\u8BF4",onCancel:gt,onOk:()=>{ht.history.push("/account/secure")}},ue.createElement("span",null,"\u52A0\u5BC6\u5C01\u5B58\u4E4B\u540E\uFF0C\u5FD8\u8BB0\u5BC6\u7801\u65F6\u9700\u8981\u4F7F\u7528\u624B\u673A\u53F7\u8FDB\u884C\u5BC6\u7801\u91CD\u7F6E\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801")),Ie=({onCancel:gt,onFinish:bt,open:At,Data:Tt})=>{const[Nt]=Ue.default.useForm(),[,Ut,st]=(0,it.U)((Tt==null?void 0:Tt.type)=="exercise"?ut.yE:Ve.yE,{id:Tt==null?void 0:Tt.id});return(0,_e.useEffect)(()=>{At||Nt.resetFields()},[At]),ue.createElement(ze.default,{title:"\u8BD5\u5377\u52A0\u5BC6\u5C01\u5B58",width:619,centered:!0,open:At,destroyOnClose:!0,confirmLoading:Ut,onCancel:gt,onOk:()=>{Nt==null||Nt.submit()}},ue.createElement("div",{className:"pt16 pb16 pl12 pr12 rounded-4px flex item-center gap-8px",style:{background:"rgba(233, 127, 55, .06)",color:"#FA6400"}},ue.createElement("i",{className:"iconfont icon-tishi7"}),ue.createElement("span",null,"\u8BD5\u5377\u52A0\u5BC6\u5C01\u5B58\u540E\uFF0C\u6240\u6709\u7528\u6237\u9700\u8981\u8F93\u5165\u5C01\u5B58\u5BC6\u7801\u624D\u80FD\u8FDB\u884C\u67E5\u770B\u3001\u7F16\u8F91\u8BD5\u5377\u7B49\u64CD\u4F5C\uFF01")),ue.createElement(Ue.default,{form:Nt,className:"mt-20px",size:"large",colon:!1,onFinish:He=>Oe(void 0,null,function*(){const jt=yield st({id:Tt==null?void 0:Tt.id,is_encrypt:!0,pwd:We(He.pwd),pwd_confirm:We(He.pwd_confirm)});jt.status===0?(yt.ZP.success("\u52A0\u5BC6\u6210\u529F"),bt==null||bt(jt),gt()):Nt.setFields([{name:"pwd",errors:[jt==null?void 0:jt.message]}])})},ue.createElement(Ue.default.Item,{label:"\u5C01\u5B58\u5BC6\u7801",name:"pwd",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"},{pattern:/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{6,16}$/,message:"\u5BC6\u7801\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u4E14\u957F\u5EA6\u4E3A6-16\u4E2A\u5B57\u7B26"}]},ue.createElement(ot.default.Password,{placeholder:"\u8BF7\u8BBE\u7F6E\u5C01\u5B58\u5BC6\u7801\uFF0C\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u6700\u5927\u9650\u52366-16\u4E2A\u5B57\u7B26"})),ue.createElement(Ue.default.Item,{label:"\u786E\u8BA4\u5BC6\u7801",name:"pwd_confirm",rules:[{required:!0,message:"\u8BF7\u518D\u6B21\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"},{pattern:/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{6,16}$/,message:"\u5BC6\u7801\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u4E14\u957F\u5EA6\u4E3A6-16\u4E2A\u5B57\u7B26"},({getFieldValue:He})=>({validator(jt,fn){return!fn||He("pwd")===fn?Promise.resolve():Promise.reject(new Error("\u4E24\u6B21\u8F93\u5165\u7684\u5BC6\u7801\u4E0D\u4E00\u81F4"))}})]},ue.createElement(ot.default.Password,{placeholder:"\u8BF7\u518D\u6B21\u8F93\u5165\u5C01\u5B58\u5BC6\u7801\uFF0C\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u6700\u5927\u9650\u52366-16\u4E2A\u5B57\u7B26"}))))},Qe=({onCancel:gt,open:bt,Data:At})=>{var Tt;const[Nt]=Ue.default.useForm(),[Ut]=Ue.default.useForm(),[st,He]=(0,_e.useState)(!1),[jt,fn]=(0,_e.useState)(0),[,,Bt]=(0,it.U)(nt.o1,{type:(At==null?void 0:At.type)=="exercise"?12:11}),[,Ft,It]=(0,it.U)((At==null?void 0:At.type)=="exercise"?ut.dp:Ve.dp,{id:At==null?void 0:At.id}),[,Vt,wn]=(0,it.U)((At==null?void 0:At.type)=="exercise"?ut.Qc:Ve.Qc,{id:At==null?void 0:At.id});return(0,_e.useEffect)(()=>{var Dt;At!=null&&At.phone&&Nt.setFieldsValue({login:(Dt=At==null?void 0:At.phone)==null?void 0:Dt.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")})},[At==null?void 0:At.phone]),(0,_e.useEffect)(()=>{jt>0&&setTimeout(()=>{fn(jt-1)},1e3)},[jt]),(0,_e.useEffect)(()=>{bt||(Nt.resetFields(),Ut.resetFields())},[bt]),ue.createElement(ue.Fragment,null,ue.createElement(ze.default,{title:"\u624B\u673A\u53F7\u7801\u6821\u9A8C",width:619,centered:!0,open:bt,destroyOnClose:!0,confirmLoading:Ft,onCancel:gt,onOk:()=>{Nt==null||Nt.submit()}},ue.createElement("div",{style:{color:"#191919"}},"\u8BF7\u5148\u8FDB\u884C\u624B\u673A\u53F7\u7801\u6821\u9A8C"),ue.createElement(Ue.default,{className:"mt20",initialValues:{phone:(Tt=At==null?void 0:At.phone)==null?void 0:Tt.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")},form:Nt,size:"large",colon:!1,onFinish:Dt=>Oe(void 0,null,function*(){console.log("allValue",Dt);const vt=yield It({code:Dt==null?void 0:Dt.code,login:At==null?void 0:At.phone,id:At==null?void 0:At.id});vt.status===0?(yt.ZP.success("\u6821\u9A8C\u6210\u529F"),gt==null||gt(),He(!0)):Nt.setFields([{name:"code",errors:[vt==null?void 0:vt.message]}])})},ue.createElement(Ue.default.Item,{label:"\u624B\u673A\u53F7",name:"login",required:!0},ue.createElement(ot.default,{placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7",disabled:!0})),ue.createElement(Me.Z,{wrap:!1,gutter:20},ue.createElement(Et.Z,{flex:1},ue.createElement(Ue.default.Item,{label:"\u9A8C\u8BC1\u7801",name:"code",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}]},ue.createElement(ot.default,{placeholder:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}))),ue.createElement(Et.Z,null,ue.createElement(me.op,{openLoading:!0,size:"large",disabled:jt>0,style:{borderRadius:"4px"},onClick:()=>Oe(void 0,null,function*(){const Dt=yield Bt({type:(At==null?void 0:At.type)=="exercise"?12:11,login:At==null?void 0:At.phone,smscode:(0,ee.M)(At==null?void 0:At.phone)});(Dt==null?void 0:Dt.status)===1&&(yt.ZP.success("\u53D1\u9001\u6210\u529F"),fn(60))})},jt===0?"\u83B7\u53D6\u9A8C\u8BC1\u7801":`(${jt})\u79D2\u53EF\u91CD\u65B0\u83B7\u53D6`))))),ue.createElement(ze.default,{title:"\u91CD\u7F6E\u5C01\u5B58\u5BC6\u7801",width:619,centered:!0,open:st,destroyOnClose:!0,confirmLoading:Vt,onCancel:()=>{He(!1)},onOk:()=>{Ut==null||Ut.submit()}},ue.createElement(Ue.default,{className:"mt20",form:Ut,size:"large",colon:!1,onFinish:Dt=>Oe(void 0,null,function*(){console.log("allValue",Dt),(yield wn(Re({id:At==null?void 0:At.id},Dt))).status===0&&(yt.ZP.success("\u91CD\u7F6E\u6210\u529F"),He(!1))})},ue.createElement(Ue.default.Item,{label:"\u5C01\u5B58\u5BC6\u7801",name:"pwd",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"},{pattern:/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{6,16}$/,message:"\u5BC6\u7801\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u4E14\u957F\u5EA6\u4E3A6-16\u4E2A\u5B57\u7B26"}]},ue.createElement(ot.default.Password,{placeholder:"\u8BF7\u8BBE\u7F6E\u5C01\u5B58\u5BC6\u7801\uFF0C\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u6700\u5927\u9650\u52366-16\u4E2A\u5B57\u7B26"})),ue.createElement(Ue.default.Item,{label:"\u786E\u8BA4\u5BC6\u7801",name:"pwd_confirm",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"},{pattern:/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{6,16}$/,message:"\u5BC6\u7801\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u4E14\u957F\u5EA6\u4E3A6-16\u4E2A\u5B57\u7B26"},({getFieldValue:Dt})=>({validator(vt,zt){return!zt||Dt("pwd")===zt?Promise.resolve():Promise.reject(new Error("\u4E24\u6B21\u8F93\u5165\u7684\u5BC6\u7801\u4E0D\u4E00\u81F4"))}})]},ue.createElement(ot.default.Password,{placeholder:"\u8BF7\u518D\u6B21\u8F93\u5165\u5C01\u5B58\u5BC6\u7801\uFF0C\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u6700\u5927\u9650\u52366-16\u4E2A\u5B57\u7B26"})))))},rt=({onCancel:gt,onFinish:bt,open:At,Data:Tt})=>{const[Nt]=Ue.default.useForm(),[Ut,st]=(0,_e.useState)(!1),[,He,jt]=(0,it.U)((Tt==null?void 0:Tt.type)=="exercise"?ut.yE:Ve.yE,{id:Tt==null?void 0:Tt.id});return(0,_e.useEffect)(()=>{At||Nt.resetFields()},[At]),ue.createElement(ue.Fragment,null,ue.createElement(ze.default,{title:"\u8BD5\u5377\u89E3\u5C01",width:619,centered:!0,open:At,destroyOnClose:!0,confirmLoading:He,onCancel:gt,onOk:()=>{Nt==null||Nt.submit()}},ue.createElement(Me.Z,{wrap:!1,align:"top",gutter:16},ue.createElement(Et.Z,{flex:1},ue.createElement(Ue.default,{form:Nt,size:"large",colon:!1,onFinish:fn=>Oe(void 0,null,function*(){const Bt=yield jt({id:Tt==null?void 0:Tt.id,is_encrypt:!1,pwd:We(fn.pwd)});(Bt==null?void 0:Bt.status)===0?(yt.ZP.success("\u89E3\u5C01\u6210\u529F"),bt==null||bt(Bt),gt==null||gt()):Nt.setFields([{name:"pwd",errors:[Bt==null?void 0:Bt.message]}])})},ue.createElement(Ue.default.Item,{label:"\u5C01\u5B58\u5BC6\u7801",name:"pwd",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"}]},ue.createElement(ot.default.Password,{placeholder:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"})))),ue.createElement(Et.Z,null,ue.createElement("a",{style:{lineHeight:"40px",whiteSpace:"nowrap"},onClick:()=>{st(!0),gt==null||gt()}},"\u5FD8\u8BB0\u5BC6\u7801\uFF1F")))),ue.createElement(Qe,{onCancel:()=>{st(!1)},open:Ut,Data:Re({},Tt)}))},xt=({onCancel:gt,onFinish:bt,open:At,Data:Tt})=>{const[Nt]=Ue.default.useForm(),[Ut,st]=(0,_e.useState)(!1),[,He,jt]=(0,it.U)((Tt==null?void 0:Tt.type)=="exercise"?ut.yE:Ve.yE,{id:Tt==null?void 0:Tt.id});return(0,_e.useEffect)(()=>{At||Nt.resetFields()},[At]),ue.createElement(ue.Fragment,null,ue.createElement(ze.default,{title:"\u63D0\u793A",width:619,centered:!0,open:At,destroyOnClose:!0,confirmLoading:He,onCancel:gt,onOk:()=>{Nt==null||Nt.submit()}},ue.createElement("div",{className:"pt16 pb16 pl12 pr12 rounded-4px flex item-center gap-8px",style:{background:"rgba(233, 127, 55, .06)",color:"#FA6400"}},ue.createElement("i",{className:"iconfont icon-tishi7"}),ue.createElement("span",null,"\u8BD5\u5377\u5DF2\u8FDB\u884C\u52A0\u5BC6\u5C01\u5B58\uFF0C\u5982\u9700\u8FDB\u884C\u64CD\u4F5C\uFF0C\u8BF7\u5148\u8F93\u5165\u5C01\u5B58\u5BC6\u7801\u8FDB\u884C\u89E3\u5C01\uFF01")),ue.createElement(Ue.default,{form:Nt,className:"mt-20px",size:"large",colon:!1,onFinish:fn=>Oe(void 0,null,function*(){const Bt=yield jt({id:Tt==null?void 0:Tt.id,is_encrypt:!1,pwd:We(fn.pwd)});(Bt==null?void 0:Bt.status)===0?(yt.ZP.success("\u89E3\u5C01\u6210\u529F"),bt==null||bt(Bt),gt==null||gt()):Nt.setFields([{name:"pwd",errors:[Bt==null?void 0:Bt.message]}])})},ue.createElement(Me.Z,{wrap:!1,gutter:20},ue.createElement(Et.Z,{flex:1},ue.createElement(Ue.default.Item,{label:"\u5C01\u5B58\u5BC6\u7801",name:"pwd",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"},{pattern:/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{6,16}$/,message:"\u5BC6\u7801\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u4E14\u957F\u5EA6\u4E3A6-16\u4E2A\u5B57\u7B26"}]},ue.createElement(ot.default.Password,{placeholder:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"}))),ue.createElement(Et.Z,null,ue.createElement("a",{style:{lineHeight:"40px",whiteSpace:"nowrap"},onClick:()=>{st(!0),gt==null||gt()}},"\u5FD8\u8BB0\u5BC6\u7801\uFF1F"))))),ue.createElement(Qe,{onCancel:()=>{st(!1)},open:Ut,Data:Re({},Tt)}))}},45937:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{U:function(){return ot}});var me=Pe(59301),Ve=Object.defineProperty,ut=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,ze=(Me,Et,_e)=>Et in Me?Ve(Me,Et,{enumerable:!0,configurable:!0,writable:!0,value:_e}):Me[Et]=_e,Ue=(Me,Et)=>{for(var _e in Et||(Et={}))nt.call(Et,_e)&&ze(Me,_e,Et[_e]);if(ut)for(var _e of ut(Et))it.call(Et,_e)&&ze(Me,_e,Et[_e]);return Me},yt=(Me,Et,_e)=>new Promise((ht,Ee)=>{var ne=se=>{try{ue(_e.next(se))}catch(de){Ee(de)}},ee=se=>{try{ue(_e.throw(se))}catch(de){Ee(de)}},ue=se=>se.done?ht(se.value):Promise.resolve(se.value).then(ne,ee);ue((_e=_e.apply(Me,Et)).next())});function ot(Me,Et){const[_e,ht]=(0,me.useState)(Et),[Ee,ne]=(0,me.useState)(!1),[ee,ue]=(0,me.useState)();return[_e,Ee,(de,pe=!1)=>yt(this,null,function*(){const ye=pe?Et:Ue(Ue({},_e),de);ne(!0),ht(ye);const Ce=yield Me(ye);return ne(!1),ue(Ce),Ce}),ee,ue]}},81428:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{AL:function(){return ye},Iy:function(){return Et},Qv:function(){return Ee},ez:function(){return pe},jb:function(){return _e}});var me=Pe(32834),Ve=Pe.n(me),ut=Pe(11690),nt=Pe.n(ut);let it=1;function ze(Be,Ie){const Qe=Be.match(/^(\s+)(?:```)/);if(Qe===null)return Ie;const rt=Qe[1];return Ie.split(`
|
|
`).map(xt=>{const gt=xt.match(/^\s+/);if(gt===null)return xt;const[bt]=gt;return bt.length>=rt.length?xt.slice(rt.length):xt}).join(`
|
|
`)}let Ue=[],yt=["<ul>"];const ot=new(Ve()).Renderer,Me=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Et(){Ue.length=0,yt=["<ul>"]}const _e={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function ht(Be,Ie,Qe,rt){if(Ie>=Be.length||Be[Ie].level<=Qe)return Ie;var xt=Be[Ie];rt.push("<li><a href='#"+it+xt.anchor+"'>"+xt.text+"</a>"),Ie++;var gt=[];return Ie=ht(Be,Ie,xt.level,gt),gt.length>0&&(rt.push("<ul>"),gt.forEach(function(bt){rt.push(bt)}),rt.push("</ul>")),rt.push("</li>"),Ie=ht(Be,Ie,Qe,rt),Ie}function Ee(){return ht(Ue,0,0,yt),yt.push("</ul>"),yt.join("")}const ne={heading(Be){const Ie=Me.exec(Be);if(it+=1,Ie)return{type:"heading",raw:Ie[0],depth:Ie[1].length,text:Ie[2]}},fences(Be){const Ie=this.rules.block.fences.exec(Be);if(Ie){const Qe=Ie[0];let rt=ze(Qe,Ie[3]||"");const xt=Ie[2]?Ie[2].trim():Ie[2];if(["latex","katex","math"].indexOf(xt)>=0){const gt=se(),bt=rt;rt=gt,de[gt]={type:"block",expression:bt}}return{type:"code",raw:Qe,lang:xt,text:rt}}}},ee=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ue=0;const se=()=>`__special_katext_id_${ue++}__`;let de={};function pe(){return de}function ye(){ue=0,de={}}function Ce(Be){return Be=Be.replace(ee,(Ie,Qe)=>{const rt=se();return de[rt]={type:"inline",expression:Qe},rt}),Be}const Re=ot.listitem;ot.listitem=function(Be){return Re(Ce(Be))};const Oe=ot.paragraph;ot.paragraph=function(Be){return Oe(Ce(Be))};const We=ot.tablecell;ot.tablecell=function(Be,Ie){return We(Ce(Be),Ie)},ot.code=function(Be,Ie,Qe){const rt=(Ie||"").match(/\S*/)[0];return rt?["latex","katex","math"].indexOf(rt)>=0?`<p class='editormd-tex'>${Be}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ie}">${Qe?Be:(0,ut.escape)(Be,!0)}</code></pre>
|
|
`:'<pre class="prettyprint linenums"><code>'+(Qe?Be:(0,ut.escape)(Be,!0))+"</code></pre>"},ot.heading=function(Be,Ie,Qe){let rt=this.options.headerPrefix+Qe.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ue.push({anchor:rt,level:Ie,text:Be}),"<h"+Ie+' id="'+it+rt+'">'+Be+"</h"+Ie+">"},Ve().setOptions({silent:!0,gfm:!0,pedantic:!1}),Ve().use({tokenizer:ne,renderer:ot}),Jt.ZP=Ve()},40197:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{rX:function(){return Ce},pW:function(){return Re},gy:function(){return Oe},xY:function(){return ye},O5:function(){return pe},hs:function(){return ee},tJ:function(){return Ee},o1:function(){return ne},Rd:function(){return de}});var me=Pe(25690),Ve=Pe(62957),ut=Pe(37285),nt=Pe(6767),it=Pe(48790),ze=Pe(51257),Ue=Pe(87169),yt=Pe(25510),ot="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6Jg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IywAIAOBBQBkILAAgAwEFgCQgcACADIQWABARh7VGkxytjyAyQ1ZcdvYtjoEVgyAoDLbhbPrNF7LxHiTbCvI4WydjIHgCAsAyEBgAQAZCCwAIAOBBQBkILAAgAwEFgCQkcewBioPvlsxAMK2u/gunHPB5OJWjJ+wbeSKs1u3YnHqRT5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIMFutYefOnRUVFVa3ctWqVStXrjT4ZtsqK+RE5Ql7K1BpvAtHmdhWI8S2QhcWDWswG1gVFRVVVVVWtCxbOBy2ehMA4H44JQQAMhBYAEAGAgsAyEBgAQAZCCwAIMOSSShM3tFsaWkp+J1HZx+RN75O23pkRWEGk5wdEWJFN0023mTdEWfH9xjvZl5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIsGRYg7NIP99vRd+tKDlg2zutYLxJzk7/Ydv+dOEcKwPBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgowiHNYzk4QJWPEzvwm7mZEVlBZP1Epwd65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",Me=Pe.p+"static/newqrcode.a8740efb.png",Et=Pe(32637),_e=Pe(59301),ht=(We,Be,Ie)=>new Promise((Qe,rt)=>{var xt=At=>{try{bt(Ie.next(At))}catch(Tt){rt(Tt)}},gt=At=>{try{bt(Ie.throw(At))}catch(Tt){rt(Tt)}},bt=At=>At.done?Qe(At.value):Promise.resolve(At.value).then(xt,gt);bt((Ie=Ie.apply(We,Be)).next())});const Ee=(We,Be=!1,Ie=!1,Qe="",rt=!1)=>!!(ne(We)&&ue(We,Be,Ie,Qe,rt)),ne=We=>(0,it.bg)()?!0:(We({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),ee=We=>{var Be,Ie,Qe;const{user:rt}=(0,me.getDvaApp)()._store.getState();(0,it.bg)()&&!((Ie=(Be=rt==null?void 0:rt.userInfo)==null?void 0:Be.course)!=null&&Ie.course_public)&&!((Qe=rt==null?void 0:rt.userInfo)!=null&&Qe.profile_completed)&&We({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:"/account/profile/edit",isCurrentPage:!0}})},ue=(We,Be=!1,Ie=!0,Qe="",rt=!1)=>{var xt;const{user:gt}=(0,me.getDvaApp)()._store.getState();return(xt=gt.userInfo)!=null&&xt.profile_completed?!0:(Ie?We({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:Qe,isCurrentPage:rt}}):Ve.default.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,ze.xg)("/account/profile/edit"),se()}}),!1)},se=()=>{Ve.default.success({title:"\u63D0\u793A",width:430,closable:!0,centered:!0,content:"\u5DF2\u5B8C\u5584\u4E2A\u4EBA\u8D44\u6599\uFF1F\u8BF7\u5237\u65B0\u9875\u9762",okText:"\u7ACB\u5373\u5237\u65B0",icon:null,onOk:()=>{location.reload()}})},de=()=>{Ve.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:_e.createElement("div",{style:{textAlign:"center"}},_e.createElement("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"}},"\u8001\u5E08\u60A8\u597D\uFF0C\u60A8\u7684\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u76F8\u5173\u529F\u80FD\u88AB\u9650\u5236\u3002 \u5982\u9700\u7EE7\u7EED\u4F7F\u7528\uFF0C\u8BF7\u5C3D\u5FEB\u5BF9\u63A5\u4EBA\u5DE5\u652F\u6301\uFF01"),_e.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:Et}),_e.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},pe=()=>{var We;const{user:Be}=(0,me.getDvaApp)()._store.getState();return(We=Be.userInfo)!=null&&We.professional_certification?!0:(Ve.default.confirm({title:"\u63D0\u793A",centered:!0,content:_e.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,ze.xg)("/account/certification")}}),!1)},ye=()=>(0,it.V9)()?!0:(Ve.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:_e.createElement("div",{className:"tc",style:{marginLeft:-38}},_e.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),_e.createElement("img",{src:Me,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),Ce=(We,Be)=>We?!0:(Ve.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:_e.createElement("div",null,_e.createElement("p",null,Be||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),_e.createElement("div",{style:{marginLeft:"110px"}},_e.createElement("img",{src:ot,width:200}),_e.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,ze.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),Re=We=>{Ve.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:_e.createElement("div",null,_e.createElement("div",null,_e.createElement("p",{style:{color:"#191919",fontWeight:400,fontSize:14}},"\u201C\u4FDD\u5B58\u5B9E\u9A8C\u4E34\u65F6\u6570\u636E\u201D\u529F\u80FD\u4E3A\u4ED8\u8D39\u529F\u80FD\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425\u8FDB\u884C\u5F00\u901A\u3002"),_e.createElement(ut.Z,null),_e.createElement("p",{style:{color:"#666666",fontSize:12}}," ",_e.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"1")," \u56E0\u5E73\u53F0\u7684\u5B9E\u9A8C\u6570\u636E\u50A8\u5B58\u5BB9\u91CF\u548C\u6210\u672C\u6D88\u8017\u8F83\u5927\uFF0C\u5B9E\u8DF5\u9879\u76EE\u9ED8\u8BA4\u4FDD\u5B58\u5B9E\u9A8C\u73AF\u5883\u4E2D\u4E34\u65F6\u6570\u636E ",_e.createElement("a",null,We),"\u5929\u3002"),_e.createElement("p",{style:{color:"#666666",fontSize:12}}," ",_e.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"2"),"\u82E5\u60A8\u9700\u8981\u4E2A\u6027\u5316\u7684\u6570\u636E\u4FDD\u5B58\u5468\u671F\u670D\u52A1\uFF0C\u6211\u4EEC\u53EF\u4EE5\u63D0\u4F9B\u76F8\u5173\u6280\u672F\u652F\u6301\uFF0C\u5E76\u6839\u636E\u60A8\u7684\u9700\u6C42\u6536\u53D6\u5B9A\u5236\u8D39\u7528\u3002")),_e.createElement("div",{style:{textAlign:"center",marginTop:30}},_e.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:yt,alt:"\u4E8C\u7EF4\u7801",width:160})))})},Oe=(We,Be="")=>{const{shixunsDetail:{detail:Ie}}=(0,me.getDvaApp)()._store.getState();if((Ie==null?void 0:Ie.public)===2||(Ie==null?void 0:Ie.public)===1||(Ie==null?void 0:Ie.shixun_status)===3){let Qe="";return(Ie==null?void 0:Ie.public)===2&&(Qe="\u5DF2\u516C\u5F00"),(Ie==null?void 0:Ie.public)===1&&(Qe="\u5F85\u5BA1\u6838"),(Ie==null?void 0:Ie.shixun_status)===3&&(Qe="\u5DF2\u5173\u95ED"),Ve.default.info({centered:!0,icon:_e.createElement(Ue.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:_e.createElement("div",{className:"tc",style:{marginLeft:-38}},_e.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},_e.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",Qe,"\uFF0C",Be,"\u3002"),_e.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),_e.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:yt,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(Ie==null?void 0:Ie.shixun_status)===2?(Ve.default.confirm({centered:!0,icon:_e.createElement(Ue.Z,null),title:"\u63D0\u793A",content:_e.createElement("div",null,_e.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",Be,"\u3002"),_e.createElement("br",null),_e.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>{Ve.default.confirm({width:440,centered:!0,icon:_e.createElement(Ue.Z,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>ht(void 0,null,function*(){(yield We({type:"shixunsDetail/cancelRelease",payload:{id:Ie==null?void 0:Ie.identifier}})).status!==401&&(nt.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),We({type:"shixunsDetail/getShixunsDetail",payload:{id:Ie==null?void 0:Ie.identifier}}),We({type:"practiceSetting/getCommonData",payload:{id:Ie==null?void 0:Ie.identifier}}))})})}}),!0):!1}},14625:function(cn){function Jt(me){var Ve,ut,nt="";if(typeof me=="string"||typeof me=="number")nt+=me;else if(typeof me=="object")if(Array.isArray(me)){var it=me.length;for(Ve=0;Ve<it;Ve++)me[Ve]&&(ut=Jt(me[Ve]))&&(nt&&(nt+=" "),nt+=ut)}else for(ut in me)me[ut]&&(nt&&(nt+=" "),nt+=ut);return nt}function Pe(){for(var me,Ve,ut=0,nt="",it=arguments.length;ut<it;ut++)(me=arguments[ut])&&(Ve=Jt(me))&&(nt&&(nt+=" "),nt+=Ve);return nt}cn.exports=Pe,cn.exports.clsx=Pe},99498:function(cn,Jt,Pe){(function(me){me(Pe(89780))})(function(me){me.defineOption("placeholder","",function(yt,ot,Me){var Et=Me&&Me!=me.Init;if(ot&&!Et)yt.on("blur",it),yt.on("change",ze),yt.on("swapDoc",ze),me.on(yt.getInputField(),"compositionupdate",yt.state.placeholderCompose=function(){nt(yt)}),ze(yt);else if(!ot&&Et){yt.off("blur",it),yt.off("change",ze),yt.off("swapDoc",ze),me.off(yt.getInputField(),"compositionupdate",yt.state.placeholderCompose),Ve(yt);var _e=yt.getWrapperElement();_e.className=_e.className.replace(" CodeMirror-empty","")}ot&&!yt.hasFocus()&&it(yt)});function Ve(yt){yt.state.placeholder&&(yt.state.placeholder.parentNode.removeChild(yt.state.placeholder),yt.state.placeholder=null)}function ut(yt){Ve(yt);var ot=yt.state.placeholder=document.createElement("pre");ot.style.cssText="height: 0; overflow: visible",ot.style.direction=yt.getOption("direction"),ot.className="CodeMirror-placeholder CodeMirror-line-like";var Me=yt.getOption("placeholder");typeof Me=="string"&&(Me=document.createTextNode(Me)),ot.appendChild(Me),yt.display.lineSpace.insertBefore(ot,yt.display.lineSpace.firstChild)}function nt(yt){setTimeout(function(){var ot=!1,Me=yt.getInputField();Me.nodeName=="TEXTAREA"?ot=!Me.value:yt.lineCount()==1&&(ot=!/[^\u200b]/.test(Me.querySelector(".CodeMirror-line").textContent)),ot?ut(yt):Ve(yt)},20)}function it(yt){Ue(yt)&&ut(yt)}function ze(yt){var ot=yt.getWrapperElement(),Me=Ue(yt);ot.className=ot.className.replace(" CodeMirror-empty","")+(Me?" CodeMirror-empty":""),Me?ut(yt):Ve(yt)}function Ue(yt){return yt.lineCount()===1&&yt.getLine(0)===""}})},25717:function(cn,Jt,Pe){(function(me){me(Pe(89780))})(function(me){var Ve={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ut=me.Pos;me.defineOption("autoCloseBrackets",!1,function(ne,ee,ue){ue&&ue!=me.Init&&(ne.removeKeyMap(it),ne.state.closeBrackets=null),ee&&(ze(nt(ee,"pairs")),ne.state.closeBrackets=ee,ne.addKeyMap(it))});function nt(ne,ee){return ee=="pairs"&&typeof ne=="string"?ne:typeof ne=="object"&&ne[ee]!=null?ne[ee]:Ve[ee]}var it={Backspace:ot,Enter:Me};function ze(ne){for(var ee=0;ee<ne.length;ee++){var ue=ne.charAt(ee),se="'"+ue+"'";it[se]||(it[se]=Ue(ue))}}ze(Ve.pairs+"`");function Ue(ne){return function(ee){return _e(ee,ne)}}function yt(ne){var ee=ne.state.closeBrackets;if(!ee||ee.override)return ee;var ue=ne.getModeAt(ne.getCursor());return ue.closeBrackets||ee}function ot(ne){var ee=yt(ne);if(!ee||ne.getOption("disableInput"))return me.Pass;for(var ue=nt(ee,"pairs"),se=ne.listSelections(),de=0;de<se.length;de++){if(!se[de].empty())return me.Pass;var pe=ht(ne,se[de].head);if(!pe||ue.indexOf(pe)%2!=0)return me.Pass}for(var de=se.length-1;de>=0;de--){var ye=se[de].head;ne.replaceRange("",ut(ye.line,ye.ch-1),ut(ye.line,ye.ch+1),"+delete")}}function Me(ne){var ee=yt(ne),ue=ee&&nt(ee,"explode");if(!ue||ne.getOption("disableInput"))return me.Pass;for(var se=ne.listSelections(),de=0;de<se.length;de++){if(!se[de].empty())return me.Pass;var pe=ht(ne,se[de].head);if(!pe||ue.indexOf(pe)%2!=0)return me.Pass}ne.operation(function(){var ye=ne.lineSeparator()||`
|
|
`;ne.replaceSelection(ye+ye,null),ne.execCommand("goCharLeft"),se=ne.listSelections();for(var Ce=0;Ce<se.length;Ce++){var Re=se[Ce].head.line;ne.indentLine(Re,null,!0),ne.indentLine(Re+1,null,!0)}})}function Et(ne){var ee=me.cmpPos(ne.anchor,ne.head)>0;return{anchor:new ut(ne.anchor.line,ne.anchor.ch+(ee?-1:1)),head:new ut(ne.head.line,ne.head.ch+(ee?1:-1))}}function _e(ne,ee){var ue=yt(ne);if(!ue||ne.getOption("disableInput"))return me.Pass;var se=nt(ue,"pairs"),de=se.indexOf(ee);if(de==-1)return me.Pass;for(var pe=nt(ue,"closeBefore"),ye=nt(ue,"triples"),Ce=se.charAt(de+1)==ee,Re=ne.listSelections(),Oe=de%2==0,We,Be=0;Be<Re.length;Be++){var Ie=Re[Be],Qe=Ie.head,rt,xt=ne.getRange(Qe,ut(Qe.line,Qe.ch+1));if(Oe&&!Ie.empty())rt="surround";else if((Ce||!Oe)&&xt==ee)Ce&&Ee(ne,Qe)?rt="both":ye.indexOf(ee)>=0&&ne.getRange(Qe,ut(Qe.line,Qe.ch+3))==ee+ee+ee?rt="skipThree":rt="skip";else if(Ce&&Qe.ch>1&&ye.indexOf(ee)>=0&&ne.getRange(ut(Qe.line,Qe.ch-2),Qe)==ee+ee){if(Qe.ch>2&&/\bstring/.test(ne.getTokenTypeAt(ut(Qe.line,Qe.ch-2))))return me.Pass;rt="addFour"}else if(Ce){var gt=Qe.ch==0?" ":ne.getRange(ut(Qe.line,Qe.ch-1),Qe);if(!me.isWordChar(xt)&>!=ee&&!me.isWordChar(gt))rt="both";else return me.Pass}else if(Oe&&(xt.length===0||/\s/.test(xt)||pe.indexOf(xt)>-1))rt="both";else return me.Pass;if(!We)We=rt;else if(We!=rt)return me.Pass}var bt=de%2?se.charAt(de-1):ee,At=de%2?ee:se.charAt(de+1);ne.operation(function(){if(We=="skip")ne.execCommand("goCharRight");else if(We=="skipThree")for(var Tt=0;Tt<3;Tt++)ne.execCommand("goCharRight");else if(We=="surround"){for(var Nt=ne.getSelections(),Tt=0;Tt<Nt.length;Tt++)Nt[Tt]=bt+Nt[Tt]+At;ne.replaceSelections(Nt,"around"),Nt=ne.listSelections().slice();for(var Tt=0;Tt<Nt.length;Tt++)Nt[Tt]=Et(Nt[Tt]);ne.setSelections(Nt)}else We=="both"?(ne.replaceSelection(bt+At,null),ne.triggerElectric(bt+At),ne.execCommand("goCharLeft")):We=="addFour"&&(ne.replaceSelection(bt+bt+bt+bt,"before"),ne.execCommand("goCharRight"))})}function ht(ne,ee){var ue=ne.getRange(ut(ee.line,ee.ch-1),ut(ee.line,ee.ch+1));return ue.length==2?ue:null}function Ee(ne,ee){var ue=ne.getTokenAt(ut(ee.line,ee.ch+1));return/\bstring/.test(ue.type)&&ue.start==ee.ch&&(ee.ch==0||!/\bstring/.test(ne.getTokenTypeAt(ee)))}})},6313:function(cn,Jt,Pe){(function(me){me(Pe(89780),Pe(32855))})(function(me){me.defineOption("autoCloseTags",!1,function(ot,Me,Et){if(Et!=me.Init&&Et&&ot.removeKeyMap("autoCloseTags"),!!Me){var _e={name:"autoCloseTags"};(typeof Me!="object"||Me.whenClosing!==!1)&&(_e["'/'"]=function(ht){return ze(ht)}),(typeof Me!="object"||Me.whenOpening!==!1)&&(_e["'>'"]=function(ht){return nt(ht)}),ot.addKeyMap(_e)}});var Ve=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ut=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function nt(ot){if(ot.getOption("disableInput"))return me.Pass;for(var Me=ot.listSelections(),Et=[],_e=ot.getOption("autoCloseTags"),ht=0;ht<Me.length;ht++){if(!Me[ht].empty())return me.Pass;var Ee=Me[ht].head,ne=ot.getTokenAt(Ee),ee=me.innerMode(ot.getMode(),ne.state),ue=ee.state,se=ee.mode.xmlCurrentTag&&ee.mode.xmlCurrentTag(ue),de=se&&se.name;if(!de)return me.Pass;var pe=ee.mode.configuration=="html",ye=typeof _e=="object"&&_e.dontCloseTags||pe&&Ve,Ce=typeof _e=="object"&&_e.indentTags||pe&&ut;ne.end>Ee.ch&&(de=de.slice(0,de.length-ne.end+Ee.ch));var Re=de.toLowerCase();if(!de||ne.type=="string"&&(ne.end!=Ee.ch||!/[\"\']/.test(ne.string.charAt(ne.string.length-1))||ne.string.length==1)||ne.type=="tag"&&se.close||ne.string.indexOf("/")==Ee.ch-ne.start-1||ye&&Ue(ye,Re)>-1||yt(ot,ee.mode.xmlCurrentContext&&ee.mode.xmlCurrentContext(ue)||[],de,Ee,!0))return me.Pass;var Oe=typeof _e=="object"&&_e.emptyTags;if(Oe&&Ue(Oe,de)>-1){Et[ht]={text:"/>",newPos:me.Pos(Ee.line,Ee.ch+2)};continue}var We=Ce&&Ue(Ce,Re)>-1;Et[ht]={indent:We,text:">"+(We?`
|
|
|
|
`:"")+"</"+de+">",newPos:We?me.Pos(Ee.line+1,0):me.Pos(Ee.line,Ee.ch+1)}}for(var Be=typeof _e=="object"&&_e.dontIndentOnAutoClose,ht=Me.length-1;ht>=0;ht--){var Ie=Et[ht];ot.replaceRange(Ie.text,Me[ht].head,Me[ht].anchor,"+insert");var Qe=ot.listSelections().slice(0);Qe[ht]={head:Ie.newPos,anchor:Ie.newPos},ot.setSelections(Qe),!Be&&Ie.indent&&(ot.indentLine(Ie.newPos.line,null,!0),ot.indentLine(Ie.newPos.line+1,null,!0))}}function it(ot,Me){for(var Et=ot.listSelections(),_e=[],ht=Me?"/":"</",Ee=ot.getOption("autoCloseTags"),ne=typeof Ee=="object"&&Ee.dontIndentOnSlash,ee=0;ee<Et.length;ee++){if(!Et[ee].empty())return me.Pass;var ue=Et[ee].head,se=ot.getTokenAt(ue),de=me.innerMode(ot.getMode(),se.state),pe=de.state;if(Me&&(se.type=="string"||se.string.charAt(0)!="<"||se.start!=ue.ch-1))return me.Pass;var ye,Ce=de.mode.name!="xml"&&ot.getMode().name=="htmlmixed";if(Ce&&de.mode.name=="javascript")ye=ht+"script";else if(Ce&&de.mode.name=="css")ye=ht+"style";else{var Re=de.mode.xmlCurrentContext&&de.mode.xmlCurrentContext(pe);if(!Re||Re.length&&yt(ot,Re,Re[Re.length-1],ue))return me.Pass;ye=ht+Re[Re.length-1]}ot.getLine(ue.line).charAt(se.end)!=">"&&(ye+=">"),_e[ee]=ye}if(ot.replaceSelections(_e),Et=ot.listSelections(),!ne)for(var ee=0;ee<Et.length;ee++)(ee==Et.length-1||Et[ee].head.line<Et[ee+1].head.line)&&ot.indentLine(Et[ee].head.line)}function ze(ot){return ot.getOption("disableInput")?me.Pass:it(ot,!0)}me.commands.closeTag=function(ot){return it(ot)};function Ue(ot,Me){if(ot.indexOf)return ot.indexOf(Me);for(var Et=0,_e=ot.length;Et<_e;++Et)if(ot[Et]==Me)return Et;return-1}function yt(ot,Me,Et,_e,ht){if(!me.scanForClosingTag)return!1;var Ee=Math.min(ot.lastLine()+1,_e.line+500),ne=me.scanForClosingTag(ot,_e,null,Ee);if(!ne||ne.tag!=Et)return!1;for(var ee=ht?1:0,ue=Me.length-1;ue>=0&&Me[ue]==Et;ue--)++ee;_e=ne.to;for(var ue=1;ue<ee;ue++){var se=me.scanForClosingTag(ot,_e,null,Ee);if(!se||se.tag!=Et)return!1;_e=se.to}return!0}})},32855:function(cn,Jt,Pe){(function(me){me(Pe(89780))})(function(me){"use strict";var Ve=me.Pos;function ut(ue,se){return ue.line-se.line||ue.ch-se.ch}var nt="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",it=nt+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ze=new RegExp("<(/?)(["+nt+"]["+it+"]*)","g");function Ue(ue,se,de,pe){this.line=se,this.ch=de,this.cm=ue,this.text=ue.getLine(se),this.min=pe?Math.max(pe.from,ue.firstLine()):ue.firstLine(),this.max=pe?Math.min(pe.to-1,ue.lastLine()):ue.lastLine()}function yt(ue,se){var de=ue.cm.getTokenTypeAt(Ve(ue.line,se));return de&&/\btag\b/.test(de)}function ot(ue){if(!(ue.line>=ue.max))return ue.ch=0,ue.text=ue.cm.getLine(++ue.line),!0}function Me(ue){if(!(ue.line<=ue.min))return ue.text=ue.cm.getLine(--ue.line),ue.ch=ue.text.length,!0}function Et(ue){for(;;){var se=ue.text.indexOf(">",ue.ch);if(se==-1){if(ot(ue))continue;return}if(!yt(ue,se+1)){ue.ch=se+1;continue}var de=ue.text.lastIndexOf("/",se),pe=de>-1&&!/\S/.test(ue.text.slice(de+1,se));return ue.ch=se+1,pe?"selfClose":"regular"}}function _e(ue){for(;;){var se=ue.ch?ue.text.lastIndexOf("<",ue.ch-1):-1;if(se==-1){if(Me(ue))continue;return}if(!yt(ue,se+1)){ue.ch=se;continue}ze.lastIndex=se,ue.ch=se;var de=ze.exec(ue.text);if(de&&de.index==se)return de}}function ht(ue){for(;;){ze.lastIndex=ue.ch;var se=ze.exec(ue.text);if(!se){if(ot(ue))continue;return}if(!yt(ue,se.index+1)){ue.ch=se.index+1;continue}return ue.ch=se.index+se[0].length,se}}function Ee(ue){for(;;){var se=ue.ch?ue.text.lastIndexOf(">",ue.ch-1):-1;if(se==-1){if(Me(ue))continue;return}if(!yt(ue,se+1)){ue.ch=se;continue}var de=ue.text.lastIndexOf("/",se),pe=de>-1&&!/\S/.test(ue.text.slice(de+1,se));return ue.ch=se+1,pe?"selfClose":"regular"}}function ne(ue,se){for(var de=[];;){var pe=ht(ue),ye,Ce=ue.line,Re=ue.ch-(pe?pe[0].length:0);if(!pe||!(ye=Et(ue)))return;if(ye!="selfClose")if(pe[1]){for(var Oe=de.length-1;Oe>=0;--Oe)if(de[Oe]==pe[2]){de.length=Oe;break}if(Oe<0&&(!se||se==pe[2]))return{tag:pe[2],from:Ve(Ce,Re),to:Ve(ue.line,ue.ch)}}else de.push(pe[2])}}function ee(ue,se){for(var de=[];;){var pe=Ee(ue);if(!pe)return;if(pe=="selfClose"){_e(ue);continue}var ye=ue.line,Ce=ue.ch,Re=_e(ue);if(!Re)return;if(Re[1])de.push(Re[2]);else{for(var Oe=de.length-1;Oe>=0;--Oe)if(de[Oe]==Re[2]){de.length=Oe;break}if(Oe<0&&(!se||se==Re[2]))return{tag:Re[2],from:Ve(ue.line,ue.ch),to:Ve(ye,Ce)}}}}me.registerHelper("fold","xml",function(ue,se){for(var de=new Ue(ue,se.line,0);;){var pe=ht(de);if(!pe||de.line!=se.line)return;var ye=Et(de);if(!ye)return;if(!pe[1]&&ye!="selfClose"){var Ce=Ve(de.line,de.ch),Re=ne(de,pe[2]);return Re&&ut(Re.from,Ce)>0?{from:Ce,to:Re.from}:null}}}),me.findMatchingTag=function(ue,se,de){var pe=new Ue(ue,se.line,se.ch,de);if(!(pe.text.indexOf(">")==-1&&pe.text.indexOf("<")==-1)){var ye=Et(pe),Ce=ye&&Ve(pe.line,pe.ch),Re=ye&&_e(pe);if(!(!ye||!Re||ut(pe,se)>0)){var Oe={from:Ve(pe.line,pe.ch),to:Ce,tag:Re[2]};return ye=="selfClose"?{open:Oe,close:null,at:"open"}:Re[1]?{open:ee(pe,Re[2]),close:Oe,at:"close"}:(pe=new Ue(ue,Ce.line,Ce.ch,de),{open:Oe,close:ne(pe,Re[2]),at:"open"})}}},me.findEnclosingTag=function(ue,se,de,pe){for(var ye=new Ue(ue,se.line,se.ch,de);;){var Ce=ee(ye,pe);if(!Ce)break;var Re=new Ue(ue,se.line,se.ch,de),Oe=ne(Re,Ce.tag);if(Oe)return{open:Ce,close:Oe}}},me.scanForClosingTag=function(ue,se,de,pe){var ye=new Ue(ue,se.line,se.ch,pe?{from:0,to:pe}:null);return ne(ye,de)}})},89780:function(cn){(function(Jt,Pe){cn.exports=Pe()})(this,function(){"use strict";var Jt=navigator.userAgent,Pe=navigator.platform,me=/gecko\/\d/i.test(Jt),Ve=/MSIE \d/.test(Jt),ut=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Jt),nt=/Edge\/(\d+)/.exec(Jt),it=Ve||ut||nt,ze=it&&(Ve?document.documentMode||6:+(nt||ut)[1]),Ue=!nt&&/WebKit\//.test(Jt),yt=Ue&&/Qt\/\d+\.\d+/.test(Jt),ot=!nt&&/Chrome\//.test(Jt),Me=/Opera\//.test(Jt),Et=/Apple Computer/.test(navigator.vendor),_e=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Jt),ht=/PhantomJS/.test(Jt),Ee=!nt&&/AppleWebKit/.test(Jt)&&/Mobile\/\w+/.test(Jt),ne=/Android/.test(Jt),ee=Ee||ne||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Jt),ue=Ee||/Mac/.test(Pe),se=/\bCrOS\b/.test(Jt),de=/win/i.test(Pe),pe=Me&&Jt.match(/Version\/(\d*\.\d*)/);pe&&(pe=Number(pe[1])),pe&&pe>=15&&(Me=!1,Ue=!0);var ye=ue&&(yt||Me&&(pe==null||pe<12.11)),Ce=me||it&&ze>=9;function Re(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var Oe=function(ie,ae){var fe=ie.className,ce=Re(ae).exec(fe);if(ce){var ve=fe.slice(ce.index+ce[0].length);ie.className=fe.slice(0,ce.index)+(ve?ce[1]+ve:"")}};function We(ie){for(var ae=ie.childNodes.length;ae>0;--ae)ie.removeChild(ie.firstChild);return ie}function Be(ie,ae){return We(ie).appendChild(ae)}function Ie(ie,ae,fe,ce){var ve=document.createElement(ie);if(fe&&(ve.className=fe),ce&&(ve.style.cssText=ce),typeof ae=="string")ve.appendChild(document.createTextNode(ae));else if(ae)for(var Le=0;Le<ae.length;++Le)ve.appendChild(ae[Le]);return ve}function Qe(ie,ae,fe,ce){var ve=Ie(ie,ae,fe,ce);return ve.setAttribute("role","presentation"),ve}var rt;document.createRange?rt=function(ie,ae,fe,ce){var ve=document.createRange();return ve.setEnd(ce||ie,fe),ve.setStart(ie,ae),ve}:rt=function(ie,ae,fe){var ce=document.body.createTextRange();try{ce.moveToElementText(ie.parentNode)}catch(ve){return ce}return ce.collapse(!0),ce.moveEnd("character",fe),ce.moveStart("character",ae),ce};function xt(ie,ae){if(ae.nodeType==3&&(ae=ae.parentNode),ie.contains)return ie.contains(ae);do if(ae.nodeType==11&&(ae=ae.host),ae==ie)return!0;while(ae=ae.parentNode)}function gt(){var ie;try{ie=document.activeElement}catch(ae){ie=document.body||null}for(;ie&&ie.shadowRoot&&ie.shadowRoot.activeElement;)ie=ie.shadowRoot.activeElement;return ie}function bt(ie,ae){var fe=ie.className;Re(ae).test(fe)||(ie.className+=(fe?" ":"")+ae)}function At(ie,ae){for(var fe=ie.split(" "),ce=0;ce<fe.length;ce++)fe[ce]&&!Re(fe[ce]).test(ae)&&(ae+=" "+fe[ce]);return ae}var Tt=function(ie){ie.select()};Ee?Tt=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:it&&(Tt=function(ie){try{ie.select()}catch(ae){}});function Nt(ie){var ae=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,ae)}}function Ut(ie,ae,fe){ae||(ae={});for(var ce in ie)ie.hasOwnProperty(ce)&&(fe!==!1||!ae.hasOwnProperty(ce))&&(ae[ce]=ie[ce]);return ae}function st(ie,ae,fe,ce,ve){ae==null&&(ae=ie.search(/[^\s\u00a0]/),ae==-1&&(ae=ie.length));for(var Le=ce||0,Ge=ve||0;;){var et=ie.indexOf(" ",Le);if(et<0||et>=ae)return Ge+(ae-Le);Ge+=et-Le,Ge+=fe-Ge%fe,Le=et+1}}var He=function(){this.id=null,this.f=null,this.time=0,this.handler=Nt(this.onTimeout,this)};He.prototype.onTimeout=function(ie){ie.id=0,ie.time<=+new Date?ie.f():setTimeout(ie.handler,ie.time-+new Date)},He.prototype.set=function(ie,ae){this.f=ae;var fe=+new Date+ie;(!this.id||fe<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,ie),this.time=fe)};function jt(ie,ae){for(var fe=0;fe<ie.length;++fe)if(ie[fe]==ae)return fe;return-1}var fn=50,Bt={toString:function(){return"CodeMirror.Pass"}},Ft={scroll:!1},It={origin:"*mouse"},Vt={origin:"+move"};function wn(ie,ae,fe){for(var ce=0,ve=0;;){var Le=ie.indexOf(" ",ce);Le==-1&&(Le=ie.length);var Ge=Le-ce;if(Le==ie.length||ve+Ge>=ae)return ce+Math.min(Ge,ae-ve);if(ve+=Le-ce,ve+=fe-ve%fe,ce=Le+1,ve>=ae)return ce}}var Dt=[""];function vt(ie){for(;Dt.length<=ie;)Dt.push(zt(Dt)+" ");return Dt[ie]}function zt(ie){return ie[ie.length-1]}function En(ie,ae){for(var fe=[],ce=0;ce<ie.length;ce++)fe[ce]=ae(ie[ce],ce);return fe}function kn(ie,ae,fe){for(var ce=0,ve=fe(ae);ce<ie.length&&fe(ie[ce])<=ve;)ce++;ie.splice(ce,0,ae)}function Ze(){}function Fe(ie,ae){var fe;return Object.create?fe=Object.create(ie):(Ze.prototype=ie,fe=new Ze),ae&&Ut(ae,fe),fe}var xe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Te(ie){return/\w/.test(ie)||ie>"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||xe.test(ie))}function Ye(ie,ae){return ae?ae.source.indexOf("\\w")>-1&&Te(ie)?!0:ae.test(ie):Te(ie)}function De(ie){for(var ae in ie)if(ie.hasOwnProperty(ae)&&ie[ae])return!1;return!0}var tt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ht(ie){return ie.charCodeAt(0)>=768&&tt.test(ie)}function $t(ie,ae,fe){for(;(fe<0?ae>0:ae<ie.length)&&Ht(ie.charAt(ae));)ae+=fe;return ae}function Sn(ie,ae,fe){for(var ce=ae>fe?-1:1;;){if(ae==fe)return ae;var ve=(ae+fe)/2,Le=ce<0?Math.ceil(ve):Math.floor(ve);if(Le==ae)return ie(Le)?ae:fe;ie(Le)?fe=Le:ae=Le+ce}}function en(ie,ae,fe,ce){if(!ie)return ce(ae,fe,"ltr",0);for(var ve=!1,Le=0;Le<ie.length;++Le){var Ge=ie[Le];(Ge.from<fe&&Ge.to>ae||ae==fe&&Ge.to==ae)&&(ce(Math.max(Ge.from,ae),Math.min(Ge.to,fe),Ge.level==1?"rtl":"ltr",Le),ve=!0)}ve||ce(ae,fe,"ltr")}var kt=null;function nn(ie,ae,fe){var ce;kt=null;for(var ve=0;ve<ie.length;++ve){var Le=ie[ve];if(Le.from<ae&&Le.to>ae)return ve;Le.to==ae&&(Le.from!=Le.to&&fe=="before"?ce=ve:kt=ve),Le.from==ae&&(Le.from!=Le.to&&fe!="before"?ce=ve:kt=ve)}return ce!=null?ce:kt}var hn=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ae="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function fe(mt){return mt<=247?ie.charAt(mt):1424<=mt&&mt<=1524?"R":1536<=mt&&mt<=1785?ae.charAt(mt-1536):1774<=mt&&mt<=2220?"r":8192<=mt&&mt<=8203?"w":mt==8204?"b":"L"}var ce=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ve=/[stwN]/,Le=/[LRr]/,Ge=/[Lb1n]/,et=/[1n]/;function qe(mt,rn,Mt){this.level=mt,this.from=rn,this.to=Mt}return function(mt,rn){var Mt=rn=="ltr"?"L":"R";if(mt.length==0||rn=="ltr"&&!ce.test(mt))return!1;for(var Nn=mt.length,xn=[],Bi=0;Bi<Nn;++Bi)xn.push(fe(mt.charCodeAt(Bi)));for(var Zi=0,er=Mt;Zi<Nn;++Zi){var Cr=xn[Zi];Cr=="m"?xn[Zi]=er:er=Cr}for(var Vr=0,Br=Mt;Vr<Nn;++Vr){var Qr=xn[Vr];Qr=="1"&&Br=="r"?xn[Vr]="n":Le.test(Qr)&&(Br=Qr,Qr=="r"&&(xn[Vr]="R"))}for(var Lo=1,Dr=xn[0];Lo<Nn-1;++Lo){var Qo=xn[Lo];Qo=="+"&&Dr=="1"&&xn[Lo+1]=="1"?xn[Lo]="1":Qo==","&&Dr==xn[Lo+1]&&(Dr=="1"||Dr=="n")&&(xn[Lo]=Dr),Dr=Qo}for(var Oa=0;Oa<Nn;++Oa){var ms=xn[Oa];if(ms==",")xn[Oa]="N";else if(ms=="%"){var Ka=void 0;for(Ka=Oa+1;Ka<Nn&&xn[Ka]=="%";++Ka);for(var sl=Oa&&xn[Oa-1]=="!"||Ka<Nn&&xn[Ka]=="1"?"1":"N",Vs=Oa;Vs<Ka;++Vs)xn[Vs]=sl;Oa=Ka-1}}for(var cs=0,xl=Mt;cs<Nn;++cs){var Ts=xn[cs];xl=="L"&&Ts=="1"?xn[cs]="L":Le.test(Ts)&&(xl=Ts)}for(var fs=0;fs<Nn;++fs)if(ve.test(xn[fs])){var ha=void 0;for(ha=fs+1;ha<Nn&&ve.test(xn[ha]);++ha);for(var Qa=(fs?xn[fs-1]:Mt)=="L",ws=(ha<Nn?xn[ha]:Mt)=="L",Os=Qa==ws?Qa?"L":"R":Mt,ou=fs;ou<ha;++ou)xn[ou]=Os;fs=ha-1}for(var Ua=[],Ul,ts=0;ts<Nn;)if(Ge.test(xn[ts])){var Bc=ts;for(++ts;ts<Nn&&Ge.test(xn[ts]);++ts);Ua.push(new qe(0,Bc,ts))}else{var Ol=ts,Pl=Ua.length,ll=rn=="rtl"?1:0;for(++ts;ts<Nn&&xn[ts]!="L";++ts);for(var Ma=Ol;Ma<ts;)if(et.test(xn[Ma])){Ol<Ma&&(Ua.splice(Pl,0,new qe(1,Ol,Ma)),Pl+=ll);var Cs=Ma;for(++Ma;Ma<ts&&et.test(xn[Ma]);++Ma);Ua.splice(Pl,0,new qe(2,Cs,Ma)),Pl+=ll,Ol=Ma}else++Ma;Ol<ts&&Ua.splice(Pl,0,new qe(1,Ol,ts))}return rn=="ltr"&&(Ua[0].level==1&&(Ul=mt.match(/^\s+/))&&(Ua[0].from=Ul[0].length,Ua.unshift(new qe(0,0,Ul[0].length))),zt(Ua).level==1&&(Ul=mt.match(/\s+$/))&&(zt(Ua).to-=Ul[0].length,Ua.push(new qe(0,Nn-Ul[0].length,Nn)))),rn=="rtl"?Ua.reverse():Ua}}();function zn(ie,ae){var fe=ie.order;return fe==null&&(fe=ie.order=hn(ie.text,ae)),fe}var fi=[],_n=function(ie,ae,fe){if(ie.addEventListener)ie.addEventListener(ae,fe,!1);else if(ie.attachEvent)ie.attachEvent("on"+ae,fe);else{var ce=ie._handlers||(ie._handlers={});ce[ae]=(ce[ae]||fi).concat(fe)}};function Pi(ie,ae){return ie._handlers&&ie._handlers[ae]||fi}function Ci(ie,ae,fe){if(ie.removeEventListener)ie.removeEventListener(ae,fe,!1);else if(ie.detachEvent)ie.detachEvent("on"+ae,fe);else{var ce=ie._handlers,ve=ce&&ce[ae];if(ve){var Le=jt(ve,fe);Le>-1&&(ce[ae]=ve.slice(0,Le).concat(ve.slice(Le+1)))}}}function Yn(ie,ae){var fe=Pi(ie,ae);if(fe.length)for(var ce=Array.prototype.slice.call(arguments,2),ve=0;ve<fe.length;++ve)fe[ve].apply(null,ce)}function Ei(ie,ae,fe){return typeof ae=="string"&&(ae={type:ae,preventDefault:function(){this.defaultPrevented=!0}}),Yn(ie,fe||ae.type,ie,ae),Di(ae)||ae.codemirrorIgnore}function pi(ie){var ae=ie._handlers&&ie._handlers.cursorActivity;if(ae)for(var fe=ie.curOp.cursorActivityHandlers||(ie.curOp.cursorActivityHandlers=[]),ce=0;ce<ae.length;++ce)jt(fe,ae[ce])==-1&&fe.push(ae[ce])}function ji(ie,ae){return Pi(ie,ae).length>0}function Qi(ie){ie.prototype.on=function(ae,fe){_n(this,ae,fe)},ie.prototype.off=function(ae,fe){Ci(this,ae,fe)}}function lr(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function Lr(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function Di(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function cr(ie){lr(ie),Lr(ie)}function to(ie){return ie.target||ie.srcElement}function ki(ie){var ae=ie.which;return ae==null&&(ie.button&1?ae=1:ie.button&2?ae=3:ie.button&4&&(ae=2)),ue&&ie.ctrlKey&&ae==1&&(ae=3),ae}var no=function(){if(it&&ze<9)return!1;var ie=Ie("div");return"draggable"in ie||"dragDrop"in ie}(),fo;function po(ie){if(fo==null){var ae=Ie("span","\u200B");Be(ie,Ie("span",[ae,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(fo=ae.offsetWidth<=1&&ae.offsetHeight>2&&!(it&&ze<8))}var fe=fo?Ie("span","\u200B"):Ie("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return fe.setAttribute("cm-text",""),fe}var io;function hr(ie){if(io!=null)return io;var ae=Be(ie,document.createTextNode("A\u062EA")),fe=rt(ae,0,1).getBoundingClientRect(),ce=rt(ae,1,2).getBoundingClientRect();return We(ie),!fe||fe.left==fe.right?!1:io=ce.right-fe.right<3}var ao=`
|
|
|
|
b`.split(/\n/).length!=3?function(ie){for(var ae=0,fe=[],ce=ie.length;ae<=ce;){var ve=ie.indexOf(`
|
|
`,ae);ve==-1&&(ve=ie.length);var Le=ie.slice(ae,ie.charAt(ve-1)=="\r"?ve-1:ve),Ge=Le.indexOf("\r");Ge!=-1?(fe.push(Le.slice(0,Ge)),ae+=Ge+1):(fe.push(Le),ae=ve+1)}return fe}:function(ie){return ie.split(/\r\n?|\n/)},be=window.getSelection?function(ie){try{return ie.selectionStart!=ie.selectionEnd}catch(ae){return!1}}:function(ie){var ae;try{ae=ie.ownerDocument.selection.createRange()}catch(fe){}return!ae||ae.parentElement()!=ie?!1:ae.compareEndPoints("StartToEnd",ae)!=0},Un=function(){var ie=Ie("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),Xn=null;function ci(ie){if(Xn!=null)return Xn;var ae=Be(ie,Ie("span","x")),fe=ae.getBoundingClientRect(),ce=rt(ae,0,1).getBoundingClientRect();return Xn=Math.abs(fe.left-ce.left)>1}var mi={},ei={};function Gi(ie,ae){arguments.length>2&&(ae.dependencies=Array.prototype.slice.call(arguments,2)),mi[ie]=ae}function vr(ie,ae){ei[ie]=ae}function an(ie){if(typeof ie=="string"&&ei.hasOwnProperty(ie))ie=ei[ie];else if(ie&&typeof ie.name=="string"&&ei.hasOwnProperty(ie.name)){var ae=ei[ie.name];typeof ae=="string"&&(ae={name:ae}),ie=Fe(ae,ie),ie.name=ae.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return an("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return an("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function ln(ie,ae){ae=an(ae);var fe=mi[ae.name];if(!fe)return ln(ie,"text/plain");var ce=fe(ie,ae);if(Zt.hasOwnProperty(ae.name)){var ve=Zt[ae.name];for(var Le in ve)ve.hasOwnProperty(Le)&&(ce.hasOwnProperty(Le)&&(ce["_"+Le]=ce[Le]),ce[Le]=ve[Le])}if(ce.name=ae.name,ae.helperType&&(ce.helperType=ae.helperType),ae.modeProps)for(var Ge in ae.modeProps)ce[Ge]=ae.modeProps[Ge];return ce}var Zt={};function pn(ie,ae){var fe=Zt.hasOwnProperty(ie)?Zt[ie]:Zt[ie]={};Ut(ae,fe)}function zi(ie,ae){if(ae===!0)return ae;if(ie.copyState)return ie.copyState(ae);var fe={};for(var ce in ae){var ve=ae[ce];ve instanceof Array&&(ve=ve.concat([])),fe[ce]=ve}return fe}function Ti(ie,ae){for(var fe;ie.innerMode&&(fe=ie.innerMode(ae),!(!fe||fe.mode==ie));)ae=fe.state,ie=fe.mode;return fe||{mode:ie,state:ae}}function dr(ie,ae,fe){return ie.startState?ie.startState(ae,fe):!0}var un=function(ie,ae,fe){this.pos=this.start=0,this.string=ie,this.tabSize=ae||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=fe};un.prototype.eol=function(){return this.pos>=this.string.length},un.prototype.sol=function(){return this.pos==this.lineStart},un.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},un.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},un.prototype.eat=function(ie){var ae=this.string.charAt(this.pos),fe;if(typeof ie=="string"?fe=ae==ie:fe=ae&&(ie.test?ie.test(ae):ie(ae)),fe)return++this.pos,ae},un.prototype.eatWhile=function(ie){for(var ae=this.pos;this.eat(ie););return this.pos>ae},un.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},un.prototype.skipToEnd=function(){this.pos=this.string.length},un.prototype.skipTo=function(ie){var ae=this.string.indexOf(ie,this.pos);if(ae>-1)return this.pos=ae,!0},un.prototype.backUp=function(ie){this.pos-=ie},un.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=st(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?st(this.string,this.lineStart,this.tabSize):0)},un.prototype.indentation=function(){return st(this.string,null,this.tabSize)-(this.lineStart?st(this.string,this.lineStart,this.tabSize):0)},un.prototype.match=function(ie,ae,fe){if(typeof ie=="string"){var ce=function(Ge){return fe?Ge.toLowerCase():Ge},ve=this.string.substr(this.pos,ie.length);if(ce(ve)==ce(ie))return ae!==!1&&(this.pos+=ie.length),!0}else{var Le=this.string.slice(this.pos).match(ie);return Le&&Le.index>0?null:(Le&&ae!==!1&&(this.pos+=Le[0].length),Le)}},un.prototype.current=function(){return this.string.slice(this.start,this.pos)},un.prototype.hideFirstChars=function(ie,ae){this.lineStart+=ie;try{return ae()}finally{this.lineStart-=ie}},un.prototype.lookAhead=function(ie){var ae=this.lineOracle;return ae&&ae.lookAhead(ie)},un.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function In(ie,ae){if(ae-=ie.first,ae<0||ae>=ie.size)throw new Error("There is no line "+(ae+ie.first)+" in the document.");for(var fe=ie;!fe.lines;)for(var ce=0;;++ce){var ve=fe.children[ce],Le=ve.chunkSize();if(ae<Le){fe=ve;break}ae-=Le}return fe.lines[ae]}function Vi(ie,ae,fe){var ce=[],ve=ae.line;return ie.iter(ae.line,fe.line+1,function(Le){var Ge=Le.text;ve==fe.line&&(Ge=Ge.slice(0,fe.ch)),ve==ae.line&&(Ge=Ge.slice(ae.ch)),ce.push(Ge),++ve}),ce}function Fr(ie,ae,fe){var ce=[];return ie.iter(ae,fe,function(ve){ce.push(ve.text)}),ce}function ii(ie,ae){var fe=ae-ie.height;if(fe)for(var ce=ie;ce;ce=ce.parent)ce.height+=fe}function lt(ie){if(ie.parent==null)return null;for(var ae=ie.parent,fe=jt(ae.lines,ie),ce=ae.parent;ce;ae=ce,ce=ce.parent)for(var ve=0;ce.children[ve]!=ae;++ve)fe+=ce.children[ve].chunkSize();return fe+ae.first}function Rt(ie,ae){var fe=ie.first;e:do{for(var ce=0;ce<ie.children.length;++ce){var ve=ie.children[ce],Le=ve.height;if(ae<Le){ie=ve;continue e}ae-=Le,fe+=ve.chunkSize()}return fe}while(!ie.lines);for(var Ge=0;Ge<ie.lines.length;++Ge){var et=ie.lines[Ge],qe=et.height;if(ae<qe)break;ae-=qe}return fe+Ge}function ai(ie,ae){return ae>=ie.first&&ae<ie.first+ie.size}function ti(ie,ae){return String(ie.lineNumberFormatter(ae+ie.firstLineNumber))}function tn(ie,ae,fe){if(fe===void 0&&(fe=null),!(this instanceof tn))return new tn(ie,ae,fe);this.line=ie,this.ch=ae,this.sticky=fe}function si(ie,ae){return ie.line-ae.line||ie.ch-ae.ch}function Ri(ie,ae){return ie.sticky==ae.sticky&&si(ie,ae)==0}function Yi(ie){return tn(ie.line,ie.ch)}function tr(ie,ae){return si(ie,ae)<0?ae:ie}function Bn(ie,ae){return si(ie,ae)<0?ie:ae}function Ot(ie,ae){return Math.max(ie.first,Math.min(ae,ie.first+ie.size-1))}function qn(ie,ae){if(ae.line<ie.first)return tn(ie.first,0);var fe=ie.first+ie.size-1;return ae.line>fe?tn(fe,In(ie,fe).text.length):Ji(ae,In(ie,ae.line).text.length)}function Ji(ie,ae){var fe=ie.ch;return fe==null||fe>ae?tn(ie.line,ae):fe<0?tn(ie.line,0):ie}function $i(ie,ae){for(var fe=[],ce=0;ce<ae.length;ce++)fe[ce]=qn(ie,ae[ce]);return fe}var Pn=function(ie,ae){this.state=ie,this.lookAhead=ae},Mi=function(ie,ae,fe,ce){this.state=ae,this.doc=ie,this.line=fe,this.maxLookAhead=ce||0,this.baseTokens=null,this.baseTokenPos=1};Mi.prototype.lookAhead=function(ie){var ae=this.doc.getLine(this.line+ie);return ae!=null&&ie>this.maxLookAhead&&(this.maxLookAhead=ie),ae},Mi.prototype.baseToken=function(ie){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=ie;)this.baseTokenPos+=2;var ae=this.baseTokens[this.baseTokenPos+1];return{type:ae&&ae.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-ie}},Mi.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Mi.fromSaved=function(ie,ae,fe){return ae instanceof Pn?new Mi(ie,zi(ie.mode,ae.state),fe,ae.lookAhead):new Mi(ie,zi(ie.mode,ae),fe)},Mi.prototype.save=function(ie){var ae=ie!==!1?zi(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Pn(ae,this.maxLookAhead):ae};function Er(ie,ae,fe,ce){var ve=[ie.state.modeGen],Le={};Xr(ie,ae.text,ie.doc.mode,fe,function(mt,rn){return ve.push(mt,rn)},Le,ce);for(var Ge=fe.state,et=function(mt){fe.baseTokens=ve;var rn=ie.state.overlays[mt],Mt=1,Nn=0;fe.state=!0,Xr(ie,ae.text,rn.mode,fe,function(xn,Bi){for(var Zi=Mt;Nn<xn;){var er=ve[Mt];er>xn&&ve.splice(Mt,1,xn,ve[Mt+1],er),Mt+=2,Nn=Math.min(xn,er)}if(Bi)if(rn.opaque)ve.splice(Zi,Mt-Zi,xn,"overlay "+Bi),Mt=Zi+2;else for(;Zi<Mt;Zi+=2){var Cr=ve[Zi+1];ve[Zi+1]=(Cr?Cr+" ":"")+"overlay "+Bi}},Le),fe.state=Ge,fe.baseTokens=null,fe.baseTokenPos=1},qe=0;qe<ie.state.overlays.length;++qe)et(qe);return{styles:ve,classes:Le.bgClass||Le.textClass?Le:null}}function Hr(ie,ae,fe){if(!ae.styles||ae.styles[0]!=ie.state.modeGen){var ce=wo(ie,lt(ae)),ve=ae.text.length>ie.options.maxHighlightLength&&zi(ie.doc.mode,ce.state),Le=Er(ie,ae,ce);ve&&(ce.state=ve),ae.stateAfter=ce.save(!ve),ae.styles=Le.styles,Le.classes?ae.styleClasses=Le.classes:ae.styleClasses&&(ae.styleClasses=null),fe===ie.doc.highlightFrontier&&(ie.doc.modeFrontier=Math.max(ie.doc.modeFrontier,++ie.doc.highlightFrontier))}return ae.styles}function wo(ie,ae,fe){var ce=ie.doc,ve=ie.display;if(!ce.mode.startState)return new Mi(ce,!0,ae);var Le=Rr(ie,ae,fe),Ge=Le>ce.first&&In(ce,Le-1).stateAfter,et=Ge?Mi.fromSaved(ce,Ge,Le):new Mi(ce,dr(ce.mode),Le);return ce.iter(Le,ae,function(qe){Kt(ie,qe.text,et);var mt=et.line;qe.stateAfter=mt==ae-1||mt%5==0||mt>=ve.viewFrom&&mt<ve.viewTo?et.save():null,et.nextLine()}),fe&&(ce.modeFrontier=et.line),et}function Kt(ie,ae,fe,ce){var ve=ie.doc.mode,Le=new un(ae,ie.options.tabSize,fe);for(Le.start=Le.pos=ce||0,ae==""&&Oi(ve,fe.state);!Le.eol();)Nr(ve,Le,fe.state),Le.start=Le.pos}function Oi(ie,ae){if(ie.blankLine)return ie.blankLine(ae);if(ie.innerMode){var fe=Ti(ie,ae);if(fe.mode.blankLine)return fe.mode.blankLine(fe.state)}}function Nr(ie,ae,fe,ce){for(var ve=0;ve<10;ve++){ce&&(ce[0]=Ti(ie,fe).mode);var Le=ie.token(ae,fe);if(ae.pos>ae.start)return Le}throw new Error("Mode "+ie.name+" failed to advance stream.")}var _i=function(ie,ae,fe){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=ae||null,this.state=fe};function Jr(ie,ae,fe,ce){var ve=ie.doc,Le=ve.mode,Ge;ae=qn(ve,ae);var et=In(ve,ae.line),qe=wo(ie,ae.line,fe),mt=new un(et.text,ie.options.tabSize,qe),rn;for(ce&&(rn=[]);(ce||mt.pos<ae.ch)&&!mt.eol();)mt.start=mt.pos,Ge=Nr(Le,mt,qe.state),ce&&rn.push(new _i(mt,Ge,zi(ve.mode,qe.state)));return ce?rn:new _i(mt,Ge,qe.state)}function Zr(ie,ae){if(ie)for(;;){var fe=ie.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!fe)break;ie=ie.slice(0,fe.index)+ie.slice(fe.index+fe[0].length);var ce=fe[1]?"bgClass":"textClass";ae[ce]==null?ae[ce]=fe[2]:new RegExp("(?:^|\\s)"+fe[2]+"(?:$|\\s)").test(ae[ce])||(ae[ce]+=" "+fe[2])}return ie}function Xr(ie,ae,fe,ce,ve,Le,Ge){var et=fe.flattenSpans;et==null&&(et=ie.options.flattenSpans);var qe=0,mt=null,rn=new un(ae,ie.options.tabSize,ce),Mt,Nn=ie.options.addModeClass&&[null];for(ae==""&&Zr(Oi(fe,ce.state),Le);!rn.eol();){if(rn.pos>ie.options.maxHighlightLength?(et=!1,Ge&&Kt(ie,ae,ce,rn.pos),rn.pos=ae.length,Mt=null):Mt=Zr(Nr(fe,rn,ce.state,Nn),Le),Nn){var xn=Nn[0].name;xn&&(Mt="m-"+(Mt?xn+" "+Mt:xn))}if(!et||mt!=Mt){for(;qe<rn.start;)qe=Math.min(rn.start,qe+5e3),ve(qe,mt);mt=Mt}rn.start=rn.pos}for(;qe<rn.pos;){var Bi=Math.min(rn.pos,qe+5e3);ve(Bi,mt),qe=Bi}}function Rr(ie,ae,fe){for(var ce,ve,Le=ie.doc,Ge=fe?-1:ae-(ie.doc.mode.innerMode?1e3:100),et=ae;et>Ge;--et){if(et<=Le.first)return Le.first;var qe=In(Le,et-1),mt=qe.stateAfter;if(mt&&(!fe||et+(mt instanceof Pn?mt.lookAhead:0)<=Le.modeFrontier))return et;var rn=st(qe.text,null,ie.options.tabSize);(ve==null||ce>rn)&&(ve=et-1,ce=rn)}return ve}function Gr(ie,ae){if(ie.modeFrontier=Math.min(ie.modeFrontier,ae),!(ie.highlightFrontier<ae-10)){for(var fe=ie.first,ce=ae-1;ce>fe;ce--){var ve=In(ie,ce).stateAfter;if(ve&&(!(ve instanceof Pn)||ce+ve.lookAhead<ae)){fe=ce+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,fe)}}var oo=!1,An=!1;function ho(){oo=!0}function Fn(){An=!0}function Kn(ie,ae,fe){this.marker=ie,this.from=ae,this.to=fe}function zr(ie,ae){if(ie)for(var fe=0;fe<ie.length;++fe){var ce=ie[fe];if(ce.marker==ae)return ce}}function Tr(ie,ae){for(var fe,ce=0;ce<ie.length;++ce)ie[ce]!=ae&&(fe||(fe=[])).push(ie[ce]);return fe}function Co(ie,ae){ie.markedSpans=ie.markedSpans?ie.markedSpans.concat([ae]):[ae],ae.marker.attachLine(ie)}function Yr(ie,ae,fe){var ce;if(ie)for(var ve=0;ve<ie.length;++ve){var Le=ie[ve],Ge=Le.marker,et=Le.from==null||(Ge.inclusiveLeft?Le.from<=ae:Le.from<ae);if(et||Le.from==ae&&Ge.type=="bookmark"&&(!fe||!Le.marker.insertLeft)){var qe=Le.to==null||(Ge.inclusiveRight?Le.to>=ae:Le.to>ae);(ce||(ce=[])).push(new Kn(Ge,Le.from,qe?null:Le.to))}}return ce}function Or(ie,ae,fe){var ce;if(ie)for(var ve=0;ve<ie.length;++ve){var Le=ie[ve],Ge=Le.marker,et=Le.to==null||(Ge.inclusiveRight?Le.to>=ae:Le.to>ae);if(et||Le.from==ae&&Ge.type=="bookmark"&&(!fe||Le.marker.insertLeft)){var qe=Le.from==null||(Ge.inclusiveLeft?Le.from<=ae:Le.from<ae);(ce||(ce=[])).push(new Kn(Ge,qe?null:Le.from-ae,Le.to==null?null:Le.to-ae))}}return ce}function No(ie,ae){if(ae.full)return null;var fe=ai(ie,ae.from.line)&&In(ie,ae.from.line).markedSpans,ce=ai(ie,ae.to.line)&&In(ie,ae.to.line).markedSpans;if(!fe&&!ce)return null;var ve=ae.from.ch,Le=ae.to.ch,Ge=si(ae.from,ae.to)==0,et=Yr(fe,ve,Ge),qe=Or(ce,Le,Ge),mt=ae.text.length==1,rn=zt(ae.text).length+(mt?ve:0);if(et)for(var Mt=0;Mt<et.length;++Mt){var Nn=et[Mt];if(Nn.to==null){var xn=zr(qe,Nn.marker);xn?mt&&(Nn.to=xn.to==null?null:xn.to+rn):Nn.to=ve}}if(qe)for(var Bi=0;Bi<qe.length;++Bi){var Zi=qe[Bi];if(Zi.to!=null&&(Zi.to+=rn),Zi.from==null){var er=zr(et,Zi.marker);er||(Zi.from=rn,mt&&(et||(et=[])).push(Zi))}else Zi.from+=rn,mt&&(et||(et=[])).push(Zi)}et&&(et=Qt(et)),qe&&qe!=et&&(qe=Qt(qe));var Cr=[et];if(!mt){var Vr=ae.text.length-2,Br;if(Vr>0&&et)for(var Qr=0;Qr<et.length;++Qr)et[Qr].to==null&&(Br||(Br=[])).push(new Kn(et[Qr].marker,null,null));for(var Lo=0;Lo<Vr;++Lo)Cr.push(Br);Cr.push(qe)}return Cr}function Qt(ie){for(var ae=0;ae<ie.length;++ae){var fe=ie[ae];fe.from!=null&&fe.from==fe.to&&fe.marker.clearWhenEmpty!==!1&&ie.splice(ae--,1)}return ie.length?ie:null}function mn(ie,ae,fe){var ce=null;if(ie.iter(ae.line,fe.line+1,function(xn){if(xn.markedSpans)for(var Bi=0;Bi<xn.markedSpans.length;++Bi){var Zi=xn.markedSpans[Bi].marker;Zi.readOnly&&(!ce||jt(ce,Zi)==-1)&&(ce||(ce=[])).push(Zi)}}),!ce)return null;for(var ve=[{from:ae,to:fe}],Le=0;Le<ce.length;++Le)for(var Ge=ce[Le],et=Ge.find(0),qe=0;qe<ve.length;++qe){var mt=ve[qe];if(!(si(mt.to,et.from)<0||si(mt.from,et.to)>0)){var rn=[qe,1],Mt=si(mt.from,et.from),Nn=si(mt.to,et.to);(Mt<0||!Ge.inclusiveLeft&&!Mt)&&rn.push({from:mt.from,to:et.from}),(Nn>0||!Ge.inclusiveRight&&!Nn)&&rn.push({from:et.to,to:mt.to}),ve.splice.apply(ve,rn),qe+=rn.length-3}}return ve}function Wt(ie){var ae=ie.markedSpans;if(ae){for(var fe=0;fe<ae.length;++fe)ae[fe].marker.detachLine(ie);ie.markedSpans=null}}function je(ie,ae){if(ae){for(var fe=0;fe<ae.length;++fe)ae[fe].marker.attachLine(ie);ie.markedSpans=ae}}function Qn(ie){return ie.inclusiveLeft?-1:0}function Ai(ie){return ie.inclusiveRight?1:0}function qi(ie,ae){var fe=ie.lines.length-ae.lines.length;if(fe!=0)return fe;var ce=ie.find(),ve=ae.find(),Le=si(ce.from,ve.from)||Qn(ie)-Qn(ae);if(Le)return-Le;var Ge=si(ce.to,ve.to)||Ai(ie)-Ai(ae);return Ge||ae.id-ie.id}function Je(ie,ae){var fe=An&&ie.markedSpans,ce;if(fe)for(var ve=void 0,Le=0;Le<fe.length;++Le)ve=fe[Le],ve.marker.collapsed&&(ae?ve.from:ve.to)==null&&(!ce||qi(ce,ve.marker)<0)&&(ce=ve.marker);return ce}function Yt(ie){return Je(ie,!0)}function Lt(ie){return Je(ie,!1)}function on(ie,ae){var fe=An&&ie.markedSpans,ce;if(fe)for(var ve=0;ve<fe.length;++ve){var Le=fe[ve];Le.marker.collapsed&&(Le.from==null||Le.from<ae)&&(Le.to==null||Le.to>ae)&&(!ce||qi(ce,Le.marker)<0)&&(ce=Le.marker)}return ce}function Gn(ie,ae,fe,ce,ve){var Le=In(ie,ae),Ge=An&&Le.markedSpans;if(Ge)for(var et=0;et<Ge.length;++et){var qe=Ge[et];if(qe.marker.collapsed){var mt=qe.marker.find(0),rn=si(mt.from,fe)||Qn(qe.marker)-Qn(ve),Mt=si(mt.to,ce)||Ai(qe.marker)-Ai(ve);if(!(rn>=0&&Mt<=0||rn<=0&&Mt>=0)&&(rn<=0&&(qe.marker.inclusiveRight&&ve.inclusiveLeft?si(mt.to,fe)>=0:si(mt.to,fe)>0)||rn>=0&&(qe.marker.inclusiveRight&&ve.inclusiveLeft?si(mt.from,ce)<=0:si(mt.from,ce)<0)))return!0}}}function vn(ie){for(var ae;ae=Yt(ie);)ie=ae.find(-1,!0).line;return ie}function dn(ie){for(var ae;ae=Lt(ie);)ie=ae.find(1,!0).line;return ie}function Mn(ie){for(var ae,fe;ae=Lt(ie);)ie=ae.find(1,!0).line,(fe||(fe=[])).push(ie);return fe}function ke(ie,ae){var fe=In(ie,ae),ce=vn(fe);return fe==ce?ae:lt(ce)}function ct(ie,ae){if(ae>ie.lastLine())return ae;var fe=In(ie,ae),ce;if(!Xe(ie,fe))return ae;for(;ce=Lt(fe);)fe=ce.find(1,!0).line;return lt(fe)+1}function Xe(ie,ae){var fe=An&&ae.markedSpans;if(fe){for(var ce=void 0,ve=0;ve<fe.length;++ve)if(ce=fe[ve],!!ce.marker.collapsed){if(ce.from==null)return!0;if(!ce.marker.widgetNode&&ce.from==0&&ce.marker.inclusiveLeft&&Pt(ie,ae,ce))return!0}}}function Pt(ie,ae,fe){if(fe.to==null){var ce=fe.marker.find(1,!0);return Pt(ie,ce.line,zr(ce.line.markedSpans,fe.marker))}if(fe.marker.inclusiveRight&&fe.to==ae.text.length)return!0;for(var ve=void 0,Le=0;Le<ae.markedSpans.length;++Le)if(ve=ae.markedSpans[Le],ve.marker.collapsed&&!ve.marker.widgetNode&&ve.from==fe.to&&(ve.to==null||ve.to!=fe.from)&&(ve.marker.inclusiveLeft||fe.marker.inclusiveRight)&&Pt(ie,ae,ve))return!0}function Ct(ie){ie=vn(ie);for(var ae=0,fe=ie.parent,ce=0;ce<fe.lines.length;++ce){var ve=fe.lines[ce];if(ve==ie)break;ae+=ve.height}for(var Le=fe.parent;Le;fe=Le,Le=fe.parent)for(var Ge=0;Ge<Le.children.length;++Ge){var et=Le.children[Ge];if(et==fe)break;ae+=et.height}return ae}function Xt(ie){if(ie.height==0)return 0;for(var ae=ie.text.length,fe,ce=ie;fe=Yt(ce);){var ve=fe.find(0,!0);ce=ve.from.line,ae+=ve.from.ch-ve.to.ch}for(ce=ie;fe=Lt(ce);){var Le=fe.find(0,!0);ae-=ce.text.length-Le.from.ch,ce=Le.to.line,ae+=ce.text.length-Le.to.ch}return ae}function qt(ie){var ae=ie.display,fe=ie.doc;ae.maxLine=In(fe,fe.first),ae.maxLineLength=Xt(ae.maxLine),ae.maxLineChanged=!0,fe.iter(function(ce){var ve=Xt(ce);ve>ae.maxLineLength&&(ae.maxLineLength=ve,ae.maxLine=ce)})}var sn=function(ie,ae,fe){this.text=ie,je(this,ae),this.height=fe?fe(this):1};sn.prototype.lineNo=function(){return lt(this)},Qi(sn);function Tn(ie,ae,fe,ce){ie.text=ae,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),Wt(ie),je(ie,fe);var ve=ce?ce(ie):1;ve!=ie.height&&ii(ie,ve)}function jn(ie){ie.parent=null,Wt(ie)}var gn={},$n={};function gi(ie,ae){if(!ie||/^\s*$/.test(ie))return null;var fe=ae.addModeClass?$n:gn;return fe[ie]||(fe[ie]=ie.replace(/\S+/g,"cm-$&"))}function pt(ie,ae){var fe=Qe("span",null,null,Ue?"padding-right: .1px":null),ce={pre:Qe("pre",[fe],"CodeMirror-line"),content:fe,col:0,pos:0,cm:ie,trailingSpace:!1,splitSpaces:ie.getOption("lineWrapping")};ae.measure={};for(var ve=0;ve<=(ae.rest?ae.rest.length:0);ve++){var Le=ve?ae.rest[ve-1]:ae.line,Ge=void 0;ce.pos=0,ce.addToken=Wn,hr(ie.display.measure)&&(Ge=zn(Le,ie.doc.direction))&&(ce.addToken=Ln(ce.addToken,Ge)),ce.map=[];var et=ae!=ie.display.externalMeasured&<(Le);vi(Le,ce,Hr(ie,Le,et)),Le.styleClasses&&(Le.styleClasses.bgClass&&(ce.bgClass=At(Le.styleClasses.bgClass,ce.bgClass||"")),Le.styleClasses.textClass&&(ce.textClass=At(Le.styleClasses.textClass,ce.textClass||""))),ce.map.length==0&&ce.map.push(0,0,ce.content.appendChild(po(ie.display.measure))),ve==0?(ae.measure.map=ce.map,ae.measure.cache={}):((ae.measure.maps||(ae.measure.maps=[])).push(ce.map),(ae.measure.caches||(ae.measure.caches=[])).push({}))}if(Ue){var qe=ce.content.lastChild;(/\bcm-tab\b/.test(qe.className)||qe.querySelector&&qe.querySelector(".cm-tab"))&&(ce.content.className="cm-tab-wrap-hack")}return Yn(ie,"renderLine",ie,ae.line,ce.pre),ce.pre.className&&(ce.textClass=At(ce.pre.className,ce.textClass||"")),ce}function Vn(ie){var ae=Ie("span","\u2022","cm-invalidchar");return ae.title="\\u"+ie.charCodeAt(0).toString(16),ae.setAttribute("aria-label",ae.title),ae}function Wn(ie,ae,fe,ce,ve,Le,Ge){if(ae){var et=ie.splitSpaces?Rn(ae,ie.trailingSpace):ae,qe=ie.cm.state.specialChars,mt=!1,rn;if(!qe.test(ae))ie.col+=ae.length,rn=document.createTextNode(et),ie.map.push(ie.pos,ie.pos+ae.length,rn),it&&ze<9&&(mt=!0),ie.pos+=ae.length;else{rn=document.createDocumentFragment();for(var Mt=0;;){qe.lastIndex=Mt;var Nn=qe.exec(ae),xn=Nn?Nn.index-Mt:ae.length-Mt;if(xn){var Bi=document.createTextNode(et.slice(Mt,Mt+xn));it&&ze<9?rn.appendChild(Ie("span",[Bi])):rn.appendChild(Bi),ie.map.push(ie.pos,ie.pos+xn,Bi),ie.col+=xn,ie.pos+=xn}if(!Nn)break;Mt+=xn+1;var Zi=void 0;if(Nn[0]==" "){var er=ie.cm.options.tabSize,Cr=er-ie.col%er;Zi=rn.appendChild(Ie("span",vt(Cr),"cm-tab")),Zi.setAttribute("role","presentation"),Zi.setAttribute("cm-text"," "),ie.col+=Cr}else Nn[0]=="\r"||Nn[0]==`
|
|
`?(Zi=rn.appendChild(Ie("span",Nn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Zi.setAttribute("cm-text",Nn[0]),ie.col+=1):(Zi=ie.cm.options.specialCharPlaceholder(Nn[0]),Zi.setAttribute("cm-text",Nn[0]),it&&ze<9?rn.appendChild(Ie("span",[Zi])):rn.appendChild(Zi),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,Zi),ie.pos++}}if(ie.trailingSpace=et.charCodeAt(ae.length-1)==32,fe||ce||ve||mt||Le||Ge){var Vr=fe||"";ce&&(Vr+=ce),ve&&(Vr+=ve);var Br=Ie("span",[rn],Vr,Le);if(Ge)for(var Qr in Ge)Ge.hasOwnProperty(Qr)&&Qr!="style"&&Qr!="class"&&Br.setAttribute(Qr,Ge[Qr]);return ie.content.appendChild(Br)}ie.content.appendChild(rn)}}function Rn(ie,ae){if(ie.length>1&&!/ /.test(ie))return ie;for(var fe=ae,ce="",ve=0;ve<ie.length;ve++){var Le=ie.charAt(ve);Le==" "&&fe&&(ve==ie.length-1||ie.charCodeAt(ve+1)==32)&&(Le="\xA0"),ce+=Le,fe=Le==" "}return ce}function Ln(ie,ae){return function(fe,ce,ve,Le,Ge,et,qe){ve=ve?ve+" cm-force-border":"cm-force-border";for(var mt=fe.pos,rn=mt+ce.length;;){for(var Mt=void 0,Nn=0;Nn<ae.length&&(Mt=ae[Nn],!(Mt.to>mt&&Mt.from<=mt));Nn++);if(Mt.to>=rn)return ie(fe,ce,ve,Le,Ge,et,qe);ie(fe,ce.slice(0,Mt.to-mt),ve,Le,null,et,qe),Le=null,ce=ce.slice(Mt.to-mt),mt=Mt.to}}}function di(ie,ae,fe,ce){var ve=!ce&&fe.widgetNode;ve&&ie.map.push(ie.pos,ie.pos+ae,ve),!ce&&ie.cm.display.input.needsContentAttribute&&(ve||(ve=ie.content.appendChild(document.createElement("span"))),ve.setAttribute("cm-marker",fe.id)),ve&&(ie.cm.display.input.setUneditable(ve),ie.content.appendChild(ve)),ie.pos+=ae,ie.trailingSpace=!1}function vi(ie,ae,fe){var ce=ie.markedSpans,ve=ie.text,Le=0;if(!ce){for(var Ge=1;Ge<fe.length;Ge+=2)ae.addToken(ae,ve.slice(Le,Le=fe[Ge]),gi(fe[Ge+1],ae.cm.options));return}for(var et=ve.length,qe=0,mt=1,rn="",Mt,Nn,xn=0,Bi,Zi,er,Cr,Vr;;){if(xn==qe){Bi=Zi=er=Nn="",Vr=null,Cr=null,xn=1/0;for(var Br=[],Qr=void 0,Lo=0;Lo<ce.length;++Lo){var Dr=ce[Lo],Qo=Dr.marker;if(Qo.type=="bookmark"&&Dr.from==qe&&Qo.widgetNode)Br.push(Qo);else if(Dr.from<=qe&&(Dr.to==null||Dr.to>qe||Qo.collapsed&&Dr.to==qe&&Dr.from==qe)){if(Dr.to!=null&&Dr.to!=qe&&xn>Dr.to&&(xn=Dr.to,Zi=""),Qo.className&&(Bi+=" "+Qo.className),Qo.css&&(Nn=(Nn?Nn+";":"")+Qo.css),Qo.startStyle&&Dr.from==qe&&(er+=" "+Qo.startStyle),Qo.endStyle&&Dr.to==xn&&(Qr||(Qr=[])).push(Qo.endStyle,Dr.to),Qo.title&&((Vr||(Vr={})).title=Qo.title),Qo.attributes)for(var Oa in Qo.attributes)(Vr||(Vr={}))[Oa]=Qo.attributes[Oa];Qo.collapsed&&(!Cr||qi(Cr.marker,Qo)<0)&&(Cr=Dr)}else Dr.from>qe&&xn>Dr.from&&(xn=Dr.from)}if(Qr)for(var ms=0;ms<Qr.length;ms+=2)Qr[ms+1]==xn&&(Zi+=" "+Qr[ms]);if(!Cr||Cr.from==qe)for(var Ka=0;Ka<Br.length;++Ka)di(ae,0,Br[Ka]);if(Cr&&(Cr.from||0)==qe){if(di(ae,(Cr.to==null?et+1:Cr.to)-qe,Cr.marker,Cr.from==null),Cr.to==null)return;Cr.to==qe&&(Cr=!1)}}if(qe>=et)break;for(var sl=Math.min(et,xn);;){if(rn){var Vs=qe+rn.length;if(!Cr){var cs=Vs>sl?rn.slice(0,sl-qe):rn;ae.addToken(ae,cs,Mt?Mt+Bi:Bi,er,qe+cs.length==xn?Zi:"",Nn,Vr)}if(Vs>=sl){rn=rn.slice(sl-qe),qe=sl;break}qe=Vs,er=""}rn=ve.slice(Le,Le=fe[mt++]),Mt=gi(fe[mt++],ae.cm.options)}}}function Dn(ie,ae,fe){this.line=ae,this.rest=Mn(ae),this.size=this.rest?lt(zt(this.rest))-fe+1:1,this.node=this.text=null,this.hidden=Xe(ie,ae)}function yi(ie,ae,fe){for(var ce=[],ve,Le=ae;Le<fe;Le=ve){var Ge=new Dn(ie.doc,In(ie.doc,Le),Le);ve=Le+Ge.size,ce.push(Ge)}return ce}var xi=null;function wi(ie){xi?xi.ops.push(ie):ie.ownsGroup=xi={ops:[ie],delayedCallbacks:[]}}function gr(ie){var ae=ie.delayedCallbacks,fe=0;do{for(;fe<ae.length;fe++)ae[fe].call(null);for(var ce=0;ce<ie.ops.length;ce++){var ve=ie.ops[ce];if(ve.cursorActivityHandlers)for(;ve.cursorActivityCalled<ve.cursorActivityHandlers.length;)ve.cursorActivityHandlers[ve.cursorActivityCalled++].call(null,ve.cm)}}while(fe<ae.length)}function Ar(ie,ae){var fe=ie.ownsGroup;if(fe)try{gr(fe)}finally{xi=null,ae(fe)}}var ur=null;function ri(ie,ae){var fe=Pi(ie,ae);if(fe.length){var ce=Array.prototype.slice.call(arguments,2),ve;xi?ve=xi.delayedCallbacks:ur?ve=ur:(ve=ur=[],setTimeout(mr,0));for(var Le=function(et){ve.push(function(){return fe[et].apply(null,ce)})},Ge=0;Ge<fe.length;++Ge)Le(Ge)}}function mr(){var ie=ur;ur=null;for(var ae=0;ae<ie.length;++ae)ie[ae]()}function rr(ie,ae,fe,ce){for(var ve=0;ve<ae.changes.length;ve++){var Le=ae.changes[ve];Le=="text"?bn(ie,ae):Le=="gutter"?Ii(ie,ae,fe,ce):Le=="class"?Fi(ie,ae):Le=="widget"&&Ki(ie,ae,ce)}ae.changes=null}function fr(ie){return ie.node==ie.text&&(ie.node=Ie("div",null,null,"position: relative"),ie.text.parentNode&&ie.text.parentNode.replaceChild(ie.node,ie.text),ie.node.appendChild(ie.text),it&&ze<8&&(ie.node.style.zIndex=2)),ie.node}function nr(ie,ae){var fe=ae.bgClass?ae.bgClass+" "+(ae.line.bgClass||""):ae.line.bgClass;if(fe&&(fe+=" CodeMirror-linebackground"),ae.background)fe?ae.background.className=fe:(ae.background.parentNode.removeChild(ae.background),ae.background=null);else if(fe){var ce=fr(ae);ae.background=ce.insertBefore(Ie("div",null,fe),ce.firstChild),ie.display.input.setUneditable(ae.background)}}function wr(ie,ae){var fe=ie.display.externalMeasured;return fe&&fe.line==ae.line?(ie.display.externalMeasured=null,ae.measure=fe.measure,fe.built):pt(ie,ae)}function bn(ie,ae){var fe=ae.text.className,ce=wr(ie,ae);ae.text==ae.node&&(ae.node=ce.pre),ae.text.parentNode.replaceChild(ce.pre,ae.text),ae.text=ce.pre,ce.bgClass!=ae.bgClass||ce.textClass!=ae.textClass?(ae.bgClass=ce.bgClass,ae.textClass=ce.textClass,Fi(ie,ae)):fe&&(ae.text.className=fe)}function Fi(ie,ae){nr(ie,ae),ae.line.wrapClass?fr(ae).className=ae.line.wrapClass:ae.node!=ae.text&&(ae.node.className="");var fe=ae.textClass?ae.textClass+" "+(ae.line.textClass||""):ae.line.textClass;ae.text.className=fe||""}function Ii(ie,ae,fe,ce){if(ae.gutter&&(ae.node.removeChild(ae.gutter),ae.gutter=null),ae.gutterBackground&&(ae.node.removeChild(ae.gutterBackground),ae.gutterBackground=null),ae.line.gutterClass){var ve=fr(ae);ae.gutterBackground=Ie("div",null,"CodeMirror-gutter-background "+ae.line.gutterClass,"left: "+(ie.options.fixedGutter?ce.fixedPos:-ce.gutterTotalWidth)+"px; width: "+ce.gutterTotalWidth+"px"),ie.display.input.setUneditable(ae.gutterBackground),ve.insertBefore(ae.gutterBackground,ae.text)}var Le=ae.line.gutterMarkers;if(ie.options.lineNumbers||Le){var Ge=fr(ae),et=ae.gutter=Ie("div",null,"CodeMirror-gutter-wrapper","left: "+(ie.options.fixedGutter?ce.fixedPos:-ce.gutterTotalWidth)+"px");if(ie.display.input.setUneditable(et),Ge.insertBefore(et,ae.text),ae.line.gutterClass&&(et.className+=" "+ae.line.gutterClass),ie.options.lineNumbers&&(!Le||!Le["CodeMirror-linenumbers"])&&(ae.lineNumber=et.appendChild(Ie("div",ti(ie.options,fe),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ce.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),Le)for(var qe=0;qe<ie.display.gutterSpecs.length;++qe){var mt=ie.display.gutterSpecs[qe].className,rn=Le.hasOwnProperty(mt)&&Le[mt];rn&&et.appendChild(Ie("div",[rn],"CodeMirror-gutter-elt","left: "+ce.gutterLeft[mt]+"px; width: "+ce.gutterWidth[mt]+"px"))}}}function Ki(ie,ae,fe){ae.alignable&&(ae.alignable=null);for(var ce=Re("CodeMirror-linewidget"),ve=ae.node.firstChild,Le=void 0;ve;ve=Le)Le=ve.nextSibling,ce.test(ve.className)&&ae.node.removeChild(ve);Hi(ie,ae,fe)}function Wi(ie,ae,fe,ce){var ve=wr(ie,ae);return ae.text=ae.node=ve.pre,ve.bgClass&&(ae.bgClass=ve.bgClass),ve.textClass&&(ae.textClass=ve.textClass),Fi(ie,ae),Ii(ie,ae,fe,ce),Hi(ie,ae,ce),ae.node}function Hi(ie,ae,fe){if(hi(ie,ae.line,ae,fe,!0),ae.rest)for(var ce=0;ce<ae.rest.length;ce++)hi(ie,ae.rest[ce],ae,fe,!1)}function hi(ie,ae,fe,ce,ve){if(ae.widgets)for(var Le=fr(fe),Ge=0,et=ae.widgets;Ge<et.length;++Ge){var qe=et[Ge],mt=Ie("div",[qe.node],"CodeMirror-linewidget"+(qe.className?" "+qe.className:""));qe.handleMouseEvents||mt.setAttribute("cm-ignore-events","true"),Li(qe,mt,fe,ce),ie.display.input.setUneditable(mt),ve&&qe.above?Le.insertBefore(mt,fe.gutter||fe.text):Le.appendChild(mt),ri(qe,"redraw")}}function Li(ie,ae,fe,ce){if(ie.noHScroll){(fe.alignable||(fe.alignable=[])).push(ae);var ve=ce.wrapperWidth;ae.style.left=ce.fixedPos+"px",ie.coverGutter||(ve-=ce.gutterTotalWidth,ae.style.paddingLeft=ce.gutterTotalWidth+"px"),ae.style.width=ve+"px"}ie.coverGutter&&(ae.style.zIndex=5,ae.style.position="relative",ie.noHScroll||(ae.style.marginLeft=-ce.gutterTotalWidth+"px"))}function pr(ie){if(ie.height!=null)return ie.height;var ae=ie.doc.cm;if(!ae)return 0;if(!xt(document.body,ie.node)){var fe="position: relative;";ie.coverGutter&&(fe+="margin-left: -"+ae.display.gutters.offsetWidth+"px;"),ie.noHScroll&&(fe+="width: "+ae.display.wrapper.clientWidth+"px;"),Be(ae.display.measure,Ie("div",[ie.node],null,fe))}return ie.height=ie.node.parentNode.offsetHeight}function Jn(ie,ae){for(var fe=to(ae);fe!=ie.wrapper;fe=fe.parentNode)if(!fe||fe.nodeType==1&&fe.getAttribute("cm-ignore-events")=="true"||fe.parentNode==ie.sizer&&fe!=ie.mover)return!0}function ni(ie){return ie.lineSpace.offsetTop}function Ui(ie){return ie.mover.offsetHeight-ie.lineSpace.offsetHeight}function or(ie){if(ie.cachedPaddingH)return ie.cachedPaddingH;var ae=Be(ie.measure,Ie("pre","x","CodeMirror-line-like")),fe=window.getComputedStyle?window.getComputedStyle(ae):ae.currentStyle,ce={left:parseInt(fe.paddingLeft),right:parseInt(fe.paddingRight)};return!isNaN(ce.left)&&!isNaN(ce.right)&&(ie.cachedPaddingH=ce),ce}function br(ie){return fn-ie.display.nativeBarWidth}function co(ie){return ie.display.scroller.clientWidth-br(ie)-ie.display.barWidth}function mo(ie){return ie.display.scroller.clientHeight-br(ie)-ie.display.barHeight}function To(ie,ae,fe){var ce=ie.options.lineWrapping,ve=ce&&co(ie);if(!ae.measure.heights||ce&&ae.measure.width!=ve){var Le=ae.measure.heights=[];if(ce){ae.measure.width=ve;for(var Ge=ae.text.firstChild.getClientRects(),et=0;et<Ge.length-1;et++){var qe=Ge[et],mt=Ge[et+1];Math.abs(qe.bottom-mt.bottom)>2&&Le.push((qe.bottom+mt.top)/2-fe.top)}}Le.push(fe.bottom-fe.top)}}function qr(ie,ae,fe){if(ie.line==ae)return{map:ie.measure.map,cache:ie.measure.cache};for(var ce=0;ce<ie.rest.length;ce++)if(ie.rest[ce]==ae)return{map:ie.measure.maps[ce],cache:ie.measure.caches[ce]};for(var ve=0;ve<ie.rest.length;ve++)if(lt(ie.rest[ve])>fe)return{map:ie.measure.maps[ve],cache:ie.measure.caches[ve],before:!0}}function ta(ie,ae){ae=vn(ae);var fe=lt(ae),ce=ie.display.externalMeasured=new Dn(ie.doc,ae,fe);ce.lineN=fe;var ve=ce.built=pt(ie,ce);return ce.text=ve.pre,Be(ie.display.lineMeasure,ve.pre),ce}function Fo(ie,ae,fe,ce){return bo(ie,Ir(ie,ae),fe,ce)}function ar(ie,ae){if(ae>=ie.display.viewFrom&&ae<ie.display.viewTo)return ie.display.view[$a(ie,ae)];var fe=ie.display.externalMeasured;if(fe&&ae>=fe.lineN&&ae<fe.lineN+fe.size)return fe}function Ir(ie,ae){var fe=lt(ae),ce=ar(ie,fe);ce&&!ce.text?ce=null:ce&&ce.changes&&(rr(ie,ce,fe,Na(ie)),ie.curOp.forceUpdate=!0),ce||(ce=ta(ie,ae));var ve=qr(ce,ae,fe);return{line:ae,view:ce,rect:null,map:ve.map,cache:ve.cache,before:ve.before,hasHeights:!1}}function bo(ie,ae,fe,ce,ve){ae.before&&(fe=-1);var Le=fe+(ce||""),Ge;return ae.cache.hasOwnProperty(Le)?Ge=ae.cache[Le]:(ae.rect||(ae.rect=ae.view.text.getBoundingClientRect()),ae.hasHeights||(To(ie,ae.view,ae.rect),ae.hasHeights=!0),Ge=Eo(ie,ae,fe,ce),Ge.bogus||(ae.cache[Le]=Ge)),{left:Ge.left,right:Ge.right,top:ve?Ge.rtop:Ge.top,bottom:ve?Ge.rbottom:Ge.bottom}}var Zo={left:0,right:0,top:0,bottom:0};function Ko(ie,ae,fe){for(var ce,ve,Le,Ge,et,qe,mt=0;mt<ie.length;mt+=3)if(et=ie[mt],qe=ie[mt+1],ae<et?(ve=0,Le=1,Ge="left"):ae<qe?(ve=ae-et,Le=ve+1):(mt==ie.length-3||ae==qe&&ie[mt+3]>ae)&&(Le=qe-et,ve=Le-1,ae>=qe&&(Ge="right")),ve!=null){if(ce=ie[mt+2],et==qe&&fe==(ce.insertLeft?"left":"right")&&(Ge=fe),fe=="left"&&ve==0)for(;mt&&ie[mt-2]==ie[mt-3]&&ie[mt-1].insertLeft;)ce=ie[(mt-=3)+2],Ge="left";if(fe=="right"&&ve==qe-et)for(;mt<ie.length-3&&ie[mt+3]==ie[mt+4]&&!ie[mt+5].insertLeft;)ce=ie[(mt+=3)+2],Ge="right";break}return{node:ce,start:ve,end:Le,collapse:Ge,coverStart:et,coverEnd:qe}}function Io(ie,ae){var fe=Zo;if(ae=="left")for(var ce=0;ce<ie.length&&(fe=ie[ce]).left==fe.right;ce++);else for(var ve=ie.length-1;ve>=0&&(fe=ie[ve]).left==fe.right;ve--);return fe}function Eo(ie,ae,fe,ce){var ve=Ko(ae.map,fe,ce),Le=ve.node,Ge=ve.start,et=ve.end,qe=ve.collapse,mt;if(Le.nodeType==3){for(var rn=0;rn<4;rn++){for(;Ge&&Ht(ae.line.text.charAt(ve.coverStart+Ge));)--Ge;for(;ve.coverStart+et<ve.coverEnd&&Ht(ae.line.text.charAt(ve.coverStart+et));)++et;if(it&&ze<9&&Ge==0&&et==ve.coverEnd-ve.coverStart?mt=Le.parentNode.getBoundingClientRect():mt=Io(rt(Le,Ge,et).getClientRects(),ce),mt.left||mt.right||Ge==0)break;et=Ge,Ge=Ge-1,qe="right"}it&&ze<11&&(mt=ia(ie.display.measure,mt))}else{Ge>0&&(qe=ce="right");var Mt;ie.options.lineWrapping&&(Mt=Le.getClientRects()).length>1?mt=Mt[ce=="right"?Mt.length-1:0]:mt=Le.getBoundingClientRect()}if(it&&ze<9&&!Ge&&(!mt||!mt.left&&!mt.right)){var Nn=Le.parentNode.getClientRects()[0];Nn?mt={left:Nn.left,right:Nn.left+Ga(ie.display),top:Nn.top,bottom:Nn.bottom}:mt=Zo}for(var xn=mt.top-ae.rect.top,Bi=mt.bottom-ae.rect.top,Zi=(xn+Bi)/2,er=ae.view.measure.heights,Cr=0;Cr<er.length-1&&!(Zi<er[Cr]);Cr++);var Vr=Cr?er[Cr-1]:0,Br=er[Cr],Qr={left:(qe=="right"?mt.right:mt.left)-ae.rect.left,right:(qe=="left"?mt.left:mt.right)-ae.rect.left,top:Vr,bottom:Br};return!mt.left&&!mt.right&&(Qr.bogus=!0),ie.options.singleCursorHeightPerLine||(Qr.rtop=xn,Qr.rbottom=Bi),Qr}function ia(ie,ae){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!ci(ie))return ae;var fe=screen.logicalXDPI/screen.deviceXDPI,ce=screen.logicalYDPI/screen.deviceYDPI;return{left:ae.left*fe,right:ae.right*fe,top:ae.top*ce,bottom:ae.bottom*ce}}function ma(ie){if(ie.measure&&(ie.measure.cache={},ie.measure.heights=null,ie.rest))for(var ae=0;ae<ie.rest.length;ae++)ie.measure.caches[ae]={}}function Oo(ie){ie.display.externalMeasure=null,We(ie.display.lineMeasure);for(var ae=0;ae<ie.display.view.length;ae++)ma(ie.display.view[ae])}function Da(ie){Oo(ie),ie.display.cachedCharWidth=ie.display.cachedTextHeight=ie.display.cachedPaddingH=null,ie.options.lineWrapping||(ie.display.maxLineChanged=!0),ie.display.lineNumChars=null}function Kr(){return ot&&ne?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function so(){return ot&&ne?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function uo(ie){var ae=0;if(ie.widgets)for(var fe=0;fe<ie.widgets.length;++fe)ie.widgets[fe].above&&(ae+=pr(ie.widgets[fe]));return ae}function Do(ie,ae,fe,ce,ve){if(!ve){var Le=uo(ae);fe.top+=Le,fe.bottom+=Le}if(ce=="line")return fe;ce||(ce="local");var Ge=Ct(ae);if(ce=="local"?Ge+=ni(ie.display):Ge-=ie.display.viewOffset,ce=="page"||ce=="window"){var et=ie.display.lineSpace.getBoundingClientRect();Ge+=et.top+(ce=="window"?0:so());var qe=et.left+(ce=="window"?0:Kr());fe.left+=qe,fe.right+=qe}return fe.top+=Ge,fe.bottom+=Ge,fe}function ko(ie,ae,fe){if(fe=="div")return ae;var ce=ae.left,ve=ae.top;if(fe=="page")ce-=Kr(),ve-=so();else if(fe=="local"||!fe){var Le=ie.display.sizer.getBoundingClientRect();ce+=Le.left,ve+=Le.top}var Ge=ie.display.lineSpace.getBoundingClientRect();return{left:ce-Ge.left,top:ve-Ge.top}}function Ea(ie,ae,fe,ce,ve){return ce||(ce=In(ie.doc,ae.line)),Do(ie,ce,Fo(ie,ce,ae.ch,ve),fe)}function xr(ie,ae,fe,ce,ve,Le){ce=ce||In(ie.doc,ae.line),ve||(ve=Ir(ie,ce));function Ge(Bi,Zi){var er=bo(ie,ve,Bi,Zi?"right":"left",Le);return Zi?er.left=er.right:er.right=er.left,Do(ie,ce,er,fe)}var et=zn(ce,ie.doc.direction),qe=ae.ch,mt=ae.sticky;if(qe>=ce.text.length?(qe=ce.text.length,mt="before"):qe<=0&&(qe=0,mt="after"),!et)return Ge(mt=="before"?qe-1:qe,mt=="before");function rn(Bi,Zi,er){var Cr=et[Zi],Vr=Cr.level==1;return Ge(er?Bi-1:Bi,Vr!=er)}var Mt=nn(et,qe,mt),Nn=kt,xn=rn(qe,Mt,mt=="before");return Nn!=null&&(xn.other=rn(qe,Nn,mt!="before")),xn}function ir(ie,ae){var fe=0;ae=qn(ie.doc,ae),ie.options.lineWrapping||(fe=Ga(ie.display)*ae.ch);var ce=In(ie.doc,ae.line),ve=Ct(ce)+ni(ie.display);return{left:fe,right:fe,top:ve,bottom:ve+ce.height}}function kr(ie,ae,fe,ce,ve){var Le=tn(ie,ae,fe);return Le.xRel=ve,ce&&(Le.outside=ce),Le}function yr(ie,ae,fe){var ce=ie.doc;if(fe+=ie.display.viewOffset,fe<0)return kr(ce.first,0,null,-1,-1);var ve=Rt(ce,fe),Le=ce.first+ce.size-1;if(ve>Le)return kr(ce.first+ce.size-1,In(ce,Le).text.length,null,1,1);ae<0&&(ae=0);for(var Ge=In(ce,ve);;){var et=Cn(ie,Ge,ve,ae,fe),qe=on(Ge,et.ch+(et.xRel>0||et.outside>0?1:0));if(!qe)return et;var mt=qe.find(1);if(mt.line==ve)return mt;Ge=In(ce,ve=mt.line)}}function ui(ie,ae,fe,ce){ce-=uo(ae);var ve=ae.text.length,Le=Sn(function(Ge){return bo(ie,fe,Ge-1).bottom<=ce},ve,0);return ve=Sn(function(Ge){return bo(ie,fe,Ge).top>ce},Le,ve),{begin:Le,end:ve}}function _o(ie,ae,fe,ce){fe||(fe=Ir(ie,ae));var ve=Do(ie,ae,bo(ie,fe,ce),"line").top;return ui(ie,ae,fe,ve)}function St(ie,ae,fe,ce){return ie.bottom<=fe?!1:ie.top>fe?!0:(ce?ie.left:ie.right)>ae}function Cn(ie,ae,fe,ce,ve){ve-=Ct(ae);var Le=Ir(ie,ae),Ge=uo(ae),et=0,qe=ae.text.length,mt=!0,rn=zn(ae,ie.doc.direction);if(rn){var Mt=(ie.options.lineWrapping?za:ja)(ie,ae,fe,Le,rn,ce,ve);mt=Mt.level!=1,et=mt?Mt.from:Mt.to-1,qe=mt?Mt.to:Mt.from-1}var Nn=null,xn=null,Bi=Sn(function(Lo){var Dr=bo(ie,Le,Lo);return Dr.top+=Ge,Dr.bottom+=Ge,St(Dr,ce,ve,!1)?(Dr.top<=ve&&Dr.left<=ce&&(Nn=Lo,xn=Dr),!0):!1},et,qe),Zi,er,Cr=!1;if(xn){var Vr=ce-xn.left<xn.right-ce,Br=Vr==mt;Bi=Nn+(Br?0:1),er=Br?"after":"before",Zi=Vr?xn.left:xn.right}else{!mt&&(Bi==qe||Bi==et)&&Bi++,er=Bi==0?"after":Bi==ae.text.length?"before":bo(ie,Le,Bi-(mt?1:0)).bottom+Ge<=ve==mt?"after":"before";var Qr=xr(ie,tn(fe,Bi,er),"line",ae,Le);Zi=Qr.left,Cr=ve<Qr.top?-1:ve>=Qr.bottom?1:0}return Bi=$t(ae.text,Bi,1),kr(fe,Bi,er,Cr,ce-Zi)}function ja(ie,ae,fe,ce,ve,Le,Ge){var et=Sn(function(Mt){var Nn=ve[Mt],xn=Nn.level!=1;return St(xr(ie,tn(fe,xn?Nn.to:Nn.from,xn?"before":"after"),"line",ae,ce),Le,Ge,!0)},0,ve.length-1),qe=ve[et];if(et>0){var mt=qe.level!=1,rn=xr(ie,tn(fe,mt?qe.from:qe.to,mt?"after":"before"),"line",ae,ce);St(rn,Le,Ge,!0)&&rn.top>Ge&&(qe=ve[et-1])}return qe}function za(ie,ae,fe,ce,ve,Le,Ge){var et=ui(ie,ae,ce,Ge),qe=et.begin,mt=et.end;/\s/.test(ae.text.charAt(mt-1))&&mt--;for(var rn=null,Mt=null,Nn=0;Nn<ve.length;Nn++){var xn=ve[Nn];if(!(xn.from>=mt||xn.to<=qe)){var Bi=xn.level!=1,Zi=bo(ie,ce,Bi?Math.min(mt,xn.to)-1:Math.max(qe,xn.from)).right,er=Zi<Le?Le-Zi+1e9:Zi-Le;(!rn||Mt>er)&&(rn=xn,Mt=er)}}return rn||(rn=ve[ve.length-1]),rn.from<qe&&(rn={from:qe,to:rn.to,level:rn.level}),rn.to>mt&&(rn={from:rn.from,to:mt,level:rn.level}),rn}var da;function ca(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(da==null){da=Ie("pre",null,"CodeMirror-line-like");for(var ae=0;ae<49;++ae)da.appendChild(document.createTextNode("x")),da.appendChild(Ie("br"));da.appendChild(document.createTextNode("x"))}Be(ie.measure,da);var fe=da.offsetHeight/50;return fe>3&&(ie.cachedTextHeight=fe),We(ie.measure),fe||1}function Ga(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var ae=Ie("span","xxxxxxxxxx"),fe=Ie("pre",[ae],"CodeMirror-line-like");Be(ie.measure,fe);var ce=ae.getBoundingClientRect(),ve=(ce.right-ce.left)/10;return ve>2&&(ie.cachedCharWidth=ve),ve||10}function Na(ie){for(var ae=ie.display,fe={},ce={},ve=ae.gutters.clientLeft,Le=ae.gutters.firstChild,Ge=0;Le;Le=Le.nextSibling,++Ge){var et=ie.display.gutterSpecs[Ge].className;fe[et]=Le.offsetLeft+Le.clientLeft+ve,ce[et]=Le.clientWidth}return{fixedPos:Zs(ae),gutterTotalWidth:ae.gutters.offsetWidth,gutterLeft:fe,gutterWidth:ce,wrapperWidth:ae.wrapper.clientWidth}}function Zs(ie){return ie.scroller.getBoundingClientRect().left-ie.sizer.getBoundingClientRect().left}function aa(ie){var ae=ca(ie.display),fe=ie.options.lineWrapping,ce=fe&&Math.max(5,ie.display.scroller.clientWidth/Ga(ie.display)-3);return function(ve){if(Xe(ie.doc,ve))return 0;var Le=0;if(ve.widgets)for(var Ge=0;Ge<ve.widgets.length;Ge++)ve.widgets[Ge].height&&(Le+=ve.widgets[Ge].height);return fe?Le+(Math.ceil(ve.text.length/ce)||1)*ae:Le+ae}}function Wr(ie){var ae=ie.doc,fe=aa(ie);ae.iter(function(ce){var ve=fe(ce);ve!=ce.height&&ii(ce,ve)})}function Va(ie,ae,fe,ce){var ve=ie.display;if(!fe&&to(ae).getAttribute("cm-not-content")=="true")return null;var Le,Ge,et=ve.lineSpace.getBoundingClientRect();try{Le=ae.clientX-et.left,Ge=ae.clientY-et.top}catch(Mt){return null}var qe=yr(ie,Le,Ge),mt;if(ce&&qe.xRel>0&&(mt=In(ie.doc,qe.line).text).length==qe.ch){var rn=st(mt,mt.length,ie.options.tabSize)-mt.length;qe=tn(qe.line,Math.max(0,Math.round((Le-or(ie.display).left)/Ga(ie.display))-rn))}return qe}function $a(ie,ae){if(ae>=ie.display.viewTo||(ae-=ie.display.viewFrom,ae<0))return null;for(var fe=ie.display.view,ce=0;ce<fe.length;ce++)if(ae-=fe[ce].size,ae<0)return ce}function sa(ie,ae,fe,ce){ae==null&&(ae=ie.doc.first),fe==null&&(fe=ie.doc.first+ie.doc.size),ce||(ce=0);var ve=ie.display;if(ce&&fe<ve.viewTo&&(ve.updateLineNumbers==null||ve.updateLineNumbers>ae)&&(ve.updateLineNumbers=ae),ie.curOp.viewChanged=!0,ae>=ve.viewTo)An&&ke(ie.doc,ae)<ve.viewTo&&ga(ie);else if(fe<=ve.viewFrom)An&&ct(ie.doc,fe+ce)>ve.viewFrom?ga(ie):(ve.viewFrom+=ce,ve.viewTo+=ce);else if(ae<=ve.viewFrom&&fe>=ve.viewTo)ga(ie);else if(ae<=ve.viewFrom){var Le=ls(ie,fe,fe+ce,1);Le?(ve.view=ve.view.slice(Le.index),ve.viewFrom=Le.lineN,ve.viewTo+=ce):ga(ie)}else if(fe>=ve.viewTo){var Ge=ls(ie,ae,ae,-1);Ge?(ve.view=ve.view.slice(0,Ge.index),ve.viewTo=Ge.lineN):ga(ie)}else{var et=ls(ie,ae,ae,-1),qe=ls(ie,fe,fe+ce,1);et&&qe?(ve.view=ve.view.slice(0,et.index).concat(yi(ie,et.lineN,qe.lineN)).concat(ve.view.slice(qe.index)),ve.viewTo+=ce):ga(ie)}var mt=ve.externalMeasured;mt&&(fe<mt.lineN?mt.lineN+=ce:ae<mt.lineN+mt.size&&(ve.externalMeasured=null))}function vo(ie,ae,fe){ie.curOp.viewChanged=!0;var ce=ie.display,ve=ie.display.externalMeasured;if(ve&&ae>=ve.lineN&&ae<ve.lineN+ve.size&&(ce.externalMeasured=null),!(ae<ce.viewFrom||ae>=ce.viewTo)){var Le=ce.view[$a(ie,ae)];if(Le.node!=null){var Ge=Le.changes||(Le.changes=[]);jt(Ge,fe)==-1&&Ge.push(fe)}}}function ga(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function ls(ie,ae,fe,ce){var ve=$a(ie,ae),Le,Ge=ie.display.view;if(!An||fe==ie.doc.first+ie.doc.size)return{index:ve,lineN:fe};for(var et=ie.display.viewFrom,qe=0;qe<ve;qe++)et+=Ge[qe].size;if(et!=ae){if(ce>0){if(ve==Ge.length-1)return null;Le=et+Ge[ve].size-ae,ve++}else Le=et-ae;ae+=Le,fe+=Le}for(;ke(ie.doc,fe)!=fe;){if(ve==(ce<0?0:Ge.length-1))return null;fe+=ce*Ge[ve-(ce<0?1:0)].size,ve+=ce}return{index:ve,lineN:fe}}function oa(ie,ae,fe){var ce=ie.display,ve=ce.view;ve.length==0||ae>=ce.viewTo||fe<=ce.viewFrom?(ce.view=yi(ie,ae,fe),ce.viewFrom=ae):(ce.viewFrom>ae?ce.view=yi(ie,ae,ce.viewFrom).concat(ce.view):ce.viewFrom<ae&&(ce.view=ce.view.slice($a(ie,ae))),ce.viewFrom=ae,ce.viewTo<fe?ce.view=ce.view.concat(yi(ie,ce.viewTo,fe)):ce.viewTo>fe&&(ce.view=ce.view.slice(0,$a(ie,fe)))),ce.viewTo=fe}function us(ie){for(var ae=ie.display.view,fe=0,ce=0;ce<ae.length;ce++){var ve=ae[ce];!ve.hidden&&(!ve.node||ve.changes)&&++fe}return fe}function Ta(ie){ie.display.input.showSelection(ie.display.input.prepareSelection())}function bl(ie,ae){ae===void 0&&(ae=!0);for(var fe=ie.doc,ce={},ve=ce.cursors=document.createDocumentFragment(),Le=ce.selection=document.createDocumentFragment(),Ge=0;Ge<fe.sel.ranges.length;Ge++)if(!(!ae&&Ge==fe.sel.primIndex)){var et=fe.sel.ranges[Ge];if(!(et.from().line>=ie.display.viewTo||et.to().line<ie.display.viewFrom)){var qe=et.empty();(qe||ie.options.showCursorWhenSelecting)&&Go(ie,et.head,ve),qe||Ro(ie,et,Le)}}return ce}function Go(ie,ae,fe){var ce=xr(ie,ae,"div",null,null,!ie.options.singleCursorHeightPerLine),ve=fe.appendChild(Ie("div","\xA0","CodeMirror-cursor"));if(ve.style.left=ce.left+"px",ve.style.top=ce.top+"px",ve.style.height=Math.max(0,ce.bottom-ce.top)*ie.options.cursorHeight+"px",ce.other){var Le=fe.appendChild(Ie("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Le.style.display="",Le.style.left=ce.other.left+"px",Le.style.top=ce.other.top+"px",Le.style.height=(ce.other.bottom-ce.other.top)*.85+"px"}}function Aa(ie,ae){return ie.top-ae.top||ie.left-ae.left}function Ro(ie,ae,fe){var ce=ie.display,ve=ie.doc,Le=document.createDocumentFragment(),Ge=or(ie.display),et=Ge.left,qe=Math.max(ce.sizerWidth,co(ie)-ce.sizer.offsetLeft)-Ge.right,mt=ve.direction=="ltr";function rn(Br,Qr,Lo,Dr){Qr<0&&(Qr=0),Qr=Math.round(Qr),Dr=Math.round(Dr),Le.appendChild(Ie("div",null,"CodeMirror-selected","position: absolute; left: "+Br+`px;
|
|
top: `+Qr+"px; width: "+(Lo==null?qe-Br:Lo)+`px;
|
|
height: `+(Dr-Qr)+"px"))}function Mt(Br,Qr,Lo){var Dr=In(ve,Br),Qo=Dr.text.length,Oa,ms;function Ka(cs,xl){return Ea(ie,tn(Br,cs),"div",Dr,xl)}function sl(cs,xl,Ts){var fs=_o(ie,Dr,null,cs),ha=xl=="ltr"==(Ts=="after")?"left":"right",Qa=Ts=="after"?fs.begin:fs.end-(/\s/.test(Dr.text.charAt(fs.end-1))?2:1);return Ka(Qa,ha)[ha]}var Vs=zn(Dr,ve.direction);return en(Vs,Qr||0,Lo==null?Qo:Lo,function(cs,xl,Ts,fs){var ha=Ts=="ltr",Qa=Ka(cs,ha?"left":"right"),ws=Ka(xl-1,ha?"right":"left"),Os=Qr==null&&cs==0,ou=Lo==null&&xl==Qo,Ua=fs==0,Ul=!Vs||fs==Vs.length-1;if(ws.top-Qa.top<=3){var ts=(mt?Os:ou)&&Ua,Bc=(mt?ou:Os)&&Ul,Ol=ts?et:(ha?Qa:ws).left,Pl=Bc?qe:(ha?ws:Qa).right;rn(Ol,Qa.top,Pl-Ol,Qa.bottom)}else{var ll,Ma,Cs,Ou;ha?(ll=mt&&Os&&Ua?et:Qa.left,Ma=mt?qe:sl(cs,Ts,"before"),Cs=mt?et:sl(xl,Ts,"after"),Ou=mt&&ou&&Ul?qe:ws.right):(ll=mt?sl(cs,Ts,"before"):et,Ma=!mt&&Os&&Ua?qe:Qa.right,Cs=!mt&&ou&&Ul?et:ws.left,Ou=mt?sl(xl,Ts,"after"):qe),rn(ll,Qa.top,Ma-ll,Qa.bottom),Qa.bottom<ws.top&&rn(et,Qa.bottom,null,ws.top),rn(Cs,ws.top,Ou-Cs,ws.bottom)}(!Oa||Aa(Qa,Oa)<0)&&(Oa=Qa),Aa(ws,Oa)<0&&(Oa=ws),(!ms||Aa(Qa,ms)<0)&&(ms=Qa),Aa(ws,ms)<0&&(ms=ws)}),{start:Oa,end:ms}}var Nn=ae.from(),xn=ae.to();if(Nn.line==xn.line)Mt(Nn.line,Nn.ch,xn.ch);else{var Bi=In(ve,Nn.line),Zi=In(ve,xn.line),er=vn(Bi)==vn(Zi),Cr=Mt(Nn.line,Nn.ch,er?Bi.text.length+1:null).end,Vr=Mt(xn.line,er?0:null,xn.ch).start;er&&(Cr.top<Vr.top-2?(rn(Cr.right,Cr.top,null,Cr.bottom),rn(et,Vr.top,Vr.left,Vr.bottom)):rn(Cr.right,Cr.top,Vr.left-Cr.right,Cr.bottom)),Cr.bottom<Vr.top&&rn(et,Cr.bottom,null,Vr.top)}fe.appendChild(Le)}function qo(ie){if(ie.state.focused){var ae=ie.display;clearInterval(ae.blinker);var fe=!0;ae.cursorDiv.style.visibility="",ie.options.cursorBlinkRate>0?ae.blinker=setInterval(function(){ie.hasFocus()||fl(ie),ae.cursorDiv.style.visibility=(fe=!fe)?"":"hidden"},ie.options.cursorBlinkRate):ie.options.cursorBlinkRate<0&&(ae.cursorDiv.style.visibility="hidden")}}function ua(ie){ie.state.focused||(ie.display.input.focus(),Jo(ie))}function pa(ie){ie.state.delayingBlurEvent=!0,setTimeout(function(){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1,fl(ie))},100)}function Jo(ie,ae){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1),ie.options.readOnly!="nocursor"&&(ie.state.focused||(Yn(ie,"focus",ie,ae),ie.state.focused=!0,bt(ie.display.wrapper,"CodeMirror-focused"),!ie.curOp&&ie.display.selForContextMenu!=ie.doc.sel&&(ie.display.input.reset(),Ue&&setTimeout(function(){return ie.display.input.reset(!0)},20)),ie.display.input.receivedFocus()),qo(ie))}function fl(ie,ae){ie.state.delayingBlurEvent||(ie.state.focused&&(Yn(ie,"blur",ie,ae),ie.state.focused=!1,Oe(ie.display.wrapper,"CodeMirror-focused")),clearInterval(ie.display.blinker),setTimeout(function(){ie.state.focused||(ie.display.shift=!1)},150))}function _r(ie){for(var ae=ie.display,fe=ae.lineDiv.offsetTop,ce=0;ce<ae.view.length;ce++){var ve=ae.view[ce],Le=ie.options.lineWrapping,Ge=void 0,et=0;if(!ve.hidden){if(it&&ze<8){var qe=ve.node.offsetTop+ve.node.offsetHeight;Ge=qe-fe,fe=qe}else{var mt=ve.node.getBoundingClientRect();Ge=mt.bottom-mt.top,!Le&&ve.text.firstChild&&(et=ve.text.firstChild.getBoundingClientRect().right-mt.left-1)}var rn=ve.line.height-Ge;if((rn>.005||rn<-.005)&&(ii(ve.line,Ge),pu(ve.line),ve.rest))for(var Mt=0;Mt<ve.rest.length;Mt++)pu(ve.rest[Mt]);if(et>ie.display.sizerWidth){var Nn=Math.ceil(et/Ga(ie.display));Nn>ie.display.maxLineLength&&(ie.display.maxLineLength=Nn,ie.display.maxLine=ve.line,ie.display.maxLineChanged=!0)}}}}function pu(ie){if(ie.widgets)for(var ae=0;ae<ie.widgets.length;++ae){var fe=ie.widgets[ae],ce=fe.node.parentNode;ce&&(fe.height=ce.offsetHeight)}}function Ao(ie,ae,fe){var ce=fe&&fe.top!=null?Math.max(0,fe.top):ie.scroller.scrollTop;ce=Math.floor(ce-ni(ie));var ve=fe&&fe.bottom!=null?fe.bottom:ce+ie.wrapper.clientHeight,Le=Rt(ae,ce),Ge=Rt(ae,ve);if(fe&&fe.ensure){var et=fe.ensure.from.line,qe=fe.ensure.to.line;et<Le?(Le=et,Ge=Rt(ae,Ct(In(ae,et))+ie.wrapper.clientHeight)):Math.min(qe,ae.lastLine())>=Ge&&(Le=Rt(ae,Ct(In(ae,qe))-ie.wrapper.clientHeight),Ge=qe)}return{from:Le,to:Math.max(Ge,Le+1)}}function Gl(ie,ae){if(!Ei(ie,"scrollCursorIntoView")){var fe=ie.display,ce=fe.sizer.getBoundingClientRect(),ve=null;if(ae.top+ce.top<0?ve=!0:ae.bottom+ce.top>(window.innerHeight||document.documentElement.clientHeight)&&(ve=!1),ve!=null&&!ht){var Le=Ie("div","\u200B",null,`position: absolute;
|
|
top: `+(ae.top-fe.viewOffset-ni(ie.display))+`px;
|
|
height: `+(ae.bottom-ae.top+br(ie)+fe.barHeight)+`px;
|
|
left: `+ae.left+"px; width: "+Math.max(2,ae.right-ae.left)+"px;");ie.display.lineSpace.appendChild(Le),Le.scrollIntoView(ve),ie.display.lineSpace.removeChild(Le)}}}function Qs(ie,ae,fe,ce){ce==null&&(ce=0);var ve;!ie.options.lineWrapping&&ae==fe&&(ae=ae.ch?tn(ae.line,ae.sticky=="before"?ae.ch-1:ae.ch,"after"):ae,fe=ae.sticky=="before"?tn(ae.line,ae.ch+1,"before"):ae);for(var Le=0;Le<5;Le++){var Ge=!1,et=xr(ie,ae),qe=!fe||fe==ae?et:xr(ie,fe);ve={left:Math.min(et.left,qe.left),top:Math.min(et.top,qe.top)-ce,right:Math.max(et.left,qe.left),bottom:Math.max(et.bottom,qe.bottom)+ce};var mt=mu(ie,ve),rn=ie.doc.scrollTop,Mt=ie.doc.scrollLeft;if(mt.scrollTop!=null&&(gl(ie,mt.scrollTop),Math.abs(ie.doc.scrollTop-rn)>1&&(Ge=!0)),mt.scrollLeft!=null&&(pl(ie,mt.scrollLeft),Math.abs(ie.doc.scrollLeft-Mt)>1&&(Ge=!0)),!Ge)break}return ve}function Dl(ie,ae){var fe=mu(ie,ae);fe.scrollTop!=null&&gl(ie,fe.scrollTop),fe.scrollLeft!=null&&pl(ie,fe.scrollLeft)}function mu(ie,ae){var fe=ie.display,ce=ca(ie.display);ae.top<0&&(ae.top=0);var ve=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:fe.scroller.scrollTop,Le=mo(ie),Ge={};ae.bottom-ae.top>Le&&(ae.bottom=ae.top+Le);var et=ie.doc.height+Ui(fe),qe=ae.top<ce,mt=ae.bottom>et-ce;if(ae.top<ve)Ge.scrollTop=qe?0:ae.top;else if(ae.bottom>ve+Le){var rn=Math.min(ae.top,(mt?et:ae.bottom)-Le);rn!=ve&&(Ge.scrollTop=rn)}var Mt=ie.options.fixedGutter?0:fe.gutters.offsetWidth,Nn=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:fe.scroller.scrollLeft-Mt,xn=co(ie)-fe.gutters.offsetWidth,Bi=ae.right-ae.left>xn;return Bi&&(ae.right=ae.left+xn),ae.left<10?Ge.scrollLeft=0:ae.left<Nn?Ge.scrollLeft=Math.max(0,ae.left+Mt-(Bi?0:10)):ae.right>xn+Nn-3&&(Ge.scrollLeft=ae.right+(Bi?0:10)-xn),Ge}function vu(ie,ae){ae!=null&&(Hs(ie),ie.curOp.scrollTop=(ie.curOp.scrollTop==null?ie.doc.scrollTop:ie.curOp.scrollTop)+ae)}function Ws(ie){Hs(ie);var ae=ie.getCursor();ie.curOp.scrollToPos={from:ae,to:ae,margin:ie.options.cursorScrollMargin}}function Vl(ie,ae,fe){(ae!=null||fe!=null)&&Hs(ie),ae!=null&&(ie.curOp.scrollLeft=ae),fe!=null&&(ie.curOp.scrollTop=fe)}function Uo(ie,ae){Hs(ie),ie.curOp.scrollToPos=ae}function Hs(ie){var ae=ie.curOp.scrollToPos;if(ae){ie.curOp.scrollToPos=null;var fe=ir(ie,ae.from),ce=ir(ie,ae.to);yu(ie,fe,ce,ae.margin)}}function yu(ie,ae,fe,ce){var ve=mu(ie,{left:Math.min(ae.left,fe.left),top:Math.min(ae.top,fe.top)-ce,right:Math.max(ae.right,fe.right),bottom:Math.max(ae.bottom,fe.bottom)+ce});Vl(ie,ve.scrollLeft,ve.scrollTop)}function gl(ie,ae){Math.abs(ie.doc.scrollTop-ae)<2||(me||fh(ie,{top:ae}),Du(ie,ae,!0),me&&fh(ie),ns(ie,100))}function Du(ie,ae,fe){ae=Math.max(0,Math.min(ie.display.scroller.scrollHeight-ie.display.scroller.clientHeight,ae)),!(ie.display.scroller.scrollTop==ae&&!fe)&&(ie.doc.scrollTop=ae,ie.display.scrollbars.setScrollTop(ae),ie.display.scroller.scrollTop!=ae&&(ie.display.scroller.scrollTop=ae))}function pl(ie,ae,fe,ce){ae=Math.max(0,Math.min(ae,ie.display.scroller.scrollWidth-ie.display.scroller.clientWidth)),!((fe?ae==ie.doc.scrollLeft:Math.abs(ie.doc.scrollLeft-ae)<2)&&!ce)&&(ie.doc.scrollLeft=ae,rf(ie),ie.display.scroller.scrollLeft!=ae&&(ie.display.scroller.scrollLeft=ae),ie.display.scrollbars.setScrollLeft(ae))}function Bo(ie){var ae=ie.display,fe=ae.gutters.offsetWidth,ce=Math.round(ie.doc.height+Ui(ie.display));return{clientHeight:ae.scroller.clientHeight,viewHeight:ae.wrapper.clientHeight,scrollWidth:ae.scroller.scrollWidth,clientWidth:ae.scroller.clientWidth,viewWidth:ae.wrapper.clientWidth,barLeft:ie.options.fixedGutter?fe:0,docHeight:ce,scrollHeight:ce+br(ie)+ae.barHeight,nativeBarWidth:ae.nativeBarWidth,gutterWidth:fe}}var Yo=function(ie,ae,fe){this.cm=fe;var ce=this.vert=Ie("div",[Ie("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ve=this.horiz=Ie("div",[Ie("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ce.tabIndex=ve.tabIndex=-1,ie(ce),ie(ve),_n(ce,"scroll",function(){ce.clientHeight&&ae(ce.scrollTop,"vertical")}),_n(ve,"scroll",function(){ve.clientWidth&&ae(ve.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,it&&ze<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Yo.prototype.update=function(ie){var ae=ie.scrollWidth>ie.clientWidth+1,fe=ie.scrollHeight>ie.clientHeight+1,ce=ie.nativeBarWidth;if(fe){this.vert.style.display="block",this.vert.style.bottom=ae?ce+"px":"0";var ve=ie.viewHeight-(ae?ce:0);this.vert.firstChild.style.height=Math.max(0,ie.scrollHeight-ie.clientHeight+ve)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(ae){this.horiz.style.display="block",this.horiz.style.right=fe?ce+"px":"0",this.horiz.style.left=ie.barLeft+"px";var Le=ie.viewWidth-ie.barLeft-(fe?ce:0);this.horiz.firstChild.style.width=Math.max(0,ie.scrollWidth-ie.clientWidth+Le)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&ie.clientHeight>0&&(ce==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:fe?ce:0,bottom:ae?ce:0}},Yo.prototype.setScrollLeft=function(ie){this.horiz.scrollLeft!=ie&&(this.horiz.scrollLeft=ie),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Yo.prototype.setScrollTop=function(ie){this.vert.scrollTop!=ie&&(this.vert.scrollTop=ie),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Yo.prototype.zeroWidthHack=function(){var ie=ue&&!_e?"12px":"18px";this.horiz.style.height=this.vert.style.width=ie,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new He,this.disableVert=new He},Yo.prototype.enableZeroWidthBar=function(ie,ae,fe){ie.style.pointerEvents="auto";function ce(){var ve=ie.getBoundingClientRect(),Le=fe=="vert"?document.elementFromPoint(ve.right-1,(ve.top+ve.bottom)/2):document.elementFromPoint((ve.right+ve.left)/2,ve.bottom-1);Le!=ie?ie.style.pointerEvents="none":ae.set(1e3,ce)}ae.set(1e3,ce)},Yo.prototype.clear=function(){var ie=this.horiz.parentNode;ie.removeChild(this.horiz),ie.removeChild(this.vert)};var Ca=function(){};Ca.prototype.update=function(){return{bottom:0,right:0}},Ca.prototype.setScrollLeft=function(){},Ca.prototype.setScrollTop=function(){},Ca.prototype.clear=function(){};function es(ie,ae){ae||(ae=Bo(ie));var fe=ie.display.barWidth,ce=ie.display.barHeight;Xa(ie,ae);for(var ve=0;ve<4&&fe!=ie.display.barWidth||ce!=ie.display.barHeight;ve++)fe!=ie.display.barWidth&&ie.options.lineWrapping&&_r(ie),Xa(ie,Bo(ie)),fe=ie.display.barWidth,ce=ie.display.barHeight}function Xa(ie,ae){var fe=ie.display,ce=fe.scrollbars.update(ae);fe.sizer.style.paddingRight=(fe.barWidth=ce.right)+"px",fe.sizer.style.paddingBottom=(fe.barHeight=ce.bottom)+"px",fe.heightForcer.style.borderBottom=ce.bottom+"px solid transparent",ce.right&&ce.bottom?(fe.scrollbarFiller.style.display="block",fe.scrollbarFiller.style.height=ce.bottom+"px",fe.scrollbarFiller.style.width=ce.right+"px"):fe.scrollbarFiller.style.display="",ce.bottom&&ie.options.coverGutterNextToScrollbar&&ie.options.fixedGutter?(fe.gutterFiller.style.display="block",fe.gutterFiller.style.height=ce.bottom+"px",fe.gutterFiller.style.width=ae.gutterWidth+"px"):fe.gutterFiller.style.display=""}var kl={native:Yo,null:Ca};function ml(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&Oe(ie.display.wrapper,ie.display.scrollbars.addClass)),ie.display.scrollbars=new kl[ie.options.scrollbarStyle](function(ae){ie.display.wrapper.insertBefore(ae,ie.display.scrollbarFiller),_n(ae,"mousedown",function(){ie.state.focused&&setTimeout(function(){return ie.display.input.focus()},0)}),ae.setAttribute("cm-not-content","true")},function(ae,fe){fe=="horizontal"?pl(ie,ae):gl(ie,ae)},ie),ie.display.scrollbars.addClass&&bt(ie.display.wrapper,ie.display.scrollbars.addClass)}var jo=0;function yo(ie){ie.curOp={cm:ie,viewChanged:!1,startHeight:ie.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++jo},wi(ie.curOp)}function _a(ie){var ae=ie.curOp;ae&&Ar(ae,function(fe){for(var ce=0;ce<fe.ops.length;ce++)fe.ops[ce].cm.curOp=null;iu(fe)})}function iu(ie){for(var ae=ie.ops,fe=0;fe<ae.length;fe++)Dd(ae[fe]);for(var ce=0;ce<ae.length;ce++)dg(ae[ce]);for(var ve=0;ve<ae.length;ve++)tf(ae[ve]);for(var Le=0;Le<ae.length;Le++)Za(ae[Le]);for(var Ge=0;Ge<ae.length;Ge++)Xu(ae[Ge])}function Dd(ie){var ae=ie.cm,fe=ae.display;Hp(ae),ie.updateMaxLine&&qt(ae),ie.mustUpdate=ie.viewChanged||ie.forceUpdate||ie.scrollTop!=null||ie.scrollToPos&&(ie.scrollToPos.from.line<fe.viewFrom||ie.scrollToPos.to.line>=fe.viewTo)||fe.maxLineChanged&&ae.options.lineWrapping,ie.update=ie.mustUpdate&&new Yh(ae,ie.mustUpdate&&{top:ie.scrollTop,ensure:ie.scrollToPos},ie.forceUpdate)}function dg(ie){ie.updatedDisplay=ie.mustUpdate&&nf(ie.cm,ie.update)}function tf(ie){var ae=ie.cm,fe=ae.display;ie.updatedDisplay&&_r(ae),ie.barMeasure=Bo(ae),fe.maxLineChanged&&!ae.options.lineWrapping&&(ie.adjustWidthTo=Fo(ae,fe.maxLine,fe.maxLine.text.length).left+3,ae.display.sizerWidth=ie.adjustWidthTo,ie.barMeasure.scrollWidth=Math.max(fe.scroller.clientWidth,fe.sizer.offsetLeft+ie.adjustWidthTo+br(ae)+ae.display.barWidth),ie.maxScrollLeft=Math.max(0,fe.sizer.offsetLeft+ie.adjustWidthTo-co(ae))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=fe.input.prepareSelection())}function Za(ie){var ae=ie.cm;ie.adjustWidthTo!=null&&(ae.display.sizer.style.minWidth=ie.adjustWidthTo+"px",ie.maxScrollLeft<ae.doc.scrollLeft&&pl(ae,Math.min(ae.display.scroller.scrollLeft,ie.maxScrollLeft),!0),ae.display.maxLineChanged=!1);var fe=ie.focus&&ie.focus==gt();ie.preparedSelection&&ae.display.input.showSelection(ie.preparedSelection,fe),(ie.updatedDisplay||ie.startHeight!=ae.doc.height)&&es(ae,ie.barMeasure),ie.updatedDisplay&&ph(ae,ie.barMeasure),ie.selectionChanged&&qo(ae),ae.state.focused&&ie.updateInput&&ae.display.input.reset(ie.typing),fe&&ua(ie.cm)}function Xu(ie){var ae=ie.cm,fe=ae.display,ce=ae.doc;if(ie.updatedDisplay&&ya(ae,ie.update),fe.wheelStartX!=null&&(ie.scrollTop!=null||ie.scrollLeft!=null||ie.scrollToPos)&&(fe.wheelStartX=fe.wheelStartY=null),ie.scrollTop!=null&&Du(ae,ie.scrollTop,ie.forceScroll),ie.scrollLeft!=null&&pl(ae,ie.scrollLeft,!0,!0),ie.scrollToPos){var ve=Qs(ae,qn(ce,ie.scrollToPos.from),qn(ce,ie.scrollToPos.to),ie.scrollToPos.margin);Gl(ae,ve)}var Le=ie.maybeHiddenMarkers,Ge=ie.maybeUnhiddenMarkers;if(Le)for(var et=0;et<Le.length;++et)Le[et].lines.length||Yn(Le[et],"hide");if(Ge)for(var qe=0;qe<Ge.length;++qe)Ge[qe].lines.length&&Yn(Ge[qe],"unhide");fe.wrapper.offsetHeight&&(ce.scrollTop=ae.display.scroller.scrollTop),ie.changeObjs&&Yn(ae,"changes",ae,ie.changeObjs),ie.update&&ie.update.finish()}function $r(ie,ae){if(ie.curOp)return ae();yo(ie);try{return ae()}finally{_a(ie)}}function lo(ie,ae){return function(){if(ie.curOp)return ae.apply(ie,arguments);yo(ie);try{return ae.apply(ie,arguments)}finally{_a(ie)}}}function Mo(ie){return function(){if(this.curOp)return ie.apply(this,arguments);yo(this);try{return ie.apply(this,arguments)}finally{_a(this)}}}function na(ie){return function(){var ae=this.cm;if(!ae||ae.curOp)return ie.apply(this,arguments);yo(ae);try{return ie.apply(this,arguments)}finally{_a(ae)}}}function ns(ie,ae){ie.doc.highlightFrontier<ie.display.viewTo&&ie.state.highlight.set(ae,Nt(hs,ie))}function hs(ie){var ae=ie.doc;if(!(ae.highlightFrontier>=ie.display.viewTo)){var fe=+new Date+ie.options.workTime,ce=wo(ie,ae.highlightFrontier),ve=[];ae.iter(ce.line,Math.min(ae.first+ae.size,ie.display.viewTo+500),function(Le){if(ce.line>=ie.display.viewFrom){var Ge=Le.styles,et=Le.text.length>ie.options.maxHighlightLength?zi(ae.mode,ce.state):null,qe=Er(ie,Le,ce,!0);et&&(ce.state=et),Le.styles=qe.styles;var mt=Le.styleClasses,rn=qe.classes;rn?Le.styleClasses=rn:mt&&(Le.styleClasses=null);for(var Mt=!Ge||Ge.length!=Le.styles.length||mt!=rn&&(!mt||!rn||mt.bgClass!=rn.bgClass||mt.textClass!=rn.textClass),Nn=0;!Mt&&Nn<Ge.length;++Nn)Mt=Ge[Nn]!=Le.styles[Nn];Mt&&ve.push(ce.line),Le.stateAfter=ce.save(),ce.nextLine()}else Le.text.length<=ie.options.maxHighlightLength&&Kt(ie,Le.text,ce),Le.stateAfter=ce.line%5==0?ce.save():null,ce.nextLine();if(+new Date>fe)return ns(ie,ie.options.workDelay),!0}),ae.highlightFrontier=ce.line,ae.modeFrontier=Math.max(ae.modeFrontier,ce.line),ve.length&&$r(ie,function(){for(var Le=0;Le<ve.length;Le++)vo(ie,ve[Le],"text")})}}var Yh=function(ie,ae,fe){var ce=ie.display;this.viewport=ae,this.visible=Ao(ce,ie.doc,ae),this.editorIsHidden=!ce.wrapper.offsetWidth,this.wrapperHeight=ce.wrapper.clientHeight,this.wrapperWidth=ce.wrapper.clientWidth,this.oldDisplayWidth=co(ie),this.force=fe,this.dims=Na(ie),this.events=[]};Yh.prototype.signal=function(ie,ae){ji(ie,ae)&&this.events.push(arguments)},Yh.prototype.finish=function(){for(var ie=0;ie<this.events.length;ie++)Yn.apply(null,this.events[ie])};function Hp(ie){var ae=ie.display;!ae.scrollbarsClipped&&ae.scroller.offsetWidth&&(ae.nativeBarWidth=ae.scroller.offsetWidth-ae.scroller.clientWidth,ae.heightForcer.style.height=br(ie)+"px",ae.sizer.style.marginBottom=-ae.nativeBarWidth+"px",ae.sizer.style.borderRightWidth=br(ie)+"px",ae.scrollbarsClipped=!0)}function Gp(ie){if(ie.hasFocus())return null;var ae=gt();if(!ae||!xt(ie.display.lineDiv,ae))return null;var fe={activeElt:ae};if(window.getSelection){var ce=window.getSelection();ce.anchorNode&&ce.extend&&xt(ie.display.lineDiv,ce.anchorNode)&&(fe.anchorNode=ce.anchorNode,fe.anchorOffset=ce.anchorOffset,fe.focusNode=ce.focusNode,fe.focusOffset=ce.focusOffset)}return fe}function ol(ie){if(!(!ie||!ie.activeElt||ie.activeElt==gt())&&(ie.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(ie.activeElt.nodeName)&&ie.anchorNode&&xt(document.body,ie.anchorNode)&&xt(document.body,ie.focusNode))){var ae=window.getSelection(),fe=document.createRange();fe.setEnd(ie.anchorNode,ie.anchorOffset),fe.collapse(!1),ae.removeAllRanges(),ae.addRange(fe),ae.extend(ie.focusNode,ie.focusOffset)}}function nf(ie,ae){var fe=ie.display,ce=ie.doc;if(ae.editorIsHidden)return ga(ie),!1;if(!ae.force&&ae.visible.from>=fe.viewFrom&&ae.visible.to<=fe.viewTo&&(fe.updateLineNumbers==null||fe.updateLineNumbers>=fe.viewTo)&&fe.renderedView==fe.view&&us(ie)==0)return!1;ss(ie)&&(ga(ie),ae.dims=Na(ie));var ve=ce.first+ce.size,Le=Math.max(ae.visible.from-ie.options.viewportMargin,ce.first),Ge=Math.min(ve,ae.visible.to+ie.options.viewportMargin);fe.viewFrom<Le&&Le-fe.viewFrom<20&&(Le=Math.max(ce.first,fe.viewFrom)),fe.viewTo>Ge&&fe.viewTo-Ge<20&&(Ge=Math.min(ve,fe.viewTo)),An&&(Le=ke(ie.doc,Le),Ge=ct(ie.doc,Ge));var et=Le!=fe.viewFrom||Ge!=fe.viewTo||fe.lastWrapHeight!=ae.wrapperHeight||fe.lastWrapWidth!=ae.wrapperWidth;oa(ie,Le,Ge),fe.viewOffset=Ct(In(ie.doc,fe.viewFrom)),ie.display.mover.style.top=fe.viewOffset+"px";var qe=us(ie);if(!et&&qe==0&&!ae.force&&fe.renderedView==fe.view&&(fe.updateLineNumbers==null||fe.updateLineNumbers>=fe.viewTo))return!1;var mt=Gp(ie);return qe>4&&(fe.lineDiv.style.display="none"),cg(ie,fe.updateLineNumbers,ae.dims),qe>4&&(fe.lineDiv.style.display=""),fe.renderedView=fe.view,ol(mt),We(fe.cursorDiv),We(fe.selectionDiv),fe.gutters.style.height=fe.sizer.style.minHeight=0,et&&(fe.lastWrapHeight=ae.wrapperHeight,fe.lastWrapWidth=ae.wrapperWidth,ns(ie,400)),fe.updateLineNumbers=null,!0}function ya(ie,ae){for(var fe=ae.viewport,ce=!0;;ce=!1){if(!ce||!ie.options.lineWrapping||ae.oldDisplayWidth==co(ie)){if(fe&&fe.top!=null&&(fe={top:Math.min(ie.doc.height+Ui(ie.display)-mo(ie),fe.top)}),ae.visible=Ao(ie.display,ie.doc,fe),ae.visible.from>=ie.display.viewFrom&&ae.visible.to<=ie.display.viewTo)break}else ce&&(ae.visible=Ao(ie.display,ie.doc,fe));if(!nf(ie,ae))break;_r(ie);var ve=Bo(ie);Ta(ie),es(ie,ve),ph(ie,ve),ae.force=!1}ae.signal(ie,"update",ie),(ie.display.viewFrom!=ie.display.reportedViewFrom||ie.display.viewTo!=ie.display.reportedViewTo)&&(ae.signal(ie,"viewportChange",ie,ie.display.viewFrom,ie.display.viewTo),ie.display.reportedViewFrom=ie.display.viewFrom,ie.display.reportedViewTo=ie.display.viewTo)}function fh(ie,ae){var fe=new Yh(ie,ae);if(nf(ie,fe)){_r(ie),ya(ie,fe);var ce=Bo(ie);Ta(ie),es(ie,ce),ph(ie,ce),fe.finish()}}function cg(ie,ae,fe){var ce=ie.display,ve=ie.options.lineNumbers,Le=ce.lineDiv,Ge=Le.firstChild;function et(Bi){var Zi=Bi.nextSibling;return Ue&&ue&&ie.display.currentWheelTarget==Bi?Bi.style.display="none":Bi.parentNode.removeChild(Bi),Zi}for(var qe=ce.view,mt=ce.viewFrom,rn=0;rn<qe.length;rn++){var Mt=qe[rn];if(!Mt.hidden)if(!Mt.node||Mt.node.parentNode!=Le){var Nn=Wi(ie,Mt,mt,fe);Le.insertBefore(Nn,Ge)}else{for(;Ge!=Mt.node;)Ge=et(Ge);var xn=ve&&ae!=null&&ae<=mt&&Mt.lineNumber;Mt.changes&&(jt(Mt.changes,"gutter")>-1&&(xn=!1),rr(ie,Mt,mt,fe)),xn&&(We(Mt.lineNumber),Mt.lineNumber.appendChild(document.createTextNode(ti(ie.options,mt)))),Ge=Mt.node.nextSibling}mt+=Mt.size}for(;Ge;)Ge=et(Ge)}function gh(ie){var ae=ie.gutters.offsetWidth;ie.sizer.style.marginLeft=ae+"px"}function ph(ie,ae){ie.display.sizer.style.minHeight=ae.docHeight+"px",ie.display.heightForcer.style.top=ae.docHeight+"px",ie.display.gutters.style.height=ae.docHeight+ie.display.barHeight+br(ie)+"px"}function rf(ie){var ae=ie.display,fe=ae.view;if(!(!ae.alignWidgets&&(!ae.gutters.firstChild||!ie.options.fixedGutter))){for(var ce=Zs(ae)-ae.scroller.scrollLeft+ie.doc.scrollLeft,ve=ae.gutters.offsetWidth,Le=ce+"px",Ge=0;Ge<fe.length;Ge++)if(!fe[Ge].hidden){ie.options.fixedGutter&&(fe[Ge].gutter&&(fe[Ge].gutter.style.left=Le),fe[Ge].gutterBackground&&(fe[Ge].gutterBackground.style.left=Le));var et=fe[Ge].alignable;if(et)for(var qe=0;qe<et.length;qe++)et[qe].style.left=Le}ie.options.fixedGutter&&(ae.gutters.style.left=ce+ve+"px")}}function ss(ie){if(!ie.options.lineNumbers)return!1;var ae=ie.doc,fe=ti(ie.options,ae.first+ae.size-1),ce=ie.display;if(fe.length!=ce.lineNumChars){var ve=ce.measure.appendChild(Ie("div",[Ie("div",fe)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Le=ve.firstChild.offsetWidth,Ge=ve.offsetWidth-Le;return ce.lineGutter.style.width="",ce.lineNumInnerWidth=Math.max(Le,ce.lineGutter.offsetWidth-Ge)+1,ce.lineNumWidth=ce.lineNumInnerWidth+Ge,ce.lineNumChars=ce.lineNumInnerWidth?fe.length:-1,ce.lineGutter.style.width=ce.lineNumWidth+"px",gh(ie.display),!0}return!1}function xs(ie,ae){for(var fe=[],ce=!1,ve=0;ve<ie.length;ve++){var Le=ie[ve],Ge=null;if(typeof Le!="string"&&(Ge=Le.style,Le=Le.className),Le=="CodeMirror-linenumbers")if(ae)ce=!0;else continue;fe.push({className:Le,style:Ge})}return ae&&!ce&&fe.push({className:"CodeMirror-linenumbers",style:null}),fe}function Kh(ie){var ae=ie.gutters,fe=ie.gutterSpecs;We(ae),ie.lineGutter=null;for(var ce=0;ce<fe.length;++ce){var ve=fe[ce],Le=ve.className,Ge=ve.style,et=ae.appendChild(Ie("div",null,"CodeMirror-gutter "+Le));Ge&&(et.style.cssText=Ge),Le=="CodeMirror-linenumbers"&&(ie.lineGutter=et,et.style.width=(ie.lineNumWidth||1)+"px")}ae.style.display=fe.length?"":"none",gh(ie)}function Bl(ie){Kh(ie.display),sa(ie),rf(ie)}function mh(ie,ae,fe,ce){var ve=this;this.input=fe,ve.scrollbarFiller=Ie("div",null,"CodeMirror-scrollbar-filler"),ve.scrollbarFiller.setAttribute("cm-not-content","true"),ve.gutterFiller=Ie("div",null,"CodeMirror-gutter-filler"),ve.gutterFiller.setAttribute("cm-not-content","true"),ve.lineDiv=Qe("div",null,"CodeMirror-code"),ve.selectionDiv=Ie("div",null,null,"position: relative; z-index: 1"),ve.cursorDiv=Ie("div",null,"CodeMirror-cursors"),ve.measure=Ie("div",null,"CodeMirror-measure"),ve.lineMeasure=Ie("div",null,"CodeMirror-measure"),ve.lineSpace=Qe("div",[ve.measure,ve.lineMeasure,ve.selectionDiv,ve.cursorDiv,ve.lineDiv],null,"position: relative; outline: none");var Le=Qe("div",[ve.lineSpace],"CodeMirror-lines");ve.mover=Ie("div",[Le],null,"position: relative"),ve.sizer=Ie("div",[ve.mover],"CodeMirror-sizer"),ve.sizerWidth=null,ve.heightForcer=Ie("div",null,null,"position: absolute; height: "+fn+"px; width: 1px;"),ve.gutters=Ie("div",null,"CodeMirror-gutters"),ve.lineGutter=null,ve.scroller=Ie("div",[ve.sizer,ve.heightForcer,ve.gutters],"CodeMirror-scroll"),ve.scroller.setAttribute("tabIndex","-1"),ve.wrapper=Ie("div",[ve.scrollbarFiller,ve.gutterFiller,ve.scroller],"CodeMirror"),it&&ze<8&&(ve.gutters.style.zIndex=-1,ve.scroller.style.paddingRight=0),!Ue&&!(me&&ee)&&(ve.scroller.draggable=!0),ie&&(ie.appendChild?ie.appendChild(ve.wrapper):ie(ve.wrapper)),ve.viewFrom=ve.viewTo=ae.first,ve.reportedViewFrom=ve.reportedViewTo=ae.first,ve.view=[],ve.renderedView=null,ve.externalMeasured=null,ve.viewOffset=0,ve.lastWrapHeight=ve.lastWrapWidth=0,ve.updateLineNumbers=null,ve.nativeBarWidth=ve.barHeight=ve.barWidth=0,ve.scrollbarsClipped=!1,ve.lineNumWidth=ve.lineNumInnerWidth=ve.lineNumChars=null,ve.alignWidgets=!1,ve.cachedCharWidth=ve.cachedTextHeight=ve.cachedPaddingH=null,ve.maxLine=null,ve.maxLineLength=0,ve.maxLineChanged=!1,ve.wheelDX=ve.wheelDY=ve.wheelStartX=ve.wheelStartY=null,ve.shift=!1,ve.selForContextMenu=null,ve.activeTouch=null,ve.gutterSpecs=xs(ce.gutters,ce.lineNumbers),Kh(ve),fe.init(ve)}var vl=0,is=null;it?is=-.53:me?is=15:ot?is=-.7:Et&&(is=-1/3);function Su(ie){var ae=ie.wheelDeltaX,fe=ie.wheelDeltaY;return ae==null&&ie.detail&&ie.axis==ie.HORIZONTAL_AXIS&&(ae=ie.detail),fe==null&&ie.detail&&ie.axis==ie.VERTICAL_AXIS?fe=ie.detail:fe==null&&(fe=ie.wheelDelta),{x:ae,y:fe}}function Nl(ie){var ae=Su(ie);return ae.x*=is,ae.y*=is,ae}function Ps(ie,ae){var fe=Su(ae),ce=fe.x,ve=fe.y,Le=ie.display,Ge=Le.scroller,et=Ge.scrollWidth>Ge.clientWidth,qe=Ge.scrollHeight>Ge.clientHeight;if(ce&&et||ve&&qe){if(ve&&ue&&Ue){e:for(var mt=ae.target,rn=Le.view;mt!=Ge;mt=mt.parentNode)for(var Mt=0;Mt<rn.length;Mt++)if(rn[Mt].node==mt){ie.display.currentWheelTarget=mt;break e}}if(ce&&!me&&!Me&&is!=null){ve&&qe&&gl(ie,Math.max(0,Ge.scrollTop+ve*is)),pl(ie,Math.max(0,Ge.scrollLeft+ce*is)),(!ve||ve&&qe)&&lr(ae),Le.wheelStartX=null;return}if(ve&&is!=null){var Nn=ve*is,xn=ie.doc.scrollTop,Bi=xn+Le.wrapper.clientHeight;Nn<0?xn=Math.max(0,xn+Nn-50):Bi=Math.min(ie.doc.height,Bi+Nn+50),fh(ie,{top:xn,bottom:Bi})}vl<20&&(Le.wheelStartX==null?(Le.wheelStartX=Ge.scrollLeft,Le.wheelStartY=Ge.scrollTop,Le.wheelDX=ce,Le.wheelDY=ve,setTimeout(function(){if(Le.wheelStartX!=null){var Zi=Ge.scrollLeft-Le.wheelStartX,er=Ge.scrollTop-Le.wheelStartY,Cr=er&&Le.wheelDY&&er/Le.wheelDY||Zi&&Le.wheelDX&&Zi/Le.wheelDX;Le.wheelStartX=Le.wheelStartY=null,Cr&&(is=(is*vl+Cr)/(vl+1),++vl)}},200)):(Le.wheelDX+=ce,Le.wheelDY+=ve))}}var _l=function(ie,ae){this.ranges=ie,this.primIndex=ae};_l.prototype.primary=function(){return this.ranges[this.primIndex]},_l.prototype.equals=function(ie){if(ie==this)return!0;if(ie.primIndex!=this.primIndex||ie.ranges.length!=this.ranges.length)return!1;for(var ae=0;ae<this.ranges.length;ae++){var fe=this.ranges[ae],ce=ie.ranges[ae];if(!Ri(fe.anchor,ce.anchor)||!Ri(fe.head,ce.head))return!1}return!0},_l.prototype.deepCopy=function(){for(var ie=[],ae=0;ae<this.ranges.length;ae++)ie[ae]=new Sa(Yi(this.ranges[ae].anchor),Yi(this.ranges[ae].head));return new _l(ie,this.primIndex)},_l.prototype.somethingSelected=function(){for(var ie=0;ie<this.ranges.length;ie++)if(!this.ranges[ie].empty())return!0;return!1},_l.prototype.contains=function(ie,ae){ae||(ae=ie);for(var fe=0;fe<this.ranges.length;fe++){var ce=this.ranges[fe];if(si(ae,ce.from())>=0&&si(ie,ce.to())<=0)return fe}return-1};var Sa=function(ie,ae){this.anchor=ie,this.head=ae};Sa.prototype.from=function(){return Bn(this.anchor,this.head)},Sa.prototype.to=function(){return tr(this.anchor,this.head)},Sa.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ru(ie,ae,fe){var ce=ie&&ie.options.selectionsMayTouch,ve=ae[fe];ae.sort(function(Nn,xn){return si(Nn.from(),xn.from())}),fe=jt(ae,ve);for(var Le=1;Le<ae.length;Le++){var Ge=ae[Le],et=ae[Le-1],qe=si(et.to(),Ge.from());if(ce&&!Ge.empty()?qe>0:qe>=0){var mt=Bn(et.from(),Ge.from()),rn=tr(et.to(),Ge.to()),Mt=et.empty()?Ge.from()==Ge.head:et.from()==et.head;Le<=fe&&--fe,ae.splice(--Le,2,new Sa(Mt?rn:mt,Mt?mt:rn))}}return new _l(ae,fe)}function Qu(ie,ae){return new _l([new Sa(ie,ae||ie)],0)}function vh(ie){return ie.text?tn(ie.from.line+ie.text.length-1,zt(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function Uh(ie,ae){if(si(ie,ae.from)<0)return ie;if(si(ie,ae.to)<=0)return vh(ae);var fe=ie.line+ae.text.length-(ae.to.line-ae.from.line)-1,ce=ie.ch;return ie.line==ae.to.line&&(ce+=vh(ae).ch-ae.to.ch),tn(fe,ce)}function dc(ie,ae){for(var fe=[],ce=0;ce<ie.sel.ranges.length;ce++){var ve=ie.sel.ranges[ce];fe.push(new Sa(Uh(ve.anchor,ae),Uh(ve.head,ae)))}return ru(ie.cm,fe,ie.sel.primIndex)}function kd(ie,ae,fe){return ie.line==ae.line?tn(fe.line,ie.ch-ae.ch+fe.ch):tn(fe.line+(ie.line-ae.line),ie.ch)}function cc(ie,ae,fe){for(var ce=[],ve=tn(ie.first,0),Le=ve,Ge=0;Ge<ae.length;Ge++){var et=ae[Ge],qe=kd(et.from,ve,Le),mt=kd(vh(et),ve,Le);if(ve=et.to,Le=mt,fe=="around"){var rn=ie.sel.ranges[Ge],Mt=si(rn.head,rn.anchor)<0;ce[Ge]=new Sa(Mt?mt:qe,Mt?qe:mt)}else ce[Ge]=new Sa(qe,qe)}return new _l(ce,ie.sel.primIndex)}function Xo(ie){ie.doc.mode=ln(ie.options,ie.doc.modeOption),fc(ie)}function fc(ie){ie.doc.iter(function(ae){ae.stateAfter&&(ae.stateAfter=null),ae.styles&&(ae.styles=null)}),ie.doc.modeFrontier=ie.doc.highlightFrontier=ie.doc.first,ns(ie,100),ie.state.modeGen++,ie.curOp&&sa(ie)}function fg(ie,ae){return ae.from.ch==0&&ae.to.ch==0&&zt(ae.text)==""&&(!ie.cm||ie.cm.options.wholeLineUpdateBefore)}function of(ie,ae,fe,ce){function ve(Vr){return fe?fe[Vr]:null}function Le(Vr,Br,Qr){Tn(Vr,Br,Qr,ce),ri(Vr,"change",Vr,ae)}function Ge(Vr,Br){for(var Qr=[],Lo=Vr;Lo<Br;++Lo)Qr.push(new sn(mt[Lo],ve(Lo),ce));return Qr}var et=ae.from,qe=ae.to,mt=ae.text,rn=In(ie,et.line),Mt=In(ie,qe.line),Nn=zt(mt),xn=ve(mt.length-1),Bi=qe.line-et.line;if(ae.full)ie.insert(0,Ge(0,mt.length)),ie.remove(mt.length,ie.size-mt.length);else if(fg(ie,ae)){var Zi=Ge(0,mt.length-1);Le(Mt,Mt.text,xn),Bi&&ie.remove(et.line,Bi),Zi.length&&ie.insert(et.line,Zi)}else if(rn==Mt)if(mt.length==1)Le(rn,rn.text.slice(0,et.ch)+Nn+rn.text.slice(qe.ch),xn);else{var er=Ge(1,mt.length-1);er.push(new sn(Nn+rn.text.slice(qe.ch),xn,ce)),Le(rn,rn.text.slice(0,et.ch)+mt[0],ve(0)),ie.insert(et.line+1,er)}else if(mt.length==1)Le(rn,rn.text.slice(0,et.ch)+mt[0]+Mt.text.slice(qe.ch),ve(0)),ie.remove(et.line+1,Bi);else{Le(rn,rn.text.slice(0,et.ch)+mt[0],ve(0)),Le(Mt,Nn+Mt.text.slice(qe.ch),xn);var Cr=Ge(1,mt.length-1);Bi>1&&ie.remove(et.line+1,Bi-1),ie.insert(et.line+1,Cr)}ri(ie,"change",ie,ae)}function xu(ie,ae,fe){function ce(ve,Le,Ge){if(ve.linked)for(var et=0;et<ve.linked.length;++et){var qe=ve.linked[et];if(qe.doc!=Le){var mt=Ge&&qe.sharedHist;fe&&!mt||(ae(qe.doc,mt),ce(qe.doc,ve,mt))}}}ce(ie,null,!0)}function af(ie,ae){if(ae.cm)throw new Error("This document is already in use.");ie.doc=ae,ae.cm=ie,Wr(ie),Xo(ie),gc(ie),ie.options.lineWrapping||qt(ie),ie.options.mode=ae.modeOption,sa(ie)}function gc(ie){(ie.doc.direction=="rtl"?bt:Oe)(ie.display.lineDiv,"CodeMirror-rtl")}function tv(ie){$r(ie,function(){gc(ie),sa(ie)})}function Bd(ie){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=ie||1}function sf(ie,ae){var fe={from:Yi(ae.from),to:vh(ae),text:Vi(ie,ae.from,ae.to)};return yh(ie,fe,ae.from.line,ae.to.line+1),xu(ie,function(ce){return yh(ce,fe,ae.from.line,ae.to.line+1)},!0),fe}function Nd(ie){for(;ie.length;){var ae=zt(ie);if(ae.ranges)ie.pop();else break}}function pc(ie,ae){if(ae)return Nd(ie.done),zt(ie.done);if(ie.done.length&&!zt(ie.done).ranges)return zt(ie.done);if(ie.done.length>1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),zt(ie.done)}function mc(ie,ae,fe,ce){var ve=ie.history;ve.undone.length=0;var Le=+new Date,Ge,et;if((ve.lastOp==ce||ve.lastOrigin==ae.origin&&ae.origin&&(ae.origin.charAt(0)=="+"&&ve.lastModTime>Le-(ie.cm?ie.cm.options.historyEventDelay:500)||ae.origin.charAt(0)=="*"))&&(Ge=pc(ve,ve.lastOp==ce)))et=zt(Ge.changes),si(ae.from,ae.to)==0&&si(ae.from,et.to)==0?et.to=vh(ae):Ge.changes.push(sf(ie,ae));else{var qe=zt(ve.done);for((!qe||!qe.ranges)&&Td(ie.sel,ve.done),Ge={changes:[sf(ie,ae)],generation:ve.generation},ve.done.push(Ge);ve.done.length>ve.undoDepth;)ve.done.shift(),ve.done[0].ranges||ve.done.shift()}ve.done.push(fe),ve.generation=++ve.maxGeneration,ve.lastModTime=ve.lastSelTime=Le,ve.lastOp=ve.lastSelOp=ce,ve.lastOrigin=ve.lastSelOrigin=ae.origin,et||Yn(ie,"historyAdded")}function gg(ie,ae,fe,ce){var ve=ae.charAt(0);return ve=="*"||ve=="+"&&fe.ranges.length==ce.ranges.length&&fe.somethingSelected()==ce.somethingSelected()&&new Date-ie.history.lastSelTime<=(ie.cm?ie.cm.options.historyEventDelay:500)}function vc(ie,ae,fe,ce){var ve=ie.history,Le=ce&&ce.origin;fe==ve.lastSelOp||Le&&ve.lastSelOrigin==Le&&(ve.lastModTime==ve.lastSelTime&&ve.lastOrigin==Le||gg(ie,Le,zt(ve.done),ae))?ve.done[ve.done.length-1]=ae:Td(ae,ve.done),ve.lastSelTime=+new Date,ve.lastSelOrigin=Le,ve.lastSelOp=fe,ce&&ce.clearRedo!==!1&&Nd(ve.undone)}function Td(ie,ae){var fe=zt(ae);fe&&fe.ranges&&fe.equals(ie)||ae.push(ie)}function yh(ie,ae,fe,ce){var ve=ae["spans_"+ie.id],Le=0;ie.iter(Math.max(ie.first,fe),Math.min(ie.first+ie.size,ce),function(Ge){Ge.markedSpans&&((ve||(ve=ae["spans_"+ie.id]={}))[Le]=Ge.markedSpans),++Le})}function Js(ie){if(!ie)return null;for(var ae,fe=0;fe<ie.length;++fe)ie[fe].marker.explicitlyCleared?ae||(ae=ie.slice(0,fe)):ae&&ae.push(ie[fe]);return ae?ae.length?ae:null:ie}function ku(ie,ae){var fe=ae["spans_"+ie.id];if(!fe)return null;for(var ce=[],ve=0;ve<ae.text.length;++ve)ce.push(Js(fe[ve]));return ce}function lf(ie,ae){var fe=ku(ie,ae),ce=No(ie,ae);if(!fe)return ce;if(!ce)return fe;for(var ve=0;ve<fe.length;++ve){var Le=fe[ve],Ge=ce[ve];if(Le&&Ge)e:for(var et=0;et<Ge.length;++et){for(var qe=Ge[et],mt=0;mt<Le.length;++mt)if(Le[mt].marker==qe.marker)continue e;Le.push(qe)}else Ge&&(fe[ve]=Ge)}return fe}function Ju(ie,ae,fe){for(var ce=[],ve=0;ve<ie.length;++ve){var Le=ie[ve];if(Le.ranges){ce.push(fe?_l.prototype.deepCopy.call(Le):Le);continue}var Ge=Le.changes,et=[];ce.push({changes:et});for(var qe=0;qe<Ge.length;++qe){var mt=Ge[qe],rn=void 0;if(et.push({from:mt.from,to:mt.to,text:mt.text}),ae)for(var Mt in mt)(rn=Mt.match(/^spans_(\d+)$/))&&jt(ae,Number(rn[1]))>-1&&(zt(et)[Mt]=mt[Mt],delete mt[Mt])}}return ce}function uf(ie,ae,fe,ce){if(ce){var ve=ie.anchor;if(fe){var Le=si(ae,ve)<0;Le!=si(fe,ve)<0?(ve=ae,ae=fe):Le!=si(ae,fe)<0&&(ae=fe)}return new Sa(ve,ae)}else return new Sa(fe||ae,ae)}function hf(ie,ae,fe,ce,ve){ve==null&&(ve=ie.cm&&(ie.cm.display.shift||ie.extend)),Gs(ie,new _l([uf(ie.sel.primary(),ae,fe,ve)],0),ce)}function Vp(ie,ae,fe){for(var ce=[],ve=ie.cm&&(ie.cm.display.shift||ie.extend),Le=0;Le<ie.sel.ranges.length;Le++)ce[Le]=uf(ie.sel.ranges[Le],ae[Le],null,ve);var Ge=ru(ie.cm,ce,ie.sel.primIndex);Gs(ie,Ge,fe)}function Sh(ie,ae,fe,ce){var ve=ie.sel.ranges.slice(0);ve[ae]=fe,Gs(ie,ru(ie.cm,ve,ie.sel.primIndex),ce)}function Xh(ie,ae,fe,ce){Gs(ie,Qu(ae,fe),ce)}function _p(ie,ae,fe){var ce={ranges:ae.ranges,update:function(ve){this.ranges=[];for(var Le=0;Le<ve.length;Le++)this.ranges[Le]=new Sa(qn(ie,ve[Le].anchor),qn(ie,ve[Le].head))},origin:fe&&fe.origin};return Yn(ie,"beforeSelectionChange",ie,ce),ie.cm&&Yn(ie.cm,"beforeSelectionChange",ie.cm,ce),ce.ranges!=ae.ranges?ru(ie.cm,ce.ranges,ce.ranges.length-1):ae}function df(ie,ae,fe){var ce=ie.history.done,ve=zt(ce);ve&&ve.ranges?(ce[ce.length-1]=ae,Qh(ie,ae,fe)):Gs(ie,ae,fe)}function Gs(ie,ae,fe){Qh(ie,ae,fe),vc(ie,ie.sel,ie.cm?ie.cm.curOp.id:NaN,fe)}function Qh(ie,ae,fe){(ji(ie,"beforeSelectionChange")||ie.cm&&ji(ie.cm,"beforeSelectionChange"))&&(ae=_p(ie,ae,fe));var ce=fe&&fe.bias||(si(ae.primary().head,ie.sel.primary().head)<0?-1:1);pg(ie,Sc(ie,ae,ce,!0)),!(fe&&fe.scroll===!1)&&ie.cm&&Ws(ie.cm)}function pg(ie,ae){ae.equals(ie.sel)||(ie.sel=ae,ie.cm&&(ie.cm.curOp.updateInput=1,ie.cm.curOp.selectionChanged=!0,pi(ie.cm)),ri(ie,"cursorActivity",ie))}function yc(ie){pg(ie,Sc(ie,ie.sel,null,!1))}function Sc(ie,ae,fe,ce){for(var ve,Le=0;Le<ae.ranges.length;Le++){var Ge=ae.ranges[Le],et=ae.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[Le],qe=xc(ie,Ge.anchor,et&&et.anchor,fe,ce),mt=xc(ie,Ge.head,et&&et.head,fe,ce);(ve||qe!=Ge.anchor||mt!=Ge.head)&&(ve||(ve=ae.ranges.slice(0,Le)),ve[Le]=new Sa(qe,mt))}return ve?ru(ie.cm,ve,ae.primIndex):ae}function qu(ie,ae,fe,ce,ve){var Le=In(ie,ae.line);if(Le.markedSpans)for(var Ge=0;Ge<Le.markedSpans.length;++Ge){var et=Le.markedSpans[Ge],qe=et.marker,mt="selectLeft"in qe?!qe.selectLeft:qe.inclusiveLeft,rn="selectRight"in qe?!qe.selectRight:qe.inclusiveRight;if((et.from==null||(mt?et.from<=ae.ch:et.from<ae.ch))&&(et.to==null||(rn?et.to>=ae.ch:et.to>ae.ch))){if(ve&&(Yn(qe,"beforeCursorEnter"),qe.explicitlyCleared))if(Le.markedSpans){--Ge;continue}else break;if(!qe.atomic)continue;if(fe){var Mt=qe.find(ce<0?1:-1),Nn=void 0;if((ce<0?rn:mt)&&(Mt=mg(ie,Mt,-ce,Mt&&Mt.line==ae.line?Le:null)),Mt&&Mt.line==ae.line&&(Nn=si(Mt,fe))&&(ce<0?Nn<0:Nn>0))return qu(ie,Mt,ae,ce,ve)}var xn=qe.find(ce<0?-1:1);return(ce<0?mt:rn)&&(xn=mg(ie,xn,ce,xn.line==ae.line?Le:null)),xn?qu(ie,xn,ae,ce,ve):null}}return ae}function xc(ie,ae,fe,ce,ve){var Le=ce||1,Ge=qu(ie,ae,fe,Le,ve)||!ve&&qu(ie,ae,fe,Le,!0)||qu(ie,ae,fe,-Le,ve)||!ve&&qu(ie,ae,fe,-Le,!0);return Ge||(ie.cantEdit=!0,tn(ie.first,0))}function mg(ie,ae,fe,ce){return fe<0&&ae.ch==0?ae.line>ie.first?qn(ie,tn(ae.line-1)):null:fe>0&&ae.ch==(ce||In(ie,ae.line)).text.length?ae.line<ie.first+ie.size-1?tn(ae.line+1,0):null:new tn(ae.line,ae.ch+fe)}function rs(ie){ie.setSelection(tn(ie.firstLine(),0),tn(ie.lastLine()),Ft)}function Pc(ie,ae,fe){var ce={canceled:!1,from:ae.from,to:ae.to,text:ae.text,origin:ae.origin,cancel:function(){return ce.canceled=!0}};return fe&&(ce.update=function(ve,Le,Ge,et){ve&&(ce.from=qn(ie,ve)),Le&&(ce.to=qn(ie,Le)),Ge&&(ce.text=Ge),et!==void 0&&(ce.origin=et)}),Yn(ie,"beforeChange",ie,ce),ie.cm&&Yn(ie.cm,"beforeChange",ie.cm,ce),ce.canceled?(ie.cm&&(ie.cm.curOp.updateInput=2),null):{from:ce.from,to:ce.to,text:ce.text,origin:ce.origin}}function xh(ie,ae,fe){if(ie.cm){if(!ie.cm.curOp)return lo(ie.cm,xh)(ie,ae,fe);if(ie.cm.state.suppressEdits)return}if(!((ji(ie,"beforeChange")||ie.cm&&ji(ie.cm,"beforeChange"))&&(ae=Pc(ie,ae,!0),!ae))){var ce=oo&&!fe&&mn(ie,ae.from,ae.to);if(ce)for(var ve=ce.length-1;ve>=0;--ve)Jh(ie,{from:ce[ve].from,to:ce[ve].to,text:ve?[""]:ae.text,origin:ae.origin});else Jh(ie,ae)}}function Jh(ie,ae){if(!(ae.text.length==1&&ae.text[0]==""&&si(ae.from,ae.to)==0)){var fe=dc(ie,ae);mc(ie,ae,fe,ie.cm?ie.cm.curOp.id:NaN),Od(ie,ae,fe,No(ie,ae));var ce=[];xu(ie,function(ve,Le){!Le&&jt(ce,ve.history)==-1&&(yg(ve.history,ae),ce.push(ve.history)),Od(ve,ae,null,No(ve,ae))})}}function wc(ie,ae,fe){var ce=ie.cm&&ie.cm.state.suppressEdits;if(!(ce&&!fe)){for(var ve=ie.history,Le,Ge=ie.sel,et=ae=="undo"?ve.done:ve.undone,qe=ae=="undo"?ve.undone:ve.done,mt=0;mt<et.length&&(Le=et[mt],!(fe?Le.ranges&&!Le.equals(ie.sel):!Le.ranges));mt++);if(mt!=et.length){for(ve.lastOrigin=ve.lastSelOrigin=null;;)if(Le=et.pop(),Le.ranges){if(Td(Le,qe),fe&&!Le.equals(ie.sel)){Gs(ie,Le,{clearRedo:!1});return}Ge=Le}else if(ce){et.push(Le);return}else break;var rn=[];Td(Ge,qe),qe.push({changes:rn,generation:ve.generation}),ve.generation=Le.generation||++ve.maxGeneration;for(var Mt=ji(ie,"beforeChange")||ie.cm&&ji(ie.cm,"beforeChange"),Nn=function(Zi){var er=Le.changes[Zi];if(er.origin=ae,Mt&&!Pc(ie,er,!1))return et.length=0,{};rn.push(sf(ie,er));var Cr=Zi?dc(ie,er):zt(et);Od(ie,er,Cr,lf(ie,er)),!Zi&&ie.cm&&ie.cm.scrollIntoView({from:er.from,to:vh(er)});var Vr=[];xu(ie,function(Br,Qr){!Qr&&jt(Vr,Br.history)==-1&&(yg(Br.history,er),Vr.push(Br.history)),Od(Br,er,null,lf(Br,er))})},xn=Le.changes.length-1;xn>=0;--xn){var Bi=Nn(xn);if(Bi)return Bi.v}}}}function vg(ie,ae){if(ae!=0&&(ie.first+=ae,ie.sel=new _l(En(ie.sel.ranges,function(ve){return new Sa(tn(ve.anchor.line+ae,ve.anchor.ch),tn(ve.head.line+ae,ve.head.ch))}),ie.sel.primIndex),ie.cm)){sa(ie.cm,ie.first,ie.first-ae,ae);for(var fe=ie.cm.display,ce=fe.viewFrom;ce<fe.viewTo;ce++)vo(ie.cm,ce,"gutter")}}function Od(ie,ae,fe,ce){if(ie.cm&&!ie.cm.curOp)return lo(ie.cm,Od)(ie,ae,fe,ce);if(ae.to.line<ie.first){vg(ie,ae.text.length-1-(ae.to.line-ae.from.line));return}if(!(ae.from.line>ie.lastLine())){if(ae.from.line<ie.first){var ve=ae.text.length-1-(ie.first-ae.from.line);vg(ie,ve),ae={from:tn(ie.first,0),to:tn(ae.to.line+ve,ae.to.ch),text:[zt(ae.text)],origin:ae.origin}}var Le=ie.lastLine();ae.to.line>Le&&(ae={from:ae.from,to:tn(Le,In(ie,Le).text.length),text:[ae.text[0]],origin:ae.origin}),ae.removed=Vi(ie,ae.from,ae.to),fe||(fe=dc(ie,ae)),ie.cm?Yp(ie.cm,ae,ce):of(ie,ae,ce),Qh(ie,fe,Ft),ie.cantEdit&&xc(ie,tn(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function Yp(ie,ae,fe){var ce=ie.doc,ve=ie.display,Le=ae.from,Ge=ae.to,et=!1,qe=Le.line;ie.options.lineWrapping||(qe=lt(vn(In(ce,Le.line))),ce.iter(qe,Ge.line+1,function(xn){if(xn==ve.maxLine)return et=!0,!0})),ce.sel.contains(ae.from,ae.to)>-1&&pi(ie),of(ce,ae,fe,aa(ie)),ie.options.lineWrapping||(ce.iter(qe,Le.line+ae.text.length,function(xn){var Bi=Xt(xn);Bi>ve.maxLineLength&&(ve.maxLine=xn,ve.maxLineLength=Bi,ve.maxLineChanged=!0,et=!1)}),et&&(ie.curOp.updateMaxLine=!0)),Gr(ce,Le.line),ns(ie,400);var mt=ae.text.length-(Ge.line-Le.line)-1;ae.full?sa(ie):Le.line==Ge.line&&ae.text.length==1&&!fg(ie.doc,ae)?vo(ie,Le.line,"text"):sa(ie,Le.line,Ge.line+1,mt);var rn=ji(ie,"changes"),Mt=ji(ie,"change");if(Mt||rn){var Nn={from:Le,to:Ge,text:ae.text,removed:ae.removed,origin:ae.origin};Mt&&ri(ie,"change",ie,Nn),rn&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(Nn)}ie.display.selForContextMenu=null}function qh(ie,ae,fe,ce,ve){var Le;ce||(ce=fe),si(ce,fe)<0&&(Le=[ce,fe],fe=Le[0],ce=Le[1]),typeof ae=="string"&&(ae=ie.splitLines(ae)),xh(ie,{from:fe,to:ce,text:ae,origin:ve})}function Yl(ie,ae,fe,ce){fe<ie.line?ie.line+=ce:ae<ie.line&&(ie.line=ae,ie.ch=0)}function Kp(ie,ae,fe,ce){for(var ve=0;ve<ie.length;++ve){var Le=ie[ve],Ge=!0;if(Le.ranges){Le.copied||(Le=ie[ve]=Le.deepCopy(),Le.copied=!0);for(var et=0;et<Le.ranges.length;et++)Yl(Le.ranges[et].anchor,ae,fe,ce),Yl(Le.ranges[et].head,ae,fe,ce);continue}for(var qe=0;qe<Le.changes.length;++qe){var mt=Le.changes[qe];if(fe<mt.from.line)mt.from=tn(mt.from.line+ce,mt.from.ch),mt.to=tn(mt.to.line+ce,mt.to.ch);else if(ae<=mt.to.line){Ge=!1;break}}Ge||(ie.splice(0,ve+1),ve=0)}}function yg(ie,ae){var fe=ae.from.line,ce=ae.to.line,ve=ae.text.length-(ce-fe)-1;Kp(ie.done,fe,ce,ve),Kp(ie.undone,fe,ce,ve)}function $h(ie,ae,fe,ce){var ve=ae,Le=ae;return typeof ae=="number"?Le=In(ie,Ot(ie,ae)):ve=lt(ae),ve==null?null:(ce(Le,ve)&&ie.cm&&vo(ie.cm,ve,fe),Le)}function Id(ie){this.lines=ie,this.parent=null;for(var ae=0,fe=0;fe<ie.length;++fe)ie[fe].parent=this,ae+=ie[fe].height;this.height=ae}Id.prototype={chunkSize:function(){return this.lines.length},removeInner:function(ie,ae){for(var fe=ie,ce=ie+ae;fe<ce;++fe){var ve=this.lines[fe];this.height-=ve.height,jn(ve),ri(ve,"delete")}this.lines.splice(ie,ae)},collapse:function(ie){ie.push.apply(ie,this.lines)},insertInner:function(ie,ae,fe){this.height+=fe,this.lines=this.lines.slice(0,ie).concat(ae).concat(this.lines.slice(ie));for(var ce=0;ce<ae.length;++ce)ae[ce].parent=this},iterN:function(ie,ae,fe){for(var ce=ie+ae;ie<ce;++ie)if(fe(this.lines[ie]))return!0}};function Ya(ie){this.children=ie;for(var ae=0,fe=0,ce=0;ce<ie.length;++ce){var ve=ie[ce];ae+=ve.chunkSize(),fe+=ve.height,ve.parent=this}this.size=ae,this.height=fe,this.parent=null}Ya.prototype={chunkSize:function(){return this.size},removeInner:function(ie,ae){this.size-=ae;for(var fe=0;fe<this.children.length;++fe){var ce=this.children[fe],ve=ce.chunkSize();if(ie<ve){var Le=Math.min(ae,ve-ie),Ge=ce.height;if(ce.removeInner(ie,Le),this.height-=Ge-ce.height,ve==Le&&(this.children.splice(fe--,1),ce.parent=null),(ae-=Le)==0)break;ie=0}else ie-=ve}if(this.size-ae<25&&(this.children.length>1||!(this.children[0]instanceof Id))){var et=[];this.collapse(et),this.children=[new Id(et)],this.children[0].parent=this}},collapse:function(ie){for(var ae=0;ae<this.children.length;++ae)this.children[ae].collapse(ie)},insertInner:function(ie,ae,fe){this.size+=ae.length,this.height+=fe;for(var ce=0;ce<this.children.length;++ce){var ve=this.children[ce],Le=ve.chunkSize();if(ie<=Le){if(ve.insertInner(ie,ae,fe),ve.lines&&ve.lines.length>50){for(var Ge=ve.lines.length%25+25,et=Ge;et<ve.lines.length;){var qe=new Id(ve.lines.slice(et,et+=25));ve.height-=qe.height,this.children.splice(++ce,0,qe),qe.parent=this}ve.lines=ve.lines.slice(0,Ge),this.maybeSpill()}break}ie-=Le}},maybeSpill:function(){if(!(this.children.length<=10)){var ie=this;do{var ae=ie.children.splice(ie.children.length-5,5),fe=new Ya(ae);if(ie.parent){ie.size-=fe.size,ie.height-=fe.height;var ve=jt(ie.parent.children,ie);ie.parent.children.splice(ve+1,0,fe)}else{var ce=new Ya(ie.children);ce.parent=ie,ie.children=[ce,fe],ie=ce}fe.parent=ie.parent}while(ie.children.length>10);ie.parent.maybeSpill()}},iterN:function(ie,ae,fe){for(var ce=0;ce<this.children.length;++ce){var ve=this.children[ce],Le=ve.chunkSize();if(ie<Le){var Ge=Math.min(ae,Le-ie);if(ve.iterN(ie,Ge,fe))return!0;if((ae-=Ge)==0)break;ie=0}else ie-=Le}}};var $u=function(ie,ae,fe){if(fe)for(var ce in fe)fe.hasOwnProperty(ce)&&(this[ce]=fe[ce]);this.doc=ie,this.node=ae};$u.prototype.clear=function(){var ie=this.doc.cm,ae=this.line.widgets,fe=this.line,ce=lt(fe);if(!(ce==null||!ae)){for(var ve=0;ve<ae.length;++ve)ae[ve]==this&&ae.splice(ve--,1);ae.length||(fe.widgets=null);var Le=pr(this);ii(fe,Math.max(0,fe.height-Le)),ie&&($r(ie,function(){Up(ie,fe,-Le),vo(ie,ce,"widget")}),ri(ie,"lineWidgetCleared",ie,this,ce))}},$u.prototype.changed=function(){var ie=this,ae=this.height,fe=this.doc.cm,ce=this.line;this.height=null;var ve=pr(this)-ae;ve&&(Xe(this.doc,ce)||ii(ce,ce.height+ve),fe&&$r(fe,function(){fe.curOp.forceUpdate=!0,Up(fe,ce,ve),ri(fe,"lineWidgetChanged",fe,ie,lt(ce))}))},Qi($u);function Up(ie,ae,fe){Ct(ae)<(ie.curOp&&ie.curOp.scrollTop||ie.doc.scrollTop)&&vu(ie,fe)}function cf(ie,ae,fe,ce){var ve=new $u(ie,fe,ce),Le=ie.cm;return Le&&ve.noHScroll&&(Le.display.alignWidgets=!0),$h(ie,ae,"widget",function(Ge){var et=Ge.widgets||(Ge.widgets=[]);if(ve.insertAt==null?et.push(ve):et.splice(Math.min(et.length-1,Math.max(0,ve.insertAt)),0,ve),ve.line=Ge,Le&&!Xe(ie,Ge)){var qe=Ct(Ge)<ie.scrollTop;ii(Ge,Ge.height+pr(ve)),qe&&vu(Le,ve.height),Le.curOp.forceUpdate=!0}return!0}),Le&&ri(Le,"lineWidgetAdded",Le,ve,typeof ae=="number"?ae:lt(ae)),ve}var Xp=0,_t=function(ie,ae){this.lines=[],this.type=ae,this.doc=ie,this.id=++Xp};_t.prototype.clear=function(){if(!this.explicitlyCleared){var ie=this.doc.cm,ae=ie&&!ie.curOp;if(ae&&yo(ie),ji(this,"clear")){var fe=this.find();fe&&ri(this,"clear",fe.from,fe.to)}for(var ce=null,ve=null,Le=0;Le<this.lines.length;++Le){var Ge=this.lines[Le],et=zr(Ge.markedSpans,this);ie&&!this.collapsed?vo(ie,lt(Ge),"text"):ie&&(et.to!=null&&(ve=lt(Ge)),et.from!=null&&(ce=lt(Ge))),Ge.markedSpans=Tr(Ge.markedSpans,et),et.from==null&&this.collapsed&&!Xe(this.doc,Ge)&&ie&&ii(Ge,ca(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var qe=0;qe<this.lines.length;++qe){var mt=vn(this.lines[qe]),rn=Xt(mt);rn>ie.display.maxLineLength&&(ie.display.maxLine=mt,ie.display.maxLineLength=rn,ie.display.maxLineChanged=!0)}ce!=null&&ie&&this.collapsed&&sa(ie,ce,ve+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,ie&&yc(ie.doc)),ie&&ri(ie,"markerCleared",ie,this,ce,ve),ae&&_a(ie),this.parent&&this.parent.clear()}},_t.prototype.find=function(ie,ae){ie==null&&this.type=="bookmark"&&(ie=1);for(var fe,ce,ve=0;ve<this.lines.length;++ve){var Le=this.lines[ve],Ge=zr(Le.markedSpans,this);if(Ge.from!=null&&(fe=tn(ae?Le:lt(Le),Ge.from),ie==-1))return fe;if(Ge.to!=null&&(ce=tn(ae?Le:lt(Le),Ge.to),ie==1))return ce}return fe&&{from:fe,to:ce}},_t.prototype.changed=function(){var ie=this,ae=this.find(-1,!0),fe=this,ce=this.doc.cm;!ae||!ce||$r(ce,function(){var ve=ae.line,Le=lt(ae.line),Ge=ar(ce,Le);if(Ge&&(ma(Ge),ce.curOp.selectionChanged=ce.curOp.forceUpdate=!0),ce.curOp.updateMaxLine=!0,!Xe(fe.doc,ve)&&fe.height!=null){var et=fe.height;fe.height=null;var qe=pr(fe)-et;qe&&ii(ve,ve.height+qe)}ri(ce,"markerChanged",ce,ie)})},_t.prototype.attachLine=function(ie){if(!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(!ae.maybeHiddenMarkers||jt(ae.maybeHiddenMarkers,this)==-1)&&(ae.maybeUnhiddenMarkers||(ae.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(ie)},_t.prototype.detachLine=function(ie){if(this.lines.splice(jt(this.lines,ie),1),!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(ae.maybeHiddenMarkers||(ae.maybeHiddenMarkers=[])).push(this)}},Qi(_t);function ed(ie,ae,fe,ce,ve){if(ce&&ce.shared)return Qp(ie,ae,fe,ce,ve);if(ie.cm&&!ie.cm.curOp)return lo(ie.cm,ed)(ie,ae,fe,ce,ve);var Le=new _t(ie,ve),Ge=si(ae,fe);if(ce&&Ut(ce,Le,!1),Ge>0||Ge==0&&Le.clearWhenEmpty!==!1)return Le;if(Le.replacedWith&&(Le.collapsed=!0,Le.widgetNode=Qe("span",[Le.replacedWith],"CodeMirror-widget"),ce.handleMouseEvents||Le.widgetNode.setAttribute("cm-ignore-events","true"),ce.insertLeft&&(Le.widgetNode.insertLeft=!0)),Le.collapsed){if(Gn(ie,ae.line,ae,fe,Le)||ae.line!=fe.line&&Gn(ie,fe.line,ae,fe,Le))throw new Error("Inserting collapsed marker partially overlapping an existing one");Fn()}Le.addToHistory&&mc(ie,{from:ae,to:fe,origin:"markText"},ie.sel,NaN);var et=ae.line,qe=ie.cm,mt;if(ie.iter(et,fe.line+1,function(Mt){qe&&Le.collapsed&&!qe.options.lineWrapping&&vn(Mt)==qe.display.maxLine&&(mt=!0),Le.collapsed&&et!=ae.line&&ii(Mt,0),Co(Mt,new Kn(Le,et==ae.line?ae.ch:null,et==fe.line?fe.ch:null)),++et}),Le.collapsed&&ie.iter(ae.line,fe.line+1,function(Mt){Xe(ie,Mt)&&ii(Mt,0)}),Le.clearOnEnter&&_n(Le,"beforeCursorEnter",function(){return Le.clear()}),Le.readOnly&&(ho(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),Le.collapsed&&(Le.id=++Xp,Le.atomic=!0),qe){if(mt&&(qe.curOp.updateMaxLine=!0),Le.collapsed)sa(qe,ae.line,fe.line+1);else if(Le.className||Le.startStyle||Le.endStyle||Le.css||Le.attributes||Le.title)for(var rn=ae.line;rn<=fe.line;rn++)vo(qe,rn,"text");Le.atomic&&yc(qe.doc),ri(qe,"markerAdded",qe,Le)}return Le}var Bu=function(ie,ae){this.markers=ie,this.primary=ae;for(var fe=0;fe<ie.length;++fe)ie[fe].parent=this};Bu.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var ie=0;ie<this.markers.length;++ie)this.markers[ie].clear();ri(this,"clear")}},Bu.prototype.find=function(ie,ae){return this.primary.find(ie,ae)},Qi(Bu);function Qp(ie,ae,fe,ce,ve){ce=Ut(ce),ce.shared=!1;var Le=[ed(ie,ae,fe,ce,ve)],Ge=Le[0],et=ce.widgetNode;return xu(ie,function(qe){et&&(ce.widgetNode=et.cloneNode(!0)),Le.push(ed(qe,qn(qe,ae),qn(qe,fe),ce,ve));for(var mt=0;mt<qe.linked.length;++mt)if(qe.linked[mt].isParent)return;Ge=zt(Le)}),new Bu(Le,Ge)}function Sg(ie){return ie.findMarks(tn(ie.first,0),ie.clipPos(tn(ie.lastLine())),function(ae){return ae.parent})}function Jp(ie,ae){for(var fe=0;fe<ae.length;fe++){var ce=ae[fe],ve=ce.find(),Le=ie.clipPos(ve.from),Ge=ie.clipPos(ve.to);if(si(Le,Ge)){var et=ed(ie,Le,Ge,ce.primary,ce.primary.type);ce.markers.push(et),et.parent=ce}}}function xg(ie){for(var ae=function(ce){var ve=ie[ce],Le=[ve.primary.doc];xu(ve.primary.doc,function(qe){return Le.push(qe)});for(var Ge=0;Ge<ve.markers.length;Ge++){var et=ve.markers[Ge];jt(Le,et.doc)==-1&&(et.parent=null,ve.markers.splice(Ge--,1))}},fe=0;fe<ie.length;fe++)ae(fe)}var nv=0,Ns=function(ie,ae,fe,ce,ve){if(!(this instanceof Ns))return new Ns(ie,ae,fe,ce,ve);fe==null&&(fe=0),Ya.call(this,[new Id([new sn("",null)])]),this.first=fe,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=fe;var Le=tn(fe,0);this.sel=Qu(Le),this.history=new Bd(null),this.id=++nv,this.modeOption=ae,this.lineSep=ce,this.direction=ve=="rtl"?"rtl":"ltr",this.extend=!1,typeof ie=="string"&&(ie=this.splitLines(ie)),of(this,{from:Le,to:Le,text:ie}),Gs(this,Qu(Le),Ft)};Ns.prototype=Fe(Ya.prototype,{constructor:Ns,iter:function(ie,ae,fe){fe?this.iterN(ie-this.first,ae-ie,fe):this.iterN(this.first,this.first+this.size,ie)},insert:function(ie,ae){for(var fe=0,ce=0;ce<ae.length;++ce)fe+=ae[ce].height;this.insertInner(ie-this.first,ae,fe)},remove:function(ie,ae){this.removeInner(ie-this.first,ae)},getValue:function(ie){var ae=Fr(this,this.first,this.first+this.size);return ie===!1?ae:ae.join(ie||this.lineSeparator())},setValue:na(function(ie){var ae=tn(this.first,0),fe=this.first+this.size-1;xh(this,{from:ae,to:tn(fe,In(this,fe).text.length),text:this.splitLines(ie),origin:"setValue",full:!0},!0),this.cm&&Vl(this.cm,0,0),Gs(this,Qu(ae),Ft)}),replaceRange:function(ie,ae,fe,ce){ae=qn(this,ae),fe=fe?qn(this,fe):ae,qh(this,ie,ae,fe,ce)},getRange:function(ie,ae,fe){var ce=Vi(this,qn(this,ie),qn(this,ae));return fe===!1?ce:ce.join(fe||this.lineSeparator())},getLine:function(ie){var ae=this.getLineHandle(ie);return ae&&ae.text},getLineHandle:function(ie){if(ai(this,ie))return In(this,ie)},getLineNumber:function(ie){return lt(ie)},getLineHandleVisualStart:function(ie){return typeof ie=="number"&&(ie=In(this,ie)),vn(ie)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ie){return qn(this,ie)},getCursor:function(ie){var ae=this.sel.primary(),fe;return ie==null||ie=="head"?fe=ae.head:ie=="anchor"?fe=ae.anchor:ie=="end"||ie=="to"||ie===!1?fe=ae.to():fe=ae.from(),fe},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:na(function(ie,ae,fe){Xh(this,qn(this,typeof ie=="number"?tn(ie,ae||0):ie),null,fe)}),setSelection:na(function(ie,ae,fe){Xh(this,qn(this,ie),qn(this,ae||ie),fe)}),extendSelection:na(function(ie,ae,fe){hf(this,qn(this,ie),ae&&qn(this,ae),fe)}),extendSelections:na(function(ie,ae){Vp(this,$i(this,ie),ae)}),extendSelectionsBy:na(function(ie,ae){var fe=En(this.sel.ranges,ie);Vp(this,$i(this,fe),ae)}),setSelections:na(function(ie,ae,fe){if(ie.length){for(var ce=[],ve=0;ve<ie.length;ve++)ce[ve]=new Sa(qn(this,ie[ve].anchor),qn(this,ie[ve].head));ae==null&&(ae=Math.min(ie.length-1,this.sel.primIndex)),Gs(this,ru(this.cm,ce,ae),fe)}}),addSelection:na(function(ie,ae,fe){var ce=this.sel.ranges.slice(0);ce.push(new Sa(qn(this,ie),qn(this,ae||ie))),Gs(this,ru(this.cm,ce,ce.length-1),fe)}),getSelection:function(ie){for(var ae=this.sel.ranges,fe,ce=0;ce<ae.length;ce++){var ve=Vi(this,ae[ce].from(),ae[ce].to());fe=fe?fe.concat(ve):ve}return ie===!1?fe:fe.join(ie||this.lineSeparator())},getSelections:function(ie){for(var ae=[],fe=this.sel.ranges,ce=0;ce<fe.length;ce++){var ve=Vi(this,fe[ce].from(),fe[ce].to());ie!==!1&&(ve=ve.join(ie||this.lineSeparator())),ae[ce]=ve}return ae},replaceSelection:function(ie,ae,fe){for(var ce=[],ve=0;ve<this.sel.ranges.length;ve++)ce[ve]=ie;this.replaceSelections(ce,ae,fe||"+input")},replaceSelections:na(function(ie,ae,fe){for(var ce=[],ve=this.sel,Le=0;Le<ve.ranges.length;Le++){var Ge=ve.ranges[Le];ce[Le]={from:Ge.from(),to:Ge.to(),text:this.splitLines(ie[Le]),origin:fe}}for(var et=ae&&ae!="end"&&cc(this,ce,ae),qe=ce.length-1;qe>=0;qe--)xh(this,ce[qe]);et?df(this,et):this.cm&&Ws(this.cm)}),undo:na(function(){wc(this,"undo")}),redo:na(function(){wc(this,"redo")}),undoSelection:na(function(){wc(this,"undo",!0)}),redoSelection:na(function(){wc(this,"redo",!0)}),setExtending:function(ie){this.extend=ie},getExtending:function(){return this.extend},historySize:function(){for(var ie=this.history,ae=0,fe=0,ce=0;ce<ie.done.length;ce++)ie.done[ce].ranges||++ae;for(var ve=0;ve<ie.undone.length;ve++)ie.undone[ve].ranges||++fe;return{undo:ae,redo:fe}},clearHistory:function(){var ie=this;this.history=new Bd(this.history.maxGeneration),xu(this,function(ae){return ae.history=ie.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(ie){return ie&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(ie){return this.history.generation==(ie||this.cleanGeneration)},getHistory:function(){return{done:Ju(this.history.done),undone:Ju(this.history.undone)}},setHistory:function(ie){var ae=this.history=new Bd(this.history.maxGeneration);ae.done=Ju(ie.done.slice(0),null,!0),ae.undone=Ju(ie.undone.slice(0),null,!0)},setGutterMarker:na(function(ie,ae,fe){return $h(this,ie,"gutter",function(ce){var ve=ce.gutterMarkers||(ce.gutterMarkers={});return ve[ae]=fe,!fe&&De(ve)&&(ce.gutterMarkers=null),!0})}),clearGutter:na(function(ie){var ae=this;this.iter(function(fe){fe.gutterMarkers&&fe.gutterMarkers[ie]&&$h(ae,fe,"gutter",function(){return fe.gutterMarkers[ie]=null,De(fe.gutterMarkers)&&(fe.gutterMarkers=null),!0})})}),lineInfo:function(ie){var ae;if(typeof ie=="number"){if(!ai(this,ie)||(ae=ie,ie=In(this,ie),!ie))return null}else if(ae=lt(ie),ae==null)return null;return{line:ae,handle:ie,text:ie.text,gutterMarkers:ie.gutterMarkers,textClass:ie.textClass,bgClass:ie.bgClass,wrapClass:ie.wrapClass,widgets:ie.widgets}},addLineClass:na(function(ie,ae,fe){return $h(this,ie,ae=="gutter"?"gutter":"class",function(ce){var ve=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass";if(!ce[ve])ce[ve]=fe;else{if(Re(fe).test(ce[ve]))return!1;ce[ve]+=" "+fe}return!0})}),removeLineClass:na(function(ie,ae,fe){return $h(this,ie,ae=="gutter"?"gutter":"class",function(ce){var ve=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass",Le=ce[ve];if(Le)if(fe==null)ce[ve]=null;else{var Ge=Le.match(Re(fe));if(!Ge)return!1;var et=Ge.index+Ge[0].length;ce[ve]=Le.slice(0,Ge.index)+(!Ge.index||et==Le.length?"":" ")+Le.slice(et)||null}else return!1;return!0})}),addLineWidget:na(function(ie,ae,fe){return cf(this,ie,ae,fe)}),removeLineWidget:function(ie){ie.clear()},markText:function(ie,ae,fe){return ed(this,qn(this,ie),qn(this,ae),fe,fe&&fe.type||"range")},setBookmark:function(ie,ae){var fe={replacedWith:ae&&(ae.nodeType==null?ae.widget:ae),insertLeft:ae&&ae.insertLeft,clearWhenEmpty:!1,shared:ae&&ae.shared,handleMouseEvents:ae&&ae.handleMouseEvents};return ie=qn(this,ie),ed(this,ie,ie,fe,"bookmark")},findMarksAt:function(ie){ie=qn(this,ie);var ae=[],fe=In(this,ie.line).markedSpans;if(fe)for(var ce=0;ce<fe.length;++ce){var ve=fe[ce];(ve.from==null||ve.from<=ie.ch)&&(ve.to==null||ve.to>=ie.ch)&&ae.push(ve.marker.parent||ve.marker)}return ae},findMarks:function(ie,ae,fe){ie=qn(this,ie),ae=qn(this,ae);var ce=[],ve=ie.line;return this.iter(ie.line,ae.line+1,function(Le){var Ge=Le.markedSpans;if(Ge)for(var et=0;et<Ge.length;et++){var qe=Ge[et];!(qe.to!=null&&ve==ie.line&&ie.ch>=qe.to||qe.from==null&&ve!=ie.line||qe.from!=null&&ve==ae.line&&qe.from>=ae.ch)&&(!fe||fe(qe.marker))&&ce.push(qe.marker.parent||qe.marker)}++ve}),ce},getAllMarks:function(){var ie=[];return this.iter(function(ae){var fe=ae.markedSpans;if(fe)for(var ce=0;ce<fe.length;++ce)fe[ce].from!=null&&ie.push(fe[ce].marker)}),ie},posFromIndex:function(ie){var ae,fe=this.first,ce=this.lineSeparator().length;return this.iter(function(ve){var Le=ve.text.length+ce;if(Le>ie)return ae=ie,!0;ie-=Le,++fe}),qn(this,tn(fe,ae))},indexFromPos:function(ie){ie=qn(this,ie);var ae=ie.ch;if(ie.line<this.first||ie.ch<0)return 0;var fe=this.lineSeparator().length;return this.iter(this.first,ie.line,function(ce){ae+=ce.text.length+fe}),ae},copy:function(ie){var ae=new Ns(Fr(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return ae.scrollTop=this.scrollTop,ae.scrollLeft=this.scrollLeft,ae.sel=this.sel,ae.extend=!1,ie&&(ae.history.undoDepth=this.history.undoDepth,ae.setHistory(this.getHistory())),ae},linkedDoc:function(ie){ie||(ie={});var ae=this.first,fe=this.first+this.size;ie.from!=null&&ie.from>ae&&(ae=ie.from),ie.to!=null&&ie.to<fe&&(fe=ie.to);var ce=new Ns(Fr(this,ae,fe),ie.mode||this.modeOption,ae,this.lineSep,this.direction);return ie.sharedHist&&(ce.history=this.history),(this.linked||(this.linked=[])).push({doc:ce,sharedHist:ie.sharedHist}),ce.linked=[{doc:this,isParent:!0,sharedHist:ie.sharedHist}],Jp(ce,Sg(this)),ce},unlinkDoc:function(ie){if(ie instanceof la&&(ie=ie.doc),this.linked)for(var ae=0;ae<this.linked.length;++ae){var fe=this.linked[ae];if(fe.doc==ie){this.linked.splice(ae,1),ie.unlinkDoc(this),xg(Sg(this));break}}if(ie.history==this.history){var ce=[ie.id];xu(ie,function(ve){return ce.push(ve.id)},!0),ie.history=new Bd(null),ie.history.done=Ju(this.history.done,ce),ie.history.undone=Ju(this.history.undone,ce)}},iterLinkedDocs:function(ie){xu(this,ie)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(ie){return this.lineSep?ie.split(this.lineSep):ao(ie)},lineSeparator:function(){return this.lineSep||`
|
|
`},setDirection:na(function(ie){ie!="rtl"&&(ie="ltr"),ie!=this.direction&&(this.direction=ie,this.iter(function(ae){return ae.order=null}),this.cm&&tv(this.cm))})}),Ns.prototype.eachLine=Ns.prototype.iter;var Cc=0;function Pg(ie){var ae=this;if(e0(ae),!(Ei(ae,ie)||Jn(ae.display,ie))){lr(ie),it&&(Cc=+new Date);var fe=Va(ae,ie,!0),ce=ie.dataTransfer.files;if(!(!fe||ae.isReadOnly()))if(ce&&ce.length&&window.FileReader&&window.File)for(var ve=ce.length,Le=Array(ve),Ge=0,et=function(){++Ge==ve&&lo(ae,function(){fe=qn(ae.doc,fe);var xn={from:fe,to:fe,text:ae.doc.splitLines(Le.filter(function(Bi){return Bi!=null}).join(ae.doc.lineSeparator())),origin:"paste"};xh(ae.doc,xn),df(ae.doc,Qu(qn(ae.doc,fe),qn(ae.doc,vh(xn))))})()},qe=function(xn,Bi){if(ae.options.allowDropFileTypes&&jt(ae.options.allowDropFileTypes,xn.type)==-1){et();return}var Zi=new FileReader;Zi.onerror=function(){return et()},Zi.onload=function(){var er=Zi.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(er)){et();return}Le[Bi]=er,et()},Zi.readAsText(xn)},mt=0;mt<ce.length;mt++)qe(ce[mt],mt);else{if(ae.state.draggingText&&ae.doc.sel.contains(fe)>-1){ae.state.draggingText(ie),setTimeout(function(){return ae.display.input.focus()},20);return}try{var rn=ie.dataTransfer.getData("Text");if(rn){var Mt;if(ae.state.draggingText&&!ae.state.draggingText.copy&&(Mt=ae.listSelections()),Qh(ae.doc,Qu(fe,fe)),Mt)for(var Nn=0;Nn<Mt.length;++Nn)qh(ae.doc,"",Mt[Nn].anchor,Mt[Nn].head,"drag");ae.replaceSelection(rn,"around","paste"),ae.display.input.focus()}}catch(xn){}}}}function qp(ie,ae){if(it&&(!ie.state.draggingText||+new Date-Cc<100)){cr(ae);return}if(!(Ei(ie,ae)||Jn(ie.display,ae))&&(ae.dataTransfer.setData("Text",ie.getSelection()),ae.dataTransfer.effectAllowed="copyMove",ae.dataTransfer.setDragImage&&!Et)){var fe=Ie("img",null,null,"position: fixed; left: 0; top: 0;");fe.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Me&&(fe.width=fe.height=1,ie.display.wrapper.appendChild(fe),fe._top=fe.offsetTop),ae.dataTransfer.setDragImage(fe,0,0),Me&&fe.parentNode.removeChild(fe)}}function $p(ie,ae){var fe=Va(ie,ae);if(fe){var ce=document.createDocumentFragment();Go(ie,fe,ce),ie.display.dragCursor||(ie.display.dragCursor=Ie("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),ie.display.lineSpace.insertBefore(ie.display.dragCursor,ie.display.cursorDiv)),Be(ie.display.dragCursor,ce)}}function e0(ie){ie.display.dragCursor&&(ie.display.lineSpace.removeChild(ie.display.dragCursor),ie.display.dragCursor=null)}function t0(ie){if(document.getElementsByClassName){for(var ae=document.getElementsByClassName("CodeMirror"),fe=[],ce=0;ce<ae.length;ce++){var ve=ae[ce].CodeMirror;ve&&fe.push(ve)}fe.length&&fe[0].operation(function(){for(var Le=0;Le<fe.length;Le++)ie(fe[Le])})}}var wg=!1;function Tl(){wg||(Rd(),wg=!0)}function Rd(){var ie;_n(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,t0(Cg)},100))}),_n(window,"blur",function(){return t0(fl)})}function Cg(ie){var ae=ie.display;ae.cachedCharWidth=ae.cachedTextHeight=ae.cachedPaddingH=null,ae.scrollbarsClipped=!1,ie.setSize()}for(var Nu={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ec=0;Ec<10;Ec++)Nu[Ec+48]=Nu[Ec+96]=String(Ec);for(var ff=65;ff<=90;ff++)Nu[ff]=String.fromCharCode(ff);for(var Ac=1;Ac<=12;Ac++)Nu[Ac+111]=Nu[Ac+63235]="F"+Ac;var yl={};yl.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},yl.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},yl.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},yl.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},yl.default=ue?yl.macDefault:yl.pcDefault;function Eg(ie){var ae=ie.split(/-(?!$)/);ie=ae[ae.length-1];for(var fe,ce,ve,Le,Ge=0;Ge<ae.length-1;Ge++){var et=ae[Ge];if(/^(cmd|meta|m)$/i.test(et))Le=!0;else if(/^a(lt)?$/i.test(et))fe=!0;else if(/^(c|ctrl|control)$/i.test(et))ce=!0;else if(/^s(hift)?$/i.test(et))ve=!0;else throw new Error("Unrecognized modifier name: "+et)}return fe&&(ie="Alt-"+ie),ce&&(ie="Ctrl-"+ie),Le&&(ie="Cmd-"+ie),ve&&(ie="Shift-"+ie),ie}function Ag(ie){var ae={};for(var fe in ie)if(ie.hasOwnProperty(fe)){var ce=ie[fe];if(/^(name|fallthrough|(de|at)tach)$/.test(fe))continue;if(ce=="..."){delete ie[fe];continue}for(var ve=En(fe.split(" "),Eg),Le=0;Le<ve.length;Le++){var Ge=void 0,et=void 0;Le==ve.length-1?(et=ve.join(" "),Ge=ce):(et=ve.slice(0,Le+1).join(" "),Ge="...");var qe=ae[et];if(!qe)ae[et]=Ge;else if(qe!=Ge)throw new Error("Inconsistent bindings for "+et)}delete ie[fe]}for(var mt in ae)ie[mt]=ae[mt];return ie}function Kl(ie,ae,fe,ce){ae=td(ae);var ve=ae.call?ae.call(ie,ce):ae[ie];if(ve===!1)return"nothing";if(ve==="...")return"multi";if(ve!=null&&fe(ve))return"handled";if(ae.fallthrough){if(Object.prototype.toString.call(ae.fallthrough)!="[object Array]")return Kl(ie,ae.fallthrough,fe,ce);for(var Le=0;Le<ae.fallthrough.length;Le++){var Ge=Kl(ie,ae.fallthrough[Le],fe,ce);if(Ge)return Ge}}}function jd(ie){var ae=typeof ie=="string"?ie:Nu[ie.keyCode];return ae=="Ctrl"||ae=="Alt"||ae=="Shift"||ae=="Mod"}function Fg(ie,ae,fe){var ce=ie;return ae.altKey&&ce!="Alt"&&(ie="Alt-"+ie),(ye?ae.metaKey:ae.ctrlKey)&&ce!="Ctrl"&&(ie="Ctrl-"+ie),(ye?ae.ctrlKey:ae.metaKey)&&ce!="Mod"&&(ie="Cmd-"+ie),!fe&&ae.shiftKey&&ce!="Shift"&&(ie="Shift-"+ie),ie}function n0(ie,ae){if(Me&&ie.keyCode==34&&ie.char)return!1;var fe=Nu[ie.keyCode];return fe==null||ie.altGraphKey?!1:(ie.keyCode==3&&ie.code&&(fe=ie.code),Fg(fe,ie,ae))}function td(ie){return typeof ie=="string"?yl[ie]:ie}function Sl(ie,ae){for(var fe=ie.doc.sel.ranges,ce=[],ve=0;ve<fe.length;ve++){for(var Le=ae(fe[ve]);ce.length&&si(Le.from,zt(ce).to)<=0;){var Ge=ce.pop();if(si(Ge.from,Le.from)<0){Le.from=Ge.from;break}}ce.push(Le)}$r(ie,function(){for(var et=ce.length-1;et>=0;et--)qh(ie.doc,"",ce[et].from,ce[et].to,"+delete");Ws(ie)})}function Mg(ie,ae,fe){var ce=$t(ie.text,ae+fe,fe);return ce<0||ce>ie.text.length?null:ce}function os(ie,ae,fe){var ce=Mg(ie,ae.ch,fe);return ce==null?null:new tn(ae.line,ce,fe<0?"after":"before")}function Fc(ie,ae,fe,ce,ve){if(ie){ae.doc.direction=="rtl"&&(ve=-ve);var Le=zn(fe,ae.doc.direction);if(Le){var Ge=ve<0?zt(Le):Le[0],et=ve<0==(Ge.level==1),qe=et?"after":"before",mt;if(Ge.level>0||ae.doc.direction=="rtl"){var rn=Ir(ae,fe);mt=ve<0?fe.text.length-1:0;var Mt=bo(ae,rn,mt).top;mt=Sn(function(Nn){return bo(ae,rn,Nn).top==Mt},ve<0==(Ge.level==1)?Ge.from:Ge.to-1,mt),qe=="before"&&(mt=Mg(fe,mt,1))}else mt=ve<0?Ge.to:Ge.from;return new tn(ce,mt,qe)}}return new tn(ce,ve<0?fe.text.length:0,ve<0?"before":"after")}function gf(ie,ae,fe,ce){var ve=zn(ae,ie.doc.direction);if(!ve)return os(ae,fe,ce);fe.ch>=ae.text.length?(fe.ch=ae.text.length,fe.sticky="before"):fe.ch<=0&&(fe.ch=0,fe.sticky="after");var Le=nn(ve,fe.ch,fe.sticky),Ge=ve[Le];if(ie.doc.direction=="ltr"&&Ge.level%2==0&&(ce>0?Ge.to>fe.ch:Ge.from<fe.ch))return os(ae,fe,ce);var et=function(Cr,Vr){return Mg(ae,Cr instanceof tn?Cr.ch:Cr,Vr)},qe,mt=function(Cr){return ie.options.lineWrapping?(qe=qe||Ir(ie,ae),_o(ie,ae,qe,Cr)):{begin:0,end:ae.text.length}},rn=mt(fe.sticky=="before"?et(fe,-1):fe.ch);if(ie.doc.direction=="rtl"||Ge.level==1){var Mt=Ge.level==1==ce<0,Nn=et(fe,Mt?1:-1);if(Nn!=null&&(Mt?Nn<=Ge.to&&Nn<=rn.end:Nn>=Ge.from&&Nn>=rn.begin)){var xn=Mt?"before":"after";return new tn(fe.line,Nn,xn)}}var Bi=function(Cr,Vr,Br){for(var Qr=function(Oa,ms){return ms?new tn(fe.line,et(Oa,1),"before"):new tn(fe.line,Oa,"after")};Cr>=0&&Cr<ve.length;Cr+=Vr){var Lo=ve[Cr],Dr=Vr>0==(Lo.level!=1),Qo=Dr?Br.begin:et(Br.end,-1);if(Lo.from<=Qo&&Qo<Lo.to||(Qo=Dr?Lo.from:et(Lo.to,-1),Br.begin<=Qo&&Qo<Br.end))return Qr(Qo,Dr)}},Zi=Bi(Le+ce,ce,rn);if(Zi)return Zi;var er=ce>0?rn.end:et(rn.begin,-1);return er!=null&&!(ce>0&&er==ae.text.length)&&(Zi=Bi(ce>0?0:ve.length-1,ce,mt(er)),Zi)?Zi:null}var Ph={selectAll:rs,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),Ft)},killLine:function(ie){return Sl(ie,function(ae){if(ae.empty()){var fe=In(ie.doc,ae.head.line).text.length;return ae.head.ch==fe&&ae.head.line<ie.lastLine()?{from:ae.head,to:tn(ae.head.line+1,0)}:{from:ae.head,to:tn(ae.head.line,fe)}}else return{from:ae.from(),to:ae.to()}})},deleteLine:function(ie){return Sl(ie,function(ae){return{from:tn(ae.from().line,0),to:qn(ie.doc,tn(ae.to().line+1,0))}})},delLineLeft:function(ie){return Sl(ie,function(ae){return{from:tn(ae.from().line,0),to:ae.from()}})},delWrappedLineLeft:function(ie){return Sl(ie,function(ae){var fe=ie.charCoords(ae.head,"div").top+5,ce=ie.coordsChar({left:0,top:fe},"div");return{from:ce,to:ae.from()}})},delWrappedLineRight:function(ie){return Sl(ie,function(ae){var fe=ie.charCoords(ae.head,"div").top+5,ce=ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:fe},"div");return{from:ae.from(),to:ce}})},undo:function(ie){return ie.undo()},redo:function(ie){return ie.redo()},undoSelection:function(ie){return ie.undoSelection()},redoSelection:function(ie){return ie.redoSelection()},goDocStart:function(ie){return ie.extendSelection(tn(ie.firstLine(),0))},goDocEnd:function(ie){return ie.extendSelection(tn(ie.lastLine()))},goLineStart:function(ie){return ie.extendSelectionsBy(function(ae){return zd(ie,ae.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(ie){return ie.extendSelectionsBy(function(ae){return Lg(ie,ae.head)},{origin:"+move",bias:1})},goLineEnd:function(ie){return ie.extendSelectionsBy(function(ae){return Zd(ie,ae.head.line)},{origin:"+move",bias:-1})},goLineRight:function(ie){return ie.extendSelectionsBy(function(ae){var fe=ie.cursorCoords(ae.head,"div").top+5;return ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:fe},"div")},Vt)},goLineLeft:function(ie){return ie.extendSelectionsBy(function(ae){var fe=ie.cursorCoords(ae.head,"div").top+5;return ie.coordsChar({left:0,top:fe},"div")},Vt)},goLineLeftSmart:function(ie){return ie.extendSelectionsBy(function(ae){var fe=ie.cursorCoords(ae.head,"div").top+5,ce=ie.coordsChar({left:0,top:fe},"div");return ce.ch<ie.getLine(ce.line).search(/\S/)?Lg(ie,ae.head):ce},Vt)},goLineUp:function(ie){return ie.moveV(-1,"line")},goLineDown:function(ie){return ie.moveV(1,"line")},goPageUp:function(ie){return ie.moveV(-1,"page")},goPageDown:function(ie){return ie.moveV(1,"page")},goCharLeft:function(ie){return ie.moveH(-1,"char")},goCharRight:function(ie){return ie.moveH(1,"char")},goColumnLeft:function(ie){return ie.moveH(-1,"column")},goColumnRight:function(ie){return ie.moveH(1,"column")},goWordLeft:function(ie){return ie.moveH(-1,"word")},goGroupRight:function(ie){return ie.moveH(1,"group")},goGroupLeft:function(ie){return ie.moveH(-1,"group")},goWordRight:function(ie){return ie.moveH(1,"word")},delCharBefore:function(ie){return ie.deleteH(-1,"codepoint")},delCharAfter:function(ie){return ie.deleteH(1,"char")},delWordBefore:function(ie){return ie.deleteH(-1,"word")},delWordAfter:function(ie){return ie.deleteH(1,"word")},delGroupBefore:function(ie){return ie.deleteH(-1,"group")},delGroupAfter:function(ie){return ie.deleteH(1,"group")},indentAuto:function(ie){return ie.indentSelection("smart")},indentMore:function(ie){return ie.indentSelection("add")},indentLess:function(ie){return ie.indentSelection("subtract")},insertTab:function(ie){return ie.replaceSelection(" ")},insertSoftTab:function(ie){for(var ae=[],fe=ie.listSelections(),ce=ie.options.tabSize,ve=0;ve<fe.length;ve++){var Le=fe[ve].from(),Ge=st(ie.getLine(Le.line),Le.ch,ce);ae.push(vt(ce-Ge%ce))}ie.replaceSelections(ae)},defaultTab:function(ie){ie.somethingSelected()?ie.indentSelection("add"):ie.execCommand("insertTab")},transposeChars:function(ie){return $r(ie,function(){for(var ae=ie.listSelections(),fe=[],ce=0;ce<ae.length;ce++)if(ae[ce].empty()){var ve=ae[ce].head,Le=In(ie.doc,ve.line).text;if(Le){if(ve.ch==Le.length&&(ve=new tn(ve.line,ve.ch-1)),ve.ch>0)ve=new tn(ve.line,ve.ch+1),ie.replaceRange(Le.charAt(ve.ch-1)+Le.charAt(ve.ch-2),tn(ve.line,ve.ch-2),ve,"+transpose");else if(ve.line>ie.doc.first){var Ge=In(ie.doc,ve.line-1).text;Ge&&(ve=new tn(ve.line,1),ie.replaceRange(Le.charAt(0)+ie.doc.lineSeparator()+Ge.charAt(Ge.length-1),tn(ve.line-1,Ge.length-1),ve,"+transpose"))}}fe.push(new Sa(ve,ve))}ie.setSelections(fe)})},newlineAndIndent:function(ie){return $r(ie,function(){for(var ae=ie.listSelections(),fe=ae.length-1;fe>=0;fe--)ie.replaceRange(ie.doc.lineSeparator(),ae[fe].anchor,ae[fe].head,"+input");ae=ie.listSelections();for(var ce=0;ce<ae.length;ce++)ie.indentLine(ae[ce].from().line,null,!0);Ws(ie)})},openLine:function(ie){return ie.replaceSelection(`
|
|
`,"start")},toggleOverwrite:function(ie){return ie.toggleOverwrite()}};function zd(ie,ae){var fe=In(ie.doc,ae),ce=vn(fe);return ce!=fe&&(ae=lt(ce)),Fc(!0,ie,ce,ae,1)}function Zd(ie,ae){var fe=In(ie.doc,ae),ce=dn(fe);return ce!=fe&&(ae=lt(ce)),Fc(!0,ie,fe,ae,-1)}function Lg(ie,ae){var fe=zd(ie,ae.line),ce=In(ie.doc,fe.line),ve=zn(ce,ie.doc.direction);if(!ve||ve[0].level==0){var Le=Math.max(fe.ch,ce.text.search(/\S/)),Ge=ae.line==fe.line&&ae.ch<=Le&&ae.ch;return tn(fe.line,Ge?0:Le,fe.sticky)}return fe}function Wd(ie,ae,fe){if(typeof ae=="string"&&(ae=Ph[ae],!ae))return!1;ie.display.input.ensurePolled();var ce=ie.display.shift,ve=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),fe&&(ie.display.shift=!1),ve=ae(ie)!=Bt}finally{ie.display.shift=ce,ie.state.suppressEdits=!1}return ve}function bg(ie,ae,fe){for(var ce=0;ce<ie.state.keyMaps.length;ce++){var ve=Kl(ae,ie.state.keyMaps[ce],fe,ie);if(ve)return ve}return ie.options.extraKeys&&Kl(ae,ie.options.extraKeys,fe,ie)||Kl(ae,ie.options.keyMap,fe,ie)}var Tu=new He;function nd(ie,ae,fe,ce){var ve=ie.state.keySeq;if(ve){if(jd(ae))return"handled";if(/\'$/.test(ae)?ie.state.keySeq=null:Tu.set(50,function(){ie.state.keySeq==ve&&(ie.state.keySeq=null,ie.display.input.reset())}),pf(ie,ve+" "+ae,fe,ce))return!0}return pf(ie,ae,fe,ce)}function pf(ie,ae,fe,ce){var ve=bg(ie,ae,ce);return ve=="multi"&&(ie.state.keySeq=ae),ve=="handled"&&ri(ie,"keyHandled",ie,ae,fe),(ve=="handled"||ve=="multi")&&(lr(fe),qo(ie)),!!ve}function mf(ie,ae){var fe=n0(ae,!0);return fe?ae.shiftKey&&!ie.state.keySeq?nd(ie,"Shift-"+fe,ae,function(ce){return Wd(ie,ce,!0)})||nd(ie,fe,ae,function(ce){if(typeof ce=="string"?/^go[A-Z]/.test(ce):ce.motion)return Wd(ie,ce)}):nd(ie,fe,ae,function(ce){return Wd(ie,ce)}):!1}function vf(ie,ae,fe){return nd(ie,"'"+fe+"'",ae,function(ce){return Wd(ie,ce,!0)})}var id=null;function Dg(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&(ae.curOp.focus=gt(),!Ei(ae,ie))){it&&ze<11&&ie.keyCode==27&&(ie.returnValue=!1);var fe=ie.keyCode;ae.display.shift=fe==16||ie.shiftKey;var ce=mf(ae,ie);Me&&(id=ce?fe:null,!ce&&fe==88&&!Un&&(ue?ie.metaKey:ie.ctrlKey)&&ae.replaceSelection("",null,"cut")),me&&!ue&&!ce&&fe==46&&ie.shiftKey&&!ie.ctrlKey&&document.execCommand&&document.execCommand("cut"),fe==18&&!/\bCodeMirror-crosshair\b/.test(ae.display.lineDiv.className)&&kg(ae)}}function kg(ie){var ae=ie.display.lineDiv;bt(ae,"CodeMirror-crosshair");function fe(ce){(ce.keyCode==18||!ce.altKey)&&(Oe(ae,"CodeMirror-crosshair"),Ci(document,"keyup",fe),Ci(document,"mouseover",fe))}_n(document,"keyup",fe),_n(document,"mouseover",fe)}function Bg(ie){ie.keyCode==16&&(this.doc.sel.shift=!1),Ei(this,ie)}function Pu(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&!(Jn(ae.display,ie)||Ei(ae,ie)||ie.ctrlKey&&!ie.altKey||ue&&ie.metaKey)){var fe=ie.keyCode,ce=ie.charCode;if(Me&&fe==id){id=null,lr(ie);return}if(!(Me&&(!ie.which||ie.which<10)&&mf(ae,ie))){var ve=String.fromCharCode(ce==null?fe:ce);ve!="\b"&&(vf(ae,ie,ve)||ae.display.input.onKeyPress(ie))}}}var i0=400,Ng=function(ie,ae,fe){this.time=ie,this.pos=ae,this.button=fe};Ng.prototype.compare=function(ie,ae,fe){return this.time+i0>ie&&si(ae,this.pos)==0&&fe==this.button};var Hd,rd;function Tg(ie,ae){var fe=+new Date;return rd&&rd.compare(fe,ie,ae)?(Hd=rd=null,"triple"):Hd&&Hd.compare(fe,ie,ae)?(rd=new Ng(fe,ie,ae),Hd=null,"double"):(Hd=new Ng(fe,ie,ae),rd=null,"single")}function wu(ie){var ae=this,fe=ae.display;if(!(Ei(ae,ie)||fe.activeTouch&&fe.input.supportsTouch())){if(fe.input.ensurePolled(),fe.shift=ie.shiftKey,Jn(fe,ie)){Ue||(fe.scroller.draggable=!1,setTimeout(function(){return fe.scroller.draggable=!0},100));return}if(!xf(ae,ie)){var ce=Va(ae,ie),ve=ki(ie),Le=ce?Tg(ce,ve):"single";window.focus(),ve==1&&ae.state.selectingText&&ae.state.selectingText(ie),!(ce&&Og(ae,ve,ce,Le,ie))&&(ve==1?ce?r0(ae,ce,Le,ie):to(ie)==fe.scroller&&lr(ie):ve==2?(ce&&hf(ae.doc,ce),setTimeout(function(){return fe.input.focus()},20)):ve==3&&(Ce?ae.display.input.onContextMenu(ie):pa(ae)))}}}function Og(ie,ae,fe,ce,ve){var Le="Click";return ce=="double"?Le="Double"+Le:ce=="triple"&&(Le="Triple"+Le),Le=(ae==1?"Left":ae==2?"Middle":"Right")+Le,nd(ie,Fg(Le,ve),ve,function(Ge){if(typeof Ge=="string"&&(Ge=Ph[Ge]),!Ge)return!1;var et=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),et=Ge(ie,fe)!=Bt}finally{ie.state.suppressEdits=!1}return et})}function yf(ie,ae,fe){var ce=ie.getOption("configureMouse"),ve=ce?ce(ie,ae,fe):{};if(ve.unit==null){var Le=se?fe.shiftKey&&fe.metaKey:fe.altKey;ve.unit=Le?"rectangle":ae=="single"?"char":ae=="double"?"word":"line"}return(ve.extend==null||ie.doc.extend)&&(ve.extend=ie.doc.extend||fe.shiftKey),ve.addNew==null&&(ve.addNew=ue?fe.metaKey:fe.ctrlKey),ve.moveOnDrag==null&&(ve.moveOnDrag=!(ue?fe.altKey:fe.ctrlKey)),ve}function r0(ie,ae,fe,ce){it?setTimeout(Nt(ua,ie),0):ie.curOp.focus=gt();var ve=yf(ie,fe,ce),Le=ie.doc.sel,Ge;ie.options.dragDrop&&no&&!ie.isReadOnly()&&fe=="single"&&(Ge=Le.contains(ae))>-1&&(si((Ge=Le.ranges[Ge]).from(),ae)<0||ae.xRel>0)&&(si(Ge.to(),ae)>0||ae.xRel<0)?Ig(ie,ce,ae,ve):iv(ie,ce,ae,ve)}function Ig(ie,ae,fe,ce){var ve=ie.display,Le=!1,Ge=lo(ie,function(mt){Ue&&(ve.scroller.draggable=!1),ie.state.draggingText=!1,Ci(ve.wrapper.ownerDocument,"mouseup",Ge),Ci(ve.wrapper.ownerDocument,"mousemove",et),Ci(ve.scroller,"dragstart",qe),Ci(ve.scroller,"drop",Ge),Le||(lr(mt),ce.addNew||hf(ie.doc,fe,null,null,ce.extend),Ue&&!Et||it&&ze==9?setTimeout(function(){ve.wrapper.ownerDocument.body.focus({preventScroll:!0}),ve.input.focus()},20):ve.input.focus())}),et=function(mt){Le=Le||Math.abs(ae.clientX-mt.clientX)+Math.abs(ae.clientY-mt.clientY)>=10},qe=function(){return Le=!0};Ue&&(ve.scroller.draggable=!0),ie.state.draggingText=Ge,Ge.copy=!ce.moveOnDrag,ve.scroller.dragDrop&&ve.scroller.dragDrop(),_n(ve.wrapper.ownerDocument,"mouseup",Ge),_n(ve.wrapper.ownerDocument,"mousemove",et),_n(ve.scroller,"dragstart",qe),_n(ve.scroller,"drop",Ge),pa(ie),setTimeout(function(){return ve.input.focus()},20)}function Rg(ie,ae,fe){if(fe=="char")return new Sa(ae,ae);if(fe=="word")return ie.findWordAt(ae);if(fe=="line")return new Sa(tn(ae.line,0),qn(ie.doc,tn(ae.line+1,0)));var ce=fe(ie,ae);return new Sa(ce.from,ce.to)}function iv(ie,ae,fe,ce){var ve=ie.display,Le=ie.doc;lr(ae);var Ge,et,qe=Le.sel,mt=qe.ranges;if(ce.addNew&&!ce.extend?(et=Le.sel.contains(fe),et>-1?Ge=mt[et]:Ge=new Sa(fe,fe)):(Ge=Le.sel.primary(),et=Le.sel.primIndex),ce.unit=="rectangle")ce.addNew||(Ge=new Sa(fe,fe)),fe=Va(ie,ae,!0,!0),et=-1;else{var rn=Rg(ie,fe,ce.unit);ce.extend?Ge=uf(Ge,rn.anchor,rn.head,ce.extend):Ge=rn}ce.addNew?et==-1?(et=mt.length,Gs(Le,ru(ie,mt.concat([Ge]),et),{scroll:!1,origin:"*mouse"})):mt.length>1&&mt[et].empty()&&ce.unit=="char"&&!ce.extend?(Gs(Le,ru(ie,mt.slice(0,et).concat(mt.slice(et+1)),0),{scroll:!1,origin:"*mouse"}),qe=Le.sel):Sh(Le,et,Ge,It):(et=0,Gs(Le,new _l([Ge],0),It),qe=Le.sel);var Mt=fe;function Nn(Br){if(si(Mt,Br)!=0)if(Mt=Br,ce.unit=="rectangle"){for(var Qr=[],Lo=ie.options.tabSize,Dr=st(In(Le,fe.line).text,fe.ch,Lo),Qo=st(In(Le,Br.line).text,Br.ch,Lo),Oa=Math.min(Dr,Qo),ms=Math.max(Dr,Qo),Ka=Math.min(fe.line,Br.line),sl=Math.min(ie.lastLine(),Math.max(fe.line,Br.line));Ka<=sl;Ka++){var Vs=In(Le,Ka).text,cs=wn(Vs,Oa,Lo);Oa==ms?Qr.push(new Sa(tn(Ka,cs),tn(Ka,cs))):Vs.length>cs&&Qr.push(new Sa(tn(Ka,cs),tn(Ka,wn(Vs,ms,Lo))))}Qr.length||Qr.push(new Sa(fe,fe)),Gs(Le,ru(ie,qe.ranges.slice(0,et).concat(Qr),et),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(Br)}else{var xl=Ge,Ts=Rg(ie,Br,ce.unit),fs=xl.anchor,ha;si(Ts.anchor,fs)>0?(ha=Ts.head,fs=Bn(xl.from(),Ts.anchor)):(ha=Ts.anchor,fs=tr(xl.to(),Ts.head));var Qa=qe.ranges.slice(0);Qa[et]=o0(ie,new Sa(qn(Le,fs),ha)),Gs(Le,ru(ie,Qa,et),It)}}var xn=ve.wrapper.getBoundingClientRect(),Bi=0;function Zi(Br){var Qr=++Bi,Lo=Va(ie,Br,!0,ce.unit=="rectangle");if(Lo)if(si(Lo,Mt)!=0){ie.curOp.focus=gt(),Nn(Lo);var Dr=Ao(ve,Le);(Lo.line>=Dr.to||Lo.line<Dr.from)&&setTimeout(lo(ie,function(){Bi==Qr&&Zi(Br)}),150)}else{var Qo=Br.clientY<xn.top?-20:Br.clientY>xn.bottom?20:0;Qo&&setTimeout(lo(ie,function(){Bi==Qr&&(ve.scroller.scrollTop+=Qo,Zi(Br))}),50)}}function er(Br){ie.state.selectingText=!1,Bi=1/0,Br&&(lr(Br),ve.input.focus()),Ci(ve.wrapper.ownerDocument,"mousemove",Cr),Ci(ve.wrapper.ownerDocument,"mouseup",Vr),Le.history.lastSelOrigin=null}var Cr=lo(ie,function(Br){Br.buttons===0||!ki(Br)?er(Br):Zi(Br)}),Vr=lo(ie,er);ie.state.selectingText=Vr,_n(ve.wrapper.ownerDocument,"mousemove",Cr),_n(ve.wrapper.ownerDocument,"mouseup",Vr)}function o0(ie,ae){var fe=ae.anchor,ce=ae.head,ve=In(ie.doc,fe.line);if(si(fe,ce)==0&&fe.sticky==ce.sticky)return ae;var Le=zn(ve);if(!Le)return ae;var Ge=nn(Le,fe.ch,fe.sticky),et=Le[Ge];if(et.from!=fe.ch&&et.to!=fe.ch)return ae;var qe=Ge+(et.from==fe.ch==(et.level!=1)?0:1);if(qe==0||qe==Le.length)return ae;var mt;if(ce.line!=fe.line)mt=(ce.line-fe.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var rn=nn(Le,ce.ch,ce.sticky),Mt=rn-Ge||(ce.ch-fe.ch)*(et.level==1?-1:1);rn==qe-1||rn==qe?mt=Mt<0:mt=Mt>0}var Nn=Le[qe+(mt?-1:0)],xn=mt==(Nn.level==1),Bi=xn?Nn.from:Nn.to,Zi=xn?"after":"before";return fe.ch==Bi&&fe.sticky==Zi?ae:new Sa(new tn(fe.line,Bi,Zi),ce)}function Sf(ie,ae,fe,ce){var ve,Le;if(ae.touches)ve=ae.touches[0].clientX,Le=ae.touches[0].clientY;else try{ve=ae.clientX,Le=ae.clientY}catch(Nn){return!1}if(ve>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;ce&&lr(ae);var Ge=ie.display,et=Ge.lineDiv.getBoundingClientRect();if(Le>et.bottom||!ji(ie,fe))return Di(ae);Le-=et.top-Ge.viewOffset;for(var qe=0;qe<ie.display.gutterSpecs.length;++qe){var mt=Ge.gutters.childNodes[qe];if(mt&&mt.getBoundingClientRect().right>=ve){var rn=Rt(ie.doc,Le),Mt=ie.display.gutterSpecs[qe];return Yn(ie,fe,ie,rn,Mt.className,ae),Di(ae)}}}function xf(ie,ae){return Sf(ie,ae,"gutterClick",!0)}function Pf(ie,ae){Jn(ie.display,ae)||a0(ie,ae)||Ei(ie,ae,"contextmenu")||Ce||ie.display.input.onContextMenu(ae)}function a0(ie,ae){return ji(ie,"gutterContextMenu")?Sf(ie,ae,"gutterContextMenu",!1):!1}function wf(ie){ie.display.wrapper.className=ie.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+ie.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Da(ie)}var wh={toString:function(){return"CodeMirror.Init"}},jg={},Mc={};function s0(ie){var ae=ie.optionHandlers;function fe(ce,ve,Le,Ge){ie.defaults[ce]=ve,Le&&(ae[ce]=Ge?function(et,qe,mt){mt!=wh&&Le(et,qe,mt)}:Le)}ie.defineOption=fe,ie.Init=wh,fe("value","",function(ce,ve){return ce.setValue(ve)},!0),fe("mode",null,function(ce,ve){ce.doc.modeOption=ve,Xo(ce)},!0),fe("indentUnit",2,Xo,!0),fe("indentWithTabs",!1),fe("smartIndent",!0),fe("tabSize",4,function(ce){fc(ce),Da(ce),sa(ce)},!0),fe("lineSeparator",null,function(ce,ve){if(ce.doc.lineSep=ve,!!ve){var Le=[],Ge=ce.doc.first;ce.doc.iter(function(qe){for(var mt=0;;){var rn=qe.text.indexOf(ve,mt);if(rn==-1)break;mt=rn+ve.length,Le.push(tn(Ge,rn))}Ge++});for(var et=Le.length-1;et>=0;et--)qh(ce.doc,ve,Le[et],tn(Le[et].line,Le[et].ch+ve.length))}}),fe("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ce,ve,Le){ce.state.specialChars=new RegExp(ve.source+(ve.test(" ")?"":"| "),"g"),Le!=wh&&ce.refresh()}),fe("specialCharPlaceholder",Vn,function(ce){return ce.refresh()},!0),fe("electricChars",!0),fe("inputStyle",ee?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),fe("spellcheck",!1,function(ce,ve){return ce.getInputField().spellcheck=ve},!0),fe("autocorrect",!1,function(ce,ve){return ce.getInputField().autocorrect=ve},!0),fe("autocapitalize",!1,function(ce,ve){return ce.getInputField().autocapitalize=ve},!0),fe("rtlMoveVisually",!de),fe("wholeLineUpdateBefore",!0),fe("theme","default",function(ce){wf(ce),Bl(ce)},!0),fe("keyMap","default",function(ce,ve,Le){var Ge=td(ve),et=Le!=wh&&td(Le);et&&et.detach&&et.detach(ce,Ge),Ge.attach&&Ge.attach(ce,et||null)}),fe("extraKeys",null),fe("configureMouse",null),fe("lineWrapping",!1,l0,!0),fe("gutters",[],function(ce,ve){ce.display.gutterSpecs=xs(ve,ce.options.lineNumbers),Bl(ce)},!0),fe("fixedGutter",!0,function(ce,ve){ce.display.gutters.style.left=ve?Zs(ce.display)+"px":"0",ce.refresh()},!0),fe("coverGutterNextToScrollbar",!1,function(ce){return es(ce)},!0),fe("scrollbarStyle","native",function(ce){ml(ce),es(ce),ce.display.scrollbars.setScrollTop(ce.doc.scrollTop),ce.display.scrollbars.setScrollLeft(ce.doc.scrollLeft)},!0),fe("lineNumbers",!1,function(ce,ve){ce.display.gutterSpecs=xs(ce.options.gutters,ve),Bl(ce)},!0),fe("firstLineNumber",1,Bl,!0),fe("lineNumberFormatter",function(ce){return ce},Bl,!0),fe("showCursorWhenSelecting",!1,Ta,!0),fe("resetSelectionOnContextMenu",!0),fe("lineWiseCopyCut",!0),fe("pasteLinesPerSelection",!0),fe("selectionsMayTouch",!1),fe("readOnly",!1,function(ce,ve){ve=="nocursor"&&(fl(ce),ce.display.input.blur()),ce.display.input.readOnlyChanged(ve)}),fe("screenReaderLabel",null,function(ce,ve){ve=ve===""?null:ve,ce.display.input.screenReaderLabelChanged(ve)}),fe("disableInput",!1,function(ce,ve){ve||ce.display.input.reset()},!0),fe("dragDrop",!0,Cf),fe("allowDropFileTypes",null),fe("cursorBlinkRate",530),fe("cursorScrollMargin",0),fe("cursorHeight",1,Ta,!0),fe("singleCursorHeightPerLine",!0,Ta,!0),fe("workTime",100),fe("workDelay",100),fe("flattenSpans",!0,fc,!0),fe("addModeClass",!1,fc,!0),fe("pollInterval",100),fe("undoDepth",200,function(ce,ve){return ce.doc.history.undoDepth=ve}),fe("historyEventDelay",1250),fe("viewportMargin",10,function(ce){return ce.refresh()},!0),fe("maxHighlightLength",1e4,fc,!0),fe("moveInputWithCursor",!0,function(ce,ve){ve||ce.display.input.resetPosition()}),fe("tabindex",null,function(ce,ve){return ce.display.input.getField().tabIndex=ve||""}),fe("autofocus",null),fe("direction","ltr",function(ce,ve){return ce.doc.setDirection(ve)},!0),fe("phrases",null)}function Cf(ie,ae,fe){var ce=fe&&fe!=wh;if(!ae!=!ce){var ve=ie.display.dragFunctions,Le=ae?_n:Ci;Le(ie.display.scroller,"dragstart",ve.start),Le(ie.display.scroller,"dragenter",ve.enter),Le(ie.display.scroller,"dragover",ve.over),Le(ie.display.scroller,"dragleave",ve.leave),Le(ie.display.scroller,"drop",ve.drop)}}function l0(ie){ie.options.lineWrapping?(bt(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(Oe(ie.display.wrapper,"CodeMirror-wrap"),qt(ie)),Wr(ie),sa(ie),Da(ie),setTimeout(function(){return es(ie)},100)}function la(ie,ae){var fe=this;if(!(this instanceof la))return new la(ie,ae);this.options=ae=ae?Ut(ae):{},Ut(jg,ae,!1);var ce=ae.value;typeof ce=="string"?ce=new Ns(ce,ae.mode,null,ae.lineSeparator,ae.direction):ae.mode&&(ce.modeOption=ae.mode),this.doc=ce;var ve=new la.inputStyles[ae.inputStyle](this),Le=this.display=new mh(ie,ce,ve,ae);Le.wrapper.CodeMirror=this,wf(this),ae.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ml(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new He,keySeq:null,specialChars:null},ae.autofocus&&!ee&&Le.input.focus(),it&&ze<11&&setTimeout(function(){return fe.display.input.reset(!0)},20),Gd(this),Tl(),yo(this),this.curOp.forceUpdate=!0,af(this,ce),ae.autofocus&&!ee||this.hasFocus()?setTimeout(function(){fe.hasFocus()&&!fe.state.focused&&Jo(fe)},20):fl(this);for(var Ge in Mc)Mc.hasOwnProperty(Ge)&&Mc[Ge](this,ae[Ge],wh);ss(this),ae.finishInit&&ae.finishInit(this);for(var et=0;et<od.length;++et)od[et](this);_a(this),Ue&&ae.lineWrapping&&getComputedStyle(Le.lineDiv).textRendering=="optimizelegibility"&&(Le.lineDiv.style.textRendering="auto")}la.defaults=jg,la.optionHandlers=Mc;function Gd(ie){var ae=ie.display;_n(ae.scroller,"mousedown",lo(ie,wu)),it&&ze<11?_n(ae.scroller,"dblclick",lo(ie,function(qe){if(!Ei(ie,qe)){var mt=Va(ie,qe);if(!(!mt||xf(ie,qe)||Jn(ie.display,qe))){lr(qe);var rn=ie.findWordAt(mt);hf(ie.doc,rn.anchor,rn.head)}}})):_n(ae.scroller,"dblclick",function(qe){return Ei(ie,qe)||lr(qe)}),_n(ae.scroller,"contextmenu",function(qe){return Pf(ie,qe)}),_n(ae.input.getField(),"contextmenu",function(qe){ae.scroller.contains(qe.target)||Pf(ie,qe)});var fe,ce={end:0};function ve(){ae.activeTouch&&(fe=setTimeout(function(){return ae.activeTouch=null},1e3),ce=ae.activeTouch,ce.end=+new Date)}function Le(qe){if(qe.touches.length!=1)return!1;var mt=qe.touches[0];return mt.radiusX<=1&&mt.radiusY<=1}function Ge(qe,mt){if(mt.left==null)return!0;var rn=mt.left-qe.left,Mt=mt.top-qe.top;return rn*rn+Mt*Mt>20*20}_n(ae.scroller,"touchstart",function(qe){if(!Ei(ie,qe)&&!Le(qe)&&!xf(ie,qe)){ae.input.ensurePolled(),clearTimeout(fe);var mt=+new Date;ae.activeTouch={start:mt,moved:!1,prev:mt-ce.end<=300?ce:null},qe.touches.length==1&&(ae.activeTouch.left=qe.touches[0].pageX,ae.activeTouch.top=qe.touches[0].pageY)}}),_n(ae.scroller,"touchmove",function(){ae.activeTouch&&(ae.activeTouch.moved=!0)}),_n(ae.scroller,"touchend",function(qe){var mt=ae.activeTouch;if(mt&&!Jn(ae,qe)&&mt.left!=null&&!mt.moved&&new Date-mt.start<300){var rn=ie.coordsChar(ae.activeTouch,"page"),Mt;!mt.prev||Ge(mt,mt.prev)?Mt=new Sa(rn,rn):!mt.prev.prev||Ge(mt,mt.prev.prev)?Mt=ie.findWordAt(rn):Mt=new Sa(tn(rn.line,0),qn(ie.doc,tn(rn.line+1,0))),ie.setSelection(Mt.anchor,Mt.head),ie.focus(),lr(qe)}ve()}),_n(ae.scroller,"touchcancel",ve),_n(ae.scroller,"scroll",function(){ae.scroller.clientHeight&&(gl(ie,ae.scroller.scrollTop),pl(ie,ae.scroller.scrollLeft,!0),Yn(ie,"scroll",ie))}),_n(ae.scroller,"mousewheel",function(qe){return Ps(ie,qe)}),_n(ae.scroller,"DOMMouseScroll",function(qe){return Ps(ie,qe)}),_n(ae.wrapper,"scroll",function(){return ae.wrapper.scrollTop=ae.wrapper.scrollLeft=0}),ae.dragFunctions={enter:function(qe){Ei(ie,qe)||cr(qe)},over:function(qe){Ei(ie,qe)||($p(ie,qe),cr(qe))},start:function(qe){return qp(ie,qe)},drop:lo(ie,Pg),leave:function(qe){Ei(ie,qe)||e0(ie)}};var et=ae.input.getField();_n(et,"keyup",function(qe){return Bg.call(ie,qe)}),_n(et,"keydown",lo(ie,Dg)),_n(et,"keypress",lo(ie,Pu)),_n(et,"focus",function(qe){return Jo(ie,qe)}),_n(et,"blur",function(qe){return fl(ie,qe)})}var od=[];la.defineInitHook=function(ie){return od.push(ie)};function ps(ie,ae,fe,ce){var ve=ie.doc,Le;fe==null&&(fe="add"),fe=="smart"&&(ve.mode.indent?Le=wo(ie,ae).state:fe="prev");var Ge=ie.options.tabSize,et=In(ve,ae),qe=st(et.text,null,Ge);et.stateAfter&&(et.stateAfter=null);var mt=et.text.match(/^\s*/)[0],rn;if(!ce&&!/\S/.test(et.text))rn=0,fe="not";else if(fe=="smart"&&(rn=ve.mode.indent(Le,et.text.slice(mt.length),et.text),rn==Bt||rn>150)){if(!ce)return;fe="prev"}fe=="prev"?ae>ve.first?rn=st(In(ve,ae-1).text,null,Ge):rn=0:fe=="add"?rn=qe+ie.options.indentUnit:fe=="subtract"?rn=qe-ie.options.indentUnit:typeof fe=="number"&&(rn=qe+fe),rn=Math.max(0,rn);var Mt="",Nn=0;if(ie.options.indentWithTabs)for(var xn=Math.floor(rn/Ge);xn;--xn)Nn+=Ge,Mt+=" ";if(Nn<rn&&(Mt+=vt(rn-Nn)),Mt!=mt)return qh(ve,Mt,tn(ae,0),tn(ae,mt.length),"+input"),et.stateAfter=null,!0;for(var Bi=0;Bi<ve.sel.ranges.length;Bi++){var Zi=ve.sel.ranges[Bi];if(Zi.head.line==ae&&Zi.head.ch<mt.length){var er=tn(ae,mt.length);Sh(ve,Bi,new Sa(er,er));break}}}var al=null;function ad(ie){al=ie}function Lc(ie,ae,fe,ce,ve){var Le=ie.doc;ie.display.shift=!1,ce||(ce=Le.sel);var Ge=+new Date-200,et=ve=="paste"||ie.state.pasteIncoming>Ge,qe=ao(ae),mt=null;if(et&&ce.ranges.length>1)if(al&&al.text.join(`
|
|
`)==ae){if(ce.ranges.length%al.text.length==0){mt=[];for(var rn=0;rn<al.text.length;rn++)mt.push(Le.splitLines(al.text[rn]))}}else qe.length==ce.ranges.length&&ie.options.pasteLinesPerSelection&&(mt=En(qe,function(Cr){return[Cr]}));for(var Mt=ie.curOp.updateInput,Nn=ce.ranges.length-1;Nn>=0;Nn--){var xn=ce.ranges[Nn],Bi=xn.from(),Zi=xn.to();xn.empty()&&(fe&&fe>0?Bi=tn(Bi.line,Bi.ch-fe):ie.state.overwrite&&!et?Zi=tn(Zi.line,Math.min(In(Le,Zi.line).text.length,Zi.ch+zt(qe).length)):et&&al&&al.lineWise&&al.text.join(`
|
|
`)==qe.join(`
|
|
`)&&(Bi=Zi=tn(Bi.line,0)));var er={from:Bi,to:Zi,text:mt?mt[Nn%mt.length]:qe,origin:ve||(et?"paste":ie.state.cutIncoming>Ge?"cut":"+input")};xh(ie.doc,er),ri(ie,"inputRead",ie,er)}ae&&!et&&Zg(ie,ae),Ws(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=Mt),ie.curOp.typing=!0,ie.state.pasteIncoming=ie.state.cutIncoming=-1}function zg(ie,ae){var fe=ie.clipboardData&&ie.clipboardData.getData("Text");if(fe)return ie.preventDefault(),!ae.isReadOnly()&&!ae.options.disableInput&&$r(ae,function(){return Lc(ae,fe,0,null,"paste")}),!0}function Zg(ie,ae){if(!(!ie.options.electricChars||!ie.options.smartIndent))for(var fe=ie.doc.sel,ce=fe.ranges.length-1;ce>=0;ce--){var ve=fe.ranges[ce];if(!(ve.head.ch>100||ce&&fe.ranges[ce-1].head.line==ve.head.line)){var Le=ie.getModeAt(ve.head),Ge=!1;if(Le.electricChars){for(var et=0;et<Le.electricChars.length;et++)if(ae.indexOf(Le.electricChars.charAt(et))>-1){Ge=ps(ie,ve.head.line,"smart");break}}else Le.electricInput&&Le.electricInput.test(In(ie.doc,ve.head.line).text.slice(0,ve.head.ch))&&(Ge=ps(ie,ve.head.line,"smart"));Ge&&ri(ie,"electricInput",ie,ve.head.line)}}}function Wg(ie){for(var ae=[],fe=[],ce=0;ce<ie.doc.sel.ranges.length;ce++){var ve=ie.doc.sel.ranges[ce].head.line,Le={anchor:tn(ve,0),head:tn(ve+1,0)};fe.push(Le),ae.push(ie.getRange(Le.anchor,Le.head))}return{text:ae,ranges:fe}}function Hg(ie,ae,fe,ce){ie.setAttribute("autocorrect",fe?"":"off"),ie.setAttribute("autocapitalize",ce?"":"off"),ie.setAttribute("spellcheck",!!ae)}function Gg(){var ie=Ie("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),ae=Ie("div",[ie],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ue?ie.style.width="1000px":ie.setAttribute("wrap","off"),Ee&&(ie.style.border="1px solid black"),Hg(ie),ae}function Ch(ie){var ae=ie.optionHandlers,fe=ie.helpers={};ie.prototype={constructor:ie,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ce,ve){var Le=this.options,Ge=Le[ce];Le[ce]==ve&&ce!="mode"||(Le[ce]=ve,ae.hasOwnProperty(ce)&&lo(this,ae[ce])(this,ve,Ge),Yn(this,"optionChange",this,ce))},getOption:function(ce){return this.options[ce]},getDoc:function(){return this.doc},addKeyMap:function(ce,ve){this.state.keyMaps[ve?"push":"unshift"](td(ce))},removeKeyMap:function(ce){for(var ve=this.state.keyMaps,Le=0;Le<ve.length;++Le)if(ve[Le]==ce||ve[Le].name==ce)return ve.splice(Le,1),!0},addOverlay:Mo(function(ce,ve){var Le=ce.token?ce:ie.getMode(this.options,ce);if(Le.startState)throw new Error("Overlays may not be stateful.");kn(this.state.overlays,{mode:Le,modeSpec:ce,opaque:ve&&ve.opaque,priority:ve&&ve.priority||0},function(Ge){return Ge.priority}),this.state.modeGen++,sa(this)}),removeOverlay:Mo(function(ce){for(var ve=this.state.overlays,Le=0;Le<ve.length;++Le){var Ge=ve[Le].modeSpec;if(Ge==ce||typeof ce=="string"&&Ge.name==ce){ve.splice(Le,1),this.state.modeGen++,sa(this);return}}}),indentLine:Mo(function(ce,ve,Le){typeof ve!="string"&&typeof ve!="number"&&(ve==null?ve=this.options.smartIndent?"smart":"prev":ve=ve?"add":"subtract"),ai(this.doc,ce)&&ps(this,ce,ve,Le)}),indentSelection:Mo(function(ce){for(var ve=this.doc.sel.ranges,Le=-1,Ge=0;Ge<ve.length;Ge++){var et=ve[Ge];if(et.empty())et.head.line>Le&&(ps(this,et.head.line,ce,!0),Le=et.head.line,Ge==this.doc.sel.primIndex&&Ws(this));else{var qe=et.from(),mt=et.to(),rn=Math.max(Le,qe.line);Le=Math.min(this.lastLine(),mt.line-(mt.ch?0:1))+1;for(var Mt=rn;Mt<Le;++Mt)ps(this,Mt,ce);var Nn=this.doc.sel.ranges;qe.ch==0&&ve.length==Nn.length&&Nn[Ge].from().ch>0&&Sh(this.doc,Ge,new Sa(qe,Nn[Ge].to()),Ft)}}}),getTokenAt:function(ce,ve){return Jr(this,ce,ve)},getLineTokens:function(ce,ve){return Jr(this,tn(ce),ve,!0)},getTokenTypeAt:function(ce){ce=qn(this.doc,ce);var ve=Hr(this,In(this.doc,ce.line)),Le=0,Ge=(ve.length-1)/2,et=ce.ch,qe;if(et==0)qe=ve[2];else for(;;){var mt=Le+Ge>>1;if((mt?ve[mt*2-1]:0)>=et)Ge=mt;else if(ve[mt*2+1]<et)Le=mt+1;else{qe=ve[mt*2+2];break}}var rn=qe?qe.indexOf("overlay "):-1;return rn<0?qe:rn==0?null:qe.slice(0,rn-1)},getModeAt:function(ce){var ve=this.doc.mode;return ve.innerMode?ie.innerMode(ve,this.getTokenAt(ce).state).mode:ve},getHelper:function(ce,ve){return this.getHelpers(ce,ve)[0]},getHelpers:function(ce,ve){var Le=[];if(!fe.hasOwnProperty(ve))return Le;var Ge=fe[ve],et=this.getModeAt(ce);if(typeof et[ve]=="string")Ge[et[ve]]&&Le.push(Ge[et[ve]]);else if(et[ve])for(var qe=0;qe<et[ve].length;qe++){var mt=Ge[et[ve][qe]];mt&&Le.push(mt)}else et.helperType&&Ge[et.helperType]?Le.push(Ge[et.helperType]):Ge[et.name]&&Le.push(Ge[et.name]);for(var rn=0;rn<Ge._global.length;rn++){var Mt=Ge._global[rn];Mt.pred(et,this)&&jt(Le,Mt.val)==-1&&Le.push(Mt.val)}return Le},getStateAfter:function(ce,ve){var Le=this.doc;return ce=Ot(Le,ce==null?Le.first+Le.size-1:ce),wo(this,ce+1,ve).state},cursorCoords:function(ce,ve){var Le,Ge=this.doc.sel.primary();return ce==null?Le=Ge.head:typeof ce=="object"?Le=qn(this.doc,ce):Le=ce?Ge.from():Ge.to(),xr(this,Le,ve||"page")},charCoords:function(ce,ve){return Ea(this,qn(this.doc,ce),ve||"page")},coordsChar:function(ce,ve){return ce=ko(this,ce,ve||"page"),yr(this,ce.left,ce.top)},lineAtHeight:function(ce,ve){return ce=ko(this,{top:ce,left:0},ve||"page").top,Rt(this.doc,ce+this.display.viewOffset)},heightAtLine:function(ce,ve,Le){var Ge=!1,et;if(typeof ce=="number"){var qe=this.doc.first+this.doc.size-1;ce<this.doc.first?ce=this.doc.first:ce>qe&&(ce=qe,Ge=!0),et=In(this.doc,ce)}else et=ce;return Do(this,et,{top:0,left:0},ve||"page",Le||Ge).top+(Ge?this.doc.height-Ct(et):0)},defaultTextHeight:function(){return ca(this.display)},defaultCharWidth:function(){return Ga(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ce,ve,Le,Ge,et){var qe=this.display;ce=xr(this,qn(this.doc,ce));var mt=ce.bottom,rn=ce.left;if(ve.style.position="absolute",ve.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ve),qe.sizer.appendChild(ve),Ge=="over")mt=ce.top;else if(Ge=="above"||Ge=="near"){var Mt=Math.max(qe.wrapper.clientHeight,this.doc.height),Nn=Math.max(qe.sizer.clientWidth,qe.lineSpace.clientWidth);(Ge=="above"||ce.bottom+ve.offsetHeight>Mt)&&ce.top>ve.offsetHeight?mt=ce.top-ve.offsetHeight:ce.bottom+ve.offsetHeight<=Mt&&(mt=ce.bottom),rn+ve.offsetWidth>Nn&&(rn=Nn-ve.offsetWidth)}ve.style.top=mt+"px",ve.style.left=ve.style.right="",et=="right"?(rn=qe.sizer.clientWidth-ve.offsetWidth,ve.style.right="0px"):(et=="left"?rn=0:et=="middle"&&(rn=(qe.sizer.clientWidth-ve.offsetWidth)/2),ve.style.left=rn+"px"),Le&&Dl(this,{left:rn,top:mt,right:rn+ve.offsetWidth,bottom:mt+ve.offsetHeight})},triggerOnKeyDown:Mo(Dg),triggerOnKeyPress:Mo(Pu),triggerOnKeyUp:Bg,triggerOnMouseDown:Mo(wu),execCommand:function(ce){if(Ph.hasOwnProperty(ce))return Ph[ce].call(null,this)},triggerElectric:Mo(function(ce){Zg(this,ce)}),findPosH:function(ce,ve,Le,Ge){var et=1;ve<0&&(et=-1,ve=-ve);for(var qe=qn(this.doc,ce),mt=0;mt<ve&&(qe=bc(this.doc,qe,et,Le,Ge),!qe.hitSide);++mt);return qe},moveH:Mo(function(ce,ve){var Le=this;this.extendSelectionsBy(function(Ge){return Le.display.shift||Le.doc.extend||Ge.empty()?bc(Le.doc,Ge.head,ce,ve,Le.options.rtlMoveVisually):ce<0?Ge.from():Ge.to()},Vt)}),deleteH:Mo(function(ce,ve){var Le=this.doc.sel,Ge=this.doc;Le.somethingSelected()?Ge.replaceSelection("",null,"+delete"):Sl(this,function(et){var qe=bc(Ge,et.head,ce,ve,!1);return ce<0?{from:qe,to:et.head}:{from:et.head,to:qe}})}),findPosV:function(ce,ve,Le,Ge){var et=1,qe=Ge;ve<0&&(et=-1,ve=-ve);for(var mt=qn(this.doc,ce),rn=0;rn<ve;++rn){var Mt=xr(this,mt,"div");if(qe==null?qe=Mt.left:Mt.left=qe,mt=Eh(this,Mt,et,Le),mt.hitSide)break}return mt},moveV:Mo(function(ce,ve){var Le=this,Ge=this.doc,et=[],qe=!this.display.shift&&!Ge.extend&&Ge.sel.somethingSelected();if(Ge.extendSelectionsBy(function(rn){if(qe)return ce<0?rn.from():rn.to();var Mt=xr(Le,rn.head,"div");rn.goalColumn!=null&&(Mt.left=rn.goalColumn),et.push(Mt.left);var Nn=Eh(Le,Mt,ce,ve);return ve=="page"&&rn==Ge.sel.primary()&&vu(Le,Ea(Le,Nn,"div").top-Mt.top),Nn},Vt),et.length)for(var mt=0;mt<Ge.sel.ranges.length;mt++)Ge.sel.ranges[mt].goalColumn=et[mt]}),findWordAt:function(ce){var ve=this.doc,Le=In(ve,ce.line).text,Ge=ce.ch,et=ce.ch;if(Le){var qe=this.getHelper(ce,"wordChars");(ce.sticky=="before"||et==Le.length)&&Ge?--Ge:++et;for(var mt=Le.charAt(Ge),rn=Ye(mt,qe)?function(Mt){return Ye(Mt,qe)}:/\s/.test(mt)?function(Mt){return/\s/.test(Mt)}:function(Mt){return!/\s/.test(Mt)&&!Ye(Mt)};Ge>0&&rn(Le.charAt(Ge-1));)--Ge;for(;et<Le.length&&rn(Le.charAt(et));)++et}return new Sa(tn(ce.line,Ge),tn(ce.line,et))},toggleOverwrite:function(ce){ce!=null&&ce==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?bt(this.display.cursorDiv,"CodeMirror-overwrite"):Oe(this.display.cursorDiv,"CodeMirror-overwrite"),Yn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==gt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Mo(function(ce,ve){Vl(this,ce,ve)}),getScrollInfo:function(){var ce=this.display.scroller;return{left:ce.scrollLeft,top:ce.scrollTop,height:ce.scrollHeight-br(this)-this.display.barHeight,width:ce.scrollWidth-br(this)-this.display.barWidth,clientHeight:mo(this),clientWidth:co(this)}},scrollIntoView:Mo(function(ce,ve){ce==null?(ce={from:this.doc.sel.primary().head,to:null},ve==null&&(ve=this.options.cursorScrollMargin)):typeof ce=="number"?ce={from:tn(ce,0),to:null}:ce.from==null&&(ce={from:ce,to:null}),ce.to||(ce.to=ce.from),ce.margin=ve||0,ce.from.line!=null?Uo(this,ce):yu(this,ce.from,ce.to,ce.margin)}),setSize:Mo(function(ce,ve){var Le=this,Ge=function(qe){return typeof qe=="number"||/^\d+$/.test(String(qe))?qe+"px":qe};ce!=null&&(this.display.wrapper.style.width=Ge(ce)),ve!=null&&(this.display.wrapper.style.height=Ge(ve)),this.options.lineWrapping&&Oo(this);var et=this.display.viewFrom;this.doc.iter(et,this.display.viewTo,function(qe){if(qe.widgets){for(var mt=0;mt<qe.widgets.length;mt++)if(qe.widgets[mt].noHScroll){vo(Le,et,"widget");break}}++et}),this.curOp.forceUpdate=!0,Yn(this,"refresh",this)}),operation:function(ce){return $r(this,ce)},startOperation:function(){return yo(this)},endOperation:function(){return _a(this)},refresh:Mo(function(){var ce=this.display.cachedTextHeight;sa(this),this.curOp.forceUpdate=!0,Da(this),Vl(this,this.doc.scrollLeft,this.doc.scrollTop),gh(this.display),(ce==null||Math.abs(ce-ca(this.display))>.5||this.options.lineWrapping)&&Wr(this),Yn(this,"refresh",this)}),swapDoc:Mo(function(ce){var ve=this.doc;return ve.cm=null,this.state.selectingText&&this.state.selectingText(),af(this,ce),Da(this),this.display.input.reset(),Vl(this,ce.scrollLeft,ce.scrollTop),this.curOp.forceScroll=!0,ri(this,"swapDoc",this,ve),ve}),phrase:function(ce){var ve=this.options.phrases;return ve&&Object.prototype.hasOwnProperty.call(ve,ce)?ve[ce]:ce},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Qi(ie),ie.registerHelper=function(ce,ve,Le){fe.hasOwnProperty(ce)||(fe[ce]=ie[ce]={_global:[]}),fe[ce][ve]=Le},ie.registerGlobalHelper=function(ce,ve,Le,Ge){ie.registerHelper(ce,ve,Ge),fe[ce]._global.push({pred:Le,val:Ge})}}function bc(ie,ae,fe,ce,ve){var Le=ae,Ge=fe,et=In(ie,ae.line),qe=ve&&ie.direction=="rtl"?-fe:fe;function mt(){var Vr=ae.line+qe;return Vr<ie.first||Vr>=ie.first+ie.size?!1:(ae=new tn(Vr,ae.ch,ae.sticky),et=In(ie,Vr))}function rn(Vr){var Br;if(ce=="codepoint"){var Qr=et.text.charCodeAt(ae.ch+(ce>0?0:-1));isNaN(Qr)?Br=null:Br=new tn(ae.line,Math.max(0,Math.min(et.text.length,ae.ch+fe*(Qr>=55296&&Qr<56320?2:1))),-fe)}else ve?Br=gf(ie.cm,et,ae,fe):Br=os(et,ae,fe);if(Br==null)if(!Vr&&mt())ae=Fc(ve,ie.cm,et,ae.line,qe);else return!1;else ae=Br;return!0}if(ce=="char"||ce=="codepoint")rn();else if(ce=="column")rn(!0);else if(ce=="word"||ce=="group")for(var Mt=null,Nn=ce=="group",xn=ie.cm&&ie.cm.getHelper(ae,"wordChars"),Bi=!0;!(fe<0&&!rn(!Bi));Bi=!1){var Zi=et.text.charAt(ae.ch)||`
|
|
`,er=Ye(Zi,xn)?"w":Nn&&Zi==`
|
|
`?"n":!Nn||/\s/.test(Zi)?null:"p";if(Nn&&!Bi&&!er&&(er="s"),Mt&&Mt!=er){fe<0&&(fe=1,rn(),ae.sticky="after");break}if(er&&(Mt=er),fe>0&&!rn(!Bi))break}var Cr=xc(ie,ae,Le,Ge,!0);return Ri(Le,Cr)&&(Cr.hitSide=!0),Cr}function Eh(ie,ae,fe,ce){var ve=ie.doc,Le=ae.left,Ge;if(ce=="page"){var et=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),qe=Math.max(et-.5*ca(ie.display),3);Ge=(fe>0?ae.bottom:ae.top)+fe*qe}else ce=="line"&&(Ge=fe>0?ae.bottom+3:ae.top-3);for(var mt;mt=yr(ie,Le,Ge),!!mt.outside;){if(fe<0?Ge<=0:Ge>=ve.height){mt.hitSide=!0;break}Ge+=fe*5}return mt}var Fa=function(ie){this.cm=ie,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new He,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Fa.prototype.init=function(ie){var ae=this,fe=this,ce=fe.cm,ve=fe.div=ie.lineDiv;Hg(ve,ce.options.spellcheck,ce.options.autocorrect,ce.options.autocapitalize);function Le(et){for(var qe=et.target;qe;qe=qe.parentNode){if(qe==ve)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(qe.className))break}return!1}_n(ve,"paste",function(et){!Le(et)||Ei(ce,et)||zg(et,ce)||ze<=11&&setTimeout(lo(ce,function(){return ae.updateFromDOM()}),20)}),_n(ve,"compositionstart",function(et){ae.composing={data:et.data,done:!1}}),_n(ve,"compositionupdate",function(et){ae.composing||(ae.composing={data:et.data,done:!1})}),_n(ve,"compositionend",function(et){ae.composing&&(et.data!=ae.composing.data&&ae.readFromDOMSoon(),ae.composing.done=!0)}),_n(ve,"touchstart",function(){return fe.forceCompositionEnd()}),_n(ve,"input",function(){ae.composing||ae.readFromDOMSoon()});function Ge(et){if(!(!Le(et)||Ei(ce,et))){if(ce.somethingSelected())ad({lineWise:!1,text:ce.getSelections()}),et.type=="cut"&&ce.replaceSelection("",null,"cut");else if(ce.options.lineWiseCopyCut){var qe=Wg(ce);ad({lineWise:!0,text:qe.text}),et.type=="cut"&&ce.operation(function(){ce.setSelections(qe.ranges,0,Ft),ce.replaceSelection("",null,"cut")})}else return;if(et.clipboardData){et.clipboardData.clearData();var mt=al.text.join(`
|
|
`);if(et.clipboardData.setData("Text",mt),et.clipboardData.getData("Text")==mt){et.preventDefault();return}}var rn=Gg(),Mt=rn.firstChild;ce.display.lineSpace.insertBefore(rn,ce.display.lineSpace.firstChild),Mt.value=al.text.join(`
|
|
`);var Nn=document.activeElement;Tt(Mt),setTimeout(function(){ce.display.lineSpace.removeChild(rn),Nn.focus(),Nn==ve&&fe.showPrimarySelection()},50)}}_n(ve,"copy",Ge),_n(ve,"cut",Ge)},Fa.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},Fa.prototype.prepareSelection=function(){var ie=bl(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},Fa.prototype.showSelection=function(ie,ae){!ie||!this.cm.display.view.length||((ie.focus||ae)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},Fa.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Fa.prototype.showPrimarySelection=function(){var ie=this.getSelection(),ae=this.cm,fe=ae.doc.sel.primary(),ce=fe.from(),ve=fe.to();if(ae.display.viewTo==ae.display.viewFrom||ce.line>=ae.display.viewTo||ve.line<ae.display.viewFrom){ie.removeAllRanges();return}var Le=Dc(ae,ie.anchorNode,ie.anchorOffset),Ge=Dc(ae,ie.focusNode,ie.focusOffset);if(!(Le&&!Le.bad&&Ge&&!Ge.bad&&si(Bn(Le,Ge),ce)==0&&si(tr(Le,Ge),ve)==0)){var et=ae.display.view,qe=ce.line>=ae.display.viewFrom&&Ef(ae,ce)||{node:et[0].measure.map[2],offset:0},mt=ve.line<ae.display.viewTo&&Ef(ae,ve);if(!mt){var rn=et[et.length-1].measure,Mt=rn.maps?rn.maps[rn.maps.length-1]:rn.map;mt={node:Mt[Mt.length-1],offset:Mt[Mt.length-2]-Mt[Mt.length-3]}}if(!qe||!mt){ie.removeAllRanges();return}var Nn=ie.rangeCount&&ie.getRangeAt(0),xn;try{xn=rt(qe.node,qe.offset,mt.offset,mt.node)}catch(Bi){}xn&&(!me&&ae.state.focused?(ie.collapse(qe.node,qe.offset),xn.collapsed||(ie.removeAllRanges(),ie.addRange(xn))):(ie.removeAllRanges(),ie.addRange(xn)),Nn&&ie.anchorNode==null?ie.addRange(Nn):me&&this.startGracePeriod()),this.rememberSelection()}},Fa.prototype.startGracePeriod=function(){var ie=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){ie.gracePeriod=!1,ie.selectionChanged()&&ie.cm.operation(function(){return ie.cm.curOp.selectionChanged=!0})},20)},Fa.prototype.showMultipleSelections=function(ie){Be(this.cm.display.cursorDiv,ie.cursors),Be(this.cm.display.selectionDiv,ie.selection)},Fa.prototype.rememberSelection=function(){var ie=this.getSelection();this.lastAnchorNode=ie.anchorNode,this.lastAnchorOffset=ie.anchorOffset,this.lastFocusNode=ie.focusNode,this.lastFocusOffset=ie.focusOffset},Fa.prototype.selectionInEditor=function(){var ie=this.getSelection();if(!ie.rangeCount)return!1;var ae=ie.getRangeAt(0).commonAncestorContainer;return xt(this.div,ae)},Fa.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Fa.prototype.blur=function(){this.div.blur()},Fa.prototype.getField=function(){return this.div},Fa.prototype.supportsTouch=function(){return!0},Fa.prototype.receivedFocus=function(){var ie=this;this.selectionInEditor()?this.pollSelection():$r(this.cm,function(){return ie.cm.curOp.selectionChanged=!0});function ae(){ie.cm.state.focused&&(ie.pollSelection(),ie.polling.set(ie.cm.options.pollInterval,ae))}this.polling.set(this.cm.options.pollInterval,ae)},Fa.prototype.selectionChanged=function(){var ie=this.getSelection();return ie.anchorNode!=this.lastAnchorNode||ie.anchorOffset!=this.lastAnchorOffset||ie.focusNode!=this.lastFocusNode||ie.focusOffset!=this.lastFocusOffset},Fa.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var ie=this.getSelection(),ae=this.cm;if(ne&&ot&&this.cm.display.gutterSpecs.length&&Vg(ie.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var fe=Dc(ae,ie.anchorNode,ie.anchorOffset),ce=Dc(ae,ie.focusNode,ie.focusOffset);fe&&ce&&$r(ae,function(){Gs(ae.doc,Qu(fe,ce),Ft),(fe.bad||ce.bad)&&(ae.curOp.selectionChanged=!0)})}}},Fa.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var ie=this.cm,ae=ie.display,fe=ie.doc.sel.primary(),ce=fe.from(),ve=fe.to();if(ce.ch==0&&ce.line>ie.firstLine()&&(ce=tn(ce.line-1,In(ie.doc,ce.line-1).length)),ve.ch==In(ie.doc,ve.line).text.length&&ve.line<ie.lastLine()&&(ve=tn(ve.line+1,0)),ce.line<ae.viewFrom||ve.line>ae.viewTo-1)return!1;var Le,Ge,et;ce.line==ae.viewFrom||(Le=$a(ie,ce.line))==0?(Ge=lt(ae.view[0].line),et=ae.view[0].node):(Ge=lt(ae.view[Le].line),et=ae.view[Le-1].node.nextSibling);var qe=$a(ie,ve.line),mt,rn;if(qe==ae.view.length-1?(mt=ae.viewTo-1,rn=ae.lineDiv.lastChild):(mt=lt(ae.view[qe+1].line)-1,rn=ae.view[qe+1].node.previousSibling),!et)return!1;for(var Mt=ie.doc.splitLines(_d(ie,et,rn,Ge,mt)),Nn=Vi(ie.doc,tn(Ge,0),tn(mt,In(ie.doc,mt).text.length));Mt.length>1&&Nn.length>1;)if(zt(Mt)==zt(Nn))Mt.pop(),Nn.pop(),mt--;else if(Mt[0]==Nn[0])Mt.shift(),Nn.shift(),Ge++;else break;for(var xn=0,Bi=0,Zi=Mt[0],er=Nn[0],Cr=Math.min(Zi.length,er.length);xn<Cr&&Zi.charCodeAt(xn)==er.charCodeAt(xn);)++xn;for(var Vr=zt(Mt),Br=zt(Nn),Qr=Math.min(Vr.length-(Mt.length==1?xn:0),Br.length-(Nn.length==1?xn:0));Bi<Qr&&Vr.charCodeAt(Vr.length-Bi-1)==Br.charCodeAt(Br.length-Bi-1);)++Bi;if(Mt.length==1&&Nn.length==1&&Ge==ce.line)for(;xn&&xn>ce.ch&&Vr.charCodeAt(Vr.length-Bi-1)==Br.charCodeAt(Br.length-Bi-1);)xn--,Bi++;Mt[Mt.length-1]=Vr.slice(0,Vr.length-Bi).replace(/^\u200b+/,""),Mt[0]=Mt[0].slice(xn).replace(/\u200b+$/,"");var Lo=tn(Ge,xn),Dr=tn(mt,Nn.length?zt(Nn).length-Bi:0);if(Mt.length>1||Mt[0]||si(Lo,Dr))return qh(ie.doc,Mt,Lo,Dr,"+input"),!0},Fa.prototype.ensurePolled=function(){this.forceCompositionEnd()},Fa.prototype.reset=function(){this.forceCompositionEnd()},Fa.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Fa.prototype.readFromDOMSoon=function(){var ie=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(ie.readDOMTimeout=null,ie.composing)if(ie.composing.done)ie.composing=null;else return;ie.updateFromDOM()},80))},Fa.prototype.updateFromDOM=function(){var ie=this;(this.cm.isReadOnly()||!this.pollContent())&&$r(this.cm,function(){return sa(ie.cm)})},Fa.prototype.setUneditable=function(ie){ie.contentEditable="false"},Fa.prototype.onKeyPress=function(ie){ie.charCode==0||this.composing||(ie.preventDefault(),this.cm.isReadOnly()||lo(this.cm,Lc)(this.cm,String.fromCharCode(ie.charCode==null?ie.keyCode:ie.charCode),0))},Fa.prototype.readOnlyChanged=function(ie){this.div.contentEditable=String(ie!="nocursor")},Fa.prototype.onContextMenu=function(){},Fa.prototype.resetPosition=function(){},Fa.prototype.needsContentAttribute=!0;function Ef(ie,ae){var fe=ar(ie,ae.line);if(!fe||fe.hidden)return null;var ce=In(ie.doc,ae.line),ve=qr(fe,ce,ae.line),Le=zn(ce,ie.doc.direction),Ge="left";if(Le){var et=nn(Le,ae.ch);Ge=et%2?"right":"left"}var qe=Ko(ve.map,ae.ch,Ge);return qe.offset=qe.collapse=="right"?qe.end:qe.start,qe}function Vg(ie){for(var ae=ie;ae;ae=ae.parentNode)if(/CodeMirror-gutter-wrapper/.test(ae.className))return!0;return!1}function Vd(ie,ae){return ae&&(ie.bad=!0),ie}function _d(ie,ae,fe,ce,ve){var Le="",Ge=!1,et=ie.doc.lineSeparator(),qe=!1;function mt(xn){return function(Bi){return Bi.id==xn}}function rn(){Ge&&(Le+=et,qe&&(Le+=et),Ge=qe=!1)}function Mt(xn){xn&&(rn(),Le+=xn)}function Nn(xn){if(xn.nodeType==1){var Bi=xn.getAttribute("cm-text");if(Bi){Mt(Bi);return}var Zi=xn.getAttribute("cm-marker"),er;if(Zi){var Cr=ie.findMarks(tn(ce,0),tn(ve+1,0),mt(+Zi));Cr.length&&(er=Cr[0].find(0))&&Mt(Vi(ie.doc,er.from,er.to).join(et));return}if(xn.getAttribute("contenteditable")=="false")return;var Vr=/^(pre|div|p|li|table|br)$/i.test(xn.nodeName);if(!/^br$/i.test(xn.nodeName)&&xn.textContent.length==0)return;Vr&&rn();for(var Br=0;Br<xn.childNodes.length;Br++)Nn(xn.childNodes[Br]);/^(pre|p)$/i.test(xn.nodeName)&&(qe=!0),Vr&&(Ge=!0)}else xn.nodeType==3&&Mt(xn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Nn(ae),ae!=fe;)ae=ae.nextSibling,qe=!1;return Le}function Dc(ie,ae,fe){var ce;if(ae==ie.display.lineDiv){if(ce=ie.display.lineDiv.childNodes[fe],!ce)return Vd(ie.clipPos(tn(ie.display.viewTo-1)),!0);ae=null,fe=0}else for(ce=ae;;ce=ce.parentNode){if(!ce||ce==ie.display.lineDiv)return null;if(ce.parentNode&&ce.parentNode==ie.display.lineDiv)break}for(var ve=0;ve<ie.display.view.length;ve++){var Le=ie.display.view[ve];if(Le.node==ce)return u0(Le,ae,fe)}}function u0(ie,ae,fe){var ce=ie.text.firstChild,ve=!1;if(!ae||!xt(ce,ae))return Vd(tn(lt(ie.line),0),!0);if(ae==ce&&(ve=!0,ae=ce.childNodes[fe],fe=0,!ae)){var Le=ie.rest?zt(ie.rest):ie.line;return Vd(tn(lt(Le),Le.text.length),ve)}var Ge=ae.nodeType==3?ae:null,et=ae;for(!Ge&&ae.childNodes.length==1&&ae.firstChild.nodeType==3&&(Ge=ae.firstChild,fe&&(fe=Ge.nodeValue.length));et.parentNode!=ce;)et=et.parentNode;var qe=ie.measure,mt=qe.maps;function rn(er,Cr,Vr){for(var Br=-1;Br<(mt?mt.length:0);Br++)for(var Qr=Br<0?qe.map:mt[Br],Lo=0;Lo<Qr.length;Lo+=3){var Dr=Qr[Lo+2];if(Dr==er||Dr==Cr){var Qo=lt(Br<0?ie.line:ie.rest[Br]),Oa=Qr[Lo]+Vr;return(Vr<0||Dr!=er)&&(Oa=Qr[Lo+(Vr?1:0)]),tn(Qo,Oa)}}}var Mt=rn(Ge,et,fe);if(Mt)return Vd(Mt,ve);for(var Nn=et.nextSibling,xn=Ge?Ge.nodeValue.length-fe:0;Nn;Nn=Nn.nextSibling){if(Mt=rn(Nn,Nn.firstChild,0),Mt)return Vd(tn(Mt.line,Mt.ch-xn),ve);xn+=Nn.textContent.length}for(var Bi=et.previousSibling,Zi=fe;Bi;Bi=Bi.previousSibling){if(Mt=rn(Bi,Bi.firstChild,-1),Mt)return Vd(tn(Mt.line,Mt.ch+Zi),ve);Zi+=Bi.textContent.length}}var ds=function(ie){this.cm=ie,this.prevInput="",this.pollingFast=!1,this.polling=new He,this.hasSelection=!1,this.composing=null};ds.prototype.init=function(ie){var ae=this,fe=this,ce=this.cm;this.createField(ie);var ve=this.textarea;ie.wrapper.insertBefore(this.wrapper,ie.wrapper.firstChild),Ee&&(ve.style.width="0px"),_n(ve,"input",function(){it&&ze>=9&&ae.hasSelection&&(ae.hasSelection=null),fe.poll()}),_n(ve,"paste",function(Ge){Ei(ce,Ge)||zg(Ge,ce)||(ce.state.pasteIncoming=+new Date,fe.fastPoll())});function Le(Ge){if(!Ei(ce,Ge)){if(ce.somethingSelected())ad({lineWise:!1,text:ce.getSelections()});else if(ce.options.lineWiseCopyCut){var et=Wg(ce);ad({lineWise:!0,text:et.text}),Ge.type=="cut"?ce.setSelections(et.ranges,null,Ft):(fe.prevInput="",ve.value=et.text.join(`
|
|
`),Tt(ve))}else return;Ge.type=="cut"&&(ce.state.cutIncoming=+new Date)}}_n(ve,"cut",Le),_n(ve,"copy",Le),_n(ie.scroller,"paste",function(Ge){if(!(Jn(ie,Ge)||Ei(ce,Ge))){if(!ve.dispatchEvent){ce.state.pasteIncoming=+new Date,fe.focus();return}var et=new Event("paste");et.clipboardData=Ge.clipboardData,ve.dispatchEvent(et)}}),_n(ie.lineSpace,"selectstart",function(Ge){Jn(ie,Ge)||lr(Ge)}),_n(ve,"compositionstart",function(){var Ge=ce.getCursor("from");fe.composing&&fe.composing.range.clear(),fe.composing={start:Ge,range:ce.markText(Ge,ce.getCursor("to"),{className:"CodeMirror-composing"})}}),_n(ve,"compositionend",function(){fe.composing&&(fe.poll(),fe.composing.range.clear(),fe.composing=null)})},ds.prototype.createField=function(ie){this.wrapper=Gg(),this.textarea=this.wrapper.firstChild},ds.prototype.screenReaderLabelChanged=function(ie){ie?this.textarea.setAttribute("aria-label",ie):this.textarea.removeAttribute("aria-label")},ds.prototype.prepareSelection=function(){var ie=this.cm,ae=ie.display,fe=ie.doc,ce=bl(ie);if(ie.options.moveInputWithCursor){var ve=xr(ie,fe.sel.primary().head,"div"),Le=ae.wrapper.getBoundingClientRect(),Ge=ae.lineDiv.getBoundingClientRect();ce.teTop=Math.max(0,Math.min(ae.wrapper.clientHeight-10,ve.top+Ge.top-Le.top)),ce.teLeft=Math.max(0,Math.min(ae.wrapper.clientWidth-10,ve.left+Ge.left-Le.left))}return ce},ds.prototype.showSelection=function(ie){var ae=this.cm,fe=ae.display;Be(fe.cursorDiv,ie.cursors),Be(fe.selectionDiv,ie.selection),ie.teTop!=null&&(this.wrapper.style.top=ie.teTop+"px",this.wrapper.style.left=ie.teLeft+"px")},ds.prototype.reset=function(ie){if(!(this.contextMenuPending||this.composing)){var ae=this.cm;if(ae.somethingSelected()){this.prevInput="";var fe=ae.getSelection();this.textarea.value=fe,ae.state.focused&&Tt(this.textarea),it&&ze>=9&&(this.hasSelection=fe)}else ie||(this.prevInput=this.textarea.value="",it&&ze>=9&&(this.hasSelection=null))}},ds.prototype.getField=function(){return this.textarea},ds.prototype.supportsTouch=function(){return!1},ds.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ee||gt()!=this.textarea))try{this.textarea.focus()}catch(ie){}},ds.prototype.blur=function(){this.textarea.blur()},ds.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ds.prototype.receivedFocus=function(){this.slowPoll()},ds.prototype.slowPoll=function(){var ie=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ie.poll(),ie.cm.state.focused&&ie.slowPoll()})},ds.prototype.fastPoll=function(){var ie=!1,ae=this;ae.pollingFast=!0;function fe(){var ce=ae.poll();!ce&&!ie?(ie=!0,ae.polling.set(60,fe)):(ae.pollingFast=!1,ae.slowPoll())}ae.polling.set(20,fe)},ds.prototype.poll=function(){var ie=this,ae=this.cm,fe=this.textarea,ce=this.prevInput;if(this.contextMenuPending||!ae.state.focused||be(fe)&&!ce&&!this.composing||ae.isReadOnly()||ae.options.disableInput||ae.state.keySeq)return!1;var ve=fe.value;if(ve==ce&&!ae.somethingSelected())return!1;if(it&&ze>=9&&this.hasSelection===ve||ue&&/[\uf700-\uf7ff]/.test(ve))return ae.display.input.reset(),!1;if(ae.doc.sel==ae.display.selForContextMenu){var Le=ve.charCodeAt(0);if(Le==8203&&!ce&&(ce="\u200B"),Le==8666)return this.reset(),this.cm.execCommand("undo")}for(var Ge=0,et=Math.min(ce.length,ve.length);Ge<et&&ce.charCodeAt(Ge)==ve.charCodeAt(Ge);)++Ge;return $r(ae,function(){Lc(ae,ve.slice(Ge),ce.length-Ge,null,ie.composing?"*compose":null),ve.length>1e3||ve.indexOf(`
|
|
`)>-1?fe.value=ie.prevInput="":ie.prevInput=ve,ie.composing&&(ie.composing.range.clear(),ie.composing.range=ae.markText(ie.composing.start,ae.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ds.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ds.prototype.onKeyPress=function(){it&&ze>=9&&(this.hasSelection=null),this.fastPoll()},ds.prototype.onContextMenu=function(ie){var ae=this,fe=ae.cm,ce=fe.display,ve=ae.textarea;ae.contextMenuPending&&ae.contextMenuPending();var Le=Va(fe,ie),Ge=ce.scroller.scrollTop;if(!Le||Me)return;var et=fe.options.resetSelectionOnContextMenu;et&&fe.doc.sel.contains(Le)==-1&&lo(fe,Gs)(fe.doc,Qu(Le),Ft);var qe=ve.style.cssText,mt=ae.wrapper.style.cssText,rn=ae.wrapper.offsetParent.getBoundingClientRect();ae.wrapper.style.cssText="position: static",ve.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
top: `+(ie.clientY-rn.top-5)+"px; left: "+(ie.clientX-rn.left-5)+`px;
|
|
z-index: 1000; background: `+(it?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Mt;Ue&&(Mt=window.scrollY),ce.input.focus(),Ue&&window.scrollTo(null,Mt),ce.input.reset(),fe.somethingSelected()||(ve.value=ae.prevInput=" "),ae.contextMenuPending=xn,ce.selForContextMenu=fe.doc.sel,clearTimeout(ce.detectingSelectAll);function Nn(){if(ve.selectionStart!=null){var Zi=fe.somethingSelected(),er="\u200B"+(Zi?ve.value:"");ve.value="\u21DA",ve.value=er,ae.prevInput=Zi?"":"\u200B",ve.selectionStart=1,ve.selectionEnd=er.length,ce.selForContextMenu=fe.doc.sel}}function xn(){if(ae.contextMenuPending==xn&&(ae.contextMenuPending=!1,ae.wrapper.style.cssText=mt,ve.style.cssText=qe,it&&ze<9&&ce.scrollbars.setScrollTop(ce.scroller.scrollTop=Ge),ve.selectionStart!=null)){(!it||it&&ze<9)&&Nn();var Zi=0,er=function(){ce.selForContextMenu==fe.doc.sel&&ve.selectionStart==0&&ve.selectionEnd>0&&ae.prevInput=="\u200B"?lo(fe,rs)(fe):Zi++<10?ce.detectingSelectAll=setTimeout(er,500):(ce.selForContextMenu=null,ce.input.reset())};ce.detectingSelectAll=setTimeout(er,200)}}if(it&&ze>=9&&Nn(),Ce){cr(ie);var Bi=function(){Ci(window,"mouseup",Bi),setTimeout(xn,20)};_n(window,"mouseup",Bi)}else setTimeout(xn,50)},ds.prototype.readOnlyChanged=function(ie){ie||this.reset(),this.textarea.disabled=ie=="nocursor",this.textarea.readOnly=!!ie},ds.prototype.setUneditable=function(){},ds.prototype.needsContentAttribute=!1;function h0(ie,ae){if(ae=ae?Ut(ae):{},ae.value=ie.value,!ae.tabindex&&ie.tabIndex&&(ae.tabindex=ie.tabIndex),!ae.placeholder&&ie.placeholder&&(ae.placeholder=ie.placeholder),ae.autofocus==null){var fe=gt();ae.autofocus=fe==ie||ie.getAttribute("autofocus")!=null&&fe==document.body}function ce(){ie.value=et.getValue()}var ve;if(ie.form&&(_n(ie.form,"submit",ce),!ae.leaveSubmitMethodAlone)){var Le=ie.form;ve=Le.submit;try{var Ge=Le.submit=function(){ce(),Le.submit=ve,Le.submit(),Le.submit=Ge}}catch(qe){}}ae.finishInit=function(qe){qe.save=ce,qe.getTextArea=function(){return ie},qe.toTextArea=function(){qe.toTextArea=isNaN,ce(),ie.parentNode.removeChild(qe.getWrapperElement()),ie.style.display="",ie.form&&(Ci(ie.form,"submit",ce),!ae.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=ve))}},ie.style.display="none";var et=la(function(qe){return ie.parentNode.insertBefore(qe,ie.nextSibling)},ae);return et}function Yd(ie){ie.off=Ci,ie.on=_n,ie.wheelEventPixels=Nl,ie.Doc=Ns,ie.splitLines=ao,ie.countColumn=st,ie.findColumn=wn,ie.isWordChar=Te,ie.Pass=Bt,ie.signal=Yn,ie.Line=sn,ie.changeEnd=vh,ie.scrollbarModel=kl,ie.Pos=tn,ie.cmpPos=si,ie.modes=mi,ie.mimeModes=ei,ie.resolveMode=an,ie.getMode=ln,ie.modeExtensions=Zt,ie.extendMode=pn,ie.copyState=zi,ie.startState=dr,ie.innerMode=Ti,ie.commands=Ph,ie.keyMap=yl,ie.keyName=n0,ie.isModifierKey=jd,ie.lookupKey=Kl,ie.normalizeKeyMap=Ag,ie.StringStream=un,ie.SharedTextMarker=Bu,ie.TextMarker=_t,ie.LineWidget=$u,ie.e_preventDefault=lr,ie.e_stopPropagation=Lr,ie.e_stop=cr,ie.addClass=bt,ie.contains=xt,ie.rmClass=Oe,ie.keyNames=Nu}s0(la),Ch(la);var eh="iter insert remove copy getEditor constructor".split(" ");for(var kc in Ns.prototype)Ns.prototype.hasOwnProperty(kc)&&jt(eh,kc)<0&&(la.prototype[kc]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(Ns.prototype[kc]));return Qi(Ns),la.inputStyles={textarea:ds,contenteditable:Fa},la.defineMode=function(ie){!la.defaults.mode&&ie!="null"&&(la.defaults.mode=ie),Gi.apply(this,arguments)},la.defineMIME=vr,la.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),la.defineMIME("text/plain","null"),la.defineExtension=function(ie,ae){la.prototype[ie]=ae},la.defineDocExtension=function(ie,ae){Ns.prototype[ie]=ae},la.fromTextArea=h0,Yd(la),la.version="5.58.2",la})},25419:function(cn,Jt,Pe){(function(me){me(Pe(89780),Pe(15525),Pe(98101))})(function(me){"use strict";me.defineMode("markdown",function(Ve,ut){var nt=me.getMode(Ve,"text/html"),it=nt.name=="null";function ze(st){if(me.findModeByName){var He=me.findModeByName(st);He&&(st=He.mime||He.mimes[0])}var jt=me.getMode(Ve,st);return jt.name=="null"?null:jt}ut.highlightFormatting===void 0&&(ut.highlightFormatting=!1),ut.maxBlockquoteDepth===void 0&&(ut.maxBlockquoteDepth=0),ut.taskLists===void 0&&(ut.taskLists=!1),ut.strikethrough===void 0&&(ut.strikethrough=!1),ut.emoji===void 0&&(ut.emoji=!1),ut.fencedCodeBlockHighlighting===void 0&&(ut.fencedCodeBlockHighlighting=!0),ut.fencedCodeBlockDefaultMode===void 0&&(ut.fencedCodeBlockDefaultMode="text/plain"),ut.xml===void 0&&(ut.xml=!0),ut.tokenTypeOverrides===void 0&&(ut.tokenTypeOverrides={});var Ue={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var yt in Ue)Ue.hasOwnProperty(yt)&&ut.tokenTypeOverrides[yt]&&(Ue[yt]=ut.tokenTypeOverrides[yt]);var ot=/^([*\-_])(?:\s*\1){2,}\s*$/,Me=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Et=/^\[(x| )\](?=\s)/i,_e=ut.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,ht=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ee=/^[^#!\[\]*_\\<>` "'(~:]+/,ne=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ee=/^\s*\[[^\]]+?\]:.*$/,ue=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,se=" ";function de(st,He,jt){return He.f=He.inline=jt,jt(st,He)}function pe(st,He,jt){return He.f=He.block=jt,jt(st,He)}function ye(st){return!st||!/\S/.test(st.string)}function Ce(st){if(st.linkTitle=!1,st.linkHref=!1,st.linkText=!1,st.em=!1,st.strong=!1,st.strikethrough=!1,st.quote=0,st.indentedCode=!1,st.f==Oe){var He=it;if(!He){var jt=me.innerMode(nt,st.htmlState);He=jt.mode.name=="xml"&&jt.state.tagStart===null&&!jt.state.context&&jt.state.tokenize.isInText}He&&(st.f=Qe,st.block=Re,st.htmlState=null)}return st.trailingSpace=0,st.trailingSpaceNewLine=!1,st.prevLine=st.thisLine,st.thisLine={stream:null},null}function Re(st,He){var jt=st.column()===He.indentation,fn=ye(He.prevLine.stream),Bt=He.indentedCode,Ft=He.prevLine.hr,It=He.list!==!1,Vt=(He.listStack[He.listStack.length-1]||0)+3;He.indentedCode=!1;var wn=He.indentation;if(He.indentationDiff===null&&(He.indentationDiff=He.indentation,It)){for(He.list=null;wn<He.listStack[He.listStack.length-1];)He.listStack.pop(),He.listStack.length?He.indentation=He.listStack[He.listStack.length-1]:He.list=!1;He.list!==!1&&(He.indentationDiff=wn-He.listStack[He.listStack.length-1])}var Dt=!fn&&!Ft&&!He.prevLine.header&&(!It||!Bt)&&!He.prevLine.fencedCodeEnd,vt=(He.list===!1||Ft||fn)&&He.indentation<=Vt&&st.match(ot),zt=null;if(He.indentationDiff>=4&&(Bt||He.prevLine.fencedCodeEnd||He.prevLine.header||fn))return st.skipToEnd(),He.indentedCode=!0,Ue.code;if(st.eatSpace())return null;if(jt&&He.indentation<=Vt&&(zt=st.match(_e))&&zt[1].length<=6)return He.quote=0,He.header=zt[1].length,He.thisLine.header=!0,ut.highlightFormatting&&(He.formatting="header"),He.f=He.inline,Be(He);if(He.indentation<=Vt&&st.eat(">"))return He.quote=jt?1:He.quote+1,ut.highlightFormatting&&(He.formatting="quote"),st.eatSpace(),Be(He);if(!vt&&!He.setext&&jt&&He.indentation<=Vt&&(zt=st.match(Me))){var En=zt[1]?"ol":"ul";return He.indentation=wn+st.current().length,He.list=!0,He.quote=0,He.listStack.push(He.indentation),He.em=!1,He.strong=!1,He.code=!1,He.strikethrough=!1,ut.taskLists&&st.match(Et,!1)&&(He.taskList=!0),He.f=He.inline,ut.highlightFormatting&&(He.formatting=["list","list-"+En]),Be(He)}else{if(jt&&He.indentation<=Vt&&(zt=st.match(ne,!0)))return He.quote=0,He.fencedEndRE=new RegExp(zt[1]+"+ *$"),He.localMode=ut.fencedCodeBlockHighlighting&&ze(zt[2]||ut.fencedCodeBlockDefaultMode),He.localMode&&(He.localState=me.startState(He.localMode)),He.f=He.block=We,ut.highlightFormatting&&(He.formatting="code-block"),He.code=-1,Be(He);if(He.setext||(!Dt||!It)&&!He.quote&&He.list===!1&&!He.code&&!vt&&!ee.test(st.string)&&(zt=st.lookAhead(1))&&(zt=zt.match(ht)))return He.setext?(He.header=He.setext,He.setext=0,st.skipToEnd(),ut.highlightFormatting&&(He.formatting="header")):(He.header=zt[0].charAt(0)=="="?1:2,He.setext=He.header),He.thisLine.header=!0,He.f=He.inline,Be(He);if(vt)return st.skipToEnd(),He.hr=!0,He.thisLine.hr=!0,Ue.hr;if(st.peek()==="[")return de(st,He,At)}return de(st,He,He.inline)}function Oe(st,He){var jt=nt.token(st,He.htmlState);if(!it){var fn=me.innerMode(nt,He.htmlState);(fn.mode.name=="xml"&&fn.state.tagStart===null&&!fn.state.context&&fn.state.tokenize.isInText||He.md_inside&&st.current().indexOf(">")>-1)&&(He.f=Qe,He.block=Re,He.htmlState=null)}return jt}function We(st,He){var jt=He.listStack[He.listStack.length-1]||0,fn=He.indentation<jt,Bt=jt+3;if(He.fencedEndRE&&He.indentation<=Bt&&(fn||st.match(He.fencedEndRE))){ut.highlightFormatting&&(He.formatting="code-block");var Ft;return fn||(Ft=Be(He)),He.localMode=He.localState=null,He.block=Re,He.f=Qe,He.fencedEndRE=null,He.code=0,He.thisLine.fencedCodeEnd=!0,fn?pe(st,He,He.block):Ft}else return He.localMode?He.localMode.token(st,He.localState):(st.skipToEnd(),Ue.code)}function Be(st){var He=[];if(st.formatting){He.push(Ue.formatting),typeof st.formatting=="string"&&(st.formatting=[st.formatting]);for(var jt=0;jt<st.formatting.length;jt++)He.push(Ue.formatting+"-"+st.formatting[jt]),st.formatting[jt]==="header"&&He.push(Ue.formatting+"-"+st.formatting[jt]+"-"+st.header),st.formatting[jt]==="quote"&&(!ut.maxBlockquoteDepth||ut.maxBlockquoteDepth>=st.quote?He.push(Ue.formatting+"-"+st.formatting[jt]+"-"+st.quote):He.push("error"))}if(st.taskOpen)return He.push("meta"),He.length?He.join(" "):null;if(st.taskClosed)return He.push("property"),He.length?He.join(" "):null;if(st.linkHref?He.push(Ue.linkHref,"url"):(st.strong&&He.push(Ue.strong),st.em&&He.push(Ue.em),st.strikethrough&&He.push(Ue.strikethrough),st.emoji&&He.push(Ue.emoji),st.linkText&&He.push(Ue.linkText),st.code&&He.push(Ue.code),st.image&&He.push(Ue.image),st.imageAltText&&He.push(Ue.imageAltText,"link"),st.imageMarker&&He.push(Ue.imageMarker)),st.header&&He.push(Ue.header,Ue.header+"-"+st.header),st.quote&&(He.push(Ue.quote),!ut.maxBlockquoteDepth||ut.maxBlockquoteDepth>=st.quote?He.push(Ue.quote+"-"+st.quote):He.push(Ue.quote+"-"+ut.maxBlockquoteDepth)),st.list!==!1){var fn=(st.listStack.length-1)%3;fn?fn===1?He.push(Ue.list2):He.push(Ue.list3):He.push(Ue.list1)}return st.trailingSpaceNewLine?He.push("trailing-space-new-line"):st.trailingSpace&&He.push("trailing-space-"+(st.trailingSpace%2?"a":"b")),He.length?He.join(" "):null}function Ie(st,He){if(st.match(Ee,!0))return Be(He)}function Qe(st,He){var jt=He.text(st,He);if(typeof jt!="undefined")return jt;if(He.list)return He.list=null,Be(He);if(He.taskList){var fn=st.match(Et,!0)[1]===" ";return fn?He.taskOpen=!0:He.taskClosed=!0,ut.highlightFormatting&&(He.formatting="task"),He.taskList=!1,Be(He)}if(He.taskOpen=!1,He.taskClosed=!1,He.header&&st.match(/^#+$/,!0))return ut.highlightFormatting&&(He.formatting="header"),Be(He);var Bt=st.next();if(He.linkTitle){He.linkTitle=!1;var Ft=Bt;Bt==="("&&(Ft=")"),Ft=(Ft+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var It="^\\s*(?:[^"+Ft+"\\\\]+|\\\\\\\\|\\\\.)"+Ft;if(st.match(new RegExp(It),!0))return Ue.linkHref}if(Bt==="`"){var Vt=He.formatting;ut.highlightFormatting&&(He.formatting="code"),st.eatWhile("`");var wn=st.current().length;if(He.code==0&&(!He.quote||wn==1))return He.code=wn,Be(He);if(wn==He.code){var Dt=Be(He);return He.code=0,Dt}else return He.formatting=Vt,Be(He)}else if(He.code)return Be(He);if(Bt==="\\"&&(st.next(),ut.highlightFormatting)){var vt=Be(He),zt=Ue.formatting+"-escape";return vt?vt+" "+zt:zt}if(Bt==="!"&&st.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return He.imageMarker=!0,He.image=!0,ut.highlightFormatting&&(He.formatting="image"),Be(He);if(Bt==="["&&He.imageMarker&&st.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return He.imageMarker=!1,He.imageAltText=!0,ut.highlightFormatting&&(He.formatting="image"),Be(He);if(Bt==="]"&&He.imageAltText){ut.highlightFormatting&&(He.formatting="image");var vt=Be(He);return He.imageAltText=!1,He.image=!1,He.inline=He.f=xt,vt}if(Bt==="["&&!He.image)return He.linkText&&st.match(/^.*?\]/)||(He.linkText=!0,ut.highlightFormatting&&(He.formatting="link")),Be(He);if(Bt==="]"&&He.linkText){ut.highlightFormatting&&(He.formatting="link");var vt=Be(He);return He.linkText=!1,He.inline=He.f=st.match(/\(.*?\)| ?\[.*?\]/,!1)?xt:Qe,vt}if(Bt==="<"&&st.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){He.f=He.inline=rt,ut.highlightFormatting&&(He.formatting="link");var vt=Be(He);return vt?vt+=" ":vt="",vt+Ue.linkInline}if(Bt==="<"&&st.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){He.f=He.inline=rt,ut.highlightFormatting&&(He.formatting="link");var vt=Be(He);return vt?vt+=" ":vt="",vt+Ue.linkEmail}if(ut.xml&&Bt==="<"&&st.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var En=st.string.indexOf(">",st.pos);if(En!=-1){var kn=st.string.substring(st.start,En);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(kn)&&(He.md_inside=!0)}return st.backUp(1),He.htmlState=me.startState(nt),pe(st,He,Oe)}if(ut.xml&&Bt==="<"&&st.match(/^\/\w*?>/))return He.md_inside=!1,"tag";if(Bt==="*"||Bt==="_"){for(var Ze=1,Fe=st.pos==1?" ":st.string.charAt(st.pos-2);Ze<3&&st.eat(Bt);)Ze++;var xe=st.peek()||" ",Te=!/\s/.test(xe)&&(!ue.test(xe)||/\s/.test(Fe)||ue.test(Fe)),Ye=!/\s/.test(Fe)&&(!ue.test(Fe)||/\s/.test(xe)||ue.test(xe)),De=null,tt=null;if(Ze%2&&(!He.em&&Te&&(Bt==="*"||!Ye||ue.test(Fe))?De=!0:He.em==Bt&&Ye&&(Bt==="*"||!Te||ue.test(xe))&&(De=!1)),Ze>1&&(!He.strong&&Te&&(Bt==="*"||!Ye||ue.test(Fe))?tt=!0:He.strong==Bt&&Ye&&(Bt==="*"||!Te||ue.test(xe))&&(tt=!1)),tt!=null||De!=null){ut.highlightFormatting&&(He.formatting=De==null?"strong":tt==null?"em":"strong em"),De===!0&&(He.em=Bt),tt===!0&&(He.strong=Bt);var Dt=Be(He);return De===!1&&(He.em=!1),tt===!1&&(He.strong=!1),Dt}}else if(Bt===" "&&(st.eat("*")||st.eat("_"))){if(st.peek()===" ")return Be(He);st.backUp(1)}if(ut.strikethrough){if(Bt==="~"&&st.eatWhile(Bt)){if(He.strikethrough){ut.highlightFormatting&&(He.formatting="strikethrough");var Dt=Be(He);return He.strikethrough=!1,Dt}else if(st.match(/^[^\s]/,!1))return He.strikethrough=!0,ut.highlightFormatting&&(He.formatting="strikethrough"),Be(He)}else if(Bt===" "&&st.match(/^~~/,!0)){if(st.peek()===" ")return Be(He);st.backUp(2)}}if(ut.emoji&&Bt===":"&&st.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){He.emoji=!0,ut.highlightFormatting&&(He.formatting="emoji");var Ht=Be(He);return He.emoji=!1,Ht}return Bt===" "&&(st.match(/^ +$/,!1)?He.trailingSpace++:He.trailingSpace&&(He.trailingSpaceNewLine=!0)),Be(He)}function rt(st,He){var jt=st.next();if(jt===">"){He.f=He.inline=Qe,ut.highlightFormatting&&(He.formatting="link");var fn=Be(He);return fn?fn+=" ":fn="",fn+Ue.linkInline}return st.match(/^[^>]+/,!0),Ue.linkInline}function xt(st,He){if(st.eatSpace())return null;var jt=st.next();return jt==="("||jt==="["?(He.f=He.inline=bt(jt==="("?")":"]"),ut.highlightFormatting&&(He.formatting="link-string"),He.linkHref=!0,Be(He)):"error"}var gt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function bt(st){return function(He,jt){var fn=He.next();if(fn===st){jt.f=jt.inline=Qe,ut.highlightFormatting&&(jt.formatting="link-string");var Bt=Be(jt);return jt.linkHref=!1,Bt}return He.match(gt[st]),jt.linkHref=!0,Be(jt)}}function At(st,He){return st.match(/^([^\]\\]|\\.)*\]:/,!1)?(He.f=Tt,st.next(),ut.highlightFormatting&&(He.formatting="link"),He.linkText=!0,Be(He)):de(st,He,Qe)}function Tt(st,He){if(st.match(/^\]:/,!0)){He.f=He.inline=Nt,ut.highlightFormatting&&(He.formatting="link");var jt=Be(He);return He.linkText=!1,jt}return st.match(/^([^\]\\]|\\.)+/,!0),Ue.linkText}function Nt(st,He){return st.eatSpace()?null:(st.match(/^[^\s]+/,!0),st.peek()===void 0?He.linkTitle=!0:st.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),He.f=He.inline=Qe,Ue.linkHref+" url")}var Ut={startState:function(){return{f:Re,prevLine:{stream:null},thisLine:{stream:null},block:Re,htmlState:null,indentation:0,inline:Qe,text:Ie,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(st){return{f:st.f,prevLine:st.prevLine,thisLine:st.thisLine,block:st.block,htmlState:st.htmlState&&me.copyState(nt,st.htmlState),indentation:st.indentation,localMode:st.localMode,localState:st.localMode?me.copyState(st.localMode,st.localState):null,inline:st.inline,text:st.text,formatting:!1,linkText:st.linkText,linkTitle:st.linkTitle,linkHref:st.linkHref,code:st.code,em:st.em,strong:st.strong,strikethrough:st.strikethrough,emoji:st.emoji,header:st.header,setext:st.setext,hr:st.hr,taskList:st.taskList,list:st.list,listStack:st.listStack.slice(0),quote:st.quote,indentedCode:st.indentedCode,trailingSpace:st.trailingSpace,trailingSpaceNewLine:st.trailingSpaceNewLine,md_inside:st.md_inside,fencedEndRE:st.fencedEndRE}},token:function(st,He){if(He.formatting=!1,st!=He.thisLine.stream){if(He.header=0,He.hr=!1,st.match(/^\s*$/,!0))return Ce(He),null;if(He.prevLine=He.thisLine,He.thisLine={stream:st},He.taskList=!1,He.trailingSpace=0,He.trailingSpaceNewLine=!1,!He.localState&&(He.f=He.block,He.f!=Oe)){var jt=st.match(/^\s*/,!0)[0].replace(/\t/g,se).length;if(He.indentation=jt,He.indentationDiff=null,jt>0)return null}}return He.f(st,He)},innerMode:function(st){return st.block==Oe?{state:st.htmlState,mode:nt}:st.localState?{state:st.localState,mode:st.localMode}:{state:st,mode:Ut}},indent:function(st,He,jt){return st.block==Oe&&nt.indent?nt.indent(st.htmlState,He,jt):st.localState&&st.localMode.indent?st.localMode.indent(st.localState,He,jt):me.Pass},blankLine:Ce,getType:Be,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Ut},"xml"),me.defineMIME("text/markdown","markdown"),me.defineMIME("text/x-markdown","markdown")})},98101:function(cn,Jt,Pe){(function(me){me(Pe(89780))})(function(me){"use strict";me.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var Ve=0;Ve<me.modeInfo.length;Ve++){var ut=me.modeInfo[Ve];ut.mimes&&(ut.mime=ut.mimes[0])}me.findModeByMIME=function(nt){nt=nt.toLowerCase();for(var it=0;it<me.modeInfo.length;it++){var ze=me.modeInfo[it];if(ze.mime==nt)return ze;if(ze.mimes){for(var Ue=0;Ue<ze.mimes.length;Ue++)if(ze.mimes[Ue]==nt)return ze}}if(/\+xml$/.test(nt))return me.findModeByMIME("application/xml");if(/\+json$/.test(nt))return me.findModeByMIME("application/json")},me.findModeByExtension=function(nt){nt=nt.toLowerCase();for(var it=0;it<me.modeInfo.length;it++){var ze=me.modeInfo[it];if(ze.ext){for(var Ue=0;Ue<ze.ext.length;Ue++)if(ze.ext[Ue]==nt)return ze}}},me.findModeByFileName=function(nt){for(var it=0;it<me.modeInfo.length;it++){var ze=me.modeInfo[it];if(ze.file&&ze.file.test(nt))return ze}var Ue=nt.lastIndexOf("."),yt=Ue>-1&&nt.substring(Ue+1,nt.length);if(yt)return me.findModeByExtension(yt)},me.findModeByName=function(nt){nt=nt.toLowerCase();for(var it=0;it<me.modeInfo.length;it++){var ze=me.modeInfo[it];if(ze.name.toLowerCase()==nt)return ze;if(ze.alias){for(var Ue=0;Ue<ze.alias.length;Ue++)if(ze.alias[Ue].toLowerCase()==nt)return ze}}}})},67549:function(cn,Jt,Pe){(function(me){me(Pe(89780))})(function(me){"use strict";me.defineMode("stex",function(Ve,ut){"use strict";function nt(Ee,ne){Ee.cmdState.push(ne)}function it(Ee){return Ee.cmdState.length>0?Ee.cmdState[Ee.cmdState.length-1]:null}function ze(Ee){var ne=Ee.cmdState.pop();ne&&ne.closeBracket()}function Ue(Ee){for(var ne=Ee.cmdState,ee=ne.length-1;ee>=0;ee--){var ue=ne[ee];if(ue.name!="DEFAULT")return ue}return{styleIdentifier:function(){return null}}}function yt(Ee,ne,ee){return function(){this.name=Ee,this.bracketNo=0,this.style=ne,this.styles=ee,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var ot={};ot.importmodule=yt("importmodule","tag",["string","builtin"]),ot.documentclass=yt("documentclass","tag",["","atom"]),ot.usepackage=yt("usepackage","tag",["atom"]),ot.begin=yt("begin","tag",["atom"]),ot.end=yt("end","tag",["atom"]),ot.label=yt("label","tag",["atom"]),ot.ref=yt("ref","tag",["atom"]),ot.eqref=yt("eqref","tag",["atom"]),ot.cite=yt("cite","tag",["atom"]),ot.bibitem=yt("bibitem","tag",["atom"]),ot.Bibitem=yt("Bibitem","tag",["atom"]),ot.RBibitem=yt("RBibitem","tag",["atom"]),ot.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Me(Ee,ne){Ee.f=ne}function Et(Ee,ne){var ee;if(Ee.match(/^\\[a-zA-Z@]+/)){var ue=Ee.current().slice(1);return ee=ot.hasOwnProperty(ue)?ot[ue]:ot.DEFAULT,ee=new ee,nt(ne,ee),Me(ne,ht),ee.style}if(Ee.match(/^\\[$&%#{}_]/)||Ee.match(/^\\[,;!\/\\]/))return"tag";if(Ee.match("\\["))return Me(ne,function(de,pe){return _e(de,pe,"\\]")}),"keyword";if(Ee.match("\\("))return Me(ne,function(de,pe){return _e(de,pe,"\\)")}),"keyword";if(Ee.match("$$"))return Me(ne,function(de,pe){return _e(de,pe,"$$")}),"keyword";if(Ee.match("$"))return Me(ne,function(de,pe){return _e(de,pe,"$")}),"keyword";var se=Ee.next();if(se=="%")return Ee.skipToEnd(),"comment";if(se=="}"||se=="]"){if(ee=it(ne),ee)ee.closeBracket(se),Me(ne,ht);else return"error";return"bracket"}else return se=="{"||se=="["?(ee=ot.DEFAULT,ee=new ee,nt(ne,ee),"bracket"):/\d/.test(se)?(Ee.eatWhile(/[\w.%]/),"atom"):(Ee.eatWhile(/[\w\-_]/),ee=Ue(ne),ee.name=="begin"&&(ee.argument=Ee.current()),ee.styleIdentifier())}function _e(Ee,ne,ee){if(Ee.eatSpace())return null;if(ee&&Ee.match(ee))return Me(ne,Et),"keyword";if(Ee.match(/^\\[a-zA-Z@]+/))return"tag";if(Ee.match(/^[a-zA-Z]+/))return"variable-2";if(Ee.match(/^\\[$&%#{}_]/)||Ee.match(/^\\[,;!\/]/)||Ee.match(/^[\^_&]/))return"tag";if(Ee.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ee.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ue=Ee.next();return ue=="{"||ue=="}"||ue=="["||ue=="]"||ue=="("||ue==")"?"bracket":ue=="%"?(Ee.skipToEnd(),"comment"):"error"}function ht(Ee,ne){var ee=Ee.peek(),ue;return ee=="{"||ee=="["?(ue=it(ne),ue.openBracket(ee),Ee.eat(ee),Me(ne,Et),"bracket"):/[ \t\r]/.test(ee)?(Ee.eat(ee),null):(Me(ne,Et),ze(ne),Et(Ee,ne))}return{startState:function(){var Ee=ut.inMathMode?function(ne,ee){return _e(ne,ee)}:Et;return{cmdState:[],f:Ee}},copyState:function(Ee){return{cmdState:Ee.cmdState.slice(),f:Ee.f}},token:function(Ee,ne){return ne.f(Ee,ne)},blankLine:function(Ee){Ee.f=Et,Ee.cmdState.length=0},lineComment:"%"}}),me.defineMIME("text/x-stex","stex"),me.defineMIME("text/x-latex","stex")})},15525:function(cn,Jt,Pe){(function(me){me(Pe(89780))})(function(me){"use strict";var Ve={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},ut={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};me.defineMode("xml",function(nt,it){var ze=nt.indentUnit,Ue={},yt=it.htmlMode?Ve:ut;for(var ot in yt)Ue[ot]=yt[ot];for(var ot in it)Ue[ot]=it[ot];var Me,Et;function _e(rt,xt){function gt(Tt){return xt.tokenize=Tt,Tt(rt,xt)}var bt=rt.next();if(bt=="<")return rt.eat("!")?rt.eat("[")?rt.match("CDATA[")?gt(ne("atom","]]>")):null:rt.match("--")?gt(ne("comment","-->")):rt.match("DOCTYPE",!0,!0)?(rt.eatWhile(/[\w\._\-]/),gt(ee(1))):null:rt.eat("?")?(rt.eatWhile(/[\w\._\-]/),xt.tokenize=ne("meta","?>"),"meta"):(Me=rt.eat("/")?"closeTag":"openTag",xt.tokenize=ht,"tag bracket");if(bt=="&"){var At;return rt.eat("#")?rt.eat("x")?At=rt.eatWhile(/[a-fA-F\d]/)&&rt.eat(";"):At=rt.eatWhile(/[\d]/)&&rt.eat(";"):At=rt.eatWhile(/[\w\.\-:]/)&&rt.eat(";"),At?"atom":"error"}else return rt.eatWhile(/[^&<]/),null}_e.isInText=!0;function ht(rt,xt){var gt=rt.next();if(gt==">"||gt=="/"&&rt.eat(">"))return xt.tokenize=_e,Me=gt==">"?"endTag":"selfcloseTag","tag bracket";if(gt=="=")return Me="equals",null;if(gt=="<"){xt.tokenize=_e,xt.state=pe,xt.tagName=xt.tagStart=null;var bt=xt.tokenize(rt,xt);return bt?bt+" tag error":"tag error"}else return/[\'\"]/.test(gt)?(xt.tokenize=Ee(gt),xt.stringStartCol=rt.column(),xt.tokenize(rt,xt)):(rt.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ee(rt){var xt=function(gt,bt){for(;!gt.eol();)if(gt.next()==rt){bt.tokenize=ht;break}return"string"};return xt.isInAttribute=!0,xt}function ne(rt,xt){return function(gt,bt){for(;!gt.eol();){if(gt.match(xt)){bt.tokenize=_e;break}gt.next()}return rt}}function ee(rt){return function(xt,gt){for(var bt;(bt=xt.next())!=null;){if(bt=="<")return gt.tokenize=ee(rt+1),gt.tokenize(xt,gt);if(bt==">")if(rt==1){gt.tokenize=_e;break}else return gt.tokenize=ee(rt-1),gt.tokenize(xt,gt)}return"meta"}}function ue(rt,xt,gt){this.prev=rt.context,this.tagName=xt,this.indent=rt.indented,this.startOfLine=gt,(Ue.doNotIndent.hasOwnProperty(xt)||rt.context&&rt.context.noIndent)&&(this.noIndent=!0)}function se(rt){rt.context&&(rt.context=rt.context.prev)}function de(rt,xt){for(var gt;;){if(!rt.context||(gt=rt.context.tagName,!Ue.contextGrabbers.hasOwnProperty(gt)||!Ue.contextGrabbers[gt].hasOwnProperty(xt)))return;se(rt)}}function pe(rt,xt,gt){return rt=="openTag"?(gt.tagStart=xt.column(),ye):rt=="closeTag"?Ce:pe}function ye(rt,xt,gt){return rt=="word"?(gt.tagName=xt.current(),Et="tag",We):Ue.allowMissingTagName&&rt=="endTag"?(Et="tag bracket",We(rt,xt,gt)):(Et="error",ye)}function Ce(rt,xt,gt){if(rt=="word"){var bt=xt.current();return gt.context&>.context.tagName!=bt&&Ue.implicitlyClosed.hasOwnProperty(gt.context.tagName)&&se(gt),gt.context&>.context.tagName==bt||Ue.matchClosing===!1?(Et="tag",Re):(Et="tag error",Oe)}else return Ue.allowMissingTagName&&rt=="endTag"?(Et="tag bracket",Re(rt,xt,gt)):(Et="error",Oe)}function Re(rt,xt,gt){return rt!="endTag"?(Et="error",Re):(se(gt),pe)}function Oe(rt,xt,gt){return Et="error",Re(rt,xt,gt)}function We(rt,xt,gt){if(rt=="word")return Et="attribute",Be;if(rt=="endTag"||rt=="selfcloseTag"){var bt=gt.tagName,At=gt.tagStart;return gt.tagName=gt.tagStart=null,rt=="selfcloseTag"||Ue.autoSelfClosers.hasOwnProperty(bt)?de(gt,bt):(de(gt,bt),gt.context=new ue(gt,bt,At==gt.indented)),pe}return Et="error",We}function Be(rt,xt,gt){return rt=="equals"?Ie:(Ue.allowMissing||(Et="error"),We(rt,xt,gt))}function Ie(rt,xt,gt){return rt=="string"?Qe:rt=="word"&&Ue.allowUnquoted?(Et="string",We):(Et="error",We(rt,xt,gt))}function Qe(rt,xt,gt){return rt=="string"?Qe:We(rt,xt,gt)}return{startState:function(rt){var xt={tokenize:_e,state:pe,indented:rt||0,tagName:null,tagStart:null,context:null};return rt!=null&&(xt.baseIndent=rt),xt},token:function(rt,xt){if(!xt.tagName&&rt.sol()&&(xt.indented=rt.indentation()),rt.eatSpace())return null;Me=null;var gt=xt.tokenize(rt,xt);return(gt||Me)&>!="comment"&&(Et=null,xt.state=xt.state(Me||gt,rt,xt),Et&&(gt=Et=="error"?gt+" error":Et)),gt},indent:function(rt,xt,gt){var bt=rt.context;if(rt.tokenize.isInAttribute)return rt.tagStart==rt.indented?rt.stringStartCol+1:rt.indented+ze;if(bt&&bt.noIndent)return me.Pass;if(rt.tokenize!=ht&&rt.tokenize!=_e)return gt?gt.match(/^(\s*)/)[0].length:0;if(rt.tagName)return Ue.multilineTagIndentPastTag!==!1?rt.tagStart+rt.tagName.length+2:rt.tagStart+ze*(Ue.multilineTagIndentFactor||1);if(Ue.alignCDATA&&/<!\[CDATA\[/.test(xt))return 0;var At=xt&&/^<(\/)?([\w_:\.-]*)/.exec(xt);if(At&&At[1])for(;bt;)if(bt.tagName==At[2]){bt=bt.prev;break}else if(Ue.implicitlyClosed.hasOwnProperty(bt.tagName))bt=bt.prev;else break;else if(At)for(;bt;){var Tt=Ue.contextGrabbers[bt.tagName];if(Tt&&Tt.hasOwnProperty(At[2]))bt=bt.prev;else break}for(;bt&&bt.prev&&!bt.startOfLine;)bt=bt.prev;return bt?bt.indent+ze:rt.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ue.htmlMode?"html":"xml",helperType:Ue.htmlMode?"html":"xml",skipAttribute:function(rt){rt.state==Ie&&(rt.state=We)},xmlCurrentTag:function(rt){return rt.tagName?{name:rt.tagName,close:rt.type=="closeTag"}:null},xmlCurrentContext:function(rt){for(var xt=[],gt=rt.context;gt;gt=gt.prev)gt.tagName&&xt.push(gt.tagName);return xt.reverse()}}}),me.defineMIME("text/xml","xml"),me.defineMIME("application/xml","xml"),me.mimeModes.hasOwnProperty("text/html")||me.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{$u:function(){return ot},BD:function(){return Ze},E9:function(){return yt},FF:function(){return fo},FJ:function(){return pe},Hn:function(){return de},KX:function(){return Ce},NB:function(){return en},S0:function(){return zt},UL:function(){return Me},Vk:function(){return se},Vm:function(){return nn},YI:function(){return En},ZA:function(){return ut},Zt:function(){return Et},al:function(){return De},bn:function(){return Ye},bx:function(){return Fe},g2:function(){return kn},h1:function(){return Ie},hD:function(){return Qi},l4:function(){return ze},rU:function(){return kt},s_:function(){return xe},uz:function(){return Sn},z6:function(){return _e}}),cn=Pe.hmd(cn),function(){var be;function Un(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function Xn(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:Un(a)}}function ci(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var mi=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},ei;if(typeof Object.setPrototypeOf=="function")ei=Object.setPrototypeOf;else{var Gi;e:{var vr={a:!0},an={};try{an.__proto__=vr,Gi=an.a;break e}catch(a){}Gi=!1}ei=Gi?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var ln=ei;function Zt(a,y){if(a.prototype=mi(y.prototype),a.prototype.constructor=a,ln)ln(a,y);else for(var x in y)if(x!="prototype")if(Object.defineProperties){var E=Object.getOwnPropertyDescriptor(y,x);E&&Object.defineProperty(a,x,E)}else a[x]=y[x];a.QA=y.prototype}var pn=typeof Pe.g!="undefined"&&Pe.g!=null?Pe.g:self,zi=typeof Object.assign=="function"?Object.assign:function(a,y){for(var x=1;x<arguments.length;x++){var E=arguments[x];if(E)for(var b in E)Object.prototype.hasOwnProperty.call(E,b)&&(a[b]=E[b])}return a},Ti=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function dr(a,y){if(y){var x=pn;a=a.split(".");for(var E=0;E<a.length-1;E++){var b=a[E];b in x||(x[b]={}),x=x[b]}a=a[a.length-1],E=x[a],y=y(E),y!=E&&y!=null&&Ti(x,a,{writable:!0,value:y})}}dr("Object.assign",function(a){return a||zi}),dr("Array.prototype.fill",function(a){return a||function(y,x,E){var b=this.length||0;for(0>x&&(x=Math.max(0,b+x)),(E==null||E>b)&&(E=b),E=Number(E),0>E&&(E=Math.max(0,b+E)),x=Number(x||0);x<E;x++)this[x]=y;return this}});var un=typeof globalThis=="object"&&globalThis||typeof Pe.g=="object"&&Pe.g.global===Pe.g&&Pe.g||typeof self=="object"&&self.self===self&&self||{};un.requestAnimationFrame===void 0&&(un.setImmediate===void 0?un.requestAnimationFrame=function(a){un.setTimeout(a,0)}:un.requestAnimationFrame=un.setImmediate);function In(){}function Vi(a,y){var x=-1;return function(){var E=this,b=arguments;x!==-1&&un.clearTimeout(x),x=Fr(function(){x=-1,a.apply(E,b)},y)}}function Fr(a,y){return un.setTimeout(a,y)}function ii(a){return un.document.createElement(a)}function lt(a){throw Error(a)}function Rt(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),lt(a)}function ai(a,y,x,E){x=x===null?"*":typeof x=="string"?x:typeof x=="function"&&typeof x.className=="string"?x.className:"",E!==void 0&&(x+="."+E),lt(x+" is not in the range "+y+": "+a)}function ti(a){un.console&&un.console.log(a)}function tn(a){return typeof a=="object"&&a!==null}function si(a){return Array.isArray(a)||un.NodeList&&a instanceof un.NodeList||un.HTMLCollection&&a instanceof un.HTMLCollection}function Ri(a){return Array.prototype.slice.call(a)}function Yi(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):lt("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function tr(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):lt("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function Bn(){var a=wo.pop();return a===void 0?[]:a}function Ot(a){a.length=0,wo.push(a)}function qn(a){if(typeof a=="function"){if(a.className)return a.className;if(a.name)return a.name;var y=a.toString();if(y=y.substring(9,y.indexOf("(")).trim(),y!=="")return a._className=y}else if(tn(a)&&a.constructor)return qn(a.constructor);return typeof a}function Ji(a){var y=a;return tn(a)&&(a.text?y=a.text:a.name?y=a.name:a.key!==void 0?y=a.key:a.id!==void 0?y=a.id:a.constructor===Object&&(a.Text?y=a.Text:a.Name?y=a.Name:a.Key!==void 0?y=a.Key:a.Id!==void 0?y=a.Id:a.ID!==void 0&&(y=a.ID))),y===void 0?"undefined":y===null?"null":y.toString()}function $i(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var x=a.CA;if(x&&x[y])return!0;a=Object.getPrototypeOf(a)}return!1}function Pn(a,y,x){Object.defineProperty(Ao.prototype,a,{get:y,set:x})}function Mi(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var E=0,b=0;b<a.length;b+=2)x[E++]=y[a.substr(b,2)];for(a=x.join(""),a=a===""?"0":a,y=[],x=0;256>x;x++)y[x]=x;for(x=E=0;256>x;x++)E=(E+y[x]+119)%256,b=y[x],y[x]=y[E],y[E]=b;E=x=0;for(var z="",te=0;te<a.length;te++)x=(x+1)%256,E=(E+y[x])%256,b=y[x],y[x]=y[E],y[E]=b,z+=String.fromCharCode(a.charCodeAt(te)^y[(y[x]+y[E])%256]);return z.indexOf("GoJS 2.1 evaluation")>-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var Er=un.navigator!==void 0&&0<un.navigator.userAgent.indexOf("Trident/7"),Hr=un.navigator!==void 0&&un.navigator.platform!==void 0&&un.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,wo=[];Object.freeze([]),In.className="Util",In.Dx="32ab5ff3b26f42dc0ed90f21472913b5",In.adym="gojs.net",In.vfo="28e645fdb266",In.className="Util";function Kt(a,y,x){Kn(this),this.j=a,this.xa=y,this.o=x}Kt.prototype.toString=function(){return"EnumValue."+this.xa};function Oi(a,y){return y==null||y===""?null:a[y]}pn.Object.defineProperties(Kt.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),Kt.className="EnumValue";function Nr(){this.ew=[]}Nr.prototype.toString=function(){return this.ew.join("")},Nr.prototype.add=function(a){a!==""&&this.ew.push(a)},Nr.className="StringBuilder";function _i(){}_i.className="PropertyCollection";var Jr={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){un.console&&un.console.log(a)},HA:function(a,y,x,E){a.strokeStyle="red",a.fillStyle="red",a.font="8px sans-serif",a.beginPath(),a.moveTo(-10,0),a.lineTo(10,0),a.moveTo(0,-10),a.lineTo(0,10),a.stroke(),a.setTransform(1,0,0,1,0,0),a.scale(x,x),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.lineWidth=2,a.beginPath(),a.moveTo(E.left,E.top+20),a.lineTo(E.left,E.top),a.lineTo(E.left+20,E.top),a.moveTo(E.right,E.bottom-20),a.lineTo(E.right,E.bottom),a.lineTo(E.right-20,E.bottom),a.stroke(),a.fillText("DB: "+Math.round(E.x)+", "+Math.round(E.y)+", "+Math.round(E.width)+", "+Math.round(E.height),E.left,E.top-5)},DA:function(a){var y={},x;for(x in a){if(y.x=x,y.x!=="licenseKey"){var E=a[y.x];if(E.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(E.prototype);for(var b={Tj:0};b.Tj<y.Zl.length;b={Tj:b.Tj},b.Tj++){var z=Object.getOwnPropertyDescriptor(E.prototype,y.Zl[b.Tj]);z.get!==void 0&&z.set===void 0&&Object.defineProperty(E.prototype,y.Zl[b.Tj],{set:function(te,re){return function(){throw Error("Property "+te.Zl[re.Tj]+" of "+te.x+" is read-only.")}}(y,b)})}}}y={Zl:y.Zl,x:y.x}}}};function Zr(){}Zr.prototype.reset=function(){},Zr.prototype.next=function(){return!1},Zr.prototype.Ad=function(){return!1},Zr.prototype.first=function(){return null},Zr.prototype.any=function(){return!1},Zr.prototype.all=function(){return!0},Zr.prototype.each=function(){return this},Zr.prototype.map=function(){return this},Zr.prototype.filter=function(){return this},Zr.prototype.de=function(){},Zr.prototype.toString=function(){return"EmptyIterator"},pn.Object.defineProperties(Zr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Zr.prototype.first=Zr.prototype.first,Zr.prototype.hasNext=Zr.prototype.Ad,Zr.prototype.next=Zr.prototype.next,Zr.prototype.reset=Zr.prototype.reset;var Xr=null;Zr.className="EmptyIterator",Xr=new Zr;function Rr(a){this.key=-1,this.value=a}Rr.prototype.reset=function(){this.key=-1},Rr.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Rr.prototype.Ad=function(){return this.next()},Rr.prototype.first=function(){return this.key=0,this.value},Rr.prototype.any=function(a){return this.key=-1,a(this.value)},Rr.prototype.all=function(a){return this.key=-1,a(this.value)},Rr.prototype.each=function(a){return this.key=-1,a(this.value),this},Rr.prototype.map=function(a){return new Rr(a(this.value))},Rr.prototype.filter=function(a){return a(this.value)?new Rr(this.value):Xr},Rr.prototype.de=function(){this.value=null},Rr.prototype.toString=function(){return"SingletonIterator("+this.value+")"},pn.Object.defineProperties(Rr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Rr.prototype.first=Rr.prototype.first,Rr.prototype.hasNext=Rr.prototype.Ad,Rr.prototype.next=Rr.prototype.next,Rr.prototype.reset=Rr.prototype.reset,Rr.className="SingletonIterator";function Gr(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}Gr.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},Gr.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;a=a.s;var y=a.length,x=++this.Za,E=this.qf;if(E!==null)for(;x<y;){var b=a[x];if(E(b))return this.key=this.Za=x,this.value=b,!0;x++}else{if(x<y)return this.key=x,this.value=a[x],!0;this.de()}return!1},Gr.prototype.Ad=function(){return this.next()},Gr.prototype.first=function(){var a=this.Bb;this.qa=a.Ja,this.Za=0,a=a.s;var y=a.length,x=this.qf;if(x!==null){for(var E=0;E<y;){var b=a[E];if(x(b))return this.key=this.Za=E,this.value=b;E++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},Gr.prototype.any=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,E=this.qf,b=0;b<x;b++){var z=y[b];if((E===null||E(z))&&a(z))return!0}return!1},Gr.prototype.all=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,E=this.qf,b=0;b<x;b++){var z=y[b];if((E===null||E(z))&&!a(z))return!1}return!0},Gr.prototype.each=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,E=this.qf,b=0;b<x;b++){var z=y[b];(E===null||E(z))&&a(z)}return this},Gr.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var E=y.length,b=this.qf,z=0;z<E;z++){var te=y[z];(b===null||b(te))&&x.push(a(te))}return a=new An,a.s=x,a.xb(),a.iterator},Gr.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var E=y.length,b=this.qf,z=0;z<E;z++){var te=y[z];(b===null||b(te))&&a(te)&&x.push(te)}return a=new An,a.s=x,a.xb(),a.iterator},Gr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Gr.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},pn.Object.defineProperties(Gr.prototype,{iterator:{get:function(){return this}},predicate:{get:function(){return this.qf},set:function(a){this.qf=a}},count:{get:function(){var a=this.qf;if(a!==null){for(var y=0,x=this.Bb.s,E=x.length,b=0;b<E;b++)a(x[b])&&y++;return y}return this.Bb.s.length}}}),Gr.prototype.first=Gr.prototype.first,Gr.prototype.hasNext=Gr.prototype.Ad,Gr.prototype.next=Gr.prototype.next,Gr.prototype.reset=Gr.prototype.reset,Gr.className="ListIterator";function oo(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}oo.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},oo.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;var y=--this.Za;return 0<=y?(this.key=y,this.value=a.s[y],!0):(this.de(),!1)},oo.prototype.Ad=function(){return this.next()},oo.prototype.first=function(){var a=this.Bb;this.qa=a.Ja;var y=a.s;return this.Za=a=y.length-1,0<=a?(y=y[a],this.key=a,this.value=y):null},oo.prototype.any=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(a(y[x]))return!0;return!1},oo.prototype.all=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(!a(y[x]))return!1;return!0},oo.prototype.each=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)a(y[x]);return this},oo.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)x.push(a(y[E]));return a=new An,a.s=x,a.xb(),a.iterator},oo.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--){var b=y[E];a(b)&&x.push(b)}return a=new An,a.s=x,a.xb(),a.iterator},oo.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},oo.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},pn.Object.defineProperties(oo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),oo.prototype.first=oo.prototype.first,oo.prototype.hasNext=oo.prototype.Ad,oo.prototype.next=oo.prototype.next,oo.prototype.reset=oo.prototype.reset,oo.className="ListIteratorBackwards";function An(a){Kn(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&<("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}be=An.prototype,be.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},be.freeze=function(){return this._isFrozen=!0,this},be.ka=function(){return this._isFrozen=!1,this},be.toString=function(){return"List()#"+Tr(this)},be.add=function(a){return a===null?this:(this._isFrozen&&Rt(this,a),this.s.push(a),this.xb(),this)},be.push=function(a){this.add(a)},be.addAll=function(a){if(a===null)return this;this._isFrozen&&Rt(this);var y=this.s;if(si(a))for(var x=a.length,E=0;E<x;E++)y.push(a[E]);else for(a=a.iterator;a.next();)y.push(a.value);return this.xb(),this},be.clear=function(){this._isFrozen&&Rt(this),this.s.length=0,this.xb()},be.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},be.has=function(a){return this.contains(a)},be.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},be.M=function(a){var y=this.s;return(0>a||a>=y.length)&&ai(a,"0 <= i < length",An,"elt:i"),y[a]},be.get=function(a){return this.M(a)},be.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&ai(a,"0 <= i < length",An,"setElt:i"),this._isFrozen&&Rt(this,a),x[a]=y},be.set=function(a,y){this.cd(a,y)},be.first=function(){var a=this.s;return a.length===0?null:a[0]},be.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},be.pop=function(){this._isFrozen&&Rt(this);var a=this.s;return 0<a.length?a.pop():null},An.prototype.any=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)if(a(y[E]))return!0;return!1},An.prototype.all=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)if(!a(y[E]))return!1;return!0},An.prototype.each=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)a(y[E]);return this},An.prototype.map=function(a){for(var y=new An,x=[],E=this.s,b=E.length,z=0;z<b;z++)x.push(a(E[z]));return y.s=x,y.xb(),y},An.prototype.filter=function(a){for(var y=new An,x=[],E=this.s,b=E.length,z=0;z<b;z++){var te=E[z];a(te)&&x.push(te)}return y.s=x,y.xb(),y},be=An.prototype,be.Gb=function(a,y){0>a&&ai(a,">= 0",An,"insertAt:i"),this._isFrozen&&Rt(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},be.remove=function(a){if(a===null)return!1;this._isFrozen&&Rt(this,a);var y=this.s;return a=y.indexOf(a),a===-1?!1:(a===y.length-1?y.pop():y.splice(a,1),this.xb(),!0)},be.delete=function(a){return this.remove(a)},be.mb=function(a){var y=this.s;(0>a||a>=y.length)&&ai(a,"0 <= i < length",An,"removeAt:i"),this._isFrozen&&Rt(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},be.removeRange=function(a,y){var x=this.s,E=x.length;if(0>a)a=0;else if(a>=E)return this;if(0>y)return this;if(y>=E&&(y=E-1),a>y)return this;this._isFrozen&&Rt(this);for(var b=a,z=y+1;z<E;)x[b++]=x[z++];return x.length=E-(y-a+1),this.xb(),this},An.prototype.copy=function(){var a=new An,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},be=An.prototype,be.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),E=0;E<y;E++)x[E]=a[E];return x},be.Iv=function(){for(var a=new Fn,y=this.s,x=this.count,E=0;E<x;E++)a.add(y[E]);return a},be.sort=function(a){return this._isFrozen&&Rt(this),this.s.sort(a),this.xb(),this},be.zi=function(a,y,x){var E=this.s,b=E.length;y===void 0&&(y=0),x===void 0&&(x=b),this._isFrozen&&Rt(this);var z=x-y;if(1>=z)return this;if((0>y||y>=b-1)&&ai(y,"0 <= from < length",An,"sortRange:from"),z===2)return x=E[y],b=E[y+1],0<a(x,b)&&(E[y]=b,E[y+1]=x,this.xb()),this;if(y===0)if(x>=b)E.sort(a);else for(y=E.slice(0,x),y.sort(a),a=0;a<x;a++)E[a]=y[a];else if(x>=b)for(x=E.slice(y),x.sort(a),a=y;a<b;a++)E[a]=x[a-y];else for(b=E.slice(y,x),b.sort(a),a=y;a<x;a++)E[a]=b[a-y];return this.xb(),this},be.reverse=function(){return this._isFrozen&&Rt(this),this.s.reverse(),this.xb(),this},pn.Object.defineProperties(An.prototype,{_dataArray:{get:function(){return this.s}},count:{get:function(){return this.s.length}},size:{get:function(){return this.s.length}},length:{get:function(){return this.s.length}},iterator:{get:function(){if(0>=this.s.length)return Xr;var a=this.Sa;return a!==null?(a.reset(),a):new Gr(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Xr;var a=this.Hg;return a!==null?(a.reset(),a):new oo(this)}}}),An.prototype.reverse=An.prototype.reverse,An.prototype.sortRange=An.prototype.zi,An.prototype.sort=An.prototype.sort,An.prototype.toSet=An.prototype.Iv,An.prototype.toArray=An.prototype.Fa,An.prototype.removeRange=An.prototype.removeRange,An.prototype.removeAt=An.prototype.mb,An.prototype.delete=An.prototype.delete,An.prototype.remove=An.prototype.remove,An.prototype.insertAt=An.prototype.Gb,An.prototype.pop=An.prototype.pop,An.prototype.last=An.prototype.jc,An.prototype.first=An.prototype.first,An.prototype.set=An.prototype.set,An.prototype.setElt=An.prototype.cd,An.prototype.get=An.prototype.get,An.prototype.elt=An.prototype.M,An.prototype.indexOf=An.prototype.indexOf,An.prototype.has=An.prototype.has,An.prototype.contains=An.prototype.contains,An.prototype.clear=An.prototype.clear,An.prototype.addAll=An.prototype.addAll,An.prototype.push=An.prototype.push,An.prototype.add=An.prototype.add,An.prototype.thaw=An.prototype.ka,An.prototype.freeze=An.prototype.freeze,An.className="List";function ho(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}ho.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},ho.prototype.next=function(){var a=this.eg;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},ho.prototype.Ad=function(){return this.next()},ho.prototype.first=function(){var a=this.eg;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},ho.prototype.any=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},ho.prototype.all=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},ho.prototype.each=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},ho.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new An;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},ho.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new An;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},ho.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},ho.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},pn.Object.defineProperties(ho.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),ho.prototype.first=ho.prototype.first,ho.prototype.hasNext=ho.prototype.Ad,ho.prototype.next=ho.prototype.next,ho.prototype.reset=ho.prototype.reset,ho.className="SetIterator";function Fn(a){Kn(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&<("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}be=Fn.prototype,be.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},be.freeze=function(){return this._isFrozen=!0,this},be.ka=function(){return this._isFrozen=!1,this},be.toString=function(){return"Set()#"+Tr(this)},be.add=function(a){if(a===null)return this;this._isFrozen&&Rt(this,a);var y=a;return tn(a)&&(y=zr(a)),this.Tb[y]===void 0&&(this.Sb++,a=new Qt(a,a),this.Tb[y]=a,y=this.kf,y===null?this.ea=a:(a.ll=y,y.va=a),this.kf=a,this.xb()),this},be.addAll=function(a){if(a===null)return this;if(this._isFrozen&&Rt(this),si(a))for(var y=a.length,x=0;x<y;x++)this.add(a[x]);else for(a=a.iterator;a.next();)this.add(a.value);return this},be.contains=function(a){if(a===null)return!1;var y=a;return tn(a)&&(y=Tr(a),y===void 0)?!1:this.Tb[y]!==void 0},be.has=function(a){return this.contains(a)},be.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},be.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},be.first=function(){var a=this.ea;return a===null?null:a.value},Fn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Fn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Fn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},Fn.prototype.map=function(a){for(var y=new Fn,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},Fn.prototype.filter=function(a){for(var y=new Fn,x=this.ea;x!==null;){var E=x.value;a(E)&&y.add(E),x=x.va}return y},be=Fn.prototype,be.remove=function(a){if(a===null)return!1;this._isFrozen&&Rt(this,a);var y=a;if(tn(a)&&(y=Tr(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,E=a.ll;return x!==null&&(x.ll=E),E!==null&&(E.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=E),delete this.Tb[y],this.Sb--,this.xb(),!0},be.delete=function(a){return this.remove(a)},be.hp=function(a){if(a===null)return this;if(this._isFrozen&&Rt(this),si(a))for(var y=a.length,x=0;x<y;x++)this.remove(a[x]);else for(a=a.iterator;a.next();)this.remove(a.value);return this},be.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&Rt(this);var y=new Fn;y.addAll(a),a=[];for(var x=this.iterator;x.next();){var E=x.value;y.contains(E)||a.push(E)}return this.hp(a),this},be.clear=function(){this._isFrozen&&Rt(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Fn.prototype.copy=function(){var a=new Fn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},Fn.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,x=0,E;for(E in y)a[x]=y[E].value,x++;return a},Fn.prototype.Hv=function(){var a=new An,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function Kn(a){a.__gohashid=Co++}function zr(a){var y=a.__gohashid;return y===void 0&&(y=Co++,a.__gohashid=y),y}function Tr(a){return a.__gohashid}pn.Object.defineProperties(Fn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Xr;var a=this.Sa;return a!==null?(a.reset(),a):new ho(this)}}}),Fn.prototype.toList=Fn.prototype.Hv,Fn.prototype.toArray=Fn.prototype.Fa,Fn.prototype.clear=Fn.prototype.clear,Fn.prototype.retainAll=Fn.prototype.pA,Fn.prototype.removeAll=Fn.prototype.hp,Fn.prototype.delete=Fn.prototype.delete,Fn.prototype.remove=Fn.prototype.remove,Fn.prototype.first=Fn.prototype.first,Fn.prototype.containsAny=Fn.prototype.Ty,Fn.prototype.containsAll=Fn.prototype.Sy,Fn.prototype.has=Fn.prototype.has,Fn.prototype.contains=Fn.prototype.contains,Fn.prototype.addAll=Fn.prototype.addAll,Fn.prototype.add=Fn.prototype.add,Fn.prototype.thaw=Fn.prototype.ka,Fn.prototype.freeze=Fn.prototype.freeze;var Co=1;Fn.className="Set",Fn.uniqueHash=Kn,Fn.hashIdUnique=zr,Fn.hashId=Tr;function Yr(a){this.ma=a,this.qa=a.Ja,this.sa=null}Yr.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Yr.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=this.key=a=y.key,!0):(this.de(),!1)},Yr.prototype.Ad=function(){return this.next()},Yr.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.value=this.key=a=a.key):null},Yr.prototype.any=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Yr.prototype.all=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Yr.prototype.each=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;)a(y.key),y=y.va;return this},Yr.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new An;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Yr.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new An;for(y=y.ea;y!==null;){var E=y.key;a(E)&&x.add(E),y=y.va}return x.iterator},Yr.prototype.de=function(){this.value=this.key=null,this.qa=-1},Yr.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},pn.Object.defineProperties(Yr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Yr.prototype.first=Yr.prototype.first,Yr.prototype.hasNext=Yr.prototype.Ad,Yr.prototype.next=Yr.prototype.next,Yr.prototype.reset=Yr.prototype.reset,Yr.className="MapKeySetIterator";function Or(a){Fn.call(this),Kn(this),this._isFrozen=!0,this.ma=a}Zt(Or,Fn),be=Or.prototype,be.freeze=function(){return this},be.ka=function(){return this},be.toString=function(){return"MapKeySet("+this.ma.toString()+")"},be.add=function(){lt("This Set is read-only: "+this.toString())},be.contains=function(a){return this.ma.contains(a)},be.has=function(a){return this.contains(a)},be.remove=function(){lt("This Set is read-only: "+this.toString())},be.delete=function(a){return this.remove(a)},be.clear=function(){lt("This Set is read-only: "+this.toString())},be.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Or.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Or.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Or.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Or.prototype.map=function(a){for(var y=new Fn,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Or.prototype.filter=function(a){for(var y=new Fn,x=this.ma.ea;x!==null;){var E=x.key;a(E)&&y.add(E),x=x.va}return y},Or.prototype.copy=function(){return new Or(this.ma)},Or.prototype.Iv=function(){var a=new Fn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Or.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,E;for(E in a)y[x]=a[E].key,x++;return y},Or.prototype.Hv=function(){var a=new An,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},pn.Object.defineProperties(Or.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Xr:new Yr(this.ma)}}}),Or.prototype.toList=Or.prototype.Hv,Or.prototype.toArray=Or.prototype.Fa,Or.prototype.toSet=Or.prototype.Iv,Or.prototype.first=Or.prototype.first,Or.prototype.clear=Or.prototype.clear,Or.prototype.delete=Or.prototype.delete,Or.prototype.remove=Or.prototype.remove,Or.prototype.has=Or.prototype.has,Or.prototype.contains=Or.prototype.contains,Or.prototype.add=Or.prototype.add,Or.prototype.thaw=Or.prototype.ka,Or.prototype.freeze=Or.prototype.freeze,Or.className="MapKeySet";function No(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}No.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},No.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},No.prototype.Ad=function(){return this.next()},No.prototype.first=function(){var a=this.ma;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},No.prototype.any=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},No.prototype.all=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},No.prototype.each=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},No.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new An;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},No.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new An;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},No.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},No.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},pn.Object.defineProperties(No.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),No.prototype.first=No.prototype.first,No.prototype.hasNext=No.prototype.Ad,No.prototype.next=No.prototype.next,No.prototype.reset=No.prototype.reset,No.className="MapValueSetIterator";function Qt(a,y){this.key=a,this.value=y,this.ll=this.va=null}Qt.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Qt.className="KeyValuePair";function mn(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}mn.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},mn.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.key=y.key,this.value=y.value,!0):(this.de(),!1)},mn.prototype.Ad=function(){return this.next()},mn.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.key=a.key,this.value=a.value,a):null},mn.prototype.any=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},mn.prototype.all=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},mn.prototype.each=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y),y=y.va;return this},mn.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new An;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},mn.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new An;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},mn.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},mn.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},pn.Object.defineProperties(mn.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),mn.prototype.first=mn.prototype.first,mn.prototype.hasNext=mn.prototype.Ad,mn.prototype.next=mn.prototype.next,mn.prototype.reset=mn.prototype.reset,mn.className="MapIterator";function Wt(a){Kn(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&<("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}be=Wt.prototype,be.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},be.freeze=function(){return this._isFrozen=!0,this},be.ka=function(){return this._isFrozen=!1,this},be.toString=function(){return"Map()#"+Tr(this)},be.add=function(a,y){this._isFrozen&&Rt(this,a);var x=a;tn(a)&&(x=zr(a));var E=this.Tb[x];return E===void 0?(this.Sb++,a=new Qt(a,y),this.Tb[x]=a,x=this.kf,x===null?this.ea=a:(a.ll=x,x.va=a),this.kf=a,this.xb()):E.value=y,this},be.set=function(a,y){return this.add(a,y)},be.addAll=function(a){if(a===null)return this;if(si(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];this.add(E.key,E.value)}else if(a instanceof Wt)for(a=a.iterator;a.next();)this.add(a.key,a.value);else for(a=a.iterator;a.next();)y=a.value,this.add(y.key,y.value);return this},be.first=function(){return this.ea},Wt.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},Wt.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},Wt.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},Wt.prototype.map=function(a){for(var y=new Wt,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},Wt.prototype.filter=function(a){for(var y=new Wt,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},be=Wt.prototype,be.contains=function(a){var y=a;return tn(a)&&(y=Tr(a),y===void 0)?!1:this.Tb[y]!==void 0},be.has=function(a){return this.contains(a)},be.I=function(a){var y=a;return tn(a)&&(y=Tr(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},be.get=function(a){return this.I(a)},be.remove=function(a){if(a===null)return!1;this._isFrozen&&Rt(this,a);var y=a;if(tn(a)&&(y=Tr(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,E=a.ll;return x!==null&&(x.ll=E),E!==null&&(E.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=E),delete this.Tb[y],this.Sb--,this.xb(),!0},be.delete=function(a){return this.remove(a)},be.clear=function(){this._isFrozen&&Rt(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.jf!==null&&this.jf.reset(),this.kf=this.ea=null,this.xb()},Wt.prototype.copy=function(){var a=new Wt,y=this.Tb,x;for(x in y){var E=y[x];a.add(E.key,E.value)}return a},Wt.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),x=0,E;for(E in a){var b=a[E];y[x]=new Qt(b.key,b.value),x++}return y},Wt.prototype.Lf=function(){return new Or(this)},pn.Object.defineProperties(Wt.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Xr;var a=this.Sa;return a!==null?(a.reset(),a):new mn(this)}},iteratorKeys:{get:function(){return 0>=this.count?Xr:new Yr(this)}},iteratorValues:{get:function(){if(0>=this.count)return Xr;var a=this.jf;return a!==null?(a.reset(),a):new No(this)}}}),Wt.prototype.toKeySet=Wt.prototype.Lf,Wt.prototype.toArray=Wt.prototype.Fa,Wt.prototype.clear=Wt.prototype.clear,Wt.prototype.delete=Wt.prototype.delete,Wt.prototype.remove=Wt.prototype.remove,Wt.prototype.get=Wt.prototype.get,Wt.prototype.getValue=Wt.prototype.I,Wt.prototype.has=Wt.prototype.has,Wt.prototype.contains=Wt.prototype.contains,Wt.prototype.first=Wt.prototype.first,Wt.prototype.addAll=Wt.prototype.addAll,Wt.prototype.set=Wt.prototype.set,Wt.prototype.add=Wt.prototype.add,Wt.prototype.thaw=Wt.prototype.ka,Wt.prototype.freeze=Wt.prototype.freeze,Wt.className="Map";function je(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):lt("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Qn,Ai,qi,Je,Yt;je.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},je.prototype.h=function(a,y){return this.x=a,this.y=y,this},je.prototype.sg=function(a,y){return this.x=a,this.y=y,this},je.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},je.prototype.copy=function(){var a=new je;return a.x=this.x,a.y=this.y,a},be=je.prototype,be.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},be.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},be.freeze=function(){return this._isFrozen=!0,this},be.ka=function(){return Object.isFrozen(this)&<("cannot thaw constant: "+this),this._isFrozen=!1,this};function Lt(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new je(x,b)}return new je}function on(a){return a.x.toString()+" "+a.y.toString()}be.toString=function(){return"Point("+this.x+","+this.y+")"},be.D=function(a){return a instanceof je?this.x===a.x&&this.y===a.y:!1},be.hi=function(a,y){return this.x===a&&this.y===y},be.Xa=function(a){return St.B(this.x,a.x)&&St.B(this.y,a.y)},be.add=function(a){return this.x+=a.x,this.y+=a.y,this},be.re=function(a){return this.x-=a.x,this.y-=a.y,this},be.offset=function(a,y){return this.x+=a,this.y+=y,this},je.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));return this.x=a*y-E*x,this.y=E*y+a*x,this},be=je.prototype,be.scale=function(a,y){return this.x*=a,this.y*=y,this},be.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},be.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},be.normalize=function(){var a=this.x,y=this.y,x=Math.sqrt(a*a+y*y);return 0<x&&(this.x=a/x,this.y=y/x),this},be.ab=function(a){return Gn(a.x-this.x,a.y-this.y)},be.direction=function(a,y){return Gn(a-this.x,y-this.y)};function Gn(a,y){if(a===0)return 0<y?90:0>y?270:0;if(y===0)return 0<a?0:180;if(isNaN(a)||isNaN(y))return 0;var x=180*Math.atan(Math.abs(y/a))/Math.PI;return 0>a?x=0>y?x+180:180-x:0>y&&(x=360-x),x}be.Ry=function(a,y){return St.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},be.fA=function(a,y,x,E){return St.qh(a,y,x,E,this.x,this.y,this),this},be.gA=function(a,y){return St.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},be.uA=function(a,y,x,E){return St.No(this.x,this.y,a,y,x,E,this),this},be.vA=function(a,y){return St.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},be.xi=function(a,y){return this.x=a.x+y.x*a.width+y.offsetX,this.y=a.y+y.y*a.height+y.offsetY,this},be.yi=function(a,y,x,E,b){return this.x=a+b.x*x+b.offsetX,this.y=y+b.y*E+b.offsetY,this},be.transform=function(a){return a.Ga(this),this};function vn(a,y){return y.Cd(a),a}function dn(a,y,x,E,b,z){var te=b-x,re=z-E,oe=te*te+re*re;x-=a,E-=y;var le=-x*te-E*re;return 0>=le||le>=oe?(te=b-a,re=z-y,Math.min(x*x+E*E,te*te+re*re)):(a=te*E-re*x,a*a/oe)}function Mn(a,y,x,E){return a=x-a,y=E-y,a*a+y*y}function ke(a,y,x,E){return a=x-a,y=E-y,a===0?0<y?90:0>y?270:0:y===0?0<a?0:180:isNaN(a)||isNaN(y)?0:(E=180*Math.atan(Math.abs(y/a))/Math.PI,0>a?E=0>y?E+180:180-E:0>y&&(E=360-E),E)}be.w=function(){return isFinite(this.x)&&isFinite(this.y)},je.alloc=function(){var a=ct.pop();return a===void 0?new je:a},je.allocAt=function(a,y){var x=ct.pop();return x===void 0?new je(a,y):(x.x=a,x.y=y,x)},je.free=function(a){ct.push(a)},je.prototype.isReal=je.prototype.w,je.prototype.setSpot=je.prototype.yi,je.prototype.setRectSpot=je.prototype.xi,je.prototype.snapToGridPoint=je.prototype.vA,je.prototype.snapToGrid=je.prototype.uA,je.prototype.projectOntoLineSegmentPoint=je.prototype.gA,je.prototype.projectOntoLineSegment=je.prototype.fA,je.intersectingLineSegments=function(a,y,x,E,b,z,te,re){return St.Rl(a,y,x,E,b,z,te,re)},je.prototype.compareWithLineSegmentPoint=je.prototype.Ry,je.compareWithLineSegment=function(a,y,x,E,b,z){return St.Fl(a,y,x,E,b,z)},je.prototype.direction=je.prototype.direction,je.prototype.directionPoint=je.prototype.ab,je.prototype.normalize=je.prototype.normalize,je.prototype.distanceSquared=je.prototype.zd,je.prototype.distanceSquaredPoint=je.prototype.Bf,je.prototype.scale=je.prototype.scale,je.prototype.rotate=je.prototype.rotate,je.prototype.offset=je.prototype.offset,je.prototype.subtract=je.prototype.re,je.prototype.add=je.prototype.add,je.prototype.equalsApprox=je.prototype.Xa,je.prototype.equalTo=je.prototype.hi,je.prototype.equals=je.prototype.D,je.prototype.set=je.prototype.set,je.prototype.setTo=je.prototype.sg;var ct=[];je.className="Point",je.parse=Lt,je.stringify=on,je.distanceLineSegmentSquared=dn,je.distanceSquared=Mn,je.direction=ke,je.Origin=Qn=new je(0,0).ja(),je.InfiniteTopLeft=Ai=new je(-1/0,-1/0).ja(),je.InfiniteBottomRight=qi=new je(1/0,1/0).ja(),je.SixPoint=Je=new je(6,6).ja(),je.NoPoint=Yt=new je(NaN,NaN).ja(),je.parse=Lt,je.stringify=on,je.distanceLineSegmentSquared=dn,je.distanceSquared=Mn,je.direction=ke;function Xe(a,y){a===void 0?this.height=this.width=0:typeof a=="number"&&(0<=a||isNaN(a))&&typeof y=="number"&&(0<=y||isNaN(y))?(this.width=a,this.height=y):lt("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var Pt,Ct,Xt,qt,sn,Tn,jn;Xe.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Xe.prototype.h=function(a,y){return this.width=a,this.height=y,this},Xe.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Xe.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Xe.prototype.copy=function(){var a=new Xe;return a.width=this.width,a.height=this.height,a},be=Xe.prototype,be.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},be.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},be.freeze=function(){return this._isFrozen=!0,this},be.ka=function(){return Object.isFrozen(this)&<("cannot thaw constant: "+this),this._isFrozen=!1,this};function gn(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new Xe(x,b)}return new Xe}function $n(a){return a.width.toString()+" "+a.height.toString()}be.toString=function(){return"Size("+this.width+","+this.height+")"},be.D=function(a){return a instanceof Xe?this.width===a.width&&this.height===a.height:!1},be.hi=function(a,y){return this.width===a&&this.height===y},be.Xa=function(a){return St.B(this.width,a.width)&&St.B(this.height,a.height)},be.Bc=function(a,y){return a=this.width+a,this.width=0<=a?a:0,y=this.height+y,this.height=0<=y?y:0,this},be.w=function(){return isFinite(this.width)&&isFinite(this.height)},Xe.alloc=function(){var a=gi.pop();return a===void 0?new Xe:a},Xe.free=function(a){gi.push(a)},Xe.prototype.isReal=Xe.prototype.w,Xe.prototype.inflate=Xe.prototype.Bc,Xe.prototype.equalsApprox=Xe.prototype.Xa,Xe.prototype.equalTo=Xe.prototype.hi,Xe.prototype.equals=Xe.prototype.D,Xe.prototype.set=Xe.prototype.set,Xe.prototype.setTo=Xe.prototype.sg;var gi=[];Xe.className="Size",Xe.parse=gn,Xe.stringify=$n,Xe.ZeroSize=Pt=new Xe(0,0).ja(),Xe.OneSize=Ct=new Xe(1,1).ja(),Xe.SixSize=Xt=new Xe(6,6).ja(),Xe.EightSize=qt=new Xe(8,8).ja(),Xe.TenSize=sn=new Xe(10,10).ja(),Xe.InfiniteSize=Tn=new Xe(1/0,1/0).ja(),Xe.NoSize=jn=new Xe(NaN,NaN).ja(),Xe.parse=gn,Xe.stringify=$n;function pt(a,y,x,E){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof E=="number"&&(0<=E||isNaN(E))?(this.x=a,this.y=y,this.width=x,this.height=E):a instanceof je?(x=a.x,a=a.y,y instanceof je?(E=y.x,y=y.y,this.x=Math.min(x,E),this.y=Math.min(a,y),this.width=Math.abs(x-E),this.height=Math.abs(a-y)):y instanceof Xe?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):lt("Incorrect second argument supplied to Rect constructor "+y)):lt("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}be=pt.prototype,be.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},be.h=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this};function Vn(a,y,x){a.width=y,a.height=x}be.sg=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this},be.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},be.dd=function(a){return this.x=a.x,this.y=a.y,this},be.tA=function(a){return this.width=a.width,this.height=a.height,this},pt.prototype.copy=function(){var a=new pt;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},be=pt.prototype,be.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},be.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},be.freeze=function(){return this._isFrozen=!0,this},be.ka=function(){return Object.isFrozen(this)&<("cannot thaw constant: "+this),this._isFrozen=!1,this};function Wn(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;(E=a[y++])&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;(E=a[y++])&&(z=parseFloat(E));for(var te=0;a[y]==="";)y++;return(E=a[y++])&&(te=parseFloat(E)),new pt(x,b,z,te)}return new pt}function Rn(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}be.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},be.D=function(a){return a instanceof pt?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},be.hi=function(a,y,x,E){return this.x===a&&this.y===y&&this.width===x&&this.height===E},be.Xa=function(a){return St.B(this.x,a.x)&&St.B(this.y,a.y)&&St.B(this.width,a.width)&&St.B(this.height,a.height)};function Ln(a,y){return St.$(a.x,y.x)&&St.$(a.y,y.y)&&St.$(a.width,y.width)&&St.$(a.height,y.height)}be.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},be.Re=function(a){return this.x<=a.x&&a.x+a.width<=this.x+this.width&&this.y<=a.y&&a.y+a.height<=this.y+this.height},be.contains=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+E<=this.y+this.height},be.offset=function(a,y){return this.x+=a,this.y+=y,this},be.Bc=function(a,y){return di(this,y,a,y,a)},be.Co=function(a){return di(this,a.top,a.right,a.bottom,a.left)},be.Fv=function(a){return di(this,-a.top,-a.right,-a.bottom,-a.left)},be.Hz=function(a,y,x,E){return di(this,a,y,x,E)};function di(a,y,x,E,b){var z=a.width;return x+b<=-z?(a.x+=z/2,a.width=0):(a.x-=b,a.width+=x+b),x=a.height,y+E<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+E),a}be.Ex=function(a){return vi(this,a.x,a.y,a.width,a.height)},be.Uu=function(a,y,x,E){return vi(this,a,y,x,E)};function vi(a,y,x,E,b){var z=Math.max(a.x,y),te=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+E),x=Math.min(a.y+a.height,x+b),a.x=z,a.y=te,a.width=Math.max(0,y-z),a.height=Math.max(0,x-te),a}be.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},be.Vu=function(a,y,x,E){var b=this.width,z=this.x;return b!==1/0&&x!==1/0&&(b+=z,x+=a,isNaN(x)||isNaN(b)||z>x||a>b)?!1:(a=this.height,x=this.y,!(a!==1/0&&E!==1/0&&(a+=x,E+=y,isNaN(E)||isNaN(a)||x>E||y>a)))};function Dn(a,y){var x=a.width,E=a.x,b=y.x-10;return E>y.width+10+10+b||b>x+E?!1:(x=a.height,a=a.y,E=y.y-10,!(a>y.height+10+10+E||E>x+a))}be.Ye=function(a){return yi(this,a.x,a.y,0,0)},be.ed=function(a){return yi(this,a.x,a.y,a.width,a.height)},be.Kv=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),yi(this,a,y,x,E)};function yi(a,y,x,E,b){var z=Math.min(a.x,y),te=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+E),x=Math.max(a.y+a.height,x+b),a.x=z,a.y=te,a.width=y-z,a.height=x-te,a}be.yi=function(a,y,x){return this.x=a-x.offsetX-x.x*this.width,this.y=y-x.offsetY-x.y*this.height,this};function xi(a,y,x,E,b,z,te,re){return te===void 0&&(te=0),re===void 0&&(re=0),a<=b&&b+te<=a+x&&y<=z&&z+re<=y+E}function wi(a,y,x,E,b,z,te,re){return a>te+b||b>x+a?!1:!(y>re+z||z>E+y)}be.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},be.Mz=function(){return this.width===0&&this.height===0},pt.alloc=function(){var a=ur.pop();return a===void 0?new pt:a},pt.allocAt=function(a,y,x,E){var b=ur.pop();return b===void 0?new pt(a,y,x,E):b.h(a,y,x,E)},pt.free=function(a){ur.push(a)},pn.Object.defineProperties(pt.prototype,{left:{get:function(){return this.x},set:function(a){this.x=a}},top:{get:function(){return this.y},set:function(a){this.y=a}},right:{get:function(){return this.x+this.width},set:function(a){this.x+=a-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(a){this.y+=a-(this.y+this.height)}},position:{get:function(){return new je(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Xe(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new je(this.x+this.width/2,this.y+this.height/2)},set:function(a){this.x=a.x-this.width/2,this.y=a.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(a){this.x=a-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(a){this.y=a-this.height/2}}}),pt.prototype.isEmpty=pt.prototype.Mz,pt.prototype.isReal=pt.prototype.w,pt.intersectsLineSegment=function(a,y,x,E,b,z,te,re){return St.Fx(a,y,x,E,b,z,te,re)},pt.prototype.setSpot=pt.prototype.yi,pt.prototype.union=pt.prototype.Kv,pt.prototype.unionRect=pt.prototype.ed,pt.prototype.unionPoint=pt.prototype.Ye,pt.prototype.intersects=pt.prototype.Vu,pt.prototype.intersectsRect=pt.prototype.Yc,pt.prototype.intersect=pt.prototype.Uu,pt.prototype.intersectRect=pt.prototype.Ex,pt.prototype.grow=pt.prototype.Hz,pt.prototype.subtractMargin=pt.prototype.Fv,pt.prototype.addMargin=pt.prototype.Co,pt.prototype.inflate=pt.prototype.Bc,pt.prototype.offset=pt.prototype.offset,pt.prototype.contains=pt.prototype.contains,pt.prototype.containsRect=pt.prototype.Re,pt.prototype.containsPoint=pt.prototype.ca,pt.prototype.equalsApprox=pt.prototype.Xa,pt.prototype.equalTo=pt.prototype.hi,pt.prototype.equals=pt.prototype.D,pt.prototype.setSize=pt.prototype.tA,pt.prototype.setPoint=pt.prototype.dd,pt.prototype.set=pt.prototype.set,pt.prototype.setTo=pt.prototype.sg;var gr=null,Ar=null,ur=[];pt.className="Rect",pt.parse=Wn,pt.stringify=Rn,pt.contains=xi,pt.intersects=wi,pt.ZeroRect=gr=new pt(0,0,0,0).ja(),pt.NoRect=Ar=new pt(NaN,NaN,NaN,NaN).ja(),pt.parse=Wn,pt.stringify=Rn,pt.contains=xi,pt.intersects=wi;function ri(a,y,x,E){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):E!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=E):lt("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}ri.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},ri.prototype.sg=function(a,y,x,E){return this.top=a,this.right=y,this.bottom=x,this.left=E,this},ri.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},ri.prototype.copy=function(){var a=new ri;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},be=ri.prototype,be.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},be.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},be.freeze=function(){return this._isFrozen=!0,this},be.ka=function(){return Object.isFrozen(this)&<("cannot thaw constant: "+this),this._isFrozen=!1,this};function mr(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var E=a[y++];if(E&&(x=parseFloat(E)),isNaN(x))return new ri;for(var b=NaN;a[y]==="";)y++;if((E=a[y++])&&(b=parseFloat(E)),isNaN(b))return new ri(x);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new ri(x,b);for(var te=NaN;a[y]==="";)y++;return(E=a[y++])&&(te=parseFloat(E)),isNaN(te)?new ri(x,b):new ri(x,b,z,te)}return new ri}function rr(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}be.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},be.D=function(a){return a instanceof ri?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},be.hi=function(a,y,x,E){return this.top===a&&this.right===y&&this.bottom===x&&this.left===E},be.Xa=function(a){return St.B(this.top,a.top)&&St.B(this.right,a.right)&&St.B(this.bottom,a.bottom)&&St.B(this.left,a.left)},be.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},ri.alloc=function(){var a=wr.pop();return a===void 0?new ri:a},ri.free=function(a){wr.push(a)},ri.prototype.isReal=ri.prototype.w,ri.prototype.equalsApprox=ri.prototype.Xa,ri.prototype.equalTo=ri.prototype.hi,ri.prototype.equals=ri.prototype.D,ri.prototype.set=ri.prototype.set,ri.prototype.setTo=ri.prototype.sg;var fr=null,nr=null,wr=[];ri.className="Margin",ri.parse=mr,ri.stringify=rr,ri.ZeroMargin=fr=new ri(0,0,0,0).ja(),ri.TwoMargin=nr=new ri(2,2,2,2).ja(),ri.parse=mr,ri.stringify=rr;function bn(a,y,x,E){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),E===void 0&&(E=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=E),this._isFrozen=!1}var Fi,Ii,Ki,Wi,Hi,hi,Li,pr,Jn,ni,Ui,or,br,co,mo,To,qr,ta,Fo,ar,Ir,bo,Zo,Ko,Io,Eo,ia,ma,Oo,Da,Kr,so,uo,Do,ko,Ea;bn.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},bn.prototype.sg=function(a,y,x,E){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=E,this},bn.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},bn.prototype.copy=function(){var a=new bn;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},be=bn.prototype,be.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},be.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},be.freeze=function(){return this._isFrozen=!0,this},be.ka=function(){return Object.isFrozen(this)&<("cannot thaw constant: "+this),this._isFrozen=!1,this};function xr(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function ir(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Fi;if(a==="TopLeft")return Ii;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Ki;if(a==="TopRight")return Wi;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Hi;if(a==="Center")return hi;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Li;if(a==="BottomLeft")return pr;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Jn;if(a==="BottomRight")return ni;if(a==="TopSide")return Ui;if(a==="LeftSide")return or;if(a==="RightSide")return br;if(a==="BottomSide")return co;if(a==="TopBottomSides")return mo;if(a==="LeftRightSides")return To;if(a==="TopLeftSides")return qr;if(a==="TopRightSides")return ta;if(a==="BottomLeftSides")return Fo;if(a==="BottomRightSides")return ar;if(a==="NotTopSide")return Ir;if(a==="NotLeftSide")return bo;if(a==="NotRightSide")return Zo;if(a==="NotBottomSide")return Ko;if(a==="AllSides")return Io;if(a==="Default")return Eo;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E!==void 0&&0<E.length&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;E=a[y++],E!==void 0&&0<E.length&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;E=a[y++],E!==void 0&&0<E.length&&(z=parseFloat(E));for(var te=0;a[y]==="";)y++;return E=a[y++],E!==void 0&&0<E.length&&(te=parseFloat(E)),new bn(x,b,z,te)}return new bn}function kr(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}be.toString=function(){return this.sb()?this.offsetX===0&&this.offsetY===0?"Spot("+this.x+","+this.y+")":"Spot("+this.x+","+this.y+","+this.offsetX+","+this.offsetY+")":this.D(Fi)?"None":this.D(Ii)?"TopLeft":this.D(Ki)?"Top":this.D(Wi)?"TopRight":this.D(Hi)?"Left":this.D(hi)?"Center":this.D(Li)?"Right":this.D(pr)?"BottomLeft":this.D(Jn)?"Bottom":this.D(ni)?"BottomRight":this.D(Ui)?"TopSide":this.D(or)?"LeftSide":this.D(br)?"RightSide":this.D(co)?"BottomSide":this.D(mo)?"TopBottomSides":this.D(To)?"LeftRightSides":this.D(qr)?"TopLeftSides":this.D(ta)?"TopRightSides":this.D(Fo)?"BottomLeftSides":this.D(ar)?"BottomRightSides":this.D(Ir)?"NotTopSide":this.D(bo)?"NotLeftSide":this.D(Zo)?"NotRightSide":this.D(Ko)?"NotBottomSide":this.D(Io)?"AllSides":this.D(Eo)?"Default":"None"},be.D=function(a){return a instanceof bn?(this.x===a.x||isNaN(this.x)&&isNaN(a.x))&&(this.y===a.y||isNaN(this.y)&&isNaN(a.y))&&this.offsetX===a.offsetX&&this.offsetY===a.offsetY:!1},be.gv=function(){return new bn(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},be.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(ia))a=or;else if(a.D(ma))a=br;else if(a.D(Oo))a=Ui;else if(a.D(Da))a=co;else return!1;return a=a.offsetY,(this.offsetY&a)===a},be.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},be.Mc=function(){return isNaN(this.x)||isNaN(this.y)},be.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},be.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},be.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},bn.alloc=function(){var a=yr.pop();return a===void 0?new bn:a},bn.free=function(a){yr.push(a)},bn.prototype.isDefault=bn.prototype.Xb,bn.prototype.isNone=bn.prototype.ys,bn.prototype.isSide=bn.prototype.$c,bn.prototype.isNoSpot=bn.prototype.Mc,bn.prototype.isSpot=bn.prototype.sb,bn.prototype.includesSide=bn.prototype.Hf,bn.prototype.opposite=bn.prototype.gv,bn.prototype.equals=bn.prototype.D,bn.prototype.set=bn.prototype.set,bn.prototype.setTo=bn.prototype.sg;var yr=[];bn.className="Spot",bn.parse=ir,bn.stringify=kr,bn.None=Fi=xr(new bn(0,0,0,0),0).ja(),bn.Default=Eo=xr(new bn(0,0,-1,0),-1).ja(),bn.TopLeft=Ii=new bn(0,0,0,0).ja(),bn.TopCenter=Ki=new bn(.5,0,0,0).ja(),bn.TopRight=Wi=new bn(1,0,0,0).ja(),bn.LeftCenter=Hi=new bn(0,.5,0,0).ja(),bn.Center=hi=new bn(.5,.5,0,0).ja(),bn.RightCenter=Li=new bn(1,.5,0,0).ja(),bn.BottomLeft=pr=new bn(0,1,0,0).ja(),bn.BottomCenter=Jn=new bn(.5,1,0,0).ja(),bn.BottomRight=ni=new bn(1,1,0,0).ja(),bn.MiddleTop=Kr=Ki,bn.MiddleLeft=so=Hi,bn.MiddleRight=uo=Li,bn.MiddleBottom=Do=Jn,bn.Top=Oo=Ki,bn.Left=ia=Hi,bn.Right=ma=Li,bn.Bottom=Da=Jn,bn.TopSide=Ui=xr(new bn(0,0,1,1),1).ja(),bn.LeftSide=or=xr(new bn(0,0,1,2),1).ja(),bn.RightSide=br=xr(new bn(0,0,1,4),1).ja(),bn.BottomSide=co=xr(new bn(0,0,1,8),1).ja(),bn.TopBottomSides=mo=xr(new bn(0,0,1,9),1).ja(),bn.LeftRightSides=To=xr(new bn(0,0,1,6),1).ja(),bn.TopLeftSides=qr=xr(new bn(0,0,1,3),1).ja(),bn.TopRightSides=ta=xr(new bn(0,0,1,5),1).ja(),bn.BottomLeftSides=Fo=xr(new bn(0,0,1,10),1).ja(),bn.BottomRightSides=ar=xr(new bn(0,0,1,12),1).ja(),bn.NotTopSide=Ir=xr(new bn(0,0,1,14),1).ja(),bn.NotLeftSide=bo=xr(new bn(0,0,1,13),1).ja(),bn.NotRightSide=Zo=xr(new bn(0,0,1,11),1).ja(),bn.NotBottomSide=Ko=xr(new bn(0,0,1,7),1).ja(),bn.AllSides=Io=xr(new bn(0,0,1,15),1).ja(),ko=new bn(.156,.156).ja(),Ea=new bn(.844,.844).ja(),bn.parse=ir,bn.stringify=kr;function ui(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}ui.prototype.set=function(a){return this.m11=a.m11,this.m12=a.m12,this.m21=a.m21,this.m22=a.m22,this.dx=a.dx,this.dy=a.dy,this},ui.prototype.setTransform=function(a,y,x,E,b,z){return this.m11=a,this.m12=y,this.m21=x,this.m22=E,this.dx=b,this.dy=z,this},ui.prototype.copy=function(){var a=new ui;return a.m11=this.m11,a.m12=this.m12,a.m21=this.m21,a.m22=this.m22,a.dx=this.dx,a.dy=this.dy,a},ui.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},ui.prototype.D=function(a){return this.m11===a.m11&&this.m12===a.m12&&this.m21===a.m21&&this.m22===a.m22&&this.dx===a.dx&&this.dy===a.dy},ui.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},ui.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},ui.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,x=this.m12*a.m11+this.m22*a.m12,E=this.m11*a.m21+this.m21*a.m22,b=this.m12*a.m21+this.m22*a.m22;return this.dx=this.m11*a.dx+this.m21*a.dy+this.dx,this.dy=this.m12*a.dx+this.m22*a.dy+this.dy,this.m11=y,this.m12=x,this.m21=E,this.m22=b,this},ui.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),x=a.m22*y,E=-a.m12*y,b=-a.m21*y,z=a.m11*y,te=y*(a.m21*a.dy-a.m22*a.dx);return a=y*(a.m12*a.dx-a.m11*a.dy),y=this.m11*x+this.m21*E,x=this.m12*x+this.m22*E,E=this.m11*b+this.m21*z,b=this.m12*b+this.m22*z,this.dx=this.m11*te+this.m21*a+this.dx,this.dy=this.m12*te+this.m22*a+this.dy,this.m11=y,this.m12=x,this.m21=E,this.m22=b,this},ui.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,x=-this.m21*a,E=this.m11*a,b=a*(this.m21*this.dy-this.m22*this.dx),z=a*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*a,this.m12=y,this.m21=x,this.m22=E,this.dx=b,this.dy=z,this},ui.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.m12*a+this.m22*E,z=this.m11*-E+this.m21*a,te=this.m12*-E+this.m22*a;return this.m11=this.m11*a+this.m21*E,this.m12=b,this.m21=z,this.m22=te,this.translate(-y,-x),this},be=ui.prototype,be.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},be.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},be.Ga=function(a){var y=a.x,x=a.y;return a.h(y*this.m11+x*this.m21+this.dx,y*this.m12+x*this.m22+this.dy)},be.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,E=a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},be.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,E=1.2*a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},be.pp=function(a){var y=a.x,x=a.y,E=y+a.width,b=x+a.height,z=this.m11,te=this.m12,re=this.m21,oe=this.m22,le=this.dx,he=this.dy,ge=y*z+x*re+le,Se=y*te+x*oe+he,we=E*z+x*re+le,Ae=E*te+x*oe+he;return x=y*z+b*re+le,y=y*te+b*oe+he,z=E*z+b*re+le,E=E*te+b*oe+he,b=Math.min(ge,we),ge=Math.max(ge,we),we=Math.min(Se,Ae),Se=Math.max(Se,Ae),b=Math.min(b,x),ge=Math.max(ge,x),we=Math.min(we,y),Se=Math.max(Se,y),b=Math.min(b,z),ge=Math.max(ge,z),we=Math.min(we,E),Se=Math.max(Se,E),a.h(b,we,ge-b,Se-we),a},ui.alloc=function(){var a=_o.pop();return a===void 0?new ui:a},ui.free=function(a){_o.push(a)},ui.prototype.transformRect=ui.prototype.pp,ui.prototype.transformPoint=ui.prototype.Ga,ui.prototype.scale=ui.prototype.scale,ui.prototype.translate=ui.prototype.translate,ui.prototype.rotate=ui.prototype.rotate,ui.prototype.invert=ui.prototype.Vj,ui.prototype.multiplyInverted=ui.prototype.bv,ui.prototype.multiply=ui.prototype.multiply,ui.prototype.reset=ui.prototype.reset,ui.prototype.isIdentity=ui.prototype.ws,ui.prototype.equals=ui.prototype.D,ui.prototype.setTransform=ui.prototype.setTransform,ui.prototype.set=ui.prototype.set;var _o=[];ui.className="Transform",ui.xF="54a702f3e53909c447824c6706603faf4c";var St={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=St.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);St.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5<a},$:function(a,y){return a-=y,5e-8>a&&-5e-8<a},Yb:function(a,y,x,E,b,z,te){if(0>=b&&(b=1e-6),a<x)var re=a,oe=x;else re=x,oe=a;if(y<E)var le=y,he=E;else le=E,he=y;if(a===x)return le<=te&&te<=he&&a-b<=z&&z<=a+b;if(y===E)return re<=z&&z<=oe&&y-b<=te&&te<=y+b;if(oe+=b,re-=b,re<=z&&z<=oe&&(he+=b,le-=b,le<=te&&te<=he))if(oe-re>he-le)if(a-x>b||x-a>b){if(z=(E-y)/(x-a)*(z-a)+y,z-b<=te&&te<=z+b)return!0}else return!0;else if(y-E>b||E-y>b){if(te=(x-a)/(E-y)*(te-y)+a,te-b<=z&&z<=te+b)return!0}else return!0;return!1},cs:function(a,y,x,E,b,z,te,re,oe,le,he,ge){if(St.Yb(a,y,te,re,ge,x,E)&&St.Yb(a,y,te,re,ge,b,z))return St.Yb(a,y,te,re,ge,le,he);var Se=(a+x)/2,we=(y+E)/2,Ae=(x+b)/2,Ne=(E+z)/2;b=(b+te)/2,z=(z+re)/2,E=(Se+Ae)/2,x=(we+Ne)/2,Ae=(Ae+b)/2,Ne=(Ne+z)/2;var $e=(E+Ae)/2,Ke=(x+Ne)/2;return St.cs(a,y,Se,we,E,x,$e,Ke,oe,le,he,ge)||St.cs($e,Ke,Ae,Ne,b,z,te,re,oe,le,he,ge)},ax:function(a,y,x,E,b,z,te,re,oe){var le=(x+b)/2,he=(E+z)/2;return oe.h((((a+x)/2+le)/2+(le+(b+te)/2)/2)/2,(((y+E)/2+he)/2+(he+(z+re)/2)/2)/2),oe},My:function(a,y,x,E,b,z,te,re){var oe=(x+b)/2,le=(E+z)/2;return ke(((a+x)/2+oe)/2,((y+E)/2+le)/2,(oe+(b+te)/2)/2,(le+(z+re)/2)/2)},Dl:function(a,y,x,E,b,z,te,re,oe,le){if(St.Yb(a,y,te,re,oe,x,E)&&St.Yb(a,y,te,re,oe,b,z))yi(le,a,y,0,0),yi(le,te,re,0,0);else{var he=(a+x)/2,ge=(y+E)/2,Se=(x+b)/2,we=(E+z)/2;b=(b+te)/2,z=(z+re)/2,E=(he+Se)/2,x=(ge+we)/2,Se=(Se+b)/2,we=(we+z)/2;var Ae=(E+Se)/2,Ne=(x+we)/2;St.Dl(a,y,he,ge,E,x,Ae,Ne,oe,le),St.Dl(Ae,Ne,Se,we,b,z,te,re,oe,le)}return le},Qe:function(a,y,x,E,b,z,te,re,oe,le){if(St.Yb(a,y,te,re,oe,x,E)&&St.Yb(a,y,te,re,oe,b,z))le.length===0&&(le.push(a),le.push(y)),le.push(te),le.push(re);else{var he=(a+x)/2,ge=(y+E)/2,Se=(x+b)/2,we=(E+z)/2;b=(b+te)/2,z=(z+re)/2,E=(he+Se)/2,x=(ge+we)/2,Se=(Se+b)/2,we=(we+z)/2;var Ae=(E+Se)/2,Ne=(x+we)/2;St.Qe(a,y,he,ge,E,x,Ae,Ne,oe,le),St.Qe(Ae,Ne,Se,we,b,z,te,re,oe,le)}return le},jv:function(a,y,x,E,b,z,te,re,oe,le){if(St.Yb(a,y,b,z,le,x,E))return St.Yb(a,y,b,z,le,re,oe);var he=(a+x)/2,ge=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var Se=(he+x)/2,we=(ge+E)/2;return St.jv(a,y,he,ge,Se,we,te,re,oe,le)||St.jv(Se,we,x,E,b,z,te,re,oe,le)},OA:function(a,y,x,E,b,z,te){return te.h(((a+x)/2+(x+b)/2)/2,((y+E)/2+(E+z)/2)/2),te},iv:function(a,y,x,E,b,z,te,re){if(St.Yb(a,y,b,z,te,x,E))yi(re,a,y,0,0),yi(re,b,z,0,0);else{var oe=(a+x)/2,le=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var he=(oe+x)/2,ge=(le+E)/2;St.iv(a,y,oe,le,he,ge,te,re),St.iv(he,ge,x,E,b,z,te,re)}return re},ep:function(a,y,x,E,b,z,te,re){if(St.Yb(a,y,b,z,te,x,E))re.length===0&&(re.push(a),re.push(y)),re.push(b),re.push(z);else{var oe=(a+x)/2,le=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var he=(oe+x)/2,ge=(le+E)/2;St.ep(a,y,oe,le,he,ge,te,re),St.ep(he,ge,x,E,b,z,te,re)}return re},Eo:function(a,y,x,E,b,z,te,re,oe,le,he,ge,Se,we){if(St.Yb(a,y,te,re,Se,x,E)&&St.Yb(a,y,te,re,Se,b,z))return!St.Rl(a,y,te,re,oe,le,he,ge)||(Se=(a-te)*(le-ge)-(y-re)*(oe-he),Se===0)?!1:(we.h(((a*re-y*te)*(oe-he)-(a-te)*(oe*ge-le*he))/Se,((a*re-y*te)*(le-ge)-(y-re)*(oe*ge-le*he))/Se),!0);var Ae=(a+x)/2,Ne=(y+E)/2,$e=(x+b)/2,Ke=(E+z)/2;b=(b+te)/2,z=(z+re)/2,E=(Ae+$e)/2,x=(Ne+Ke)/2,$e=($e+b)/2,Ke=(Ke+z)/2;var at=(E+$e)/2,dt=(x+Ke)/2,ft=1/0,wt=!1,Gt=0,oi=0;return St.Eo(a,y,Ae,Ne,E,x,at,dt,oe,le,he,ge,Se,we)&&(a=(we.x-oe)*(we.x-oe)+(we.y-le)*(we.y-le),a<ft&&(ft=a,wt=!0,Gt=we.x,oi=we.y)),St.Eo(at,dt,$e,Ke,b,z,te,re,oe,le,he,ge,Se,we)&&(we.x-oe)*(we.x-oe)+(we.y-le)*(we.y-le)<ft&&(wt=!0,Gt=we.x,oi=we.y),wt&&(we.x=Gt,we.y=oi),wt},Fo:function(a,y,x,E,b,z,te,re,oe,le,he,ge,Se){var we=0;if(St.Yb(a,y,te,re,Se,x,E)&&St.Yb(a,y,te,re,Se,b,z)){if(Se=(a-te)*(le-ge)-(y-re)*(oe-he),Se===0)return we;var Ae=((a*re-y*te)*(oe-he)-(a-te)*(oe*ge-le*he))/Se,Ne=((a*re-y*te)*(le-ge)-(y-re)*(oe*ge-le*he))/Se;if(Ae>=he)return we;if((oe>he?oe-he:he-oe)<(le>ge?le-ge:ge-le)){if(y<re?(oe=y,a=re):(oe=re,a=y),Ne<oe||Ne>a)return we}else if(a<te?(oe=a,a=te):oe=te,Ae<oe||Ae>a)return we;0<Se?we++:0>Se&&we--}else{Ae=(a+x)/2,Ne=(y+E)/2;var $e=(x+b)/2,Ke=(E+z)/2;b=(b+te)/2,z=(z+re)/2,E=(Ae+$e)/2,x=(Ne+Ke)/2,$e=($e+b)/2,Ke=(Ke+z)/2;var at=(E+$e)/2,dt=(x+Ke)/2;we+=St.Fo(a,y,Ae,Ne,E,x,at,dt,oe,le,he,ge,Se),we+=St.Fo(at,dt,$e,Ke,b,z,te,re,oe,le,he,ge,Se)}return we},qh:function(a,y,x,E,b,z,te){return St.$(a,x)?(y<E?(x=y,y=E):x=E,z<x?(te.h(a,x),!1):z>y?(te.h(a,y),!1):(te.h(a,z),!0)):St.$(y,E)?(a<x?(E=a,a=x):E=x,b<E?(te.h(E,y),!1):b>a?(te.h(a,y),!1):(te.h(b,y),!0)):(b=((a-b)*(a-x)+(y-z)*(y-E))/((x-a)*(x-a)+(E-y)*(E-y)),-5e-6>b?(te.h(a,y),!1):1.000005<b?(te.h(x,E),!1):(te.h(a+b*(x-a),y+b*(E-y)),!0))},Ve:function(a,y,x,E,b,z,te,re,oe){return St.B(a,x)&&St.B(y,E)?(oe.h(a,y),!1):St.$(b,te)?St.$(a,x)?(St.qh(a,y,x,E,b,z,oe),!1):St.qh(a,y,x,E,b,(E-y)/(x-a)*(b-a)+y,oe):(re=(re-z)/(te-b),St.$(a,x)?(x=re*(a-b)+z,y<E?(b=y,y=E):b=E,x<b?(oe.h(a,b),!1):x>y?(oe.h(a,y),!1):(oe.h(a,x),!0)):(te=(E-y)/(x-a),St.$(re,te)?(St.qh(a,y,x,E,b,z,oe),!1):(b=(te*a-re*b+z-y)/(te-re),St.$(te,0)?(a<x?(E=a,a=x):E=x,b<E?(oe.h(E,y),!1):b>a?(oe.h(a,y),!1):(oe.h(b,y),!0)):St.qh(a,y,x,E,b,te*(b-a)+y,oe))))},MA:function(a,y,x,E,b){return St.Ve(x.x,x.y,E.x,E.y,a.x,a.y,y.x,y.y,b)},KA:function(a,y,x,E,b,z,te,re,oe,le){function he($e,Ke){var at=($e-a)*($e-a)+(Ke-y)*(Ke-y);at<ge&&(ge=at,oe.h($e,Ke))}var ge=1/0;he(oe.x,oe.y);var Se=0,we=0,Ae=0,Ne=0;if(b<te?(Se=b,we=te):(Se=te,we=b),z<re?(Ae=b,Ne=te):(Ae=te,Ne=b),Se=(we-Se)/2+le,le=(Ne-Ae)/2+le,b=(b+te)/2,z=(z+re)/2,Se===0||le===0)return oe;if(.5>(x>a?x-a:a-x)){if(Se=1-(x-b)*(x-b)/(Se*Se),0>Se)return oe;Se=Math.sqrt(Se),E=-le*Se+z,he(x,le*Se+z),he(x,E)}else{if(x=(E-y)/(x-a),E=1/(Se*Se)+x*x/(le*le),re=2*x*(y-x*a)/(le*le)-2*x*z/(le*le)-2*b/(Se*Se),Se=re*re-4*E*(2*x*a*z/(le*le)-2*y*z/(le*le)+z*z/(le*le)+b*b/(Se*Se)-1+(y-x*a)*(y-x*a)/(le*le)),0>Se)return oe;Se=Math.sqrt(Se),le=(-re+Se)/(2*E),he(le,x*le-x*a+y),Se=(-re-Se)/(2*E),he(Se,x*Se-x*a+y)}return oe},Ff:function(a,y,x,E,b,z,te,re,oe){var le=1e21,he=a,ge=y;if(St.Ve(a,y,a,E,b,z,te,re,oe)){var Se=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z);Se<le&&(le=Se,he=oe.x,ge=oe.y)}return St.Ve(x,y,x,E,b,z,te,re,oe)&&(Se=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z),Se<le&&(le=Se,he=oe.x,ge=oe.y)),St.Ve(a,y,x,y,b,z,te,re,oe)&&(y=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z),y<le&&(le=y,he=oe.x,ge=oe.y)),St.Ve(a,E,x,E,b,z,te,re,oe)&&(a=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z),a<le&&(le=a,he=oe.x,ge=oe.y)),oe.h(he,ge),1e21>le},us:function(a,y,x){return St.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,E,b,z,te,re){var oe=a+x,le=y+E;return b===te?(z<re?(te=z,z=re):te=re,a<=b&&b<=oe&&te<=le&&z>=y):z===re?(b<te?(re=b,b=te):re=te,y<=z&&z<=le&&re<=oe&&b>=a):!!(xi(a,y,x,E,b,z)||xi(a,y,x,E,te,re)||St.Rl(a,y,oe,y,b,z,te,re)||St.Rl(oe,y,oe,le,b,z,te,re)||St.Rl(oe,le,a,le,b,z,te,re)||St.Rl(a,le,a,y,b,z,te,re))},Rl:function(a,y,x,E,b,z,te,re){return a===x&&y===E&&b===te&&z===re?a===b&&y===z:0>=St.Fl(a,y,x,E,b,z)*St.Fl(a,y,x,E,te,re)&&0>=St.Fl(b,z,te,re,a,y)*St.Fl(b,z,te,re,x,E)},Fl:function(a,y,x,E,b,z){return x-=a,E-=y,a=b-a,y=z-y,z=a*E-y*x,z===0&&(z=a*x+y*E,0<z&&(z=(a-x)*x+(y-E)*E,0>z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,E,b,z){var te=Math.PI;z||(E*=te/180,b*=te/180);var re=E>b?-1:1;z=[];var oe=te/2,le=E;if(E=Math.min(2*te,Math.abs(b-E)),1e-5>E)return oe=le+re*Math.min(E,oe),re=a+x*Math.cos(le),le=y+x*Math.sin(le),a+=x*Math.cos(oe),y+=x*Math.sin(oe),x=(re+a)/2,oe=(le+y)/2,z.push([re,le,x,oe,x,oe,a,y]),z;for(;1e-5<E;)b=le+re*Math.min(E,oe),z.push(St.Vy(x,le,b,a,y)),E-=Math.abs(b-le),le=b;return z},Vy:function(a,y,x,E,b){var z=(x-y)/2,te=a*Math.cos(z),re=a*Math.sin(z),oe=-re,le=te*te+oe*oe,he=le+te*te+oe*re;return le=4/3*(Math.sqrt(2*le*he)-he)/(te*re-oe*te),re=te-le*oe,te=oe+le*te,oe=-te,le=z+y,z=Math.cos(le),le=Math.sin(le),[E+a*Math.cos(y),b+a*Math.sin(y),E+re*z-te*le,b+re*le+te*z,E+re*z-oe*le,b+re*le+oe*z,E+a*Math.cos(x),b+a*Math.sin(x)]},No:function(a,y,x,E,b,z,te){x=Math.floor((a-x)/b)*b+x,E=Math.floor((y-E)/z)*z+E;var re=x;return x+b-a<b/2&&(re=x+b),a=E,E+z-y<z/2&&(a=E+z),te.h(re,a),te},vx:function(a,y){var x=Math.max(a,y);a=Math.min(a,y);var E;do y=x%a,x=E=a,a=y;while(0<y);return E},$y:function(a,y,x,E){var b=0>x,z=0>E;if(a<y)var te=1,re=0;else te=0,re=1;var oe=te===0?a:y,le=te===0?x:E;return(te===0?b:z)&&(le=-le),te=re,x=te===0?x:E,(te===0?b:z)&&(x=-x),St.az(oe,te===0?a:y,le,x,0,0)},az:function(a,y,x,E,b,z){if(0<E)if(0<x){b=a*a,z=y*y,a*=x;var te=y*E,re=-z+te,oe=-z+Math.sqrt(a*a+te*te);y=re;for(var le=0;9999999999>le&&(y=.5*(re+oe),!(y===re||y===oe));++le){var he=a/(y+b),ge=te/(y+z);if(he=he*he+ge*ge-1,0<he)re=y;else if(0>he)oe=y;else break}x=b*x/(y+b)-x,E=z*E/(y+z)-E,x=Math.sqrt(x*x+E*E)}else x=Math.abs(E-y);else E=a*a-y*y,z=a*x,z<E?(E=z/E,z=y*Math.sqrt(Math.abs(1-E*E)),x=a*E-x,x=Math.sqrt(x*x+z*z)):x=Math.abs(x-a);return x},Ze:new _i,um:new _i,Mf:new _i,Nf:0,vm:100};St.za=St.AA;function Cn(a){Kn(this),this.l=2,a===void 0&&(a=Cn.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Cn.o?this.ee=new An:(Cn.V===null&&(Cn.V=new An().freeze()),this.ee=Cn.V),this.aq=this.ee.Ja,this.Ip=new pt().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Ii,this.gg=ni,this.Rk=this.Sk=NaN,this.Uf=Nn}Cn.prototype.copy=function(){var a=new Cn;if(a.l=this.l&-2,a.na=this.na,a.od=this.od,a.pd=this.pd,a.Dc=this.Dc,a.Ec=this.Ec,this.na===Cn.o){for(var y=this.ee.s,x=a.ee,E=0;E<y.length;E++)x.add(y[E].copy());a.ee=x}else a.ee=this.ee;return a.aq=this.aq,a.Ip.assign(this.Ip),a.tk=this.tk,a.ym=this.ym,a.zm=this.zm,a.fg=this.fg.J(),a.gg=this.gg.J(),a.Sk=this.Sk,a.Rk=this.Rk,a.Uf=this.Uf,a},Cn.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Cn.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Cn.o)return this;var a=this.figures;a.freeze(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].freeze();return this},Cn.prototype.ka=function(){if(Object.isFrozen(this)&<("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Cn.o)return this;var a=this.figures;a.ka(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].ka();return this},Cn.prototype.Xa=function(a){if(!(a instanceof Cn))return!1;if(this.type!==a.type)return this.type===Cn.j&&a.type===Cn.o?ja(this,a):a.type===Cn.j&&this.type===Cn.o?ja(a,this):!1;if(this.type===Cn.o){var y=this.figures.s;a=a.figures.s;var x=y.length;if(x!==a.length)return!1;for(var E=0;E<x;E++)if(!y[E].Xa(a[E]))return!1;return!0}return St.B(this.startX,a.startX)&&St.B(this.startY,a.startY)&&St.B(this.endX,a.endX)&&St.B(this.endY,a.endY)};function ja(a,y){return a.type!==Cn.j||y.type!==Cn.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&St.B(a.startX,y.startX)&&St.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===vo&&St.B(a.endX,y.endX)&&St.B(a.endY,y.endY))))}Cn.ia=function(a){return a.toString()},Cn.prototype.qb=function(a){a.classType===Cn&&(this.type=a)},Cn.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Cn.j:return 0>a?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a)+"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);case Cn.u:var y=new pt(this.startX,this.startY,0,0);return y.Kv(this.endX,this.endY,0,0),0>a?"M"+y.x.toString()+" "+y.y.toString()+"H"+y.right.toString()+"V"+y.bottom.toString()+"H"+y.left.toString()+"z":"M"+y.x.toFixed(a)+" "+y.y.toFixed(a)+"H"+y.right.toFixed(a)+"V"+y.bottom.toFixed(a)+"H"+y.left.toFixed(a)+"z";case Cn.F:if(y=new pt(this.startX,this.startY,0,0),y.Kv(this.endX,this.endY,0,0),0>a)return a=y.left.toString()+" "+(y.y+y.height/2).toString(),"M"+a+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+(y.right.toString()+" "+(y.y+y.height/2).toString())+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+a;var x=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+x+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+(y.right.toFixed(a)+" "+(y.y+y.height/2).toFixed(a))+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+x;case Cn.o:y="",x=this.figures.s;for(var E=x.length,b=0;b<E;b++){var z=x[b];0<b&&(y+=" x "),z.isFilled&&(y+="F "),y+=z.toString(a)}return y;default:return this.type.toString()}},Cn.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,x="",E=0;E<y;E++){var b=a[E];x=b.match(/[Ff]/)!==null?E===0?x+b:x+("X"+(b[0]===" "?"":" ")+b):x+((E===0?"":"X ")+"F"+(b[0]===" "?"":" ")+b)}return x},Cn.parse=function(a,y){function x(){return Ne>=ft-1?!0:le[Ne+1].match(wt)!==null}function E(){return Ne++,le[Ne]}function b(Sr){var sr=parseFloat(E()),ro=parseFloat(E());$e===$e.toLowerCase()&&(sr=dt.x+sr,ro=dt.y+ro),Sr.h(sr,ro)}function z(){return b(dt),dt}function te(){return b(at),at}function re(){var Sr=Ke.toLowerCase();return Sr!=="c"&&Sr!=="s"&&Sr!=="q"&&Sr!=="t"?dt:new je(2*dt.x-at.x,2*dt.y-at.y)}y===void 0&&(y=!1);var oe=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(oe,"$1 $2"),a=a.replace(oe,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var le=a.split(" ");for(a=0;a<le.length;a++){var he=le[a];if(he.match(/(\.[0-9]*)(\.)/gm)!==null){oe=Bn();for(var ge="",Se=!1,we=0;we<he.length;we++){var Ae=he[we];Ae!=="."||Se?Ae==="."?(oe.push(ge),ge="."):ge+=Ae:(Se=!0,ge+=Ae)}for(oe.push(ge),le.splice(a,1),he=0;he<oe.length;he++)le.splice(a+he,0,oe[he]);a+=oe.length-1,Ot(oe)}}var Ne=-1,$e="",Ke="";oe=new je(0,0);var at=new je(0,0),dt=new je(0,0),ft=le.length;a=N1(null),Se=ge=he=!1,we=!0,Ae=null;for(var wt=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(Ne>=ft-1);)if(Ke=$e,$e=E(),$e!=="")switch($e.toUpperCase()){case"X":we=!0,ge=he=!1;break;case"M":for(Ae=z(),a.mc===null||we===!0?(jf(a,Ae.x,Ae.y,he,!ge,Se),we=!1):a.moveTo(Ae.x,Ae.y),oe.assign(dt);!x();)Ae=z(),a.lineTo(Ae.x,Ae.y);break;case"L":for(;!x();)Ae=z(),a.lineTo(Ae.x,Ae.y);break;case"H":for(;!x();)dt=new je(($e===$e.toLowerCase()?dt.x:0)+parseFloat(E()),dt.y),a.lineTo(dt.x,dt.y);break;case"V":for(;!x();)dt=new je(dt.x,($e===$e.toLowerCase()?dt.y:0)+parseFloat(E())),a.lineTo(dt.x,dt.y);break;case"C":for(;!x();){Ae=new je,b(Ae);var Gt=te(),oi=z();Lh(a,Ae.x,Ae.y,Gt.x,Gt.y,oi.x,oi.y)}break;case"S":for(;!x();)Ae=re(),Gt=te(),oi=z(),Lh(a,Ae.x,Ae.y,Gt.x,Gt.y,oi.x,oi.y);break;case"Q":for(;!x();)Ae=te(),Gt=z(),Z0(a,Ae.x,Ae.y,Gt.x,Gt.y);break;case"T":for(;!x();)at=Ae=re(),Gt=z(),Z0(a,Ae.x,Ae.y,Gt.x,Gt.y);break;case"B":for(;!x();){Ae=parseFloat(E()),Gt=parseFloat(E()),oi=parseFloat(E());var bi=parseFloat(E()),Si=parseFloat(E()),Zn=Si,yn=!1;x()||(Zn=parseFloat(E()),x()||(yn=parseFloat(E())!==0)),$e===$e.toLowerCase()&&(oi+=dt.x,bi+=dt.y),a.arcTo(Ae,Gt,oi,bi,Si,Zn,yn)}break;case"A":for(;!x();)Ae=Math.abs(parseFloat(E())),Gt=Math.abs(parseFloat(E())),oi=parseFloat(E()),Si=bi=!1,yn=Zn=0,Zn=E(),Zn.length===1?(bi=!!parseFloat(Zn),Si=!!parseFloat(E()),Zn=parseFloat(E())):Zn.length===2?(bi=!!parseFloat(Zn[0]),Si=!!parseFloat(Zn[1]),Zn=parseFloat(E())):(bi=!!parseFloat(Zn[0]),Si=!!parseFloat(Zn[1]),Zn=parseFloat(Zn.slice(2))),yn=parseFloat(E()),$e===$e.toLowerCase()&&(Zn=dt.x+Zn,yn=dt.y+yn),dt.h(Zn,yn),bx(a,Ae,Gt,oi,bi,Si,Zn,yn);break;case"Z":Lx(a),dt.assign(oe);break;case"F":for(Ae="",Gt=1;le[Ne+Gt];)if(le[Ne+Gt]==="0")Se=!0,Gt++;else if(le[Ne+Gt].match(/[Uu]/)!==null)Gt++;else if(le[Ne+Gt].match(wt)===null)Gt++;else{Ae=le[Ne+Gt];break}Ae.match(/[Mm]/)?he=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Ae="",Gt=1;le[Ne+Gt];)if(le[Ne+Gt].match(/[Ff]/)!==null)Gt++;else if(le[Ne+Gt].match(wt)===null)Gt++;else{Ae=le[Ne+Gt];break}Ae.match(/[Mm]/)?ge=!0:a.mc.isShadowed=!1}if(oe=a.os,W0=a,y)for(y=oe.figures.iterator;y.next();)y.value.isFilled=!0;return oe},Cn.Ha=function(a,y){for(var x=a.length,E=je.alloc(),b=0;b<x;b++){var z=a[b];E.x=z[0],E.y=z[1],y.Ga(E),z[0]=E.x,z[1]=E.y,E.x=z[2],E.y=z[3],y.Ga(E),z[2]=E.x,z[3]=E.y,E.x=z[4],E.y=z[5],y.Ga(E),z[4]=E.x,z[5]=E.y,E.x=z[6],E.y=z[7],y.Ga(E),z[6]=E.x,z[7]=E.y}je.free(E)},Cn.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Cn.o){if(this.aq!==this.figures.Ja)return!0;for(var a=this.figures.s,y=a.length,x=0;x<y;x++)if(a[x].Zu())return!0}return!1},Cn.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Cn.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,x=0;x<y;x++){var E=a[x];E._isInvalidBounds=!1;var b=E.segments;E.sr=b.Ja,E=b.s,b=E.length;for(var z=0;z<b;z++){var te=E[z];te._isInvalidBounds=!1,te.ae=null}}}a=this.Ip,a.ka(),isNaN(this.Sk)||isNaN(this.Rk)?a.h(0,0,0,0):a.h(0,0,this.Sk,this.Rk),za(this,a,!1),yi(a,0,0,0,0),a.freeze()},Cn.prototype.ix=function(){var a=new pt;return za(this,a,!0),a};function za(a,y,x){switch(a.type){case Cn.j:case Cn.u:case Cn.F:x?y.h(a.od,a.pd,0,0):yi(y,a.od,a.pd,0,0),yi(y,a.Dc,a.Ec,0,0);break;case Cn.o:var E=a.figures;a=E.s,E=E.length;for(var b=0;b<E;b++){var z=a[b];x&&b===0?y.h(z.startX,z.startY,0,0):yi(y,z.startX,z.startY,0,0);for(var te=z.segments.s,re=te.length,oe=z.startX,le=z.startY,he=0;he<re;he++){var ge=te[he];switch(ge.type){case vo:case sa:oe=ge.endX,le=ge.endY,yi(y,oe,le,0,0);break;case ga:St.Dl(oe,le,ge.point1X,ge.point1Y,ge.point2X,ge.point2Y,ge.endX,ge.endY,.5,y),oe=ge.endX,le=ge.endY;break;case ls:St.iv(oe,le,ge.point1X,ge.point1Y,ge.endX,ge.endY,.5,y),oe=ge.endX,le=ge.endY;break;case oa:case us:var Se=ge.type===oa?Va(ge,z):$a(ge,z,oe,le),we=Se.length;if(we===0){oe=ge.type===oa?ge.centerX:ge.endX,le=ge.type===oa?ge.centerY:ge.endY,yi(y,oe,le,0,0);break}ge=null;for(var Ae=0;Ae<we;Ae++)ge=Se[Ae],St.Dl(ge[0],ge[1],ge[2],ge[3],ge[4],ge[5],ge[6],ge[7],.5,y);ge!==null&&(oe=ge[6],le=ge[7]);break;default:lt("Unknown Segment type: "+ge.type)}}}break;default:lt("Unknown Geometry type: "+a.type)}}Cn.prototype.normalize=function(){this._isFrozen&&Rt(this);var a=this.ix();return this.offset(-a.x,-a.y),new je(-a.x,-a.y)},Cn.prototype.offset=function(a,y){return this._isFrozen&&Rt(this),this.transform(1,0,0,1,a,y),this},Cn.prototype.scale=function(a,y){return this._isFrozen&&Rt(this),this.transform(a,0,0,y,0,0),this},Cn.prototype.rotate=function(a,y,x){this._isFrozen&&Rt(this),y===void 0&&(y=0),x===void 0&&(x=0);var E=ui.alloc();return E.reset(),E.rotate(a,y,x),this.transform(E.m11,E.m12,E.m21,E.m22,E.dx,E.dy),ui.free(E),this},be=Cn.prototype,be.transform=function(a,y,x,E,b,z){switch(this.type){case Cn.j:case Cn.u:case Cn.F:var te=this.od,re=this.pd;this.od=te*a+re*x+b,this.pd=te*y+re*E+z,te=this.Dc,re=this.Ec,this.Dc=te*a+re*x+b,this.Ec=te*y+re*E+z;break;case Cn.o:for(var oe=this.figures.s,le=oe.length,he=0;he<le;he++){var ge=oe[he];te=ge.startX,re=ge.startY,ge.startX=te*a+re*x+b,ge.startY=te*y+re*E+z,ge=ge.segments.s;for(var Se=ge.length,we=0;we<Se;we++){var Ae=ge[we];switch(Ae.type){case vo:case sa:te=Ae.endX,re=Ae.endY,Ae.endX=te*a+re*x+b,Ae.endY=te*y+re*E+z;break;case ga:te=Ae.point1X,re=Ae.point1Y,Ae.point1X=te*a+re*x+b,Ae.point1Y=te*y+re*E+z,te=Ae.point2X,re=Ae.point2Y,Ae.point2X=te*a+re*x+b,Ae.point2Y=te*y+re*E+z,te=Ae.endX,re=Ae.endY,Ae.endX=te*a+re*x+b,Ae.endY=te*y+re*E+z;break;case ls:te=Ae.point1X,re=Ae.point1Y,Ae.point1X=te*a+re*x+b,Ae.point1Y=te*y+re*E+z,te=Ae.endX,re=Ae.endY,Ae.endX=te*a+re*x+b,Ae.endY=te*y+re*E+z;break;case oa:te=Ae.centerX,re=Ae.centerY,Ae.centerX=te*a+re*x+b,Ae.centerY=te*y+re*E+z,y!==0&&(te=180*Math.atan2(y,a)/Math.PI,0>te&&(te+=360),Ae.startAngle+=te),0>a&&(Ae.startAngle=180-Ae.startAngle,Ae.sweepAngle=-Ae.sweepAngle),0>E&&(Ae.startAngle=-Ae.startAngle,Ae.sweepAngle=-Ae.sweepAngle),Ae.radiusX*=Math.sqrt(a*a+x*x),Ae.radiusY!==void 0&&(Ae.radiusY*=Math.sqrt(y*y+E*E));break;case us:if(te=Ae.endX,re=Ae.endY,Ae.endX=te*a+re*x+b,Ae.endY=te*y+re*E+z,Ae.radiusX===0||Ae.radiusY===0)break;y!==0&&(te=180*Math.atan2(y,a)/Math.PI,0>te&&(te+=360),Ae.xAxisRotation+=te),0>a&&(Ae.xAxisRotation=180-Ae.xAxisRotation,Ae.isClockwiseArc=!Ae.isClockwiseArc),0>E&&(Ae.xAxisRotation=-Ae.xAxisRotation,Ae.isClockwiseArc=!Ae.isClockwiseArc),Ae.radiusX*=Math.sqrt(a*a+x*x),Ae.radiusY*=Math.sqrt(y*y+E*E);break;default:lt("Unknown Segment type: "+Ae.type)}}}}return this._isInvalidBounds=!0,this},be.ca=function(a,y){y===void 0&&(y=0);var x=this.od,E=this.pd,b=this.Dc,z=this.Ec;switch(this.type){case Cn.j:return St.Yb(x,E,b,z,y,a.x,a.y);case Cn.u:var te=pt.allocAt(Math.min(x,b)-y,Math.min(E,z)-y,Math.abs(b-x)+2*y,Math.abs(z-E)+2*y);return a=te.ca(a),pt.free(te),a;case Cn.F:te=Math.min(x,b)-y;var re=Math.min(E,z)-y;return x=(Math.abs(b-x)+2*y)/2,y=(Math.abs(z-E)+2*y)/2,0>=x||0>=y?!1:(te=a.x-(te+x),re=a.y-(re+y),1>=te*te/(x*x)+re*re/(y*y));case Cn.o:return da(this,a,y,!0,!1);default:return!1}};function da(a,y,x,E,b){var z=y.x;y=y.y;for(var te=a.bounds.x-20,re=0,oe,le,he,ge,Se=a.figures.s,we=Se.length,Ae=0;Ae<we;Ae++){var Ne=Se[Ae],$e=!Ne.isEvenOdd;if(Ne.isFilled){if(E&&Ne.ca(z,y,x))return!0;var Ke=Ne.segments;oe=Ne.startX,le=Ne.startY;for(var at=oe,dt=le,ft=Ke.s,wt=0;wt<=Ke.length;wt++){var Gt=void 0;if(wt!==Ke.length){Gt=ft[wt];var oi=Gt.type;a=Gt.endX,ge=Gt.endY}else oi=vo,a=at,ge=dt;switch(oi){case sa:if(at=ca(z,y,te,y,oe,le,at,dt),isNaN(at))return!0;re+=at,at=a,dt=ge;break;case vo:if(oe=ca(z,y,te,y,oe,le,a,ge),isNaN(oe))return!0;re+=oe;break;case ga:he=St.Fo(oe,le,Gt.point1X,Gt.point1Y,Gt.point2X,Gt.point2Y,a,ge,te,y,z,y,.5),re+=he;break;case ls:he=St.Fo(oe,le,(oe+2*Gt.point1X)/3,(le+2*Gt.point1Y)/3,(2*Gt.point1X+a)/3,(2*Gt.point1Y+ge)/3,a,ge,te,y,z,y,.5),re+=he;break;case oa:case us:oi=Gt.type===oa?Va(Gt,Ne):$a(Gt,Ne,oe,le);var bi=oi.length;if(bi===0){if(oe=ca(z,y,te,y,oe,le,Gt.type===oa?Gt.centerX:Gt.endX,Gt.type===oa?Gt.centerY:Gt.endY),isNaN(oe))return!0;re+=oe;break}Gt=null;for(var Si=0;Si<bi;Si++){if(Gt=oi[Si],Si===0){if(he=ca(z,y,te,y,oe,le,Gt[0],Gt[1]),isNaN(he))return!0;re+=he}he=St.Fo(Gt[0],Gt[1],Gt[2],Gt[3],Gt[4],Gt[5],Gt[6],Gt[7],te,y,z,y,.5),re+=he}Gt!==null&&(a=Gt[6],ge=Gt[7]);break;default:lt("Unknown Segment type: "+Gt.type)}oe=a,le=ge}if($e){if(re!==0)return!0}else if(re%2!==0)return!0;re=0}else if(Ne.ca(z,y,b?x:x+2))return!0}return!1}function ca(a,y,x,E,b,z,te,re){if(St.Yb(b,z,te,re,.05,a,y))return NaN;var oe=(a-x)*(z-re);if(oe===0)return 0;var le=((a*E-y*x)*(b-te)-(a-x)*(b*re-z*te))/oe;if(y=(a*E-y*x)*(z-re)/oe,le>=a)return 0;if((b>te?b-te:te-b)<(z>re?z-re:re-z)){if(z<re){if(y<z||y>re)return 0}else if(y<re||y>z)return 0}else if(b<te){if(le<b||le>te)return 0}else if(le<te||le>b)return 0;return 0<oe?1:-1}function Ga(a,y,x,E){a=a.figures.s;for(var b=a.length,z=0;z<b;z++)if(a[z].ca(y,x,E))return!0;return!1}be.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new je),this.type===Cn.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var x=this.flattenedSegments,E=this.flattenedLengths,b=x.length,z=this.flattenedTotalLength*a,te=0,re=0;re<b;re++){var oe=E[re],le=oe.length;for(a=0;a<le;a++){var he=oe[a];if(te+he>=z)return E=z-te,E=he===0?0:E/he,x=x[re],re=x[2*a],b=x[2*a+1],y.h(re+(x[2*a+2]-re)*E,b+(x[2*a+3]-b)*E),y;te+=he}}return y},be.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===Cn.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,x=this.flattenedLengths,E=y.length,b=this.flattenedTotalLength*a,z=0,te=0;te<E;te++){var re=x[te],oe=re.length;for(a=0;a<oe;a++){var le=re[a];if(z+le>=b)return b=y[te],y=b[2*a],x=b[2*a+1],E=b[2*a+2],a=b[2*a+3],1>Math.abs(E-y)&&1>Math.abs(a-x)?0:1>Math.abs(E-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=E-y?0:180:180*Math.atan2(a-x,E-y)/Math.PI;z+=le}}return NaN},be.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===Cn.j)return y[0]=this.startX+a*(this.endX-this.startX),y[1]=this.startY+a*(this.endY-this.startY),y[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,y;for(var x=this.flattenedSegments,E=this.flattenedLengths,b=x.length,z=this.flattenedTotalLength*a,te=0,re=0;re<b;re++){var oe=E[re],le=oe.length;for(a=0;a<le;a++){var he=oe[a];if(te+he>=z)return E=z-te,E=he===0?0:E/he,he=x[re],x=he[2*a],re=he[2*a+1],b=he[2*a+2],a=he[2*a+3],y[0]=x+(b-x)*E,y[1]=re+(a-re)*E,y[2]=1>Math.abs(b-x)&&1>Math.abs(a-re)?0:1>Math.abs(b-x)?0<=a-re?90:270:1>Math.abs(a-re)?0<=b-x?0:180:180*Math.atan2(a-re,b-x)/Math.PI,y;te+=he}}return y},be.xx=function(a){if(this.type===Cn.j){var y=this.startX,x=this.startY,E=this.endX,b=this.endY;if(y!==E||x!==b){var z=a.x;if(a=a.y,y===E){if(x<b){var te=x;E=b}else te=b,E=x;return a<=te?te===x?0:1:a>=E?E===x?0:1:Math.abs(a-x)/(E-te)}if(x===b)return y<E?te=y:(te=E,E=y),z<=te?te===y?0:1:z>=E?E===y?0:1:Math.abs(z-y)/(E-te);te=(E-y)*(E-y)+(b-x)*(b-x);var re=je.alloc();return St.qh(y,x,E,b,z,a,re),a=re.x,z=re.y,je.free(re),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/te)}}else if(this.type===Cn.u){te=this.startX,re=this.startY;var oe=this.endX;if(b=this.endY,te!==oe||re!==b){y=oe-te,x=b-re,z=2*y+2*x,E=a.x,a=a.y,E=Math.min(Math.max(E,te),oe),a=Math.min(Math.max(a,re),b),te=Math.abs(E-te),oe=Math.abs(E-oe),re=Math.abs(a-re),b=Math.abs(a-b);var le=Math.min(te,oe,re,b);if(le===re)return E/z;if(le===oe)return(y+a)/z;if(le===b)return(2*y+x-E)/z;if(le===te)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,E=je.alloc(),b=1/0,re=te=0,oe=y.length;for(var he=le=0,ge=0;ge<oe;ge++)for(var Se=y[ge],we=x[ge],Ae=Se.length,Ne=0;Ne<Ae;Ne+=2){var $e=Se[Ne],Ke=Se[Ne+1];if(Ne!==0){St.qh(le,he,$e,Ke,a.x,a.y,E);var at=(E.x-a.x)*(E.x-a.x)+(E.y-a.y)*(E.y-a.y);at<b&&(b=at,te=re,te+=Math.sqrt((E.x-le)*(E.x-le)+(E.y-he)*(E.y-he))),re+=we[(Ne-2)/2]}le=$e,he=Ke}return je.free(E),a=te/z,0>a?0:1<a?1:a}return 0};function Na(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],E=[],b=[];if(a.type===Cn.j)E.push(a.startX),E.push(a.startY),E.push(a.endX),E.push(a.endY),y.push(E),b.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),x.push(b);else if(a.type===Cn.u)E.push(a.startX),E.push(a.startY),E.push(a.endX),E.push(a.startY),E.push(a.endX),E.push(a.endY),E.push(a.startX),E.push(a.endY),E.push(a.startX),E.push(a.startY),y.push(E),b.push(Math.abs(a.startX-a.endX)),b.push(Math.abs(a.startY-a.endY)),b.push(Math.abs(a.startX-a.endX)),b.push(Math.abs(a.startY-a.endY)),x.push(b);else if(a.type===Cn.F){var z=new aa;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var te=new Wr(oa);if(te.startAngle=0,te.sweepAngle=360,te.centerX=(a.startX+a.endX)/2,te.centerY=(a.startY+a.endY)/2,te.radiusX=Math.abs(a.startX-a.endX)/2,te.radiusY=Math.abs(a.startY-a.endY)/2,z.add(te),a=Va(te,z),b=a.length,b===0)E.push(te.centerX),E.push(te.centerY);else{te=z.startX,z=z.startY;for(var re=0;re<b;re++){var oe=a[re];St.Qe(te,z,oe[2],oe[3],oe[4],oe[5],oe[6],oe[7],.5,E),te=oe[6],z=oe[7]}}y.push(E),x.push(Zs(E))}else for(a=a.figures.iterator;a.next();){b=a.value,E=[],E.push(b.startX),E.push(b.startY),te=b.startX,z=b.startY,re=te,oe=z;for(var le=b.segments.s,he=le.length,ge=0;ge<he;ge++){var Se=le[ge];switch(Se.type){case sa:4<=E.length&&(y.push(E),x.push(Zs(E))),E=[],E.push(Se.endX),E.push(Se.endY),te=Se.endX,z=Se.endY,re=te,oe=z;break;case vo:E.push(Se.endX),E.push(Se.endY),te=Se.endX,z=Se.endY;break;case ga:St.Qe(te,z,Se.point1X,Se.point1Y,Se.point2X,Se.point2Y,Se.endX,Se.endY,.5,E),te=Se.endX,z=Se.endY;break;case ls:St.ep(te,z,Se.point1X,Se.point1Y,Se.endX,Se.endY,.5,E),te=Se.endX,z=Se.endY;break;case oa:var we=Va(Se,b),Ae=we.length;if(Ae===0){E.push(Se.centerX),E.push(Se.centerY),te=Se.centerX,z=Se.centerY;break}for(var Ne=0;Ne<Ae;Ne++){var $e=we[Ne];St.Qe(te,z,$e[2],$e[3],$e[4],$e[5],$e[6],$e[7],.5,E),te=$e[6],z=$e[7]}break;case us:if(we=$a(Se,b,te,z),Ae=we.length,Ne=Se.endX,$e=Se.endY,Ae===0){E.push(Ne),E.push($e),te=Ne,z=$e;break}for(Ne=0;Ne<Ae;Ne++)$e=we[Ne],St.Qe(te,z,$e[2],$e[3],$e[4],$e[5],$e[6],$e[7],.5,E),te=$e[6],z=$e[7];break;default:lt("Segment not of valid type: "+Se.type)}Se.isClosed&&(E.push(re),E.push(oe))}4<=E.length&&(y.push(E),x.push(Zs(E)))}}}function Zs(a){for(var y=[],x=0,E=0,b=a.length,z=0;z<b;z+=2){var te=a[z],re=a[z+1];z!==0&&y.push(Math.sqrt(Mn(x,E,te,re))),x=te,E=re}return y}be.add=function(a){return this.ee.add(a),this},be.pm=function(a,y,x,E,b,z,te,re){return this._isFrozen&&Rt(this),this.fg=new bn(a,y,b,z).freeze(),this.gg=new bn(x,E,te,re).freeze(),this},pn.Object.defineProperties(Cn.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},flattenedSegments:{get:function(){return Na(this),this.tk}},flattenedLengths:{get:function(){return Na(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===Cn.j){a=Math.abs(this.endX-this.startX);var y=Math.abs(this.endY-this.startY);a=Math.sqrt(a*a+y*y)}else if(this.type===Cn.u)a=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{y=this.flattenedLengths;for(var x=y.length,E=a=0;E<x;E++)for(var b=y[E],z=b.length,te=0;te<z;te++)a+=b[te]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&Rt(this,a),this.na=a,a===Cn.o?this.ee=new An:(Cn.V===null&&(Cn.V=new An().freeze()),this.ee=Cn.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&Rt(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&Rt(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&Rt(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&Rt(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&Rt(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&Rt(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&Rt(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&Rt(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Cn.prototype.setSpots=Cn.prototype.pm,Cn.prototype.add=Cn.prototype.add,Cn.prototype.getFractionForPoint=Cn.prototype.xx,Cn.prototype.getPointAndAngleAlongPath=Cn.prototype.Qu,Cn.prototype.getAngleAlongPath=Cn.prototype.wx,Cn.prototype.getPointAlongPath=Cn.prototype.Pu,Cn.prototype.containsPoint=Cn.prototype.ca,Cn.prototype.transform=Cn.prototype.transform,Cn.prototype.rotate=Cn.prototype.rotate,Cn.prototype.scale=Cn.prototype.scale,Cn.prototype.offset=Cn.prototype.offset,Cn.prototype.normalize=Cn.prototype.normalize,Cn.prototype.computeBoundsWithoutOrigin=Cn.prototype.ix,Cn.prototype.equalsApprox=Cn.prototype.Xa,Cn.className="Geometry",Cn.j=new Kt(Cn,"Line",0),Cn.u=new Kt(Cn,"Rectangle",1),Cn.F=new Kt(Cn,"Ellipse",2),Cn.o=new Kt(Cn,"Path",3),Cn.V=null,Cn.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Cn.className="Geometry",Cn.stringify=Cn.ia,Cn.fillPath=Cn.nb,Cn.parse=Cn.parse,Cn.Line=Cn.j,Cn.Rectangle=Cn.u,Cn.Ellipse=Cn.F,Cn.Path=Cn.o;function aa(a,y,x,E,b){Kn(this),x===void 0&&(x=!0),E===void 0&&(E=!0),b===void 0&&(b=!1),this.l=2|(x?4:0)|(E?8:0)|(b?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new An,this.sr=this.pl.Ja,this.fw=null}aa.prototype.copy=function(){var a=new aa;a.l=this.l&-2,a.od=this.od,a.pd=this.pd;for(var y=this.pl.s,x=y.length,E=a.pl,b=0;b<x;b++){var z=y[b].copy();E.add(z)}return a.sr=this.sr,a.fw=this.fw,a},be=aa.prototype,be.Xa=function(a){if(!(a instanceof aa&&St.B(this.startX,a.startX)&&St.B(this.startY,a.startY)))return!1;var y=this.segments.s;a=a.segments.s;var x=y.length;if(x!==a.length)return!1;for(var E=0;E<x;E++)if(!y[E].Xa(a[E]))return!1;return!0},be.toString=function(a){a===void 0&&(a=-1);for(var y=0>a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,E=x.length,b=0;b<E;b++)y+=" "+x[b].toString(a);return y},be.freeze=function(){this._isFrozen=!0;var a=this.segments;a.freeze();var y=a.s;a=a.length;for(var x=0;x<a;x++)y[x].freeze();return this},be.ka=function(){this._isFrozen=!1;var a=this.segments;a.ka(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].ka();return this},be.Zu=function(){if(this._isInvalidBounds)return!0;var a=this.segments;if(this.sr!==a.Ja)return!0;a=a.s;for(var y=a.length,x=0;x<y;x++)if(a[x]._isInvalidBounds)return!0;return!1},be.add=function(a){return this.pl.add(a),this},be.ca=function(a,y,x){for(var E=this.startX,b=this.startY,z=E,te=b,re=this.segments.s,oe=re.length,le=0;le<oe;le++){var he=re[le];switch(he.type){case sa:z=he.endX,te=he.endY,E=he.endX,b=he.endY;break;case vo:if(St.Yb(E,b,he.endX,he.endY,x,a,y))return!0;E=he.endX,b=he.endY;break;case ga:if(St.cs(E,b,he.point1X,he.point1Y,he.point2X,he.point2Y,he.endX,he.endY,.5,a,y,x))return!0;E=he.endX,b=he.endY;break;case ls:if(St.jv(E,b,he.point1X,he.point1Y,he.endX,he.endY,.5,a,y,x))return!0;E=he.endX,b=he.endY;break;case oa:case us:var ge=he.type===oa?Va(he,this):$a(he,this,E,b),Se=ge.length,we=he.type===oa?he.centerX:he.endX,Ae=he.type===oa?he.centerY:he.endY;if(Se===0){if(St.Yb(E,b,we,Ae,x,a,y))return!0;E=we,b=Ae;break}for(we=null,Ae=0;Ae<Se;Ae++)if(we=ge[Ae],Ae===0&&St.Yb(E,b,we[0],we[1],x,a,y)||St.cs(we[0],we[1],we[2],we[3],we[4],we[5],we[6],we[7],.5,a,y,x))return!0;we!==null&&(E=we[6],b=we[7]);break;default:lt("Unknown Segment type: "+he.type)}if(he.isClosed&&(E!==z||b!==te)&&St.Yb(E,b,z,te,x,a,y))return!0}return!1},pn.Object.defineProperties(aa.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isFilled:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&Rt(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&Rt(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&Rt(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&Rt(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&Rt(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&Rt(this,a),this.pl=a,this._isInvalidBounds=!0}}}),aa.prototype.add=aa.prototype.add,aa.prototype.equalsApprox=aa.prototype.Xa,aa.className="PathFigure";function Wr(a,y,x,E,b,z,te,re){Kn(this),a===void 0&&(a=vo),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,x!==void 0?this.Ec=x:this.Ec=0,E===void 0&&(E=0),b===void 0&&(b=0),z===void 0&&(z=0),te===void 0&&(te=0),a===us?(a=z%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(E,0),this.Pg=Math.max(b,0),typeof te=="boolean"?te&&(this.isLargeArc=!0):typeof te=="number"&&te&&(this.isLargeArc=!0),re&&(this.isClockwiseArc=!0)):(this.Ne=E,this.Vh=b,a===oa&&(z=Math.max(z,0)),this.Wh=z,typeof te=="number"?(a===oa&&(te=Math.max(te,0)),this.Pg=te):this.Pg=0),this.ae=null}Wr.prototype.copy=function(){var a=new Wr;return a.na=this.na,a.l=this.l&-2,a.Dc=this.Dc,a.Ec=this.Ec,a.Ne=this.Ne,a.Vh=this.Vh,a.Wh=this.Wh,a.Pg=this.Pg,a},be=Wr.prototype,be.Xa=function(a){if(!(a instanceof Wr)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case sa:case vo:return St.B(this.endX,a.endX)&&St.B(this.endY,a.endY);case ga:return St.B(this.endX,a.endX)&&St.B(this.endY,a.endY)&&St.B(this.point1X,a.point1X)&&St.B(this.point1Y,a.point1Y)&&St.B(this.point2X,a.point2X)&&St.B(this.point2Y,a.point2Y);case ls:return St.B(this.endX,a.endX)&&St.B(this.endY,a.endY)&&St.B(this.point1X,a.point1X)&&St.B(this.point1Y,a.point1Y);case oa:return St.B(this.startAngle,a.startAngle)&&St.B(this.sweepAngle,a.sweepAngle)&&St.B(this.centerX,a.centerX)&&St.B(this.centerY,a.centerY)&&St.B(this.radiusX,a.radiusX)&&St.B(this.radiusY,a.radiusY);case us:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&St.B(this.xAxisRotation,a.xAxisRotation)&&St.B(this.endX,a.endX)&&St.B(this.endY,a.endY)&&St.B(this.radiusX,a.radiusX)&&St.B(this.radiusY,a.radiusY);default:return!1}},be.qb=function(a){a.classType===Wr&&(this.type=a)},be.toString=function(a){switch(a===void 0&&(a=-1),this.type){case sa:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case vo:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ga:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ls:a=0>a?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case oa:a=0>a?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(a)+" "+this.sweepAngle.toFixed(a)+" "+this.centerX.toFixed(a)+" "+this.centerY.toFixed(a)+" "+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a);break;case us:a=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xAxisRotation.toString()+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toString()+" "+this.endY.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.xAxisRotation.toFixed(a)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;default:a=this.type.toString()}return a+(this.isClosed?"z":"")},be.freeze=function(){return this._isFrozen=!0,this},be.ka=function(){return this._isFrozen=!1,this},be.close=function(){return this.isClosed=!0,this};function Va(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,E=a.radiusY;if(E===void 0&&(E=x),x===0||E===0)return a.ae=[],a.ae;y=a.Ne;var b=a.Vh,z=St.jx(0,0,x<E?x:E,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==E){var te=ui.alloc();te.reset(),x<E?te.scale(1,E/x):te.scale(x/E,1),Cn.Ha(z,te),ui.free(te)}for(x=z.length,E=0;E<x;E++)te=z[E],te[0]+=y,te[1]+=b,te[2]+=y,te[3]+=b,te[4]+=y,te[5]+=b,te[6]+=y,te[7]+=b;return a.ae=z,a.ae}function $a(a,y,x,E){function b(Ne,$e,Ke,at){return(Ne*at<$e*Ke?-1:1)*Math.acos((Ne*Ke+$e*at)/(Math.sqrt(Ne*Ne+$e*$e)*Math.sqrt(Ke*Ke+at*at)))}if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;if(a.radiusX===0||a.radiusY===0)return a.ae=[],a.ae;y=a.Wh;var z=a.Pg;y===0&&(y=1e-4),z===0&&(z=1e-4);var te=Math.PI/180*a.Ne,re=a.isLargeArc,oe=a.isClockwiseArc,le=a.Dc,he=a.Ec,ge=Math.cos(te),Se=Math.sin(te),we=ge*(x-le)/2+Se*(E-he)/2;te=-Se*(x-le)/2+ge*(E-he)/2;var Ae=we*we/(y*y)+te*te/(z*z);return 1<Ae&&(y*=Math.sqrt(Ae),z*=Math.sqrt(Ae)),Ae=(re===oe?-1:1)*Math.sqrt((y*y*z*z-y*y*te*te-z*z*we*we)/(y*y*te*te+z*z*we*we)),isNaN(Ae)&&(Ae=0),re=Ae*y*te/z,Ae=Ae*-z*we/y,isNaN(re)&&(re=0),isNaN(Ae)&&(Ae=0),x=(x+le)/2+ge*re-Se*Ae,E=(E+he)/2+Se*re+ge*Ae,he=b(1,0,(we-re)/y,(te-Ae)/z),ge=(we-re)/y,le=(te-Ae)/z,we=(-we-re)/y,re=(-te-Ae)/z,te=b(ge,le,we,re),we=(ge*we+le*re)/(Math.sqrt(ge*ge+le*le)*Math.sqrt(we*we+re*re)),-1>=we?te=Math.PI:1<=we&&(te=0),!oe&&0<te&&(te-=2*Math.PI),oe&&0>te&&(te+=2*Math.PI),oe=y>z?1:y/z,we=y>z?z/y:1,y=St.jx(0,0,y>z?y:z,he,he+te,!0),z=ui.alloc(),z.reset(),z.translate(x,E),z.rotate(a.Ne,0,0),z.scale(oe,we),Cn.Ha(y,z),ui.free(z),a.ae=y,a.ae}pn.Object.defineProperties(Wr.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(a){this.isClosed!==a&&(this.l=a?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(a){this._isFrozen&&Rt(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Rt(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Rt(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Rt(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Rt(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&Rt(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&Rt(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Rt(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Rt(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&ai(a,">= zero",Wr,"radiusX"),this._isFrozen&&Rt(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&ai(a,">= zero",Wr,"radiusY"),this._isFrozen&&Rt(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Rt(this,a),a%=360,0>a&&(a+=360),this.Dc=a,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Rt(this,a),360<a&&(a=360),-360>a&&(a=-360),this.Ec=a,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&Rt(this,a),this.l=a?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&Rt(this,a),this.l=a?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Rt(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),Wr.prototype.equalsApprox=Wr.prototype.Xa;var sa=new Kt(Wr,"Move",0),vo=new Kt(Wr,"Line",1),ga=new Kt(Wr,"Bezier",2),ls=new Kt(Wr,"QuadraticBezier",3),oa=new Kt(Wr,"Arc",4),us=new Kt(Wr,"SvgArc",4);Wr.className="PathSegment",Wr.Move=sa,Wr.Line=vo,Wr.Bezier=ga,Wr.QuadraticBezier=ls,Wr.Arc=oa,Wr.SvgArc=us;function Ta(){this.H=null,this.xu=new je(0,0).freeze(),this.mt=new je(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}Ta.prototype.copy=function(){var a=new Ta;return this.clone(a)},Ta.prototype.clone=function(a){return a.H=this.H,a.xu.assign(this.viewPoint),a.mt.assign(this.documentPoint),a.Rq=this.Rq,a.Bp=this.Bp,a.Cp=this.Cp,a.xq=this.xq,a.Tp=this.Tp,a.Wr=this.Wr,a.Ep=this.Ep,a.Rp=this.Rp,a.tq=this.tq,a.nq=this.nq,a.xg=this.xg,a.Zp=this.Zp,a.Rr=this.Rr,a.Nr=this.Nr,a.xd=this.xd,a},Ta.prototype.toString=function(){var a="^";return this.modifiers!==0&&(a+="M:"+this.modifiers),this.button!==0&&(a+="B:"+this.button),this.key!==""&&(a+="K:"+this.key),this.clickCount!==0&&(a+="C:"+this.clickCount),this.delta!==0&&(a+="D:"+this.delta),this.handled&&(a+="h"),this.bubbles&&(a+="b"),this.documentPoint!==null&&(a+="@"+this.documentPoint.toString()),a},Ta.prototype.So=function(a,y){var x=this.diagram;return x===null||Fg(x,a,y),y},Ta.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Fg(x,a,y),y.assign(x.Ps(y))),y},pn.Object.defineProperties(Ta.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},viewPoint:{get:function(){return this.xu},set:function(a){this.xu.assign(a)}},documentPoint:{get:function(){return this.mt},set:function(a){this.mt.assign(a)}},modifiers:{get:function(){return this.Rq},set:function(a){this.Rq=a}},button:{get:function(){return this.Bp},set:function(a){if(this.Bp=a,this.event===null)switch(a){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Cp},set:function(a){this.Cp=a}},key:{get:function(){return this.xq},set:function(a){this.xq=a}},down:{get:function(){return this.Tp},set:function(a){this.Tp=a}},up:{get:function(){return this.Wr},set:function(a){this.Wr=a}},clickCount:{get:function(){return this.Ep},set:function(a){this.Ep=a}},delta:{get:function(){return this.Rp},set:function(a){this.Rp=a}},isMultiTouch:{get:function(){return this.tq},set:function(a){this.tq=a}},handled:{get:function(){return this.nq},set:function(a){this.nq=a}},bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},event:{get:function(){return this.Zp},set:function(a){this.Zp=a}},isTouchEvent:{get:function(){var a=this.event;return a===null?!1:a.pointerType==="touch"||a.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(a){this.Rr=a}},targetDiagram:{get:function(){return this.Nr},set:function(a){this.Nr=a}},targetObject:{get:function(){return this.xd},set:function(a){this.xd=a}},control:{get:function(){return(this.modifiers&1)!==0},set:function(a){this.modifiers=a?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(a){this.modifiers=a?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(a){this.modifiers=a?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(a){this.modifiers=a?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(a){this.buttons=a?this.buttons|1:this.buttons&-2}},right:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(a){this.buttons=a?this.buttons|2:this.buttons&-3}},middle:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(a){this.buttons=a?this.buttons|4:this.buttons&-5}}}),Ta.prototype.getMultiTouchDocumentPoint=Ta.prototype.Bz,Ta.prototype.getMultiTouchViewPoint=Ta.prototype.So,Ta.className="InputEvent";function bl(){this.H=null,this.xa="",this.ar=this.Lr=null}bl.prototype.copy=function(){var a=new bl;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},bl.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},pn.Object.defineProperties(bl.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},subject:{get:function(){return this.Lr},set:function(a){this.Lr=a}},parameter:{get:function(){return this.ar},set:function(a){this.ar=a}}}),bl.className="DiagramEvent";function Go(){this.Fm=Ro,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Go.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Go.prototype.copy=function(){var a=new Go;a.Fm=this.Fm,a.Qq=this.Qq,a.rf=this.rf,a.cc=this.cc,a.H=this.H,a.Qn=this.Qn;var y=this.Sn;return a.Sn=tn(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=tn(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=tn(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=tn(y)&&typeof y.J=="function"?y.J():y,a},Go.prototype.qb=function(a){a.classType===Go&&(this.change=a)},Go.prototype.toString=function(){var a="";return a=this.change===Aa?a+"* ":this.change===Ro?a+(this.model!==null?"!m":"!d"):a+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(a+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(a+=" "+this.modelChange),a+=": ",this.change===Aa?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Ji(this.object)),this.oldValue!==null&&(a+=" old: "+Ji(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Ji(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Go.prototype.I=function(a){return a?this.oldValue:this.newValue},Go.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Go.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Go.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Go.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Go.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},pn.Object.defineProperties(Go.prototype,{model:{get:function(){return this.cc},set:function(a){this.cc=a}},diagram:{get:function(){return this.H},set:function(a){this.H=a}},change:{get:function(){return this.Fm},set:function(a){this.Fm=a}},modelChange:{get:function(){return this.Qq},set:function(a){this.Qq=a}},propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},isTransactionFinished:{get:function(){return this.Fm===Aa&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(a){this.Qn=a}},oldValue:{get:function(){return this.Sn},set:function(a){this.Sn=a}},oldParam:{get:function(){return this.Rn},set:function(a){this.Rn=a}},newValue:{get:function(){return this.Mn},set:function(a){this.Mn=a}},newParam:{get:function(){return this.Ln},set:function(a){this.Ln=a}}}),Go.prototype.redo=Go.prototype.redo,Go.prototype.canRedo=Go.prototype.canRedo,Go.prototype.undo=Go.prototype.undo,Go.prototype.canUndo=Go.prototype.canUndo,Go.prototype.getParam=Go.prototype.Dz,Go.prototype.getValue=Go.prototype.I,Go.prototype.clear=Go.prototype.clear;var Aa=new Kt(Go,"Transaction",-1),Ro=new Kt(Go,"Property",0),qo=new Kt(Go,"Insert",1),ua=new Kt(Go,"Remove",2);Go.className="ChangedEvent",Go.Transaction=Aa,Go.Property=Ro,Go.Insert=qo,Go.Remove=ua;function pa(){this.o=new An().freeze(),this.xa="",this.j=!1}pa.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0<a){a=this.changes.count;for(var x=0;x<a;x++){var E=this.changes.M(x);E!==null&&(y+=`
|
|
`+E.toString())}}return y},pa.prototype.clear=function(){var a=this.changes;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.clear()}a.clear(),a.freeze()},pa.prototype.canUndo=function(){return this.isComplete},pa.prototype.undo=function(){if(this.canUndo())for(var a=this.changes.count-1;0<=a;a--){var y=this.changes.M(a);y!==null&&y.undo()}},pa.prototype.canRedo=function(){return this.isComplete},pa.prototype.redo=function(){if(this.canRedo())for(var a=this.changes.count,y=0;y<a;y++){var x=this.changes.M(y);x!==null&&x.redo()}},pa.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new Wt,x=0;x<a.count;x++){var E=a.M(x);if(E!==null&&E.change===Ro&&E.object){var b=y.get(E.object);b||(b=new Wt,y.set(E.object,b));var z=b.get(E.propertyName);z===null?b.set(E.propertyName,-1):(0<z&&a.cd(z,null),b.set(E.propertyName,x))}}for(x=y=0;x<a.count;x++)E=a.M(x),E!==null&&(x>y&&a.cd(y,E),y++);for(;a.length>y;)a.pop();a.freeze()}},pn.Object.defineProperties(pa.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isComplete:{get:function(){return this.j},set:function(a){this.j=a}}}),pa.prototype.optimize=pa.prototype.ak,pa.prototype.redo=pa.prototype.redo,pa.prototype.canRedo=pa.prototype.canRedo,pa.prototype.undo=pa.prototype.undo,pa.prototype.canUndo=pa.prototype.canUndo,pa.prototype.clear=pa.prototype.clear,pa.className="Transaction";function Jo(){this.Pt=new Fn,this.Jd=!1,this.u=new An().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new An().freeze(),this.hl=new An,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Jo.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,E=0;E<x;E++)0<E&&(y+=" "),y+=this.nestedTransactionNames.M(E);if(y+="]",a!==void 0&&0<a)for(x=this.history.count,E=0;E<x;E++)y+=`
|
|
`+this.history.M(E).toString(a-1);return y},Jo.prototype.clear=function(){var a=this.history;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.clear()}a.clear(),this.Ce=-1,a.freeze(),this.Fe=!1,this.Np=null,this.bi=0,this.Ie.ka(),this.Ie.clear(),this.Ie.freeze(),this.hl.clear(),this.Dt=this.rq=this.Gt=this.Ft=!1},Jo.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},be=Jo.prototype,be.Xw=function(a){this.Pt.add(a)},be.Rx=function(a){this.Pt.remove(a)},be.Ea=function(a){if(a===void 0&&(a=""),a===null&&(a=""),this.isUndoingRedoing)return!1;this.tt===!0&&(this.tt=!1,this.bi++,this.isInternalTransaction||this.Ob("StartingFirstTransaction",a,this.currentTransaction),0<this.bi&&this.bi--),this.isEnabled&&(this.Ie.ka(),this.Ie.add(a),this.Ie.freeze(),this.currentTransaction===null?this.hl.add(0):this.hl.add(this.currentTransaction.changes.count)),this.bi++;var y=this.transactionLevel===1;return y&&(this.isInternalTransaction||this.Ob("StartedTransaction",a,this.currentTransaction)),y},be.eb=function(a){return a===void 0&&(a=""),fl(this,!0,a)},be.Kf=function(){return fl(this,!1,"")};function fl(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&ti("Ending transaction without having started a transaction: "+x);var E=a.transactionLevel===1,b=a.currentTransaction;E&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,b));var z=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var te=a.Ie.count;0<te&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(te-1),a.Ie.freeze()),te=a.hl.count,0<te&&(z=a.hl.M(te-1),a.hl.mb(te-1))}if(E){if(y)a.rq=!1,b===null&&x!==""&&(b=a.currentTransaction),a.isEnabled&&b!==null&&(b.isComplete||(b.isComplete=!0,b.name=x),a.lx(),y=a.history,y.ka(),E=a.maxHistoryLength,0<=E&&(E===0?y.clear():y.count>=E&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),E===0||y.count!==0&&y.get(y.count-1)===b||(y.add(b),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,b);else{a.Fe=!0;try{a.isEnabled&&b!==null&&(b.isComplete=!0,b.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,b),a.Fe=!1}b!==null&&b.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&b!==null){for(a=z,x=b.changes,b=x.count-1;b>=a;b--)y=x.M(b),y!==null&&y.undo(),x.ka(),x.mb(b);x.freeze()}return!1}be.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var x=a.M(y);x!==null&&x.clear(),a.mb(y),this.rq=!0}a.freeze()}},Jo.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},Jo.prototype.undo=function(){if(this.canUndo()){var a=this.transactionToUndo;try{this.Fe=!0,this.Ob("StartingUndo","Undo",a),this.Ce--,a.undo()}catch(y){ti("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},Jo.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},Jo.prototype.redo=function(){if(this.canRedo()){var a=this.transactionToRedo;try{this.Fe=!0,this.Ob("StartingRedo","Redo",a),this.Ce++,a.redo()}catch(y){ti("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},Jo.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var E=new Go;for(E.change=Aa,E.propertyName=a,E.object=x,E.oldValue=y,a=this.models;a.next();)y=a.value,E.model=y,y.ds(E)},Jo.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new pa);var x=a.copy();y=y.changes,y.ka(),y.add(x),y.freeze(),this.checksTransactionLevel&&0>=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||ti("Change not within a transaction: "+x.toString()))}},Jo.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},pn.Object.defineProperties(Jo.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndex<this.history.count-1?this.history.M(this.historyIndex+1):null}},isUndoingRedoing:{get:function(){return this.Fe}},history:{get:function(){return this.u}},maxHistoryLength:{get:function(){return this.o},set:function(a){this.o=a}},historyIndex:{get:function(){return this.Ce}},currentTransaction:{get:function(){return this.Np}},transactionLevel:{get:function(){return this.bi}},isInTransaction:{get:function(){return 0<this.bi}},checksTransactionLevel:{get:function(){return this.j},set:function(a){this.j=a}},nestedTransactionNames:{get:function(){return this.Ie}},isPendingClear:{get:function(){return this.Ft},set:function(a){this.Ft=a}},isPendingUnmodified:{get:function(){return this.Gt},set:function(a){this.Gt=a}},isInternalTransaction:{get:function(){return this.Dt},set:function(a){this.Dt=a}},isJustDiscarded:{get:function(){return this.rq}}}),Jo.prototype.handleChanged=Jo.prototype.Tu,Jo.prototype.redo=Jo.prototype.redo,Jo.prototype.undo=Jo.prototype.undo,Jo.prototype.canUndo=Jo.prototype.canUndo,Jo.prototype.discardHistoryAfterIndex=Jo.prototype.lx,Jo.prototype.rollbackTransaction=Jo.prototype.Kf,Jo.prototype.commitTransaction=Jo.prototype.eb,Jo.prototype.startTransaction=Jo.prototype.Ea,Jo.prototype.removeModel=Jo.prototype.Rx,Jo.prototype.addModel=Jo.prototype.Xw,Jo.prototype.clear=Jo.prototype.clear,Jo.className="UndoManager";function _r(){Kn(this),this.H=Bu,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new Ta,this.Zr=-1}_r.prototype.toString=function(){return this.name!==""?this.name+" Tool":qn(this.constructor)},_r.prototype.updateAdornments=function(){},_r.prototype.canStart=function(){return this.isEnabled},_r.prototype.doStart=function(){},_r.prototype.doActivate=function(){this.isActive=!0},_r.prototype.doDeactivate=function(){this.isActive=!1},_r.prototype.doStop=function(){},_r.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},_r.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},_r.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},_r.prototype.doMouseMove=function(){},_r.prototype.doMouseUp=function(){this.stopTool()},_r.prototype.doMouseWheel=function(){},_r.prototype.canStartMultiTouch=function(){return!0},_r.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,je.allocAt(NaN,NaN)),E=y.So(1,je.allocAt(NaN,NaN));if(x.w()&&E.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var b=E.x-x.x,z=E.y-x.y;a.Jw=Math.sqrt(b*b+z*z),y.bubbles=!1}je.free(x),je.free(E)},_r.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,je.allocAt(NaN,NaN)),E=y.So(1,je.allocAt(NaN,NaN));if(x.w()&&E.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var b=E.x-x.x,z=E.y-x.y;z=Math.sqrt(b*b+z*z)/a.Jw,b=new je((Math.min(E.x,x.x)+Math.max(E.x,x.x))/2,(Math.min(E.y,x.y)+Math.max(E.y,x.y))/2),z*=a.Bw;var te=a.commandHandler;if(z!==a.scale&&te.canResetZoom(z)){var re=a.zoomPoint;a.zoomPoint=b,te.resetZoom(z),a.zoomPoint=re}y.bubbles=!1}je.free(x),je.free(E)},_r.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},_r.prototype.doKeyUp=function(){},_r.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},_r.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},_r.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(Hr?y.meta:y.control){for(a.R("ChangingSelection",a.selection),y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!y.isSelected),a.R("ChangedSelection",a.selection)}else if(y.shift){if(!x.isSelected){for(a.R("ChangingSelection",a.selection),y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!0),a.R("ChangedSelection",a.selection)}}else if(!x.isSelected){for(y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&a.select(y)}}else!y.left||(Hr?y.meta:y.control)||y.shift||a.clearSelection()}},_r.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(b){return!b.layer.isTemporary});var x=this.diagram,E=x.lastInput;return a=x.ic(E.documentPoint,a,y),E.targetObject=a,pu(a,E,x),E.handled};function pu(a,y,x){if(y.handled=!1,a===null||a.If()){var E=0;y.left?E=y.clickCount===1?1:y.clickCount===2?2:1:y.right&&y.clickCount===1&&(E=3);var b="ObjectSingleClicked";if(a!==null){switch(E){case 1:b="ObjectSingleClicked";break;case 2:b="ObjectDoubleClicked";break;case 3:b="ObjectContextClicked"}E!==0&&x.R(b,a)}else{switch(E){case 1:b="BackgroundSingleClicked";break;case 2:b="BackgroundDoubleClicked";break;case 3:b="BackgroundContextClicked"}E!==0&&x.R(b)}if(a!==null)for(;a!==null;){switch(x=null,E){case 1:x=a.click;break;case 2:x=a.doubleClick?a.doubleClick:a.click;break;case 3:x=a.contextClick}if(x!==null&&(x(y,a),y.handled))break;a=a.panel}else{switch(a=null,E){case 1:a=x.click;break;case 2:a=x.doubleClick?x.doubleClick:x.click;break;case 3:a=x.contextClick}a!==null&&a(y)}}}_r.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var x=a.skipsUndoManager;a.skipsUndoManager=!0;var E=a.viewportBounds.ca(y.documentPoint)?a.ic(y.documentPoint,null,null):null;!y.event||y.event.type!=="pointercancel"&&y.event.type!=="pointerout"||(E=null),y.targetObject=E;var b=!1;if(E!==a.Ck){var z=a.Ck,te=z;for(a.Ck=E,this.doCurrentObjectChanged(z,E),y.handled=!1;z!==null;){var re=z.mouseLeave;if(re!==null&&(E===z||E!==null&&E.rg(z)||(re(y,z,E),b=!0,y.handled)))break;z=z.panel}for(z=te,y.handled=!1;E!==null&&(te=E.mouseEnter,!(te!==null&&(z===E||z!==null&&z.rg(E)||(te(y,E,z),b=!0,y.handled))));)E=E.panel;E=a.Ck}if(E!==null){for(z=E,te="";z!==null&&(te=z.cursor,te==="");)z=z.panel;for(a.currentCursor=te,y.handled=!1,z=E;z!==null&&(E=z.mouseOver,!(E!==null&&(E(y,z),b=!0,y.handled)));)z=z.panel}else this.doUpdateCursor(null),E=a.mouseOver,E!==null&&(E(y),b=!0);b&&a.$b(),a.skipsUndoManager=x}},_r.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},_r.prototype.doCurrentObjectChanged=function(){},_r.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,x=y.delta;if(x!==0&&a.documentBounds.w()){var E=a.commandHandler,b=a.toolManager.mouseWheelBehavior;if(E!==null&&(b===Dl&&!y.shift||b===Qs&&y.control))(0<x?E.canIncreaseZoom():E.canDecreaseZoom())&&(b=a.zoomPoint,a.zoomPoint=y.viewPoint,0<x?E.increaseZoom():E.decreaseZoom(),a.zoomPoint=b),y.bubbles=!1;else if(b===Dl&&y.shift||b===Qs&&!y.control){E=a.position.copy();var z=y.event;b=z.deltaMode;var te=z.deltaX;z=z.deltaY;var re="pixel";if(te===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(re,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(re,0<x?"left":"right",Math.abs(x)));else{switch(b){case 0:re="pixel";break;case 1:re="line";break;case 2:re="page"}te!==0&&a.allowHorizontalScroll&&(te*=a.scrollHorizontalLineChange/16,a.scroll(re,0<te?"right":"left",Math.abs(te))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(re,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,E,y)}}},_r.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},_r.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,E=y.clone(this.yy);this.Zr=Fr(function(){x.doWaitAfter(E)},a)},_r.prototype.cancelWaitAfter=function(){this.Zr!==-1&&un.clearTimeout(this.Zr),this.Zr=-1},_r.prototype.doWaitAfter=function(){},_r.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof eo);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},_r.prototype.isBeyondDragSize=function(a,y){var x=this.diagram;a===void 0&&(a=x.firstInput.viewPoint),y===void 0&&(y=x.lastInput.viewPoint);var E=x.toolManager.dragSize,b=E.width;return E=E.height,x.firstInput.isTouchEvent&&(b+=6,E+=6),Math.abs(y.x-a.x)>b||Math.abs(y.y-a.y)>E},pn.Object.defineProperties(_r.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof _t&&(this.H=a)}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},isActive:{get:function(){return this.nb},set:function(a){this.nb=a}},transactionResult:{get:function(){return this.wm},set:function(a){this.wm=a}}}),_r.prototype.startTransaction=_r.prototype.Ea,_r.className="Tool";function Ao(){_r.call(this),this.name="ToolManager",this.hb=new An,this.ob=new An,this.Hb=new An,this.F=this.V=850,this.o=new Xe(2,2).ja(),this.Ha=5e3,this.ia=Qs,this.u=vu,this.Mp=this.j=null,this.zj=-1}Zt(Ao,_r),Ao.prototype.initializeStandardTools=function(){},Ao.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof eo&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Ao.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Ws&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Vl){y.bubbles=!0;return}if(this.gestureBehavior===Ws)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,E=0;E<x;E++){var b=this.mouseDownTools.M(E);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseDown());return}}a.lastInput.button===1&&(this.mouseWheelBehavior===Qs?this.mouseWheelBehavior=Dl:this.mouseWheelBehavior===Dl&&(this.mouseWheelBehavior=Qs)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},Ao.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===Vl){y.bubbles=!0;return}if(this.gestureBehavior===Ws)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var x=this.mouseMoveTools.length,E=0;E<x;E++){var b=this.mouseMoveTools.M(E);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseMove());return}}Gl(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Gl(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}Ao.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof eo&&(y===a||y.rg(a))||this.hideToolTip()},Ao.prototype.doWaitAfter=function(a){var y=this.diagram;y.ta!==null&&(this.doMouseHover(),this.isActive||this.doToolTip(),a.isTouchEvent&&!y.lastInput.handled&&(a=a.copy(),a.button=2,a.buttons=2,y.lastInput=a,y.qu=!0,y.doMouseUp()))},Ao.prototype.doMouseHover=function(){var a=this.diagram,y=a.lastInput;y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null));var x=y.targetObject;if(x!==null)for(y.handled=!1;x!==null&&(a=this.isActive?x.mouseHold:x.mouseHover,!(a!==null&&(a(y,x),y.handled)));)x=x.panel;else x=this.isActive?a.mouseHold:a.mouseHover,x!==null&&x(y)},Ao.prototype.doToolTip=function(){var a=this.diagram,y=a.lastInput;if(y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null)),y=y.targetObject,y!==null){if(a=this.currentToolTip,!(a instanceof eo)||y!==a&&!y.rg(a)){for(;y!==null;){if(a=y.toolTip,a!==null){this.showToolTip(a,y);return}y=y.panel}this.hideToolTip()}}else y=a.toolTip,y!==null?this.showToolTip(y,null):this.hideToolTip()},Ao.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof eo){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=x.scale);var E=a.diagram;E!==null&&E!==x&&E.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionToolTip(a,y)}else a instanceof Su&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(un.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var b=this;this.zj=Fr(function(){b.hideToolTip()},a)}},Ao.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),E=a.measuredBounds,b=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=E.width),x.x+E.width>b.right&&(x.x-=E.width+5/y.scale),x.x<b.x&&(x.x=b.x),x.y=x.y+20/y.scale+E.height>b.bottom?x.y-(E.height+5/y.scale):x.y+20/y.scale,x.y<b.y&&(x.y=b.y),a.position=x}},Ao.prototype.hideToolTip=function(){this.zj!==-1&&(un.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof eo?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Su&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},Ao.prototype.doMouseUp=function(){this.cancelWaitAfter();var a=this.diagram;if(this.isActive)for(var y=this.mouseUpTools.length,x=0;x<y;x++){var E=this.mouseUpTools.M(x);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseUp());return}}a.doFocus(),this.doDeactivate()},Ao.prototype.doMouseWheel=function(){this.standardMouseWheel()},Ao.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Ao.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Ao.prototype.findTool=function(a){for(var y=this.mouseDownTools.length,x=0;x<y;x++){var E=this.mouseDownTools.M(x);if(E.name===a)return E}for(y=this.mouseMoveTools.length,x=0;x<y;x++)if(E=this.mouseMoveTools.M(x),E.name===a)return E;for(y=this.mouseUpTools.length,x=0;x<y;x++)if(E=this.mouseUpTools.M(x),E.name===a)return E;return null},Ao.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var x=this.mouseDownTools.length,E=0;E<x;E++){var b=this.mouseDownTools.M(E);if(b.name===a)return y!==null?this.mouseDownTools.cd(E,y):this.mouseDownTools.mb(E),b}for(x=this.mouseMoveTools.length,E=0;E<x;E++)if(b=this.mouseMoveTools.M(E),b.name===a)return y!==null?this.mouseMoveTools.cd(E,y):this.mouseMoveTools.mb(E),b;for(x=this.mouseUpTools.length,E=0;E<x;E++)if(b=this.mouseUpTools.M(E),b.name===a)return y!==null?this.mouseUpTools.cd(E,y):this.mouseUpTools.mb(E),b;return null},Ao.prototype.gb=function(a,y,x){y!==null&&(y.name=a,y.diagram=this.diagram),this.findTool(a)?this.replaceTool(a,y):y!==null&&x.add(y)},pn.Object.defineProperties(Ao.prototype,{mouseWheelBehavior:{get:function(){return this.ia},set:function(a){this.ia=a}},gestureBehavior:{get:function(){return this.u},set:function(a){this.u=a}},currentToolTip:{get:function(){return this.j},set:function(a){this.j=a,this.Mp=a!==null&&a instanceof eo?a.adornedPart:null}},mouseDownTools:{get:function(){return this.hb}},mouseMoveTools:{get:function(){return this.ob}},mouseUpTools:{get:function(){return this.Hb}},hoverDelay:{get:function(){return this.V},set:function(a){this.V=a}},holdDelay:{get:function(){return this.F},set:function(a){this.F=a}},dragSize:{get:function(){return this.o},set:function(a){this.o=a.J()}},toolTipDuration:{get:function(){return this.Ha},set:function(a){this.Ha=a}}}),Ao.prototype.replaceStandardTool=Ao.prototype.gb;var Qs=new Kt(Ao,"WheelScroll",0),Dl=new Kt(Ao,"WheelZoom",1),mu=new Kt(Ao,"WheelNone",2),vu=new Kt(Ao,"GestureZoom",3),Ws=new Kt(Ao,"GestureCancel",4),Vl=new Kt(Ao,"GestureNone",5);Ao.className="ToolManager",Ao.WheelScroll=Qs,Ao.WheelZoom=Dl,Ao.WheelNone=mu,Ao.GestureZoom=vu,Ao.GestureCancel=Ws,Ao.GestureNone=Vl;function Uo(){_r.call(this),this.name="Dragging",this.u=this.Sw=this.ob=!0,this.o=this.Ha=this.V=this.Oe=null,this.Ym=this.Hb=!1,this.tl=new je(NaN,NaN),this.Fr=new je,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Fn().freeze(),this.ia=new ae,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Hs;Zt(Uo,_r),Uo.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly&&!a.allowDragOut||!a.allowMove&&!a.allowCopy&&!a.allowDragOut||!a.allowSelect)return!1;var y=a.lastInput;return!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.isTouchEvent&&y.timestamp-a.firstInput.timestamp<this.Ik)?!1:this.findDraggablePart()!==null},Uo.prototype.findDraggablePart=function(){var a=this.diagram;if(a=a.Ol(a.firstInput.documentPoint,!1),a===null)return null;for(;a!==null&&!a.canSelect();)a=a.containingGroup;return a!==null&&(a.canMove()||a.canCopy())?a:null},Uo.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.Ol(a.firstInput.documentPoint,!1);if(y!==null){for(;y!==null&&!y.canSelect();)y=y.containingGroup;this.currentPart=y,this.currentPart===null||this.currentPart.isSelected||(a.R("ChangingSelection",a.selection),y=a.lastInput,(Hr?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},Uo.prototype.doActivate=function(){var a=this.diagram;this.Bn=null,this.currentPart===null&&this.standardMouseSelect();var y=this.currentPart;y!==null&&(y.canMove()||y.canCopy())&&(a.Fu(!0),Za=null,this.isActive=!0,this.tl.set(a.position),yu(this,a.selection),this.Cg.length=0,a.animationManager.Cc(),this.draggedParts=this.computeEffectiveCollection(a.selection,this.dragOptions),this.Sw=this.diagram.layout.isRealtime,this.diagram.layout.isRealtime=!1,a.Ns=!0,a.Gf("temporaryPixelRatio")===!0&&30<a.$w&&Ns(a),vf(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Za=this,Xu=this.diagram,this.doSimulatedDragOut()))};function yu(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof Hn?(a.draggedLink=y.first(),a.draggedLink.canRelinkFrom()&&a.draggedLink.canRelinkTo()&&a.draggedLink.Ej(),a.Oe=x.toolManager.findTool("Relinking"),a.Oe===null&&(a.Oe=new ol,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}Uo.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},Uo.prototype.Pd=function(a){return a===void 0?new eh(Qn):this.isGridSnapEnabled?new eh(new je(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new eh(a.copy())},Uo.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),gl(this),id(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Hs.count){for(var y=Hs,x=y.length,E=0;E<x;E++){var b=y.M(E);Yo(b),Bo(b),gl(b),b.diagram.ug()}y.clear()}Yo(this),this.tl.h(NaN,NaN),Xu!==null&&(Xu.currentCursor=""),Za=Xu=null,Bo(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),Cc(a,!0)},Uo.prototype.stopTransaction=function(){var a=this.diagram,y=_r.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function gl(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,kl(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function Du(){var a=Za;Bo(a),es(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Uo.prototype.doCancel=function(){Bo(this),es(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},Uo.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},Uo.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function pl(a,y){if(a.copiedParts===null){var x=a.diagram;if((!y||!x.isReadOnly&&!x.isModelReadOnly)&&a.draggedParts!==null){var E=x.undoManager;for(E.isEnabled&&E.isInTransaction?E.currentTransaction!==null&&0<E.currentTransaction.changes.count&&(x.undoManager.Kf(),x.Ea("Drag")):es(a),x.skipsUndoManager=!y,x.partManager.addsToTemporaryLayer=!y,a.startPoint=x.firstInput.documentPoint,y=a.copiesEffectiveCollection?a.draggedParts.Lf():x.selection,y=x.Kj(y,x,!0),x=new Wt,E=a.draggedParts.iterator;E.next();){var b=E.key;if(b.Zc()&&b.canCopy()){var z=y.I(b);z!==null&&(z.location=b.location,z.Va(),x.add(z,a.Pd(z.location)))}}for(y=y.iterator;y.next();)E=y.value,E instanceof Hn&&E.canCopy()&&x.add(E,a.Pd());a.copiedParts=x,yu(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,kh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function Bo(a){var y=a.diagram;if(a.copiedParts!==null){if(y.Is(a.copiedParts.Lf(),!1),a.copiedParts=null,a.draggedParts!==null)for(var x=a.draggedParts.iterator;x.next();)x.key instanceof Hn&&(x.value.point=new je(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function Yo(a){if(a.draggedLink!==null){if(a.dragsLink&&a.Oe!==null){var y=a.Oe;y.diagram.remove(y.temporaryFromNode),y.diagram.remove(y.temporaryToNode),a.Oe.originalLink=null}a.draggedLink=null,a.Oe=null}}function Ca(a,y,x){var E=a.diagram,b=a.startPoint,z=je.alloc();z.assign(E.lastInput.documentPoint),a.moveParts(y,z.re(b),x),je.free(z),E.Gf("temporaryPixelRatio")===!0&&E.Yh===null&&30<E.$w&&(Ns(E),E.hk())}Uo.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var E=this.diagram;E!==null&&nd(E,a,y,this.dragOptions,x)};function es(a){if(a.draggedParts!==null){for(var y=a.diagram,x=a.draggedParts.iterator;x.next();){var E=x.key;E.Zc()&&(E.location=x.value.point)}for(x=a.draggedParts.iterator;x.next();)if(E=x.key,E instanceof Hn&&E.suspendsRouting){var b=x.value.point;a.draggedParts.add(E,a.Pd()),kh(E,-b.x,-b.y)}y.bd()}}function Xa(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),yo(a,!1));var E=a.findDragOverObject(y),b=x.lastInput;b.targetObject=E,a.doUpdateCursor(E);var z=x.skipsUndoManager,te=!1;try{if(x.skipsUndoManager=!0,te=kl(a,b,E),!a.isActive&&Za===null)return;var re=E!==null?E.part:null;if(re===null||x.handlesDragDropForTopLevelParts&&re.isTopLevel&&!(re instanceof Pr)){var oe=x.mouseDragOver;oe!==null&&(oe(b),te=!0)}if(!a.isActive&&Za===null||(a.doDragOver(y,E),!a.isActive&&Za===null))return}finally{x.skipsUndoManager=z,te&&x.bd()}a.Bn=E,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(b.viewPoint)}Uo.prototype.findDragOverObject=function(a){var y=this;return Nu(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof eo||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},Uo.prototype.doUpdateCursor=function(a){var y=this.diagram;(a===null||this.Bn!==a)&&(!this.diagram.currentTool.isActive||this.mayCopy()?y.currentCursor=this.copyCursor:this.mayMove()?y.currentCursor=this.moveCursor:this.mayDragOut()&&(y.currentCursor=this.nodropCursor))};function kl(a,y,x){var E=!1,b=a.Cg.length,z=0<b?a.Cg[0]:null;if(x===z)return!1;y.handled=!1;for(var te=0;te<b;te++){var re=a.Cg[te],oe=re.mouseDragLeave;if(oe!==null&&(oe(y,re,x),E=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Za===null||x===null)return E;for(y.handled=!1,b=x;b!==null;)a.Cg.push(b),b=ml(b);for(b=a.Cg.length,x=0;x<b&&(te=a.Cg[x],re=te.mouseDragEnter,re===null||(re(y,te,z),E=!0,!y.handled));x++);return E}function ml(a){var y=a.panel;return y!==null?y:a instanceof Xi&&!(a instanceof Pr)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function jo(a,y,x){var E=a.Oe;if(E===null)return null;var b=a.diagram.og(y,E.portGravity,function(le){return E.findValidLinkablePort(le,x)});a=je.alloc();var z=1/0,te=null;for(b=b.iterator;b.next();){var re=b.value;if(re.part!==null){var oe=re.ga(hi,a);oe=y.Bf(oe),oe<z&&(te=re,z=oe)}}return je.free(a),te}function yo(a,y){var x=a.draggedLink;if(x!==null&&!(2>x.pointsCount)){var E=a.diagram;if(!E.isReadOnly){var b=a.Oe;if(b!==null){var z=null,te=null;x.fromNode===null&&(z=jo(a,x.i(0),!1),z!==null&&(te=z.part));var re=null,oe=null;x.toNode===null&&(re=jo(a,x.i(x.pointsCount-1),!0),re!==null&&(oe=re.part)),b.isValidLink(te,z,oe,re)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=te,z!==null&&(x.fromPortId=z.portId),x.toNode=oe,re!==null&&(x.toPortId=re.portId),x.fromPort!==E.Mx&&E.R("LinkRelinked",x,E.Mx),x.toPort!==E.Nx&&E.R("LinkRelinked",x,E.Nx)):nf(b,te,z,oe,re):nf(b,null,null,null,null)}}}}Uo.prototype.doDragOver=function(){};function _a(a,y){var x=a.diagram;a.dragsLink&&yo(a,!0),gl(a);var E=a.findDragOverObject(y),b=x.lastInput;if(b.targetObject=E,E!==null){b.handled=!1;for(var z=E;z!==null;){var te=z.mouseDrop;if(te!==null&&(te(b,z),b.handled))break;iu(a,b,z),z=ml(z)}}else z=x.mouseDrop,z!==null&&z(b);if(a.isActive||Za!==null){for(b=(a.copiedParts||a.draggedParts).iterator;b.next();)z=b.key,z instanceof li&&z.linksConnected.each(function(re){re.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||Za!==null){for(a=pt.alloc(),y=x.selection.iterator;y.next();)E=y.value,E instanceof li&&Dd(x,E,a);pt.free(a)}}}function iu(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Pr||(x=a.mouseDrop,x!==null&&x(y))}function Dd(a,y,x){var E=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(E=!0),a=a.Nu(x,function(b){return b.part},function(b){return b instanceof Hn},!0,function(b){return b instanceof Hn},E),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}Uo.prototype.doDropOnto=function(){},Uo.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;this.simulatedMouseMove(y.event,y.documentPoint,y.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(pl(this,!1),vf(a,this.copiedParts),Ca(this,this.copiedParts,!1),id(a,this.copiedParts)):this.mayMove()?(Bo(this),Ca(this,this.draggedParts,!0)):this.mayDragOut()?(pl(this,!1),Ca(this,this.copiedParts,!1)):Bo(this),Xa(this,a.lastInput.documentPoint))}},Uo.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;if(!this.simulatedMouseUp(y.event,y.documentPoint,y.targetDiagram)){y=!1;var x=this.mayCopy();if(x&&this.copiedParts!==null?(Bo(this),pl(this,!0),vf(a,this.copiedParts),Ca(this,this.copiedParts,!1),id(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0}))):(y=!0,Bo(this),this.mayMove()&&(Ca(this,this.draggedParts,!0),Xa(this,a.lastInput.documentPoint))),this.Ym=!0,_a(this,a.lastInput.documentPoint),this.isActive){var E=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&dg(this),a.Ya(),id(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",E)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},Uo.prototype.simulatedMouseMove=function(a,y,x){if(Za===null)return!1;var E=Za.diagram;x instanceof _t||(x=null);var b=Xu;return x!==b&&(b!==null&&b!==E&&(b.ug(),Za.isDragOutStarted=!1,b=b.toolManager.findTool("Dragging"),b!==null&&b.doSimulatedDragLeave()),Xu=x,x!==null&&x!==E&&(Du(),b=x.toolManager.findTool("Dragging"),b!==null&&(Hs.contains(b)||Hs.add(b),b.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===E||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(E=x.toolManager.findTool("Dragging"),E!==null&&(a!==null&&(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!1,E.doSimulatedDragOver()),!0)},Uo.prototype.simulatedMouseUp=function(a,y,x){if(Za===null)return!1;var E=Xu,b=Za.diagram;if(x===null)return Za.doCancel(),!0;if(x!==E){var z=E.toolManager.findTool("Dragging");if(E!==null&&E!==b&&z!==null)return E.ug(),Za.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;Xu=x,E=x.toolManager.findTool("Dragging"),E!==null&&(Du(),Hs.contains(E)||Hs.add(E),E.doSimulatedDragEnter())}return x!==this.diagram?(a!==null?(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)):y===null&&(y=new je),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!0,a=x.toolManager.findTool("Dragging"),a!==null&&a.doSimulatedDrop(),a=Za,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function dg(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof li&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}Uo.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(Hr?!a.lastInput.alt:!a.lastInput.control))return!1;for(a=a.selection.iterator;a.next();)if(a.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},Uo.prototype.mayDragOut=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(!a.allowDragOut||!a.allowCopy||a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},Uo.prototype.mayMove=function(){var a=this.diagram;if(a.isReadOnly||!a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canMove())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canMove())},Uo.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},Uo.prototype.Az=function(){return Za},Uo.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Za;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},Uo.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),Sl(a),a.animationManager.Cc(),a=Za,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Uo.prototype.doSimulatedDragLeave=function(){var a=Za;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Uo.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Za;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;tf(this,y.draggedParts.Lf(),!1,a.firstInput),Ca(this,this.copiedParts,!1),Xa(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},Uo.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Za;if(y!==null){var x=y.diagram;if(y.Ym=!0,Bo(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),tf(this,y.draggedParts.Lf(),!0,a.lastInput),Ca(this,this.copiedParts,!1);var E=new Fn;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0,E.add(b)})),_a(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",E,x),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function tf(a,y,x,E){if(a.copiedParts===null){var b=a.diagram;if(!b.isReadOnly&&!b.isModelReadOnly){b.skipsUndoManager=!x,b.partManager.addsToTemporaryLayer=!x,a.startPoint=E.documentPoint,x=b.Kj(y,b,!0);var z=pt.alloc();b=E=1/0;for(var te=-1/0,re=-1/0,oe=y.iterator;oe.next();){var le=oe.value;if(le.isVisible()){var he=le.location;le=he.x,he=he.y,isNaN(le)||isNaN(he)||(le<E&&(E=le),he<b&&(b=he),le>te&&(te=le),he>re&&(re=he))}}for(E===1/0?z.h(0,0,0,0):z.h(E,b,te-E,re-b),E=z.x+z.width/2,b=z.y+z.height/2,pt.free(z),z=a.Fr,te=new Wt,re=je.alloc(),oe=y.iterator;oe.next();)le=oe.value,le instanceof Hn&&le.canCopy()&&(he=x.I(le),he!==null&&(he.points=le.points,kh(he,z.x-E,z.y-b),he.suspendsRouting=!0,te.add(he,a.Pd())));for(y=y.iterator;y.next();)le=y.value,le.Zc()&&le.canCopy()&&(oe=x.I(le),oe!==null&&(le=le.location,re.h(z.x-(E-le.x),z.y-(b-le.y)),oe.location=re,oe.Va(),te.add(oe,a.Pd(re))));je.free(re),a.copiedParts=te,yu(a,te.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,kh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}Uo.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Uo.prototype.computeMove=function(a,y,x,E){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,E):new je},pn.Object.defineProperties(Uo.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(a){this.ob=a}},copiesEffectiveCollection:{get:function(){return this.u},set:function(a){this.u=a}},dragOptions:{get:function(){return this.ia},set:function(a){this.ia=a}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(a){this.dragOptions.isGridSnapEnabled=a}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(a){this.hb=a}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(a){this.dragOptions.isGridSnapRealtime=a}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(a){this.dragOptions.gridSnapCellSize.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSize=a)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(a){this.dragOptions.gridSnapCellSpot.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSpot=a)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(a){this.dragOptions.gridSnapOrigin.D(a)||(a=a.J(),this.dragOptions.gridSnapOrigin=a)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(a){this.dragOptions.dragsLink=a}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(a){this.dragOptions.dragsTree=a}},copyCursor:{get:function(){return this.F},set:function(a){this.F=a}},moveCursor:{get:function(){return this.Oc},set:function(a){this.Oc=a}},nodropCursor:{get:function(){return this.Pc},set:function(a){this.Pc=a}},currentPart:{get:function(){return this.V},set:function(a){this.V=a}},copiedParts:{get:function(){return this.o},set:function(a){this.o=a}},draggedParts:{get:function(){return this.Ha},set:function(a){this.Ha=a}},draggingParts:{get:function(){return this.copiedParts!==null?this.copiedParts.Lf():this.draggedParts!==null?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(a){this.diagram.draggedLink=a}},isDragOutStarted:{get:function(){return this.Hb},set:function(a){this.Hb=a}},startPoint:{get:function(){return this.Fr},set:function(a){this.Fr.D(a)||this.Fr.assign(a)}},delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}}}),Uo.prototype.getDraggingSource=Uo.prototype.Az;var Za=null,Xu=null;Uo.className="DraggingTool",Hs=new An,Pn("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Ao.prototype.doCancel=function(){Za!==null&&Za.doCancel(),_r.prototype.doCancel.call(this)};function $r(){_r.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Hn,y=new Mr;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Mr,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new li,y=new Mr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Ct,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new li,y=new Mr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Ct,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new Wt,this.Of=this.gj=this.Pf=null}Zt($r,_r),$r.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},$r.prototype.copyPortProperties=function(a,y,x,E,b){if(a!==null&&y!==null&&x!==null&&E!==null){var z=y.Df(),te=Xe.alloc();te.width=y.naturalBounds.width*z,te.height=y.naturalBounds.height*z,E.desiredSize=te,Xe.free(te),b?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=hi,z=je.alloc(),x.location=y.ga(hi,z),je.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,E,b)}},$r.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=Ct,y.fromSpot=Fi,y.toSpot=Fi),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},$r.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},$r.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof li){var y=this.targetPort.part;this.isForwards?this.copyPortProperties(y,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(y,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},$r.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof li))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof li)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(E===!1)break;a=a.panel}return null},$r.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,E=this.portGravity;0>=E&&(E=.1);var b=this,z=y.og(x,E,function(ge){return b.findValidLinkablePort(ge,a)},null,!0);for(E=1/0,y=null,z=z.iterator;z.next();){var te=z.value,re=te.part;if(re instanceof li){var oe=te.ga(hi,je.alloc()),le=x.x-oe.x,he=x.y-oe.y;je.free(oe),oe=le*le+he*he,oe<E&&(le=this.validPortsCache.I(te),le!==null?le&&(y=te,E=oe):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,re,te)||!a&&this.isValidLink(re,te,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(te,!0),y=te,E=oe):this.validPortsCache.add(te,!1))}}return y!==null&&(x=y.part,x instanceof li&&(x.layer===null||x.layer.allowLink))?y:null},$r.prototype.isValidFrom=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.fromLinkable!==!0))return!1;var x=y.fromMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=x)return!1}return!0},$r.prototype.isValidTo=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.toLinkable!==!0))return!1;var x=y.toMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=x)return!1}return!0},$r.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},$r.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof li))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof li))return!1;for(y=y.portId,y===null&&(y=""),y=E.Sd(y);y.next();)if(E=y.value,E.fromNode===x&&E.fromPortId===a)return!0;return!1},$r.prototype.isValidLink=function(a,y,x,E){if(!this.isValidFrom(a,y)||!this.isValidTo(x,E)||!(y===null||E===null||(y.fromLinkableSelfNode&&E.toLinkableSelfNode||!this.isInSameNode(y,E))&&(y.fromLinkableDuplicates&&E.toLinkableDuplicates||!this.isLinked(y,E)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var b=a.linkValidation;if(b!==null&&!b(a,y,x,E,this.originalLink))return!1}return x!==null&&(b=x.linkValidation,b!==null&&!b(a,y,x,E,this.originalLink))?!1:(b=this.linkValidation,b!==null?b(a,y,x,E,this.originalLink):!0)},$r.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var E=new Fn;return E.add(a),lo(this,x,y,E)};function lo(a,y,x,E){if(y===x)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(E.add(b),lo(a,b.labeledLink,x,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),lo(a,y.labeledLink,x,E))))}$r.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var E=this.diagram.validCycle;if(E!==Lc){if(E===Hg){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=y.linksConnected;E.next();){var b=E.value;if(b!==x&&b.isTreeLink&&b.toNode===y)return!1}return!Mo(this,a,y,x,!0)}if(E===Gg){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=a.linksConnected;E.next();)if(b=E.value,b!==x&&b.isTreeLink&&b.fromNode===a)return!1;return!Mo(this,a,y,x,!0)}if(E===zg)return a===y?a=!0:(E=new Fn,E.add(y),a=na(this,E,a,y,x)),!a;if(E===Zg)return!Mo(this,a,y,x,!1);if(E===Wg)return a===y?a=!0:(E=new Fn,E.add(y),a=ns(this,E,a,y,x)),!a}return!0};function Mo(a,y,x,E,b){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var te=z.value;if(te!==E&&(!b||te.isTreeLink)&&te.toNode===y&&(te=te.fromNode,te!==y&&Mo(a,te,x,E,b)))return!0}return!1}function na(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var te=z.value;if(te!==b&&te.toNode===x&&(te=te.fromNode,te!==x&&na(a,y,te,E,b)))return!0}return!1}function ns(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var te=z.value;if(te!==b){var re=te.fromNode;if(te=te.toNode,re=re===x?te:re,re!==x&&ns(a,y,re,E,b))return!0}}return!1}pn.Object.defineProperties($r.prototype,{portGravity:{get:function(){return this.te},set:function(a){0<=a&&(this.te=a)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(a){this.Ha=a}},linkingCursor:{get:function(){return this.u},set:function(a){this.u=a}},temporaryLink:{get:function(){return this.Ci},set:function(a){this.Ci=a}},temporaryFromNode:{get:function(){return this.Bi},set:function(a){(this.Bi=a)&&(this.j=a.port)}},temporaryFromPort:{get:function(){return this.j},set:function(a){if(this.j!==null){var y=this.j.panel;if(y!==null){var x=y.O.indexOf(this.j);y.mb(x),y.Gb(x,a)}}this.j=a}},temporaryToNode:{get:function(){return this.Di},set:function(a){(this.Di=a)&&(this.o=a.port)}},temporaryToPort:{get:function(){return this.o},set:function(a){if(this.o!==null){var y=this.o.panel;if(y!==null){var x=y.O.indexOf(this.o);y.mb(x),y.Gb(x,a)}}this.o=a}},originalLink:{get:function(){return this.Hb},set:function(a){this.Hb=a}},originalFromNode:{get:function(){return this.hb},set:function(a){this.hb=a}},originalFromPort:{get:function(){return this.ob},set:function(a){this.ob=a}},originalToNode:{get:function(){return this.Oc},set:function(a){this.Oc=a}},originalToPort:{get:function(){return this.Pc},set:function(a){this.Pc=a}},isForwards:{get:function(){return this.ia},set:function(a){this.ia=a}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(a){this.Pf=a}},linkValidation:{get:function(){return this.gj},set:function(a){this.gj=a}},portTargeted:{get:function(){return this.Of},set:function(a){this.Of=a}}}),$r.className="LinkingBaseTool";function hs(){$r.call(this),this.name="Linking",this.V={},this.F=null,this.K=Yh,this.Xd=null}Zt(hs,$r),hs.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return a.isReadOnly||a.isModelReadOnly||!a.allowLink||!a.model.xs()||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},hs.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof li)))return null;var x=this.direction;if(x===Yh||x===Hp){var E=this.findValidLinkablePort(y,!1);if(E!==null||this.startObject===a&&(E=a.port,this.findValidLinkablePort(E,!1)))return this.isForwards=!0,E}return(x===Yh||x===Gp)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},hs.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof li&&(this.originalFromNode=y),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=a.lastInput.documentPoint),this.originalToPort=y,y=this.originalToPort.part,y instanceof li&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},hs.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},hs.prototype.doStop=function(){$r.prototype.doStop.call(this),this.startObject=null},hs.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,E=null,b=null,z=null;try{var te=this.targetPort=this.findTargetPort(this.isForwards);if(te!==null){var re=te.part;re instanceof li&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),E=re,b=te):(y=re,x=te,this.originalToNode!==null&&(E=this.originalToNode,b=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(E=this.originalToNode,b=this.originalToPort);y!==null||E!==null?(z=this.insertLink(y,x,E,b),z!==null?(te===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,E,b)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},hs.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Hn)return a.isTreeLink;var y=this.diagram;return y===null?!0:(a=y.partManager.getLinkCategoryForData(a),y=y.partManager.findLinkTemplateForCategory(a),y!==null?y.isTreeLink:!0)},hs.prototype.insertLink=function(a,y,x,E){return this.diagram.partManager.insertLink(a,y,x,E)},hs.prototype.doNoLink=function(){},pn.Object.defineProperties(hs.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(a){this.V=a}},archetypeLabelNodeData:{get:function(){return this.F},set:function(a){this.F=a}},direction:{get:function(){return this.K},set:function(a){this.K=a}},startObject:{get:function(){return this.Xd},set:function(a){this.Xd=a}}});var Yh=new Kt(hs,"Either",0),Hp=new Kt(hs,"ForwardsOnly",0),Gp=new Kt(hs,"BackwardsOnly",0);hs.className="LinkingTool",hs.Either=Yh,hs.ForwardsOnly=Hp,hs.BackwardsOnly=Gp;function ol(){$r.call(this),this.name="Relinking";var a=new Mr;a.figure="Diamond",a.desiredSize=qt,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Mr,a.figure="Diamond",a.desiredSize=qt,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new pt}Zt(ol,$r),ol.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Hn){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var E=a.selectionObject;E!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(E,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(E=a.selectionObject,E!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(E,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},ol.prototype.makeAdornment=function(a,y){var x=new eo;return x.type=On.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},ol.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowRelink||!a.model.xs()||!a.lastInput.left)return!1;var y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom");return y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo")),y!==null},ol.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var x=y.part;if(!(x instanceof eo&&x.adornedPart instanceof Hn))return;this.handle=y,this.isForwards=x===null||x.category==="RelinkTo",this.originalLink=x.adornedPart}this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),this.originalLink!==null&&0<this.originalLink.pointsCount&&(this.originalLink.fromNode===null&&(this.temporaryFromPort!==null&&(this.temporaryFromPort.desiredSize=Pt),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=Pt),this.temporaryToNode!==null&&(this.temporaryToNode.location=this.originalLink.i(this.originalLink.pointsCount-1)))),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0),a.add(this.temporaryFromNode),a.add(this.temporaryToNode),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.copyLinkProperties(this.originalLink,this.temporaryLink),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0},ol.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===Wf||x===Bh)&&(x=Fs),y.curve=x,y.curviness=a.curviness,y.isTreeLink=a.isTreeLink,y.points=a.points,y.routing=a.routing,y.smoothness=a.smoothness,y.fromSpot=a.fromSpot,y.fromEndSegmentLength=a.fromEndSegmentLength,y.fromShortLength=a.fromShortLength,y.toSpot=a.toSpot,y.toEndSegmentLength=a.toEndSegmentLength,y.toShortLength=a.toShortLength}},ol.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},ol.prototype.doStop=function(){$r.prototype.doStop.call(this),this.handle=null},ol.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,x=this.originalFromPort,E=this.originalToNode,b=this.originalToPort,z=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var te=this.targetPort.part;te instanceof li&&(this.isForwards?(E=te,b=this.targetPort):(y=te,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?b=E=null:x=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?E:y,this.isForwards?b:x,this.isForwards),this.targetPort===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint,z.bb()),this.transactionResult=this.name,a.R("LinkRelinked",z,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},ol.prototype.reconnectLink=function(a,y,x,E){return x=x!==null&&x.portId!==null?x.portId:"",E?(a.toNode=y,a.toPortId=x):(a.fromNode=y,a.fromPortId=x),!0},ol.prototype.doNoRelink=function(){};function nf(a,y,x,E,b){y!==null?(a.copyPortProperties(y,x,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),E!==null?(a.copyPortProperties(E,b,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}pn.Object.defineProperties(ol.prototype,{fromHandleArchetype:{get:function(){return this.V},set:function(a){this.V=a}},toHandleArchetype:{get:function(){return this.Xd},set:function(a){this.Xd=a}},handle:{get:function(){return this.F},set:function(a){if(a!==null&&!(a.part instanceof eo))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),ol.className="RelinkingTool",Pn("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Pn("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function ya(){_r.call(this),this.name="LinkReshaping";var a=new Mr;a.figure="Rectangle",a.desiredSize=Xt,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Mr,a.figure="Diamond",a.desiredSize=qt,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new je,this.Yq=new An}Zt(ya,_r),ya.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:cg},ya.prototype.om=function(a,y){a.reshapingBehavior=y},ya.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Hn){var y=null;if(a.isSelected&&!this.diagram.isReadOnly){var x=a.path;x!==null&&a.canReshape()&&a.actualBounds.w()&&a.isVisible()&&x.actualBounds.w()&&x.Ed()&&(y=a.Pj(this.name),y===null||y.Aw!==a.pointsCount||y.Uw!==a.resegmentable)&&(y=this.makeAdornment(x),y!==null&&(y.Aw=a.pointsCount,y.Uw=a.resegmentable,a.bh(this.name,y)))}y===null&&a.Jf(this.name)}},ya.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,E=y.isOrthogonal,b=null;if(y.points!==null&&1<x){b=new eo,b.type=On.Link,x=y.firstPickIndex;var z=y.lastPickIndex,te=E?1:0;if(y.resegmentable&&y.computeCurve()!==hl)for(var re=x+te;re<z-te;re++){var oe=this.makeResegmentHandle(a,re);oe!==null&&(oe.segmentIndex=re,oe.segmentFraction=.5,oe.fromMaxLinks=999,b.add(oe))}for(te=x+1;te<z;te++)if(re=this.makeHandle(a,te),re!==null){if(re.segmentIndex=te,te!==x)if(te===x+1&&E){oe=y.i(x);var le=y.i(x+1);St.B(oe.x,le.x)&&St.B(oe.y,le.y)&&(le=y.i(x-1)),St.B(oe.x,le.x)?(this.om(re,ph),re.cursor="n-resize"):St.B(oe.y,le.y)&&(this.om(re,gh),re.cursor="w-resize")}else te===z-1&&E?(oe=y.i(z-1),le=y.i(z),St.B(oe.x,le.x)&&St.B(oe.y,le.y)&&(oe=y.i(z+1)),St.B(oe.x,le.x)?(this.om(re,ph),re.cursor="n-resize"):St.B(oe.y,le.y)&&(this.om(re,gh),re.cursor="w-resize")):te!==z&&(this.om(re,rf),re.cursor="move");b.add(re)}b.adornedObject=a}return b},ya.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},ya.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},ya.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowReshape&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},ya.prototype.doActivate=function(){var a=this.diagram;if(this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null){var y=this.handle.part.adornedPart;if(y instanceof Hn){if(this.Ts=y,a.isMouseCaptured=!0,this.Ea(this.name),y.resegmentable&&this.handle.fromMaxLinks===999){var x=y.points.copy(),E=this.getResegmentingPoint();if(x.Gb(this.handle.segmentIndex+1,E),y.isOrthogonal&&x.Gb(this.handle.segmentIndex+1,E),y.points=x,y.Wb(),y.updateAdornments(),this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name),this.handle===null){this.doDeactivate();return}}this.Fw=y.i(this.handle.segmentIndex),this.Yq=y.points.copy(),this.isActive=!0}}},ya.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},ya.prototype.stopTransaction=function(){var a=this.diagram,y=_r.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ya.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},ya.prototype.getResegmentingPoint=function(){return this.handle.ga(hi)},ya.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},ya.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.computeReshape(a.lastInput.documentPoint);if(this.reshape(y),y=this.adornedLink,y!==null&&y.resegmentable){var x=this.handle.segmentIndex,E=y.i(x-1),b=y.i(x),z=y.i(x+1);if(y.isOrthogonal){if(x>y.firstPickIndex+1&&x<y.lastPickIndex-1){var te=y.i(x-2);if(Math.abs(E.x-b.x)<this.resegmentingDistance&&Math.abs(E.y-b.y)<this.resegmentingDistance&&(fh(this,te,E,b,z,!0)||fh(this,te,E,b,z,!1))){var re=y.points.copy();fh(this,te,E,b,z,!0)?(re.cd(x-2,new je(te.x,(z.y+te.y)/2)),re.cd(x+1,new je(z.x,(z.y+te.y)/2))):(re.cd(x-2,new je((z.x+te.x)/2,te.y)),re.cd(x+1,new je((z.x+te.x)/2,z.y))),re.mb(x),re.mb(x-1),y.points=re,y.Wb()}else te=y.i(x+2),Math.abs(b.x-z.x)<this.resegmentingDistance&&Math.abs(b.y-z.y)<this.resegmentingDistance&&(fh(this,E,b,z,te,!0)||fh(this,E,b,z,te,!1))&&(re=y.points.copy(),fh(this,E,b,z,te,!0)?(re.cd(x-1,new je(E.x,(E.y+te.y)/2)),re.cd(x+2,new je(te.x,(E.y+te.y)/2))):(re.cd(x-1,new je((E.x+te.x)/2,E.y)),re.cd(x+2,new je((E.x+te.x)/2,te.y))),re.mb(x+1),re.mb(x),y.points=re,y.Wb())}}else te=je.alloc(),St.qh(E.x,E.y,z.x,z.y,b.x,b.y,te)&&te.Bf(b)<this.resegmentingDistance*this.resegmentingDistance&&(E=y.points.copy(),E.mb(x),y.points=E,y.Wb()),je.free(te)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function fh(a,y,x,E,b,z){return z?Math.abs(y.y-x.y)<a.resegmentingDistance&&Math.abs(x.y-E.y)<a.resegmentingDistance&&Math.abs(E.y-b.y)<a.resegmentingDistance:Math.abs(y.x-x.x)<a.resegmentingDistance&&Math.abs(x.x-E.x)<a.resegmentingDistance&&Math.abs(E.x-b.x)<a.resegmentingDistance}ya.prototype.reshape=function(a){var y=this.adornedLink;y.uh();var x=this.handle.segmentIndex,E=this.Ru(this.handle);if(y.isOrthogonal)if(x===y.firstPickIndex+1)x=y.firstPickIndex+1,E===ph?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):E===gh&&(y.L(x,a.x,y.i(x-1).y),y.L(x+1,a.x,y.i(x+2).y));else if(x===y.lastPickIndex-1)x=y.lastPickIndex-1,E===ph?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):E===gh&&(y.L(x-1,a.x,y.i(x-2).y),y.L(x,a.x,y.i(x+1).y));else{E=x;var b=y.i(E),z=y.i(E-1),te=y.i(E+1);St.B(z.x,b.x)&&St.B(b.y,te.y)?(St.B(z.x,y.i(E-2).x)&&!St.B(z.y,y.i(E-2).y)?(y.m(E,a.x,z.y),x++,E++):y.L(E-1,a.x,z.y),St.B(te.y,y.i(E+2).y)&&!St.B(te.x,y.i(E+2).x)?y.m(E+1,te.x,a.y):y.L(E+1,te.x,a.y)):St.B(z.y,b.y)&&St.B(b.x,te.x)?(St.B(z.y,y.i(E-2).y)&&!St.B(z.x,y.i(E-2).x)?(y.m(E,z.x,a.y),x++,E++):y.L(E-1,z.x,a.y),St.B(te.x,y.i(E+2).x)&&!St.B(te.y,y.i(E+2).y)?y.m(E+1,a.x,te.y):y.L(E+1,a.x,te.y)):St.B(z.x,b.x)&&St.B(b.x,te.x)?(St.B(z.x,y.i(E-2).x)&&!St.B(z.y,y.i(E-2).y)?(y.m(E,a.x,z.y),x++,E++):y.L(E-1,a.x,z.y),St.B(te.x,y.i(E+2).x)&&!St.B(te.y,y.i(E+2).y)?y.m(E+1,a.x,te.y):y.L(E+1,a.x,te.y)):St.B(z.y,b.y)&&St.B(b.y,te.y)&&(St.B(z.y,y.i(E-2).y)&&!St.B(z.x,y.i(E-2).x)?(y.m(E,z.x,a.y),x++,E++):y.L(E-1,z.x,a.y),St.B(te.y,y.i(E+2).y)&&!St.B(te.x,y.i(E+2).x)?y.m(E+1,te.x,a.y):y.L(E+1,te.x,a.y)),y.L(x,a.x,a.y)}else y.L(x,a.x,a.y),E=y.fromNode,b=y.fromPort,E!==null&&(z=E.findVisibleNode(),z!==null&&z!==E&&(E=z,b=E.port)),x===1&&y.computeSpot(!0,b).Mc()&&(z=b.ga(hi,je.alloc()),E=y.getLinkPointFromPoint(E,b,z,a,!0,je.alloc()),y.L(0,E.x,E.y),je.free(z),je.free(E)),E=y.toNode,b=y.toPort,E!==null&&(z=E.findVisibleNode(),z!==null&&z!==E&&(E=z,b=E.port)),x===y.pointsCount-2&&y.computeSpot(!1,b).Mc()&&(x=b.ga(hi,je.alloc()),a=y.getLinkPointFromPoint(E,b,x,a,!1,je.alloc()),y.L(y.pointsCount-1,a.x,a.y),je.free(x),je.free(a));y.zf()},ya.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case rf:return a;case ph:return new je(y.i(x).x,a.y);case gh:return new je(a.x,y.i(x).y);default:case cg:return y.i(x)}},pn.Object.defineProperties(ya.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},midHandleArchetype:{get:function(){return this.u},set:function(a){this.u=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof eo))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedLink:{get:function(){return this.Ts}},resegmentingDistance:{get:function(){return this.F},set:function(a){this.F=a}},originalPoint:{get:function(){return this.Fw}},originalPoints:{get:function(){return this.Yq}}}),ya.prototype.setReshapingBehavior=ya.prototype.om,ya.prototype.getReshapingBehavior=ya.prototype.Ru;var cg=new Kt(ya,"None",0),gh=new Kt(ya,"Horizontal",1),ph=new Kt(ya,"Vertical",2),rf=new Kt(ya,"All",3);ya.className="LinkReshapingTool",ya.None=cg,ya.Horizontal=gh,ya.Vertical=ph,ya.All=rf,Pn("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function ss(){_r.call(this),this.name="Resizing",this.o=new Xe(1,1).freeze(),this.j=new Xe(9999,9999).freeze(),this.yg=new Xe(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Mr;a.alignmentFocus=hi,a.figure="Rectangle",a.desiredSize=Xt,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new je,this.Dw=new Xe,this.Tn=new je,this.rt=new Xe(0,0),this.qt=new Xe(1/0,1/0),this.pt=new Xe(1,1)}Zt(ss,_r),ss.prototype.updateAdornments=function(a){if(!(a===null||a instanceof Hn)){if(a.isSelected&&!this.diagram.isReadOnly){var y=a.resizeObject,x=a.Pj(this.name);if(y!==null&&a.canResize()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed()&&((x===null||x.adornedObject!==y)&&(x=this.makeAdornment(y)),x!==null)){y=y.li(),ud(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},ss.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new eo,y.type=On.Spot,y.locationSpot=hi;var x=new As;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,Ii)),y.add(this.makeHandle(a,Wi)),y.add(this.makeHandle(a,ni)),y.add(this.makeHandle(a,pr)),y.add(this.makeHandle(a,Kr)),y.add(this.makeHandle(a,uo)),y.add(this.makeHandle(a,Do)),y.add(this.makeHandle(a,so))}else if(Rl(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},ss.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},ss.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))e:{var x=a.alignment;if(x.Mc()&&(x=hi),0>=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break e;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof On)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},ss.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowResize&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},ss.prototype.doActivate=function(){var a=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(a.isMouseCaptured=!0,a.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},ss.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},ss.prototype.stopTransaction=function(){var a=this.diagram,y=_r.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ss.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},ss.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,je.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),je.free(b)}},ss.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,je.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),je.free(b),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},ss.prototype.resize=function(a){var y=this.diagram,x=this.adornedObject;if(x!==null){if(x.desiredSize=a.size,a=x.part,a.Va(),x=x.ga(this.handle.alignment.gv()),a instanceof Pr){var E=new An;if(E.add(a),!this.dragsMembers&&a.placeholder===null){var b=new ae;b.dragsMembers=!1}y.moveParts(E,this.oppositePoint.copy().re(x),!0,b)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},ss.prototype.computeResize=function(a,y,x,E,b,z){y.Mc()&&(y=hi);var te=this.adornedObject.naturalBounds,re=te.x,oe=te.y,le=te.x+te.width,he=te.y+te.height,ge=1;if(!z){ge=te.width;var Se=te.height;0>=ge&&(ge=1),0>=Se&&(Se=1),ge=Se/ge}return Se=je.alloc(),St.No(a.x,a.y,re,oe,b.width,b.height,Se),a=te.copy(),0>=y.x?0>=y.y?(a.x=Math.max(Se.x,le-E.width),a.x=Math.min(a.x,le-x.width),a.width=Math.max(le-a.x,x.width),a.y=Math.max(Se.y,he-E.height),a.y=Math.min(a.y,he-x.height),a.height=Math.max(he-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ge*a.width,E.height),x.height),a.width=a.height/ge):(a.width=Math.max(Math.min(a.height/ge,E.width),x.width),a.height=ge*a.width),a.x=le-a.width,a.y=he-a.height)):1<=y.y?(a.x=Math.max(Se.x,le-E.width),a.x=Math.min(a.x,le-x.width),a.width=Math.max(le-a.x,x.width),a.height=Math.max(Math.min(Se.y-oe,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ge*a.width,E.height),x.height),a.width=a.height/ge):(a.width=Math.max(Math.min(a.height/ge,E.width),x.width),a.height=ge*a.width),a.x=le-a.width)):(a.x=Math.max(Se.x,le-E.width),a.x=Math.min(a.x,le-x.width),a.width=le-a.x,z||(a.height=Math.max(Math.min(ge*a.width,E.height),x.height),a.width=a.height/ge,a.y=oe+.5*(he-oe-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(Se.x-re,E.width),x.width),a.y=Math.max(Se.y,he-E.height),a.y=Math.min(a.y,he-x.height),a.height=Math.max(he-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ge*a.width,E.height),x.height),a.width=a.height/ge):(a.width=Math.max(Math.min(a.height/ge,E.width),x.width),a.height=ge*a.width),a.y=he-a.height)):1<=y.y?(a.width=Math.max(Math.min(Se.x-re,E.width),x.width),a.height=Math.max(Math.min(Se.y-oe,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ge*a.width,E.height),x.height),a.width=a.height/ge):(a.width=Math.max(Math.min(a.height/ge,E.width),x.width),a.height=ge*a.width))):(a.width=Math.max(Math.min(Se.x-re,E.width),x.width),z||(a.height=Math.max(Math.min(ge*a.width,E.height),x.height),a.width=a.height/ge,a.y=oe+.5*(he-oe-a.height))):0>=y.y?(a.y=Math.max(Se.y,he-E.height),a.y=Math.min(a.y,he-x.height),a.height=he-a.y,z||(a.width=Math.max(Math.min(a.height/ge,E.width),x.width),a.height=ge*a.width,a.x=re+.5*(le-re-a.width))):1<=y.y&&(a.height=Math.max(Math.min(Se.y-oe,E.height),x.height),z||(a.width=Math.max(Math.min(a.height/ge,E.width),x.width),a.height=ge*a.width,a.x=re+.5*(le-re-a.width))),je.free(Se),a},ss.prototype.computeReshape=function(){var a=xn;return this.adornedObject instanceof Mr&&(a=Fv(this.adornedObject)),!(a===Bi||this.diagram.lastInput.shift)},ss.prototype.computeMinSize=function(){var a=this.adornedObject.minSize.copy(),y=this.minSize;return!isNaN(y.width)&&y.width>a.width&&(a.width=y.width),!isNaN(y.height)&&y.height>a.height&&(a.height=y.height),a},ss.prototype.computeMaxSize=function(){var a=this.adornedObject.maxSize.copy(),y=this.maxSize;return!isNaN(y.width)&&y.width<a.width&&(a.width=y.width),!isNaN(y.height)&&y.height<a.height&&(a.height=y.height),a},ss.prototype.computeCellSize=function(){var a=new Xe(NaN,NaN),y=this.adornedObject.part;return y!==null&&(y=y.resizeCellSize,!isNaN(y.width)&&0<y.width&&(a.width=y.width),!isNaN(y.height)&&0<y.height&&(a.height=y.height)),y=this.cellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height),y=this.diagram,(isNaN(a.width)||isNaN(a.height))&&y&&(y=y.grid,y!==null&&y.visible&&this.isGridSnapEnabled&&(y=y.gridCellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height))),(isNaN(a.width)||a.width===0||a.width===1/0)&&(a.width=1),(isNaN(a.height)||a.height===0||a.height===1/0)&&(a.height=1),a},pn.Object.defineProperties(ss.prototype,{handleArchetype:{get:function(){return this.F},set:function(a){this.F=a}},handle:{get:function(){return this.u},set:function(a){if(a!==null&&!(a.part instanceof eo))throw Error("new handle is not in an Adornment: "+a);this.u=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof eo)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},minSize:{get:function(){return this.o},set:function(a){if(!this.o.D(a)){var y=a.width;isNaN(y)&&(y=0),a=a.height,isNaN(a)&&(a=0),this.o.h(y,a)}}},maxSize:{get:function(){return this.j},set:function(a){if(!this.j.D(a)){var y=a.width;isNaN(y)&&(y=1/0),a=a.height,isNaN(a)&&(a=1/0),this.j.h(y,a)}}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||this.yg.assign(a)}},isGridSnapEnabled:{get:function(){return this.V},set:function(a){this.V=a}},dragsMembers:{get:function(){return this.ia},set:function(a){this.ia=a}},oppositePoint:{get:function(){return this.Xq},set:function(a){this.Xq.D(a)||this.Xq.assign(a)}},originalDesiredSize:{get:function(){return this.Dw}},originalLocation:{get:function(){return this.Tn}}}),ss.className="ResizingTool",Pn("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function xs(){_r.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new je,this.ue=null;var a=new Mr;a.figure="Ellipse",a.desiredSize=qt,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new je(NaN,NaN),this.u=0,this.F=50}Zt(xs,_r),xs.prototype.updateAdornments=function(a){if(a!==null){if(a.ph()){var y=a.rotateObject;if(y===a||y===a.path||y.isPanelMain)return}if(a.isSelected&&!this.diagram.isReadOnly&&(y=a.rotateObject,y!==null&&a.canRotate()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed())){var x=a.Pj(this.name);if((x===null||x.adornedObject!==y)&&(x=this.makeAdornment(y)),x!==null){x.angle=y.li(),x.placeholder===null&&(x.location=this.computeAdornmentLocation(y)),a.bh(this.name,x);return}}a.Jf(this.name)}},xs.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new eo,y.type=On.Position,y.locationSpot=hi;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(Rl(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},xs.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowRotate&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},xs.prototype.doActivate=function(){var a=this.diagram;if(this.adornedObject===null){if(this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle===null)return;this.adornedObject=this.handle.part.adornedObject}this.adornedObject!==null&&(a.isMouseCaptured=!0,a.delaysLayout=!0,this.Ea(this.name),this.Cw=this.adornedObject.angle,this.kr=this.computeRotationPoint(this.adornedObject),this.Tn=this.adornedObject.part.location.copy(),this.isActive=!0)},xs.prototype.computeRotationPoint=function(a){var y=a.part,x=y.locationObject;return y.rotationSpot.sb()?a.ga(y.rotationSpot):a===y||a===x?x.ga(y.locationSpot):a.ga(hi)},xs.prototype.computeAdornmentLocation=function(a){var y=this.rotationPoint;y.w()||(y=this.computeRotationPoint(a)),y=a.qs(y);var x=this.handleAngle;0>x?x+=360:360<=x&&(x-=360),x=Math.round(45*Math.round(x/45));var E=this.handleDistance;return x===0?y.x=a.naturalBounds.width+E:x===45?(y.x=a.naturalBounds.width+E,y.y=a.naturalBounds.height+E):x===90?y.y=a.naturalBounds.height+E:x===135?(y.x=-E,y.y=a.naturalBounds.height+E):x===180?y.x=-E:x===225?(y.x=-E,y.y=-E):x===270?y.y=-E:x===315&&(y.x=a.naturalBounds.width+E,y.y=-E),a.ga(y)},xs.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new je(NaN,NaN),this.isActive=a.isMouseCaptured=!1},xs.prototype.stopTransaction=function(){var a=this.diagram,y=_r.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},xs.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},xs.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},xs.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){a.delaysLayout=!1;var y=this.computeRotate(a.lastInput.documentPoint);this.rotate(y),a.Ya(),this.transactionResult=this.name,a.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},xs.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,E=y.rotateObject;(x===E||x.rg(E))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},xs.prototype.computeRotate=function(a){a=this.rotationPoint.ab(a)-this.handleAngle;var y=this.adornedObject.panel;y!==null&&(a-=y.li()),360<=a?a-=360:0>a&&(a+=360),y=Math.min(Math.abs(this.snapAngleMultiple),180);var x=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0<y&&0<x&&(a%y<x?a=Math.floor(a/y)*y:a%y>y-x&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},pn.Object.defineProperties(xs.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof eo))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof eo)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),xs.className="RotatingTool",Pn("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Kh(){_r.call(this),this.name="ClickSelecting"}Zt(Kh,_r),Kh.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Kh.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Kh.className="ClickSelectingTool";function Bl(){_r.call(this),this.name="Action",this.pk=null}Zt(Bl,_r),Bl.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},Bl.prototype.doMouseDown=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionDown!==null&&y.actionDown(a,y))}else this.canStart()&&this.doActivate()},Bl.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionMove!==null&&y.actionMove(a,y))}},Bl.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;if(y===null)return;a.targetObject=y,y.actionUp!==null&&y.actionUp(a,y),this.standardMouseClick(function(x){for(;x.panel!==null&&(!x.isActionable||x!==y);)x=x.panel;return x},function(x){return x===y})}this.stopTool()},Bl.prototype.doCancel=function(){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionCancel!==null&&y.actionCancel(a,y),this.stopTool())},Bl.prototype.doStop=function(){this.pk=null},Bl.className="ActionTool";function mh(){_r.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new je(0,0)}Zt(mh,_r),mh.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(a.lastInput.clickCount===1&&(this.mw=a.lastInput.viewPoint.copy()),a.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(a.lastInput.clickCount!==1)return!1;return!(a.currentTool!==this&&a.Ol(a.lastInput.documentPoint,!0)!==null)},mh.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},mh.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var E=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof Xi)x.Zc()&&(Rl(x),E=x.copy(),E!==null&&y.add(E));else if(x!==null){var b=y.model.copyNodeData(x);tn(b)&&(y.model.xf(b),E=y.Lc(b))}if(E!==null){var z=je.allocAt(a.x,a.y);this.isGridSnapEnabled&&mf(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),je.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},pn.Object.defineProperties(mh.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){this.Ri=a}},isDoubleClick:{get:function(){return this.o},set:function(a){this.o=a}},isGridSnapEnabled:{get:function(){return this.j},set:function(a){this.j=a}}}),mh.className="ClickCreatingTool";function vl(){_r.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Xi;a.layerName="Tool",a.selectable=!1;var y=new Mr;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Zt(vl,_r),vl.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(!a.allowSelect)return!1;var y=a.lastInput;return!(!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.timestamp-a.firstInput.timestamp<this.delay||a.Ol(y.documentPoint,!0)!==null))},vl.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},vl.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},vl.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive&&this.box!==null){var y=this.computeBoxBounds(),x=this.box.fb("SHAPE");x===null&&(x=this.box.Pb());var E=Xe.alloc().h(y.width,y.height);x.desiredSize=E,this.box.mm(y.x,y.y,!1),Xe.free(E),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},vl.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;a.remove(this.box);try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),this.selectInRect(this.computeBoxBounds()),a.R("ChangedSelection",a.selection)}finally{a.currentCursor=""}}this.stopTool()},vl.prototype.computeBoxBounds=function(){var a=this.diagram;return new pt(a.firstInput.documentPoint,a.lastInput.documentPoint)},vl.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),Hr?x.meta:x.control)if(x.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected&&(y.isSelected=!1);else for(a=a.iterator;a.next();)y=a.value,y.isSelected=!y.isSelected;else if(x.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0);else{for(x=new An,y=y.selection.iterator;y.next();){var E=y.value;a.contains(E)||x.add(E)}for(y=x.iterator;y.next();)y.value.isSelected=!1;for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0)}},pn.Object.defineProperties(vl.prototype,{delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}},isPartialInclusion:{get:function(){return this.o},set:function(a){this.o=a}},box:{get:function(){return this.j},set:function(a){this.j=a}}}),vl.className="DragSelectingTool";function is(){_r.call(this),this.name="Panning",this.Xt=new je,this.xy=new je,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(un.document,"scroll",a.Kw,!1),a.stopTool()}}Zt(is,_r),is.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!(!a.allowHorizontalScroll&&!a.allowVerticalScroll||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize())},is.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(un.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},is.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},is.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},is.prototype.doMouseMove=function(){this.move()},is.prototype.doMouseUp=function(){this.move(),this.stopTool()},is.prototype.move=function(){var a=this.diagram;if(this.isActive&&a)if(this.xg)a.lastInput.bubbles=!0;else{var y=a.position,x=a.firstInput.documentPoint,E=a.lastInput.documentPoint,b=y.x+x.x-E.x;x=y.y+x.y-E.y,a.allowHorizontalScroll||(b=y.x),a.allowVerticalScroll||(x=y.y),a.position=this.xy.h(b,x)}},pn.Object.defineProperties(is.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),is.className="PanningTool",Pn("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Pn("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Pn("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Pn("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Pn("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function Su(){this.F=this.u=this.j=this.o=null}pn.Object.defineProperties(Su.prototype,{mainElement:{get:function(){return this.u},set:function(a){this.u=a}},show:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},hide:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},valueFunction:{get:function(){return this.F},set:function(a){this.F=a}}}),Su.className="HTMLInfo";function Nl(a,y,x){this.text=a,this.hx=y,this.visible=x}Nl.className="ContextMenuButtonInfo";function Ps(){_r.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new je,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Zt(Ps,_r);function _l(a){var y=new Su;y.show=function(b,z,te){te.showDefaultContextMenu()},y.hide=function(b,z){z.hideDefaultContextMenu()},Uh=y,a.tu=function(){a.stopTool()},y=ii("div");var x=ii("div");y.style.cssText="top: 0px;z-index:10002;position: fixed;display: none;text-align: center;left: 25%;width: 50%;background-color: #F5F5F5;padding: 16px;border: 16px solid #444;border-radius: 10px;margin-top: 10px",x.style.cssText="z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;";var E=ii("style");un.document.getElementsByTagName("head")[0].appendChild(E),E.sheet.insertRule(".goCXul { list-style: none; }",0),E.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),E.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),E=a.diagram,E!==null&&(E.addEventListener(y,"contextmenu",Sa,!1),E.addEventListener(y,"selectstart",Sa,!1),E.addEventListener(x,"contextmenu",Sa,!1)),y.className="goCXforeground",x.className="goCXbackground",un.document.body&&(un.document.body.appendChild(y),un.document.body.appendChild(x)),cc=y,kd=x,dc=!0}function Sa(a){return a.preventDefault(),!1}Ps.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return this.isBeyondDragSize()||!a.lastInput.right||1<a.lastInput.clickCount?!1:!!(a.lastInput.isTouchEvent&&this.defaultTouchContextMenu!==null||this.findObjectWithContextMenu()!==null)},Ps.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},Ps.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},Ps.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,E=null;if(a instanceof _t||(a instanceof Mt?E=a:E=y.ic(x.documentPoint,null,function(b){return!b.layer.isTemporary})),E!==null){for(a=E;a!==null;){if(a.contextMenu!==null)return a;a=a.panel}if(y.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return E.part}else if(y.contextMenu!==null)return y;return null},Ps.prototype.doActivate=function(){},Ps.prototype.doMouseDown=function(){if(_r.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof eo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&ru(this)},Ps.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof eo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}ru(this)};function ru(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var E=null;x instanceof Su||(E=y.ic(y.lastInput.documentPoint,null,null),E!==null&&E.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(E)}}else a.canStart()&&(Qu(a,!0),a.isActive||a.stopTool())}Ps.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Qu(a,y,x){if(x===void 0&&(x=null),!a.Et&&(a.Et=!0,y&&a.standardMouseSelect(),y=a.standardMouseClick(),a.Et=!1,!y)){if(a.isActive=!0,y=Uh,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var E=x.contextMenu;E!==null?(a.currentObject=x instanceof Mt?x:null,a.showContextMenu(E,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof eo&&!a.currentContextMenu.visible&&a.stopTool()}}Ps.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},Ps.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof eo){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=x.scale);var E=a.diagram;E!==null&&E!==x&&E.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof Su&&a.show(y,x,this);this.currentContextMenu=a},Ps.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),E=a.measuredBounds,b=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=E.width),x.x+E.width>b.right&&(x.x-=E.width+5/y.scale),x.x<b.x&&(x.x=b.x),x.y+E.height>b.bottom&&(x.y-=E.height+5/y.scale),x.y<b.y&&(x.y=b.y),a.position=x}},Ps.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof eo?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Su&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function vh(a){var y=new An;return y.add(new Nl("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new Nl("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new Nl("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new Nl("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Nl("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new Nl("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new Nl("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new Nl("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new Nl("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new Nl("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new Nl("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new Nl("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new Nl("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}Ps.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=vh(this)),cc.innerHTML="",kd.addEventListener("pointerdown",this.tu,!1);var y=this,x=ii("ul");x.className="goCXul",cc.appendChild(x),x.innerHTML="";for(var E=this.jt.iterator;E.next();){var b=E.value,z=b.visible;if(typeof b.hx=="function"&&(typeof z!="function"||z(a))){z=ii("li"),z.className="goCXli";var te=ii("a");te.className="goCXa",te.href="#",te.ky=b.hx,te.addEventListener("pointerdown",function(re){return this.ky(a),y.stopTool(),re.preventDefault(),!1},!1),te.textContent=b.text,z.appendChild(te),x.appendChild(z)}}cc.style.display="block",kd.style.display="block"},Ps.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===Uh){cc.style.display="none",kd.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(kd,"pointerdown",this.tu,!1),this.currentContextMenu=null}},pn.Object.defineProperties(Ps.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof eo?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return dc===!1&&Uh===null&&la&&_l(this),Uh},set:function(a){a===null&&(dc=!0),Uh=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var Uh=null,dc=!1,kd=null,cc=null;Ps.className="ContextMenuTool",Pn("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function Xo(){_r.call(this),this.name="TextEditing",this.Zh=new Wo,this.ia=null,this.V=Bd,this.vj=null,this.qa=Nd,this.u=1,this.F=!0,this.o=null,this.j=new Su,this.kt=null,fc(this,this.j)}Zt(Xo,_r);function fc(a,y){if(la){var x=ii("textarea");a.kt=x,x.addEventListener("input",function(){if(a.textBlock!==null){var E=a.Lx(this.value);this.style.width=20+E.measuredBounds.width*this.wA+"px",this.rows=E.lineCount}},!1),x.addEventListener("keydown",function(E){if(!E.isComposing&&a.textBlock!==null){var b=E.key;b==="Enter"?(a.textBlock.isMultiline===!1&&E.preventDefault(),a.acceptText(gc)):b==="Tab"?(a.acceptText(af),E.preventDefault()):b==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Nd){var E=a.kt;a.qa===pc&&(a.qa=mc),typeof E.select=="function"&&a.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Nd){var E=a.kt;typeof E.focus=="function"&&E.focus(),typeof E.select=="function"&&a.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return x.value},y.mainElement=x,y.show=function(E,b,z){if(E instanceof Wo&&z instanceof Xo)if(z.state===vc)x.style.border="3px solid red",x.focus();else{var te=E.ga(hi),re=b.position,oe=b.scale,le=E.Df()*oe;le<z.minimumEditorScale&&(le=z.minimumEditorScale);var he=E.naturalBounds.width*le+6,ge=E.naturalBounds.height*le+2,Se=(te.x-re.x)*oe;te=(te.y-re.y)*oe,re=E.verticalAlignment,oe=(E.lineHeight+E.spacingAbove+E.spacingBelow)*E.lineCount*le,ge=re.y*ge-re.y*oe+re.offsetY-(.5*ge-.5*oe)-oe/2,x.value=E.text,b.div.style.font=E.font,x.style.position="absolute",x.style.zIndex="100",x.style.font="inherit",x.style.fontSize=100*le+"%",x.style.lineHeight="normal",x.style.width=he+"px",x.style.left=(Se-he/2|0)-1+"px",x.style.top=(te+ge|0)-1+"px",x.style.textAlign=E.textAlign,x.style.margin="0",x.style.padding="1px",x.style.border="0",x.style.outline="none",x.style.whiteSpace="pre-wrap",x.style.overflow="hidden",x.rows=E.lineCount,x.wA=le,x.className="goTXarea",b.div.appendChild(x),x.focus(),z.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(E){E.div.removeChild(x)}}}Xo.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||yh&&yh!==this&&(yh.acceptText(xu),yh&&yh!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof Wo&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===Bd&&!y.isSelected||this.starting===sf&&2>a.lastInput.clickCount)):!1},Xo.prototype.doStart=function(){yh=this,this.textBlock!==null&&this.doActivate()},Xo.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof Wo&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=pc;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var E=new pt(this.textBlock.ga(Ii),this.textBlock.ga(ni));a.tv(E),x.show(y,a,this),this.currentTextEditor=x}}}},Xo.prototype.doCancel=function(){this.stopTool()},Xo.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Xo.prototype.doMouseDown=function(){this.isActive&&this.acceptText(xu)},Xo.prototype.acceptText=function(a){switch(a){case xu:this.qa===Td?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===pc||this.qa===vc||this.qa===mc)&&(this.qa=gg,fg(this));break;case of:case gc:case af:(gc!==a||this.textBlock.isMultiline!==!0)&&(this.qa===pc||this.qa===vc||this.qa===mc)&&(this.qa=gg,fg(this))}};function fg(a){var y=a.textBlock,x=a.diagram,E=a.currentTextEditor;if(y!==null&&E!==null){var b=y.text,z="";E.valueFunction!==null&&(z=E.valueFunction()),a.isValidText(y,b,z)?(a.Ea(a.name),a.qa=Td,a.transactionResult=a.name,y.text=z,a.doSuccess(b,z),x!==null&&x.R("TextEdited",y,b),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=vc,a.doError(b,z))}}Xo.prototype.doError=function(a,y){var x=this.textBlock;x.errorFunction!==null&&x.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(x,this.diagram,this)},Xo.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},Xo.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Nd,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},Xo.prototype.doStop=function(){yh=null},Xo.prototype.isValidText=function(a,y,x){var E=this.textValidation;return E!==null&&!E(a,y,x)?!1:(E=a.textValidation,!!(E===null||E(a,y,x)))},Xo.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},pn.Object.defineProperties(Xo.prototype,{textBlock:{get:function(){return this.ia},set:function(a){this.ia=a}},currentTextEditor:{get:function(){return this.o},set:function(a){this.o=a}},defaultTextEditor:{get:function(){return this.j},set:function(a){this.j=a}},starting:{get:function(){return this.V},set:function(a){this.V=a}},textValidation:{get:function(){return this.vj},set:function(a){this.vj=a}},minimumEditorScale:{get:function(){return this.u},set:function(a){this.u=a}},selectsTextOnActivate:{get:function(){return this.F},set:function(a){this.F=a}},state:{get:function(){return this.qa},set:function(a){this.qa!==a&&(this.qa=a)}}}),Xo.prototype.measureTemporaryTextBlock=Xo.prototype.Lx;var of=new Kt(Xo,"LostFocus",0),xu=new Kt(Xo,"MouseDown",1),af=new Kt(Xo,"Tab",2),gc=new Kt(Xo,"Enter",3),tv=new Kt(Xo,"SingleClick",0),Bd=new Kt(Xo,"SingleClickSelected",1),sf=new Kt(Xo,"DoubleClick",2),Nd=new Kt(Xo,"StateNone",0),pc=new Kt(Xo,"StateActive",1),mc=new Kt(Xo,"StateEditing",2),gg=new Kt(Xo,"StateValidating",3),vc=new Kt(Xo,"StateInvalid",4),Td=new Kt(Xo,"StateValidated",5),yh=null;Xo.className="TextEditingTool",Xo.LostFocus=of,Xo.MouseDown=xu,Xo.Tab=af,Xo.Enter=gc,Xo.SingleClick=tv,Xo.SingleClickSelected=Bd,Xo.DoubleClick=sf,Xo.StateNone=Nd,Xo.StateActive=pc,Xo.StateEditing=mc,Xo.StateValidating=gg,Xo.StateInvalid=vc,Xo.StateValidated=Td,Pn("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function Js(a){Sc||(pg(),Sc=!0),this.H=Bu,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=qu,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Fn,this.ce=new rs,this.ce.Yd=this,this.Ei=new Fn,this.pu=new Fn,this.Sr=new Fn,this.pr=new Fn,a&&Object.assign(this,a)}Js.prototype.Xe=function(a){this.H=a},Js.prototype.canStart=function(){return!0};function ku(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),os(a.H),a.zb=!0)}function lf(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,E=a.Zd.contains("Model");E&&(a.Ok=!0,a.Pk===qu?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(x,"position",x.position.copy().offset(0,-200),x.position),y.add(x,"opacity",0,1)):a.Pk===mg&&y.vc.clear(),a.Qw=!!(a.Pk===xc&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),E&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),Pc(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,E=y.vc.get(x),x.autoScale!==ps&&E!==null&&(delete E.start.scale,delete E.end.scale),un.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Ns(x),Pg(x),a.zb=!1,y.start(),y.bc&&(Sh(a),x.Ya(),vg(y,0),Sl(x,!0),Xh(a),x.R("AnimationStarting",a)))}))}}function Ju(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function uf(a,y,x,E){a.isTicking||Ju(a)||y instanceof Hn&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,E,!1)}be=Js.prototype,be.fv=function(a){return this.ce.fv(a)},be.Xu=function(a){return this.ce.Xu(a)};function hf(a,y){function x(){if(0<b.Sr.count&&(E.addAll(b.Sr),b.Sr.clear(),b.bc=!0),b.bc!==!1&&E.count!==0){b.pu.addAll(E);for(var z=b.pu.iterator;z.next();){var te=z.value;if(te.bc!==!1){e:if(0<te.yl.count)var re=!0;else{for(re=te.vc.iterator;re.next();){var oe=re.key;if(oe instanceof Mt&&oe.diagram!==null||oe instanceof _t){re=!0;break e}}re=!1}re?wc(te,!1):te.Xk=!0}}b.pu.clear(),b.bc!==!1&&(Sh(b),Sl(b.H),Xh(b)),un.requestAnimationFrame(x)}}var E=a.Ei,b=a;a.bc?a.Sr.add(y):(a.bc=!0,E.add(y),un.requestAnimationFrame(function(){x()}))}function Vp(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function Sh(a){if(!a.vq){var y=a.H;a.Ow=y.skipsUndoManager,a.cw=y.skipsModelSourceBindings,y.skipsUndoManager=!0,y.skipsModelSourceBindings=!0,a.vq=!0}}function Xh(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}be.Cc=function(a){var y=this.ce;if(this.zb===!0&&(this.Ok=this.zb=!1,this.Zd.clear(),0<y.vc.count&&this.H.$b()),this.bc){if(y.Ml(!0),y.vc.clear(),Pc(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),Pc(y,this.H)},be.Ml=function(a){a===this.defaultAnimation&&this.defaultAnimation.vc.clear(),this.Ei.remove(a),this.Ei.count===0&&(this.bc=!1,this.H.$b()),a===this.defaultAnimation&&(this.defaultAnimation.vc.clear(),this.H.R("AnimationFinished",this))},be.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),Gs(this,a))},be.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),xh(this.ce,y,"position",y.position,y.position),Gs(this,a))};function _p(a,y,x){!a.zb||y.D(x)||Ju(a)||(a.H.pi||(y=x.copy()),xh(a.ce,a.H,"position",y,x))}function df(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function Gs(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function Qh(a,y,x,E,b){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],te=a[1],re=a[2];a=a[3];var oe=y[0],le=y[1],he=y[2];return y=y[3],re===0||re===100?(z=oe,te=le):(he===0||he===100)&&(oe=z,le=te),180<Math.abs(oe-z)&&(oe>z?z+=360:oe+=360),z=b(x,z,oe-z,E)%360,te=b(x,te,le-te,E),re=b(x,re,he-re,E),x=b(x,a,y-a,E),"hsla("+z+", "+te+"%, "+re+"%, "+x+")"}function pg(){function a(x,E,b,z,te,re){x.position=new je(z(te,E.x,b.x-E.x,re),z(te,E.y,b.y-E.y,re))}var y=new Wt;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,E,b,z,te,re){te<re?x.mm(z(te,E.x,b.x-E.x,re),z(te,E.y,b.y-E.y,re),!1):x.position=new je(z(te,E.x,b.x-E.x,re),z(te,E.y,b.y-E.y,re))}),y.add("location",function(x,E,b,z,te,re){te<re?x.mm(z(te,E.x,b.x-E.x,re),z(te,E.y,b.y-E.y,re),!0):x.location=new je(z(te,E.x,b.x-E.x,re),z(te,E.y,b.y-E.y,re))}),y.add("position:placeholder",function(x,E,b,z,te,re){te<re?x.mm(z(te,E.x,b.x-E.x,re),z(te,E.y,b.y-E.y,re),!1):x.position=new je(z(te,E.x,b.x-E.x,re),z(te,E.y,b.y-E.y,re))}),y.add("position:nodeCollapse",function(x,E,b,z,te,re){var oe=x.actualBounds,le=b.actualBounds;b=le.x+le.width/2-oe.width/2,oe=le.y+le.height/2-oe.height/2,te<re?x.mm(z(te,E.x,b-E.x,re),z(te,E.y,oe-E.y,re),!1):x.position=new je(z(te,E.x,b-E.x,re),z(te,E.y,oe-E.y,re))}),y.add("desiredSize",function(x,E,b,z,te,re){x.desiredSize=new pt(z(te,E.width,b.width-E.width,re),z(te,E.height,b.height-E.height,re))}),y.add("width",function(x,E,b,z,te,re){x.width=z(te,E,b-E,re)}),y.add("height",function(x,E,b,z,te,re){x.height=z(te,E,b-E,re)}),y.add("fill",function(x,E,b,z,te,re){x.fill=Qh(E,b,te,re,z)}),y.add("stroke",function(x,E,b,z,te,re){x.stroke=Qh(E,b,te,re,z)}),y.add("strokeWidth",function(x,E,b,z,te,re){x.strokeWidth=z(te,E,b-E,re)}),y.add("strokeDashOffset",function(x,E,b,z,te,re){x.strokeDashOffset=z(te,E,b-E,re)}),y.add("background",function(x,E,b,z,te,re){x.background=Qh(E,b,te,re,z)}),y.add("areaBackground",function(x,E,b,z,te,re){x.areaBackground=Qh(E,b,te,re,z)}),y.add("opacity",function(x,E,b,z,te,re){x.opacity=z(te,E,b-E,re)}),y.add("scale",function(x,E,b,z,te,re){x.scale=z(te,E,b-E,re)}),y.add("angle",function(x,E,b,z,te,re){x.angle=z(te,E,b-E,re)}),yc=y}pn.Object.defineProperties(Js.prototype,{animationReasons:{get:function(){return this.Zd}},isEnabled:{get:function(){return this.Jd},set:function(a){(this.Jd=a)&&this.Ei.each(function(y){y.isAnimating||y.runCount!==1/0||y.start()})}},duration:{get:function(){return this.Dg},set:function(a){1>a&&ai(a,">= 1",Js,"duration"),this.Dg=a}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(a){this.Pk=a}}}),Js.prototype.stopAnimation=Js.prototype.Cc;var yc=null,Sc=!1,qu=new Kt(Js,"Default",1),xc=new Kt(Js,"AnimateLocations",2),mg=new Kt(Js,"None",3);Js.className="AnimationManager",Js.defineAnimationEffect=function(a,y){Sc||(pg(),Sc=!0),yc.add(a,y)},Js.Default=qu,Js.AnimateLocations=xc,Js.None=mg;function rs(a){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=Od,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Qn,this.vc=new Wt,this.Tt=new Wt,this.yl=new Fn,this.Ut=new Fn,this.dw=Ch,a&&Object.assign(this,a)}rs.prototype.suspend=function(){this.Xk=!0},rs.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,wc(this,!0),Sh(this.Yd),Sl(this.H),Xh(this.Yd),this.H.redraw()};function Pc(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0<a.yl.count&&a.yl.clear(),0<a.Ut.count&&a.Ut.clear(),y!==null)for(a=y.links;a.next();)a.value.Tg=null}be=rs.prototype,be.start=function(){if(this.vc.count===0||this.bc)return this;for(var a=this.H,y=this.vc.iterator;y.next();){var x=y.key;a===null&&(x instanceof _t?a=x:x instanceof Mt&&(a=x.diagram))}if(a!==null)this.H=a,this.Yd=a.animationManager;else return this;return y=this.Yd,y.isEnabled===!1?this:(this.Gd=isNaN(this.Dg)?y.duration:this.Dg,this.Lp=this.ot,y.Ok&&y.Pk===qu&&this===y.defaultAnimation&&(this.Lp=Yp,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=bc),Sh(y),this.yl.each(function(E){E.data=null,a.add(E)}),Xh(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,hf(y,this),this)},be.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},be.add=function(a,y,x,E,b){if(y==="position"&&x.Xa(E))return this;if(this.H===null&&(a instanceof _t?this.H=a:a instanceof Mt&&a.diagram!==null&&(this.H=a.diagram)),a instanceof Xi){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return xh(this,a,y,x,E,b),this};function xh(a,y,x,E,b,z){var te=a.vc;if(y instanceof _t&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(nh(E),lv(),E=[ul.j,ul.u,ul.o,ul.F],nh(b),lv(),b=[ul.j,ul.u,ul.o,ul.F]),te.contains(y)){var re=te.I(y),oe=re.start,le=re.end;oe[x]===void 0&&(oe[x]=Jh(E)),le[x]=Jh(b)}else oe={},le={},oe[x]=Jh(E),le[x]=Jh(b),re=oe.position,y instanceof Mt&&re instanceof je&&!re.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&re.assign(le.position),re=new qh(oe,le,z),te.add(y,re);te=oe[x],te instanceof je&&!te.w()&&te.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof Xi?re.Ku.location=Jh(y.location):z&&(re.Ku[x]=Jh(E))}function Jh(a){return a instanceof je||a instanceof Xe?a.copy():a}be.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},be.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function wc(a,y){if(!a.Xk||y){var x=a.Yd;if(a.bc!==!1){var E=+new Date,b=E>a.cn?a.Gd:E-a.Qd;y&&(b=a.gw,b<a.Gd?(a.Qd=+new Date-b,a.cn=a.Qd+a.Gd):b=a.Gd),Sh(x),vg(a,b),Sl(a.H,!0),Xh(x),E>a.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function vg(a,y){for(var x=a.Gd,E=a.vc.iterator,b=a.Wk;E.next();){var z=E.key;if(!(z instanceof Mt&&z.diagram===null)){var te=E.value,re=b?te.end:te.start;te=b?te.start:te.end;var oe=yc,le;for(le in te)le==="position"&&(te["position:placeholder"]||te["position:nodeCollapse"])||oe.get(le)===null||oe.get(le)(z,re[le],te[le],a.Lp,y,x,a)}}}be.stop=function(){return this.bc?(this.Ml(!0),this):this},be.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,x=this.Yd;this.Xk=this.bc=x.Ok=!1,Sh(x);for(var E=this.vc,b=this.yl.iterator;b.next();)y.remove(b.value);for(b=this.Ut.iterator;b.next();)b.value.v();b=this.ho,E=E.iterator;for(var z=yc;E.next();){var te=E.key,re=E.value,oe=b?re.end:re.start,le=b?re.start:re.end,he=re.Ku,ge;for(ge in le)if(z.get(ge)!==null){var Se=ge;!re.Hu||Se!=="position:nodeCollapse"&&Se!=="position:placeholder"||(Se="position"),z.get(Se)(te,oe[ge],he[ge]!==void 0?he[ge]:re.Hu?oe[ge]:le[ge],this.Lp,this.Gd,this.Gd,this)}re.Hu&&he.location!==void 0&&te instanceof Xi&&(te.location=he.location),re.nv&&te instanceof Xi&&te.Zb(!1)}if(y.As.clear(),Cc(y,!1),y.Ya(),y.N(),Sl(y,!0),x.defaultAnimation===this){for(ge=x.pr.iterator;ge.next();)b=ge.value,b.Tg!==null&&(b.points=b.Tg,b.Tg=null);x.pr.clear()}Sl(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Xh(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Pc(this,null),x.Ml(this),y.$b())}},be.Cj=function(a,y){var x=y.actualBounds,E=null;if(y instanceof Pr&&(E=y.placeholder),E!==null?(x=E.ga(Ii),E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new je(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Pr)for(a=a.memberParts;a.next();)E=a.value,E instanceof li&&this.Cj(E,y)},be.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Pr&&(x=y.placeholder),x!==null){var E=x.ga(Ii);x=x.padding,E.x+=x.left,E.y+=x.top,this.add(a,"position:placeholder",a.position,E,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),E=this.vc,E.contains(a)&&(E.I(a).nv=!0),a instanceof Pr)for(a=a.memberParts;a.next();)E=a.value,E instanceof li&&this.Aj(E,y)}},be.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},pn.Object.defineProperties(rs.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&ai(a,">= 1",rs,"duration"),this.Dg=a}},reversible:{get:function(){return this.ho},set:function(a){this.ho=a}},runCount:{get:function(){return this.cu},set:function(a){0<a?this.cu=a:lt("Animation.runCount value must be a positive integer.")}},finished:{get:function(){return this.dn},set:function(a){this.dn!==a&&(this.dn=a)}},easing:{get:function(){return this.ot},set:function(a){this.ot=a}},isViewportUnconstrained:{get:function(){return this.j},set:function(a){this.j=a}},isAnimating:{get:function(){return this.bc}}}),rs.prototype.getTemporaryState=rs.prototype.Ez,rs.prototype.stop=rs.prototype.stop,rs.prototype.add=rs.prototype.add,rs.prototype.addTemporaryPart=rs.prototype.Iy;function Od(a,y,x,E){return a/=E/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Yp(a,y,x,E){return a===E?y+x:x*(-Math.pow(2,-10*a/E)+1)+y}rs.className="Animation",rs.EaseLinear=function(a,y,x,E){return x*a/E+y},rs.EaseInOutQuad=Od,rs.EaseInQuad=function(a,y,x,E){return x*(a/=E)*a+y},rs.EaseOutQuad=function(a,y,x,E){return-x*(a/=E)*(a-2)+y},rs.EaseInExpo=function(a,y,x,E){return a===0?y:x*Math.pow(2,10*(a/E-1))+y},rs.EaseOutExpo=Yp;function qh(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}qh.className="AnimationState";function Yl(a,y,x){this.xd=null,this.rf=a,this.so=x||yg,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=$h))}Yl.prototype.copy=function(){var a=new Yl(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var x={};y.duration!==void 0&&(x.duration=y.duration),y.finished!==void 0&&(x.finished=y.finished),y.easing!==void 0&&(x.easing=y.easing),a.uk=x}return a};function Kp(a,y){a=a.uk,a!==null&&(a.duration&&(y.duration=a.duration),a.finished&&(y.finished=a.finished),a.easing&&(y.easing=a.easing))}pn.Object.defineProperties(Yl.prototype,{propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},animationSettings:{get:function(){return this.uk},set:function(a){this.uk=a}},startCondition:{get:function(){return this.so},set:function(a){this.so=a}}});var yg=new Kt(Yl,"Default",1),$h=new Kt(Yl,"Immediate",2),Id=new Kt(Yl,"Bundled",3);Yl.className="AnimationTrigger",Yl.Default=yg,Yl.Immediate=$h,Yl.Bundled=Id;function Ya(a){Kn(this),this.H=null,this.Pa=new An,this.xa="",this.pb=1,this.o=!1,this.j=this.Uh=this.u=this.Oi=this.Ni=this.Mi=this.Li=this.Ji=this.Ki=this.Ii=this.Qi=this.Hi=this.Pi=this.Gi=this.Fi=!0,this.Zq=[],a&&Object.assign(this,a)}be=Ya.prototype,be.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,fs(x)}a.clear(),this.Zq.length=0},be.Xe=function(a){this.H=a},be.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var x=0,E=0,b=0,z=0,te=0,re=this.Pa.iterator;re.next();){var oe=re.value;oe instanceof Pr?b++:oe instanceof li?E++:oe instanceof Hn?z++:oe instanceof eo?te++:x++}if(re="",0<x&&(re+=x+" Parts "),0<E&&(re+=E+" Nodes "),0<b&&(re+=b+" Groups "),0<z&&(re+=z+" Links "),0<te&&(re+=te+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,re+=`
|
|
`+x.toString(),E=x.data,E!==null&&Tr(E)&&(re+=" #"+Tr(E)),x instanceof li?re+=" "+Ji(E):x instanceof Hn&&(re+=" "+Ji(x.fromNode)+" "+Ji(x.toNode));return y+" "+this.Pa.count+": "+re},be.ic=function(a,y,x){if(y===void 0&&(y=null),x===void 0&&(x=null),this.Uh===!1)return null;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var b=je.alloc(),z=this.Pa.s,te=z.length;te--;){var re=z[te];if((E!==!0||ud(re)!==!1)&&re.isVisible()&&(b.assign(a),vn(b,re.oe),re=re.ic(b,y,x),re!==null&&(y!==null&&(re=y(re)),re!==null&&(x===null||x(re)))))return je.free(b),re}return je.free(b),null},be.ji=function(a,y,x,E){if(y===void 0&&(y=null),x===void 0&&(x=null),E instanceof An||E instanceof Fn||(E=new Fn),this.Uh===!1)return E;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var z=je.alloc(),te=this.Pa.s,re=te.length;re--;){var oe=te[re];if((b!==!0||ud(oe)!==!1)&&oe.isVisible()){z.assign(a),vn(z,oe.oe);var le=oe;oe.ji(z,y,x,E)&&(y!==null&&(le=y(le)),le===null||x!==null&&!x(le)||E.add(le))}}return je.free(z),E},be.Cf=function(a,y,x,E,b){if(y===void 0&&(y=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof An||b instanceof Fn||(b=new Fn),this.Uh===!1)return b;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var te=this.Pa.s,re=te.length;re--;){var oe=te[re];if((z!==!0||ud(oe)!==!1)&&oe.isVisible()){var le=oe;oe.Cf(a,y,x,E,b)&&(y!==null&&(le=y(le)),le===null||x!==null&&!x(le)||b.add(le))}}return b},be.Nu=function(a,y,x,E,b,z,te){if(this.Uh===!1)return b;for(var re=this.Pa.s,oe=re.length;oe--;){var le=re[oe];if((te!==!0||ud(le)!==!1)&&z(le)&&le.isVisible()){var he=le;le.Cf(a,y,x,E,b)&&(y!==null&&(he=y(he)),he===null||x!==null&&!x(he)||b.add(he))}}return b},be.og=function(a,y,x,E,b,z){if(x===void 0&&(x=null),E===void 0&&(E=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof An||b instanceof Fn)&&(z=b),b=!0),z instanceof An||z instanceof Fn||(z=new Fn),this.Uh===!1)return z;var te=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(te=!0);for(var re=je.alloc(),oe=je.alloc(),le=this.Pa.s,he=le.length;he--;){var ge=le[he];if((te!==!0||ud(ge)!==!1)&&ge.isVisible()){re.assign(a),vn(re,ge.oe),oe.h(a.x+y,a.y),vn(oe,ge.oe);var Se=ge;ge.og(re,oe,x,E,b,z)&&(x!==null&&(Se=x(Se)),Se===null||E!==null&&!E(Se)||z.add(Se))}}return je.free(re),je.free(oe),z},be.Fd=function(a,y){if(this.visible){var x=this.Pa.s,E=x.length;if(E!==0){a=Bn();for(var b=Bn(),z=0;z<E;z++){var te=x[z];if(te.vw=z,te instanceof Hn){if(te.fd===!1)continue}else if(te instanceof eo&&te.adornedPart!==null)continue;var re=te.actualBounds;te.isVisible()&&Dn(re,y)?(te.Fd(!0),a.push(te)):(te.Fd(!1),te.adornments!==null&&0<te.adornments.count&&b.push(te))}for(y=0;y<a.length;y++)for(x=a[y],Rv(x),x=x.adornments;x.next();)E=x.value,E.measure(1/0,1/0),E.arrange(),E.Fd(!0);for(y=0;y<b.length;y++)Rv(b[y]);Ot(a),Ot(b)}}};function $u(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}be.gc=function(a,y,x){if(this.visible&&this.pb!==0&&(x===void 0&&(x=!0),x||!this.isTemporary)){x=this.Pa.s;var E=x.length;if(E!==0){if(a.isTemporary)for(var b=0;b<E;b++)x[b].Gj();b=$u(this,a);var z=this.Zq;z.length=0;for(var te=y.scale,re=pt.alloc(),oe=0;oe<E;oe++)this.Oj(a,x[oe],y,z,te,re,!0);if(pt.free(re),a.isTemporary)for(y=0;y<E;y++)x[y].Gj();a.globalAlpha=b}}};function Up(a,y,x,E,b){if(a.visible&&a.pb!==0&&(b||!a.isTemporary)){b=a.Pa.s;var z=b.length;if(z!==0){var te=$u(a,y),re=a.Zq;re.length=0;for(var oe=x.scale,le=pt.alloc(),he=0;he<z;he++){var ge=b[he];E.contains(ge)&&a.Oj(y,ge,x,re,oe,le,!1)}pt.free(le),y.globalAlpha=te}}}be.Oj=function(a,y,x,E,b,z,te){if(te&&!ud(y))a.Hs(y);else{if(E!==null&&y instanceof Hn&&(y.isOrthogonal&&E.push(y),y.fd===!1)){a.Hs(y);return}for(te=!1,E=y.containingGroup;E!==null;)te?E.tb!==null&&z.Ex(E.tb):E.tb!==null&&(te=!0,z.assign(E.tb)),E=E.containingGroup;var re=y.actualBounds;if(E=!1,te&&y.isVisible()){if(!z.Yc(re)){a.Hs(y);return}E=!z.Re(re)}E&&(a.save(),a instanceof qs?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),re.width*b>x.Oq||re.height*b>x.Oq?y.gc(a,x):(b=y.actualBounds,z=y.naturalBounds,b.width===0||b.height===0||isNaN(b.x)||isNaN(b.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(ha(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(ha(y,a,"rgba(0,0,0,0.3)",!0,!1,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),ha(y,a,y.background,!0,!1,z,b),a.fillRect(0,0,z.width/2,z.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),E&&(a.restore(),a.Vc(!0))}},be.g=function(a,y,x,E,b){var z=this.diagram;z!==null&&z.cb(Ro,a,this,y,x,E,b)},be.oi=function(a,y,x){var E=this.Pa;if(y.Ig=this,this===null&&fs(y),a>=E.count)a=E.count;else if(E.M(a)===y)return-1;return E.Gb(a,y),y.Vo(x),E=this.diagram,E!==null&&(x?E.N():E.oi(y)),cf(this,a,y),a},be.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var E=this.Pa;if(0>a||a>=E.length){if(a=E.indexOf(y),0>a)return-1}else if(E.M(a)!==y&&(a=E.indexOf(y),0>a))return-1;return y.Wo(x),E.mb(a),E=this.diagram,E!==null&&(x?E.N():E.pc(y)),y.Ig=null,fs(y),a};function cf(a,y,x){if(y=Xp(a,y,x),x instanceof Pr&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var E=-1,b=a.Pa.s,z=b.length,te=0;te<z;te++){var re=b[te];if(re===x&&(y=te,0<=E)||0>E&&re.containingGroup===x&&(E=te,0<=y))break}!(0>E)&&E<y&&(b=a.Pa,b.mb(y),b.Gb(E,x))}y=x.containingGroup,y!==null&&cf(a,-1,y)}x.svg!==null&&x.svg.remove()}function Xp(a,y,x){var E=x.zOrder;if(isNaN(E))return y;a=a.Pa;var b=a.count;if(1>=b)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,te=NaN;0<=z&&(te=a.M(z).zOrder,!!isNaN(te));)z--;for(var re=y+1,oe=NaN;re<b&&(oe=a.M(re).zOrder,!!isNaN(oe));)re++;if(!isNaN(te)&&te>E)for(;;){if(z===-1||te<=E){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(te=NaN;0<=--z&&(te=a.M(z).zOrder,isNaN(te)););}else if(!isNaN(oe)&&oe<E)for(;;){if(re===b||oe>=E){if(re--,re===y)break;return a.mb(y),a.Gb(re,x),re}for(oe=NaN;++re<b&&(oe=a.M(re).zOrder,isNaN(oe)););}return y}pn.Object.defineProperties(Ya.prototype,{parts:{get:function(){return this.Pa.iterator}},partsBackwards:{get:function(){return this.Pa.iteratorBackwards}},diagram:{get:function(){return this.H}},name:{get:function(){return this.xa},set:function(a){var y=this.xa;if(y!==a){var x=this.diagram;if(x!==null)for(y===""&<("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&<("Layer.name is already present in this diagram: "+a);for(this.xa=a,this.g("name",y,a),a=this.Pa.iterator;a.next();)a.value.layerName=this.xa}}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&ai(a,"0 <= value <= 1",Ya,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,a!==null&&a.N())}},isTemporary:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&((this.o=a)&&(this.isInDocumentBounds=!1),this.g("isTemporary",y,a))}},visible:{get:function(){return this.u},set:function(a){var y=this.u;if(y!==a){for(this.u=a,this.g("visible",y,a),y=this.Pa.iterator;y.next();)y.value.Zb(a);a=this.diagram,a!==null&&a.N()}}},pickable:{get:function(){return this.Uh},set:function(a){var y=this.Uh;y!==a&&(this.Uh=a,this.g("pickable",y,a))}},isInDocumentBounds:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,this.diagram!==null&&this.diagram.Ya())}},allowCopy:{get:function(){return this.Fi},set:function(a){var y=this.Fi;y!==a&&(this.Fi=a,this.g("allowCopy",y,a))}},allowDelete:{get:function(){return this.Gi},set:function(a){var y=this.Gi;y!==a&&(this.Gi=a,this.g("allowDelete",y,a))}},allowTextEdit:{get:function(){return this.Pi},set:function(a){var y=this.Pi;y!==a&&(this.Pi=a,this.g("allowTextEdit",y,a))}},allowGroup:{get:function(){return this.Hi},set:function(a){var y=this.Hi;y!==a&&(this.Hi=a,this.g("allowGroup",y,a))}},allowUngroup:{get:function(){return this.Qi},set:function(a){var y=this.Qi;y!==a&&(this.Qi=a,this.g("allowUngroup",y,a))}},allowLink:{get:function(){return this.Ii},set:function(a){var y=this.Ii;y!==a&&(this.Ii=a,this.g("allowLink",y,a))}},allowRelink:{get:function(){return this.Ki},set:function(a){var y=this.Ki;y!==a&&(this.Ki=a,this.g("allowRelink",y,a))}},allowMove:{get:function(){return this.Ji},set:function(a){var y=this.Ji;y!==a&&(this.Ji=a,this.g("allowMove",y,a))}},allowReshape:{get:function(){return this.Li},set:function(a){var y=this.Li;y!==a&&(this.Li=a,this.g("allowReshape",y,a))}},allowResize:{get:function(){return this.Mi},set:function(a){var y=this.Mi;y!==a&&(this.Mi=a,this.g("allowResize",y,a))}},allowRotate:{get:function(){return this.Ni},set:function(a){var y=this.Ni;y!==a&&(this.Ni=a,this.g("allowRotate",y,a))}},allowSelect:{get:function(){return this.Oi},set:function(a){var y=this.Oi;y!==a&&(this.Oi=a,this.g("allowSelect",y,a))}}}),Ya.prototype.findObjectsNear=Ya.prototype.og,Ya.prototype.findObjectsIn=Ya.prototype.Cf,Ya.prototype.findObjectsAt=Ya.prototype.ji,Ya.prototype.findObjectAt=Ya.prototype.ic,Ya.className="Layer";function _t(a,y){if(u0||(ds(),u0=!0),Kn(this),Bu=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,la){var x=this,E=function(){x.removeEventListener(un.document,"DOMContentLoaded",E,!1),x.setRTL()};un.document.body!==null?this.setRTL():x.addEventListener(un.document,"DOMContentLoaded",E,!1)}this.ol=null,Cf.add("Model",xo);var b=this;return this.Hb=function(z){var te=b.partManager;if(z.model===te.diagram.model&&te.diagram.aa){te.diagram.aa=!1;try{var re=z.change;z.modelChange===""&&re===Ro&&te.updateDataBindings(z.object,z.propertyName)}finally{te.diagram.aa=!0}}},this.Oc=function(z){b.partManager.doModelChanged(z)},this.hu=this.ku=null,Qp(this),this.model=cy(),this.Wg=!0,qp(this),this.layout=new ea,this.Wg=!1,this.ck=this.ek=this.fk=this.dk=this.ui=this.aA=this.$j=this.Ov=null,this.hk=function(){},this.preventDefault=null,this.rn=!1,this.Yf=new h0,a!==void 0&&(typeof a=="string"||un.Element&&a instanceof Element?xg(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var ed,Bu;function Qp(a){a.Yd=new Js,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new An,a.pj=new Wt,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new je(NaN,NaN).freeze(),a.du=new je(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new je(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new ui,a.zu=new je(NaN,NaN).freeze(),a.ut=new pt(NaN,NaN,NaN,NaN).freeze(),a.rj=new ri(0,0,0,0).freeze(),a.sj=Ch,a.nu=!1,a.Zt=null,a.fu=null,a.yh=ps,a.zk=Eo,a.Fg=ps,a.pq=Eo,a.yt=Ii,a.Bt=Ii,a.Fc=!0,a.pn=!1,a.De=new Fn,a.Eh=new Wt,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new ri(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new Ta,a.bq.diagram=a,a.Qg=new Ta,a.Qg.diagram=a,a.cj=new Ta,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,iv(a),a.ai=new Fn,a.Ht=!0,a.uu=Eh,a.pw=!1,a.wu=Lc,a.it="auto",a.Op="auto",a.zh=null,a.Fh=null,a.Bh=null,a.Qh=null,a.Oh=null,a.Nh=null,a.Qt=null,a.Lh=null,a.xt=!1,a.Mh=null,a.Ph=null,a.$h=null,a.Ch=null,a.Rt=!1,a.Yt={},a.oj=[null,null],a.Wg=!1,a.Iw=!1,a.ou=!1,a.lt=!1,a.rw=!0,a.ld=!1,a.$i=!1,a.Tw=!0,a.Ce=-2,a.Og=new Wt,a.Xn=new An,a.Gg=!1,a.Jd=!0,a.Us=!0,a.Fi=!0,a.Gi=!0,a.Vs=!1,a.Ws=!0,a.Pi=!0,a.Hi=!0,a.Qi=!0,a.Ys=!0,a.Ii=!0,a.Ki=!0,a.Ji=!0,a.Li=!0,a.Mi=!0,a.Ni=!0,a.Oi=!0,a.Zs=!0,a.at=!0,a.qw=!1,a.Vk=!1,a.mn=!0,a.nn=!0,a.Xs=!0,a.$s=!0,a.iu=16,a.mu=16,a.qr=!1,a.gu=!1,a.lu=0,a.ju=0,a.yb=new ri(5).freeze(),a.Hw=new Fn().freeze(),a.Nt=999999999,a.nw=new Fn().freeze(),a.Zi=!0,a.Ee=!0,a.vd=!0,a.Be=!1,a.gf=!1,a.xh=!0,a.hf=!1,a.sy=new Fn,a.ow=new Fn,a.Xh=null,a.aw=new Xe(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new je,bounds:new pt,Py:new Xe,bA:new Xe,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new pt(NaN,NaN,NaN,NaN).freeze(),a.wo=new Xe(NaN,NaN).freeze(),a.Sp=new pt(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new Wt;var y=new li,x=new Wo;x.bind(new xa("text","",Ji)),y.add(x),a.ny=y,a.Lg.add("",y),y=new li,x=new Wo,x.stroke="brown",x.bind(new xa("text","",Ji)),y.add(x),a.Lg.add("Comment",y),y=new li,y.selectable=!1,y.avoidable=!1,x=new Mr,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new Xe(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new Wt,y=new Pr,y.selectionObjectName="GROUPPANEL",y.type=On.Vertical,x=new Wo,x.font="bold 12pt sans-serif",x.bind(new xa("text","",Ji)),y.add(x),x=new On(On.Auto),x.name="GROUPPANEL";var E=new Mr;E.figure="Rectangle",E.fill="rgba(128,128,128,0.2)",E.stroke="black",x.add(E),E=new As,E.padding=new ri(5,5,5,5).ja(),x.add(E),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new Wt,y=new Hn,x=new Mr,x.isPanelMain=!0,y.add(x),x=new Mr,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new Hn,x=new Mr,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new eo,y.type=On.Auto,x=new Mr,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new As,x.margin=new ri(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new eo,y.type=On.Link,x=new Mr,x.isPanelMain=!0,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),a.Kt=y,a.fe=null,a.mq=!1,a.Ck=null,a.partManager=new xo,a.toolManager=new Ao,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new ae,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=Jp(),a.eq=null,a.fq=Yt,a.Pw=!1,a.Mb=1,a.Yh=null,a.Oq=1,a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0,a.yq=1,a.tw=0,a.uw=new je,a.zy=500,a.wp=new je,a.wq=!1}_t.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Gd=null,od="",Sg(this,!1),this.Xn.clear(),If(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function Sg(a,y){a.animationManager.Cc(!0),a.Hw=new Fn().freeze(),a.nw=new Fn().freeze();var x=a.skipsUndoManager,E=a.cc!==null&&a.cc!==void 0;E&&(a.skipsUndoManager=!0);var b=null;a.fe!==null&&(b=a.fe.part,b!==null&&a.remove(b));var z=[],te=a.Wa.length;if(y){for(y=0;y<te;y++)for(var re=a.Wa.s[y].parts;re.next();){var oe=re.value;oe!==b&&oe.data===null&&z.push(oe)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<te;y++)a.Wa.s[y].clear();return a.partManager.clear(),a.De.clear(),a.Eh.clear(),a.ai.clear(),a.Ck=null,a.Xn.clear(),If(),a.Og.clear(),wo=[],b!==null&&(a.add(b),a.partManager.parts.remove(b)),E&&(a.skipsUndoManager=x),z}function Jp(){return null}_t.prototype.reset=function(){this.clear(),this.vb=!0,Qp(this),wu(this),this.Wg=!0,qp(this),this.layout=new ea,this.Wg=!1,this.model=cy(),this.model.undoManager=new Jo,this.vb=this.rn=!1,this.N()},_t.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=un.document.body);var y=ii("div");y.dir="rtl",y.style.cssText="font-size: 14px; width: 1px; height: 1px; position: absolute; top: -1000px; overflow: scroll;",y.textContent="A",a.appendChild(y);var x="reverse";0<y.scrollLeft?x="default":(y.scrollLeft=1,y.scrollLeft===0&&(x="negative")),a.removeChild(y),this.bu=x},_t.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=un.document.body);var y=0;if(la){var x=l0;y=ed,x===null&&(x=l0=ii("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=ed=ii("div"),y.style.position="absolute",y.style.visibility="hidden",y.style.width="200px",y.style.height="150px",y.style.boxSizing="content-box",y.appendChild(x)),y.style.overflow="hidden",a.appendChild(y);var E=x.offsetWidth;y.style.overflow="scroll",x=x.offsetWidth,E===x&&(x=y.clientWidth),a.removeChild(y),y=E-x,y!==0||Hr||(y=11)}this.Db=y,this.Gw=!0},_t.prototype.qb=function(a){a.classType===_t&&(this.autoScale=a)},_t.prototype.toString=function(a){a===void 0&&(a=0);var y="";if(this.div&&this.div.id&&(y=this.div.id),y='Diagram "'+y+'"',0>=a)return y;for(var x=this.Wa.iterator;x.next();)y+=`
|
|
`+x.value.toString(a-1);return y};function xg(a,y){if(la){if(y!=null||lt("Diagram setup requires an argument DIV."),a.Ka!==null&<("Diagram has already completed setup."),typeof y=="string"?a.Ka=un.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:lt("No DIV or DIV id supplied: "+y),a.Ka===null&<("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&<("Invalid div id; div already has a Diagram associated with it."),!a.ol&&un.ResizeObserver){var x=Vi(function(){a.$b()},250);a.ol=new un.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}un.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var E="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=E,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=un.go;var b=new Il(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",un.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),b.style.zIndex="2",b.style.userSelect="none",b.style.MozUserSelect="none",b.style.touchAction="none",b.style.letterSpacing="normal !important",b.style.wordSpacing="normal !important"),a.ta=b,a.ib=b.context,E=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),Lg(a,a.Aa,a.ya),a.Ka.insertBefore(b.Oa,a.Ka.firstChild),b=new Il(null),b.width=1,b.height=1,a.jw=b,a.oy=b.context,la){b=ii("div");var z=ii("div");b.style.position="absolute",b.style.overflow="auto",b.style.width=a.Aa+"px",b.style.height=a.ya+"px",b.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(b),b.appendChild(z),b.onscroll=e0,b.addEventListener("pointerdown",t0),b.H=a,b.uy=!0,b.vy=!0,a.ku=b,a.hu=z}a.hk=Vi(function(){a.Yh=null,a.N()},300),a.Ov=Vi(function(){Pg(a)},250),a.preventDefault=function(te){return te.preventDefault(),!1},a.$j=function(te){if(a.isEnabled){var re=yl(a,te,!0);re.bubbles=!0;var oe=0,le=0;re.delta=0,te.deltaX!==void 0?(te.deltaX!==0&&(oe=0<te.deltaX?1:-1),te.deltaY!==0&&(le=0<te.deltaY?1:-1),re.delta=Math.abs(te.deltaX)>Math.abs(te.deltaY)?-oe:-le):te.wheelDeltaX!==void 0?(te.wheelDeltaX!==0&&(oe=0<te.wheelDeltaX?-1:1),te.wheelDeltaY!==0&&(le=0<te.wheelDeltaY?-1:1),re.delta=Math.abs(te.wheelDeltaX)>Math.abs(te.wheelDeltaY)?-oe:-le):te.wheelDelta!==void 0&&te.wheelDelta!==0&&(re.delta=0<te.wheelDelta?1:-1),a.doMouseWheel(),Kl(re,te)}},a.aA=function(te){a.isEnabled&&(a.Vk=!1,yl(a,te,!0),te=a.currentTool,te.cancelWaitAfter(),te.standardMouseOver())},a.ui=function(te){if(a.isEnabled){a.Vk=!0;var re=a.Yt;re[te.pointerId]===void 0&&(re[te.pointerId]=te),re=a.oj;var oe=!1;if(re[0]===null||re[0].pointerId!==te.pointerId&&re[0].pointerType===te.pointerType)if(re[1]!==null&&re[1].pointerId===te.pointerId)re[1]=te,oe=!0;else if(re[0]===null)re[0]=te;else if(re[1]===null)re[1]=te,oe=!0;else{te.preventDefault();return}else re[0]=te;(re=te.pointerType==="touch"||te.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var le=oe;oe=Ag(a,te,!0,!1,!0,le),jd(a,te,oe),oe.targetDiagram=Eg(te,te.target),oe.targetObject=null,le||oe.clone(a.bq),le=a.uw,re=re?25:10,te.timeStamp-a.tw<a.zy&&!(Math.abs(le.x-te.screenX)>re||Math.abs(le.y-te.screenY)>re)?a.yq++:a.yq=1,oe.clickCount=a.yq,a.tw=te.timeStamp,a.uw.sg(te.screenX,te.screenY),a.doMouseDown(),te.button===1?te.preventDefault():Kl(oe,te)}},a.dk=function(te){if(a.isEnabled){a.Vk=!0;var re=a.oj;if(re[0]===null||re[0].pointerId!==te.pointerId&&re[0].pointerType===te.pointerType){if(re[1]!==null&&re[1].pointerId===te.pointerId){re[1]=te;return}if(re[0]===null)re[0]=te;else return}else re[0]=te;if(re[0].pointerId===te.pointerId){re=Ag(a,te,!1,!1,!1,re[1]!==null);var oe=un.document.elementFromPoint(te.clientX,te.clientY)||null;oe!==null&&oe.shadowRoot!==void 0&&oe.shadowRoot!==null&&(oe=oe.shadowRoot.elementFromPoint(te.clientX,te.clientY));var le=a,he=te;oe&&oe.H&&(he=te,le=oe.H),re.targetDiagram=le,jd(a,he,re),re.targetObject=null,a.doMouseMove(),Kl(re,te)}}},a.fk=function(te){if(a.isEnabled){a.Vk=!0;var re=te.pointerType==="touch"||te.pointerType==="pen",oe=a.Yt;if(re&&a.qu)delete oe[te.pointerId],te.preventDefault();else if(oe=a.oj,oe[0]===null||oe[0].pointerId!==te.pointerId&&oe[0].pointerType===te.pointerType)oe[1]!==null&&oe[1].pointerId===te.pointerId&&(oe[1]=null);else{oe[0]=null,oe=Ag(a,te,!1,!0,!0,!1);var le=un.document.elementFromPoint(te.clientX,te.clientY)||null;le!==null&&le.shadowRoot!==void 0&&le.shadowRoot!==null&&(le=le.shadowRoot.elementFromPoint(te.clientX,te.clientY)),le!==null&&le.H instanceof _t&&le.H!==a&&jd(le.H,te,oe),le===null&&(le=te.target),jd(a,te,oe),oe.clickCount=a.yq,oe.targetDiagram=Eg(te,le),oe.targetObject=null,a.doMouseUp(),Kl(oe,te),re&&(a.wq=!1)}}},a.ek=function(te){if(a.isEnabled){a.Vk=!1;var re=a.Yt;re[te.pointerId]&&delete re[te.pointerId],re=a.oj,re[0]!==null&&re[0].pointerId===te.pointerId&&(re[0]=null),re[1]!==null&&re[1].pointerId===te.pointerId&&(re[1]=null),te.pointerType!=="touch"&&te.pointerType!=="pen"&&(te=a.currentTool,te.cancelWaitAfter(),te.standardMouseOver())}},a.ck=function(te){var re=a.oj;re[0]!==null&&re[0].pointerId===te.pointerId?(re[0]=null,a.wq=!1):re[1]!==null&&re[1].pointerId===te.pointerId&&(re[1]=null)},a.Vp=E.Z["d"+kc[1]+kc[2]+"wI"+_d.slice(1,5)]["b"+zx.slice(1,y)](E.Z,Dc,y,y),E.Vc(!0),nv(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}_t.prototype.addEventListener=function(a,y,x,E){a.addEventListener(y,x,{capture:E,passive:!1})},_t.prototype.removeEventListener=function(a,y,x,E){a.removeEventListener(y,x,{capture:E})};function nv(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(x){return x.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(x){return x.preventDefault(),!1},!1),a.addEventListener(un,"resize",a.Ov,!1)}function Ns(a){30<a.Sq&&(a.Yh=1)}function Cc(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Jr&&Jr.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}_t.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:un.devicePixelRatio||1},_t.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},_t.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},_t.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},_t.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},_t.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},_t.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},_t.prototype.doFocus=function(){this.focus()},_t.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=un.scrollX||un.pageXOffset,y=un.scrollY||un.pageYOffset;this.ta.focus(),un.scrollTo(a,y)}},_t.prototype.Oy=function(){this.H.R("GainedFocus")},_t.prototype.Ny=function(){this.H.R("LostFocus")};function Pg(a){if(a.ta!==null){var y=a.Ka;if(y!==null&&y.clientWidth!==0&&y.clientHeight!==0){a.Gw||a.setScrollWidth();var x=a.gf?a.Db:0,E=a.Be?a.Db:0,b=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==b&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+x||y.clientHeight!==a.ya+E)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===ps&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function qp(a){var y=new Ya;y.name="Background",a.Al(y),y=new Ya,y.name="",a.Al(y),y=new Ya,y.name="Foreground",a.Al(y),y=new Ya,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Ya,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Ya,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function $p(a){var y=new On(On.Grid);y.name="GRID";var x=new Mr;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Mr,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Mr,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Mr,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Mr,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Mr,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Xi,x.add(y),x.layerName="Grid",x.zOrder=0,x.isInDocumentBounds=!1,x.isAnimated=!1,x.pickable=!1,x.locationObjectName="GRID",a.add(x),a.partManager.parts.remove(x),y.visible=!1,y}function e0(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Wd(this.H)}function t0(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Wd(this.H)}_t.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,x=this.hu;this.qr=!0;var E=this.documentBounds,b=this.viewportBounds,z=this.rj,te=E.x-z.left,re=E.y-z.top,oe=E.width+z.left+z.right,le=E.height+z.top+z.bottom,he=E.right+z.right;z=E.bottom+z.bottom;var ge=b.x;E=b.y;var Se=b.width,we=b.height,Ae=b.right,Ne=b.bottom;b=this.scale;var $e=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":$e=$e+a.scrollWidth-a.clientWidth;break;case"reverse":$e=a.scrollWidth-$e-a.clientWidth}var Ke=$e;Se<oe||we<le?($e=je.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Ke&&($e.x=Ke/b+te,this.ju=Ke),this.allowVerticalScroll&&this.lu!==a.scrollTop&&($e.y=a.scrollTop/b+re,this.lu=a.scrollTop),this.position=$e,je.free($e),this.Ee=this.qr=!1):($e=je.alloc(),a.uy&&this.allowHorizontalScroll&&(te<ge&&(this.position=$e.h(Ke+te,this.position.y)),he>Ae&&(this.position=$e.h(-(y.scrollWidth-this.Aa)+Ke-this.Aa/b+he,this.position.y))),a.vy&&this.allowVerticalScroll&&(re<E&&(this.position=$e.h(this.position.x,a.scrollTop+re)),z>Ne&&(this.position=$e.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),je.free($e),this.vd=!0,this.Ee=this.qr=!1,E=this.documentBounds,b=this.viewportBounds,he=E.right,Ae=b.right,z=E.bottom,Ne=b.bottom,te=E.x,ge=b.x,re=E.y,E=b.y,Se>=oe&&te>=ge&&he<=Ae&&(x.style.width="1px"),we>=le&&re>=E&&z<=Ne&&(x.style.height="1px"))}},_t.prototype.computeBounds=function(a){return a===void 0&&(a=new pt),os(this),wg(this,a)};function wg(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,E=a.Wa.s,b=E.length,z=0;z<b;z++){var te=E[z];if(te.visible&&te.isInDocumentBounds){te=te.Pa.s;for(var re=te.length,oe=0;oe<re;oe++){var le=te[oe];le.isInDocumentBounds&&le.isVisible()&&(le=le.actualBounds,le.w()&&(x?(x=!1,y.assign(le)):y.ed(le)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}_t.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(si(a))for(var E=0;E<a.length;E++){var b=a[E];!y&&b instanceof Hn||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds))}else for(a=a.iterator;a.next();)E=a.value,!y&&E instanceof Hn||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds));return x===null?new pt(NaN,NaN,0,0):x};function Tl(a,y){if((y||a.hf)&&!a.vb&&a.ta!==null&&a.documentBounds.w()){if(a.vb=!0,y){var x=a.initialPosition;if(x.w()){a.vb=!1,a.position=x;return}x=je.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var E=a.viewportBounds;E=pt.allocAt(0,0,E.width,E.height);var b=je.alloc();b.xi(E,a.initialViewportSpot),b.h(x.x-b.x,x.y-b.y),a.position=b,pt.free(E),je.free(b),je.free(x)}x=a.yh,y&&a.Fg!==ps&&(x=a.Fg);var z=x!==ps?Rd(a,x):a.scale;x=a.pa.x,E=a.pa.y,b=a.Aa/z;var te=a.ya/z,re=a.zk,oe=a.pq;y&&!re.sb()&&(oe.sb()||oe.Xb())&&(re=oe.Xb()?hi:oe),Cg(a,a.documentBounds,b,te,re,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,St.B(z.x,x)&&St.B(z.y,E)&&St.B(z.width,b)&&St.B(z.height,te)||a.onViewportBoundsChanged(new pt(x,E,b,te),z,y,!1)}}function Rd(a,y){var x=a.Pp;if(a.ta===null)return x;a.Va();var E=a.documentBounds;if(!E.w())return x;var b=E.width;E=E.height;var z=a.Aa+(a.gf?a.Db:0),te=a.ya+(a.Be?a.Db:0),re=z/b,oe=te/E;return y===al?(y=Math.min(oe,re),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===ad?(y=oe>re?(te-a.Db)/E:(z-a.Db)/b,y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}_t.prototype.zoomToFit=function(){var a=this.sj;this.sj=Ch,this.scale=Rd(this,al),a!==Ch&&(Tl(this,!1),Cg(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},be=_t.prototype,be.BA=function(a,y){y===void 0&&(y=al);var x=a.width,E=a.height;if(!(x===0||E===0||isNaN(x)&&isNaN(E))){var b=1;if(y===al||y===ad)if(isNaN(x))b=this.viewportBounds.height*this.scale/E;else if(isNaN(E))b=this.viewportBounds.width*this.scale/x;else{b=this.Aa;var z=this.ya;b=y===ad?z/E>b/x?(z-(this.Be?this.Db:0))/E:(b-(this.gf?this.Db:0))/x:Math.min(z/E,b/x)}this.scale=b,this.position=new je(a.x,a.y)}},be.Jy=function(a,y){this.Va();var x=this.documentBounds,E=this.viewportBounds;this.position=new je(x.x+(a.x*x.width+a.offsetX)-(y.x*E.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*E.height-y.offsetY))},be.zz=function(a){if(a instanceof Mt){this.eq=a;var y=je.alloc();this.fq=this.op(a.ga(Ii,y)),je.free(y)}else this.eq=null,this.fq=Yt};function Cg(a,y,x,E,b,z){var te=je.allocAt(a.pa.x,a.pa.y),re=te.x,oe=te.y;if(a.eq!==null){var le=je.alloc();le=a.eq.ga(Ii,le),re=le.x-a.fq.x/a.scale,oe=le.y-a.fq.y/a.scale,b=Fi,je.free(le)}(z||a.scrollMode===Ch)&&(b.sb()&&(x>y.width&&(re=y.x+(b.x*y.width+b.offsetX)-(b.x*x-b.offsetX)),E>y.height&&(oe=y.y+(b.y*y.height+b.offsetY)-(b.y*E-b.offsetY))),b=a.rj,z=x-y.width,x<y.width+b.left+b.right?(re=Math.min(re+x/2,y.right+Math.max(z,b.right)-x/2),re=Math.max(re,y.left-Math.max(z,b.left)+x/2),re-=x/2):re>y.left?re=y.left:re<y.right-x&&(re=y.right-x),x=E-y.height,E<y.height+b.top+b.bottom?(oe=Math.min(oe+E/2,y.bottom+Math.max(x,b.bottom)-E/2),oe=Math.max(oe,y.top-Math.max(x,b.top)+E/2),oe-=E/2):oe>y.top?oe=y.top:oe<y.bottom-E&&(oe=y.bottom-E)),te.x=isFinite(re)?re:-a.yb.left,te.y=isFinite(oe)?oe:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,te),te.x=y.x,te.y=y.y),_p(a.Yd,a.pa,te),a.pa.h(te.x,te.y),wu(a),je.free(te)}be.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Nu(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof Xi)return a}else if(a=Nu(this,a,function(x){return x.part}),a instanceof Xi)return a;return null},be.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),os(this);for(var E=this.Wa.iteratorBackwards;E.next();){var b=E.value;if(b.visible&&(b=b.ic(a,y,x),b!==null))return b}return null};function Nu(a,y,x,E){for(x===void 0&&(x=null),E===void 0&&(E=null),os(a),a=a.Wa.iteratorBackwards;a.next();){var b=a.value;if(b.visible&&!b.isTemporary&&(b=b.ic(y,x,E),b!==null))return b}return null}be.lz=function(a,y,x){return y===void 0&&(y=!0),Ec(this,a,function(E){return E.part},y?function(E){return E instanceof Xi&&E.canSelect()}:null,x)};function Ec(a,y,x,E,b){for(x===void 0&&(x=null),E===void 0&&(E=null),b instanceof An||b instanceof Fn||(b=new Fn),os(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,E,b)}return b}be.ji=function(a,y,x,E){y===void 0&&(y=null),x===void 0&&(x=null),E instanceof An||E instanceof Fn||(E=new Fn),os(this);for(var b=this.Wa.iteratorBackwards;b.next();){var z=b.value;z.visible&&z.ji(a,y,x,E)}return E},be.ux=function(a,y,x,E){return y===void 0&&(y=!1),x===void 0&&(x=!0),ff(this,a,function(b){return b instanceof Xi&&(!x||b.canSelect())},y,E)},be.Cf=function(a,y,x,E,b){y===void 0&&(y=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof An||b instanceof Fn||(b=new Fn),os(this);for(var z=this.Wa.iteratorBackwards;z.next();){var te=z.value;te.visible&&te.Cf(a,y,x,E,b)}return b},be.Nu=function(a,y,x,E,b,z){var te=new Fn;os(this);for(var re=this.Wa.iteratorBackwards;re.next();){var oe=re.value;oe.visible&&oe.Nu(a,y,x,E,te,b,z)}return te};function ff(a,y,x,E,b){var z=null;for(z===void 0&&(z=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof An||b instanceof Fn||(b=new Fn),os(a),a=a.Wa.iteratorBackwards;a.next();){var te=a.value;te.visible&&!te.isTemporary&&te.Cf(y,z,x,E,b)}return b}be.mz=function(a,y,x,E,b){return x===void 0&&(x=!0),E===void 0&&(E=!0),Ac(this,a,y,function(z){return z instanceof Xi&&(!E||z.canSelect())},x,b)},be.og=function(a,y,x,E,b,z){x===void 0&&(x=null),E===void 0&&(E=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof An||b instanceof Fn)&&(z=b),b=!0),z instanceof An||z instanceof Fn||(z=new Fn),os(this);for(var te=this.Wa.iteratorBackwards;te.next();){var re=te.value;re.visible&&re.og(a,y,x,E,b,z)}return z};function Ac(a,y,x,E,b,z){var te=null;for(te===void 0&&(te=null),E===void 0&&(E=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof An||b instanceof Fn)&&(z=b),b=!0),z instanceof An||z instanceof Fn||(z=new Fn),os(a),a=a.Wa.iteratorBackwards;a.next();){var re=a.value;re.visible&&!re.isTemporary&&re.og(y,x,te,E,b,z)}return z}_t.prototype.acceptEvent=function(a){return yl(this,a,a instanceof MouseEvent)};function yl(a,y,x){var E=a.Qg;return a.Qg=a.cj,a.cj=E,E.diagram=a,E.event=y,x?jd(a,y,E):(E.viewPoint=a.Qg.viewPoint,E.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),E.modifiers=a,E.button=y.button,y.buttons!==void 0&&(E.buttons=y.buttons),Hr&&y.button===0&&y.ctrlKey&&(E.button=2),E.down=!1,E.up=!1,E.clickCount=1,E.delta=0,E.handled=!1,E.bubbles=!1,E.timestamp=y.timeStamp,E.isMultiTouch=!1,E.targetDiagram=Eg(y,y.target),E.targetObject=null,E}function Eg(a,y){return y===null?null:(y=y.H)?y:((y=a.path)||typeof a.composedPath!="function"||(y=a.composedPath()),y&&y[0]&&y[0].H?y[0].H:null)}function Ag(a,y,x,E,b,z){var te=a.Qg;return a.Qg=a.cj,a.cj=te,te.diagram=a,te.clickCount=1,a=te.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),te.modifiers=a,te.event=y,te.timestamp=y.timeStamp,te.button=y.button,te.buttons=y.buttons,Hr&&y.button===0&&y.ctrlKey&&(te.button=2),te.down=x,te.up=E,te.handled=!1,te.bubbles=b,te.isMultiTouch=z,te}function Kl(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}_t.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=yl(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.down=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del";break;case 48:x.key="0";break;case 187:case 61:case 107:x.key="Add";break;case 189:case 173:case 109:x.key="Subtract";break;case 27:x.key="Esc"}return y.doKeyDown(),Kl(x,a)},_t.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=yl(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.up=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del"}return y.doKeyUp(),Kl(x,a)},_t.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=yl(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),Kl(x,a)},_t.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=yl(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),Kl(x,a)},_t.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new je(0,0);var x=y.getBoundingClientRect();return y=a.clientX-this.Aa/x.width*x.left,a=a.clientY-this.ya/x.height*x.top,this.Ab!==null?vn(new je(y,a),this.Ab):new je(y,a)};function jd(a,y,x){var E=a.ta,b=a.Aa,z=a.ya,te=0,re=0;E!==null&&(E=E.getBoundingClientRect(),te=y.clientX-b/E.width*E.left,re=y.clientY-z/E.height*E.top),x.viewPoint.h(te,re),a.Ab!==null?(y=je.allocAt(te,re),a.Ab.Cd(y),x.documentPoint.assign(y),je.free(y)):x.documentPoint.h(te,re)}function Fg(a,y,x){if(a.oj[0]!==null){y=a.oj[y];var E=a.ta;E!==null&&(E=E.getBoundingClientRect(),x.h(y.clientX-a.Aa/E.width*E.left,y.clientY-a.ya/E.height*E.top))}}_t.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function n0(a){a.ld||os(a),a.Va()}_t.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},be=_t.prototype,be.Pz=function(){return this.kg},be.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,Sl(this),this.hf=!1,this.du=new je(NaN,NaN),y.isEnabled=x,this.ld=!0;var E=this;a!==null&&Fr(function(){E.ld=!1,ku(y,"Model"),a(E)},1)},be.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;un.requestAnimationFrame(function(){y.kg&&y.bd()})}},be.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),Sl(this))};function td(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Wd(a)||(y&&os(a),x&&Tl(a,!1))}function Sl(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var x=a.animationManager,E=a.Xn;if(!x.isAnimating&&E.length!==0){for(var b=E.s,z=b.length,te=0;te<z;te++){var re=b[te];Ma(re,!1),re.v()}E.clear()}E=a.ow,0<E.count&&(E.each(function(oe){oe.Nv()}),E.clear()),b=E=!1,x.defaultAnimation.isAnimating&&(b=!0,E=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||Pg(a),td(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(Pu(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),os(a),z=!1,(!a.hf||a.xh)&&(a.hf?Ig(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Ig(a,!1)),z=!0),a.Jk=!1,os(a),a.ou||n0(a),td(a,!0,!1),te=!1,z?(x=pt.alloc(),x.assign(a.viewportBounds),a.hf||(te=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Mg(a)),a.R("LayoutCompleted"),td(a,!0,!1),pt.free(x)):x.Ok&&x.Qw&&(a.Fg!==ps?a.scale=Rd(a,a.Fg):a.yh!==ps?a.scale=Rd(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),Tl(a,!0)),z&&te&&a.eb("Initial Layout"),os(a),y||a.gc(a.ib),b&&(a.skipsUndoManager=E),a.ld=!1}}function Mg(a){if(a.Fg!==ps)a.scale=Rd(a,a.Fg);else if(a.yh!==ps)a.scale=Rd(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}Tl(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),Pu(a)}function os(a){if(a.De.count!==0&&(a.ld||!a.animationManager.isTicking)){for(var y=0;23>y;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new Fn,a.Nv(x,a.De)}a.nodes.each(function(E){E instanceof Pr&&E.U&65536&&(E.U=E.U^65536)})}}be.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Pr||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Pr&&x.isVisible()&&Fc(this,x);for(a.reset();a.next();)x=a.value,x instanceof Hn&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof eo&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Fc(a,y){for(var x=Bn(),E=Bn(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof Pr?(ll(z)||Cs(z)||ld(z))&&Fc(a,z):z instanceof Hn?z.fromNode===y||z.toNode===y?E.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,b=0;b<a;b++)z=x[b],z.measure(1/0,1/0),z.arrange();for(Ot(x),y.measure(1/0,1/0),y.arrange(),a=E.length,y=0;y<a;y++)x=E[y],x.measure(1/0,1/0),x.arrange();Ot(E)}be.Fd=function(a,y,x,E){if(this.vd||this.animationManager.isAnimating)for(var b=0;b<y;b++)a[b].Fd(x,E)},be.gc=function(a){if(this.Ka!==null){if(this.ta===null&<("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){Zd(this);var x=this.Aa,E=this.ya;if(a.Gv.resize(x,E,x,E),x=this.Wa.s,E=x.length,this.Fd(x,E,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var b=this.Ca,z=Math.round(y.x*b)/b,te=Math.round(y.y*b)/b,re=this.Ab;for(re.reset(),b!==1&&re.scale(b),y.x===0&&y.y===0||re.translate(-z,-te),a.ti=null,Jy(a,re.m11,re.m12,re.m21,re.m22,re.dx,re.dy),this.pb!==1&&(a.globalAlpha=this.pb),Ph(this,a),y=this.Mb,this.ta.context.setTransform(y,0,0,y,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),y=0;y<E;y++)x[y].gc(a,this);a=!1,this.Yf?Yd(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(ui.prototype.Cd=ui.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,Zd(this),this.Ka.style.opacity!=="0")){if(E=a!==this.ib,y=this.Wa.s,b=y.length,this.Fd(y,b,this,this.viewportBounds),E)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!z.isAnimating)break e;z=this.Ab,z.reset(),te=this.Mb,re=this.pa;var oe=this.Ca,le=Math.round(re.x*oe)/oe,he=Math.round(re.y*oe)/oe;for(oe!==1&&z.scale(oe),re.x===0&&re.y===0||z.translate(-le,-he),a.setTransform(te,0,0,te,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),Ph(this,a),re=0;re<b;re++)a.setTransform(te,0,0,te,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[re].gc(a,this);if(y=!1,this.Yf?Yd(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(ui.prototype.Cd=ui.prototype.Eu),E?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,E=Jr&&Jr.nx,x=this.zw,E||this.Yh===null){for(x[this.Tq]=y,this.Tq=(this.Tq+1)%x.length,b=y=0;b<x.length;b++)y+=x[b];this.Sq=y/x.length}if(this.pb!==1&&(a.globalAlpha=1),E)for(a.setTransform(1,0,0,1,0,0),E=0;E<x.length;E++)a.fillText(x[E].toString(),20,150+ +(20*E))}}};function gf(a,y,x,E,b,z,te,re,oe,le){if(a.Ka!==null){a.ta===null&<("No canvas specified"),te===void 0&&(te=null),re===void 0&&(re=null),oe===void 0&&(oe=!1),le===void 0&&(le=!1),Zd(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var he=a.Ca;a.Ca=b;var ge=a.Wa.s,Se=ge.length;try{var we=new pt(z.x,z.y,E.width/b,E.height/b),Ae=we.copy();Ae.Co(x),Pu(a,Ae),os(a),a.Fd(ge,Se,a,we),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,E.width,E.height),re!==null&&re!==""&&(y.fillStyle=re,y.ox(0,0,E.width,E.height));var Ne=a.Mb;y.scale(Ne,Ne);var $e=ui.alloc();$e.reset(),$e.translate(x.left,x.top),$e.scale(b),z.x===0&&z.y===0||$e.translate(-z.x,-z.y),y.setTransform($e.m11,$e.m12,$e.m21,$e.m22,$e.dx,$e.dy),y.yc(),y instanceof qs&&Jy(y,$e.m11,$e.m12,$e.m21,$e.m22,$e.dx,$e.dy),ui.free($e),Ph(a,y),y.globalAlpha=a.pb;var Ke=a.Qj("Grid");if(te){var at=new Fn,dt=te.iterator;for(dt.reset();dt.next();){var ft=dt.value;ft instanceof Xi&&(le||ft.layer!==Ke)&&(ft.Gj(),at.add(ft))}for(le=0;le<Se;le++)Up(ge[le],y,a,at,oe);at.each(function(Gt){return Gt.Gj()})}else for(at=0;at<Se;at++){var wt=ge[at];wt===Ke?le&&wt.gc(y,a,!0):wt.gc(y,a,oe)}a.$i=!1,a.Yf&&Yd(a.Yf,a)&&a.Vp()}finally{a.Ca=he,a.ib.Vc(!0),a.vd=!0,a.Fd(ge,Se,a,a.viewportBounds),Pu(a),a.ib instanceof qs&&(a.ib.Nj.PA(),a.redraw())}}}be.Gf=function(a){return this.Rg[a]},be.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},be.Tx=function(){this.Rg=new _i,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Hr||Er),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Ph(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}be.Ql=function(a){return this.on[a]},be.sA=function(a,y){this.on[a]=y},be.Sx=function(){this.on=new _i,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},be.set=function(a){return Object.assign(this,a),this},be.Du=function(a){return this.nm(a)},be.nm=function(a){return zd(this,a),this};function zd(a,y){var x=a instanceof On,E=a instanceof _t,b;for(b in y){b===""&<("Setting properties requires non-empty property names");var z=a,te=b;if(x||E){var re=b.indexOf(".");if(0<re){var oe=b.substring(0,re);x?z=a.fb(oe):(z=a[oe],z==null&&(z=a.toolManager[oe])),tn(z)?te=b.substr(re+1):lt("Unable to find object named: "+oe+" in "+a.toString()+" when trying to set property: "+b)}}if(te[0]!=="_"&&!$i(z,te))if(E&&te==="ModelChanged"){a.Yw(y[te]);continue}else if(E&&te==="Changed"){a.Pe(y[te]);continue}else if(E&&$i(a.toolManager,te))z=a.toolManager;else if(E&&o0(a,te)){a.Bj(te,y[te]);continue}else if(a instanceof Ni&&te==="Changed"){a.Pe(y[te]);continue}else lt('Trying to set undefined property "'+te+'" on object: '+z.toString());z[te]=y[b],te[0]==="_"&&z instanceof Mt&&z.Vw(te)}}be.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new Wt,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},be.N=function(a){if(a===void 0)this.Fc=!0,this.$b();else{var y=this.viewportBounds;a.w()&&y.Yc(a)&&(this.Fc=!0,this.$b())}this.R("InvalidateDraw")},_t.prototype.invalidateViewport=function(a,y){if(this.Fc!==!0)if(this.Fc=!0,this.nl==="svg")this.bd();else{var x=this.Gf("temporaryPixelRatio")===!0;if(this.Gf("viewportOptimizations")===!0&&this.scrollMode!==bc&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var E=this.scale,b=Math.max(a.y,y.y),z=Math.min(a.y+a.height,y.y+y.height);if(0<Math.max(0,Math.min(a.x+a.width,y.x+y.width)-Math.max(a.x,y.x))*E&&0<Math.max(0,z-b)*E){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(E=pt.alloc(),Og(this,this.computeBounds(E)),pt.free(E)),E=this.ta,E===null||E instanceof Cu)))){var te=this.Mb;b=this.Aa*te;var re=this.ya*te,oe=this.scale*te;z=Math.round(Math.round(y.x*oe)-Math.round(a.x*oe)),y=Math.round(Math.round(y.y*oe)-Math.round(a.y*oe)),oe=this.jw,a=this.oy,oe.width!==b&&(oe.width=b),oe.height!==re&&(oe.height=re),a.clearRect(0,0,b,re),oe=190*te;var le=70*te,he=Math.max(z,0),ge=Math.max(y,0),Se=Math.floor(b-he),we=Math.floor(re-ge);a.drawImage(E.Oa,he,ge,Se,we,0,0,Se,we),Yd(this.Yf,this)&&a.clearRect(0,0,oe,le),E=Bn(),a=Bn(),we=Math.abs(z),Se=Math.abs(y);var Ae=he===0?0:b-we;he=je.allocAt(Ae,0),we=je.allocAt(we+Ae,re),a.push(new pt(Math.min(he.x,we.x),Math.min(he.y,we.y),Math.abs(he.x-we.x),Math.abs(he.y-we.y)));var Ne=this.Ab;if(Ne.reset(),Ne.scale(te,te),this.Ca!==1&&Ne.scale(this.Ca),te=this.pa,(te.x!==0||te.y!==0)&&isFinite(te.x)&&isFinite(te.y)&&Ne.translate(-te.x,-te.y),vn(he,Ne),vn(we,Ne),E.push(new pt(Math.min(he.x,we.x),Math.min(he.y,we.y),Math.abs(he.x-we.x),Math.abs(he.y-we.y))),Ae=ge===0?0:re-Se,he.h(0,Ae),we.h(b,Se+Ae),a.push(new pt(Math.min(he.x,we.x),Math.min(he.y,we.y),Math.abs(he.x-we.x),Math.abs(he.y-we.y))),vn(he,Ne),vn(we,Ne),E.push(new pt(Math.min(he.x,we.x),Math.min(he.y,we.y),Math.abs(he.x-we.x),Math.abs(he.y-we.y))),Yd(this.Yf,this)&&(b=0<z?0:-z,re=0<y?0:-y,he.h(b,re),we.h(oe+b,le+re),a.push(new pt(Math.min(he.x,we.x),Math.min(he.y,we.y),Math.abs(he.x-we.x),Math.abs(he.y-we.y))),vn(he,Ne),vn(we,Ne),E.push(new pt(Math.min(he.x,we.x),Math.min(he.y,we.y),Math.abs(he.x-we.x),Math.abs(he.y-we.y)))),je.free(he),je.free(we),td(this,!1,!0),this.Ka===null&<("No div specified"),this.ta===null&<("No canvas specified"),!this.animationManager.zb&&(b=this.ib,this.Fc)){for(Zd(this),re=this.Mb,b.setTransform(1,0,0,1,0,0),b.clearRect(0,0,this.Aa*re,this.ya*re),b.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,te=this.Ca,oe=Math.round(z.x*te)/te,le=Math.round(z.y*te)/te,y=this.Ab,y.reset(),te!==1&&y.scale(te),z.x===0&&z.y===0||y.translate(-oe,-le),b.save(),b.beginPath(),z=a.length,te=0;te<z;te++)oe=a[te],oe.width!==0&&oe.height!==0&&b.rect(Math.floor(oe.x),Math.floor(oe.y),Math.ceil(oe.width),Math.ceil(oe.height));for(b.clip(),b.setTransform(re,0,0,re,0,0),b.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),b.yc(),y=this.Wa.s,z=y.length,this.Fd(y,z,this,this.viewportBounds),Ph(this,b),b.globalAlpha=this.pb,re=0;re<z;re++)if(te=y[re],oe=E,te.visible&&te.pb!==0){le=$u(te,b),ge=te.Zq,ge.length=0,he=this.scale,Se=pt.alloc(),we=te.Pa.s,Ne=we.length,Ae=oe.length;for(var $e=0;$e<Ne;$e++){var Ke=we[$e],at=$d(Ke,Ke.actualBounds);e:{for(var dt=2/he,ft=4/he,wt=0;wt<Ae;wt++){var Gt=oe[wt];if(Gt.width!==0&&Gt.height!==0&&at.Vu(Gt.x-dt,Gt.y-dt,Gt.width+ft,Gt.height+ft)){at=!0;break e}}at=!1}at&&te.Oj(b,Ke,this,ge,he,Se,!0)}pt.free(Se),b.globalAlpha=le}b.restore(),b.Vc(!0),this.Yf&&Yd(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}Ot(E),Ot(a),this.ld=!1}}else this.bd();x&&(Ns(this),this.bd(),Cc(this,!0))}else x?(Ns(this),this.bd(),Cc(this,!0)):this.bd()}};function Zd(a){a.pn!==!1&&(a.pn=!1,Lg(a,a.Aa,a.ya))}function Lg(a,y,x){wu(a);var E=a.Mb;a.ta.resize(y*E,x*E,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Wd(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,E=a.ya,b=a.Ka,z=!1,te=a.gf?a.Db:0,re=a.Be?a.Db:0,oe=b.clientWidth||x+te,le=b.clientHeight||E+re,he=a.viewportBounds;b=he.x;var ge=he.y,Se=he.width,we=he.height;if((oe!==x+te||le!==E+re)&&(a.gf=!1,a.Be=!1,re=te=0,a.Aa=oe,a.ya=le,z=a.pn=!0,wu(a)),!a.hf||!a.viewportBounds.w())return!0;var Ae=a.ku,Ne=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var $e=a.documentBounds,Ke=0,at=0,dt=0,ft=0,wt=he.width,Gt=he.height,oi=a.rj;a.contentAlignment.sb()?($e.width>wt&&(Ke=oi.left,at=oi.right),$e.height>Gt&&(dt=oi.top,ft=oi.bottom)):(Ke=oi.left,at=oi.right,dt=oi.top,ft=oi.bottom);var bi=$e.width+Ke+at,Si=$e.height+dt+ft;oi=a.scale;var Zn=bi>oe/oi,yn=Si>le/oi;if(!(z||a.gf||a.Be||Zn||yn))return!0;Ke=$e.x-Ke,oe=he.x,at=$e.right+at,le=he.right+te,dt=$e.y-dt;var Sr=he.y;$e=$e.bottom+ft,he=he.bottom+re;var sr="1px";if(ft="1px",a.scrollMode===Ch&&(Zn||yn)&&(Zn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Zn=1,Ke+1<oe&&(Zn=Math.max((oe-Ke)*oi+a.Aa,Zn)),at>le+1&&(Zn=Math.max((at-le)*oi+a.Aa,Zn)),wt+te+1<bi&&(Zn=Math.max((bi-wt)*oi+a.Aa,Zn)),sr=Zn.toString()+"px"),yn&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Zn=1,dt+1<Sr&&(Zn=Math.max((Sr-dt)*oi+a.ya,Zn)),$e>he+1&&(Zn=Math.max(($e-he)*oi+a.ya,Zn)),Gt+re+1<Si&&(Zn=Math.max((Si-Gt)*oi+a.ya,Zn)),ft=Zn.toString()+"px")),Zn=sr!=="1px",yn=ft!=="1px",Zn&&yn||!Zn&&!yn||(yn&&(le-=a.Db),Zn&&(he-=a.Db),bi<wt+te||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(te=1,Ke+1<oe&&(te=Math.max((oe-Ke)*oi+a.Aa,te)),at>le+1&&(te=Math.max((at-le)*oi+a.Aa,te)),wt+1<bi&&(te=Math.max((bi-wt)*oi+a.Aa,te)),sr=te.toString()+"px"),Zn=sr!=="1px",te=a.ya,Zn!==a.Be&&(te=Zn?a.ya-a.Db:a.ya+a.Db),Si<Gt+re||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(re=1,dt+1<Sr&&(re=Math.max((Sr-dt)*oi+te,re)),$e>he+1&&(re=Math.max(($e-he)*oi+te,re)),Gt+1<Si&&(re=Math.max((Si-Gt)*oi+te,re)),ft=re.toString()+"px"),yn=ft!=="1px"),a.qr&&Zn===a.Be&&yn===a.gf)return x===a.Aa&&E===a.ya||a.bd(),!1;if(Zn!==a.Be&&(sr==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=Zn,Ne.style.width=sr,yn!==a.gf&&(ft==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(re=je.alloc(),yn?(y.style.left=a.Db+"px",a.position=re.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=re.h(a.pa.x-a.Db/a.scale,a.pa.y)),je.free(re))),z&&wu(a),a.gf=yn,Ne.style.height=ft,a.gu=!0,z&&(a.pn=!0),y=Ae.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(wt+1<bi?y=(a.position.x-Ke)*oi:Ke+1<oe?y=Ae.scrollWidth-Ae.clientWidth:at>le+1&&(y=a.position.x*oi)),a.tn)switch(a.bu){case"negative":y=-(Ae.scrollWidth-y-Ae.clientWidth);break;case"reverse":y=Ae.scrollWidth-y-Ae.clientWidth}return Ae.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Gt+1<Si?Ae.scrollTop=(a.position.y-dt)*oi:dt+1<Sr?Ae.scrollTop=Ae.scrollHeight-Ae.clientHeight:$e>he+1&&(Ae.scrollTop=a.position.y*oi)),oe=a.Aa,le=a.ya,Ae.style.width=oe+(a.gf?a.Db:0)+"px",Ae.style.height=le+(a.Be?a.Db:0)+"px",x!==oe||E!==le||a.animationManager.zb?(x=pt.allocAt(b,ge,Se,we),a.onViewportBoundsChanged(x,a.viewportBounds,oi,z),pt.free(x),!1):!0}be=_t.prototype,be.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&<("Cannot add part "+a.toString()+" to "+this.toString()+". It is already a part of "+y.toString()),y=this.Qj(a.layerName),y===null&&(y=this.Qj("")),y===null&<('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var x=y.oi(99999999,a,a.diagram===this);0<=x&&this.cb(qo,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},be.oi=function(a){this.partManager.oi(a);var y=this;Qd(a,function(x){Hd(y,x)}),(a instanceof eo||a instanceof Pr&&a.placeholder!==null)&&a.v(),a.data!==null&&Qd(a,function(x){uy(y.partManager,x)}),Cs(a)!==!0&&ld(a)!==!0||this.De.add(a),Z1(a,!0,this),H1(a)?(a.actualBounds.w()&&this.N($d(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N($d(a,a.actualBounds)),this.$b()},be.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Qd(a,function(x){hy(y.partManager,x,y)}),this.De.remove(a),H1(a)?(a.actualBounds.w()&&this.N($d(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N($d(a,a.actualBounds)),this.$b()},be.remove=function(a){bg(this,a,!0)};function bg(a,y,x){var E=y.layer;E!==null&&E.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=E.pc(-1,y,!1),0<=x&&a.cb(ua,"parts",E,y,null,x,null),a=y.layerChanged,a!==null&&a(y,E,null))}be.Is=function(a,y){if(y===void 0&&(y=!1),si(a))for(var x=a.length,E=0;E<x;E++){var b=a[E];y&&!b.canDelete()||this.remove(b)}else for(x=new Fn,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},be.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},_t.prototype.moveParts=function(a,y,x,E){if(x===void 0&&(x=!1),E===void 0&&(E=pf(this)),this.toolManager!==null){var b=new Wt;if(a!==null)if(si(a))for(var z=0;z<a.length;z++)Tu(this,b,a[z],x,E);else for(a=a.iterator;a.next();)Tu(this,b,a.value,x,E);else{for(a=this.parts;a.next();)Tu(this,b,a.value,x,E);for(a=this.nodes;a.next();)Tu(this,b,a.value,x,E);for(a=this.links;a.next();)Tu(this,b,a.value,x,E)}nd(this,b,y,E,x)}};function Tu(a,y,x,E,b,z){if(!y.contains(x)&&(z===void 0&&(z=!1),!E||z||x.canMove()||x.canCopy()))if(b===void 0&&(b=pf(a)),x instanceof li){if(y.add(x,a.Pd(b,x,x.location)),x instanceof Pr&&(x.placeholder!==null||b.dragsMembers))for(z=x.memberParts;z.next();)Tu(a,y,z.value,E,b,b.groupsAlwaysMove);for(z=x.linksConnected;z.next();){var te=z.value;if(!y.contains(te)){var re=te.fromNode,oe=te.toNode;re!==null&&y.contains(re)&&oe!==null&&y.contains(oe)&&Tu(a,y,te,E,b)}}if(b.dragsTree)for(x=x.Ou();x.next();)Tu(a,y,x.value,E,b)}else if(x instanceof Hn)for(y.add(x,a.Pd(b,x)),x=x.labelNodes;x.next();)Tu(a,y,x.value,E,b);else x instanceof eo||y.add(x,a.Pd(b,x,x.location))}function nd(a,y,x,E,b){if(y!==null&&y.count!==0){var z=je.alloc(),te=je.alloc();te.assign(x),isNaN(te.x)&&(te.x=0),isNaN(te.y)&&(te.y=0),(x=a.Mr)||vf(a,y);for(var re=Bn(),oe=Bn(),le=y.iterator,he=je.alloc();le.next();){var ge=le.key,Se=le.value;if(ge.Zc()){var we=Dg(a,ge,y);we!==null?re.push(new ie(ge,Se,we)):(!b||ge.canMove())&&(we=Se.point,z.assign(we),a.computeMove(ge,z.add(te),E,he),ge.location=he,Se.shifted===void 0&&(Se.shifted=new je),Se.shifted.assign(he.re(we)))}else le.key instanceof Hn&&oe.push(le.sa)}for(je.free(he),b=re.length,le=0;le<b;le++)ge=re[le],z.assign(ge.info.point),ge.Su.shifted===void 0&&(ge.Su.shifted=new je),ge.node.location=z.add(ge.Su.shifted);for(b=je.alloc(),le=je.alloc(),ge=oe.length,Se=0;Se<ge;Se++){var Ae=oe[Se];if(we=Ae.key,we instanceof Hn)if(we.suspendsRouting){we.Tg=null,he=we.fromNode;var Ne=we.toNode;if(a.draggedLink!==null&&E.dragsLink)if(Ne=Ae.value.point,we.dragComputation===null)y.add(we,a.Pd(E,we,te)),kh(we,te.x-Ne.x,te.y-Ne.y);else{Ae=je.allocAt(0,0),(he=we.i(0))&&he.w()&&Ae.assign(he);var $e=he=je.alloc().assign(Ae).add(te);E.isGridSnapEnabled&&(E.isGridSnapRealtime||a.lastInput.up)&&($e=je.alloc(),mf(a,we,he,$e,E)),he.assign(we.dragComputation(we,he,$e)).re(Ae),y.add(we,a.Pd(E,we,he)),kh(we,he.x-Ne.x,he.y-Ne.y),je.free(Ae),je.free(he),$e!==he&&je.free($e)}else he!==null&&(b.assign(he.location),$e=y.I(he),$e!==null&&b.re($e.point)),Ne!==null&&(le.assign(Ne.location),$e=y.I(Ne),$e!==null&&le.re($e.point)),he!==null&&Ne!==null?b.Xa(le)?(he=Ae.value.point,Ne=z,Ne.assign(b),Ne.re(he),y.add(we,a.Pd(E,we,b)),kh(we,Ne.x,Ne.y)):(we.suspendsRouting=!1,we.bb()):(Ae=Ae.value.point,he=he!==null?b:Ne!==null?le:te,y.add(we,a.Pd(E,we,he)),kh(we,he.x-Ae.x,he.y-Ae.y))}else(we.fromNode===null||we.toNode===null)&&(he=Ae.value.point,y.add(we,a.Pd(E,we,te)),kh(we,te.x-he.x,te.y-he.y))}je.free(z),je.free(te),je.free(b),je.free(le),Ot(re),Ot(oe),x||(os(a),id(a,y))}}_t.prototype.computeMove=function(a,y,x,E){if(E===void 0&&(E=new je),E.assign(y),a===null)return E;var b=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(b=je.alloc(),mf(this,a,y,b,x)),x=a.dragComputation!==null?a.dragComputation(a,y,b):b;var te=a.minLocation,re=te.x;isNaN(re)&&(re=z?Math.round(1e3*a.location.x)/1e3:a.location.x),te=te.y,isNaN(te)&&(te=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var oe=a.maxLocation,le=oe.x;return isNaN(le)&&(le=z?Math.round(1e3*a.location.x)/1e3:a.location.x),oe=oe.y,isNaN(oe)&&(oe=z?Math.round(1e3*a.location.y)/1e3:a.location.y),E.h(Math.max(re,Math.min(x.x,le)),Math.max(te,Math.min(x.y,oe))),b!==y&&je.free(b),E};function pf(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function mf(a,y,x,E,b){if(b===void 0&&(b=pf(a)),E.assign(x),y!==null){var z=a.grid;y=b.gridSnapCellSize,a=y.width,y=y.height;var te=b.gridSnapOrigin,re=te.x;if(te=te.y,b=b.gridSnapCellSpot,z!==null){var oe=z.gridCellSize;isNaN(a)&&(a=oe.width),isNaN(y)&&(y=oe.height),z=z.gridOrigin,isNaN(re)&&(re=z.x),isNaN(te)&&(te=z.y)}z=je.allocAt(0,0),z.yi(0,0,a,y,b),St.No(x.x,x.y,re+z.x,te+z.y,a,y,E),je.free(z)}}function vf(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof Hn&&(y.suspendsRouting=!0)}function id(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof Hn&&(x.suspendsRouting=!1,Xv(x)&&x.bb())}a.Mr=!1}}function Dg(a,y,x){return y=y.containingGroup,y!==null&&(a=Dg(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}be=_t.prototype,be.Pd=function(a,y,x){if(x===void 0)return new eh(Qn);var E=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(E=!1),E?new eh(new je(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new eh(x.copy())};function kg(a,y,x){if(y.diagram!==null&&y.diagram!==a&<("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&<("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&<("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&<("Cannot move a Layer before or after itself: "+y)),y.diagram!==a){y=y.name,a=a.Wa,x=a.count;for(var E=0;E<x;E++)a.M(E).name===y&<("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}be.Al=function(a){kg(this,a,null),a.Xe(this);var y=this.Wa,x=y.count-1;if(!a.isTemporary)for(;0<=x&&y.M(x).isTemporary;)x--;return y.Gb(x+1,a),this.cc!==null&&this.cb(qo,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},be.Ww=function(a,y){kg(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(ua,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;z<b;z++)if(x.M(z)===y){x.Gb(z,a);break}return this.cc!==null&&this.cb(qo,"layers",this,null,a,null,z),this.N(),0>E&&this.Ya(),this},be.Cy=function(a,y){kg(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(ua,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;z<b;z++)if(x.M(z)===y){x.Gb(z+1,a);break}return this.cc!==null&&this.cb(qo,"layers",this,null,a,null,z+1),this.N(),0>E&&this.Ya(),this},be.kA=function(a){if(a.diagram!==this&<("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var E=y.value,b=E.layerName;b!==a.name?E.layerName=b:E.layerName=""}this.cc!==null&&this.cb(ua,"layers",this,a,null,x,null),this.N(),this.Ya()}}},be.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},be.Yw=function(a){return this.pf===null&&(this.pf=new An),this.pf.add(a),this.model.Pe(a),this},be.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},be.Pe=function(a){return this.zg===null&&(this.zg=new An),this.zg.add(a),this},be.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},be.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==Aa&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,E=0;E<x;E++)y.M(E)(a)},be.cb=function(a,y,x,E,b,z,te){z===void 0&&(z=null),te===void 0&&(te=null);var re=new Go;re.diagram=this,re.change=a,re.propertyName=y,re.object=x,re.oldValue=E,re.oldParam=z,re.newValue=b,re.newParam=te,this.ds(re)},be.g=function(a,y,x,E,b){this.cb(Ro,a,this,y,x,E,b)},_t.prototype.changeState=function(a,y){if(a!==null&&a.diagram===this){var x=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var E=a.change;if(E===Ro){var b=a.object;if($o(b,a.propertyName,a.I(y)),b instanceof Mt){var z=b.part;z!==null&&z.Wb()}this.isModified=!0}else if(E===qo){var te=a.object,re=a.newParam,oe=a.newValue;if(te instanceof On)if(typeof re=="number"&&oe instanceof Mt){y?te.pc(re):te.Gb(re,oe);var le=te.part;le!==null&&le.Wb()}else typeof re=="number"&&oe instanceof La&&(oe.isRow?f1(te,re,y?void 0:oe):g1(te,re,y?void 0:oe));else if(te instanceof Ya){var he=a.oldParam===!0;typeof re=="number"&&oe instanceof Xi&&(y?(oe.isSelected=!1,oe.isHighlighted=!1,oe.Wb(),te.pc(he?re:-1,oe,he)):te.oi(re,oe,he))}else te instanceof _t?typeof re=="number"&&oe instanceof Ya&&(y?this.Wa.mb(re):(oe.Xe(this),this.Wa.Gb(re,oe))):lt("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(E===ua){var ge=a.object,Se=a.oldParam,we=a.oldValue;if(ge instanceof On)typeof Se=="number"&&we instanceof Mt?y?ge.Gb(Se,we):ge.pc(Se):typeof Se=="number"&&we instanceof La&&(we.isRow?f1(ge,Se,y?we:void 0):g1(ge,Se,y?we:void 0));else if(ge instanceof Ya){var Ae=a.newParam===!0;typeof Se=="number"&&we instanceof Xi&&(y?0>ge.Pa.indexOf(we)&&ge.oi(Se,we,Ae):(we.isSelected=!1,we.isHighlighted=!1,we.Wb(),ge.pc(Ae?Se:-1,we,Ae)))}else ge instanceof _t?typeof Se=="number"&&we instanceof Ya&&(y?(we.Xe(this),this.Wa.Gb(Se,we)):this.Wa.mb(Se)):lt("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==Aa&<("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},_t.prototype.Ea=function(a){return this.undoManager.Ea(a)},_t.prototype.eb=function(a){return this.undoManager.eb(a)},_t.prototype.Kf=function(){return this.undoManager.Kf()},_t.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},_t.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},_t.prototype.rp=function(){this.partManager.rp()};function Bg(a,y,x){var E=a.animationManager;if(a.vb||a.ld)a.Ca=x,wu(a),a.N(),a.Ee=!0,E.zb&&(Ju(E)||E.ce.add(E.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,wu(a);else{a.vb=!0;var b=a.viewportBounds.copy(),z=a.Aa,te=a.ya,re=a.zoomPoint.x,oe=a.zoomPoint.y,le=a.contentAlignment;isNaN(re)&&(le.$c()?le.Hf(or)?re=0:le.Hf(br)&&(re=z-1):re=le.sb()?le.x*(z-1):z/2),isNaN(oe)&&(le.$c()?le.Hf(Ui)?oe=0:le.Hf(co)&&(oe=te-1):oe=le.sb()?le.y*(te-1):te/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),x<a.minScale&&(x=a.minScale),x>a.maxScale&&(x=a.maxScale),z=je.allocAt(a.pa.x+re/y-re/x,a.pa.y+oe/y-oe/x),a.position=z,je.free(z),a.Ca=x,wu(a),a.vb=!1,a.onViewportBoundsChanged(b,a.viewportBounds,y,!1),Tl(a,!1),E.zb&&(Ju(E)||E.ce.add(E.H,"scale",y,a.Ca))}}_t.prototype.onViewportBoundsChanged=function(a,y,x,E){if(!a.D(y)){E===void 0&&(E=!1),E||(this.Ee=!0),this.vd=!0;var b=this.layout;b===null||!b.isViewportSized||this.autoScale!==ps||a.width===y.width&&a.height===y.height||b.C(),b=this.currentTool,this.Vk===!0&&b instanceof Ao&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Gl(b,this)),this.vb||this.invalidateViewport(a,y),Pu(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=E,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function Pu(a,y){var x=a.fe;if(x!==null&&x.visible){for(var E=Xe.alloc(),b=1,z=1,te=x.O.s,re=te.length,oe=0;oe<re;oe++){var le=te[oe],he=Math.abs(le.interval);2>he||(vv(le.figure)?z=z*he/St.vx(z,he):b=b*he/St.vx(b,he))}if(te=x.gridCellSize,E.h(z*te.width,b*te.height),y!==void 0)b=y.width,z=y.height,a=y.x,te=y.y;else{if(y=pt.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){pt.free(y);return}b=y.width,z=y.height,a=y.x,te=y.y,pt.free(y)}x.width=b+2*E.width,x.height=z+2*E.height,y=je.alloc(),St.No(a,te,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),Xe.free(E),x.part.location=y,je.free(y)}}_t.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),E=x.length,b=0;b<E;b++)x[b].isSelected=!1;y.ka(),y.clear(),y.freeze(),a||this.R("ChangedSelection",y)}},_t.prototype.select=function(a){a!==null&&a.diagram===this&&(!a.isSelected||1<this.selection.count)&&(this.R("ChangingSelection",this.selection),this.clearSelection(!0),a.isSelected=!0,this.R("ChangedSelection",this.selection))},_t.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),si(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];E instanceof Xi||lt("Diagram.selectCollection given something that is not a Part: "+E),E.isSelected=!0}else for(a=a.iterator;a.next();)y=a.value,y instanceof Xi||lt("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},_t.prototype.clearHighlighteds=function(){var a=this.highlighteds;if(0<a.count){for(var y=a.Fa(),x=y.length,E=0;E<x;E++)y[E].isHighlighted=!1;a.ka(),a.clear(),a.freeze()}},be=_t.prototype,be.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},be.Jz=function(a){a=new Fn().addAll(a);for(var y=this.highlighteds.copy().hp(a).iterator;y.next();)y.value.isHighlighted=!1;for(a=a.iterator;a.next();)y=a.value,y instanceof Xi||lt("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},be.scroll=function(a,y,x){x===void 0&&(x=1);var E=y==="up"||y==="down",b=0,z=je.alloc();if(a==="pixel")b=x;else if(a==="line")b=x*(E?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=E?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(b=x*Math.max(a-(E?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){b=this.documentBounds,x=this.viewportBounds,y==="up"?this.position=z.h(x.x,b.y):y==="left"?this.position=z.h(b.x,x.y):y==="down"?this.position=z.h(x.x,b.bottom-x.height):y==="right"&&(this.position=z.h(b.right-x.width,x.y)),je.free(z);return}lt("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}b/=this.scale,x=this.position,y==="up"?this.position=z.h(x.x,x.y-b):y==="down"?this.position=z.h(x.x,x.y+b):y==="left"?this.position=z.h(x.x-b,x.y):y==="right"?this.position=z.h(x.x+b,x.y):lt("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),je.free(z)},be.tv=function(a){var y=this.viewportBounds;y.Re(a)||(a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a)},be.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},be.op=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var x=this.pa;return(x.x!==0||x.y!==0)&&isFinite(x.x)&&isFinite(x.y)&&y.translate(-x.x,-x.y),a.copy().transform(this.Ab)},be.zA=function(a){var y=this.Ab,x=a.x,E=a.y,b=x+a.width,z=E+a.height,te=y.m11,re=y.m12,oe=y.m21,le=y.m22,he=y.dx,ge=y.dy,Se=x*te+E*oe+he;y=x*re+E*le+ge;var we=b*te+E*oe+he;return a=b*re+E*le+ge,E=x*te+z*oe+he,x=x*re+z*le+ge,te=b*te+z*oe+he,b=b*re+z*le+ge,z=Math.min(Se,we),Se=Math.max(Se,we),we=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,E),Se=Math.max(Se,E),we=Math.min(we,x),y=Math.max(y,x),z=Math.min(z,te),Se=Math.max(Se,te),we=Math.min(we,b),y=Math.max(y,b),new pt(z,we,Se-z,y-we)},be.Ps=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var x=this.pa;return(x.x!==0||x.y!==0)&&isFinite(x.x)&&isFinite(x.y)&&y.translate(-x.x,-x.y),vn(a.copy(),this.Ab)};function i0(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Ng(a){return a=Cf.get(a),a!==null?new a:new xo}_t.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,E=a.propertyName;if(x===Aa&&E[0]==="S")if(E==="StartingFirstTransaction"){var b=this;a=this.toolManager,a.mouseDownTools.each(function(oe){return oe.diagram=b}),a.mouseMoveTools.each(function(oe){return oe.diagram=b}),a.mouseUpTools.each(function(oe){return oe.diagram=b}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else E==="StartingUndo"||E==="StartingRedo"?(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc(),this.R("ChangingSelection",this.selection)):E==="StartedTransaction"&&(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc());else if(this.aa){this.aa=!1;try{if(a.modelChange===""&&x===Aa){(E==="FinishedUndo"||E==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),os(this));var z=this.animationManager;E==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||lf(z),E==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),E!=="CommittedTransaction"&&E!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var te=a.isTransactionFinished;if(te&&(i0(this),this.As.clear(),Vp(this.animationManager)),!this.Rt&&te&&this.lastInput.targetDiagram){this.Rt=!0;var re=this;Fr(function(){re.currentTool.standardMouseOver(),re.Rt=!1},10)}}}finally{this.aa=!0}}}};function Hd(a,y){y=y.O.s;for(var x=y.length,E=0;E<x;E++)rd(a,y[E])}function rd(a,y){if(y instanceof Rs){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof Fn&&x.Bg.add(a);var E=y.Eg;if(E!==null&&E.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),x.hn)if(x=x.getAttribute("src")||"",E=a.Og.I(x),E===null)E=[],E.push(y),a.Og.add(x,E);else{for(a=0;a<E.length;a++)if(E[a]===y)return;E.push(y)}}}}function Tg(a,y){if(y instanceof Rs){var x=y.element;if(x!==null&&x instanceof HTMLImageElement&&x.hn){var E=x.getAttribute("src")||"",b=a.Og.I(E);if(b!==null){for(var z=0;z<b.length;z++)if(b[z]===y){b.splice(z,1),b.length===0&&(a.Og.remove(E),x.Fq&&x.removeEventListener("load",x.Fq),x.Yp&&x.removeEventListener("error",x.Yp),delete x.Fq,delete x.Yp,x.Bg instanceof Fn&&x.Bg.remove(a),If(E));break}}}}}_t.prototype.Wd=function(){this.partManager.Wd()},_t.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},_t.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},_t.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},_t.prototype.Vb=function(a){return this.partManager.Vb(a)},_t.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},be=_t.prototype,be.Lc=function(a){return this.partManager.Lc(a)},be.ii=function(a){return this.partManager.ii(a)},be.Kc=function(a){return this.partManager.Kc(a)},be.ms=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ms.apply(this.partManager,y instanceof Array?y:ci(Xn(y)))},be.ls=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ls.apply(this.partManager,y instanceof Array?y:ci(Xn(y)))};function wu(a){var y=a.pa,x=a.Ca;a.Rw.h(y.x,y.y,Math.max(a.Aa,0)/x,Math.max(a.ya,0)/x),a.vd=!0}function Og(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),Tl(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}be.Va=function(){if(this.Zi){var a=pt.alloc();Og(this,this.computeBounds(a)),pt.free(a)}},be.rz=function(){for(var a=new Fn,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&a.add(x)}for(y=this.links;y.next();)x=y.value,x.isTopLevel&&a.add(x);return a.iterator},be.qz=function(){return this.ai.iterator},be.Uz=function(a){os(this),a&&yf(this,!0),this.ld?Ig(this,!1):(this.Jk=!0,Sl(this))};function yf(a,y){for(var x=a.ai.iterator;x.next();)r0(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function r0(a,y,x){if(y!==null){for(var E=y.gl.iterator;E.next();)r0(a,E.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function Ig(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var E=a.undoManager.transactionLevel,b=a.layout,z=a.animationManager;try{E===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=E&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||ku(z,"Layout")),a.xh=!1;for(var te=a.ai.iterator;te.next();)Rg(a,te.value,y,E);b.isValidLayout||(!y||b.isRealtime||b.isRealtime===null||E===0?(b.doLayout(a),os(a),b.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,E===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||E!==0&&E!==1||lf(z),a.aa=x}}}function Rg(a,y,x,E){if(y!==null){for(var b=y.gl.iterator;b.next();)Rg(a,b.value,x,E);b=y.layout,b===null||b.isValidLayout||(!x||b.isRealtime||E===0?(y.rh=!y.location.w(),b.doLayout(y),y.C(32),Fc(a,y),b.isValidLayout=!0):a.xh=!0)}}be.yz=function(){for(var a=new An,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function iv(a){function y(b){var z=b.toLowerCase(),te=new An;x.add(b,te),x.add(z,te),E.add(b,b),E.add(z,b)}var x=new Wt,E=new Wt;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=E}function o0(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function Sf(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;lt("Unknown DiagramEvent name: "+y)}be.Bj=function(a,y){return a=Sf(this,a),a!==null&&a.add(y),this},be.am=function(a,y){a=Sf(this,a),a!==null&&a.remove(y)},be.R=function(a,y,x){var E=Sf(this,a),b=new bl;if(b.diagram=this,a=o0(this,a),a!==null&&(b.name=a),y!==void 0&&(b.subject=y),x!==void 0&&(b.parameter=x),y=E.length,y===1)E.M(0)(b);else if(y!==0)for(E=E.Fa(),x=0;x<y;x++)(0,E[x])(b)};function xf(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}be.Yj=function(a,y){return Pf(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},_t.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?wg(this,a):a.assign(this.documentBounds)};function Pf(a,y,x,E){var b=a.Xh;if(b===null&&(a.Xh=b=new cp(a.avoidanceCellSize)),b.vs||b.group!==x||b.Yx!==E){if(b.Hx=Math.max(b.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),b.Ix=Math.max(b.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),x!==null&&(x=a0(a,x)),x===null){y=pt.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),b.initialize(y);for(var z=a.nodes;z.next();){var te=z.value,re=te.layer;re!==null&&re.visible&&!re.isTemporary&&wf(a,te,E,y)}pt.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),b.initialize(y)),y=pt.alloc(),z=x.memberParts;z.next();)te=z.value,te instanceof li&&wf(a,te,E,y);pt.free(y)}b.group=x,b.Yx=E,b.vs=!1}else y&&sS(b);return b}function a0(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?a0(a,y.containingGroup):null}function wf(a,y,x,E){if(y!==x&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(E),a=a.Xh;var b=y.x,z=y.y;if(Hf(a,b,z))for(x=(z-a.Od)/a.sc|0,E=Math.min((b+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((z+y.height-a.Od)/a.sc|0,a.ei),b=(b-a.Nd)/a.rc|0;b<=E;b++)if(z=a.ac[b],z.fill)z.fill(Nh,x,y+1);else for(var te=x;te<=y;te++)z[te]=Nh}else if(y instanceof Pr)for(y=y.memberParts;y.next();)b=y.value,b instanceof li&&wf(a,b,x,E)}}function wh(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}_t.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():jg(this)};function jg(a){a.vk===-1&&(a.vk=Fr(function(){if(a.vk!==-1&&(a.ug(),a.lastInput.event!==null)){var y=a.computeAutoScrollPosition(a.wp);y.Xa(a.position)||(a.position=y,a.lastInput.documentPoint=a.Ps(a.wp),a.doMouseMove(),a.Zi=!0,y=pt.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Og(a,y),pt.free(y),a.Fc=!0,a.bd(),jg(a))}},a.vp))}_t.prototype.ug=function(){this.vk!==-1&&(un.clearTimeout(this.vk),this.vk=-1)},_t.prototype.computeAutoScrollPosition=function(a){var y=this.position,x=this.xp;if(0>=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var E=this.viewportBounds,b=this.scale;E=pt.allocAt(0,0,E.width*b,E.height*b);var z=je.allocAt(0,0);if(a.x>=E.x&&a.x<E.x+x.left&&this.allowHorizontalScroll){var te=Math.max(this.scrollHorizontalLineChange,1);te|=0,z.x-=te,a.x<E.x+x.left/2&&(z.x-=te),a.x<E.x+x.left/4&&(z.x-=4*te)}else a.x<=E.x+E.width&&a.x>E.x+E.width-x.right&&this.allowHorizontalScroll&&(te=Math.max(this.scrollHorizontalLineChange,1),te|=0,z.x+=te,a.x>E.x+E.width-x.right/2&&(z.x+=te),a.x>E.x+E.width-x.right/4&&(z.x+=4*te));return a.y>=E.y&&a.y<E.y+x.top&&this.allowVerticalScroll?(te=Math.max(this.scrollVerticalLineChange,1),te|=0,z.y-=te,a.y<E.y+x.top/2&&(z.y-=te),a.y<E.y+x.top/4&&(z.y-=4*te)):a.y<=E.y+E.height&&a.y>E.y+E.height-x.bottom&&this.allowVerticalScroll&&(te=Math.max(this.scrollVerticalLineChange,1),te|=0,z.y+=te,a.y>E.y+E.height-x.bottom/2&&(z.y+=te),a.y>E.y+E.height-x.bottom/4&&(z.y+=4*te)),z.Xa(Qn)||(y=new je(y.x+z.x/b,y.y+z.y/b)),pt.free(E),je.free(z),y},be=_t.prototype,be.Cs=function(){return null},be.av=function(){return null},be.bs=function(a,y){this.pj.add(a,y)},be.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Pr&&(y.$p=null)})};function Mc(a,y,x){function E(){var he=+new Date;for(z=!0,te.reset();te.next();)if(!te.value[0].al){z=!1;break}z||he-le>oe?y(x,b,re):un.requestAnimationFrame(E)}for(var b=x.callback,z=!0,te=a.Og.iterator;te.next();)if(!te.value[0].al){z=!1;break}if(typeof b!="function"||z)return y(x,b,a);var re=a,oe=x.callbackTimeout||300,le=+new Date;return un.requestAnimationFrame(function(){E()}),null}be.Wz=function(a){return la?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},be.Jx=function(a){return a===void 0&&(a={}),Mc(this,this.Xz,a)},be.Xz=function(a,y,x){var E=s0(x,a,"canvas",null);if(E===null)return null;x=E.Z.canvas;var b=null;if(x!==null)switch(b=a.returnType,b===void 0?b="string":b=b.toLowerCase(),b){case _d+"data":b=E.getImageData(0,0,x.width,x.height);break;case _d:E=(a.document||document).createElement("img"),E.src=x.toDataURL(a.type,a.details),b=E;break;case"blob":return typeof y!="function"&<('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:b=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(b),null):b};function s0(a,y,x,E){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&<("properties argument must be an Object.");var b=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var te=y.maxSize;y.maxSize===void 0&&(te=x==="SVG"?new Xe(1/0,1/0):new Xe(2e3,2e3));var re=y.position||null,oe=y.parts||null,le=y.padding===void 0?1:y.padding,he=y.background||null,ge=y.omitTemporary;ge===void 0&&(ge=!0);var Se=y.document||document,we=y.elementFinished||null,Ae=y.showTemporary;Ae===void 0&&(Ae=!ge),y=y.showGrid,y===void 0&&(y=Ae),b!==null&&isNaN(b.width)&&isNaN(b.height)&&(b=null),typeof le=="number"?le=new ri(le):le instanceof ri||lt("MakeImage padding must be a Margin or a number."),le.left=Math.max(le.left,0),le.right=Math.max(le.right,0),le.top=Math.max(le.top,0),le.bottom=Math.max(le.bottom,0),a.ib.Vc(!0),ge=new Il(null,Se,void 0,!0);var Ne=ge.context;if(!(b||z||oe||re))return ge.width=a.Aa+Math.ceil(le.left+le.right),ge.height=a.ya+Math.ceil(le.top+le.bottom),x==="SVG"?E===null?null:(E.resize(ge.width,ge.height,ge.width,ge.height),E.ownerDocument=Se,E.hs=we,gf(a,E.context,le,new Xe(ge.width,ge.height),a.Ca,a.pa,oe,he,Ae,y),E.context):(a.Xm=!1,gf(a,Ne,le,new Xe(ge.width,ge.height),a.Ca,a.pa,oe,he,Ae,y),a.Xm=!0,ge.context);var $e=a.Pp,Ke=a.documentBounds.copy();if(Ke.Fv(a.yb),Ae)for(var at=a.Wa.s,dt=at.length,ft=0;ft<dt;ft++){var wt=at[ft];if(wt.visible&&wt.isTemporary){wt=wt.Pa.s;for(var Gt=wt.length,oi=0;oi<Gt;oi++){var bi=wt[oi];bi.isInDocumentBounds&&bi.isVisible()&&(bi=bi.actualBounds,bi.w()&&Ke.ed(bi))}}}if(at=new je(Ke.x,Ke.y),oe!==null){for(dt=new pt(0,0,0,0),ft=!0,wt=oe.iterator,wt.reset();wt.next();)Gt=wt.value,Gt instanceof Xi&&(oi=Gt.layer,oi!==null&&!oi.visible||oi!==null&&!Ae&&oi.isTemporary||!Gt.isVisible()||(Gt=Gt.actualBounds,Gt.w()&&(ft?(ft=!1,dt.assign(Gt)):dt.ed(Gt))));Ke.width=dt.width,Ke.height=dt.height,at.x=dt.x,at.y=dt.y}return re!==null&&re.w()&&(at=re,z||(z=$e)),dt=re=0,le!==null&&(re=le.left+le.right,dt=le.top+le.bottom),ft=wt=0,b!==null&&(wt=b.width,ft=b.height,isFinite(wt)&&(wt=Math.max(0,wt-re)),isFinite(ft)&&(ft=Math.max(0,ft-dt))),b!==null&&z!==null?(z==="NaN"&&(z=$e),b.w()?(b=wt,Ke=ft):isNaN(ft)?(b=wt,Ke=Ke.height*z):(b=Ke.width*z,Ke=ft)):b!==null?b.w()?(z=Math.min(wt/Ke.width,ft/Ke.height),b=wt,Ke=ft):isNaN(ft)?(z=wt/Ke.width,b=wt,Ke=Ke.height*z):(z=ft/Ke.height,b=Ke.width*z,Ke=ft):z!==null?z==="NaN"&&te.w()?(z=Math.min((te.width-re)/Ke.width,(te.height-dt)/Ke.height),z>$e?(z=$e,b=Ke.width,Ke=Ke.height):(b=te.width,Ke=te.height)):(b=Ke.width*z,Ke=Ke.height*z):(z=$e,b=Ke.width,Ke=Ke.height),le!==null?(b+=re,Ke+=dt):le=new ri(0),te!==null&&($e=te.width,te=te.height,isNaN($e)&&($e=2e3),isNaN(te)&&(te=2e3),isFinite($e)&&(b=Math.min(b,$e)),isFinite(te)&&(Ke=Math.min(Ke,te))),ge.width=Math.ceil(b),ge.height=Math.ceil(Ke),x==="SVG"?E===null?null:(E.resize(ge.width,ge.height,ge.width,ge.height),E.ownerDocument=Se,E.hs=we,gf(a,E.context,le,new Xe(Math.ceil(b),Math.ceil(Ke)),z,at,oe,he,Ae,y),E.context):(a.Xm=!1,gf(a,Ne,le,new Xe(Math.ceil(b),Math.ceil(Ke)),z,at,oe,he,Ae,y),a.Xm=!0,ge.context)}pn.Object.defineProperties(_t.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof ve||(a===""&&(a="default"),a=a.toLowerCase(),a!==this.nl&&(this.nl=a,a==="default"||a==="canvas"?(a=this.pj.get("svg"),a!==null&&a.Oa.remove(),this.ta&&(this.ib=this.ta.context)):a==="svg"?(this.pj.contains("svg")?a=this.pj.get("svg"):(a=new Cu(this,un.document),this.bs("svg",a)),this.div!==null&&this.div.appendChild(a.Oa),this.ib=a.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):a!=="debug"||this.pj.contains("SVG")||(a=new Cu(this,un.document),this.bs("SVG",a),a.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(a.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(a){if(this.Ka!==a){var y=this.Ka;y!==null?(y.H=void 0,y.goDiagram=void 0,y.go=void 0,y.innerHTML="",this.ta!==null&&(y=this.ta.Oa,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),y=this.toolManager,y!==null&&(y.mouseDownTools.each(function(x){x.cancelWaitAfter()}),y.mouseMoveTools.each(function(x){x.cancelWaitAfter()}),y.mouseUpTools.each(function(x){x.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(un,"resize",this.Ov,!1),this.removeEventListener(un,"wheel",this.$j,!0),Bu===this&&(Bu=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),xg(this,a),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(a){this.nt!==a&&(this.nt=a,a!==null&&(this.Vt=a.fromPort,this.Wt=a.toPort))}},Mx:{get:function(){return this.Vt},set:function(a){this.Vt=a}},Nx:{get:function(){return this.Wt},set:function(a){this.Wt=a}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a,this.cc.skipsUndoManager=a}},delaysLayout:{get:function(){return this.lt},set:function(a){this.lt=a}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&ai(a,"0 <= value <= 1",_t,"opacity"),this.pb=a,this.g("opacity",y,a),this.N())}},validCycle:{get:function(){return this.wu},set:function(a){var y=this.wu;y!==a&&(this.wu=a,this.g("validCycle",y,a))}},layers:{get:function(){return this.Wa.iterator}},isModelReadOnly:{get:function(){var a=this.cc;return a===null?!1:a.isReadOnly},set:function(a){var y=this.cc;y!==null&&(y.isReadOnly=a)}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},isEnabled:{get:function(){return this.Jd},set:function(a){var y=this.Jd;y!==a&&(this.Jd=a,this.g("isEnabled",y,a))}},allowClipboard:{get:function(){return this.Us},set:function(a){var y=this.Us;y!==a&&(this.Us=a,this.g("allowClipboard",y,a))}},allowCopy:{get:function(){return this.Fi},set:function(a){var y=this.Fi;y!==a&&(this.Fi=a,this.g("allowCopy",y,a))}},allowDelete:{get:function(){return this.Gi},set:function(a){var y=this.Gi;y!==a&&(this.Gi=a,this.g("allowDelete",y,a))}},allowDragOut:{get:function(){return this.Vs},set:function(a){var y=this.Vs;y!==a&&(this.Vs=a,this.g("allowDragOut",y,a))}},allowDrop:{get:function(){return this.Ws},set:function(a){var y=this.Ws;y!==a&&(this.Ws=a,this.g("allowDrop",y,a))}},allowTextEdit:{get:function(){return this.Pi},set:function(a){var y=this.Pi;y!==a&&(this.Pi=a,this.g("allowTextEdit",y,a))}},allowGroup:{get:function(){return this.Hi},set:function(a){var y=this.Hi;y!==a&&(this.Hi=a,this.g("allowGroup",y,a))}},allowUngroup:{get:function(){return this.Qi},set:function(a){var y=this.Qi;y!==a&&(this.Qi=a,this.g("allowUngroup",y,a))}},allowInsert:{get:function(){return this.Ys},set:function(a){var y=this.Ys;y!==a&&(this.Ys=a,this.g("allowInsert",y,a))}},allowLink:{get:function(){return this.Ii},set:function(a){var y=this.Ii;y!==a&&(this.Ii=a,this.g("allowLink",y,a))}},allowRelink:{get:function(){return this.Ki},set:function(a){var y=this.Ki;y!==a&&(this.Ki=a,this.g("allowRelink",y,a))}},allowMove:{get:function(){return this.Ji},set:function(a){var y=this.Ji;y!==a&&(this.Ji=a,this.g("allowMove",y,a))}},allowReshape:{get:function(){return this.Li},set:function(a){var y=this.Li;y!==a&&(this.Li=a,this.g("allowReshape",y,a))}},allowResize:{get:function(){return this.Mi},set:function(a){var y=this.Mi;y!==a&&(this.Mi=a,this.g("allowResize",y,a))}},allowRotate:{get:function(){return this.Ni},set:function(a){var y=this.Ni;y!==a&&(this.Ni=a,this.g("allowRotate",y,a))}},allowSelect:{get:function(){return this.Oi},set:function(a){var y=this.Oi;y!==a&&(this.Oi=a,this.g("allowSelect",y,a))}},allowUndo:{get:function(){return this.Zs},set:function(a){var y=this.Zs;y!==a&&(this.Zs=a,this.g("allowUndo",y,a))}},allowZoom:{get:function(){return this.at},set:function(a){var y=this.at;y!==a&&(this.at=a,this.g("allowZoom",y,a))}},hasVerticalScrollbar:{get:function(){return this.nn},set:function(a){var y=this.nn;y!==a&&(this.nn=a,this.Ee=!0,this.N(),this.g("hasVerticalScrollbar",y,a),Tl(this,!1))}},hasHorizontalScrollbar:{get:function(){return this.mn},set:function(a){var y=this.mn;y!==a&&(this.mn=a,this.Ee=!0,this.N(),this.g("hasHorizontalScrollbar",y,a),Tl(this,!1))}},allowHorizontalScroll:{get:function(){return this.Xs},set:function(a){var y=this.Xs;y!==a&&(this.Xs=a,this.g("allowHorizontalScroll",y,a),Tl(this,!1))}},allowVerticalScroll:{get:function(){return this.$s},set:function(a){var y=this.$s;y!==a&&(this.$s=a,this.g("allowVerticalScroll",y,a),Tl(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&ai(a,">= 0",_t,"scrollHorizontalLineChange"),this.iu=a,this.g("scrollHorizontalLineChange",y,a))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(a){var y=this.mu;y!==a&&(0>a&&ai(a,">= 0",_t,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var E=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===E&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===E&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===E&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0<a)){this.R("ChangingSelection",this.selection),y=this.selection.Fa();for(var x=0;x<a;x++)y[x].isSelected=!1;this.R("ChangedSelection",this.selection)}}else ai(a,">= 0",_t,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(a){var y=this.St;y!==a&&(this.St=a,this.g("nodeSelectionAdornmentTemplate",y,a))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(a){var y=this.wt;y!==a&&(this.wt=a,this.g("groupSelectionAdornmentTemplate",y,a))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(a){var y=this.Kt;y!==a&&(this.Kt=a,this.g("linkSelectionAdornmentTemplate",y,a))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var a=this.undoManager;return a.isEnabled?a.currentTransaction!==null?!0:this.rn&&this.Ce!==a.historyIndex:this.rn},set:function(a){if(this.rn!==a){this.rn=a;var y=this.undoManager;!a&&y.isEnabled&&(this.Ce=y.historyIndex),a||i0(this)}}},model:{get:function(){return this.cc},set:function(a){var y=this.cc;if(y!==a){this.currentTool.doCancel(),y&&y.undoManager!==a.undoManager&&y.undoManager.isInTransaction&<("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=Sg(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var E=this.vb;this.vb=!0,ku(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(z){return y.ik(z)}),y.ik(this.Oc)),this.cc=a,this.partManager=Ng(this.cc.type);for(var b=0;b<x.length;b++)this.add(x[b]);a.Pe(this.Hb),this.partManager.addAllModeledParts(),a.ik(this.Hb),a.Pe(this.Oc),this.pf!==null&&this.pf.each(function(z){return a.Pe(z)}),this.vb=E,this.Ya(),this.vb||this.N(),y&&a.undoManager.copyProperties(y.undoManager)}}},aa:{get:function(){return this.rw},set:function(a){this.rw=a}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(a){this.Iw=a}},Ns:{get:function(){return this.ou},set:function(a){this.ou=a}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(a){var y=this.Lg.I("");y!==a&&(this.Lg.add("",a),this.g("nodeTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(a){var y=this.Lg;y!==a&&(this.Lg=a,this.g("nodeTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(a){var y=this.Yi.I("");y!==a&&(this.Yi.add("",a),this.g("groupTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(a){var y=this.Yi;y!==a&&(this.Yi=a,this.g("groupTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(a){var y=this.Kh.I("");y!==a&&(this.Kh.add("",a),this.g("linkTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(a){var y=this.Kh;y!==a&&(this.Kh=a,this.g("linkTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(a){var y=this.ta;y!==null&&(y=y.Oa,y instanceof SVGElement||(a?(this.lastInput.bubbles=!1,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.addEventListener(un,"pointermove",this.dk,!0),this.addEventListener(un,"pointerdown",this.ui,!0),this.addEventListener(un,"pointerup",this.fk,!0),this.addEventListener(un,"pointerout",this.ek,!0),this.addEventListener(un,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(un,"wheel",this.$j,!0),this.addEventListener(un,"selectstart",this.preventDefault,!1)):(this.removeEventListener(un,"pointermove",this.dk,!0),this.removeEventListener(un,"pointerdown",this.ui,!0),this.removeEventListener(un,"pointerup",this.fk,!0),this.removeEventListener(un,"pointerout",this.ek,!0),this.removeEventListener(un,"pointercancel",this.ck,!0),this.addEventListener(y,"pointermove",this.dk,!1),this.addEventListener(y,"pointerdown",this.ui,!1),this.addEventListener(y,"pointerup",this.fk,!1),this.addEventListener(y,"pointerout",this.ek,!1),this.addEventListener(y,"pointercancel",this.ck,!1),this.removeEventListener(un,"wheel",this.$j,!0),this.removeEventListener(un,"selectstart",this.preventDefault,!1),this.addEventListener(y,"wheel",this.$j,!1)),this.qw=a))}},position:{get:function(){return this.pa},set:function(a){var y=je.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),_p(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?wu(this):(this.vb=!0,a=this.scale,Cg(this,this.Sp,this.Aa/a,this.ya/a,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(x,this.viewportBounds,this.Ca,!1)}je.free(y)}},initialPosition:{get:function(){return this.zt},set:function(a){this.zt.D(a)||(this.zt=a.J())}},initialScale:{get:function(){return this.At},set:function(a){this.At!==a&&(this.At=a)}},grid:{get:function(){return this.fe===null&&(this.fe=$p(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=$p(this)),a.type!==On.Grid&<("Diagram.grid must be a Panel of type Panel.Grid");var x=y.panel;x!==null&&x.remove(y),this.fe=a,a.name="GRID",x!==null&&x.add(a),Pu(this),this.N(),this.g("grid",y,a)}}},viewportBounds:{get:function(){return this.Rw}},viewSize:{get:function(){return this.wo},set:function(a){var y=this.viewSize;y.D(a)||(this.wo=a=a.J(),this.ya=this.Aa=0,a.w()?(this.Aa=a.width,this.ya=a.height):this.Ka!==null&&(this.Aa=this.Ka.clientWidth||1,this.ya=this.Ka.clientHeight||1),wu(this),this.Ya(),this.g("viewSize",y,a),this.redraw())}},fixedBounds:{get:function(){return this.ut},set:function(a){var y=this.ut;y.D(a)||(a.width!==-1/0&&a.height!==1/0&&a.height!==-1/0||lt("fixedBounds width/height must not be Infinity"),this.ut=a=a.J(),this.Ya(),this.g("fixedBounds",y,a))}},scrollMargin:{get:function(){return this.rj},set:function(a){typeof a=="number"&&(a=new ri(a));var y=this.rj;y.D(a)||(this.rj=a=a.J(),this.g("scrollMargin",y,a),this.hk())}},scrollMode:{get:function(){return this.sj},set:function(a){var y=this.sj;y!==a&&(this.sj=a,a===Ch&&Tl(this,!1),this.g("scrollMode",y,a),this.Ee=!0,this.N())}},scrollsPageOnFocus:{get:function(){return this.nu},set:function(a){var y=this.nu;y!==a&&(this.nu=a,this.g("scrollsPageOnFocus",y,a))}},positionComputation:{get:function(){return this.Zt},set:function(a){var y=this.Zt;y!==a&&(this.Zt=a,Tl(this,!1),this.g("positionComputation",y,a))}},scaleComputation:{get:function(){return this.fu},set:function(a){var y=this.fu;y!==a&&(this.fu=a,Bg(this,this.scale,this.scale),this.g("scaleComputation",y,a))}},documentBounds:{get:function(){return this.Sp}},isVirtualized:{get:function(){return this.It},set:function(a){var y=this.It;y!==a&&(this.It=a,this.g("isVirtualized",y,a))}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&Bg(this,y,a)}},defaultScale:{get:function(){return this.Pp},set:function(a){this.Pp=a}},autoScale:{get:function(){return this.yh},set:function(a){var y=this.yh;y!==a&&(this.yh=a,this.g("autoScale",y,a),a!==ps&&Tl(this,!1))}},initialAutoScale:{get:function(){return this.Fg},set:function(a){var y=this.Fg;y!==a&&(this.Fg=a,this.g("initialAutoScale",y,a))}},initialViewportSpot:{get:function(){return this.Bt},set:function(a){var y=this.Bt;y!==a&&(a.sb()||lt("initialViewportSpot must be a specific Spot: "+a),this.Bt=a,this.g("initialViewportSpot",y,a))}},initialDocumentSpot:{get:function(){return this.yt},set:function(a){var y=this.yt;y!==a&&(a.sb()||lt("initialViewportSpot must be a specific Spot: "+a),this.yt=a,this.g("initialDocumentSpot",y,a))}},minScale:{get:function(){return this.Ot},set:function(a){var y=this.Ot;y!==a&&(0<a?(this.Ot=a,this.g("minScale",y,a),a>this.scale&&(this.scale=a)):ai(a,"> 0",_t,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0<a?(this.Mt=a,this.g("maxScale",y,a),a<this.scale&&(this.scale=a)):ai(a,"> 0",_t,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(a){this.zu.D(a)||(this.zu=a=a.J())}},contentAlignment:{get:function(){return this.zk},set:function(a){var y=this.zk;y.D(a)||(this.zk=a=a.J(),this.g("contentAlignment",y,a),Tl(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(a){var y=this.pq;y.D(a)||(this.pq=a=a.J(),this.g("initialContentAlignment",y,a))}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new ri(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.Ya(),this.g("padding",y,a))}},partManager:{get:function(){return this.Pc},set:function(a){var y=this.Pc;y!==a&&(a.diagram!==null&<("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)np(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Eh&&a!==Fa&&a!==Ef&<("Unknown Diagram.treeCollapsePolicy: "+a),this.uu=a,this.g("treeCollapsePolicy",y,a))}},Ue:{get:function(){return this.pw},set:function(a){this.pw=a}},avoidanceCellSize:{get:function(){return this.aw},set:function(a){this.Xh=null,this.aw=new Xe(Math.max(1,a.width),Math.max(1,a.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(a){this.bw=Math.max(1,a)}},autoScrollInterval:{get:function(){return this.vp},set:function(a){var y=this.vp;y!==a&&(this.vp=a,this.g("autoScrollInterval",y,a))}},autoScrollRegion:{get:function(){return this.xp},set:function(a){typeof a=="number"&&(a=new ri(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),pn.Object.defineProperties(_t,{licenseKey:{get:function(){return Vg.jc()},set:function(a){Vg.add(a.replace(/\s/g,""))}},version:{get:function(){return Vd}}}),_t.prototype.makeImageData=_t.prototype.Jx,_t.prototype.makeImage=_t.prototype.Wz,_t.prototype.cacheGroupExternalLinks=_t.prototype.Fu,_t.prototype.addRenderer=_t.prototype.bs,_t.prototype.makeSVG=_t.prototype.av,_t.prototype.makeSvg=_t.prototype.Cs,_t.prototype.stopAutoScroll=_t.prototype.ug,_t.prototype.doAutoScroll=_t.prototype.gs,_t.prototype.isUnoccupied=_t.prototype.Yj,_t.prototype.raiseDiagramEvent=_t.prototype.R,_t.prototype.removeDiagramListener=_t.prototype.am,_t.prototype.addDiagramListener=_t.prototype.Bj,_t.prototype.findTreeRoots=_t.prototype.yz,_t.prototype.layoutDiagram=_t.prototype.Uz,_t.prototype.findTopLevelGroups=_t.prototype.qz,_t.prototype.findTopLevelNodesAndLinks=_t.prototype.rz,_t.prototype.ensureBounds=_t.prototype.Va,_t.prototype.findLinksByExample=_t.prototype.ls,_t.prototype.findNodesByExample=_t.prototype.ms,_t.prototype.findLinkForData=_t.prototype.Kc,_t.prototype.findNodeForData=_t.prototype.ii,_t.prototype.findPartForData=_t.prototype.Lc,_t.prototype.findLinkForKey=_t.prototype.findLinkForKey,_t.prototype.findNodeForKey=_t.prototype.Vb,_t.prototype.findPartForKey=_t.prototype.findPartForKey,_t.prototype.rebuildParts=_t.prototype.Wd,_t.prototype.transformViewToDoc=_t.prototype.Ps,_t.prototype.transformRectDocToView=_t.prototype.zA,_t.prototype.transformDocToView=_t.prototype.op,_t.prototype.centerRect=_t.prototype.es,_t.prototype.scrollToRect=_t.prototype.tv,_t.prototype.scroll=_t.prototype.scroll,_t.prototype.highlightCollection=_t.prototype.Jz,_t.prototype.highlight=_t.prototype.Iz,_t.prototype.selectCollection=_t.prototype.rA,_t.prototype.select=_t.prototype.select,_t.prototype.updateAllRelationshipsFromData=_t.prototype.rp,_t.prototype.updateAllTargetBindings=_t.prototype.updateAllTargetBindings,_t.prototype.commit=_t.prototype.commit,_t.prototype.rollbackTransaction=_t.prototype.Kf,_t.prototype.commitTransaction=_t.prototype.eb,_t.prototype.startTransaction=_t.prototype.Ea,_t.prototype.raiseChanged=_t.prototype.g,_t.prototype.raiseChangedEvent=_t.prototype.cb,_t.prototype.removeChangedListener=_t.prototype.ik,_t.prototype.addChangedListener=_t.prototype.Pe,_t.prototype.removeModelChangedListener=_t.prototype.mA,_t.prototype.addModelChangedListener=_t.prototype.Yw,_t.prototype.findLayer=_t.prototype.Qj,_t.prototype.removeLayer=_t.prototype.kA,_t.prototype.addLayerAfter=_t.prototype.Cy,_t.prototype.addLayerBefore=_t.prototype.Ww,_t.prototype.addLayer=_t.prototype.Al,_t.prototype.moveParts=_t.prototype.moveParts,_t.prototype.copyParts=_t.prototype.Kj,_t.prototype.removeParts=_t.prototype.Is,_t.prototype.remove=_t.prototype.remove,_t.prototype.add=_t.prototype.add,_t.prototype.clearDelayedGeometries=_t.prototype.bx,_t.prototype.setProperties=_t.prototype.nm,_t.prototype.attach=_t.prototype.Du,_t.prototype.set=_t.prototype.set,_t.prototype.resetInputOptions=_t.prototype.Sx,_t.prototype.setInputOption=_t.prototype.sA,_t.prototype.getInputOption=_t.prototype.Ql,_t.prototype.resetRenderingHints=_t.prototype.Tx,_t.prototype.setRenderingHint=_t.prototype.Xx,_t.prototype.getRenderingHint=_t.prototype.Gf,_t.prototype.maybeUpdate=_t.prototype.bd,_t.prototype.requestUpdate=_t.prototype.$b,_t.prototype.delayInitialization=_t.prototype.Xy,_t.prototype.isUpdateRequested=_t.prototype.Pz,_t.prototype.invalidateDocumentBounds=_t.prototype.Ya,_t.prototype.findObjectsNear=_t.prototype.og,_t.prototype.findPartsNear=_t.prototype.mz,_t.prototype.findObjectsIn=_t.prototype.Cf,_t.prototype.findPartsIn=_t.prototype.ux,_t.prototype.findObjectsAt=_t.prototype.ji,_t.prototype.findPartsAt=_t.prototype.lz,_t.prototype.findObjectAt=_t.prototype.ic,_t.prototype.findPartAt=_t.prototype.Ol,_t.prototype.focusObject=_t.prototype.zz,_t.prototype.alignDocument=_t.prototype.Jy,_t.prototype.zoomToRect=_t.prototype.BA,_t.prototype.zoomToFit=_t.prototype.zoomToFit,_t.prototype.diagramScroll=_t.prototype.kx,_t.prototype.focus=_t.prototype.focus;var Cf=new Wt,l0=null,la=un.document!==void 0,Gd=null,od="",ps=new Kt(_t,"None",0),al=new Kt(_t,"Uniform",1),ad=new Kt(_t,"UniformToFill",2),Lc=new Kt(_t,"CycleAll",10),zg=new Kt(_t,"CycleNotDirected",11),Zg=new Kt(_t,"CycleNotDirectedFast",12),Wg=new Kt(_t,"CycleNotUndirected",13),Hg=new Kt(_t,"CycleDestinationTree",14),Gg=new Kt(_t,"CycleSourceTree",15),Ch=new Kt(_t,"DocumentScroll",1),bc=new Kt(_t,"InfiniteScroll",2),Eh=new Kt(_t,"TreeParentCollapsed",21),Fa=new Kt(_t,"AllParentsCollapsed",22),Ef=new Kt(_t,"AnyParentsCollapsed",23),Vg=new An,Vd="2.3.10",_d="image",Dc=null,u0=!1;function ds(){if(la){var a=un.document.createElement("canvas"),y=a.getContext("2d"),x=Mi("7ca11abfd022028846");y[x]=Mi("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",In.Dx+"4ae6247590da4bb21c324ba3a84e385776",ui.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",St.za],b=1;5>b;b++)y[Mi("7ca11abfd7330390")](Mi(E[b-1]),10,15*b);for(y[x]=Mi("39f046ebb36e4b"),x=1;5>x;x++)y[Mi("7ca11abfd7330390")](Mi(E[x-1]),10,15*x);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(ui.prototype.Cd=ui.prototype.Eu),Dc=a}}_t.className="Diagram",_t.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=un.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof _t?y.H:null},_t.inherit=function(a,y){function x(){}if(Object.getPrototypeOf(a).prototype)throw Error(`Used go.Diagram.inherit defining already defined class
|
|
`+a);x.prototype=y.prototype,a.prototype=new x,a.prototype.constructor=a},_t.useDOM=function(a){la=a?un.document!==void 0:!1},_t.isUsingDOM=function(){return la},_t.None=ps,_t.Uniform=al,_t.UniformToFill=ad,_t.CycleAll=Lc,_t.CycleNotDirected=zg,_t.CycleNotDirectedFast=Zg,_t.CycleNotUndirected=Wg,_t.CycleDestinationTree=Hg,_t.CycleSourceTree=Gg,_t.DocumentScroll=Ch,_t.InfiniteScroll=bc,_t.TreeParentCollapsed=Eh,_t.AllParentsCollapsed=Fa,_t.AnyParentsCollapsed=Ef;function h0(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Yd(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)e:{y="f";var x=un[Mi("76a715b2f73f148a")][Mi("72ba13b5")]||"";if(a.Rc=!0,la){var E=_t[Mi("76a115b6ed251eaf4692")];if(E)for(var b=Vg.iterator;b.next()&&(E=b.value,E=Mi(E).split(Mi("39e9")),!(6>E.length));){var z=Mi(E[1]).split(".");if(E[4]!=="7da71ca0")break;var te=Mi(In[Mi("6cae19")]).split(".");if(z[0]>te[0]||z[0]===te[0]&&z[1]>=te[1]){var re=un[Mi("74a900bae4370f8b51")][Mi("6fbb13a1c2311e8a57")].toLowerCase();if(te=re[Mi("73a612b6fb191d")](Mi("3aad1ab6e022098b4dc4")),z=Mi(E[2]),-1<te&&(re=re[Mi("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<re&&re<te),!a.Rc))break;for(te=x[Mi("76ad18b4f73e")],re=x[Mi("73a612b6fb191d")](Mi("35e7"))+2;re<te;re++)y+=x[re];if(te=y[Mi("73a612b6fb191d")](z),0>te&&z!==Mi("7da71ca0ad381e90")&&(te=y[Mi("73a612b6fb191d")](Mi("76a715b2ef3e149757"))),0>te&&(te=y[Mi("73a612b6fb191d")](Mi("76a715b2ef3e149757"))),0>te&&(te=y[Mi("73a612b6fb191d")](Mi("2bfa41fdb3784bca12"))),0>te&&(te=x[Mi("73a612b6fb191d")](Mi("7baa19a6f76c1988428554"))),a.Rc=!(0<=te&&te<y[Mi("73a612b6fb191d")](Mi("35"))||y[Mi("73a612b6fb191d")](Mi("35"))===-1),!a.Rc||x[Mi("73a612b6fb191d")](Mi("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[Mi("73a612b6fb191d")](z)),!a.Rc)||(te=un[Mi("76a715b2f73f148a")][Mi("69ad17a1e03e")],re=te[Mi("73a612b6fb191d")](Mi("7fb002b6ed25128b4da25b2e")),-1<re&&(a.Rc=!(te[Mi("73a612b6fb191d")](z)>re),!a.Rc)))break;if(z[0]==="#"){te=un.document.createElement("div");for(var oe=E[0].replace(/[A-Za-z]/g,"");4>oe.length;)oe+="9";if(re=oe,oe=oe.substr(oe.length-4),E="",E+=["gsh","gsf"][parseInt(oe.substr(0,1),10)%2],E+=["Header","Background","Display","Feedback"][parseInt(oe.substr(0,1),10)%4],te[Mi("79a417a0f0181a8946")]=E,un.document[Mi("78a712aa")]){un.document[Mi("78a712aa")][Mi("7bb806b6ed32388c4a875b")](te),oe=un.getComputedStyle(te).getPropertyValue(Mi("78a704b7e62456904c9b12701b6532a8"));var le=un.getComputedStyle(te).getPropertyValue(Mi("75b817b0ea2202"));if(un.document[Mi("78a712aa")][Mi("68ad1bbcf533388c4a875b")](te),oe){if(te=un[Mi("77a902b0eb1b1e804a8a")],le==="0."+parseInt(re,10)%100||oe.indexOf(parseInt(z[1]+z[2],16))!==-1&&oe.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(te&&te(Mi("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(E="."+E,z=0;z<document.styleSheets.length;z++){te=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var he in te)if(E===te[he].selectorText){a.Rc=!1;break e}}}}else a.Rc=null,a.Rc=!1}}}else{for(he=x[Mi("76ad18b4f73e")],b=x[Mi("73a612b6fb191d")](Mi("35e7"))+2;b<he;b++)y+=x[b];x=y[Mi("73a612b6fb191d")](Mi("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[Mi("73a612b6fb191d")](Mi("35")))}}}return 0<a.Rc&&a!==a.wy}h0.className="DiagramHelper";function eh(a){this.j=a===void 0?new je:a,this.o=new je}pn.Object.defineProperties(eh.prototype,{point:{get:function(){return this.j},set:function(a){this.j=a}},shifted:{get:function(){return this.o},set:function(a){this.o=a}}});var kc="DraggingInfo";eh.className="DraggingInfo";function ie(a,y,x){this.node=a,this.info=y,this.Su=x}ie.className="DraggingNodeInfoPair";function ae(){this.reset()}ae.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new Xe(NaN,NaN).freeze(),this.gridSnapCellSpot=Ii,this.gridSnapOrigin=new je(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},ae.className="DraggingOptions";function fe(a,y){if(typeof a=="string"||un.Element&&a instanceof Element)var x=_t.call(this,a)||this;else x=_t.call(this)||this,y=a;return ce(x),y&&x.nm(y),x}Zt(fe,_t);function ce(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Ki,a.layout=new Ja}fe.prototype.reset=function(){_t.prototype.reset.call(this),ce(this)},fe.className="Palette";function ve(a,y){if(typeof a=="string"||un.Element&&a instanceof Element)var x=_t.call(this,a)||this;else x=_t.call(this)||this,y=a;var E=x;x.animationManager.isEnabled=!1,x.vb=!0,x.V=null,x.mn=!1,x.nn=!1,x.F=!0,x.u=!0,x.ia=0,x.o=!1,x.ql=null,x.Xx("drawShadows",!1),a=new Xi;var b=new Mr;return b.stroke="magenta",b.strokeWidth=2,b.fill="transparent",b.name="BOXSHAPE",a.selectable=!0,a.selectionAdorned=!1,a.selectionObjectName="BOXSHAPE",a.locationObjectName="BOXSHAPE",a.resizeObjectName="BOXSHAPE",a.cursor="move",a.add(b),x.j=a,x.allowCopy=!1,x.allowDelete=!1,x.allowSelect=!0,x.autoScrollRegion=new ri(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new et,x.toolManager.mouseMoveTools),x.click=function(){var z=E.observed;if(z!==null){var te=z.viewportBounds,re=E.lastInput.documentPoint;z.position=new je(re.x-te.width/2,re.y-te.height/2)}},x.Pf=function(){E.Ya(),Ge(E)},x.Xd=function(){E.observed!==null&&(E.Ya(),E.N())},x.Ha=function(){1>E.updateDelay?E.N():E.o||(E.o=!0,setTimeout(function(){return E.redraw()},E.updateDelay))},x.Of=function(){E.observed!==null&&Ge(E)},x.autoScale=al,x.vb=!1,y&&Object.assign(x,y),x}Zt(ve,_t),ve.prototype.computePixelRatio=function(){return 1},ve.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if(Zd(this),this.ql===null){var x=new Il(null);x.width=a.width,x.height=a.height,this.ql=x}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),Le(this)}finally{this.ta=a,this.ib=y}}}_t.prototype.redraw.call(this)},ve.prototype.gc=function(){if(this.Ka===null&<("No div specified"),this.ta===null&<("No canvas specified"),!(this.ta instanceof Cu)&&(Rv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){Zd(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?Le(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,E=0;E<x;E++)y[E].gc(a,this);this.Fc=this.vd=!1}}};function Le(a){var y=a.observed;if(y!==null){var x=a.drawsTemporaryLayers,E=a.drawsGrid&&x,b=y.grid;E&&b!==null&&b.visible&&!isNaN(b.width)&&!isNaN(b.height)&&(b=pt.alloc().assign(a.viewportBounds).ed(y.viewportBounds),Pu(y,b),pt.free(b),os(y));var z=a.Ab;z.reset(),a.scale!==1&&z.scale(a.scale),a.position.x===0&&a.position.y===0||z.translate(-a.position.x,-a.position.y),b=a.ib,b.scale(a.Mb,a.Mb),b.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),b.yc(),y=y.Wa.s,z=y.length;for(var te=0;te<z;te++){var re=y[te],oe=a;if(re.visible&&re.opacity!==0){var le=re.diagram.grid.part;if(!x&&re.isTemporary)E&&le.layer===re&&(re=$u(re,b),le.gc(b,oe),b.globalAlpha=re);else{for(var he=$u(re,b),ge=oe.scale,Se=pt.alloc(),we=re.Pa.s,Ae=we.length,Ne=0;Ne<Ae;Ne++){var $e=we[Ne];(E||$e!==le)&&re.Oj(b,$e,oe,null,ge,Se,!1)}pt.free(Se),b.globalAlpha=he}}}}}function Ge(a){var y=a.box;if(y!==null){var x=a.observed;if(x!==null){a.Fc=!0,x=x.viewportBounds;var E=y.selectionObject,b=Xe.alloc();b.h(x.width,x.height),E.desiredSize=b,Xe.free(b),a=2/a.scale,E instanceof Mr&&(E.strokeWidth=a),y.location=new je(x.x-a/2,x.y-a/2),y.isSelected=!0}}}ve.prototype.computeBounds=function(){var a=this.observed;if(a===null)return gr;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},ve.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},ve.prototype.onViewportBoundsChanged=function(a,y,x,E){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),Ge(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.Oz=E,this.R("ViewportBoundsChanged",this.fc,a))},pn.Object.defineProperties(ve.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof ve&<("Overview.observed Diagram may not be an Overview itself: "+a),y!==a){if(y!==null&&(this.remove(this.box),y.am("ViewportBoundsChanged",this.Pf),y.am("DocumentBoundsChanged",this.Xd),y.am("InvalidateDraw",this.Ha),y.am("AnimationFinished",this.Of)),this.V=a,a!==null&&(a.Bj("ViewportBoundsChanged",this.Pf),a.Bj("DocumentBoundsChanged",this.Xd),a.Bj("InvalidateDraw",this.Ha),a.Bj("AnimationFinished",this.Of),this.add(this.box)),this.Ya(),a===null){this.ql=null;var x=this.ta,E=this.ib;x&&E&&(E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,x.width,x.height))}else this.Ha(null),Ge(this),this.N();this.g("observed",y,a)}}},box:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.remove(y),this.add(this.j),Ge(this),this.g("box",y,a))}},drawsTemporaryLayers:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a,this.redraw())}},drawsGrid:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a,this.redraw())}},updateDelay:{get:function(){return this.ia},set:function(a){0>a&&(a=0),this.ia!==a&&(this.ia=a)}}}),ve.className="Overview";function et(){Uo.call(this),this.j=null}Zt(et,Uo),et.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var x=a.lastInput;return!x.left||a.currentTool!==this&&(!this.isBeyondDragSize()||x.isTouchEvent&&x.timestamp-a.firstInput.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(x=y.viewportBounds,this.j=new je(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new je(a.x-this.j.x,a.y-this.j.y)),!0)},et.prototype.doActivate=function(){this.j=null,Uo.prototype.doActivate.call(this)},et.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},et.prototype.moveParts=function(){var a=this.diagram,y=a.observed;if(y!==null){var x=a.box;if(x!==null){if(this.j===null){var E=a.firstInput.documentPoint;x=x.location,this.j=new je(E.x-x.x,E.y-x.y)}a=a.lastInput.documentPoint,y.position=new je(a.x-this.j.x,a.y-this.j.y)}}},et.className="OverviewDraggingTool";function qe(){Kn(this),this.H=Bu,this.Ha=this.u=this.o=!0,this.F=this.V=this.nb=this.ia=!1,this.ij=this.j=null,this.Hb=1.05,this.Jt=NaN,this.sw=null,this.Au=NaN,this.yu=gr,this.hb=!0,this.cg=null,this.ob=200}qe.prototype.toString=function(){return"CommandHandler"},qe.prototype.Xe=function(a){this.H=a},qe.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=Hr?y.meta:y.control,E=y.shift,b=y.alt,z=y.key;!x||z!=="C"&&z!=="Insert"?x&&z==="X"||E&&z==="Del"?this.canCutSelection()&&this.cutSelection():x&&z==="V"||E&&z==="Insert"?this.canPasteSelection()&&this.pasteSelection():x&&z==="Y"||b&&E&&z==="Backspace"?this.canRedo()&&this.redo():x&&z==="Z"||b&&z==="Backspace"?this.canUndo()&&this.undo():z==="Del"||z==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():x&&z==="A"?this.canSelectAll()&&this.selectAll():z==="Esc"?this.canStopCommand()&&this.stopCommand():z==="Up"?a.allowVerticalScroll&&(x?a.scroll("pixel","up"):a.scroll("line","up")):z==="Down"?a.allowVerticalScroll&&(x?a.scroll("pixel","down"):a.scroll("line","down")):z==="Left"?a.allowHorizontalScroll&&(x?a.scroll("pixel","left"):a.scroll("line","left")):z==="Right"?a.allowHorizontalScroll&&(x?a.scroll("pixel","right"):a.scroll("line","right")):z==="PageUp"?E&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):z==="PageDown"?E&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):z==="Home"?x&&a.allowVerticalScroll?a.scroll("document","up"):!x&&a.allowHorizontalScroll&&a.scroll("document","left"):z==="End"?x&&a.allowVerticalScroll?a.scroll("document","down"):!x&&a.allowHorizontalScroll&&a.scroll("document","right"):z===" "?this.canScrollToPart()&&this.scrollToPart():z==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():z==="Add"?this.canIncreaseZoom()&&this.increaseZoom():x&&z==="0"?this.canResetZoom()&&this.resetZoom():E&&z==="Z"?this.canZoomToFit()&&this.zoomToFit():x&&!E&&z==="G"?this.canGroupSelection()&&this.groupSelection():x&&E&&z==="G"?this.canUngroupSelection()&&this.ungroupSelection():z==="F2"||y.event&&y.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():z==="ContextMenu"||y.event&&y.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():y.bubbles=!0:this.canCopySelection()&&this.copySelection()},qe.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},qe.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Ao&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},qe.prototype.canStopCommand=function(){return!0},qe.prototype.selectAll=function(){var a=this.diagram;a.N();try{a.currentCursor="wait",a.R("ChangingSelection",a.selection);for(var y=a.parts;y.next();)y.value.isSelected=!0;for(var x=a.nodes;x.next();)x.value.isSelected=!0;for(var E=a.links;E.next();)E.value.isSelected=!0}finally{a.R("ChangedSelection",a.selection),a.currentCursor=""}},qe.prototype.canSelectAll=function(){return this.diagram.allowSelect},qe.prototype.deleteSelection=function(){var a=this.diagram;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Delete"),a.R("SelectionDeleting",a.selection);for(var y=new Fn,x=a.selection.iterator;x.next();)hd(y,x.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(E){return E.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},qe.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},qe.prototype.copySelection=function(){var a=this.diagram,y=new Fn;for(a=a.selection.iterator;a.next();)hd(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},qe.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},qe.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},qe.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},qe.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)Gd=null,od="";else{x=y.model;var E=!1,b=!1,z=null;try{x.Tl()&&(E=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(b=x.Ij,x.Ij=this.copiesGroupKey),z=y.Kj(a,null,!0)}finally{x.Tl()&&(x.Jj=E),x.Wj()&&(x.Ij=b),x=new An,x.addAll(z),Gd=x,od=y.model.dataFormat}}y.R("ClipboardChanged",x)},qe.prototype.pasteFromClipboard=function(){var a=new Fn,y=Gd;if(y===null)return a;var x=this.diagram;if(od!==x.model.dataFormat)return a;var E=x.model,b=!1,z=!1,te=null;try{E.Tl()&&(b=E.Jj,E.Jj=this.copiesParentKey),E.Wj()&&(z=E.Ij,E.Ij=this.copiesGroupKey),te=x.Kj(y,x,!1)}finally{for(E.Tl()&&(E.Jj=b),E.Wj()&&(E.Ij=z),y=te.iterator;y.next();)x=y.value,E=y.key,x.location.w()||(E.location.w()?x.location=E.location:!x.position.w()&&E.position.w()&&(x.position=E.position)),a.add(x)}return a},qe.prototype.pasteSelection=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Paste");var x=this.pasteFromClipboard();0<x.count&&y.clearSelection(!0);for(var E=x.iterator;E.next();)E.value.isSelected=!0;if(a!==null){var b=y.computePartsBounds(y.selection);if(b.w()){var z=this.computeEffectiveCollection(y.selection,y.Wm);nd(y,z,new je(a.x-b.centerX,a.y-b.centerY),y.Wm,!1)}}y.R("ClipboardPasted",x)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},qe.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Gd===null||Gd.count===0||od!==a.model.dataFormat)},qe.prototype.undo=function(){this.diagram.undoManager.undo()},qe.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},qe.prototype.redo=function(){this.diagram.undoManager.redo()},qe.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},qe.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===ps&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},qe.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==ps?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},qe.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===ps&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},qe.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==ps?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},qe.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},qe.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},qe.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,E=a.scale;ku(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&E===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=gr):(this.Jt=E,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),lf(y)},qe.prototype.canZoomToFit=function(){return this.diagram.allowZoom},qe.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(oe){this.cg=null}a===null&&(0<y.highlighteds.count?this.cg=y.highlighteds.iterator:0<y.selection.count&&(this.cg=y.selection.iterator),this.cg!==null&&this.cg.next()&&(a=this.cg.value))}if(a!==null){var x=y.animationManager;ku(x,"Scroll To Part");var E=this.scrollToPartPause;if(0<E){var b=mt(this,a,[a]);if(b.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var z=function(){y.Ea();for(var oe=b.pop();0<b.length&&oe instanceof li&&oe.isTreeExpanded&&(!(oe instanceof Pr)||oe.isSubGraphExpanded);)oe=b.pop();0<b.length?(oe instanceof Xi&&y.tv(oe.actualBounds),oe instanceof li&&!oe.isTreeExpanded&&(oe.isTreeExpanded=!0),oe instanceof Pr&&!oe.isSubGraphExpanded&&(oe.isSubGraphExpanded=!0)):(oe instanceof Xi&&y.es(oe.actualBounds),y.am("LayoutCompleted",te)),y.eb("Scroll To Part")},te=function(){Fr(z,(x.isEnabled?x.duration:0)+E)};y.Bj("LayoutCompleted",te),z()}}else{var re=y.position.copy();y.es(a.actualBounds),re.Xa(y.position)&&x.Cc()}}};function mt(a,y,x){if(y.isVisible())return x;if(y instanceof eo)mt(a,y.adornedPart,x);else if(y instanceof Hn){var E=y.fromNode;E!==null&&mt(a,E,x),y=y.toNode,y!==null&&mt(a,y,x)}else y instanceof li&&(E=y.labeledLink,E!==null&&mt(a,E,x),E=y.pg(),E!==null&&(E.isTreeExpanded||E.wasTreeExpanded||x.push(E),mt(a,E,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),mt(a,y,x));return x}qe.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof Xi)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},qe.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),ku(y.animationManager,"Collapse Tree");var x=new An;if(a!==null&&a.isTreeExpanded)a.collapseTree(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof li&&b.isTreeExpanded&&(b.collapseTree(),x.add(b))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},qe.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof li&&a.isTreeExpanded))return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof li&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},qe.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),ku(y.animationManager,"Expand Tree");var x=new An;if(a!==null&&!a.isTreeExpanded)a.expandTree(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof li&&!b.isTreeExpanded&&(b.expandTree(),x.add(b))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},qe.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof li)||a.isTreeExpanded)return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof li&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},qe.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var x=this.archetypeGroupData;if(x!==null){var E=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var b=new An,z=a.selection.iterator;z.next();){var te=z.value;te.Zc()&&te.canGroup()&&b.add(te)}for(var re=new An,oe=b.iterator;oe.next();){var le=oe.value;z=!1;for(var he=b.iterator;he.next();)if(le.Td(he.value)){z=!0;break}z||re.add(le)}if(0<re.count){var ge=re.first().containingGroup;if(ge!==null)for(;ge!==null;){b=!1;for(var Se=re.iterator;Se.next();)if(!Se.value.Td(ge)){b=!0;break}if(b)ge=ge.containingGroup;else break}if(x instanceof Pr)Rl(x),E=x.copy(),E!==null&&a.add(E);else if(y.Yu(x)){var we=y.copyNodeData(x);tn(we)&&(y.xf(we),E=a.ii(we))}if(E!==null){ge!==null&&this.isValidMember(ge,E)&&(E.containingGroup=ge);for(var Ae=re.iterator;Ae.next();){var Ne=Ae.value;this.isValidMember(E,Ne)&&(Ne.containingGroup=E)}a.clearSelection(!0),E.isSelected=!0}}a.R("SelectionGrouped",E)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},qe.prototype.canGroupSelection=function(){var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowGroup||!a.model.Xj()||this.archetypeGroupData===null)return!1;for(a=a.selection.iterator;a.next();){var y=a.value;if(y.Zc()&&y.canGroup())return!0}return!1};function rn(a){var y=Bn();for(a=a.iterator;a.next();){var x=a.value;x instanceof Hn||y.push(x)}a=new Fn,x=y.length;for(var E=0;E<x;E++){for(var b=y[E],z=!0,te=0;te<x;te++)if(b.Td(y[te])){z=!1;break}z&&a.add(b)}return Ot(y),a}qe.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof Hn)return!1;if(a!==null){if(a===y||a.Td(y))return!1;var x=a.memberValidation;if(x!==null&&!x(a,y)||a.data===null&&y.data!==null||a.data!==null&&y.data===null)return!1}return x=this.memberValidation,x!==null?x(a,y):!0},qe.prototype.ungroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.model;if(x.Xj())try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Ungroup");var E=new An;if(a!==null)E.add(a);else for(var b=y.selection.iterator;b.next();){var z=b.value;z instanceof Pr&&z.canUngroup()&&E.add(z)}var te=new An;if(0<E.count){y.clearSelection(!0);for(var re=E.iterator;re.next();){var oe=re.value;oe.expandSubGraph();var le=oe.containingGroup,he=le!==null&&le.data!==null?x.wa(le.data):void 0;te.addAll(oe.memberParts);for(var ge=te.iterator;ge.next();){var Se=ge.value;if(Se.isSelected=!0,!(Se instanceof Hn)){var we=Se.data;we!==null?x.mp(we,he):Se.containingGroup=le}}y.remove(oe)}}y.R("SelectionUngrouped",E,te)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},qe.prototype.canUngroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowDelete||!y.allowUngroup||!y.model.Xj())return!1;if(a!==null){if(!(a instanceof Pr))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Pr&&y.canUngroup())return!0;return!1},qe.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=rn(a).iterator;a.next();){var E=a.value;E.containingGroup!==null&&(!y||this.isValidMember(null,E)?E.containingGroup=null:x=!1)}return x},qe.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),ku(y.animationManager,"Collapse SubGraph");var x=new An;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof Pr&&b.isSubGraphExpanded&&(b.collapseSubGraph(),x.add(b))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},qe.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof Pr&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Pr&&y.isSubGraphExpanded)return!0;return!1},qe.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),ku(y.animationManager,"Expand SubGraph");var x=new An;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof Pr&&!b.isSubGraphExpanded&&(b.expandSubGraph(),x.add(b))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},qe.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof Pr&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Pr&&!y.isSubGraphExpanded)return!0;return!1},qe.prototype.editTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.toolManager.findTool("TextEditing");if(x!==null){if(a===null){a=null;for(var E=y.selection.iterator;E.next();){var b=E.value;if(b.canEdit()){a=b;break}}if(a===null)return;a=a.Nl(function(z){return z instanceof Wo&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},qe.prototype.canEditTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowTextEdit||y.toolManager.findTool("TextEditing")===null)return!1;if(a!==null){if(!(a instanceof Wo))return!1;if(a=a.part,a!==null&&a.canEdit())return!0}else for(y=y.selection.iterator;y.next();)if(a=y.value,a.canEdit()&&(a=a.Nl(function(x){return x instanceof Wo&&x.editable}),a!==null))return!0;return!1},qe.prototype.showContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");if(x!==null&&(a===void 0&&(a=0<y.selection.count?y.selection.first():y),a=x.findObjectWithContextMenu(a),a!==null)){var E=y.lastInput,b=null;a instanceof Mt?b=a.ga(hi):y.viewportBounds.ca(E.documentPoint)||(b=y.viewportBounds,b=new je(b.x+b.width/2,b.y+b.height/2)),b!==null&&(E.viewPoint=y.op(b),E.documentPoint=b,E.left=!1,E.right=!0,E.up=!0),y.currentTool=x,Qu(x,!1,a)}},qe.prototype.canShowContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");return x===null?!1:(a===void 0&&(a=0<y.selection.count?y.selection.first():y),x.findObjectWithContextMenu(a)!==null)},qe.prototype.computeEffectiveCollection=function(a,y){var x=this.diagram,E=x.toolManager.findTool("Dragging"),b=x.currentTool===E;if(y===void 0&&(y=b?E.dragOptions:x.Wm),E=new Wt,a===null)return E;for(var z=a.iterator;z.next();)Tu(x,E,z.value,b,y);if(x.draggedLink!==null&&y.dragsLink)return E;for(z=a.iterator;z.next();)a=z.value,a instanceof Hn&&(y=a.fromNode,y===null||E.contains(y)?(y=a.toNode,y===null||E.contains(y)||E.remove(a)):E.remove(a));return E},pn.Object.defineProperties(qe.prototype,{diagram:{get:function(){return this.H}},copiesClipboardData:{get:function(){return this.o},set:function(a){this.o=a}},copiesConnectedLinks:{get:function(){return this.u},set:function(a){this.u=a}},deletesConnectedLinks:{get:function(){return this.Ha},set:function(a){this.Ha=a}},copiesTree:{get:function(){return this.ia},set:function(a){this.ia=a}},deletesTree:{get:function(){return this.nb},set:function(a){this.nb=a}},copiesParentKey:{get:function(){return this.V},set:function(a){this.V=a}},copiesGroupKey:{get:function(){return this.F},set:function(a){this.F=a}},archetypeGroupData:{get:function(){return this.j},set:function(a){this.j=a}},memberValidation:{get:function(){return this.ij},set:function(a){this.ij=a}},defaultScale:{get:function(){return this.diagram.defaultScale},set:function(a){this.diagram.defaultScale=a}},zoomFactor:{get:function(){return this.Hb},set:function(a){1<a||lt("zoomFactor must be larger than 1.0, not: "+a),this.Hb=a}},isZoomToFitRestoreEnabled:{get:function(){return this.hb},set:function(a){this.hb=a}},scrollToPartPause:{get:function(){return this.ob},set:function(a){this.ob=a}}}),qe.className="CommandHandler",Jp=function(){return new qe};function Mt(){Kn(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new je(NaN,NaN).freeze(),this.jd=jn,this.Ab=new ui,this.wh=new ui,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=fr,this.uc=new pt(NaN,NaN,NaN,NaN).freeze(),this.Ib=new pt(NaN,NaN,NaN,NaN).freeze(),this.dc=new pt(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Eo,this.Ag=this.io=0,this.V=this.tb=this.Dh=this.A=this.Ua=null,this.Uc=!1,this.jo=this.Ng=null}var Nn,xn,Bi,Zi,er,Cr,Vr,Br,Qr,Lo;Mt.prototype.cloneProtected=function(a){a.l=this.l|6144,a.pb=this.pb,a.bn=this.bn,a.Ma=this.Ma,a.pa.assign(this.pa),a.jd=this.jd.J(),this.Lb!==null?a.Lb=this.Lb.copy():a.Lb=null,a.Ca=this.Ca,a.Kb=this.Kb,a.Kg=this.Kg.J(),a.uc.assign(this.uc),a.Ib.assign(this.Ib),a.dc.assign(this.dc),a.Yn=this.Yn,this.ba!==null&&(a.ba=this.ba.copy()),a.Jb=this.Jb.J(),a.sk=this.sk.J(),a.io=this.io,a.Ag=this.Ag,this.Ua!==null&&(a.Ua=this.Ua.copy()),this.A!==null&&(a.A=this.A.nc?this.A:this.A.copy()),this.Dh!==null&&(a.Dh=Ri(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},Mt.prototype.Vw=function(a){var y=this.Dh;if(si(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},Mt.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},Mt.prototype.clone=function(){var a=new this.constructor;if(this.cloneProtected(a),this.Dh!==null)for(var y=0;y<this.Dh.length;y++){var x=this.Dh[y];a[x]=this[x]}return a},Mt.prototype.copy=function(){return this.clone()},be=Mt.prototype,be.qb=function(a){a.classType===Hn?a.name.indexOf("Orient")===0?this.segmentOrientation=a:lt("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===Mt&&(this.stretch=a)},be.toString=function(){return qn(this.constructor)+"#"+Tr(this)},be.th=function(){this.A!==null&&(this.A.nc=!0)};function Dr(a){a.A===null?a.A=new Nc:a.A.nc&&(a.A=a.A.copy())}be.Xc=function(){if(this.ba===null){var a=new _g;a.Xi=Fi,a.yj=Fi,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},be.cb=function(a,y,x,E,b,z,te){var re=this.part;if(re!==null&&(re.gk(a,y,x,E,b,z,te),x===this&&a===Ro&&ts(this)&&Qo(this,re,y),z=this.diagram,this.animationTriggers===null||z===null||!z.pi||z.undoManager.isUndoingRedoing||z.animationManager.Dm||(a=this.animationTriggers.get(y),a!==null&&z.animationManager.isEnabled&&!z.animationManager.isTicking&&(this.jo===null&&(this.jo=new Wt),te=z.undoManager.transactionLevel===0,a.startCondition===$h?te=!0:a.startCondition===Id&&(te=!1),te?(z=new rs,Kp(a,z),te=this.jo.get(a),te!==null&&te.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,E,b),z.start()):(ku(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,E,b)))),this instanceof On&&x===re&&(re.l&16777216)!==0&&re.data!==null))for(x=this.O.s,E=x.length,b=0;b<E;b++)re=x[b],re instanceof On&&Qd(re,function(oe){oe.data!==null&&oe.l&16777216&&oe.La(y)})};function Qo(a,y,x){var E=a.ih();if(E!==null)for(var b=a.localBindings.iterator;b.next();){var z=b.value,te=null;if(z.sourceName!==null){if(te=bS(z,E,a),te===null)continue;z.sp(a,te,x,null)}else if(z.isToModel){var re=y.diagram;re===null||re.skipsModelSourceBindings||z.sp(a,re.model.modelData,x,E)}else{if(re=E.data,re===null)continue;var oe=y.diagram;oe===null||oe.skipsModelSourceBindings||z.sp(a,re,x,E)}te===a&&(re=E.ks(z.Ai),re!==null&&z.Mv(re,te,x))}}be.ks=function(a){return this.bindingId===a?this:null},be.g=function(a,y,x){this.cb(Ro,a,this,y,x)},be.Ge=function(a,y,x,E){var b=this.uc;if(b.h(a,y,x,E),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new ui);var z=this.Lb;z.reset(),this.no(z,a,y,x,E),z.pp(b)}};function Oa(a,y,x,E){return a.pickable===!1?!1:(E.multiply(a.transform),x?a.Yc(y,E):a.fh(y,E))}be.tx=function(a,y,x){if(this.pickable===!1)return!1;var E=this.naturalBounds;return y=a.Bf(y),x?dn(a.x,a.y,0,0,0,E.height)<=y||dn(a.x,a.y,0,E.height,E.width,E.height)<=y||dn(a.x,a.y,E.width,E.height,E.width,0)<=y||dn(a.x,a.y,E.width,0,0,0)<=y:a.zd(0,0)<=y&&a.zd(0,E.height)<=y&&a.zd(E.width,0)<=y&&a.zd(E.width,E.height)<=y},be.se=function(){return!0},be.ca=function(a){var y=je.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return je.free(y),!1;var E=this.diagram;if(E!==null&&E.wq){var b=E.Ql("extraTouchThreshold"),z=E.Ql("extraTouchArea"),te=z/2,re=this.naturalBounds;E=this.Df()*E.scale;var oe=1/E;if(re.width*E<b&&re.height*E<b)return a=xi(x.x-te*oe,x.y-te*oe,x.width+z*oe,x.height+z*oe,y.x,y.y),je.free(y),a}return b=!1,(this instanceof eo||this instanceof Mr?xi(x.x-5,x.y-5,x.width+10,x.height+10,y.x,y.y):x.ca(y))&&(this.tb&&!this.tb.ca(y)?b=!1:this.areaBackground!==null&&x.ca(y)||this.Ma!==null&&this.dc.ca(a)?b=!0:b=this.gh(a)),je.free(y),b},be.gh=function(a){var y=this.naturalBounds;return xi(0,0,y.width,y.height,a.x,a.y)},be.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=pt.allocAt(0,0,y.width,y.height);var x=this.transform,E=!1,b=je.allocAt(a.x,a.y);return y.ca(x.Cd(b))&&(b.h(a.x,a.bottom),y.ca(x.Cd(b))&&(b.h(a.right,a.bottom),y.ca(x.Cd(b))&&(b.h(a.right,a.y),y.ca(x.Cd(b))&&(E=!0)))),je.free(b),pt.free(y),E},be.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,E=!1,b=je.allocAt(0,0);return a.ca(y.Ga(b))&&(b.h(0,x.height),a.ca(y.Ga(b))&&(b.h(x.width,x.height),a.ca(y.Ga(b))&&(b.h(x.width,0),a.ca(y.Ga(b))&&(E=!0)))),je.free(b),E},be.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,E=je.allocAt(0,0),b=je.allocAt(0,x.height),z=je.allocAt(x.width,x.height),te=je.allocAt(x.width,0),re=!1;if(a.ca(y.Ga(E))||a.ca(y.Ga(b))||a.ca(y.Ga(z))||a.ca(y.Ga(te)))re=!0;else{x=pt.allocAt(0,0,x.width,x.height);var oe=je.allocAt(a.x,a.y);x.ca(y.Cd(oe))?re=!0:(oe.h(a.x,a.bottom),x.ca(y.Cd(oe))?re=!0:(oe.h(a.right,a.bottom),x.ca(y.Cd(oe))?re=!0:(oe.h(a.right,a.y),x.ca(y.Cd(oe))&&(re=!0)))),je.free(oe),pt.free(x),!re&&(St.us(a,E,b)||St.us(a,b,z)||St.us(a,z,te)||St.us(a,te,E))&&(re=!0)}return je.free(E),je.free(b),je.free(z),je.free(te),re},be.ga=function(a,y){if(y===void 0&&(y=new je),a instanceof bn){var x=this.naturalBounds;y.h(a.x*x.width+a.offsetX,a.y*x.height+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},be.mi=function(a){a===void 0&&(a=new pt);var y=this.naturalBounds,x=this.oe,E=je.allocAt(0,0).transform(x);return a.h(E.x,E.y,0,0),E.h(y.width,0).transform(x),yi(a,E.x,E.y,0,0),E.h(y.width,y.height).transform(x),yi(a,E.x,E.y,0,0),E.h(0,y.height).transform(x),yi(a,E.x,E.y,0,0),je.free(E),a},be.li=function(){var a=this.oe;return a.m11===1&&a.m12===0?a=0:(a=180*Math.atan2(a.m12,a.m11)/Math.PI,0>a&&(a+=360)),a},be.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},be.qs=function(a,y){return y===void 0&&(y=new je),y.assign(a),this.oe.Cd(y),y},be.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},be.Sj=function(a,y,x,E,b){var z=this.transform,te=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*te,oe=-z.m12*te,le=-z.m21*te,he=z.m11*te,ge=te*(z.m21*z.dy-z.m22*z.dx),Se=te*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,St.Ff(z.left,z.top,z.right,z.bottom,a,y,x,E,b)):(te=a*re+y*le+ge,a=a*oe+y*he+Se,y=x*re+E*le+ge,x=x*oe+E*he+Se,b.h(0,0),E=this.naturalBounds,x=St.Ff(0,0,E.width,E.height,te,a,y,x,b),b.transform(z),x)},Mt.prototype.measure=function(a,y,x,E){if(ll(this)!==!1){var b=this.Kg,z=b.right+b.left;b=b.top+b.bottom,a=Math.max(a-z,0),y=Math.max(y-b,0),x=Math.max((x||0)-z,0),E=Math.max((E||0)-b,0),z=this.angle,b=this.desiredSize;var te=this.kq();z===90||z===270?(a=isFinite(b.height)?b.height+te:a,y=isFinite(b.width)?b.width+te:y):(a=isFinite(b.width)?b.width+te:a,y=isFinite(b.height)?b.height+te:y),b=x||0,te=E||0;var re=this instanceof On;switch(Os(this,!0)){case xn:te=b=0,re&&(y=a=1/0);break;case Nn:isFinite(a)&&a>x&&(b=a),isFinite(y)&&y>E&&(te=y);break;case Zi:isFinite(a)&&a>x&&(b=a),te=0,re&&(y=1/0);break;case er:isFinite(y)&&y>E&&(te=y),b=0,re&&(a=1/0)}re=this.maxSize;var oe=this.minSize;b>re.width&&oe.width<re.width&&(b=re.width),te>re.height&&oe.height<re.height&&(te=re.height),x=Math.max(b,oe.width),E=Math.max(te,oe.height),re.width<x&&(x=Math.min(oe.width,x)),re.height<E&&(E=Math.min(oe.height,E)),a=Math.min(re.width,a),y=Math.min(re.height,y),a=Math.max(x,a),y=Math.max(E,y),(z===90||z===270)&&(z=a,a=y,y=z,z=x,x=E,E=z),this.uc.ka(),this.Wl(a,y,x,E),this.uc.freeze(),this.uc.w()||lt("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Ma(this,!1)}},Mt.prototype.Wl=function(){},Mt.prototype.Dd=function(){return!1},Mt.prototype.arrange=function(a,y,x,E,b){this.Uk();var z=pt.alloc();z.assign(this.Ib),this.Ib.ka(),Cs(this)===!1?this.Ib.h(a,y,x,E):this.eh(a,y,x,E),this.Ib.freeze(),b===void 0?this.tb=null:this.tb=b,x=!1,b!==void 0?x=!0:(b=this.panel,b!==null&&Mh(b)&&(b=b.panel),b!==null&&(b=b.dc,E=this.measuredBounds,this.areaBackground!==null&&(E=this.Ib),x=y+E.height,E=a+E.width,x=!(0<=a+.05&&E<=b.width+.05&&0<=y+.05&&x<=b.height+.05),this instanceof Wo&&(a=this.naturalBounds,this.Lq>a.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||lt("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Ou(this,!1),pt.free(z)},be=Mt.prototype,be.eh=function(){};function ms(a,y,x,E,b){if(a.Ib.h(y,x,E,b),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var te=x.top+x.bottom;switch(x=z.width+y,z=z.height+te,E+=y,b+=te,y=Os(a,!0),x===E&&z===b&&(y=xn),y){case xn:(x>E||z>b)&&(Ma(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case Nn:Ma(a,!0),a.measure(E,b,0,0);break;case Zi:Ma(a,!0),a.measure(E,z,0,0);break;case er:Ma(a,!0),a.measure(x,b,0,0)}}}be.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||Zv(x,!0),this.N(),Ln(a,y)||(x.oh(),this.Pn(x)))},be.Pn=function(a){this.portId!==null&&(Zv(a,!0),a instanceof li&&Y1(a,this))},be.gc=function(a,y){if(!xl(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var E=1;x!==1&&(E=a.globalAlpha,a.globalAlpha=E*x);var b="";this.filter!==""&&(b=a.filter,a.filter=this.filter);var z=this instanceof On&&Mh(this),te=this.Ib;if(z){var re=this.Ib,oe=this.dc,le=this.areaBackground,he=this.Ma;le===null&&he===null||a.yc(),le!==null&&(ha(this,a,le,!0,!0,oe,re),le instanceof So&&le.type===Cl?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(le)):a.fillRect(re.x,re.y,re.width,re.height)),he!==null&&(ha(this,a,he,!0,!1,oe,re),he instanceof So&&he.type===Cl?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(he)):a.fillRect(re.x,re.y,re.width,re.height)),this.hh(a,y)}if(!z&&(z||te.width!==0&&te.height!==0&&!isNaN(te.x)&&!isNaN(te.y))){z=this.transform,re=this.panel,this.l&4096&&Qa(this),le=this.part,oe=!1;var ge=0;le&&y.Gf("drawShadows")&&(oe=le.isShadowed)&&(he=le.shadowOffset,ge=Math.max(he.y,he.x)*y.scale*y.Mb),he=this.Dd();var Se;if(!(Se=y.$i||!he)){var we=this.naturalBounds;Se=this.wh;var Ae=Se.m11,Ne=Se.m21,$e=Se.dx,Ke=Se.m12,at=Se.m22,dt=Se.dy,ft,wt=ft=0;Se=ft*Ae+wt*Ne+$e;var Gt=ft*Ke+wt*at+dt;ft=we.width+ge,wt=0;var oi=ft*Ae+wt*Ne+$e;ft=ft*Ke+wt*at+dt,wt=Math.min(Se,oi);var bi=Math.min(Gt,ft),Si=Math.max(Se+0,oi)-wt,Zn=Math.max(Gt+0,ft)-bi;Se=wt,Gt=bi,ft=we.width+ge,wt=we.height+ge,oi=ft*Ae+wt*Ne+$e,ft=ft*Ke+wt*at+dt,wt=Math.min(Se,oi),bi=Math.min(Gt,ft),Si=Math.max(Se+Si,oi)-wt,Zn=Math.max(Gt+Zn,ft)-bi,Se=wt,Gt=bi,ft=0,wt=we.height+ge,oi=ft*Ae+wt*Ne+$e,ft=ft*Ke+wt*at+dt,wt=Math.min(Se,oi),bi=Math.min(Gt,ft),Si=Math.max(Se+Si,oi)-wt,Zn=Math.max(Gt+Zn,ft)-bi,Se=wt,Gt=bi,ge=y.viewportBounds,we=ge.x,Ae=ge.y,Se=!(Se>ge.width+we||we>Si+Se||Gt>ge.height+Ae||Ae>Zn+Gt)}if(Se){if(Se=(this.l&256)!==0,a.clipInsteadOfFill&&(Se=!1),this instanceof Wo&&(a.font=this.font),Se){if(Gt=re.se()?re.naturalBounds:re.actualBounds,Si=Math.max(te.x,Gt.x),Zn=Math.max(te.y,Gt.y),ge=Math.min(te.right,Gt.right)-Si,we=Math.min(te.bottom,Gt.bottom)-Zn,Ae=this.tb,Ae!==null&&(Si=Ae.x,Zn=Ae.y,ge=Ae.width,we=Ae.height),Si>te.width+te.x||te.x>Gt.width+Gt.x){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(Si,Zn,ge,we),a.clip()}if(he){if(!le.isVisible()){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}oe&&(Gt=le.shadowOffset,a.Ev(Gt.x*y.scale*this.scale*y.Mb,Gt.y*y.scale*this.scale*y.Mb,le.shadowBlur),th(a),a.shadowColor=le.shadowColor)}oe&&this.shadowVisible===!0?th(a):oe&&this.shadowVisible===!1&&Iu(a),le=this.naturalBounds,this.areaBackground!==null&&(a.yc(),sl(this,a,le,te)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),oe&&Ka(this,re)&&this.shadowVisible===null&&Iu(a),this.Ma!==null&&(a.yc(),Vs(this,a,le,te)),oe&&(this.Ma!==null||this.areaBackground!==null||Ka(this,re))?(Ul(this,!0),this.shadowVisible===null&&Iu(a)):Ul(this,!1),this.hh(a,y),oe&&this.l&512&&th(a),he&&oe&&Iu(a),Se&&(a.restore(),a.Vc(this instanceof On)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b)}}};function Ka(a,y){return y===null?!1:(Mh(y)&&(y=y.panel),(y.l&512)!==0||(y.type===On.Auto||y.type===On.Spot)&&y.Pb()!==a)}be.Dv=function(){};function sl(a,y,x,E){ha(a,y,a.areaBackground,!0,!0,x,E),a.areaBackground instanceof So&&a.areaBackground.type===Cl?(y.beginPath(),y.rect(E.x,E.y,E.width,E.height),y.ng(a.areaBackground)):y.fillRect(E.x,E.y,E.width,E.height)}function Vs(a,y,x,E){var b=a.kq(),z=x.x,te=x.y,re=x.width+b,oe=x.height+b;ha(a,y,a.Ma,!0,!1,x,E),a.Ma instanceof So&&a.Ma.type===Cl?(y.beginPath(),y.rect(z-b/2,te-b/2,re,oe),y.ng(a.Ma)):y.fillRect(z-b/2,te-b/2,re,oe)}function cs(a,y,x){for(var E=y.O.s,b=E.length,z=-1,te=0;te<b;te++)if(E[te]===a){z=te;break}if(a=z,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(x):y.svg.Ma?y.svg.Ma.after(x):y.type===On.Table?(y=y.svg.getElementsByClassName("gojs-ts"),y=y.length!==0?y[0]:null,y!==null&&y.after(x)):y.svg.prepend(x);else{for(;a!==0&&!y.M(a-1).Ed();)a--;a===0?y.svg.prepend(x):(a=y.M(a-1).svg,a!==null?a.after(x):y.svg.appendChild(x))}}function xl(a,y,x){if(!(y instanceof qs))return!1;if(!a.visible||a.opacity===0||a.Dd()&&!a.isVisible())return a.svg!==null&&a.svg.parentNode!==null&&a.svg.remove(),!0;var E=a.panel,b=a.nk(y);if(a.kk(y,x,b))return a.svg.parentElement!==null?(a.Dd()&&(y.ti=a.svg),!0):(a.Dd()?(y.ti!==null?y.ti.after(a.svg):y.Nj.prepend(a.svg),y.ti=a.svg):E&&cs(a,E,a.svg),!0);if(a.Dd()&&a.isShadowed){var z=a.shadowOffset;y.Ev(z.x*x.scale*a.scale*x.Mb,z.y*x.scale*a.scale*x.Mb,a.shadowBlur),th(y),y.shadowColor=a.shadowColor}a instanceof Wo&&(y.font=a.font),y.yd=null;var te=a.transform;z=a instanceof On;var re=a instanceof On?Mh(a):!1;a.l&4096&&Qa(a);var oe=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,b&&(y.o=!0,z&&re?(Yg(y,1,0,0,1,0,0),a.svg=y.ad):z?(Yg(y,te.m11,te.m12,te.m21,te.m22,te.dx,te.dy),a.svg=y.ad):Yg(y,1,0,0,1,0,0)),b=a.naturalBounds,a.areaBackground!==null){var le=te.copy().Vj();y.rb.ha=[le.m11,le.m12,le.m21,le.m22,le.dx,le.dy],sl(a,y,b,oe),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return z||(y.rb.ha=[te.m11,te.m12,te.m21,te.m22,te.dx,te.dy]),a.background!==null&&(z?(re&&(y.rb.ha=[te.m11,te.m12,te.m21,te.m22,te.dx,te.dy]),Vs(a,y,b,oe),re&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[te.m11,te.m12,te.m21,te.m22,te.dx,te.dy],Vs(a,y,b,oe)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),te=y.yd,b=a.part,re=!1,b&&x.Gf("drawShadows")&&(re=b.isShadowed),y.clipInsteadOfFill&&(re=!1),a.Dd()&&re&&th(y),re&&a.shadowVisible===!0?th(y):re&&a.shadowVisible===!1&&Iu(y),b=a.panel,re&&Ka(a,b)&&a.shadowVisible===null&&Iu(y),y.Il&&(le=x.computePixelRatio(),le="drop-shadow("+y.shadowOffsetX/le+"px "+y.shadowOffsetY/le+"px "+y.shadowBlur/le/2+"px "+y.shadowColor+")",a.background!==null&&te.Ma.setAttributeNS(null,"filter",le),a.areaBackground!==null&&te.gd.setAttributeNS(null,"filter",le)),re&&(a.Ma!==null||a.areaBackground!==null||Ka(a,b))?(Ul(a,!0),a.shadowVisible===null&&Iu(y)):Ul(a,!1),b=re,a.hh(y,x),z&&y.nh.pop(),y.o&&y.nh.pop(),te=y.Gv.hs,re=z?a.svg:y.yd,le=a.svg,!z&&le!==null&&re!==le&&le.parentNode===a.panel.svg?(a.svg.replaceWith(re),a.svg=re,re!==null&&a.$o(y,E,oe,re),Ts(y,le),!0):(a.svg=re,te!==null&&re===null&&(c0(y),y.nh.pop()),re===null||(a.$o(y,E,oe,re),y.Il&&(x=x.computePixelRatio(),a.Dv(re,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),b&&a.l&512&&th(y),a.Dd()&&Iu(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&re.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&re.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(re):y.Nj.prepend(re),y.ti=re):E!==null&&cs(a,E,re),te!==null&&te(a,re)),!0)}be.$o=function(a,y,x,E){var b=(this.l&256)!==0;if(a.clipInsteadOfFill&&(b=!1),b){var z=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(x.x,z.x),b=Math.max(x.y,z.y);var te=Math.min(x.right,z.right)-y;x=Math.min(x.bottom,z.bottom)-b,z=this.tb,z!==null&&(y=z.x,b=z.y,te=z.width,x=z.height),z=E.getAttribute("clip-path");var re=null;z!==null&&(re=a.svg.getElementById(z.split("#")[1].slice(0,-1))),re===null?(z="CLIP"+Co++,re=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:b,width:te,height:x}),this instanceof On&&(b=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")")),re.appendChild(y),a.svg.appendChild(re),E.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=re.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",b.toString()),a.setAttribute("width",te.toString()),a.setAttribute("height",x.toString()))}else E.removeAttributeNS(null,"clip-path"),Ts(a,E)};function Ts(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function fs(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=Xn(y);for(var E=y.next();!E.done;E=y.next())E=x.getElementById(E.value.split("#")[1].slice(0,-1)),E!==null&&E.remove()}a.svg.remove()}}be.hh=function(){},be.lv=function(){this.Uc=!0},be.kk=function(a,y,x){if(this.Uc)return this.lv(),this.Uc=!1;if(y=this.svg,y===null)return!1;if(!this.visible)return y.remove(),!1;if(y.nodeName!=="g"&&x||y.nodeName==="g"&&!x)return!1;var E=this.transform,b=this instanceof On?Mh(this):!1;if(!(this instanceof On&&b))if(this instanceof Rs){var z=this.bt;a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy],z!==null&&qy(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),x?y.lastElementChild.setAttributeNS(null,"transform",$y(a)):y.setAttributeNS(null,"transform",$y(a))}else if(!x||this instanceof On)y.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")");else if(this instanceof Mr){z=y.getElementsByTagName("path");for(var te=0;te<z.length;te++)z[te].setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")}else y.lastElementChild.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")");return z=this.Dd()?this.opacity*a.globalAlpha:this.opacity,z===1?y.removeAttribute("opacity"):y.setAttributeNS(null,"opacity",z.toString()),a.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||y.gd!==void 0)&&(z=y.gd,this.areaBackground===null?(y.gd.remove(),y.gd=void 0):(te=E.copy().Vj(),a.rb.ha=[te.m11,te.m12,te.m21,te.m22,te.dx,te.dy],sl(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(te=y.gd.getAttribute("filter"),te!==null&&a.ad.setAttribute("filter",te),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&f0(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(f0(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((b||x&&!(this instanceof On))&&(a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy]),Vs(this,a,this.naturalBounds,this.actualBounds),y.Ma?(f0(a,y.Ma),x=y.Ma.getAttribute("filter"),x!==null&&a.ad.setAttribute("filter",x),y.Ma.replaceWith(a.ad)):y.prepend(a.ad),y.Ma=a.ad),z&&f0(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},be.nk=function(a){if(this.background!==null||this.areaBackground!==null)return!0;var y=(this.l&256)!==0;return a.clipInsteadOfFill&&(y=!1),!!y};function ha(a,y,x,E,b,z,te){if(x!==null){var re=1,oe=1;if(typeof x=="string")E?y.fillStyle=x:y.strokeStyle=x;else if(x.type===Fh)E?y.fillStyle=x.color:y.strokeStyle=x.color;else{var le=a.kq();if(re=z.width,oe=z.height,b?(re=te.width,oe=te.height):E||(re+=le,oe+=le),(z=y instanceof Xd)&&x.xe&&(x.type===kf||x.yk===re&&x.ft===oe))var he=x.xe;else{var ge=0,Se=0,we=0,Ae=0,Ne=0,$e=0;if($e=Ne=0,b?(Ne=te.x,$e=te.y):E||(Ne-=le/2,$e-=le/2),ge=x.start.x*re+x.start.offsetX,Se=x.start.y*oe+x.start.offsetY,we=x.end.x*re+x.end.offsetX,Ae=x.end.y*oe+x.end.offsetY,ge+=Ne,we+=Ne,Se+=$e,Ae+=$e,x.type===ih)he=y.createLinearGradient(ge,Se,we,Ae);else if(x.type===Cl)$e=isNaN(x.endRadius)?Math.max(re,oe)/2:x.endRadius,isNaN(x.startRadius)?(Ne=0,$e=Math.max(re,oe)/2):Ne=x.startRadius,he=y.createRadialGradient(ge,Se,Ne,we,Ae,$e);else if(x.type===kf)try{he=y.createPattern(x.pattern,"repeat")}catch(at){he=null}if(x.type!==kf&&(b=x.colorStops,b!==null))for(b=b.iterator;b.next();)he.addColorStop(b.key,b.value);if(z&&(x.xe=he,he!==null&&(x.yk=re,x.ft=oe),he===null&&x.type===kf&&x.yk!==-1)){x.yk=-1;var Ke=a.diagram;Ke!==null&&x.yk===-1&&Fr(function(){Ke.redraw()},600)}}E?y.fillStyle=he:y.strokeStyle=he}}}be.rg=function(a){if(a instanceof On)e:{if(this!==a&&a!==null)for(var y=this.panel;y!==null;){if(y===a){a=!0;break e}y=y.panel}a=!1}else a=!1;return a},be.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},be.If=function(){for(var a=this instanceof On?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function Qa(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){Ol(a,!1);return}if(y.translate(a.Ib.x-a.uc.x,a.Ib.y-a.uc.y),a.scale!==1||a.angle!==0){var x=a.naturalBounds;a.no(y,x.x,x.y,x.width,x.height)}Ol(a,!1),Pl(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,Pl(a,!1)):y.oe!==null&&(x=a.wh,x.reset(),y.se()?x.multiply(y.wh):y.panel!==null&&x.multiply(y.panel.wh),x.multiply(a.Ab),a.Kk=a.scale*y.Kk,Pl(a,!1)))}be.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=je.alloc();z.yi(y,x,E,b,hi),a.rotate(this.Kb,z.x,z.y),je.free(z)}},be.v=function(a){if(!ll(this)){a===void 0&&(a=!1),Ma(this,!0),Ou(this,!0);var y=this.panel;y===null||a||y.v()}},be.Uj=function(){ll(this)||(Ma(this,!0),Ou(this,!0))};function ws(a){if(!Cs(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof li&&a.Bd(),y.$b())),Ou(a,!0)}}be.Uk=function(){!(this.l&2048)&&(Ol(this,!0),Pl(this,!0))},be.Wu=function(){Pl(this,!0)},be.N=function(){var a=this.part;a!==null&&a.N()};function Os(a,y){var x=a.stretch,E=a.panel;return E!==null&&E.type===On.Table?ou(a,E.Fb(a.row),E.Eb(a.column),y):E!==null&&E.type===On.Auto&&E.Pb()===a?Ua(a,Nn,y):x===Cr?E!==null?E.type===On.Spot&&E.Pb()===a?Ua(a,Nn,y):(x=E.defaultStretch,x===Cr?Ua(a,xn,y):Ua(a,x,y)):Ua(a,xn,y):Ua(a,x,y)}function ou(a,y,x,E){var b=a.stretch;if(b!==Cr)return Ua(a,b,E);var z=b=null;switch(y.stretch){case er:z=!0;break;case Nn:z=!0}switch(x.stretch){case Zi:b=!0;break;case Nn:b=!0}return y=a.panel.defaultStretch,b===null&&(b=y===Zi||y===Nn),z===null&&(z=y===er||y===Nn),b===!0&&z===!0?Ua(a,Nn,E):b===!0?Ua(a,Zi,E):z===!0?Ua(a,er,E):Ua(a,xn,E)}function Ua(a,y,x){if(x)return y;if(y===xn||(x=a.desiredSize,x.w()))return xn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===Zi)return xn;if(y===Nn)return er}else{if(y===er)return xn;if(y===Nn)return Zi}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===er)return xn;if(y===Nn)return Zi}else{if(y===Zi)return xn;if(y===Nn)return er}return y}function Ul(a,y){a.l=y?a.l|512:a.l&-513}function ts(a){return(a.l&1024)!==0}function Bc(a,y){a.l=y?a.l|1024:a.l&-1025}function Ol(a,y){a.l=y?a.l|2048:a.l&-2049}function Pl(a,y){a.l=y?a.l|4096:a.l&-4097}function ll(a){return(a.l&8192)!==0}function Ma(a,y){a.l=y?a.l|8192:a.l&-8193}function Cs(a){return(a.l&16384)!==0}function Ou(a,y){a.l=y?a.l|16384:a.l&-16385}be.Gj=function(){this.svg=null},be.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},be.Av=function(){},be.zv=function(a){return this.pa=a,ws(this),!0},be.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},be.kq=function(){return 0};function Kd(a){var y=a.part;if(y instanceof li&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||Y1(y,a)}}function Qy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof On?a instanceof li?a.Bd():a.qm(a,function(x){Kd(x)}):Kd(a))}be.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new xa(a,y,x,E):b=a,b.xd=this,a=this.ih(),a!==null&&p1(a)&<("Cannot add a Binding to a template that has already been copied: "+b),this.localBindings===null&&(this.localBindings=new An),this.localBindings.add(b),this},be.set=function(a){return Object.assign(this,a),this},be.Du=function(a){return rv(this,a),this},be.apply=function(a){return a(this),this},be.nm=function(a){return zd(this,a),this},be.pz=function(){return this.ih()},be.ih=function(){for(var a=this instanceof On?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},be.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new Wt),this.animationTriggers.add(a.propertyName,a),this};function wl(a,y){for(var x=1;x<arguments.length;++x);x=arguments;var E=null,b=null;if(typeof a=="function")b=a;else if(typeof a=="string"){var z=Af.I(a);typeof z=="function"?(x=Ri(arguments),E=z(x),tn(E)||lt('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):b=un.go[a]}if(E===null&&(b!=null&&b.constructor||lt("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),E=new b),b=1,E instanceof _t&&1<x.length){z=E;var te=x[1];(typeof te=="string"||te instanceof HTMLDivElement)&&(xg(z,te),b++)}for(;b<x.length;b++)z=x[b],z===void 0?lt("Undefined value at argument "+b+" for object being constructed by GraphObject.make: "+E):rv(E,z);return E}function rv(a,y){if(typeof y=="string")if(a instanceof Wo)a.text=y;else if(a instanceof Mr)a.figure=y;else if(a instanceof Rs)a.source=y;else if(a instanceof On)y=Xl.I(y),y!==null&&(a.type=y);else if(a instanceof So){var x=Oi(So,y);x!==null?a.type=x:lt("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Cn?(y=Oi(Cn,y),y!==null&&(a.type=y)):a instanceof Wr&&(y=Oi(Wr,y),y!==null&&(a.type=y));else if(y instanceof Mt)a instanceof On||lt("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof La){var E;y.isRow&&typeof a.getRowDefinition=="function"?E=a.getRowDefinition(y.index):y.isRow||typeof a.getColumnDefinition!="function"||(E=a.getColumnDefinition(y.index)),E instanceof La?b0(E,y):lt("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof Kt)typeof a.qb=="function"&&a.qb(y);else if(y instanceof ka)a.type=y;else if(y instanceof xa)a instanceof Mt||a instanceof La?a.bind(y):lt("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Yl)a instanceof Mt?a.Jv(y):lt("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof aa)a instanceof Cn&&a.type===Cn.o?a.figures.add(y):lt("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof Wr)a instanceof aa?a.segments.add(y):lt("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof ea)a instanceof _t||a instanceof Pr?a.layout=y:lt("A Layout can only be assigned to a Diagram or a Group, not to: "+a);else if(Array.isArray(y))for(x=0;x<y.length;x++)rv(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof So){x=new _i;for(var b in y)E=parseFloat(b),isNaN(E)?x[b]=y[b]:a.addColorStop(E,y[b]);zd(a,x)}else if(a instanceof La){y.row!==void 0?(b=y.row,(b==null||b===1/0||isNaN(b)||0>b)&<("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+b),a.isRow=!0,a.index=b):y.column!==void 0&&(b=y.column,(b==null||b===1/0||isNaN(b)||0>b)&<("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new _i;for(x in y)x!=="row"&&x!=="column"&&(b[x]=y[x]);zd(a,b)}else zd(a,y);else lt('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Ah(a,y){Af.add(a,y)}function d0(a,y,x){x===void 0&&(x=null);var E=a[1];if(typeof x=="function"?x(E):typeof E=="string")return a.splice(1,1),E;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}pn.Object.defineProperties(Mt.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new Nc),this.A.zp=a)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new Nc),this.A.te=a)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(a){this.srcBindings!==a&&(this.A===null&&(this.A=new Nc),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(Dr(this),this.A.Ci=a,this.Uc=!0,this.N(),this.g("shadowVisible",y,a))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(a){var y=this.enabledChanged;y!==a&&(Dr(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Fs},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new sd),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Fs&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new sd),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1<a&&(a=1);var y=this.segmentFraction;y!==a&&(this.Ua===null&&(this.Ua=new sd),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:Qn},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new sd),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:Cr},set:function(a){var y=this.stretch;y!==a&&(Dr(this),this.A.hg=a,this.v(),this.g("stretch",y,a))}},name:{get:function(){return this.A!==null?this.A.xa:""},set:function(a){var y=this.name;y!==a&&(Dr(this),this.A.xa=a,this.part!==null&&(this.part.Rh=null),this.g("name",y,a))}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&ai(a,"0 <= value <= 1",Mt,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N($d(y,y.actualBounds)))}},filter:{get:function(){return this.bn},set:function(a){var y=this.bn;y!==a&&(this.bn=a,this.Uc=!0,this.g("filter",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N($d(y,y.actualBounds)))}},visible:{get:function(){return(this.l&1)!==0},set:function(a){var y=(this.l&1)!==0;y!==a&&(this.l^=1,this.g("visible",y,a),y=this.panel,y!==null?y.v():this.Dd()&&this.Zb(a),this.N(),Qy(this))}},pickable:{get:function(){return(this.l&2)!==0},set:function(a){var y=(this.l&2)!==0;y!==a&&(this.l^=2,this.g("pickable",y,a))}},fromLinkableDuplicates:{get:function(){return(this.l&4)!==0},set:function(a){var y=(this.l&4)!==0;y!==a&&(this.l^=4,this.g("fromLinkableDuplicates",y,a))}},fromLinkableSelfNode:{get:function(){return(this.l&8)!==0},set:function(a){var y=(this.l&8)!==0;y!==a&&(this.l^=8,this.g("fromLinkableSelfNode",y,a))}},toLinkableDuplicates:{get:function(){return(this.l&16)!==0},set:function(a){var y=(this.l&16)!==0;y!==a&&(this.l^=16,this.g("toLinkableDuplicates",y,a))}},toLinkableSelfNode:{get:function(){return(this.l&32)!==0},set:function(a){var y=(this.l&32)!==0;y!==a&&(this.l^=32,this.g("toLinkableSelfNode",y,a))}},isPanelMain:{get:function(){return(this.l&64)!==0},set:function(a){var y=(this.l&64)!==0;y!==a&&(this.l^=64,this.v(),this.g("isPanelMain",y,a))}},isActionable:{get:function(){return(this.l&128)!==0},set:function(a){var y=(this.l&128)!==0;y!==a&&(this.l^=128,this.g("isActionable",y,a))}},areaBackground:{get:function(){return this.A!==null?this.A.gd:null},set:function(a){var y=this.areaBackground;y!==a&&(a!==null&&Oc(a,"GraphObject.areaBackground"),a instanceof So&&a.freeze(),Dr(this),this.A.gd=a,this.N(),this.g("areaBackground",y,a))}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&Oc(a,"GraphObject.background"),a instanceof So&&a.freeze(),this.Ma=a,this.N(),this.g("background",y,a))}},part:{get:function(){if(this.Dd())return this;if(this.Ng!==null)return this.Ng;var a;for(a=this.panel;a;){if(a instanceof Xi)return this.Ng=a;a=a.panel}return null}},svg:{get:function(){return this.V},set:function(a){this.V=a}},panel:{get:function(){return this.Me}},layer:{get:function(){var a=this.part;return a!==null?a.layer:null}},diagram:{get:function(){var a=this.part;return a!==null?a.diagram:null}},position:{get:function(){return this.pa},set:function(a){var y=a.x,x=a.y,E=this.pa,b=E.x;E=E.y,(b===y||isNaN(b)&&isNaN(y))&&(E===x||isNaN(E)&&isNaN(x))?this.Av():(a=a.copy(),this.zv(a,b,E)&&this.g("position",new je(b,E),a))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&(0>=a&<("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,Qy(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,E=this.jd,b=E.width,z=E.height;(b===y||isNaN(b)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof Mr&&this.qc(),this.g("desiredSize",E,a),ts(this)&&(a=this.part,a!==null&&(Qo(this,a,"width"),Qo(this,a,"height"))))}},width:{get:function(){return this.jd.width},set:function(a){var y=this.jd.width;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Xe(a,this.jd.height).freeze(),this.v(),this instanceof Mr&&this.qc(),this.g("desiredSize",y,a),ts(this)&&(a=this.part,a!==null&&Qo(this,a,"width")))}},height:{get:function(){return this.jd.height},set:function(a){var y=this.jd.height;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Xe(this.jd.width,a).freeze(),this.v(),this instanceof Mr&&this.qc(),this.g("desiredSize",y,a),ts(this)&&(a=this.part,a!==null&&Qo(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Pt},set:function(a){var y=this.minSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),Dr(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Tn},set:function(a){var y=this.maxSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=1/0),isNaN(a.height)&&(a.height=1/0),a.freeze(),Dr(this),this.A.o=a,this.v(),this.g("maxSize",y,a))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(a){typeof a=="number"&&(a=new ri(a));var y=this.Kg;y.D(a)||(this.Kg=a=a.J(),this.v(),this.g("margin",y,a))}},transform:{get:function(){return this.l&2048&&Qa(this),this.Ab}},oe:{get:function(){return this.l&4096&&Qa(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Dr(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:xn},set:function(a){this.reshapingBehavior!==a&&(Dr(this),this.A.Pf=a)}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(a.Mc()&&!a.Xb()&<("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),ws(this),this.g("alignment",y,a))}},column:{get:function(){return this.Ag},set:function(a){a=Math.round(a);var y=this.Ag;y!==a&&(0>a&&ai(a,">= 0",Mt,"column"),this.Ag=a,this.v(),this.g("column",y,a),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(a){a=Math.round(a);var y=this.columnSpan;y!==a&&(1>a&&ai(a,">= 1",Mt,"columnSpan"),Dr(this),this.A.ob=a,this.v(),this.g("columnSpan",y,a))}},row:{get:function(){return this.io},set:function(a){a=Math.round(a);var y=this.io;y!==a&&(0>a&&ai(a,">= 0",Mt,"row"),this.io=a,this.v(),this.g("row",y,a),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(a){a=Math.round(a);var y=this.rowSpan;y!==a&&(1>a&&ai(a,">= 1",Mt,"rowSpan"),Dr(this),this.A.Bi=a,this.v(),this.g("rowSpan",y,a))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(a){var y=this.spanAllocation;y!==a&&(Dr(this),this.A.Di=a,this.v(),this.g("spanAllocation",y,a))}},alignmentFocus:{get:function(){return this.sk},set:function(a){var y=this.sk;y.D(a)||(this.sk=a=a.J(),this.v(),this.g("alignmentFocus",y,a))}},portId:{get:function(){return this.Yn},set:function(a){var y=this.Yn;if(y!==a){var x=this.part;x===null||x instanceof li||lt("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Vv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,X1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Fi},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Kd(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&ai(a,">= 0",Mt,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Kd(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.g("toShortLength",y,a),Kd(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(a){var y=this.toLinkable;y!==a&&(this.Xc(),this.ba.Tr=a,this.g("toLinkable",y,a))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(a){var y=this.toMaxLinks;y!==a&&(0>a&&ai(a,">= 0",Mt,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Fi},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Kd(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&ai(a,">= 0",Mt,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Kd(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.g("fromShortLength",y,a),Kd(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(a){var y=this.fromLinkable;y!==a&&(this.Xc(),this.ba.hq=a,this.g("fromLinkable",y,a))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(a){var y=this.fromMaxLinks;y!==a&&(0>a&&ai(a,">= 0",Mt,"fromMaxLinks"),this.Xc(),this.ba.iq=a,this.g("fromMaxLinks",y,a))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(a){var y=this.cursor;y!==a&&(Dr(this),this.A.j=a,this.g("cursor",y,a))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(a){var y=this.click;y!==a&&(Dr(this),this.A.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(a){var y=this.doubleClick;y!==a&&(Dr(this),this.A.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(a){var y=this.contextClick;y!==a&&(Dr(this),this.A.Bh=a,this.g("contextClick",y,a))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(a){var y=this.mouseEnter;y!==a&&(Dr(this),this.A.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(a){var y=this.mouseLeave;y!==a&&(Dr(this),this.A.Ph=a,this.g("mouseLeave",y,a))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(a){var y=this.mouseOver;y!==a&&(Dr(this),this.A.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(a){var y=this.mouseHover;y!==a&&(Dr(this),this.A.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(a){var y=this.mouseHold;y!==a&&(Dr(this),this.A.Nh=a,this.g("mouseHold",y,a))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(a){var y=this.mouseDragEnter;y!==a&&(Dr(this),this.A.Of=a,this.g("mouseDragEnter",y,a))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(a){var y=this.mouseDragLeave;y!==a&&(Dr(this),this.A.Xd=a,this.g("mouseDragLeave",y,a))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(a){var y=this.mouseDrop;y!==a&&(Dr(this),this.A.Lh=a,this.g("mouseDrop",y,a))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(a){var y=this.actionDown;y!==a&&(Dr(this),this.A.V=a,this.g("actionDown",y,a))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(a){var y=this.actionMove;y!==a&&(Dr(this),this.A.ia=a,this.g("actionMove",y,a))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(a){var y=this.actionUp;y!==a&&(Dr(this),this.A.Ha=a,this.g("actionUp",y,a))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(a){var y=this.actionCancel;y!==a&&(Dr(this),this.A.F=a,this.g("actionCancel",y,a))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(a){var y=this.toolTip;y!==a&&(Dr(this),this.A.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(a){var y=this.contextMenu;y!==a&&(Dr(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Mt.prototype.trigger=Mt.prototype.Jv,Mt.prototype.findBindingPanel=Mt.prototype.ih,Mt.prototype.findTemplateBinder=Mt.prototype.pz,Mt.prototype.setProperties=Mt.prototype.nm,Mt.prototype.apply=Mt.prototype.apply,Mt.prototype.attach=Mt.prototype.Du,Mt.prototype.set=Mt.prototype.set,Mt.prototype.isEnabledObject=Mt.prototype.If,Mt.prototype.isVisibleObject=Mt.prototype.Ed,Mt.prototype.isContainedBy=Mt.prototype.rg,Mt.prototype.getNearestIntersectionPoint=Mt.prototype.rs,Mt.prototype.getLocalPoint=Mt.prototype.qs,Mt.prototype.getDocumentScale=Mt.prototype.Df,Mt.prototype.getDocumentAngle=Mt.prototype.li,Mt.prototype.getDocumentBounds=Mt.prototype.mi,Mt.prototype.getDocumentPoint=Mt.prototype.ga,Mt.prototype.intersectsRect=Mt.prototype.Yc,Mt.prototype.containedInRect=Mt.prototype.fh,Mt.prototype.containsRect=Mt.prototype.Re,Mt.prototype.containsPoint=Mt.prototype.ca,Mt.prototype.raiseChanged=Mt.prototype.g,Mt.prototype.raiseChangedEvent=Mt.prototype.cb,Mt.prototype.addCopyProperty=Mt.prototype.Vw;var Af=null;Mt.className="GraphObject",Af=new Wt,Ah("Button",function(){function a(x,E){return x.diagram.ic(x.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b},function(b){return b===E})!==null}var y=wl(On,On.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof On){var b=x.fb("ButtonBorder");b!==null&&(b.fill=E?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},wl(Mr,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new bn(0,0,2.76142374915397,2.761423749153969),spot2:new bn(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,E){if(E.If()&&E instanceof On&&(x=E.fb("ButtonBorder"),x instanceof Mr)){var b=E._buttonFillOver;E._buttonFillNormal=x.fill,x.fill=b,b=E._buttonStrokeOver,E._buttonStrokeNormal=x.stroke,x.stroke=b}},y.mouseLeave=function(x,E){E.If()&&E instanceof On&&(x=E.fb("ButtonBorder"),x instanceof Mr&&(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal))},y.actionDown=function(x,E){if(E.If()&&E instanceof On&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Mr){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var te=E._buttonFillPressed;E._buttonFillOver=b.fill,b.fill=te,te=E._buttonStrokePressed,E._buttonStrokeOver=b.stroke,b.stroke=te,x.skipsUndoManager=z}}},y.actionUp=function(x,E){if(E.If()&&E instanceof On&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Mr){var z=x.diagram,te=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=te}}},y.actionCancel=function(x,E){if(E.If()&&E instanceof On&&E._buttonFillPressed!==null){var b=E.fb("ButtonBorder");if(b instanceof Mr){var z=x.diagram,te=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=te}}},y.actionMove=function(x,E){if(E.If()&&E instanceof On&&E._buttonFillPressed!==null){var b=x.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(x,E)&&(x=E.fb("ButtonBorder"),x instanceof Mr))){var z=b.skipsUndoManager;b.skipsUndoManager=!0;var te=E._buttonFillPressed;x.fill!==te&&(x.fill=te),te=E._buttonStrokePressed,x.stroke!==te&&(x.stroke=te),b.skipsUndoManager=z}}},y}),Ah("TreeExpanderButton",function(){var a=wl("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},wl(Mr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:qt},new xa("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new xa("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof eo&&(x=x.adornedPart),x instanceof li){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isTreeExpanded){if(!E.canCollapseTree(x))return}else if(!E.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?E.collapseTree(x):E.expandTree(x)}}},a}),Ah("SubGraphExpanderButton",function(){var a=wl("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},wl(Mr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:qt},new xa("figure","isSubGraphExpanded",function(y,x){return x=x.panel,y?x._subGraphExpandedFigure:x._subGraphCollapsedFigure}).cp()));return a.click=function(y,x){if(x=x.part,x instanceof eo&&(x=x.adornedPart),x instanceof Pr){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isSubGraphExpanded){if(!E.canCollapseSubGraph(x))return}else if(!E.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?E.collapseSubGraph(x):E.expandSubGraph(x)}}},a}),Ah("ToolTip",function(){return wl(eo,On.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new je(0,3),shadowBlur:5},wl(Mr,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new bn(0,0,4,6),spot2:new bn(1,1,-4,-4)}))}),Ah("ContextMenu",function(){return wl(eo,On.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new je(0,3),shadowBlur:5},new xa("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Ah("ContextMenuButton",function(){var a=wl("Button");a.stretch=Zi;var y=a.fb("ButtonBorder");return y instanceof Mr&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new bn(0,0,2,3),y.spot2=new bn(1,1,-2,-2)),a}),Ah("PanelExpanderButton",function(a){var y=d0(a,"COLLAPSIBLE"),x=wl("Button",{_buttonExpandedFigure:"M0 0 M0 6 L4 2 8 6 M8 8",_buttonCollapsedFigure:"M0 0 M0 2 L4 6 8 2 M8 8",_buttonFillNormal:"rgba(0, 0, 0, 0)",_buttonStrokeNormal:null,_buttonFillOver:"rgba(0, 0, 0, .2)",_buttonStrokeOver:null,_buttonFillPressed:"rgba(0, 0, 0, .4)",_buttonStrokePressed:null},wl(Mr,{name:"ButtonIcon",strokeWidth:2},new xa("geometryString","visible",function(E){return E?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Mr&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(E,b){var z=b.diagram;if(z!==null&&!z.isReadOnly){var te=b.ih();te===null&&(te=b.part),te!==null&&(b=te.fb(y),b!==null&&(E.handled=!0,z.Ea("Collapse/Expand Panel"),b.visible=!b.visible,z.eb("Collapse/Expand Panel")))}},x}),Ah("CheckBoxButton",function(a){var y=d0(a);return a=wl("Button",{desiredSize:new Xe(14,14)},wl(Mr,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Nn,geometryStretch:Bi,visible:!1},y!==""?new xa("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof On){var b=x.diagram;if(!(b===null||b.isReadOnly||y!==""&&b.model.isReadOnly)){x.handled=!0;var z=E.fb("ButtonIcon");b.Ea("checkbox"),z.visible=!z.visible,typeof E._doClick=="function"&&E._doClick(x,E),b.eb("checkbox")}}},a}),Ah("CheckBox",function(a){a=d0(a),a=wl("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new ri(0,1,0,0)});var y=wl(On,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new ri(1),_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,_buttonFillPressed:a._buttonFillPressed,_buttonStrokePressed:a._buttonStrokePressed,_buttonFillDisabled:a._buttonFillDisabled,mouseEnter:a.mouseEnter,mouseLeave:a.mouseLeave,actionDown:a.actionDown,actionUp:a.actionUp,actionCancel:a.actionCancel,actionMove:a.actionMove,click:a.click,_buttonClick:a.click});return a.mouseEnter=null,a.mouseLeave=null,a.actionDown=null,a.actionUp=null,a.actionCancel=null,a.actionMove=null,a.click=null,y}),Mt.None=xn=new Kt(Mt,"None",0),Mt.Default=Cr=new Kt(Mt,"Default",0),Mt.Vertical=er=new Kt(Mt,"Vertical",4),Mt.Horizontal=Zi=new Kt(Mt,"Horizontal",5),Mt.Fill=Nn=new Kt(Mt,"Fill",3),Mt.Uniform=Bi=new Kt(Mt,"Uniform",1),Mt.UniformToFill=Vr=new Kt(Mt,"UniformToFill",2),Mt.FlipVertical=Br=new Kt(Mt,"FlipVertical",1),Mt.FlipHorizontal=Qr=new Kt(Mt,"FlipHorizontal",2),Mt.FlipBoth=Lo=new Kt(Mt,"FlipBoth",3),Mt.make=wl,Mt.getBuilders=function(){var a=new Wt,y;for(y in Af)if(y!==y.toLowerCase()){var x=Af.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},Mt.defineBuilder=Ah,Mt.build=function(a,y,x){for(var E=[],b=2;b<arguments.length;++b)E[b-2]=arguments[b];if(b=Af.I(a),typeof b=="function"&&(E=b([a].concat(E)),E instanceof Mt))return y&&E.set(y),E;lt('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},Mt.takeBuilderArgument=d0;function Nc(){this.nc=!1,this.xa="",this.zp=-1,this.nb=this.wm=this.te=null,this.j="",this.hb=this.Di=this.Hb=this.Ch=this.$h=this.F=this.Ha=this.ia=this.V=this.Lh=this.Xd=this.Of=this.Nh=this.Oh=this.Qh=this.Ph=this.Mh=this.Bh=this.Fh=this.zh=null,this.u=Pt,this.o=Tn,this.hg=Cr,this.ob=this.Bi=1,this.Pf=xn,this.Pc=this.Ci=this.gd=null,this.Oc="category"}Nc.prototype.copy=function(){var a=new Nc;return a.xa=this.xa,a.zp=this.zp,a.te=this.te,a.nb=this.nb,a.j=this.j,a.zh=this.zh,a.Fh=this.Fh,a.Bh=this.Bh,a.Mh=this.Mh,a.Ph=this.Ph,a.Qh=this.Qh,a.Oh=this.Oh,a.Nh=this.Nh,a.Of=this.Of,a.Xd=this.Xd,a.Lh=this.Lh,a.V=this.V,a.ia=this.ia,a.Ha=this.Ha,a.F=this.F,a.$h=this.$h,a.Ch=this.Ch,a.Hb=this.Hb,a.Di=this.Di,a.hb=this.hb,a.u=this.u.J(),a.o=this.o.J(),a.hg=this.hg,a.Bi=this.Bi,a.ob=this.ob,a.Pf=this.Pf,a.gd=this.gd,a.Ci=this.Ci,a.Pc=this.Pc,a.Oc=this.Oc,a};function sd(){this.u=-1/0,this.o=0,this.F=Qn,this.rr=Fs,this.j=this.V="None"}sd.prototype.copy=function(){var a=new sd;return a.u=this.u,a.o=this.o,a.F=this.F.J(),a.rr=this.rr,a.V=this.V,a.j=this.j,a},sd.className="LinkElementSettings";function _g(){this.yj=this.Xi=Eo,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}_g.prototype.copy=function(){var a=new _g;return a.Xi=this.Xi.J(),a.yj=this.yj.J(),a.Vi=this.Vi,a.wj=this.wj,a.Wi=this.Wi,a.xj=this.xj,a.hq=this.hq,a.Tr=this.Tr,a.iq=this.iq,a.Ur=this.Ur,a},_g.className="LinkSettings";function Ud(){this.ha=[1,0,0,1,0,0]}Ud.prototype.copy=function(){var a=new Ud;return a.ha[0]=this.ha[0],a.ha[1]=this.ha[1],a.ha[2]=this.ha[2],a.ha[3]=this.ha[3],a.ha[4]=this.ha[4],a.ha[5]=this.ha[5],a},Ud.prototype.translate=function(a,y){this.ha[4]+=this.ha[0]*a+this.ha[2]*y,this.ha[5]+=this.ha[1]*a+this.ha[3]*y},Ud.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},Ud.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.ha[1]*a+this.ha[3]*E,z=this.ha[0]*-E+this.ha[2]*a,te=this.ha[1]*-E+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*E,this.ha[1]=b,this.ha[2]=z,this.ha[3]=te,this.translate(-y,-x)}},Ud.className="STransform";function Tc(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Tc.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},Tc.className="SGradient";function Cu(a,y,x){this.ownerDocument=a=y===void 0?un.document:y,this.cA="http://www.w3.org/2000/svg",a!==void 0&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new qs(this,x)}Cu.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",E+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+E),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",E+"px"),!0):!1},Cu.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),tn(y))for(var E in y)a.setAttributeNS(E==="href"?"http://www.w3.org/1999/xlink":"",E,y[E]);return x!==void 0&&(a.textContent=x),a},Cu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Cu.prototype.focus=function(){this.Oa.focus()},Cu.prototype.mx=function(){this.ownerDocument=null},pn.Object.defineProperties(Cu.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(a){this.Oa.setAttribute("width",a+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(a){this.Oa.setAttribute("height",a+"px")}},style:{get:function(){return this.Oa.style}}}),Cu.className="SVGSurface";function qs(a,y){this.Gv=a,this.svg=a.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new Ud,this.j=c0(this),this.Nj=c0(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Co++,E=this.Ud("clipPath",{id:"mainClip"+x});E.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=E,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(E),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Jy(a,y,x,E,b,z,te){a.Nj===void 0?Yg(a,y,x,E,b,z,te):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+E+", "+b+", "+z+", "+te+")")}be=qs.prototype,be.arc=function(a,y,x,E,b,z,te,re){var oe=2*Math.PI,le=oe-1e-6,he=x*Math.cos(E),ge=x*Math.sin(E),Se=a+he,we=y+ge,Ae=z?0:1;E=z?E-b:b-E,(1e-6<Math.abs(te-Se)||1e-6<Math.abs(re-we))&&this.path.push(["L",Se,+we]),0>E&&(E=E%oe+oe),E>le?(this.path.push(["A",x,x,0,1,Ae,a-he,y-ge]),this.path.push(["A",x,x,0,1,Ae,Se,we])):1e-6<E&&this.path.push(["A",x,x,0,+(E>=Math.PI),Ae,a+x*Math.cos(b),y+x*Math.sin(b)])},be.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},be.Se=function(a){this.addPath(this.path,this.rb,a||0)},be.bezierCurveTo=function(a,y,x,E,b,z){this.path.push(["C",a,y,x,E,b,z])},be.clearRect=function(){},be.clip=function(){this.Yl.clipPath=!0},be.closePath=function(){this.path.push(["z"])},be.createLinearGradient=function(a,y,x,E){var b=new Tc("linear");return b.x1=a,b.y1=y,b.x2=x,b.y2=E,b},be.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var E="PATTERN"+Co++,b={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:E,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(_d,b)),this.svg.appendChild(a),x[y]=E,"url(#"+E+")"},be.createRadialGradient=function(a,y,x,E,b,z){var te=new Tc("radial");return te.x1=a,te.y1=y,te.r1=x,te.x2=E,te.y2=b,te.r2=z,te};function qy(a,y,x,E,b,z,te,re,oe){E=re/E,b=oe/b,z===0&&te===0||a.rb.translate(z,te),E===1&&b===1||a.rb.scale(E,b),y===0&&x===0||a.rb.translate(-y,-x)}be.drawImage=function(a,y,x,E,b,z,te,re,oe){var le="";a instanceof HTMLCanvasElement&&(le=a.toDataURL()),a instanceof HTMLImageElement&&(le=a.getAttribute("src"));var he=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,E===void 0&&(z=y,te=x,re=E=he,oe=b=a),E=E||0,b=b||0,re=re||0,oe=oe||0,qy(this,y,x,E,b,z||0,te||0,re,oe),z={x:0,y:0,width:he||E,height:a||b,href:le},St.$(E,re)&&St.$(b,oe)?le.toLowerCase().indexOf(".svg")===-1&&le.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||E!==he||b!==a)&&(E+=y,b+=x,z["clip-path"]="path('M "+y+","+x+" L "+E+" "+x+" L "+E+" "+b+" L "+y+" "+b+" z')"),Ff(this,_d,z,this.rb),this.addElement(_d,z)},be.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),ov(this,this.Yl)},be.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},be.fillRect=function(a,y,x,E){a=[a,y,x,E],a={x:a[0],y:a[1],width:a[2],height:a[3]},Ff(this,"fill",a,this.rb),this.addElement("rect",a)},be.ox=function(a,y,x,E){a={x:a,y,width:x,height:E},Ff(this,"fill",a,this.rb),ov(this,a),this.svg.prepend(this.Ud("rect",a))},be.fillText=function(a,y,x){a=[a,y,x],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},Ff(this,"fill",y,this.rb),this.addElement("text",y,a[0])},be.lineTo=function(a,y){this.path.push(["L",a,y])},be.moveTo=function(a,y){this.path.push(["M",a,y])},be.quadraticCurveTo=function(a,y,x,E){this.path.push(["Q",a,y,x,E])},be.rect=function(a,y,x,E){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+E],["L",a,y+E],["z"])},be.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var a=this.stack.pop();this.fillStyle=a.fillStyle,this.font=a.font,this.globalAlpha=a.globalAlpha,this.lineCap=a.lineCap,this.lineDashOffset=a.lineDashOffset,this.lineJoin=a.lineJoin,this.lineWidth=a.lineWidth,this.miterLimit=a.miterLimit,this.shadowBlur=a.shadowBlur,this.shadowColor=a.shadowColor,this.shadowOffsetX=a.shadowOffsetX,this.shadowOffsetY=a.shadowOffsetY,this.strokeStyle=a.strokeStyle,this.textAlign=a.textAlign,this.bk=a.bk},be.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign,bk:this.bk});for(var a=[],y=0;y<this.path.length;y++)a.push(this.path[y]);this.stack.push(a),this.stack.push(this.rb.copy())},be.setTransform=function(a,y,x,E,b,z){a===1&&y===0&&x===0&&E===1&&b===0&&z===0||Yg(this,a,y,x,E,b,z)};function $y(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}be.scale=function(a,y){this.rb.scale(a,y)},be.translate=function(a,y){this.rb.translate(a,y)},be.transform=function(){},be.yc=function(){},be.stroke=function(){t1(this,this.Yl)},be.jk=function(){this.clipInsteadOfFill||this.stroke()},be.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},be.addElement=function(a,y,x){return a=this.Ud(a,y,x),this.yd!==null?this.yd.appendChild(a):this.yd=a,this.ad=a};function Ff(a,y,x,E){y==="fill"?ov(a,x):y==="stroke"&&t1(a,x),E!==null&&(a=E.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function ov(a,y){a.fillStyle instanceof Tc?y.fill=av(a,a.fillStyle,!0):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.fill="rgb("+a[1]+","+a[2]+","+a[3]+")",y["fill-opacity"]=a[4]):y.fill=a.fillStyle}function e1(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof Tc?y.setAttributeNS(null,"fill",av(a,a.fillStyle,!0)):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.setAttributeNS(null,x,"rgb("+a[1]+","+a[2]+","+a[3]+")"),y.setAttributeNS(null,x+"-opacity",a[4])):y.setAttributeNS(null,x,a.fillStyle)}function t1(a,y){if(a.strokeStyle instanceof Tc)y.stroke=av(a,a.strokeStyle,!1);else if(/^rgba\(/.test(a.strokeStyle)){var x=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.strokeStyle);y.stroke="rgb("+x[1]+","+x[2]+","+x[3]+")",y["stroke-opacity"]=x[4]}else y.stroke=a.strokeStyle;y["stroke-width"]=a.lineWidth,y["stroke-linecap"]=a.lineCap,y["stroke-linejoin"]=a.lineJoin,y["stroke-miterlimit"]=a.miterLimit,a.Ct&&(y["stroke-dasharray"]=a.Yg.toString(),y["stroke-dashoffset"]=a.uj)}function av(a,y,x){var E="";if(E=a.Hl!==null?a.Hl.getAttribute(x?"fill":"stroke"):null,E!==null&&E.indexOf("GRAD")!==-1?(E=E.split("#")[1].slice(0,-1),x=a.svg.getElementById(E),x!==null&&x.remove()):E="GRAD"+Co++,y.type==="linear")x=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:E,gradientUnits:"userSpaceOnUse"});else if(y.type==="radial")x=a.Ud("radialGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,r1:y.r1,r2:y.r2,id:E});else throw Error("invalid gradient");var b=y.gx;y=b.length;for(var z=[],te=0;te<y;te++){var re=b[te],oe=re.color;re={offset:re.offset,"stop-color":oe},/^rgba\(/.test(oe)&&(oe=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(oe),re["stop-color"]="rgb("+oe[1]+","+oe[2]+","+oe[3]+")",re["stop-opacity"]=oe[4]),z.push(re)}for(z.sort(function(le,he){return le.offset>he.offset?1:-1}),b=0;b<y;b++)x.appendChild(a.Ud("stop",z[b]));return a.svg.appendChild(x),"url(#"+E+")"}be.addPath=function(a,y,x){for(var E=[],b=0;b<a.length;b++){var z=Ri(a[b]),te=[z.shift()];if(te[0]==="A")te.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)te.push(z.shift()+","+z.shift());E.push(te.join(" "))}if(E=E.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+E+'")');else if(a.d=E,Ff(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var re in a)re!=="transform"&&y.setAttributeNS(null,re,a[re]);else{re=y.getElementsByTagName("path");for(var oe in a)oe!=="transform"&&re[x].setAttributeNS(null,oe,a[oe])}else this.addElement("path",a)};function Yg(a,y,x,E,b,z,te){var re=new Ud;re.ha=[y,x,E,b,z,te],y={},Ff(a,"g",y,re),re=a.addElement("g",y),a.nh.push(re)}function c0(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}be.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function Iu(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function th(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}be.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},be.fs=function(){this.Ct=!1},be.Vc=function(){},be.Wx=function(){},qs.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},qs.prototype.getImageData=function(){return null},qs.prototype.measureText=function(){return null};function f0(a,y){y=y.getAttribute("fill"),y!==null&&(y=y.split("#"),y.length!==1&&(y=a.svg.getElementById(y[1].slice(0,-1)),y!==null&&a.svg.innerHTML.match(new RegExp(y.id,"g")).length===1&&y.remove()))}qs.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},qs.className="SVGContext",_t.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new Cu(this,un.document));var y=new Cu(this,un.document,!0);a===void 0&&(a=new _i);var x=this;return Mc(this,function(E,b){return E=s0(x,E,"SVG",y),E=E!==null?E.svg:null,typeof b=="function"?(b(E),null):E},a)},_t.prototype.makeSvg=_t.prototype.Cs,_t.prototype.av=function(a){return this.Cs(a)},_t.prototype.makeSVG=_t.prototype.av;function Il(a,y,x,E){this.ownerDocument=y=y===void 0?un.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Xd(y,x,E),y.H=a}Il.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",!0):!1},Il.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},Il.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Il.prototype.focus=function(){this.Oa.focus()},Il.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},pn.Object.defineProperties(Il.prototype,{width:{get:function(){return this.Oa.width},set:function(a){this.Oa.width=a}},height:{get:function(){return this.Oa.height},set:function(a){this.Oa.height=a}},style:{get:function(){return this.Oa.style}}}),Il.className="CanvasSurface";function Xd(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&<("Browser does not support HTML Canvas Element"),this.ct=this.et=this.dt="",this.Hm=!1,this.Vg=this.Br=this.Ar=0,this.Il=!1,this.El=new ui,this.isTemporary=!!x}be=Xd.prototype,be.Wx=function(a){this.Z.imageSmoothingEnabled=a},be.arc=function(a,y,x,E,b,z){this.Z.arc(a,y,x,E,b,z)},be.beginPath=function(){this.Z.beginPath()},be.Se=function(){},be.bezierCurveTo=function(a,y,x,E,b,z){this.Z.bezierCurveTo(a,y,x,E,b,z)},be.clearRect=function(a,y,x,E){this.yc(),this.Z.clearRect(a,y,x,E)},be.clip=function(){this.Z.clip()},be.closePath=function(){this.Z.closePath()},be.createLinearGradient=function(a,y,x,E){return this.Z.createLinearGradient(a,y,x,E)},be.createPattern=function(a,y){return this.Z.createPattern(a,y)},be.createRadialGradient=function(a,y,x,E,b,z){return this.Z.createRadialGradient(a,y,x,E,b,z)},be.drawImage=function(a,y,x,E,b,z,te,re,oe){E===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,E,b,z,te,re,oe)},be.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},be.fillRect=function(a,y,x,E){this.Z.fillRect(a,y,x,E)},be.ox=function(a,y,x,E){this.Z.fillRect(a,y,x,E)},be.fillText=function(a,y,x){this.Z.fillText(a,y,x)},be.getImageData=function(a,y,x,E){return this.Z.getImageData(a,y,x,E)},be.lineTo=function(a,y){this.Z.lineTo(a,y)},be.measureText=function(a){return this.Z.measureText(a)},be.moveTo=function(a,y){this.Z.moveTo(a,y)},be.quadraticCurveTo=function(a,y,x,E){this.Z.quadraticCurveTo(a,y,x,E)},be.rect=function(a,y,x,E){this.Z.rect(a,y,x,E)},be.restore=function(){this.Z.restore()},be.save=function(){this.yc(),this.Z.save()},Xd.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},be=Xd.prototype,be.setTransform=function(a,y,x,E,b,z){this.El.setTransform(a,y,x,E,b,z)},be.scale=function(a,y){this.El.scale(a,y)},be.translate=function(a,y){this.El.translate(a,y)},be.stroke=function(){this.Z.stroke()},be.transform=function(a,y,x,E,b,z){if(a!==1||y!==0||x!==0||E!==1||b!==0||z!==0){var te=this.El,re=te.m11*a+te.m21*y;a=te.m12*a+te.m22*y,y=te.m11*x+te.m21*E,x=te.m12*x+te.m22*E,te.dx=te.m11*b+te.m21*z+te.dx,te.dy=te.m12*b+te.m22*z+te.dy,te.m11=re,te.m12=a,te.m21=y,te.m22=x}},be.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},be.ng=function(a,y){if(a instanceof So&&a.type===Cl){var x=a.yk;a=a.ft,a>x?(this.scale(x/a,1),this.translate((a-x)/2,0)):x>a&&(this.scale(1,a/x),this.translate(0,(x-a)/2)),this.Hm?this.clip():this.fill(y),a>x?(this.translate(-(a-x)/2,0),this.scale(1/(x/a),1)):x>a&&(this.translate(0,-(x-a)/2),this.scale(1,1/(a/x)))}else this.Hm?this.clip():this.fill(y)},be.jk=function(){this.Hm||this.stroke()},be.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},be.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},be.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(Cx),a.lineDashOffset=0)},be.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},be.Hs=function(){},pn.Object.defineProperties(Xd.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var Cx=Object.freeze([]);Xd.className="CanvasSurfaceContext";function Kg(){this.F=this.o=this.u=this.j=0}Kg.className="ColorNumbers";function So(a,y){Df||(cv(),Df=!0),Kn(this),this._isFrozen=!1,a===void 0?(this.na=Fh,this.xk="black"):typeof a=="string"?(this.na=Fh,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===ih?(this.Qd=Ki,this.Lk=Jn):this.Lk=a===Cl?this.Qd=hi:this.Qd=Fi,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}So.prototype.copy=function(){var a=new So;return a.na=this.na,a.xk=this.xk,a.Qd=this.Qd.J(),a.Lk=this.Lk.J(),a.Gr=this.Gr,a.Xp=this.Xp,this.we!==null&&(a.we=this.we.copy()),a.cr=this.cr,a},be=So.prototype,be.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},be.ka=function(){return Object.isFrozen(this)&<("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},be.qb=function(a){a.classType===So&&(this.type=a)},be.toString=function(){var a="Brush(";if(this.type===Fh)a+=this.color;else if(a=this.type===ih?a+"Linear ":this.type===Cl?a+"Radial ":this.type===kf?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},be.addColorStop=function(a,y){return this._isFrozen&&Rt(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&ai(a,"0 <= loc <= 1",So,"addColorStop:loc"),this.we===null&&(this.we=new Wt),this.we.add(a,y),this.na===Fh&&(this.type=ih),this.xe=null,this},be.Vz=function(a,y){if(this._isFrozen&&Rt(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Bf:y,this.type===Fh)nh(this.color),this.color=Lf(a,y);else if((this.type===ih||this.type===Cl)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)nh(x.value),this.addColorStop(x.key,Lf(a,y));return this};function n1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Bf:x,nh(a),Lf(y,x)}be.Wy=function(a,y){if(this._isFrozen&&Rt(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Bf:y,this.type===Fh)nh(this.color),this.color=Lf(-a,y);else if((this.type===ih||this.type===Cl)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)nh(x.value),this.addColorStop(x.key,Lf(-a,y));return this};function i1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Bf:x,nh(a),Lf(-y,x)}function sv(a,y,x){nh(a),a=Vo.j;var E=Vo.u,b=Vo.o,z=Vo.F;return nh(y),x===void 0&&(x=.5),"rgba("+Math.round((Vo.j-a)*x+a)+", "+Math.round((Vo.u-E)*x+E)+", "+Math.round((Vo.o-b)*x+b)+", "+Math.round((Vo.F-z)*x+z)+")"}be.Gx=function(){if(this.type===Fh)return Mf(this.color);if((this.type===ih||this.type===Cl)&&this.colorStops!==null){var a=this.colorStops;if(this.type===Cl)return Mf(a.first().value);if(a.get(.5)!==null)return Mf(a.get(.5));if(a.count===2)return a=a.Fa(),Mf(sv(a[0].value,a[1].value));for(var y=a.iterator,x=-1,E=-1,b=1,z=1;y.next();){var te=y.key,re=Math.abs(.5-y.key);b>z&&re<b?(x=te,b=re):z>=b&&re<z&&(E=te,z=re)}return x>E&&(z=x,x=E,E=z,z=b),b=E-x,Mf(sv(a.get(x),a.get(E),1-z/b))}return!1};function Mf(a){return a?a instanceof So?a.Gx():(nh(a),128>(299*Vo.j+587*Vo.u+114*Vo.o)/1e3):!1}function Lf(a,y){switch(y){case Bf:y=100*uv(Vo.j);var x=100*uv(Vo.u),E=100*uv(Vo.o);return Es.j=.4124564*y+.3575761*x+.1804375*E,Es.u=.2126729*y+.7151522*x+.072175*E,Es.o=.0193339*y+.119192*x+.9503041*E,Es.F=Vo.F,y=dv(Es.j/bf[0]),x=dv(Es.u/bf[1]),E=dv(Es.o/bf[2]),Ru.j=116*x-16,Ru.u=500*(y-x),Ru.o=200*(x-E),Ru.F=Es.F,Ru.j=Math.min(100,Math.max(0,Ru.j+100*a)),a=(Ru.j+16)/116,y=a-Ru.o/200,Es.j=bf[0]*r1(Ru.u/500+a),Es.u=bf[1]*(Ru.j>g0*fv?Math.pow(a,3):Ru.j/g0),Es.o=bf[2]*r1(y),Es.F=Ru.F,a=-.969266*Es.j+1.8760108*Es.u+.041556*Es.o,y=.0556434*Es.j+-.2040259*Es.u+1.0572252*Es.o,Vo.j=255*hv((3.2404542*Es.j+-1.5371385*Es.u+-.4985314*Es.o)/100),Vo.u=255*hv(a/100),Vo.o=255*hv(y/100),Vo.F=Es.F,Vo.j=Math.round(Vo.j),255<Vo.j?Vo.j=255:0>Vo.j&&(Vo.j=0),Vo.u=Math.round(Vo.u),255<Vo.u?Vo.u=255:0>Vo.u&&(Vo.u=0),Vo.o=Math.round(Vo.o),255<Vo.o?Vo.o=255:0>Vo.o&&(Vo.o=0),"rgba("+Vo.j+", "+Vo.u+", "+Vo.o+", "+Vo.F+")";case o1:return lv(),ul.o=Math.min(100,Math.max(0,ul.o+100*a)),"hsla("+ul.j+", "+ul.u+"%, "+ul.o+"%, "+ul.F+")";default:lt("Unknown color space: "+y)}}function nh(a){Df||(cv(),Df=!0);var y=gv;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,Vo.j=a[0],Vo.u=a[1],Vo.o=a[2],Vo.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Vo.j=0,Vo.u=0,Vo.o=0,Vo.F=1)}}function lv(){var a=Vo.j/255,y=Vo.u/255,x=Vo.o/255,E=Math.max(a,y,x),b=Math.min(a,y,x),z=E-b;if(b=(E+b)/2,z===0)var te=a=0;else{switch(E){case a:te=(y-x)/z%6;break;case y:te=(x-a)/z+2;break;case x:te=(a-y)/z+4}te*=60,0>te&&(te+=360),a=z/(1-Math.abs(2*b-1))}ul.j=Math.round(te),ul.u=Math.round(100*a),ul.o=Math.round(100*b),ul.F=Vo.F}function uv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function hv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function dv(a){return a>fv?Math.pow(a,1/3):(g0*a+16)/116}function r1(a){var y=a*a*a;return y>fv?y:(116*a-16)/g0}function Oc(a,y){typeof a!="string"&&(a instanceof So||lt("Value for "+y+" must be a color string or a Brush, not "+a))}function cv(){gv=la?new Il(null,void 0,{willReadFrequently:!0}).context:null}pn.Object.defineProperties(So.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&Rt(this,a),this.na=a,this.start.Mc()&&(a===ih?this.start=Ki:a===Cl&&(this.start=hi)),this.end.Mc()&&(a===ih?this.end=Jn:a===Cl&&(this.end=hi)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&Rt(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&Rt(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&Rt(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&Rt(this,a),0>a&&ai(a,">= zero",So,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&Rt(this,a),0>a&&ai(a,">= zero",So,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&Rt(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&Rt(this,a),this.cr=a,this.xe=null}}}),So.prototype.isDark=So.prototype.Gx,So.prototype.darkenBy=So.prototype.Wy,So.prototype.lightenBy=So.prototype.Vz,So.prototype.addColorStop=So.prototype.addColorStop;var fv=216/24389,g0=24389/27,bf=[95.047,100,108.883],gv=null,Vo=new Kg,ul=new Kg,Es=new Kg,Ru=new Kg,Df=!1;So.className="Brush";var Fh;So.Solid=Fh=new Kt(So,"Solid",0);var ih;So.Linear=ih=new Kt(So,"Linear",1);var Cl;So.Radial=Cl=new Kt(So,"Radial",2);var kf;So.Pattern=kf=new Kt(So,"Pattern",4);var Bf;So.Lab=Bf=new Kt(So,"Lab",5);var o1;So.HSL=o1=new Kt(So,"HSL",6),So.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var E=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>E.length&&(E="0"+E),2>a.length&&(a="0"+a),"#"+y+E+a},So.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Df||(cv(),Df=!0);var y=gv;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},So.lighten=function(a){return n1(a)},So.lightenBy=n1,So.darken=function(a){return i1(a)},So.darkenBy=i1,So.mix=sv,So.isDark=Mf;function ka(){this.xa="Base"}ka.prototype.measure=function(){},ka.prototype.Yz=function(a,y,x,E,b){a.measure(y,x,E,b)},ka.prototype.arrange=function(){},ka.prototype.Ly=function(a,y,x,E,b,z){a.arrange(y,x,E,b,z)},ka.prototype.iA=function(a){a.Uj()},ka.prototype.gc=function(){},pn.Object.defineProperties(ka.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return On}}}),ka.prototype.remeasureObject=ka.prototype.iA,ka.prototype.arrangeElement=ka.prototype.Ly,ka.prototype.measureElement=ka.prototype.Yz,ka.className="PanelLayout";function p0(){this.xa="Base"}Zt(p0,ka),p0.prototype.measure=function(a,y,x,E,b,z,te){var re=E.length;a=rh(a);for(var oe=0;oe<re;oe++){var le=E[oe];if(le.visible||le===a){var he=le.margin,ge=he.right+he.left;he=he.top+he.bottom,le.measure(y,x,z,te);var Se=le.measuredBounds;ge=Math.max(Se.width+ge,0),he=Math.max(Se.height+he,0),Se=le.position.x;var we=le.position.y;isFinite(Se)||(Se=0),isFinite(we)||(we=0),le instanceof Mr&&le.isGeometryPositioned&&(le=le.strokeWidth/2,Se-=le,we-=le),yi(b,Se,we,ge,he)}}},p0.prototype.arrange=function(a,y,x){var E=y.length,b=a.padding;for(a=x.x-b.left,x=x.y-b.top,b=0;b<E;b++){var z=y[b],te=z.measuredBounds,re=z.margin,oe=z.position.x,le=z.position.y;if(oe=isNaN(oe)?-a:oe-a,le=isNaN(le)?-x:le-x,z instanceof Mr&&z.isGeometryPositioned){var he=z.strokeWidth/2;oe-=he,le-=he}z.visible&&z.arrange(oe+re.left,le+re.top,te.width,te.height)}};function m0(){this.xa="Base"}Zt(m0,ka),m0.prototype.measure=function(a,y,x,E,b,z,te){var re=E.length;y=Bn(),z=rh(a);for(var oe=0;oe<re;oe++){var le=E[oe];if(le.visible||le===z){var he=Os(le,!1);if(he!==xn&&he!==Zi)y.push(le);else{le.measure(1/0,x,0,te),he=le.margin,le=le.measuredBounds;var ge=Math.max(le.height+he.top+he.bottom,0);b.width+=Math.max(le.width+he.right+he.left,0),b.height=Math.max(b.height,ge)}}}for(E=y.length,a.desiredSize.height?x=Math.min(a.desiredSize.height,a.maxSize.height):b.height!==0&&(x=Math.min(b.height,a.maxSize.height)),a=0;a<E;a++)oe=y[a],(oe.visible||oe===z)&&(he=oe.margin,re=he.right+he.left,he=he.top+he.bottom,oe.measure(1/0,x,0,te),oe=oe.measuredBounds,he=Math.max(oe.height+he,0),b.width+=Math.max(oe.width+re,0),b.height=Math.max(b.height,he));Ot(y)},m0.prototype.arrange=function(a,y,x){for(var E=y.length,b=a.padding,z=b.top,te=a.isOpposite,re=te?x.width:b.left,oe=0;oe<E;oe++){var le=z,he=y[oe];if(he.visible){var ge=he.measuredBounds,Se=he.margin,we=Se.top+Se.bottom,Ae=z+b.bottom,Ne=ge.height,$e=Os(he,!1);(isNaN(he.desiredSize.height)&&$e===Nn||$e===er)&&(Ne=Math.max(x.height-we-Ae,0)),we=Ne+we+Ae,Ae=he.alignment,Ae.Xb()&&(Ae=a.defaultAlignment),Ae.sb()||(Ae=hi),te&&(re-=ge.width+Se.left+Se.right),he.arrange(re+Ae.offsetX+Se.left,le+Ae.offsetY+Se.top+(x.height*Ae.y-we*Ae.y),ge.width,Ne),te||(re+=ge.width+Se.left+Se.right)}}};function v0(){this.xa="Base"}Zt(v0,ka),v0.prototype.measure=function(a,y,x,E,b,z){var te=E.length;x=Bn();for(var re=rh(a),oe=0;oe<te;oe++){var le=E[oe];if(le.visible||le===re){var he=Os(le,!1);if(he!==xn&&he!==er)x.push(le);else{var ge=le.margin;he=ge.right+ge.left,ge=ge.top+ge.bottom,le.measure(y,1/0,z,0),le=le.measuredBounds,Vn(b,Math.max(b.width,Math.max(le.width+he,0)),b.height+Math.max(le.height+ge,0))}}}if(E=x.length,E!==0){for(a.desiredSize.width?y=Math.min(a.desiredSize.width,a.maxSize.width):b.width!==0&&(y=Math.min(b.width,a.maxSize.width)),a=0;a<E;a++)oe=x[a],(oe.visible||oe===re)&&(le=oe.margin,te=le.right+le.left,le=le.top+le.bottom,oe.measure(y,1/0,z,0),oe=oe.measuredBounds,le=Math.max(oe.height+le,0),b.width=Math.max(b.width,Math.max(oe.width+te,0)),b.height+=le);Ot(x)}},v0.prototype.arrange=function(a,y,x){for(var E=y.length,b=a.padding,z=b.left,te=a.isOpposite,re=te?x.height:b.top,oe=0;oe<E;oe++){var le=z,he=y[oe];if(he.visible){var ge=he.measuredBounds,Se=he.margin,we=Se.left+Se.right,Ae=z+b.right,Ne=ge.width,$e=Os(he,!1);(isNaN(he.desiredSize.width)&&$e===Nn||$e===Zi)&&(Ne=Math.max(x.width-we-Ae,0)),we=Ne+we+Ae,Ae=he.alignment,Ae.Xb()&&(Ae=a.defaultAlignment),Ae.sb()||(Ae=hi),te&&(re-=ge.height+Se.bottom+Se.top),he.arrange(le+Ae.offsetX+Se.left+(x.width*Ae.x-we*Ae.x),re+Ae.offsetY+Se.top,Ne,ge.height),te||(re+=ge.height+Se.bottom+Se.top)}}};function y0(){this.xa="Base"}Zt(y0,ka),y0.prototype.measure=function(a,y,x,E,b,z,te){var re=E.length,oe=a.Pb(),le=oe.margin,he=le.right+le.left,ge=le.top+le.bottom;oe.measure(y,x,z,te);var Se=oe.measuredBounds;z=Se.width,te=Se.height;var we=Math.max(z+he,0),Ae=Math.max(te+ge,0),Ne=a.isClipping,$e=pt.allocAt(-le.left,-le.top,we,Ae),Ke=pt.allocAt(0,0,z,te);pv(oe,Ke,!0),z=Ke.width,te=Ke.height;for(var at=!0,dt=rh(a),ft=0;ft<re;ft++){var wt=E[ft];Se=y;var Gt=x;if(wt!==oe&&(wt.visible||wt===dt)){le=wt.margin;var oi=le.left,bi=le.top;switch(we=le.right+le.left,Ae=le.top+le.bottom,le=Os(wt,!1),le){case Nn:Se=z,Gt=te,bi=oi=Ae=we=0;break;case Zi:Se=z,oi=we=0;break;case er:Gt=te,bi=Ae=0}wt.measure(Se,Gt,0,0),Se=wt.measuredBounds,we=Math.max(Se.width+we,0),Ae=Math.max(Se.height+Ae,0),le=wt.alignment,le.Xb()&&(le=a.defaultAlignment),le.sb()||(le=hi);var Si=wt.alignmentFocus;if(Si.Xb()&&(Si=hi),Gt=null,wt instanceof On&&wt.$e!==""&&(Gt=wt.fb(wt.$e),Gt===wt&&(Gt=null)),oi=Ke.x-oi,bi=Ke.y-bi,Gt!==null){for(wt.arrange(0,0,Se.width,Se.height),Se=Gt.actualBounds,Se=je.allocAt(Se.x+(Si.x*Se.width-Si.offsetX),Se.y+(Si.y*Se.height-Si.offsetY)),Gt=Gt.panel;Gt!==wt;)Gt.transform.Ga(Se),Gt=Gt.panel;oi+=le.x*z+le.offsetX-Se.x,bi+=le.y*te+le.offsetY-Se.y,je.free(Se)}else oi+=le.x*z+le.offsetX-(Si.x*Se.width+Si.offsetX),bi+=le.y*te+le.offsetY-(Si.y*Se.height+Si.offsetY);at?(at=!1,b.h(oi,bi,we,Ae)):yi(b,oi,bi,we,Ae)}}switch(at?b.assign($e):Ne?b.Uu(Ke.x,Ke.y,Ke.width,Ke.height):yi(b,$e.x,$e.y,$e.width,$e.height),pt.free($e),pt.free(Ke),le=oe.stretch,le===Cr&&(le=Os(oe,!1)),le){case xn:return;case Nn:if(!isFinite(y)&&!isFinite(x))return;break;case Zi:if(!isFinite(y))return;break;case er:if(!isFinite(x))return}for(Se=oe.measuredBounds,z=Se.width,te=Se.height,we=Math.max(z+he,0),Ae=Math.max(te+ge,0),le=oe.margin,Ke=pt.allocAt(-le.left,-le.top,we,Ae),pv(oe,Ke,!0),z=Ke.width,te=Ke.height,y=0;y<re;y++)x=E[y],x===oe||!x.visible&&x!==dt||(le=x.margin,we=le.right+le.left,Ae=le.top+le.bottom,Se=x.measuredBounds,we=Math.max(Se.width+we,0),Ae=Math.max(Se.height+Ae,0),he=x.alignment,he.Xb()&&(he=a.defaultAlignment),he.sb()||(he=hi),x=x.alignmentFocus,x.Xb()&&(x=hi),at?(at=!1,b.h(he.x*z+he.offsetX-(x.x*Se.width+x.offsetX)-le.left,he.y*te+he.offsetY-(x.y*Se.height+x.offsetY)-le.top,we,Ae)):yi(b,he.x*z+he.offsetX-(x.x*Se.width+x.offsetX)-le.left,he.y*te+he.offsetY-(x.y*Se.height+x.offsetY)-le.top,we,Ae));at?b.assign($e):Ne?b.Uu(Ke.x,Ke.y,Ke.width,Ke.height):yi(b,$e.x,$e.y,$e.width,$e.height),pt.free(Ke)},y0.prototype.arrange=function(a,y,x){var E=y.length,b=a.Pb(),z=b.measuredBounds,te=z.width,re=z.height,oe=a.padding;z=oe.left,oe=oe.top;var le=z-x.x,he=oe-x.y;for(b.arrange(le,he,te,re),te=pt.allocAt(0,0,te,re),pv(b,te,!1),re=0;re<E;re++){var ge=y[re];if(ge!==b){le=ge.measuredBounds;var Se=le.width,we=le.height;he=ge.alignment,he.Xb()&&(he=a.defaultAlignment),he.sb()||(he=hi);var Ae=ge.alignmentFocus;if(Ae.Xb()&&(Ae=hi),le=null,ge instanceof On&&ge.$e!==""&&(le=ge.fb(ge.$e),le===ge&&(le=null)),le!==null){var Ne=le.actualBounds;for(Ae=je.allocAt(Ne.x+(Ae.x*Ne.width-Ae.offsetX),Ne.y+(Ae.y*Ne.height-Ae.offsetY)),le=le.panel;le!==ge;)le.transform.Ga(Ae),le=le.panel;le=he.x*te.width+he.offsetX-Ae.x,he=he.y*te.height+he.offsetY-Ae.y,je.free(Ae)}else le=he.x*te.width+he.offsetX-(Ae.x*Se+Ae.offsetX),he=he.y*te.height+he.offsetY-(Ae.y*we+Ae.offsetY);le+=te.x-x.x,he+=te.y-x.y,ge.visible&&ge.arrange(z+le,oe+he,Se,we)}}pt.free(te)};function pv(a,y,x){var E=null;if(a instanceof On&&a.$e!==""&&(E=a.fb(a.$e),E===a&&(E=null)),E!==null)for(x&&a.arrange(0,0,y.width,y.height),y.assign(E.actualBounds),E=E.panel;E!==a;)E.transform.pp(y),E=E.panel}function S0(){this.xa="Base"}Zt(S0,ka),S0.prototype.measure=function(a,y,x,E,b,z,te){var re=E.length,oe=a.Pb(),le=oe.margin,he=y,ge=x,Se=le.right+le.left,we=le.top+le.bottom;oe.measure(y,x,z,te),le=oe.measuredBounds;var Ae=0,Ne=null;oe instanceof Mr&&(Ne=oe,Ae=Ne.strokeWidth*Ne.scale);var $e=Math.max(le.width+Se,0);le=Math.max(le.height+we,0);var Ke=Sv(oe),at=Ke.x*$e+Ke.offsetX;Ke=Ke.y*le+Ke.offsetY;var dt=xv(oe),ft=dt.x*$e+dt.offsetX;for(dt=dt.y*le+dt.offsetY,isFinite(y)&&(he=Math.max(Math.abs(at-ft)-Ae,0)),isFinite(x)&&(ge=Math.max(Math.abs(Ke-dt)-Ae,0)),Ae=Xe.alloc(),Ae.h(0,0),a=rh(a),dt=0;dt<re;dt++)Ke=E[dt],Ke===oe||!Ke.visible&&Ke!==a||(le=Ke.margin,$e=le.right+le.left,at=le.top+le.bottom,Ke.measure(he,ge,0,0),le=Ke.measuredBounds,$e=Math.max(le.width+$e,0),le=Math.max(le.height+at,0),Ae.h(Math.max($e,Ae.width),Math.max(le,Ae.height)));if(re===1)b.width=$e,b.height=le,Xe.free(Ae);else{switch(Ke=Sv(oe),dt=xv(oe),re=E=0,dt.x!==Ke.x&&dt.y!==Ke.y&&(E=Ae.width/Math.abs(dt.x-Ke.x),re=Ae.height/Math.abs(dt.y-Ke.y)),Xe.free(Ae),Ae=0,Ne!==null&&(Ae=Ne.strokeWidth*Ne.scale,Fv(Ne)===Bi&&(E=re=Math.max(E,re))),E+=Math.abs(Ke.offsetX)+Math.abs(dt.offsetX)+Ae,re+=Math.abs(Ke.offsetY)+Math.abs(dt.offsetY)+Ae,Ne=oe.stretch,Ne===Cr&&(Ne=Os(oe,!1)),Ne){case xn:te=z=0;break;case Nn:isFinite(y)&&(E=y),isFinite(x)&&(re=x);break;case Zi:isFinite(y)&&(E=y),te=0;break;case er:z=0,isFinite(x)&&(re=x)}oe.Uj(),oe.measure(E,re,z,te),b.width=oe.measuredBounds.width+Se,b.height=oe.measuredBounds.height+we}},S0.prototype.arrange=function(a,y){var x=y.length,E=a.Pb(),b=E.measuredBounds,z=pt.alloc();z.h(0,0,1,1);var te=E.margin,re=te.left;te=te.top;var oe=a.padding,le=oe.left;oe=oe.top,E.arrange(le+re,oe+te,b.width,b.height);var he=Sv(E),ge=xv(E),Se=he.y*b.height+he.offsetY,we=ge.x*b.width+ge.offsetX;for(ge=ge.y*b.height+ge.offsetY,z.x=he.x*b.width+he.offsetX,z.y=Se,yi(z,we,ge,0,0),z.x+=re+le,z.y+=te+oe,b=0;b<x;b++)re=y[b],re!==E&&(le=re.measuredBounds,te=re.margin,oe=Math.max(le.width+te.right+te.left,0),he=Math.max(le.height+te.top+te.bottom,0),Se=re.alignment,Se.Xb()&&(Se=a.defaultAlignment),Se.sb()||(Se=hi),oe=z.width*Se.x+Se.offsetX-oe*Se.x+te.left+z.x,te=z.height*Se.y+Se.offsetY-he*Se.y+te.top+z.y,re.visible&&(xi(z.x,z.y,z.width,z.height,oe,te,le.width,le.height)?re.arrange(oe,te,le.width,le.height):re.arrange(oe,te,le.width,le.height,new pt(z.x,z.y,z.width,z.height))));pt.free(z)};function x0(){this.xa="Base",this.name="Table"}Zt(x0,ka),x0.prototype.measure=function(a,y,x,E,b){for(var z=E.length,te=Bn(),re=Bn(),oe=0;oe<z;oe++){var le=E[oe],he=le instanceof On?le:null;if(he!==null&&Mh(he)&&le.visible){re.push(he);for(var ge=he.O.s,Se=ge.length,we=0;we<Se;we++){var Ae=ge[we];he.type===On.TableRow?Ae.row=le.row:he.type===On.TableColumn&&(Ae.column=le.column),te.push(Ae)}}else te.push(le)}z=te.length,z===0&&(a.Fb(0),a.Eb(0));for(var Ne=[],$e=0;$e<z;$e++){var Ke=te[$e];Ke.visible&&(Ma(Ke,!0),Ou(Ke,!0),Ne[Ke.row]||(Ne[Ke.row]=[]),Ne[Ke.row][Ke.column]||(Ne[Ke.row][Ke.column]=[]),Ne[Ke.row][Ke.column].push(Ke))}Ot(te);var at=Bn(),dt=Bn(),ft=Bn(),wt={count:0},Gt={count:0},oi=y,bi=x,Si=a.rowDefs,Zn=a.colDefs,yn=null;z=Si.length;for(var Sr=0;Sr<z;Sr++)yn=Si[Sr],yn!==void 0&&(yn.actual=0);z=Zn.length;for(var sr=0;sr<z;sr++)yn=Zn[sr],yn!==void 0&&(yn.actual=0);for(var ro=Ne.length,zo=0,Ia=0;Ia<ro;Ia++)Ne[Ia]&&(zo=Math.max(zo,Ne[Ia].length));var Ha=Math.min(a.topIndex,ro-1),vs=Math.min(a.leftIndex,zo-1),Ra=0;ro=Ne.length;for(var Rh=rh(a),Pa=0;Pa<ro;Pa++)if(Ne[Pa]){zo=Ne[Pa].length;var hu=a.Fb(Pa);hu.actual=0;for(var ys=hu.oc=0;ys<zo;ys++)if(Ne[Pa][ys]){var jh=a.Eb(ys);at[ys]===void 0&&(jh.actual=0,jh.oc=0,at[ys]=!0);for(var cl=Ne[Pa][ys],Zl=cl.length,tl=0;tl<Zl;tl++){var Ys=cl[tl];if(Ys.visible||Ys===Rh){var Pd=1<Ys.rowSpan||1<Ys.columnSpan;Pd&&(Pa<Ha||ys<vs||dt.push(Ys));var du=Ys.margin,tg=du.right+du.left,nl=du.top+du.bottom,Ss=ou(Ys,hu,jh,!1),Tp=Ys.desiredSize,Kc=!isNaN(Tp.height),Fu=!isNaN(Tp.width)&&Kc;if(Pd||Ss===xn||Fu||Pa<Ha||ys<vs||(wt[ys]!==void 0||Ss!==Nn&&Ss!==Zi||(wt[ys]=-1,wt.count++),Gt[Pa]!==void 0||Ss!==Nn&&Ss!==er||(Gt[Pa]=-1,Gt.count++),ft.push(Ys)),Ys.measure(1/0,1/0,0,0),!(Pa<Ha||ys<vs)){var Ks=Ys.measuredBounds,rc=Math.max(Ks.width+tg,0),il=Math.max(Ks.height+nl,0);if(Ys.rowSpan===1&&(Ss===xn||Ss===Zi)){yn=a.Fb(Pa);var wd=yn.Wc();Ra=Math.max(il-yn.actual,0),Ra+wd>bi&&(Ra=Math.max(bi-wd,0));var Gm=yn.oa===0;yn.oc=yn.oc+Ra,yn.actual=yn.oa+Ra,bi=Math.max(bi-(Ra+(Gm?wd:0)),0)}if(Ys.columnSpan===1&&(Ss===xn||Ss===er)){yn=a.Eb(ys);var Op=yn.Wc();Ra=Math.max(rc-yn.actual,0),Ra+Op>oi&&(Ra=Math.max(oi-Op,0));var Hy=yn.oa===0;yn.oc=yn.oc+Ra,yn.actual=yn.oa+Ra,oi=Math.max(oi-(Ra+(Hy?Op:0)),0)}Pd&&Ys.Uj()}}}}}Ot(at);var Yu=0,sh=0;z=a.columnCount;for(var Uc=0;Uc<z;Uc++){var Cd=Zn[Uc];Cd!==void 0&&(Yu+=isNaN(Cd.Hc)?Cd.oc:Cd.Hc,Cd.oc!==0&&(Yu+=Cd.Wc()))}z=a.rowCount;for(var ng=0;ng<z;ng++){var Ed=Si[ng];Ed!==void 0&&(sh+=isNaN(Ed.Hc)?Ed.oc:Ed.Hc,Ed.oc!==0&&(sh+=Ed.Wc()))}oi=Math.max(y-Yu,0);var Ku=bi=Math.max(x-sh,0),zh=oi;z=ft.length;for(var Us=0;Us<z;Us++){var Mu=ft[Us],Vm=a.Fb(Mu.row),lh=a.Eb(Mu.column),ig=Mu.measuredBounds,cu=Mu.margin,oc=cu.right+cu.left,Lu=cu.top+cu.bottom;wt[Mu.column]=lh.oc===0&&wt[Mu.column]!==void 0?Math.max(ig.width+oc,wt[Mu.column]):null,Gt[Mu.row]=Vm.oc===0&&Gt[Mu.row]!==void 0?Math.max(ig.height+Lu,Gt[Mu.row]):null}var Xc=0,rg=0,tu;for(tu in Gt)tu!=="count"&&(Xc+=Gt[tu]);for(tu in wt)tu!=="count"&&(rg+=wt[tu]);for(var qa=Xe.alloc(),Ip=0;Ip<z;Ip++){var ks=ft[Ip];if(ks.visible||ks===Rh){var wa=a.Fb(ks.row),Bs=a.Eb(ks.column),uh=0;isFinite(Bs.width)?uh=Bs.width:(isFinite(oi)&&wt[ks.column]!==null?rg===0?uh=Bs.actual+oi:uh=wt[ks.column]/rg*zh:wt[ks.column]!==null?uh=oi:uh=Bs.actual||oi,uh=Math.max(0,uh-Bs.Wc()));var Zh=0;switch(isFinite(wa.height)?Zh=wa.height:(isFinite(bi)&&Gt[ks.row]!==null?Xc===0?Zh=wa.actual+bi:Zh=Gt[ks.row]/Xc*Ku:Gt[ks.row]!==null?Zh=bi:Zh=wa.actual||bi,Zh=Math.max(0,Zh-wa.Wc())),qa.h(Math.max(Bs.minimum,Math.min(uh,Bs.maximum)),Math.max(wa.minimum,Math.min(Zh,wa.maximum))),Ss=ou(ks,wa,Bs,!1),Ss){case Zi:qa.height=Math.max(qa.height,wa.actual+bi);break;case er:qa.width=Math.max(qa.width,Bs.actual+oi)}var ac=ks.margin,Gy=ac.right+ac.left,_m=ac.top+ac.bottom;ks.Uj(),ks.measure(qa.width,qa.height,Bs.minimum,wa.minimum);var og=ks.measuredBounds,sc=Math.max(og.width+Gy,0),Qc=Math.max(og.height+_m,0);isFinite(oi)&&(sc=Math.min(sc,qa.width)),isFinite(bi)&&(Qc=Math.min(Qc,qa.height));var Xs=0;Xs=wa.actual,wa.actual=Math.max(wa.actual,Qc),wa.oc=Math.max(wa.oc,Qc),Ra=wa.actual-Xs,bi=Math.max(bi-Ra,0),Gt[ks.row]===null&&(Ku=Math.max(Ku-Ra,0)),Xs=Bs.actual,Bs.actual=Math.max(Bs.actual,sc),Bs.oc=Math.max(Bs.oc,sc),Ra=Bs.actual-Xs,oi=Math.max(oi-Ra,0),wt[ks.column]===null&&(zh=Math.max(zh-Ra,0))}}Ot(ft);var hh=Xe.alloc(),fu=Bn(),Ll=Bn();if(z=dt.length,z!==0){for(var Ad=0;Ad<ro;Ad++)if(Ne[Ad]){zo=Ne[Ad].length;var ag=a.Fb(Ad);fu[Ad]=ag.actual;for(var Fd=0;Fd<zo;Fd++)if(Ne[Ad][Fd]){var Ym=a.Eb(Fd);Ll[Fd]=Ym.actual}}}for(var sg=0;sg<z;sg++){var fa=dt[sg];if(fa.visible||fa===Rh){var nu=a.Fb(fa.row),Wl=a.Eb(fa.column);switch(qa.h(Math.max(Wl.minimum,Math.min(y,Wl.maximum)),Math.max(nu.minimum,Math.min(x,nu.maximum))),Ss=ou(fa,nu,Wl,!1),Ss){case Nn:Ll[Wl.index]!==0&&(qa.width=Math.min(qa.width,Ll[Wl.index])),fu[nu.index]!==0&&(qa.height=Math.min(qa.height,fu[nu.index]));break;case Zi:Ll[Wl.index]!==0&&(qa.width=Math.min(qa.width,Ll[Wl.index]));break;case er:fu[nu.index]!==0&&(qa.height=Math.min(qa.height,fu[nu.index]))}isFinite(Wl.width)&&(qa.width=Wl.width),isFinite(nu.height)&&(qa.height=nu.height),hh.h(0,0);for(var Km=Wl.minimum,rl=nu.minimum,Wh=1;Wh<fa.rowSpan&&!(fa.row+Wh>=a.rowCount);Wh++)yn=a.Fb(fa.row+Wh),Ra=0,Ra=Ss===Nn||Ss===er?Math.max(yn.minimum,fu[fa.row+Wh]===0?yn.maximum:Math.min(fu[fa.row+Wh],yn.maximum)):Math.max(yn.minimum,isNaN(yn.Hc)?yn.maximum:Math.min(yn.Hc,yn.maximum)),hh.height+=Ra,rl+=yn.minimum;for(var Hl=1;Hl<fa.columnSpan&&!(fa.column+Hl>=a.columnCount);Hl++)yn=a.Eb(fa.column+Hl),Ra=0,Ra=Ss===Nn||Ss===Zi?Math.max(yn.minimum,Ll[fa.column+Hl]===0?yn.maximum:Math.min(Ll[fa.column+Hl],yn.maximum)):Math.max(yn.minimum,isNaN(yn.Hc)?yn.maximum:Math.min(yn.Hc,yn.maximum)),hh.width+=Ra,Km+=yn.minimum;qa.width+=hh.width,qa.height+=hh.height;var lg=fa.margin,Md=lg.right+lg.left,Rp=lg.top+lg.bottom;fa.measure(qa.width,qa.height,Km,rl);for(var ug=fa.measuredBounds,bu=Math.max(ug.width+Md,0),lc=Math.max(ug.height+Rp,0),Ld=0,hg=0;hg<fa.rowSpan&&!(fa.row+hg>=a.rowCount);hg++)yn=a.Fb(fa.row+hg),Ld+=yn.total||0;if(Ld<lc){var Hh=lc-Ld,Uu=lc-Ld;if(fa.spanAllocation!==null)for(var Gh=fa.spanAllocation,dh=0;dh<fa.rowSpan&&!(0>=Hh)&&!(fa.row+dh>=a.rowCount);dh++){yn=a.Fb(fa.row+dh);var Vh=yn.oa||0,uc=Gh(fa,yn,Uu);yn.actual=Math.min(yn.maximum,Vh+uc),yn.oa!==Vh&&(Hh-=yn.oa-Vh)}for(;0<Hh;){var gu=yn.oa||0;if(isNaN(yn.height)&&yn.maximum>gu&&(yn.actual=Math.min(yn.maximum,gu+Hh),yn.oa!==gu&&(Hh-=yn.oa-gu)),yn.index===0)break;yn=a.Fb(yn.index-1)}}for(var Jc=0,_h=0;_h<fa.columnSpan&&!(fa.column+_h>=a.columnCount);_h++)yn=a.Eb(fa.column+_h),Jc+=yn.total||0;if(Jc<bu){var qc=bu-Jc,Vy=bu-Jc;if(fa.spanAllocation!==null)for(var ch=fa.spanAllocation,hc=0;hc<fa.columnSpan&&!(0>=qc)&&!(fa.column+hc>=a.columnCount);hc++){yn=a.Eb(fa.column+hc);var jp=yn.oa||0,_y=ch(fa,yn,Vy);yn.actual=Math.min(yn.maximum,jp+_y),yn.oa!==jp&&(qc-=yn.oa-jp)}for(;0<qc;){var Um=yn.oa||0;if(isNaN(yn.width)&&yn.maximum>Um&&(yn.actual=Math.min(yn.maximum,Um+qc),yn.oa!==Um&&(qc-=yn.oa-Um)),yn.index===0)break;yn=a.Eb(yn.index-1)}}}}Ot(dt),Xe.free(hh),Xe.free(qa),fu!==void 0&&Ot(fu),Ll!==void 0&&Ot(Ll);var $c=0,ef=0,Xm=a.desiredSize,vx=a.maxSize;Ss=Os(a,!0);var zp=sh=Yu=0,Zp=0;z=a.columnCount;for(var Qm=0;Qm<z;Qm++)Zn[Qm]!==void 0&&(yn=a.Eb(Qm),isFinite(yn.width)?(zp+=yn.width,zp+=yn.Wc()):D0(yn)===Jg?(zp+=yn.oa,zp+=yn.Wc()):yn.oa!==0&&(Yu+=yn.oa,Yu+=yn.Wc()));isFinite(Xm.width)?$c=Math.min(Xm.width,vx.width):$c=Ss!==xn&&isFinite(y)?y:Yu,$c=Math.max($c,a.minSize.width),$c=Math.max($c-zp,0);for(var rP=Yu===0?1:Math.max($c/Yu,1),Jm=0;Jm<z;Jm++)Zn[Jm]!==void 0&&(yn=a.Eb(Jm),isFinite(yn.width)||D0(yn)===Jg||(yn.actual=yn.oa*rP),yn.position=b.width,yn.oa!==0&&(b.width+=yn.oa,b.width+=yn.Wc()));z=a.rowCount;for(var qm=0;qm<z;qm++)Si[qm]!==void 0&&(yn=a.Fb(qm),isFinite(yn.height)?(Zp+=yn.height,Zp+=yn.Wc()):D0(yn)===Jg?(Zp+=yn.oa,Zp+=yn.Wc()):yn.oa!==0&&(sh+=yn.oa,sh+=yn.Wc()));isFinite(Xm.height)?ef=Math.min(Xm.height,vx.height):ef=Ss!==xn&&isFinite(x)?x:sh,ef=Math.max(ef,a.minSize.height),ef=Math.max(ef-Zp,0);for(var oP=sh===0?1:Math.max(ef/sh,1),$m=0;$m<z;$m++)Si[$m]!==void 0&&(yn=a.Fb($m),isFinite(yn.height)||D0(yn)===Jg||(yn.actual=yn.oa*oP),yn.position=b.height,yn.oa!==0&&(b.height+=yn.oa,b.height+=yn.Wc()));z=re.length;for(var Yy=0;Yy<z;Yy++){var Wp=re[Yy],Ky=0,Uy=0;Wp.type===On.TableRow?(Ky=b.width,yn=a.Fb(Wp.row),Uy=yn.actual):(yn=a.Eb(Wp.column),Ky=yn.actual,Uy=b.height),Wp.measuredBounds.h(0,0,Ky,Uy),Ma(Wp,!1)}Ot(re),a.inRowsCols=Ne},x0.prototype.arrange=function(a,y,x){var E=y.length,b=a.padding,z=b.left;b=b.top;var te=a.inRowsCols;if(te!==null){for(var re,oe,le=te.length,he=0,ge=0;ge<le;ge++)te[ge]&&(he=Math.max(he,te[ge].length));oe=a.rowDefs,re=a.colDefs;var Se=ge=0,we=Math.min(a.topIndex,le-1);if(0<oe.length){for(;we!==le&&(oe[we]===void 0||oe[we].oa===0);)we++;we=Math.max(Math.min(we,le-1),0),ge=-oe[we].position}var Ae=Math.min(a.leftIndex,he-1);if(0<re.length){for(;Ae!==he&&(re[Ae]===void 0||re[Ae].oa===0);)Ae++;Ae=Math.max(Math.min(Ae,he-1),0),Se=-re[Ae].position}for(var Ne=0,$e=0;Ne!==le&&oe[Ne]===void 0;)Ne++;for(;$e!==le&&re[$e]===void 0;)$e++;he=a.part,a.Fb(Ne),a.Eb($e);for(var Ke=0;Ke<y.length;Ke++){var at=y[Ke];if(at instanceof On&&at.visible&&Mh(at)){if(at.type===On.TableRow){re=a.Fb(at.row);var dt=a.Eb($e)}else re=a.Fb(Ne),dt=a.Eb(at.column);oe=re.position+ge+b,re.oa!==0&&(oe+=re.Io(Math.max(Ne,we))),re=dt.position+Se+z,dt.oa!==0&&(re+=dt.Io(Math.max($e,Ae))),dt=at.measuredBounds,at.Uk(),at.actualBounds.ka();var ft=at.actualBounds,wt=pt.allocAt(ft.x,ft.y,ft.width,ft.height);ft.x=at.type===On.TableRow?z:re,ft.y=at.type===On.TableColumn?b:oe,ft.width=dt.width,ft.height=dt.height,at.actualBounds.freeze(),Ou(at,!1),Ln(wt,ft)||he===null||(he.oh(),at.Pn(he)),pt.free(wt)}}for(Ke=Xe.alloc(),at=0;at<le;at++)if(te[at]){for(he=te[at].length,dt=a.Fb(at),oe=dt.position+ge+b,dt.oa!==0&&(oe+=dt.Io(Math.max(Ne,we))),ft=0;ft<he;ft++)if(te[at][ft]){wt=a.Eb(ft),re=wt.position+Se+z,wt.oa!==0&&(re+=wt.Io(Math.max($e,Ae)));for(var Gt=te[at][ft],oi=Gt.length,bi=0;bi<oi;bi++){var Si=Gt[bi],Zn=Si.measuredBounds;Ke.h(0,0);for(var yn=1;yn<Si.rowSpan&&!(at+yn>=a.rowCount);yn++){var Sr=a.Fb(at+yn);Sr.oa!==0&&(Ke.height+=Sr.total)}for(yn=1;yn<Si.columnSpan&&!(ft+yn>=a.columnCount);yn++)Sr=a.Eb(ft+yn),Sr.oa!==0&&(Ke.width+=Sr.total);var sr=wt.oa+Ke.width,ro=dt.oa+Ke.height;yn=re,Sr=oe;var zo=sr,Ia=ro,Ha=re,vs=oe,Ra=sr,Rh=ro;re+sr>x.width&&(Ra=Math.max(x.width-re,0)),oe+ro>x.height&&(Rh=Math.max(x.height-oe,0));var Pa=Si.alignment;if(Pa.Xb()){Pa=a.defaultAlignment,Pa.sb()||(Pa=hi);var hu=Pa.x,ys=Pa.y,jh=Pa.offsetX;Pa=Pa.offsetY;var cl=wt.alignment,Zl=dt.alignment;cl.sb()&&(hu=cl.x,jh=cl.offsetX),Zl.sb()&&(ys=Zl.y,Pa=Zl.offsetY)}else hu=Pa.x,ys=Pa.y,jh=Pa.offsetX,Pa=Pa.offsetY;(isNaN(hu)||isNaN(ys))&&(ys=hu=.5,Pa=jh=0),cl=Zn.width,Zl=Zn.height;var tl=Si.margin,Ys=tl.left+tl.right,Pd=tl.top+tl.bottom,du=ou(Si,dt,wt,!1);!isNaN(Si.desiredSize.width)||du!==Nn&&du!==Zi||(cl=Math.max(sr-Ys,0)),!isNaN(Si.desiredSize.height)||du!==Nn&&du!==er||(Zl=Math.max(ro-Pd,0)),sr=Si.maxSize,ro=Si.minSize,cl=Math.min(sr.width,cl),Zl=Math.min(sr.height,Zl),cl=Math.max(ro.width,cl),Zl=Math.max(ro.height,Zl),sr=Zl+Pd,yn+=zo*hu-(cl+Ys)*hu+jh+tl.left,Sr+=Ia*ys-sr*ys+Pa+tl.top,Si.visible&&(xi(Ha,vs,Ra,Rh,yn,Sr,Zn.width,Zn.height)?Si.arrange(yn,Sr,cl,Zl):Si.arrange(yn,Sr,cl,Zl,new pt(Ha,vs,Ra,Rh)))}}}for(Xe.free(Ke),a=0;a<E;a++)x=y[a],z=x instanceof On?x:null,z!==null&&Mh(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function P0(){this.xa="Base"}Zt(P0,ka),P0.prototype.measure=function(){},P0.prototype.arrange=function(){};function w0(){this.xa="Base"}Zt(w0,ka),w0.prototype.measure=function(){},w0.prototype.arrange=function(){};function C0(){this.xa="Base"}Zt(C0,ka),C0.prototype.measure=function(a,y,x,E,b,z,te){1<E.length&<("Viewbox Panel cannot contain more than one GraphObject."),E=E[0],E.Ca=1,E.Uj(),E.measure(1/0,1/0,z,te);var re=E.measuredBounds,oe=E.margin,le=oe.right+oe.left;if(oe=oe.top+oe.bottom,isFinite(y)||isFinite(x)){var he=E.scale,ge=re.width;re=re.height;var Se=Math.max(y-le,0),we=Math.max(x-oe,0),Ae=1;a.viewboxStretch===Bi?ge!==0&&re!==0&&(Ae=Math.min(Se/ge,we/re)):ge!==0&&re!==0&&(Ae=Math.max(Se/ge,we/re)),Ae===0&&(Ae=1e-4),E.Ca*=Ae,he!==E.scale&&(Ma(E,!0),E.measure(1/0,1/0,z,te))}re=E.measuredBounds,b.width=isFinite(y)?y:Math.max(re.width+le,0),b.height=isFinite(x)?x:Math.max(re.height+oe,0)},C0.prototype.arrange=function(a,y,x){y=y[0];var E=y.measuredBounds,b=y.margin,z=Math.max(E.width+(b.right+b.left),0);b=Math.max(E.height+(b.top+b.bottom),0);var te=y.alignment;te.Xb()&&(te=a.defaultAlignment),te.sb()||(te=hi),y.arrange(x.width*te.x-z*te.x+te.offsetX,x.height*te.y-b*te.y+te.offsetY,E.width,E.height)};function Ug(){this.xa="Base"}Zt(Ug,ka),Ug.prototype.measure=function(){},Ug.prototype.arrange=function(){},Ug.prototype.gc=function(a,y,x){x=a.Df()*x.scale,0>=x&&(x=1);var E=a.gridCellSize,b=E.width;E=E.height;var z=a.naturalBounds,te=a.actualBounds,re=z.width,oe=z.height,le=Math.ceil(re/b),he=Math.ceil(oe/E),ge=a.gridOrigin,Se=ge.x;ge=ge.y,y.save(),y.beginPath(),y.rect(0,0,re,oe),y.clip(),y.Se();for(var we=[],Ae=a.O.s,Ne=Ae.length,$e=0;$e<Ne;$e++){var Ke=Ae[$e],at=[];if(we.push(at),Ke.visible){var dt=Ke.interval;if(!(0>dt)){Ke=vv(Ke.figure);for(var ft=0;ft<Ne;ft++)if(ft!==$e){var wt=Ae[ft];wt.visible&&vv(wt.figure)===Ke&&(wt=wt.interval,wt>dt&&at.push(wt))}}}}for(Ae=a.O.s,Ne=Ae.length,$e=0;$e<Ne;$e++){var Gt=Ae[$e];if(Gt.visible&&(at=Gt.interval||1,Ke=Math.abs(at),!(2>b*Ke*x))){if(dt=Gt.segmentIndex,(!isFinite(dt)||isNaN(dt))&&(dt=0),0>dt&&(dt=Ke-Math.min(-dt,Ke)),dt=Math.round(dt%Ke),Ke=Gt.opacity,ft=1,Ke!==1){if(Ke===0)continue;ft=y.globalAlpha,y.globalAlpha=ft*Ke}wt=we[$e];var oi=!1,bi=Gt.strokeDashArray;if(bi!==null&&(oi=!0,y.js(bi,Gt.strokeDashOffset)),Gt.figure==="LineV"&&Gt.stroke!==null&&0<Gt.strokeWidth){for(y.lineWidth=Gt.strokeWidth,ha(a,y,Gt.stroke,!1,!1,z,te),y.beginPath(),bi=Gt=Math.floor((Se-b)/b);bi<=Gt+le;bi++){var Si=bi*b+Se;0<=Si&&Si<=re&&E0(bi,at,dt,wt)&&(y.moveTo(Si,0),y.lineTo(Si,oe))}y.stroke(),y.Se()}else if(Gt.figure==="LineH"&&Gt.stroke!==null&&0<Gt.strokeWidth){for(y.lineWidth=Gt.strokeWidth,ha(a,y,Gt.stroke,!1,!1,z,te),y.beginPath(),bi=Gt=Math.floor((ge-E)/E);bi<=Gt+he;bi++)Si=bi*E+ge,0<=Si&&Si<=oe&&E0(bi,at,dt,wt)&&(y.moveTo(0,Si),y.lineTo(re,Si));y.stroke(),y.Se()}else if(Gt.figure==="BarV"&&Gt.fill!==null)for(ha(a,y,Gt.fill,!0,!1,z,te),Gt=Gt.width,isNaN(Gt)&&(Gt=b),Si=bi=Math.floor((Se-b)/b);Si<=bi+le;Si++){var Zn=Si*b+Se;0<=Zn+Gt&&Zn<=re&&E0(Si,at,dt,wt)&&y.fillRect(Zn,0,Gt,oe)}else if(Gt.figure==="BarH"&&Gt.fill!==null)for(ha(a,y,Gt.fill,!0,!1,z,te),Gt=Gt.height,isNaN(Gt)&&(Gt=E),Si=bi=Math.floor((ge-E)/E);Si<=bi+he;Si++)Zn=Si*E+ge,0<=Zn+Gt&&Zn<=oe&&E0(Si,at,dt,wt)&&y.fillRect(0,Zn,re,Gt);oi&&y.fs(),Ke!==1&&(y.globalAlpha=ft)}}y.restore(),y.Vc(!1)};function E0(a,y,x,E){if(0>y)return a%y===x;if(a%y!==x)return!1;y=E.length;for(var b=0;b<y;b++)if(a%E[b]===x)return!1;return!0}function A0(){this.xa="Base"}Zt(A0,ka),A0.prototype.measure=function(a,y,x,E,b){var z=E.length;if(a instanceof eo||a instanceof Hn){var te=null,re=null;if(a instanceof Hn&&(te=a),a instanceof eo&&(re=a,te=re.adornedPart,a.j===null&&(a.j=[])),te instanceof Hn){var oe=te;if(z===0)Vn(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var le=a instanceof eo?null:te.path;y=te.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var he=oe.points,ge=te.pointsCount;re!==null?re.Ul(!1):te!==null&&te.Ul(!1),re=y.width;var Se=y.height,we=a.j;if(we.length=0,le!==null){a1(a,re,Se,le);var Ae=le.measuredBounds;x.ed(Ae),we.push(Ae)}Ae=ui.alloc();for(var Ne=je.alloc(),$e=je.alloc(),Ke=0;Ke<z;Ke++){var at=E[Ke];if(at!==le)if(at.isPanelMain&&at instanceof Mr){a1(a,re,Se,at);var dt=at.measuredBounds;x.ed(dt),we.push(dt)}else if(2>ge)at.measure(1/0,1/0,0,0),dt=at.measuredBounds,x.ed(dt),we.push(dt);else{var ft=at.segmentIndex,wt=at.segmentFraction,Gt=at.alignmentFocus;Gt.Mc()&&(Gt=hi);var oi=at.segmentOrientation,bi=at.segmentOffset;if(isNaN(ft)){var Si=oe.ua;dt=Bn(),Si.Qu(wt,dt);var Zn=je.allocAt(dt[0],dt[1]);if(Zn.add(oe.i(0)),Si.type===Cn.j?Zn.offset(-Si.startX,-Si.startY):(Si=Si.figures.first(),Si!==null&&Zn.offset(-Si.startX,-Si.startY)),Si=dt[2],oi!==Fs){var yn=oe.computeAngle(at,oi,Si);at.Kb=yn}yn=Zn.x-y.x;var Sr=Zn.y-y.y;je.free(Zn),Ot(dt)}else if(ft<-ge||ft>=ge)dt=je.alloc(),oe.vg(),oe.computeMidPoint(dt),Si=oe.midAngle,oi!==Fs&&(yn=oe.computeAngle(at,oi,Si),at.Kb=yn),yn=dt.x-y.x,Sr=dt.y-y.y,je.free(dt);else{if(yn=0,0<=ft?(Sr=he.M(ft),dt=ft<ge-1?he.M(ft+1):Sr):(yn=ge+ft,Sr=he.M(yn),dt=0<yn?he.M(yn-1):Sr),Sr.Xa(dt)){0<=ft?(Si=0<ft?he.M(ft-1):Sr,yn=ft<ge-2?he.M(ft+2):dt):(Si=yn<ge-1?he.M(yn+1):Sr,yn=1<yn?he.M(yn-2):dt),Zn=Si.Bf(Sr);var sr=dt.Bf(yn);Si=Zn>sr+10?0<=ft?Si.ab(Sr):Sr.ab(Si):sr>Zn+10?0<=ft?dt.ab(yn):yn.ab(dt):0<=ft?Si.ab(yn):yn.ab(Si)}else Si=0<=ft?Sr.ab(dt):dt.ab(Sr);oi!==Fs&&(yn=oe.computeAngle(at,oi,Si),at.Kb=yn),yn=Sr.x+(dt.x-Sr.x)*wt-y.x,Sr=Sr.y+(dt.y-Sr.y)*wt-y.y}at.measure(1/0,1/0,0,0),dt=at.measuredBounds,Zn=at.naturalBounds;var ro=0;at instanceof Mr&&(ro=at.strokeWidth),sr=Zn.width+ro;var zo=Zn.height+ro;Ae.reset(),Ae.translate(-dt.x,-dt.y),Ae.scale(at.scale,at.scale),Ae.rotate(oi===Fs?at.angle:Si,sr/2,zo/2),oi!==sp&&oi!==up||Ae.rotate(90,sr/2,zo/2),oi!==lp&&oi!==hp||Ae.rotate(-90,sr/2,zo/2),oi===tm&&(45<Si&&135>Si||225<Si&&315>Si)&&Ae.rotate(-Si,sr/2,zo/2),Zn=new pt(0,0,sr,zo),Ne.xi(Zn,Gt),Ae.Ga(Ne),Gt=-Ne.x+ro/2*at.scale,at=-Ne.y+ro/2*at.scale,$e.assign(bi),ro=isNaN(bi.x);var Ia=isNaN(bi.y);if(ro||Ia){sr=sr/2+3,zo=zo/2+3;var Ha=45<=Si&&135>=Si,vs=225<=Si&&315>=Si;oi===Fs&&(Ha||vs)?($e.x=Ia?sr:bi.y,$e.y=ro?zo:bi.x,Ha?0<=ft||isNaN(ft)&&.5>wt||!ro||($e.y=-zo):vs&&((0<=ft||isNaN(ft)&&.5>wt)&&ro&&($e.y=-zo),Ia&&($e.x=-sr))):(ro&&($e.x=0<=ft||isNaN(ft)&&.5>wt?sr:-sr),Ia&&($e.y=-zo),$e.rotate(Si))}else $e.rotate(Si);yn+=$e.x,Sr+=$e.y,Zn.set(dt),Zn.h(yn+Gt,Sr+at,dt.width,dt.height),we.push(Zn),x.ed(Zn)}}if(te!==null)for(E=te.labelNodes;E.next();)E.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),Vn(b,x.width||0,x.height||0),ui.free(Ae),je.free(Ne),je.free($e)}}}},A0.prototype.arrange=function(a,y){var x=y.length;if(a instanceof eo||a instanceof Hn){var E=a,b=null;a instanceof eo&&(b=a,E=b.adornedPart);var z=a instanceof eo?null:E.path,te=a.j;if(te.length!==0){var re=0;if(z!==null&&re<te.length){var oe=te[re];re++,z.arrange(oe.x-a.jg.x,oe.y-a.jg.y,oe.width,oe.height)}for(oe=0;oe<x;oe++){var le=y[oe];if(le!==z&&re<te.length){var he=te[re];re++,le.arrange(he.x-a.jg.x,he.y-a.jg.y,he.width,he.height)}}}if(y=E.points,x=y.count,2<=x&&a instanceof Hn)for(z=a.labelNodes;z.next();){var ge=a;te=z.value,re=te.segmentIndex,oe=te.segmentFraction;var Se=te.alignmentFocus;if(le=te.segmentOrientation,he=te.segmentOffset,isNaN(re)){var we=ge.ua,Ae=Bn();we.Qu(oe,Ae);var Ne=je.allocAt(Ae[0],Ae[1]);Ne.add(ge.i(0)),we.type===Cn.j||(we=we.figures.first()),Ne.offset(-we.startX,-we.startY),we=Ae[2],le!==Fs&&(ge=ge.computeAngle(te,le,we),te.angle=ge),ge=Ne.x;var $e=Ne.y;je.free(Ne),Ot(Ae)}else if(re<-x||re>=x)Ae=je.alloc(),we=ge,$e=Ae,we.vg(),we.computeMidPoint($e),we=ge.midAngle,le!==Fs&&(ge=ge.computeAngle(te,le,we),te.angle=ge),ge=Ae.x,$e=Ae.y,je.free(Ae);else{if(Ne=0,0<=re?(Ae=y.s[re],$e=re<x-1?y.s[re+1]:Ae):(Ne=x+re,Ae=y.s[Ne],$e=0<Ne?y.s[Ne-1]:Ae),Ae.Xa($e)){0<=re?(we=0<re?y.s[re-1]:Ae,Ne=re<x-2?y.s[re+2]:$e):(we=Ne<x-1?y.s[Ne+1]:Ae,Ne=1<Ne?y.s[Ne-2]:$e);var Ke=we.Bf(Ae),at=$e.Bf(Ne);we=Ke>at+10?0<=re?we.ab(Ae):Ae.ab(we):at>Ke+10?0<=re?$e.ab(Ne):Ne.ab($e):0<=re?we.ab(Ne):Ne.ab(we)}else we=0<=re?Ae.ab($e):$e.ab(Ae);le!==Fs&&(ge=ge.computeAngle(te,le,we),te.angle=ge),ge=Ae.x+($e.x-Ae.x)*oe,$e=Ae.y+($e.y-Ae.y)*oe}if(Se.ys())te.location=new je(ge,$e);else{Se.Mc()&&(Se=hi),Ae=ui.alloc(),Ae.reset(),Ae.scale(te.scale,te.scale),Ae.rotate(te.angle,0,0);var dt=te.naturalBounds;Ne=pt.allocAt(0,0,dt.width,dt.height),Ke=je.alloc(),Ke.xi(Ne,Se),Ae.Ga(Ke),Se=-Ke.x,at=-Ke.y;var ft=dt.width,wt=dt.height;dt=je.alloc(),dt.assign(he);var Gt=isNaN(he.x),oi=isNaN(he.y);if(Gt||oi){ft=ft/2+3,wt=wt/2+3;var bi=45<=we&&135>=we,Si=225<=we&&315>=we;le===Fs&&(bi||Si)?(dt.x=oi?ft:he.y,dt.y=Gt?wt:he.x,bi?0<=re||isNaN(re)&&.5>oe||!Gt||(dt.y=-wt):Si&&((0<=re||isNaN(re)&&.5>oe)&&Gt&&(dt.y=-wt),oi&&(dt.x=-ft))):(Gt&&(dt.x=0<=re||isNaN(re)&&.5>oe?ft:-ft),oi&&(dt.y=-wt),dt.rotate(we))}else dt.rotate(we);ge+=dt.x,$e+=dt.y,Ae.pp(Ne),Se+=Ne.x,at+=Ne.y,re=je.allocAt(ge+Se,$e+at),te.move(re),je.free(re),je.free(dt),je.free(Ke),pt.free(Ne),ui.free(Ae)}}b!==null?b.Ul(!1):E.Ul(!1),E=O1(a),a.location.h(a.position.x+E.x,a.position.y+E.y),je.free(E)}};function a1(a,y,x,E){if(ll(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof eo&&a.type===On.Link&&a.adornedObject instanceof Mr&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof Hn&&a.ua!==null?(a=a.geometry.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):a instanceof eo&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):E.Ge(-(b/2),-(b/2),y+b,x+b),b=E.desiredSize,b.w()||E.ua===null?E.dc.h(0,0,b.width,b.height):E.dc.assign(E.ua.bounds),Ma(E,!1)}}function Xg(){this.xa="Base"}Zt(Xg,ka),Xg.prototype.measure=function(a,y,x,E,b,z,te){var re=a.Pb();a.graduatedBounds=[];var oe=re.margin,le=oe.right+oe.left,he=oe.top+oe.bottom;re.measure(y,x,z,te);var ge=re.measuredBounds,Se=new pt(-oe.left,-oe.top,Math.max(ge.width+le,0),Math.max(ge.height+he,0));a.graduatedBounds.push(Se),b.assign(Se);for(var we=re.geometry,Ae=re.strokeWidth,Ne=we.flattenedSegments,$e=we.flattenedLengths,Ke=we.flattenedTotalLength,at=Ne.length,dt=0,ft=0,wt=Bn(),Gt=0;Gt<at;Gt++){var oi=Ne[Gt],bi=[];ft=dt=0;for(var Si=oi.length,Zn=0;Zn<Si;Zn+=2){var yn=oi[Zn],Sr=oi[Zn+1];if(Zn!==0){var sr=180*Math.atan2(Sr-ft,yn-dt)/Math.PI;0>sr&&(sr+=360),bi.push(sr)}dt=yn,ft=Sr}wt.push(bi)}if(a.graduatedIntervals===null){for(var ro=[],zo=a.O.s,Ia=zo.length,Ha=0;Ha<Ia;Ha++){var vs=zo[Ha],Ra=[];if(ro.push(Ra),vs.visible){var Rh=vs.interval;if(!(0>Rh)){for(var Pa=0;Pa<Ia;Pa++)if(Pa!==Ha){var hu=zo[Pa];if(hu.visible&&vs.constructor===hu.constructor){var ys=hu.interval;ys>Rh&&Ra.push(ys)}}}}}a.graduatedIntervals=ro}var jh=a.graduatedIntervals,cl=a.O.s,Zl=cl.length,tl=0,Ys=0,Pd=Ke;a.graduatedMarks=[];for(var du,tg=0;tg<Zl;tg++){var nl=cl[tg];if(du=[],nl.visible&&nl!==re){var Ss=Math.abs(nl.interval),Tp=a.graduatedTickUnit;if(!(2>Tp*Ss*Ke/a.graduatedRange&&nl.graduatedSkip===null)){var Kc=$e[0][0],Fu=0,Ks=0;Ys=Ke*nl.graduatedStart-1e-4,Pd=Ke*nl.graduatedEnd+1e-4;var rc=Tp*Ss,il=a.graduatedTickBase;if(il<a.graduatedMin){var wd=(a.graduatedMin-il)/rc;wd=wd%1===0?wd:Math.floor(wd+1),il+=wd*rc}else il>a.graduatedMin+rc&&(il-=Math.floor((il-a.graduatedMin)/rc)*rc);for(var Gm=jh[tg],Op=il,Hy=1e-6*a.graduatedMax,Yu=1;il<=a.graduatedMax+Hy;Yu++){e:{for(var sh=Gm.length,Uc=0;Uc<sh;Uc++){var Cd=(il-a.graduatedTickBase)%(Gm[Uc]*a.graduatedTickUnit),ng=1e-6*a.graduatedTickUnit;if(Cd<ng&&Cd>-ng){var Ed=!1;break e}}Ed=!0}if(Ed&&(il>a.graduatedMax&&(il=a.graduatedMax),nl.graduatedSkip===null||nl instanceof Wo&&!nl.graduatedSkip(il,nl)||nl instanceof Mr&&!nl.graduatedSkip(il,nl))&&(tl=(il-a.graduatedMin)*Ke/a.graduatedRange,tl>Ke&&(tl=Ke),Ys<=tl&&tl<=Pd)){for(var Ku=wt[Fu][Ks],zh=$e[Fu][Ks];Fu<$e.length;){for(;tl>Kc&&Ks<$e[Fu].length-1;)Ks++,Ku=wt[Fu][Ks],zh=$e[Fu][Ks],Kc+=zh;if(tl<=Kc)break;Fu++,Ks=0,Ku=wt[Fu][Ks],zh=$e[Fu][Ks],Kc+=zh}var Us=Ne[Fu],Mu=Us[2*Ks],Vm=Us[2*Ks+1],lh=(tl-(Kc-zh))/zh,ig=new je(Mu+(Us[2*Ks+2]-Mu)*lh+Ae/2-we.bounds.x,Vm+(Us[2*Ks+3]-Vm)*lh+Ae/2-we.bounds.y);ig.scale(re.scale,re.scale);e:{var cu=Ku,oc=wt[Fu];if(!(.5005>lh&&.4995<lh)){var Lu=cu;if(.5>lh?0<Ks?Lu=oc[Ks-1]:St.$(Us[0],Us[Us.length-2])&&St.$(Us[1],Us[Us.length-1])&&(Lu=oc[oc.length-1]):.5<lh&&(Ks+1<oc.length?Lu=oc[Ks+1]:St.$(Us[0],Us[Us.length-2])&&St.$(Us[1],Us[Us.length-1])&&(Lu=oc[0])),cu!==Lu){var Xc=Math.abs(cu-Lu);if(180<Xc&&(cu<Lu?cu+=360:Lu+=360,Xc=Math.abs(cu-Lu)),5e-4>lh||.9995<lh){Ku=(cu+Lu)/2%360;break e}if(10>Xc){var rg=1-Math.abs(.5-lh);Ku=(cu*rg+Lu*(1-rg))%360;break e}}}Ku=cu}if(nl instanceof Wo){var tu="";nl.graduatedFunction!==null?(tu=nl.graduatedFunction(il,nl),tu=tu!=null?tu.toString():""):tu=(+il.toFixed(2)).toString(),tu!==""&&du.push({$l:ig,angle:Ku,text:tu})}else du.push({$l:ig,angle:Ku})}il=Op+Yu*rc}}}a.graduatedMarks.push(du)}Ot(wt);var qa=a.graduatedMarks;if(qa!==null)for(var Ip=E.length,ks=0;ks<Ip;ks++){var wa=E[ks],Bs=qa[ks];if(wa.visible&&wa!==re&&Bs.length!==0){if(wa instanceof Mr){var uh=a,Zh=b,ac=wa.alignmentFocus;ac.Mc()&&(ac=Ki);var Gy=wa.angle;wa.Kb=0,wa.measure(1/0,1/0,0,0),wa.Kb=Gy;var _m=wa.measuredBounds,og=_m.width,sc=_m.height,Qc=pt.allocAt(0,0,og,sc),Xs=je.alloc();Xs.xi(Qc,ac),pt.free(Qc);for(var hh=-Xs.x,fu=-Xs.y,Ll=new pt,Ad=Bs.length,ag=0;ag<Ad;ag++)for(var Fd=Bs[ag],Ym=Fd.$l.x,sg=Fd.$l.y,fa=Fd.angle,nu=0;4>nu;nu++){switch(nu){case 0:Xs.h(hh,fu);break;case 1:Xs.h(hh+og,fu);break;case 2:Xs.h(hh,fu+sc);break;case 3:Xs.h(hh+og,fu+sc)}Xs.rotate(fa+wa.angle),Xs.offset(Ym,sg),ag===0&&nu===0?Ll.h(Xs.x,Xs.y,0,0):Ll.Ye(Xs),Xs.offset(-Ym,-sg),Xs.rotate(-fa-wa.angle)}je.free(Xs),uh.graduatedBounds!==null&&uh.graduatedBounds.push(Ll),yi(Zh,Ll.x,Ll.y,Ll.width,Ll.height)}else if(wa instanceof Wo){var Wl=a,Km=b;Wl.temporaryTextBlock===null&&(Wl.temporaryTextBlock=new Wo);var rl=Wl.temporaryTextBlock;P1(rl,wa);var Wh=wa.alignmentFocus;Wh.Mc()&&(Wh=Ki);for(var Hl=wa.segmentOrientation,lg=wa.segmentOffset,Md=new pt,Rp=0,ug=0,bu=0,lc=0,Ld=0,hg=Bs.length,Hh=0;Hh<hg;Hh++){var Uu=Bs[Hh];Rp=Uu.$l.x,ug=Uu.$l.y,bu=Uu.angle,Ld=lc=wa.angle,Hl!==Fs&&(Ld=Hl===ap||Hl===em?bu+wa.angle:bu,lc=Hn.computeAngle(Hl,Ld)),rl.Kb=lc,rl.text=Uu.text||"",rl.measure(1/0,1/0,0,0);var Gh=rl.measuredBounds,dh=rl.naturalBounds,Vh=dh.width,uc=dh.height,gu=ui.alloc();gu.reset(),gu.translate(-Gh.x,-Gh.y),gu.scale(rl.scale,rl.scale),gu.rotate(Ld,Vh/2,uc/2),Hl!==sp&&Hl!==up||gu.rotate(90,Vh/2,uc/2),Hl!==lp&&Hl!==hp||gu.rotate(-90,Vh/2,uc/2),Hl===tm&&(45<bu&&135>bu||225<bu&&315>bu)&&gu.rotate(-bu,Vh/2,uc/2);var Jc=pt.allocAt(0,0,Vh,uc),_h=je.alloc();_h.xi(Jc,Wh),gu.Ga(_h);var qc=-_h.x,Vy=-_h.y,ch=je.alloc();ch.assign(lg),isNaN(ch.x)&&(ch.x=Vh/2+3),isNaN(ch.y)&&(ch.y=-(uc/2+3)),ch.rotate(bu),Rp+=ch.x+qc,ug+=ch.y+Vy;var hc=new pt(Rp,ug,Gh.width,Gh.height),jp=new pt(Gh.x,Gh.y,Gh.width,Gh.height),_y=new pt(dh.x,dh.y,dh.width,dh.height);Uu.Sz=lc,Uu.lineCount=rl.lineCount,Uu.lines=[rl.Cb,rl.Ih,rl.df,rl.Le,rl.Qc,rl.Qb,rl.ze],Uu.actualBounds=hc,Uu.measuredBounds=jp,Uu.naturalBounds=_y,Hh===0?Md.assign(hc):Md.ed(hc),je.free(ch),je.free(_h),pt.free(Jc),ui.free(gu)}Wl.graduatedBounds!==null&&Wl.graduatedBounds.push(Md),yi(Km,Md.x,Md.y,Md.width,Md.height)}Ma(wa,!1)}}},Xg.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var E=a.Pb(),b=a.graduatedMarks;if(b!==null){var z=a.graduatedBounds,te=0,re=z[te];te++,E!==null&&E.arrange(re.x-x.x,re.y-x.y,re.width,re.height);for(var oe=y.length,le=0;le<oe;le++){var he=y[le];re=b[le],he.visible&&he!==E&&re.length!==0&&(re=z[te],te++,he.arrange(re.x-x.x,re.y-x.y,re.width,re.height))}a.graduatedBounds=null}}},Xg.prototype.gc=function(a,y,x){var E=x.$i;x.$i=!0;var b=a.naturalBounds,z=b.width,te=b.height;b=y instanceof qs,y.save(),y.beginPath(),y.rect(-1,-1,z+1,te+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,x),te=a.Df()*x.scale,0>=te&&(te=1);for(var re=z.actualBounds,oe=a.O.s,le=a.graduatedMarks,he=oe.length,ge=0;ge<he;ge++){var Se=oe[ge],we=le[ge],Ae=we.length;if(Se.visible&&Se!==z&&we.length!==0){if(Se instanceof Mr){if(!(2>a.graduatedTickUnit*Se.interval*z.geometry.flattenedTotalLength/a.graduatedRange*te&&Se.graduatedSkip===null)){var Ne=Se.measuredBounds,$e=Se.strokeWidth*Se.scale,Ke=Se.alignmentFocus;Ke.Mc()&&(Ke=Ki);for(var at=0;at<Ae;at++){var dt=we[at].$l,ft=we[at].angle,wt=Ke,Gt=Se.Ab;Gt.reset(),Gt.translate(dt.x+re.x,dt.y+re.y),Gt.rotate(ft+Se.angle,0,0),Gt.translate(-Ne.width*wt.x+wt.offsetX+$e/2,-Ne.height*wt.y+wt.offsetY+$e/2),Gt.scale(Se.scale,Se.scale),Ol(Se,!1),Se.wh.set(Se.Ab),Se.Kk=Se.scale,Pl(Se,!1),Se.gc(y,x),b&&(a.svg.appendChild(Se.svg),Se.svg=null),Se.Ab.reset()}}}else if(Se instanceof Wo)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new Wo),Ne=a.temporaryTextBlock,P1(Ne,Se),$e=0;$e<Ae;$e++)Ke=we[$e],Ke.actualBounds&&Ke.measuredBounds&&Ke.naturalBounds&&(Ne.ec=Ke.text||"",Ne.Kb=Ke.Sz||0,Ne.Gc=Ke.lineCount||0,at=Ke.lines,at!==void 0&&(Ne.Cb=at[0],Ne.Ih=at[1],Ne.df=at[2],Ne.Le=at[3],Ne.Qc=at[4],Ne.Qb=at[5],Ne.ze=at[6]),Ke.naturalBounds&&(Ne.dc=Ke.naturalBounds),Ke.actualBounds&&(at=Ke.actualBounds,Ne.arrange(at.x,at.y,at.width,at.height)),at=Ke.actualBounds,Ne.arrange(at.x,at.y,at.width,at.height),dt=Ke.measuredBounds,Ke=Ke.naturalBounds,ft=Ne.Ab,ft.reset(),ft.translate(at.x+re.x,at.y+re.y),ft.translate(-dt.x,-dt.y),Ne.no(ft,Ke.x,Ke.y,Ke.width,Ke.height),Ol(Ne,!1),Ne.wh.set(Ne.Ab),Ne.Kk=Ne.scale,Pl(Ne,!1),Ne.Ng=Se.part,Ne.Me=Se.panel,Ne.gc(y,x),Ne.Me=null,Ne.Ng=null,b&&(a.svg.appendChild(Ne.svg),Ne.svg=null))}}x.$i=E,y.restore(),y.Vc(!0)};function On(a,y){if(Mt.call(this),this.na=null,a===void 0)this.na=On.Position;else if(typeof a=="string"){var x=Xl.I(a);x!==null&&(this.na=x)}else a instanceof ka?this.na=a:a&&(this.na=On.Position,y=a);this.na===null&<("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===On.Grid?1048576:0),this.O=new An,this.yb=fr,this.Tm=Eo,this.Uf=Cr,this.$g=null,this.$e="",this.jg=new pt(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Bi,this.jn=sn,this.kn=Qn,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Zt(On,Mt),On.prototype.cloneProtected=function(a){Mt.prototype.cloneProtected.call(this,a),a.na=this.na,a.yb=this.yb.J(),a.Tm=this.Tm.J(),a.Uf=this.Uf,a.$e=this.$e,a.jg.assign(this.jg),this.T!==null&&(a.T=this.T.copy(a)),a.xo=this.xo,a.jn=this.jn.J(),a.kn=this.kn.J(),this.ra!==null&&(a.ra=this.ra.copy()),a.ub=this.ub,a.zn=this.zn,a.Hh=this.Hh},On.prototype.Af=function(a){Mt.prototype.Af.call(this,a),a.O=this.O;for(var y=a.O.s,x=y.length,E=0;E<x;E++)y[E].Me=a;a.$g=null},On.prototype.copy=function(){var a=Mt.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E].copy();b.wi(a),b.Ng=null;var z=a.O,te=z.count;if(z.Gb(te,b),z=a.part,z!==null){z.Rh=null,b.portId!==null&&z instanceof li&&(z.Te=!0);var re=a.diagram;re!==null&&re.undoManager.isUndoingRedoing||z.cb(qo,"elements",a,null,b,null,te)}}return a}return null},be=On.prototype,be.toString=function(){return"Panel("+this.type.name+")#"+Tr(this)},be.Pn=function(a){Mt.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,E=0;E<x;E++)y[E].Pn(a)},be.hh=function(a,y){if(this.na===On.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===On.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===On.Table)if(a.yc(),a instanceof qs){var x=a.yd;a.yd=c0(a,"gojs-ts"),mv(this,a),a.nh.pop(),a.yd=x}else mv(this,a);(x=this.isClipping&&this.na===On.Spot)&&a.save();for(var E=this.Pb(),b=this.O.s,z=b.length,te=0;te<z;te++){var re=b[te];x&&re===E&&(a.clipInsteadOfFill=!0),re.gc(a,y),x&&re===E&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function mv(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,E=0<a.columnCount?a.colDefs:null;x!==null&&F0(a,y,!0,x,!0),E!==null&&F0(a,y,!1,E,!0),x!==null&&s1(a,y,!0,x),E!==null&&s1(a,y,!1,E),x!==null&&F0(a,y,!0,x,!1),E!==null&&F0(a,y,!1,E,!1)}function s1(a,y,x,E){for(var b=E.length,z=a.actualBounds,te=a.naturalBounds,re=!0,oe=0;oe<b;oe++){var le=E[oe];if(le!==void 0&&le.actual!==0)if(re)re=!1;else{if(x){if(le.position>te.height)continue}else if(le.position>te.width)continue;var he=le.separatorStrokeWidth;isNaN(he)&&(he=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ge=le.separatorStroke;if(ge===null&&(ge=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),he!==0&&ge!==null){ha(a,y,ge,!1,!1,te,z),ge=!1;var Se=le.separatorDashArray;Se===null&&(Se=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),Se!==null&&(ge=!0,y.js(Se,0)),y.beginPath(),Se=le.position+he,x?Se>te.height&&(he-=Se-te.height):Se>te.width&&(he-=Se-te.width),le=le.position+he/2,y.lineWidth=he,he=a.yb,x?(le+=he.top,Se=te.width-he.right,y.moveTo(he.left,le),y.lineTo(Se,le)):(le+=he.left,Se=te.height-he.bottom,y.moveTo(le,he.top),y.lineTo(le,Se)),y.stroke(),y.Se(),ge&&y.fs()}}}}function F0(a,y,x,E,b){for(var z=E.length,te=a.actualBounds,re=a.naturalBounds,oe=l1(a,!0),le=l1(a,!1),he=0;he<z;he++){var ge=E[he];if(ge!==void 0&&ge.background!==null&&ge.coversSeparators!==b&&ge.actual!==0){var Se=x?te.height:te.width;if(!(ge.position>Se)){var we=ge.Wc(),Ae=ge.separatorStrokeWidth;isNaN(Ae)&&(Ae=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Ne=ge.separatorStroke;Ne===null&&(Ne=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Ne===null||ge.index===(x?oe:le))&&(Ae=0),we-=Ae,Ae=ge.position+Ae,we+=ge.actual,Ae+we>Se&&(we=Se-Ae),0>=we||(Se=a.yb,ha(a,y,ge.background,!0,!1,re,te),x?y.fillRect(Se.left,Ae+Se.top,te.width-(Se.left+Se.right),we):y.fillRect(Ae+Se.left,Se.top,we,te.height-(Se.top+Se.bottom)))}}}}function l1(a,y){for(var x=y?a.rowCount:a.columnCount,E=0;E<x;E++){var b=y?a.rowDefs[E]:a.colDefs[E];if(b!==void 0)return b.index}return 0}function vv(a){return a==="LineV"||a==="BarV"}be.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},be.kk=function(a,y,x){if(!Mt.prototype.kk.call(this,a,y,x))return!1;if(this.type===On.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,mv(this,a),a.yd=null;else if(this.na===On.Grid||this.na===On.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;x=this.O.s;for(var E=x.length,b=0;b<E;b++)x[b].gc(a,y);return!0},be.nk=function(){return!0},be.$o=function(a,y,x,E){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var b=0,z=0,te=0;te<y.length;te++)if(y[te].Ed()){var re=y[te].actualBounds;b=te===0?re.x:Math.min(re.x,b),z=te===0?re.y:Math.min(re.y,z)}E.setAttributeNS(null,"clip-path","path('M "+(a.x-x.x-b)+","+(a.y-x.y-z)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else Mt.prototype.$o.call(this,a,y,x,E)},be.Sj=function(a,y,x,E,b){var z=this.se(),te=this.transform,re=1/(te.m11*te.m22-te.m12*te.m21),oe=te.m22*re,le=-te.m12*re,he=-te.m21*re,ge=te.m11*re,Se=re*(te.m21*te.dy-te.m22*te.dx),we=re*(te.m12*te.dx-te.m11*te.dy);if(this.areaBackground!==null)return te=this.actualBounds,St.Ff(te.left,te.top,te.right,te.bottom,a,y,x,E,b);if(this.background!==null)return z=a*oe+y*he+Se,re=a*le+y*ge+we,a=x*oe+E*he+Se,oe=x*le+E*ge+we,b.h(0,0),x=this.naturalBounds,z=St.Ff(0,0,x.width,x.height,z,re,a,oe,b),b.transform(te),z;z||(oe=1,he=le=0,ge=1,we=Se=0),re=a*oe+y*he+Se,a=a*le+y*ge+we,oe=x*oe+E*he+Se,x=x*le+E*ge+we,b.h(oe,x),E=(oe-re)*(oe-re)+(x-a)*(x-a),le=!1,ge=this.O.s,we=ge.length,he=je.alloc(),Se=null,y=1/0;var Ae=null,Ne=this.isClipping&&this.na===On.Spot;Ne&&(Ae=je.alloc(),Se=this.Pb(),(le=Se.Sj(re,a,oe,x,Ae))&&(y=(re-Ae.x)*(re-Ae.x)+(a-Ae.y)*(a-Ae.y)));for(var $e=0;$e<we;$e++){var Ke=ge[$e];Ke.visible&&Ke!==Se&&Ke.Sj(re,a,oe,x,he)&&(le=!0,Ke=(re-he.x)*(re-he.x)+(a-he.y)*(a-he.y),Ke<E&&(E=Ke,b.set(he)))}return Ne&&(y>E&&b.set(Ae),je.free(Ae)),je.free(he),z&&b.transform(te),le},be.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();Mt.prototype.Gj.call(this)},be.v=function(a){if(!ll(this)){Mt.prototype.v.call(this,a),a=null,(this.na===On.Auto||this.na===On.Link)&&(a=this.Pb());for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];if((b===a||b.isPanelMain)&&b.v(!0),!b.desiredSize.w()){var z=Os(b,!1);(b instanceof As||b instanceof On||b instanceof Wo||z!==xn)&&b.v(!0)}}}},be.Uj=function(){if(!ll(this)){Ma(this,!0),Ou(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},be.Uk=function(){if(!(this.l&2048)){Ol(this,!0),Pl(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},be.Wu=function(){Pl(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},be.Wl=function(a,y,x,E){var b=this.jg;b.h(0,0,0,0);var z=this.desiredSize,te=this.minSize;x===void 0&&(x=te.width,E=te.height),x=Math.max(x,te.width),E=Math.max(E,te.height);var re=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,re.width)),isNaN(z.height)||(y=Math.min(z.height,re.height)),a=Math.max(x,a),y=Math.max(E,y);var oe=this.yb;a=Math.max(a-oe.left-oe.right,0),y=Math.max(y-oe.top-oe.bottom,0);var le=this.O.s;le.length!==0&&this.na.measure(this,a,y,le,b,x,E),a=b.width+oe.left+oe.right,oe=b.height+oe.top+oe.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(oe=z.height),a=Math.min(re.width,a),oe=Math.min(re.height,oe),a=Math.max(te.width,a),oe=Math.max(te.height,oe),a=Math.max(x,a),oe=Math.max(E,oe),Vn(b,a,oe),Vn(this.naturalBounds,a,oe),this.Ge(0,0,a,oe)},be.Pb=function(){if(this.$g===null){var a=this.O.s,y=a.length;if(y===0)return null;for(var x=0;x<y;x++){var E=a[x];if(E.isPanelMain===!0)return this.$g=E}this.$g=a[0]}return this.$g};function rh(a){return a.part!==null?a.part.locationObject:null}be.eh=function(a,y,x,E){var b=this.O.s;if(this.actualBounds.h(a,y,x,E),b.length!==0){if(!this.desiredSize.w()){a=Os(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var te=this.Kg,re=te.left+te.right;switch(te=te.top+te.bottom,y===x&&z===E&&(a=xn),a){case xn:(y>x||z>E)&&(this.v(),this.measure(y>x?x:y,z>E?E:z,0,0));break;case Nn:this.v(!0),this.measure(x+re,E+te,0,0);break;case Zi:this.v(!0),this.measure(x+re,z+te,0,0);break;case er:this.v(!0),this.measure(y+re,E+te,0,0)}}this.na.arrange(this,b,this.jg)}},be.gh=function(a){var y=this.naturalBounds,x=rh(this);if(xi(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,b=je.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(vn(b.set(a),z.transform),z.ca(b)))return je.free(b),!0}return je.free(b),!(this.Ma===null&&this.areaBackground===null)}return!1},be.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E].ks(a);if(b!==null)return b}return null},be.qm=function(a,y){if(y(this,a),a instanceof On){a=a.O.s;for(var x=a.length,E=0;E<x;E++)this.qm(a[E],y)}};function Qd(a,y){u1(a,a,y)}function u1(a,y,x){x(y),y=y.O.s;for(var E=y.length,b=0;b<E;b++){var z=y[b];z instanceof On&&u1(a,z,x)}}function Ex(a,y){h1(a,a,y)}function h1(a,y,x){if(x(y),y instanceof On){y=y.O.s;for(var E=y.length,b=0;b<E;b++)h1(a,y[b],x)}}be.Nl=function(a){return d1(this,this,a)};function d1(a,y,x){if(x(y))return y;if(y instanceof On){y=y.O.s;for(var E=y.length,b=0;b<E;b++){var z=d1(a,y[b],x);if(z!==null)return z}}return null}be.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=Qg(this));for(var E=0;E<x;E++){var b=y[E];if(b instanceof On){var z=b.fb(a);if(z!==null)return z}if(b.name===a)return b}return null};function c1(a){a=a.O.s;for(var y=a.length,x=0,E=0;E<y;E++){var b=a[E];b instanceof On?x=Math.max(x,c1(b)):b instanceof Mr&&(x=Math.max(x,b.ig/2*b.strokeMiterLimit*b.Df()))}return x}be.se=function(){return!(this.type===On.TableRow||this.type===On.TableColumn)};function Mh(a){return a.type===On.TableRow||a.type===On.TableColumn}be.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),Cs(this)))return null;var E=this.naturalBounds,b=1/this.Df(),z=this.se(),te=z?a:vn(je.allocAt(a.x,a.y),this.transform),re=this.diagram,oe=10,le=5;if(re!==null&&(oe=re.Ql("extraTouchArea"),le=oe/2),xi(-(le*b),-(le*b),E.width+oe*b,E.height+oe*b,te.x,te.y)){if(!this.isAtomic){b=this.O.s;var he=b.length;if(re=je.alloc(),le=(oe=this.isClipping&&this.na===On.Spot)?this.Pb():null,oe&&(le.se()?vn(re.set(a),le.transform):re.set(a),!le.ca(re)))return je.free(re),z||je.free(te),null;for(var ge=rh(this);he--;){var Se=b[he];if((Se.visible||Se===ge)&&(Se.se()?vn(re.set(a),Se.transform):re.set(a),!oe||Se!==le)){var we=null;if(Se instanceof On?we=Se.ic(re,y,x):Se.pickable===!0&&Se.ca(re)&&(we=Se),we!==null&&(y!==null&&(we=y(we)),we!==null&&(x===null||x(we))))return je.free(re),z||je.free(te),we}}je.free(re)}return this.background===null&&this.areaBackground===null?(z||je.free(te),null):(a=xi(0,0,E.width,E.height,te.x,te.y)?this:null,z||je.free(te),a)}return z||je.free(te),null},be.ji=function(a,y,x,E){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var b=this.naturalBounds,z=this.se(),te=z?a:vn(je.allocAt(a.x,a.y),this.transform);if(b=xi(0,0,b.width,b.height,te.x,te.y),Mh(this)||b){if(!this.isAtomic){for(var re=this.O.s,oe=re.length,le=je.alloc(),he=rh(this);oe--;){var ge=re[oe];if(ge.visible||ge===he){ge.se()?vn(le.set(a),ge.transform):le.set(a);var Se=ge;ge=ge instanceof On?ge:null,(ge!==null?ge.ji(le,y,x,E):Se.ca(le))&&Se.pickable!==!1&&(y!==null&&(Se=y(Se)),Se===null||x!==null&&!x(Se)||E.add(Se))}}je.free(le)}return z||je.free(te),b&&(this.background!==null||this.areaBackground!==null)}return z||je.free(te),!1},be.Cf=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var te=z;if(z===void 0&&(te=ui.alloc(),te.reset()),te.multiply(this.transform),this.fh(a,te))return yv(this,y,x,b),z===void 0&&ui.free(te),!0;if(this.Yc(a,te)){if(!this.isAtomic)for(var re=rh(this),oe=this.O.s,le=oe.length;le--;){var he=oe[le];if(he.visible||he===re){var ge=he.actualBounds,Se=this.naturalBounds;ge.x>Se.width||ge.y>Se.height||0>ge.x+ge.width||0>ge.y+ge.height||(ge=he,he=he instanceof On?he:null,Se=ui.alloc(),Se.set(te),(he!==null?he.Cf(a,y,x,E,b,Se):Oa(ge,a,E,Se))&&(y!==null&&(ge=y(ge)),ge===null||x!==null&&!x(ge)||b.add(ge)),ui.free(Se))}}return z===void 0&&ui.free(te),E}return z===void 0&&ui.free(te),!1};function yv(a,y,x,E){for(var b=a.O.s,z=b.length;z--;){var te=b[z];if(te.visible){var re=te.actualBounds,oe=a.naturalBounds;re.x>oe.width||re.y>oe.height||0>re.x+re.width||0>re.y+re.height||(te instanceof On&&yv(te,y,x,E),y!==null&&(te=y(te)),te===null||x!==null&&!x(te)||E.add(te))}}}be.og=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),E===void 0&&(E=null);var te=this.naturalBounds,re=this.se(),oe=re?a:vn(je.allocAt(a.x,a.y),this.transform),le=re?y:vn(je.allocAt(y.x,y.y),this.transform),he=oe.Bf(le),ge=0<oe.x&&oe.x<te.width&&0<oe.y&&oe.y<te.height||dn(oe.x,oe.y,0,0,0,te.height)<=he||dn(oe.x,oe.y,0,te.height,te.width,te.height)<=he||dn(oe.x,oe.y,te.width,te.height,te.width,0)<=he||dn(oe.x,oe.y,te.width,0,0,0)<=he;if(te=oe.zd(0,0)<=he&&oe.zd(0,te.height)<=he&&oe.zd(te.width,0)<=he&&oe.zd(te.width,te.height)<=he,re||(je.free(oe),je.free(le)),ge){if(!this.isAtomic){oe=je.alloc(),le=je.alloc(),he=rh(this);for(var Se=this.O.s,we=Se.length;we--;){var Ae=Se[we];if(Ae.visible||Ae===he){var Ne=Ae.actualBounds,$e=this.naturalBounds;(!re||!(Ne.x>$e.width||Ne.y>$e.height||0>Ne.x+Ne.width||0>Ne.y+Ne.height))&&(Ae.se()?(Ne=Ae.transform,vn(oe.set(a),Ne),vn(le.set(y),Ne)):(oe.set(a),le.set(y)),Ne=Ae,Ae=Ae instanceof On?Ae:null,(Ae!==null?Ae.og(oe,le,x,E,b,z):Ne.tx(oe,le,b))&&(x!==null&&(Ne=x(Ne)),Ne===null||E!==null&&!E(Ne)||z.add(Ne)))}}je.free(oe),je.free(le)}return b?ge:te}return!1};function Sv(a){var y=null;return a instanceof Mr&&(y=a.spot1,y===Eo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Ii),y}function xv(a){var y=null;return a instanceof Mr&&(y=a.spot2,y===Eo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=ni),y}be.add=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];for(x=0;x<y.length;x++)this.Gb(this.O.count,y[x]);return this},be.M=function(a){return this.O.M(a)},be.Gb=function(a,y){y instanceof Xi&<("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&<("Cannot make a Panel contain itself: "+this.toString()),lt("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&<("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+y.toString()+", already contained by "+x.toString()+", cannot be shared by this Panel: "+this.toString()),this.na!==On.Grid||y instanceof Mr||lt("Can only add Shapes to a Grid Panel, not: "+y),this.na!==On.Graduated||y instanceof Mr||y instanceof Wo||lt("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var E=y.data;E!==null&&typeof E=="object"&&(this.ge===null&&(this.ge=new Wt),this.ge.add(E,y))}var b=this.O;if(E=-1,x===this){for(var z=-1,te=this.O.s,re=te.length,oe=0;oe<re;oe++)if(te[oe]===y){z=oe;break}if(z!==-1){if(z===a||z+1>=b.count&&a>=b.count)return;b.mb(z),E=z}else lt("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>b.count)&&(a=b.count),b.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),ll(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof On&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||L0(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof li&&(x.Te=!0),x.Te&&x instanceof li&&(x.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(E!==-1&&x.cb(ua,"elements",this,y,null,E,null),x.cb(qo,"elements",this,null,y,null,a)))};function Pv(a,y){a.l=y?a.l|16777216:a.l&-16777217}be.remove=function(a){for(var y=this.O.s,x=y.length,E=-1,b=0;b<x;b++)if(y[b]===a){E=b;break}E!==-1&&this.pc(E,!0)},be.mb=function(a){0<=a&&this.pc(a,!0)},be.pc=function(a,y){var x=this.O,E=x.M(a);if(E.Ng=null,E.wi(null),this.ge!==null){var b=E.data;typeof b=="object"&&this.ge.remove(b)}x.mb(a),Ma(this,!1),this.v(),this.$g===E&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof li&&(E instanceof On?E.qm(E,function(te,re){Vv(z,re,y)}):Vv(z,E,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(ua,"elements",this,E,null,a,null))},be.Fb=function(a){0>a&&ai(a,">= 0",On,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new La;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(qo,"rowdefs",this,null,x,null,a)}return y[a]},be.oA=function(a){if(0>a&&ai(a,">= 0",On,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(ua,"rowdefs",this,x,null,a,null),this.v()}}};function f1(a,y,x){var E=a.rowDefs;if(!(0>y)){if(E[y]=x instanceof La?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}be.Eb=function(a){0>a&&ai(a,">= 0",On,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new La;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(qo,"coldefs",this,null,x,null,a)}return y[a]},be.jA=function(a){if(0>a&&ai(a,">= 0",On,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(ua,"coldefs",this,x,null,a,null),this.v()}}};function g1(a,y,x){var E=a.colDefs;if(!(0>y)){if(E[y]=x instanceof La?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}be.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&b0(y,a),this},be.Hy=function(a,y){return(a=this.Fb(a))&&b0(a,new La(y)),this},be.By=function(a,y){return(a=this.Eb(a))&&b0(a,new La(y)),this},be.nz=function(a){if(0>a||this.type!==On.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,E=x.length,b=this.topIndex;b<E;b++){var z=x[b];if(z!==void 0&&(y+=z.total,a<y))break}return b},be.fz=function(a){if(0>a||this.type!==On.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,E=x.length,b=this.leftIndex;b<E;b++){var z=x[b];if(z!==void 0&&(y+=z.total,a<y))break}return b},be.Fz=function(a,y){if(y===void 0&&(y=new je(NaN,NaN)),this.type!==On.Graduated)return y.h(NaN,NaN),y;a=Math.min(Math.max(a,this.graduatedMin),this.graduatedMax);var x=this.Pb();return x.geometry.Pu((a-this.graduatedMin)/this.graduatedRange,y),x.transform.Ga(y)},be.Gz=function(a){if(this.type!==On.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function p1(a){return a=a.allBindings,a!==null&&a._isFrozen}function Rl(a){var y=a.allBindings;if(y===null)a.data!==null&<("Template cannot have .data be non-null: "+a),a.allBindings=y=new An;else if(y._isFrozen)return;var x=new An;Pv(a,!1),a.qm(a,function(le,he){he.th();var ge=he.localBindings;if(ge!==null)for(Bc(he,!1),ge=ge.iterator;ge.next();){var Se=ge.value;Se.mode===yp&&Bc(he,!0);var we=Se.sourceName;we!==null&&(we==="/"&&Pv(le,!0),we=bS(Se,le,he),we!==null&&(x.add(we),we.srcBindings===null&&(we.srcBindings=new An),we.srcBindings.add(Se))),y.add(Se)}if(he instanceof On&&he.type===On.Table){if(0<he.rowCount){for(le=he.rowDefs,ge=le.length,Se=0;Se<ge;Se++)if(we=le[Se],we!==void 0&&we.be!==null)for(var Ae=we.be.iterator;Ae.next();){var Ne=Ae.value;Ne.xd=we,Ne.to=2,Ne.wl=we.index,y.add(Ne)}}if(0<he.columnCount){for(he=he.colDefs,le=he.length,ge=0;ge<le;ge++)if(Se=he[ge],Se!==void 0&&Se.be!==null)for(we=Se.be.iterator;we.next();)Ae=we.value,Ae.xd=Se,Ae.to=1,Ae.wl=Se.index,y.add(Ae)}}});for(var E=x.iterator;E.next();){var b=E.value;if(b.srcBindings!==null){Bc(b,!0);for(var z=b.srcBindings.iterator;z.next();){var te=z.value;b.localBindings===null&&(b.localBindings=new An),b.localBindings.add(te)}}b.srcBindings=null}for(E=y.iterator;E.next();)if(b=E.value,z=b.xd,z!==null){b.xd=null;var re=b.targetProperty,oe=re.indexOf(".");0<oe&&z instanceof On&&(te=re.substring(0,oe),re=re.substr(oe+1),oe=z.fb(te),oe!==null?(z=oe,b.targetProperty=re):ti('Warning: unable to find GraphObject named "'+te+'" for Binding: '+b.toString())),z instanceof La?(te=Tr(z.panel),b.Ai=te===void 0?-1:te,z.panel.bindingId=b.Ai):z instanceof Mt?(te=Tr(z),b.Ai=te===void 0?-1:te,z.bindingId=b.Ai):lt("Unknown type of binding target: "+z)}y.freeze(),a instanceof Xi&&a.Zc()&&a.Va()}be.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return Ex(y,function(x){x instanceof On&&(x.allBindings=null,x.ub=null);var E=x.localBindings;E!==null&&(x.localBindings=null,E.each(function(b){x.bind(b.copy())})),E=x.animationTriggers,E!==null&&(x.animationTriggers=null,E.each(function(b){x.Jv(b.value.copy())}))}),a&&Rl(y),y},be.La=function(a){var y=this.allBindings;if(y!==null)for(a===void 0&&(a=""),y=y.iterator;y.next();){var x=y.value,E=x.sourceProperty;if((a===""||E===""||E===a)&&(E=x.targetProperty,x.converter!==null||E!=="")){E=this.data;var b=x.sourceName;if(b!==null){if(b==="")E=this;else if(b==="/")E=this;else if(b===".")E=this;else if(b==="..")E=this;else if(E=this.fb(b),E===null)continue}else if(x.isToModel)if(E=this.diagram,E!==null)E=E.model.modelData;else continue;var z=this,te=x.Ai;if(te!==-1){if(z=this.ks(te),z===null)continue}else x.xd!==null&&(z=x.xd);if(b==="/"?E=z.part:b==="."?E=z:b===".."&&(E=z.panel),b=x.to,b!==0){if(!(z instanceof On))continue;b===1?z=z.Eb(x.wl):b===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,E)}}},be.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function Ax(a,y){a=a.O.s;for(var x=a.length,E=y.length,b=0,z=null;b<x&&(z=a[b],!(z instanceof On&&z.data!==null));)b++,z=a[b];if(x-b!==E)return!0;if(z===null)return 0<E;for(var te=0;b<x&&te<E;){if(z=a[b],!(z instanceof On)||z.data!==y[te])return!0;b++,te++}return!1}function Qg(a){if(a.type===On.Spot||a.type===On.Auto)return Math.min(a.O.length,1);if(a.type===On.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var E=a.M(x);if(!(E instanceof Mr&&E.isPanelMain))break}return x}return a.type===On.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof On&&Mh(a))?1:0}be.mv=function(){for(var a=Qg(this);this.O.length>a;)this.pc(this.O.length-1,!1);m1(this,this.itemArray)};function m1(a,y){var x=Qg(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var E=0;E<x;E++)M0(a,y[E],E,!0)}else{E=x;for(var b=0;b<y.length;b++,E++){var z=y[b],te=E<a.O.length?a.O.M(E):null;if(te instanceof On){if(te.data!==z){var re=Cv(a,te.data),oe=Cv(a,z),le=oe!==re;le||(re=Ev(a,re),le=Ev(a,oe)!==re),le?(a.pc(E,!1),M0(a,z,b,!1)):te.data=z}}else M0(a,z,b,!1)}for(;E<a.O.length;)a.pc(E,!1);a.$g=null,wv(a,x,0),ll(a)||a.v(),a.graduatedIntervals=null,a.If()||L0(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof li&&(y.Te=!0),y.Te&&y instanceof li&&(y.wc=null))}}function M0(a,y,x,E){if(!(y==null||0>x)){var b=Cv(a,y);if(b=Ev(a,b),b!==null){if(Rl(b),b=b.copy(),b.l&16777216){var z=a.ih();z!==null&&Pv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new Wt),a.ge.add(y,b)),z=x+Qg(a),a.Gb(z,b),E&&(b.ub=y,wv(a,z,x),b.ub=null),b.data=y}}}function wv(a,y,x){for(a=a.O;y<a.length;){var E=a.M(y);if(E instanceof On){var b=y,z=x;E.type===On.TableRow?E.row=b:E.type===On.TableColumn&&(E.column=b),E.itemIndex=z}y++,x++}}function Cv(a,y){if(y===null)return"";if(a=a.itemCategoryProperty,typeof a=="function")a=a(y);else if(typeof a=="string"&&typeof y=="object"){if(a==="")return"";a=va(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;lt("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Ev(a,y){var x=a.itemTemplateMap,E=null;return x!==null&&(E=x.I(y)),E===null&&(x!==null&&(E=x.I("")),E===null&&(v1||(v1=!0,ti('No item template Panel found for category "'+y+'" on '+a),ti(" Using default item template."),a=new On,y=new Wo,y.bind(new xa("text","",Ji)),a.add(y),y1=a),E=y1)),E}function L0(a,y,x){var E=y.enabledChanged;if(E!==null&&E(y,x),y instanceof On){y=y.O.s,E=y.length;for(var b=0;b<E;b++){var z=y[b];x&&z instanceof On&&!z.isEnabled||L0(a,z,x)}}}function Eu(a,y){y.name=a,Xl.add(a,y)}pn.Object.defineProperties(On.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===On.Grid,this.v(),this.g("type",y,a))}},elements:{get:function(){return this.O.iterator}},naturalBounds:{get:function(){return this.dc}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"?(0>a&&ai(a,">= 0",On,"padding"),a=new ri(a)):(0>a.left&&ai(a.left,">= 0",On,"padding:value.left"),0>a.right&&ai(a.right,">= 0",On,"padding:value.right"),0>a.top&&ai(a.top,">= 0",On,"padding:value.top"),0>a.bottom&&ai(a.bottom,">= 0",On,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:fr},set:function(a){typeof a=="number"&&(a=new ri(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new El),this.T.Qp=a,this.v(),this.g("defaultSeparatorPadding",y,a))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(a){var y=this.defaultRowSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof So)&&(a instanceof So&&a.freeze(),this.T===null&&(this.T=new El),this.T.ia=a,this.N(),this.g("defaultRowSeparatorStroke",y,a))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(a){var y=this.defaultRowSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new El),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;b<x;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||lt("defaultRowSeparatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.T===null&&(this.T=new El),this.T.V=a,this.N(),this.g("defaultRowSeparatorDashArray",y,a)}}},defaultColumnSeparatorStroke:{get:function(){return this.T!==null?this.T.u:null},set:function(a){var y=this.defaultColumnSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof So)&&(a instanceof So&&a.freeze(),this.T===null&&(this.T=new El),this.T.u=a,this.N(),this.g("defaultColumnSeparatorStroke",y,a))}},defaultColumnSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.F:1},set:function(a){var y=this.defaultColumnSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new El),this.T.F=a,this.v(),this.g("defaultColumnSeparatorStrokeWidth",y,a))}},defaultColumnSeparatorDashArray:{get:function(){return this.T!==null?this.T.o:null},set:function(a){var y=this.defaultColumnSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;b<x;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||lt("defaultColumnSeparatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.T===null&&(this.T=new El),this.T.o=a,this.N(),this.g("defaultColumnSeparatorDashArray",y,a)}}},inRowsCols:{get:function(){return this.T!==null?this.T.nb:null},set:function(a){this.T===null&&(this.T=new El),this.T.nb=a}},viewboxStretch:{get:function(){return this.xo},set:function(a){var y=this.xo;y!==a&&(this.xo=a,this.v(),this.g("viewboxStretch",y,a))}},gridCellSize:{get:function(){return this.jn},set:function(a){var y=this.jn;if(!y.D(a)){a.w()&&a.width!==0&&a.height!==0||lt("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Pu(x),this.N(),this.g("gridCellSize",y,a)}}},gridOrigin:{get:function(){return this.kn},set:function(a){var y=this.kn;if(!y.D(a)){a.w()||lt("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Pu(x),this.N(),this.g("gridOrigin",y,a)}}},graduatedMin:{get:function(){return this.ra!==null?this.ra.lq:0},set:function(a){var y=this.graduatedMin;y!==a&&(this.ra===null&&(this.ra=new oh),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),ts(this)&&(a=this.part,a!==null&&Qo(this,a,"graduatedRange")))}},graduatedMax:{get:function(){return this.ra!==null?this.ra.F:100},set:function(a){var y=this.graduatedMax;y!==a&&(this.ra===null&&(this.ra=new oh),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),ts(this)&&(a=this.part,a!==null&&Qo(this,a,"graduatedRange")))}},graduatedRange:{get:function(){return this.graduatedMax-this.graduatedMin}},graduatedTickUnit:{get:function(){return this.ra!==null?this.ra.ia:10},set:function(a){var y=this.graduatedTickUnit;y!==a&&0<a&&(this.ra===null&&(this.ra=new oh),this.ra.ia=a,this.v(),this.g("graduatedTickUnit",y,a))}},graduatedTickBase:{get:function(){return this.ra!==null?this.ra.V:0},set:function(a){var y=this.graduatedTickBase;y!==a&&(this.ra===null&&(this.ra=new oh),this.ra.V=a,this.v(),this.g("graduatedTickBase",y,a))}},graduatedMarks:{get:function(){return this.ra!==null?this.ra.u:null},set:function(a){this.ra!==null?this.ra.u=a:a!==null&&(this.ra=new oh,this.ra.u=a)}},graduatedBounds:{get:function(){return this.ra!==null?this.ra.j:null},set:function(a){this.ra!==null?this.ra.j=a:a!==null&&(this.ra=new oh,this.ra.j=a)}},graduatedIntervals:{get:function(){return this.ra!==null?this.ra.o:null},set:function(a){this.ra!==null?this.ra.o=a:a!==null&&(this.ra=new oh,this.ra.o=a)}},temporaryTextBlock:{get:function(){return this.ra!==null?this.ra.Zh:null},set:function(a){this.ra!==null?this.ra.Zh=a:a!==null&&(this.ra=new oh,this.ra.Zh=a)}},panelLayoutState:{get:function(){return this.F},set:function(a){this.F=a}},Te:{get:function(){return(this.l&8388608)!==0},set:function(a){(this.l&8388608)!==0!==a&&(this.l^=8388608)}},rowDefs:{get:function(){return this.T===null&&(this.T=new El),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new El),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:k0},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new El),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:k0},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new El),this.T.j=a,this.v(),this.g("columnSizing",y,a))}},topIndex:{get:function(){return this.T!==null?this.T.Hb:0},set:function(a){var y=this.topIndex;y!==a&&((!isFinite(a)||0>a)&<("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new El),this.T.Hb=a,this.v(),this.g("topIndex",y,a))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(a){var y=this.leftIndex;y!==a&&((!isFinite(a)||0>a)&<("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new El),this.T.hb=a,this.v(),this.g("leftIndex",y,a))}},data:{get:function(){return this.ub},set:function(a){var y=this.ub;if(y!==a){var x=this instanceof Xi&&!(this instanceof eo);Rl(this),this.ub=a;var E=this.diagram;E!==null&&(x?(x=E.partManager,this instanceof Hn?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Xi&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),E!==null&&E.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new Nc),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&Ax(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&hy(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&uy(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||m1(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new Wt}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Xi||a.isPanelMain)&<("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+a),this.itemTemplateMap.add("",a),this.g("itemTemplate",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(a){var y=this.itemTemplateMap;if(y!==a){for(var x=a.iterator;x.next(););Dr(this),this.A.Pc=a,this.g("itemTemplateMap",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(a){var y=this.itemCategoryProperty;y!==a&&(Dr(this),this.A.Oc=a,this.g("itemCategoryProperty",y,a))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("isAtomic",y,a))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this instanceof Pr&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&L0(this,this,a)}}},alignmentFocusName:{get:function(){return this.$e},set:function(a){var y=this.$e;y!==a&&(this.$e=a,this.v(),this.g("alignmentFocusName",y,a))}}}),pn.Object.defineProperties(On,{Position:{get:function(){return Xl.I("Position")}},Horizontal:{get:function(){return Xl.I("Horizontal")}},Vertical:{get:function(){return Xl.I("Vertical")}},Spot:{get:function(){return Xl.I("Spot")}},Auto:{get:function(){return Xl.I("Auto")}},Table:{get:function(){return Xl.I("Table")}},Viewbox:{get:function(){return Xl.I("Viewbox")}},TableRow:{get:function(){return Xl.I("TableRow")}},TableColumn:{get:function(){return Xl.I("TableColumn")}},Link:{get:function(){return Xl.I("Link")}},Grid:{get:function(){return Xl.I("Grid")}},Graduated:{get:function(){return Xl.I("Graduated")}}}),On.prototype.rebuildItemElements=On.prototype.mv,On.prototype.findItemPanelForData=On.prototype.sx,On.prototype.updateTargetBindings=On.prototype.La,On.prototype.copyTemplate=On.prototype.Uy,On.prototype.graduatedValueForPoint=On.prototype.Gz,On.prototype.graduatedPointForValue=On.prototype.Fz,On.prototype.findColumnForLocalX=On.prototype.fz,On.prototype.findRowForLocalY=On.prototype.nz,On.prototype.addColumnDefinition=On.prototype.By,On.prototype.addRowDefinition=On.prototype.Hy,On.prototype.addRowColumnDefinition=On.prototype.Gy,On.prototype.removeColumnDefinition=On.prototype.jA,On.prototype.getColumnDefinition=On.prototype.Eb,On.prototype.removeRowDefinition=On.prototype.oA,On.prototype.getRowDefinition=On.prototype.Fb,On.prototype.removeAt=On.prototype.mb,On.prototype.remove=On.prototype.remove,On.prototype.insertAt=On.prototype.Gb,On.prototype.elt=On.prototype.M,On.prototype.add=On.prototype.add,On.prototype.findObject=On.prototype.fb,On.prototype.findInVisualTree=On.prototype.Nl,On.prototype.walkVisualTreeFrom=On.prototype.qm,On.prototype.findMainElement=On.prototype.Pb;var v1=!1,y1=null,Xl=new Wt;On.className="Panel",On.definePanelLayout=Eu,Eu("Position",new p0),Eu("Vertical",new v0),Eu("Auto",new S0),Eu("Link",new A0);function oh(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}oh.prototype.copy=function(){var a=new oh;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},oh.className="GradPanelSettings";function El(){this.Pc=[],this.Oc=[],this.j=this.ob=k0,this.hb=this.Hb=0,this.Qp=fr,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}El.prototype.copy=function(a){for(var y=new El,x=this.Pc,E=x.length,b=y.Pc,z=0;z<E;z++)if(x[z]!==void 0){var te=x[z].copy();te.wi(a),b[z]=te}for(x=this.Oc,E=x.length,b=y.Oc,z=0;z<E;z++)x[z]!==void 0&&(te=x[z].copy(),te.wi(a),b[z]=te);return y.ob=this.ob,y.j=this.j,y.Hb=this.Hb,y.hb=this.hb,y.Qp=this.Qp.J(),y.Ha=this.Ha,y.ia=this.ia,y.V=this.V,y.F=this.F,y.u=this.u,y.o=this.o,y.nb=this.nb,y},El.className="TablePanelSettings";function La(a){Kn(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Eo,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Av,this.hg=Cr,this.lo=this.dg=null,this.mo=NaN,this.Ma=this.tj=null,this.Pm=!1,a&&(Object.assign(this,a),a.column!==void 0?(this.isRow=!1,this.index=a.column):a.row!==void 0&&(this.isRow=!0,this.index=a.row))}La.prototype.copy=function(){var a=new La;return a.uq=this.uq,a.Za=this.Za,a.Hc=this.Hc,a.jj=this.jj,a.hj=this.hj,a.Jb=this.Jb,a.oa=this.oa,a.oc=this.oc,a.pa=this.pa,a.hg=this.hg,a.oo=this.oo,this.dg===null?a.dg=null:a.dg=this.dg.J(),a.lo=this.lo,a.mo=this.mo,a.tj=null,this.tj!==null&&(a.separatorDashArray=Ri(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function b0(a,y){y.isRow?a.height=y.height:a.width=y.width,a.minimum=y.minimum,a.maximum=y.maximum,a.alignment=y.alignment,a.stretch=y.stretch,a.sizing=y.sizing,a.dg=y.separatorPadding===null?null:y.separatorPadding.J(),a.separatorStroke=y.separatorStroke,a.separatorStrokeWidth=y.separatorStrokeWidth,a.tj=null,y.separatorDashArray&&(a.tj=Ri(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}be=La.prototype,be.qb=function(a){a.classType===La&&(this.sizing=a)},be.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Tr(this)},be.wi=function(a){this.Me=a},be.Io=function(a){var y=0,x=this.Me;if(this.index!==a&&(a=this.separatorStroke,a===null&&x!==null&&(a=this.isRow?x.defaultRowSeparatorStroke:x.defaultColumnSeparatorStroke),a!==null&&(y=this.separatorStrokeWidth,isNaN(y)&&(x!==null?y=this.isRow?x.defaultRowSeparatorStrokeWidth:x.defaultColumnSeparatorStrokeWidth:y=0))),a=this.dg,a===null)if(x!==null)a=x.defaultSeparatorPadding;else return y;return y+(this.isRow?a.top:a.left)},be.Wc=function(){var a=0,y=this.Me,x=0,E=this.isRow;if(y!==null&&y.type===On.Table)for(var b=E?y.rowDefs.length:y.colDefs.length,z=0;z<b;z++){var te=E?y.rowDefs[z]:y.colDefs[z];if(te!==void 0&&te.oa!==0){x=te.index;break}}if(this.index!==x&&(x=this.separatorStroke,x===null&&y!==null&&(x=E?y.defaultRowSeparatorStroke:y.defaultColumnSeparatorStroke),x!==null&&(a=this.separatorStrokeWidth,isNaN(a)&&(y!==null?a=E?y.defaultRowSeparatorStrokeWidth:y.defaultColumnSeparatorStrokeWidth:a=0))),E=this.dg,E===null)if(y!==null)E=y.defaultSeparatorPadding;else return a;return a+(this.isRow?E.top+E.bottom:E.left+E.right)},be.Ob=function(a,y,x){var E=this.Me;if(E!==null&&(E.cb(Ro,a,this,y,x,void 0,void 0),this.be!==null&&(y=E.diagram,y!==null&&!y.skipsModelSourceBindings&&(E=E.ih(),E!==null&&(y=E.data,y!==null)))))for(x=this.be.iterator;x.next();)x.value.sp(this,y,a,E)};function D0(a){if(a.sizing===Av){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}be.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new xa(a,y,x,E):b=a,b.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&p1(y)&<("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+b+" on "+a)),this.be===null&&(this.be=new An),this.be.add(b),this},pn.Object.defineProperties(La.prototype,{panel:{get:function(){return this.Me}},isRow:{get:function(){return this.uq},set:function(a){this.uq=a}},index:{get:function(){return this.Za},set:function(a){this.Za=a}},height:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&ai(a,">= 0",La,"height"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",y,a))}},width:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&ai(a,">= 0",La,"width"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",y,a))}},minimum:{get:function(){return this.jj},set:function(a){var y=this.jj;y!==a&&((0>a||!isFinite(a))&&ai(a,">= 0",La,"minimum"),this.jj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",y,a))}},maximum:{get:function(){return this.hj},set:function(a){var y=this.hj;y!==a&&(0>a&&ai(a,">= 0",La,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new ri(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&Oc(a,"RowColumnDefinition.separatorStroke"),a instanceof So&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;b<x;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||lt("separatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.tj=a,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",y,a)}}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&Oc(a,"RowColumnDefinition.background"),a instanceof So&&a.freeze(),this.Ma=a,this.panel!==null&&this.panel.N(),this.Ob("background",y,a))}},coversSeparators:{get:function(){return this.Pm},set:function(a){var y=this.Pm;y!==a&&(this.Pm=a,this.panel!==null&&this.panel.N(),this.Ob("coversSeparators",y,a))}},sizing:{get:function(){return this.oo},set:function(a){var y=this.oo;y!==a&&(this.oo=a,this.panel!==null&&this.panel.v(),this.Ob("sizing",y,a))}},actual:{get:function(){return this.oa},set:function(a){this.oa=isNaN(this.Hc)?Math.max(Math.min(this.hj,a),this.jj):Math.max(Math.min(this.hj,this.Hc),this.jj)}},measured:{get:function(){return this.oc},set:function(a){this.oc=a}},total:{get:function(){return this.oa+this.Wc()}},position:{get:function(){return this.pa},set:function(a){this.pa=a}}}),La.prototype.computeEffectiveSpacing=La.prototype.Wc,La.prototype.computeEffectiveSpacingTop=La.prototype.Io;var Av=new Kt(La,"Default",0),Jg=new Kt(La,"None",1),k0=new Kt(La,"ProportionalExtra",2);La.className="RowColumnDefinition",La.Default=Av,La.None=Jg,La.ProportionalExtra=k0;function Mr(a,y){Mt.call(this),this.Rd=this.ua=null,this.an="None",this.xc=this.Ui="black",this.ig=1,this.Na=this.Yg=null,this.Vn=this.Un=NaN,this.fa=null,typeof a=="string"?this.figure=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}Zt(Mr,Mt),Mr.prototype.cloneProtected=function(a){Mt.prototype.cloneProtected.call(this,a),a.ua=this.ua,a.Rd=this.Rd,a.an=this.an,a.Ui=this.Ui,a.xc=this.xc,a.ig=this.ig,this.Yg!==null&&(a.Yg=Ri(this.Yg)),this.Na!==null&&(a.Na=this.Na.nc?this.Na:this.Na.copy()),a.Un=this.Un,a.Vn=this.Vn,this.fa!==null&&(a.fa=this.fa.copy())};function Jd(a){a.Na===null?a.Na=new Lv:a.Na.nc&&(a.Na=a.Na.copy())}be=Mr.prototype,be.th=function(){Mt.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},be.qb=function(a){a===xn||a===Bi||a===Vr||a===Cr?this.geometryStretch=a:Mt.prototype.qb.call(this,a)},be.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Tr(this)};function Nf(a,y,x,E){var b=x.length;if(!(4>b)){var z=E.measuredBounds,te=Math.max(1,z.width);z=z.height;for(var re=x[0],oe=x[1],le,he,ge,Se,we,Ae,Ne=0,$e=Bn(),Ke=2;Ke<b;Ke+=2)le=x[Ke],he=x[Ke+1],ge=le-re,re=he-oe,ge===0&&(ge=.001),Se=re/ge,we=Math.atan2(re,ge),Ae=Math.sqrt(ge*ge+re*re),$e.push([ge,we,Se,Ae]),Ne+=Ae,re=le,oe=he;re=x[0],oe=x[1],ge=E.measuredBounds.width,E instanceof Mr&&(ge-=E.strokeWidth),1>ge&&(ge=1),b=x=ge,le=te/2,he=le!==0,Ke=0,Ae=$e[Ke],ge=Ae[0],we=Ae[1],Se=Ae[2],Ae=Ae[3];for(var at=0;.1<=Ne;){if(at===0&&(he?(b=x,b-=le,Ne-=le,he=!1):b=x,b===0&&(b=1)),b>Ne){Ot($e);return}b>Ae?(at=b-Ae,b=Ae):at=0;var dt=Math.sqrt(b*b/(1+Se*Se));if(0>ge&&(dt=-dt),re+=dt,oe+=Se*dt,a.translate(re,oe),a.rotate(we),a.translate(-(te/2),-(z/2)),at===0&&E.hh(a,y),a.translate(te/2,z/2),a.rotate(-we),a.translate(-re,-oe),Ne-=b,Ae-=b,at!==0){if(Ke++,Ke===$e.length){Ot($e);return}Ae=$e[Ke],ge=Ae[0],we=Ae[1],Se=Ae[2],Ae=Ae[3],b=at}}Ot($e)}}be.hh=function(a,y){var x=this.xc,E=this.Ui;if(x!==null||E!==null){var b=this.ua;if(b!==null){a.yc();var z=this.actualBounds,te=this.naturalBounds;E!==null&&ha(this,a,E,!0,!1,te,z);var re=this.part,oe=this.ig;if(x===null||oe!==0||re===null||!this.isPanelMain&&re.Pb()!==this||(oe=re.type===On.Link&&re instanceof eo&&re.category==="Selection"&&re.adornedObject instanceof Mr&&re.adornedPart.Pb()===re.adornedObject?re.adornedObject.strokeWidth:0),oe===0&&(x=null),x!==null&&oe!==0&&(ha(this,a,x,!1,!1,te,z),a.lineWidth=oe,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,re&&y.Gf("drawShadows")&&(z=re.isShadowed),a.Il===!1&&(z=!1),re=!0,x===null||E!==null&&E!=="transparent"||(re=!1),te=!1,oe=this.strokeDashArray,oe!==null&&(te=!0,a.js(oe,this.strokeDashOffset)),b.type===Cn.j)a.beginPath(),a.moveTo(b.startX,b.startY),a.lineTo(b.endX,b.endY),x!==null&&a.jk(),a.Se();else if(b.type===Cn.u){var le=b.startX;oe=b.startY;var he=b.endX,ge=b.endY;b=Math.min(le,he);var Se=Math.min(oe,ge);le=Math.abs(he-le),oe=Math.abs(ge-oe),a.beginPath(),a.rect(b,Se,le,oe),E!==null&&a.ng(E),x!==null&&(re&&z&&Iu(a),a.jk(),re&&z&&th(a)),a.Se()}else if(b.type===Cn.F)le=b.startX,oe=b.startY,he=b.endX,ge=b.endY,b=Math.abs(he-le)/2,Se=Math.abs(ge-oe)/2,le=Math.min(le,he)+b,oe=Math.min(oe,ge)+Se,a.beginPath(),a.moveTo(le,oe-Se),a.bezierCurveTo(le+St.wg*b,oe-Se,le+b,oe-St.wg*Se,le+b,oe),a.bezierCurveTo(le+b,oe+St.wg*Se,le+St.wg*b,oe+Se,le,oe+Se),a.bezierCurveTo(le-St.wg*b,oe+Se,le-b,oe+St.wg*Se,le-b,oe),a.bezierCurveTo(le-b,oe-St.wg*Se,le-St.wg*b,oe-Se,le,oe-Se),a.closePath(),E!==null&&a.ng(E),x!==null&&(re&&z&&Iu(a),a.jk(),re&&z&&th(a)),a.Se();else if(b.type===Cn.o)for(b=b.figures,oe=b.length,Se=0;Se<oe;Se++){le=b.s[Se],a.beginPath(),a.moveTo(le.startX,le.startY),he=le.segments.s,ge=he.length;for(var we=null,Ae=0;Ae<ge;Ae++){var Ne=he[Ae];switch(Ne.type){case sa:a.moveTo(Ne.endX,Ne.endY);break;case vo:a.lineTo(Ne.endX,Ne.endY);break;case ga:a.bezierCurveTo(Ne.point1X,Ne.point1Y,Ne.point2X,Ne.point2Y,Ne.endX,Ne.endY);break;case ls:a.quadraticCurveTo(Ne.point1X,Ne.point1Y,Ne.endX,Ne.endY);break;case oa:if(Ne.radiusX===Ne.radiusY){var $e=Math.PI/180;a.arc(Ne.point1X,Ne.point1Y,Ne.radiusX,Ne.startAngle*$e,(Ne.startAngle+Ne.sweepAngle)*$e,0>Ne.sweepAngle,we!==null?we.endX:le.startX,we!==null?we.endY:le.startY)}else if(we=Va(Ne,le),$e=we.length,$e===0)a.lineTo(Ne.centerX,Ne.centerY);else for(var Ke=0;Ke<$e;Ke++){var at=we[Ke];Ke===0&&a.lineTo(at[0],at[1]),a.bezierCurveTo(at[2],at[3],at[4],at[5],at[6],at[7])}break;case us:if(Ke=$e=0,we!==null&&we.type===oa){if(we=Va(we,le),at=we.length,at===0){a.lineTo(Ne.endX,Ne.endY);break}we=we[at-1]||null,we!==null&&($e=we[6],Ke=we[7])}else $e=we!==null?we.endX:le.startX,Ke=we!==null?we.endY:le.startY;if(we=$a(Ne,le,$e,Ke),$e=we.length,$e===0){a.lineTo(Ne.endX,Ne.endY);break}for(Ke=0;Ke<$e;Ke++)at=we[Ke],a.bezierCurveTo(at[2],at[3],at[4],at[5],at[6],at[7]);break;default:lt("Segment not of valid type: "+Ne.type)}Ne.isClosed&&a.closePath(),we=Ne}he=le.isFilled,z?le.isShadowed?(he===!0&&E!=="transparent"&&E!==null&&a.ng(E,le.isEvenOdd),x!==null&&(he&&re&&Iu(a),a.jk(),he&&re&&th(a))):(Iu(a),he&&E!=="transparent"&&E!==null&&a.ng(E,le.isEvenOdd),x!==null&&a.jk(),th(a)):(he&&E!==null&&a.ng(E,le.isEvenOdd),x!==null&&a.jk()),a.Se(Se)}if(te&&a.fs(),this.pathPattern!==null){if(x=this.pathPattern,x.measure(1/0,1/0),E=x.measuredBounds,x.arrange(0,0,E.width,E.height),z=this.geometry,a.save(),a.beginPath(),E=Bn(),z.type===Cn.j)E.push(z.startX),E.push(z.startY),E.push(z.endX),E.push(z.endY),Nf(a,y,E,x);else if(z.type===Cn.o)for(z=z.figures.iterator;z.next();){for(re=z.value,E.length=0,E.push(re.startX),E.push(re.startY),te=re.startX,b=re.startY,oe=te,Se=b,le=re.segments.s,he=le.length,ge=0;ge<he;ge++){switch(Ae=le[ge],Ae.type){case sa:Nf(a,y,E,x),E.length=0,E.push(Ae.endX),E.push(Ae.endY),te=Ae.endX,b=Ae.endY,oe=te,Se=b;break;case vo:E.push(Ae.endX),E.push(Ae.endY),te=Ae.endX,b=Ae.endY;break;case ga:St.Qe(te,b,Ae.point1X,Ae.point1Y,Ae.point2X,Ae.point2Y,Ae.endX,Ae.endY,.5,E),te=Ae.endX,b=Ae.endY;break;case ls:St.ep(te,b,Ae.point1X,Ae.point1Y,Ae.endX,Ae.endY,.5,E),te=Ae.endX,b=Ae.endY;break;case oa:if(Ne=Va(Ae,re),we=Ne.length,we===0){E.push(Ae.centerX),E.push(Ae.centerY),te=Ae.centerX,b=Ae.centerY;break}for($e=0;$e<we;$e++)Ke=Ne[$e],St.Qe(te,b,Ke[2],Ke[3],Ke[4],Ke[5],Ke[6],Ke[7],.5,E),te=Ke[6],b=Ke[7];break;case us:if(Ne=$a(Ae,re,te,b),we=Ne.length,we===0){E.push(Ae.endX),E.push(Ae.endY),te=Ae.endX,b=Ae.endY;break}for($e=0;$e<we;$e++)Ke=Ne[$e],St.Qe(te,b,Ke[2],Ke[3],Ke[4],Ke[5],Ke[6],Ke[7],.5,E),te=Ke[6],b=Ke[7];break;default:lt("Segment not of valid type: "+Ae.type)}Ae.isClosed&&(E.push(oe),E.push(Se),Nf(a,y,E,x))}Nf(a,y,E,x)}else if(z.type===Cn.u)E.push(z.startX),E.push(z.startY),E.push(z.endX),E.push(z.startY),E.push(z.endX),E.push(z.endY),E.push(z.startX),E.push(z.endY),E.push(z.startX),E.push(z.startY),Nf(a,y,E,x);else if(z.type===Cn.F){if(b=new aa,b.startX=z.endX,b.startY=(z.startY+z.endY)/2,te=new Wr(oa),te.startAngle=0,te.sweepAngle=360,te.centerX=(z.startX+z.endX)/2,te.centerY=(z.startY+z.endY)/2,te.radiusX=Math.abs(z.startX-z.endX)/2,te.radiusY=Math.abs(z.startY-z.endY)/2,b.add(te),z=Va(te,b),re=z.length,re===0)E.push(te.centerX),E.push(te.centerY);else for(te=b.startX,b=b.startY,oe=0;oe<re;oe++)Se=z[oe],St.Qe(te,b,Se[2],Se[3],Se[4],Se[5],Se[6],Se[7],.5,E),te=Se[6],b=Se[7];Nf(a,y,E,x)}Ot(E),a.restore(),a.Vc(!1)}}}},be.kk=function(a,y,x){return!Mt.prototype.kk.call(this,a,y,x)||this.xc===null&&this.Ui===null||this.ua===null||this.pathPattern!==null||this.geometry.figures.length!==this.svg.getElementsByTagName("path").length?!1:(a.Hl=this.svg,this.hh(a,y),a.Hl=null,!0)},be.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:Mt.prototype.nk.call(this,a)},be.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("path");for(var x=0;x<a.length;x++)a[x].setAttributeNS(null,"filter",y)}},be.ga=function(a,y){if(y===void 0&&(y=new je),a instanceof bn){a.Mc()&<("getDocumentPoint Spot must be a real, specific Spot, not: "+a.toString());var x=this.naturalBounds,E=this.strokeWidth;y.h(a.x*(x.width+E)-E/2+x.x+a.offsetX,a.y*(x.height+E)-E/2+x.y+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},be.mi=function(a){a===void 0&&(a=new pt);var y=this.naturalBounds,x=this.oe;y=pt.allocAt(y.x,y.y,y.width,y.height);var E=this.strokeWidth;return y.Bc(E/2,E/2),E=je.allocAt(y.x,y.y).transform(x),a.h(E.x,E.y,0,0),E.h(y.right,y.y).transform(x),yi(a,E.x,E.y,0,0),E.h(y.right,y.bottom).transform(x),yi(a,E.x,E.y,0,0),E.h(y.x,y.bottom).transform(x),yi(a,E.x,E.y,0,0),pt.free(y),je.free(E),a},be.gh=function(a,y){var x=this.geometry;if(x===null||this.fill===null&&this.stroke===null)return!1;var E=x.bounds,b=this.strokeWidth/2;x.type!==Cn.j||y||(b+=2);var z=pt.alloc();if(z.assign(E),z.Bc(b+2,b+2),!z.ca(a))return pt.free(z),!1;if(E=b+1e-4,x.type===Cn.j)return this.stroke===null||(E=(x.endX-x.startX)*(a.x-x.startX)+(x.endY-x.startY)*(a.y-x.startY),0>(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>E)?!1:(pt.free(z),St.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===Cn.u){y=x.startX;var te=x.startY,re=x.endX;if(x=x.endY,z.x=Math.min(y,re),z.y=Math.min(te,x),z.width=Math.abs(re-y),z.height=Math.abs(x-te),this.fill===null){if(z.Bc(-E,-E),z.ca(a))return pt.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),pt.free(z),a}if(x.type===Cn.F){te=x.startX,b=x.startY,re=x.endX;var oe=x.endY;if(x=Math.min(te,re),y=Math.min(b,oe),te=Math.abs(re-te)/2,b=Math.abs(oe-b)/2,x=a.x-(x+te),y=a.y-(y+b),this.fill===null){if(te-=E,b-=E,0>=te||0>=b||1>=x*x/(te*te)+y*y/(b*b))return pt.free(z),!1;te+=E,b+=E}return this.stroke!==null&&(te+=E,b+=E),pt.free(z),0>=te||0>=b?!1:1>=x*x/(te*te)+y*y/(b*b)}if(x.type===Cn.o)return pt.free(z),this.fill===null?Ga(x,a.x,a.y,b):da(x,a,b,1<this.strokeWidth,y);lt("Unknown Geometry type: "+x.type)},be.Wl=function(a,y,x,E){var b=this.desiredSize,z=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var te=this.geometry.bounds;else{var re=this.figure,oe=Mv[re];if(oe===void 0){var le=St.Ze[re];typeof le=="string"&&(le=St.Ze[le]),typeof le=="function"?(oe=le(null,100,100),Mv[re]=oe):lt("Unsupported Figure: "+re)}te=oe.bounds}re=te.width,oe=te.height,le=te.width;var he=te.height;switch(Os(this,!0)){case xn:E=x=0;break;case Nn:le=Math.max(a-z,0),he=Math.max(y-z,0);break;case Zi:le=Math.max(a-z,0),E=0;break;case er:x=0,he=Math.max(y-z,0)}isFinite(b.width)&&(le=b.width),isFinite(b.height)&&(he=b.height);var ge=this.maxSize,Se=this.minSize;switch(x=Math.max(x-z,Se.width),E=Math.max(E-z,Se.height),le=Math.min(ge.width,le),he=Math.min(ge.height,he),le=isFinite(le)?Math.max(x,le):Math.max(re,x),he=isFinite(he)?Math.max(E,he):Math.max(oe,E),x=Fv(this),x){case xn:break;case Nn:re=le,oe=he;break;case Bi:x=Math.min(le/re,he/oe),isFinite(x)||(x=1),re*=x,oe*=x;break;default:lt(x+" is not a valid geometryStretch.")}this.Rd!==null?(re===0&&(re=.001),oe===0&&(oe=.001),x=this.Rd!==null?this.Rd:this.ua,te=x.bounds,E=re/te.width,te=oe/te.height,isFinite(E)||(E=1),isFinite(te)||(te=1),this.ua=E===1&&te===1?x:x.copy().scale(E,te)):this.ua!==null&&St.$(this.ua.Sk,a-z)&&St.$(this.ua.Rk,y-z)||(this.ua=Mr.makeGeometry(this,re,oe)),te=this.ua.bounds,a===1/0||y===1/0?this.Ge(te.x-z/2,te.y-z/2,a===0&&re===0?0:te.width+z,y===0&&oe===0?0:te.height+z):this.Ge(-(z/2),-(z/2),le+z,he+z),b.w()?(le=b.width,he=b.height,le=Math.min(ge.width,le),he=Math.min(ge.height,he),le=Math.max(Se.width,le),he=Math.max(Se.height,he),this.dc.h(0,0,le,he)):this.dc.assign(te)};function Fv(a){var y=a.geometryStretch;return a.Rd!==null?y===Cr?Nn:y:y===Cr?Mv[a.figure].defaultStretch:y}be.eh=function(a,y,x,E){ms(this,a,y,x,E)},be.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},be.Sj=function(a,y,x,E,b){var z=this.transform,te=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*te,oe=-z.m12*te,le=-z.m21*te,he=z.m11*te,ge=te*(z.m21*z.dy-z.m22*z.dx),Se=te*(z.m12*z.dx-z.m11*z.dy);z=a*re+y*le+ge,te=a*oe+y*he+Se,re=x*re+E*le+ge,oe=x*oe+E*he+Se,ge=this.ig/2,le=this.ua,le===null&&(this.measure(1/0,1/0),le=this.ua);var we=le.bounds;if(he=!1,le.type===Cn.j)if(1.5>=this.strokeWidth)he=St.Ve(le.startX,le.startY,le.endX,le.endY,z,te,re,oe,b);else{if(le.startX===le.endX?(E=ge,he=0):(y=(le.endY-le.startY)/(le.endX-le.startX),he=ge/Math.sqrt(1+y*y),E=he*y),y=Bn(),a=new je,St.Ve(le.startX+E,le.startY+he,le.endX+E,le.endY+he,z,te,re,oe,a)&&y.push(a),a=new je,St.Ve(le.startX-E,le.startY-he,le.endX-E,le.endY-he,z,te,re,oe,a)&&y.push(a),a=new je,St.Ve(le.startX+E,le.startY+he,le.startX-E,le.startY-he,z,te,re,oe,a)&&y.push(a),a=new je,St.Ve(le.endX+E,le.endY+he,le.endX-E,le.endY-he,z,te,re,oe,a)&&y.push(a),re=y.length,re===0)return Ot(y),!1;for(he=!0,oe=1/0,E=0;E<re;E++)a=y[E],x=(a.x-z)*(a.x-z)+(a.y-te)*(a.y-te),x<oe&&(oe=x,b.x=a.x,b.y=a.y);Ot(y)}else if(le.type===Cn.u)he=St.Ff(we.x-ge,we.y-ge,we.x+we.width+ge,we.y+we.height+ge,z,te,re,oe,b);else if(le.type===Cn.F){y=pt.allocAt(we.x,we.y,we.width,we.height).Bc(ge,ge);e:if(y.width===0)he=St.Ve(y.x,y.y,y.x,y.y+y.height,z,te,re,oe,b);else if(y.height===0)he=St.Ve(y.x,y.y,y.x+y.width,y.y,z,te,re,oe,b);else{if(a=y.width/2,le=y.height/2,E=y.x+a,he=y.y+le,x=9999,z!==re&&(x=(te-oe)/(z-re)),9999>Math.abs(x)){if(oe=te-he-x*(z-E),0>a*a*x*x+le*le-oe*oe){b.x=NaN,b.y=NaN,he=!1;break e}ge=Math.sqrt(a*a*x*x+le*le-oe*oe),re=(-(a*a*x*oe)+a*le*ge)/(le*le+a*a*x*x)+E,a=(-(a*a*x*oe)-a*le*ge)/(le*le+a*a*x*x)+E,le=x*(re-E)+oe+he,oe=x*(a-E)+oe+he,Math.abs((z-re)*(z-re))+Math.abs((te-le)*(te-le))<Math.abs((z-a)*(z-a))+Math.abs((te-oe)*(te-oe))?(b.x=re,b.y=le):(b.x=a,b.y=oe)}else{if(re=le*le,oe=z-E,re-=re/(a*a)*oe*oe,0>re){b.x=NaN,b.y=NaN,he=!1;break e}oe=Math.sqrt(re),re=he+oe,oe=he-oe,Math.abs(re-te)<Math.abs(oe-te)?(b.x=z,b.y=re):(b.x=z,b.y=oe)}he=!0}pt.free(y)}else if(le.type===Cn.o){Se=je.alloc();var Ae=re-z,Ne=oe-te,$e=Ae*Ae+Ne*Ne,Ke=z,at=te;if(0<$e&&we.contains(Ke,at)&&(Se.x=Ke,Se.y=at,this.ca(Se)))for(Ae!==0&&.5>Math.abs(Ae)?(Ne*=.5/Ae,Ae=.5):Ne!==0&&.5>Math.abs(Ne)&&(Ae*=.5/Ne,Ne=.5),Ke-=Ae,at-=Ne;we.contains(Ke,at);)Ke-=Ae,at-=Ne;for(b.x=re,b.y=oe,Ne=0;Ne<le.figures.count;Ne++){var dt=le.figures.s[Ne],ft=dt.isFilled?Ke:z,wt=dt.isFilled?at:te,Gt=dt.segments;we=dt.startX,Ae=dt.startY;for(var oi=we,bi=Ae,Si=0;Si<Gt.count;Si++){var Zn=Gt.s[Si],yn=Zn.type,Sr=Zn.endX,sr=Zn.endY,ro=!1;switch(yn){case sa:oi=Sr,bi=sr;break;case vo:ro=N0(we,Ae,Sr,sr,ft,wt,re,oe,Se);break;case ga:ro=St.Eo(we,Ae,Zn.point1X,Zn.point1Y,Zn.point2X,Zn.point2Y,Sr,sr,ft,wt,re,oe,.6,Se);break;case ls:ro=St.Eo(we,Ae,we+2/3*(Zn.point1X-we),Ae+2/3*(Zn.point1Y-Ae),Sr+2/3*(Zn.point1X-Sr),sr+2/3*(Zn.point1Y-sr),Sr,sr,ft,wt,re,oe,.6,Se);break;case oa:case us:yn=Zn.type===oa?Va(Zn,dt):$a(Zn,dt,we,Ae);var zo=yn.length;if(zo===0){ro=N0(we,Ae,Zn.type===oa?Zn.centerX:Zn.endX,Zn.type===oa?Zn.centerY:Zn.endY,ft,wt,re,oe,Se);break}for(sr=null,Sr=0;Sr<zo;Sr++){if(sr=yn[Sr],Sr===0&&N0(we,Ae,sr[0],sr[1],ft,wt,re,oe,Se)){var Ia=B0(ft,wt,Se,$e,b);Ia<$e&&($e=Ia,he=!0)}St.Eo(sr[0],sr[1],sr[2],sr[3],sr[4],sr[5],sr[6],sr[7],ft,wt,re,oe,.6,Se)&&(Ia=B0(ft,wt,Se,$e,b),Ia<$e&&($e=Ia,he=!0))}Sr=sr[6],sr=sr[7];break;default:lt("Unknown Segment type: "+yn)}we=Sr,Ae=sr,ro&&(ro=B0(ft,wt,Se,$e,b),ro<$e&&($e=ro,he=!0)),Zn.isClosed&&(Sr=oi,sr=bi,N0(we,Ae,Sr,sr,ft,wt,re,oe,Se)&&(Zn=B0(ft,wt,Se,$e,b),Zn<$e&&($e=Zn,he=!0)))}}z=x-a,te=E-y,re=Math.sqrt(z*z+te*te),re!==0&&(z/=re,te/=re),b.x-=z*ge,b.y-=te*ge,je.free(Se)}else lt("Unknown Geometry type: "+le.type);return he?(this.transform.Ga(b),!0):!1};function B0(a,y,x,E,b){return a=x.x-a,y=x.y-y,y=a*a+y*y,y<E?(b.x=x.x,b.y=x.y,y):E}function N0(a,y,x,E,b,z,te,re,oe){if(St.$(a,x)&&St.$(y,E)||St.$(b,te)&&St.$(z,re))return!1;var le=!1,he=(b-te)*(y-E)-(z-re)*(a-x);return he===0?!1:(oe.x=((b*re-z*te)*(a-x)-(b-te)*(a*E-y*x))/he,oe.y=((b*re-z*te)*(y-E)-(z-re)*(a*E-y*x))/he,(a>x?a-x:x-a)<(y>E?y-E:E-y)?(a=y<E?y:E,y=y<E?E:y,(oe.y>a||St.$(oe.y,a))&&(oe.y<y||St.$(oe.y,y))&&(le=!0)):(y=a<x?a:x,a=a<x?x:a,(oe.x>y||St.$(oe.x,y))&&(oe.x<a||St.$(oe.x,a))&&(le=!0)),le)}be.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.ua;x===null&&(this.measure(1/0,1/0),x=this.ua),x=x.bounds;var E=this.strokeWidth/2,b=!1,z=je.alloc();return z.h(x.x-E,x.y-E),a.ca(y.Ga(z))&&(z.h(x.x-E,x.bottom+E),a.ca(y.Ga(z))&&(z.h(x.right+E,x.bottom+E),a.ca(y.Ga(z))&&(z.h(x.right+E,x.y-E),a.ca(y.Ga(z))&&(b=!0)))),je.free(z),b},be.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=ui.alloc();x.set(y),x.Vj();var E=a.left,b=a.right,z=a.top;a=a.bottom;var te=je.alloc();if(te.h(E,z),x.Ga(te),this.gh(te,!0)||(te.h(b,z),x.Ga(te),this.gh(te,!0))||(te.h(E,a),x.Ga(te),this.gh(te,!0))||(te.h(b,a),x.Ga(te),this.gh(te,!0)))return je.free(te),!0;var re=je.alloc(),oe=je.alloc();return x.set(y),x.bv(this.transform),x.Vj(),re.x=b,re.y=z,re.transform(x),te.x=E,te.y=z,te.transform(x),y=!1,qd(this,te,re,oe)?y=!0:(te.x=b,te.y=a,te.transform(x),qd(this,te,re,oe)?y=!0:(re.x=E,re.y=a,re.transform(x),qd(this,te,re,oe)?y=!0:(te.x=E,te.y=z,te.transform(x),qd(this,te,re,oe)&&(y=!0)))),je.free(te),ui.free(x),je.free(re),je.free(oe),y};function qd(a,y,x,E){if(!a.rs(y,x,E))return!1;a=y.x,y=y.y;var b=x.x,z=x.y;return x=E.x,E=E.y,a===b?(y<z?(a=y,y=z):a=z,E>=a&&E<=y):(a<b?(E=a,a=b):E=b,x>=E&&x<=a)}be.tx=function(a,y,x){function E($e,Ke){for(var at=$e.length,dt=0;dt<at;dt+=2)if(Ke.zd($e[dt],$e[dt+1])>b)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var b=a.Bf(y),z=b;if(1.5<this.strokeWidth&&(b=this.strokeWidth/2+Math.sqrt(b),b*=b),y=this.ua,y===null&&(this.measure(1/0,1/0),y=this.ua,y===null))return!1;if(!x){var te=y.bounds,re=te.x,oe=te.y,le=te.x+te.width;if(te=te.y+te.height,Mn(a.x,a.y,re,oe)<=b&&Mn(a.x,a.y,le,oe)<=b&&Mn(a.x,a.y,re,te)<=b&&Mn(a.x,a.y,le,te)<=b)return!0}if(re=y.startX,oe=y.startY,le=y.endX,te=y.endY,y.type===Cn.j){if(x=(re-le)*(a.x-le)+(oe-te)*(a.y-te),dn(a.x,a.y,re,oe,le,te)<=(0<=(le-re)*(a.x-re)+(te-oe)*(a.y-oe)&&0<=x?b:z))return!0}else{if(y.type===Cn.u)return y=!1,x&&(y=dn(a.x,a.y,re,oe,re,te)<=b||dn(a.x,a.y,re,oe,le,oe)<=b||dn(a.x,a.y,le,oe,le,te)<=b||dn(a.x,a.y,re,te,le,te)<=b),y;if(y.type===Cn.F){y=a.x-(re+le)/2,z=a.y-(oe+te)/2;var he=Math.abs(le-re)/2,ge=Math.abs(te-oe)/2;if(he===0||ge===0)return dn(a.x,a.y,re,oe,le,te)<=b;if(x){if(a=St.$y(he,ge,y,z),a*a<=b)return!0}else return!(Mn(y,z,-he,0)>=b||Mn(y,z,0,-ge)>=b||Mn(y,z,0,ge)>=b||Mn(y,z,he,0)>=b)}else if(y.type===Cn.o){if(le=y.bounds,z=le.x,re=le.y,oe=le.x+le.width,le=le.y+le.height,a.x>oe&&a.x<z&&a.y>le&&a.y<re&&dn(a.x,a.y,z,re,z,le)>b&&dn(a.x,a.y,z,re,oe,re)>b&&dn(a.x,a.y,oe,le,z,le)>b&&dn(a.x,a.y,oe,le,oe,re)>b)return!1;if(z=Math.sqrt(b),x){if(this.fill===null?Ga(y,a.x,a.y,z):da(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(z=x.s[y],te=z.startX,he=z.startY,a.zd(te,he)>b)return!1;for(re=z.segments.s,oe=re.length,le=0;le<oe;le++)switch(ge=re[le],ge.type){case sa:case vo:if(te=ge.endX,he=ge.endY,a.zd(te,he)>b)return!1;break;case ga:var Se=Bn();if(St.Qe(te,he,ge.point1X,ge.point1Y,ge.point2X,ge.point2Y,ge.endX,ge.endY,.8,Se),te=E(Se,a),Ot(Se),te||(te=ge.endX,he=ge.endY,a.zd(te,he)>b))return!1;break;case ls:if(Se=Bn(),St.ep(te,he,ge.point1X,ge.point1Y,ge.endX,ge.endY,.8,Se),te=E(Se,a),Ot(Se),te||(te=ge.endX,he=ge.endY,a.zd(te,he)>b))return!1;break;case oa:case us:Se=ge.type===oa?Va(ge,z):$a(ge,z,te,he);var we=Se.length;if(we===0){if(te=ge.type===oa?ge.centerX:ge.endX,he=ge.type===oa?ge.centerY:ge.endY,a.zd(te,he)>b)return!1;break}ge=null;for(var Ae=Bn(),Ne=0;Ne<we;Ne++)if(ge=Se[Ne],Ae.length=0,St.Qe(ge[0],ge[1],ge[2],ge[3],ge[4],ge[5],ge[6],ge[7],.8,Ae),E(Ae,a))return Ot(Ae),!1;Ot(Ae),ge!==null&&(te=ge[6],he=ge[7]);break;default:lt("Unknown Segment type: "+ge.type)}}return!0}}}return!1},be.qc=function(){this.ua=null},be.kq=function(){return this.ig};function S1(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=ap,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=uo):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new bn(1-uo.x,uo.y)))}Mr.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var E=ju[a.toArrow];else a.fromArrow!=="None"?E=ju[a.fromArrow]:(E=St.Ze[a.figure],typeof E=="string"&&(E=St.Ze[E]),E===void 0&<("Unknown Shape.figure: "+a.figure),E=E(a,y,x),E.Sk=y,E.Rk=x);if(E===null){var b=St.Ze.Rectangle;typeof b=="function"&&(E=b(a,y,x))}return E};function x1(a){var y=ju[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=ju[x],y===void 0){var E=null,b;for(b in St.um)if(b.toLowerCase()===x){E=b;break}if(E!==null)return a=Cn.parse(St.um[E],!1),ju[E]=a,x!==E&&(ju[x]=E),E}}return typeof y=="string"?y:y instanceof Cn?a:null}pn.Object.defineProperties(Mr.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(a){var y=this.ua,x=this.Rd;if(y!==a){a!==null?this.Rd=this.ua=a.freeze():this.Rd=this.ua=null;var E=this.part;E!==null&&(E.ag=NaN),this.v(),this.g("geometry",y||x,a),ts(this)&&(a=this.part,a!==null&&Qo(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=Cn.parse(a);var y=a.normalize();this.geometry=a,this.position=a=je.allocAt(-y.x,-y.y),je.free(a)}},isGeometryPositioned:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.v(),this.g("isGeometryPositioned",y,a))}},fill:{get:function(){return this.Ui},set:function(a){var y=this.Ui;y!==a&&(a!==null&&Oc(a,"Shape.fill"),a instanceof So&&a.freeze(),this.Ui=a,this.N(),this.g("fill",y,a))}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&Oc(a,"Shape.stroke"),a instanceof So&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},strokeWidth:{get:function(){return this.ig},set:function(a){var y=this.ig;if(y!==a)if(0<=a){this.ig=a,this.v();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeWidth",y,a)}else ai(a,"value >= 0",Mr,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(a){var y=this.strokeCap;y!==a&&(typeof a!="string"||a!=="butt"&&a!=="round"&&a!=="square"?ai(a,'"butt", "round", or "square"',Mr,"strokeCap"):(Jd(this),this.Na.Hr=a,this.N(),this.g("strokeCap",y,a)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(a){var y=this.strokeJoin;y!==a&&(typeof a!="string"||a!=="miter"&&a!=="bevel"&&a!=="round"?ai(a,'"miter", "bevel", or "round"',Mr,"strokeJoin"):(Jd(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){Jd(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;b<x;b++){var z=a[b];0<=z&&isFinite(z)||lt("strokeDashArray:value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.Yg=a,this.N(),this.g("strokeDashArray",y,a)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(a){var y=this.strokeDashOffset;y!==a&&0<=a&&(Jd(this),this.Na.uj=a,this.N(),this.g("strokeDashOffset",y,a))}},figure:{get:function(){return this.an},set:function(a){var y=this.an;if(y!==a){var x=St.Ze[a];typeof x=="function"?x=a:(x=St.Ze[a.toLowerCase()])||lt("Unknown Shape.figure: "+a),y!==x&&(a=this.part,a!==null&&(a.ag=NaN),this.an=x,this.Rd=null,this.qc(),this.v(),this.g("figure",y,x))}}},toArrow:{get:function(){return this.Ua!==null?this.Ua.V:"None"},set:function(a){var y=this.toArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=x1(a);x===null?lt("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new sd),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),S1(this),this.g("toArrow",y,x))}}},fromArrow:{get:function(){return this.Ua!==null?this.Ua.j:"None"},set:function(a){var y=this.fromArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=x1(a);x===null?lt("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new sd),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),S1(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:Eo},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Jd(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:Eo},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Jd(this),this.Na.gg=a,this.v(),this.g("spot2",y,a))}},parameter1:{get:function(){return this.Un},set:function(a){var y=this.Un;y!==a&&(this.Un=a,this.qc(),this.v(),this.g("parameter1",y,a))}},parameter2:{get:function(){return this.Vn},set:function(a){var y=this.Vn;y!==a&&(this.Vn=a,this.qc(),this.v(),this.g("parameter2",y,a))}},naturalBounds:{get:function(){return this.dc}},pathPattern:{get:function(){return this.Na!==null?this.Na.br:null},set:function(a){var y=this.pathPattern;y!==a&&(Jd(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:Cr},set:function(a){var y=this.geometryStretch;y!==a&&(Jd(this),this.Na.jq=a,this.v(),this.g("geometryStretch",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new zu),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&Pu(x),this.v(),x=this.panel,x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new zu),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new zu),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new zu),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),Mr.prototype.intersectsRect=Mr.prototype.Yc,Mr.prototype.containedInRect=Mr.prototype.fh,Mr.prototype.getNearestIntersectionPoint=Mr.prototype.rs,Mr.prototype.getDocumentBounds=Mr.prototype.mi,Mr.prototype.getDocumentPoint=Mr.prototype.ga;var ju=new _i,Mv=new _i;Mr.className="Shape",Mr.getFigureGenerators=function(){var a=new Wt,y;for(y in St.Ze)y!==y.toLowerCase()&&a.add(y,St.Ze[y]);return a.freeze(),a},Mr.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),E=St.Ze;E[a]=y,E[x]=a},Mr.getArrowheadGeometries=function(){var a=new Wt;for(E in St.um)if(ju[E]===void 0){var y=Cn.parse(St.um[E],!1);ju[E]=y,y=E.toLowerCase(),y!==E&&(ju[y]=E)}for(var x in ju)if(x!==x.toLowerCase()){var E=ju[x];E instanceof Cn&&a.add(x,E)}return a.freeze(),a},Mr.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=Cn.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||lt("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var E=ju;E[a]=x,E[y]=a};function Lv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=Cr,this.gg=this.fg=Eo}Lv.prototype.copy=function(){var a=new Lv;return a.Hr=this.Hr,a.Ir=this.Ir,a.Jr=this.Jr,a.uj=this.uj,a.br=this.br,a.jq=this.jq,a.fg=this.fg.J(),a.gg=this.gg.J(),a};function Wo(a,y){return Mt.call(this),j0||(Is=la?new Il(null).context:null,j0=!0),this.l|=2097152,this.ec="",this.xc="black",this.Ae="13px sans-serif",this.Lq=this.Cb=this.Gc=0,this.da=this.fa=this.Gm=null,this.Ih=0,this.df=null,this.Le=0,this.ze=this.Qb=this.Qc=null,typeof a=="string"?this.text=a:a&&Object.assign(this,a),y&&Object.assign(this,y),this}Zt(Wo,Mt),Wo.prototype.cloneProtected=function(a){Mt.prototype.cloneProtected.call(this,a),a.ec=this.ec,a.xc=this.xc,a.Ae=this.Ae,a.Gc=this.Gc,a.Cb=this.Cb,a.Lq=this.Lq,a.Gm=this.Gm,this.fa!==null&&(a.fa=this.fa.copy()),this.da!==null&&(a.da=this.da.nc?this.da:this.da.copy()),a.Ih=this.Ih,a.df=this.df,a.Le=this.Le,a.Qc=this.Qc,a.Qb=this.Qb,a.ze=this.ze};function Au(a){a.da===null?a.da=new Ov:a.da.nc&&(a.da=a.da.copy())}be=Wo.prototype,be.th=function(){Mt.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function P1(a,y){a.l=y.l|6144,a.pb=y.opacity,a.Ma=y.background,a.areaBackground=y.areaBackground,a.jd=y.desiredSize.J(),a.minSize=y.minSize.J(),a.maxSize=y.maxSize.J(),y.Lb!==null?a.Lb=y.Lb.copy():a.Lb=null,a.Ca=y.scale,a.Kb=y.angle,a.stretch=y.stretch,a.Kg=y.margin.J(),a.Jb=y.alignment.J(),a.sk=y.alignmentFocus.J(),a.segmentFraction=y.segmentFraction,a.segmentOffset=y.segmentOffset.J(),a.segmentOrientation=y.segmentOrientation,y.tb!==null&&(a.tb=y.tb.copy()),a.shadowVisible=y.shadowVisible,a.ec=y.ec,a.xc=y.xc,a.Ae=y.Ae,a.fa!==null&&(a.fa=y.fa.copy()),y.da!==null&&(a.da=y.da.nc?y.da:y.da.copy()),a.Ih=y.Ih}be.qb=function(a){a.classType===Wo?this.wrap=a:Mt.prototype.qb.call(this,a)},be.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},be.v=function(){Mt.prototype.v.call(this)},be.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var x=this.naturalBounds,E=this.actualBounds,b=x.width,z=x.height,te=$g(this),re=a.textAlign=this.textAlign,oe=y.tn;re==="start"?re=oe?"right":"left":re==="end"&&(re=oe?"left":"right"),oe=this.isUnderline;var le=this.isStrikethrough;ha(this,a,this.xc,!0,!1,x,E),(oe||le)&&ha(this,a,this.xc,!1,!1,x,E),E=0,x=!1;var he=this.oe,ge=he.dx-(te*he.m21+he.dx);he=he.dy-(te*he.m22+he.dy);var Se=y.scale;switch(8>(ge*ge+he*he)*Se*Se&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof qs&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,ge=this.spacingBelow,this.flip){case Qr:a.translate(b,0),a.scale(-1,1);break;case Br:a.translate(0,z),a.scale(1,-1);break;case Lo:a.translate(b,z),a.scale(-1,-1)}if(a.yc(),he=this.Gc,Se=(y+te+ge)*he,z>Se&&(E=this.verticalAlignment,E=E.y*z-E.y*Se+E.offsetY),he===1&&this.ze!==null)ge=this.Cb,ge>b&&(ge=b),this.Oj(this.ze,a,0,E+y,b,te,ge,x,re,oe,le);else if(this.Qc!==null&&this.Qb!==null)for(Se=0;Se<he;Se++){var we=this.Qc[Se];we>b&&(we=b),E+=y,this.Oj(this.Qb[Se],a,0,E,b,te,we,x,re,oe,le),E+=te+ge}switch(this.flip){case Qr:a.scale(-1,1),a.translate(-b,0);break;case Br:a.scale(1,-1),a.translate(0,-z);break;case Lo:a.scale(-1,-1),a.translate(-b,-z)}}},be.Oj=function(a,y,x,E,b,z,te,re,oe,le,he){var ge=0;if(re)oe==="left"?ge=0:oe==="right"?ge=b-te:oe==="center"&&(ge=(b-te)/2),y.fillRect(x+ge,E+.25*z,te,1);else{if(oe==="left"?ge=0:oe==="right"?ge=b:oe==="center"&&(ge=b/2),b=T0!==null?T0(this,z):.75*z,y.fillText(a,x+ge,E+b),a=z/20|0,a===0&&(a=1),oe==="right"?ge-=te:oe==="center"&&(ge-=te/2),le){re=O0!==null?O0(this,z):.8*z,oe=x+ge,le=E+re,b=x+ge+te,re=E+re;var Se=a;y.beginPath(),y.lineWidth=Se,y.moveTo(oe,le),y.lineTo(b,re),y.stroke(),y.Se(),y instanceof qs&&y.ad.classList.add("gojs-td")}he&&(he=E+z-z/2.2|0,a%2!==0&&(he+=.5),E=x+ge,z=he,x=x+ge+te,te=he,ge=a,y.beginPath(),y.lineWidth=ge,y.moveTo(E,z),y.lineTo(x,te),y.stroke(),y.Se(),y instanceof qs&&y.ad.classList.add("gojs-td"))}},be.kk=function(a,y,x){if(!Mt.prototype.kk.call(this,a,y,x))return!1;if(ha(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;x<y.length;x++)e1(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,e1(a,y,!0);return!0},be.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:Mt.prototype.nk.call(this,a)},be.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("text");for(var x=0;x<a.length;x++)a[x].setAttributeNS(null,"filter",y)}},be.Wl=function(a,y,x,E){var b=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;Is!==null&&L1!==z&&(L1=Is.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var te;if(isNaN(this.desiredSize.width)){if(z=this.ec.replace(/\r\n/g,`
|
|
`).replace(/\r/g,`
|
|
`),z.length===0)z=8;else if(this.isMultiline){for(var re=te=0,oe=!1;!oe;){var le=z.indexOf(`
|
|
`,re);le===-1&&(le=z.length,oe=!0),re=z.substr(re,le-re),this.formatting===ep&&(re=re.trim()),te=Math.max(te,Ql(re)),re=le+1}z=te}else te=z.indexOf(`
|
|
`,0),0<=te&&(z=z.substr(0,te)),z=Ql(z);z=Math.min(z,a/this.scale)}else z=this.desiredSize.width;if(this.panel!==null&&(z=Math.min(z,this.panel.maxSize.width)),te=C1(this,z),isNaN(this.desiredSize.height)?te=Math.min(te,y/this.scale):te=this.desiredSize.height,oe=te,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===I0&&(y=this.Ae,y=this.overflow===I0?w1(y):0,le=this.spacingAbove+this.spacingBelow,le=Math.max(0,$g(this)+le),oe=Math.min(this.maxLines-1,Math.max(Math.floor(oe/le+.01)-1,0)),!(oe+1>=this.Qb.length))){for(this.l|=16777216,le=this.Qb[oe],y=Math.max(1,a-y);Ql(le)>y&&1<le.length;)le=le.substr(0,le.length-1);le+=tp,y=Ql(le),this.Qb[oe]=le,this.Qb=this.Qb.slice(0,oe+1),this.Qc[oe]=y,this.Qc=this.Qc.slice(0,oe+1),this.Le=this.Qb.length,this.Cb=Math.max(this.Cb,y),this.Gc=this.Le,this.Gc===1&&(this.ze=this.Qb[0])}(this.wrap===E1||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),te=Math.max(E,te),Vn(this.dc,z,te),this.Ge(0,0,z,te),this.svg!==null&&b!==this.Gc&&(this.Uc=!0)},be.eh=function(a,y,x,E){ms(this,a,y,x,E)};function qg(a,y,x){a.ze===null?(a.ze=y,a.Cb=x):((a.Qb===null||a.Qc===null)&&(a.Qb=[],a.Qc=[],a.Qb.push(a.ze),a.Qc.push(a.Cb)),a.Qb.push(y),a.Qc.push(x),a.Qb.length>a.maxLines&&(a.l|=16777216))}function bv(a,y,x,E){var b=a.formatting===ep;b&&(y=y.trim());var z=0,te=a.Ae,re=a.spacingAbove+a.spacingBelow;re=Math.max(0,$g(a)+re);var oe=a.overflow===I0?w1(te):0;if(a.Gc>=a.maxLines)E!==null&&E.h(0,re);else if(te=y,a.wrap===Dv){a.Le=1;var le=Ql(y);if(oe===0||le<=x)a.Cb=Math.max(a.Cb,le),qg(a,y,a.Cb),E!==null&&E.h(le,re);else{for(z=Tf(a,te),te=te.substr(z.length),y=Tf(a,te),le=Ql(z+y);0<y.length&&le<=x;)z+=y,te=te.substr(y.length),y=Tf(a,te),le=z+y,b&&(le=le.trim()),le=Ql(le);for(b&&(y=y.trim()),z+=y,x=Math.max(1,x-oe);Ql(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=tp;var he=Ql(z);a.Cb=he,qg(a,z,he),E!==null&&E.h(he,re)}}else{for(oe=0,te.length===0&&(oe=1,qg(a,te,0));0<te.length;){for(y=Tf(a,te),te=te.substr(y.length);Ql(y)>x;){var ge=1;for(le=Ql(y.substr(0,ge)),he=0;le<=x;)ge++,he=le,le=Ql(y.substr(0,ge));if(ge===1){var Se=le;z=Math.max(z,le)}else Se=he,z=Math.max(z,he);if(ge--,1>ge&&(ge=1),qg(a,y.substr(0,ge),Se),oe++,y=y.substr(ge),a.Gc+oe>a.maxLines)break}for(he=Tf(a,te),le=Ql(y+he);0<he.length&&le<=x;)y+=he,te=te.substr(he.length),he=Tf(a,te),le=y+he,b&&(le=le.trim()),le=Ql(le);if(b&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),he.length===0?(ge=le,z=Math.max(z,le)):(ge=he=Ql(y),z=Math.max(z,he)),qg(a,y,ge),oe++,a.Gc+oe>a.maxLines))break}a.Le=Math.min(a.maxLines,oe),a.Cb=Math.max(a.Cb,z),E!==null&&E.h(a.Cb,re*a.Le)}}function Tf(a,y){if(a.wrap===A1)return y.substr(0,1);for(var x=y.length,E=0,b=Fx;E<x&&!b.test(y.charAt(E));)E++;for(a.formatting===F1&&(x=Math.min(x,E+1));E<x&&b.test(y.charAt(E));)E++;return E>=y.length?y:y.substr(0,E)}function Ql(a){return Is===null?8*a.length:Is.measureText(a).width}function $g(a){if(a.df!==null)return a.df;var y=a.Ae;if(Is===null){var x=16;return a.df=x}return Nv[y]!==void 0&&5e3>M1?x=Nv[y]:(x=1.3*Is.measureText("M").width,Nv[y]=x,M1++),a.df=x}function w1(a){if(Is===null)return 6;if(R0[a]!==void 0&&5e3>Tv)var y=R0[a];else y=Is.measureText(tp).width,R0[a]=y,Tv++;return y}function C1(a,y){var x=a.ec.replace(/\r\n/g,`
|
|
`).replace(/\r/g,`
|
|
`),E=a.spacingAbove+a.spacingBelow;if(E=Math.max(0,$g(a)+E),x.length===0)return a.Cb=0,a.Gc=1,E;if(!a.isMultiline){var b=x.indexOf(`
|
|
`,0);0<=b&&(x=x.substr(0,b))}b=0;for(var z=a.Gc=0,te,re=!1;!re;){if(te=x.indexOf(`
|
|
`,z),te===-1&&(te=x.length,re=!0),z<=te){if(z=x.substr(z,te-z),a.wrap!==Dv){a.Le=0;var oe=Xe.alloc();bv(a,z,y,oe),b+=oe.height,Xe.free(oe),a.Gc+=a.Le}else bv(a,z,y,null),b+=E,a.Gc++;a.Gc===a.maxLines&&(re=!0)}z=te+1}return a.Lq=b}pn.Object.defineProperties(Wo.prototype,{font:{get:function(){return this.Ae},set:function(a){var y=this.Ae;y!==a&&(this.Ae=a,this.df=null,this.v(),this.g("font",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;a!=null?a=a.toString():a="",y!==a&&(this.ec=a,this.v(),this.g("text",y,a),this.Uc=!0)}},textAlign:{get:function(){return this.da!==null?this.da.Or:"start"},set:function(a){var y=this.textAlign;y===a||a!=="start"&&a!=="end"&&a!=="left"&&a!=="right"&&a!=="center"||(Au(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:xn},set:function(a){var y=this.flip;y!==a&&(Au(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Oo},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),Au(this),this.da.Yr=a,ws(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=Xe.alloc();bv(this,this.ec,999999,a);var y=a.width;Xe.free(a),a=C1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),Vn(this.dc,y,a)}return this.dc}},isMultiline:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this.v(),this.g("isMultiline",y,a))}},isUnderline:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;y!==a&&(this.l^=4194304,this.Uc=!0,this.N(),this.g("isUnderline",y,a))}},isStrikethrough:{get:function(){return(this.l&8388608)!==0},set:function(a){var y=(this.l&8388608)!==0;y!==a&&(this.l^=8388608,this.Uc=!0,this.N(),this.g("isStrikethrough",y,a))}},wrap:{get:function(){return this.da!==null?this.da.$r:kv},set:function(a){var y=this.wrap;y!==a&&(Au(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Bv},set:function(a){var y=this.overflow;y!==a&&(Au(this),this.da.$q=a,this.v(),this.g("overflow",y,a))}},isOverflowed:{get:function(){return(this.l&16777216)!==0}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&Oc(a,"TextBlock.stroke"),a instanceof So&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return $g(this)}},editable:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("editable",y,a))}},textEditor:{get:function(){return this.da!==null?this.da.Qr:null},set:function(a){var y=this.textEditor;y!==a&&(Au(this),this.da.Qr=a,this.g("textEditor",y,a))}},errorFunction:{get:function(){return this.da!==null?this.da.Hd:null},set:function(a){var y=this.errorFunction;y!==a&&(Au(this),this.da.Hd=a,this.g("errorFunction",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new zu),this.fa.Tk=a,this.v();var x=this.panel;x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new zu),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new zu),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedFunction:{get:function(){return this.fa!==null?this.fa.F:null},set:function(a){var y=this.graduatedFunction;y!==a&&(this.fa===null&&(this.fa=new zu),this.fa.F=a,this.v(),this.g("graduatedFunction",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new zu),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}},textValidation:{get:function(){return this.da!==null?this.da.vj:null},set:function(a){var y=this.textValidation;y!==a&&(Au(this),this.da.vj=a,this.g("textValidation",y,a))}},textEdited:{get:function(){return this.da!==null?this.da.Pr:null},set:function(a){var y=this.textEdited;y!==a&&(Au(this),this.da.Pr=a,this.g("textEdited",y,a))}},spacingAbove:{get:function(){return this.da!==null?this.da.Dr:0},set:function(a){var y=this.spacingAbove;y!==a&&(Au(this),this.da.Dr=a,this.v(),this.g("spacingAbove",y,a))}},spacingBelow:{get:function(){return this.da!==null?this.da.Er:0},set:function(a){var y=this.spacingBelow;y!==a&&(Au(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:ep},set:function(a){var y=this.formatting;y!==a&&(Au(this),this.da.gq=a,this.v(),this.g("formatting",y,a))}},maxLines:{get:function(){return this.da!==null?this.da.Jq:1/0},set:function(a){var y=this.maxLines;y!==a&&(a=Math.floor(a),0>=a&&ai(a,"> 0",Wo,"maxLines"),Au(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var T0=null,O0=null,Dv=new Kt(Wo,"None",0),E1=new Kt(Wo,"WrapFit",1),kv=new Kt(Wo,"WrapDesiredSize",2),A1=new Kt(Wo,"WrapBreakAll",3),Bv=new Kt(Wo,"OverflowClip",0),I0=new Kt(Wo,"OverflowEllipsis",1),ep=new Kt(Wo,"FormatTrim",0),F1=new Kt(Wo,"FormatNone",0),Fx=/[ \u200b\u00ad]/,Nv=new _i,M1=0,R0=new _i,Tv=0,tp="...",L1="",Is=null,j0=!1;Wo.className="TextBlock";function Ov(){this.nc=!1,this.Hd=null,this.Xf=xn,this.gq=ep,this.Jq=1/0,this.$q=Bv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Oo,this.$r=kv}Ov.prototype.copy=function(){var a=new Ov;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},Wo.getEllipsis=function(){return tp},Wo.setEllipsis=function(a){tp=a,R0=new _i,Tv=0},Wo.getBaseline=function(){return T0},Wo.setBaseline=function(a){T0=a},Wo.getUnderline=function(){return O0},Wo.setUnderline=function(a){O0=a},Wo.isValidFont=function(a){if(j0||(Is=la?new Il(null).context:null,j0=!0),Is===null)return!0;var y=Is.font;if(a===y||a==="10px sans-serif")return!0;Is.font="10px sans-serif",Is.font=a;var x=Is.font;if(x!=="10px sans-serif")return Is.font=y,!0;Is.font="19px serif";var E=Is.font;return Is.font=a,x=Is.font,Is.font=y,x!==E},Wo.FormatNone=F1,Wo.FormatTrim=ep,Wo.None=Dv,Wo.OverflowClip=Bv,Wo.OverflowEllipsis=I0,Wo.WrapBreakAll=A1,Wo.WrapDesiredSize=kv,Wo.WrapFit=E1;function zu(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}zu.prototype.copy=function(){var a=new zu;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},zu.className="GradElementSettings";function Rs(a,y){Mt.call(this),this.Eg=null,this.qo="",this.Xg=Ar,this.Nk=Nn,this.Zg=this.Hd=null,this.Mk=hi,this.Xf=xn,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof a=="string"?this.source=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}var Of;Zt(Rs,Mt),Rs.prototype.cloneProtected=function(a){Mt.prototype.cloneProtected.call(this,a),a.qo=this.qo,a.element=this.Eg,a.Xg=this.Xg.J(),a.Nk=this.Nk,a.Xf=this.Xf,a.Hd=this.Hd,a.Zg=this.Zg,a.Mk=this.Mk.J(),a.en=this.en,a.rl=this.rl},Rs.prototype.qb=function(a){a===xn||a===Bi||a===Vr?this.imageStretch=a:Mt.prototype.qb.call(this,a)},Rs.prototype.toString=function(){return"Picture("+this.source+")#"+Tr(this)};function If(a){a===void 0&&(a=""),a!==""?Of[a]&&(delete Of[a],z0--):(Of=new _i,z0=0)}function b1(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value;b.N();var z=y.getAttribute("src")||"",te=b.Og.I(z);if(te!==null)for(var re=te.length,oe=0;oe<re;oe++)z=te[oe],b.Xn.add(z),z.Uc=!0,b.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),z.Zg!==null&&z.Zg(z,x))}y.Bg.clear()}a.desiredSize.w()||(Ma(a,!1),a.v())},y.Yp=function(x){y.ln=x;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value,z=y.getAttribute("src")||"",te=b.Og.I(z);if(te!==null){b=te.length,z=Bn();for(var re=0;re<b;re++)z.push(te[re]);if(y.hn)for(re=0;re<b;re++)te=z[re],te.Hd!==null&&te.Hd(te,x);Ot(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}Rs.prototype.hA=function(){if(this.source!==""){If(this.source);var a=this.source;this.source="",this.source=a}},Rs.prototype.redraw=function(){this.N(),this.Uc=!0},Rs.prototype.hh=function(a,y){var x=this.Eg;if(x!==null){var E=x.getAttribute("src");if(!(x instanceof HTMLImageElement&&(E===null||E==="")||x.ln instanceof Event&&a instanceof Xd)){var b=a instanceof qs;E=this.naturalBounds;var z=0,te=0,re=this.qn,oe=re?+x.width:x.naturalWidth;if(re=re?+x.height:x.naturalHeight,oe===void 0&&x.videoWidth&&(oe=x.videoWidth),re===void 0&&x.videoHeight&&(re=x.videoHeight),oe=oe||E.width,re=re||E.height,oe!==0&&re!==0){var le=oe,he=re;this.sourceRect.w()&&(z=this.Xg.x,te=this.Xg.y,oe=this.Xg.width,re=this.Xg.height);var ge=oe,Se=re,we=this.Nk,Ae=this.Mk;switch(we){case xn:if(this.sourceRect.w())break;ge>=E.width&&(z=z+Ae.offsetX+(ge*Ae.x-E.width*Ae.x)),Se>=E.height&&(te=te+Ae.offsetY+(Se*Ae.y-E.height*Ae.y)),oe=Math.min(E.width,ge),re=Math.min(E.height,Se);break;case Nn:ge=E.width,Se=E.height;break;case Bi:case Vr:we===Bi?(we=Math.min(E.height/Se,E.width/ge),ge*=we,Se*=we):we===Vr&&(we=Math.max(E.height/Se,E.width/ge),ge*=we,Se*=we,ge>=E.width&&(z=(z+Ae.offsetX+(ge*Ae.x-E.width*Ae.x)/ge)*oe),Se>=E.height&&(te=(te+Ae.offsetY+(Se*Ae.y-E.height*Ae.y)/Se)*re),oe*=1/(ge/E.width),re*=1/(Se/E.height),ge=E.width,Se=E.height)}we=this.Df()*y.scale;var Ne=ge*we*Se*we,$e=oe*re/Ne,Ke=x.__goCache;we=null;var at=Mx;if(!b){if(x.sq&&Ke!==void 0&&4<Ne&&$e>at*at)for(Ke.gi===null&&(k1(Ke,4,le,he,x),k1(Ke,16,le,he,x)),b=Ke.gi,le=b.length,he=0;he<le&&b[he].ratio*b[he].ratio<$e;he++)we=b[he];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{b=new Il(null).context;try{b.drawImage(this.Eg,0,0)}catch(dt){this.en=!1}try{b.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(dt){this.vl=!0}}if(this.vl)return}}switch(b=ge<E.width?Ae.offsetX+(E.width*Ae.x-ge*Ae.x):0,Ae=Se<E.height?Ae.offsetY+(E.height*Ae.y-Se*Ae.y):0,this.flip){case Qr:a.translate(Math.min(E.width,ge),0),a.scale(-1,1);break;case Br:a.translate(0,Math.min(E.height,Se)),a.scale(1,-1);break;case Lo:a.translate(Math.min(E.width,ge),Math.min(E.height,Se)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Ke!==void 0&&we!==null&&we.ratio!==1){a.save(),y=we.ratio;try{a.drawImage(we.source,z/y,te/y,Math.min(we.source.width,oe/y),Math.min(we.source.height,re/y),b,Ae,Math.min(E.width,ge),Math.min(E.height,Se)),a instanceof qs&&(this.bt=[z/y,te/y,Math.min(we.source.width,oe/y),Math.min(we.source.height,re/y),b,Ae,Math.min(E.width,ge),Math.min(E.height,Se)])}catch(dt){this.en=!1}a.restore()}else try{a.drawImage(x,z,te,oe,re,b,Ae,Math.min(E.width,ge),Math.min(E.height,Se)),a instanceof qs&&(this.bt=[z,te,oe,re,b,Ae,Math.min(E.width,ge),Math.min(E.height,Se)])}catch(dt){this.en=!1}switch(this.flip){case Qr:a.scale(-1,1),a.translate(-Math.min(E.width,ge),0);break;case Br:a.scale(1,-1),a.translate(0,-Math.min(E.height,Se));break;case Lo:a.scale(-1,-1),a.translate(-Math.min(E.width,ge),-Math.min(E.height,Se))}}}}},Rs.prototype.Wl=function(a,y,x,E){var b=this.desiredSize,z=Os(this,!0),te=this.Eg,re=this.qn,oe=0,le=0;(re||!this.al&&te&&te.complete)&&(this.al=!0),te===null?(isFinite(b.width)||(a=0),isFinite(b.height)||(y=0)):(oe=re?+te.width:te.naturalWidth,le=re?+te.height:te.naturalHeight),isFinite(b.width)||z===Nn||z===Zi?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:te!==null&&(a=oe)),x=0):te!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:oe),isFinite(b.height)||z===Nn||z===er?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:te!==null&&(y=le)),E=0):te!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:le),isFinite(b.width)&&(a=b.width),isFinite(b.height)&&(y=b.height),b=this.maxSize,z=this.minSize,x=Math.max(x||0,z.width),E=Math.max(E||0,z.height),a=Math.min(b.width,a),y=Math.min(b.height,y),a=Math.max(x,a),y=Math.max(E,y),te===null||te.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),Vn(this.dc,a,y),this.Ge(0,0,a,y)},Rs.prototype.eh=function(a,y,x,E){ms(this,a,y,x,E)},pn.Object.defineProperties(Rs.prototype,{element:{get:function(){return this.Eg},set:function(a){var y=this.Eg;if(this.Uc=!0,y!==a){this.qn=a instanceof HTMLCanvasElement;var x=a instanceof HTMLImageElement;a===null||x||a instanceof HTMLVideoElement||this.qn||lt("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var E=this.diagram;E!==null&&Tg(E,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new Fn),E!==null&&x&&rd(E,this),a!==null&&(this.qn||a.complete===!0?(a.hn&&(a.ln instanceof Event&&this.Hd!==null?this.Hd(this,a.ln):a.sq===!0&&!a.ln&&this.Zg!==null&&a.eu&&this.Zg(this,a.eu)),a.sq=!0,this.desiredSize.w()||(Ma(this,!1),this.v())):x&&b1(this,a)),this.g("element",y,a),this.N()}}},source:{get:function(){return this.qo},set:function(a){var y=this.qo;if(y!==a){this.Uc=!0,this.qo=a;var x=Of;if(la){var E=null;if(x[a]!==void 0)E=x[a];else if(a!==""){30<z0&&(If(),x=Of),E=ii("img"),E.hn=!0,b1(this,E);var b=this.rl;b!==null&&(E.crossOrigin=b(this)),E.src=a,x[a]=E,z0++}this.element=E,E!==null&&E.__goCache===void 0&&(E.__goCache=new D1),this.v(),this.N()}this.g("source",y,a)}}},sourceCrossOrigin:{get:function(){return this.rl},set:function(a){if(this.rl!==a&&(this.rl=a,this.element!==null)){var y=this.element.getAttribute("src");a===null&&typeof y=="string"?this.element.crossOrigin=null:a!==null&&(this.element.crossOrigin=a(this)),this.element.src=y}}},sourceRect:{get:function(){return this.Xg},set:function(a){var y=this.Xg;y.D(a)||(this.Xg=a=a.J(),this.N(),this.g("sourceRect",y,a))}},imageStretch:{get:function(){return this.Nk},set:function(a){var y=this.Nk;y!==a&&(this.Nk=a,this.N(),this.g("imageStretch",y,a))}},flip:{get:function(){return this.Xf},set:function(a){var y=this.Xf;y!==a&&(this.Xf=a,this.N(),this.g("flip",y,a))}},imageAlignment:{get:function(){return this.Mk},set:function(a){var y=this.Mk;y.D(a)||(this.Mk=a=a.J(),this.N(),this.g("imageAlignment",y,a))}},errorFunction:{get:function(){return this.Hd},set:function(a){var y=this.Hd;y!==a&&(this.Hd=a,this.g("errorFunction",y,a))}},successFunction:{get:function(){return this.Zg},set:function(a){var y=this.Zg;y!==a&&(this.Zg=a,this.g("successFunction",y,a))}},naturalBounds:{get:function(){return this.dc}}}),Rs.prototype.redraw=Rs.prototype.redraw,Rs.prototype.reloadSource=Rs.prototype.hA;var z0=0,Mx=4;Rs.className="Picture",Of=new _i,Rs.clearCache=If;function D1(){this.gi=null}function k1(a,y,x,E,b){a.gi===null&&(a.gi=[]);var z=new Il(null),te=z.context,re=1/y;z.width=x/y,z.height=E/y,z.width!==0&&z.height!==0&&(y=new B1(z.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],b=x.source,x=x.ratio),te.setTransform(re*x,0,0,re*x,0,0),te.yc(),te.drawImage(b,0,0),a.gi.push(y))}D1.className="PictureCacheArray";function B1(a,y){this.source=a,this.ratio=y}B1.className="PictureCacheInstance";function Rf(){this.os=new Cn,this.mc=null}Rf.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Cn,this.mc=null};function jf(a,y,x,E,b,z){a.mc=new aa,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=E,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),b!==void 0&&(a.mc.isShadowed=b)}function Lx(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}Rf.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var E=new Wr(sa);E.endX=a,E.endY=y,x&&E.close(),this.mc.segments.add(E)},Rf.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var E=new Wr(vo);E.endX=a,E.endY=y,x&&E.close(),this.mc.segments.add(E)};function Lh(a,y,x,E,b,z,te){var re;re===void 0&&(re=!1);var oe=new Wr(ga);oe.point1X=y,oe.point1Y=x,oe.point2X=E,oe.point2Y=b,oe.endX=z,oe.endY=te,re&&oe.close(),a.mc.segments.add(oe)}function Z0(a,y,x,E,b){var z;z===void 0&&(z=!1);var te=new Wr(ls);te.point1X=y,te.point1Y=x,te.endX=E,te.endY=b,z&&te.close(),a.mc.segments.add(te)}Rf.prototype.arcTo=function(a,y,x,E,b,z,te){z===void 0&&(z=0),te===void 0&&(te=!1);var re=new Wr(oa);re.startAngle=a,re.sweepAngle=y,re.centerX=x,re.centerY=E,re.radiusX=b,re.radiusY=z!==0?z:b,te&&re.close(),this.mc.segments.add(re)};function bx(a,y,x,E,b,z,te,re){var oe;oe===void 0&&(oe=!1),y=new Wr(us,te,re,y,x,E,b,z),oe&&y.close(),a.mc.segments.add(y)}function N1(a){var y=W0;return y!==null?(W0=null,y.reset(a),y):(y=new Rf,y.reset(a),y)}var W0=null;Rf.className="StreamGeometryContext";function gs(a,y){var x=a.toLowerCase(),E=St.Ze;E[a]=y,E[x]=a}gs("Rectangle",function(a,y,x){a="r"+y+","+x;var E=St.Mf[a];return E!==void 0||(E=new Cn(Cn.u),E.endX=y,E.endY=x,St.Nf<St.vm&&(St.Mf[a]=E,St.Nf++)),E}),gs("Square",function(a,y,x){a="s"+y+","+x;var E=St.Mf[a];return E!==void 0||(E=new Cn(Cn.u),E.endX=y,E.endY=x,E.defaultStretch=Bi,St.Nf<St.vm&&(St.Mf[a]=E,St.Nf++)),E}),gs("RoundedRectangle",function(a,y,x){a=a?a.parameter1:NaN,(isNaN(a)||0>a)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var E="rr"+y+","+x+","+a,b=St.Mf[E];if(b!==void 0)return b;var z=a*St.wg;return b=new Cn().add(new aa(a,0,!0).add(new Wr(vo,y-a,0)).add(new Wr(ga,y,a,y-z,0,y,z)).add(new Wr(vo,y,x-a)).add(new Wr(ga,y-a,x,y,x-z,y-z,x)).add(new Wr(vo,a,x)).add(new Wr(ga,0,x-a,z,x,0,x-z)).add(new Wr(vo,0,a)).add(new Wr(ga,a,0,0,z,z,0).close())),1<z&&(b.spot1=new bn(0,0,z,z),b.spot2=new bn(1,1,-z,-z)),St.Nf<St.vm&&(St.Mf[E]=b,St.Nf++),b}),gs("Border","RoundedRectangle"),gs("Ellipse",function(a,y,x){a="e"+y+","+x;var E=St.Mf[a];return E!==void 0||(E=new Cn(Cn.F),E.endX=y,E.endY=x,E.spot1=ko,E.spot2=Ea,St.Nf<St.vm&&(St.Mf[a]=E,St.Nf++)),E}),gs("Circle",function(a,y,x){a="c"+y+","+x;var E=St.Mf[a];return E!==void 0||(E=new Cn(Cn.F),E.endX=y,E.endY=x,E.spot1=ko,E.spot2=Ea,E.defaultStretch=Bi,St.Nf<St.vm&&(St.Mf[a]=E,St.Nf++)),E}),gs("TriangleRight",function(a,y,x){return new Cn().add(new aa(0,0).add(new Wr(vo,y,.5*x)).add(new Wr(vo,0,x).close())).pm(0,.25,.5,.75)}),gs("TriangleDown",function(a,y,x){return new Cn().add(new aa(0,0).add(new Wr(vo,y,0)).add(new Wr(vo,.5*y,x).close())).pm(.25,0,.75,.5)}),gs("TriangleLeft",function(a,y,x){return new Cn().add(new aa(y,x).add(new Wr(vo,0,.5*x)).add(new Wr(vo,y,0).close())).pm(.5,.25,1,.75)}),gs("TriangleUp",function(a,y,x){return new Cn().add(new aa(y,x).add(new Wr(vo,0,x)).add(new Wr(vo,.5*y,0).close())).pm(.25,.5,.75,1)}),gs("Triangle","TriangleUp"),gs("Diamond",function(a,y,x){return new Cn().add(new aa(.5*y,0).add(new Wr(vo,0,.5*x)).add(new Wr(vo,.5*y,x)).add(new Wr(vo,y,.5*x).close())).pm(.25,.25,.75,.75)}),gs("LineH",function(a,y,x){return a=new Cn(Cn.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),gs("LineV",function(a,y,x){return a=new Cn(Cn.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),gs("None","Rectangle"),gs("BarH","Rectangle"),gs("BarV","Rectangle"),gs("MinusLine","LineH"),gs("PlusLine",function(a,y,x){return new Cn().add(new aa(0,x/2,!1).add(new Wr(vo,y,x/2)).add(new Wr(sa,y/2,0)).add(new Wr(vo,y/2,x)))}),gs("XLine",function(a,y,x){return new Cn().add(new aa(0,x,!1).add(new Wr(vo,y,0)).add(new Wr(sa,0,0)).add(new Wr(vo,y,x)))}),gs("LineRight",function(a,y,x){return new Cn().add(new aa(.25*y,0,!1).add(new Wr(vo,.75*y,.5*x)).add(new Wr(vo,.25*y,x)))}),gs("LineDown",function(a,y,x){return new Cn().add(new aa(0,.25*x,!1).add(new Wr(vo,.5*y,.75*x)).add(new Wr(vo,y,.25*x)))}),gs("LineLeft",function(a,y,x){return new Cn().add(new aa(.75*y,0,!1).add(new Wr(vo,.25*y,.5*x)).add(new Wr(vo,.75*y,x)))}),gs("LineUp",function(a,y,x){return new Cn().add(new aa(0,.75*x,!1).add(new Wr(vo,.5*y,.25*x)).add(new Wr(vo,y,.75*x)))}),St.um={"":"",Standard:"F1 m 0,0 l 8,4 -8,4 2,-4 z",Backward:"F1 m 8,0 l -2,4 2,4 -8,-4 z",Triangle:"F1 m 0,0 l 8,4.62 -8,4.62 z",BackwardTriangle:"F1 m 8,4 l 0,4 -8,-4 8,-4 0,4 z",Boomerang:"F1 m 0,0 l 8,4 -8,4 4,-4 -4,-4 z",BackwardBoomerang:"F1 m 8,0 l -8,4 8,4 -4,-4 4,-4 z",SidewaysV:"m 0,0 l 8,4 -8,4 0,-1 6,-3 -6,-3 0,-1 z",BackwardV:"m 8,0 l -8,4 8,4 0,-1 -6,-3 6,-3 0,-1 z",OpenTriangle:"m 0,0 l 8,4 -8,4",BackwardOpenTriangle:"m 8,0 l -8,4 8,4",OpenTriangleLine:"m 0,0 l 8,4 -8,4 m 8.5,0 l 0,-8",BackwardOpenTriangleLine:"m 8,0 l -8,4 8,4 m -8.5,0 l 0,-8",OpenTriangleTop:"m 0,0 l 8,4 m 0,4",BackwardOpenTriangleTop:"m 8,0 l -8,4 m 0,4",OpenTriangleBottom:"m 0,8 l 8,-4",BackwardOpenTriangleBottom:"m 0,4 l 8,4",HalfTriangleTop:"F1 m 0,0 l 0,4 8,0 z m 0,8",BackwardHalfTriangleTop:"F1 m 8,0 l 0,4 -8,0 z m 0,8",HalfTriangleBottom:"F1 m 0,4 l 0,4 8,-4 z",BackwardHalfTriangleBottom:"F1 m 8,4 l 0,4 -8,-4 z",ForwardSemiCircle:"m 4,0 b 270 180 0 4 4",BackwardSemiCircle:"m 4,8 b 90 180 0 -4 4",Feather:"m 0,0 l 3,4 -3,4",BackwardFeather:"m 3,0 l -3,4 3,4",DoubleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardDoubleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4",TripleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardTripleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4 m 3,-8 l -3,4 3,4",ForwardSlash:"m 0,8 l 5,-8",BackSlash:"m 0,0 l 5,8",DoubleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8",DoubleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8",TripleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8 m -2,8 l 4,-8",TripleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8 m -2,-8 l 4,8",Fork:"m 0,4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4",LineFork:"m 0,0 l 0,8 m 0,-4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardLineFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4 m 8,-8 l 0,8",CircleFork:"F1 m 6,4 b 0 360 -3 0 3 z m 0,0 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 6,0 b 0 360 -3 0 3",CircleLineFork:"F1 m 6,4 b 0 360 -3 0 3 z m 1,-4 l 0,8 m 0,-4 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleLineFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 0,-4 l 0,8 m 7,-4 b 0 360 -3 0 3",Circle:"F1 m 8,4 b 0 360 -4 0 4 z",Block:"F1 m 0,0 l 0,8 8,0 0,-8 z",StretchedDiamond:"F1 m 0,3 l 5,-3 5,3 -5,3 -5,-3 z",Diamond:"F1 m 0,4 l 4,-4 4,4 -4,4 -4,-4 z",Chevron:"F1 m 0,0 l 5,0 3,4 -3,4 -5,0 3,-4 -3,-4 z",StretchedChevron:"F1 m 0,0 l 8,0 3,4 -3,4 -8,0 3,-4 -3,-4 z",NormalArrow:"F1 m 0,2 l 4,0 0,-2 4,4 -4,4 0,-2 -4,0 z",X:"m 0,0 l 8,8 m 0,-8 l -8,8",TailedNormalArrow:"F1 m 0,0 l 2,0 1,2 3,0 0,-2 2,4 -2,4 0,-2 -3,0 -1,2 -2,0 1,-4 -1,-4 z",DoubleTriangle:"F1 m 0,0 l 4,4 -4,4 0,-8 z m 4,0 l 4,4 -4,4 0,-8 z",BigEndArrow:"F1 m 0,0 l 5,2 0,-2 3,4 -3,4 0,-2 -5,2 0,-8 z",ConcaveTailArrow:"F1 m 0,2 h 4 v -2 l 4,4 -4,4 v -2 h -4 l 2,-2 -2,-2 z",RoundedTriangle:"F1 m 0,1 a 1,1 0 0 1 1,-1 l 7,3 a 0.5,1 0 0 1 0,2 l -7,3 a 1,1 0 0 1 -1,-1 l 0,-6 z",SimpleArrow:"F1 m 1,2 l -1,-2 2,0 1,2 -1,2 -2,0 1,-2 5,0 0,-2 2,2 -2,2 0,-2 z",AccelerationArrow:"F1 m 0,0 l 0,8 0.2,0 0,-8 -0.2,0 z m 2,0 l 0,8 1,0 0,-8 -1,0 z m 3,0 l 2,0 2,4 -2,4 -2,0 0,-8 z",BoxArrow:"F1 m 0,0 l 4,0 0,2 2,0 0,-2 2,4 -2,4 0,-2 -2,0 0,2 -4,0 0,-8 z",TriangleLine:"F1 m 8,4 l -8,-4 0,8 8,-4 z m 0.5,4 l 0,-8",CircleEndedArrow:"F1 m 10,4 l -2,-3 0,2 -2,0 0,2 2,0 0,2 2,-3 z m -4,0 b 0 360 -3 0 3 z",DynamicWidthArrow:"F1 m 0,3 l 2,0 2,-1 2,-2 2,4 -2,4 -2,-2 -2,-1 -2,0 0,-2 z",EquilibriumArrow:"m 0,3 l 8,0 -3,-3 m 3,5 l -8,0 3,3",FastForward:"F1 m 0,0 l 3.5,4 0,-4 3.5,4 0,-4 1,0 0,8 -1,0 0,-4 -3.5,4 0,-4 -3.5,4 0,-8 z",Kite:"F1 m 0,4 l 2,-4 6,4 -6,4 -2,-4 z",HalfArrowTop:"F1 m 0,0 l 4,4 4,0 -8,-4 z m 0,8",HalfArrowBottom:"F1 m 0,8 l 4,-4 4,0 -8,4 z",OpposingDirectionDoubleArrow:"F1 m 0,4 l 2,-4 0,2 4,0 0,-2 2,4 -2,4 0,-2 -4,0 0,2 -2,-4 z",PartialDoubleTriangle:"F1 m 0,0 4,3 0,-3 4,4 -4,4 0,-3 -4,3 0,-8 z",LineCircle:"F1 m 0,0 l 0,8 m 7 -4 b 0 360 -3 0 3 z",DoubleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",TripleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",CircleLine:"F1 m 6 4 b 0 360 -3 0 3 z m 1,-4 l 0,8",DiamondCircle:"F1 m 8,4 l -4,4 -4,-4 4,-4 4,4 m 8,0 b 0 360 -4 0 4 z",PlusCircle:"F1 m 8,4 b 0 360 -4 0 4 l -8 0 z m -4 -4 l 0 8",OpenRightTriangleTop:"m 8,0 l 0,4 -8,0 m 0,4",OpenRightTriangleBottom:"m 8,8 l 0,-4 -8,0",Line:"m 0,0 l 0,8",DoubleLine:"m 0,0 l 0,8 m 2,0 l 0,-8",TripleLine:"m 0,0 l 0,8 m 2,0 l 0,-8 m 2,0 l 0,8",PentagonArrow:"F1 m 8,4 l -4,-4 -4,0 0,8 4,0 4,-4 z"};function Iv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=jn,this.ir=null,this.jr="",this.lr=Eo,this.Gq="",this.Hq=Ii,this.Pq=Ai,this.Kq=qi,this.Up=null,this.Cq=127,this.zr=Je,this.yr="gray",this.Vg=4}Iv.prototype.copy=function(){var a=new Iv;return a.zq=this.zq,a.Kp=this.Kp,a.tr=this.tr,a.vr=this.vr,a.ur=this.ur,a.oq=this.oq,a.fr=this.fr,a.hr=this.hr,a.gr=this.gr.J(),a.ir=this.ir,a.jr=this.jr,a.lr=this.lr.J(),a.Gq=this.Gq,a.Hq=this.Hq.J(),a.Pq=this.Pq.J(),a.Kq=this.Kq.J(),a.Up=this.Up,a.Cq=this.Cq,a.zr=this.zr.J(),a.yr=this.yr,a.Vg=this.Vg,a};function Xi(a,y){a===void 0||a instanceof ka||typeof a=="string"?On.call(this,a):(On.call(this),a&&(y=a)),this.G=2408959,this.Tf="",this.P=null,this.Jg="",this.Qf=this.Ug=null,this.ec="",this.Ah=this.Ig=null,this.ke=new je(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new pt,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}Zt(Xi,On),Xi.prototype.cloneProtected=function(a){On.prototype.cloneProtected.call(this,a),a.G=this.G&-4097|49152,a.Tf=this.Tf,this.P!==null&&(a.P=this.P.nc?this.P:this.P.copy()),a.Jg=this.Jg,a.Qf=null,a.ec=this.ec,a.ke.assign(this.ke),a.Ao=this.Ao},be=Xi.prototype,be.Af=function(a){On.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},be.toString=function(){var a=qn(this.constructor)+"#"+Tr(this);return this.data!==null&&(a+="("+Ji(this.data)+")"),a};function js(a){a.P===null?a.P=new Iv:a.P.nc&&(a.P=a.P.copy())}be.th=function(){On.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},be.gk=function(a,y,x,E,b,z,te){var re=this.diagram;re!==null&&(a===qo&&y==="elements"?b instanceof On?Qd(b,function(oe){uy(re.partManager,oe),Hd(re,oe)}):rd(re,b):a===ua&&y==="elements"&&(b instanceof On?Qd(b,function(oe){hy(re.partManager,oe,re)}):Tg(re,b)),re.cb(a,y,x,E,b,z,te))},be.La=function(a){if(On.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];b instanceof On&&Qd(b,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},Xi.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},Xi.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},Xi.prototype.bh=function(a,y){if(y!==null){var x=null,E=this.Qf;if(E!==null&&(x=E.I(a)),x!==y){if(x!==null){var b=x.diagram;b!==null&&b.remove(x)}E===null&&(this.Qf=E=new Wt),y.Tf!==a&&(y.category=a),E.add(a,y),a=this.diagram,a!==null&&(a.add(y),a=y.adornedObject,a!==null&&(a=a.ih(),a!==null&&(y.data=a.data)))}}},Xi.prototype.Jf=function(a){var y=this.Qf;if(y!==null){var x=y.I(a);if(x!==null){var E=x.diagram;E!==null&&E.remove(x)}y.remove(a),y.count===0&&(this.Qf=null)}},Xi.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=Bn();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);Ot(y)}},Xi.prototype.updateAdornments=function(){var a=this.diagram;if(a!==null){for(var y=this.adornments;y.next();){var x=y.value;x.v(),x.placeholder&&x.placeholder.v()}e:{if(this.isSelected&&this.selectionAdorned&&(y=this.selectionObject,y!==null&&this.actualBounds.w()&&this.isVisible()&&y.Ed()&&y.actualBounds.w())){if(x=this.Pj("Selection"),x===null){if(x=this.selectionAdornmentTemplate,x===null&&(x=this.ph()?a.linkSelectionAdornmentTemplate:this instanceof Pr?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof eo))break e;Rl(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=On.Link),x.adornedObject=y)}if(x!==null){x.type===On.Link&&x.v(),this.bh("Selection",x);break e}}this.Jf("Selection")}for(Dx(this,a),y=this.adornments;y.next();)y.value.La()}},Xi.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function Rv(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function Dx(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function H0(a){if(ld(a)===!1){zv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function T1(a){if(a.G|=2097152,ld(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||R1(a,y,x),x=a.Ib;var E=pt.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(E,x),pt.free(E),zv(a,!1)}}Xi.prototype.Ge=function(a,y,x,E){var b=this.uc;b.h(a,y,x,E),this.Lb===null&&(this.Lb=new ui);var z=this.Lb;z.reset(),this.no(z,a,y,x,E),this.Lb=z,z.ws()||z.pp(b)},Xi.prototype.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=hi;this.locationSpot.sb()&&(z=this.locationSpot);var te=je.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,te.yi(x.x,x.y,x.width,x.height,z),y.Lb!==null&&y.Lb.Ga(te),te.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(te),te.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else te.yi(y,x,E,b,z);a.rotate(this.Kb,te.x,te.y),je.free(te)}},Xi.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Xi.prototype.moveTo=function(a,y,x){a=je.allocAt(a,y),this.move(a,x),je.free(a)},Xi.prototype.isVisible=function(){if(!this.visible)return!1;var a=this.layer;if(a!==null){if(!a.visible)return!1;if(a=a.diagram,a!==null&&a.animationManager.fv(this))return!0}return a=this.containingGroup,!!(a===null||a.isSubGraphExpanded&&a.isVisible())},Xi.prototype.Zb=function(a){var y=this.diagram;a?(this.C(4),this.Wb(),y!==null&&y.De.add(this)):(this.C(8),this.Ej()),this.oh(),y!==null&&(y.Ya(),y.N())},Xi.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new Wt),y.I(a)!==null)return y.I(a);var x=On.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function bh(a,y,x,E){E===void 0&&(E=new je),x=x.Mc()?hi:x;var b=y.naturalBounds;if(E.h(b.width*x.x+x.offsetX,b.height*x.y+x.offsetY),y===null||y===a)return E;for(y.transform.Ga(E),y=y.panel;y!==null&&y!==a;)y.transform.Ga(E),y=y.panel;return a.Lb!==null&&a.Lb.Ga(E),E.offset(-a.uc.x,-a.uc.y),E}Xi.prototype.mi=function(a){return a===void 0&&(a=new pt),a.assign(this.actualBounds)},Xi.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function O1(a){var y=je.alloc(),x=a.locationObject,E=x.naturalBounds,b=x instanceof Mr?x.strokeWidth:0;if(y.yi(0,0,E.width+b,E.height+b,a.locationSpot),x!==a)for(y.offset(-b/2,-b/2),x.transform.Ga(y),x=x.panel;x!==null&&x!==a;)x.transform.Ga(y),x=x.panel;return a.Lb!==null&&a.Lb.Ga(y),y.offset(-a.uc.x,-a.uc.y),y}function $d(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=c1(a));var E=a.ag,b=2*E;if(!a.isShadowed)return x.h(y.x-1-E,y.y-1-E,y.width+2+b,y.height+2+b),x;E=y.x,b=y.y;var z=y.width;y=y.height;var te=a.shadowBlur;return a=a.shadowOffset,z+=te,y+=te,E-=te/2,b-=te/2,0<a.x?z+=a.x:(E+=a.x,z-=a.x),0<a.y?y+=a.y:(b+=a.y,y-=a.y),x.h(E-1,b-1,z+2,y+2),x}Xi.prototype.arrange=function(){if(Cs(this)===!1)T1(this);else{Ou(this,!1);var a=this.Ib,y=pt.alloc();y.assign(a);var x=ud(this);this.eh(0,0,this.uc.width,this.uc.height);var E=this.position;R1(this,E,this.location),a.ka(),a.x=E.x,a.y=E.y,a.freeze(),this.Xl(y,a),y.D(a)?this.Fd(x):!this.Zc()||St.B(y.width,a.width)&&St.B(y.height,a.height)||0<=this.vw&&this.C(16),pt.free(y),zv(this,!1)}},be=Xi.prototype,be.Xl=function(a,y){var x=this.diagram;if(x!==null){var E=!1;if(x.Zi===!1&&a.w()){var b=pt.alloc();b.assign(x.documentBounds),b.Fv(x.padding),a.x>b.x&&a.y>b.y&&a.right<b.right&&a.bottom<b.bottom&&y.x>b.x&&y.y>b.y&&y.right<b.right&&y.bottom<b.bottom&&(E=!0),pt.free(b)}!(this.G&65536)&&a.D(y)||Z1(this,E,x),x.N(),!a.w()&&!y.w()||Ln(a,y)||(this instanceof li&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},be.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var E=this.diagram;return E!==null&&I1(this,E,a,y,x),this.pa=a,this.G&=-2097153,!this.ke.w()||E!==null&&!E.animationManager.isTicking&&E.undoManager.isUndoingRedoing||(E=this.ke,this.ke=new je(E.x+(a.x-y),E.y+(a.y-x)),this.g("location",E,this.ke.copy())),ld(this)===!1&&Cs(this)===!1&&(H0(this),T1(this)),!0};function I1(a,y,x,E,b){y===null||a instanceof eo||(y=y.animationManager,y.zb&&uf(y,a,new je(E,b),x))}be.mm=function(a,y,x){var E=this.ke,b=this.pa;if(x){if(E.x===a&&E.y===y)return;ld(this)||Cs(this)?b.h(NaN,NaN):b.h(b.x+a-E.x,b.y+y-E.y),E.h(a,y)}else{if(b.x===a&&b.y===y)return;E.h(E.x+a-b.x,E.y+y-b.y),b.h(a,y)}H0(this)},be.Av=function(){this.G&=-2097153,H0(this)};function R1(a,y,x){var E=O1(a),b=a.diagram,z=x.w(),te=y.w();z&&te?a.G&2097152?j1(a,y,x,b,E):z1(a,y,x,b,E):z?j1(a,y,x,b,E):te&&z1(a,y,x,b,E),a.G|=2097152,je.free(E),a.Uk()}function j1(a,y,x,E,b){var z=y.x,te=y.y;y.h(x.x-b.x,x.y-b.y),E!==null&&(x=E.animationManager,(E=x.defaultAnimation.isAnimating)||!x.zb||a instanceof eo||uf(x,a,new je(z,te),y),E||y.x===z&&y.y===te||a.g("position",new je(z,te),y.copy()))}function z1(a,y,x,E,b){var z=x.copy();x.h(y.x+b.x,y.y+b.y),x.D(z)||E===null||a.g("location",z,x.copy())}function Z1(a,y,x){Zv(a,!1),a instanceof li&&wh(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var E=x.viewportBounds;E.w()?ud(a)?(Dn(y,E)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(E)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}be.si=function(){return!0},be.Zc=function(){return!0},be.ph=function(){return!1},be.Dd=function(){return!0};function jv(a,y,x,E){y.constructor===a.constructor||G1||(G1=!0,ti('Should not change the class of the Part when changing category from "'+x+'" to "'+E+'"'),ti(" Old class: "+qn(a.constructor)+", new class: "+qn(y.constructor)+", part: "+a.toString())),a.Ej();var b=a.data;x=a.layerName;var z=a.isSelected,te=a.isHighlighted,re=!0,oe=!0,le=!1;a instanceof li&&(re=a.isTreeLeaf,oe=a.isTreeExpanded,le=a.wasTreeExpanded),y.Af(a),y.cloneProtected(a),a.Tf=E,a.svg!==null&&(a.svg.remove(),a.svg=null,a.Uc=!0),a.v(),a.N(),y=a.diagram,E=!0,y!==null&&(E=y.skipsUndoManager,y.skipsUndoManager=!0),a.ub=b,a.G=z?a.G|4096:a.G&-4097,a.G=te?a.G|524288:a.G&-524289,a instanceof li&&(a.U=re?a.U|4:a.U&-5,a.U=oe?a.U|1:a.U&-2,a.U=le?a.U|2:a.U&-3),b!==null&&a.La(),b=a.layerName,b!==x&&(a.Jg=x,a.layerName=b),y!==null&&(y.skipsUndoManager=E),a.Zc()&&a.C(64)}Xi.prototype.canCopy=function(){if(!this.copyable)return!1;var a=this.layer;return a===null?!0:a.allowCopy?(a=a.diagram,a===null?!0:!!a.allowCopy):!1},Xi.prototype.canDelete=function(){if(!this.deletable)return!1;var a=this.layer;return a===null?!0:a.allowDelete?(a=a.diagram,a===null?!0:!!a.allowDelete):!1},Xi.prototype.canEdit=function(){if(!this.textEditable)return!1;var a=this.layer;return a===null?!0:a.allowTextEdit?(a=a.diagram,a===null?!0:!!a.allowTextEdit):!1},Xi.prototype.canGroup=function(){if(!this.groupable)return!1;var a=this.layer;return a===null?!0:a.allowGroup?(a=a.diagram,a===null?!0:!!a.allowGroup):!1},Xi.prototype.canMove=function(){if(!this.movable)return!1;var a=this.layer;return a===null?!0:a.allowMove?(a=a.diagram,a===null?!0:!!a.allowMove):!1},Xi.prototype.canReshape=function(){if(!this.reshapable)return!1;var a=this.layer;return a===null?!0:a.allowReshape?(a=a.diagram,a===null?!0:!!a.allowReshape):!1},Xi.prototype.canResize=function(){if(!this.resizable)return!1;var a=this.layer;return a===null?!0:a.allowResize?(a=a.diagram,a===null?!0:!!a.allowResize):!1},Xi.prototype.canRotate=function(){if(!this.rotatable)return!1;var a=this.layer;return a===null?!0:a.allowRotate?(a=a.diagram,a===null?!0:!!a.allowRotate):!1},Xi.prototype.canSelect=function(){if(!this.selectable)return!1;var a=this.layer;return a===null?!0:a.allowSelect?(a=a.diagram,a===null?!0:!!a.allowSelect):!1};function ld(a){return(a.G&32768)!==0}function zv(a,y){a.G=y?a.G|32768:a.G&-32769}function Zv(a,y){a.G=y?a.G|65536:a.G&-65537}function ud(a){return(a.G&131072)!==0}be=Xi.prototype,be.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function G0(a,y){a.G=y?a.G|1048576:a.G&-1048577}be.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},be.N=function(){var a=this.diagram;a!==null&&!Cs(this)&&!ld(this)&&this.isVisible()&&this.Ib.w()&&a.N($d(this,this.Ib))},be.v=function(){On.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof li&&this.labeledLink!==null&&ws(this.labeledLink),a.$b(!0))},be.Vo=function(a){a||(a=this.Ah,a!==null&&Yv(a,this))},be.Wo=function(a){a||(a=this.Ah,a!==null&&Kv(a,this))},be.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},be.oz=function(){return Wv(this,this)};function Wv(a,y){var x=y.containingGroup;return x!==null?1+Wv(a,x):y instanceof li&&(y=y.labeledLink,y!==null)?Wv(a,y):0}be.sz=function(){return W1(this,this)};function W1(a,y){var x=y.containingGroup;return x!==null||y instanceof li&&(x=y.labeledLink,x!==null)?W1(a,x):y}be.Td=function(a){return a instanceof Pr?Hv(this,this,a):!1};function Hv(a,y,x){if(y===x||x===null)return!1;var E=y.containingGroup;return E===null||E!==x&&!Hv(a,E,x)?y instanceof li&&(y=y.labeledLink,y!==null)?Hv(a,y,x):!1:!0}be.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof Pr&&G0(y,!0),y instanceof li){var x=y.labeledLink;x!==null&&(y=x)}y=y.containingGroup}for(x=null,y=a;y!==null;){if(y.G&1048576){x=y;break}y instanceof li&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Pr&&G0(y,!1),y instanceof li&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},Xi.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof li&&this.isLinkLabel)},Xi.prototype.C=function(a){if(a===void 0&&(a=16777215),this.isLayoutPositioned&&a&this.layoutConditions){var y=this.layer;y!==null&&y.isTemporary||this instanceof li&&this.isLinkLabel?y=!1:(y=this.diagram,y=!(y!==null&&y.undoManager.isUndoingRedoing))}else y=!1;if(y)if(y=this.Ah,y!==null){var x=y.layout;x!==null?x.C():y.C(a)}else a=this.diagram,a!==null&&(a=a.layout,a!==null&&a.C())};function H1(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function hd(a,y,x,E,b,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof eo)){if(a.add(y),y instanceof li){if(x&&y instanceof Pr)for(var te=y.memberParts;te.next();)hd(a,te.value,x,E,b,z);if(b!==!1)for(te=y.linksConnected;te.next();){var re=te.value;if(!a.contains(re)){var oe=re.fromNode,le=re.toNode;oe=oe===null||a.contains(oe),le=le===null||a.contains(le),(b?oe&&le:oe||le)&&hd(a,re,x,E,b,z)}}if(1<E)for(y=y.Ou();y.next();)hd(a,y.value,x,E-1,b,z)}else if(y instanceof Hn)for(y=y.labelNodes;y.next();)hd(a,y.value,x,E,b,z)}}pn.Object.defineProperties(Xi.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Xr:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var a=this.Ig;return a==null?null:a.diagram}},layerName:{get:function(){return this.Jg},set:function(a){var y=this.Jg;if(y!==a){var x=this.diagram;if((x===null||x.Qj(a)!==null&&!x.partManager.addsToTemporaryLayer)&&(this.Jg=a,x!==null&&x.Ya(),this.g("layerName",y,a),y=this.layer,y!==null&&y.name!==a&&(x=y.diagram,x!==null&&(a=x.Qj(a),a!==null&&a!==y)))){var E=y.pc(-1,this,!0);if(0<=E&&x.cb(ua,"parts",y,this,null,E,!0),E=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=E&&x.cb(qo,"parts",a,null,this,!0,E),E=this.layerChanged,E!==null){var b=x.aa;x.aa=!0,E(this,y,a),x.aa=b}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(js(this),this.P.zq=a,this.g("layerChanged",y,a))}},zOrder:{get:function(){return this.Ao},set:function(a){var y=this.Ao;if(y!==a){this.Ao=a;var x=this.layer;x!==null&&cf(x,-1,this),this.g("zOrder",y,a),a=this.diagram,a!==null&&a.N()}}},locationObject:{get:function(){if(this.nf===null){var a=this.locationObjectName;a!==""?(a=this.fb(a),a!==null?this.nf=a:this.nf=this):this instanceof eo?this.type!==On.Link&&this.placeholder!==null?this.nf=this.placeholder:this.nf=this:this.nf=this}return this.nf.visible?this.nf:this}},minLocation:{get:function(){return this.P!==null?this.P.Pq:Ai},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),js(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:qi},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),js(this),this.P.Kq=a,this.g("maxLocation",y,a))}},locationObjectName:{get:function(){return this.P!==null?this.P.Gq:""},set:function(a){var y=this.locationObjectName;y!==a&&(js(this),this.P.Gq=a,this.nf=null,this.v(),this.g("locationObjectName",y,a))}},locationSpot:{get:function(){return this.P!==null?this.P.Hq:Ii},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),js(this),this.P.Hq=a,this.v(),this.g("locationSpot",y,a))}},location:{get:function(){return this.ke},set:function(a){var y=a.x,x=a.y,E=this.ke;if(!(E.x===y||isNaN(E.x)&&isNaN(y))||!(E.y===x||isNaN(E.y)&&isNaN(x))){if(a=a.copy(),y=a,this.ph())y=!1;else{if(this.ke=y,this.G|=2097152,Cs(this)===!1&&(H0(this),x=this.pa,x.w())){var b=this.diagram;if(b===null||b.animationManager.isTicking||!b.undoManager.isUndoingRedoing){var z=x.copy();x.h(x.x+(y.x-E.x),x.y+(y.y-E.y)),I1(this,b,x,z.x,z.y),this.g("position",z,x.copy())}}y=!0}y&&this.g("location",E,a.copy())}}},category:{get:function(){return this.Tf},set:function(a){var y=this.Tf;if(y!==a){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var x=this.diagram,E=this.data,b=null;if(x!==null&&E!==null&&!(this instanceof eo)){var z=x.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(b=this.clone(),b.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||E===null||this instanceof eo?this instanceof eo&&(b=this.adornedPart,b!==null&&(a=b.Qf,a!==null&&a.remove(y),b.bh(this.category,this))):(z=x.model,z.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(E,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(Rl(x),x=x.copy(),x!==null&&jv(this,x,y,a))):(z!==null&&z.jm(E,a),x=gS(x.partManager,E,a),x!==null&&(Rl(x),x=x.copy(),x===null||x instanceof Hn||(E=this.location.copy(),jv(this,x,y,a),this.location.w()||(this.location=E)))),b!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",b,y))))}}},self:{get:function(){return this},set:function(a){jv(this,a,this.category,a.category)}},copyable:{get:function(){return(this.G&1)!==0},set:function(a){var y=(this.G&1)!==0;y!==a&&(this.G^=1,this.g("copyable",y,a))}},deletable:{get:function(){return(this.G&2)!==0},set:function(a){var y=(this.G&2)!==0;y!==a&&(this.G^=2,this.g("deletable",y,a))}},textEditable:{get:function(){return(this.G&4)!==0},set:function(a){var y=(this.G&4)!==0;y!==a&&(this.G^=4,this.g("textEditable",y,a),this.Wb())}},groupable:{get:function(){return(this.G&8)!==0},set:function(a){var y=(this.G&8)!==0;y!==a&&(this.G^=8,this.g("groupable",y,a))}},movable:{get:function(){return(this.G&16)!==0},set:function(a){var y=(this.G&16)!==0;y!==a&&(this.G^=16,this.g("movable",y,a))}},selectionAdorned:{get:function(){return(this.G&32)!==0},set:function(a){var y=(this.G&32)!==0;y!==a&&(this.G^=32,this.g("selectionAdorned",y,a),this.Wb())}},isInDocumentBounds:{get:function(){return(this.G&64)!==0},set:function(a){var y=(this.G&64)!==0;if(y!==a){this.G^=64;var x=this.diagram;x!==null&&x.Ya(),this.g("isInDocumentBounds",y,a)}}},isLayoutPositioned:{get:function(){return(this.G&128)!==0},set:function(a){var y=(this.G&128)!==0;y!==a&&(this.G^=128,this.g("isLayoutPositioned",y,a),this.C(a?4:8))}},selectable:{get:function(){return(this.G&256)!==0},set:function(a){var y=(this.G&256)!==0;y!==a&&(this.G^=256,this.g("selectable",y,a),this.Wb())}},reshapable:{get:function(){return(this.G&512)!==0},set:function(a){var y=(this.G&512)!==0;y!==a&&(this.G^=512,this.g("reshapable",y,a),this.Wb())}},resizable:{get:function(){return(this.G&1024)!==0},set:function(a){var y=(this.G&1024)!==0;y!==a&&(this.G^=1024,this.g("resizable",y,a),this.Wb())}},rotatable:{get:function(){return(this.G&2048)!==0},set:function(a){var y=(this.G&2048)!==0;y!==a&&(this.G^=2048,this.g("rotatable",y,a),this.Wb())}},isSelected:{get:function(){return(this.G&4096)!==0},set:function(a){var y=(this.G&4096)!==0;if(y!==a){var x=this.diagram;if(!a||this.canSelect()&&!(x!==null&&x.selection.count>=x.maxSelectionCount)){this.G^=4096;var E=!1;if(x!==null){E=x.skipsUndoManager,x.skipsUndoManager=!0;var b=x.selection;b.ka(),a?b.add(this):b.remove(this),b.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=E)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(js(this),this.P.oq=a,this.g("highlightedChanged",y,a))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(a){var y=this.selectionObjectName;y!==a&&(js(this),this.P.vr=a,this.Ug=null,this.g("selectionObjectName",y,a))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(a){var y=this.selectionAdornmentTemplate;y!==a&&(js(this),this.P.tr=a,this.g("selectionAdornmentTemplate",y,a))}},selectionObject:{get:function(){if(this.Ug===null){var a=this.selectionObjectName;a!==null&&a!==""?(a=this.fb(a),a!==null?this.Ug=a:this.Ug=this):this instanceof Hn?(a=this.path,a!==null?this.Ug=a:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(a){var y=this.selectionChanged;y!==a&&(js(this),this.P.ur=a,this.g("selectionChanged",y,a))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(a){var y=this.resizeAdornmentTemplate;y!==a&&(js(this),this.P.fr=a,this.g("resizeAdornmentTemplate",y,a))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(a){var y=this.resizeObjectName;y!==a&&(js(this),this.P.hr=a,this.g("resizeObjectName",y,a))}},resizeObject:{get:function(){var a=this.resizeObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:jn},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),js(this),this.P.gr=a,this.g("resizeCellSize",y,a))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(a){var y=this.rotateAdornmentTemplate;y!==a&&(js(this),this.P.ir=a,this.g("rotateAdornmentTemplate",y,a))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(a){var y=this.rotateObjectName;y!==a&&(js(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:Eo},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),js(this),this.P.lr=a,this.g("rotationSpot",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;y!==a&&(this.ec=a,this.g("text",y,a))}},containingGroup:{get:function(){return this.Ah},set:function(a){if(this.Zc()){var y=this.Ah;if(y!==a){a===null||this!==a&&!a.Td(this)||(this===a&<("Cannot make a Group a member of itself: "+this.toString()),lt("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Kv(y,this):this instanceof Pr&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Yv(a,this):this instanceof Pr&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var E=this.data,b=x.model;if(E!==null&&b.Xj()){var z=b.wa(a!==null?a.data:null);b.mp(E,z)}}if(E=this.containingGroupChanged,E!==null&&(b=!0,x!==null&&(b=x.aa,x.aa=!0),E(this,y,a),x!==null&&(x.aa=b)),this instanceof Pr){for(x=new Fn,hd(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof li)for(E=E.linksConnected;E.next();)zf(E.value)}if(this instanceof li){for(x=this.linksConnected;x.next();)zf(x.value);x=this.labeledLink,x!==null&&zf(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&cf(y,-1,a))}}else lt("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(a){var y=this.containingGroupChanged;y!==a&&(js(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof li&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(js(this),this.P.Cq=a,this.g("layoutConditions",y,a))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(a){var y=this.dragComputation;y!==a&&(js(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:Je},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),js(this),this.P.zr=a,this.N(),this.g("shadowOffset",y,a))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(a){var y=this.shadowColor;y!==a&&(js(this),this.P.yr=a,this.N(),this.g("shadowColor",y,a))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(a){var y=this.shadowBlur;y!==a&&(js(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Xi.prototype.invalidateLayout=Xi.prototype.C,Xi.prototype.findCommonContainingGroup=Xi.prototype.px,Xi.prototype.isMemberOf=Xi.prototype.Td,Xi.prototype.findTopLevelPart=Xi.prototype.sz,Xi.prototype.findSubGraphLevel=Xi.prototype.oz,Xi.prototype.ensureBounds=Xi.prototype.Va,Xi.prototype.getDocumentBounds=Xi.prototype.mi,Xi.prototype.findObject=Xi.prototype.fb,Xi.prototype.moveTo=Xi.prototype.moveTo,Xi.prototype.invalidateAdornments=Xi.prototype.Wb,Xi.prototype.clearAdornments=Xi.prototype.Ej,Xi.prototype.removeAdornment=Xi.prototype.Jf,Xi.prototype.addAdornment=Xi.prototype.bh,Xi.prototype.findAdornment=Xi.prototype.Pj,Xi.prototype.updateTargetBindings=Xi.prototype.La;var G1=!1;Xi.className="Part",Xi.LayoutNone=0,Xi.LayoutAdded=1,Xi.LayoutRemoved=2,Xi.LayoutShown=4,Xi.LayoutHidden=8,Xi.LayoutNodeSized=16,Xi.LayoutGroupLayout=32,Xi.LayoutNodeReplaced=64,Xi.LayoutStandard=127,Xi.LayoutAll=16777215;function eo(a,y){a===void 0||a instanceof ka||typeof a=="string"?Xi.call(this,a):(Xi.call(this),a&&(y=a)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,y&&Object.assign(this,y)}Zt(eo,Xi),eo.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},eo.prototype.updateRelationshipsFromData=function(){},eo.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Hn&&y instanceof Mr){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var E=0;E<y;E++){var b=x[E];b.isPanelMain&&b instanceof Mr&&(b.ua=a)}}},eo.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Cs(a))},eo.prototype.Zc=function(){return!1},eo.prototype.gk=function(a,y,x,E,b,z,te){if(a===qo&&y==="elements"){if(b instanceof As)this.$a===null&&(this.$a=b);else if(b instanceof On){var re=b.Nl(function(oe){return oe instanceof As});re instanceof As&&this.$a===null&&(this.$a=re)}}else a===ua&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof On&&this.$a.rg(E)&&(this.$a=null));Xi.prototype.gk.call(this,a,y,x,E,b,z,te)},eo.prototype.updateAdornments=function(){},eo.prototype.Lj=function(){},pn.Object.defineProperties(eo.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(a){var y=this.adornedPart,x=null;a!==null&&(x=a.part),y===null||a!==null&&y===x||y.Jf(this.category),this.ue=a,x!==null&&x.bh(this.category,this)}},adornedPart:{get:function(){var a=this.ue;return a!==null?a.part:null}},containingGroup:{get:function(){return null}}}),eo.className="Adornment";function Gv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=nr,this.er=Y0,this.Kr=this.ij=this.Nq=this.Mq=null}Gv.prototype.copy=function(){var a=new Gv;return a.Dq=this.Dq,a.Eq=this.Eq,a.gj=this.gj,a.Vr=this.Vr,a.yp=this.yp.J(),a.er=this.er,a.Mq=this.Mq,a.Nq=this.Nq,a.ij=this.ij,a.Kr=this.Kr,a};function li(a,y){a===void 0||a instanceof ka||typeof a=="string"?Xi.call(this,a):(Xi.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new An,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Zt(li,Xi),li.prototype.cloneProtected=function(a){Xi.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},be=li.prototype,be.Af=function(a){Xi.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Dh(a){a.Ba===null?a.Ba=new Gv:a.Ba.nc&&(a.Ba=a.Ba.copy())}be.th=function(){Xi.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function V1(a,y){y!==null&&(a.af===null&&(a.af=new Fn),a.af.add(y))}function _1(a,y,x,E){if(y===null||a.af===null)return null;for(var b=a.af.iterator;b.next();){var z=b.value;if(z.Ds===a&&z.cv===y&&z.Ox===x&&z.Px===E||z.Ds===y&&z.cv===a&&z.Ox===E&&z.Px===x)return z}return null}be.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=_1(this,a,y,x),a!==null&&a.Sl()},be.gk=function(a,y,x,E,b,z,te){a===qo&&y==="elements"?this.wc=null:a===ua&&y==="elements"&&(this.wc=null),Xi.prototype.gk.call(this,a,y,x,E,b,z,te)},be.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||($s(x.fromPort),$s(x.toPort),x.bb())}};function Y1(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&($s(x.fromPort),$s(x.toPort),x.bb())}}function $s(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||$s(y.port)}}be.si=function(){return!0},li.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},li.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},li.prototype.isVisible=function(){if(!Xi.prototype.isVisible.call(this))return!1;var a=!0,y=Eh,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===Eh){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===Fa){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(E){return!E.isTreeExpanded}))return!1}else if(y===Ef&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(E){return!E.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},li.prototype.Zb=function(a){Xi.prototype.Zb.call(this,a);for(var y=this.linksConnected;y.next();){var x=y.value;if(a&&this.containingGroup!==null){var E=x.To(this);E===null||E.Td(this.containingGroup)||x.bb()}x.Zb(a)}},li.prototype.qx=function(){var a=new Fn,y=new Fn;return K1(this,this,a,y),y.iterator};function K1(a,y,x,E){if(y!==null&&!x.has(y)){x.add(y);var b=!0,z=a.diagram;z!==null&&(b=z.isTreePathToChildren),y.linksConnected.each(function(te){te.isTreeLink?(b?te.fromNode===y:te.toNode===y)&&K1(a,b?te.toNode:te.fromNode,x,E):E.add(te)})}}li.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new Gr(this.jb),x=this;return y.predicate=function(E){return E.fromNode===x&&E.fromPortId===a||E.toNode===x&&E.toPortId===a},y},be=li.prototype,be.Mo=function(a){a===void 0&&(a=null);var y=new Gr(this.jb),x=this;return y.predicate=function(E){return E.fromNode!==x?!1:a===null?!0:E.fromPortId===a},y},be.Sd=function(a){a===void 0&&(a=null);var y=new Gr(this.jb),x=this;return y.predicate=function(E){return E.toNode!==x?!1:a===null?!0:E.toPortId===a},y},be.Mu=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.fromNode===this?(a===null||b.fromPortId===a)&&(b=b.toNode,y!==null?y.add(b):x!==null&&x!==b?(y=new Fn,y.add(x),y.add(b)):x=b):b.toNode!==this||a!==null&&b.toPortId!==a||(b=b.fromNode,y!==null?y.add(b):x!==null&&x!==b?(y=new Fn,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new Rr(x):Xr},be.Po=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.fromNode!==this||a!==null&&b.fromPortId!==a||(b=b.toNode,y!==null?y.add(b):x!==null&&x!==b?(y=new Fn,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new Rr(x):Xr},be.Oo=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.toNode!==this||a!==null&&b.toPortId!==a||(b=b.fromNode,y!==null?y.add(b):x!==null&&x!==b?(y=new Fn,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new Rr(x):Xr},be.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new Gr(this.jb),b=this;return E.predicate=function(z){return!((z.fromNode!==b||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)&&(z.fromNode!==a||z.toNode!==b||x!==null&&z.fromPortId!==x||y!==null&&z.toPortId!==y))},E},be.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new Gr(this.jb),b=this;return E.predicate=function(z){return!(z.fromNode!==b||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)},E};function V0(a,y,x){$s(x);var E=a.jb.contains(y);if(E||a.jb.add(y),!E||y.fromNode===y.toNode){var b=a.linkConnected;if(b!==null){var z=!0,te=a.diagram;te!==null&&(z=te.aa,te.aa=!0),b(a,y,x),te!==null&&(te.aa=z)}}!E&&y.isTreeLink&&(x=y.fromNode,y=y.toNode,x!==null&&y!==null&&x!==y&&(E=!0,a=a.diagram,a!==null&&(E=a.isTreePathToChildren),b=E?y:x,z=E?x:y,b.ci||(b.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(E?x===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function _0(a,y,x){$s(x);var E=a.jb.remove(y),b=null;if(E||y.toNode===y.fromNode){var z=a.linkDisconnected;if(b=a.diagram,z!==null){var te=!0;b!==null&&(te=b.aa,b.aa=!0),z(a,y,x),b!==null&&(b.aa=te)}}E&&y.isTreeLink&&(x=!0,b!==null&&(x=b.isTreePathToChildren),a=x?y.toNode:y.fromNode,y=x?y.fromNode:y.toNode,a!==null&&(a.ci=!1),y===null||y.isTreeLeaf||(y.jb.count===0?(y.ci=null,b!==null&&b.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):np(y)))}function np(a){if(a.ci=!1,a.jb.count!==0){var y=!0,x=a.diagram;if(x===null||!x.undoManager.isUndoingRedoing){for(x!==null&&(y=x.isTreePathToChildren),x=a.jb.iterator;x.next();){var E=x.value;if(E.isTreeLink){if(y){if(E.fromNode===a){a.isTreeLeaf=!1;return}}else if(E.toNode===a){a.isTreeLeaf=!1;return}}}a.isTreeLeaf=!0}}}li.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},be=li.prototype,be.Vo=function(a){Xi.prototype.Vo.call(this,a),a||(np(this),a=this.Yk,a!==null&&nS(a,this))},be.Wo=function(a){Xi.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},be.Lj=function(){if(0<this.jb.count){var a=this.diagram;if(a!==null)for(var y=a.commandHandler!==null?a.commandHandler.deletesConnectedLinks:!0,x=this.jb.copy().iterator;x.next();){var E=x.value;y?a.remove(E):(E.fromNode===this&&(E.fromNode=null),E.toNode===this&&(E.toNode=null))}}this.labeledLink=null,Xi.prototype.Lj.call(this)},be.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;U1(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function U1(a){a.wc===null?a.wc=new Wt:a.wc.clear(),a.qm(a,function(y,x){X1(y,x)}),a.wc.count===0&&a.wc.add("",a)}function X1(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function Vv(a,y,x){var E=y.portId;if(E!==null&&(a.wc!==null&&a.wc.remove(E),y=a.diagram,y!==null&&x)){for(x=null,a=a.findLinksConnected(E);a.next();)E=a.value,x===null&&(x=Bn()),x.push(E);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);Ot(x)}}}be.Nz=function(a){if(a===null||a===this)return!1;var y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this,y)for(;x!==a;){y=null;for(var E=x.jb.iterator;E.next();){var b=E.value;if(b.isTreeLink&&(y=b.fromNode,y!==x&&y!==this))break}if(y===this||y===null||y===x)return!1;x=y}else for(;x!==a;){for(y=null,E=x.jb.iterator;E.next()&&(b=E.value,!b.isTreeLink||(y=b.toNode,y===x||y===this)););if(y===this||y===null||y===x)return!1;x=y}return!0},be.xz=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this,a)for(;;){a=null;for(var x=y.jb.iterator;x.next();){var E=x.value;if(E.isTreeLink&&(a=E.fromNode,a!==y&&a!==this))break}if(a===this)return this;if(a===null||a===y)return y;y=a}else for(;;){for(a=null,x=y.jb.iterator;x.next()&&(E=x.value,!E.isTreeLink||(a=E.toNode,a===y||a===this)););if(a===this)return this;if(a===null||a===y)return y;y=a}},be.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)G0(y,!0),y=y.pg();var x=null;for(y=a;y!==null;){if(y.G&1048576){x=y;break}y=y.pg()}for(y=this;y!==null;)G0(y,!1),y=y.pg();return x},be.kh=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this.jb.iterator,a){for(;y.next();)if(a=y.value,a.isTreeLink&&a.fromNode!==this)return a}else for(;y.next();)if(a=y.value,a.isTreeLink&&a.toNode!==this)return a;return null},be.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof li)return a;a=this.diagram,a=a!==null?a.isTreePathToChildren:!0;for(var y=this.jb.iterator;y.next();){var x=y.value;if(x.isTreeLink&&(x=a?x.fromNode:x.toNode,x!==this))return this.ci=x}return this.ci=null},be.vz=function(){function a(x,E){E.add(x);var b=x.kh();b!==null&&(E.add(b),x=x.pg(),x!==null&&a(x,E))}var y=new Fn;return a(this,y),y},be.uz=function(){return Q1(this,this)};function Q1(a,y){return y=y.pg(),y===null?0:1+Q1(a,y)}be.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new Gr(this.jb);var x=this;return y.predicate=a?function(E){return!!(E.isTreeLink&&E.fromNode===x)}:function(E){return!!(E.isTreeLink&&E.toNode===x)},y},be.Ou=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren);var x=y=null,E=this.jb.iterator;if(a)for(;E.next();)a=E.value,a.isTreeLink&&a.fromNode===this&&(a=a.toNode,y!==null?y.add(a):x!==null&&x!==a?(y=new An,y.add(x),y.add(a)):x=a);else for(;E.next();)a=E.value,a.isTreeLink&&a.toNode===this&&(a=a.fromNode,y!==null?y.add(a):x!==null&&x!==a?(y=new An,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new Rr(x):Xr},be.wz=function(a){a===void 0&&(a=1/0);var y=new Fn;return hd(y,this,!1,a,!0),y},li.prototype.collapseTree=function(a){a===void 0&&(a=1),1>a&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Fn;x.add(this),J1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Eh),y.Ue=!1}};function J1(a,y,x,E,b,z,te){if(1<E)for(var re=x?a.Mo():a.Sd();re.next();){var oe=re.value;oe.isTreeLink&&(oe=oe.To(a),oe===null||oe===a||y.contains(oe)||(y.add(oe),J1(oe,y,x,E-1,b,z,te)))}else q1(a,y,x,b,z,te)}function q1(a,y,x,E,b,z){for(var te=b===a?!0:a.isTreeExpanded,re=x?a.Mo():a.Sd(),oe={};re.next();){var le=re.value;if(le.isTreeLink&&(le=le.To(a),le!==null&&le!==a)){var he=y.contains(le);if(he||y.add(le),te){var ge=x?le.Oo():le.Po();oe.uv=a,ge.all(function(Se){return function(we){return we===Se.uv||!we.isTreeExpanded}}(oe))&&E.Aj(le,b),le.oh(),le.Zb(!1)}le.isTreeExpanded&&(le.wasTreeExpanded=le.isTreeExpanded,he||q1(le,y,x,E,b,z))}oe={uv:oe.uv}}a.isTreeExpanded=!1}li.prototype.expandTree=function(a){a===void 0&&(a=2),2>a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Fn;x.add(this),$1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Eh),y.Ue=!1}};function $1(a,y,x,E,b,z,te){for(var re=z===a?!1:a.isTreeExpanded,oe=x?a.Mo():a.Sd(),le={};oe.next();){var he=oe.value;if(he.isTreeLink&&(re||he.fd||he.bb(),he=he.To(a),he!==null&&he!==a&&!y.contains(he))){if(y.add(he),!re){he.Zb(!0),he.oh();var ge=x?he.Oo():he.Po();le.vv=a,ge.all(function(Se){return function(we){return we===Se.vv||!we.isTreeExpanded}}(le))&&b.Cj(he,z)}(2<E||he.wasTreeExpanded)&&(he.wasTreeExpanded=!1,$1(he,y,x,E-1,b,z,te))}le={vv:le.vv}}a.isTreeExpanded=!0}pn.Object.defineProperties(li.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Y0},set:function(a){var y=this.portSpreading;y!==a&&(Dh(this),this.Ba.er=a,this.g("portSpreading",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.Bd())}},avoidable:{get:function(){return(this.U&8)!==0},set:function(a){var y=(this.U&8)!==0;if(y!==a){this.U^=8;var x=this.diagram;x!==null&&wh(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:nr},set:function(a){typeof a=="number"&&(a=new ri(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Dh(this),this.Ba.yp=a;var x=this.diagram;x!==null&&wh(x,this),this.g("avoidableMargin",y,a)}}},linksConnected:{get:function(){return this.jb.iterator}},linkConnected:{get:function(){return this.Ba!==null?this.Ba.Dq:null},set:function(a){var y=this.linkConnected;y!==a&&(Dh(this),this.Ba.Dq=a,this.g("linkConnected",y,a))}},linkDisconnected:{get:function(){return this.Ba!==null?this.Ba.Eq:null},set:function(a){var y=this.linkDisconnected;y!==a&&(Dh(this),this.Ba.Eq=a,this.g("linkDisconnected",y,a))}},linkValidation:{get:function(){return this.Ba!==null?this.Ba.gj:null},set:function(a){var y=this.linkValidation;y!==a&&(Dh(this),this.Ba.gj=a,this.g("linkValidation",y,a))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(a){var y=this.Yk;if(y!==a){var x=this.diagram,E=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),x!==null&&E!==null&&!x.undoManager.isUndoingRedoing){var b=y.data,z=x.model;if(b!==null&&z.ri()){var te=z.wa(E);te!==void 0&&z.Qx(b,te)}}this.containingGroup=null}this.Yk=a,a!==null&&(nS(a,this),x===null||E===null||x.undoManager.isUndoingRedoing||(b=a.data,x=x.model,b!==null&&x.ri()&&(E=x.wa(E),E!==void 0&&x.Bu(b,E))),this.containingGroup=a.containingGroup),ws(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&U1(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return(this.U&1)!==0},set:function(a){var y=(this.U&1)!==0;if(y!==a){this.U^=1;var x=this.diagram;if(this.g("isTreeExpanded",y,a),y=this.treeExpandedChanged,y!==null){var E=!0;x!==null&&(E=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=E)}x!==null&&x.undoManager.isUndoingRedoing?this.Zb(a):a?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return(this.U&2)!==0},set:function(a){var y=(this.U&2)!==0;y!==a&&(this.U^=2,this.g("wasTreeExpanded",y,a))}},treeExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Vr:null},set:function(a){var y=this.treeExpandedChanged;y!==a&&(Dh(this),this.Ba.Vr=a,this.g("treeExpandedChanged",y,a))}},isTreeLeaf:{get:function(){return(this.U&4)!==0},set:function(a){var y=(this.U&4)!==0;y!==a&&(this.U^=4,this.g("isTreeLeaf",y,a))}}}),li.prototype.expandTree=li.prototype.expandTree,li.prototype.collapseTree=li.prototype.collapseTree,li.prototype.findTreeParts=li.prototype.wz,li.prototype.findTreeChildrenNodes=li.prototype.Ou,li.prototype.findTreeChildrenLinks=li.prototype.Qo,li.prototype.findTreeLevel=li.prototype.uz,li.prototype.findTreeParentChain=li.prototype.vz,li.prototype.findTreeParentNode=li.prototype.pg,li.prototype.findTreeParentLink=li.prototype.kh,li.prototype.findCommonTreeParent=li.prototype.gz,li.prototype.findTreeRoot=li.prototype.xz,li.prototype.isInTreeOf=li.prototype.Nz,li.prototype.findPort=li.prototype.ns,li.prototype.findLinksTo=li.prototype.kz,li.prototype.findLinksBetween=li.prototype.jz,li.prototype.findNodesInto=li.prototype.Oo,li.prototype.findNodesOutOf=li.prototype.Po,li.prototype.findNodesConnected=li.prototype.Mu,li.prototype.findLinksInto=li.prototype.Sd,li.prototype.findLinksOutOf=li.prototype.Mo,li.prototype.findExternalTreeLinksConnected=li.prototype.qx,li.prototype.invalidateConnectedLinks=li.prototype.Bd,li.prototype.invalidateLinkBundle=li.prototype.Lz;var kx=new Kt(li,"SpreadingNone",10),Y0=new Kt(li,"SpreadingEvenly",11),_v=new Kt(li,"SpreadingPacked",12);li.className="Node",li.SpreadingNone=kx,li.SpreadingEvenly=Y0,li.SpreadingPacked=_v;function Pr(a,y){a===void 0||a instanceof ka||typeof a=="string"?li.call(this,a):(li.call(this),a&&(y=a)),this.U|=4608,this.Gn=new Fn,this.$a=null,this.Sc=new ea,this.Sc.group=this,this.gl=new Fn,this.tb=this.$p=null,y&&Object.assign(this,y)}Zt(Pr,li),Pr.prototype.cloneProtected=function(a){li.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof As});y instanceof As?a.$a=y:a.$a=null,this.Sc!==null?(a.Sc=this.Sc.copy(),a.Sc.group=a):(a.Sc!==null&&(a.Sc.group=null),a.Sc=null),this.tb!==null&&(a.tb=this.tb.copy())},be=Pr.prototype,be.Af=function(a){li.prototype.Af.call(this,a);var y=a.Rj();for(a=a.memberParts;a.next();){var x=a.value;if(x.v(),x.C(8),x.Ej(),x instanceof li)x.Bd(y);else if(x instanceof Hn)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},be.gk=function(a,y,x,E,b,z,te){if(a===qo&&y==="elements"){if(b instanceof As)this.$a===null?this.$a=b:this.$a!==b&<("Cannot insert a second Placeholder into the visual tree of a Group.");else if(b instanceof On){var re=b.Nl(function(oe){return oe instanceof As});re instanceof As&&(this.$a===null?this.$a=re:this.$a!==re&<("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===ua&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof On&&this.$a.rg(E)&&(this.$a=null));li.prototype.gk.call(this,a,y,x,E,b,z,te)},be.Xl=function(a,y){li.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==On.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof On&&(a=a.Pb()),this.tb===null&&(this.tb=new pt),a.mi(this.tb),a instanceof Mr&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},be.eh=function(a,y,x,E){this.nf=this.$a,li.prototype.eh.call(this,a,y,x,E)},be.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof Hn||y.Va()}),li.prototype.Va.call(this)},be.si=function(){if(!li.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof li){if(y.isVisible()&&Cs(y))return!1}else if(y instanceof Hn&&y.isVisible()&&Cs(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Yv(a,y){if(a.Gn.add(y)){y instanceof Pr&&a.gl.add(y);var x=a.memberAdded;if(x!==null){var E=!0,b=a.diagram;b!==null&&(E=b.aa,b.aa=!0),x(a,y),b!==null&&(b.aa=E)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof Hn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Kv(a,y){if(a.Gn.remove(y)){y instanceof Pr&&a.gl.remove(y);var x=a.memberRemoved;if(x!==null){var E=!0,b=a.diagram;b!==null&&(E=b.aa,b.aa=!0),x(a,y),b!==null&&(b.aa=E)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof Hn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}be.Lj=function(){if(0<this.Gn.count){var a=this.diagram;if(a!==null)for(var y=this.Gn.copy().iterator;y.next();)a.remove(y.value)}li.prototype.Lj.call(this)},Pr.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=rn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Pr.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var E=!0;for(a=rn(a).iterator;a.next();){var b=a.value;!y||x.isValidMember(this,b)?b.containingGroup=this:E=!1}return E},Pr.prototype.canUngroup=function(){if(!this.ungroupable)return!1;var a=this.layer;return a===null||!a.allowUngroup?!1:(a=a.diagram,!!(a===null||a.allowUngroup))},be=Pr.prototype,be.Bd=function(a){var y=(this.U&65536)!==0;if(li.prototype.Bd.call(this,a),!y)for(!(this.U&65536)&&(this.U=this.U^65536),y=this.Lu();y.next();){var x=y.value;if(a===void 0||!a.contains(x)){var E=x.fromNode;E!==null&&E!==this&&E.Td(this)&&!E.isVisible()?($s(x.fromPort),$s(x.toPort),x.bb()):(E=x.toNode,E!==null&&E!==this&&E.Td(this)&&!E.isVisible()&&($s(x.fromPort),$s(x.toPort),x.bb()))}}},be.Lu=function(){var a=this.diagram!==null&&this.diagram.Pw;if(a&&this.$p!==null)return this.$p.iterator;var y=this.Rj();y.add(this);for(var x=new Fn,E=y.iterator;E.next();){var b=E.value;if(b instanceof li)for(b=b.linksConnected;b.next();){var z=b.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},be.iz=function(){var a=this.Rj();a.add(this);for(var y=new Fn,x=a.iterator;x.next();){var E=x.value;if(E instanceof li)for(E=E.linksConnected;E.next();){var b=E.value,z=b.fromNode;z===null||a.contains(z)&&z!==this||y.add(z),b=b.toNode,b===null||a.contains(b)&&b!==this||y.add(b)}}return y.iterator},be.hz=function(){function a(x,E){x!==null&&(E.add(x),a(x.containingGroup,E))}var y=new Fn;return a(this,y),y},be.Rj=function(){var a=new Fn;return hd(a,this,!0,0,!0),a.remove(this),a},be.Zb=function(a){li.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},Pr.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();eS(this,y,a,this),a.Ue=!1}};function eS(a,y,x,E){for(var b=a.memberParts;b.next();){var z=b.value;if(z.Zb(!1),z instanceof Pr&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,eS(z,y,x,E)),z instanceof li)z.Bd(y),x.Aj(z,E);else if(z instanceof Hn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}Pr.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();tS(this,y,a,this),a.Ue=!1}};function tS(a,y,x,E){for(var b=a.memberParts;b.next();){var z=b.value;if(z.Zb(!0),z instanceof Pr&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,tS(z,y,x,E)),z instanceof li)z.Bd(y),x.Cj(z,E);else if(z instanceof Hn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}Pr.prototype.move=function(a,y){y===void 0&&(y=!1);var x=y?this.location:this.position,E=x.x;x=x.y;var b=a.x,z=a.y;if(!(E===b||isNaN(E)&&isNaN(b))||!(x===z||isNaN(x)&&isNaN(z))){for(E=b-(isNaN(E)?0:E),x=z-(isNaN(x)?0:x),z=je.alloc(),li.prototype.move.call(this,a,y),a=new Fn,y=this.Rj().iterator;y.next();)b=y.value,b instanceof Hn&&(b.suspendsRouting&&a.add(b),b.fd||b.fromNode!==this&&b.toNode!==this)&&(b.suspendsRouting=!0);for(y.reset();y.next();)if(b=y.value,!(b.ph()||b instanceof li&&b.isLinkLabel)){var te=b.position,re=b.location;te.w()?(z.x=te.x+E,z.y=te.y+x,b.position=z):re.w()&&(z.x=re.x+E,z.y=re.y+x,b.location=z)}for(y.reset();y.next();)b=y.value,b instanceof Hn&&(b.suspendsRouting=a.contains(b),b.fd||b.fromNode!==this&&b.toNode!==this)&&(te=b.position,z.x=te.x+E,z.y=te.y+x,z.w()?b.move(z):b.bb(),Xv(b)&&b.bb());je.free(z)}},pn.Object.defineProperties(Pr.prototype,{placeholder:{get:function(){return this.$a}},computesBoundsAfterDrag:{get:function(){return(this.U&2048)!==0},set:function(a){var y=(this.U&2048)!==0;y!==a&&(this.U^=2048,this.g("computesBoundsAfterDrag",y,a))}},computesBoundsIncludingLinks:{get:function(){return(this.U&4096)!==0},set:function(a){var y=(this.U&4096)!==0;y!==a&&(this.U^=4096,this.g("computesBoundsIncludingLinks",y,a))}},computesBoundsIncludingLocation:{get:function(){return(this.U&8192)!==0},set:function(a){var y=(this.U&8192)!==0;y!==a&&(this.U^=8192,this.g("computesBoundsIncludingLocation",y,a))}},handlesDragDropForMembers:{get:function(){return(this.U&16384)!==0},set:function(a){var y=(this.U&16384)!==0;y!==a&&(this.U^=16384,this.g("handlesDragDropForMembers",y,a))}},memberParts:{get:function(){return this.Gn.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;if(y!==a){a!==null&&a.diagram!==null&&a.diagram.layout===a&<("A layout cannot be both the Diagram.layout and a Group.layout: "+a),y!==null&&(y.diagram=null,y.group=null),this.Sc=a;var x=this.diagram;a!==null&&(a.diagram=x,a.group=this),x!==null&&(x.xh=!0),this.g("layout",y,a),x!==null&&x.$b()}}},memberAdded:{get:function(){return this.Ba!==null?this.Ba.Mq:null},set:function(a){var y=this.memberAdded;y!==a&&(Dh(this),this.Ba.Mq=a,this.g("memberAdded",y,a))}},memberRemoved:{get:function(){return this.Ba!==null?this.Ba.Nq:null},set:function(a){var y=this.memberRemoved;y!==a&&(Dh(this),this.Ba.Nq=a,this.g("memberRemoved",y,a))}},memberValidation:{get:function(){return this.Ba!==null?this.Ba.ij:null},set:function(a){var y=this.memberValidation;y!==a&&(Dh(this),this.Ba.ij=a,this.g("memberValidation",y,a))}},ungroupable:{get:function(){return(this.U&256)!==0},set:function(a){var y=(this.U&256)!==0;y!==a&&(this.U^=256,this.g("ungroupable",y,a))}},isSubGraphExpanded:{get:function(){return(this.U&512)!==0},set:function(a){var y=(this.U&512)!==0;if(y!==a){this.U^=512;var x=this.diagram;if(this.g("isSubGraphExpanded",y,a),y=this.subGraphExpandedChanged,y!==null){var E=!0;x!==null&&(E=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=E)}x!==null&&x.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(b){b.updateAdornments()})):a?this.expandSubGraph():this.collapseSubGraph()}}},wasSubGraphExpanded:{get:function(){return(this.U&1024)!==0},set:function(a){var y=(this.U&1024)!==0;y!==a&&(this.U^=1024,this.g("wasSubGraphExpanded",y,a))}},subGraphExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Kr:null},set:function(a){var y=this.subGraphExpandedChanged;y!==a&&(Dh(this),this.Ba.Kr=a,this.g("subGraphExpandedChanged",y,a))}},rh:{get:function(){return(this.U&32768)!==0},set:function(a){(this.U&32768)!==0!==a&&(this.U^=32768)}}}),Pr.prototype.expandSubGraph=Pr.prototype.expandSubGraph,Pr.prototype.collapseSubGraph=Pr.prototype.collapseSubGraph,Pr.prototype.findSubGraphParts=Pr.prototype.Rj,Pr.prototype.findContainingGroupChain=Pr.prototype.hz,Pr.prototype.findExternalNodesConnected=Pr.prototype.iz,Pr.prototype.findExternalLinksConnected=Pr.prototype.Lu,Pr.prototype.ensureBounds=Pr.prototype.Va,Pr.className="Group";function As(a){Mt.call(this),this.yb=fr,this.ko=new pt(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Zt(As,Mt),As.prototype.cloneProtected=function(a){Mt.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},As.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return xi(0,0,y.width,y.height,a.x,a.y)},As.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Pr||a instanceof eo)||lt("Placeholder is not inside a Group or Adornment."),a instanceof Pr){var y=this.computeBorder(this.ko),x=this.minSize,E=this.dc;for(Vn(E,(isFinite(x.width)?Math.max(x.width,y.width):y.width)||0,(isFinite(x.height)?Math.max(x.height,y.height):y.height)||0),this.Ge(0,0,E.width,E.height),E=a.memberParts,x=!1;E.next();)if(E.value.isVisible()){x=!0;break}E=a.diagram,!x||E===null||E.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(x=je.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),je.free(x))}else{y=this.dc,x=this.yb,E=x.left+x.right;var b=x.top+x.bottom,z=a.adornedObject;a.angle=z.li();var te=0;z instanceof Mr&&(te=z.strokeWidth);var re=z.Df(),oe=z.naturalBounds,le=(oe.width+te)*re;te=(oe.height+te)*re,a.type!==On.Link&&(re=z.ga(a.category==="Selection"?Ii:a.locationSpot,je.alloc()),a.location=re,je.free(re)),isNaN(le)||isNaN(te)?(a=z.ga(Ii,je.alloc()),le=pt.allocAt(a.x,a.y,0,0),le.Ye(z.ga(ni,a)),le.Ye(z.ga(Wi,a)),le.Ye(z.ga(pr,a)),Vn(y,le.width+E||0,le.height+b||0),this.Ge(-x.left,-x.top,y.width,y.height),je.free(a),pt.free(le)):(Vn(y,le+E||0,te+b||0),this.Ge(-x.left,-x.top,y.width,y.height))}},As.prototype.eh=function(a,y,x,E){this.actualBounds.h(a,y,x,E)},As.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,E=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof Pr&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var b=x.toolManager.findTool("Dragging");if(b===x.currentTool&&(x=b.computeBorder(y,this.ko,a),x!==null))return x}x=pt.alloc(),b=this.computeMemberBounds(x);var z=this.yb;return y instanceof Pr&&!y.isSubGraphExpanded?a.h(b.x-z.left,b.y-z.top,0,0):a.h(b.x-z.left,b.y-z.top,Math.max(b.width+z.left+z.right,0),Math.max(b.height+z.top+z.bottom,0)),pt.free(x),E&&y instanceof Pr&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},As.prototype.computeMemberBounds=function(a){if(!(this.part instanceof Pr))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,E=1/0,b=-1/0,z=-1/0,te=y.memberParts;te.next();){var re=te.value;if(re.isVisible()){if(re instanceof Hn&&(!y.computesBoundsIncludingLinks||ll(re)||re.fromNode===y||re.toNode===y))continue;re=re.actualBounds,re.left<x&&(x=re.left),re.top<E&&(E=re.top),re.right>b&&(b=re.right),re.bottom>z&&(z=re.bottom)}}return isFinite(x)&&isFinite(E)?a.h(x,E,b-x,z-E):(y=y.location,a.h(y.x,y.y,0,0)),a},pn.Object.defineProperties(As.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new ri(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),As.className="Placeholder";function Hn(a){Xi.call(this,On.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Fs,this.Om=0,this.Qm=Fs,this.Rm=NaN,this.qj=qv,this.po=.5,this.wd=null,this.Nb=new An().freeze(),this.Tg=this.Mg=null,this.ml=new pt,this.ua=new Cn,this.u=this.o=this.Sf=this.Wf=null,this.su=new je,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Zt(Hn,Xi),Hn.prototype.cloneProtected=function(a){Xi.prototype.cloneProtected.call(this,a),a.Qa=this.Qa&-113,a.ff=this.ff,a.gn=this.gn,a.vf=this.vf,a.uo=this.uo,a.qk=this.qk,a.Om=this.Om,a.Qm=this.Qm,a.Rm=this.Rm,a.qj=this.qj,a.po=this.po,this.ba!==null&&(a.ba=this.ba.copy())},be=Hn.prototype,be.Af=function(a){Xi.prototype.Af.call(this,a),this.ff=a.ff,this.vf=a.vf,a.Mg=null,a.bb(),a.Sf=this.Sf;var y=a.fromPort;y!==null&&$s(y),a=a.toPort,a!==null&&$s(a)},be.qb=function(a){a.classType===Hn?(a.value&2)===2?this.routing=a:a===hl||a===Bh||a===Wf?this.curve=a:a===op||a===q0||a===$0?this.adjusting=a:a!==qv&&a!==Fs&<("Unknown Link enum value for a Link property: "+a):Xi.prototype.qb.call(this,a)},be.Xc=function(){this.ba===null&&(this.ba=new _g)},be.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Cs(a)||ld(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Cs(a)||ld(a)))},be.zv=function(){return!1},be.Av=function(){},be.Zc=function(){return!1},Hn.prototype.computeAngle=function(a,y,x){return Hn.computeAngle(y,x)},Hn.computeAngle=function(a,y){switch(a){default:case Fs:a=0;break;case ap:a=y;break;case sp:a=y+90;break;case lp:a=y-90;break;case $v:a=y+180;break;case em:a=St.bp(y),90<a&&270>a&&(a-=180);break;case up:a=St.bp(y+90),90<a&&270>a&&(a-=180);break;case hp:a=St.bp(y-90),90<a&&270>a&&(a-=180);break;case tm:if(a=St.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return St.bp(a)};function zf(a){var y=a.fromNode,x=a.toNode,E=null;if(y!==null?E=x!==null?y.px(x):y.containingGroup:x!==null?E=x.containingGroup:E=null,y=E,x=a.Ah,x!==y){x!==null&&Kv(x,a),a.Ah=y,y!==null&&Yv(y,a);var b=a.containingGroupChanged;if(b!==null){var z=!0,te=a.diagram;te!==null&&(z=te.aa,te.aa=!0),b(a,x,y),te!==null&&(te.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=E}be=Hn.prototype,be.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Xi.prototype.oh.call(this)},be.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},be.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function nS(a,y){a.wd===null&&(a.wd=new Fn),a.wd.add(y),a.v()}be.Vo=function(a){if(Xi.prototype.Vo.call(this,a),ec(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,V0(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||V0(x,this,E)}ip(this)}},be.Wo=function(a){if(Xi.prototype.Wo.call(this,a),ec(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,_0(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||_0(x,this,E)}rp(this)}},be.Lj=function(){if(this.fd=!0,this.wd!==null){var a=this.diagram;if(a!==null)for(var y=this.wd.copy().iterator;y.next();)a.remove(y.value)}this.data!==null&&(a=this.diagram,a!==null&&a.partManager.removeDataForLink(this))},Hn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Hn.prototype.move=function(a,y){var x=y?this.location:this.position,E=x.x;isNaN(E)&&(E=0);var b=x.y;for(isNaN(b)&&(b=0),E=a.x-E,b=a.y-b,y===!0?Xi.prototype.move.call(this,a,!1):(a=je.allocAt(x.x+E,x.y+b),Xi.prototype.move.call(this,a,!1),je.free(a)),kh(this,E,b),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+E,x.y+b)},Hn.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Hn.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Hn.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Yt),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),E=this.i(1);return a.h((x.x+E.x)/2,(x.y+E.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===hl))return this.ua.Pu(.5,a),a.add(this.i(0)),x=this.ua.figures.first(),a.offset(-x.startX,-x.startY),a;if(this.computeCurve()===hl){if(y===3){x=this.i(0),E=this.i(1);var b=this.i(2);return St.ax(x.x,x.y,E.x,E.y,E.x,E.y,b.x,b.y,a),a}if(E=(y-1)/3|0,x=3*(E/2|0),E%2===1){E=this.i(x),b=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),St.ax(E.x,E.y,b.x,b.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var te=this.flattenedLengths;for(x=this.flattenedTotalLength,b=z=E=0;E<x/2&&z<y&&(b=te[z],!(E+b>x/2));)E+=b,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(x/2-E)):a.h(y.x,y.y+(x/2-E)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-E),y.y):a.h(y.x+(x/2-E),y.y):(x=(x/2-E)/b,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},Hn.prototype.computeMidAngle=function(){var a=this.pointsCount;if(2>a)return NaN;if(a===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===hl))return this.ua.wx(.5);if(this.computeCurve()===hl&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var E=this.i(x+2);return x=this.i(x+3),St.My(a.x,a.y,y.x,y.y,E.x,E.y,x.x,x.y)}if(0<x&&x+1<a)return this.i(x-1).ab(this.i(x+1))}y=this.flattenedLengths,E=this.flattenedTotalLength;var b=0;x=0;for(var z;b<E/2&&x<a&&(z=y[x],!(b+z>E/2));)b+=z,x++;if(y=this.i(x),E=this.i(x+1),1>Math.abs(y.x-E.x)&&1>Math.abs(y.y-E.y)){if(0<x&&x+2<a)return this.i(x-1).ab(this.i(x+2))}else{if(1>Math.abs(y.x-E.x))return y.y>E.y?270:90;if(1>Math.abs(y.y-E.y))return y.x>E.x?180:0}return y.ab(E)},be=Hn.prototype,be.i=function(a){return this.Nb.s[a]},be.dd=function(a,y){this.Nb.cd(a,y)},be.L=function(a,y,x){this.Nb.cd(a,new je(y,x))},be.Kz=function(a,y){this.Nb.Gb(a,y)},be.m=function(a,y,x){this.Nb.Gb(a,new je(y,x))},be.ne=function(a){this.Nb.add(a)},be.yf=function(a,y){this.Nb.add(new je(a,y))},be.pv=function(a){this.Nb.mb(a)},be.Fj=function(){this.Nb.clear()};function kh(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var E=a.fd,b=new An,z=a.Nb.iterator;z.next();){var te=z.value;b.add(new je(te.x+y,te.y+x).freeze())}b.freeze(),z=a.Nb,a.Nb=b,te=a.diagram,isNaN(y)||isNaN(x)||te!==null&&te.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),ws(a)),E?K0(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),te!==null&&te.animationManager.zb&&df(te.animationManager,a,b),a.g("points",z,b)}}be.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},be.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,E=1/0,b=a.s,z=b.length,te=0;te<z;te++){var re=b[te];x=Math.min(re.x,x),E=Math.min(re.y,E)}re=te=1/0;for(var oe=y.s,le=oe.length,he=0;he<le;he++){var ge=oe[he];te=Math.min(ge.x,te),re=Math.min(ge.y,re),ge.freeze()}if(y.freeze(),le===z){for(z=0;z<le;z++)if(he=b[z],ge=oe[z],he.x-x!==ge.x-te||he.y-E!==ge.y-re){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&df(x.animationManager,this,y),K0(this),this.g("points",a,y)}},be.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function K0(a){a.Nb.count===0?a.fd=!1:(a.fd=!0,a.cq=null,a.vt=NaN,a.defaultFromPoint=a.i(0),a.defaultToPoint=a.i(a.pointsCount-1),J0(a,!1))}be.bb=function(){if(!this.suspendsRouting){var a=this.diagram;if(a){if(a.As.contains(this)||a.undoManager.isUndoingRedoing||(a=a.animationManager,a.isTicking&&!a.isAnimating))return;this.Tg===null||a.isTicking||(this.Tg=null)}a=this.path,a!==null&&(this.fd=!1,this.v(),a.v())}},be.vg=function(){if(!this.fd&&!this.computingPoints){var a=!0;try{this.computingPoints=!0,this.uh(),a=this.computePoints()}catch(y){this.computingPoints=!1,this.rv()}finally{this.computingPoints=!1,a?this.zf():this.rv()}}},Hn.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(jc||(jc=new li,jc.desiredSize=Pt,jc.Va()),this.defaultFromPoint&&(jc.location=this.defaultFromPoint,jc.Va(),y=a=jc)):y=this.fromPort,y!==null&&!a.isVisible()){var x=a.findVisibleNode();x!==null&&x!==a?(a=x,y=x.port):a=x}if(this.Lw=a,a===null||!a.location.w())return!1;for(;!(y===null||y.actualBounds.w()&&y.Ed());)y=y.panel;if(y===null)return!1;var E=this.toNode,b=null;if(E===null?(zc||(zc=new li,zc.desiredSize=Pt,zc.Va()),this.defaultToPoint&&(zc.location=this.defaultToPoint,zc.Va(),b=E=zc)):b=this.toPort,b===null||E.isVisible()||(x=E.findVisibleNode(),x!==null&&x!==E?(E=x,b=x.port):E=x),this.Mw=E,E===null||!E.location.w())return!1;for(;!(b===null||b.actualBounds.w()&&b.Ed());)b=b.panel;if(b===null)return!1;var z=this.pointsCount,te=this.computeSpot(!0,y);x=this.computeSpot(!1,b);var re=Zf(te),oe=Zf(x),le=y===b&&y!==null,he=this.isOrthogonal,ge=this.curve===hl;this.Wf=le&&!he?ge=!0:!1;var Se=this.computeAdjusting()===Fs||le;if(!he&&!le&&re&&oe){if(re=!1,!Se&&3<=z&&(Se=this.getLinkPoint(a,y,te,!0,!1,E,b),oe=this.getLinkPoint(E,b,x,!1,!1,a,y),re=this.adjustPoints(0,Se,z-1,oe))&&(Se=this.getLinkPoint(a,y,te,!0,!1,E,b),oe=this.getLinkPoint(E,b,x,!1,!1,a,y),this.adjustPoints(0,Se,z-1,oe)),!re)if(this.Fj(),ge){z=this.getLinkPoint(a,y,te,!0,!1,E,b),Se=this.getLinkPoint(E,b,x,!1,!1,a,y),re=Se.x-z.x,oe=Se.y-z.y,le=this.computeCurviness(),ge=he=0;var we=z.x+re/3,Ae=z.y+oe/3,Ne=we,$e=Ae;St.B(oe,0)?$e=0<re?$e-le:$e+le:(he=-re/oe,ge=Math.sqrt(le*le/(he*he+1)),0>le&&(ge=-ge),Ne=(0>oe?-1:1)*ge+we,$e=he*(Ne-we)+Ae),we=z.x+2*re/3,Ae=z.y+2*oe/3;var Ke=we,at=Ae;St.B(oe,0)?at=0<re?at-le:at+le:(Ke=(0>oe?-1:1)*ge+we,at=he*(Ke-we)+Ae),this.Fj(),this.ne(z),this.yf(Ne,$e),this.yf(Ke,at),this.ne(Se),this.dd(0,this.getLinkPoint(a,y,te,!0,!1,E,b)),this.dd(3,this.getLinkPoint(E,b,x,!1,!1,a,y))}else z=E,Se=b,E=this.getLinkPoint(a,y,te,!0,!1,z,Se),b=this.getLinkPoint(z,Se,x,!1,!1,a,y),this.hasCurviness()?(Se=b.x-E.x,x=b.y-E.y,te=this.computeCurviness(),a=E.x+Se/2,y=E.y+x/2,z=a,re=y,St.B(x,0)?re=0<Se?re-te:re+te:(Se=-Se/x,z=Math.sqrt(te*te/(Se*Se+1)),0>te&&(z=-z),z=(0>x?-1:1)*z+a,re=Se*(z-a)+y),this.ne(E),this.yf(z,re),this.ne(b)):(this.ne(E),this.ne(b),re=pt.alloc(),y.mi(re),oe=re.ca(b),Se.mi(re),le=re.ca(E),(oe||le)&&(te=y.ga(X0(te),new je),this.dd(0,this.getLinkPointFromPoint(a,y,te,b,!0,te)),x=Se.ga(X0(x),new je),this.dd(1,this.getLinkPointFromPoint(z,Se,x,E,!1,x))),pt.free(re))}else{ge=this.isAvoiding,Se&&(he&&ge||le)&&this.Fj();var dt=le?this.computeCurviness():0;ge=this.getLinkPoint(a,y,te,!0,he,E,b),we=Ne=Ae=0,(he||!re||le)&&($e=this.computeEndSegmentLength(a,y,te,!0),we=this.getLinkDirection(a,y,ge,te,!0,he,E,b),le&&(re||te.D(x)||!he&&te.x+x.x===1&&te.y+x.y===1)&&(we-=he?90:30,0>dt&&(we-=180)),0>we?we+=360:360<=we&&(we-=360),le&&($e+=Math.abs(dt)*(he?1:2)),we===0?Ae=$e:we===90?Ne=$e:we===180?Ae=-$e:we===270?Ne=-$e:(Ae=$e*Math.cos(we*Math.PI/180),Ne=$e*Math.sin(we*Math.PI/180)),te.Mc()&&le&&($e=y.ga(hi,je.alloc()),Ke=je.allocAt($e.x+1e3*Ae,$e.y+1e3*Ne),this.getLinkPointFromPoint(a,y,$e,Ke,!0,ge),je.free($e),je.free(Ke))),$e=this.getLinkPoint(E,b,x,!1,he,a,y);var ft=at=Ke=0;if(he||!oe||le){var wt=this.computeEndSegmentLength(E,b,x,!1);ft=this.getLinkDirection(E,b,$e,x,!1,he,a,y),le&&(oe||te.D(x)||!he&&te.x+x.x===1&&te.y+x.y===1)&&(ft+=he?0:30,0>dt&&(ft+=180)),0>ft?ft+=360:360<=ft&&(ft-=360),le&&(wt+=Math.abs(dt)*(he?1:2)),ft===0?Ke=wt:ft===90?at=wt:ft===180?Ke=-wt:ft===270?at=-wt:(Ke=wt*Math.cos(ft*Math.PI/180),at=wt*Math.sin(ft*Math.PI/180)),x.Mc()&&le&&(x=b.ga(hi,je.alloc()),te=je.allocAt(x.x+1e3*Ke,x.y+1e3*at),this.getLinkPointFromPoint(E,b,x,te,!1,$e),je.free(x),je.free(te))}x=ge,(he||!re||le)&&(x=new je(ge.x+Ae,ge.y+Ne)),te=$e,(he||!oe||le)&&(te=new je($e.x+Ke,$e.y+at)),!Se&&!he&&re&&3<z&&this.adjustPoints(0,ge,z-2,te)?this.dd(z-1,$e):!Se&&!he&&oe&&3<z&&this.adjustPoints(1,x,z-1,$e)?this.dd(0,ge):!Se&&(he?6<=z:4<z)&&this.adjustPoints(1,x,z-2,te)?(this.dd(0,ge),this.dd(z-1,$e)):(this.Fj(),this.ne(ge),(he||!re||le)&&this.ne(x),he&&this.addOrthoPoints(x,we,te,ft,a,E),(he||!oe||le)&&this.ne(te),this.ne($e))}return!0};function Uv(a,y){return Math.abs(y.x-a.x)>Math.abs(y.y-a.y)?(y.x>=a.x?y.x=a.x+9e9:y.x=a.x-9e9,y.y=a.y):(y.y>=a.y?y.y=a.y+9e9:y.y=a.y-9e9,y.x=a.x),y}Hn.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new je),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(b=a.findVisibleNode(),b!==null&&b!==a&&(y=b.port)),a=null,b=y.panel,b===null||b.se()||(b=b.panel),b===null){b=E.x,E=E.y;var te=x.x;x=x.y}else{a=b.oe,b=1/(a.m11*a.m22-a.m12*a.m21),te=a.m22*b;var re=-a.m12*b,oe=-a.m21*b,le=a.m11*b,he=b*(a.m21*a.dy-a.m22*a.dx),ge=b*(a.m12*a.dx-a.m11*a.dy);b=E.x*te+E.y*oe+he,E=E.x*re+E.y*le+ge,te=x.x*te+x.y*oe+he,x=x.x*re+x.y*le+ge}return y.Sj(b,E,te,x,z),a!==null&&z.transform(a),z};function U0(a,y){var x=y.Zn;return x===null&&(x=new Zc,x.port=y,x.node=y.part,y.Zn=x),hS(x,a)}Hn.prototype.getLinkPoint=function(a,y,x,E,b,z,te,re){if(re===void 0&&(re=new je),x.sb()&&!Zf(x))return y.ga(x,re),re;if(x.$c()){var oe=U0(this,y);if(oe!==null){if(re.assign(oe.Zo),b&&this.routing===rS){var le=U0(this,te);if(le!==null&&oe.Gl<le.Gl){oe=je.alloc(),le=je.alloc();var he=new pt(y.ga(Ii,oe),y.ga(ni,le)),ge=this.computeSpot(!E,te);a=this.getLinkPoint(z,te,ge,!E,b,a,y,le),(x.Hf(or)||x.Hf(br))&&a.y>=he.y&&a.y<=he.y+he.height?re.y=a.y:(x.Hf(Ui)||x.Hf(co))&&a.x>=he.x&&a.x<=he.x+he.width&&(re.x=a.x),je.free(oe),je.free(le)}}return re}}return x=y.ga(X0(x),je.alloc()),this.pointsCount>(b?6:2)?(te=E?this.i(1):this.i(this.pointsCount-2),b&&(te=Uv(x,te.copy()))):(oe=this.computeSpot(!E,te),z=je.alloc(),te=te.ga(X0(oe),z),b&&(te=Uv(x,te)),je.free(z)),this.getLinkPointFromPoint(a,y,x,te,E,re),je.free(x),re},Hn.prototype.getLinkDirection=function(a,y,x,E,b,z,te,re){e:if(E.sb())var oe=E.x>E.y?E.x>1-E.y?0:E.x<1-E.y?270:315:E.x<E.y?E.x>1-E.y?90:E.x<1-E.y?180:135:.5>E.x?225:.5<E.x?45:0;else{if(E.$c()&&(oe=U0(this,y),oe!==null))switch(oe.Nc){case 1:oe=270;break e;case 2:oe=180;break e;default:case 4:oe=0;break e;case 8:oe=90;break e}oe=y.ga(hi,je.alloc()),this.pointsCount>(z?6:2)?(re=b?this.i(1):this.i(this.pointsCount-2),re=z?Uv(oe,re.copy()):x):(x=je.alloc(),re=re.ga(hi,x),je.free(x)),x=Math.abs(re.x-oe.x)>Math.abs(re.y-oe.y)?re.x>=oe.x?0:180:re.y>=oe.y?90:270,je.free(oe),oe=x}return E.Mc()&&te.Td(a)&&(oe+=180,360<=oe&&(oe-=360)),Zf(E)||(a=y.li(),a===0)||(45<=a&&135>a?oe+=90:135<=a&&225>a?oe+=180:225<=a&&315>a&&(oe+=270),360<=oe&&(oe-=360)),oe},Hn.prototype.computeEndSegmentLength=function(a,y,x,E){return y!==null&&x.$c()&&(a=U0(this,y),a!==null)?a.Ju:(a=E?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=E?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},Hn.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=hi:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Eo?Fi:y)):(a=y||this.toPort,a===null?a=hi:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Eo?Fi:y)),a};function Zf(a){return a===Fi||a.x===.5&&a.y===.5}function X0(a){return a.x===.5&&a.y===.5?a:hi}Hn.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Fs&&4<this.pointsCount?this.computeMidPoint(new je):(a=y.Zn,a=a!==null?hS(a,this):null,a!==null?a.Zo:y.ga(hi))},Hn.prototype.computeShortLength=function(a){if(a){if(a=this.fromShortLength,isNaN(a)){var y=this.fromPort;y!==null&&(a=y.fromShortLength)}return isNaN(a)?0:a}return a=this.toShortLength,isNaN(a)&&(y=this.toPort,y!==null&&(a=y.toShortLength)),isNaN(a)?0:a},Hn.prototype.Cf=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var te=z;if(z===void 0&&(te=ui.alloc(),te.reset()),te.multiply(this.transform),this.fh(a,te))return yv(this,y,x,b),z===void 0&&ui.free(te),!0;if(this.Yc(a,te)){var re=!1;if(!this.isAtomic)for(var oe=this.O.s,le=oe.length;le--;){var he=oe[le];if(he.visible||he===this.locationObject){var ge=he.actualBounds,Se=this.naturalBounds;if(!(ge.x>Se.width||ge.y>Se.height||0>ge.x+ge.width||0>ge.y+ge.height)){if(ge=ui.alloc(),ge.set(te),he instanceof On)re=he.Cf(a,y,x,E,b,ge);else if(this.path===he){if(he instanceof Mr)if(re=a,Se=E,he.pickable===!1)re=!1;else if(ge.multiply(he.transform),Se)e:{var we=re,Ae=ge;if(he.fh(we,Ae))re=!0;else{if(Ae===void 0&&(Ae=he.transform,we.Re(he.actualBounds))){re=!0;break e}re=we.left,Se=we.right;var Ne=we.top;we=we.bottom;var $e=je.alloc(),Ke=je.alloc(),at=je.alloc(),dt=ui.alloc();dt.set(Ae),dt.bv(he.transform),dt.Vj(),Ke.x=Se,Ke.y=Ne,Ke.transform(dt),$e.x=re,$e.y=Ne,$e.transform(dt),Ae=!1,qd(he,$e,Ke,at)?Ae=!0:($e.x=Se,$e.y=we,$e.transform(dt),qd(he,$e,Ke,at)?Ae=!0:(Ke.x=re,Ke.y=we,Ke.transform(dt),qd(he,$e,Ke,at)?Ae=!0:($e.x=re,$e.y=Ne,$e.transform(dt),qd(he,$e,Ke,at)&&(Ae=!0)))),ui.free(dt),je.free($e),je.free(Ke),je.free(at),re=Ae}}else re=he.fh(re,ge)}else re=Oa(he,a,E,ge);re&&(Se=he,y!==null&&(Se=y(he)),Se&&(x===null||x(Se))&&b.add(Se)),ui.free(ge)}}}return z===void 0&&ui.free(te),re||this.background!==null||this.areaBackground!==null}return z===void 0&&ui.free(te),!1},Hn.prototype.computeCurve=function(){if(this.Wf===null){var a=this.fromPort,y=this.isOrthogonal;this.Wf=a!==null&&a===this.toPort&&!y}return this.Wf?hl:this.curve},Hn.prototype.computeCorner=function(){if(this.curve===hl)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Hn.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];if(b!==a&&!b.isPanelMain&&(b.segmentIndex===-1/0||isNaN(b.segmentIndex)))return b}for(a=this.labelNodes;a.next();)if(y=a.value,y.segmentIndex===-1/0||isNaN(y.segmentIndex))return y;return null},Hn.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=aS;a=Math.max(a,this.computeThickness());var y=this.fromPort,x=this.toPort;if(y!==null&&x!==null){var E=this.findMidLabel();if(E!==null){var b=E.naturalBounds,z=E.margin,te=isNaN(b.width)?30:b.width*E.scale+z.left+z.right;b=isNaN(b.height)?14:b.height*E.scale+z.top+z.bottom,E=E.segmentOrientation,E===ap||E===em||E===$v?a=Math.max(a,b):E===lp||E===hp||E===sp||E===up?a=Math.max(a,te):(y=y.ga(hi).ab(x.ga(hi))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*te)+Math.abs(Math.cos(y)*b)+1)),this.curve===hl&&(a*=1.333)}}return a},Hn.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===Fs&&x.bb()}},Hn.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=oS;var y=this.Sf;if(y!==null){for(var x=Bn(),E=0,b=y.links,z=0;z<b.length;z++){var te=b[z].computeSpacing();x.push(te),E+=te}for(E=-E/2,z=0;z<b.length;z++){if(b[z]===this){a=E+x[z]/2;break}E+=x[z]}y.Ds===this.fromNode&&(a=-a),Ot(x)}}return a},Hn.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},Hn.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},Hn.prototype.adjustPoints=function(a,y,x,E){var b=this.computeAdjusting();if(this.isOrthogonal){if(b===q0)return!1;b===$0&&(b=op)}switch(b){case q0:var z=this.i(a),te=this.i(x);if(!z.Xa(y)||!te.Xa(E)){b=z.x,z=z.y;var re=te.x-b,oe=te.y-z,le=Math.sqrt(re*re+oe*oe);if(!St.$(le,0)){if(St.$(re,0))var he=0>oe?-Math.PI/2:Math.PI/2;else he=Math.atan(oe/Math.abs(re)),0>re&&(he=Math.PI-he);te=y.x;var ge=y.y;re=E.x-te;var Se=E.y-ge;for(oe=Math.sqrt(re*re+Se*Se),St.$(re,0)?Se=0>Se?-Math.PI/2:Math.PI/2:(Se=Math.atan(Se/Math.abs(re)),0>re&&(Se=Math.PI-Se)),le=oe/le,he=Se-he,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),re=y.x-b,oe=y.y-z,y=Math.sqrt(re*re+oe*oe),St.$(y,0)||(St.$(re,0)?oe=0>oe?-Math.PI/2:Math.PI/2:(oe=Math.atan(oe/Math.abs(re)),0>re&&(oe=Math.PI-oe)),re=oe+he,y*=le,this.L(a,te+y*Math.cos(re),ge+y*Math.sin(re)));this.dd(x,E)}}return!0;case $0:if(z=this.i(a),ge=this.i(x),!z.Xa(y)||!ge.Xa(E)){b=z.x,z=z.y,te=ge.x,ge=ge.y,le=(te-b)*(te-b)+(ge-z)*(ge-z),re=y.x,he=y.y,oe=E.x,Se=E.y;var we=1;if(oe-re!==0){var Ae=(Se-he)/(oe-re);we=Math.sqrt(1+1/(Ae*Ae))}else Ae=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var Ne=y.x,$e=y.y,Ke=.5;le!==0&&(Ke=((b-Ne)*(b-te)+(z-$e)*(z-ge))/le);var at=b+Ke*(te-b),dt=z+Ke*(ge-z);y=Math.sqrt((Ne-at)*(Ne-at)+($e-dt)*($e-dt)),$e<Ae*(Ne-at)+dt&&(y=-y),0<Ae&&(y=-y),Ne=re+Ke*(oe-re),Ke=he+Ke*(Se-he),Ae!==0?(y=Ne+y/we,this.L(a,y,Ke-(y-Ne)/Ae)):this.L(a,Ne,Ke+y)}this.dd(x,E)}return!0;case op:e:{if(this.isOrthogonal&&(b=this.i(a),z=this.i(a+1),te=this.i(a+2),re=z.x,he=z.y,ge=re,le=he,St.B(b.y,z.y)?St.B(z.x,te.x)?he=y.y:St.B(z.y,te.y)&&(re=y.x):St.B(b.x,z.x)&&(St.B(z.y,te.y)?re=y.x:St.B(z.x,te.x)&&(he=y.y)),this.L(a+1,re,he),b=this.i(x),z=this.i(x-1),te=this.i(x-2),re=z.x,he=z.y,oe=re,Se=he,St.B(b.y,z.y)?St.B(z.x,te.x)?he=E.y:St.B(z.y,te.y)&&(re=E.x):St.B(b.x,z.x)&&(St.B(z.y,te.y)?re=E.x:St.B(z.x,te.x)&&(he=E.y)),this.L(x-1,re,he),Xv(this))){this.L(a+1,ge,le),this.L(x-1,oe,Se),x=!1;break e}this.dd(a,y),this.dd(x,E),x=!0}return x;default:return!1}},Hn.prototype.addOrthoPoints=function(a,y,x,E,b,z){0>y?y+=360:360<=y&&(y-=360),0>E?E+=360:360<=E&&(E-=360);var te=E;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,E=315<=E||45>E?0:45<=E&&135>E?90:135<=E&&225>E?180:270;var re=b.actualBounds.copy(),oe=z.actualBounds.copy();if(re.w()&&oe.w()){re.Bc(dp,dp),oe.Bc(dp,dp),re.Ye(a),oe.Ye(x);var le=je.alloc(),he=je.alloc();y===0?x.x>a.x||E===270&&x.y<a.y&&oe.right>a.x||E===90&&x.y>a.y&&oe.right>a.x?(le.h(x.x,a.y),he.h(x.x,(a.y+x.y)/2),E===180?(le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),he.x=le.x,he.y=x.y):E===270&&x.y<a.y||E===90&&x.y>a.y?(le.x=a.x<oe.left?this.computeMidOrthoPosition(a.x,a.y,oe.left,x.y,!1):a.x<oe.right&&(E===270&&a.y<oe.top||E===90&&a.y>oe.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):oe.right,he.x=le.x,he.y=x.y):E===0&&a.x<oe.left&&a.y>oe.top&&a.y<oe.bottom&&(le.x=a.x,le.y=a.y<x.y?Math.min(x.y,oe.top):Math.max(x.y,oe.bottom),he.y=le.y)):(le.h(a.x,x.y),he.h((a.x+x.x)/2,x.y),(E===180||E===90&&x.y<re.top||E===270&&x.y>re.bottom)&&(E===180&&(oe.ca(a)||re.ca(x))?le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(E===180||E===90)?le.y=this.computeMidOrthoPosition(a.x,re.top,x.x,Math.max(x.y,oe.bottom),!0):x.y>a.y&&(E===180||E===270)&&(le.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,oe.top),!0)),he.x=x.x,he.y=le.y),le.y>re.top&&le.y<re.bottom&&(x.x>=re.left&&x.x<=a.x||a.x<=oe.right&&a.x>=x.x?(E===90||E===270)&&(le.h(Math.max((a.x+x.x)/2,a.x),a.y),he.h(le.x,x.y)):(le.y=E===270||(E===0||E===180)&&x.y<a.y?Math.min(x.y,E===0?re.top:Math.min(re.top,oe.top)):Math.max(x.y,E===0?re.bottom:Math.max(re.bottom,oe.bottom)),he.x=x.x,he.y=le.y))):y===180?x.x<a.x||E===270&&x.y<a.y&&oe.left<a.x||E===90&&x.y>a.y&&oe.left<a.x?(le.h(x.x,a.y),he.h(x.x,(a.y+x.y)/2),E===0?(le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),he.x=le.x,he.y=x.y):E===270&&x.y<a.y||E===90&&x.y>a.y?(le.x=a.x>oe.right?this.computeMidOrthoPosition(a.x,a.y,oe.right,x.y,!1):a.x>oe.left&&(E===270&&a.y<oe.top||E===90&&a.y>oe.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):oe.left,he.x=le.x,he.y=x.y):E===180&&a.x>oe.right&&a.y>oe.top&&a.y<oe.bottom&&(le.x=a.x,le.y=a.y<x.y?Math.min(x.y,oe.top):Math.max(x.y,oe.bottom),he.y=le.y)):(le.h(a.x,x.y),he.h((a.x+x.x)/2,x.y),(E===0||E===90&&x.y<re.top||E===270&&x.y>re.bottom)&&(E===0&&(oe.ca(a)||re.ca(x))?le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(E===0||E===90)?le.y=this.computeMidOrthoPosition(a.x,re.top,x.x,Math.max(x.y,oe.bottom),!0):x.y>a.y&&(E===0||E===270)&&(le.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,oe.top),!0)),he.x=x.x,he.y=le.y),le.y>re.top&&le.y<re.bottom&&(x.x<=re.right&&x.x>=a.x||a.x>=oe.left&&a.x<=x.x?(E===90||E===270)&&(le.h(Math.min((a.x+x.x)/2,a.x),a.y),he.h(le.x,x.y)):(le.y=E===270||(E===0||E===180)&&x.y<a.y?Math.min(x.y,E===180?re.top:Math.min(re.top,oe.top)):Math.max(x.y,E===180?re.bottom:Math.max(re.bottom,oe.bottom)),he.x=x.x,he.y=le.y))):y===90?x.y>a.y||E===180&&x.x<a.x&&oe.bottom>a.y||E===0&&x.x>a.x&&oe.bottom>a.y?(le.h(a.x,x.y),he.h((a.x+x.x)/2,x.y),E===270?(le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),he.x=x.x,he.y=le.y):E===180&&x.x<a.x||E===0&&x.x>a.x?(le.y=a.y<oe.top?this.computeMidOrthoPosition(a.x,a.y,x.x,oe.top,!0):a.y<oe.bottom&&(E===180&&a.x<oe.left||E===0&&a.x>oe.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):oe.bottom,he.x=x.x,he.y=le.y):E===90&&a.y<oe.top&&a.x>oe.left&&a.x<oe.right&&(le.x=a.x<x.x?Math.min(x.x,oe.left):Math.max(x.x,oe.right),le.y=a.y,he.x=le.x)):(le.h(x.x,a.y),he.h(x.x,(a.y+x.y)/2),(E===270||E===0&&x.x<re.left||E===180&&x.x>re.right)&&(E===270&&(oe.ca(a)||re.ca(x))?le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(E===270||E===0)?le.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(x.x,oe.right),x.y,!1):x.x>a.x&&(E===270||E===180)&&(le.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,oe.left),x.y,!1)),he.x=le.x,he.y=x.y),le.x>re.left&&le.x<re.right&&(x.y>=re.top&&x.y<=a.y||a.y<=oe.bottom&&a.y>=x.y?(E===0||E===180)&&(le.h(a.x,Math.max((a.y+x.y)/2,a.y)),he.h(x.x,le.y)):(le.x=E===180||(E===90||E===270)&&x.x<a.x?Math.min(x.x,E===90?re.left:Math.min(re.left,oe.left)):Math.max(x.x,E===90?re.right:Math.max(re.right,oe.right)),he.x=le.x,he.y=x.y))):x.y<a.y||E===180&&x.x<a.x&&oe.top<a.y||E===0&&x.x>a.x&&oe.top<a.y?(le.h(a.x,x.y),he.h((a.x+x.x)/2,x.y),E===90?(le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),he.x=x.x,he.y=le.y):E===180&&x.x<a.x||E===0&&x.x>=a.x?(le.y=a.y>oe.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,oe.bottom,!0):a.y>oe.top&&(E===180&&a.x<oe.left||E===0&&a.x>oe.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):oe.top,he.x=x.x,he.y=le.y):E===270&&a.y>oe.bottom&&a.x>oe.left&&a.x<oe.right&&(le.x=a.x<x.x?Math.min(x.x,oe.left):Math.max(x.x,oe.right),le.y=a.y,he.x=le.x)):(le.h(x.x,a.y),he.h(x.x,(a.y+x.y)/2),(E===90||E===0&&x.x<re.left||E===180&&x.x>re.right)&&(E===90&&(oe.ca(a)||re.ca(x))?le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(E===90||E===0)?le.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(x.x,oe.right),x.y,!1):x.x>a.x&&(E===90||E===180)&&(le.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,oe.left),x.y,!1)),he.x=le.x,he.y=x.y),le.x>re.left&&le.x<re.right&&(x.y<=re.bottom&&x.y>=a.y||a.y>=oe.top&&a.y<=x.y?(E===0||E===180)&&(le.h(a.x,Math.min((a.y+x.y)/2,a.y)),he.h(x.x,le.y)):(le.x=E===180||(E===90||E===270)&&x.x<a.x?Math.min(x.x,E===270?re.left:Math.min(re.left,oe.left)):Math.max(x.x,E===270?re.right:Math.max(re.right,oe.right)),he.x=le.x,he.y=x.y)));var ge=x;if(this.isAvoiding){var Se=this.diagram;if(Se===null||b===z||this.layer.isTemporary||!xf(Se)||re.ca(ge)&&!z.Td(b)||oe.ca(a)&&!b.Td(z))y=!1;else{var we=Pf(Se,!0,this.containingGroup,null);if(this.segmentIndex!==17&&we.Yj(Math.min(a.x,le.x),Math.min(a.y,le.y),Math.abs(a.x-le.x),Math.abs(a.y-le.y))&&we.Yj(Math.min(le.x,he.x),Math.min(le.y,he.y),Math.abs(le.x-he.x),Math.abs(le.y-he.y))&&we.Yj(Math.min(he.x,ge.x),Math.min(he.y,ge.y),Math.abs(he.x-ge.x),Math.abs(he.y-ge.y)))y=!1;else{b=a,z=ge;var Ae=x=null;if(Se.isVirtualized){Se=we.bounds.copy(),Se.Bc(-we.Ho,-we.Go);var Ne=je.alloc();Hf(we,a.x,a.y)||(St.Ff(Se.x,Se.y,Se.x+Se.width,Se.y+Se.height,a.x,a.y,le.x,le.y,Ne)?(x=a=Ne.copy(),y=Ne.ab(le)):St.Ff(Se.x,Se.y,Se.x+Se.width,Se.y+Se.height,le.x,le.y,he.x,he.y,Ne)?(x=a=Ne.copy(),y=Ne.ab(he)):St.Ff(Se.x,Se.y,Se.x+Se.width,Se.y+Se.height,he.x,he.y,ge.x,ge.y,Ne)&&(x=a=Ne.copy(),y=Ne.ab(ge))),Hf(we,ge.x,ge.y)||(St.Ff(Se.x,Se.y,Se.x+Se.width,Se.y+Se.height,ge.x,ge.y,he.x,he.y,Ne)?(Ae=ge=Ne.copy(),E=he.ab(Ne)):St.Ff(Se.x,Se.y,Se.x+Se.width,Se.y+Se.height,he.x,he.y,le.x,le.y,Ne)?(Ae=ge=Ne.copy(),E=le.ab(Ne)):St.Ff(Se.x,Se.y,Se.x+Se.width,Se.y+Se.height,le.x,le.y,a.x,a.y,Ne)&&(Ae=ge=Ne.copy(),E=a.ab(Ne))),je.free(Ne)}re=re.copy().ed(oe),re.Bc(we.Ho*we.Os,we.Go*we.Os),lS(we,a,y,ge,E,re,!0),oe=Zu(we,ge.x,ge.y),!we.abort&&oe>=Gf&&(sS(we),re.Bc(we.Ho*we.Hx,we.Go*we.Ix),lS(we,a,y,ge,E,re,!1),oe=Zu(we,ge.x,ge.y)),!we.abort&&oe<Gf&&Zu(we,ge.x,ge.y)!==Nh?(Qv(this,we,ge.x,ge.y,E,!0,te),re=this.i(2),4>this.pointsCount?(y===0||y===180?(re.x=a.x,re.y=ge.y):(re.x=ge.x,re.y=a.y),this.L(2,re.x,re.y),this.m(3,re.x,re.y)):(te=this.i(3),y===0||y===180?St.B(re.x,te.x)?(re=y===0?Math.max(re.x,a.x):Math.min(re.x,a.x),this.L(2,re,a.y),this.L(3,re,te.y)):St.B(re.y,te.y)?(Math.abs(a.y-re.y)<=we.Go/2&&(this.L(2,re.x,a.y),this.L(3,te.x,a.y)),this.m(2,re.x,a.y)):this.L(2,a.x,re.y):(y===90||y===270)&&(St.B(re.y,te.y)?(re=y===90?Math.max(re.y,a.y):Math.min(re.y,a.y),this.L(2,a.x,re),this.L(3,te.x,re)):St.B(re.x,te.x)?(Math.abs(a.x-re.x)<=we.Ho/2&&(this.L(2,a.x,re.y),this.L(3,a.x,te.y)),this.m(2,a.x,re.y)):this.L(2,re.x,a.y))),x!==null&&(a=this.i(1),te=this.i(2),a.x!==te.x&&a.y!==te.y?y===0||y===180?this.m(2,a.x,te.y):this.m(2,te.x,a.y):y===0||y===180?this.m(2,b.x,x.y):this.m(2,x.x,b.y)),Ae!==null&&(E===0||E===180?this.yf(z.x,Ae.y):this.yf(Ae.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(le.copy()),this.ne(he.copy())),je.free(le),je.free(he)}},Hn.prototype.computeMidOrthoPosition=function(a,y,x,E,b){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),b?(y+E)/2+z:(a+x)/2+z};function Xv(a){if(a.diagram===null||!a.isAvoiding||!xf(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=Pf(a.diagram,!0,a.containingGroup,null);for(var E=1;E<x-2;E++){var b=y[E],z=y[E+1];if(!a.Yj(Math.min(b.x,z.x),Math.min(b.y,z.y),Math.abs(b.x-z.x),Math.abs(b.y-z.y)))return!0}return!1}function Qv(a,y,x,E,b,z,te){var re=y.Ho,oe=y.Go,le=Zu(y,x,E),he=x,ge=E;for(b===0?he+=re:b===90?ge+=oe:b===180?he-=re:ge-=oe,b!==te&&le>tc&&Zu(y,he,ge)!==le-1&&(Zu(y,x-re,E)===le-1?(b=180,he=x-re,ge=E):Zu(y,x+re,E)===le-1?(b=0,he=x+re,ge=E):Zu(y,x,E-oe)===le-1?(b=270,he=x,ge=E-oe):Zu(y,x,E+oe)===le-1&&(b=90,he=x,ge=E+oe));le>tc&&Zu(y,he,ge)===le-1;)x=he,E=ge,b===0?he+=re:b===90?ge+=oe:b===180?he-=re:ge-=oe,--le;z?le>tc&&(b===180||b===0?x=Math.floor(x/re)*re+re/2:(b===90||b===270)&&(E=Math.floor(E/oe)*oe+oe/2)):(x=Math.floor(x/re)*re+re/2,E=Math.floor(E/oe)*oe+oe/2),le>tc&&(z=b,te=x,he=E,b===0?(z=90,he+=oe):b===90?(z=180,te-=re):b===180?(z=270,he-=oe):b===270&&(z=0,te+=re),Zu(y,te,he)===le-1?Qv(a,y,te,he,z,!1,z):(te=x,he=E,b===0?(z=270,he-=oe):b===90?(z=0,te+=re):b===180?(z=90,he+=oe):b===270&&(z=180,te-=re),Zu(y,te,he)===le-1&&Qv(a,y,te,he,z,!1,z))),a.yf(x,E)}Hn.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),E=this.i(1),b=dn(y,a,x.x,x.y,E.x,E.y),z=0,te=1;te<this.pointsCount-1;te++){x=this.i(te+1);var re=dn(y,a,E.x,E.y,x.x,x.y);E=x,re<b&&(z=te,b=re)}return z},Hn.prototype.qc=function(){this.lk=!1,this.v()},Hn.prototype.Ul=function(a){if(!(!a&&(this.fd===!1||(a=this.Pb(),this.lk&&(a===null||a.geometry!==null))))&&(2>this.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];b!==a&&b.isPanelMain&&b instanceof Mr&&(b.ua=this.ua)}}},Hn.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,E=this.diagram;E!==null&&ec(this)&&E.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(E.animationManager.isAnimating||E.currentTool!==E.toolManager)&&(x=!0);var b=this.i(0).copy(),z=b.copy();E=this.Nb.s;var te=this.computeCurve();if(te===hl&&3<=y&&!St.$(this.smoothness,0))if(y===3){var re=this.i(1);E=Math.min(b.x,re.x);var oe=Math.min(b.y,re.y);re=this.i(2),E=Math.min(E,re.x),oe=Math.min(oe,re.y)}else{if(this.isOrthogonal)for(oe=0;oe<y;oe++)re=E[oe],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);else for(E=3;E<y;E+=3)E+3>=y&&(E=y-1),oe=this.i(E),z.x=Math.min(oe.x,z.x),z.y=Math.min(oe.y,z.y);E=z.x,oe=z.y}else{for(oe=0;oe<y;oe++)re=E[oe],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);E=z.x,oe=z.y}if(E-=this.su.x,oe-=this.su.y,b.x-=E,b.y-=oe,y!==2||ec(this)){if(a.type=Cn.o,re=N1(a),this.computeShortLength(!0)!==0&&(b=Ic(this,b,!0,z)),jf(re,b.x,b.y,!1),te===hl&&3<=y&&!St.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-E,x=x.y-oe,b=this.i(2).copy(),b.x-=E,b.y-=oe,this.computeShortLength(!1)!==0&&(b=Ic(this,b,!1,z)),Lh(re,y,x,y,x,b.x,b.y);else if(this.isOrthogonal){y=je.allocAt(E,oe),x=je.alloc(),x.assign(this.i(1)),z=je.allocAt(E,oe),b=je.allocAt(E,oe),te=this.i(0);for(var le,he=this.smoothness/3,ge=1;ge<this.pointsCount-1;ge++){le=this.i(ge);var Se=te,we=le,Ae=this.i(Jv(this,le,ge,!1));if((!St.$(Se.x,we.x)||!St.$(we.x,Ae.x))&&(!St.$(Se.y,we.y)||!St.$(we.y,Ae.y))){var Ne=he;isNaN(Ne)&&(Ne=this.smoothness/3);var $e=Se.x;Se=Se.y;var Ke=we.x;we=we.y;var at=Ae.x;Ae=Ae.y;var dt=Ne*Q0($e,Se,Ke,we);Ne*=Q0(Ke,we,at,Ae),St.$(Se,we)&&St.$(Ke,at)&&(Ke>$e?Ae>we?(z.x=Ke-dt,z.y=we-dt,b.x=Ke+Ne,b.y=we+Ne):(z.x=Ke-dt,z.y=we+dt,b.x=Ke+Ne,b.y=we-Ne):Ae>we?(z.x=Ke+dt,z.y=we-dt,b.x=Ke-Ne,b.y=we+Ne):(z.x=Ke+dt,z.y=we+dt,b.x=Ke-Ne,b.y=we-Ne)),St.$($e,Ke)&&St.$(we,Ae)&&(we>Se?(at>Ke?(z.x=Ke-dt,z.y=we-dt,b.x=Ke+Ne):(z.x=Ke+dt,z.y=we-dt,b.x=Ke-Ne),b.y=we+Ne):(at>Ke?(z.x=Ke-dt,z.y=we+dt,b.x=Ke+Ne):(z.x=Ke+dt,z.y=we+dt,b.x=Ke-Ne),b.y=we-Ne)),(St.$($e,Ke)&&St.$(Ke,at)||St.$(Se,we)&&St.$(we,Ae))&&($e=.5*($e+at),Se=.5*(Se+Ae),z.x=$e,z.y=Se,b.x=$e,b.y=Se),(ge===1||ge===2&&St.$(te.x,this.i(0).x)&&St.$(te.y,this.i(0).y))&&(x.x=.5*(te.x+le.x),x.y=.5*(te.y+le.y)),Lh(re,x.x-E,x.y-oe,z.x-E,z.y-oe,le.x-E,le.y-oe),y.set(z),x.set(b),te=le}}le=te.x,te=te.y,he=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(he=Ic(this,he.copy(),!1,Qn)),le=.5*(le+he.x),te=.5*(te+he.y),Lh(re,b.x-E,b.y-oe,le-E,te-oe,he.x-E,he.y-oe),je.free(y),je.free(x),je.free(z),je.free(b)}else for(x=3;x<y;x+=3)z=this.i(x-2),x+3>=y&&(x=y-1),b=this.i(x-1),te=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(te=Ic(this,te.copy(),!1,Qn)),Lh(re,z.x-E,z.y-oe,b.x-E,b.y-oe,te.x-E,te.y-oe);else{for(z=je.alloc(),z.assign(this.i(0)),b=je.alloc(),b.assign(z),te=this.computeCorner(),ge=1,le=0;ge<y;){if(ge=Jv(this,z,ge,1<ge),he=this.i(ge),ge>=y-1){if(!z.D(he))this.computeShortLength(!1)!==0&&(he=Ic(this,he.copy(),!1,Qn)),Rc(this,re,-E,-oe,z,he,x);else if(le===0)for(ge=1;ge<y;)b.assign(z),he=this.i(ge++),Rc(this,re,-E,-oe,z,he,x),z.assign(he);break}if(le=Jv(this,he,ge+1,ge<y-3),ge=-E,$e=-oe,Se=he,Ke=this.i(le),Ne=x,St.B(z.y,Se.y)&&St.B(Se.x,Ke.x))if(Ae=Math.min(te,Math.abs(Se.x-b.x)/2),Ae=dt=Math.min(Ae,Math.abs(Ke.y-Se.y)/2),St.B(Ae,0))Rc(this,re,ge,$e,z,Se,Ne),z.assign(Se);else{var ft=Se.x,wt=Se.y;we=ft,at=wt,Se.x>z.x?ft=Se.x-Ae:ft=Se.x+Ae,Ke.y>Se.y?at=Se.y+dt:at=Se.y-dt,Ke=je.allocAt(ft,wt),Rc(this,re,ge,$e,z,Ke,Ne),je.free(Ke),Z0(re,Se.x+ge,Se.y+$e,we+ge,at+$e),z.h(we,at)}else St.B(z.x,Se.x)&&St.B(Se.y,Ke.y)?(Ae=Math.min(te,Math.abs(Se.y-b.y)/2),Ae=dt=Math.min(Ae,Math.abs(Ke.x-Se.x)/2),St.B(dt,0)?(Rc(this,re,ge,$e,z,Se,Ne),z.assign(Se)):(ft=Se.x,wt=Se.y,we=ft,at=wt,Se.y>z.y?wt=Se.y-Ae:wt=Se.y+Ae,Ke.x>Se.x?we=Se.x+dt:we=Se.x-dt,Ke=je.allocAt(ft,wt),Rc(this,re,ge,$e,z,Ke,Ne),je.free(Ke),Z0(re,Se.x+ge,Se.y+$e,we+ge,at+$e),z.h(we,at))):(Rc(this,re,ge,$e,z,Se,Ne),z.assign(Se));b.assign(he),ge=le}je.free(z)}W0=re}else re=this.i(1).copy(),re.x-=E,re.y-=oe,this.computeShortLength(!0)!==0&&(b=Ic(this,b,!0,z)),this.computeShortLength(!1)!==0&&(re=Ic(this,re,!1,z)),a.type=Cn.j,a.startX=b.x,a.startY=b.y,a.endX=re.x,a.endY=re.y;return this.lk=!0,a};function Q0(a,y,x,E){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=E-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),St.$(a,0)?y:St.$(y,0)?a:Math.sqrt(a*a+y*y)))}function Ic(a,y,x,E){var b=a.pointsCount;if(2>b)return y;if(x){var z=a.i(1);if(x=z.x-E.x,z=z.y-E.y,E=Q0(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!0),a>b&&(a=b),b=a*(z-y.y)/E,y.x+=a*(x-y.x)/E,y.y+=b}else{if(z=a.i(b-2),x=z.x-E.x,z=z.y-E.y,E=Q0(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!1),a>b&&(a=b),b=a*(y.y-z)/E,y.x-=a*(y.x-x)/E,y.y-=b}return y}function Jv(a,y,x,E){for(var b=a.pointsCount,z=y;St.$(y.x,z.x)&&St.$(y.y,z.y);){if(x>=b)return b-1;z=a.i(x++)}if(!St.$(y.x,z.x)&&!St.$(y.y,z.y))return x-1;for(var te=z;St.$(y.x,z.x)&&St.$(z.x,te.x)&&(!E||(y.y>=z.y?z.y>=te.y:z.y<=te.y))||St.$(y.y,z.y)&&St.$(z.y,te.y)&&(!E||(y.x>=z.x?z.x>=te.x:z.x<=te.x));){if(x>=b)return b-1;te=a.i(x++)}return x-2}Hn.prototype.computeJumpLength=function(){return 10};function Rc(a,y,x,E,b,z,te){if(!te&&ec(a)){te=a.computeJumpLength();var re=te/2,oe=[],le=0;if(a.isVisible()&&(le=Bx(a,b,z,oe)),0<le){if(St.B(b.y,z.y))if(b.x<z.x)for(var he=0;he<le;){var ge=Math.max(b.x,Math.min(oe[he++]-re,z.x-te));y.lineTo(ge+x,z.y+E);for(var Se=ge+x,we=Math.min(ge+te,z.x);he<le&&(ge=oe[he],ge<we+te);)he++,we=Math.min(ge+re,z.x);ge=z.y-te+E,we+=x;var Ae=z.y+E;a.curve===Bh?jf(y,we,Ae,!1):Lh(y,Se,ge,we,ge,we,Ae)}else for(--le;0<=le;){for(he=Math.min(b.x,Math.max(oe[le--]+re,z.x+te)),y.lineTo(he+x,z.y+E),Se=he+x,ge=Math.max(he-te,z.x);0<=le&&(he=oe[le],he>ge-te);)le--,ge=Math.max(he-re,z.x);he=z.y-te+E,ge+=x,we=z.y+E,a.curve===Bh?jf(y,ge,we,!1):Lh(y,Se,he,ge,he,ge,we)}else if(St.B(b.x,z.x))if(b.y<z.y)for(he=0;he<le;){for(ge=Math.max(b.y,Math.min(oe[he++]-re,z.y-te)),y.lineTo(z.x+x,ge+E),Se=ge+E,ge=Math.min(ge+te,z.y);he<le&&(we=oe[he],we<ge+te);)he++,ge=Math.min(we+re,z.y);we=z.x-te+x,Ae=z.x+x,ge+=E,a.curve===Bh?jf(y,Ae,ge,!1):Lh(y,we,Se,we,ge,Ae,ge)}else for(--le;0<=le;){for(he=Math.min(b.y,Math.max(oe[le--]+re,z.y+te)),y.lineTo(z.x+x,he+E),Se=he+E,he=Math.max(he-te,z.y);0<=le&&(ge=oe[le],ge>he-te);)le--,he=Math.max(ge-re,z.y);ge=z.x-te+x,we=z.x+x,he+=E,a.curve===Bh?jf(y,we,he,!1):Lh(y,ge,Se,ge,he,we,he)}}}y.lineTo(z.x+x,z.y+E)}function Bx(a,y,x,E){var b=a.diagram;if(b===null||y.D(x))return 0;for(b=b.layers;b.next();){var z=b.value;if(z!==null&&z.visible){z=z.Pa.s;for(var te=z.length,re=0;re<te;re++){var oe=z[re];if(oe instanceof Hn){if(oe===a)return 0<E.length&&E.sort(function(he,ge){return he-ge}),E.length;if(oe.isVisible()&&ec(oe)){var le=oe.routeBounds;le.w()&&a.routeBounds.Yc(le)&&!a.usesSamePort(oe)&&(le=oe.path,le!==null&&le.Ed()&&Nx(y,x,E,oe))}}}}}return 0<E.length&&E.sort(function(he,ge){return he-ge}),E.length}function Nx(a,y,x,E){for(var b=St.B(a.y,y.y),z=E.pointsCount,te=E.i(0),re=je.alloc(),oe=1;oe<z;oe++){var le=E.i(oe);if(oe<z-1){var he=E.i(oe+1);if(te.y===le.y&&le.y===he.y){if(le.x>te.x&&he.x>=le.x||le.x<te.x&&he.x<=le.x)continue}else if(te.x===le.x&&le.x===he.x&&(le.y>te.y&&he.y>=le.y||le.y<te.y&&he.y<=le.y))continue}e:{he=a.x;var ge=a.y,Se=y.x,we=y.y,Ae=te.x;te=te.y;var Ne=le.x,$e=le.y;if(St.B(he,Se)){if(!St.B(ge,we)&&St.B(te,$e)&&Math.min(ge,we)<te&&Math.max(ge,we)>te&&Math.min(Ae,Ne)<he&&Math.max(Ae,Ne)>he&&!St.B(Ae,Ne)){re.x=he,re.y=te,he=!0;break e}}else if(St.B(ge,we)&&St.B(Ae,Ne)&&Math.min(he,Se)<Ae&&Math.max(he,Se)>Ae&&Math.min(te,$e)<ge&&Math.max(te,$e)>ge&&!St.B(te,$e)){re.x=Ae,re.y=ge,he=!0;break e}re.x=0,re.y=0,he=!1}he&&(b?x.push(re.x):x.push(re.y)),te=le}je.free(re)}function ec(a){return a=a.curve,a===Wf||a===Bh}function J0(a,y){(y||ec(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}Hn.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var E=!1;for(x=x.layers;x.next();){var b=x.value;if(b.visible){if(b===y){E=!0;var z=!1;b=b.Pa.s;for(var te=b.length,re=0;re<te;re++){var oe=b[re];oe instanceof Hn&&(oe===this?z=!0:z&&iS(this,oe,a))}}else if(E)for(z=b.Pa.s,b=z.length,te=0;te<b;te++)re=z[te],re instanceof Hn&&iS(this,re,a)}}}}};function iS(a,y,x){if(y!==null&&y.lk&&y.fd&&ec(y)){var E=y.routeBounds;E.w()&&(a.routeBounds.Yc(E)||x.Yc(E))&&(a.usesSamePort(y)||y.qc())}}Hn.prototype.usesSamePort=function(a){var y=this.pointsCount,x=a.pointsCount;if(0<y&&0<x){var E=this.i(0),b=a.i(0);if(E.Xa(b)||(y=this.i(y-1),a=a.i(x-1),y.Xa(a)||E.Xa(a)||y.Xa(b)))return!0}else if(this.fromNode===a.fromNode||this.toNode===a.toNode||this.fromNode===a.toNode||this.toNode===a.fromNode)return!0;return!1},Hn.prototype.isVisible=function(){if(!Xi.prototype.isVisible.call(this))return!1;var a=this.containingGroup,y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this.fromNode,x!==null){if(this.isTreeLink&&y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(var E=x;E!==null;){if(E.labeledLink===this)return!0;E=E.containingGroup}if(x=x.findVisibleNode(),x===null||x===a)return!1}if(x=this.toNode,x!==null){if(this.isTreeLink&&!y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(y=x;y!==null;){if(y.labeledLink===this)return!0;y=y.containingGroup}if(y=x.findVisibleNode(),y===null||y===a)return!1}return!0},Hn.prototype.Zb=function(a){if(Xi.prototype.Zb.call(this,a),a&&J0(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},Hn.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?op:this.qk};function ip(a){var y=a.ef;if(y!==null){var x=a.uf;if(x!==null&&isNaN(a.curviness)){for(var E=a.ff,b=a.vf,z=a=null,te=y.jb.s,re=te.length,oe=0;oe<re;oe++){var le=te[oe];(le.ef===y&&le.ff===E&&le.uf===x&&le.vf===b||le.ef===x&&le.ff===b&&le.uf===y&&le.vf===E)&&(z===null?z=le:(a===null&&(a=[],a.push(z)),a.push(le)))}if(a!==null){for(z=_1(y,x,E,b),z===null&&(z=new nm(y,E,x,b),V1(y,z),V1(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function rp(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(tr(y.links,a),y.Sl()))}Hn.prototype.ph=function(){return!0},pn.Object.defineProperties(Hn.prototype,{fromNode:{get:function(){return this.ef},set:function(a){var y=this.ef;if(y!==a){var x=this.fromPort;y!==null&&(this.uf!==y&&_0(y,this,x),rp(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var E=this.diagram;E!==null&&E.aa&&E.partManager.setFromNodeForLink(this,a,y);var b=this.fromPort,z=this.fromPortChanged;if(z!==null){var te=!0;E!==null&&(te=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=te)}a!==null&&(this.uf!==a&&V0(a,this,b),ip(this),this.C(1)),this.g("fromNode",y,a),zf(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&$s(x),rp(this),this.ff=a;var E=this.fromPort;E!==null&&$s(E);var b=this.diagram;if(b!==null){var z=this.data,te=b.model;z!==null&&te.ri()&&te.xv(z,a)}x!==E&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(te=!0,b!==null&&(te=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=te))),ip(this),this.g("fromPortId",y,a)}}},fromPort:{get:function(){var a=this.ef;return a===null?null:a.ns(this.ff)}},fromPortChanged:{get:function(){return this.gn},set:function(a){var y=this.gn;y!==a&&(this.gn=a,this.g("fromPortChanged",y,a))}},toNode:{get:function(){return this.uf},set:function(a){var y=this.uf;if(y!==a){var x=this.toPort;y!==null&&(this.ef!==y&&_0(y,this,x),rp(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var E=this.diagram;E!==null&&E.aa&&E.partManager.setToNodeForLink(this,a,y);var b=this.toPort,z=this.toPortChanged;if(z!==null){var te=!0;E!==null&&(te=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=te)}a!==null&&(this.ef!==a&&V0(a,this,b),ip(this),this.C(1)),this.g("toNode",y,a),zf(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&$s(x),rp(this),this.vf=a;var E=this.toPort;E!==null&&$s(E);var b=this.diagram;if(b!==null){var z=this.data,te=b.model;z!==null&&te.ri()&&te.Cv(z,a)}x!==E&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(te=!0,b!==null&&(te=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=te))),ip(this),this.g("toPortId",y,a)}}},toPort:{get:function(){var a=this.uf;return a===null?null:a.ns(this.vf)}},toPortChanged:{get:function(){return this.uo},set:function(a){var y=this.uo;y!==a&&(this.uo=a,this.g("toPortChanged",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Eo},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),(y.$c()||a.$c())&&this.fromNode!==null&&$s(this.fromPort),this.bb())}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:NaN},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&ai(a,">= 0",Hn,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.qc(),this.g("fromShortLength",y,a))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Eo},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&$s(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&ai(a,">= 0",Hn,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.qc(),this.g("toShortLength",y,a))}},isLabeledLink:{get:function(){return this.wd===null?!1:0<this.wd.count}},labelNodes:{get:function(){return this.wd===null?Xr:this.wd.iterator}},relinkableFrom:{get:function(){return(this.Qa&1)!==0},set:function(a){var y=(this.Qa&1)!==0;y!==a&&(this.Qa^=1,this.g("relinkableFrom",y,a),this.Wb())}},relinkableTo:{get:function(){return(this.Qa&2)!==0},set:function(a){var y=(this.Qa&2)!==0;y!==a&&(this.Qa^=2,this.g("relinkableTo",y,a),this.Wb())}},resegmentable:{get:function(){return(this.Qa&4)!==0},set:function(a){var y=(this.Qa&4)!==0;y!==a&&(this.Qa^=4,this.g("resegmentable",y,a),this.Wb())}},isTreeLink:{get:function(){return(this.Qa&8)!==0},set:function(a){var y=(this.Qa&8)!==0;y!==a&&(this.Qa^=8,this.g("isTreeLink",y,a),this.fromNode!==null&&np(this.fromNode),this.toNode!==null&&np(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof Mr?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,x=1/0,E=this.pointsCount;if(E===0)a.h(NaN,NaN,0,0);else{if(E===1)E=this.i(0),y=Math.min(E.x,y),x=Math.min(E.y,x),a.h(E.x,E.y,0,0);else if(E===2){E=this.i(0);var b=this.i(1);y=Math.min(E.x,b.x),x=Math.min(E.y,b.y),a.h(E.x,E.y,0,0),a.Ye(b)}else if(this.computeCurve()===hl&&3<=E&&!this.isOrthogonal)if(b=this.i(0),y=b.x,x=b.y,a.h(y,x,0,0),E===3){E=this.i(1),y=Math.min(E.x,y),x=Math.min(E.y,x);var z=this.i(2);y=Math.min(z.x,y),x=Math.min(z.y,x),St.Dl(b.x,b.y,E.x,E.y,E.x,E.y,z.x,z.y,.5,a)}else for(z=3;z<E;z+=3){var te=this.i(z-2);z+3>=E&&(z=E-1);var re=this.i(z-1),oe=this.i(z);St.Dl(b.x,b.y,te.x,te.y,re.x,re.y,oe.x,oe.y,.5,a),y=Math.min(oe.x,y),x=Math.min(oe.y,x),b=oe}else for(b=this.i(0),z=this.i(1),y=Math.min(b.x,z.x),x=Math.min(b.y,z.y),a.h(b.x,b.y,0,0),a.Ye(z),b=2;b<E;b++)z=this.i(b),y=Math.min(z.x,y),x=Math.min(z.y,x),a.Ye(z);this.su.h(y-a.x,x-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new je)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||K0(this);for(var a=this.cq=[],y=this.pointsCount,x=0;x<y-1;x++){var E=this.i(x),b=this.i(x+1);St.$(E.x,b.x)?(E=b.y-E.y,0>E&&(E=-E)):St.$(E.y,b.y)?(E=b.x-E.x,0>E&&(E=-E)):E=Math.sqrt(E.Bf(b)),a.push(E)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,E=a=0;E<x;E++)a+=y[E];this.vt=a}return a}},points:{get:function(){return this.Nb},set:function(a){var y=this.Nb;if(y!==a){var x=null;if(Array.isArray(a)){var E=a.length%2===0;if(E){for(var b=0;b<a.length;b++)if(typeof a[b]!="number"||isNaN(a[b])){E=!1;break}}if(E)for(x=new An,E=0;E<a.length/2;E++)b=new je(a[2*E],a[2*E+1]).freeze(),x.add(b);else{for(E=!0,b=0;b<a.length;b++){var z=a[b];if(!tn(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){E=!1;break}}if(E)for(x=new An,E=0;E<a.length;E++)b=a[E],x.add(new je(b.x,b.y).freeze())}}else if(a instanceof An)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else lt("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),K0(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&df(a.animationManager,this,x)),this.g("points",y,x)}}},pointsCount:{get:function(){return this.Nb.count}},fd:{get:function(){return(this.Qa&16)!==0},set:function(a){(this.Qa&16)!==0!==a&&(this.Qa^=16)}},suspendsRouting:{get:function(){return(this.Qa&32)!==0},set:function(a){(this.Qa&32)!==0!==a&&(this.Qa^=32)}},computingPoints:{get:function(){return(this.Qa&64)!==0},set:function(a){(this.Qa&64)!==0!==a&&(this.Qa^=64)}},defaultFromPoint:{get:function(){return this.o},set:function(a){this.o=a.copy()}},defaultToPoint:{get:function(){return this.u},set:function(a){this.u=a.copy()}},isOrthogonal:{get:function(){return(this.qj.value&2)===2}},isAvoiding:{get:function(){return(this.qj.value&4)===4}},lk:{get:function(){return(this.Qa&128)!==0},set:function(a){(this.Qa&128)!==0!==a&&(this.Qa^=128)}},geometry:{get:function(){if(!this.lk){if(this.vg(),2>this.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!Zf(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Zf(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),J0(this,y===Bh||y===Wf||a===Bh||a===Wf),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),J0(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),Hn.prototype.invalidateOtherJumpOvers=Hn.prototype.Xo,Hn.prototype.findClosestSegment=Hn.prototype.ez,Hn.prototype.updateRoute=Hn.prototype.vg,Hn.prototype.invalidateRoute=Hn.prototype.bb,Hn.prototype.rollbackRoute=Hn.prototype.rv,Hn.prototype.commitRoute=Hn.prototype.zf,Hn.prototype.startRoute=Hn.prototype.uh,Hn.prototype.clearPoints=Hn.prototype.Fj,Hn.prototype.removePoint=Hn.prototype.pv,Hn.prototype.addPointAt=Hn.prototype.yf,Hn.prototype.addPoint=Hn.prototype.ne,Hn.prototype.insertPointAt=Hn.prototype.m,Hn.prototype.insertPoint=Hn.prototype.Kz,Hn.prototype.setPointAt=Hn.prototype.L,Hn.prototype.setPoint=Hn.prototype.dd,Hn.prototype.getPoint=Hn.prototype.i,Hn.prototype.getOtherPort=Hn.prototype.Cz,Hn.prototype.getOtherNode=Hn.prototype.To;var jc=null,zc=null,qv=new Kt(Hn,"Normal",1),Tx=new Kt(Hn,"Orthogonal",2),Ox=new Kt(Hn,"AvoidsNodes",6),rS=new Kt(Hn,"AvoidsNodesStraight",7),Fs=new Kt(Hn,"None",0),hl=new Kt(Hn,"Bezier",9),Bh=new Kt(Hn,"JumpGap",10),Wf=new Kt(Hn,"JumpOver",11),op=new Kt(Hn,"End",17),q0=new Kt(Hn,"Scale",18),$0=new Kt(Hn,"Stretch",19),ap=new Kt(Hn,"OrientAlong",21),sp=new Kt(Hn,"OrientPlus90",22),lp=new Kt(Hn,"OrientMinus90",23),$v=new Kt(Hn,"OrientOpposite",24),em=new Kt(Hn,"OrientUpright",25),up=new Kt(Hn,"OrientPlus90Upright",26),hp=new Kt(Hn,"OrientMinus90Upright",27),tm=new Kt(Hn,"OrientUpright45",28),oS=16,aS=14,dp=8;Hn.className="Link",Hn.Normal=qv,Hn.Orthogonal=Tx,Hn.AvoidsNodes=Ox,Hn.AvoidsNodesStraight=rS,Hn.None=Fs,Hn.Bezier=hl,Hn.JumpGap=Bh,Hn.JumpOver=Wf,Hn.End=op,Hn.Scale=q0,Hn.Stretch=$0,Hn.OrientAlong=ap,Hn.OrientPlus90=sp,Hn.OrientMinus90=lp,Hn.OrientOpposite=$v,Hn.OrientUpright=em,Hn.OrientPlus90Upright=up,Hn.OrientMinus90Upright=hp,Hn.OrientUpright45=tm,Hn.EndSegmentStep=8,Hn.CurvinessStart=oS,Hn.SpacingMin=aS,Hn.OrthoShortCut=dp;function nm(a,y,x,E){Kn(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=E,this.links=[]}nm.prototype.Sl=function(){if(!this.qq){var a=this.links;0<a.length&&(a=a[0].diagram,a!==null&&(a.ow.add(this),this.Fe=a.undoManager.isUndoingRedoing))}this.qq=!0},nm.prototype.Nv=function(){if(this.qq){this.qq=!1;var a=this.links;if(0<a.length){var y=a[0],x=y.diagram;x=x===null||x.pi&&!this.Fe,this.Fe=!1,y.arrangeBundledLinks(a,x),a.length===1&&(y.Sf=null,a.length=0)}a.length===0&&(a=this.Ds,this!==null&&a.af!==null&&a.af.remove(this),a=this.cv,this!==null&&a.af!==null&&a.af.remove(this))}},nm.className="LinkBundle";function cp(a){Kn(this),this.Yx=this.group=null,this.vs=!0,this.abort=!1,this.Od=this.Nd=1,this.Fn=this.En=-1,this.rc=a.width,this.sc=a.height,this.ac=null,this.ei=this.di=0,this.Os=11,this.Ix=this.Hx=22}cp.prototype.initialize=function(a){if(!(0>=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,E=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((E+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<a-1||this.ei<y-1){for(x=[],E=0;E<=a;E++)x[E]=new Uint32Array(y);this.ac=x,this.di=a-1,this.ei=y-1}if(a=ey,this.ac!==null)for(y=0;y<=this.di;y++)if(x=this.ac[y],x.fill)x.fill(a);else for(E=0;E<=this.ei;E++)x[E]=a}};function Hf(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function Zu(a,y,x){return Hf(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):ey}function sS(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var x=a.ac[y],E=0;E<=a.ei;E++)x[E]>=tc&&(x[E]=ey)}cp.prototype.Yj=function(a,y,x,E){if(a>this.En||a+x<this.Nd||y>this.Fn||y+E<this.Od)return!0;a=(a-this.Nd)/this.rc|0,y=(y-this.Od)/this.sc|0,x=Math.max(0,x)/this.rc+1|0;var b=Math.max(0,E)/this.sc+1|0;if(0>a&&(x+=a,a=0),0>y&&(b+=y,y=0),0>x||0>b)return!0;for(E=Math.min(a+x-1,this.di)|0,x=Math.min(y+b-1,this.ei)|0;a<=E;a++){b=this.ac[a];for(var z=y;z<=x;z++)if(b[z]===Nh)return!1}return!0};function Wu(a,y,x,E,b,z,te,re,oe){if(!(y<z||y>te||x<re||x>oe)){var le=y|0,he=x|0,ge=a.ac[le][he];if(ge>=tc&&ge<Gf)for(b?he+=E:le+=E,ge+=1;z<=le&&le<=te&&re<=he&&he<=oe&&!(ge>=a.ac[le][he]);)a.ac[le][he]=ge,ge+=1,b?he+=E:le+=E;if(le=b?he:le,b)if(0<E)for(x+=E;x<le;x+=E)Wu(a,y,x,1,!b,z,te,re,oe),Wu(a,y,x,-1,!b,z,te,re,oe);else for(x+=E;x>le;x+=E)Wu(a,y,x,1,!b,z,te,re,oe),Wu(a,y,x,-1,!b,z,te,re,oe);else if(0<E)for(y+=E;y<le;y+=E)Wu(a,y,x,1,!b,z,te,re,oe),Wu(a,y,x,-1,!b,z,te,re,oe);else for(y+=E;y>le;y+=E)Wu(a,y,x,1,!b,z,te,re,oe),Wu(a,y,x,-1,!b,z,te,re,oe)}}function im(a,y,x,E,b,z,te,re,oe){y|=0,x|=0;var le=Nh,he=tc;for(a.ac[y][x]=he;le===Nh&&y>z&&y<te&&x>re&&x<oe;)he+=1,a.ac[y][x]=he,b?x+=E:y+=E,le=a.ac[y][x]}function rm(a,y,x,E,b,z,te,re,oe){y|=0,x|=0;var le=Nh,he=Gf;for(a.ac[y][x]=he;le===Nh&&y>z&&y<te&&x>re&&x<oe;)a.ac[y][x]=he,b?x+=E:y+=E,le=a.ac[y][x]}function lS(a,y,x,E,b,z,te){if(a.ac!==null){a.abort=!1;var re=y.x,oe=y.y;if(Hf(a,re,oe)){re-=a.Nd,re/=a.rc,oe-=a.Od,oe/=a.sc;var le=E.x,he=E.y;if(Hf(a,le,he))if(le-=a.Nd,le/=a.rc,he-=a.Od,he/=a.sc,1>=Math.abs(re-le)&&1>=Math.abs(oe-he))a.abort=!0;else{var ge=z.x;E=z.y,y=z.x+z.width;var Se=z.y+z.height;ge-=a.Nd,ge/=a.rc,E-=a.Od,E/=a.sc,y-=a.Nd,y/=a.rc,Se-=a.Od,Se/=a.sc,z=Math.max(0,Math.min(a.di,ge|0)),y=Math.min(a.di,Math.max(0,y|0)),ge=Math.max(0,Math.min(a.ei,E|0)),Se=Math.min(a.ei,Math.max(0,Se|0)),E=a.ac,re|=0,oe|=0,le|=0,he|=0;var we=x===0||x===90?1:-1;if(x=x===90||x===270,E[re][oe]===Nh?(im(a,re,oe,we,x,z,y,ge,Se),im(a,re,oe,1,!x,z,y,ge,Se),im(a,re,oe,-1,!x,z,y,ge,Se)):im(a,re,oe,we,x,re,oe,re,oe),E[le][he]===Nh?(rm(a,le,he,b===0||b===90?1:-1,b===90||b===270,z,y,ge,Se),rm(a,le,he,1,!(b===90||b===270),z,y,ge,Se),rm(a,le,he,-1,!(b===90||b===270),z,y,ge,Se)):rm(a,le,he,we,x,le,he,le,he),x=Bn(),te&&uS(a,le,he,b,re,oe,x))for((x[0]!==le||x[1]!==he)&&(x.unshift(he),x.unshift(le)),(x[x.length-2]!==re||x[x.length-1]!==oe)&&(x.push(re),x.push(oe)),a=tc,b=x[x.length-2],te=x[x.length-1],E[b][te]=a++,z=x.length-4;0<=z;z-=2)for(b=x[z+2],te=x[z+3],y=x[z],le=x[z+1];y>b?b++:y<b?b--:le>te?te++:le<te&&te--,E[b][te]=a++,b!==y||te!==le;);else Wu(a,re,oe,1,!1,z,y,ge,Se),Wu(a,re,oe,-1,!1,z,y,ge,Se),Wu(a,re,oe,1,!0,z,y,ge,Se),Wu(a,re,oe,-1,!0,z,y,ge,Se);Ot(x)}}}}function uS(a,y,x,E,b,z,te){for(var re=a.ac,oe=y,le=x;;){if(oe===b&&le===z)return!0;var he=oe,ge=le;if(E===0)if(he<b)he++;else break;else if(E===90)if(ge<z)ge++;else break;else if(E===180)if(he>b)he--;else break;else if(ge>z)ge--;else break;var Se=re[he][ge];if(Se===0||Se===ty)break;oe=he,le=ge}for(;;){if(he=E,ge=oe,Se=le,E===0?Se<z?(he=90,Se++):Se>z&&(he=270,Se--):E===90?ge<b?(he=0,ge++):ge>b&&(he=180,ge--):E===180?Se<z?(he=90,Se++):Se>z&&(he=270,Se--):ge<b?(he=0,ge++):ge>b&&(he=180,ge--),ge=re[ge][Se],he!==E&&ge!==0&&ge!==ty){if(te.push(oe),te.push(le),uS(a,oe,le,he,b,z,te))return!0;te.pop(),te.pop()}if(re[oe][le]=ty,E===0){if(oe===y)return!1;oe--}else if(E===90){if(le===x)return!1;le--}else if(E===180){if(oe===y)return!1;oe++}else{if(le===x)return!1;le++}}}pn.Object.defineProperties(cp.prototype,{bounds:{get:function(){return new pt(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0<a&&a!==this.rc&&(this.rc=a,this.initialize(this.bounds))}},Go:{get:function(){return this.sc},set:function(a){0<a&&a!==this.sc&&(this.sc=a,this.initialize(this.bounds))}}});var Nh=0,tc=1,Gf=999999,ey=Gf+1,ty=Gf+2;cp.className="PositionArray";function Zc(){Kn(this),this.port=this.node=null,this.pe=[],this.ap=!1}Zc.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",x=0;x<a.length;x++){var E=a[x];E!==null&&(y+=`
|
|
`+E.toString())}return y};function Ix(a,y,x,E){switch(y=y.offsetY,y){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(y){case 9:return 180<x?270:90;case 6:return 90<x&&270>=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90<x&&x<=180+a?180:x>180+a&&x<=360-a?270:0;case 13:return 180<x&&x<=360-a?270:x>a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return E&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}Zc.prototype.Sl=function(){this.pe.length=0};function hS(a,y){var x=a.pe;if(x.length===0){e:if(!a.ap){x=a.ap,a.ap=!0;var E=null,b=a.node,z=b instanceof Pr?b:null;if(z===null||z.isSubGraphExpanded)var te=b.isTreeExpanded?b.findLinksConnected(a.port.portId):b.qx();else{if(!z.actualBounds.w()){a.ap=x;break e}E=z,te=E.Lu()}z=a.pe.length=0;var re=a.port.ga(Ii,je.alloc()),oe=a.port.ga(ni,je.alloc());for(b=pt.allocAt(re.x,re.y,0,0),b.Ye(oe),je.free(re),je.free(oe),re=je.allocAt(b.x+b.width/2,b.y+b.height/2),oe=a.port.li(),te=te.iterator;te.next();){var le=te.value;if(le.isVisible()&&le.fromPort!==le.toPort){var he=le.fromPort===a.port||le.fromNode!==null&&le.fromNode.Td(E),ge=le.computeSpot(he,a.port);if(ge.$c()&&(he=he?le.toPort:le.fromPort,he!==null)){var Se=he.part;if(Se!==null){var we=Se.findVisibleNode();we!==null&&we!==Se&&(Se=we,he=Se.port),he=le.computeOtherPoint(Se,he),Se=re.ab(he),Se-=oe,0>Se?Se+=360:360<=Se&&(Se-=360),ge=Ix(b,ge,Se,le.isOrthogonal),ge===0?(ge=4,180<Se&&(Se-=360)):ge===90?(ge=8,270<Se&&(Se-=360)):ge===180?ge=2:(ge=1,90>Se&&(Se+=360)),we=a.pe[z],we===void 0?(we=new ny(le,Se,ge),a.pe[z]=we):(we.link=le,we.angle=Se,we.Nc=ge),we.hv.set(he),z++}}}}for(je.free(re),a.pe.sort(Zc.prototype.j),oe=a.pe.length,E=-1,z=re=0;z<oe;z++)te=a.pe[z],te!==void 0&&(te.Nc!==E&&(E=te.Nc,re=0),te.Uo=re,re++);for(E=-1,re=0,z=oe-1;0<=z;z--)oe=a.pe[z],oe!==void 0&&(oe.Nc!==E&&(E=oe.Nc,re=oe.Uo+1),oe.Gl=re);if(z=a.pe,ge=a.port,E=a.node.portSpreading,re=je.alloc(),oe=je.alloc(),te=je.alloc(),le=je.alloc(),ge.ga(Ii,re),ge.ga(Wi,oe),ge.ga(ni,te),ge.ga(pr,le),we=Se=he=ge=0,E===_v)for(var Ae=0;Ae<z.length;Ae++){var Ne=z[Ae];if(Ne!==null){var $e=Ne.link.computeThickness();switch(Ne.Nc){case 8:Se+=$e;break;case 2:we+=$e;break;case 1:ge+=$e;break;default:case 4:he+=$e}}}var Ke=Ae=0,at=1,dt=Ne=0;for($e=0;$e<z.length;$e++){var ft=z[$e];if(ft!==null){if(Ae!==ft.Nc){switch(Ae=ft.Nc,Ae){case 8:var wt=te;Ke=le;break;case 2:wt=le,Ke=re;break;case 1:wt=re,Ke=oe;break;default:case 4:wt=oe,Ke=te}switch(Ne=Ke.x-wt.x,dt=Ke.y-wt.y,Ae){case 8:Se>Math.abs(Ne)?(at=Math.abs(Ne)/Se,Se=Math.abs(Ne)):at=1;break;case 2:we>Math.abs(dt)?(at=Math.abs(dt)/we,we=Math.abs(dt)):at=1;break;case 1:ge>Math.abs(Ne)?(at=Math.abs(Ne)/ge,ge=Math.abs(Ne)):at=1;break;default:case 4:he>Math.abs(dt)?(at=Math.abs(dt)/he,he=Math.abs(dt)):at=1}Ke=0}var Gt=ft.Zo;if(E===_v){switch(ft=ft.link.computeThickness(),ft*=at,Gt.set(wt),Ae){case 8:Gt.x=wt.x+Ne/2+Se/2-Ke-ft/2;break;case 2:Gt.y=wt.y+dt/2+we/2-Ke-ft/2;break;case 1:Gt.x=wt.x+Ne/2-ge/2+Ke+ft/2;break;default:case 4:Gt.y=wt.y+dt/2-he/2+Ke+ft/2}Ke+=ft}else{var oi=.5;E===Y0&&(oi=(ft.Uo+1)/(ft.Gl+1)),Gt.x=wt.x+Ne*oi,Gt.y=wt.y+dt*oi}}}for(je.free(re),je.free(oe),je.free(te),je.free(le),wt=a.pe,z=0;z<wt.length;z++)E=wt[z],E!==null&&(E.Ju=a.computeEndSegmentLength(E));a.ap=x,pt.free(b)}x=a.pe}for(a=0;a<x.length;a++)if(b=x[a],b!==null&&b.link===y)return b;return null}Zc.prototype.j=function(a,y){return a===y?0:a===null?-1:y===null?1:a.Nc<y.Nc?-1:a.Nc>y.Nc?1:a.angle<y.angle?-1:a.angle>y.angle?1:0},Zc.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,Fi,y.fromPort===this.port),E=a.Uo;if(0>E)return x;var b=a.Gl;if(1>=b||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(E=b-1-E),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?x+8*E:(a?y.y===z.y:y.x===z.x)?x:x+8*(b-1-E)},Zc.className="Knot";function ny(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new je,this.Gl=this.Uo=0,this.Zo=new je,this.Ju=0}ny.prototype.toString=function(){return this.link.toString()+" "+this.angle.toString()+" "+this.Nc.toString()+":"+this.Uo.toString()+"/"+this.Gl.toString()+" "+this.Zo.toString()+" "+this.Ju.toString()+" "+this.hv.toString()},ny.className="LinkInfo";function ea(a){Kn(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new je(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}ea.prototype.cloneProtected=function(a){a.sn=this.sn,a.Gh=this.Gh,a.yn=this.yn,a.Am.assign(this.Am),a.vn=this.vn,a.un=this.un,a.Em=this.Em,a.xn=!0},ea.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},ea.prototype.qb=function(){},ea.prototype.toString=function(){var a=qn(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},ea.prototype.C=function(){if(this.isValidLayout){var a=this.diagram;if(a!==null&&!a.undoManager.isUndoingRedoing){var y=a.animationManager;!y.isTicking&&(y.defaultAnimation.isAnimating&&y.Cc(),this.isOngoing&&a.pi||this.isInitial&&!a.pi)&&(this.isValidLayout=!1,a.$b())}}},ea.prototype.createNetwork=function(){return new Ho(this)},ea.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof _t?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Pr?y.lg(a.memberParts):y.lg(a.iterator),y},ea.prototype.updateParts=function(){this.isValidLayout=!0;var a=this.diagram;if(a===null&&this.network!==null)for(var y=this.network.vertexes.iterator;y.next();){var x=y.value.node;if(x!==null&&(a=x.diagram,a!==null))break}try{a!==null&&a.Ea("Layout"),this.commitLayout()}finally{a!==null&&a.eb("Layout")}},ea.prototype.commitLayout=function(){if(this.network!==null){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();if(this.isRouting)for(a=this.network.edges.iterator;a.next();)a.value.commit()}},ea.prototype.doLayout=function(a){var y=new Fn;a instanceof _t?(dd(this,y,a.nodes,!0,this.rh,!0,!1,!0),dd(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof Pr?dd(this,y,a.memberParts,!1,this.rh,!0,!1,!0):y.addAll(a.iterator),0<y.count&&(a=this.diagram,a!==null&&a.Ea("Layout"),this.doMinimalNoNetworkLayout(y),a!==null&&a.eb("Layout")),this.isValidLayout=!0},ea.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var x=this.arrangementOrigin.x,E=x,b=this.arrangementOrigin.y,z=0,te=0;for(a=a.iterator;a.next();){var re=a.value;fp(re);var oe=re.measuredBounds,le=oe.width;oe=oe.height,re.moveTo(E,b),re instanceof Pr&&(re.rh=!1),E+=Math.max(le,50)+20,te=Math.max(te,Math.max(oe,50)),z>=y-1?(z=0,E=x,b+=te+20,te=0):z++}},ea.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,E=this.arrangementOrigin.y,b=0,z=0,te=this.network.vertexes.iterator;te.next();){var re=te.value.node;if(!(re===null||re instanceof Hn)&&(fp(re),this.rh(re))){var oe=re.measuredBounds,le=oe.width;oe=oe.height,re.moveTo(x,E),re instanceof Pr&&(re.rh=!1),x+=Math.max(le,50)+20,z=Math.max(z,Math.max(oe,50)),b>=a-1?(b=0,x=y,E+=z+20,z=0):b++}}},ea.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Pr&&a.rh)};function dd(a,y,x,E,b,z,te,re){for(x=x.iterator;x.next();){var oe=x.value;E&&!oe.isTopLevel||b!==null&&!b(oe)||!oe.canLayout()||(z&&oe instanceof li?oe.isLinkLabel||(oe instanceof Pr&&oe.layout===null?dd(a,y,oe.memberParts,!1,b,z,te,re):(fp(oe),y.add(oe))):te&&oe instanceof Hn?y.add(oe):!re||!oe.Zc()||oe instanceof li||(fp(oe),y.add(oe)))}}function fp(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}ea.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new pt),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},ea.prototype.ex=function(a){var y=new Fn;return a instanceof _t?(dd(this,y,a.nodes,!0,null,!0,!0,!0),dd(this,y,a.links,!0,null,!0,!0,!0),dd(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Pr?dd(this,y,a.memberParts,!1,null,!0,!0,!0):dd(this,y,a.iterator,!1,null,!0,!0,!0),y},ea.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var x=y.position.copy();return(isNaN(x.x)||isNaN(x.y))&&x.set(a),y=y.placeholder,y!==null&&(x=y.ga(Ii),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},pn.Object.defineProperties(ea.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},group:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a,a!==null&&(this.H=a.diagram))}},isOngoing:{get:function(){return this.sn},set:function(a){this.sn!==a&&(this.sn=a)}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a,a||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(a){this.yn!==a&&(this.yn=a)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(a){this.vn!==a&&(this.vn=a)}},isRealtime:{get:function(){return this.un},set:function(a){this.un!==a&&(this.un=a)}},isValidLayout:{get:function(){return this.xn},set:function(a){this.xn!==a&&(this.xn=a,a||(a=this.diagram,a!==null&&(a.xh=!0)))}},network:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,a!==null&&(a.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(a){this.Em!==a&&(this.Em=a,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(a){this.Am.D(a)||(this.Am.assign(a),this.C())}}}),ea.prototype.collectParts=ea.prototype.ex,ea.prototype.getLayoutBounds=ea.prototype.ni,ea.prototype.invalidateLayout=ea.prototype.C,ea.className="Layout";function Ho(a){Kn(this),this.Sc=a,this.wf=new Fn,this.ye=new Fn,this.Es=new Wt,this.zs=new Wt}Ho.prototype.clear=function(){if(this.wf)for(var a=this.wf.iterator;a.next();)a.value.clear();if(this.ye)for(a=this.ye.iterator;a.next();)a.value.clear();this.wf=new Fn,this.ye=new Fn,this.Es=new Wt,this.zs=new Wt},Ho.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=a)return y;if(y+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1<a){for(var x=this.wf.iterator;x.next();)y+=`
|
|
`+x.value.toString(a-1);for(x=this.ye.iterator;x.next();)y+=`
|
|
`+x.value.toString(a-1)}return y},Ho.prototype.createVertex=function(){return new Ba(this)},Ho.prototype.createEdge=function(){return new el(this)},Ho.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(te){if(te instanceof li)return!te.isLinkLabel;if(te instanceof Hn){var re=te.fromNode;return re===null||re.isLinkLabel?!1:(te=te.toNode,!(te===null||te.isLinkLabel))}return!1}),a=a.iterator;a.next();){var E=a.value;if(E instanceof li&&(!y||E.isTopLevel)&&E.canLayout()&&x(E)){if(E instanceof Pr&&E.layout===null)this.lg(E.memberParts,!1);else if(this.ki(E)===null){var b=this.createVertex();b.node=E,this.dh(b)}}}for(a.reset();a.next();)if(E=a.value,E instanceof Hn&&(!y||E.isTopLevel)&&E.canLayout()&&x(E)&&this.Lo(E)===null){var z=E.fromNode;b=E.toNode,z!==null&&b!==null&&z!==b&&(z=this.findGroupVertex(z),b=this.findGroupVertex(b),z!==null&&b!==null&&this.Zj(z,b,E))}}},Ho.prototype.findGroupVertex=function(a){if(a===null)return null;var y=a.findVisibleNode();if(y===null)return null;if(a=this.ki(y),a!==null)return a;for(y=y.containingGroup;y!==null;){if(a=this.ki(y),a!==null)return a;y=y.containingGroup}return null},be=Ho.prototype,be.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},be.Bl=function(a){if(a===null)return null;var y=this.ki(a);return y===null&&(y=this.createVertex(),y.node=a,this.dh(y)),y},be.Iu=function(a){if(a!==null&&dS(this,a)){for(var y=a.tg,x=y.count-1;0<=x;x--){var E=y.M(x);this.Mj(E)}for(y=a.mg,a=y.count-1;0<=a;a--)x=y.M(a),this.Mj(x)}};function dS(a,y){if(y===null)return!1;var x=a.wf.remove(y);return x&&(y=y.node,y!==null&&a.Es.remove(y)),x}be.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},be.ki=function(a){return a===null?null:this.Es.I(a)},be.Bo=function(a){if(a!==null){iy(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function iy(a,y){if(y!==null){a.ye.add(y);var x=y.link;x!==null&&a.Lo(x)===null&&a.zs.add(x,y),y.network=a}}be.Dy=function(a){if(a===null)return null;var y=a.fromNode,x=a.toNode,E=this.Lo(a);return E===null?(E=this.createEdge(),E.link=a,y!==null&&(E.fromVertex=this.Bl(y)),x!==null&&(E.toVertex=this.Bl(x)),this.Bo(E)):(y!==null?E.fromVertex=this.Bl(y):E.fromVertex=null,x!==null?E.toVertex=this.Bl(x):E.toVertex=null),E},be.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),ry(this,a)}};function ry(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}be.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},be.Lo=function(a){return a===null?null:this.zs.I(a)},be.Zj=function(a,y,x){if(a===null||y===null)return null;if(a.network===this&&y.network===this){var E=this.createEdge();return E.link=x,E.fromVertex=a,E.toVertex=y,this.Bo(E),E}return null},be.gm=function(a){if(a!==null){var y=a.fromVertex,x=a.toVertex;y!==null&&x!==null&&(y.Jl(a),x.Kl(a),a.gm(),y.Cl(a),x.zl(a))}},be.Ko=function(){for(var a=Bn(),y=this.ye.iterator;y.next();){var x=y.value;x.fromVertex===x.toVertex&&a.push(x)}for(y=a.length,x=0;x<y;x++)this.Mj(a[x]);Ot(a)},Ho.prototype.deleteArtificialVertexes=function(){for(var a=Bn(),y=this.wf.iterator;y.next();){var x=y.value;x.node===null&&x.data===null&&a.push(x)}for(x=a.length,y=0;y<x;y++)this.Iu(a[y]);for(y=Bn(),x=this.ye.iterator;x.next();){var E=x.value;E.link===null&&E.data===null&&y.push(E)}for(x=y.length,E=0;E<x;E++)this.Mj(y[E]);Ot(a),Ot(y)};function Rx(a){for(var y=Bn(),x=a.ye.iterator;x.next();){var E=x.value;E.fromVertex!==null&&E.toVertex!==null||y.push(E)}for(x=y.length,E=0;E<x;E++)a.Mj(y[E]);Ot(y)}Ho.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),Rx(this),this.Ko()),a=new An;for(var y=!0;y;){y=!1;for(var x=this.wf.iterator;x.next();){var E=x.value;if(0<E.tg.count||0<E.mg.count){y=this.layout.createNetwork(),a.add(y),oy(this,y,E),y=!0;break}}}return a.sort(function(b,z){return b===null||z===null||b===z?0:z.vertexes.count-b.vertexes.count}),a};function oy(a,y,x){if(x!==null&&x.network!==y){dS(a,x),y.dh(x);for(var E=x.sourceEdges;E.next();){var b=E.value;b.network!==y&&(ry(a,b),iy(y,b),oy(a,y,b.fromVertex))}for(E=x.destinationEdges;E.next();)x=E.value,x.network!==y&&(ry(a,x),iy(y,x),oy(a,y,x.toVertex))}}Ho.prototype.dz=function(){for(var a=new Fn,y=this.wf.iterator;y.next();)a.add(y.value.node);for(y=this.ye.iterator;y.next();)a.add(y.value.link);return a},pn.Object.defineProperties(Ho.prototype,{layout:{get:function(){return this.Sc},set:function(a){a!==null&&(this.Sc=a)}},vertexes:{get:function(){return this.wf}},edges:{get:function(){return this.ye}}}),Ho.prototype.findAllParts=Ho.prototype.dz,Ho.prototype.splitIntoSubNetworks=Ho.prototype.Zx,Ho.prototype.deleteSelfEdges=Ho.prototype.Ko,Ho.prototype.reverseEdge=Ho.prototype.gm,Ho.prototype.linkVertexes=Ho.prototype.Zj,Ho.prototype.findEdge=Ho.prototype.Lo,Ho.prototype.deleteLink=Ho.prototype.Yy,Ho.prototype.deleteEdge=Ho.prototype.Mj,Ho.prototype.addLink=Ho.prototype.Dy,Ho.prototype.addEdge=Ho.prototype.Bo,Ho.prototype.findVertex=Ho.prototype.ki,Ho.prototype.deleteNode=Ho.prototype.Zy,Ho.prototype.deleteVertex=Ho.prototype.Iu,Ho.prototype.addNode=Ho.prototype.Bl,Ho.prototype.addVertex=Ho.prototype.dh,Ho.prototype.addParts=Ho.prototype.lg,Ho.className="LayoutNetwork";function Ba(a){Kn(this),this.ob=a,this.j=new pt(0,0,10,10).freeze(),this.o=new je(5,5).freeze(),this.Sh=this.ub=null,this.tg=new An,this.mg=new An}Ba.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new An,this.mg=new An},Ba.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Tr(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var x=!0,E=this.tg.iterator;E.next();){var b=E.value;x?x=!1:a+=",",a+=b.toString(0)}for(b="",x=!0,E=this.mg.iterator;E.next();){var z=E.value;x?x=!1:b+=",",b+=z.toString(0)}y+=" sources: "+a+" destinations: "+b}return y},Ba.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;tn(x)?(x.x=y.x,x.y=y.y,x.width=y.width,x.height=y.height):a.bounds=y.copy()}else if(a=this.node,a!==null){if(y=this.bounds,!(a instanceof Pr)){x=pt.alloc(),a.Va();var E=this.network.layout.ni(a,x),b=a.locationObject.ga(hi);if(E.w()&&b.w()){a.moveTo(y.x+this.focusX-(b.x-E.x),y.y+this.focusY-(b.y-E.y)),pt.free(x);return}pt.free(x)}a.moveTo(y.x,y.y)}},Ba.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},Ba.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},Ba.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},Ba.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function ay(a,y){return a=a.Sh,y=y.Sh,a?y?(a=a.text,y=y.text,a<y?-1:a>y?1:0):1:y!==null?-1:0}pn.Object.defineProperties(Ba.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var x=y.y,E=y.width;y=y.height,this.o.h(E/2,y/2),this.j.h(a,x,E,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,x=pt.alloc(),E=y.ni(a,x);y=E.x;var b=E.y,z=E.width;if(E=E.height,isNaN(y)&&(y=0),isNaN(b)&&(b=0),this.j.h(y,b,z,E),pt.free(x),!(a instanceof Pr)&&(a=a.locationObject.ga(hi),a.w())){this.o.h(a.x-y,a.y-b);return}this.o.h(z/2,E/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new Fn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Fn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Fn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);for(y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var a=new An,y=this.sourceEdges;y.next();)a.add(y.value);for(y=this.destinationEdges;y.next();)a.add(y.value);return a.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),Ba.prototype.deleteDestinationEdge=Ba.prototype.Jl,Ba.prototype.addDestinationEdge=Ba.prototype.zl,Ba.prototype.deleteSourceEdge=Ba.prototype.Kl,Ba.prototype.addSourceEdge=Ba.prototype.Cl,Ba.className="LayoutVertex",Ba.standardComparer=ay,Ba.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x<y.length;x++)if(a[x]!==""&&a[x]!==void 0){var E=parseFloat(y[x]),b=parseFloat(a[x]);if(isNaN(E))if(isNaN(b)){if(y[x].localeCompare(a[x])!==0)return y[x].localeCompare(a[x])}else return 1;else{if(isNaN(b))return-1;if(E-b!==0)return E-b}}else if(y[x]!=="")return 1;return a[x]!==""&&a[x]!==void 0?-1:0}return 1}return x!==null?-1:0}return 1}return y!==null?-1:0};function el(a){Kn(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}el.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},el.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+Tr(this);return 0<a&&(y+=this.$k!==null?"("+this.$k.toString()+")":"",1<a&&(y+=" "+(this.kd?this.kd.toString():"null")+" --> "+(this.qd?this.qd.toString():"null"))),y},el.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},el.prototype.commit=function(){},el.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},pn.Object.defineProperties(el.prototype,{network:{get:function(){return this.nb},set:function(a){this.nb=a}},data:{get:function(){return this.ub},set:function(a){this.ub!==a&&(this.ub=a)}},link:{get:function(){return this.$k},set:function(a){this.$k!==a&&(this.$k=a)}},fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}}}),el.prototype.getOtherVertex=el.prototype.Ax,el.className="LayoutEdge";function Ja(a){ea.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Xe(NaN,NaN).freeze(),this.tf=new Xe(10,10).freeze(),this.Jb=gp,this.Rb=am,this.nd=pp,this.hd=cS,a&&Object.assign(this,a)}Zt(Ja,ea),Ja.prototype.cloneProtected=function(a){ea.prototype.cloneProtected.call(this,a),a.zo=this.zo,a.yo=this.yo,a.yg.assign(this.yg),a.tf.assign(this.tf),a.Jb=this.Jb,a.Rb=this.Rb,a.nd=this.nd,a.hd=this.hd},Ja.prototype.qb=function(a){a.classType===Ja?a===pp||a===lm||a===sy||a===sm?this.sorting=a:a===am||a===au?this.arrangement=a:a===gp||a===om?this.alignment=a:lt("Unknown enum value: "+a):ea.prototype.qb.call(this,a)},Ja.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var E=x.value;if(!E.ph()||E.fromNode===null&&E.toNode===null){if(E.Va(),E instanceof Pr)for(E=E.memberParts;E.next();)y.remove(E.value)}else y.remove(E)}var b=y.Fa();if(b.length!==0){switch(this.sorting){case sm:b.reverse();break;case pp:b.sort(this.comparer);break;case lm:b.sort(this.comparer),b.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var te=this.wrappingWidth;switch(isNaN(te)&&a!==null?(y=a.padding,te=Math.max(a.viewportBounds.width-y.left-y.right,0)):te=Math.max(this.wrappingWidth,0),0>=z&&0>=te&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),E=[],this.alignment){case om:var re=y,oe=x,le=pt.alloc(),he=Math.max(this.cellSize.width,1);if(!isFinite(he))for(var ge=he=0;ge<b.length;ge++){var Se=this.ni(b[ge],le);he=Math.max(he,Se.width)}if(he=Math.max(he+re,1),ge=Math.max(this.cellSize.height,1),!isFinite(ge))for(Se=ge=0;Se<b.length;Se++){var we=this.ni(b[Se],le);ge=Math.max(ge,we.height)}ge=Math.max(ge+oe,1),Se=this.arrangement;for(var Ae=we=this.arrangementOrigin.x,Ne=this.arrangementOrigin.y,$e=0,Ke=0,at=0;at<b.length;at++){var dt=b[at],ft=this.ni(dt,le),wt=Math.ceil((ft.width+re)/he)*he,Gt=Math.ceil((ft.height+oe)/ge)*ge;switch(Se){case au:var oi=Math.abs(Ae-ft.width);break;default:oi=Ae+ft.width}switch((0<z&&$e>z-1||0<te&&0<$e&&oi-we>te)&&(E.push(new pt(0,Ne,te+re,Ke)),$e=0,Ae=we,Ne+=Ke,Ke=0),Ke=Math.max(Ke,Gt),Se){case au:ft=-ft.width;break;default:ft=0}switch(dt.moveTo(Ae+ft,Ne),Se){case au:Ae-=wt;break;default:Ae+=wt}$e++}E.push(new pt(0,Ne,te+re,Ke)),pt.free(le);break;case gp:for(oe=te,he=z,ge=y,Se=x,te=pt.alloc(),we=Math.max(this.cellSize.width,1),z=Ne=le=0,re=je.alloc(),Ae=0;Ae<b.length;Ae++)Ke=b[Ae],$e=this.ni(Ke,te),Ke=bh(Ke,Ke.locationObject,Ke.locationSpot,re),le=Math.max(le,Ke.x),Ne=Math.max(Ne,$e.width-Ke.x),z=Math.max(z,Ke.y);switch(Ae=this.arrangement,Ae){case au:le+=ge;break;default:Ne+=ge}we=isFinite(we)?Math.max(we+ge,1):Math.max(le+Ne,1);var bi=Ke=this.arrangementOrigin.x;for(at=this.arrangementOrigin.y,Ne=0,oe>=le&&(oe-=le),le=dt=0,wt=Math.max(this.cellSize.height,1),ft=z=0,Gt=!0,$e=je.alloc(),oi=0;oi<b.length;oi++){var Si=b[oi],Zn=this.ni(Si,te),yn=bh(Si,Si.locationObject,Si.locationSpot,re);if(0<Ne)switch(Ae){case au:bi=(bi-Ke-(Zn.width-yn.x))/we,bi=St.$(Math.round(bi),bi)?Math.round(bi):Math.floor(bi),bi=bi*we+Ke;break;default:bi=(bi-Ke+yn.x)/we,bi=St.$(Math.round(bi),bi)?Math.round(bi):Math.ceil(bi),bi=bi*we+Ke}else switch(Ae){case au:dt=bi+yn.x+Zn.width;break;default:dt=bi-yn.x}switch(Ae){case au:var Sr=-(bi+yn.x)+dt;break;default:Sr=bi+Zn.width-yn.x-dt}if(0<he&&Ne>he-1||0<oe&&0<Ne&&Sr>oe){for(E.push(new pt(0,Gt?at-z:at,oe+ge,ft+z+Se)),bi=0;bi<Ne&&oi!==Ne;bi++){Sr=b[oi-Ne+bi];var sr=bh(Sr,Sr.locationObject,Sr.locationSpot,$e);Sr.moveTo(Sr.position.x,Sr.position.y+z-sr.y)}ft+=Se,at=Gt?at+ft:at+(ft+z),Ne=ft=z=0,bi=Ke,Gt=!1}switch(bi===Ke&&(le=Ae===au?Math.max(le,Zn.width-yn.x):Math.min(le,-yn.x)),z=Math.max(z,yn.y),ft=Math.max(ft,Zn.height-yn.y),isFinite(wt)&&(ft=Math.max(ft,Math.max(Zn.height,wt)-yn.y)),Gt?Si.moveTo(bi-yn.x,at-yn.y):Si.moveTo(bi-yn.x,at),Ae){case au:bi-=yn.x+ge;break;default:bi+=Zn.width-yn.x+ge}Ne++}if(E.push(new pt(0,at,oe+ge,(Gt?ft:ft+z)+Se)),b.length!==Ne)for(oe=0;oe<Ne;oe++)he=b[b.length-Ne+oe],ge=bh(he,he.locationObject,he.locationSpot,re),he.moveTo(he.position.x,he.position.y+z-ge.y);if(je.free(re),je.free($e),Ae===au)for(b=0;b<E.length;b++)z=E[b],z.width+=le,z.x-=le;else for(b=0;b<E.length;b++)z=E[b],z.x>le&&(z.width+=z.x-le,z.x=le);pt.free(te)}for(re=z=te=b=0;re<E.length;re++)oe=E[re],b=Math.min(b,oe.x),te=Math.min(te,oe.y),z=Math.max(z,oe.x+oe.width);this.arrangement===au?this.commitLayers(E,new je(b+y/2-(z+b),te-x/2)):this.commitLayers(E,new je(b-y/2,te-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},Ja.prototype.commitLayers=function(){};function cS(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}pn.Object.defineProperties(Ja.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0<a||isNaN(a))&&(this.zo=a,this.isViewportSized=isNaN(a),this.C())}},wrappingColumn:{get:function(){return this.yo},set:function(a){this.yo!==a&&(0<a||isNaN(a))&&(this.yo=a,this.C())}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||(this.yg.assign(a),this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf.D(a)||(this.tf.assign(a),this.C())}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb===a||a!==gp&&a!==om||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==am&&a!==au||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==sy&&a!==sm&&a!==pp&&a!==lm||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var om=new Kt(Ja,"Position",0),gp=new Kt(Ja,"Location",1),am=new Kt(Ja,"LeftToRight",2),au=new Kt(Ja,"RightToLeft",3),sy=new Kt(Ja,"Forward",4),sm=new Kt(Ja,"Reverse",5),pp=new Kt(Ja,"Ascending",6),lm=new Kt(Ja,"Descending",7);Ja.className="GridLayout",Ja.standardComparer=cS,Ja.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),y=y.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/);for(var x=0;x<a.length;x++)if(y[x]!==""&&y[x]!==void 0){var E=parseFloat(a[x]),b=parseFloat(y[x]);if(isNaN(E))if(isNaN(b)){if(a[x].localeCompare(y[x])!==0)return a[x].localeCompare(y[x])}else return 1;else{if(isNaN(b))return-1;if(E-b!==0)return E-b}}else if(a[x]!=="")return 1;return y[x]!==""&&y[x]!==void 0?-1:0}return 1}return y!==null?-1:0},Ja.Position=om,Ja.Location=gp,Ja.LeftToRight=am,Ja.RightToLeft=au,Ja.Forward=sy,Ja.Reverse=sm,Ja.Ascending=pp,Ja.Descending=lm;function xo(){this.On=new Fn,this.Dn=new Fn,this.Pa=new Fn,this.cf=new Wt,this.bf=new Wt,this.aj=new Wt,this.H=null,this.tp=!1}be=xo.prototype,be.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},be.Xe=function(a){this.H=a},be.oi=function(a){if(a instanceof li){if(this.On.add(a),a instanceof Pr){var y=a.containingGroup;y===null?this.H.ai.add(a):y.gl.add(a),y=a.layout,y!==null&&(y.diagram=this.H)}}else a instanceof Hn?this.Dn.add(a):a instanceof eo||this.Pa.add(a);y=a.data,y===null||a instanceof eo||(a instanceof Hn?this.bf.add(y,a):this.cf.add(y,a))},be.pc=function(a){if(a.Ej(),a instanceof li){if(this.On.remove(a),a instanceof Pr){var y=a.containingGroup;y===null?this.H.ai.remove(a):y.gl.remove(a),y=a.layout,y!==null&&(y.diagram=null)}}else a instanceof Hn?this.Dn.remove(a):a instanceof eo||this.Pa.remove(a);y=a.data,y===null||a instanceof eo||(a instanceof Hn?this.bf.remove(y):this.cf.remove(y))},be.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var x=y.value,E=y.key;(!x.Zc()||x instanceof Pr)&<('Invalid node template in Diagram.nodeTemplateMap: template for "'+E+'" must be a Node or a simple Part, not a Group or Link: '+x)}for(y=a.groupTemplateMap.iterator;y.next();)x=y.value,E=y.key,x instanceof Pr||lt('Invalid group template in Diagram.groupTemplateMap: template for "'+E+'" must be a Group, not a normal Node or Link: '+x);for(y=a.linkTemplateMap.iterator;y.next();)x=y.value,E=y.key,x instanceof Hn||lt('Invalid link template in Diagram.linkTemplateMap: template for "'+E+'" must be a Link, not a normal Node or simple Part: '+x);for(y=Bn(),x=a.selection.iterator;x.next();)(E=x.value.data)&&y.push(E);for(x=Bn(),a=a.highlighteds.iterator;a.next();)(E=a.value.data)&&x.push(E);for(a=Bn(),E=this.nodes.iterator;E.next();){var b=E.value;b.data!==null&&(a.push(b.data),a.push(b.location))}for(E=this.links.iterator;E.next();)b=E.value,b.data!==null&&(a.push(b.data),a.push(b.location));for(E=this.parts.iterator;E.next();)b=E.value,b.data!==null&&(a.push(b.data),a.push(b.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),E=0;E<y.length;E++)b=this.Lc(y[E]),b!==null&&(b.isSelected=!0);for(E=0;E<x.length;E++)b=this.Lc(x[E]),b!==null&&(b.isHighlighted=!0);for(E=0;E<a.length;E+=2)b=this.Lc(a[E]),b!==null&&(b.location=a[E+1]);Ot(y),Ot(x),Ot(a)}},xo.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},xo.prototype.addModeledParts=function(a,y){var x=this,E=this.diagram.model;a.forEach(function(b){E.lb(b)&&fS(x,b,!1)}),a.forEach(function(b){E.lb(b)&&x.resolveReferencesForData(b)}),y!==!1&&yf(this.diagram,!1)};function fS(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);e:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var E=a.Ro(y),b=gS(a,y,E);if(b!==null&&(Rl(b),b=b.copy(),b!==null)){var z=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=E,b.ub=y,a.tp&&(b.Jg="Tool"),a.diagram.add(b),b.ub=null,b.data=y,a.diagram.skipsModelSourceBindings=z,E=b;break e}}E=null}E!==null&&x&&a.resolveReferencesForData(y)}}xo.prototype.insertLink=function(){return null},xo.prototype.resolveReferencesForData=function(){},xo.prototype.Ro=function(a){return this.H.model.Ro(a)};function gS(a,y,x){a=a.H;var E=a.model;return E.Xj()&&E.Yu(y)?(y=a.groupTemplateMap.I(x),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(vS||(vS=!0,ti('No Group template found for category "'+x+'"'),ti(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(mS||(mS=!0,ti('No Node template found for category "'+x+'"'),ti(" Using default node template")),y=a.ny))),y}xo.prototype.getLinkCategoryForData=function(){return""},xo.prototype.setLinkCategoryForData=function(){},xo.prototype.setFromNodeForLink=function(){},xo.prototype.setToNodeForLink=function(){},xo.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(yS||(yS=!0,ti('No Link template found for category "'+a+'"'),ti(" Using default link template")),x=y.my)),x},xo.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},xo.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},xo.prototype.ip=function(a){a=this.Lc(a),a!==null&&(bg(this.diagram,a,!1),this.unresolveReferencesForPart(a))},xo.prototype.unresolveReferencesForPart=function(){},xo.prototype.removeDataForLink=function(){},xo.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},xo.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof li?a:null)},xo.prototype.findLinkForKey=function(){return null},be=xo.prototype,be.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},be.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof li?a:null)},be.Kc=function(a){return a===null?null:this.bf.I(a)},be.ms=function(a){for(var y=0;y<arguments.length;++y);y=new Fn;for(var x=this.On.iterator;x.next();){var E=x.value,b=E.data;if(b!==null)for(var z=0;z<arguments.length;z++){var te=arguments[z];if(tn(te)&&ly(this,b,te)){y.add(E);break}}}return y.iterator},be.ls=function(a){for(var y=0;y<arguments.length;++y);y=new Fn;for(var x=this.Dn.iterator;x.next();){var E=x.value,b=E.data;if(b!==null)for(var z=0;z<arguments.length;z++){var te=arguments[z];if(tn(te)&&ly(this,b,te)){y.add(E);break}}}return y.iterator};function ly(a,y,x){for(var E in x){var b=y[E],z=x[E];if(si(z)){if(!si(b)||b.length<z.length)return!1;for(var te=0;te<b.length;te++){var re=z[te];if(re!==void 0&&!pS(a,b[te],re))return!1}}else if(!pS(a,b,z))return!1}return!0}function pS(a,y,x){if(typeof x=="function"){if(!x(y))return!1}else if(x instanceof RegExp){if(!y||!x.test(y.toString()))return!1}else if(tn(y)&&tn(x)){if(!ly(a,y,x))return!1}else if(y!==x)return!1;return!0}xo.prototype.doModelChanged=function(a){if(this.H){var y=this.H;if(a.model===y.model){var x=a.change;if(y.doModelChanged(a),y.aa){y.aa=!1;try{var E=a.modelChange;if(E!=="")if(x===Ro){if(E==="nodeCategory"){var b=this.Lc(a.object),z=a.newValue;b!==null&&typeof z=="string"&&(b.category=z)}else E==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(x===qo){var te=a.newValue;E==="nodeDataArray"&&tn(te)&&fS(this,te),y.isModified=!0}else if(x===ua){var re=a.oldValue;E==="nodeDataArray"&&tn(re)&&this.ip(re),y.isModified=!0}else x===Aa&&(E==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):E==="ModelDisplaced"&&this.Wd());else if(x===Ro){var oe=a.propertyName,le=a.object;le===y.model?(oe==="nodeKeyProperty"||oe==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(le,oe),y.isModified=!0}else if(x===qo||x===ua){var he=a.change===qo,ge=he?a.newParam:a.oldParam,Se=he?a.newValue:a.oldValue,we=this.aj.I(a.object);if(Array.isArray(we))for(a=0;a<we.length;a++){var Ae=we[a];if(he)M0(Ae,Se,ge,!0);else if(!(0>ge)){var Ne=ge+Qg(Ae);Ae.pc(Ne,!0),wv(Ae,Ne,ge)}}y.isModified=!0}}finally{y.aa=!0}}}}},xo.prototype.updateAllTargetBindings=function(a){a===void 0&&(a="");for(var y=this.parts.iterator;y.next();)y.value.La(a);for(y=this.nodes.iterator;y.next();)y.value.La(a);for(y=this.links.iterator;y.next();)y.value.La(a)},xo.prototype.rp=function(){for(var a=this.H.model,y=new Fn,x=a.nodeDataArray,E=0;E<x.length;E++)y.add(x[E]);var b=[];for(this.nodes.each(function(te){te.data===null||y.contains(te.data)||b.push(te.data)}),this.parts.each(function(te){te.data===null||y.contains(te.data)||b.push(te.data)}),b.forEach(function(te){MS(a,te,!1)}),E=0;E<x.length;E++){var z=x[E];this.Lc(z)===null&&FS(a,z,!1)}for(this.refreshDataBoundLinks(),x=this.parts.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.nodes.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.links.iterator;x.next();)x.value.updateRelationshipsFromData()},xo.prototype.refreshDataBoundLinks=function(){},xo.prototype.updateRelationshipsFromData=function(){},xo.prototype.updateDataBindings=function(a,y){if(typeof y=="string"){var x=this.Lc(a);if(x!==null)x.La(y);else{x=null;for(var E=this.aj.iterator;E.next();){for(var b=E.value,z=0;z<b.length;z++){var te=b[z].sx(a);te!==null&&(x===null&&(x=Bn()),x.push(te))}if(x!==null)break}if(x!==null){for(E=0;E<x.length;E++)x[E].La(y);Ot(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function uy(a,y){var x=y.Hh;if(si(x)){var E=a.aj.I(x);if(E===null)E=[],E.push(y),a.aj.add(x,E);else{for(a=0;a<E.length;a++)if(E[a]===y)return;E.push(y)}}}function hy(a,y,x){Qd(y,function(te){te=te.O.s;for(var re=te.length,oe=0;oe<re;oe++)Tg(x,te[oe])});var E=y.Hh;if(si(E)){var b=a.aj.I(E);if(b!==null){for(var z=0;z<b.length;z++)if(b[z]===y){b.splice(z,1),b.length===0&&a.aj.remove(E);break}}}}xo.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var E=new Wt;if(si(a))for(var b=0;b<a.length;b++)um(this,a[b],y,E,x);else for(a=a.iterator;a.next();)um(this,a.value,y,E,x);if(y!==null){x=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,b=new Fn;for(var z=new Wt,te=E.iterator;te.next();){var re=te.value;if(re instanceof Hn)a||re.fromNode!==null&&re.toNode!==null||b.add(re);else if(re instanceof li&&re.data!==null&&x.Tl()){var oe=re;re=te.key;var le=re.pg();le!==null&&(le=E.I(le),le!==null?(x.qe(oe.data,x.wa(le.data)),oe=y.Kc(oe.data),re=re.kh(),re!==null&&oe!==null&&z.add(re,oe)):x.qe(oe.data,void 0))}}if(0<b.count&&y.Is(b,!1),0<z.count)for(x=z.iterator;x.next();)E.add(x.key,x.value)}if(y!==null&&this.H!==null&&(y=y.model,x=y.afterCopyFunction,x!==null)){var he=new Wt;E.each(function(ge){ge.key.data!==null&&he.add(ge.key.data,ge.value.data)}),x(he,y,this.H.model)}for(y=E.iterator;y.next();)y.value.La();return E};function um(a,y,x,E,b){if(y===null||b&&!y.canCopy())return null;if(E.contains(y))return E.I(y);var z=a.copyPartData(y,x);if(!(z instanceof Xi))return null;if(z.isSelected=!1,z.isHighlighted=!1,E.add(y,z),y instanceof li){for(var te=y.linksConnected;te.next();){var re=te.value;if(re.fromNode===y){var oe=E.I(re);oe!==null&&(oe.fromNode=z)}re.toNode===y&&(re=E.I(re),re!==null&&(re.toNode=z))}if(y instanceof Pr&&z instanceof Pr)for(y=y.memberParts;y.next();)te=um(a,y.value,x,E,b),te instanceof Hn||te===null||(te.containingGroup=z)}else if(y instanceof Hn&&z instanceof Hn)for(te=y.fromNode,te!==null&&(te=E.I(te),te!==null&&(z.fromNode=te)),te=y.toNode,te!==null&&(te=E.I(te),te!==null&&(z.toNode=te)),y=y.labelNodes;y.next();)te=um(a,y.value,x,E,b),te!==null&&te instanceof li&&(te.labeledLink=z);return z}xo.prototype.copyPartData=function(a,y){var x=null,E=a.data;if(E!==null&&y!==null){var b=y.model;a instanceof Hn||(E=b.copyNodeData(E),tn(E)&&(b.xf(E),x=y.Lc(E)))}else Rl(a),x=a.copy(),x!==null&&(b=this.H,y!==null?y.add(x):E!==null&&b!==null&&b.commandHandler!==null&&b.commandHandler.copiesClipboardData&&(y=b.model,b=null,x instanceof Hn||(b=y.copyNodeData(E)),tn(b)&&(x.data=b)));return x},pn.Object.defineProperties(xo.prototype,{nodes:{get:function(){return this.On}},links:{get:function(){return this.Dn}},parts:{get:function(){return this.Pa}},diagram:{get:function(){return this.H}},addsToTemporaryLayer:{get:function(){return this.tp},set:function(a){this.tp=a}}}),xo.prototype.updateAllRelationshipsFromData=xo.prototype.rp,xo.prototype.findLinksByExample=xo.prototype.ls,xo.prototype.findNodesByExample=xo.prototype.ms,xo.prototype.findLinkForData=xo.prototype.Kc,xo.prototype.findNodeForData=xo.prototype.ii,xo.prototype.findPartForData=xo.prototype.Lc,xo.prototype.findNodeForKey=xo.prototype.Vb,xo.prototype.removeModeledPart=xo.prototype.ip,xo.prototype.removeModeledParts=xo.prototype.Gs,xo.prototype.rebuildParts=xo.prototype.Wd;var mS=!1,vS=!1,yS=!1;xo.className="PartManager";function Wa(a){xo.apply(this,arguments)}Zt(Wa,xo),Wa.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),SS(this,a.linkDataArray)},Wa.prototype.addModeledParts=function(a){for(xo.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)zf(a.value);yf(this.diagram,!1)};function SS(a,y){y.forEach(function(x){xS(a,x)}),yf(a.diagram,!1)}function xS(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var x=a.getLinkCategoryForData(y),E=a.findLinkTemplateForCategory(x);if(E!==null){Rl(E);var b=E.copy();if(b!==null){E=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,b.Tf=x,b.ub=y,x=a.diagram.model;var z=fm(x,y,!0);z!==""&&(b.fromPortId=z),z=dl(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof li&&(b.fromNode=z)),z=fm(x,y,!1),z!==""&&(b.toPortId=z),z=dl(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof li&&(b.toNode=z)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(te){te=a.Vb(te),te!==null&&(te.labeledLink=b)}),a.tp&&(b.Jg="Tool"),a.diagram.add(b),b.ub=null,b.data=y,a.diagram.skipsModelSourceBindings=E}}}}Wa.prototype.removeAllModeledParts=function(){var a=this.diagram.model;PS(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function PS(a,y){y.forEach(function(x){a.ip(x)})}Wa.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},Wa.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},Wa.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},Wa.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},Wa.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},Wa.prototype.findPartForKey=function(a){var y=xo.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},Wa.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},Wa.prototype.doModelChanged=function(a){var y=this;if(xo.prototype.doModelChanged.call(this,a),this.diagram){var x=this.diagram;if(a.model===x.model){var E=a.change;if(x.aa){x.aa=!1;try{var b=a.modelChange;if(b!==""){if(E===Ro){if(b==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var te=this.Vb(a.newValue);z.fromNode=te}}else if(b==="linkToKey"){var re=this.Kc(a.object);if(re!==null){var oe=this.Vb(a.newValue);re.toNode=oe}}else if(b==="linkFromPortId"){var le=this.Kc(a.object);if(le!==null){var he=a.newValue;typeof he=="string"&&(le.fromPortId=he)}}else if(b==="linkToPortId"){var ge=this.Kc(a.object);if(ge!==null){var Se=a.newValue;typeof Se=="string"&&(ge.toPortId=Se)}}else if(b==="nodeGroupKey"){var we=this.Lc(a.object);if(we!==null){var Ae=a.newValue;if(Ae!==void 0){var Ne=this.Vb(Ae);Ne instanceof Pr?we.containingGroup=Ne:we.containingGroup=null}else we.containingGroup=null}}else if(b==="linkLabelKeys"){var $e=this.Kc(a.object);if($e!==null){var Ke=a.oldValue,at=a.newValue;Array.isArray(Ke)&&Ke.forEach(function(yn){0<=at.indexOf(yn)||(yn=y.Vb(yn),yn!==null&&(yn.labeledLink=null))}),Array.isArray(at)&&at.forEach(function(yn){yn=y.Vb(yn),yn!==null&&(yn.labeledLink=$e)})}}else if(b==="linkCategory"){var dt=this.Kc(a.object),ft=a.newValue;dt!==null&&typeof ft=="string"&&(dt.category=ft)}else b==="linkDataArray"&&(PS(this,a.oldValue),SS(this,a.newValue));x.isModified=!0}else if(E===qo){var wt=a.newValue;if(b==="linkDataArray"&&typeof wt=="object"&&wt!==null)xS(this,wt);else if(b==="linkLabelKeys"&&fd(wt)){var Gt=this.Kc(a.object),oi=this.Vb(wt);Gt!==null&&oi!==null&&(oi.labeledLink=Gt)}x.isModified=!0}else if(E===ua){var bi=a.oldValue;if(b==="linkDataArray"&&typeof bi=="object"&&bi!==null)this.ip(bi);else if(b==="linkLabelKeys"&&fd(bi)){var Si=this.Vb(bi);Si!==null&&(Si.labeledLink=null)}x.isModified=!0}}else if(E===Ro){var Zn=a.propertyName;a.object!==x.model||Zn!=="linkFromKeyProperty"&&Zn!=="linkToKeyProperty"&&Zn!=="linkFromPortIdProperty"&&Zn!=="linkToPortIdProperty"&&Zn!=="linkLabelKeysProperty"&&Zn!=="nodeIsGroupProperty"&&Zn!=="nodeGroupKeyProperty"&&Zn!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},Wa.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new Fn,E=y.linkDataArray;E.forEach(function(z){x.add(z)});var b=[];this.links.each(function(z){z.data===null||x.contains(z.data)||b.push(z.data)}),b.forEach(function(z){NS(y,z,!1)}),E.forEach(function(z){a.Kc(z)===null&&BS(y,z,!1)})},Wa.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var E=x.model;if(a instanceof Hn){var b=dl(E,y,!0);if(b=x.Vb(b),a.fromNode=b,b=dl(E,y,!1),b=x.Vb(b),a.toNode=b,y=E.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){b=y[0];var z=a.labelNodes.first();if(E.wa(z.data)===b)return}b=new Fn().addAll(y);var te=new Fn;a.labelNodes.each(function(re){re.data!==null&&(re=E.wa(re.data),re!==void 0&&te.add(re))}),y=te.copy(),y.hp(b),b=b.copy(),b.hp(te),(0<y.count||0<b.count)&&(y.each(function(re){re=x.Vb(re),re!==null&&re.labeledLink===a&&(re.labeledLink=null)}),b.each(function(re){re=x.Vb(re),re!==null&&re.labeledLink!==a&&(re.labeledLink=a)}))}}else!(a instanceof eo)&&(y=E.lh(y),y=x.findPartForKey(y),y===null||y instanceof Pr)&&(a.containingGroup=y)}}},Wa.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var E=mp(y,x),b=this.Lc(a);if(E!==null&&b!==null){E=E.iterator;for(var z={};E.next();){var te=E.value;y.lb(te)?b instanceof Pr&&y.lh(te)===x&&(te=this.Lc(te),te!==null&&(te.containingGroup=b)):(z.link=this.Kc(te),z.link!==null&&b instanceof li&&(dl(y,te,!0)===x&&(z.link.fromNode=b),dl(y,te,!1)===x&&(z.link.toNode=b),te=y.Ef(te),Array.isArray(te)&&te.some(function(re){return function(oe){return oe===x?(b.labeledLink=re.link,!0):!1}}(z)))),z={link:z.link}}lu(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof Pr&&(b.containingGroup=a))}},Wa.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof li){var x=y.wa(a.data);if(x!==void 0){for(var E=a.linksConnected;E.next();)su(y,x,E.value.data);if(a.isLinkLabel&&(E=a.labeledLink,E!==null&&su(y,x,E.data)),a instanceof Pr)for(a=a.memberParts;a.next();)E=a.value.data,y.lb(E)&&su(y,x,E)}}},Wa.prototype.copyPartData=function(a,y){var x=xo.prototype.copyPartData.call(this,a,y);if(a instanceof Hn)if(a=a.data,a!==null&&y!==null){var E=y.model;a=E.Jo(a),typeof a=="object"&&a!==null&&(E.fi(a),x=y.Kc(a))}else x!==null&&(y=this.diagram,a!==null&&y!==null&&y.commandHandler!==null&&y.commandHandler.copiesClipboardData&&(y=y.model.Jo(a),typeof y=="object"&&y!==null&&(x.data=y)));return x},Wa.prototype.insertLink=function(a,y,x,E){var b=this.diagram,z=b.model,te=b.toolManager.findTool("Linking"),re="";if(a!==null&&(y===null&&(y=a),re=y.portId,re===null&&(re="")),y="",x!==null&&(E===null&&(E=x),y=E.portId,y===null&&(y="")),E=te.archetypeLinkData,E instanceof Hn){if(Rl(E),z=E.copy(),z!==null)return z.fromNode=a,z.fromPortId=re,z.toNode=x,z.toPortId=y,b.add(z),a=te.archetypeLabelNodeData,a instanceof li&&(Rl(a),a=a.copy(),a!==null&&(a.labeledLink=z,b.add(a))),z}else if(E!==null&&(E=z.Jo(E),typeof E=="object"&&E!==null))return a!==null&&_f(z,E,z.wa(a.data),!0),Yf(z,E,re,!0),x!==null&&_f(z,E,z.wa(x.data),!1),Yf(z,E,y,!1),z.fi(E),a=te.archetypeLabelNodeData,a===null||a instanceof li||(a=z.copyNodeData(a),typeof a=="object"&&a!==null&&(z.xf(a),a=z.wa(a),a!==void 0&&z.Bu(E,a))),b.Kc(E);return null},Wa.prototype.findLinkForKey=Wa.prototype.findLinkForKey,Wa.prototype.findPartForKey=Wa.prototype.findPartForKey,Wa.prototype.removeAllModeledParts=Wa.prototype.removeAllModeledParts,Wa.prototype.addModeledParts=Wa.prototype.addModeledParts,Wa.prototype.addAllModeledParts=Wa.prototype.addAllModeledParts,Wa.className="GraphLinksPartManager";function Al(){xo.apply(this,arguments),this.Sg=null}Zt(Al,xo);function hm(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var E=a.diagram.toolManager.findTool("Linking"),b=y,z=x;if(a.diagram.isTreePathToChildren||(b=x,z=y),(E===null||!Mo(E,b,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),E=a.findLinkTemplateForCategory(y),E!==null&&(Rl(E),E=E.copy(),E!==null))){var te=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,E.Tf=y,E.ub=x.data,E.fromNode=b,E.toNode=z,a.diagram.add(E),E.ub=null,E.data=x.data,a.diagram.skipsModelSourceBindings=te}}}Al.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},Al.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},Al.prototype.setFromNodeForLink=function(a,y,x){var E=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)E.qe(a.data,E.wa(y));else{var b=this.Sg;this.Sg=a,x!==null&&E.qe(x.data,void 0),E.qe(y,E.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=b}},Al.prototype.setToNodeForLink=function(a,y,x){var E=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var b=this.Sg;this.Sg=a,x!==null&&E.qe(x.data,void 0),E.qe(y,E.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=b}else E.qe(a.data,E.wa(y))},Al.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},Al.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},Al.prototype.doModelChanged=function(a){if(xo.prototype.doModelChanged.call(this,a),this.diagram){var y=this.diagram;if(a.model===y.model){var x=a.change;if(y.aa){y.aa=!1;try{var E=a.modelChange;if(E!==""){if(x===Ro){if(E==="nodeParentKey"){var b=a.object,z=this.Vb(a.newValue),te=this.ii(b);if(this.Sg!==null)z!==null&&(this.Sg.data=b,this.Sg.category=this.getLinkCategoryForData(b));else if(te!==null){var re=te.kh();re!==null?z===null?y.remove(re):y.isTreePathToChildren?re.fromNode=z:re.toNode=z:hm(this,z,te)}}else if(E==="parentLinkCategory"){var oe=this.ii(a.object),le=a.newValue;if(oe!==null&&typeof le=="string"){var he=oe.kh();he!==null&&(he.category=le)}}y.isModified=!0}}else if(x===Ro){var ge=a.propertyName;a.object===y.model&&ge==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},Al.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var E=x.model;a instanceof li&&(y=E.mh(y),y=x.Vb(y),E=a.pg(),y!==E&&(E=a.kh(),y!==null?E!==null?x.isTreePathToChildren?E.fromNode=y:E.toNode=y:hm(this,y,a):E!==null&&bg(x,E,!1)))}}},Al.prototype.updateDataBindings=function(a,y){xo.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},Al.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var E=mp(y,x),b=this.Lc(a);if(E!==null&&b!==null){for(E=E.iterator;E.next();){var z=E.value;y.lb(z)&&b instanceof li&&y.mh(z)===x&&hm(this,b,this.ii(z))}lu(y,x)}a=y.mh(a),a!==void 0&&b instanceof li&&(a=this.Vb(a),hm(this,a,b))}},Al.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof li){var x=y.wa(a.data),E=this.Kc(a.data);if(E!==null){E.isSelected=!1,E.isHighlighted=!1;var b=E.layer;if(b!==null){var z=b.pc(-1,E,!1);0<=z&&this.diagram.cb(ua,"parts",b,E,null,z,null),z=E.layerChanged,z!==null&&z(E,b,null)}}for(E=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)b=a.value,b=(E?b.toNode:b.fromNode).data,y.lb(b)&&su(y,x,b)}},Al.prototype.insertLink=function(a,y,x){y=this.diagram.model;var E=a,b=x;return this.diagram.isTreePathToChildren||(E=x,b=a),E!==null&&b!==null?(y.qe(b.data,y.wa(E.data)),b.kh()):null},Al.prototype.findLinkForKey=Al.prototype.findLinkForKey,Al.className="TreePartManager";function Ni(a,y){this.kl=new Fn,this.il=new Fn,this.Wv=`,
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
"removedNodeKeys": `,this.vh=null,Kn(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new Wt,this.Th="key",this.Bk=this.bl=null,this.Jm=this.Km=!1,this.Mm=!0,this.xm=null,this.lj="category",this.Vf=new Wt,this.Lt=new An,this.Wg=!1,this.o=null,this.undoManager=new Jo,a!==void 0&&(si(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Ni.prototype.cloneProtected=function(a){a.xa=this.xa,a.Sm=this.Sm,a.Gg=this.Gg,a.Th=this.Th,a.bl=this.bl,a.Bk=this.Bk,a.Km=this.Km,a.Jm=this.Jm,a.Mm=this.Mm,a.xm=this.xm,a.lj=this.lj},Ni.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ni.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Ni.prototype.toString=function(a){if(a===void 0&&(a=0),1<a)return this.np();var y=(this.name!==""?this.name:"")+" Model";if(0<a){y+=`
|
|
node data:`,a=this.nodeDataArray;for(var x=a.length,E=0;E<x;E++){var b=a[E];y+=" "+this.wa(b)+":"+Ji(b)}}return y},Ni.prototype.xA=function(a){a.change!==Aa&<("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof pa?(CS(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Ni.prototype.Qv=function(a,y){var x=this,E=!1,b=new Fn,z=new Fn,te=new Fn,re=this.vh;a.changes.each(function(ge){ge.model===x&&(ge.modelChange==="nodeDataArray"?ge.change===qo?b.add(ge.newValue):ge.change===ua&&te.add(ge.oldValue):x.lb(ge.object)?z.add(ge.object):ge.change!==Ro||x.modelData!==ge.object&&ge.propertyName!=="modelData"?ge.object!==null&&(re&&re.contains(ge.object)?re.get(ge.object).each(function(Se){x.lb(Se)&&z.add(Se)}):ge.object instanceof Ni||x.ri()&&x.Jc(ge.object)||ES(x,ge.object).each(function(Se){z.add(Se)})):E=!0)});var oe=this.il;oe.clear(),b.each(function(ge){oe.add(x.wa(ge)),y||z.add(ge)});var le=this.kl;le.clear(),te.each(function(ge){le.add(x.wa(ge)),y&&z.add(ge)}),a=x.cloneDeep(z.Fa());var he=null;return E&&(he===null&&(he={}),he.modelData=this.cloneDeep(this.modelData)),0<oe.count&&(he===null&&(he={}),y?he.removedNodeKeys=oe.Fa():he.insertedNodeKeys=oe.Fa()),0<a.length&&(he===null&&(he={}),he.modifiedNodeData=a),0<le.count&&(he===null&&(he={}),y?he.insertedNodeKeys=le.Fa():he.removedNodeKeys=le.Fa()),le.clear(),oe.clear(),he},Ni.prototype.cloneDeep=function(a){return Vf(this,a,!0)};function Vf(a,y,x,E,b,z){function te(ge,Se){re?(ge.__gohashid===void 0&&z.push(ge),E.set(ge,Se)):(ge=Co++,E.set(ge,Se),b.set(ge,y))}if(!tn(y))return y;z||(z=[]);var re=Object.isExtensible(y);if(E||(E=new Wt),re){var oe=E.get(y);if(oe)return oe}else for(b||(b=new Wt),oe=b.iterator;oe.next();){var le=oe.key;if(oe.value===y&&(le=E.get(le)))return le}if(Array.isArray(y)){oe=[],te(y,oe);for(var he=0;he<y.length;he++)oe.push(Vf(a,y[he],!1,E,b,z))}else if(y instanceof je||y instanceof Xe||y instanceof pt||y instanceof ri||y instanceof bn)oe=y.copy(),te(y,oe);else{if(y instanceof So||y instanceof Cn||y instanceof Kt)return y;if(y instanceof An)oe=new An().addAll(Vf(a,y.Fa(),!1,E,b,z)),te(y,oe);else if(y instanceof Fn)oe=new Fn().addAll(Vf(a,y.Fa(),!1,E,b,z)),te(y,oe);else if(y instanceof Wt)oe=new Wt().addAll(Vf(a,y.Fa(),!1,E,b,z)),te(y,oe);else if(y instanceof Date)oe=new Date(y.getTime()),te(y,oe);else if(y instanceof RegExp)oe=new RegExp(y),te(y,oe),oe.lastIndex=y.lastIndex;else if(typeof y.copy=="function")oe=y.copy(),te(y,oe);else for(he in oe={},te(y,oe),y)he!=="__gohashid"&&(oe[he]=Vf(a,y[he],!1,E,b,z))}return x&&z.forEach(function(ge){delete ge.__gohashid}),oe}be=Ni.prototype,be.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},be.rm=function(){var a="";return this.name!==""&&(a+=`,
|
|
"name": `+this.quote(this.name)),this.dataFormat!==""&&(a+=`,
|
|
"dataFormat": `+this.quote(this.dataFormat)),this.isReadOnly&&(a+=`,
|
|
"isReadOnly": `+this.isReadOnly),this.nodeKeyProperty!=="key"&&typeof this.nodeKeyProperty=="string"&&(a+=`,
|
|
"nodeKeyProperty": `+this.quote(this.nodeKeyProperty)),this.copiesArrays&&(a+=`,
|
|
"copiesArrays": true`),this.copiesArrayObjects&&(a+=`,
|
|
"copiesArrayObjects": true`),this.copiesKey||(a+=`,
|
|
"copiesKey": false`),this.nodeCategoryProperty!=="category"&&typeof this.nodeCategoryProperty=="string"&&(a+=`,
|
|
"nodeCategoryProperty": `+this.quote(this.nodeCategoryProperty)),a},be.gp=function(a){a.name&&(this.name=a.name),a.dataFormat&&(this.dataFormat=a.dataFormat),a.isReadOnly&&(this.isReadOnly=!0),a.nodeKeyProperty&&(this.nodeKeyProperty=a.nodeKeyProperty),a.copiesArrays&&(this.copiesArrays=!0),a.copiesArrayObjects&&(this.copiesArrayObjects=!0),a.copiesKey===!1&&(this.copiesKey=!1),a.nodeCategoryProperty&&(this.nodeCategoryProperty=a.nodeCategoryProperty)};function wS(a,y){y=y.modelData,tn(y)&&(a.dm(y),a.modelData=y)}be.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!AS(x,a[x])){y=!0;break}return a="",y&&(a=`,
|
|
"modelData": `+dy(this,this.modelData)),a+`,
|
|
"nodeDataArray": `+cd(this,this.nodeDataArray,!0)},be.kv=function(a){wS(this,a),a=a.nodeDataArray,si(a)&&(this.dm(a),this.nodeDataArray=a)};function CS(a,y){function x(b,z){if((z=z.part)&&(z=z.data,b!==z)){var te=E.get(b);te===null?(te=new Fn,te.add(z),E.add(b,te)):te.add(z)}}var E=a.vh;E===null&&(E=new Wt,y.changes.each(function(b){if(b.diagram!==null){var z=b.change;z===Ro?(b=b.object.panel)&&(z=b.data)&&x(z,b):(z===qo||z===ua)&&(b=b.object,(z=b.itemArray)&&x(z,b))}}),a.vh=E)}function ES(a,y){for(var x=new Fn,E=0;E<a.nodeDataArray.length;E++){var b=a.nodeDataArray[E];dm(a,y,b,b,x)}return x}function dm(a,y,x,E,b){if(Array.isArray(x))for(var z=0;z<x.length;z++){var te=x[z];if(te===y)return b.add(E),!0;if(dm(a,y,te,E,b))return!0}else if(tn(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(te=x[z],te===y)return b.add(E),!0;if(dm(a,y,te,E,b))return!0}return!1}be.Pv=function(a,y){var x=this,E=!1,b=new Fn,z=new Fn,te=new Fn,re=this.vh;a.changes.each(function(he){he.model===x&&(he.modelChange==="nodeDataArray"?he.change===qo?b.add(he.newValue):he.change===ua&&te.add(he.oldValue):x.lb(he.object)?z.add(he.object):he.change!==Ro||x.modelData!==he.object&&he.propertyName!=="modelData"?he.object!==null&&(re&&re.contains(he.object)?re.get(he.object).each(function(ge){x.lb(ge)&&z.add(ge)}):he.object instanceof Ni||x.ri()&&x.Jc(he.object)||ES(x,he.object).each(function(ge){z.add(ge)})):E=!0)});var oe=this.il;oe.clear(),b.each(function(he){oe.add(x.wa(he)),y||z.add(he)});var le=this.kl;return le.clear(),te.each(function(he){le.add(x.wa(he)),y&&z.add(he)}),a="",E&&(a+=`,
|
|
"modelData": `+dy(this,this.modelData)),0<oe.count&&(a+=(y?this.Yv:this.Wv)+cd(this,oe.Fa(),!0)),0<z.count&&(a+=this.jy+cd(this,z.Fa(),!0)),0<le.count&&(a+=(y?this.Wv:this.Yv)+cd(this,le.Fa(),!0)),le.clear(),oe.clear(),a},be.fp=function(a){(a.name!==void 0&&a.name!==this.name||a.dataFormat!==void 0&&a.dataFormat!==this.dataFormat||a.isReadOnly!==void 0&&a.isReadOnly!==this.isReadOnly||a.nodeKeyProperty!==void 0&&a.nodeKeyProperty!==this.nodeKeyProperty||a.copiesArrays!==void 0&&a.copiesArrays!==this.copiesArrays||a.copiesArrayObjects!==void 0&&a.copiesArrayObjects!==this.copiesArrayObjects||a.copiesKey!==void 0&&a.copiesKey!==this.copiesKey||a.nodeCategoryProperty!==void 0&&a.nodeCategoryProperty!==this.nodeCategoryProperty)&<("applyIncrementalJson cannot change Model properties"),wS(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,E=new Wt;if(Array.isArray(x))for(var b=0;b<x.length;b++){var z=x[b],te=this.wa(z);te!=null&&E.set(te,z)}if(Array.isArray(y))for(b=y.length,z=0;z<b;z++){te=y[z];var re=this.hc(te);re===null&&(re=(re=E.get(te))?re:this.copyNodeData({}),this.km(re,te),this.xf(re))}if(Array.isArray(x)){for(y=x.length,E=0;E<y;E++)if(b=x[E],z=this.wa(b),z=this.hc(z),z!==null){for(var oe in b)oe==="__gohashid"||oe===this.nodeKeyProperty||this.Wj()&&oe===this.nodeIsGroupProperty||this.setDataProperty(z,oe,b[oe]);this.lm(b,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,oe=0;oe<x;oe++)y=this.hc(a[oe]),y!==null&&this.cm(y)},be.$x=function(a,y){a.change!==Aa&<("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof pa?(y===void 0&&(y=vp(this,this)),CS(this,x),a=this.Pv(x,a.propertyName==="FinishedUndo"),this.vh=null,y==="2"?'{ "incremental": 2'+a+"}":'{ "class": '+this.quote(y)+', "incremental": 1'+this.rm()+a+"}"):'{ "incremental": 0 }'},be.yA=function(a,y){return this.$x(a,y)},be.np=function(a){return a===void 0&&(a=vp(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},be.toJSON=function(a){return this.np(a)},be.Zw=function(a){var y=null;if(typeof a=="string")try{y=un.JSON.parse(a)}catch(E){}else typeof a=="object"?y=a:lt("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&<("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},be.Ky=function(a){return this.Zw(a)},Ni.constructGraphLinksModel=function(){return new Ni},be=Ni.prototype,be.dm=function(a){if(si(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];if(tn(E)){var b=x;E=this.dm(E),Array.isArray(a)?a[b]=E:lt("Cannot replace an object in an HTMLCollection or NodeList at "+b)}}else if(tn(a)){for(y in a)if(x=a[y],tn(x)&&(x=this.dm(x),a[y]=x,y==="points"&&Array.isArray(x))){for(b=x.length%2===0,E=0;E<x.length;E++)if(typeof x[E]!="number"){b=!1;break}if(b){for(b=new An,E=0;E<x.length/2;E++)b.add(new je(x[2*E],x[2*E+1]));b.freeze(),a[y]=b}}return jx(a)}return a},be.sm=function(a){return a===void 0?"undefined":a===null?"null":a===!0?"true":a===!1?"false":typeof a=="string"?this.quote(a):typeof a=="number"?a===1/0?"9e9999":a===-1/0?"-9e9999":isNaN(a)?'{"class":"NaN"}':a.toString():a instanceof Date?'{"class":"Date", "value":"'+a.toJSON()+'"}':a instanceof Number?this.sm(a.valueOf()):si(a)?cd(this,a):tn(a)?dy(this,a):typeof a=="function"?"null":a.toString()};function cd(a,y,x){x===void 0&&(x=!1);var E=y.length;if(0>=E)return"[]";var b=new Nr;b.add("["),x&&1<E&&b.add(`
|
|
`);for(var z=0;z<E;z++){var te=y[z];te!==void 0&&(0<z&&(b.add(","),x&&b.add(`
|
|
`)),b.add(a.sm(te)))}return x&&1<E&&b.add(`
|
|
`),b.add("]"),b.toString()}function AS(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function Ms(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function dy(a,y){var x=y;if(x instanceof je)y={class:"go.Point",x:Ms(x.x),y:Ms(x.y)};else if(x instanceof Xe)y={class:"go.Size",width:Ms(x.width),height:Ms(x.height)};else if(x instanceof pt)y={class:"go.Rect",x:Ms(x.x),y:Ms(x.y),width:Ms(x.width),height:Ms(x.height)};else if(x instanceof ri)y={class:"go.Margin",top:Ms(x.top),right:Ms(x.right),bottom:Ms(x.bottom),left:Ms(x.left)};else if(x instanceof bn)x.sb()?y={class:"go.Spot",x:Ms(x.x),y:Ms(x.y),offsetX:Ms(x.offsetX),offsetY:Ms(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof So){if(y={class:"go.Brush",type:x.type.name},x.type===Fh?y.color=x.color:(x.type===ih||x.type===Cl)&&(y.start=x.start,y.end=x.end,x.type===Cl&&(x.startRadius!==0&&(y.startRadius=Ms(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=Ms(x.endRadius)))),x.colorStops!==null){var E={};for(x=x.colorStops.iterator;x.next();)E[x.key]=x.value;y.colorStops=E}}else x instanceof Cn?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=Ms(x.startX)),x.startY!==0&&(y.startY=Ms(x.startY)),x.endX!==0&&(y.endX=Ms(x.endX)),x.endY!==0&&(y.endY=Ms(x.endY)),x.spot1.D(Ii)||(y.spot1=x.spot1),x.spot2.D(ni)||(y.spot2=x.spot2),x.type===Cn.o&&(y.path=Cn.ia(x))):x instanceof Kt&&(y={class:"go.EnumValue",classType:vp(a,x.classType),name:x.name});E="{",x=!0;for(var b in y){var z=va(y,b);if(!AS(b,z))if(x?x=!1:E+=",",E+=a.quote(b)+":",b==="points"&&z instanceof An){var te="[";for(z=z.iterator;z.next();){var re=z.value;1<te.length&&(te+=","),te+=a.sm(re.x),te+=",",te+=a.sm(re.y)}te+="]",E+=te}else E+=a.sm(z)}return E+"}"}function Ls(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function jx(a){if(typeof a!="object")return a;var y=a.class||"";if(y==="NaN")return NaN;if(y==="Date")return new Date(a.value);if(y.indexOf("go.")!==0)return a;y=y.substr(3);var x=a;if(y==="Point")x=new je(Ls(a.x),Ls(a.y));else if(y==="Size")x=new Xe(Ls(a.width),Ls(a.height));else if(y==="Rect")x=new pt(Ls(a.x),Ls(a.y),Ls(a.width),Ls(a.height));else if(y==="Margin")x=new ri(Ls(a.top),Ls(a.right),Ls(a.bottom),Ls(a.left));else if(y==="Spot")typeof a.enum=="string"?x=ir(a.enum):x=new bn(Ls(a.x),Ls(a.y),Ls(a.offsetX),Ls(a.offsetY));else if(y==="Brush"){if(x=new So,x.type=Oi(So,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof bn&&(x.start=a.start),a.end instanceof bn&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=Ls(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=Ls(a.endRadius)),a=a.colorStops,tn(a))for(var E in a)x.addColorStop(parseFloat(E),a[E])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=Cn.parse(a.path):x=new Cn,x.type=Oi(Cn,a.type),typeof a.startX=="number"&&(x.startX=Ls(a.startX)),typeof a.startY=="number"&&(x.startY=Ls(a.startY)),typeof a.endX=="number"&&(x.endX=Ls(a.endX)),typeof a.endY=="number"&&(x.endY=Ls(a.endY)),a.spot1 instanceof bn&&(x.spot1=a.spot1),a.spot2 instanceof bn&&(x.spot2=a.spot2)):y==="EnumValue"&&(E=a.classType,E.indexOf("go.")===0&&(E=E.substr(3)),E=fy(E),typeof E=="function"&&(x=Oi(E,a.name)));return x}be.Pe=function(a){return this.Lt.add(a),this},be.ik=function(a){this.Lt.remove(a)},be.ds=function(a){this.skipsUndoManager||this.undoManager.Tu(a);for(var y=this.Lt,x=y.length,E=0;E<x;E++)y.M(E)(a)},be.cb=function(a,y,x,E,b,z,te){ba(this,"",a,y,x,E,b,z,te)},be.g=function(a,y,x,E,b){ba(this,"",Ro,a,this,y,x,E,b)},be.Fs=function(a,y,x,E,b,z){ba(this,"",Ro,y,a,x,E,b,z)};function ba(a,y,x,E,b,z,te,re,oe){re===void 0&&(re=null),oe===void 0&&(oe=null);var le=new Go;le.model=a,le.change=x,le.modelChange=y,le.propertyName=E,le.object=b,le.oldValue=z,le.oldParam=re,le.newValue=te,le.newParam=oe,a.ds(le)}Ni.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===Ro){var x=a.object,E=a.propertyName,b=a.I(y);E===this.nodeKeyProperty&&this.lb(x)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),b!==void 0&&this.kb.add(b,x)),$o(x,E,b)}else a.change===qo?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,tn(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]===a&&tr(this.Tc,x),E!==void 0&&this.kb.remove(E)):(this.Tc[x]!==a&&Yi(this.Tc,x,a),E!==void 0&&this.kb.add(E,a)))):a.modelChange===""?((E=a.object)&&!si(E)&&a.propertyName&&(E=va(a.object,a.propertyName)),si(E)&&typeof x=="number"&&(a=a.newValue,y?tr(E,x):Yi(E,x,a))):lt("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===ua?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,tn(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]!==a&&Yi(this.Tc,x,a),E!==void 0&&this.kb.add(E,a)):(this.Tc[x]===a&&tr(this.Tc,x),E!==void 0&&this.kb.remove(E)))):a.modelChange===""?((E=a.object)&&!si(E)&&a.propertyName&&(E=va(a.object,a.propertyName)),si(E)&&typeof x=="number"&&(a=a.oldValue,y?Yi(E,x,a):tr(E,x))):lt("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==Aa&<("unknown ChangedEvent: "+a.toString())},Ni.prototype.Ea=function(a){return this.undoManager.Ea(a)},Ni.prototype.eb=function(a){return this.undoManager.eb(a)},Ni.prototype.Kf=function(){return this.undoManager.Kf()},Ni.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},be=Ni.prototype,be.La=function(a,y){y===void 0&&(y=""),ba(this,"SourceChanged",Aa,y,a,null,null)},be.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=va(a,y),y!==void 0)){if(fd(y))return y;lt("Key value for node data "+a+" is not a number or a string: "+y)}}},be.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var E=va(a,x);E!==y&&this.hc(y)===null&&($o(a,x,y),E!==void 0&&this.kb.remove(E),this.kb.add(y,a),ba(this,"nodeKey",Ro,x,a,E,y),typeof x=="string"&&this.La(a,x),this.jp(E,y))}else $o(a,x,y)}};function fd(a){return typeof a=="number"||typeof a=="string"}be.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},be.hc=function(a){return a===null&<("Model.findNodeDataForKey:key must not be null"),a!==void 0&&fd(a)?this.kb.I(a):null},be.$u=function(a){if(a!==null){var y=this.Th;if(y!==""){var x=this.wa(a);if(x===void 0||this.kb.contains(x)){var E=this.bl;if(E!==null&&(x=E(this,a),x!=null&&!this.kb.contains(x))){$o(a,y,x);return}if(typeof x=="string"){for(E=2;this.kb.contains(x+E);)E++;$o(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;$o(a,y,x)}}}}},be.xf=function(a){a!==null&&(zr(a),this.lb(a)||FS(this,a,!0))};function FS(a,y,x){var E=a.wa(y);(E===void 0||a.kb.I(E)!==y)&&(a.$u(y),E=a.wa(y),E===void 0&<("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(E,y),E=null,x&&(E=a.Tc.length,Yi(a.Tc,E,y)),ba(a,"nodeDataArray",qo,"nodeDataArray",a,null,y,null,E),a.fm(y),a.em(y))}be.Fy=function(a){if(si(a))for(var y=a.length,x=0;x<y;x++)this.xf(a[x]);else for(a=a.iterator;a.next();)this.xf(a.value)},be.cm=function(a){a!==null&&MS(this,a,!0)};function MS(a,y,x){var E=a.wa(y);if(E!==void 0&&a.kb.remove(E),E=null,x){e:if(x=a.Tc,Array.isArray(x))E=x.indexOf(y);else{E=x.length;for(var b=0;b<E;b++)if(x[b]===y){E=b;break e}E=-1}if(0>E)return;tr(a.Tc,E)}ba(a,"nodeDataArray",ua,"nodeDataArray",a,y,null,E,null),a.qp(y)}be.nA=function(a){if(si(a))for(var y=a.length,x=0;x<y;x++)this.cm(a[x]);else for(a=a.iterator;a.next();)this.cm(a.value)},be.$z=function(a){if(a!==this.nodeDataArray&&si(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var x=this.il;x.clear();for(var E=a.length,b=0;b<E;b++){var z=a[b],te=this.wa(z);if(te!==void 0){x.add(te);var re=this.hc(te);re!==z&&(re!==null?(this.Do(re,z),this.lm(z,re)):(z=this.cloneDeep(z),this.km(z,te),this.xf(z)))}else te=this.cloneDeep(z),this.xf(te),x.add(this.wa(te))}for(a=y.iterator;a.next();)E=a.value,x.contains(E)||(E=this.hc(E))&&this.cm(E);y.clear(),x.clear()}},be.jp=function(a,y){y!==void 0&&(a=mp(this,a),a instanceof Fn&&this.Vf.add(y,a))},be.Lv=function(){},be.fm=function(){},be.em=function(){},be.qp=function(){};function su(a,y,x){if(y!==void 0){var E=a.Vf.I(y);E===null&&(E=new Fn,a.Vf.add(y,E)),E.add(x)}}function lu(a,y,x){if(y!==void 0){var E=a.Vf.I(y);E instanceof Fn&&(x==null?a.Vf.remove(y):(E.remove(x),E.count===0&&a.Vf.remove(y)))}}function mp(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof Fn?a:null)}be.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Ni.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):cm(this,a,!0),tn(a)&&Kn(a),a};function cm(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var E=[];for(x=0;x<y.length;x++){var b=cm(a,y[x],a.copiesArrayObjects);E.push(b)}return Kn(E),E}if(x&&tn(y)){x=(x=y.constructor)?new x:{},b=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(E in y)if(E==="__gohashid")x.__gohashid=void 0;else if(E===b)x[b]=void 0;else{var z=va(y,E),te=vp(a,z);te==="GraphObject"||te==="Diagram"||te==="Layer"||te==="RowColumnDefinition"||te==="AnimationManager"||te==="Tool"||te==="CommandHandler"||te==="Layout"||te==="InputEvent"||te==="DiagramEvent"||z instanceof Ni||z instanceof Jo||z instanceof pa||z instanceof Go||(z=cm(a,z,!1)),$o(x,E,z)}return Kn(x),x}return y instanceof je||y instanceof Xe||y instanceof pt||y instanceof bn||y instanceof ri?y.copy():y}Ni.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}}else!LS&&a instanceof Mt&&(LS=!0,ti('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),ti(" Is that really your intent?"));var E=va(a,y);E!==x&&($o(a,y,x),this.Fs(a,y,E,x))},be=Ni.prototype,be.set=function(a,y,x){this.setDataProperty(a,y,x)},be.Do=function(a,y){if(y){var x=this.lb(a),E;for(E in y)E==="__gohashid"||x&&E===this.nodeKeyProperty||this.setDataProperty(a,E,y[E])}},be.Ay=function(a,y){this.ts(a,-1,y)},be.ts=function(a,y,x){0>y&&(y=a.length),Yi(a,y,x),ba(this,"",qo,"",a,null,x,null,y)},be.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&<("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];tr(a,y),ba(this,"",ua,"",a,x,null,y,null)},be.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=va(a,y),y===void 0))return"";if(typeof y=="string")return y;lt("getCategoryForNodeData found a non-string category for "+a+": "+y)},be.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var E=va(a,x);E===void 0&&(E=""),E!==y&&($o(a,x,y),ba(this,"nodeCategory",Ro,x,a,E,y))}else $o(a,x,y)}},be.lm=function(a,y){this.jm(y,this.Ro(a))},be.Tl=function(){return!1},be.Wj=function(){return!1},be.ri=function(){return!1},be.xs=function(){return!1},be.Xj=function(){return!1};function cy(){return new Ni}function vp(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return vp(a,y.constructor);return typeof y}function fy(a){return Jl[a]?Jl[a]:un.go!==void 0&&un.go[a]?un.go[a]:null}function va(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(E){}return x}function $o(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(E){}}pn.Object.defineProperties(Ni.prototype,{name:{get:function(){return this.xa},set:function(a){var y=this.xa;y!==a&&(this.xa=a,this.g("name",y,a))}},dataFormat:{get:function(){return this.Sm},set:function(a){var y=this.Sm;y!==a&&(this.Sm=a,this.g("dataFormat",y,a))}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},modelData:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.g("modelData",y,a),this.La(a))}},undoManager:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&(y!==null&&y.Rx(this),this.o=a,a!==null&&a.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a}},nodeKeyProperty:{get:function(){return this.Th},set:function(a){var y=this.Th;y!==a&&(a===""&<("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&<("Cannot set Model.nodeKeyProperty when there is existing node data"),this.Th=a,this.g("nodeKeyProperty",y,a))}},makeUniqueKeyFunction:{get:function(){return this.bl},set:function(a){var y=this.bl;y!==a&&(this.bl=a,this.g("makeUniqueKeyFunction",y,a))}},nodeDataArray:{get:function(){return this.Tc},set:function(a){var y=this.Tc;if(y!==a){this.kb.clear(),this.Lv();for(var x=a.length,E=0;E<x;E++){var b=a[E];tn(b)||lt("Model.nodeDataArray must only contain Objects, not: "+b),zr(b)}for(this.Tc=a,E=new An,b=0;b<x;b++){var z=a[b],te=this.wa(z);te===void 0||this.kb.I(te)!==null?E.add(z):this.kb.add(te,z)}for(E=E.iterator;E.next();)b=E.value,this.$u(b),z=this.wa(b),z!==void 0&&this.kb.add(z,b);for(ba(this,"nodeDataArray",Ro,"nodeDataArray",this,y,a),y=0;y<x;y++)E=a[y],this.fm(E),this.em(E);Array.isArray(a)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Bk},set:function(a){var y=this.Bk;y!==a&&(this.Bk=a,this.g("copyNodeDataFunction",y,a))}},copiesArrays:{get:function(){return this.Km},set:function(a){var y=this.Km;y!==a&&(this.Km=a,this.g("copiesArrays",y,a))}},copiesArrayObjects:{get:function(){return this.Jm},set:function(a){var y=this.Jm;y!==a&&(this.Jm=a,this.g("copiesArrayObjects",y,a))}},copiesKey:{get:function(){return this.Mm},set:function(a){var y=this.Mm;y!==a&&(this.Mm=a,this.g("copiesKey",y,a))}},afterCopyFunction:{get:function(){return this.xm},set:function(a){var y=this.xm;y!==a&&(this.xm=a,this.g("afterCopyFunction",y,a))}},nodeCategoryProperty:{get:function(){return this.lj},set:function(a){var y=this.lj;y!==a&&(this.lj=a,this.g("nodeCategoryProperty",y,a))}},type:{get:function(){return"Model"}}}),Ni.prototype.setCategoryForNodeData=Ni.prototype.jm,Ni.prototype.getCategoryForNodeData=Ni.prototype.Ro,Ni.prototype.removeArrayItem=Ni.prototype.ov,Ni.prototype.insertArrayItem=Ni.prototype.ts,Ni.prototype.addArrayItem=Ni.prototype.Ay,Ni.prototype.assignAllDataProperties=Ni.prototype.Do,Ni.prototype.set=Ni.prototype.set,Ni.prototype.clearUnresolvedReferences=Ni.prototype.Qy,Ni.prototype.mergeNodeDataArray=Ni.prototype.$z,Ni.prototype.removeNodeDataCollection=Ni.prototype.nA,Ni.prototype.removeNodeData=Ni.prototype.cm,Ni.prototype.addNodeDataCollection=Ni.prototype.Fy,Ni.prototype.addNodeData=Ni.prototype.xf,Ni.prototype.makeNodeDataKeyUnique=Ni.prototype.$u,Ni.prototype.findNodeDataForKey=Ni.prototype.hc,Ni.prototype.containsNodeData=Ni.prototype.lb,Ni.prototype.setKeyForNodeData=Ni.prototype.km,Ni.prototype.getKeyForNodeData=Ni.prototype.wa,Ni.prototype.updateTargetBindings=Ni.prototype.La,Ni.prototype.commit=Ni.prototype.commit,Ni.prototype.rollbackTransaction=Ni.prototype.Kf,Ni.prototype.commitTransaction=Ni.prototype.eb,Ni.prototype.startTransaction=Ni.prototype.Ea,Ni.prototype.raiseDataChanged=Ni.prototype.Fs,Ni.prototype.raiseChanged=Ni.prototype.g,Ni.prototype.raiseChangedEvent=Ni.prototype.cb,Ni.prototype.removeChangedListener=Ni.prototype.ik,Ni.prototype.addChangedListener=Ni.prototype.Pe,Ni.prototype.writeJsonValue=Ni.prototype.sm,Ni.prototype.replaceJsonObjects=Ni.prototype.dm,Ni.prototype.applyIncrementalJSON=Ni.prototype.Ky,Ni.prototype.applyIncrementalJson=Ni.prototype.Zw,Ni.prototype.toJSON=Ni.prototype.toJSON,Ni.prototype.toJson=Ni.prototype.np,Ni.prototype.toIncrementalJSON=Ni.prototype.yA,Ni.prototype.toIncrementalJson=Ni.prototype.$x,Ni.prototype.toIncrementalData=Ni.prototype.xA,Ni.prototype.clear=Ni.prototype.clear;var LS=!1,Jl={};Ni.className="Model",Ni.fromJSON=Ni.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=un.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:lt("Unable to construct a Model from: "+a);if(y===null){a=null;var E=x.class;if(typeof E=="string")try{var b=null;E.indexOf("go.")===0?(E=E.substr(3),b=fy(E)):(b=fy(E),b===null&&(b=un[E])),typeof b=="function"&&(a=new b)}catch(z){}a===null||a instanceof Ni?y=a:lt("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=Ni.constructGraphLinksModel()),y.gp(x),y.kv(x),y},Ni.safePropertyValue=va,Ni.safePropertySet=$o,Jl.Brush=So,Jl.ChangedEvent=Go,Jl.Geometry=Cn,Jl.Margin=ri,Jl.Panel=On,Jl.Point=je,Jl.Rect=pt,Jl.Size=Xe,Jl.Spot=bn,Jl.Transaction=pa,Jl.UndoManager=Jo;function xa(a,y,x,E){Kn(this),this._isFrozen=!1,a===void 0&&(a=""),y===void 0&&(y=a),x===void 0&&(x=null),this.j=-1,this.xd=null,this.xl=a,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=y,this.Im=x,E===void 0?(this.el=DS,this.wk=null):(this.el=yp,this.wk=E),this.st=new Fn}xa.prototype.copy=function(){var a=new xa;return a.xl=this.xl,a.to=this.to,a.wl=this.wl,a.Cr=this.Cr,a.wn=this.wn,a.sl=this.sl,a.Im=this.Im,a.el=this.el,a.wk=this.wk,a},be=xa.prototype,be.qb=function(a){a.classType===xa&&(this.mode=a)},be.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},be.freeze=function(){return this._isFrozen=!0,this},be.ka=function(){return this._isFrozen=!1,this},be.Kx=function(a){return a===void 0&&(a=null),this.mode=yp,this.backConverter=a,this},be.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},be.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function bS(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}be.Mv=function(a,y,x){var E=this.sl;if(x===void 0||E===""||E===x){x=this.xl;var b=this.Im;if(b===null&&x==="")ti("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(E!==""&&(z=va(y,E)),z!==void 0)if(b===null)x!==""&&$o(a,x,z);else try{if(x!==""){var te=b(z,a);$o(a,x,te)}else b(z,a)}catch(re){}}}},be.sp=function(a,y,x,E){if(this.el===yp){var b=this.xl;if(x===void 0||b===x){x=this.sl;var z=this.wk,te=a;if(b!==""&&(te=va(a,b)),te!==void 0&&!this.st.contains(a))try{this.st.add(a);var re=E!==null?E.diagram:null,oe=re!==null?re.model:null;if(z===null){if(x!=="")oe!==null?oe.setDataProperty(y,x,te):$o(y,x,te);else if(oe!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var le=E.itemIndex,he=E.panel.itemArray;oe.ov(he,le),oe.ts(he,le,te)}}else try{if(x!==""){var ge=z(te,y,oe);oe!==null?oe.setDataProperty(y,x,ge):$o(y,x,ge)}else{var Se=z(te,y,oe);if(Se!==void 0&&oe!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var we=E.itemIndex,Ae=E.panel.itemArray;oe.ov(Ae,we),oe.ts(Ae,we,Se)}}}catch(Ne){}}finally{this.st.remove(a)}}}},pn.Object.defineProperties(xa.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&Rt(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&Rt(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&Rt(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&Rt(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&Rt(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&Rt(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&Rt(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&Rt(this),this.el=a}}}),xa.prototype.updateSource=xa.prototype.sp,xa.prototype.updateTarget=xa.prototype.Mv,xa.prototype.ofModel=xa.prototype.dA,xa.prototype.ofObject=xa.prototype.cp,xa.prototype.makeTwoWay=xa.prototype.Kx;var zx="Binding",DS=new Kt(xa,"OneWay",1),yp=new Kt(xa,"TwoWay",2);xa.className="Binding",xa.parseEnum=function(a,y){return function(x){return x=Oi(a,x),x===null?y:x}},xa.toString=Ji,xa.OneWay=DS,xa.TwoWay=yp;function Ur(a,y,x){Ni.call(this),this.Vv=`,
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
"removedLinkKeys": `,this.md=[],this.$f=new Fn,this.wb=new Wt,this.Jh="",this.Ri=this.Ak=this.cl=null,this.lf="from",this.mf="to",this.fj=this.ej="",this.dj="category",this.je="",this.jl="isGroup",this.Je="group",this.Lm=!1,y!==void 0&&(this.linkDataArray=y),a!==void 0&&(si(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}Zt(Ur,Ni),Ur.constructGraphLinksModel=Ni.constructGraphLinksModel,Ur.prototype.cloneProtected=function(a){Ni.prototype.cloneProtected.call(this,a),a.Jh=this.Jh,a.cl=this.cl,a.Ak=this.Ak,a.lf=this.lf,a.mf=this.mf,a.ej=this.ej,a.fj=this.fj,a.dj=this.dj,a.je=this.je,a.jl=this.jl,a.Je=this.Je,a.Lm=this.Lm},be=Ur.prototype,be.clear=function(){Ni.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},be.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" GraphLinksModel";if(0<a){y+=`
|
|
node data:`,a=this.nodeDataArray;var x=a.length,E;for(E=0;E<x;E++){var b=a[E];y+=" "+this.wa(b)+":"+Ji(b)}for(y+=`
|
|
link data:`,a=this.linkDataArray,x=a.length,E=0;E<x;E++)b=a[E],y+=" "+dl(this,b,!0)+"-->"+dl(this,b,!1)}return y},be.Qv=function(a,y){this.linkKeyProperty===""&<("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Ni.prototype.Qv.call(this,a,y),E=this,b=new Fn,z=new Fn,te=new Fn,re=this.vh;a.changes.each(function(he){he.model===E&&(he.modelChange==="linkDataArray"?he.change===qo?b.add(he.newValue):he.change===ua&&te.add(he.oldValue):E.Jc(he.object)?z.add(he.object):he.object!==null&&(he.object!==null&&re&&re.contains(he.object)?re.get(he.object).each(function(ge){E.Jc(ge)&&z.add(ge)}):he.object instanceof Ni||E.lb(he.object)||kS(E,he.object).each(function(ge){z.add(ge)})))});var oe=this.il;oe.clear(),b.each(function(he){oe.add(E.Ac(he)),y||z.add(he)});var le=this.kl;return le.clear(),te.each(function(he){le.add(E.Ac(he)),y&&z.add(he)}),a=E.cloneDeep(z.Fa()),0<oe.count&&(x===null&&(x={}),y?x.removedLinkKeys=oe.Fa():x.insertedLinkKeys=oe.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<le.count&&(x===null&&(x={}),y?x.insertedLinkKeys=le.Fa():x.removedLinkKeys=le.Fa()),le.clear(),oe.clear(),x},be.rm=function(){var a=Ni.prototype.rm.call(this),y="";return this.linkCategoryProperty!=="category"&&typeof this.linkCategoryProperty=="string"&&(y+=`,
|
|
"linkCategoryProperty": `+this.quote(this.linkCategoryProperty)),this.linkKeyProperty!==""&&typeof this.linkKeyProperty=="string"&&(y+=`,
|
|
"linkKeyProperty": `+this.quote(this.linkKeyProperty)),this.linkFromKeyProperty!=="from"&&typeof this.linkFromKeyProperty=="string"&&(y+=`,
|
|
"linkFromKeyProperty": `+this.quote(this.linkFromKeyProperty)),this.linkToKeyProperty!=="to"&&typeof this.linkToKeyProperty=="string"&&(y+=`,
|
|
"linkToKeyProperty": `+this.quote(this.linkToKeyProperty)),this.linkFromPortIdProperty!==""&&typeof this.linkFromPortIdProperty=="string"&&(y+=`,
|
|
"linkFromPortIdProperty": `+this.quote(this.linkFromPortIdProperty)),this.linkToPortIdProperty!==""&&typeof this.linkToPortIdProperty=="string"&&(y+=`,
|
|
"linkToPortIdProperty": `+this.quote(this.linkToPortIdProperty)),this.linkLabelKeysProperty!==""&&typeof this.linkLabelKeysProperty=="string"&&(y+=`,
|
|
"linkLabelKeysProperty": `+this.quote(this.linkLabelKeysProperty)),this.nodeIsGroupProperty!=="isGroup"&&typeof this.nodeIsGroupProperty=="string"&&(y+=`,
|
|
"nodeIsGroupProperty": `+this.quote(this.nodeIsGroupProperty)),this.nodeGroupKeyProperty!=="group"&&typeof this.nodeGroupKeyProperty=="string"&&(y+=`,
|
|
"nodeGroupKeyProperty": `+this.quote(this.nodeGroupKeyProperty)),a+y},be.gp=function(a){Ni.prototype.gp.call(this,a),a.linkKeyProperty&&(this.linkKeyProperty=a.linkKeyProperty),a.linkFromKeyProperty&&(this.linkFromKeyProperty=a.linkFromKeyProperty),a.linkToKeyProperty&&(this.linkToKeyProperty=a.linkToKeyProperty),a.linkFromPortIdProperty&&(this.linkFromPortIdProperty=a.linkFromPortIdProperty),a.linkToPortIdProperty&&(this.linkToPortIdProperty=a.linkToPortIdProperty),a.linkCategoryProperty&&(this.linkCategoryProperty=a.linkCategoryProperty),a.linkLabelKeysProperty&&(this.linkLabelKeysProperty=a.linkLabelKeysProperty),a.nodeIsGroupProperty&&(this.nodeIsGroupProperty=a.nodeIsGroupProperty),a.nodeGroupKeyProperty&&(this.nodeGroupKeyProperty=a.nodeGroupKeyProperty)},be.Rv=function(){var a=Ni.prototype.Rv.call(this),y=`,
|
|
"linkDataArray": `+cd(this,this.linkDataArray,!0);return a+y},be.kv=function(a){Ni.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function kS(a,y){for(var x=new Fn,E=0;E<a.linkDataArray.length;E++){var b=a.linkDataArray[E];dm(a,y,b,b,x)}return x}be.Pv=function(a,y){this.linkKeyProperty===""&<("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=Ni.prototype.Pv.call(this,a,y),E=this,b=new Fn,z=new Fn,te=new Fn,re=this.vh;a.changes.each(function(he){he.model===E&&(he.modelChange==="linkDataArray"?he.change===qo?b.add(he.newValue):he.change===ua&&te.add(he.oldValue):E.Jc(he.object)?z.add(he.object):he.object!==null&&(he.object!==null&&re&&re.contains(he.object)?re.get(he.object).each(function(ge){E.Jc(ge)&&z.add(ge)}):he.object instanceof Ni||E.lb(he.object)||kS(E,he.object).each(function(ge){z.add(ge)})))});var oe=this.il;oe.clear(),b.each(function(he){oe.add(E.Ac(he)),y||z.add(he)});var le=this.kl;return le.clear(),te.each(function(he){le.add(E.Ac(he)),y&&z.add(he)}),a=x,0<oe.count&&(a+=(y?this.Xv:this.Vv)+cd(this,oe.Fa(),!0)),0<z.count&&(a+=this.iy+cd(this,z.Fa(),!0)),0<le.count&&(a+=(y?this.Vv:this.Xv)+cd(this,le.Fa(),!0)),le.clear(),oe.clear(),a},be.fp=function(a){(a.linkCategoryProperty!==void 0&&a.linkCategoryProperty!==this.linkCategoryProperty||a.linkKeyProperty!==void 0&&a.linkKeyProperty!==this.linkKeyProperty||a.linkFromKeyProperty!==void 0&&a.linkFromKeyProperty!==this.linkFromKeyProperty||a.linkToKeyProperty!==void 0&&a.linkToKeyProperty!==this.linkToKeyProperty||a.linkFromPortIdProperty!==void 0&&a.linkFromPortIdProperty!==this.linkFromPortIdProperty||a.linkToPortIdProperty!==void 0&&a.linkToPortIdProperty!==this.linkToPortIdProperty||a.linkLabelKeysProperty!==void 0&&a.linkLabelKeysProperty!==this.linkLabelKeysProperty||a.nodeIsGroupProperty!==void 0&&a.nodeIsGroupProperty!==this.nodeIsGroupProperty||a.nodeGroupKeyProperty!==void 0&&a.nodeGroupKeyProperty!==this.nodeGroupKeyProperty)&<("applyIncrementalJson cannot change Model properties"),Ni.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var x=y.length,E=0;E<x;E++){var b=y[E],z=this.jh(b);z===null&&(z=this.Jo({}),this.Ks(z,b),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,E=0;E<x;E++)if(b=y[E],z=this.Ac(b),z=this.jh(z),z!==null){for(var te in b)te!=="__gohashid"&&te!==this.linkKeyProperty&&this.setDataProperty(z,te,b[te]);TS(this,b,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(te=a.length,y=0;y<te;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},Ur.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===Ro){var x=a.object,E=a.propertyName;if(E===this.linkKeyProperty&&this.Jc(x)){var b=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),b!==void 0&&this.wb.add(b,x),$o(x,E,b);return}}else if(a.change===qo){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,tn(a)&&typeof x=="number"&&(E=this.Ac(a),y?(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),E!==void 0&&this.wb.remove(E)):(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),E!==void 0&&this.wb.add(E,a)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof x=="number"&&(y?(x=E.indexOf(a.newValue),0<=x&&E.splice(x,1)):0>E.indexOf(a.newValue)&&E.splice(x,0,a.newValue));return}}else if(a.change===ua){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,tn(a)&&typeof x=="number"&&(E=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),E!==void 0&&this.wb.add(E,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),E!==void 0&&this.wb.remove(E)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof x=="number"&&(y?0>E.indexOf(a.newValue)&&E.splice(x,0,a.newValue):(x=E.indexOf(a.newValue),0<=x&&E.splice(x,1)));return}}Ni.prototype.changeState.call(this,a,y)}},be=Ur.prototype,be.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var x=this.hc(a);x===null&&(x=this.copyNodeData(y),$o(x,this.nodeKeyProperty,a),this.xf(x))}return a}},be.yx=function(a){return dl(this,a,!0)},be.wv=function(a,y){_f(this,a,y,!0)},be.Bx=function(a){return dl(this,a,!1)},be.Bv=function(a,y){_f(this,a,y,!1)};function dl(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=va(y,a),a!==void 0))){if(fd(a))return a;lt((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function _f(a,y,x,E){if(x===null&&(x=void 0),y!==null){var b=E?a.lf:a.mf;if(b!=="")if(x=a.Vl(x),a.Jc(y)){var z=va(y,b);z!==x&&(lu(a,z,y),$o(y,b,x),a.hc(x)===null&&su(a,x,y),ba(a,E?"linkFromKey":"linkToKey",Ro,b,y,z,x),typeof b=="string"&&a.La(y,b))}else $o(y,b,x)}}be.zx=function(a){return fm(this,a,!0)},be.xv=function(a,y){Yf(this,a,y,!0)},be.Cx=function(a){return fm(this,a,!1)},be.Cv=function(a,y){Yf(this,a,y,!1)};function fm(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=va(y,a),y===void 0?"":y)}function Yf(a,y,x,E){if(y!==null){var b=E?a.ej:a.fj;if(b!=="")if(a.Jc(y)){var z=va(y,b);z===void 0&&(z=""),z!==x&&($o(y,b,x),ba(a,E?"linkFromPortId":"linkToPortId",Ro,b,y,z,x),typeof b=="string"&&a.La(y,b))}else $o(y,b,x)}}be.Ef=function(a){if(a===null)return gm;var y=this.je;return y===""?gm:(a=va(a,y),a===void 0?gm:a)},be.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var E=va(a,x);if(E===void 0&&(E=gm),E!==y){if(Array.isArray(E))for(var b=E.length,z=0;z<b;z++)lu(this,E[z],a);for($o(a,x,y),b=y.length,z=0;z<b;z++){var te=y[z];this.hc(te)===null&&su(this,te,a)}ba(this,"linkLabelKeys",Ro,x,a,E,y),typeof x=="string"&&this.La(a,x)}}else $o(a,x,y)}},be.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=va(a,x);if(E===void 0)x=[],x.push(y),this.Ls(a,x);else if(Array.isArray(E)){var b=E.indexOf(y);0<=b||(b=E.length,E.push(y),this.Jc(a)&&(this.hc(y)===null&&su(this,y,a),ba(this,"linkLabelKeys",qo,x,a,null,y,null,b)))}else lt(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},be.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=va(a,x);if(Array.isArray(E)){var b=E.indexOf(y);0>b||(E.splice(b,1),this.Jc(a)&&(lu(this,y,a),ba(this,"linkLabelKeys",ua,x,a,y,null,b,null)))}else E!==void 0&<(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},be.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=va(a,y),y!==void 0)){if(fd(y))return y;lt("Key value for link data "+a+" is not a number or a string: "+y)}}},be.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var E=va(a,x);E!==y&&this.jh(y)===null&&($o(a,x,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),ba(this,"linkKey",Ro,x,a,E,y),typeof x=="string"&&this.La(a,x))}else $o(a,x,y)}},be.jh=function(a){return a===null&<("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&fd(a)?this.wb.I(a):null},be.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var E=this.cl;if(E!==null&&(x=E(this,a),x!=null&&!this.wb.contains(x))){$o(a,y,x);return}if(typeof x=="string"){for(E=2;this.wb.contains(x+E);)E++;$o(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;$o(a,y,x)}}}}},be.Jc=function(a){return a===null?!1:this.$f.contains(a)},be.fi=function(a){a!==null&&(zr(a),this.Jc(a)||BS(this,a,!0))};function BS(a,y,x){if(a.linkKeyProperty!==""){var E=a.Ac(y);if(E!==void 0&&a.wb.I(E)===y)return;a.Bs(y),E=a.Ac(y),E===void 0&<("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(E,y)}a.$f.add(y),E=null,x&&(E=a.md.length,a.md.splice(E,0,y)),ba(a,"linkDataArray",qo,"linkDataArray",a,null,y,null,E),gy(a,y)}be.Ey=function(a){if(Array.isArray(a))for(var y=a.length,x=0;x<y;x++)this.fi(a[x]);else for(a=a.iterator;a.next();)this.fi(a.value)},be.bm=function(a){a!==null&&NS(this,a,!0)};function NS(a,y,x){a.$f.remove(y);var E=a.Ac(y);if(E!==void 0&&a.wb.remove(E),E=null,x){if(E=a.md.indexOf(y),0>E)return;a.md.splice(E,1)}if(ba(a,"linkDataArray",ua,"linkDataArray",a,y,null,E,null),x=dl(a,y,!0),lu(a,x,y),x=dl(a,y,!1),lu(a,x,y),E=a.Ef(y),Array.isArray(E))for(var b=E.length,z=0;z<b;z++)x=E[z],lu(a,x,y)}be.lA=function(a){if(Array.isArray(a))for(var y=a.length,x=0;x<y;x++)this.bm(a[x]);else for(a=a.iterator;a.next();)this.bm(a.value)},be.Zz=function(a){if(this.linkKeyProperty===""&<("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&si(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var x=this.il;x.clear();for(var E=a.length,b=0;b<E;b++){var z=a[b],te=this.Ac(z);if(te!==void 0){x.add(te);var re=this.jh(te);re!==z&&(re!==null?(this.Do(re,z),TS(this,z,re)):(z=this.cloneDeep(z),this.Ks(z,te),this.fi(z)))}else te=this.cloneDeep(z),this.fi(te),x.add(this.Ac(te))}for(a=y.iterator;a.next();)E=a.value,x.contains(E)||(E=this.jh(E))&&this.bm(E);y.clear(),x.clear()}};function gy(a,y){var x=dl(a,y,!0);x=a.Vl(x),a.hc(x)===null&&su(a,x,y),x=dl(a,y,!1),x=a.Vl(x),a.hc(x)===null&&su(a,x,y);var E=a.Ef(y);if(Array.isArray(E))for(var b=E.length,z=0;z<b;z++)x=E[z],a.hc(x)===null&&su(a,x,y)}be.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):cm(this,a,!0),tn(a)&&(Kn(a),this.lf!==""&&$o(a,this.lf,void 0),this.mf!==""&&$o(a,this.mf,void 0),this.je!==""&&$o(a,this.je,[])),a},be.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!va(a,y)},be.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=va(a,y),y!==void 0)){if(fd(y))return y;lt("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},be.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var E=va(a,x);E!==y&&(lu(this,E,a),$o(a,x,y),this.hc(y)===null&&su(this,y,a),ba(this,"nodeGroupKey",Ro,x,a,E,y),typeof x=="string"&&this.La(a,x))}else $o(a,x,y)}},Ur.prototype.copyNodeData=function(a){return a===null?null:(a=Ni.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||va(a,this.Je)===void 0||$o(a,this.Je,void 0),a)},Ur.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeGroupKeyProperty){this.mp(a,x);return}}else if(this.Jc(a)){if(y===this.linkFromKeyProperty){_f(this,a,x,!0);return}if(y===this.linkToKeyProperty){_f(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){Yf(this,a,x,!0);return}if(y===this.linkToPortIdProperty){Yf(this,a,x,!1);return}if(y===this.linkKeyProperty){this.Ks(a,x);return}if(y===this.linkCategoryProperty){this.lp(a,x);return}if(y===this.linkLabelKeysProperty){this.Ls(a,x);return}}var E=va(a,y);E!==x&&($o(a,y,x),this.Fs(a,y,E,x))},be=Ur.prototype,be.Do=function(a,y){if(y){var x=this.lb(a),E=this.Jc(a),b;for(b in y)b==="__gohashid"||x&&b===this.nodeKeyProperty||x&&b===this.nodeIsGroupProperty&&va(a,b)===y[b]||E&&b===this.linkKeyProperty||this.setDataProperty(a,b,y[b])}},be.jp=function(a,y){Ni.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y);for(x=this.$f.iterator;x.next();){var E=x.value,b=a,z=y;if(dl(this,E,!0)===b){var te=this.lf;$o(E,te,z),ba(this,"linkFromKey",Ro,te,E,b,z),typeof te=="string"&&this.La(E,te)}if(dl(this,E,!1)===b&&(te=this.mf,$o(E,te,z),ba(this,"linkToKey",Ro,te,E,b,z),typeof te=="string"&&this.La(E,te)),te=this.Ef(E),Array.isArray(te))for(var re=te.length,oe=this.je,le=0;le<re;le++)te[le]===b&&(te[le]=z,ba(this,"linkLabelKeys",qo,oe,E,b,z,le,le))}},be.qv=function(a,y,x){if(this.lh(a)===y){var E=this.Je;$o(a,E,x),ba(this,"nodeGroupKey",Ro,E,a,y,x),typeof E=="string"&&this.La(a,E)}},be.Lv=function(){Ni.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)gy(this,a[x])},be.fm=function(a){Ni.prototype.fm.call(this,a),a=this.wa(a);var y=mp(this,a);if(y!==null){var x=Bn();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)){if(this.lh(E)===a){var b=this.Je;ba(this,"nodeGroupKey",Ro,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)}}else if(dl(this,E,!0)===a&&(b=this.lf,ba(this,"linkFromKey",Ro,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)),dl(this,E,!1)===a&&(b=this.mf,ba(this,"linkToKey",Ro,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)),b=this.Ef(E),Array.isArray(b))for(var z=b.length,te=this.je,re=0;re<z;re++)b[re]===a&&(ba(this,"linkLabelKeys",qo,te,E,a,a,re,re),x.push(E))}for(y=0;y<x.length;y++)lu(this,a,x[y]);Ot(x)}},be.em=function(a){Ni.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&su(this,y,a)},be.qp=function(a){Ni.prototype.qp.call(this,a);var y=this.lh(a);lu(this,y,a)},be.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=va(a,y),y===void 0))return"";if(typeof y=="string")return y;lt("getCategoryForLinkData found a non-string category for "+a+": "+y)},Ur.prototype.getLinkCategoryForData=function(a){return this.ps(a)},Ur.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var E=va(a,x);E===void 0&&(E=""),E!==y&&($o(a,x,y),ba(this,"linkCategory",Ro,x,a,E,y),typeof x=="string"&&this.La(a,x))}else $o(a,x,y)}},Ur.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},be=Ur.prototype,be.lm=function(a,y){Ni.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function TS(a,y,x){a.lp(x,a.ps(y)),a.wv(x,a.yx(y)),a.Bv(x,a.Bx(y)),a.Ls(x,a.Ef(y)),a.xv(x,a.zx(y)),a.Cv(x,a.Cx(y))}be.Wj=function(){return!0},be.ri=function(){return!0},be.xs=function(){return!0},be.Xj=function(){return!0},pn.Object.defineProperties(Ur.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){var y=this.Ri;y!==a&&(this.Ri=a,this.g("archetypeNodeData",y,a))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(a){var y=this.lf;y!==a&&(this.lf=a,this.g("linkFromKeyProperty",y,a))}},linkToKeyProperty:{get:function(){return this.mf},set:function(a){var y=this.mf;y!==a&&(this.mf=a,this.g("linkToKeyProperty",y,a))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(a){var y=this.ej;y!==a&&(this.ej=a,this.g("linkFromPortIdProperty",y,a))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(a){var y=this.fj;y!==a&&(this.fj=a,this.g("linkToPortIdProperty",y,a))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(a){var y=this.je;y!==a&&(this.je=a,this.g("linkLabelKeysProperty",y,a))}},linkDataArray:{get:function(){return this.md},set:function(a){var y=this.md;if(y!==a){this.wb.clear();for(var x=a.length,E=0;E<x;E++){var b=a[E];tn(b)||lt("GraphLinksModel.linkDataArray must only contain Objects, not: "+b),zr(b)}if(this.md=a,this.linkKeyProperty!==""){for(E=new An,b=0;b<x;b++){var z=a[b],te=this.Ac(z);te===void 0||this.wb.I(te)!==null?E.add(z):this.wb.add(te,z)}for(E=E.iterator;E.next();)b=E.value,this.Bs(b),z=this.Ac(b),z!==void 0&&this.wb.add(z,b)}for(E=new Fn,b=0;b<x;b++)E.add(a[b]);for(this.$f=E,ba(this,"linkDataArray",Ro,"linkDataArray",this,y,a),y=0;y<x;y++)gy(this,a[y])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(a){var y=this.Jh;if(y!==a){this.Jh=a,this.wb.clear();for(var x=this.linkDataArray.length,E=0;E<x;E++){var b=this.linkDataArray[E],z=this.Ac(b);z===void 0&&(this.Bs(b),z=this.Ac(b)),z!==void 0&&this.wb.add(z,b)}this.g("linkKeyProperty",y,a)}}},makeUniqueLinkKeyFunction:{get:function(){return this.cl},set:function(a){var y=this.cl;y!==a&&(this.cl=a,this.g("makeUniqueLinkKeyFunction",y,a))}},copyLinkDataFunction:{get:function(){return this.Ak},set:function(a){var y=this.Ak;y!==a&&(this.Ak=a,this.g("copyLinkDataFunction",y,a))}},nodeIsGroupProperty:{get:function(){return this.jl},set:function(a){var y=this.jl;y!==a&&(this.jl=a,this.g("nodeIsGroupProperty",y,a))}},nodeGroupKeyProperty:{get:function(){return this.Je},set:function(a){var y=this.Je;y!==a&&(this.Je=a,this.g("nodeGroupKeyProperty",y,a))}},Ij:{get:function(){return this.Lm},set:function(a){this.Lm!==a&&(this.Lm=a)}},linkCategoryProperty:{get:function(){return this.dj},set:function(a){var y=this.dj;y!==a&&(this.dj=a,this.g("linkCategoryProperty",y,a))}},type:{get:function(){return"GraphLinksModel"}}}),Ur.prototype.setCategoryForLinkData=Ur.prototype.lp,Ur.prototype.getCategoryForLinkData=Ur.prototype.ps,Ur.prototype.assignAllDataProperties=Ur.prototype.Do,Ur.prototype.setGroupKeyForNodeData=Ur.prototype.mp,Ur.prototype.getGroupKeyForNodeData=Ur.prototype.lh,Ur.prototype.isGroupForNodeData=Ur.prototype.Yu,Ur.prototype.copyLinkData=Ur.prototype.Jo,Ur.prototype.mergeLinkDataArray=Ur.prototype.Zz,Ur.prototype.removeLinkDataCollection=Ur.prototype.lA,Ur.prototype.removeLinkData=Ur.prototype.bm,Ur.prototype.addLinkDataCollection=Ur.prototype.Ey,Ur.prototype.addLinkData=Ur.prototype.fi,Ur.prototype.containsLinkData=Ur.prototype.Jc,Ur.prototype.makeLinkDataKeyUnique=Ur.prototype.Bs,Ur.prototype.findLinkDataForKey=Ur.prototype.jh,Ur.prototype.setKeyForLinkData=Ur.prototype.Ks,Ur.prototype.getKeyForLinkData=Ur.prototype.Ac,Ur.prototype.removeLabelKeyForLinkData=Ur.prototype.Qx,Ur.prototype.addLabelKeyForLinkData=Ur.prototype.Bu,Ur.prototype.setLabelKeysForLinkData=Ur.prototype.Ls,Ur.prototype.getLabelKeysForLinkData=Ur.prototype.Ef,Ur.prototype.setToPortIdForLinkData=Ur.prototype.Cv,Ur.prototype.getToPortIdForLinkData=Ur.prototype.Cx,Ur.prototype.setFromPortIdForLinkData=Ur.prototype.xv,Ur.prototype.getFromPortIdForLinkData=Ur.prototype.zx,Ur.prototype.setToKeyForLinkData=Ur.prototype.Bv,Ur.prototype.getToKeyForLinkData=Ur.prototype.Bx,Ur.prototype.setFromKeyForLinkData=Ur.prototype.wv,Ur.prototype.getFromKeyForLinkData=Ur.prototype.yx,Ur.prototype.clear=Ur.prototype.clear;var gm=Object.freeze([]);Ur.className="GraphLinksModel",Jl.GraphLinksModel=Ur,Ni.constructGraphLinksModel=Ni.constructGraphLinksModel=function(){return new Ur},Ni.initDiagramModel=cy=function(){return new Ur};function bs(a,y){Ni.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(si(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Zt(bs,Ni),bs.constructGraphLinksModel=Ni.constructGraphLinksModel,bs.prototype.cloneProtected=function(a){Ni.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},be=bs.prototype,be.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" TreeModel";if(0<a){y+=`
|
|
node data:`,a=this.nodeDataArray;for(var x=a.length,E=0;E<x;E++){var b=a[E];y+=" "+this.wa(b)+":"+Ji(b)}}return y},be.rm=function(){var a=Ni.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},be.gp=function(a){Ni.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},be.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&<("applyIncrementalJson cannot change Model properties"),Ni.prototype.fp.call(this,a)},be.Vl=function(a){return a},be.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=va(a,y),y!==void 0)){if(fd(y))return y;lt("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},be.qe=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Ke;if(x!=="")if(y=this.Vl(y),this.lb(a)){var E=va(a,x);E!==y&&(lu(this,E,a),$o(a,x,y),this.hc(y)===null&&su(this,y,a),ba(this,"nodeParentKey",Ro,x,a,E,y),typeof x=="string"&&this.La(a,x))}else $o(a,x,y)}},be.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=va(a,y),y===void 0)?"":typeof y=="string"?y:(lt("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},bs.prototype.getLinkCategoryForData=function(a){return this.ss(a)},bs.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var E=va(a,x);E===void 0&&(E=""),E!==y&&($o(a,x,y),ba(this,"parentLinkCategory",Ro,x,a,E,y),typeof x=="string"&&this.La(a,x))}else $o(a,x,y)}},bs.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},bs.prototype.copyNodeData=function(a){return a===null?null:(a=Ni.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||va(a,this.Ke)===void 0||$o(a,this.Ke,void 0),a)},bs.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeParentKeyProperty){this.qe(a,x);return}}var E=va(a,y);E!==x&&($o(a,y,x),this.Fs(a,y,E,x))},be=bs.prototype,be.jp=function(a,y){Ni.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},be.qv=function(a,y,x){if(this.mh(a)===y){var E=this.Ke;$o(a,E,x),ba(this,"nodeParentKey",Ro,E,a,y,x),typeof E=="string"&&this.La(a,E)}},be.fm=function(a){Ni.prototype.fm.call(this,a),a=this.wa(a);var y=mp(this,a);if(y!==null){var x=Bn();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)&&this.mh(E)===a){var b=this.Ke;ba(this,"nodeParentKey",Ro,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)}}for(y=0;y<x.length;y++)lu(this,a,x[y]);Ot(x)}},be.em=function(a){Ni.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&su(this,y,a)},be.qp=function(a){Ni.prototype.qp.call(this,a);var y=this.mh(a);lu(this,y,a)},be.lm=function(a,y){Ni.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},be.Tl=function(){return!0},be.xs=function(){return!0},pn.Object.defineProperties(bs.prototype,{nodeParentKeyProperty:{get:function(){return this.Ke},set:function(a){var y=this.Ke;y!==a&&(this.Ke=a,this.g("nodeParentKeyProperty",y,a))}},Jj:{get:function(){return this.Nm},set:function(a){this.Nm!==a&&(this.Nm=a)}},parentLinkCategoryProperty:{get:function(){return this.nj},set:function(a){var y=this.nj;y!==a&&(this.nj=a,this.g("parentLinkCategoryProperty",y,a))}},linkCategoryProperty:{get:function(){return this.parentLinkCategoryProperty},set:function(a){this.parentLinkCategoryProperty=a}},type:{get:function(){return"TreeModel"}}}),bs.prototype.setParentLinkCategoryForNodeData=bs.prototype.Ms,bs.prototype.getParentLinkCategoryForNodeData=bs.prototype.ss,bs.prototype.setParentKeyForNodeData=bs.prototype.qe,bs.prototype.getParentKeyForNodeData=bs.prototype.mh,bs.className="TreeModel",Jl.TreeModel=bs;function ra(a){ea.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=ql,this.Ti=0,this.Zv=new je,this.Jp=this.me=0,this.Xr=new wp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=ql,this.K=Ds,this.nd=Uf,this.hd=ay,this.tf=6,this.Nn=Pm,a&&Object.assign(this,a)}Zt(ra,ea),ra.prototype.cloneProtected=function(a){ea.prototype.cloneProtected.call(this,a),a.eo=this.eo,a.Cm=this.Cm,a.ro=this.ro,a.ul=this.ul,a.Rb=this.Rb,a.K=this.K,a.nd=this.nd,a.hd=this.hd,a.tf=this.tf,a.Nn=this.Nn},ra.prototype.qb=function(a){a.classType===ra?a===Sm||a===xm||a===vm||a===ym||a===Uf?this.sorting=a:a===nc||a===Kf||a===Ds||a===pd?this.direction=a:a===Th||a===gd||a===ql||a===$l?this.arrangement=a:(a===Wc||a===Pm)&&(this.nodeDiameterFormula=a):ea.prototype.qb.call(this,a)},ra.prototype.createNetwork=function(){return new Xf(this)},ra.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),a=this.network.vertexes,1>=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new An;y.addAll(a.iterator),a=new An;var x=new An,E=this.sort(y),b,z,te=this.Jp,re=this.arrangement,oe=this.nodeDiameterFormula,le=this.radius;(!isFinite(le)||0>=le)&&(le=NaN);var he=this.aspectRatio;(!isFinite(he)||0>=he)&&(he=1);var ge=this.startAngle;isFinite(ge)||(ge=0);var Se=this.sweepAngle;if((!isFinite(Se)||360<Se||1>Se)&&(Se=360),y=this.spacing,isFinite(y)||(y=NaN),re===$l&&oe===Wc?re=ql:re===$l&&oe!==Wc&&(re=this.arrangement),(this.direction===nc||this.direction===Kf)&&this.sorting!==Uf){for(oe=0;!(oe>=E.length)&&(a.add(E.M(oe)),!(oe+1>=E.length));oe+=2)x.add(E.M(oe+1));this.direction===nc?(this.arrangement===$l&&a.reverse(),E=new An,E.addAll(a),E.addAll(x)):(this.arrangement===$l&&x.reverse(),E=new An,E.addAll(x),E.addAll(a))}oe=E.length;for(var we=z=b=0;we<E.length;we++){var Ae=ge+Se*z*(this.direction===Ds?1:-1)/oe,Ne=E.M(we).diameter;isNaN(Ne)&&(Ne=md(E.M(we),Ae)),360>Se&&(we===0||we===E.length-1)&&(Ne/=2),b+=Ne,z++}if(isNaN(le)||re===$l){if(isNaN(y)&&(y=6),re!==ql&&re!==$l){for(z=-1/0,te=0;te<oe;te++)we=E.M(te),b=E.M(te===oe-1?0:te+1),isNaN(we.diameter)&&md(we,0),isNaN(b.diameter)&&md(b,0),z=Math.max(z,(we.diameter+b.diameter)/2);te=z+y,re===Th?le=(z+y)/(2*Math.PI/oe):le=pm(this,te*(360<=Se?oe:oe-1),he,ge*Math.PI/180,Se*Math.PI/180)}else le=pm(this,b+(360<=Se?oe:oe-1)*(re!==$l?y:1.6*y),he,ge*Math.PI/180,Se*Math.PI/180);z=le*he}else if(z=le*he,we=py(this,le,z,ge*Math.PI/180,Se*Math.PI/180),isNaN(y))(re===ql||re===$l)&&(y=(we-b)/(360<=Se?oe:oe-1));else if(re===ql||re===$l)we=(we-b)/(360<=Se?oe:oe-1),we<y?(le=pm(this,b+y*(360<=Se?oe:oe-1),he,ge*Math.PI/180,Se*Math.PI/180),z=le*he):y=we;else{for(te=-1/0,b=0;b<oe;b++)Ae=E.M(b),Ne=E.M(b===oe-1?0:b+1),isNaN(Ae.diameter)&&md(Ae,0),isNaN(Ne.diameter)&&md(Ne,0),te=Math.max(te,(Ae.diameter+Ne.diameter)/2);te+=y,b=pm(this,te*(360<=Se?oe:oe-1),he,ge*Math.PI/180,Se*Math.PI/180),b>le?(le=b,z=le*he):te=we/(360<=Se?oe:oe-1)}if(this.kw=re,this.lc=le,this.Zm=he,this.lw=ge,this.Wp=Se,this.Ti=y,this.me=z,this.Jp=te,y=E,E=this.kw,re=this.lc,le=this.lw,he=this.Wp,ge=this.Ti,Se=this.me,oe=this.Jp,this.direction!==nc&&this.direction!==Kf||E!==$l)if(this.direction===nc||this.direction===Kf){switch(te=0,E){case gd:te=180*mm(this,re,Se,le,oe)/Math.PI;break;case ql:oe=y=0,te=a.first(),te!==null&&(y=md(te,Math.PI/2)),te=x.first(),te!==null&&(oe=md(te,Math.PI/2)),te=180*mm(this,re,Se,le,ge+(y+oe)/2)/Math.PI;break;case Th:te=he/y.length}if(this.direction===nc){switch(E){case gd:Pp(this,a,le,pd);break;case ql:xp(this,a,le,pd);break;case Th:Sp(this,a,he/2,le,pd)}switch(E){case gd:Pp(this,x,le+te,Ds);break;case ql:xp(this,x,le+te,Ds);break;case Th:Sp(this,x,he/2,le+te,Ds)}}else{switch(E){case gd:Pp(this,x,le,pd);break;case ql:xp(this,x,le,pd);break;case Th:Sp(this,x,he/2,le,pd)}switch(E){case gd:Pp(this,a,le+te,Ds);break;case ql:xp(this,a,le+te,Ds);break;case Th:Sp(this,a,he/2,le+te,Ds)}}}else switch(E){case gd:Pp(this,y,le,this.direction);break;case ql:xp(this,y,le,this.direction);break;case Th:Sp(this,y,he,le,this.direction);break;case $l:OS(this,y,he,le,this.direction)}else OS(this,y,he,le-he/2,Ds)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Sp(a,y,x,E,b){var z=a.Wp,te=a.lc;a=a.me,E=E*Math.PI/180,x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var le=E+(b===Ds?oe*x/(360<=z?re:re-1):-(oe*x)/re),he=y.M(oe),ge=te*Math.tan(le)/a;ge=Math.sqrt((te*te+a*a*ge*ge)/(1+ge*ge)),he.centerX=ge*Math.cos(le),he.centerY=ge*Math.sin(le),he.actualAngle=180*le/Math.PI}}function xp(a,y,x,E){var b=a.lc,z=a.me,te=a.Ti;x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var le=y.M(oe),he=y.M(oe===re-1?0:oe+1),ge=z*Math.sin(x);le.centerX=b*Math.cos(x),le.centerY=ge,le.actualAngle=180*x/Math.PI,isNaN(le.diameter)&&md(le,0),isNaN(he.diameter)&&md(he,0),le=mm(a,b,z,E===Ds?x:-x,(le.diameter+he.diameter)/2+te),x+=E===Ds?le:-le}}function Pp(a,y,x,E){var b=a.lc,z=a.me,te=a.Jp;x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var le=y.M(oe);le.centerX=b*Math.cos(x),le.centerY=z*Math.sin(x),le.actualAngle=180*x/Math.PI,le=mm(a,b,z,E===Ds?x:-x,te),x+=E===Ds?le:-le}}function OS(a,y,x,E,b){var z=a.Wp;if(a.mj=0,a.Xr=new wp,360>x){for(z=E+(b===Ds?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,RS(a,y,x,E,b)}else IS(a,y,x,E,b);a.Xr.commit(y)}function IS(a,y,x,E,b){var z=a.lc,te=a.Ti,re=a.Zm,oe=z*Math.cos(E*Math.PI/180),le=a.me*Math.sin(E*Math.PI/180),he=y.Fa();if(he.length===3)he[0].centerX=z,he[0].centerY=0,he[1].centerX=he[0].centerX-he[0].width/2-he[1].width/2-te,he[1].y=he[0].y,he[2].centerX=(he[0].centerX+he[1].centerX)/2,he[2].y=he[0].y-he[2].height-te;else if(he.length===4)he[0].centerX=z,he[0].centerY=0,he[2].centerX=-he[0].centerX,he[2].centerY=he[0].centerY,he[1].centerX=0,he[1].y=Math.min(he[0].y,he[2].y)-he[1].height-te,he[3].centerX=0,he[3].y=Math.max(he[0].y+he[0].height+te,he[2].y+he[2].height+te);else{z=je.alloc();for(var ge=0;ge<he.length&&(he[ge].centerX=oe,he[ge].centerY=le,!(ge>=he.length-1));ge++)jS(a,oe,le,he,ge,b,z)||zS(a,oe,le,he,ge,b,z),oe=z.x,le=z.y;if(je.free(z),a.mj++,!(23<a.mj)){oe=he[0].centerX,le=he[0].centerY,z=he[he.length-1].centerX,ge=he[he.length-1].centerY;var Se=Math.abs(oe-z)-((he[0].width+he[he.length-1].width)/2+te),we=Math.abs(le-ge)-((he[0].height+he[he.length-1].height)/2+te);te=0,1>Math.abs(we)?Math.abs(oe-z)<(he[0].width+he[he.length-1].width)/2&&(te=0):te=0<we?we:1>Math.abs(Se)?0:Se,oe=Math.abs(z)>Math.abs(ge)?0<z!=le>ge:0<ge!=oe<z,(oe=b===Ds?oe:!oe)&&(te=-Math.abs(te),te=Math.min(te,-he[he.length-1].width),te=Math.min(te,-he[he.length-1].height)),a.Xr.compare(te,he),1<Math.abs(te)&&(a.lc=8>a.mj?a.lc-te/(2*Math.PI):5>he.length&&10<te?a.lc/2:a.lc-(0<te?1.7:-2.3),a.me=a.lc*re,IS(a,y,x,E,b))}}}function RS(a,y,x,E,b){for(var z=a.lc,te=a.me,re=a.Zm,oe=z*Math.cos(E*Math.PI/180),le=te*Math.sin(E*Math.PI/180),he=je.alloc(),ge=y.Fa(),Se=0;Se<ge.length&&(ge[Se].centerX=oe,ge[Se].centerY=le,!(Se>=ge.length-1));Se++)jS(a,oe,le,ge,Se,b,he)||zS(a,oe,le,ge,Se,b,he),oe=he.x,le=he.y;if(je.free(he),a.mj++,!(23<a.mj)){if(oe=Math.atan2(le,oe),oe=b===Ds?a.gt-oe:oe-a.gt,oe=Math.abs(oe)<Math.abs(oe-2*Math.PI)?oe:oe-2*Math.PI,z=oe*(z+te)/2,te=a.Xr,Math.abs(z)<Math.abs(te.Pl))for(te.Pl=z,te.mk=[],te.tm=[],oe=0;oe<ge.length;oe++)te.mk[oe]=ge[oe].bounds.x,te.tm[oe]=ge[oe].bounds.y;1<Math.abs(z)&&(a.lc=8>a.mj?a.lc-z/(2*Math.PI):a.lc-(0<z?1.7:-2.3),a.me=a.lc*re,RS(a,y,x,E,b))}}function jS(a,y,x,E,b,z,te){var re=a.lc,oe=a.me,le=0;a=(E[b].width+E[b+1].width)/2+a.Ti;var he=!1;if(0<=x!=(z===Ds)){if(z=y+a,z>re){if(z=y-a,z<-re)return te.x=z,te.y=le,!1;he=!0}}else if(z=y-a,z<-re){if(z=y+a,z>re)return te.x=z,te.y=le,!1;he=!0}return le=Math.sqrt(1-Math.min(1,z*z/(re*re)))*oe,0>x!==he&&(le=-le),Math.abs(x-le)>(E[b].height+E[b+1].height)/2?(te.x=z,te.y=le,!1):(te.x=z,te.y=le,!0)}function zS(a,y,x,E,b,z,te){var re=a.lc,oe=a.me,le=0;if(a=(E[b].height+E[b+1].height)/2+a.Ti,E=!1,0<=y!=(z===Ds)){if(z=x-a,z<-oe){if(z=x+a,z>oe){te.x=le,te.y=z;return}E=!0}}else if(z=x+a,z>oe){if(z=x-a,z<-oe){te.x=le,te.y=z;return}E=!0}le=Math.sqrt(1-Math.min(1,z*z/(oe*oe)))*re,0>y!==E&&(le=-le),te.x=le,te.y=z}ra.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},ra.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,x=this.actualCenter;a?x=new je(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;b.x+=x.x,b.y+=x.y,b.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},ra.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function py(a,y,x,E,b){var z=a.ty;if(.001>Math.abs(a.Zm-1))return E!==void 0&&b!==void 0?b*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var te=0,re=E!==void 0&&b!==void 0?b/(z+1):Math.PI/(2*(z+1)),oe=0,le=0;le<=z;le++){E!==void 0&&b!==void 0?oe=E+le*b/z:oe=le*Math.PI/(2*z);var he=Math.sin(oe);te+=Math.sqrt(1-a*a*he*he)*re}return E!==void 0&&b!==void 0?(y>x?y:x)*te:4*(y>x?y:x)*te}function pm(a,y,x,E,b){return y/(E!==void 0&&b!==void 0?py(a,1,x,E,b):py(a,1,x))}function mm(a,y,x,E,b){if(.001>Math.abs(a.Zm-1))return b/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,te=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(E+=Math.PI/2);for(var re=0;;re++){var oe=Math.sin(E+re*a);if(te+=(y>x?y:x)*Math.sqrt(1-z*z*oe*oe)*a,te>=b)return re*a}}ra.prototype.sort=function(a){switch(this.sorting){case vm:break;case ym:a.reverse();break;case Sm:a.sort(this.comparer);break;case xm:a.sort(this.comparer),a.reverse();break;case Uf:return this.ak(Zx(a));default:lt("Invalid sorting type.")}return a};function Zx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new An;for(var E=0;E<a.length;E++){var b=-1,z=-1;if(E===0)for(var te=0;te<a.length;te++){var re=a.M(te).edgesCount;re>b&&(b=re,z=te)}else for(te=0;te<a.length;te++)re=y[te],re>b&&(b=re,z=te);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),te=z.sourceEdges;te.next();)b=a.indexOf(te.value.fromVertex),0>b||0<=y[b]&&y[b]++;for(z=z.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),0>b||0<=y[b]&&y[b]++}return x}ra.prototype.ak=function(a){for(var y=[],x=0;x<a.length;x++){var E=a.M(x);y[x]=[];for(var b,z=E.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b);for(E=E.sourceEdges;E.next();)b=a.indexOf(E.value.fromVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b)}for(z=[],x=0;x<y.length;x++)z[x]=0;x=[];var te=[],re=[];E=[],b=new An;for(var oe=0,le=0;le<y.length;le++){var he=y[le].length;if(he===1)E.push(le);else if(he===0)b.add(a.M(le));else{if(oe===0)x.push(le);else{for(var ge=he=1/0,Se=-1,we=[],Ae=0;Ae<x.length;Ae++)0>y[x[Ae]].indexOf(x[Ae===x.length-1?0:Ae+1])&&we.push(Ae===x.length-1?0:Ae+1);if(we.length===0)for(Ae=0;Ae<x.length;Ae++)we.push(Ae);for(Ae=0;Ae<we.length;Ae++){for(var Ne=we[Ae],$e=y[le],Ke=0,at=0;at<te.length;at++){var dt=z[te[at]],ft=z[re[at]];if(dt<ft){var wt=dt;dt=ft}else wt=ft;if(wt<Ne&&Ne<=dt)for(ft=0;ft<$e.length;ft++){var Gt=$e[ft];0>x.indexOf(Gt)||wt<z[Gt]&&z[Gt]<dt||wt===z[Gt]||dt===z[Gt]||Ke++}else for(ft=0;ft<$e.length;ft++)Gt=$e[ft],0>x.indexOf(Gt)||wt<z[Gt]&&z[Gt]<dt&&wt!==z[Gt]&&dt!==z[Gt]&&Ke++}for($e=Ke,at=Ke=0;at<y[le].length;at++)wt=x.indexOf(y[le][at]),0<=wt&&(wt=Math.abs(Ne-(wt>=Ne?wt+1:wt)),Ke+=wt<x.length+1-wt?wt:x.length+1-wt);for(at=0;at<te.length;at++)wt=z[te[at]],dt=z[re[at]],wt>=Ne&&wt++,dt>=Ne&&dt++,wt>dt&&(ft=dt,dt=wt,wt=ft),dt-wt<(x.length+2)/2==(wt<Ne&&Ne<=dt)&&Ke++;($e<he||$e===he&&Ke<ge)&&(he=$e,ge=Ke,Se=Ne)}for(x.splice(Se,0,le),he=0;he<x.length;he++)z[x[he]]=he;for(he=0;he<y[le].length;he++)ge=y[le][he],0<=x.indexOf(ge)&&(te.push(le),re.push(ge))}oe++}}for(te=x.length;;){for(z=!0,re=0;re<E.length;re++)if(oe=E[re],le=y[oe][0],he=x.indexOf(le),0<=he){for(Se=ge=0;Se<y[le].length;Se++)we=x.indexOf(y[le][Se]),0>we||we===he||(Ae=we>he?we-he:he-we,ge+=we<he!=Ae>te-Ae?1:-1);x.splice(0>ge?he:he+1,0,oe),E.splice(re,1),re--}else z=!1;if(z)break;x.push(E[0]),E.splice(0,1)}for(y=0;y<x.length;y++)b.add(a.M(x[y]));return b},pn.Object.defineProperties(ra.prototype,{radius:{get:function(){return this.eo},set:function(a){this.eo!==a&&(0<a||isNaN(a))&&(this.eo=a,this.C())}},aspectRatio:{get:function(){return this.Cm},set:function(a){this.Cm!==a&&0<a&&(this.Cm=a,this.C())}},startAngle:{get:function(){return this.ro},set:function(a){this.ro!==a&&(this.ro=a,this.C())}},sweepAngle:{get:function(){return this.ul},set:function(a){this.ul!==a&&(0<a&&360>=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==$l&&a!==ql&&a!==gd&&a!==Th||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Ds&&a!==pd&&a!==nc&&a!==Kf||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==vm&&a!==ym&&a!==Sm&&!xm&&a!==Uf||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf!==a&&(this.tf=a,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(a){this.Nn===a||a!==Pm&&a!==Wc||(this.Nn=a,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var ql=new Kt(ra,"ConstantSpacing",0),gd=new Kt(ra,"ConstantDistance",1),Th=new Kt(ra,"ConstantAngle",2),$l=new Kt(ra,"Packed",3),Ds=new Kt(ra,"Clockwise",4),pd=new Kt(ra,"Counterclockwise",5),nc=new Kt(ra,"BidirectionalLeft",6),Kf=new Kt(ra,"BidirectionalRight",7),vm=new Kt(ra,"Forwards",8),ym=new Kt(ra,"Reverse",9),Sm=new Kt(ra,"Ascending",10),xm=new Kt(ra,"Descending",11),Uf=new Kt(ra,"Optimized",12),Pm=new Kt(ra,"Pythagorean",13),Wc=new Kt(ra,"Circular",14);ra.className="CircularLayout",ra.ConstantSpacing=ql,ra.ConstantDistance=gd,ra.ConstantAngle=Th,ra.Packed=$l,ra.Clockwise=Ds,ra.Counterclockwise=pd,ra.BidirectionalLeft=nc,ra.BidirectionalRight=Kf,ra.Forwards=vm,ra.Reverse=ym,ra.Ascending=Sm,ra.Descending=xm,ra.Optimized=Uf,ra.Pythagorean=Pm,ra.Circular=Wc;function wp(){this.Pl=-1/0,this.tm=this.mk=null}wp.prototype.compare=function(a,y){if(0<a&&0>this.Pl||Math.abs(a)<Math.abs(this.Pl)&&!(0>a&&0<this.Pl))for(this.Pl=a,this.mk=[],this.tm=[],a=0;a<y.length;a++)this.mk[a]=y[a].bounds.x,this.tm[a]=y[a].bounds.y},wp.prototype.commit=function(a){if(this.mk!==null&&this.tm!==null)for(var y=0;y<this.mk.length;y++){var x=a.M(y);x.x=this.mk[y],x.y=this.tm[y]}},wp.className="VertexArrangement";function Xf(a){Ho.call(this,a)}Zt(Xf,Ho),Xf.prototype.createVertex=function(){return new Cp(this)},Xf.prototype.createEdge=function(){return new wm(this)},Xf.className="CircularNetwork";function Cp(a){Ba.call(this,a),this.u=this.Si=NaN}Zt(Cp,Ba);function md(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===$l)if(x.nodeDiameterFormula===Wc)a.Si=Math.max(a.width,a.height);else{if(x=Math.abs(Math.sin(y)),y=Math.abs(Math.cos(y)),x===0)return a.width;if(y===0)return a.height;a.Si=Math.min(a.height/x,a.width/y)}else a.Si=x.nodeDiameterFormula===Wc?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}pn.Object.defineProperties(Cp.prototype,{diameter:{get:function(){return this.Si},set:function(a){this.Si!==a&&(this.Si=a)}},actualAngle:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}}}),Cp.className="CircularVertex";function wm(a){el.call(this,a)}Zt(wm,el),wm.className="CircularEdge";function as(a){ea.call(this),this.ah=null,this.An=0,this.$d=new Xe(100,100).freeze(),this.Bm=!1,this.sf=!0,this.td=!1,this.dl=100,this.$m=1,this.Zf=1e3,this.In=10,this.fo=Math,this.Hk=.05,this.Gk=50,this.Ek=150,this.Fk=0,this.Vm=10,this.Um=5,a&&Object.assign(this,a)}Zt(as,ea),as.prototype.cloneProtected=function(a){ea.prototype.cloneProtected.call(this,a),a.$d.assign(this.$d),a.Bm=this.Bm,a.sf=this.sf,a.td=this.td,a.dl=this.dl,a.$m=this.$m,a.Zf=this.Zf,a.In=this.In,a.fo=this.fo,a.Hk=this.Hk,a.Gk=this.Gk,a.Ek=this.Ek,a.Fk=this.Fk,a.Vm=this.Vm,a.Um=this.Um},as.prototype.createNetwork=function(){return new Hc(this)},as.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),a=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;x.charge=this.electricalCharge(x),x.mass=this.gravitationalMass(x)}for(y=this.network.edges.iterator;y.next();)x=y.value,x.stiffness=this.springStiffness(x),x.length=this.springLength(x);if(this.Cu(),this.An=0,this.needsClusterLayout()){y=this.network,x=y.Zx();for(var E=x.iterator;E.next();){this.network=E.value;for(var b=this.network.vertexes.iterator;b.next();){var z=b.value;z.Vd=z.vertexes.count,z.sh=1,z.Hj=null,z.We=null}ZS(this,0,a)}this.network=y;var te=E=x.iterator;E=this.arrangementSpacing;var re=te.count,oe=!0;z=b=0;for(var le=Bn(),he=0;he<re+y.vertexes.count+2;he++)le[he]=null;re=0,te.reset();for(var ge=pt.alloc();te.next();)if(he=te.value,this.computeBounds(he,ge),oe)oe=!1,b=ge.x+ge.width/2,z=ge.y+ge.height/2,le[0]=new je(ge.x+ge.width+E.width,ge.y),le[1]=new je(ge.x,ge.y+ge.height+E.height),re=2;else{var Se=WS(le,re,b,z,ge.width,ge.height,E),we=le[Se],Ae=new je(we.x+ge.width+E.width,we.y),Ne=new je(we.x,we.y+ge.height+E.height);for(Se+1<re&&le.splice(Se+1,0,null),le[Se]=Ae,le[Se+1]=Ne,re++,Se=we.x-ge.x,we=we.y-ge.y,he=he.vertexes.iterator;he.next();)Ae=he.value,Ae.centerX+=Se,Ae.centerY+=we}for(pt.free(ge),he=y.vertexes.iterator;he.next();)te=he.value,Se=te.bounds,2>re?(b=Se.x+Se.width/2,z=Se.y+Se.height/2,le[0]=new je(Se.x+Se.width+E.width,Se.y),le[1]=new je(Se.x,Se.y+Se.height+E.height),re=2):(oe=WS(le,re,b,z,Se.width,Se.height,E),ge=le[oe],we=new je(ge.x+Se.width+E.width,ge.y),Se=new je(ge.x,ge.y+Se.height+E.height),oe+1<re&&le.splice(oe+1,0,null),le[oe]=we,le[oe+1]=Se,re++,te.centerX=ge.x+te.width/2,te.centerY=ge.y+te.height/2);for(Ot(le),E=x.iterator;E.next();){for(x=E.value,b=x.vertexes.iterator;b.next();)y.dh(b.value);for(x=x.edges.iterator;x.next();)y.Bo(x.value)}}GS(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},as.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,E=this.network.vertexes.iterator;E.next();){if(E.value.bounds.Yc(x)&&(a++,2<a))return!0;if(10<y)break;y++}return!1},as.prototype.computeBounds=function(a,y){var x=!0;for(a=a.vertexes.iterator;a.next();){var E=a.value;x?(x=!1,y.set(E.bounds)):y.ed(E.bounds)}return y};function ZS(a,y,x){if(Wx(a,y)){var E=a.Zf;a.Zf*=1+1/(y+1);var b=Hx(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=z,ZS(a,y+1,x),GS(a,z),Gx(a,b),y=b.vertexes.Fa(),y.sort(function(te,re){return te===null||re===null||te===re?0:re.Vd-te.Vd}),x=0;x<y.length;x++)Vx(a,y[x]);a.Zf=E}}function Wx(a,y){if(10<y||3>a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,E){return x===null||E===null||x===E?0:E.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1<a.length-y}function Hx(a,y){for(var x=a.network,E=new Hc(a),b=0;b<a.ah.length;b++){var z=a.ah[b];if(1<z.Vd){E.dh(z);var te=new VS;te.Rs=z.Vd,te.Ss=z.width,te.Qs=z.height,te.Sv=z.focus.x,te.Tv=z.focus.y,z.We===null&&(z.We=new An),z.We.add(te),z.sv=z.We.count-1}else break}for(z=x.edges.iterator;z.next();){var re=z.value;b=re.fromVertex,te=re.toVertex,b.network===E&&te.network===E?E.Bo(re):b.network===E?(re=b.Hj,re===null&&(re=new An,b.Hj=re),re.add(te),b.Vd--,b.sh+=te.sh):te.network===E&&(re=te.Hj,re===null&&(re=new An,te.Hj=re),re.add(b),te.Vd--,te.sh+=b.sh)}for(b=E.edges.iterator;b.next();)z=b.value,z.length*=Math.max(1,St.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=E.vertexes.iterator;y.next();){b=y.value;var oe=b.Hj;if(oe!==null&&0<oe.count&&(te=b.We.M(b.We.count-1).Rs-b.Vd,!(0>=te))){for(var le=re=0,he=oe.count-te;he<oe.count;he++){var ge=oe.M(he),Se=null;for(z=ge.edges.iterator;z.next();){var we=z.value;if(we.Ax(ge)===b){Se=we;break}}Se!==null&&(le+=Se.length,re+=ge.width*ge.height)}z=b.centerX,oe=b.centerY,he=b.width,ge=b.height,Se=b.focus,we=he*ge,1>we&&(we=1),re=St.sqrt((re+we+le*le*4/(te*te))/we),te=(re-1)*he/2,re=(re-1)*ge/2,b.bounds=new pt(z-Se.x-te,oe-Se.y-re,he+2*te,ge+2*re),b.focus=new je(Se.x+te,Se.y+re)}}return a.network=E,x}function Gx(a,y){for(var x=a.network.vertexes.iterator;x.next();){var E=x.value;if(E.network=y,E.We!==null){var b=E.We.M(E.sv);E.Vd=b.Rs;var z=b.Sv,te=b.Tv;E.bounds=new pt(E.centerX-z,E.centerY-te,b.Ss,b.Qs),E.focus=new je(z,te),E.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Vx(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var E=y.centerX,b=y.centerY,z=y.width,te=y.height;y.We!==null&&0<y.We.count&&(te=y.We.M(0),z=te.Ss,te=te.Qs),z=St.sqrt(z*z+te*te)/2;for(var re=!1,oe=te=0,le=0,he=y.vertexes.iterator;he.next();){var ge=he.value;1>=ge.Vd?oe++:(re=!0,le++,te+=Math.atan2(y.centerY-ge.centerY,y.centerX-ge.centerX))}if(oe!==0){for(0<le&&(te/=le),le=y=0,y=re?2*Math.PI/(oe+1):2*Math.PI/oe,oe%2===0&&(le=y/2),1<x.count&&x.sort(function(we,Ae){return we===null||Ae===null||we===Ae?0:Ae.width*Ae.height-we.width*we.height}),re=oe%2===0?0:1,x=x.iterator;x.next();)if(oe=x.value,!(1<oe.Vd||a.isFixed(oe))){for(he=null,ge=oe.edges.iterator;ge.next();){he=ge.value;break}ge=oe.width;var Se=oe.height;ge=St.sqrt(ge*ge+Se*Se)/2,he=z+he.length+ge,ge=te+(y*(re/2>>1)+le)*(re%2===0?1:-1),oe.centerX=E+he*Math.cos(ge),oe.centerY=b+he*Math.sin(ge),re++}}}}function WS(a,y,x,E,b,z,te){var re=9e19,oe=-1,le=0;e:for(;le<y;le++){var he=a[le],ge=he.x-x,Se=he.y-E;if(ge=ge*ge+Se*Se,ge<re){for(Se=le-1;0<=Se;Se--)if(a[Se].y>he.y&&a[Se].x-he.x<b+te.width)continue e;for(Se=le+1;Se<y;Se++)if(a[Se].x>he.x&&a[Se].y-he.y<z+te.height)continue e;oe=le,re=ge}}return oe}as.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},as.prototype.addComments=function(a){var y=a.node;if(y!==null)for(y=y.Mu();y.next();){var x=y.value;if(x.category==="Comment"&&x.isVisible()){var E=this.network.ki(x);E===null&&(E=this.network.Bl(x)),E.charge=this.defaultCommentElectricalCharge,x=null;for(var b=E.destinationEdges;b.next();){var z=b.value;if(z.toVertex===a){x=z;break}}if(x===null){for(b=E.sourceEdges;b.next();)if(z=b.value,z.fromVertex===a){x=z;break}}x===null&&(x=this.network.Zj(a,E,null)),x.length=this.defaultCommentSpringLength}}};function HS(a,y){var x=a.bounds,E=x.x;a=x.y;var b=x.width;x=x.height;var z=y.bounds,te=z.x;y=z.y;var re=z.width;return z=z.height,E+b<te?a>y+z?(x=E+b-te,a=a-y-z,St.sqrt(x*x+a*a)):a+x<y?(E=E+b-te,a=a+x-y,St.sqrt(E*E+a*a)):te-(E+b):E>te+re?a>y+z?(x=E-te-re,a=a-y-z,St.sqrt(x*x+a*a)):a+x<y?(E=E-te-re,a=a+x-y,St.sqrt(E*E+a*a)):E-(te+re):a>y+z?a-(y+z):a+x<y?y-(a+x):.1}function GS(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,_x(a)););a.ah=null}function _x(a){a.ah===null&&(a.ah=a.network.vertexes.Fa());var y=a.ah;if(0>=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var E=x.centerX,b=E,z=x=x.centerY,te=1;te<y.length;te++){var re=y[te];re.forceX=0,re.forceY=0;var oe=re.centerX;re=re.centerY,E=Math.min(E,oe),b=Math.max(b,oe),x=Math.min(x,re),z=Math.max(z,re)}(b=b-E>z-x)?y.sort(function(Ne,$e){return Ne===null||$e===null||Ne===$e?0:Ne.centerX-$e.centerX}):y.sort(function(Ne,$e){return Ne===null||$e===null||Ne===$e?0:Ne.centerY-$e.centerY}),x=a.Zf;var le=E=re=0;for(z=0;z<y.length;z++){te=y[z],E=te.bounds,re=te.focus,oe=E.x+re.x;var he=E.y+re.y;E=te.charge*a.electricalFieldX(oe,he),le=te.charge*a.electricalFieldY(oe,he),E+=te.mass*a.gravitationalFieldX(oe,he),le+=te.mass*a.gravitationalFieldY(oe,he),te.forceX+=E,te.forceY+=le;for(var ge=z+1;ge<y.length;ge++){var Se=y[ge];if(Se!==te){E=Se.bounds,re=Se.focus,le=E.x+re.x;var we=E.y+re.y;if(oe-le>x||le-oe>x){if(b)break}else if(he-we>x||we-he>x){if(!b)break}else{var Ae=HS(te,Se);1>Ae?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new Cm),Ae=E.random(),re=E.random(),oe>le?(E=Math.abs(Se.bounds.right-te.bounds.x),E=(1+E)*Ae):oe<le?(E=Math.abs(Se.bounds.x-te.bounds.right),E=-(1+E)*Ae):(E=Math.max(Se.width,te.width),E=(1+E)*Ae-E/2),he>we?(le=Math.abs(Se.bounds.bottom-te.bounds.y),le=(1+le)*re):oe<le?(le=Math.abs(Se.bounds.y-te.bounds.bottom),le=-(1+le)*re):(le=Math.max(Se.height,te.height),le=(1+le)*re-le/2)):(re=-(te.charge*Se.charge)/(Ae*Ae),E=(le-oe)/Ae*re,le=(we-he)/Ae*re),te.forceX+=E,te.forceY+=le,Se.forceX-=E,Se.forceY-=le}}}}for(b=a.network.edges.iterator;b.next();)re=b.value,x=re.fromVertex,z=re.toVertex,te=x.bounds,oe=x.focus,E=te.x+oe.x,te=te.y+oe.y,he=z.bounds,ge=z.focus,oe=he.x+ge.x,he=he.y+ge.y,ge=HS(x,z),1>ge?(ge=a.randomNumberGenerator,ge===null&&(a.randomNumberGenerator=ge=new Cm),re=ge.random(),ge=ge.random(),E=(E>oe?1:-1)*(1+(z.width>x.width?z.width:x.width))*re,le=(te>he?1:-1)*(1+(z.height>x.height?z.height:x.height))*ge):(re=re.stiffness*(ge-re.length),E=(oe-E)/ge*re,le=(he-te)/ge*re),x.forceX+=E,x.forceY+=le,z.forceX-=E,z.forceY-=le;for(b=E=0;b<y.length;b++)x=y[b],a.isFixed(x)?a.moveFixedVertex(x):E=Math.max(E,a.moveVertex(x)||0);return E>a.epsilonDistance*a.epsilonDistance}as.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,E=this.moveLimit;return y<-E?y=-E:y>E&&(y=E),x<-E?x=-E:x>E&&(x=E),a.centerX+=y,a.centerY+=x,y*y+x*x},as.prototype.moveFixedVertex=function(){},as.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},as.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Eo,y.toSpot=Eo)}},as.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=pt.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,pt.free(x)}x=pt.alloc();for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;(a!==0||y!==0)&&(x.assign(b.bounds),x.x+=a,x.y+=y,b.bounds=x),b.commit()}pt.free(x)},as.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},as.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},as.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},as.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},as.prototype.electricalFieldX=function(){return 0},as.prototype.electricalFieldY=function(){return 0},as.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},as.prototype.gravitationalFieldX=function(){return 0},as.prototype.gravitationalFieldY=function(){return 0},as.prototype.isFixed=function(a){return a.isFixed},pn.Object.defineProperties(as.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(a){this.Bm!==a&&(this.Bm=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},maxIterations:{get:function(){return this.dl},set:function(a){this.dl!==a&&0<=a&&(this.dl=a,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(a){this.$m!==a&&0<a&&(this.$m=a,this.C())}},infinityDistance:{get:function(){return this.Zf},set:function(a){this.Zf!==a&&1<a&&(this.Zf=a,this.C())}},moveLimit:{get:function(){return this.In},set:function(a){this.In!==a&&1<a&&(this.In=a,this.C())}},randomNumberGenerator:{get:function(){return this.fo},set:function(a){this.fo!==a&&(a!==null&&typeof a.random!="function"&<('ForceDirectedLayout.randomNumberGenerator must have a "random()" function on it: '+a),this.fo=a)}},defaultSpringStiffness:{get:function(){return this.Hk},set:function(a){this.Hk!==a&&(this.Hk=a,this.C())}},defaultSpringLength:{get:function(){return this.Gk},set:function(a){this.Gk!==a&&(this.Gk=a,this.C())}},defaultElectricalCharge:{get:function(){return this.Ek},set:function(a){this.Ek!==a&&(this.Ek=a,this.C())}},defaultGravitationalMass:{get:function(){return this.Fk},set:function(a){this.Fk!==a&&(this.Fk=a,this.C())}},defaultCommentSpringLength:{get:function(){return this.Vm},set:function(a){this.Vm!==a&&(this.Vm=a,this.C())}},defaultCommentElectricalCharge:{get:function(){return this.Um},set:function(a){this.Um!==a&&(this.Um=a,this.C())}}}),as.className="ForceDirectedLayout";function VS(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}VS.className="ForceDirectedSubnet";function Hc(a){Ho.call(this,a)}Zt(Hc,Ho),Hc.prototype.createVertex=function(){return new Ep(this)},Hc.prototype.createEdge=function(){return new Ap(this)},Hc.className="ForceDirectedNetwork";function Ep(a){Ba.call(this,a),this.ia=!1,this.Ha=this.u=NaN,this.sh=this.Vd=this.V=this.F=0,this.We=this.Hj=null,this.sv=0}Zt(Ep,Ba),pn.Object.defineProperties(Ep.prototype,{isFixed:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},charge:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},mass:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},forceX:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},forceY:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}}}),Ep.className="ForceDirectedVertex";function Ap(a){el.call(this,a),this.j=this.o=NaN}Zt(Ap,el),pn.Object.defineProperties(Ap.prototype,{stiffness:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},length:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}}}),Ap.className="ForceDirectedEdge";function Cm(){var a=0;a===void 0&&(a=42),this.seed=a,this.ay=48271,this.ey=2147483647,this.Q=44488.07041494893,this.gy=3399,this.by=1/2147483647,this.random()}Cm.prototype.random=function(){var a=this.seed%this.Q*this.ay-this.seed/this.Q*this.gy;return 0<a?this.seed=a:this.seed=a+this.ey,this.seed*this.by},Cm.className="RandomNumberGenerator";function Po(a){ea.call(this),this.kc=this.ie=25,this.K=0,this.Dk=Lm,this.Zk=bm,this.Qk=Dm,this.bj=4,this.rk=km,this.bg=15,this.sf=!0,this.Cn=4,this.Ra=this.Iq=this.Ia=-1,this.Md=this.Hn=0,this.Ta=this.Kd=this.Ld=this.he=this.tc=null,this.Kn=0,this.Jn=this.kj=null,this.le=0,this.fl=null,this.Rf=new je,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Zt(Po,ea),Po.prototype.cloneProtected=function(a){ea.prototype.cloneProtected.call(this,a),a.ie=this.ie,a.kc=this.kc,a.K=this.K,a.Dk=this.Dk,a.Zk=this.Zk,a.Qk=this.Qk,a.bj=this.bj,a.rk=this.rk,a.bg=this.bg,a.sf=this.sf,a.Cn=this.Cn,a.ve=this.ve},Po.prototype.qb=function(a){a.classType===Po?a.name.indexOf("Aggressive")===0?this.aggressiveOption=a:a.name.indexOf("Cycle")===0?this.cycleRemoveOption=a:a.name.indexOf("Init")===0?this.initializeOption=a:a.name.indexOf("Layer")===0?this.layeringOption=a:lt("Unknown enum value: "+a):ea.prototype.qb.call(this,a)},Po.prototype.createNetwork=function(){return new Jf(this)},Po.prototype.doLayout=function(a){for(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),this.Iq=-1,this.Md=this.Hn=0,this.fl=this.Jn=this.kj=null,a=0;a<this.He.length;a++)this.He[a]=null;if(0<this.network.vertexes.count){for(this.network.Ko(),this.cycleRemoveOption!==Mp&&this.removeCycles(),a=this.network.vertexes.iterator;a.next();)a.value.layer=-1;for(this.Ia=-1,this.assignLayers(),a.reset();a.next();)this.Ia=Math.max(this.Ia,a.value.layer);this.cycleRemoveOption===Mp&&this.removeCycles(),a=this.network;for(var y=[],x=a.edges.iterator;x.next();){var E=x.value;E.valid=!1,y.push(E)}for(x=0;x<y.length;x++){E=y[x];var b=E.fromVertex,z=E.toVertex;if(!(E.valid||(b.node===null&&b.data===null||z.node===null&&z.data===null)&&b.layer===z.layer)){var te=0,re=0,oe=0,le=0;if(E.link!==null){if(re=E.link,re===null)continue;var he=b.node;if(te=z.node,he===null||te===null)continue;var ge=re.fromNode;oe=re.toNode;for(var Se=re.fromPort;Se!==null&&!Se.Ed();)Se=Se.panel;for(re=re.toPort;re!==null&&!re.Ed();)re=re.panel;if(E.rev){le=ge;var we=Se;ge=oe,Se=re,oe=le,re=we}var Ae=b.focus;le=z.focus;var Ne=E.rev?z.bounds:b.bounds;we=je.alloc(),he!==ge?Ne.w()&&ge.isVisible()?ge.actualBounds.w()?(bh(ge,Se,hi,we),we.x+=ge.actualBounds.x-Ne.x,we.y+=ge.actualBounds.y-Ne.y):(bh(ge,Se,hi,we),we.w()||we.assign(Ae)):we.assign(Ae):Ne.w()?(bh(ge,Se,hi,we),we.w()||we.assign(Ae)):we.assign(Ae),ge=E.rev?b.bounds:z.bounds,he=je.alloc(),te!==oe?ge.w()&&oe.isVisible()?oe.actualBounds.w()?(bh(oe,re,hi,he),he.x+=oe.actualBounds.x-ge.x,he.y+=oe.actualBounds.y-ge.y):(bh(oe,re,hi,he),he.w()||he.assign(le)):he.assign(le):ge.w()?(bh(oe,re,hi,he),he.w()||he.assign(le)):he.assign(le),this.K===90||this.K===270?(te=Math.round((we.x-Ae.x)/this.kc),oe=we.x,re=Math.round((he.x-le.x)/this.kc),le=he.x):(te=Math.round((we.y-Ae.y)/this.kc),oe=we.y,re=Math.round((he.y-le.y)/this.kc),le=he.y),je.free(we),je.free(he),E.portFromColOffset=te,E.portFromPos=oe,E.portToColOffset=re,E.portToPos=le}else E.portFromColOffset=0,E.portFromPos=0,E.portToColOffset=0,E.portToPos=0;if(we=b.layer,he=z.layer,ge=0,Ne=E.link,Ne!==null){var $e=Ne.fromPort,Ke=Ne.toPort;if($e!==null&&Ke!==null){var at=Ne.fromNode;if(Se=Ne.toNode,at!==null&&Se!==null){var dt=Mm(this,!0),ft=Mm(this,!1),wt=this.setsPortSpots?dt:Ne.computeSpot(!0,$e);Ae=this.setsPortSpots?ft:Ne.computeSpot(!1,Ke);var Gt=Ne.isOrthogonal;wt.$c()&&wt.Hf(ft)&&Ae.$c()&&Ae.Hf(dt)?ge=0:(dt=Ne.getLinkPoint(at,$e,wt,!0,Gt,Se,Ke,je.alloc()),ft=Ne.getLinkDirection(at,$e,dt,wt,!0,Gt,Se,Ke),je.free(dt),wt.ys()||ft!==$S(this,E,!0)?this.setsPortSpots&&at!==null&&at.ports.count===1&&E.rev&&(ge+=1):ge+=1,wt=Ne.getLinkPoint(Se,Ke,Ae,!1,Gt,at,$e,je.alloc()),Ne=Ne.getLinkDirection(Se,Ke,wt,Ae,!1,Gt,at,$e),je.free(wt),Ae.ys()||Ne!==$S(this,E,!1)?this.setsPortSpots&&Se!==null&&Se.ports.count===1&&E.rev&&(ge+=2):ge+=2)}}}if(Se=ge,ge=Se===1||Se===3,(Se=Se===2||Se===3)&&(Ae=a.createVertex(),Ae.node=null,Ae.Dj=1,Ae.layer=we,Ae.near=b,a.dh(Ae),b=a.Zj(b,Ae,E.link),b.valid=!1,b.rev=E.rev,b.portFromColOffset=te,b.portToColOffset=0,b.portFromPos=oe,b.portToPos=0,b=Ae),Ne=1,ge&&Ne--,we-he>Ne&&0<we){for(E.valid=!1,Ae=a.createVertex(),Ae.node=null,Ae.Dj=2,Ae.layer=we-1,a.dh(Ae),b=a.Zj(b,Ae,E.link),b.valid=!0,b.rev=E.rev,b.portFromColOffset=Se?0:te,b.portToColOffset=0,b.portFromPos=Se?0:oe,b.portToPos=0,b=Ae,we--;we-he>Ne&&0<we;)Ae=a.createVertex(),Ae.node=null,Ae.Dj=3,Ae.layer=we-1,a.dh(Ae),b=a.Zj(b,Ae,E.link),b.valid=!0,b.rev=E.rev,b.portFromColOffset=0,b.portToColOffset=0,b.portFromPos=0,b.portToPos=0,b=Ae,we--;b=a.Zj(Ae,z,E.link),b.valid=!ge,ge&&(Ae.near=z),b.rev=E.rev,b.portFromColOffset=0,b.portToColOffset=re,b.portFromPos=0,b.portToPos=le}else E.valid=!0}}for(a=this.tc=[],y=0;y<=this.Ia;y++)a[y]=0;for(y=this.network.vertexes.iterator;y.next();)y.value.index=-1;for(this.initializeIndices(),this.Iq=-1,x=this.Md=this.Hn=0;x<=this.Ia;x++)a[x]>a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]<a[this.Hn]&&(this.Hn=x);for(this.fl=[],x=0;x<a.length;x++)this.fl[x]=[];for(y.reset();y.next();)a=y.value,this.fl[a.layer][a.index]=a;for(this.Ra=-1,a=0;a<=this.Ia;a++){for(y=vd(this,a),x=0,E=this.tc[a],z=0;z<E;z++)b=y[z],x+=this.nodeMinColumnSpace(b,!0),b.column=x,x+=1,x+=this.nodeMinColumnSpace(b,!1);this.Ra=Math.max(this.Ra,x-1),yd(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},Po.prototype.linkMinLength=function(){return 1};function my(a){var y=a.fromVertex.node||a.fromVertex.data;return a=a.toVertex.node||a.toVertex.data,y===null&&a===null?8:y===null||a===null?4:1}Po.prototype.nodeMinLayerSpace=function(a,y){return a.node===null&&a.data===null?0:this.K===90||this.K===270?y?a.focus.y+10:a.bounds.height-a.focus.y+10:y?a.focus.x+10:a.bounds.width-a.focus.x+10},Po.prototype.nodeMinColumnSpace=function(a,y){if(a.node===null&&a.data===null)return 0;var x=y?a.ev:a.dv;return x!==null?x:(x=this.K,x===90||x===270?y?a.ev=a.focus.x/this.kc+1|0:a.dv=(a.bounds.width-a.focus.x)/this.kc+1|0:y?a.ev=a.focus.y/this.kc+1|0:a.dv=(a.bounds.height-a.focus.y)/this.kc+1|0)};function zs(a){a.kj===null&&(a.kj=[]);for(var y=0,x=a.network.vertexes.iterator;x.next();){var E=x.value;a.kj[y]=E.layer,y++,a.kj[y]=E.column,y++,a.kj[y]=E.index,y++}return a.kj}function Fl(a,y){var x=0;for(a=a.network.vertexes.iterator;a.next();){var E=a.value;E.layer=y[x],x++,E.column=y[x],x++,E.index=y[x],x++}}function _S(a,y,x){var E=vd(a,y),b=a.tc[y];(a.Jn===null||a.Jn.length<b*b)&&(a.Jn=[]);for(var z=a.Jn,te=0;te<b;te++){var re=0,oe=E[te],le=oe.near;if(le!==null&&le.layer===oe.layer)if(oe=le.index,oe>te)for(var he=te+1;he<oe;he++){var ge=E[he];ge.near===le&&ge.Dj===le.Dj||re++}else for(he=te-1;he>oe;he--)ge=E[he],ge.near===le&&ge.Dj===le.Dj||re++;var Se;if(0<=x)for(oe=E[te].sourceEdgesArrayAccess,le=0;le<oe.length;le++){var we=oe[le];if(we.valid&&we.fromVertex.layer!==y)for(ge=we.fromVertex.index,he=we.portToPos,we=we.portFromPos,Se=le+1;Se<oe.length;Se++){var Ae=oe[Se];if(Ae.valid&&Ae.fromVertex.layer!==y){var Ne=Ae.fromVertex.index,$e=Ae.portToPos;Ae=Ae.portFromPos,he<$e&&(ge>Ne||ge===Ne&&we>Ae)&&re++,$e<he&&(Ne>ge||Ne===ge&&Ae>we)&&re++}}}if(0>=x){for(oe=E[te].destinationEdgesArrayAccess,le=0;le<oe.length;le++)if(we=oe[le],we.valid&&we.toVertex.layer!==y)for(ge=we.toVertex.index,he=we.portToPos,we=we.portFromPos,Se=le+1;Se<oe.length;Se++)Ae=oe[Se],Ae.valid&&Ae.toVertex.layer!==y&&(Ne=Ae.toVertex.index,$e=Ae.portToPos,Ae=Ae.portFromPos,we<Ae&&(ge>Ne||ge===Ne&&he>$e)&&re++,Ae<we&&(Ne>ge||Ne===ge&&$e>he)&&re++)}for(z[te*b+te]=re,oe=te+1;oe<b;oe++){var Ke=0,at=0;if(0<=x){re=E[te].sourceEdgesArrayAccess;var dt=E[oe].sourceEdgesArrayAccess;for(le=0;le<re.length;le++)if(we=re[le],we.valid&&we.fromVertex.layer!==y)for(ge=we.fromVertex.index,we=we.portFromPos,Se=0;Se<dt.length;Se++)Ae=dt[Se],Ae.valid&&Ae.fromVertex.layer!==y&&(Ne=Ae.fromVertex.index,Ae=Ae.portFromPos,(ge<Ne||ge===Ne&&we<Ae)&&at++,(Ne<ge||Ne===ge&&Ae<we)&&Ke++)}if(0>=x){for(re=E[te].destinationEdgesArrayAccess,dt=E[oe].destinationEdgesArrayAccess,le=0;le<re.length;le++)if(we=re[le],we.valid&&we.toVertex.layer!==y)for(ge=we.toVertex.index,he=we.portToPos,Se=0;Se<dt.length;Se++)Ae=dt[Se],Ae.valid&&Ae.toVertex.layer!==y&&(Ne=Ae.toVertex.index,$e=Ae.portToPos,(ge<Ne||ge===Ne&&he<$e)&&at++,(Ne<ge||Ne===ge&&$e<he)&&Ke++)}z[te*b+oe]=Ke,z[oe*b+te]=at}}return yd(a,y,E),z}Po.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=_S(this,y,1),E=this.tc[y],b=0;b<E;b++)for(var z=b;z<E;z++)a+=x[b*E+z];return a};function Em(a){for(var y=0,x=0;x<=a.Ia;x++){for(var E=a,b=x,z=vd(E,b),te=E.tc[b],re=0,oe=0;oe<te;oe++){var le=z[oe].destinationEdgesArrayAccess;if(le!==null)for(var he=0;he<le.length;he++){var ge=le[he];if(ge.valid&&ge.toVertex.layer!==b){var Se=ge.fromVertex.column+ge.portFromColOffset,we=ge.toVertex.column+ge.portToColOffset;re+=(Math.abs(Se-we)+1)*my(ge)}}}yd(E,b,z),y+=re}return y}Po.prototype.normalize=function(){var a=1/0;this.Ra=-1;for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;a=Math.min(a,x.column-this.nodeMinColumnSpace(x,!0)),this.Ra=Math.max(this.Ra,x.column+this.nodeMinColumnSpace(x,!1))}for(y.reset();y.next();)y.value.column-=a;this.Ra-=a};function vy(a,y,x){for(var E=vd(a,y),b=a.tc[y],z=[],te=0;te<b;te++){var re=E[te],oe=null;0>=x&&(oe=re.sourceEdgesArrayAccess);var le=null;0<=x&&(le=re.destinationEdgesArrayAccess);var he=0,ge=0,Se=re.near;if(Se!==null&&Se.layer===re.layer&&(he+=Se.column-1,ge++),oe!==null)for(Se=0;Se<oe.length;Se++){re=oe[Se];var we=re.fromVertex;re.valid&&!re.rev&&we.layer!==y&&(he+=we.column,ge++)}if(le!==null)for(oe=0;oe<le.length;oe++)re=le[oe],Se=re.toVertex,re.valid&&!re.rev&&Se.layer!==y&&(he+=Se.column,ge++);z[te]=ge===0?-1:he/ge}return yd(a,y,E),z}function YS(a,y,x){for(var E=vd(a,y),b=a.tc[y],z=[],te=0;te<b;te++){var re=E[te],oe=null;0>=x&&(oe=re.sourceEdgesArrayAccess);var le=null;0<=x&&(le=re.destinationEdgesArrayAccess);var he=0,ge=[],Se=re.near;if(Se!==null&&Se.layer===re.layer&&(ge[he]=Se.column-1,he++),re=void 0,oe!==null)for(Se=0;Se<oe.length;Se++){re=oe[Se];var we=re.fromVertex;re.valid&&!re.rev&&we.layer!==y&&(ge[he]=we.column+re.portFromColOffset,he++)}if(le!==null)for(oe=0;oe<le.length;oe++)re=le[oe],Se=re.toVertex,re.valid&&!re.rev&&Se.layer!==y&&(ge[he]=Se.column+re.portToColOffset,he++);he===0?z[te]=-1:(ge.sort(function(Ae,Ne){return Ae-Ne}),le=he>>1,z[te]=he&1?ge[le]:ge[le-1]+ge[le]>>1)}return yd(a,y,E),z}function Fp(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var te=y.destinationEdges;te.next();){var re=te.value,oe=re.toVertex,le=y.layer-oe.layer;re=a.linkMinLength(re),le===re&&Fp(a,oe,x,E,b,z)}if(z)for(te=y.sourceEdges;te.next();)re=te.value,oe=re.fromVertex,le=oe.layer-y.layer,re=a.linkMinLength(re),le===re&&Fp(a,oe,x,E,b,z)}}function yy(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var te=y.destinationEdges;te.next();)yy(a,te.value.toVertex,x,E,b,z);if(z)for(y=y.sourceEdges;y.next();)yy(a,y.value.fromVertex,x,E,b,z)}}Po.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Py:a=this.network;var y=0,x=a.vertexes.count-1,E=[];E.length=x+1;for(var b=a.vertexes.iterator;b.next();)b.value.valid=!0;for(;Yx(a)!==null;){for(b=KS(a);b!==null;)E[x]=b,x--,b.valid=!1,b=KS(a);for(b=US(a);b!==null;)E[y]=b,y++,b.valid=!1,b=US(a);b=null;for(var z=0,te=this.network.vertexes.iterator;te.next();){var re=te.value;if(re.valid){for(var oe=0,le=re.destinationEdges;le.next();)le.value.toVertex.valid&&oe++;le=0;for(var he=re.sourceEdges;he.next();)he.value.fromVertex.valid&&le++;(b===null||z<oe-le)&&(b=re,z=oe-le)}}b!==null&&(E[y]=b,y++,b.valid=!1)}for(y=0;y<a.vertexes.count;y++)E[y].index=y;for(E=a.edges.iterator;E.next();)y=E.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case Lm:for(E=this.network.vertexes.iterator;E.next();)a=E.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,E.reset();E.next();)y=E.value,y.sourceEdges.count===0&&Sy(this,y);for(E.reset();E.next();)y=E.value,y.Ll===-1&&Sy(this,y);for(a.reset();a.next();)E=a.value,E.forest||(y=E.fromVertex,x=y.finish,b=E.toVertex,z=b.finish,b.Ll<y.Ll&&x<z&&(this.network.gm(E),E.rev=!0));break;case Mp:for(a=this.network,y=a.vertexes.iterator,E=1/0;y.next();)E=Math.min(E,y.value.layer);if(1/0>E){if(0>E)for(y.reset();y.next();)y.value.layer-=E;for(E=[],y.reset();y.next();)x=y.value,b=E[x.layer],b===void 0?E[x.layer]=[x]:b.push(x);for(x=y=0;x<E.length;x++)if(b=E[x],!b||b.length===0)y++;else if(0<x)for(z=0;z<b.length;z++)b[z].layer-=y;for(E=a.edges.iterator;E.next();)y=E.value,y.fromVertex.layer<y.toVertex.layer&&(a.gm(y),y.rev=!0)}}};function Yx(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function KS(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,E=y.destinationEdges;E.next();)if(E.value.toVertex.valid){x=!1;break}if(x)return y}}return null}function US(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,E=y.sourceEdges;E.next();)if(E.value.fromVertex.valid){x=!1;break}if(x)return y}}return null}function Sy(a,y){y.Ll=a.Kn,a.Kn++;for(var x=y.destinationEdges;x.next();){var E=x.value,b=E.toVertex;b.Ll===-1&&(E.forest=!0,Sy(a,b))}y.finish=a.Kn,a.Kn++}Po.prototype.assignLayers=function(){switch(this.Zk){case wy:XS(this);break;case Cy:for(var a,y=this.network.vertexes.iterator;y.next();)a=JS(this,y.value),this.Ia=Math.max(a,this.Ia);for(y.reset();y.next();)a=y.value,a.layer=this.Ia-a.layer;break;default:case bm:for(XS(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&qS(this,a);for(a=1/0,y.reset();y.next();)a=Math.min(a,y.value.layer);for(this.Ia=-1,y.reset();y.next();){var x=y.value;x.layer-=a,this.Ia=Math.max(this.Ia,x.layer)}}};function XS(a){for(var y=a.network.vertexes.iterator;y.next();){var x=QS(a,y.value);a.Ia=Math.max(x,a.Ia)}}function QS(a,y){var x=0;if(y.layer===-1){for(var E=y.destinationEdges;E.next();){var b=E.value,z=b.toVertex;b=a.linkMinLength(b),x=Math.max(x,QS(a,z)+b)}y.layer=x}else x=y.layer;return x}function JS(a,y){var x=0;if(y.layer===-1){for(var E=y.sourceEdges;E.next();){var b=E.value,z=b.fromVertex;b=a.linkMinLength(b),x=Math.max(x,JS(a,z)+b)}y.layer=x}else x=y.layer;return x}function qS(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)qS(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var E=y.sourceEdgesArrayAccess,b=E.length,z=0;z<b;z++){var te=E[z],re=te.fromVertex,oe=te.toVertex;te=a.linkMinLength(te),re.layer-oe.layer>te&&Fp(a,re,0,-1,!0,!1)}for(Fp(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,E=1/0,re=0,oe=null,te=a.network.vertexes.iterator;te.next();){var le=te.value;if(le.component===1){var he=0,ge=!1,Se=le.sourceEdgesArrayAccess;b=Se.length;for(var we=0;we<b;we++){var Ae=Se[we],Ne=Ae.fromVertex;he+=1,Ne.component!==1&&(z+=1,Ne=Ne.layer-le.layer,Ae=a.linkMinLength(Ae),E=Math.min(E,Ne-Ae))}for(Se=le.destinationEdgesArrayAccess,b=Se.length,we=0;we<b;we++)Ae=Se[we].toVertex,--he,Ae.component!==1?--z:ge=!0;(oe===null||he<re)&&!ge&&(oe=le,re=he)}}if(0<z){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer+=E);y.component=0}else oe.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(Fp(a,y,1,-1,!0,!1);y.component!==0;){for(E=0,b=1/0,z=0,re=null,oe=a.network.vertexes.iterator;oe.next();)if(te=oe.value,te.component===1){for(le=0,he=!1,Se=te.sourceEdgesArrayAccess,ge=Se.length,we=0;we<ge;we++)Ae=Se[we].fromVertex,le+=1,Ae.component!==1?E+=1:he=!0;for(Se=te.destinationEdgesArrayAccess,ge=Se.length,we=0;we<ge;we++)Ae=Se[we],Ne=Ae.toVertex,--le,Ne.component!==1&&(--E,Ne=te.layer-Ne.layer,Ae=a.linkMinLength(Ae),b=Math.min(b,Ne-Ae));(re===null||le>z)&&!he&&(re=te,z=le)}if(0>E){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer-=b);y.component=0}else re.component=0}}}function $S(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}Po.prototype.initializeIndices=function(){switch(this.Qk){default:case Ay:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case Dm:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&ex(this,x);break;case Ey:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&tx(this,x)}};function ex(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var E=0;E<y.length-1;E++){var b=y[E],z=y[E+1];b.portFromColOffset>z.portFromColOffset&&(x=!0,y[E]=z,y[E+1]=b)}}for(x=0;x<y.length;x++)E=y[x],E.valid&&(E=E.toVertex,E.index===-1&&ex(a,E))}function tx(a,y){var x=y.layer;y.index=a.tc[x],a.tc[x]++,y=y.sourceEdgesArrayAccess;for(var E=!0;E;)for(E=!1,x=0;x<y.length-1;x++){var b=y[x],z=y[x+1];b.portToColOffset>z.portToColOffset&&(E=!0,y[x]=z,y[x+1]=b)}for(x=0;x<y.length;x++)E=y[x],E.valid&&(E=E.fromVertex,E.index===-1&&tx(a,E))}Po.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=zs(this),x,E;for(x=0;x<this.bj;x++){for(E=0;E<=this.Ia;E++)Am(this,E,1),jl(this,E,1);var b=this.countCrossings();for(b<a&&(a=b,y=zs(this)),E=this.Ia;0<=E;E--)Am(this,E,-1),jl(this,E,-1);b=this.countCrossings(),b<a&&(a=b,y=zs(this))}for(Fl(this,y),x=0;x<this.bj;x++){for(E=0;E<=this.Ia;E++)Am(this,E,0),jl(this,E,0);for(b=this.countCrossings(),b<a&&(a=b,y=zs(this)),E=this.Ia;0<=E;E--)Am(this,E,0),jl(this,E,0);b=this.countCrossings(),b<a&&(a=b,y=zs(this))}Fl(this,y);var z,te,re;switch(this.rk){case Fy:break;case My:for(re=a+1;(E=this.countCrossings())<re;)for(re=E,x=this.Ia;0<=x;x--)for(te=0;te<=x;te++){for(z=!0;z;)for(z=!1,E=x;E>=te;E--)z=jl(this,E,-1)||z;for(b=this.countCrossings(),b>=a?Fl(this,y):(a=b,y=zs(this)),z=!0;z;)for(z=!1,E=x;E>=te;E--)z=jl(this,E,1)||z;for(b=this.countCrossings(),b>=a?Fl(this,y):(a=b,y=zs(this)),z=!0;z;)for(z=!1,E=te;E<=x;E++)z=jl(this,E,1)||z;for(b>=a?Fl(this,y):(a=b,y=zs(this)),z=!0;z;)for(z=!1,E=te;E<=x;E++)z=jl(this,E,-1)||z;for(b>=a?Fl(this,y):(a=b,y=zs(this)),z=!0;z;)for(z=!1,E=x;E>=te;E--)z=jl(this,E,0)||z;for(b>=a?Fl(this,y):(a=b,y=zs(this)),z=!0;z;)for(z=!1,E=te;E<=x;E++)z=jl(this,E,0)||z;b>=a?Fl(this,y):(a=b,y=zs(this))}break;default:case km:for(x=this.Ia,te=0,re=a+1;(E=this.countCrossings())<re;){for(re=E,z=!0;z;)for(z=!1,E=x;E>=te;E--)z=jl(this,E,-1)||z;for(b=this.countCrossings(),b>=a?Fl(this,y):(a=b,y=zs(this)),z=!0;z;)for(z=!1,E=x;E>=te;E--)z=jl(this,E,1)||z;for(b=this.countCrossings(),b>=a?Fl(this,y):(a=b,y=zs(this)),z=!0;z;)for(z=!1,E=te;E<=x;E++)z=jl(this,E,1)||z;for(b>=a?Fl(this,y):(a=b,y=zs(this)),z=!0;z;)for(z=!1,E=te;E<=x;E++)z=jl(this,E,-1)||z;for(b>=a?Fl(this,y):(a=b,y=zs(this)),z=!0;z;)for(z=!1,E=x;E>=te;E--)z=jl(this,E,0)||z;for(b>=a?Fl(this,y):(a=b,y=zs(this)),z=!0;z;)for(z=!1,E=te;E<=x;E++)z=jl(this,E,0)||z;b>=a?Fl(this,y):(a=b,y=zs(this))}}Fl(this,y)};function Am(a,y,x){var E=vd(a,y),b=a.tc[y],z=YS(a,y,x),te=vy(a,y,x);for(x=0;x<b;x++)te[x]===-1&&(te[x]=E[x].column),z[x]===-1&&(z[x]=E[x].column);for(var re=!0,oe;re;)for(re=!1,x=0;x<b-1;x++)(z[x+1]<z[x]||z[x+1]===z[x]&&te[x+1]<te[x])&&(re=!0,oe=z[x],z[x]=z[x+1],z[x+1]=oe,oe=te[x],te[x]=te[x+1],te[x+1]=oe,oe=E[x],E[x]=E[x+1],E[x+1]=oe);for(x=z=0;x<b;x++)oe=E[x],oe.index=x,z+=a.nodeMinColumnSpace(oe,!0),oe.column=z,z+=1,z+=a.nodeMinColumnSpace(oe,!1);yd(a,y,E)}function jl(a,y,x){var E=vd(a,y),b=a.tc[y];x=_S(a,y,x);var z,te=[];for(z=0;z<b;z++)te[z]=-1;var re=[];for(z=0;z<b;z++)re[z]=-1;for(var oe=!1,le=!0;le;)for(le=!1,z=0;z<b-1;z++){var he=x[E[z].index*b+E[z+1].index],ge=x[E[z+1].index*b+E[z].index],Se=0,we=0,Ae=E[z].column,Ne=E[z+1].column,$e=a.nodeMinColumnSpace(E[z],!0),Ke=a.nodeMinColumnSpace(E[z],!1),at=a.nodeMinColumnSpace(E[z+1],!0),dt=a.nodeMinColumnSpace(E[z+1],!1);$e=Ae-$e+at,Ke=Ne-Ke+dt;var ft=E[z].sourceEdges.iterator;for(ft.reset();ft.next();)if(at=ft.value,dt=at.fromVertex,at.valid&&dt.layer===y){for(at=0;E[at]!==dt;)at++;at<z&&(Se+=2*(z-at),we+=2*(z+1-at)),at===z+1&&(Se+=1),at>z+1&&(Se+=4*(at-z),we+=4*(at-(z+1)))}for(ft=E[z].destinationEdges.iterator,ft.reset();ft.next();)if(at=ft.value,dt=at.toVertex,at.valid&&dt.layer===y){for(at=0;E[at]!==dt;)at++;at===z+1&&(we+=1)}for(ft=E[z+1].sourceEdges.iterator,ft.reset();ft.next();)if(at=ft.value,dt=at.fromVertex,at.valid&&dt.layer===y){for(at=0;E[at]!==dt;)at++;at<z&&(Se+=2*(z+1-at),we+=2*(z-at)),at===z&&(we+=1),at>z+1&&(Se+=4*(at-(z+1)),we+=4*(at-z))}for(ft=E[z+1].destinationEdges.iterator,ft.reset();ft.next();)if(at=ft.value,dt=at.toVertex,at.valid&&dt.layer===y){for(at=0;E[at]!==dt;)at++;at===z&&(Se+=1)}at=dt=0,ft=te[E[z].index];var wt=re[E[z].index],Gt=te[E[z+1].index],oi=re[E[z+1].index];ft!==-1&&(dt+=Math.abs(ft-Ae),at+=Math.abs(ft-Ke)),wt!==-1&&(dt+=Math.abs(wt-Ae),at+=Math.abs(wt-Ke)),Gt!==-1&&(dt+=Math.abs(Gt-Ne),at+=Math.abs(Gt-$e)),oi!==-1&&(dt+=Math.abs(oi-Ne),at+=Math.abs(oi-$e)),(we<Se-.5||we===Se&&ge<he-.5||we===Se&&ge===he&&at<dt-.5)&&(le=oe=!0,E[z].column=Ke,E[z+1].column=$e,he=E[z],E[z]=E[z+1],E[z+1]=he)}for(z=0;z<b;z++)E[z].index=z;return yd(a,y,E),oe}Po.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&eP)!==0;if(1e3<this.network.edges.count&&y&&(a=!1),a){var x=[];for(y=0;y<=this.Ia;y++)x[y]=0;for(var E,b=this.network.vertexes.iterator;b.next();){var z=b.value;y=z.layer,E=z.column,z=this.nodeMinColumnSpace(z,!1),x[y]=Math.max(x[y],E+z)}for(b.reset();b.next();)z=b.value,y=z.layer,E=z.column,z.column=(8*(this.Ra-x[y])>>1)+8*E;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Qf(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Qf(this,y,-1)||x;x=Qf(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)xy(this,y,1);for(y=this.Md-1;0<=y;y--)xy(this,y,-1);xy(this,this.Md,0)}if(a&&(nx(this,-1),nx(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Qf(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Qf(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Qf(this,y,0)||x}}else Qx(this)};function Qf(a,y,x){for(var E=!1;Kx(a,y,x);)E=!0;return E}function Kx(a,y,x){var E,b=vd(a,y),z=a.tc[y],te=vy(a,y,-1);if(0<x)for(E=0;E<z;E++)te[E]=-1;var re=vy(a,y,1);if(0>x)for(E=0;E<z;E++)re[E]=-1;for(var oe=!1,le=!0;le;)for(le=!1,E=0;E<z;E++){var he=b[E].column,ge=a.nodeMinColumnSpace(b[E],!0),Se=a.nodeMinColumnSpace(b[E],!1),we=0;0>E-1||he-b[E-1].column-1>ge+a.nodeMinColumnSpace(b[E-1],!1)?we=he-1:we=he,ge=E+1>=z||b[E+1].column-he-1>Se+a.nodeMinColumnSpace(b[E+1],!0)?he+1:he;var Ae=Se=0,Ne=0;if(0>=x)for(var $e=b[E].sourceEdges.iterator;$e.next();){var Ke=$e.value,at=Ke.fromVertex;if(Ke.valid&&at.layer!==y){var dt=my(Ke),ft=Ke.portFromColOffset;Ke=Ke.portToColOffset,at=at.column,Se+=(Math.abs(he+Ke-(at+ft))+1)*dt,Ae+=(Math.abs(we+Ke-(at+ft))+1)*dt,Ne+=(Math.abs(ge+Ke-(at+ft))+1)*dt}}if(0<=x)for($e=b[E].destinationEdges.iterator;$e.next();)Ke=$e.value,at=Ke.toVertex,Ke.valid&&at.layer!==y&&(dt=my(Ke),ft=Ke.portFromColOffset,Ke=Ke.portToColOffset,at=at.column,Se+=(Math.abs(he+ft-(at+Ke))+1)*dt,Ae+=(Math.abs(we+ft-(at+Ke))+1)*dt,Ne+=(Math.abs(ge+ft-(at+Ke))+1)*dt);Ke=ft=dt=0,$e=te[b[E].index],at=re[b[E].index],$e!==-1&&(dt+=Math.abs($e-he),ft+=Math.abs($e-we),Ke+=Math.abs($e-ge)),at!==-1&&(dt+=Math.abs(at-he),ft+=Math.abs(at-we),Ke+=Math.abs(at-ge)),Ae<Se||Ae===Se&&ft<dt?(le=oe=!0,b[E].column=we):(Ne<Se||Ne===Se&&Ke<dt)&&(le=oe=!0,b[E].column=ge)}return yd(a,y,b),a.normalize(),oe}function xy(a,y,x){var E=vd(a,y),b=a.tc[y],z=YS(a,y,x),te=[];for(x=0;x<b;x++)te[x]=z[x];for(z=!0;z;)for(z=!1,x=0;x<b;x++){var re=E[x].column,oe=a.nodeMinColumnSpace(E[x],!0),le=a.nodeMinColumnSpace(E[x],!1),he=0;if(te[x]===-1)if(x===0&&x===b-1)he=re;else if(x===0){var ge=E[x+1].column;ge-re===le+a.nodeMinColumnSpace(E[x+1],!0)?he=re-1:he=re}else x===b-1?(ge=E[x-1].column,he=re-ge===oe+a.nodeMinColumnSpace(E[x-1],!1)?re+1:re):(ge=E[x-1].column,oe=ge+a.nodeMinColumnSpace(E[x-1],!1)+oe+1,ge=E[x+1].column,le=ge-a.nodeMinColumnSpace(E[x+1],!0)-le-1,he=(oe+le)/2|0);else x===0&&x===b-1?he=te[x]:x===0?(ge=E[x+1].column,le=ge-a.nodeMinColumnSpace(E[x+1],!0)-le-1,he=Math.min(te[x],le)):x===b-1?(ge=E[x-1].column,oe=ge+a.nodeMinColumnSpace(E[x-1],!1)+oe+1,he=Math.max(te[x],oe)):(ge=E[x-1].column,oe=ge+a.nodeMinColumnSpace(E[x-1],!1)+oe+1,ge=E[x+1].column,le=ge-a.nodeMinColumnSpace(E[x+1],!0)-le-1,oe<te[x]&&te[x]<le?he=te[x]:oe>=te[x]?he=oe:le<=te[x]&&(he=le));he!==re&&(z=!0,E[x].column=he)}yd(a,y,E),a.normalize()}function Ux(a,y){for(var x=!0,E=a.network.vertexes.iterator;E.next();){var b=E.value,z=a.nodeMinColumnSpace(b,!0),te=a.nodeMinColumnSpace(b,!1);if(b.column-z<=y&&b.column+te>=y){x=!1;break}}if(a=!1,x)for(E.reset();E.next();)x=E.value,x.column>y&&(--x.column,a=!0);return a}function Xx(a,y){var x=y+1,E,b=[],z=[];for(E=0;E<=a.Ia;E++)b[E]=!1,z[E]=!1;for(var te=a.network.vertexes.iterator;te.next();){E=te.value;var re=E.column-a.nodeMinColumnSpace(E,!0),oe=E.column+a.nodeMinColumnSpace(E,!1);re<=y&&oe>=y&&(b[E.layer]=!0),re<=x&&oe>=x&&(z[E.layer]=!0)}for(re=!0,x=!1,E=0;E<=a.Ia;E++)re=re&&!(b[E]&&z[E]);if(re)for(te.reset();te.next();)a=te.value,a.column>y&&(--a.column,x=!0);return x}function nx(a,y){for(var x=0;x<=a.Ra;x++)for(;Ux(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;Xx(a,x););a.normalize();var E;if(0<y)for(x=0;x<=a.Ra;x++){var b=zs(a),z=Em(a);for(E=z+1;z<E;){E=z,ix(a,x,1);var te=Em(a);te>z?Fl(a,b):te<z&&(z=te,b=zs(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(b=zs(a),z=Em(a),E=z+1;z<E;)E=z,ix(a,x,-1),te=Em(a),te>z?Fl(a,b):te<z&&(z=te,b=zs(a));a.normalize()}function ix(a,y,x){a.le=0;for(var E=a.network.vertexes.iterator;E.next();)E.value.component=-1;if(0<x)for(E.reset();E.next();){var b=E.value;b.column-a.nodeMinColumnSpace(b,!0)<=y&&(b.component=a.le)}if(0>x)for(E.reset();E.next();)b=E.value,b.column+a.nodeMinColumnSpace(b,!1)>=y&&(b.component=a.le);for(a.le++,E.reset();E.next();)y=E.value,y.component===-1&&(yy(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;z<a.le*a.le;z++)y[z]=!1;for(b=[],z=0;z<(a.Ia+1)*(a.Ra+1);z++)b[z]=-1;for(E.reset();E.next();){z=E.value;for(var te=z.layer,re=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),oe=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));re<=oe;re++)b[te*(a.Ra+1)+re]=z.component}for(z=0;z<=a.Ia;z++){if(0<x)for(te=0;te<a.Ra;te++)b[z*(a.Ra+1)+te]!==-1&&b[z*(a.Ra+1)+te+1]!==-1&&b[z*(a.Ra+1)+te]!==b[z*(a.Ra+1)+te+1]&&(y[b[z*(a.Ra+1)+te]*a.le+b[z*(a.Ra+1)+te+1]]=!0);if(0>x)for(te=a.Ra;0<te;te--)b[z*(a.Ra+1)+te]!==-1&&b[z*(a.Ra+1)+te-1]!==-1&&b[z*(a.Ra+1)+te]!==b[z*(a.Ra+1)+te-1]&&(y[b[z*(a.Ra+1)+te]*a.le+b[z*(a.Ra+1)+te-1]]=!0)}for(b=[],z=0;z<a.le;z++)b[z]=!0;for(te=[],te.push(0);te.length!==0;)if(oe=te[te.length-1],te.pop(),b[oe])for(b[oe]=!1,z=0;z<a.le;z++)y[oe*a.le+z]&&te.splice(0,0,z);if(0<x)for(E.reset();E.next();)a=E.value,b[a.component]&&--a.column;if(0>x)for(E.reset();E.next();)x=E.value,b[x.component]&&(x.column+=1)}function Qx(a){for(var y=Bn(),x=a.fl.length,E=0;E<=x;E++)y[E]=[];for(E=a.network.vertexes.iterator;E.next();){var b=E.value;y[x-b.layer][b.index]=b}x=new Fn,Jx(y,x);var z=null,te=null,re=null,oe=null,le=(a.ve&1)!==0,he=(a.ve&2)!==0,ge=(a.ve&4)!==0,Se=(a.ve&8)!==0;for(le&&(a.verticalAlignment(y,x,!0),z=Fm(a,y,!0,!1)),y.reverse(),ge&&(a.verticalAlignment(y,x,!1),re=Fm(a,y,!1,!1)),E=Xn(y),b=E.next();!b.done;b=E.next())b.value.reverse();Se&&(a.verticalAlignment(y,x,!1),oe=Fm(a,y,!1,!0)),y.reverse(),he&&(a.verticalAlignment(y,x,!0),te=Fm(a,y,!0,!0)),Ot(y),a.u(z,te,re,oe),a.network.vertexes.each(function(we){var Ae=Bn();le&&Ae.push(z.get(we)),he&&Ae.push(te.get(we)),ge&&Ae.push(re.get(we)),Se&&Ae.push(oe.get(we)),Ae.sort(function($e,Ke){return $e-Ke});var Ne=Ae.length;Ne=(Ae[Math.floor((Ne-1)/2)]+Ae[Math.ceil((Ne-1)/2)])/2,Ot(Ae),we.zc=Ne})}function Jx(a,y){for(var x=a.length,E=1;E<x-1;E++)for(var b=0,z=0,te=a[E],re=a[E+1],oe=0;z<re.length;oe++){var le=re[oe];e:{if(le.node===null){var he=Ly(le);if(0<he.length){he=he[0].node===null;break e}}he=!1}var ge=he;if(oe===re.length-1||ge){for(he=te.length-1,ge&&(he=Ly(le)[0].index);z<=oe;){if(le=re[z],!le.bo){ge=[];for(var Se=Xn(le.sourceEdgesArrayAccess),we=Se.next();!we.done;we=Se.next())we=we.value,we.valid&&ge.push(we);le.bo=ge}for(le=Xn(le.bo),ge=le.next();!ge.done;ge=le.next())ge=ge.value,Se=ge.fromVertex.index,(Se<b||Se>he)&&y.add(ge);z++}b=he}}}Po.prototype.verticalAlignment=function(a,y,x){qx(a),a=Xn(a);for(var E=a.next();!E.done;E=a.next()){var b=-1;E=Xn(E.value);for(var z=E.next();!z.done;z=E.next()){z=z.value;var te=x?Ly(z):tP(z),re=te.length;if(0<re){te.sort(function(ge,Se){return ge.vi-Se.vi});var oe=(re-1)/2;for(re=Math.floor(oe),oe=Math.ceil(oe);re<=oe;re++)if(z.align===z){var le=te[re],he=void 0;he=x?Bm(le,z):Bm(z,le),!y.contains(he)&&b<le.vi&&(le.align=z,z.root=le.root,z.align=le.root,b=le.vi)}}}}};function qx(a){for(var y=0;y<a.length;y++)for(var x=a[y],E=0;E<x.length;E++){var b=x[E];b.root=b,b.align=b,b.Tz=y,b.vi=E}}function Fm(a,y,x,E){for(var b=a.K===90||a.K===270,z=Xn(y),te=z.next();!te.done;te=z.next()){var re=Xn(te.value);for(te=re.next();!te.done;te=re.next())te=te.value,te.sd=te,te.shift=1/0,te.zc=NaN,te.qg=0}for(te=a.K===90||a.K===270,z=Xn(y),re=z.next();!re.done;re=z.next()){re=Xn(re.value);for(var oe=re.next();!oe.done;oe=re.next())if(oe=oe.value,oe.root===oe){for(var le=0,he=oe;he.align!==oe;){var ge=he.align,Se=te?he.width:he.height,we=te?ge.width:ge.height;if(x){var Ae=Bm(he,ge),Ne=Ae.portFromPos,$e=Ae.portToPos;Ae.link!==null&&(he.node&&he.node!==Ae.link.fromNode&&(Ne=te?he.focusX:he.focusY),ge.node&&ge.node!==Ae.link.toNode&&($e=te?ge.focusX:ge.focusY))}else Ae=Bm(ge,he),Ne=Ae.portToPos,$e=Ae.portFromPos,Ae.link!==null&&(he.node&&he.node!==Ae.link.toNode&&(Ne=te?he.focusX:he.focusY),ge.node&&ge.node!==Ae.link.fromNode&&($e=te?ge.focusX:ge.focusY));Se=E?he.qg+(Se-Ne)-(we-$e):he.qg+Ne-$e,ge.qg=Se,le=Math.min(le,Se),he=he.align}he=oe;do he.qg=he.qg-le,he=he.align;while(he!==oe)}}for(x=Xn(y),te=x.next();!te.done;te=x.next())for(z=Xn(te.value),te=z.next();!te.done;te=z.next())te=te.value,te.root===te&&rx(a,te,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(te=y[x][0],te.sd===te)){te.sd.shift===1/0&&(te.sd.shift=0),te=x,re=0;do{for(z=y[te][re];z.align!==z.root;)z=z.align,te++,0<z.vi&&(re=ox(z,y),re.sd.shift=Math.min(re.sd.shift,z.sd.shift+z.zc+z.qg-(re.zc+re.qg+(b?re.width:re.height)+a.columnSpacing)));re=z.vi+1}while(te<y.length&&re<y[te].length&&z.sd===y[te][re].sd)}for(a=new Wt,y=Xn(y),te=y.next();!te.done;te=y.next())for(x=Xn(te.value),te=x.next();!te.done;te=x.next())te=te.value,te.zc=te.zc+te.sd.shift+te.qg,z=b?te.width:te.height,a.add(te,E?-te.zc-z:te.zc);return a}function rx(a,y,x){if(isNaN(y.zc)){y.zc=0;var E=y;do{if(0<E.vi){var b=ox(E,x),z=b.root;rx(a,z,x),y.sd===y&&(y.sd=z.sd);var te=a.K===90||a.K===270?b.width:b.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+b.qg+te-E.qg+a.columnSpacing))}E=E.align}while(E!==y);for(;E.align!==y;)E=E.align,E.zc=y.zc,E.sd=y.sd}}function ox(a,y){var x=a.Tz;return a=a.vi,1>a&<("Could not determine previous vertex in layer"),y[x][a-1]}Po.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var E=Bn(),b=Bn(),z=1/0,te=0;4>te;te++)if(y[te]){var re=$x(this,y[te],E,b,te);re<z&&(x=te,z=re)}for(z={},te=0;4>te;z={delta:z.delta},te++)y[te]&&(z.delta=te===0||te===2?E[x]-E[te]:b[x]-b[te],z.delta!==0&&y[te].each(function(oe){return function(le){le.value+=oe.delta}}(z)));Ot(E),Ot(b)};function $x(a,y,x,E,b){if(!y||y.count===0)return x[b]=0,E[b]=0,1/0;var z=1/0,te=-1/0;return y.each(function(re){var oe=re.key;re=re.value,oe=a.K===90||a.K===270?oe.width:oe.height,re<z&&(z=re),re+oe>te&&(te=re+oe)}),x[b]=z,E[b]=te,te-z}Po.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=Mm(this,!0),y=Mm(this,!1),x=this.network.edges.iterator;x.next();){var E=x.value.link;E!==null&&(E.fromSpot=a,E.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function Mm(a,y){return a.K===270?y?Kr:Do:a.K===90?y?Do:Kr:a.K===180?y?so:uo:y?uo:so}Po.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var E=0;E<=this.Ia;E++){var b=x;0>=this.he[E]+this.Ld[E]&&(b=0),0<E&&(y+=b/2),this.K===90||this.K===0?(y+=this.Ld[E],this.Kd[E]=y,y+=this.he[E]):(y+=this.he[E],this.Kd[E]=y,y+=this.Ld[E]),E<this.Ia&&(y+=b/2),this.Ta[E]=y}for(x=y,y=this.arrangementOrigin,E=0;E<=this.Ia;E++)this.K===270?this.Kd[E]=y.y+this.Kd[E]:this.K===90?(this.Kd[E]=y.y+x-this.Kd[E],this.Ta[E]=x-this.Ta[E]):this.K===180?this.Kd[E]=y.x+this.Kd[E]:(this.Kd[E]=y.x+x-this.Kd[E],this.Ta[E]=x-this.Ta[E]);x=this.ve!==0,a.reset(),E=this.K===270||this.K===90;for(var z=1/0,te=b=1/0,re=-1/0;a.next();){var oe=a.value,le=oe.layer,he=oe.column|0;E?(te=y.x+this.kc*he,le=this.Kd[le]):(te=this.Kd[le],le=y.y+this.kc*he),oe.centerX=te,oe.centerY=le,x&&isFinite(oe.zc)&&(E?oe.node?oe.x=y.x+oe.zc:oe.centerX=y.x+oe.zc:oe.node?oe.y=y.y+oe.zc:oe.centerY=y.y+oe.zc),z=Math.min(oe.x,z),b=Math.min(oe.y,b),E?(te=z,re=Math.max(re,oe.bounds.right)):(te=b,re=Math.max(re,oe.bounds.bottom))}for(this.xw=re-te,z=y.x-z,y=y.y-b,this.Rf=new je(x&&E?0:z,x&&!E?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},Po.prototype.Gu=function(){for(var a=0,y=this.ie,x=0;x<=this.Ia;x++)a+=this.he[x],a+=this.Ld[x];a+=this.Ia*y,y=[],x=this.ve!==0?this.xw:this.kc*this.Ra;for(var E=this.maxLayer;0<=E;E--)this.K===270?E===0?y.push(new pt(0,0,x,Math.abs(this.Ta[0]))):y.push(new pt(0,this.Ta[E-1],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===90?E===0?y.push(new pt(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new pt(0,this.Ta[E],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===180?E===0?y.push(new pt(0,0,Math.abs(this.Ta[0]),x)):y.push(new pt(this.Ta[E-1],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x)):E===0?y.push(new pt(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new pt(this.Ta[E],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x));this.commitLayers(y,this.Rf)},Po.prototype.commitLayers=function(){},Po.prototype.commitLinks=function(){for(var a=this.network.edges.iterator,y;a.next();)y=a.value.link,y!==null&&(y.uh(),y.Fj(),y.zf());for(a.reset();a.next();)y=a.value.link,y!==null&&y.vg();for(a.reset();a.next();){var x=a.value;if(y=x.link,y!==null){y.uh();var E=y,b=E.fromNode,z=E.toNode,te=E.fromPort,re=E.toPort;if(b!==null){var oe=b.findVisibleNode();oe!==null&&oe!==b&&(b=oe,te=oe.port)}z!==null&&(oe=z.findVisibleNode(),oe!==null&&oe!==z&&(z=oe,re=oe.port));var le=y.computeSpot(!0,te);oe=y.computeSpot(!1,re);var he=x.fromVertex,ge=x.toVertex;if(x.valid)y.curve===hl&&y.pointsCount===4&&(he.column===ge.column&&this.alignOption===0?(x=y.getLinkPoint(b,te,le,!0,!1,z,re),re=y.getLinkPoint(z,re,oe,!1,!1,b,te),x.w()||x.set(b.actualBounds.center),re.w()||re.set(z.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+re.x)/3,(2*x.y+re.y)/3),y.yf((x.x+2*re.x)/3,(x.y+2*re.y)/3),y.yf(re.x,re.y)):(x=E=!1,te!==null&&le===Fi&&(E=!0),re!==null&&oe===Fi&&(x=!0),(E||x)&&(oe=null,E&&(oe=y.getLinkPointFromPoint(b,te,te.ga(hi),y.i(3),!0),oe.w()||oe.set(b.actualBounds.center),y.L(0,oe.x,oe.y)),b=null,x&&(b=y.getLinkPointFromPoint(z,re,re.ga(hi),y.i(0),!1),b.w()||b.set(z.actualBounds.center),y.L(3,b.x,b.y)),oe&&(z=y.i(2),y.L(1,(2*oe.x+z.x)/3,(2*oe.y+z.y)/3)),b&&(z=y.i(1),y.L(2,(2*b.x+z.x)/3,(2*b.y+z.y)/3))))),y.zf();else if(he.layer===ge.layer)y.zf();else{var Se=!1,we=!1,Ae=this.ie,Ne=y.firstPickIndex+1;if(y.isOrthogonal){we=!0;var $e=y.pointsCount;4<$e&&y.points.removeRange(2,$e-3)}else if(y.curve===hl)Se=!0,$e=y.pointsCount,4<$e&&y.points.removeRange(2,$e-3),$e===4&&(Ne=2);else{$e=y.pointsCount;var Ke=le===Fi,at=oe===Fi;2<$e&&Ke&&at?y.points.removeRange(1,$e-2):3<$e&&Ke&&!at?y.points.removeRange(1,$e-3):3<$e&&!Ke&&at?y.points.removeRange(2,$e-2):4<$e&&!Ke&&!at&&y.points.removeRange(2,$e-3)}if(x.rev){for(;ge!==null&&he!==ge;){var dt=$e=null;for(Ke=ge.sourceEdges.iterator;Ke.next()&&(at=Ke.value,at.link!==x.link||($e=at.fromVertex,dt=at.toVertex,$e.node!==null)););if($e===null)break;if($e!==he){Ke=y.i(Ne-1).x,at=y.i(Ne-1).y;var ft=$e.centerX,wt=$e.centerY;if(we)this.K===180||this.K===0?Ne===y.firstPickIndex+1?(y.m(Ne++,Ke,at),y.m(Ne++,Ke,wt)):(dt!==null?dt.centerY:at)!==wt&&(dt=this.Ta[$e.layer-1]+this.Rf.x,y.m(Ne++,dt,at),y.m(Ne++,dt,wt)):Ne===y.firstPickIndex+1?(y.m(Ne++,Ke,at),y.m(Ne++,ft,at)):(dt!==null?dt.centerX:Ke)!==ft&&(dt=this.Ta[$e.layer-1]+this.Rf.y,y.m(Ne++,Ke,dt),y.m(Ne++,ft,dt));else if(Ne===y.firstPickIndex+1){dt=Math.max(10,this.he[ge.layer]);var Gt=Math.max(10,this.Ld[ge.layer]);if(Se)this.K===180?ft<=ge.bounds.x?(ge=ge.bounds.x,y.m(Ne++,ge-dt,wt),y.m(Ne++,ge,wt),y.m(Ne++,ge+Gt,wt)):(y.m(Ne++,ft-dt,wt),y.m(Ne++,ft,wt),y.m(Ne++,ft+Gt,wt)):this.K===90?wt>=ge.bounds.bottom?(ge=ge.bounds.y+ge.bounds.height,y.m(Ne++,ft,ge+Gt),y.m(Ne++,ft,ge),y.m(Ne++,ft,ge-dt)):(y.m(Ne++,ft,wt+Gt),y.m(Ne++,ft,wt),y.m(Ne++,ft,wt-dt)):this.K===270?wt<=ge.bounds.y?(ge=ge.bounds.y,y.m(Ne++,ft,ge-dt),y.m(Ne++,ft,ge),y.m(Ne++,ft,ge+Gt)):(y.m(Ne++,ft,wt-dt),y.m(Ne++,ft,wt),y.m(Ne++,ft,wt+Gt)):this.K===0&&(ft>=ge.bounds.right?(ge=ge.bounds.x+ge.bounds.width,y.m(Ne++,ge+Gt,wt),y.m(Ne++,ge,wt),y.m(Ne++,ge-dt,wt)):(y.m(Ne++,ft+Gt,wt),y.m(Ne++,ft,wt),y.m(Ne++,ft-dt,wt)));else{y.m(Ne++,Ke,at);var oi=0;this.K===180||this.K===0?((this.K===180?ft>=ge.bounds.right:ft<=ge.bounds.x)&&(oi=(this.K===0?-dt:Gt)/2),y.m(Ne++,Ke+oi,wt)):((this.K===270?wt>=ge.bounds.bottom:wt<=ge.bounds.y)&&(oi=(this.K===90?-dt:Gt)/2),y.m(Ne++,ft,at+oi)),y.m(Ne++,ft,wt)}}else dt=Math.max(10,this.he[$e.layer]),Gt=Math.max(10,this.Ld[$e.layer]),Se?this.K===180?(y.m(Ne++,ft-dt-Ae,wt),y.m(Ne++,Math.min(ft-dt+Ae/2,ft),wt),y.m(Ne++,ft,wt),y.m(Ne++,ft,wt),y.m(Ne++,Math.max(ft+Gt-Ae/2,ft),wt),y.m(Ne++,ft+Gt+Ae,wt)):this.K===90?(y.m(Ne++,ft,wt+Gt+Ae),y.m(Ne++,ft,Math.max(wt+Gt-Ae/2,wt)),y.m(Ne++,ft,wt),y.m(Ne++,ft,wt),y.m(Ne++,ft,Math.min(wt-dt+Ae/2,wt)),y.m(Ne++,ft,wt-dt-Ae)):this.K===270?(y.m(Ne++,ft,wt-dt-Ae),y.m(Ne++,ft,Math.min(wt-dt+Ae/2,wt)),y.m(Ne++,ft,wt),y.m(Ne++,ft,wt),y.m(Ne++,ft,Math.max(wt+Gt-Ae/2,wt)),y.m(Ne++,ft,wt+Gt+Ae)):(y.m(Ne++,ft+Gt+Ae,wt),y.m(Ne++,Math.max(ft+Gt-Ae/2,ft),wt),y.m(Ne++,ft,wt),y.m(Ne++,ft,wt),y.m(Ne++,Math.min(ft-dt+Ae/2,ft),wt),y.m(Ne++,ft-dt-Ae,wt)):y.m(Ne++,ft,wt)}ge=$e}(re===null||le!==Fi||we)&&(Ke=y.i(Ne-1).x,at=y.i(Ne-1).y,ft=y.i(Ne).x,wt=y.i(Ne).y,we?(Ae=this.Ld[he.layer],this.K===180||this.K===0?(we=at,we>=he.bounds.y&&we<=he.bounds.bottom&&(this.K===180?ft>=he.bounds.x:ft<=he.bounds.right)&&(ge=he.centerX+(this.K===180?-Ae:Ae),we<he.bounds.y+he.bounds.height/2?we=he.bounds.y-this.kc/2:we=he.bounds.bottom+this.kc/2,y.m(Ne++,ge,at),y.m(Ne++,ge,we)),y.m(Ne++,ft,we)):(we=Ke,we>=he.bounds.x&&we<=he.bounds.right&&(this.K===270?wt>=he.bounds.y:wt<=he.bounds.bottom)&&(ge=he.centerY+(this.K===270?-Ae:Ae),we<he.bounds.x+he.bounds.width/2?we=he.bounds.x-this.kc/2:we=he.bounds.right+this.kc/2,y.m(Ne++,Ke,ge),y.m(Ne++,we,ge)),y.m(Ne++,we,wt)),y.m(Ne++,ft,wt)):Se?(dt=Math.max(10,this.he[he.layer]),Gt=Math.max(10,this.Ld[he.layer]),this.K===180&&ft>=he.bounds.x?(ge=he.bounds.x+he.bounds.width,y.L(Ne-2,ge,at),y.L(Ne-1,ge+Gt,at)):this.K===90&&wt<=he.bounds.bottom?(ge=he.bounds.y,y.L(Ne-2,Ke,ge),y.L(Ne-1,Ke,ge-dt)):this.K===270&&wt>=he.bounds.y?(ge=he.bounds.y+he.bounds.height,y.L(Ne-2,Ke,ge),y.L(Ne-1,Ke,ge+Gt)):this.K===0&&ft<=he.bounds.right&&(ge=he.bounds.x,y.L(Ne-2,ge,at),y.L(Ne-1,ge-dt,at))):(dt=Math.max(10,this.he[he.layer]),Gt=Math.max(10,this.Ld[he.layer]),we=0,this.K===180||this.K===0?((this.K===180?ft<=he.bounds.x:ft>=he.bounds.right)&&(we=(this.K===0?Gt:-dt)/2),y.m(Ne++,ft+we,at)):((this.K===270?wt<=he.bounds.y:wt>=he.bounds.bottom)&&(we=(this.K===90?Gt:-dt)/2),y.m(Ne++,Ke,wt+we)),y.m(Ne++,ft,wt)))}else{for(;he!==null&&he!==ge;){for(dt=$e=null,he=he.destinationEdges.iterator;he.next()&&(Ke=he.value,Ke.link!==x.link||($e=Ke.toVertex,dt=Ke.fromVertex,dt.node!==null&&(dt=null),$e.node!==null)););if($e===null)break;$e!==ge&&(Ke=y.i(Ne-1).x,at=y.i(Ne-1).y,ft=$e.centerX,wt=$e.centerY,we?this.K===180||this.K===0?(dt!==null?dt.centerY:at)!==wt&&(dt=this.Ta[$e.layer]+this.Rf.x,Ne===y.firstPickIndex+1&&(dt=this.K===0?Math.max(dt,Ke):Math.min(dt,Ke)),y.m(Ne++,dt,at),y.m(Ne++,dt,wt)):(dt!==null?dt.centerX:Ke)!==ft&&(dt=this.Ta[$e.layer]+this.Rf.y,Ne===y.firstPickIndex+1&&(dt=this.K===90?Math.max(dt,at):Math.min(dt,at)),y.m(Ne++,Ke,dt),y.m(Ne++,ft,dt)):(dt=Math.max(10,this.he[$e.layer]),Gt=Math.max(10,this.Ld[$e.layer]),Se?this.K===180?(y.m(Ne++,ft+Gt+Ae,wt),y.m(Ne++,Math.max(ft+Gt-Ae/2,ft),wt),y.m(Ne++,ft,wt),y.m(Ne++,ft,wt),y.m(Ne++,Math.min(ft-dt+Ae/2,ft),wt),y.m(Ne++,ft-dt-Ae,wt)):this.K===90?(y.m(Ne++,ft,wt-dt-Ae),y.m(Ne++,ft,Math.min(wt-dt+Ae/2,wt)),y.m(Ne++,ft,wt),y.m(Ne++,ft,wt),y.m(Ne++,ft,Math.max(wt+Gt-Ae/2,wt)),y.m(Ne++,ft,wt+Gt+Ae)):this.K===270?(y.m(Ne++,ft,wt+Gt+Ae),y.m(Ne++,ft,Math.max(wt+Gt-Ae/2,wt)),y.m(Ne++,ft,wt),y.m(Ne++,ft,wt),y.m(Ne++,ft,Math.min(wt-dt+Ae/2,wt)),y.m(Ne++,ft,wt-dt-Ae)):(y.m(Ne++,ft-dt-Ae,wt),y.m(Ne++,Math.min(ft-dt+Ae/2,ft),wt),y.m(Ne++,ft,wt),y.m(Ne++,ft,wt),y.m(Ne++,Math.max(ft+Gt-Ae/2,ft),wt),y.m(Ne++,ft+Gt+Ae,wt)):this.K===180?(y.m(Ne++,ft+Gt,wt),y.m(Ne++,ft-dt,wt)):this.K===90?(y.m(Ne++,ft,wt-dt),y.m(Ne++,ft,wt+Gt)):this.K===270?(y.m(Ne++,ft,wt+Gt),y.m(Ne++,ft,wt-dt)):(y.m(Ne++,ft-dt,wt),y.m(Ne++,ft+Gt,wt)))),he=$e}we&&(Ke=y.i(Ne-1).x,at=y.i(Ne-1).y,ft=y.i(Ne).x,wt=y.i(Ne).y,this.K===180||this.K===0?at!==wt&&(dt=this.K===0?Math.min(Math.max((ft+Ke)/2,this.Ta[ge.layer]+this.Rf.x),ft):Math.max(Math.min((ft+Ke)/2,this.Ta[ge.layer]+this.Rf.x),ft),y.m(Ne++,dt,at),y.m(Ne++,dt,wt)):Ke!==ft&&(dt=this.K===90?Math.min(Math.max((wt+at)/2,this.Ta[ge.layer]+this.Rf.y),wt):Math.max(Math.min((wt+at)/2,this.Ta[ge.layer]+this.Rf.y),wt),y.m(Ne++,Ke,dt),y.m(Ne++,ft,dt)))}E!==null&&Se&&4<=y.pointsCount&&(te!==null&&(te=le===Fi?y.getLinkPointFromPoint(b,te,te.ga(hi),y.i(3),!0):y.i(0),le===Fi&&(le=y.i(2),E=y.i(3),this.direction===90||this.direction===270?(y.L(1,(te.x+le.x)/2,le.y),y.L(2,E.x,(le.y+E.y)/2)):(y.L(1,le.x,(te.y+le.y)/2),y.L(2,(le.x+E.x)/2,E.y))),te.w()||te.set(b.actualBounds.center),y.L(0,te.x,te.y)),re!==null&&(b=oe===Fi?y.getLinkPointFromPoint(z,re,re.ga(hi),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),oe===Fi&&(re=y.i(y.pointsCount-3),oe=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(b.x+re.x)/2,re.y),y.L(y.pointsCount-2,oe.x,(re.y+oe.y)/2)):(y.L(y.pointsCount-2,re.x,(b.y+re.y)/2),y.L(y.pointsCount-3,(re.x+oe.x)/2,oe.y))),b.w()||b.set(z.actualBounds.center),y.L(y.pointsCount-1,b.x,b.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},Po.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new An,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0<a.count)if(this.K===90||this.K===270){for(y=0,x=[],a=a.iterator;a.next();){var E=a.value;if(E!==null&&E.isOrthogonal)for(var b=2;b<E.pointsCount-3;b++){var z=E.i(b),te=E.i(b+1);if(this.B(z.y,te.y)&&!this.B(z.x,te.x)){var re=new Sd;re.layer=Math.floor(z.y/2);var oe=E.i(0),le=E.i(E.pointsCount-1);if(re.first=oe.x*oe.x+oe.y,re.jc=le.x*le.x+le.y,re.rd=Math.min(z.x,te.x),re.Ic=Math.max(z.x,te.x),re.index=b,re.link=E,b+2<E.pointsCount){oe=E.i(b-1),le=E.i(b+2);var he=0;oe.y<z.y?he=le.y<z.y?3:z.x<te.x?2:1:oe.y>z.y&&(he=le.y>z.y?0:te.x<z.x?2:1),re.j=he}x.push(re)}}}if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,E=a+1;E<x.length&&x[E].layer===z;)E++;if(1<E-a)for(z=a;z<E;){for(te=x[z].Ic,b=a+1;b<E&&x[b].rd<te;)te=Math.max(te,x[b].Ic),b++;if(te=b-z,1<te){for(this.zi(x,this.Js,z,z+te),he=1,re=x[z].jc,oe=z;oe<b;oe++)le=x[oe],le.jc!==re&&(he++,re=le.jc);this.zi(x,this.Ux,z,z+te);var ge=1;for(re=x[z].first,oe=z;oe<b;oe++)le=x[oe],le.first!==re&&(ge++,re=le.first);for(oe=!0,le=ge,he<ge?(oe=!1,le=he,re=x[z].jc,this.zi(x,this.Js,z,z+te)):re=x[z].first,he=0,ge=z;ge<b;ge++){var Se=x[ge];(oe?Se.first:Se.jc)!==re&&(he++,re=oe?Se.first:Se.jc);var we=Se.link;z=we.i(Se.index),te=we.i(Se.index+1);var Ae=this.linkSpacing*(he-(le-1)/2);y++,we.uh(),we.L(Se.index,z.x,z.y+Ae),we.L(Se.index+1,te.x,te.y+Ae),we.zf()}}z=b}a=E}}else{for(y=0,x=[],a=a.iterator;a.next();)if(E=a.value,E!==null&&E.isOrthogonal)for(b=2;b<E.pointsCount-3;b++)z=E.i(b),te=E.i(b+1),this.B(z.x,te.x)&&!this.B(z.y,te.y)&&(re=new Sd,re.layer=Math.floor(z.x/2),oe=E.i(0),le=E.i(E.pointsCount-1),re.first=oe.x+oe.y*oe.y,re.jc=le.x+le.y*le.y,re.rd=Math.min(z.y,te.y),re.Ic=Math.max(z.y,te.y),re.index=b,re.link=E,b+2<E.pointsCount&&(oe=E.i(b-1),le=E.i(b+2),he=0,oe.x<z.x?he=le.x<z.x?3:z.y<te.y?2:1:oe.x>z.x&&(he=le.x>z.x?0:te.y<z.y?2:1),re.j=he),x.push(re));if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,E=a+1;E<x.length&&x[E].layer===z;)E++;if(1<E-a)for(z=a;z<E;){for(te=x[z].Ic,b=a+1;b<E&&x[b].rd<te;)te=Math.max(te,x[b].Ic),b++;if(te=b-z,1<te){for(this.zi(x,this.Js,z,z+te),he=1,re=x[z].jc,oe=z;oe<b;oe++)le=x[oe],le.jc!==re&&(he++,re=le.jc);for(this.zi(x,this.Ux,z,z+te),ge=1,re=x[z].first,oe=z;oe<b;oe++)le=x[oe],le.first!==re&&(ge++,re=le.first);for(oe=!0,le=ge,he<ge?(oe=!1,le=he,re=x[z].jc,this.zi(x,this.Js,z,z+te)):re=x[z].first,he=0,ge=z;ge<b;ge++)Se=x[ge],(oe?Se.first:Se.jc)!==re&&(he++,re=oe?Se.first:Se.jc),we=Se.link,z=we.i(Se.index),te=we.i(Se.index+1),Ae=this.linkSpacing*(he-(le-1)/2),y++,we.uh(),we.L(Se.index,z.x+Ae,z.y),we.L(Se.index+1,te.x+Ae,te.y),we.zf()}z=b}a=E}}}},be=Po.prototype,be.Vx=function(a,y){return a instanceof Sd&&y instanceof Sd&&a!==y?a.layer<y.layer?-1:a.layer>y.layer?1:a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},be.Ux=function(a,y){return a instanceof Sd&&y instanceof Sd&&a!==y?a.first<y.first?-1:a.first>y.first||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},be.Js=function(a,y){return a instanceof Sd&&y instanceof Sd&&a!==y?a.jc<y.jc?-1:a.jc>y.jc||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},be.B=function(a,y){return a-=y,-1<a&&1>a},be.zi=function(a,y,x,E){var b=a.length,z=E-x;if(!(1>=z))if((0>x||x>=b-1)&<("not in range 0 <= from < length: "+x),z===2)E=a[x],b=a[x+1],0<y(E,b)&&(a[x]=b,a[x+1]=E);else if(x===0)if(E>=b)a.sort(y);else for(x=a.slice(0,E),x.sort(y),y=0;y<E;y++)a[y]=x[y];else if(E>=b)for(E=a.slice(x),E.sort(y),y=x;y<b;y++)a[y]=E[y-x];else for(b=a.slice(x,E),b.sort(y),y=x;y<E;y++)a[y]=b[y-x]};function vd(a,y){var x=a.tc[y];if(x>=a.He.length){for(var E=[],b=0;b<a.He.length;b++)E[b]=a.He[b];a.He=E}for(a.He[x]===void 0||a.He[x]===null?E=[]:(E=a.He[x],a.He[x]=null),a=a.fl[y],y=0;y<a.length;y++)x=a[y],E[x.index]=x;return E}function yd(a,y,x){a.He[a.tc[y]]=x}pn.Object.defineProperties(Po.prototype,{layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&0<=a&&(this.ie=a,this.C())}},columnSpacing:{get:function(){return this.kc},set:function(a){this.kc!==a&&0<a&&(this.kc=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K!==a&&(a===0||a===90||a===180||a===270?(this.K=a,this.C()):lt("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==Py&&a!==Lm&&a!==Mp||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==bm&&a!==wy&&a!==Cy||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==Dm&&a!==Ey&&a!==Ay||(this.Qk=a,this.C())}},iterations:{get:function(){return this.bj},set:function(a){this.bj!==a&&0<=a&&(this.bj=a,this.C())}},aggressiveOption:{get:function(){return this.rk},set:function(a){this.rk===a||a!==Fy&&a!==km&&a!==My||(this.rk=a,this.C())}},packOption:{get:function(){return this.bg},set:function(a){this.bg!==a&&0<=a&&8>a&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var Lm=new Kt(Po,"CycleDepthFirst",0),Py=new Kt(Po,"CycleGreedy",1),Mp=new Kt(Po,"CycleFromLayers",2),bm=new Kt(Po,"LayerOptimalLinkLength",0),wy=new Kt(Po,"LayerLongestPathSink",1),Cy=new Kt(Po,"LayerLongestPathSource",2),Dm=new Kt(Po,"InitDepthFirstOut",0),Ey=new Kt(Po,"InitDepthFirstIn",1),Ay=new Kt(Po,"InitNaive",2),Fy=new Kt(Po,"AggressiveNone",0),km=new Kt(Po,"AggressiveLess",1),My=new Kt(Po,"AggressiveMore",2),eP=8;Po.className="LayeredDigraphLayout",Po.CycleDepthFirst=Lm,Po.CycleGreedy=Py,Po.CycleFromLayers=Mp,Po.LayerOptimalLinkLength=bm,Po.LayerLongestPathSink=wy,Po.LayerLongestPathSource=Cy,Po.InitDepthFirstOut=Dm,Po.InitDepthFirstIn=Ey,Po.InitNaive=Ay,Po.AggressiveNone=Fy,Po.AggressiveLess=km,Po.AggressiveMore=My,Po.PackNone=0,Po.PackExpand=1,Po.PackStraighten=2,Po.PackMedian=4,Po.PackAll=15,Po.AlignNone=0,Po.AlignUpperLeft=1,Po.AlignUpperRight=2,Po.AlignLowerLeft=4,Po.AlignLowerRight=8,Po.AlignAll=15;function Sd(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}Sd.className="SegInfo";function Jf(a){Ho.call(this,a)}Zt(Jf,Ho),Jf.prototype.createVertex=function(){return new Ml(this)},Jf.prototype.createEdge=function(){return new Lp(this)},Jf.className="LayeredDigraphNetwork";function Ml(a){Ba.call(this,a),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}Zt(Ml,Ba);function ax(a,y){return a.index-y.index}function Bm(a,y){if(!a.$n){for(var x=[],E=Xn(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&x.push(b);a.$n=x}for(a=Xn(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;lt("Unable to find destination edge to given vertex")}function Ly(a){if(!a.co){for(var y=[],x=Xn(a.sourceEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.fromVertex);y.sort(ax),a.co=y}return a.co}function tP(a){if(!a.ao){for(var y=[],x=Xn(a.destinationEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.toVertex);y.sort(ax),a.ao=y}return a.ao}Ml.prototype.Cl=function(a){Ba.prototype.Cl.call(this,a),this.bo=this.co=null},Ml.prototype.Kl=function(a){Ba.prototype.Kl.call(this,a),this.bo=this.co=null},Ml.prototype.zl=function(a){Ba.prototype.zl.call(this,a),this.$n=this.ao=null},Ml.prototype.Jl=function(a){Ba.prototype.Jl.call(this,a),this.$n=this.ao=null},pn.Object.defineProperties(Ml.prototype,{layer:{get:function(){return this.Ig},set:function(a){this.Ig!==a&&(this.Ig=a)}},column:{get:function(){return this.Ag},set:function(a){this.Ag!==a&&(this.Ag=a)}},index:{get:function(){return this.Za},set:function(a){this.Za!==a&&(this.Za=a)}},component:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},near:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),Ml.prototype.deleteDestinationEdge=Ml.prototype.Jl,Ml.prototype.addDestinationEdge=Ml.prototype.zl,Ml.prototype.deleteSourceEdge=Ml.prototype.Kl,Ml.prototype.addSourceEdge=Ml.prototype.Cl,Ml.className="LayeredDigraphVertex";function Lp(a){el.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Zt(Lp,el),pn.Object.defineProperties(Lp.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},valid:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},rev:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},forest:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},portFromPos:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},portToPos:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},portFromColOffset:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},portToColOffset:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),Lp.className="LayeredDigraphEdge";function jr(a){ea.call(this),this.Ub=new Fn,this.Wn=Im,this.ud=Hu,this.vo=jm,this.Bq=zy,this.$v=[],this.td=!0,this.Rb=zm,this.$d=new Xe(10,10).freeze();var y=new Yc(this);this.W=new zl(y),this.Y=new zl(y),this.ru=[],a&&Object.assign(this,a)}Zt(jr,ea),jr.prototype.cloneProtected=function(a){ea.prototype.cloneProtected.call(this,a),a.Wn=this.Wn,a.vo=this.vo,a.Bq=this.Bq,a.td=this.td,a.Rb=this.Rb,a.$d.assign(this.$d),a.W.copyInheritedPropertiesFrom(this.W),a.Y.copyInheritedPropertiesFrom(this.Y)},jr.prototype.qb=function(a){a.classType===jr?a.name.indexOf("Alignment")===0?this.alignment=a:a.name.indexOf("Arrangement")===0?this.arrangement=a:a.name.indexOf("Compaction")===0?this.compaction=a:a.name.indexOf("Path")===0?this.path=a:a.name.indexOf("Sorting")===0?this.sorting=a:a.name.indexOf("Style")===0?this.treeStyle=a:lt("Unknown enum value: "+a):ea.prototype.qb.call(this,a)},jr.prototype.createNetwork=function(){return new Yc(this)},jr.prototype.makeNetwork=function(a){function y(E){if(E instanceof li)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof Hn){var b=E.fromNode;return b===null||b.isLinkLabel||b.category==="Comment"?!1:(E=E.toNode,!(E===null||E.isLinkLabel||E.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof _t?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Pr?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},jr.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==Zm&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof _t&&(y=a),this.path===Im&&y!==null?this.ud=y.isTreePathToChildren?Hu:Vc:this.ud=this.path===Im?Hu:this.path,0<this.network.vertexes.count){for(this.network.Ko(),a=this.network.vertexes.iterator;a.next();)y=a.value,y.initialized=!1,y.level=0,y.parent=null,y.children=[];if(0<this.Ub.count){for(a=new Fn,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof li?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof zl&&a.add(x)}this.Ub=a}for(this.Ub.count===0&&this.findRoots(),a=this.Ub.copy().iterator;a.next();)y=a.value,y.initialized||(y.initialized=!0,by(this,y));for(y=this.network.vertexes,a=null;a=nP(y),0<a.count;)y=sx(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,by(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof zl&&ux(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof zl&&hx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof zl&&dx(this,y);if(this.Cu(),this.layerStyle===Wm){for(a=[],y=this.network.vertexes.iterator;y.next();){x=y.value;var E=x.parent;E===null&&(E=x),E=E.angle===0||E.angle===180;var b=a[x.level];b===void 0&&(b=0),a[x.level]=Math.max(b,E?x.width:x.height)}for(y=0;y<a.length;y++)a[y]===void 0&&(a[y]=0);for(this.$v=a,y=this.network.vertexes.iterator;y.next();)x=y.value,E=x.parent,E===null&&(E=x),E.angle===0||E.angle===180?(E.angle===180&&(x.focusX+=a[x.level]-x.width),x.width=a[x.level]):(E.angle===270&&(x.focusY+=a[x.level]-x.height),x.height=a[x.level])}else if(this.layerStyle===Zy)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,x=y.angle===0||y.angle===180,E=-1,b=0;b<y.children.length;b++){var z=y.children[b];E=Math.max(E,x?z.width:z.height)}if(0<=E)for(b=0;b<y.children.length;b++)z=y.children[b],x?(y.angle===180&&(z.focusX+=E-z.width),z.width=E):(y.angle===270&&(z.focusY+=E-z.height),z.height=E)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof zl&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new Fn,this.isValidLayout=!0};function nP(a){var y=new Fn;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}jr.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case Hu:x.sourceEdges.count===0&&this.Ub.add(x);break;case Vc:x.destinationEdges.count===0&&this.Ub.add(x);break;default:lt("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=sx(this,a),a!==null&&this.Ub.add(a))};function sx(a,y){var x=999999,E=null;for(y=y.iterator;y.next();){var b=y.value;switch(a.ud){case Hu:b.sourceEdges.count<x&&(x=b.sourceEdges.count,E=b);break;case Vc:b.destinationEdges.count<x&&(x=b.destinationEdges.count,E=b);break;default:lt("Unhandled path value "+a.ud.toString())}}return E}function by(a,y){if(y!==null){switch(a.ud){case Hu:if(0<y.destinationEdges.count){for(var x=new An,E=y.destinationVertexes;E.next();){var b=E.value;lx(a,y,b)&&x.add(b)}0<x.count&&(y.children=x.Fa())}break;case Vc:if(0<y.sourceEdges.count){for(x=new An,E=y.sourceVertexes;E.next();)b=E.value,lx(a,y,b)&&x.add(b);0<x.count&&(y.children=x.Fa())}break;default:lt("Unhandled path value"+a.ud.toString())}for(x=y.children,E=x.length,b=0;b<E;b++){var z=x[b];z.initialized=!0,z.level=y.level+1,z.parent=y,a.Ub.remove(z)}for(y=0;y<E;y++)by(a,x[y])}}function lx(a,y,x){if(x.initialized){if(y===null)var E=!1;else{for(E=y.parent;E!==null&&E!==x;)E=E.parent;E=E===x}if(E||x.level>y.level)return!1;a.removeChild(x.parent,x)}return!0}jr.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,E=0,b=0;b<x.length;b++)x[b]===y&&E++;if(0<E){E=Array(x.length-E);for(var z=b=0;z<x.length;z++)x[z]!==y&&(E[b++]=x[z]);a.children=E}}};function ux(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===_u&&a.sortTreeVertexChildren(y);for(var x=0,E=y.childrenCount,b=0,z=y.children,te=z.length,re=0;re<te;re++){var oe=z[re];ux(a,oe),x+=oe.descendantCount+1,E=Math.max(E,oe.maxChildrenCount),b=Math.max(b,oe.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=E,y.maxGenerationCount=0<E?b+1:0}}function iP(a,y){switch(a.vo){default:case jm:return y.parent!==null?y.parent:a.W;case Ry:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case Iy:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Oy:var x=!0;if(y.childrenCount===0)x=!1;else for(var E=y.children,b=E.length,z=0;z<b;z++)if(0<E[z].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}jr.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(iP(this,a)),a.parent!==null&&a.parent.alignment===_u){for(var y=a.angle,x=a.parent.children,E=0;E<x.length&&a!==x[E];)E++;E%2===0?E!==x.length-1&&(y=y===90?180:y===180?270:y===270?180:270):y=y===90?0:y===180?90:y===270?0:90,a.angle=y}a.initialized=!0};function hx(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,E=0;E<x;E++)hx(a,y[E])}}jr.prototype.assignTreeVertexValues=function(){};function dx(a,y){if(y!==null){y.alignment!==_u&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,E=0;E<x;E++)dx(a,y[E])}}jr.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case qf:break;case Dp:a.children.reverse();break;case kp:a.children.sort(a.comparer);break;case Bp:a.children.sort(a.comparer),a.children.reverse();break;default:lt("Unhandled sorting value "+a.sorting.toString())}},jr.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},jr.prototype.addComments=function(a){var y=a.angle,x=a.parent,E=0,b=!1;x!==null&&(E=x.angle,b=x.alignment,b=xd(b)),y=y===90||y===270,E=E===90||E===270,x=a.childrenCount===0;var z=0,te=0,re=0,oe=a.commentSpacing;if(a.node!==null)for(var le=a.node.Mu();le.next();){var he=le.value;he.category==="Comment"&&he.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(he),he.Va(),he=he.measuredBounds,y&&!x||!b&&!E&&x||b&&E&&x?(z=Math.max(z,he.width),te+=he.height+Math.abs(re)):(z+=he.width+Math.abs(re),te=Math.max(te,he.height)),re=oe)}a.comments!==null&&(y&&!x||!b&&!E&&x||b&&E&&x?(z+=Math.abs(a.commentMargin),te=Math.max(0,te-a.height)):(te+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),b=pt.allocAt(0,0,a.bounds.width+z,a.bounds.height+te),a.bounds=b,pt.free(b))};function xd(a){return a===Oh||a===_u||a===Ih||a===ah}function bp(a){return a===Oh||a===_u}function Dy(a){var y=a.parent;if(y!==null){var x=y.alignment;if(xd(x)){if(bp(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===Ih)return!0}}return!1}jr.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,x=a.parent,E=a.angle,b=0,z=!1;x!==null&&(b=x.angle,z=x.alignment,z=xd(z)),E=E===90||E===270,x=b===90||b===270;for(var te=a.childrenCount===0,re=Dy(a),oe=0,le=a.comments,he=le.length,ge=je.alloc(),Se=0;Se<he;Se++){var we=le[Se],Ae=we.measuredBounds;if(E&&!te||!z&&!x&&te||z&&x&&te){if(135<b&&!z||x&&re)if(0<=a.commentMargin)for(ge.h(a.bounds.x-a.commentMargin-Ae.width,a.bounds.y+oe),we.move(ge),we=we.Sd();we.next();){var Ne=we.value;Ne.fromSpot=so,Ne.toSpot=uo}else for(ge.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+oe),we.move(ge),we=we.Sd();we.next();)Ne=we.value,Ne.fromSpot=uo,Ne.toSpot=so;else if(0<=a.commentMargin)for(ge.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+oe),we.move(ge),we=we.Sd();we.next();)Ne=we.value,Ne.fromSpot=uo,Ne.toSpot=so;else for(ge.h(a.bounds.x+a.commentMargin-Ae.width,a.bounds.y+oe),we.move(ge),we=we.Sd();we.next();)Ne=we.value,Ne.fromSpot=so,Ne.toSpot=uo;oe=0<=a.commentSpacing?oe+(Ae.height+a.commentSpacing):oe+(a.commentSpacing-Ae.height)}else{if(135<b&&!z||!x&&re)if(0<=a.commentMargin)for(ge.h(a.bounds.x+oe,a.bounds.y-a.commentMargin-Ae.height),we.move(ge),we=we.Sd();we.next();)Ne=we.value,Ne.fromSpot=Kr,Ne.toSpot=Do;else for(ge.h(a.bounds.x+oe,a.bounds.y+2*a.focus.y-a.commentMargin),we.move(ge),we=we.Sd();we.next();)Ne=we.value,Ne.fromSpot=Do,Ne.toSpot=Kr;else if(0<=a.commentMargin)for(ge.h(a.bounds.x+oe,a.bounds.y+2*a.focus.y+a.commentMargin),we.move(ge),we=we.Sd();we.next();)Ne=we.value,Ne.fromSpot=Do,Ne.toSpot=Kr;else for(ge.h(a.bounds.x+oe,a.bounds.y+a.commentMargin-Ae.height),we.move(ge),we=we.Sd();we.next();)Ne=we.value,Ne.fromSpot=Kr,Ne.toSpot=Do;oe=0<=a.commentSpacing?oe+(Ae.width+a.commentSpacing):oe+(a.commentSpacing-Ae.width)}}if(je.free(ge),y=oe-a.commentSpacing-(E?y.height:y.width),this.ud===Hu)for(a=a.destinationEdges;a.next();)b=a.value.link,b===null||b.isAvoiding||(b.fromEndSegmentLength=0<y?y:NaN);else for(a=a.sourceEdges;a.next();)b=a.value.link,b===null||b.isAvoiding||(b.toEndSegmentLength=0<y?y:NaN)}},jr.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,x=y.length,E=0;E<x;E++)this.layoutTree(y[E]);switch(a.compaction){case Rm:cx(this,a);break;case Np:if(a.alignment===_u)cx(this,a);else if(a.childrenCount===0)E=a.parent,x=!1,y=0,E!==null&&(y=E.angle,x=E.alignment,x=xd(x)),E=Dy(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||x)&&!E?a.la.h(0,0):y===180&&!x||(y===90||y===270)&&E?a.la.h(a.width-2*a.focus.x,0):a.la.h(0,a.height-2*a.focus.y),a.Yo=null,a.kp=null;else{var b=eu(a);y=b===90||b===270;var z=0,te=a.children,re=te.length;for(x=0;x<re;x++)E=te[x],z=Math.max(z,y?E.Da.width:E.Da.height);var oe=a.alignment;E=oe===Gu;var le=oe===Vu,he=xd(oe),ge=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var Se=a.nodeSpacing,we=this.computeNodeIndent(a),Ae=a.rowSpacing,Ne=0;(E||le||a.hm||a.im&&a.maxGenerationCount===1)&&(Ne=Math.max(0,a.rowIndent)),E=a.width;var $e=a.height,Ke=0,at=0,dt=0,ft=null,wt=null,Gt=0,oi=0,bi=0,Si=0,Zn=0,yn=0,Sr=0,sr=0;if(he&&!bp(oe)&&135<b&&te.reverse(),bp(oe))if(1<re)for(var ro=0;ro<re;ro++)ro%2===0&&ro!==re-1&&(sr=Math.max(sr,y?te[ro].Da.width:te[ro].Da.height));else re===1&&(sr=y?te[0].Da.width:te[0].Da.height);if(he){switch(oe){case Oh:at=135>b?fx(this,a,te,sr,Ke,at):gx(this,a,te,sr,Ke,at),sr=at.x,Ke=at.width,at=at.height;break;case Ih:for(ft=0;ft<re;ft++)wt=te[ft],ge=wt.Da,dt=yn===0?0:Ae,y?(wt.S.h(z-ge.width,Si+dt),Ke=Math.max(Ke,ge.width),at=Math.max(at,Si+dt+ge.height),Si+=dt+ge.height):(wt.S.h(bi+dt,z-ge.height),Ke=Math.max(Ke,bi+dt+ge.width),at=Math.max(at,ge.height),bi+=dt+ge.width),yn++;break;case ah:for(ft=0;ft<re;ft++)wt=te[ft],z=wt.Da,ge=yn===0?0:Ae,y?(wt.S.h(Se/2+a.focus.x,Si+ge),Ke=Math.max(Ke,z.width),at=Math.max(at,Si+ge+z.height),Si+=ge+z.height):(wt.S.h(bi+ge,Se/2+a.focus.y),Ke=Math.max(Ke,bi+ge+z.width),at=Math.max(at,z.height),bi+=ge+z.width),yn++}ft=_s(this,2),wt=_s(this,2),y?(ft[0].h(0,0),ft[1].h(0,at),wt[0].h(Ke,0)):(ft[0].h(0,0),ft[1].h(Ke,0),wt[0].h(0,at)),wt[1].h(Ke,at)}else for(ro=0;ro<re;ro++){var zo=te[ro],Ia=zo.Da;if(y){0<ge&&0<yn&&bi+Se+Ia.width>ge&&(bi<z&&ic(a,oe,z-bi,0,Sr,ro-1),Zn++,yn=0,Sr=ro,dt=at,bi=0,Si=135<b?-at-Ae:at+Ae),Tm(this,zo,0,Si);var Ha=0;if(yn===0)ft=zo.Yo,wt=zo.kp,Gt=Ia.width,oi=Ia.height,(ft===null||wt===null||b!==eu(zo))&&(ft=_s(this,2),wt=_s(this,2),ft[0].h(0,0),ft[1].h(0,oi),wt[0].h(Gt,0),wt[1].h(Gt,oi));else{var vs=Bn();oi=px(this,a,zo,ft,wt,Gt,oi,vs),Ha=oi.x,ft=vs[0],wt=vs[1],Gt=oi.width,oi=oi.height,Ot(vs),bi<Ia.width&&0>Ha&&(Gc(a,-Ha,0,Sr,ro-1),Om(ft,-Ha,0),Om(wt,-Ha,0),Ha=0)}zo.S.h(Ha,Si),Ke=Math.max(Ke,Gt),at=Math.max(at,dt+(Zn===0?0:Ae)+Ia.height),bi=Gt}else 0<ge&&0<yn&&Si+Se+Ia.height>ge&&(Si<z&&ic(a,oe,0,z-Si,Sr,ro-1),Zn++,yn=0,Sr=ro,dt=Ke,Si=0,bi=135<b?-Ke-Ae:Ke+Ae),Tm(this,zo,bi,0),Ha=0,yn===0?(ft=zo.Yo,wt=zo.kp,Gt=Ia.width,oi=Ia.height,(ft===null||wt===null||b!==eu(zo))&&(ft=_s(this,2),wt=_s(this,2),ft[0].h(0,0),ft[1].h(Gt,0),wt[0].h(0,oi),wt[1].h(Gt,oi))):(vs=Bn(),oi=px(this,a,zo,ft,wt,Gt,oi,vs),Ha=oi.x,ft=vs[0],wt=vs[1],Gt=oi.width,oi=oi.height,Ot(vs),Si<Ia.height&&0>Ha&&(Gc(a,0,-Ha,Sr,ro-1),Om(ft,0,-Ha),Om(wt,0,-Ha),Ha=0)),zo.S.h(bi,Ha),at=Math.max(at,oi),Ke=Math.max(Ke,dt+(Zn===0?0:Ae)+Ia.width),Si=oi;yn++}switch(0<Zn&&(y?(at+=Math.max(0,x),bi<Ke&&ic(a,oe,Ke-bi,0,Sr,re-1),0<Ne&&(le||Gc(a,Ne,0,0,re-1),Ke+=Ne)):(Ke+=Math.max(0,x),Si<at&&ic(a,oe,0,at-Si,Sr,re-1),0<Ne&&(le||Gc(a,0,Ne,0,re-1),at+=Ne))),Ne=le=0,oe){case $f:y?le+=Ke/2-a.focus.x-we/2:Ne+=at/2-a.focus.y-we/2;break;case _c:0<Zn?y?le+=Ke/2-a.focus.x-we/2:Ne+=at/2-a.focus.y-we/2:y?(sr=te[0].S.x+te[0].la.x,le+=sr+(te[re-1].S.x+te[re-1].la.x+2*te[re-1].focus.x-sr)/2-a.focus.x-we/2):(sr=te[0].S.y+te[0].la.y,Ne+=sr+(te[re-1].S.y+te[re-1].la.y+2*te[re-1].focus.y-sr)/2-a.focus.y-we/2);break;case Gu:y?(le-=we,Ke+=we):(Ne-=we,at+=we);break;case Vu:y?(le+=Ke-a.width+we,Ke+=we):(Ne+=at-a.height+we,at+=we);break;case Oh:y?1<re?le+=sr+Se/2-a.focus.x:le+=te[0].focus.x-a.focus.x+te[0].la.x:1<re?Ne+=sr+Se/2-a.focus.y:Ne+=te[0].focus.y-a.focus.y+te[0].la.y;break;case Ih:y?le+=Ke+Se/2-a.focus.x:Ne+=at+Se/2-a.focus.y;break;case ah:break;default:at=this.customAlignment(a,le,Ne,Ke,at),le=at[0],Ne=at[1],Ke=at[2],at=at[3]}for(we=0;we<re;we++)sr=te[we],y?sr.S.h(sr.S.x+sr.la.x-le,sr.S.y+(135<b?(he?-at:-sr.Da.height)+sr.la.y-x:$e+x+sr.la.y)):sr.S.h(sr.S.x+(135<b?(he?-Ke:-sr.Da.width)+sr.la.x-x:E+x+sr.la.x),sr.S.y+sr.la.y-Ne);if(re=te=0,he?y?(Ke=ky(a,Ke,le),0>le&&(le=0),135<b&&(Ne+=at+x),at+=$e+x,oe===ah&&(te+=Se/2+a.focus.x),re+=$e+x):(135<b&&(le+=Ke+x),Ke+=E+x,at=By(a,at,Ne),0>Ne&&(Ne=0),oe===ah&&(re+=Se/2+a.focus.y),te+=E+x):y?(a.comments===null?E>Ke&&(Ke=Ny(oe,E-Ke,0),te=Ke.x,re=Ke.y,Ke=E,le=0):Ke=ky(a,Ke,le),0>le&&(te-=le,le=0),135<b&&(Ne+=at+x),at=Math.max(Math.max(at,$e),at+$e+x),re+=$e+x):(135<b&&(le+=Ke+x),Ke=Math.max(Math.max(Ke,E),Ke+E+x),a.comments===null?$e>at&&(at=Ny(oe,0,$e-at),te=at.x,re=at.y,at=$e,Ne=0):at=By(a,at,Ne),0>Ne&&(re-=Ne,Ne=0),te+=E+x),0<Zn)b=_s(this,4),Zn=_s(this,4),y?(b[2].h(0,$e+x),b[3].h(b[2].x,at),Zn[2].h(Ke,b[2].y),Zn[3].h(Zn[2].x,b[3].y)):(b[2].h(E+x,0),b[3].h(Ke,b[2].y),Zn[2].h(b[2].x,at),Zn[3].h(b[3].x,Zn[2].y));else{for(b=_s(this,ft.length+2),Zn=_s(this,wt.length+2),oe=0;oe<ft.length;oe++)he=ft[oe],b[oe+2].h(he.x+te,he.y+re);for(oe=0;oe<wt.length;oe++)he=wt[oe],Zn[oe+2].h(he.x+te,he.y+re)}y?(b[0].h(le,0),b[1].h(b[0].x,$e),b[2].y<b[1].y&&(b[2].x>b[0].x?b[2].assign(b[1]):b[1].assign(b[2])),b[3].y<b[2].y&&(b[3].x>b[0].x?b[3].assign(b[2]):b[2].assign(b[3])),Zn[0].h(le+E,0),Zn[1].h(Zn[0].x,$e),Zn[2].y<Zn[1].y&&(Zn[2].x<Zn[0].x?Zn[2].assign(Zn[1]):Zn[1].assign(Zn[2])),Zn[3].y<Zn[2].y&&(Zn[3].x<Zn[0].x?Zn[3].assign(Zn[2]):Zn[2].assign(Zn[3])),b[2].y-=x/2,Zn[2].y-=x/2):(b[0].h(0,Ne),b[1].h(E,b[0].y),b[2].x<b[1].x&&(b[2].y>b[0].y?b[2].assign(b[1]):b[1].assign(b[2])),b[3].x<b[2].x&&(b[3].y>b[0].y?b[3].assign(b[2]):b[2].assign(b[3])),Zn[0].h(0,Ne+$e),Zn[1].h(E,Zn[0].y),Zn[2].x<Zn[1].x&&(Zn[2].y<Zn[0].y?Zn[2].assign(Zn[1]):Zn[1].assign(Zn[2])),Zn[3].x<Zn[2].x&&(Zn[3].y<Zn[0].y?Zn[3].assign(Zn[2]):Zn[2].assign(Zn[3])),b[2].x-=x/2,Zn[2].x-=x/2),uu(this,ft),uu(this,wt),a.Yo=b,a.kp=Zn,a.la.h(le,Ne),a.Da.h(Ke,at)}break;default:lt("Unhandled compaction value "+a.compaction.toString())}}};function cx(a,y){if(y.childrenCount===0){var x=!1,E=0;y.parent!==null&&(E=y.parent.angle,x=y.parent.alignment,x=xd(x));var b=Dy(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(E!==180&&E!==270||x)&&!b?y.la.h(0,0):E===180&&!x||(E===90||E===270)&&b?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{E=eu(y),x=E===90||E===270;var z=0;b=y.children;for(var te=b.length,re=0;re<te;re++){var oe=b[re];z=Math.max(z,x?oe.Da.width:oe.Da.height)}var le=y.alignment,he=le===Gu,ge=le===Vu;re=xd(le);var Se=Math.max(0,y.breadthLimit);oe=a.computeLayerSpacing(y);var we=y.nodeSpacing,Ae=a.computeNodeIndent(y),Ne=he||ge?0:Ae/2,$e=y.rowSpacing,Ke=0;(he||ge||y.hm||y.im&&y.maxGenerationCount===1)&&(Ke=Math.max(0,y.rowIndent)),he=y.width;var at=y.height,dt=0,ft=0,wt=0,Gt=0,oi=0,bi=0,Si=0,Zn=0,yn=0,Sr=0;if(re&&!bp(le)&&135<E&&b.reverse(),bp(le))if(1<te)for(var sr=0;sr<te;sr++){var ro=b[sr],zo=ro.Da;sr%2===0&&sr!==te-1?yn=Math.max(yn,(x?zo.width:zo.height)+a.computeBusNodeSpacing(ro)-we):sr%2!==0&&(Sr=Math.max(Sr,(x?zo.width:zo.height)+a.computeBusNodeSpacing(ro)-we))}else te===1&&(yn=x?b[0].Da.width:b[0].Da.height);if(re)switch(le){case Oh:case _u:ft=135>E?fx(a,y,b,yn,dt,ft):gx(a,y,b,yn,dt,ft),yn=ft.x,dt=ft.width,ft=ft.height;break;case Ih:for(Se=0;Se<te;Se++)Ne=b[Se],wt=Ne.Da,Sr=Si===0?0:$e,x?(Ne.S.h(z-wt.width,oi+Sr),dt=Math.max(dt,wt.width),ft=Math.max(ft,oi+Sr+wt.height),oi+=Sr+wt.height):(Ne.S.h(Gt+Sr,z-wt.height),dt=Math.max(dt,Gt+Sr+wt.width),ft=Math.max(ft,wt.height),Gt+=Sr+wt.width),Si++;break;case ah:for(z=0;z<te;z++)Se=b[z],Ne=Se.Da,wt=Si===0?0:$e,x?(Se.S.h(we/2+y.focus.x,oi+wt),dt=Math.max(dt,Ne.width),ft=Math.max(ft,oi+wt+Ne.height),oi+=wt+Ne.height):(Se.S.h(Gt+wt,we/2+y.focus.y),dt=Math.max(dt,Gt+wt+Ne.width),ft=Math.max(ft,Ne.height),Gt+=wt+Ne.width),Si++}else for(Sr=0;Sr<te;Sr++)sr=b[Sr],ro=sr.Da,x?(0<Se&&0<Si&&Gt+we+ro.width>Se&&(Gt<z&&ic(y,le,z-Gt,0,Zn,Sr-1),bi++,Si=0,Zn=Sr,wt=ft,Gt=0,oi=135<E?-ft-$e:ft+$e),zo=Si===0?Ne:we,Tm(a,sr,0,oi),sr.S.h(Gt+zo,oi),dt=Math.max(dt,Gt+zo+ro.width),ft=Math.max(ft,wt+(bi===0?0:$e)+ro.height),Gt+=zo+ro.width):(0<Se&&0<Si&&oi+we+ro.height>Se&&(oi<z&&ic(y,le,0,z-oi,Zn,Sr-1),bi++,Si=0,Zn=Sr,wt=dt,oi=0,Gt=135<E?-dt-$e:dt+$e),zo=Si===0?Ne:we,Tm(a,sr,Gt,0),sr.S.h(Gt,oi+zo),ft=Math.max(ft,oi+zo+ro.height),dt=Math.max(dt,wt+(bi===0?0:$e)+ro.width),oi+=zo+ro.height),Si++;switch(0<bi&&(x?(ft+=Math.max(0,oe),Gt<dt&&ic(y,le,dt-Gt,0,Zn,te-1),0<Ke&&(ge||Gc(y,Ke,0,0,te-1),dt+=Ke)):(dt+=Math.max(0,oe),oi<ft&&ic(y,le,0,ft-oi,Zn,te-1),0<Ke&&(ge||Gc(y,0,Ke,0,te-1),ft+=Ke))),Ke=ge=0,le){case $f:x?ge+=dt/2-y.focus.x-Ae/2:Ke+=ft/2-y.focus.y-Ae/2;break;case _c:0<bi?x?ge+=dt/2-y.focus.x-Ae/2:Ke+=ft/2-y.focus.y-Ae/2:x?(a=b[0].S.x+b[0].la.x,ge+=a+(b[te-1].S.x+b[te-1].la.x+2*b[te-1].focus.x-a)/2-y.focus.x-Ae/2):(a=b[0].S.y+b[0].la.y,Ke+=a+(b[te-1].S.y+b[te-1].la.y+2*b[te-1].focus.y-a)/2-y.focus.y-Ae/2);break;case Gu:x?(ge-=Ae,dt+=Ae):(Ke-=Ae,ft+=Ae);break;case Vu:x?(ge+=dt-y.width+Ae,dt+=Ae):(Ke+=ft-y.height+Ae,ft+=Ae);break;case Oh:case _u:x?1<te?ge+=yn+we/2-y.focus.x:ge+=b[0].focus.x-y.focus.x+b[0].la.x:1<te?Ke+=yn+we/2-y.focus.y:Ke+=b[0].focus.y-y.focus.y+b[0].la.y;break;case Ih:x?ge+=dt+we/2-y.focus.x:Ke+=ft+we/2-y.focus.y;break;case ah:break;default:a=a.customAlignment(y,ge,Ke,dt,ft),ge=a[0],Ke=a[1],dt=a[2],ft=a[3]}for(a=0;a<te;a++)Ae=b[a],x?Ae.S.h(Ae.S.x+Ae.la.x-ge,Ae.S.y+(135<E?(re?-ft:-Ae.Da.height)+Ae.la.y-oe:at+oe+Ae.la.y)):Ae.S.h(Ae.S.x+(135<E?(re?-dt:-Ae.Da.width)+Ae.la.x-oe:he+oe+Ae.la.x),Ae.S.y+Ae.la.y-Ke);x?(dt=ky(y,dt,ge),0>ge&&(ge=0),135<E&&(Ke+=ft+oe),ft=Math.max(Math.max(ft,at),ft+at+oe)):(135<E&&(ge+=dt+oe),dt=Math.max(Math.max(dt,he),dt+he+oe),ft=By(y,ft,Ke),0>Ke&&(Ke=0)),y.la.h(ge,Ke),y.Da.h(dt,ft)}}jr.prototype.customAlignment=function(a,y,x,E,b){return[y,x,E,b]};function fx(a,y,x,E,b,z){var te=x.length;if(te===0)return new pt(E,0,b,z);if(te===1)return y=x[0],b=y.Da.width,z=y.Da.height,new pt(E,0,b,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,le=eu(y)===90,he=0,ge=0,Se=0,we=0;we<te;we++)if(!(we%2!==0||1<te&&we===te-1)){var Ae=x[we],Ne=Ae.Da,$e=he===0?0:oe;if(le){var Ke=a.computeBusNodeSpacing(Ae)-re;Ae.S.h(E-(Ne.width+Ke),Se+$e),b=Math.max(b,Ne.width+Ke),z=Math.max(z,Se+$e+Ne.height),Se+=$e+Ne.height}else Ke=a.computeBusNodeSpacing(Ae)-re,Ae.S.h(ge+$e,E-(Ne.height+Ke)),z=Math.max(z,Ne.height+Ke),b=Math.max(b,ge+$e+Ne.width),ge+=$e+Ne.width;he++}for(he=0,Ae=ge,we=Se,le?(ge=E+re,Se=0):(ge=0,Se=E+re),Ne=0;Ne<te;Ne++)if(Ne%2!==0){$e=x[Ne],Ke=$e.Da;var at=he===0?0:oe;if(le){var dt=a.computeBusNodeSpacing($e)-re;$e.S.h(ge+dt,Se+at),b=Math.max(b,ge+Ke.width+dt),z=Math.max(z,Se+at+Ke.height),Se+=at+Ke.height}else dt=a.computeBusNodeSpacing($e)-re,$e.S.h(ge+at,Se+dt),b=Math.max(b,ge+at+Ke.width),z=Math.max(z,Se+Ke.height+dt),ge+=at+Ke.width;he++}return 1<te&&te%2===1&&(x=x[te-1],te=x.Da,a=a.computeBusLastRowSpacing(x,le?Math.max(Math.abs(we),Math.abs(Se)):Math.max(Math.abs(Ae),Math.abs(ge))),le?(x.S.h(E+re/2-x.focus.x-x.la.x,z+a),le=E+re/2-x.focus.x-x.la.x,b=Math.max(b,le+te.width),0>le&&(b-=le),z=Math.max(z,Math.max(we,Se)+a+te.height),0>x.S.x&&(E=Nm(y,x.S.x,!1,E,re))):(x.S.h(b+a,E+re/2-x.focus.y-x.la.y),b=Math.max(b,Math.max(Ae,ge)+a+te.width),Se=E+re/2-x.focus.y-x.la.y,z=Math.max(z,Se+te.height),0>Se&&(z-=Se),0>x.S.y&&(E=Nm(y,x.S.y,!0,E,re)))),new pt(E,0,b,z)}function gx(a,y,x,E,b,z){var te=x.length;if(te===0)return new pt(E,0,b,z);if(te===1)return x=x[0],b=x.Da.width,z=x.Da.height,new pt(E,0,b,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,le=eu(y)===270,he=0,ge=0,Se=0,we=0;we<te;we++)if(!(we%2!==0||1<te&&we===te-1)){var Ae=x[we],Ne=Ae.Da,$e=he===0?0:oe;if(le){var Ke=a.computeBusNodeSpacing(Ae)-re;Se-=$e+Ne.height,Ae.S.h(E-(Ne.width+Ke),Se),b=Math.max(b,Ne.width+Ke),z=Math.max(z,Math.abs(Se))}else Ke=a.computeBusNodeSpacing(Ae)-re,ge-=$e+Ne.width,Ae.S.h(ge,E-(Ne.height+Ke)),z=Math.max(z,Ne.height+Ke),b=Math.max(b,Math.abs(ge));he++}for(he=0,Ae=ge,we=Se,le?(ge=E+re,Se=0):(ge=0,Se=E+re),Ne=0;Ne<te;Ne++)if(Ne%2!==0){$e=x[Ne],Ke=$e.Da;var at=he===0?0:oe;if(le){var dt=a.computeBusNodeSpacing($e)-re;Se-=at+Ke.height,$e.S.h(ge+dt,Se),b=Math.max(b,ge+Ke.width+dt),z=Math.max(z,Math.abs(Se))}else dt=a.computeBusNodeSpacing($e)-re,ge-=at+Ke.width,$e.S.h(ge,Se+dt),z=Math.max(z,Se+Ke.height+dt),b=Math.max(b,Math.abs(ge));he++}for(1<te&&te%2===1&&(oe=x[te-1],he=oe.Da,a=a.computeBusLastRowSpacing(oe,le?Math.max(Math.abs(we),Math.abs(Se)):Math.max(Math.abs(Ae),Math.abs(ge))),le?(oe.S.h(E+re/2-oe.focus.x-oe.la.x,-z-he.height-a),ge=E+re/2-oe.focus.x-oe.la.x,b=Math.max(b,ge+he.width),0>ge&&(b-=ge),z=Math.max(z,Math.abs(Math.min(we,Se))+a+he.height),0>oe.S.x&&(E=Nm(y,oe.S.x,!1,E,re))):(oe.S.h(-b-he.width-a,E+re/2-oe.focus.y-oe.la.y),b=Math.max(b,Math.abs(Math.min(Ae,ge))+a+he.width),Se=E+re/2-oe.focus.y-oe.la.y,z=Math.max(z,Se+he.height),0>Se&&(z-=Se),0>oe.S.y&&(E=Nm(y,oe.S.y,!0,E,re)))),y=0;y<te;y++)re=x[y],le?re.S.h(re.S.x,re.S.y+z):re.S.h(re.S.x+b,re.S.y);return new pt(E,0,b,z)}jr.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},jr.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function Nm(a,y,x,E,b){a=a.children;for(var z=a.length,te=0;te<z;te++)x?a[te].S.h(a[te].S.x,a[te].S.y-y):a[te].S.h(a[te].S.x-y,a[te].S.y);return y=a[z-1],Math.max(E,x?y.la.y+y.focus.y-b/2:y.la.x+y.focus.x-b/2)}function ky(a,y,x){switch(a.alignment){case _c:case $f:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case Gu:return a.width>y?a.width:y;case Vu:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Oh:case _u:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case Ih:return a.width-a.focus.x+a.nodeSpacing/2+y;case ah:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function By(a,y,x){switch(a.alignment){case _c:case $f:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Gu:return a.height>y?a.height:y;case Vu:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Oh:case _u:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case Ih:return a.height-a.focus.y+a.nodeSpacing/2+y;case ah:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Ny(a,y,x){switch(a){case $f:y/=2,x/=2;break;case _c:y/=2,x/=2;break;case Gu:x=y=0;break;case Vu:break;default:lt("Unhandled alignment value "+a.toString())}return new je(y,x)}function ic(a,y,x,E,b,z){y=Ny(y,x,E),Gc(a,y.x,y.y,b,z)}function Gc(a,y,x,E,b){if(y!==0||x!==0)for(a=a.children;E<=b;E++){var z=a[E].S;z.x+=y,z.y+=x}}function Tm(a,y,x,E){var b=y.parent;switch(a.ud){case Hu:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===b&&y.relativePoint.h(x,E);break;case Vc:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===b&&y.relativePoint.h(x,E);break;default:lt("Unhandled path value "+a.ud.toString())}}function Om(a,y,x){for(var E=0;E<a.length;E++){var b=a[E];b.x+=y,b.y+=x}}function px(a,y,x,E,b,z,te,re){var oe=eu(y),le=oe===90||oe===270,he=y.nodeSpacing;y=E;var ge=b;E=z;var Se=te,we=x.Yo,Ae=x.kp;te=x.Da;var Ne=le?Math.max(Se,te.height):Math.max(E,te.width);if((we===null||oe!==eu(x))&&(we=_s(a,2),Ae=_s(a,2),le?(we[0].h(0,0),we[1].h(0,te.height),Ae[0].h(te.width,0),Ae[1].h(Ae[0].x,we[1].y)):(we[0].h(0,0),we[1].h(te.width,0),Ae[0].h(0,te.height),Ae[1].h(we[1].x,Ae[0].y))),le){if(Se=9999999,!(ge===null||2>ge.length||we===null||2>we.length))for(b=x=0;x<ge.length&&b<we.length;){z=ge[x];var $e=we[b];oe=$e.x,le=$e.y,oe+=E;var Ke=z;x+1<ge.length&&(Ke=ge[x+1]);var at=$e;$e=at.x,at=at.y,b+1<we.length&&(at=we[b+1],$e=at.x,at=at.y,$e+=E);var dt=Se;z.y===le?dt=oe-z.x:z.y>le&&z.y<at?dt=oe+(z.y-le)/(at-le)*($e-oe)-z.x:le>z.y&&le<Ke.y&&(dt=oe-(z.x+(le-z.y)/(Ke.y-z.y)*(Ke.x-z.x))),dt<Se&&(Se=dt),Ke.y<=z.y?x++:at<=le?b++:(Ke.y<=at&&x++,at<=Ke.y&&b++)}if(Se=E-Se,Se+=he,x=we,b=Se,y===null||2>y.length||x===null||2>x.length)E=null;else{for(he=_s(a,y.length+x.length),E=z=oe=0;z<x.length&&x[z].y<y[0].y;)le=x[z++],he[E++].h(le.x+b,le.y);for(;oe<y.length;)le=y[oe++],he[E++].h(le.x,le.y);for(oe=y[y.length-1].y;z<x.length&&x[z].y<=oe;)z++;for(;z<x.length&&x[z].y>oe;)le=x[z++],he[E++].h(le.x+b,le.y);for(x=_s(a,E),oe=0;oe<E;oe++)x[oe].assign(he[oe]);uu(a,he),E=x}if(z=Ae,oe=Se,ge===null||2>ge.length||z===null||2>z.length)b=null;else{for(he=_s(a,ge.length+z.length),b=le=x=0;x<ge.length&&ge[x].y<z[0].y;)Ke=ge[x++],he[b++].h(Ke.x,Ke.y);for(;le<z.length;)Ke=z[le++],he[b++].h(Ke.x+oe,Ke.y);for(z=z[z.length-1].y;x<ge.length&&ge[x].y<=z;)x++;for(;x<ge.length&&ge[x].y>z;)oe=ge[x++],he[b++].h(oe.x,oe.y);for(z=_s(a,b),x=0;x<b;x++)z[x].assign(he[x]);uu(a,he),b=z}return z=Math.max(0,Se)+te.width,te=Ne,uu(a,y),uu(a,we),uu(a,ge),uu(a,Ae),re[0]=E,re[1]=b,new pt(Se,0,z,te)}if(E=9999999,!(ge===null||2>ge.length||we===null||2>we.length))for(b=x=0;x<ge.length&&b<we.length;)z=ge[x],$e=we[b],oe=$e.x,le=$e.y,le+=Se,Ke=z,x+1<ge.length&&(Ke=ge[x+1]),at=$e,$e=at.x,at=at.y,b+1<we.length&&(at=we[b+1],$e=at.x,at=at.y,at+=Se),dt=E,z.x===oe?dt=le-z.y:z.x>oe&&z.x<$e?dt=le+(z.x-oe)/($e-oe)*(at-le)-z.y:oe>z.x&&oe<Ke.x&&(dt=le-(z.y+(oe-z.x)/(Ke.x-z.x)*(Ke.y-z.y))),dt<E&&(E=dt),Ke.x<=z.x?x++:$e<=oe?b++:(Ke.x<=$e&&x++,$e<=Ke.x&&b++);if(Se-=E,Se+=he,x=we,b=Se,y===null||2>y.length||x===null||2>x.length)E=null;else{for(he=_s(a,y.length+x.length),E=z=oe=0;z<x.length&&x[z].x<y[0].x;)le=x[z++],he[E++].h(le.x,le.y+b);for(;oe<y.length;)le=y[oe++],he[E++].h(le.x,le.y);for(oe=y[y.length-1].x;z<x.length&&x[z].x<=oe;)z++;for(;z<x.length&&x[z].x>oe;)le=x[z++],he[E++].h(le.x,le.y+b);for(x=_s(a,E),oe=0;oe<E;oe++)x[oe].assign(he[oe]);uu(a,he),E=x}if(z=Ae,oe=Se,ge===null||2>ge.length||z===null||2>z.length)b=null;else{for(he=_s(a,ge.length+z.length),b=le=x=0;x<ge.length&&ge[x].x<z[0].x;)Ke=ge[x++],he[b++].h(Ke.x,Ke.y);for(;le<z.length;)Ke=z[le++],he[b++].h(Ke.x,Ke.y+oe);for(z=z[z.length-1].x;x<ge.length&&ge[x].x<=z;)x++;for(;x<ge.length&&ge[x].x>z;)oe=ge[x++],he[b++].h(oe.x,oe.y);for(z=_s(a,b),x=0;x<b;x++)z[x].assign(he[x]);uu(a,he),b=z}return z=Ne,te=Math.max(0,Se)+te.height,uu(a,y),uu(a,we),uu(a,ge),uu(a,Ae),re[0]=E,re[1]=b,new pt(Se,0,z,te)}function _s(a,y){if(a=a.ru[y],a!==void 0&&(a=a.pop(),a!==void 0))return a;a=[];for(var x=0;x<y;x++)a[x]=new je;return a}function uu(a,y){var x=y.length,E=a.ru[x];E===void 0&&(E=[],a.ru[x]=E),E.push(y)}jr.prototype.arrangeTrees=function(){if(this.Rb===Zm)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof zl){var x=y.node;if(x!==null){var E=x.position;x=E.x,E=E.y,isFinite(x)||(x=0),isFinite(E)||(E=0),Ty(this,y,x,E)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof zl&&a.push(x);switch(this.sorting){case qf:break;case Dp:a.reverse();break;case kp:a.sort(this.comparer);break;case Bp:a.sort(this.comparer),a.reverse();break;default:lt("Unhandled sorting value "+this.sorting.toString())}for(x=this.arrangementOrigin,y=x.x,x=x.y,E=0;E<a.length;E++){var b=a[E];switch(Ty(this,b,y+b.la.x,x+b.la.y),this.Rb){case zm:x+=b.Da.height+this.$d.height;break;case jy:y+=b.Da.width+this.$d.width;break;default:lt("Unhandled arrangement value "+this.Rb.toString())}}}};function Ty(a,y,x,E){if(y!==null){y.x=x,y.y=E,y=y.children;for(var b=y.length,z=0;z<b;z++){var te=y[z];Ty(a,te,x+te.S.x,E+te.S.y)}}}jr.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},jr.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},jr.prototype.Gu=function(){if(this.layerStyle===Wm){for(var a=this.$v,y=[],x=null,E=this.network.vertexes.iterator;E.next();){var b=E.value;x===null?x=b.bounds.copy():x.ed(b.bounds);var z=y[b.level];z===void 0?z=this.computeLayerSpacing(b):z=Math.max(z,this.computeLayerSpacing(b)),y[b.level]=z}for(E=0;E<y.length;E++)y[E]===void 0&&(y[E]=0);if(this.angle===90||this.angle===270?(x.Bc(this.nodeSpacing/2,this.layerSpacing),E=new je(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),E=new je(-this.layerSpacing/2,-this.nodeSpacing/2)),b=[],x=this.angle===90||this.angle===270?x.width:x.height,z=0,this.angle===180||this.angle===270)for(var te=0;te<a.length;te++)z+=a[te]+y[te];for(te=0;te<a.length;te++){var re=a[te]+y[te];this.angle===270?(z-=re,b.push(new pt(0,z,x,re))):this.angle===90?(b.push(new pt(0,z,x,re)),z+=re):this.angle===180?(z-=re,b.push(new pt(z,0,re,x))):(b.push(new pt(z,0,re,x)),z+=re)}this.commitLayers(b,E)}},jr.prototype.commitLayers=function(){},jr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},jr.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof zl&&mx(this,y)}};function mx(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,E=0;E<x;E++)mx(a,y[E])}}jr.prototype.setPortSpots=function(a){var y=a.alignment;if(xd(y)){var x=this.ud===Hu,E=eu(a);switch(E){case 0:var b=uo;break;case 90:b=Do;break;case 180:b=so;break;default:b=Kr}var z=a.children,te=z.length;switch(y){case Oh:case _u:for(y=0;y<te;y++){var re=z[y];if(re=(x?re.sourceEdges:re.destinationEdges).first(),re!==null&&(re=re.link,re!==null)){var oe=E===90||E===270?so:Kr;if(te===1||y===te-1&&te%2===1)switch(E){case 0:oe=so;break;case 90:oe=Kr;break;case 180:oe=uo;break;default:oe=Do}else y%2===0&&(oe=E===90||E===270?uo:Do);x?(a.setsPortSpot&&(re.fromSpot=b),a.setsChildPortSpot&&(re.toSpot=oe)):(a.setsPortSpot&&(re.fromSpot=oe),a.setsChildPortSpot&&(re.toSpot=b))}}break;case Ih:for(E=E===90||E===270?uo:Do,z=x?a.destinationEdges:a.sourceEdges;z.next();)te=z.value.link,te!==null&&(x?(a.setsPortSpot&&(te.fromSpot=b),a.setsChildPortSpot&&(te.toSpot=E)):(a.setsPortSpot&&(te.fromSpot=E),a.setsChildPortSpot&&(te.toSpot=b)));break;case ah:for(E=E===90||E===270?so:Kr,z=x?a.destinationEdges:a.sourceEdges;z.next();)te=z.value.link,te!==null&&(x?(a.setsPortSpot&&(te.fromSpot=b),a.setsChildPortSpot&&(te.toSpot=E)):(a.setsPortSpot&&(te.fromSpot=E),a.setsChildPortSpot&&(te.toSpot=b)))}}else if(x=eu(a),this.ud===Hu){for(b=a.destinationEdges;b.next();)if(E=b.value.link,E!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:E.fromSpot=uo;break;case 90:E.fromSpot=Do;break;case 180:E.fromSpot=so;break;default:E.fromSpot=Kr}else E.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.toSpot=so;break;case 90:E.toSpot=Kr;break;case 180:E.toSpot=uo;break;default:E.toSpot=Do}else E.toSpot=a.childPortSpot}}else for(b=a.sourceEdges;b.next();)if(E=b.value.link,E!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:E.toSpot=uo;break;case 90:E.toSpot=Do;break;case 180:E.toSpot=so;break;default:E.toSpot=Kr}else E.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.fromSpot=so;break;case 90:E.fromSpot=Kr;break;case 180:E.fromSpot=uo;break;default:E.fromSpot=Do}else E.fromSpot=a.childPortSpot}};function eu(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}jr.prototype.computeLayerSpacing=function(a){var y=eu(a);y=y===90||y===270;var x=a.layerSpacing;if(0<a.layerSpacingParentOverlap){var E=Math.min(1,a.layerSpacingParentOverlap);x-=y?a.height*E:a.width*E}return x<(y?-a.height:-a.width)&&(x=y?-a.height:-a.width),x},jr.prototype.computeNodeIndent=function(a){var y=eu(a),x=a.nodeIndent;if(0<a.nodeIndentPastParent){var E=Math.min(1,a.nodeIndentPastParent);x+=y===90||y===270?a.width*E:a.height*E}return x=Math.max(0,x)},pn.Object.defineProperties(jr.prototype,{roots:{get:function(){return this.Ub},set:function(a){this.Ub!==a&&(this.Ub=a,this.C())}},path:{get:function(){return this.Wn},set:function(a){this.Wn!==a&&(this.Wn=a,this.C())}},treeStyle:{get:function(){return this.vo},set:function(a){this.Rb===a||a!==jm&&a!==Iy&&a!==Oy&&a!==Ry||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==zy&&a!==Zy&&a!==Wm||(this.Bq=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==zm&&a!==jy&&a!==Zm||(this.Rb=a,this.C())}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},rootDefaults:{get:function(){return this.W},set:function(a){this.W!==a&&(this.W=a,this.C())}},alternateDefaults:{get:function(){return this.Y},set:function(a){this.Y!==a&&(this.Y=a,this.C())}},sorting:{get:function(){return this.W.sorting},set:function(a){this.W.sorting===a||a!==qf&&a!==Dp&&a!==kp&&!Bp||(this.W.sorting=a,this.C())}},comparer:{get:function(){return this.W.comparer},set:function(a){this.W.comparer!==a&&(this.W.comparer=a,this.C())}},angle:{get:function(){return this.W.angle},set:function(a){this.W.angle!==a&&(a===0||a===90||a===180||a===270?(this.W.angle=a,this.C()):lt("TreeLayout.angle must be 0, 90, 180, or 270"))}},alignment:{get:function(){return this.W.alignment},set:function(a){this.W.alignment!==a&&(this.W.alignment=a,this.C())}},nodeIndent:{get:function(){return this.W.nodeIndent},set:function(a){this.W.nodeIndent!==a&&0<=a&&(this.W.nodeIndent=a,this.C())}},nodeIndentPastParent:{get:function(){return this.W.nodeIndentPastParent},set:function(a){this.W.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.W.nodeIndentPastParent=a,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(a){this.W.nodeSpacing!==a&&(this.W.nodeSpacing=a,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(a){this.W.layerSpacing!==a&&(this.W.layerSpacing=a,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(a){this.W.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.W.layerSpacingParentOverlap=a,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(a){this.W.compaction===a||a!==Rm&&a!==Np||(this.W.compaction=a,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(a){this.W.breadthLimit!==a&&0<=a&&(this.W.breadthLimit=a,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(a){this.W.rowSpacing!==a&&(this.W.rowSpacing=a,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(a){this.W.rowIndent!==a&&0<=a&&(this.W.rowIndent=a,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(a){this.W.commentSpacing!==a&&(this.W.commentSpacing=a,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(a){this.W.commentMargin!==a&&(this.W.commentMargin=a,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(a){this.W.setsPortSpot!==a&&(this.W.setsPortSpot=a,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(a){this.W.portSpot.D(a)||(this.W.portSpot=a,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(a){this.W.setsChildPortSpot!==a&&(this.W.setsChildPortSpot=a,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(a){this.W.childPortSpot.D(a)||(this.W.childPortSpot=a,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(a){this.Y.sorting===a||a!==qf&&a!==Dp&&a!==kp&&!Bp||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==Rm&&a!==Np||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var Im=new Kt(jr,"PathDefault",-1),Hu=new Kt(jr,"PathDestination",0),Vc=new Kt(jr,"PathSource",1),qf=new Kt(jr,"SortingForwards",10),Dp=new Kt(jr,"SortingReverse",11),kp=new Kt(jr,"SortingAscending",12),Bp=new Kt(jr,"SortingDescending",13),$f=new Kt(jr,"AlignmentCenterSubtrees",20),_c=new Kt(jr,"AlignmentCenterChildren",21),Gu=new Kt(jr,"AlignmentStart",22),Vu=new Kt(jr,"AlignmentEnd",23),Oh=new Kt(jr,"AlignmentBus",24),_u=new Kt(jr,"AlignmentBusBranching",25),Ih=new Kt(jr,"AlignmentTopLeftBus",26),ah=new Kt(jr,"AlignmentBottomRightBus",27),Rm=new Kt(jr,"CompactionNone",30),Np=new Kt(jr,"CompactionBlock",31),jm=new Kt(jr,"StyleLayered",40),Oy=new Kt(jr,"StyleLastParents",41),Iy=new Kt(jr,"StyleAlternating",42),Ry=new Kt(jr,"StyleRootOnly",43),zm=new Kt(jr,"ArrangementVertical",50),jy=new Kt(jr,"ArrangementHorizontal",51),Zm=new Kt(jr,"ArrangementFixedRoots",52),zy=new Kt(jr,"LayerIndividual",60),Zy=new Kt(jr,"LayerSiblings",61),Wm=new Kt(jr,"LayerUniform",62);jr.className="TreeLayout",jr.PathDefault=Im,jr.PathDestination=Hu,jr.PathSource=Vc,jr.SortingForwards=qf,jr.SortingReverse=Dp,jr.SortingAscending=kp,jr.SortingDescending=Bp,jr.AlignmentCenterSubtrees=$f,jr.AlignmentCenterChildren=_c,jr.AlignmentStart=Gu,jr.AlignmentEnd=Vu,jr.AlignmentBus=Oh,jr.AlignmentBusBranching=_u,jr.AlignmentTopLeftBus=Ih,jr.AlignmentBottomRightBus=ah,jr.CompactionNone=Rm,jr.CompactionBlock=Np,jr.StyleLayered=jm,jr.StyleLastParents=Oy,jr.StyleAlternating=Iy,jr.StyleRootOnly=Ry,jr.ArrangementVertical=zm,jr.ArrangementHorizontal=jy,jr.ArrangementFixedRoots=Zm,jr.LayerIndividual=zy,jr.LayerSiblings=Zy,jr.LayerUniform=Wm;function Yc(a){Ho.call(this,a)}Zt(Yc,Ho),Yc.prototype.createVertex=function(){return new zl(this)},Yc.prototype.createEdge=function(){return new eg(this)},Yc.className="TreeNetwork";function zl(a){Ba.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new je(0,0),this.Da=new Xe(0,0),this.la=new je(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=qf,this.hd=ay,this.Kb=0,this.Jb=_c,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Np,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Eo,this.wr=!0,this.Dp=Eo}Zt(zl,Ba),zl.prototype.copyInheritedPropertiesFrom=function(a){a!==null&&(this.nd=a.sorting,this.hd=a.comparer,this.Kb=a.angle,this.Jb=a.alignment,this.Uq=a.nodeIndent,this.Vq=a.nodeIndentPastParent,this.Wq=a.nodeSpacing,this.ie=a.layerSpacing,this.Aq=a.layerSpacingParentOverlap,this.Hp=a.compaction,this.Ap=a.breadthLimit,this.nr=a.rowSpacing,this.mr=a.rowIndent,this.Gp=a.commentSpacing,this.Fp=a.commentMargin,this.xr=a.setsPortSpot,this.dr=a.portSpot,this.wr=a.setsChildPortSpot,this.Dp=a.childPortSpot)},pn.Object.defineProperties(zl.prototype,{initialized:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},parent:{get:function(){return this.hb},set:function(a){this.hb!==a&&(this.hb=a)}},children:{get:function(){return this.u},set:function(a){if(this.u!==a){if(a!==null)for(var y=a.length,x=0;x<y;x++);this.u=a}}},level:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},descendantCount:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},maxChildrenCount:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},maxGenerationCount:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a)}},comments:{get:function(){return this.td},set:function(a){if(this.td!==a){if(a!==null)for(var y=a.length,x=0;x<y;x++);this.td=a}}},sorting:{get:function(){return this.nd},set:function(a){this.nd!==a&&(this.nd=a)}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a)}},angle:{get:function(){return this.Kb},set:function(a){this.Kb!==a&&(this.Kb=a)}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb!==a&&(this.Jb=a)}},nodeIndent:{get:function(){return this.Uq},set:function(a){this.Uq!==a&&(this.Uq=a)}},nodeIndentPastParent:{get:function(){return this.Vq},set:function(a){this.Vq!==a&&(this.Vq=a)}},nodeSpacing:{get:function(){return this.Wq},set:function(a){this.Wq!==a&&(this.Wq=a)}},layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&(this.ie=a)}},layerSpacingParentOverlap:{get:function(){return this.Aq},set:function(a){this.Aq!==a&&(this.Aq=a)}},compaction:{get:function(){return this.Hp},set:function(a){this.Hp!==a&&(this.Hp=a)}},breadthLimit:{get:function(){return this.Ap},set:function(a){this.Ap!==a&&(this.Ap=a)}},rowSpacing:{get:function(){return this.nr},set:function(a){this.nr!==a&&(this.nr=a)}},rowIndent:{get:function(){return this.mr},set:function(a){this.mr!==a&&(this.mr=a)}},commentSpacing:{get:function(){return this.Gp},set:function(a){this.Gp!==a&&(this.Gp=a)}},commentMargin:{get:function(){return this.Fp},set:function(a){this.Fp!==a&&(this.Fp=a)}},setsPortSpot:{get:function(){return this.xr},set:function(a){this.xr!==a&&(this.xr=a)}},portSpot:{get:function(){return this.dr},set:function(a){this.dr.D(a)||(this.dr=a)}},setsChildPortSpot:{get:function(){return this.wr},set:function(a){this.wr!==a&&(this.wr=a)}},childPortSpot:{get:function(){return this.Dp},set:function(a){this.Dp.D(a)||(this.Dp=a)}},childrenCount:{get:function(){return this.children.length}},relativePosition:{get:function(){return this.S},set:function(a){this.S.set(a)}},subtreeSize:{get:function(){return this.Da},set:function(a){this.Da.set(a)}},subtreeOffset:{get:function(){return this.la},set:function(a){this.la.set(a)}}}),zl.className="TreeVertex";function eg(a){el.call(this,a),this.$t=new je(0,0)}Zt(eg,el),eg.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,x=null,E=null;switch(y.ud){case Hu:x=this.fromVertex,E=this.toVertex;break;case Vc:x=this.toVertex,E=this.fromVertex;break;default:lt("Unhandled path value "+y.ud.toString())}if(x!==null&&E!==null){var b=this.$t;if(b.x!==0||b.y!==0||x.qA){E=x.bounds;var z=eu(x),te=y.computeLayerSpacing(x),re=x.rowSpacing;a.vg();var oe=a.curve===hl,le=a.isOrthogonal,he;if(a.uh(),le||oe){for(he=2;4<a.pointsCount;)a.pv(2);var ge=a.i(1),Se=a.i(2)}else{for(he=1;3<a.pointsCount;)a.pv(1);ge=a.i(0),Se=a.i(a.pointsCount-1)}var we=a.i(a.pointsCount-1);z===0?(x.alignment===Vu?(z=E.bottom+b.y,b.y===0&&ge.y>we.y+x.rowIndent&&(z=Math.min(z,Math.max(ge.y,z-y.computeNodeIndent(x))))):x.alignment===Gu?(z=E.top+b.y,b.y===0&&ge.y<we.y-x.rowIndent&&(z=Math.max(z,Math.min(ge.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.top-x.la.y+b.y:E.y+E.height/2+b.y,oe?(a.m(he,ge.x,z),he++,a.m(he,E.right+te,z),he++,a.m(he,E.right+te+(b.x-re)/3,z),he++,a.m(he,E.right+te+2*(b.x-re)/3,z),he++,a.m(he,E.right+te+(b.x-re),z),he++,a.m(he,Se.x,z)):(le&&(a.m(he,E.right+te/2,ge.y),he++),a.m(he,E.right+te/2,z),he++,a.m(he,E.right+te+b.x-(le?re/2:re),z),he++,le&&a.m(he,a.i(he-1).x,Se.y))):z===90?(x.alignment===Vu?(z=E.right+b.x,b.x===0&&ge.x>we.x+x.rowIndent&&(z=Math.min(z,Math.max(ge.x,z-y.computeNodeIndent(x))))):x.alignment===Gu?(z=E.left+b.x,b.x===0&&ge.x<we.x-x.rowIndent&&(z=Math.max(z,Math.min(ge.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.left-x.la.x+b.x:E.x+E.width/2+b.x,oe?(a.m(he,z,ge.y),he++,a.m(he,z,E.bottom+te),he++,a.m(he,z,E.bottom+te+(b.y-re)/3),he++,a.m(he,z,E.bottom+te+2*(b.y-re)/3),he++,a.m(he,z,E.bottom+te+(b.y-re)),he++,a.m(he,z,Se.y)):(le&&(a.m(he,ge.x,E.bottom+te/2),he++),a.m(he,z,E.bottom+te/2),he++,a.m(he,z,E.bottom+te+b.y-(le?re/2:re)),he++,le&&a.m(he,Se.x,a.i(he-1).y))):z===180?(x.alignment===Vu?(z=E.bottom+b.y,b.y===0&&ge.y>we.y+x.rowIndent&&(z=Math.min(z,Math.max(ge.y,z-y.computeNodeIndent(x))))):x.alignment===Gu?(z=E.top+b.y,b.y===0&&ge.y<we.y-x.rowIndent&&(z=Math.max(z,Math.min(ge.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.top-x.la.y+b.y:E.y+E.height/2+b.y,oe?(a.m(he,ge.x,z),he++,a.m(he,E.left-te,z),he++,a.m(he,E.left-te+(b.x+re)/3,z),he++,a.m(he,E.left-te+2*(b.x+re)/3,z),he++,a.m(he,E.left-te+(b.x+re),z),he++,a.m(he,Se.x,z)):(le&&(a.m(he,E.left-te/2,ge.y),he++),a.m(he,E.left-te/2,z),he++,a.m(he,E.left-te+b.x+(le?re/2:re),z),he++,le&&a.m(he,a.i(he-1).x,Se.y))):z===270?(x.alignment===Vu?(z=E.right+b.x,b.x===0&&ge.x>we.x+x.rowIndent&&(z=Math.min(z,Math.max(ge.x,z-y.computeNodeIndent(x))))):x.alignment===Gu?(z=E.left+b.x,b.x===0&&ge.x<we.x-x.rowIndent&&(z=Math.max(z,Math.min(ge.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.left-x.la.x+b.x:E.x+E.width/2+b.x,oe?(a.m(he,z,ge.y),he++,a.m(he,z,E.top-te),he++,a.m(he,z,E.top-te+(b.y+re)/3),he++,a.m(he,z,E.top-te+2*(b.y+re)/3),he++,a.m(he,z,E.top-te+(b.y+re)),he++,a.m(he,z,Se.y)):(le&&(a.m(he,ge.x,E.top-te/2),he++),a.m(he,z,E.top-te/2),he++,a.m(he,z,E.top-te+b.y+(le?re/2:re)),he++,le&&a.m(he,Se.x,a.i(he-1).y))):lt("Invalid angle "+z),a.zf()}else b=E,a=this.link,E=this.network.layout,y=eu(x),y!==eu(b)&&(te=E.computeLayerSpacing(x),re=x.bounds,x=b.bounds,y===0&&x.left-re.right<te+1||y===90&&x.top-re.bottom<te+1||y===180&&re.left-x.right<te+1||y===270&&re.top-x.bottom<te+1||(a.vg(),x=a.curve===hl,b=a.isOrthogonal,E=xd(this.fromVertex.alignment),a.uh(),y===0?(y=re.right+te/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y-20,a.i(1).y),a.m(2,y-20,x),a.m(3,y,x),a.m(4,y+20,x),a.L(5,a.i(5).x,x)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===90?(y=re.bottom+te/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y-20),a.m(2,x,y-20),a.m(3,x,y),a.m(4,x,y+20),a.L(5,x,a.i(5).y)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)):y===180?(y=re.left-te/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y+20,a.i(1).y),a.m(2,y+20,x),a.m(3,y,x),a.m(4,y-20,x),a.L(5,a.i(5).x,x)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===270&&(y=re.top-te/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y+20),a.m(2,x,y+20),a.m(3,x,y),a.m(4,x,y-20),a.L(5,x,a.i(5).y)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)),a.zf()))}}},pn.Object.defineProperties(eg.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},relativePoint:{get:function(){return this.$t},set:function(a){this.$t.set(a)}}}),eg.className="TreeEdge",Ao.prototype.initializeStandardTools=function(){this.gb("Action",new Bl,this.mouseDownTools),this.gb("Relinking",new ol,this.mouseDownTools),this.gb("LinkReshaping",new ya,this.mouseDownTools),this.gb("Rotating",new xs,this.mouseDownTools),this.gb("Resizing",new ss,this.mouseDownTools),this.gb("Linking",new hs,this.mouseMoveTools),this.gb("Dragging",new Uo,this.mouseMoveTools),this.gb("DragSelecting",new vl,this.mouseMoveTools),this.gb("Panning",new is,this.mouseMoveTools),this.gb("ContextMenu",new Ps,this.mouseUpTools),this.gb("TextEditing",new Xo,this.mouseUpTools),this.gb("ClickCreating",new mh,this.mouseUpTools),this.gb("ClickSelecting",new Kh,this.mouseUpTools)},Eu("Horizontal",new m0),Eu("Spot",new y0),Eu("Table",new x0),Eu("Viewbox",new C0),Eu("TableRow",new P0),Eu("TableColumn",new w0),Eu("Graduated",new Xg),Eu("Grid",new Ug),Cf.add("GraphLinksModel",Wa),Cf.add("TreeModel",Al);var Hm=un.go,Wy={get licenseKey(){return _t.licenseKey},set licenseKey(a){_t.licenseKey=a},get version(){return _t.version},Group:Pr,EnumValue:Kt,List:An,Set:Fn,Map:Wt,Point:je,Size:Xe,Rect:pt,Margin:ri,Spot:bn,Geometry:Cn,PathFigure:aa,PathSegment:Wr,InputEvent:Ta,DiagramEvent:bl,ChangedEvent:Go,Model:Ni,GraphLinksModel:Ur,TreeModel:bs,Binding:xa,Transaction:pa,UndoManager:Jo,CommandHandler:qe,Tool:_r,DraggingTool:Uo,DraggingInfo:eh,DraggingOptions:ae,LinkingBaseTool:$r,LinkingTool:hs,RelinkingTool:ol,LinkReshapingTool:ya,ResizingTool:ss,RotatingTool:xs,ClickSelectingTool:Kh,ActionTool:Bl,ClickCreatingTool:mh,HTMLInfo:Su,ContextMenuTool:Ps,DragSelectingTool:vl,PanningTool:is,TextEditingTool:Xo,ToolManager:Ao,Animation:rs,AnimationManager:Js,AnimationTrigger:Yl,Layer:Ya,Diagram:_t,Palette:fe,Overview:ve,Brush:So,GraphObject:Mt,Panel:On,RowColumnDefinition:La,Shape:Mr,TextBlock:Wo,Picture:Rs,Part:Xi,Adornment:eo,Node:li,Link:Hn,Placeholder:As,Layout:ea,LayoutNetwork:Ho,LayoutVertex:Ba,LayoutEdge:el,GridLayout:Ja,PanelLayout:ka,CircularLayout:ra,CircularNetwork:Xf,CircularVertex:Cp,CircularEdge:wm,ForceDirectedLayout:as,ForceDirectedNetwork:Hc,ForceDirectedVertex:Ep,ForceDirectedEdge:Ap,LayeredDigraphLayout:Po,LayeredDigraphNetwork:Jf,LayeredDigraphVertex:Ml,LayeredDigraphEdge:Lp,TreeLayout:jr,TreeNetwork:Yc,TreeVertex:zl,TreeEdge:eg};typeof Hm=="object"&&Hm.version&&ti("WARNING: a `go` object on the root object is already defined. "+("Debug"in Hm?"debug ":"")+"version: "+Hm.version+", replaced with version: "+Wy.version),_t.prototype.go=Wy,un.go=Wy,typeof cn.exports=="object"&&(cn.exports=typeof Pe.g!="undefined"?Pe.g.go:self.go)}();var me=typeof Pe.g!="undefined"?Pe.g.go:self.go;const Ve=typeof Pe.g!="undefined"?Pe.g.go:self.go,ut=Ve.Group,nt=Ve.EnumValue,it=Ve.List,ze=Ve.Set,Ue=Ve.Map,yt=Ve.Point,ot=Ve.Size,Me=Ve.Rect,Et=Ve.Margin,_e=Ve.Spot,ht=Ve.Geometry,Ee=Ve.PathFigure,ne=Ve.PathSegment,ee=Ve.InputEvent,ue=Ve.DiagramEvent,se=Ve.ChangedEvent,de=Ve.Model,pe=Ve.GraphLinksModel,ye=Ve.TreeModel,Ce=Ve.Binding,Re=Ve.Transaction,Oe=Ve.UndoManager,We=Ve.CommandHandler,Be=Ve.Tool,Ie=Ve.DraggingTool,Qe=Ve.DraggingInfo,rt=Ve.LinkingBaseTool,xt=Ve.LinkingTool,gt=Ve.RelinkingTool,bt=Ve.LinkReshapingTool,At=Ve.ResizingTool,Tt=Ve.RotatingTool,Nt=Ve.ClickSelectingTool,Ut=Ve.ActionTool,st=Ve.ClickCreatingTool,He=Ve.HTMLInfo,jt=Ve.ContextMenuTool,fn=Ve.DragSelectingTool,Bt=Ve.PanningTool,Ft=Ve.TextEditingTool,It=Ve.ToolManager,Vt=Ve.Animation,wn=Ve.AnimationManager,Dt=Ve.AnimationTrigger,vt=Ve.Layer,zt=Ve.Diagram,En=Ve.Palette,kn=Ve.Overview,Ze=Ve.Brush,Fe=Ve.GraphObject,xe=Ve.Panel,Te=Ve.RowColumnDefinition,Ye=Ve.Shape,De=Ve.TextBlock,tt=Ve.TextBlockMetrics,Ht=Ve.Picture,$t=Ve.Part,Sn=Ve.Adornment,en=Ve.Node,kt=Ve.Link,nn=Ve.Placeholder,hn=Ve.Layout,zn=Ve.LayoutNetwork,fi=Ve.LayoutVertex,_n=Ve.LayoutEdge,Pi=Ve.GridLayout,Ci=Ve.PanelLayout,Yn=Ve.CircularLayout,Ei=Ve.CircularNetwork,pi=Ve.CircularVertex,ji=Ve.CircularEdge,Qi=Ve.ForceDirectedLayout,lr=Ve.ForceDirectedNetwork,Lr=Ve.ForceDirectedVertex,Di=Ve.ForceDirectedEdge,cr=Ve.LayeredDigraphLayout,to=Ve.LayeredDigraphNetwork,ki=Ve.LayeredDigraphVertex,no=Ve.LayeredDigraphEdge,fo=Ve.TreeLayout,po=Ve.TreeNetwork,io=Ve.TreeVertex,hr=Ve.TreeEdge,ao=Ve.version},2859:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{hP:function(){return kn}});var me=function(Ze,Fe){return(me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xe,Te){xe.__proto__=Te}||function(xe,Te){for(var Ye in Te)Object.prototype.hasOwnProperty.call(Te,Ye)&&(xe[Ye]=Te[Ye])})(Ze,Fe)};function Ve(Ze,Fe){function xe(){this.constructor=Ze}me(Ze,Fe),Ze.prototype=Fe===null?Object.create(Fe):(xe.prototype=Fe.prototype,new xe)}function ut(Ze,Fe,xe,Te){return new(xe||(xe=Promise))(function(Ye,De){function tt(Sn){try{$t(Te.next(Sn))}catch(en){De(en)}}function Ht(Sn){try{$t(Te.throw(Sn))}catch(en){De(en)}}function $t(Sn){var en;Sn.done?Ye(Sn.value):(en=Sn.value,en instanceof xe?en:new xe(function(kt){kt(en)})).then(tt,Ht)}$t((Te=Te.apply(Ze,Fe||[])).next())})}function nt(Ze,Fe){var xe,Te,Ye,De,tt={label:0,sent:function(){if(1&Ye[0])throw Ye[1];return Ye[1]},trys:[],ops:[]};return De={next:Ht(0),throw:Ht(1),return:Ht(2)},typeof Symbol=="function"&&(De[Symbol.iterator]=function(){return this}),De;function Ht($t){return function(Sn){return function(en){if(xe)throw new TypeError("Generator is already executing.");for(;tt;)try{if(xe=1,Te&&(Ye=2&en[0]?Te.return:en[0]?Te.throw||((Ye=Te.return)&&Ye.call(Te),0):Te.next)&&!(Ye=Ye.call(Te,en[1])).done)return Ye;switch(Te=0,Ye&&(en=[2&en[0],Ye.value]),en[0]){case 0:case 1:Ye=en;break;case 4:return tt.label++,{value:en[1],done:!1};case 5:tt.label++,Te=en[1],en=[0];continue;case 7:en=tt.ops.pop(),tt.trys.pop();continue;default:if(Ye=tt.trys,!((Ye=Ye.length>0&&Ye[Ye.length-1])||en[0]!==6&&en[0]!==2)){tt=0;continue}if(en[0]===3&&(!Ye||en[1]>Ye[0]&&en[1]<Ye[3])){tt.label=en[1];break}if(en[0]===6&&tt.label<Ye[1]){tt.label=Ye[1],Ye=en;break}if(Ye&&tt.label<Ye[2]){tt.label=Ye[2],tt.ops.push(en);break}Ye[2]&&tt.ops.pop(),tt.trys.pop();continue}en=Fe.call(Ze,tt)}catch(kt){en=[6,kt],Te=0}finally{xe=Ye=0}if(5&en[0])throw en[1];return{value:en[0]?en[1]:void 0,done:!0}}([$t,Sn])}}}function it(){for(var Ze=0,Fe=0,xe=arguments.length;Fe<xe;Fe++)Ze+=arguments[Fe].length;var Te=Array(Ze),Ye=0;for(Fe=0;Fe<xe;Fe++)for(var De=arguments[Fe],tt=0,Ht=De.length;tt<Ht;tt++,Ye++)Te[Ye]=De[tt];return Te}var ze=function(){function Ze(){}return Ze.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Ze.setAttributes=function(Fe,xe){for(var Te=0,Ye=xe;Te<Ye.length;Te++){var De=Ye[Te],tt=De[0],Ht=De[1];Fe.setAttribute(tt,Ht)}},Ze.createRect=function(Fe,xe,Te){var Ye=document.createElementNS("http://www.w3.org/2000/svg","rect");return Ye.setAttribute("width",Fe.toString()),Ye.setAttribute("height",xe.toString()),Te&&Ze.setAttributes(Ye,Te),Ye},Ze.createLine=function(Fe,xe,Te,Ye,De){var tt=document.createElementNS("http://www.w3.org/2000/svg","line");return tt.setAttribute("x1",Fe.toString()),tt.setAttribute("y1",xe.toString()),tt.setAttribute("x2",Te.toString()),tt.setAttribute("y2",Ye.toString()),De&&Ze.setAttributes(tt,De),tt},Ze.createPolygon=function(Fe,xe){var Te=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Te.setAttribute("points",Fe),xe&&Ze.setAttributes(Te,xe),Te},Ze.createCircle=function(Fe,xe){var Te=document.createElementNS("http://www.w3.org/2000/svg","circle");return Te.setAttribute("cx",(Fe/2).toString()),Te.setAttribute("cy",(Fe/2).toString()),Te.setAttribute("r",Fe.toString()),xe&&Ze.setAttributes(Te,xe),Te},Ze.createEllipse=function(Fe,xe,Te){var Ye=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Ye.setAttribute("cx",(Fe/2).toString()),Ye.setAttribute("cy",(xe/2).toString()),Ye.setAttribute("rx",(Fe/2).toString()),Ye.setAttribute("ry",(xe/2).toString()),Te&&Ze.setAttributes(Ye,Te),Ye},Ze.createGroup=function(Fe){var xe=document.createElementNS("http://www.w3.org/2000/svg","g");return Fe&&Ze.setAttributes(xe,Fe),xe},Ze.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Ze.createMarker=function(Fe,xe,Te,Ye,De,tt,Ht){var $t=document.createElementNS("http://www.w3.org/2000/svg","marker");return Ze.setAttributes($t,[["id",Fe],["orient",xe],["markerWidth",Te.toString()],["markerHeight",Ye.toString()],["refX",De.toString()],["refY",tt.toString()]]),$t.appendChild(Ht),$t},Ze.createText=function(Fe){var xe=document.createElementNS("http://www.w3.org/2000/svg","text");return xe.setAttribute("x","0"),xe.setAttribute("y","0"),Fe&&Ze.setAttributes(xe,Fe),xe},Ze.createTSpan=function(Fe,xe){var Te=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Te.textContent=Fe,xe&&Ze.setAttributes(Te,xe),Te},Ze.createImage=function(Fe){var xe=document.createElementNS("http://www.w3.org/2000/svg","image");return Fe&&Ze.setAttributes(xe,Fe),xe},Ze.createPoint=function(Fe,xe){var Te=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Te.x=Fe,Te.y=xe,Te},Ze.createPath=function(Fe,xe){var Te=document.createElementNS("http://www.w3.org/2000/svg","path");return Te.setAttribute("d",Fe),xe&&Ze.setAttributes(Te,xe),Te},Ze}(),Ue=function(){function Ze(){}return Ze.addKey=function(Fe){Ze.key=Fe},Object.defineProperty(Ze,"isLicensed",{get:function(){return!!Ze.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Ze.key)},enumerable:!1,configurable:!0}),Ze}(),yt=function(){function Ze(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Ze.prototype.rasterize=function(Fe,xe,Te){var Ye=this;return new Promise(function(De){var tt=Te!==void 0?Te:document.createElement("canvas");Fe===null&&(Ye.markersOnly=!0,Ye.naturalSize=!1);var Ht=document.createElementNS("http://www.w3.org/2000/svg","svg");Ht.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ht.setAttribute("width",xe.width.baseVal.valueAsString),Ht.setAttribute("height",xe.height.baseVal.valueAsString),Ht.setAttribute("viewBox","0 0 "+xe.viewBox.baseVal.width.toString()+" "+xe.viewBox.baseVal.height.toString()),Ht.innerHTML=xe.innerHTML,Ye.naturalSize===!0?(Ht.width.baseVal.value=Fe.naturalWidth,Ht.height.baseVal.value=Fe.naturalHeight):Ye.width!==void 0&&Ye.height!==void 0&&(Ht.width.baseVal.value=Ye.width,Ht.height.baseVal.value=Ye.height),tt.width=Ht.width.baseVal.value,tt.height=Ht.height.baseVal.value;var $t=Ht.outerHTML,Sn=tt.getContext("2d");Ye.markersOnly!==!0&&Sn.drawImage(Fe,0,0,tt.width,tt.height);var en=window.URL,kt=new Image(tt.width,tt.height);kt.setAttribute("crossOrigin","anonymous");var nn=new Blob([$t],{type:"image/svg+xml"}),hn=en.createObjectURL(nn);kt.onload=function(){Sn.drawImage(kt,0,0),en.revokeObjectURL(hn);var zn=tt.toDataURL(Ye.imageType,Ye.imageQuality);De(zn)},kt.src=hn})},Ze}(),ot=function(){},Me=function(){function Ze(Fe){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Fe+"_"}return Object.defineProperty(Ze.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Ze.prototype.addClass=function(Fe){return this.styleSheet===void 0&&this.addStyleSheet(),Fe.name=""+this.classNamePrefix+Fe.localName,this.classes.push(Fe),this.styleSheet.sheet.insertRule("."+Fe.name+" {"+Fe.style+"}",this.styleSheet.sheet.cssRules.length),Fe},Ze.prototype.addRule=function(Fe){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Fe),this.styleSheet.sheet.insertRule(Fe.selector+" {"+Fe.style+"}",this.styleSheet.sheet.cssRules.length)},Ze.prototype.addStyleSheet=function(){var Fe;this.styleSheet=document.createElement("style"),((Fe=this.styleSheetRoot)!==null&&Fe!==void 0?Fe:document.head).appendChild(this.styleSheet),this.addRule(new Et("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Et("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
`)),this.addRule(new Et("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
`)),this.addClass(new _e("fade_in",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
`)),this.addClass(new _e("fade_out",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
`))},Ze.prototype.removeStyleSheet=function(){var Fe;this.styleSheet&&(((Fe=this.styleSheetRoot)!==null&&Fe!==void 0?Fe:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Ze}(),Et=function(Ze,Fe){this.selector=Ze,this.style=Fe},_e=function(Ze,Fe){this.localName=Ze,this.style=Fe},ht=function(){function Ze(Fe,xe,Te,Ye,De){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Fe,this.displayMode=xe,this.markerItems=Te,this.uiStyleSettings=Ye,this.styles=De,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Ze.prototype.show=function(Fe){var xe=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Fe,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Te=document.createElement("div");Te.className=this.toolbarBlockStyleClass.name,Te.style.whiteSpace="nowrap",this.uiContainer.appendChild(Te),this.addActionButton(Te,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(Te,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(Te,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(Te,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(Te,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(Te,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(Te,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(Te,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(De){var tt=document.createElement("div");tt.className=""+xe.toolbarButtonStyleClass.name,tt.setAttribute("data-type-name",De.typeName),tt.innerHTML=De.icon,tt.addEventListener("click",function(){xe.markerToolbarButtonClicked(tt,De)}),xe.buttons.push(tt),xe.markerButtons.push(tt)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var Ye=document.createElement("div");Ye.className=this.toolbarBlockStyleClass.name,Ye.style.whiteSpace="nowrap",Ye.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Ye),this.addActionButton(Ye,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(Ye,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},Ze.prototype.addButtonClickListener=function(Fe){this.buttonClickListeners.push(Fe)},Ze.prototype.removeButtonClickListener=function(Fe){this.buttonClickListeners.indexOf(Fe)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Fe),1)},Ze.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Ze.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Fe=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var xe=0;xe<this.markerButtons.length;xe++)xe<Fe||xe===Fe&&this.markerButtons.length-1===Fe?this.markerButtonBlock.appendChild(this.markerButtons[xe]):(xe===Fe&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[xe]))}},Ze.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},Ze.prototype.resetButtonStyles=function(){var Fe=this;this.buttons.forEach(function(xe){xe.className=xe.className.replace(Fe.uiStyleSettings.toolbarButtonStyleColorsClassName?Fe.uiStyleSettings.toolbarButtonStyleColorsClassName:Fe.toolbarButtonStyleColorsClass.name,"").trim(),xe.className=xe.className.replace(Fe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Fe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Fe.toolbarActiveButtonStyleColorsClass.name,"").trim(),xe.className+=" "+(Fe.uiStyleSettings.toolbarButtonStyleColorsClassName?Fe.uiStyleSettings.toolbarButtonStyleColorsClassName:Fe.toolbarButtonStyleColorsClass.name)})},Ze.prototype.addActionButton=function(Fe,xe,Te){var Ye=this,De=document.createElement("div");switch(De.className=""+this.toolbarButtonStyleClass.name,De.innerHTML=xe,De.setAttribute("data-action",Te),De.addEventListener("click",function(){Ye.actionToolbarButtonClicked(De,Te)}),Te){case"select":De.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":De.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":De.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":De.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":De.style.fill=this.uiStyleSettings.closeButtonColor}Fe.appendChild(De),this.buttons.push(De)},Ze.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new _e("toolbar",`
|
|
width: 100%;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
height: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
box-sizing: content-box;
|
|
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
overflow: hidden;
|
|
`)),this.toolbarStyleColorsClass=this.styles.addClass(new _e("toolbar_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new _e("toolbar-block",`
|
|
display: inline-block;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new _e("toolbar-overflow-block",`
|
|
position: absolute;
|
|
top: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
|
|
z-index: 10;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new _e("toolbar-overflow-block_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`));var Fe=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new _e("toolbar_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Fe)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Fe)+`px;
|
|
padding: `+Fe+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new _e("toolbar_button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new _e("toolbar_active_button",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new Et("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`)),this.styles.addRule(new Et("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`))},Ze.prototype.markerToolbarButtonClicked=function(Fe,xe){this.setActiveButton(Fe),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Te){return Te("marker",xe)}),this.markerButtonOverflowBlock.style.display="none"},Ze.prototype.actionToolbarButtonClicked=function(Fe,xe){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Te){return Te("action",xe)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Ze.prototype.setActiveButton=function(Fe){this.resetButtonStyles(),Fe.className=Fe.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Fe.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Ze.prototype.setActiveMarkerButton=function(Fe){var xe=this.markerButtons.find(function(Te){return Te.getAttribute("data-type-name")===Fe});xe&&this.setActiveButton(xe)},Ze.prototype.setCurrentMarker=function(Fe){var xe=this;this.currentMarker=Fe,this.buttons.filter(function(Te){return/delete|notes/.test(Te.getAttribute("data-action"))}).forEach(function(Te){xe.currentMarker===void 0?(Te.style.fillOpacity="0.4",Te.style.pointerEvents="none"):(Te.style.fillOpacity="1",Te.style.pointerEvents="all")})},Ze}(),Ee=function(){function Ze(Fe,xe,Te,Ye){this.panels=[],this.panelButtons=[],this.markerjsContainer=Fe,this.displayMode=xe,this.uiStyleSettings=Te,this.styles=Ye,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Ze.prototype.addStyles=function(){var Fe;this.toolboxStyleClass=this.styles.addClass(new _e("toolbox",`
|
|
width: 100%;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
font-family: sans-serif;
|
|
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
box-sizing: content-box;
|
|
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
|
|
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
overflow: hidden;
|
|
`)),this.toolboxStyleColorsClass=this.styles.addClass(new _e("toolbox_colors",`
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
`));var xe=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new _e("toolbox-button-row",`
|
|
display: flex;
|
|
cursor: default;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new _e("toolbox-button-row_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new _e("toolbox-panel-row",`
|
|
display: flex;
|
|
`+(this.displayMode==="inline"?"position: absolute;":"")+`
|
|
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
cursor: default;
|
|
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
|
|
`+(this.displayMode==="inline"?"width: 100%;":"")+`
|
|
box-sizing: content-box;
|
|
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new _e("toolbox-panel-row_colors",`
|
|
background-color: `+((Fe=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Fe!==void 0?Fe:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new _e("toolbox_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*xe)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*xe)+`px;
|
|
padding: `+xe+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new _e("toolbox-button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new _e("toolbox-active-button_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.styles.addRule(new Et("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new Et("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`))},Ze.prototype.show=function(Fe){var xe;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Fe,this.uiContainer.className=this.toolboxStyleClass.name+" "+((xe=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&xe!==void 0?xe:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Ze.prototype.setPanelButtons=function(Fe){var xe,Te,Ye=this;this.panels=Fe,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((xe=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&xe!==void 0?xe:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Te=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Te!==void 0?Te:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(De){var tt;De.uiStyleSettings=Ye.uiStyleSettings;var Ht=document.createElement("div");Ht.className=Ye.toolboxButtonStyleClass.name+" "+((tt=Ye.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&tt!==void 0?tt:Ye.toolboxButtonStyleColorsClass.name),Ht.innerHTML=De.icon,Ht.title=De.title,Ht.addEventListener("click",function(){Ye.panelButtonClick(De)}),Ye.panelButtons.push(Ht),Ye.buttonRow.appendChild(Ht)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Ze.prototype.panelButtonClick=function(Fe){var xe=this,Te=-1;if(Fe!==this.activePanel){Te=this.panels.indexOf(Fe),this.panelRow.innerHTML="";var Ye=Fe.getUi();Ye.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Ye),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=Fe}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){xe.displayMode==="inline"?xe.panelRow.style.display="none":xe.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(De,tt){var Ht,$t;De.className=xe.toolboxButtonStyleClass.name+" "+(tt===Te?""+((Ht=xe.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ht!==void 0?Ht:xe.toolboxActiveButtonStyleColorsClass.name):""+(($t=xe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&$t!==void 0?$t:xe.toolboxButtonStyleColorsClass.name))})},Ze}(),ne=function(Ze,Fe){this.title=Ze,this.icon=Fe},ee=function(Ze){function Fe(xe,Te,Ye,De){var tt=Ze.call(this,xe,De||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return tt.colors=[],tt.addTransparent=!1,tt.colorBoxes=[],tt.colors=Te,tt.currentColor=Ye,tt.setCurrentColor=tt.setCurrentColor.bind(tt),tt.getColorBox=tt.getColorBox.bind(tt),tt}return Ve(Fe,Ze),Fe.prototype.getUi=function(){var xe=this,Te=document.createElement("div");return Te.style.overflow="hidden",Te.style.whiteSpace="nowrap",this.colors.forEach(function(Ye){var De=xe.getColorBox(Ye);Te.appendChild(De),xe.colorBoxes.push(De)}),Te},Fe.prototype.getColorBox=function(xe){var Te=this,Ye=this.uiStyleSettings.toolbarHeight/4,De=this.uiStyleSettings.toolbarHeight-Ye,tt=document.createElement("div");tt.style.display="inline-block",tt.style.boxSizing="content-box",tt.style.width=De-2+"px",tt.style.height=De-2+"px",tt.style.padding="1px",tt.style.marginRight="2px",tt.style.marginBottom="2px",tt.style.borderWidth="2px",tt.style.borderStyle="solid",tt.style.borderRadius=(De+2)/2+"px",tt.style.borderColor=xe===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",tt.addEventListener("click",function(){Te.setCurrentColor(xe,tt)});var Ht=document.createElement("div");return Ht.style.display="inline-block",Ht.style.width=De-2+"px",Ht.style.height=De-2+"px",Ht.style.backgroundColor=xe,Ht.style.borderRadius=De/2+"px",xe==="transparent"&&(Ht.style.fill=this.uiStyleSettings.toolboxAccentColor,Ht.innerHTML=`<svg viewBox="0 0 24 24">
|
|
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
|
|
</svg>`),tt.appendChild(Ht),tt},Fe.prototype.setCurrentColor=function(xe,Te){var Ye=this;this.currentColor=xe,this.colorBoxes.forEach(function(De){De.style.borderColor=De===Te?Ye.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(xe)},Fe}(ne),ue=function(){function Ze(Fe,xe,Te){this._state="new",this._isSelected=!1,this._container=Fe,this._overlayContainer=xe,this.globalSettings=Te,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Ze.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Ze.prototype.ownsTarget=function(Fe){return!1},Object.defineProperty(Ze.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Ze.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Ze.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Ze.prototype.pointerDown=function(Fe,xe){},Ze.prototype.dblClick=function(Fe,xe){},Ze.prototype.manipulate=function(Fe){},Ze.prototype.pointerUp=function(Fe){this.stateChanged()},Ze.prototype.dispose=function(){},Ze.prototype.addMarkerVisualToContainer=function(Fe){this.container.childNodes.length>0?this.container.insertBefore(Fe,this.container.childNodes[0]):this.container.appendChild(Fe)},Ze.prototype.getState=function(){return{typeName:Ze.typeName,state:this.state,notes:this.notes}},Ze.prototype.restoreState=function(Fe){this._state=Fe.state,this.notes=Fe.notes},Ze.prototype.scale=function(Fe,xe){},Ze.prototype.colorChanged=function(Fe){this.onColorChanged&&this.onColorChanged(Fe),this.stateChanged()},Ze.prototype.fillColorChanged=function(Fe){this.onFillColorChanged&&this.onFillColorChanged(Fe),this.stateChanged()},Ze.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Fe=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Fe.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Fe)&&this.onStateChanged(this)}},Ze.typeName="MarkerBase",Ze}(),se=function(){function Ze(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Ze.prototype.findGripByVisual=function(Fe){return this.topLeft.ownsTarget(Fe)?this.topLeft:this.topCenter.ownsTarget(Fe)?this.topCenter:this.topRight.ownsTarget(Fe)?this.topRight:this.centerLeft.ownsTarget(Fe)?this.centerLeft:this.centerRight.ownsTarget(Fe)?this.centerRight:this.bottomLeft.ownsTarget(Fe)?this.bottomLeft:this.bottomCenter.ownsTarget(Fe)?this.bottomCenter:this.bottomRight.ownsTarget(Fe)?this.bottomRight:void 0},Ze}(),de=function(){function Ze(){this.GRIP_SIZE=10,this.visual=ze.createGroup(),this.visual.appendChild(ze.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ze.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Ze.prototype.ownsTarget=function(Fe){return Fe===this.visual||Fe===this.visual.childNodes[0]||Fe===this.visual.childNodes[1]},Ze}(),pe=function(){function Ze(){}return Ze.toITransformMatrix=function(Fe){return{a:Fe.a,b:Fe.b,c:Fe.c,d:Fe.d,e:Fe.e,f:Fe.f}},Ze.toSVGMatrix=function(Fe,xe){return Fe.a=xe.a,Fe.b=xe.b,Fe.c=xe.c,Fe.d=xe.d,Fe.e=xe.e,Fe.f=xe.f,Fe},Ze}(),ye=function(Ze){function Fe(xe,Te,Ye){var De=Ze.call(this,xe,Te,Ye)||this;return De.left=0,De.top=0,De.width=0,De.height=0,De.defaultSize={x:50,y:20},De.offsetX=0,De.offsetY=0,De.rotationAngle=0,De.CB_DISTANCE=10,De._suppressMarkerCreateEvent=!1,De.container.transform.baseVal.appendItem(ze.createTransform()),De.setupControlBox(),De}return Ve(Fe,Ze),Object.defineProperty(Fe.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Fe.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Fe.prototype,"visual",{get:function(){return this._visual},set:function(xe){this._visual=xe;var Te=ze.createTransform();this._visual.transform.baseVal.appendItem(Te)},enumerable:!1,configurable:!0}),Fe.prototype.ownsTarget=function(xe){return!!Ze.prototype.ownsTarget.call(this,xe)||!!(this.controlGrips.findGripByVisual(xe)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(xe))},Fe.prototype.pointerDown=function(xe,Te){Ze.prototype.pointerDown.call(this,xe,Te),this.state==="new"&&(this.left=xe.x,this.top=xe.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Ye=this.unrotatePoint(xe);if(this.manipulationStartX=Ye.x,this.manipulationStartY=Ye.y,this.offsetX=Ye.x-this.left,this.offsetY=Ye.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Te),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Te)){this.activeGrip=this.rotatorGrip;var De=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=De.x-this.width/2,this.top=De.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var tt=this.container.transform.baseVal.getItem(0);tt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(tt,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Fe.prototype.pointerUp=function(xe){var Te=this.state;Ze.prototype.pointerUp.call(this,xe),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(xe),this._state="select",Te==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Fe.prototype.moveVisual=function(xe){this.visual.style.transform="translate("+xe.x+"px, "+xe.y+"px)"},Fe.prototype.manipulate=function(xe){var Te=this.unrotatePoint(xe);this.state==="creating"?this.resize(xe):this.state==="move"?(this.left=this.manipulationStartLeft+(Te.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Te.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Te):this.state==="rotate"&&this.rotate(xe)},Fe.prototype.resize=function(xe){var Te=this.manipulationStartLeft,Ye=this.manipulationStartWidth,De=this.manipulationStartTop,tt=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Te=this.manipulationStartLeft+xe.x-this.manipulationStartX,Ye=this.manipulationStartWidth+this.manipulationStartLeft-Te;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Ye=this.manipulationStartWidth+xe.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:De=this.manipulationStartTop+xe.y-this.manipulationStartY,tt=this.manipulationStartHeight+this.manipulationStartTop-De;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:tt=this.manipulationStartHeight+xe.y-this.manipulationStartY}Ye>=0?(this.left=Te,this.width=Ye):(this.left=Te+Ye,this.width=-Ye),tt>=0?(this.top=De,this.height=tt):(this.top=De+tt,this.height=-tt),this.setSize()},Fe.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Fe.prototype.rotate=function(xe){if(Math.abs(xe.x-this.centerX)>.1){var Te=Math.sign(xe.x-this.centerX);this.rotationAngle=180*Math.atan((xe.y-this.centerY)/(xe.x-this.centerX))/Math.PI+90*Te,this.applyRotation()}},Fe.prototype.applyRotation=function(){var xe=this.container.transform.baseVal.getItem(0);xe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(xe,0)},Fe.prototype.rotatePoint=function(xe){if(this.rotationAngle===0)return xe;var Te=this.container.getCTM(),Ye=ze.createPoint(xe.x,xe.y);return{x:(Ye=Ye.matrixTransform(Te)).x,y:Ye.y}},Fe.prototype.unrotatePoint=function(xe){if(this.rotationAngle===0)return xe;var Te=this.container.getCTM();Te=Te.inverse();var Ye=ze.createPoint(xe.x,xe.y);return{x:(Ye=Ye.matrixTransform(Te)).x,y:Ye.y}},Fe.prototype.select=function(){Ze.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Fe.prototype.deselect=function(){Ze.prototype.deselect.call(this),this.controlBox.style.display="none"},Fe.prototype.setupControlBox=function(){this.controlBox=ze.createGroup();var xe=ze.createTransform();xe.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(xe),this.container.appendChild(this.controlBox),this.controlRect=ze.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=ze.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new se,this.addControlGrips(),this.controlBox.style.display="none"},Fe.prototype.adjustControlBox=function(){var xe=this.controlBox.transform.baseVal.getItem(0);xe.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(xe,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},Fe.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},Fe.prototype.createGrip=function(){var xe=new de;return xe.visual.transform.baseVal.appendItem(ze.createTransform()),this.controlBox.appendChild(xe.visual),xe},Fe.prototype.positionGrips=function(){var xe=this.controlGrips.topLeft.GRIP_SIZE,Te=-xe/2,Ye=Te,De=(this.width+this.CB_DISTANCE)/2-xe/2,tt=(this.height+this.CB_DISTANCE)/2-xe/2,Ht=this.height+this.CB_DISTANCE-xe/2,$t=this.width+this.CB_DISTANCE-xe/2;this.positionGrip(this.controlGrips.topLeft.visual,Te,Ye),this.positionGrip(this.controlGrips.topCenter.visual,De,Ye),this.positionGrip(this.controlGrips.topRight.visual,$t,Ye),this.positionGrip(this.controlGrips.centerLeft.visual,Te,tt),this.positionGrip(this.controlGrips.centerRight.visual,$t,tt),this.positionGrip(this.controlGrips.bottomLeft.visual,Te,Ht),this.positionGrip(this.controlGrips.bottomCenter.visual,De,Ht),this.positionGrip(this.controlGrips.bottomRight.visual,$t,Ht),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,De,Ye-3*this.CB_DISTANCE)},Fe.prototype.positionGrip=function(xe,Te,Ye){var De=xe.transform.baseVal.getItem(0);De.setTranslate(Te,Ye),xe.transform.baseVal.replaceItem(De,0)},Fe.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Fe.prototype.showControlBox=function(){this.controlBox.style.display=""},Fe.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:pe.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:pe.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Ze.prototype.getState.call(this))},Fe.prototype.restoreState=function(xe){Ze.prototype.restoreState.call(this,xe);var Te=xe;this.left=Te.left,this.top=Te.top,this.width=Te.width,this.height=Te.height,this.rotationAngle=Te.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(pe.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Te.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(pe.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Te.containerTransformMatrix))},Fe.prototype.scale=function(xe,Te){Ze.prototype.scale.call(this,xe,Te);var Ye=this.rotatePoint({x:this.left,y:this.top}),De=this.unrotatePoint({x:Ye.x*xe,y:Ye.y*Te});this.left=De.x,this.top=De.y,this.width=this.width*xe,this.height=this.height*Te,this.adjustControlBox()},Fe}(ue),Ce=function(Ze){function Fe(xe,Te,Ye){var De=Ze.call(this,xe,Te,Ye)||this;return De.fillColor="transparent",De.strokeColor="transparent",De.strokeWidth=0,De.strokeDasharray="",De.opacity=1,De.setStrokeColor=De.setStrokeColor.bind(De),De.setFillColor=De.setFillColor.bind(De),De.setStrokeWidth=De.setStrokeWidth.bind(De),De.setStrokeDasharray=De.setStrokeDasharray.bind(De),De.createVisual=De.createVisual.bind(De),De}return Ve(Fe,Ze),Fe.prototype.ownsTarget=function(xe){return!(!Ze.prototype.ownsTarget.call(this,xe)&&xe!==this.visual)},Fe.prototype.createVisual=function(){this.visual=ze.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},Fe.prototype.pointerDown=function(xe,Te){Ze.prototype.pointerDown.call(this,xe,Te),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},Fe.prototype.manipulate=function(xe){Ze.prototype.manipulate.call(this,xe)},Fe.prototype.resize=function(xe){Ze.prototype.resize.call(this,xe),this.setSize()},Fe.prototype.setSize=function(){Ze.prototype.setSize.call(this),ze.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Fe.prototype.pointerUp=function(xe){Ze.prototype.pointerUp.call(this,xe),this.setSize()},Fe.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.visual&&ze.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(xe),this.stateChanged()},Fe.prototype.setFillColor=function(xe){this.fillColor=xe,this.visual&&ze.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Fe.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.visual&&ze.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Fe.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.visual&&ze.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Fe.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ze.prototype.getState.call(this))},Fe.prototype.restoreState=function(xe){var Te=xe;this.fillColor=Te.fillColor,this.strokeColor=Te.strokeColor,this.strokeWidth=Te.strokeWidth,this.strokeDasharray=Te.strokeDasharray,this.opacity=Te.opacity,this.createVisual(),Ze.prototype.restoreState.call(this,xe),this.setSize()},Fe.prototype.scale=function(xe,Te){Ze.prototype.scale.call(this,xe,Te),this.setSize()},Fe.title="Rectangle marker",Fe}(ye),Re=function(Ze){function Fe(xe,Te,Ye,De){var tt=Ze.call(this,xe,De||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return tt.widths=[],tt.widthBoxes=[],tt.widths=Te,tt.currentWidth=Ye,tt.setCurrentWidth=tt.setCurrentWidth.bind(tt),tt}return Ve(Fe,Ze),Fe.prototype.getUi=function(){var xe=this,Te=document.createElement("div");return Te.style.display="flex",Te.style.overflow="hidden",Te.style.flexGrow="2",this.widths.forEach(function(Ye){var De=document.createElement("div");De.style.display="flex",De.style.flexGrow="2",De.style.alignItems="center",De.style.justifyContent="space-between",De.style.padding="5px",De.style.borderWidth="2px",De.style.borderStyle="solid",De.style.borderColor=Ye===xe.currentWidth?xe.uiStyleSettings.toolboxAccentColor:"transparent",De.addEventListener("click",function(){xe.setCurrentWidth(Ye,De)}),Te.appendChild(De);var tt=document.createElement("div");tt.innerText=Ye.toString(),tt.style.marginRight="5px",De.appendChild(tt);var Ht=document.createElement("div");Ht.style.minHeight="20px",Ht.style.flexGrow="2",Ht.style.display="flex",Ht.style.alignItems="center";var $t=document.createElement("hr");$t.style.minWidth="20px",$t.style.border="0px",$t.style.borderTop=Ye+"px solid "+xe.uiStyleSettings.toolboxColor,$t.style.flexGrow="2",Ht.appendChild($t),De.appendChild(Ht),xe.widthBoxes.push(De)}),Te},Fe.prototype.setCurrentWidth=function(xe,Te){var Ye=this;this.currentWidth=xe,this.widthBoxes.forEach(function(De){De.style.borderColor=De===Te?Ye.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Fe}(ne),Oe=function(Ze){function Fe(xe,Te,Ye,De){var tt=Ze.call(this,xe,De||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return tt.styles=[],tt.styleBoxes=[],tt.styles=Te,tt.currentStyle=Ye,tt.setCurrentStyle=tt.setCurrentStyle.bind(tt),tt}return Ve(Fe,Ze),Fe.prototype.getUi=function(){var xe=this,Te=document.createElement("div");return Te.style.display="flex",Te.style.overflow="hidden",Te.style.flexGrow="2",this.styles.forEach(function(Ye){var De=document.createElement("div");De.style.display="flex",De.style.alignItems="center",De.style.justifyContent="space-between",De.style.padding="5px",De.style.borderWidth="2px",De.style.borderStyle="solid",De.style.overflow="hidden",De.style.maxWidth=100/xe.styles.length-5+"%",De.style.borderColor=Ye===xe.currentStyle?xe.uiStyleSettings.toolboxAccentColor:"transparent",De.addEventListener("click",function(){xe.setCurrentStyle(Ye,De)}),Te.appendChild(De);var tt=document.createElement("div");tt.style.minHeight="20px",tt.style.flexGrow="2",tt.style.overflow="hidden";var Ht=`<svg width="100" height="20">
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+xe.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Ye!==""?'stroke-dasharray="'+Ye+'"':"")+` />
|
|
</svg>`;tt.innerHTML=Ht,De.appendChild(tt),xe.styleBoxes.push(De)}),Te},Fe.prototype.setCurrentStyle=function(xe,Te){var Ye=this;this.currentStyle=xe,this.styleBoxes.forEach(function(De){De.style.borderColor=De===Te?Ye.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Fe}(ne),We=function(Ze){function Fe(xe,Te,Ye){var De=Ze.call(this,xe,Te,Ye)||this;return De.strokeColor=Ye.defaultColor,De.strokeWidth=Ye.defaultStrokeWidth,De.strokeDasharray=Ye.defaultStrokeDasharray,De.strokePanel=new ee("Line color",Ye.defaultColorSet,Ye.defaultColor),De.strokePanel.onColorChanged=De.setStrokeColor,De.strokeWidthPanel=new Re("Line width",Ye.defaultStrokeWidths,Ye.defaultStrokeWidth),De.strokeWidthPanel.onWidthChanged=De.setStrokeWidth,De.strokeStylePanel=new Oe("Line style",Ye.defaultStrokeDasharrays,Ye.defaultStrokeDasharray),De.strokeStylePanel.onStyleChanged=De.setStrokeDasharray,De}return Ve(Fe,Ze),Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var xe=Ze.prototype.getState.call(this);return xe.typeName=Fe.typeName,xe},Fe.typeName="FrameMarker",Fe.title="Frame marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Fe}(Ce),Be=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},Ie=function(Ze){function Fe(xe,Te,Ye){var De=Ze.call(this,xe,Te,Ye)||this;return De.x1=0,De.y1=0,De.x2=0,De.y2=0,De.defaultLength=50,De.manipulationStartX=0,De.manipulationStartY=0,De.manipulationStartX1=0,De.manipulationStartY1=0,De.manipulationStartX2=0,De.manipulationStartY2=0,De.setupControlBox(),De}return Ve(Fe,Ze),Fe.prototype.ownsTarget=function(xe){return!!Ze.prototype.ownsTarget.call(this,xe)||!(!this.grip1.ownsTarget(xe)&&!this.grip2.ownsTarget(xe))},Fe.prototype.pointerDown=function(xe,Te){Ze.prototype.pointerDown.call(this,xe,Te),this.manipulationStartX=xe.x,this.manipulationStartY=xe.y,this.state==="new"&&(this.x1=xe.x,this.y1=xe.y,this.x2=xe.x,this.y2=xe.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(Te)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Te)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Fe.prototype.pointerUp=function(xe){var Te=this.state;Ze.prototype.pointerUp.call(this,xe),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(xe),this._state="select",Te==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Fe.prototype.adjustVisual=function(){},Fe.prototype.manipulate=function(xe){this.state==="creating"?this.resize(xe):this.state==="move"?(this.x1=this.manipulationStartX1+xe.x-this.manipulationStartX,this.y1=this.manipulationStartY1+xe.y-this.manipulationStartY,this.x2=this.manipulationStartX2+xe.x-this.manipulationStartX,this.y2=this.manipulationStartY2+xe.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(xe)},Fe.prototype.resize=function(xe){switch(this.activeGrip){case this.grip1:this.x1=xe.x,this.y1=xe.y;break;case this.grip2:case void 0:this.x2=xe.x,this.y2=xe.y}this.adjustVisual(),this.adjustControlBox()},Fe.prototype.select=function(){Ze.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Fe.prototype.deselect=function(){Ze.prototype.deselect.call(this),this.controlBox.style.display="none"},Fe.prototype.setupControlBox=function(){this.controlBox=ze.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Fe.prototype.adjustControlBox=function(){this.positionGrips()},Fe.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Fe.prototype.createGrip=function(){var xe=new de;return xe.visual.transform.baseVal.appendItem(ze.createTransform()),this.controlBox.appendChild(xe.visual),xe},Fe.prototype.positionGrips=function(){var xe=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-xe/2,this.y1-xe/2),this.positionGrip(this.grip2.visual,this.x2-xe/2,this.y2-xe/2)},Fe.prototype.positionGrip=function(xe,Te,Ye){var De=xe.transform.baseVal.getItem(0);De.setTranslate(Te,Ye),xe.transform.baseVal.replaceItem(De,0)},Fe.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Ze.prototype.getState.call(this))},Fe.prototype.restoreState=function(xe){Ze.prototype.restoreState.call(this,xe);var Te=xe;this.x1=Te.x1,this.y1=Te.y1,this.x2=Te.x2,this.y2=Te.y2},Fe.prototype.scale=function(xe,Te){Ze.prototype.scale.call(this,xe,Te),this.x1=this.x1*xe,this.y1=this.y1*Te,this.x2=this.x2*xe,this.y2=this.y2*Te,this.adjustVisual(),this.adjustControlBox()},Fe}(ue),Qe=function(Ze){function Fe(xe,Te,Ye){var De=Ze.call(this,xe,Te,Ye)||this;return De.strokeColor="transparent",De.strokeWidth=0,De.strokeDasharray="",De.setStrokeColor=De.setStrokeColor.bind(De),De.setStrokeWidth=De.setStrokeWidth.bind(De),De.setStrokeDasharray=De.setStrokeDasharray.bind(De),De.strokeColor=Ye.defaultColor,De.strokeWidth=Ye.defaultStrokeWidth,De.strokeDasharray=Ye.defaultStrokeDasharray,De.strokePanel=new ee("Line color",Ye.defaultColorSet,Ye.defaultColor),De.strokePanel.onColorChanged=De.setStrokeColor,De.strokeWidthPanel=new Re("Line width",Ye.defaultStrokeWidths,Ye.defaultStrokeWidth),De.strokeWidthPanel.onWidthChanged=De.setStrokeWidth,De.strokeStylePanel=new Oe("Line style",Ye.defaultStrokeDasharrays,Ye.defaultStrokeDasharray),De.strokeStylePanel.onStyleChanged=De.setStrokeDasharray,De}return Ve(Fe,Ze),Fe.prototype.ownsTarget=function(xe){return!(!Ze.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.selectorLine&&xe!==this.visibleLine)},Fe.prototype.createVisual=function(){this.visual=ze.createGroup(),this.selectorLine=ze.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ze.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},Fe.prototype.pointerDown=function(xe,Te){Ze.prototype.pointerDown.call(this,xe,Te),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Fe.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),ze.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ze.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ze.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Fe.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.adjustVisual(),this.colorChanged(xe)},Fe.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.adjustVisual()},Fe.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var xe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Ze.prototype.getState.call(this));return xe.typeName=Fe.typeName,xe},Fe.prototype.restoreState=function(xe){Ze.prototype.restoreState.call(this,xe);var Te=xe;this.strokeColor=Te.strokeColor,this.strokeWidth=Te.strokeWidth,this.strokeDasharray=Te.strokeDasharray,this.createVisual(),this.adjustVisual()},Fe.typeName="LineMarker",Fe.title="Line marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Fe}(Ie),rt=function(Ze){function Fe(xe,Te,Ye,De){var tt=Ze.call(this,xe,De||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return tt.fonts=[],tt.fontBoxes=[],tt.fonts=Te,tt.currentFont=Ye,tt.setCurrentFont=tt.setCurrentFont.bind(tt),tt}return Ve(Fe,Ze),Fe.prototype.getUi=function(){var xe=this,Te=document.createElement("div");return Te.style.overflow="hidden",Te.style.flexGrow="2",this.fonts.forEach(function(Ye){var De=document.createElement("div");De.style.display="inline-block",De.style.alignItems="center",De.style.justifyContent="space-between",De.style.padding="5px",De.style.borderWidth="2px",De.style.borderStyle="solid",De.style.overflow="hidden",De.style.maxWidth=100/xe.fonts.length-5+"%",De.style.borderColor=Ye===xe.currentFont?xe.uiStyleSettings.toolboxAccentColor:"transparent",De.addEventListener("click",function(){xe.setCurrentFont(Ye,De)}),Te.appendChild(De);var tt=document.createElement("div");tt.style.display="flex",tt.style.minHeight="20px",tt.style.flexGrow="2",tt.style.fontFamily=Ye,tt.style.overflow="hidden";var Ht=document.createElement("div");Ht.style.whiteSpace="nowrap",Ht.style.overflow="hidden",Ht.style.textOverflow="ellipsis",Ht.innerHTML="The quick brown fox jumps over the lazy dog",tt.appendChild(Ht),De.appendChild(tt),xe.fontBoxes.push(De)}),Te},Fe.prototype.setCurrentFont=function(xe,Te){var Ye=this;this.currentFont=xe,this.fontBoxes.forEach(function(De){De.style.borderColor=De===Te?Ye.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Fe}(ne),xt=function(Ze){function Fe(xe,Te,Ye){var De=Ze.call(this,xe,Te,Ye)||this;return De.color="transparent",De.padding=5,De.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",De.text=De.DEFAULT_TEXT,De.isMoved=!1,De.color=Ye.defaultColor,De.fontFamily=Ye.defaultFontFamily,De.defaultSize={x:100,y:30},De.setColor=De.setColor.bind(De),De.setFont=De.setFont.bind(De),De.renderText=De.renderText.bind(De),De.sizeText=De.sizeText.bind(De),De.textEditDivClicked=De.textEditDivClicked.bind(De),De.showTextEditor=De.showTextEditor.bind(De),De.setSize=De.setSize.bind(De),De.positionTextEditor=De.positionTextEditor.bind(De),De.colorPanel=new ee("Color",Ye.defaultColorSet,Ye.defaultColor),De.colorPanel.onColorChanged=De.setColor,De.fontFamilyPanel=new rt("Font",Ye.defaultFontFamilies,Ye.defaultFontFamily),De.fontFamilyPanel.onFontChanged=De.setFont,De}return Ve(Fe,Ze),Fe.prototype.ownsTarget=function(xe){if(Ze.prototype.ownsTarget.call(this,xe)||xe===this.visual||xe===this.textElement||xe===this.bgRectangle)return!0;var Te=!1;return this.textElement.childNodes.forEach(function(Ye){Ye===xe&&(Te=!0)}),Te},Fe.prototype.createVisual=function(){this.visual=ze.createGroup(),this.bgRectangle=ze.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ze.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ze.createTransform()),this.textElement.transform.baseVal.appendItem(ze.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Fe.prototype.pointerDown=function(xe,Te){Ze.prototype.pointerDown.call(this,xe,Te),this.isMoved=!1,this.pointerDownPoint=xe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},Fe.prototype.renderText=function(){var xe=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(Te){xe.textElement.appendChild(ze.createTSpan(Te.trim()===""?" ":Te.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Fe.prototype.getTextScale=function(){var xe=this.textElement.getBBox(),Te=1;if(xe.width>0&&xe.height>0){var Ye=(1*this.width-this.width*this.padding*2/100)/xe.width,De=(1*this.height-this.height*this.padding*2/100)/xe.height;Te=Math.min(Ye,De)}return Te},Fe.prototype.getTextPosition=function(xe){var Te=this.textElement.getBBox(),Ye=0,De=0;return Te.width>0&&Te.height>0&&(Ye=(this.width-Te.width*xe)/2,De=this.height/2-Te.height*xe/2),{x:Ye,y:De}},Fe.prototype.sizeText=function(){var xe=this.textElement.getBBox(),Te=this.getTextScale(),Ye=this.getTextPosition(Te);Ye.y-=xe.y*Te,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Ye.x+"px, "+Ye.y+"px) scale("+Te+", "+Te+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Ye.x,Ye.y),this.textElement.transform.baseVal.getItem(1).setScale(Te,Te))},Fe.prototype.manipulate=function(xe){Ze.prototype.manipulate.call(this,xe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(xe.x-this.pointerDownPoint.x)>5||Math.abs(xe.y-this.pointerDownPoint.y)>5)},Fe.prototype.resize=function(xe){Ze.prototype.resize.call(this,xe),this.isMoved=!0,this.setSize(),this.sizeText()},Fe.prototype.setSize=function(){Ze.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(ze.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ze.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Fe.prototype.pointerUp=function(xe){var Te=this.state;Te==="creating"&&(this._suppressMarkerCreateEvent=!0),Ze.prototype.pointerUp.call(this,xe),this.setSize(),(Te==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Fe.prototype.showTextEditor=function(){var xe=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(Te){Te.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Te=Number.parseFloat(xe.textEditor.style.fontSize);xe.textEditor.clientWidth>=Number.parseInt(xe.textEditor.style.maxWidth)&&Te>.9;)Te-=.1,xe.textEditor.style.fontSize=Math.max(Te,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Te){Te.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Te){if(Te.clipboardData){var Ye=Te.clipboardData.getData("text"),De=window.getSelection();if(!De.rangeCount)return!1;De.deleteFromDocument(),De.getRangeAt(0).insertNode(document.createTextNode(Ye)),Te.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){xe.textEditDivClicked(xe.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Fe.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var xe=this.getTextScale(),Te=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Ye=this.textElement.getBBox(),De={x:Ye.width*xe,y:Ye.height*xe};Te.x-=De.x/2,Te.y-=De.y/2,this.textEditor.style.top=Te.y+"px",this.textEditor.style.left=Te.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Te.x+"px",this.textEditor.style.fontSize=Math.max(16*xe,12)+"px",this.textElement.style.display="none"}},Fe.prototype.textEditDivClicked=function(xe){this.text=xe.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Fe.prototype.select=function(){Ze.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Fe.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Ze.prototype.deselect.call(this)},Fe.prototype.dblClick=function(xe,Te){Ze.prototype.dblClick.call(this,xe,Te),this.showTextEditor()},Fe.prototype.setColor=function(xe){this.textElement&&ze.setAttributes(this.textElement,[["fill",xe]]),this.color=xe,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(xe)},Fe.prototype.setFont=function(xe){this.textElement&&ze.setAttributes(this.textElement,[["font-family",xe]]),this.fontFamily=xe,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Fe.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Fe.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var xe=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Ze.prototype.getState.call(this));return xe.typeName=Fe.typeName,xe},Fe.prototype.restoreState=function(xe){var Te=xe;this.color=Te.color,this.fontFamily=Te.fontFamily,this.padding=Te.padding,this.text=Te.text,this.createVisual(),Ze.prototype.restoreState.call(this,xe),this.setSize()},Fe.prototype.scale=function(xe,Te){Ze.prototype.scale.call(this,xe,Te),this.setSize(),this.sizeText(),this.positionTextEditor()},Fe.typeName="TextMarker",Fe.title="Text marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',Fe}(ye),gt=function(Ze){function Fe(xe,Te,Ye){var De=Ze.call(this,xe,Te,Ye)||this;return De.color="transparent",De.lineWidth=3,De.drawing=!1,De.pixelRatio=1,De.color=Ye.defaultColor,De.lineWidth=Ye.defaultStrokeWidth,De.pixelRatio=Ye.freehandPixelRatio,De.setColor=De.setColor.bind(De),De.addCanvas=De.addCanvas.bind(De),De.finishCreation=De.finishCreation.bind(De),De.setLineWidth=De.setLineWidth.bind(De),De.colorPanel=new ee("Color",Ye.defaultColorSet,Ye.defaultColor),De.colorPanel.onColorChanged=De.setColor,De.lineWidthPanel=new Re("Line width",Ye.defaultStrokeWidths,Ye.defaultStrokeWidth),De.lineWidthPanel.onWidthChanged=De.setLineWidth,De}return Ve(Fe,Ze),Fe.prototype.ownsTarget=function(xe){return!(!Ze.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.drawingImage)},Fe.prototype.createVisual=function(){this.visual=ze.createGroup(),this.drawingImage=ze.createImage(),this.visual.appendChild(this.drawingImage);var xe=ze.createTransform();this.visual.transform.baseVal.appendItem(xe),this.addMarkerVisualToContainer(this.visual)},Fe.prototype.pointerDown=function(xe,Te){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(xe.x,xe.y),this.drawing=!0):Ze.prototype.pointerDown.call(this,xe,Te)},Fe.prototype.manipulate=function(xe){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(xe.x,xe.y),this.canvasContext.stroke()):Ze.prototype.manipulate.call(this,xe)},Fe.prototype.resize=function(xe){Ze.prototype.resize.call(this,xe),ze.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ze.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Fe.prototype.pointerUp=function(xe){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Ze.prototype.pointerUp.call(this,xe)},Fe.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},Fe.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Ze.prototype.select.call(this)},Fe.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Ze.prototype.deselect.call(this)},Fe.prototype.finishCreation=function(){for(var xe=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Te=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Ye=Te[0],De=Te[1],tt=Te[2],Ht=Te[3],$t=!1,Sn=0;Sn<this.canvasElement.height;Sn++)for(var en=0;en<this.canvasElement.width;en++)xe.data[Sn*this.canvasElement.width*4+4*en+3]>0&&($t=!0,Sn<De&&(De=Sn),en<Ye&&(Ye=en),Sn>Ht&&(Ht=Sn),en>tt&&(tt=en));if($t){this.left=Ye/this.pixelRatio,this.top=De/this.pixelRatio,this.width=(tt-Ye)/this.pixelRatio,this.height=(Ht-De)/this.pixelRatio;var kt=document.createElement("canvas");kt.width=tt-Ye,kt.height=Ht-De,kt.getContext("2d").putImageData(this.canvasContext.getImageData(Ye,De,tt-Ye,Ht-De),0,0),this.drawingImgUrl=kt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Fe.prototype.setDrawingImage=function(){ze.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ze.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Fe.prototype.setColor=function(xe){this.color=xe,this.colorChanged(xe)},Fe.prototype.setLineWidth=function(xe){this.lineWidth=xe},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var xe=Object.assign({drawingImgUrl:this.drawingImgUrl},Ze.prototype.getState.call(this));return xe.typeName=Fe.typeName,xe},Fe.prototype.restoreState=function(xe){this.createVisual(),Ze.prototype.restoreState.call(this,xe),this.drawingImgUrl=xe.drawingImgUrl,this.setDrawingImage()},Fe.prototype.scale=function(xe,Te){Ze.prototype.scale.call(this,xe,Te),this.setDrawingImage()},Fe.typeName="FreehandMarker",Fe.title="Freehand marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',Fe}(ye),bt=function(Ze){function Fe(xe,Te,Ye){var De=Ze.call(this,xe,Ye||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return De.typeBoxes=[],De.currentType=Te,De.setCurrentType=De.setCurrentType.bind(De),De}return Ve(Fe,Ze),Fe.prototype.getUi=function(){var xe=this,Te=document.createElement("div");Te.style.display="flex",Te.style.overflow="hidden",Te.style.flexGrow="2";for(var Ye=function(Ht){var $t="both";switch(Ht){case 0:$t="both";break;case 1:$t="start";break;case 2:$t="end";break;case 3:$t="none"}var Sn=document.createElement("div");if(Sn.style.display="flex",Sn.style.flexGrow="2",Sn.style.alignItems="center",Sn.style.justifyContent="space-between",Sn.style.padding="5px",Sn.style.borderWidth="2px",Sn.style.borderStyle="solid",Sn.style.borderColor=$t===De.currentType?De.uiStyleSettings.toolboxAccentColor:"transparent",Sn.addEventListener("click",function(){xe.setCurrentType($t,Sn)}),Te.appendChild(Sn),$t==="both"||$t==="start"){var en=document.createElement("div");en.style.display="flex",en.style.alignItems="center",en.style.minHeight="20px",en.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
<polygon points="0,5 10,0 10,10" fill="`+(De.uiStyleSettings!==void 0?De.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,en.style.marginLeft="5px",Sn.appendChild(en)}var kt=document.createElement("div");kt.style.display="flex",kt.style.alignItems="center",kt.style.minHeight="20px",kt.style.flexGrow="2";var nn=document.createElement("hr");if(nn.style.minWidth="20px",nn.style.border="0px",nn.style.borderTop="3px solid "+(De.uiStyleSettings!==void 0?De.uiStyleSettings.toolboxColor:"#eeeeee"),nn.style.flexGrow="2",kt.appendChild(nn),Sn.appendChild(kt),$t==="both"||$t==="end"){var hn=document.createElement("div");hn.style.display="flex",hn.style.alignItems="center",hn.style.minHeight="20px",hn.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
<polygon points="0,0 10,5 0,10" fill="`+(De.uiStyleSettings!==void 0?De.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,hn.style.marginRight="5px",Sn.appendChild(hn)}De.typeBoxes.push(Sn)},De=this,tt=0;tt<4;tt++)Ye(tt);return Te},Fe.prototype.setCurrentType=function(xe,Te){var Ye=this;this.currentType=xe,this.typeBoxes.forEach(function(De){De.style.borderColor=De===Te?Ye.uiStyleSettings!==void 0?Ye.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Fe}(ne),At=function(Ze){function Fe(xe,Te,Ye){var De=Ze.call(this,xe,Te,Ye)||this;return De.arrowType="end",De.arrowBaseHeight=10,De.arrowBaseWidth=10,De.getArrowPoints=De.getArrowPoints.bind(De),De.setArrowType=De.setArrowType.bind(De),De.arrowTypePanel=new bt("Arrow type","end"),De.arrowTypePanel.onArrowTypeChanged=De.setArrowType,De}return Ve(Fe,Ze),Fe.prototype.ownsTarget=function(xe){return!(!Ze.prototype.ownsTarget.call(this,xe)&&xe!==this.arrow1&&xe!==this.arrow2)},Fe.prototype.getArrowPoints=function(xe,Te){var Ye=this.arrowBaseWidth+2*this.strokeWidth,De=this.arrowBaseHeight+2*this.strokeWidth;return xe-Ye/2+","+(Te+De/2)+" "+xe+","+(Te-De/2)+" "+(xe+Ye/2)+","+(Te+De/2)},Fe.prototype.createTips=function(){this.arrow1=ze.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ze.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ze.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ze.createTransform()),this.visual.appendChild(this.arrow2)},Fe.prototype.pointerDown=function(xe,Te){Ze.prototype.pointerDown.call(this,xe,Te),this.state==="creating"&&this.createTips()},Fe.prototype.adjustVisual=function(){if(Ze.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",ze.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ze.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var xe=0;Math.abs(this.x1-this.x2)>.1&&(xe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Te=this.arrow1.transform.baseVal.getItem(0);Te.setRotate(xe,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Te,0);var Ye=this.arrow2.transform.baseVal.getItem(0);Ye.setRotate(xe+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Ye,0)}},Fe.prototype.setArrowType=function(xe){this.arrowType=xe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var xe=Object.assign({arrowType:this.arrowType},Ze.prototype.getState.call(this));return xe.typeName=Fe.typeName,xe},Fe.prototype.restoreState=function(xe){Ze.prototype.restoreState.call(this,xe);var Te=xe;this.arrowType=Te.arrowType,this.createTips(),this.adjustVisual()},Fe.typeName="ArrowMarker",Fe.title="Arrow marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Fe}(Qe),Tt=function(Ze){function Fe(xe,Te,Ye){var De=Ze.call(this,xe,Te,Ye)||this;return De.fillColor=Ye.defaultFillColor,De.strokeWidth=0,De.fillPanel=new ee("Color",Ye.defaultColorSet,Ye.defaultFillColor),De.fillPanel.onColorChanged=De.setFillColor,De}return Ve(Fe,Ze),Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var xe=Ze.prototype.getState.call(this);return xe.typeName=Fe.typeName,xe},Fe.typeName="CoverMarker",Fe.title="Cover marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Fe}(Ce),Nt=function(Ze){function Fe(xe,Te,Ye,De){var tt=Ze.call(this,xe,De||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return tt.opacities=[],tt.opacityBoxes=[],tt.opacities=Te,tt.currentOpacity=Ye,tt.setCurrentOpacity=tt.setCurrentOpacity.bind(tt),tt}return Ve(Fe,Ze),Fe.prototype.getUi=function(){var xe=this,Te=document.createElement("div");return Te.style.display="flex",Te.style.overflow="hidden",Te.style.flexGrow="2",Te.style.justifyContent="space-between",this.opacities.forEach(function(Ye){var De=document.createElement("div");De.style.display="flex",De.style.alignItems="center",De.style.justifyContent="center",De.style.padding="5px",De.style.borderWidth="2px",De.style.borderStyle="solid",De.style.borderColor=Ye===xe.currentOpacity?xe.uiStyleSettings.toolboxAccentColor:"transparent",De.addEventListener("click",function(){xe.setCurrentOpacity(Ye,De)}),Te.appendChild(De);var tt=document.createElement("div");tt.innerText=100*Ye+"%",De.appendChild(tt),xe.opacityBoxes.push(De)}),Te},Fe.prototype.setCurrentOpacity=function(xe,Te){var Ye=this;this.currentOpacity=xe,this.opacityBoxes.forEach(function(De){De.style.borderColor=De===Te?Ye.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Fe}(ne),Ut=function(Ze){function Fe(xe,Te,Ye){var De=Ze.call(this,xe,Te,Ye)||this;return De.setOpacity=De.setOpacity.bind(De),De.fillColor=Ye.defaultHighlightColor,De.strokeWidth=0,De.opacity=Ye.defaultHighlightOpacity,De.fillPanel=new ee("Color",Ye.defaultColorSet,De.fillColor),De.fillPanel.onColorChanged=De.setFillColor,De.opacityPanel=new Nt("Opacity",Ye.defaultOpacitySteps,De.opacity),De.opacityPanel.onOpacityChanged=De.setOpacity,De}return Ve(Fe,Ze),Fe.prototype.setOpacity=function(xe){this.opacity=xe,this.visual&&ze.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var xe=Ze.prototype.getState.call(this);return xe.typeName=Fe.typeName,xe},Fe.typeName="HighlightMarker",Fe.title="Highlight marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',Fe}(Tt),st='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',He='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',jt=function(Ze){function Fe(xe,Te,Ye){var De=Ze.call(this,xe,Te,Ye)||this;return De.bgColor="transparent",De.tipPosition={x:0,y:0},De.tipBase1Position={x:0,y:0},De.tipBase2Position={x:0,y:0},De.tipMoving=!1,De.color=Ye.defaultStrokeColor,De.bgColor=Ye.defaultFillColor,De.fontFamily=Ye.defaultFontFamily,De.defaultSize={x:100,y:30},De.setBgColor=De.setBgColor.bind(De),De.getTipPoints=De.getTipPoints.bind(De),De.positionTip=De.positionTip.bind(De),De.setTipPoints=De.setTipPoints.bind(De),De.colorPanel=new ee("Text color",Ye.defaultColorSet,De.color,st),De.colorPanel.onColorChanged=De.setColor,De.bgColorPanel=new ee("Fill color",Ye.defaultColorSet,De.bgColor,He),De.bgColorPanel.onColorChanged=De.setBgColor,De.fontFamilyPanel=new rt("Font",Ye.defaultFontFamilies,Ye.defaultFontFamily),De.fontFamilyPanel.onFontChanged=De.setFont,De.tipGrip=new de,De.tipGrip.visual.transform.baseVal.appendItem(ze.createTransform()),De.controlBox.appendChild(De.tipGrip.visual),De}return Ve(Fe,Ze),Fe.prototype.ownsTarget=function(xe){return Ze.prototype.ownsTarget.call(this,xe)||this.tipGrip.ownsTarget(xe)||this.tip===xe},Fe.prototype.createTip=function(){ze.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ze.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Fe.prototype.pointerDown=function(xe,Te){this.state==="new"&&Ze.prototype.pointerDown.call(this,xe,Te),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Te)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Ze.prototype.pointerDown.call(this,xe,Te)},Fe.prototype.pointerUp=function(xe){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Ze.prototype.pointerUp.call(this,xe);else{var Te=this.state==="creating";Ze.prototype.pointerUp.call(this,xe),this.setTipPoints(Te),this.positionTip()}},Fe.prototype.manipulate=function(xe){if(this.tipMoving){var Te=this.unrotatePoint(xe);this.tipPosition={x:Te.x-this.manipulationStartLeft,y:Te.y-this.manipulationStartTop},this.positionTip()}else Ze.prototype.manipulate.call(this,xe)},Fe.prototype.setBgColor=function(xe){this.bgRectangle&&this.tip&&(ze.setAttributes(this.bgRectangle,[["fill",xe]]),ze.setAttributes(this.tip,[["fill",xe]])),this.bgColor=xe,this.fillColorChanged(xe)},Fe.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},Fe.prototype.setTipPoints=function(xe){xe===void 0&&(xe=!1);var Te=Math.min(this.height/2,15),Ye=this.height/5;xe&&(this.tipPosition={x:Te+Ye/2,y:this.height+20});var De=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?De<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Ye=this.width/5,Te=Math.min(this.width/2,15),this.tipBase1Position={x:Te,y:0},this.tipBase2Position={x:Te+Ye,y:0}):(this.tipBase1Position={x:0,y:Te},this.tipBase2Position={x:0,y:Te+Ye}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?De<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Ye=this.width/5,Te=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Te-Ye,y:0},this.tipBase2Position={x:this.width-Te,y:0}):(this.tipBase1Position={x:this.width,y:Te},this.tipBase2Position={x:this.width,y:Te+Ye}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?De<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Ye=this.width/5,Te=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Te-Ye,y:this.height},this.tipBase2Position={x:this.width-Te,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Te-Ye},this.tipBase2Position={x:this.width,y:this.height-Te}):De<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Ye=this.width/5,Te=Math.min(this.width/2,15),this.tipBase1Position={x:Te,y:this.height},this.tipBase2Position={x:Te+Ye,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Te},this.tipBase2Position={x:0,y:this.height-Te-Ye})},Fe.prototype.resize=function(xe){Ze.prototype.resize.call(this,xe),this.positionTip()},Fe.prototype.positionTip=function(){ze.setAttributes(this.tip,[["points",this.getTipPoints()]]);var xe=this.tipGrip.visual.transform.baseVal.getItem(0);xe.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(xe,0)},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Fe.prototype.select=function(){this.positionTip(),Ze.prototype.select.call(this)},Fe.prototype.getState=function(){var xe=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Ze.prototype.getState.call(this));return xe.typeName=Fe.typeName,xe},Fe.prototype.restoreState=function(xe){var Te=xe;this.bgColor=Te.bgColor,this.tipPosition=Te.tipPosition,Ze.prototype.restoreState.call(this,xe),this.createTip(),this.setTipPoints()},Fe.prototype.scale=function(xe,Te){Ze.prototype.scale.call(this,xe,Te),this.tipPosition={x:this.tipPosition.x*xe,y:this.tipPosition.y*Te},this.positionTip()},Fe.typeName="CalloutMarker",Fe.title="Callout marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',Fe}(xt),fn=function(Ze){function Fe(xe,Te,Ye){var De=Ze.call(this,xe,Te,Ye)||this;return De.fillColor="transparent",De.strokeColor="transparent",De.strokeWidth=0,De.strokeDasharray="",De.opacity=1,De.strokeColor=Ye.defaultColor,De.strokeWidth=Ye.defaultStrokeWidth,De.strokeDasharray=Ye.defaultStrokeDasharray,De.fillColor=Ye.defaultFillColor,De.setStrokeColor=De.setStrokeColor.bind(De),De.setFillColor=De.setFillColor.bind(De),De.setStrokeWidth=De.setStrokeWidth.bind(De),De.setStrokeDasharray=De.setStrokeDasharray.bind(De),De.setOpacity=De.setOpacity.bind(De),De.createVisual=De.createVisual.bind(De),De.strokePanel=new ee("Line color",it(Ye.defaultColorSet,["transparent"]),Ye.defaultColor),De.strokePanel.onColorChanged=De.setStrokeColor,De.fillPanel=new ee("Fill color",it(Ye.defaultColorSet,["transparent"]),De.fillColor,He),De.fillPanel.onColorChanged=De.setFillColor,De.strokeWidthPanel=new Re("Line width",Ye.defaultStrokeWidths,Ye.defaultStrokeWidth),De.strokeWidthPanel.onWidthChanged=De.setStrokeWidth,De.strokeStylePanel=new Oe("Line style",Ye.defaultStrokeDasharrays,Ye.defaultStrokeDasharray),De.strokeStylePanel.onStyleChanged=De.setStrokeDasharray,De.opacityPanel=new Nt("Opacity",Ye.defaultOpacitySteps,De.opacity),De.opacityPanel.onOpacityChanged=De.setOpacity,De}return Ve(Fe,Ze),Fe.prototype.ownsTarget=function(xe){return!(!Ze.prototype.ownsTarget.call(this,xe)&&xe!==this.visual)},Fe.prototype.createVisual=function(){this.visual=ze.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},Fe.prototype.pointerDown=function(xe,Te){Ze.prototype.pointerDown.call(this,xe,Te),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},Fe.prototype.manipulate=function(xe){Ze.prototype.manipulate.call(this,xe)},Fe.prototype.resize=function(xe){Ze.prototype.resize.call(this,xe),this.setSize()},Fe.prototype.setSize=function(){Ze.prototype.setSize.call(this),ze.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Fe.prototype.pointerUp=function(xe){Ze.prototype.pointerUp.call(this,xe),this.setSize()},Fe.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.visual&&ze.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(xe),this.stateChanged()},Fe.prototype.setFillColor=function(xe){this.fillColor=xe,this.visual&&ze.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(xe),this.stateChanged()},Fe.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.visual&&ze.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Fe.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.visual&&ze.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Fe.prototype.setOpacity=function(xe){this.opacity=xe,this.visual&&ze.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var xe=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ze.prototype.getState.call(this));return xe.typeName=Fe.typeName,xe},Fe.prototype.restoreState=function(xe){var Te=xe;this.fillColor=Te.fillColor,this.strokeColor=Te.strokeColor,this.strokeWidth=Te.strokeWidth,this.strokeDasharray=Te.strokeDasharray,this.opacity=Te.opacity,this.createVisual(),Ze.prototype.restoreState.call(this,xe),this.setSize()},Fe.prototype.scale=function(xe,Te){Ze.prototype.scale.call(this,xe,Te),this.setSize()},Fe.typeName="EllipseMarker",Fe.title="Ellipse marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',Fe}(ye),Bt=function(Ze){function Fe(xe,Te,Ye){return Ze.call(this,xe,Te,Ye)||this}return Ve(Fe,Ze),Object.defineProperty(Fe.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Fe.prototype.ownsTarget=function(xe){return!(!Ze.prototype.ownsTarget.call(this,xe)&&xe!==this.tip1&&xe!==this.tip2)},Fe.prototype.createTips=function(){this.tip1=ze.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(ze.createTransform()),this.visual.appendChild(this.tip1),this.tip2=ze.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(ze.createTransform()),this.visual.appendChild(this.tip2)},Fe.prototype.pointerDown=function(xe,Te){Ze.prototype.pointerDown.call(this,xe,Te),this.state==="creating"&&this.createTips()},Fe.prototype.adjustVisual=function(){if(Ze.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(ze.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),ze.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var xe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Te=this.tip1.transform.baseVal.getItem(0);Te.setRotate(xe,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Te,0);var Ye=this.tip2.transform.baseVal.getItem(0);Ye.setRotate(xe+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Ye,0)}},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var xe=Ze.prototype.getState.call(this);return xe.typeName=Fe.typeName,xe},Fe.prototype.restoreState=function(xe){Ze.prototype.restoreState.call(this,xe),this.createTips(),this.adjustVisual()},Fe.typeName="MeasurementMarker",Fe.title="Measurement marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',Fe}(Qe),Ft=function(Ze){function Fe(xe,Te,Ye){var De=Ze.call(this,xe,Te,Ye)||this;return De.strokePanel.colors=Ye.defaultColorSet,De.fillColor="transparent",De}return Ve(Fe,Ze),Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var xe=Ze.prototype.getState.call(this);return xe.typeName=Fe.typeName,xe},Fe.typeName="EllipseFrameMarker",Fe.title="Ellipse frame marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',Fe}(fn),It=function(){function Ze(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Ze.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Ze.prototype.addUndoStep=function(Fe){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Fe)||(this.undoStack.push(Fe),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Fe)&&this.redoStack.splice(0,this.redoStack.length))},Ze.prototype.replaceLastUndoStep=function(Fe){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Fe)},Ze.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Ze.prototype.undo=function(){if(this.undoStack.length>1){var Fe=this.undoStack.pop();return Fe!==void 0&&this.redoStack.push(Fe),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Ze.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Ze}(),Vt=function(Ze){function Fe(xe,Te,Ye){var De=Ze.call(this,xe,Te,Ye)||this;return De.strokeColor="transparent",De.strokeWidth=0,De.strokeDasharray="",De.curveX=0,De.curveY=0,De.manipulationStartCurveX=0,De.manipulationStartCurveY=0,De.setStrokeColor=De.setStrokeColor.bind(De),De.setStrokeWidth=De.setStrokeWidth.bind(De),De.setStrokeDasharray=De.setStrokeDasharray.bind(De),De.positionGrips=De.positionGrips.bind(De),De.addControlGrips=De.addControlGrips.bind(De),De.adjustVisual=De.adjustVisual.bind(De),De.setupControlBox=De.setupControlBox.bind(De),De.resize=De.resize.bind(De),De.strokeColor=Ye.defaultColor,De.strokeWidth=Ye.defaultStrokeWidth,De.strokeDasharray=Ye.defaultStrokeDasharray,De.strokePanel=new ee("Line color",Ye.defaultColorSet,Ye.defaultColor),De.strokePanel.onColorChanged=De.setStrokeColor,De.strokeWidthPanel=new Re("Line width",Ye.defaultStrokeWidths,Ye.defaultStrokeWidth),De.strokeWidthPanel.onWidthChanged=De.setStrokeWidth,De.strokeStylePanel=new Oe("Line style",Ye.defaultStrokeDasharrays,Ye.defaultStrokeDasharray),De.strokeStylePanel.onStyleChanged=De.setStrokeDasharray,De}return Ve(Fe,Ze),Fe.prototype.ownsTarget=function(xe){return!(!Ze.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.selectorCurve&&xe!==this.visibleCurve&&!this.curveGrip.ownsTarget(xe))},Fe.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Fe.prototype.createVisual=function(){this.visual=ze.createGroup(),this.selectorCurve=ze.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ze.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},Fe.prototype.pointerDown=function(xe,Te){Ze.prototype.pointerDown.call(this,xe,Te),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=xe.x,this.curveY=xe.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Te)&&(this.activeGrip=this.curveGrip,this._state="resize")},Fe.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),ze.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ze.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ze.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Fe.prototype.setupControlBox=function(){Ze.prototype.setupControlBox.call(this),this.curveControlLine1=ze.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ze.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},Fe.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Ze.prototype.addControlGrips.call(this)},Fe.prototype.positionGrips=function(){Ze.prototype.positionGrips.call(this);var xe=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-xe/2,this.curveY-xe/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},Fe.prototype.manipulate=function(xe){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+xe.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+xe.y-this.manipulationStartY),Ze.prototype.manipulate.call(this,xe)},Fe.prototype.resize=function(xe){this.activeGrip===this.curveGrip&&(this.curveX=xe.x,this.curveY=xe.y),Ze.prototype.resize.call(this,xe),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Fe.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.adjustVisual(),this.colorChanged(xe)},Fe.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.adjustVisual()},Fe.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.adjustVisual()},Fe.prototype.scale=function(xe,Te){this.curveX=this.curveX*xe,this.curveY=this.curveY*Te,Ze.prototype.scale.call(this,xe,Te)},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var xe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Ze.prototype.getState.call(this));return xe.typeName=Fe.typeName,xe},Fe.prototype.restoreState=function(xe){Ze.prototype.restoreState.call(this,xe);var Te=xe;this.strokeColor=Te.strokeColor,this.strokeWidth=Te.strokeWidth,this.strokeDasharray=Te.strokeDasharray,this.curveX=Te.curveX,this.curveY=Te.curveY,this.createVisual(),this.adjustVisual()},Fe.typeName="CurveMarker",Fe.title="Curve marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',Fe}(Ie),wn=function(Ze){function Fe(xe,Te,Ye){var De=Ze.call(this,xe,Te,Ye)||this;return De.fillColor="transparent",De.strokeColor="transparent",De.strokeWidth=0,De.strokeDasharray="",De.textColor="transparent",De.fontSize="1rem",De.isMoved=!1,De.captionText="Caption",De.PADDING=5,De.captionBoxWidth=0,De.captionBoxHeight=0,De.strokeColor=Ye.defaultColor,De.strokeWidth=Ye.defaultStrokeWidth,De.strokeDasharray=Ye.defaultStrokeDasharray,De.fillColor=Ye.defaultFillColor,De.textColor=Ye.defaultStrokeColor,De.fontFamily=Ye.defaultFontFamily,De.fontSize=Ye.defaultCaptionFontSize,De.captionText=Ye.defaultCaptionText,De.setStrokeColor=De.setStrokeColor.bind(De),De.setFillColor=De.setFillColor.bind(De),De.setStrokeWidth=De.setStrokeWidth.bind(De),De.setStrokeDasharray=De.setStrokeDasharray.bind(De),De.createVisual=De.createVisual.bind(De),De.sizeCaption=De.sizeCaption.bind(De),De.setCaptionText=De.setCaptionText.bind(De),De.showTextEditor=De.showTextEditor.bind(De),De.positionTextEditor=De.positionTextEditor.bind(De),De.finishTextEditing=De.finishTextEditing.bind(De),De.setFont=De.setFont.bind(De),De.setTextColor=De.setTextColor.bind(De),De.strokePanel=new ee("Line color",it(Ye.defaultColorSet,["transparent"]),De.strokeColor),De.strokePanel.onColorChanged=De.setStrokeColor,De.fillPanel=new ee("Fill color",it(Ye.defaultColorSet,["transparent"]),De.fillColor,He),De.fillPanel.onColorChanged=De.setFillColor,De.strokeWidthPanel=new Re("Line width",Ye.defaultStrokeWidths,Ye.defaultStrokeWidth),De.strokeWidthPanel.onWidthChanged=De.setStrokeWidth,De.strokeStylePanel=new Oe("Line style",Ye.defaultStrokeDasharrays,Ye.defaultStrokeDasharray),De.strokeStylePanel.onStyleChanged=De.setStrokeDasharray,De.fontFamilyPanel=new rt("Font",Ye.defaultFontFamilies,Ye.defaultFontFamily),De.fontFamilyPanel.onFontChanged=De.setFont,De.textColorPanel=new ee("Text color",Ye.defaultColorSet,De.textColor,st),De.textColorPanel.onColorChanged=De.setTextColor,De}return Ve(Fe,Ze),Fe.prototype.ownsTarget=function(xe){return!(!Ze.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.frame&&xe!==this.captionBg&&xe!==this.captionElement)},Fe.prototype.createVisual=function(){this.visual=ze.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=ze.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=ze.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=ze.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},Fe.prototype.setCaptionText=function(xe){this.captionText=xe,this.captionElement.textContent=this.captionText,this.sizeCaption()},Fe.prototype.pointerDown=function(xe,Te){Ze.prototype.pointerDown.call(this,xe,Te),this.isMoved=!1,this.pointerDownPoint=xe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},Fe.prototype.manipulate=function(xe){Ze.prototype.manipulate.call(this,xe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(xe.x-this.pointerDownPoint.x)>5||Math.abs(xe.y-this.pointerDownPoint.y)>5)},Fe.prototype.resize=function(xe){Ze.prototype.resize.call(this,xe),this.setSize()},Fe.prototype.sizeCaption=function(){var xe=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=xe.width+2*this.PADDING,this.captionBoxHeight=xe.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),ze.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),ze.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},Fe.prototype.showTextEditor=function(){var xe=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(Te){Te.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Te){Te.key==="Enter"&&xe.finishTextEditing(xe.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Te){Te.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){xe.finishTextEditing(xe.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){xe.finishTextEditing(xe.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Fe.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},Fe.prototype.finishTextEditing=function(xe){this.setCaptionText(xe.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Fe.prototype.setFont=function(xe){this.captionElement&&ze.setAttributes(this.captionElement,[["font-family",xe]]),this.fontFamily=xe,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Fe.prototype.setTextColor=function(xe){this.captionElement&&ze.setAttributes(this.captionElement,[["fill",xe]]),this.textColor=xe,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Fe.prototype.setSize=function(){Ze.prototype.setSize.call(this),ze.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Fe.prototype.pointerUp=function(xe){Ze.prototype.pointerUp.call(this,xe),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Fe.prototype.dblClick=function(xe,Te){Ze.prototype.dblClick.call(this,xe,Te),this.showTextEditor()},Fe.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.frame&&ze.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(xe),this.stateChanged()},Fe.prototype.setFillColor=function(xe){this.fillColor=xe,this.captionBg&&ze.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(xe),this.stateChanged()},Fe.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.frame&&ze.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Fe.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.frame&&ze.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var xe=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},Ze.prototype.getState.call(this));return xe.typeName=this.typeName,xe},Fe.prototype.restoreState=function(xe){var Te=xe;this.fillColor=Te.fillColor,this.strokeColor=Te.strokeColor,this.strokeWidth=Te.strokeWidth,this.strokeDasharray=Te.strokeDasharray,this.textColor=Te.textColor,this.fontFamily=Te.fontFamily,this.captionText=Te.captionText,this.fontSize=Te.fontSize,this.createVisual(),Ze.prototype.restoreState.call(this,xe),this.setSize()},Fe.prototype.scale=function(xe,Te){Ze.prototype.scale.call(this,xe,Te),this.setSize()},Fe.typeName="CaptionFrameMarker",Fe.title="Caption frame marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',Fe}(ye),Dt=function(){function Ze(Fe,xe){xe===void 0&&(xe=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Fe,this.cancelable=xe}return Object.defineProperty(Ze.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Ze.prototype.preventDefault=function(){this._defaultPrevented=!0},Ze}(),vt=function(Ze){function Fe(xe,Te,Ye){var De=Ze.call(this,xe,!1)||this;return De.dataUrl=Te,De.state=Ye,De}return Ve(Fe,Ze),Fe}(Dt),zt=function(Ze){function Fe(xe,Te,Ye){Ye===void 0&&(Ye=!1);var De=Ze.call(this,xe,Ye)||this;return De.marker=Te,De}return Ve(Fe,Ze),Fe}(Dt),En=function(){function Ze(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return Ze.prototype.addEventListener=function(Fe,xe){this[Fe].push(xe)},Ze.prototype.removeEventListener=function(Fe,xe){var Te=this[Fe].indexOf(xe);Te>-1&&this[Fe].splice(Te,1)},Ze}(),kn=function(){function Ze(Fe){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Be,this._isOpen=!1,this.undoRedoManager=new It,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new En,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Ze.instanceCounter++,this.styles=new Me(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Fe,this.targetRoot=document.body,this.width=Fe.clientWidth,this.height=Fe.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(Ze.prototype,"ALL_MARKER_TYPES",{get:function(){return[We,gt,At,xt,Ft,fn,Ut,jt,Bt,Tt,Qe,Vt,wn]},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[We,gt,At,xt,fn,Ut,jt]},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"BASIC_MARKER_TYPES",{get:function(){return[We,gt,At,xt,Ut]},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Fe){var xe=this;this._availableMarkerTypes.splice(0),Fe.forEach(function(Te){if(typeof Te=="string"){var Ye=xe.ALL_MARKER_TYPES.find(function(De){return De.typeName===Te});Ye!==void 0&&xe._availableMarkerTypes.push(Ye)}else xe._availableMarkerTypes.push(Te)})},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Fe){this._zoomLevel=Fe,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Ze.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ue.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Ze.prototype.show=function(){var Fe=this;this.styles.styleSheetRoot===void 0&&ot.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ot.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(xe){return xe(new Dt(Fe))})},Ze.prototype.render=function(){return ut(this,void 0,void 0,function(){var Fe;return nt(this,function(xe){switch(xe.label){case 0:return this.setCurrentMarker(),(Fe=new yt).naturalSize=this.renderAtNaturalSize,Fe.imageType=this.renderImageType,Fe.imageQuality=this.renderImageQuality,Fe.markersOnly=this.renderMarkersOnly,Fe.width=this.renderWidth,Fe.height=this.renderHeight,[4,Fe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return xe.sent(),[4,Fe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,xe.sent()]}})})},Ze.prototype.close=function(Fe){var xe=this;if(Fe===void 0&&(Fe=!1),this.isOpen){var Te=!1;Fe||this.eventListeners.beforeclose.forEach(function(Ye){var De=new Dt(xe,!0);Ye(De),De.defaultPrevented&&(Te=!0)}),Te||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(Ye){return Ye(new Dt(xe))}),this.detachEvents(),this._isOpen=!1)}},Ze.prototype.addMarkersToToolbar=function(){for(var Fe,xe=[],Te=0;Te<arguments.length;Te++)xe[Te]=arguments[Te];(Fe=this._availableMarkerTypes).push.apply(Fe,xe)},Ze.prototype.addRenderEventListener=function(Fe){this.addEventListener("render",function(xe){Fe(xe.dataUrl,xe.state)})},Ze.prototype.removeRenderEventListener=function(Fe){},Ze.prototype.addCloseEventListener=function(Fe){this.addEventListener("close",function(){Fe()})},Ze.prototype.removeCloseEventListener=function(Fe){},Ze.prototype.setupResizeObserver=function(){var Fe=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Fe.resize(Fe.target.clientWidth,Fe.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Fe.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Ze.prototype.onPopupTargetResize=function(){var Fe=1*this.target.clientWidth/this.target.clientHeight,xe=this.editorCanvas.clientWidth/Fe>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Fe:this.editorCanvas.clientWidth,Te=xe<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Fe;this.resize(xe,Te)},Ze.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Ze.prototype.resize=function(Fe,xe){this._isResizing=!0;var Te=Fe/this.imageWidth,Ye=xe/this.imageHeight;this.imageWidth=Math.round(Fe),this.imageHeight=Math.round(xe),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(Te,Ye),this._isResizing=!1},Ze.prototype.scaleMarkers=function(Fe,xe){var Te,Ye=this;this._currentMarker&&this._currentMarker instanceof xt?this._currentMarker.scale(Fe,xe):(Te=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(De){De!==Ye._currentMarker&&De.scale(Fe,xe)}),Te!==void 0&&this.setCurrentMarker(Te)},Ze.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},Ze.prototype.setTopLeft=function(){var Fe=this.editingTarget.getBoundingClientRect(),xe=this.editorCanvas.getBoundingClientRect();this.left=Fe.left-xe.left,this.top=Fe.top-xe.top},Ze.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},Ze.prototype.addDefs=function(){for(var Fe,xe=[],Te=0;Te<arguments.length;Te++)xe[Te]=arguments[Te];this.defs=ze.createDefs(),this.addDefsToImage(),(Fe=this.defs).append.apply(Fe,xe)},Ze.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Ze.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},Ze.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Ze.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Ze.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},Ze.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Ze.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},Ze.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var Fe=document.createElement("a");Fe.href="https://markerjs.com/",Fe.target="_blank",Fe.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',Fe.title="Powered by marker.js",Fe.style.display="grid",Fe.style.alignItems="center",Fe.style.justifyItems="center",Fe.style.padding="3px",Fe.style.width="20px",Fe.style.height="20px",this.logoUI.appendChild(Fe),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Ze.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},Ze.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},Ze.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Ze.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var Fe=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Fe+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new ht(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new Ee(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Ze.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Ze.prototype.removeMarker=function(Fe){this.markerImage.removeChild(Fe.container),this.markers.indexOf(Fe)>-1&&this.markers.splice(this.markers.indexOf(Fe),1),Fe.dispose()},Ze.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},Ze.prototype.toolbarButtonClicked=function(Fe,xe){if(Fe==="marker"&&xe!==void 0)this.createNewMarker(xe);else if(Fe==="action")switch(xe){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},Ze.prototype.deleteSelectedMarker=function(){var Fe=this;if(this._currentMarker!==void 0){var xe=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Ye){var De=new zt(Fe,Fe._currentMarker,!0);Ye(De),De.defaultPrevented&&(xe=!0)}),!xe){var Te=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(Ye){return Ye(new zt(Fe,Te))})}}},Ze.prototype.clear=function(){var Fe=this,xe=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(tt){var Ht=new zt(Fe,void 0,!0);tt(Ht),Ht.defaultPrevented&&(xe=!0)}),!xe)){this.setCurrentMarker();for(var Te=function(tt){var Ht=Ye.markers[tt];Ye.setCurrentMarker(Ye.markers[tt]),Ye._currentMarker.dispose(),Ye.markerImage.removeChild(Ye._currentMarker.container),Ye.markers.splice(Ye.markers.indexOf(Ye._currentMarker),1),Ye.eventListeners.markerdelete.forEach(function($t){return $t(new zt(Fe,Ht))})},Ye=this,De=this.markers.length-1;De>=0;De--)Te(De);this.addUndoStep()}},Object.defineProperty(Ze.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Ze.prototype.showNotesEditor=function(){var Fe;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(Fe=this._currentMarker.notes)!==null&&Fe!==void 0?Fe:"",this.overlayContainer.appendChild(this.notesArea))},Ze.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},Ze.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Ze.prototype.addUndoStep=function(){var Fe=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var xe=this.getState(),Te=this.undoRedoManager.getLastUndoStep();if(!Te||Te.width===xe.width&&Te.height===xe.height){var Ye=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(xe),Ye<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(De){return De(new Dt(Fe))})}else this.undoRedoManager.replaceLastUndoStep(xe),this.eventListeners.statechange.forEach(function(De){return De(new Dt(Fe))})}},Ze.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Ze.prototype.undoStep=function(){var Fe=this,xe=this.undoRedoManager.undo();xe!==void 0&&(this.restoreState(xe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Te){return Te(new Dt(Fe))}))},Ze.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Ze.prototype.redoStep=function(){var Fe=this,xe=this.undoRedoManager.redo();xe!==void 0&&(this.restoreState(xe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Te){return Te(new Dt(Fe))}))},Ze.prototype.stepZoom=function(){var Fe=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Fe<this.zoomSteps.length-1?this.zoomSteps[Fe+1]:this.zoomSteps[0]},Ze.prototype.panTo=function(Fe){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Fe.x,top:this.prevPanPoint.y-Fe.y}),this.prevPanPoint=Fe},Ze.prototype.startRenderAndClose=function(){return ut(this,void 0,void 0,function(){var Fe,xe,Te=this;return nt(this,function(Ye){switch(Ye.label){case 0:return[4,this.render()];case 1:return Fe=Ye.sent(),xe=this.getState(),this.eventListeners.render.forEach(function(De){return De(new vt(Te,Fe,xe))}),this.close(!0),[2]}})})},Ze.prototype.getState=function(Fe){Fe===!0&&this.setCurrentMarker();var xe={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Te){return xe.markers.push(Te.getState())}),xe},Ze.prototype.restoreState=function(Fe){var xe=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Fe.markers.forEach(function(Te){var Ye=xe._availableMarkerTypes.find(function(tt){return tt.typeName===Te.typeName});if(Ye!==void 0){var De=xe.addNewMarker(Ye);De.restoreState(Te),xe.markers.push(De)}}),Fe.width&&Fe.height&&(Fe.width!==this.imageWidth||Fe.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Fe.width,this.imageHeight/Fe.height),this.eventListeners.restorestate.forEach(function(Te){return Te(new Dt(xe))})},Ze.prototype.addNewMarker=function(Fe){var xe=ze.createGroup();return this.markerImage.appendChild(xe),new Fe(xe,this.overlayContainer,this.settings)},Ze.prototype.createNewMarker=function(Fe){var xe,Te=this;(xe=typeof Fe=="string"?this._availableMarkerTypes.find(function(Ye){return Ye.typeName===Fe}):Fe)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(xe),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(xe.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Ye){return Ye(new zt(Te,Te._currentMarker))}))},Ze.prototype.markerCreated=function(Fe){var xe=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Fe),this.setCurrentMarker(Fe),Fe instanceof gt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(gt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Te){return Te(new zt(xe,xe._currentMarker))})},Ze.prototype.colorChanged=function(Fe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Fe,this.settings.defaultStrokeColor=Fe)},Ze.prototype.fillColorChanged=function(Fe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Fe)},Ze.prototype.markerStateChanged=function(Fe){var xe=this;this.eventListeners.markerchange.forEach(function(Te){return Te(new zt(xe,Fe))})},Ze.prototype.setCurrentMarker=function(Fe){var xe=this;this._currentMarker!==Fe&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Te){return Te(new zt(xe,xe._currentMarker))})),this._currentMarker=Fe,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(Te){return Te(new zt(xe,xe._currentMarker))}))},Ze.prototype.onPointerDown=function(Fe){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Fe.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var xe=this.markers.find(function(Te){return Te.ownsTarget(Fe.target)});xe!==void 0?(this.setCurrentMarker(xe),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Fe.clientX,Fe.clientY),Fe.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Fe.clientX,y:Fe.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Fe.clientX,Fe.clientY))},Ze.prototype.onDblClick=function(Fe){if(this._isFocused||this.focus(),this.mode==="select"){var xe=this.markers.find(function(Te){return Te.ownsTarget(Fe.target)});xe!==void 0&&xe!==this._currentMarker&&this.setCurrentMarker(xe),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Fe.clientX,Fe.clientY),Fe.target):this.setCurrentMarker()}},Ze.prototype.onPointerMove=function(Fe){this.touchPoints!==1&&Fe.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Fe.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Fe.clientX,Fe.clientY)):this.zoomLevel>1&&this.panTo({x:Fe.clientX,y:Fe.clientY}))},Ze.prototype.onPointerUp=function(Fe){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Fe.clientX,Fe.clientY)),this.isDragging=!1,this.addUndoStep()},Ze.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Ze.prototype.onKeyUp=function(Fe){this._currentMarker===void 0||this.notesArea!==void 0||Fe.key!=="Delete"&&Fe.key!=="Backspace"||this.deleteSelectedMarker()},Ze.prototype.clientToLocalCoordinates=function(Fe,xe){var Te=this.markerImage.getBoundingClientRect();return{x:(Fe-Te.left)/this.zoomLevel,y:(xe-Te.top)/this.zoomLevel}},Ze.prototype.onWindowResize=function(){this.positionUI()},Ze.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Fe=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Fe+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},Ze.prototype.addLicenseKey=function(Fe){Ue.addKey(Fe)},Ze.prototype.addEventListener=function(Fe,xe){this.eventListeners.addEventListener(Fe,xe)},Ze.prototype.removeEventListener=function(Fe,xe){this.eventListeners.removeEventListener(Fe,xe)},Ze.prototype.renderState=function(Fe){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Fe),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Ze.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Ze.prototype.focus=function(){var Fe=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(xe){return xe(new Dt(Fe))}))},Ze.prototype.blur=function(){var Fe=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(xe){return xe(new Dt(Fe))}))},Ze.instanceCounter=0,Ze}()},23425:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Z:function(){return Oe}});var me=Pe(52873),Ve=Pe(67711),ut=Pe(26420),nt=Pe(98506),it=Pe(16886),ze=Pe(92310),Ue=Pe.n(ze),yt=Pe(18929),ot=Pe(10228),Me=Pe(26112),Et=Pe(48736),_e=Pe(59301),ht=Pe(17119),Ee=[10,20,50,100],ne=function(Be){var Ie=Be.pageSizeOptions,Qe=Ie===void 0?Ee:Ie,rt=Be.locale,xt=Be.changeSize,gt=Be.pageSize,bt=Be.goButton,At=Be.quickGo,Tt=Be.rootPrefixCls,Nt=Be.disabled,Ut=Be.buildOptionText,st=Be.showSizeChanger,He=Be.sizeChangerRender,jt=_e.useState(""),fn=(0,it.Z)(jt,2),Bt=fn[0],Ft=fn[1],It=function(){return!Bt||Number.isNaN(Bt)?void 0:Number(Bt)},Vt=typeof Ut=="function"?Ut:function(xe){return"".concat(xe," ").concat(rt.items_per_page)},wn=function(Te){Ft(Te.target.value)},Dt=function(Te){bt||Bt===""||(Ft(""),!(Te.relatedTarget&&(Te.relatedTarget.className.indexOf("".concat(Tt,"-item-link"))>=0||Te.relatedTarget.className.indexOf("".concat(Tt,"-item"))>=0))&&(At==null||At(It())))},vt=function(Te){Bt!==""&&(Te.keyCode===ot.Z.ENTER||Te.type==="click")&&(Ft(""),At==null||At(It()))},zt=function(){return Qe.some(function(Te){return Te.toString()===gt.toString()})?Qe:Qe.concat([gt]).sort(function(Te,Ye){var De=Number.isNaN(Number(Te))?0:Number(Te),tt=Number.isNaN(Number(Ye))?0:Number(Ye);return De-tt})},En="".concat(Tt,"-options");if(!st&&!At)return null;var kn=null,Ze=null,Fe=null;return st&&He&&(kn=He({disabled:Nt,size:gt,onSizeChange:function(Te){xt==null||xt(Number(Te))},"aria-label":rt.page_size,className:"".concat(En,"-size-changer"),options:zt().map(function(xe){return{label:Vt(xe),value:xe}})})),At&&(bt&&(Fe=typeof bt=="boolean"?_e.createElement("button",{type:"button",onClick:vt,onKeyUp:vt,disabled:Nt,className:"".concat(En,"-quick-jumper-button")},rt.jump_to_confirm):_e.createElement("span",{onClick:vt,onKeyUp:vt},bt)),Ze=_e.createElement("div",{className:"".concat(En,"-quick-jumper")},rt.jump_to,_e.createElement("input",{disabled:Nt,type:"text",value:Bt,onChange:wn,onKeyUp:vt,onBlur:Dt,"aria-label":rt.page}),rt.page,Fe)),_e.createElement("li",{className:En},kn,Ze)},ee=ne,ue=function(Be){var Ie=Be.rootPrefixCls,Qe=Be.page,rt=Be.active,xt=Be.className,gt=Be.showTitle,bt=Be.onClick,At=Be.onKeyPress,Tt=Be.itemRender,Nt="".concat(Ie,"-item"),Ut=Ue()(Nt,"".concat(Nt,"-").concat(Qe),(0,me.Z)((0,me.Z)({},"".concat(Nt,"-active"),rt),"".concat(Nt,"-disabled"),!Qe),xt),st=function(){bt(Qe)},He=function(Bt){At(Bt,bt,Qe)},jt=Tt(Qe,"page",_e.createElement("a",{rel:"nofollow"},Qe));return jt?_e.createElement("li",{title:gt?String(Qe):null,className:Ut,onClick:st,onKeyDown:He,tabIndex:0},jt):null},se=ue,de=function(Be,Ie,Qe){return Qe};function pe(){}function ye(We){var Be=Number(We);return typeof Be=="number"&&!Number.isNaN(Be)&&isFinite(Be)&&Math.floor(Be)===Be}function Ce(We,Be,Ie){var Qe=typeof We=="undefined"?Be:We;return Math.floor((Ie-1)/Qe)+1}var Re=function(Be){var Ie=Be.prefixCls,Qe=Ie===void 0?"rc-pagination":Ie,rt=Be.selectPrefixCls,xt=rt===void 0?"rc-select":rt,gt=Be.className,bt=Be.current,At=Be.defaultCurrent,Tt=At===void 0?1:At,Nt=Be.total,Ut=Nt===void 0?0:Nt,st=Be.pageSize,He=Be.defaultPageSize,jt=He===void 0?10:He,fn=Be.onChange,Bt=fn===void 0?pe:fn,Ft=Be.hideOnSinglePage,It=Be.align,Vt=Be.showPrevNextJumpers,wn=Vt===void 0?!0:Vt,Dt=Be.showQuickJumper,vt=Be.showLessItems,zt=Be.showTitle,En=zt===void 0?!0:zt,kn=Be.onShowSizeChange,Ze=kn===void 0?pe:kn,Fe=Be.locale,xe=Fe===void 0?ht.Z:Fe,Te=Be.style,Ye=Be.totalBoundaryShowSizeChanger,De=Ye===void 0?50:Ye,tt=Be.disabled,Ht=Be.simple,$t=Be.showTotal,Sn=Be.showSizeChanger,en=Sn===void 0?Ut>De:Sn,kt=Be.sizeChangerRender,nn=Be.pageSizeOptions,hn=Be.itemRender,zn=hn===void 0?de:hn,fi=Be.jumpPrevIcon,_n=Be.jumpNextIcon,Pi=Be.prevIcon,Ci=Be.nextIcon,Yn=_e.useRef(null),Ei=(0,yt.Z)(10,{value:st,defaultValue:jt}),pi=(0,it.Z)(Ei,2),ji=pi[0],Qi=pi[1],lr=(0,yt.Z)(1,{value:bt,defaultValue:Tt,postState:function(zr){return Math.max(1,Math.min(zr,Ce(void 0,ji,Ut)))}}),Lr=(0,it.Z)(lr,2),Di=Lr[0],cr=Lr[1],to=_e.useState(Di),ki=(0,it.Z)(to,2),no=ki[0],fo=ki[1];(0,_e.useEffect)(function(){fo(Di)},[Di]);var po=Bt!==pe,io="current"in Be,hr=Math.max(1,Di-(vt?3:5)),ao=Math.min(Ce(void 0,ji,Ut),Di+(vt?3:5));function be(Kn,zr){var Tr=Kn||_e.createElement("button",{type:"button","aria-label":zr,className:"".concat(Qe,"-item-link")});return typeof Kn=="function"&&(Tr=_e.createElement(Kn,(0,nt.Z)({},Be))),Tr}function Un(Kn){var zr=Kn.target.value,Tr=Ce(void 0,ji,Ut),Co;return zr===""?Co=zr:Number.isNaN(Number(zr))?Co=no:zr>=Tr?Co=Tr:Co=Number(zr),Co}function Xn(Kn){return ye(Kn)&&Kn!==Di&&ye(Ut)&&Ut>0}var ci=Ut>ji?Dt:!1;function mi(Kn){(Kn.keyCode===ot.Z.UP||Kn.keyCode===ot.Z.DOWN)&&Kn.preventDefault()}function ei(Kn){var zr=Un(Kn);switch(zr!==no&&fo(zr),Kn.keyCode){case ot.Z.ENTER:an(zr);break;case ot.Z.UP:an(zr-1);break;case ot.Z.DOWN:an(zr+1);break;default:break}}function Gi(Kn){an(Un(Kn))}function vr(Kn){var zr=Ce(Kn,ji,Ut),Tr=Di>zr&&zr!==0?zr:Di;Qi(Kn),fo(Tr),Ze==null||Ze(Di,Kn),cr(Tr),Bt==null||Bt(Tr,Kn)}function an(Kn){if(Xn(Kn)&&!tt){var zr=Ce(void 0,ji,Ut),Tr=Kn;return Kn>zr?Tr=zr:Kn<1&&(Tr=1),Tr!==no&&fo(Tr),cr(Tr),Bt==null||Bt(Tr,ji),Tr}return Di}var ln=Di>1,Zt=Di<Ce(void 0,ji,Ut);function pn(){ln&&an(Di-1)}function zi(){Zt&&an(Di+1)}function Ti(){an(hr)}function dr(){an(ao)}function un(Kn,zr){if(Kn.key==="Enter"||Kn.charCode===ot.Z.ENTER||Kn.keyCode===ot.Z.ENTER){for(var Tr=arguments.length,Co=new Array(Tr>2?Tr-2:0),Yr=2;Yr<Tr;Yr++)Co[Yr-2]=arguments[Yr];zr.apply(void 0,Co)}}function In(Kn){un(Kn,pn)}function Vi(Kn){un(Kn,zi)}function Fr(Kn){un(Kn,Ti)}function ii(Kn){un(Kn,dr)}function lt(Kn){var zr=zn(Kn,"prev",be(Pi,"prev page"));return _e.isValidElement(zr)?_e.cloneElement(zr,{disabled:!ln}):zr}function Rt(Kn){var zr=zn(Kn,"next",be(Ci,"next page"));return _e.isValidElement(zr)?_e.cloneElement(zr,{disabled:!Zt}):zr}function ai(Kn){(Kn.type==="click"||Kn.keyCode===ot.Z.ENTER)&&an(no)}var ti=null,tn=(0,Me.Z)(Be,{aria:!0,data:!0}),si=$t&&_e.createElement("li",{className:"".concat(Qe,"-total-text")},$t(Ut,[Ut===0?0:(Di-1)*ji+1,Di*ji>Ut?Ut:Di*ji])),Ri=null,Yi=Ce(void 0,ji,Ut);if(Ft&&Ut<=ji)return null;var tr=[],Bn={rootPrefixCls:Qe,onClick:an,onKeyPress:un,showTitle:En,itemRender:zn,page:-1},Ot=Di-1>0?Di-1:0,qn=Di+1<Yi?Di+1:Yi,Ji=Dt&&Dt.goButton,$i=(0,ut.Z)(Ht)==="object"?Ht.readOnly:!Ht,Pn=Ji,Mi=null;Ht&&(Ji&&(typeof Ji=="boolean"?Pn=_e.createElement("button",{type:"button",onClick:ai,onKeyUp:ai},xe.jump_to_confirm):Pn=_e.createElement("span",{onClick:ai,onKeyUp:ai},Ji),Pn=_e.createElement("li",{title:En?"".concat(xe.jump_to).concat(Di,"/").concat(Yi):null,className:"".concat(Qe,"-simple-pager")},Pn)),Mi=_e.createElement("li",{title:En?"".concat(Di,"/").concat(Yi):null,className:"".concat(Qe,"-simple-pager")},$i?no:_e.createElement("input",{type:"text","aria-label":xe.jump_to,value:no,disabled:tt,onKeyDown:mi,onKeyUp:ei,onChange:ei,onBlur:Gi,size:3}),_e.createElement("span",{className:"".concat(Qe,"-slash")},"/"),Yi));var Er=vt?1:2;if(Yi<=3+Er*2){Yi||tr.push(_e.createElement(se,(0,Ve.Z)({},Bn,{key:"noPager",page:1,className:"".concat(Qe,"-item-disabled")})));for(var Hr=1;Hr<=Yi;Hr+=1)tr.push(_e.createElement(se,(0,Ve.Z)({},Bn,{key:Hr,page:Hr,active:Di===Hr})))}else{var wo=vt?xe.prev_3:xe.prev_5,Kt=vt?xe.next_3:xe.next_5,Oi=zn(hr,"jump-prev",be(fi,"prev page")),Nr=zn(ao,"jump-next",be(_n,"next page"));wn&&(ti=Oi?_e.createElement("li",{title:En?wo:null,key:"prev",onClick:Ti,tabIndex:0,onKeyDown:Fr,className:Ue()("".concat(Qe,"-jump-prev"),(0,me.Z)({},"".concat(Qe,"-jump-prev-custom-icon"),!!fi))},Oi):null,Ri=Nr?_e.createElement("li",{title:En?Kt:null,key:"next",onClick:dr,tabIndex:0,onKeyDown:ii,className:Ue()("".concat(Qe,"-jump-next"),(0,me.Z)({},"".concat(Qe,"-jump-next-custom-icon"),!!_n))},Nr):null);var _i=Math.max(1,Di-Er),Jr=Math.min(Di+Er,Yi);Di-1<=Er&&(Jr=1+Er*2),Yi-Di<=Er&&(_i=Yi-Er*2);for(var Zr=_i;Zr<=Jr;Zr+=1)tr.push(_e.createElement(se,(0,Ve.Z)({},Bn,{key:Zr,page:Zr,active:Di===Zr})));if(Di-1>=Er*2&&Di!==3&&(tr[0]=_e.cloneElement(tr[0],{className:Ue()("".concat(Qe,"-item-after-jump-prev"),tr[0].props.className)}),tr.unshift(ti)),Yi-Di>=Er*2&&Di!==Yi-2){var Xr=tr[tr.length-1];tr[tr.length-1]=_e.cloneElement(Xr,{className:Ue()("".concat(Qe,"-item-before-jump-next"),Xr.props.className)}),tr.push(Ri)}_i!==1&&tr.unshift(_e.createElement(se,(0,Ve.Z)({},Bn,{key:1,page:1}))),Jr!==Yi&&tr.push(_e.createElement(se,(0,Ve.Z)({},Bn,{key:Yi,page:Yi})))}var Rr=lt(Ot);if(Rr){var Gr=!ln||!Yi;Rr=_e.createElement("li",{title:En?xe.prev_page:null,onClick:pn,tabIndex:Gr?null:0,onKeyDown:In,className:Ue()("".concat(Qe,"-prev"),(0,me.Z)({},"".concat(Qe,"-disabled"),Gr)),"aria-disabled":Gr},Rr)}var oo=Rt(qn);if(oo){var An,ho;Ht?(An=!Zt,ho=ln?0:null):(An=!Zt||!Yi,ho=An?null:0),oo=_e.createElement("li",{title:En?xe.next_page:null,onClick:zi,tabIndex:ho,onKeyDown:Vi,className:Ue()("".concat(Qe,"-next"),(0,me.Z)({},"".concat(Qe,"-disabled"),An)),"aria-disabled":An},oo)}var Fn=Ue()(Qe,gt,(0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)({},"".concat(Qe,"-start"),It==="start"),"".concat(Qe,"-center"),It==="center"),"".concat(Qe,"-end"),It==="end"),"".concat(Qe,"-simple"),Ht),"".concat(Qe,"-disabled"),tt));return _e.createElement("ul",(0,Ve.Z)({className:Fn,style:Te,ref:Yn},tn),si,Rr,Ht?Mi:tr,oo,_e.createElement(ee,{locale:xe,rootPrefixCls:Qe,disabled:tt,selectPrefixCls:xt,changeSize:vr,pageSize:ji,pageSizeOptions:nn,quickGo:ci?an:null,goButton:Pn,showSizeChanger:en,sizeChangerRender:kt}))},Oe=Re},48365:function(cn,Jt,Pe){"use strict";var me=Pe(61186),Ve=Pe.n(me),ut=Pe(90111),nt=Pe.n(ut),it=Pe(58319),ze=Pe.n(it),Ue=Pe(23250),yt=Pe.n(Ue),ot=Pe(74959),Me=Pe.n(ot),Et=Pe(10238),_e=Pe.n(Et),ht=Pe(33656),Ee=Pe.n(ht);Ve().extend(Ee()),Ve().extend(_e()),Ve().extend(nt()),Ve().extend(ze()),Ve().extend(yt()),Ve().extend(Me()),Ve().extend(function(de,pe){var ye=pe.prototype,Ce=ye.format;ye.format=function(Oe){var We=(Oe||"").replace("Wo","wo");return Ce.bind(this)(We)}});var ne={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},ee=function(pe){var ye=ne[pe];return ye||pe.split("_")[0]},ue=function(){},se={getNow:function(){var pe=Ve()();return typeof pe.tz=="function"?pe.tz():pe},getFixedDate:function(pe){return Ve()(pe,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(pe){return pe.endOf("month")},getWeekDay:function(pe){var ye=pe.locale("en");return ye.weekday()+ye.localeData().firstDayOfWeek()},getYear:function(pe){return pe.year()},getMonth:function(pe){return pe.month()},getDate:function(pe){return pe.date()},getHour:function(pe){return pe.hour()},getMinute:function(pe){return pe.minute()},getSecond:function(pe){return pe.second()},getMillisecond:function(pe){return pe.millisecond()},addYear:function(pe,ye){return pe.add(ye,"year")},addMonth:function(pe,ye){return pe.add(ye,"month")},addDate:function(pe,ye){return pe.add(ye,"day")},setYear:function(pe,ye){return pe.year(ye)},setMonth:function(pe,ye){return pe.month(ye)},setDate:function(pe,ye){return pe.date(ye)},setHour:function(pe,ye){return pe.hour(ye)},setMinute:function(pe,ye){return pe.minute(ye)},setSecond:function(pe,ye){return pe.second(ye)},setMillisecond:function(pe,ye){return pe.millisecond(ye)},isAfter:function(pe,ye){return pe.isAfter(ye)},isValidate:function(pe){return pe.isValid()},locale:{getWeekFirstDay:function(pe){return Ve()().locale(ee(pe)).localeData().firstDayOfWeek()},getWeekFirstDate:function(pe,ye){return ye.locale(ee(pe)).weekday(0)},getWeek:function(pe,ye){return ye.locale(ee(pe)).week()},getShortWeekDays:function(pe){return Ve()().locale(ee(pe)).localeData().weekdaysMin()},getShortMonths:function(pe){return Ve()().locale(ee(pe)).localeData().monthsShort()},format:function(pe,ye,Ce){return ye.locale(ee(pe)).format(Ce)},parse:function(pe,ye,Ce){for(var Re=ee(pe),Oe=0;Oe<Ce.length;Oe+=1){var We=Ce[Oe],Be=ye;if(We.includes("wo")||We.includes("Wo")){for(var Ie=Be.split("-")[0],Qe=Be.split("-")[1],rt=Ve()(Ie,"YYYY").startOf("year").locale(Re),xt=0;xt<=52;xt+=1){var gt=rt.add(xt,"week");if(gt.format("Wo")===Qe)return gt}return ue(),null}var bt=Ve()(Be,We,!0).locale(Re);if(bt.isValid())return bt}return ye&&ue(),null}}};Jt.Z=se},8571:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Sq:function(){return Qn},ZP:function(){return Mn}});var me=Pe(67711),Ve=Pe(15142),ut=Pe(98506),nt=Pe(16886),it=Pe(70425),ze=Pe(34280),Ue=Pe(2738),yt=Pe(26112),ot=Pe(48736),Me=Pe(59301),Et=Pe(52873),_e=Pe(65030),ht=Pe(92310),Ee=Pe.n(ht);function ne(ke,ct){return ke!==void 0?ke:ct?"bottomRight":"bottomLeft"}var ee=Me.createContext(null),ue=ee,se={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function de(ke){var ct=ke.popupElement,Xe=ke.popupStyle,Pt=ke.popupClassName,Ct=ke.popupAlign,Xt=ke.transitionName,qt=ke.getPopupContainer,sn=ke.children,Tn=ke.range,jn=ke.placement,gn=ke.builtinPlacements,$n=gn===void 0?se:gn,gi=ke.direction,pt=ke.visible,Vn=ke.onClose,Wn=Me.useContext(ue),Rn=Wn.prefixCls,Ln="".concat(Rn,"-dropdown"),di=ne(jn,gi==="rtl");return Me.createElement(_e.Z,{showAction:[],hideAction:["click"],popupPlacement:di,builtinPlacements:$n,prefixCls:Ln,popupTransitionName:Xt,popup:ct,popupAlign:Ct,popupVisible:pt,popupClassName:Ee()(Pt,(0,Et.Z)((0,Et.Z)({},"".concat(Ln,"-range"),Tn),"".concat(Ln,"-rtl"),gi==="rtl")),popupStyle:Xe,stretch:"minWidth",getPopupContainer:qt,onPopupVisibleChange:function(Dn){Dn||Vn()}},sn)}var pe=de;function ye(ke,ct){for(var Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Pt=String(ke);Pt.length<ct;)Pt="".concat(Xe).concat(Pt);return Pt}function Ce(ke){return ke==null?[]:Array.isArray(ke)?ke:[ke]}function Re(ke,ct,Xe){var Pt=(0,Ve.Z)(ke);return Pt[ct]=Xe,Pt}function Oe(ke,ct){var Xe={},Pt=ct||Object.keys(ke);return Pt.forEach(function(Ct){ke[Ct]!==void 0&&(Xe[Ct]=ke[Ct])}),Xe}function We(ke,ct,Xe){if(Xe)return Xe;switch(ke){case"time":return ct.fieldTimeFormat;case"datetime":return ct.fieldDateTimeFormat;case"month":return ct.fieldMonthFormat;case"year":return ct.fieldYearFormat;case"quarter":return ct.fieldQuarterFormat;case"week":return ct.fieldWeekFormat;default:return ct.fieldDateFormat}}function Be(ke,ct,Xe){var Pt=Xe!==void 0?Xe:ct[ct.length-1],Ct=ct.find(function(Xt){return ke[Xt]});return Pt!==Ct?ke[Ct]:void 0}function Ie(ke){return Oe(ke,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function Qe(ke,ct,Xe,Pt){var Ct=Me.useMemo(function(){return ke||function(qt,sn){var Tn=qt;return ct&&sn.type==="date"?ct(Tn,sn.today):Xe&&sn.type==="month"?Xe(Tn,sn.locale):sn.originNode}},[ke,Xe,ct]),Xt=Me.useCallback(function(qt,sn){return Ct(qt,(0,ut.Z)((0,ut.Z)({},sn),{},{range:Pt}))},[Ct,Pt]);return Xt}function rt(ke,ct){var Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Pt=Me.useState([!1,!1]),Ct=(0,nt.Z)(Pt,2),Xt=Ct[0],qt=Ct[1],sn=function(gn,$n){qt(function(gi){return Re(gi,$n,gn)})},Tn=Me.useMemo(function(){return Xt.map(function(jn,gn){if(jn)return!0;var $n=ke[gn];return $n?!!(!Xe[gn]&&!$n||$n&&ct($n,{activeIndex:gn})):!1})},[ke,Xt,ct,Xe]);return[Tn,sn]}function xt(ke,ct,Xe,Pt,Ct){var Xt="",qt=[];return ke&&qt.push(Ct?"hh":"HH"),ct&&qt.push("mm"),Xe&&qt.push("ss"),Xt=qt.join(":"),Pt&&(Xt+=".SSS"),Ct&&(Xt+=" A"),Xt}function gt(ke,ct,Xe,Pt,Ct,Xt){var qt=ke.fieldDateTimeFormat,sn=ke.fieldDateFormat,Tn=ke.fieldTimeFormat,jn=ke.fieldMonthFormat,gn=ke.fieldYearFormat,$n=ke.fieldWeekFormat,gi=ke.fieldQuarterFormat,pt=ke.yearFormat,Vn=ke.cellYearFormat,Wn=ke.cellQuarterFormat,Rn=ke.dayFormat,Ln=ke.cellDateFormat,di=xt(ct,Xe,Pt,Ct,Xt);return(0,ut.Z)((0,ut.Z)({},ke),{},{fieldDateTimeFormat:qt||"YYYY-MM-DD ".concat(di),fieldDateFormat:sn||"YYYY-MM-DD",fieldTimeFormat:Tn||di,fieldMonthFormat:jn||"YYYY-MM",fieldYearFormat:gn||"YYYY",fieldWeekFormat:$n||"gggg-wo",fieldQuarterFormat:gi||"YYYY-[Q]Q",yearFormat:pt||"YYYY",cellYearFormat:Vn||"YYYY",cellQuarterFormat:Wn||"[Q]Q",cellDateFormat:Ln||Rn||"D"})}function bt(ke,ct){var Xe=ct.showHour,Pt=ct.showMinute,Ct=ct.showSecond,Xt=ct.showMillisecond,qt=ct.use12Hours;return Me.useMemo(function(){return gt(ke,Xe,Pt,Ct,Xt,qt)},[ke,Xe,Pt,Ct,Xt,qt])}var At=Pe(26420);function Tt(ke,ct,Xe){return Xe!=null?Xe:ct.some(function(Pt){return ke.includes(Pt)})}var Nt=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function Ut(ke){var ct=Oe(ke,Nt),Xe=ke.format,Pt=ke.picker,Ct=null;return Xe&&(Ct=Xe,Array.isArray(Ct)&&(Ct=Ct[0]),Ct=(0,At.Z)(Ct)==="object"?Ct.format:Ct),Pt==="time"&&(ct.format=Ct),[ct,Ct]}function st(ke){return ke&&typeof ke=="string"}function He(ke,ct,Xe,Pt){return[ke,ct,Xe,Pt].some(function(Ct){return Ct!==void 0})}function jt(ke,ct,Xe,Pt,Ct){var Xt=ct,qt=Xe,sn=Pt;if(!ke&&!Xt&&!qt&&!sn&&!Ct)Xt=!0,qt=!0,sn=!0;else if(ke){var Tn,jn,gn,$n=[Xt,qt,sn].some(function(Vn){return Vn===!1}),gi=[Xt,qt,sn].some(function(Vn){return Vn===!0}),pt=$n?!0:!gi;Xt=(Tn=Xt)!==null&&Tn!==void 0?Tn:pt,qt=(jn=qt)!==null&&jn!==void 0?jn:pt,sn=(gn=sn)!==null&&gn!==void 0?gn:pt}return[Xt,qt,sn,Ct]}function fn(ke){var ct=ke.showTime,Xe=Ut(ke),Pt=(0,nt.Z)(Xe,2),Ct=Pt[0],Xt=Pt[1],qt=ct&&(0,At.Z)(ct)==="object"?ct:{},sn=(0,ut.Z)((0,ut.Z)({defaultOpenValue:qt.defaultOpenValue||qt.defaultValue},Ct),qt),Tn=sn.showMillisecond,jn=sn.showHour,gn=sn.showMinute,$n=sn.showSecond,gi=He(jn,gn,$n,Tn),pt=jt(gi,jn,gn,$n,Tn),Vn=(0,nt.Z)(pt,3);return jn=Vn[0],gn=Vn[1],$n=Vn[2],[sn,(0,ut.Z)((0,ut.Z)({},sn),{},{showHour:jn,showMinute:gn,showSecond:$n,showMillisecond:Tn}),sn.format,Xt]}function Bt(ke,ct,Xe,Pt,Ct){var Xt=ke==="time";if(ke==="datetime"||Xt){for(var qt=Pt,sn=We(ke,Ct,null),Tn=sn,jn=[ct,Xe],gn=0;gn<jn.length;gn+=1){var $n=Ce(jn[gn])[0];if(st($n)){Tn=$n;break}}var gi=qt.showHour,pt=qt.showMinute,Vn=qt.showSecond,Wn=qt.showMillisecond,Rn=qt.use12Hours,Ln=Tt(Tn,["a","A","LT","LLL","LTS"],Rn),di=He(gi,pt,Vn,Wn);di||(gi=Tt(Tn,["H","h","k","LT","LLL"]),pt=Tt(Tn,["m","LT","LLL"]),Vn=Tt(Tn,["s","LTS"]),Wn=Tt(Tn,["SSS"]));var vi=jt(di,gi,pt,Vn,Wn),Dn=(0,nt.Z)(vi,3);gi=Dn[0],pt=Dn[1],Vn=Dn[2];var yi=ct||xt(gi,pt,Vn,Wn,Ln);return(0,ut.Z)((0,ut.Z)({},qt),{},{format:yi,showHour:gi,showMinute:pt,showSecond:Vn,showMillisecond:Wn,use12Hours:Ln})}return null}function Ft(ke,ct,Xe){if(ct===!1)return null;var Pt=ct&&(0,At.Z)(ct)==="object"?ct:{};return Pt.clearIcon||Xe||Me.createElement("span",{className:"".concat(ke,"-clear-btn")})}var It=7;function Vt(ke,ct,Xe){return!ke&&!ct||ke===ct?!0:!ke||!ct?!1:Xe()}function wn(ke,ct,Xe){return Vt(ct,Xe,function(){var Pt=Math.floor(ke.getYear(ct)/10),Ct=Math.floor(ke.getYear(Xe)/10);return Pt===Ct})}function Dt(ke,ct,Xe){return Vt(ct,Xe,function(){return ke.getYear(ct)===ke.getYear(Xe)})}function vt(ke,ct){var Xe=Math.floor(ke.getMonth(ct)/3);return Xe+1}function zt(ke,ct,Xe){return Vt(ct,Xe,function(){return Dt(ke,ct,Xe)&&vt(ke,ct)===vt(ke,Xe)})}function En(ke,ct,Xe){return Vt(ct,Xe,function(){return Dt(ke,ct,Xe)&&ke.getMonth(ct)===ke.getMonth(Xe)})}function kn(ke,ct,Xe){return Vt(ct,Xe,function(){return Dt(ke,ct,Xe)&&En(ke,ct,Xe)&&ke.getDate(ct)===ke.getDate(Xe)})}function Ze(ke,ct,Xe){return Vt(ct,Xe,function(){return ke.getHour(ct)===ke.getHour(Xe)&&ke.getMinute(ct)===ke.getMinute(Xe)&&ke.getSecond(ct)===ke.getSecond(Xe)})}function Fe(ke,ct,Xe){return Vt(ct,Xe,function(){return kn(ke,ct,Xe)&&Ze(ke,ct,Xe)&&ke.getMillisecond(ct)===ke.getMillisecond(Xe)})}function xe(ke,ct,Xe,Pt){return Vt(Xe,Pt,function(){var Ct=ke.locale.getWeekFirstDate(ct,Xe),Xt=ke.locale.getWeekFirstDate(ct,Pt);return Dt(ke,Ct,Xt)&&ke.locale.getWeek(ct,Xe)===ke.locale.getWeek(ct,Pt)})}function Te(ke,ct,Xe,Pt,Ct){switch(Ct){case"date":return kn(ke,Xe,Pt);case"week":return xe(ke,ct.locale,Xe,Pt);case"month":return En(ke,Xe,Pt);case"quarter":return zt(ke,Xe,Pt);case"year":return Dt(ke,Xe,Pt);case"decade":return wn(ke,Xe,Pt);case"time":return Ze(ke,Xe,Pt);default:return Fe(ke,Xe,Pt)}}function Ye(ke,ct,Xe,Pt){return!ct||!Xe||!Pt?!1:ke.isAfter(Pt,ct)&&ke.isAfter(Xe,Pt)}function De(ke,ct,Xe,Pt,Ct){return Te(ke,ct,Xe,Pt,Ct)?!0:ke.isAfter(Xe,Pt)}function tt(ke,ct,Xe){var Pt=ct.locale.getWeekFirstDay(ke),Ct=ct.setDate(Xe,1),Xt=ct.getWeekDay(Ct),qt=ct.addDate(Ct,Pt-Xt);return ct.getMonth(qt)===ct.getMonth(Xe)&&ct.getDate(qt)>1&&(qt=ct.addDate(qt,-7)),qt}function Ht(ke,ct){var Xe=ct.generateConfig,Pt=ct.locale,Ct=ct.format;return ke?typeof Ct=="function"?Ct(ke):Xe.locale.format(Pt.locale,ke,Ct):""}function $t(ke,ct,Xe){var Pt=ct,Ct=["getHour","getMinute","getSecond","getMillisecond"],Xt=["setHour","setMinute","setSecond","setMillisecond"];return Xt.forEach(function(qt,sn){Xe?Pt=ke[qt](Pt,ke[Ct[sn]](Xe)):Pt=ke[qt](Pt,0)}),Pt}function Sn(ke,ct,Xe,Pt,Ct){var Xt=(0,it.zX)(function(qt,sn){return!!(Xe&&Xe(qt,sn)||Pt&&ke.isAfter(Pt,qt)&&!Te(ke,ct,Pt,qt,sn.type)||Ct&&ke.isAfter(qt,Ct)&&!Te(ke,ct,Ct,qt,sn.type))});return Xt}function en(ke,ct,Xe){return Me.useMemo(function(){var Pt=We(ke,ct,Xe),Ct=Ce(Pt),Xt=Ct[0],qt=(0,At.Z)(Xt)==="object"&&Xt.type==="mask"?Xt.format:null;return[Ct.map(function(sn){return typeof sn=="string"||typeof sn=="function"?sn:sn.format}),qt]},[ke,ct,Xe])}function kt(ke,ct,Xe){return typeof ke[0]=="function"||Xe?!0:ct}function nn(ke,ct,Xe,Pt){var Ct=(0,it.zX)(function(Xt,qt){var sn=(0,ut.Z)({type:ct},qt);if(delete sn.activeIndex,!ke.isValidate(Xt)||Xe&&Xe(Xt,sn))return!0;if((ct==="date"||ct==="time")&&Pt){var Tn,jn=qt&&qt.activeIndex===1?"end":"start",gn=((Tn=Pt.disabledTime)===null||Tn===void 0?void 0:Tn.call(Pt,Xt,jn,{from:sn.from}))||{},$n=gn.disabledHours,gi=gn.disabledMinutes,pt=gn.disabledSeconds,Vn=gn.disabledMilliseconds,Wn=Pt.disabledHours,Rn=Pt.disabledMinutes,Ln=Pt.disabledSeconds,di=$n||Wn,vi=gi||Rn,Dn=pt||Ln,yi=ke.getHour(Xt),xi=ke.getMinute(Xt),wi=ke.getSecond(Xt),gr=ke.getMillisecond(Xt);if(di&&di().includes(yi)||vi&&vi(yi).includes(xi)||Dn&&Dn(yi,xi).includes(wi)||Vn&&Vn(yi,xi,wi).includes(gr))return!0}return!1});return Ct}function hn(ke){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Xe=Me.useMemo(function(){var Pt=ke&&Ce(ke);return ct&&Pt&&(Pt[1]=Pt[1]||Pt[0]),Pt},[ke,ct]);return Xe}function zn(ke,ct){var Xe=ke.generateConfig,Pt=ke.locale,Ct=ke.picker,Xt=Ct===void 0?"date":Ct,qt=ke.prefixCls,sn=qt===void 0?"rc-picker":qt,Tn=ke.styles,jn=Tn===void 0?{}:Tn,gn=ke.classNames,$n=gn===void 0?{}:gn,gi=ke.order,pt=gi===void 0?!0:gi,Vn=ke.components,Wn=Vn===void 0?{}:Vn,Rn=ke.inputRender,Ln=ke.allowClear,di=ke.clearIcon,vi=ke.needConfirm,Dn=ke.multiple,yi=ke.format,xi=ke.inputReadOnly,wi=ke.disabledDate,gr=ke.minDate,Ar=ke.maxDate,ur=ke.showTime,ri=ke.value,mr=ke.defaultValue,rr=ke.pickerValue,fr=ke.defaultPickerValue,nr=hn(ri),wr=hn(mr),bn=hn(rr),Fi=hn(fr),Ii=Xt==="date"&&ur?"datetime":Xt,Ki=Ii==="time"||Ii==="datetime",Wi=Ki||Dn,Hi=vi!=null?vi:Ki,hi=fn(ke),Li=(0,nt.Z)(hi,4),pr=Li[0],Jn=Li[1],ni=Li[2],Ui=Li[3],or=bt(Pt,Jn),br=Me.useMemo(function(){return Bt(Ii,ni,Ui,pr,or)},[Ii,ni,Ui,pr,or]),co=Me.useMemo(function(){return(0,ut.Z)((0,ut.Z)({},ke),{},{prefixCls:sn,locale:or,picker:Xt,styles:jn,classNames:$n,order:pt,components:(0,ut.Z)({input:Rn},Wn),clearIcon:Ft(sn,Ln,di),showTime:br,value:nr,defaultValue:wr,pickerValue:bn,defaultPickerValue:Fi},ct==null?void 0:ct())},[ke]),mo=en(Ii,or,yi),To=(0,nt.Z)(mo,2),qr=To[0],ta=To[1],Fo=kt(qr,xi,Dn),ar=Sn(Xe,Pt,wi,gr,Ar),Ir=nn(Xe,Xt,ar,br),bo=Me.useMemo(function(){return(0,ut.Z)((0,ut.Z)({},co),{},{needConfirm:Hi,inputReadOnly:Fo,disabledDate:ar})},[co,Hi,Fo,ar]);return[bo,Ii,Wi,qr,ta,Ir]}var fi=Pe(16089);function _n(ke,ct,Xe){var Pt=(0,it.C8)(ct,{value:ke}),Ct=(0,nt.Z)(Pt,2),Xt=Ct[0],qt=Ct[1],sn=Me.useRef(ke),Tn=Me.useRef(),jn=function(){fi.Z.cancel(Tn.current)},gn=(0,it.zX)(function(){qt(sn.current),Xe&&Xt!==sn.current&&Xe(sn.current)}),$n=(0,it.zX)(function(gi,pt){jn(),sn.current=gi,gi||pt?gn():Tn.current=(0,fi.Z)(gn)});return Me.useEffect(function(){return jn},[]),[Xt,$n]}function Pi(ke,ct){var Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Pt=arguments.length>3?arguments[3]:void 0,Ct=Xe.every(function(gn){return gn})?!1:ke,Xt=_n(Ct,ct||!1,Pt),qt=(0,nt.Z)(Xt,2),sn=qt[0],Tn=qt[1];function jn(gn){var $n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!$n.inherit||sn)&&Tn(gn,$n.force)}return[sn,jn]}function Ci(ke){var ct=Me.useRef();return Me.useImperativeHandle(ke,function(){var Xe;return{nativeElement:(Xe=ct.current)===null||Xe===void 0?void 0:Xe.nativeElement,focus:function(Ct){var Xt;(Xt=ct.current)===null||Xt===void 0||Xt.focus(Ct)},blur:function(){var Ct;(Ct=ct.current)===null||Ct===void 0||Ct.blur()}}}),ct}function Yn(ke,ct){return Me.useMemo(function(){return ke||(ct?((0,ot.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(ct).map(function(Xe){var Pt=(0,nt.Z)(Xe,2),Ct=Pt[0],Xt=Pt[1];return{label:Ct,value:Xt}})):[])},[ke,ct])}function Ei(ke,ct){var Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Pt=Me.useRef(ct);Pt.current=ct,(0,ze.o)(function(){if(ke)Pt.current(ke);else{var Ct=(0,fi.Z)(function(){Pt.current(ke)},Xe);return function(){fi.Z.cancel(Ct)}}},[ke])}function pi(ke){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Pt=Me.useState(0),Ct=(0,nt.Z)(Pt,2),Xt=Ct[0],qt=Ct[1],sn=Me.useState(!1),Tn=(0,nt.Z)(sn,2),jn=Tn[0],gn=Tn[1],$n=Me.useRef([]),gi=Me.useRef(null),pt=Me.useRef(null),Vn=function(Dn){gi.current=Dn},Wn=function(Dn){return gi.current===Dn},Rn=function(Dn){gn(Dn)},Ln=function(Dn){return Dn&&(pt.current=Dn),pt.current},di=function(Dn){var yi=$n.current,xi=new Set(yi.filter(function(gr){return Dn[gr]||ct[gr]})),wi=yi[yi.length-1]===0?1:0;return xi.size>=2||ke[wi]?null:wi};return Ei(jn||Xe,function(){jn||($n.current=[],Vn(null))}),Me.useEffect(function(){jn&&$n.current.push(Xt)},[jn,Xt]),[jn,Rn,Ln,Xt,qt,di,$n.current,Vn,Wn]}function ji(ke,ct,Xe,Pt,Ct,Xt){var qt=Xe[Xe.length-1],sn=function(jn,gn){var $n=(0,nt.Z)(ke,2),gi=$n[0],pt=$n[1],Vn=(0,ut.Z)((0,ut.Z)({},gn),{},{from:Be(ke,Xe)});return qt===1&&ct[0]&&gi&&!Te(Pt,Ct,gi,jn,Vn.type)&&Pt.isAfter(gi,jn)||qt===0&&ct[1]&&pt&&!Te(Pt,Ct,pt,jn,Vn.type)&&Pt.isAfter(jn,pt)?!0:Xt==null?void 0:Xt(jn,Vn)};return sn}function Qi(ke,ct,Xe,Pt){switch(ct){case"date":case"week":return ke.addMonth(Xe,Pt);case"month":case"quarter":return ke.addYear(Xe,Pt);case"year":return ke.addYear(Xe,Pt*10);case"decade":return ke.addYear(Xe,Pt*100);default:return Xe}}var lr=[];function Lr(ke,ct,Xe,Pt,Ct,Xt,qt,sn){var Tn=arguments.length>8&&arguments[8]!==void 0?arguments[8]:lr,jn=arguments.length>9&&arguments[9]!==void 0?arguments[9]:lr,gn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:lr,$n=arguments.length>11?arguments[11]:void 0,gi=arguments.length>12?arguments[12]:void 0,pt=arguments.length>13?arguments[13]:void 0,Vn=qt==="time",Wn=Xt||0,Rn=function(bn){var Fi=ke.getNow();return Vn&&(Fi=$t(ke,Fi)),Tn[bn]||Xe[bn]||Fi},Ln=(0,nt.Z)(jn,2),di=Ln[0],vi=Ln[1],Dn=(0,it.C8)(function(){return Rn(0)},{value:di}),yi=(0,nt.Z)(Dn,2),xi=yi[0],wi=yi[1],gr=(0,it.C8)(function(){return Rn(1)},{value:vi}),Ar=(0,nt.Z)(gr,2),ur=Ar[0],ri=Ar[1],mr=Me.useMemo(function(){var wr=[xi,ur][Wn];return Vn?wr:$t(ke,wr,gn[Wn])},[Vn,xi,ur,Wn,ke,gn]),rr=function(bn){var Fi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",Ii=[wi,ri][Wn];Ii(bn);var Ki=[xi,ur];Ki[Wn]=bn,$n&&(!Te(ke,ct,xi,Ki[0],qt)||!Te(ke,ct,ur,Ki[1],qt))&&$n(Ki,{source:Fi,range:Wn===1?"end":"start",mode:Pt})},fr=function(bn,Fi){if(sn){var Ii={date:"month",week:"month",month:"year",quarter:"year"},Ki=Ii[qt];if(Ki&&!Te(ke,ct,bn,Fi,Ki))return Qi(ke,qt,Fi,-1);if(qt==="year"&&bn){var Wi=Math.floor(ke.getYear(bn)/10),Hi=Math.floor(ke.getYear(Fi)/10);if(Wi!==Hi)return Qi(ke,qt,Fi,-1)}}return Fi},nr=Me.useRef(null);return(0,ze.Z)(function(){if(Ct&&!Tn[Wn]){var wr=Vn?null:ke.getNow();if(nr.current!==null&&nr.current!==Wn?wr=[xi,ur][Wn^1]:Xe[Wn]?wr=Wn===0?Xe[0]:fr(Xe[0],Xe[1]):Xe[Wn^1]&&(wr=Xe[Wn^1]),wr){gi&&ke.isAfter(gi,wr)&&(wr=gi);var bn=sn?Qi(ke,qt,wr,1):wr;pt&&ke.isAfter(bn,pt)&&(wr=sn?Qi(ke,qt,pt,-1):pt),rr(wr,"reset")}}},[Ct,Wn,Xe[Wn]]),Me.useEffect(function(){Ct?nr.current=Wn:nr.current=null},[Ct,Wn]),(0,ze.Z)(function(){Ct&&Tn&&Tn[Wn]&&rr(Tn[Wn],"reset")},[Ct,Wn]),[mr,rr]}function Di(ke,ct){var Xe=Me.useRef(ke),Pt=Me.useState({}),Ct=(0,nt.Z)(Pt,2),Xt=Ct[1],qt=function(jn){return jn&&ct!==void 0?ct:Xe.current},sn=function(jn){Xe.current=jn,Xt({})};return[qt,sn,qt(!0)]}var cr=[];function to(ke,ct,Xe){var Pt=function(qt){return qt.map(function(sn){return Ht(sn,{generateConfig:ke,locale:ct,format:Xe[0]})})},Ct=function(qt,sn){for(var Tn=Math.max(qt.length,sn.length),jn=-1,gn=0;gn<Tn;gn+=1){var $n=qt[gn]||null,gi=sn[gn]||null;if($n!==gi&&!Fe(ke,$n,gi)){jn=gn;break}}return[jn<0,jn!==0]};return[Pt,Ct]}function ki(ke,ct){return(0,Ve.Z)(ke).sort(function(Xe,Pt){return ct.isAfter(Xe,Pt)?1:-1})}function no(ke){var ct=Di(ke),Xe=(0,nt.Z)(ct,2),Pt=Xe[0],Ct=Xe[1],Xt=(0,it.zX)(function(){Ct(ke)});return Me.useEffect(function(){Xt()},[ke]),[Pt,Ct]}function fo(ke,ct,Xe,Pt,Ct,Xt,qt,sn,Tn){var jn=(0,it.C8)(Xt,{value:qt}),gn=(0,nt.Z)(jn,2),$n=gn[0],gi=gn[1],pt=$n||cr,Vn=no(pt),Wn=(0,nt.Z)(Vn,2),Rn=Wn[0],Ln=Wn[1],di=to(ke,ct,Xe),vi=(0,nt.Z)(di,2),Dn=vi[0],yi=vi[1],xi=(0,it.zX)(function(gr){var Ar=(0,Ve.Z)(gr);if(Pt)for(var ur=0;ur<2;ur+=1)Ar[ur]=Ar[ur]||null;else Ct&&(Ar=ki(Ar.filter(function(wr){return wr}),ke));var ri=yi(Rn(),Ar),mr=(0,nt.Z)(ri,2),rr=mr[0],fr=mr[1];if(!rr&&(Ln(Ar),sn)){var nr=Dn(Ar);sn(Ar,nr,{range:fr?"end":"start"})}}),wi=function(){Tn&&Tn(Rn())};return[pt,gi,Rn,xi,wi]}function po(ke,ct,Xe,Pt,Ct,Xt,qt,sn,Tn,jn){var gn=ke.generateConfig,$n=ke.locale,gi=ke.picker,pt=ke.onChange,Vn=ke.allowEmpty,Wn=ke.order,Rn=Xt.some(function(rr){return rr})?!1:Wn,Ln=to(gn,$n,qt),di=(0,nt.Z)(Ln,2),vi=di[0],Dn=di[1],yi=Di(ct),xi=(0,nt.Z)(yi,2),wi=xi[0],gr=xi[1],Ar=(0,it.zX)(function(){gr(ct)});Me.useEffect(function(){Ar()},[ct]);var ur=(0,it.zX)(function(rr){var fr=rr===null,nr=(0,Ve.Z)(rr||wi());if(fr)for(var wr=Math.max(Xt.length,nr.length),bn=0;bn<wr;bn+=1)Xt[bn]||(nr[bn]=null);Rn&&nr[0]&&nr[1]&&(nr=ki(nr,gn)),Ct(nr);var Fi=nr,Ii=(0,nt.Z)(Fi,2),Ki=Ii[0],Wi=Ii[1],Hi=!Ki,hi=!Wi,Li=Vn?(!Hi||Vn[0])&&(!hi||Vn[1]):!0,pr=!Wn||Hi||hi||Te(gn,$n,Ki,Wi,gi)||gn.isAfter(Wi,Ki),Jn=(Xt[0]||!Ki||!jn(Ki,{activeIndex:0}))&&(Xt[1]||!Wi||!jn(Wi,{from:Ki,activeIndex:1})),ni=fr||Li&&pr&&Jn;if(ni){Xe(nr);var Ui=Dn(nr,ct),or=(0,nt.Z)(Ui,1),br=or[0];pt&&!br&&pt(fr&&nr.every(function(co){return!co})?null:nr,vi(nr))}return ni}),ri=(0,it.zX)(function(rr,fr){var nr=Re(wi(),rr,Pt()[rr]);gr(nr),fr&&ur()}),mr=!sn&&!Tn;return Ei(!mr,function(){mr&&(ur(),Ct(ct),Ar())},2),[ri,ur]}function io(ke,ct,Xe,Pt,Ct){return ct!=="date"&&ct!=="time"?!1:Xe!==void 0?Xe:Pt!==void 0?Pt:!Ct&&(ke==="date"||ke==="time")}var hr=Pe(29301);function ao(ke,ct,Xe,Pt,Ct,Xt){var qt=ke;function sn($n,gi,pt){var Vn=Xt[$n](qt),Wn=pt.find(function(vi){return vi.value===Vn});if(!Wn||Wn.disabled){var Rn=pt.filter(function(vi){return!vi.disabled}),Ln=(0,Ve.Z)(Rn).reverse(),di=Ln.find(function(vi){return vi.value<=Vn})||Rn[0];di&&(Vn=di.value,qt=Xt[gi](qt,Vn))}return Vn}var Tn=sn("getHour","setHour",ct()),jn=sn("getMinute","setMinute",Xe(Tn)),gn=sn("getSecond","setSecond",Pt(Tn,jn));return sn("getMillisecond","setMillisecond",Ct(Tn,jn,gn)),qt}function be(){return[]}function Un(ke,ct){for(var Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Pt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Ct=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],Xt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,qt=[],sn=Xe>=1?Xe|0:1,Tn=ke;Tn<=ct;Tn+=sn){var jn=Ct.includes(Tn);(!jn||!Pt)&&qt.push({label:ye(Tn,Xt),value:Tn,disabled:jn})}return qt}function Xn(ke){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Xe=arguments.length>2?arguments[2]:void 0,Pt=ct||{},Ct=Pt.use12Hours,Xt=Pt.hourStep,qt=Xt===void 0?1:Xt,sn=Pt.minuteStep,Tn=sn===void 0?1:sn,jn=Pt.secondStep,gn=jn===void 0?1:jn,$n=Pt.millisecondStep,gi=$n===void 0?100:$n,pt=Pt.hideDisabledOptions,Vn=Pt.disabledTime,Wn=Pt.disabledHours,Rn=Pt.disabledMinutes,Ln=Pt.disabledSeconds,di=Me.useMemo(function(){return Xe||ke.getNow()},[Xe,ke]);if(0)var vi,Dn,yi;var xi=Me.useCallback(function(Wi){var Hi=(Vn==null?void 0:Vn(Wi))||{};return[Hi.disabledHours||Wn||be,Hi.disabledMinutes||Rn||be,Hi.disabledSeconds||Ln||be,Hi.disabledMilliseconds||be]},[Vn,Wn,Rn,Ln]),wi=Me.useMemo(function(){return xi(di)},[di,xi]),gr=(0,nt.Z)(wi,4),Ar=gr[0],ur=gr[1],ri=gr[2],mr=gr[3],rr=Me.useCallback(function(Wi,Hi,hi,Li){var pr=Un(0,23,qt,pt,Wi()),Jn=Ct?pr.map(function(br){return(0,ut.Z)((0,ut.Z)({},br),{},{label:ye(br.value%12||12,2)})}):pr,ni=function(co){return Un(0,59,Tn,pt,Hi(co))},Ui=function(co,mo){return Un(0,59,gn,pt,hi(co,mo))},or=function(co,mo,To){return Un(0,999,gi,pt,Li(co,mo,To),3)};return[Jn,ni,Ui,or]},[pt,qt,Ct,gi,Tn,gn]),fr=Me.useMemo(function(){return rr(Ar,ur,ri,mr)},[rr,Ar,ur,ri,mr]),nr=(0,nt.Z)(fr,4),wr=nr[0],bn=nr[1],Fi=nr[2],Ii=nr[3],Ki=function(Hi,hi){var Li=function(){return wr},pr=bn,Jn=Fi,ni=Ii;if(hi){var Ui=xi(hi),or=(0,nt.Z)(Ui,4),br=or[0],co=or[1],mo=or[2],To=or[3],qr=rr(br,co,mo,To),ta=(0,nt.Z)(qr,4),Fo=ta[0],ar=ta[1],Ir=ta[2],bo=ta[3];Li=function(){return Fo},pr=ar,Jn=Ir,ni=bo}var Zo=ao(Hi,Li,pr,Jn,ni,ke);return Zo};return[Ki,wr,bn,Fi,Ii]}function ci(ke){var ct=ke.mode,Xe=ke.internalMode,Pt=ke.renderExtraFooter,Ct=ke.showNow,Xt=ke.showTime,qt=ke.onSubmit,sn=ke.onNow,Tn=ke.invalid,jn=ke.needConfirm,gn=ke.generateConfig,$n=ke.disabledDate,gi=Me.useContext(ue),pt=gi.prefixCls,Vn=gi.locale,Wn=gi.button,Rn=Wn===void 0?"button":Wn,Ln=gn.getNow(),di=Xn(gn,Xt,Ln),vi=(0,nt.Z)(di,1),Dn=vi[0],yi=Pt==null?void 0:Pt(ct),xi=$n(Ln,{type:ct}),wi=function(){if(!xi){var fr=Dn(Ln);sn(fr)}},gr="".concat(pt,"-now"),Ar="".concat(gr,"-btn"),ur=Ct&&Me.createElement("li",{className:gr},Me.createElement("a",{className:Ee()(Ar,xi&&"".concat(Ar,"-disabled")),"aria-disabled":xi,onClick:wi},Xe==="date"?Vn.today:Vn.now)),ri=jn&&Me.createElement("li",{className:"".concat(pt,"-ok")},Me.createElement(Rn,{disabled:Tn,onClick:qt},Vn.ok)),mr=(ur||ri)&&Me.createElement("ul",{className:"".concat(pt,"-ranges")},ur,ri);return!yi&&!mr?null:Me.createElement("div",{className:"".concat(pt,"-footer")},yi&&Me.createElement("div",{className:"".concat(pt,"-footer-extra")},yi),mr)}function mi(ke,ct,Xe){function Pt(Ct,Xt){var qt=Ct.findIndex(function(Tn){return Te(ke,ct,Tn,Xt,Xe)});if(qt===-1)return[].concat((0,Ve.Z)(Ct),[Xt]);var sn=(0,Ve.Z)(Ct);return sn.splice(qt,1),sn}return Pt}var ei=Me.createContext(null);function Gi(){return Me.useContext(ei)}function vr(ke,ct){var Xe=ke.prefixCls,Pt=ke.generateConfig,Ct=ke.locale,Xt=ke.disabledDate,qt=ke.minDate,sn=ke.maxDate,Tn=ke.cellRender,jn=ke.hoverValue,gn=ke.hoverRangeValue,$n=ke.onHover,gi=ke.values,pt=ke.pickerValue,Vn=ke.onSelect,Wn=ke.prevIcon,Rn=ke.nextIcon,Ln=ke.superPrevIcon,di=ke.superNextIcon,vi=Pt.getNow(),Dn={now:vi,values:gi,pickerValue:pt,prefixCls:Xe,disabledDate:Xt,minDate:qt,maxDate:sn,cellRender:Tn,hoverValue:jn,hoverRangeValue:gn,onHover:$n,locale:Ct,generateConfig:Pt,onSelect:Vn,panelType:ct,prevIcon:Wn,nextIcon:Rn,superPrevIcon:Ln,superNextIcon:di};return[Dn,vi]}var an=Me.createContext({});function ln(ke){for(var ct=ke.rowNum,Xe=ke.colNum,Pt=ke.baseDate,Ct=ke.getCellDate,Xt=ke.prefixColumn,qt=ke.rowClassName,sn=ke.titleFormat,Tn=ke.getCellText,jn=ke.getCellClassName,gn=ke.headerCells,$n=ke.cellSelection,gi=$n===void 0?!0:$n,pt=ke.disabledDate,Vn=Gi(),Wn=Vn.prefixCls,Rn=Vn.panelType,Ln=Vn.now,di=Vn.disabledDate,vi=Vn.cellRender,Dn=Vn.onHover,yi=Vn.hoverValue,xi=Vn.hoverRangeValue,wi=Vn.generateConfig,gr=Vn.values,Ar=Vn.locale,ur=Vn.onSelect,ri=pt||di,mr="".concat(Wn,"-cell"),rr=Me.useContext(an),fr=rr.onCellDblClick,nr=function(hi){return gr.some(function(Li){return Li&&Te(wi,Ar,hi,Li,Rn)})},wr=[],bn=0;bn<ct;bn+=1){for(var Fi=[],Ii=void 0,Ki=function(){var hi=bn*Xe+Wi,Li=Ct(Pt,hi),pr=ri==null?void 0:ri(Li,{type:Rn});Wi===0&&(Ii=Li,Xt&&Fi.push(Xt(Ii)));var Jn=!1,ni=!1,Ui=!1;if(gi&&xi){var or=(0,nt.Z)(xi,2),br=or[0],co=or[1];Jn=Ye(wi,br,co,Li),ni=Te(wi,Ar,Li,br,Rn),Ui=Te(wi,Ar,Li,co,Rn)}var mo=sn?Ht(Li,{locale:Ar,format:sn,generateConfig:wi}):void 0,To=Me.createElement("div",{className:"".concat(mr,"-inner")},Tn(Li));Fi.push(Me.createElement("td",{key:Wi,title:mo,className:Ee()(mr,(0,ut.Z)((0,Et.Z)((0,Et.Z)((0,Et.Z)((0,Et.Z)((0,Et.Z)((0,Et.Z)({},"".concat(mr,"-disabled"),pr),"".concat(mr,"-hover"),(yi||[]).some(function(qr){return Te(wi,Ar,Li,qr,Rn)})),"".concat(mr,"-in-range"),Jn&&!ni&&!Ui),"".concat(mr,"-range-start"),ni),"".concat(mr,"-range-end"),Ui),"".concat(Wn,"-cell-selected"),!xi&&Rn!=="week"&&nr(Li)),jn(Li))),onClick:function(){pr||ur(Li)},onDoubleClick:function(){!pr&&fr&&fr()},onMouseEnter:function(){pr||Dn==null||Dn(Li)},onMouseLeave:function(){pr||Dn==null||Dn(null)}},vi?vi(Li,{prefixCls:Wn,originNode:To,today:Ln,type:Rn,locale:Ar}):To))},Wi=0;Wi<Xe;Wi+=1)Ki();wr.push(Me.createElement("tr",{key:bn,className:qt==null?void 0:qt(Ii)},Fi))}return Me.createElement("div",{className:"".concat(Wn,"-body")},Me.createElement("table",{className:"".concat(Wn,"-content")},gn&&Me.createElement("thead",null,Me.createElement("tr",null,gn)),Me.createElement("tbody",null,wr)))}var Zt={visibility:"hidden"};function pn(ke){var ct=ke.offset,Xe=ke.superOffset,Pt=ke.onChange,Ct=ke.getStart,Xt=ke.getEnd,qt=ke.children,sn=Gi(),Tn=sn.prefixCls,jn=sn.prevIcon,gn=jn===void 0?"\u2039":jn,$n=sn.nextIcon,gi=$n===void 0?"\u203A":$n,pt=sn.superPrevIcon,Vn=pt===void 0?"\xAB":pt,Wn=sn.superNextIcon,Rn=Wn===void 0?"\xBB":Wn,Ln=sn.minDate,di=sn.maxDate,vi=sn.generateConfig,Dn=sn.locale,yi=sn.pickerValue,xi=sn.panelType,wi="".concat(Tn,"-header"),gr=Me.useContext(an),Ar=gr.hidePrev,ur=gr.hideNext,ri=gr.hideHeader,mr=Me.useMemo(function(){if(!Ln||!ct||!Xt)return!1;var Hi=Xt(ct(-1,yi));return!De(vi,Dn,Hi,Ln,xi)},[Ln,ct,yi,Xt,vi,Dn,xi]),rr=Me.useMemo(function(){if(!Ln||!Xe||!Xt)return!1;var Hi=Xt(Xe(-1,yi));return!De(vi,Dn,Hi,Ln,xi)},[Ln,Xe,yi,Xt,vi,Dn,xi]),fr=Me.useMemo(function(){if(!di||!ct||!Ct)return!1;var Hi=Ct(ct(1,yi));return!De(vi,Dn,di,Hi,xi)},[di,ct,yi,Ct,vi,Dn,xi]),nr=Me.useMemo(function(){if(!di||!Xe||!Ct)return!1;var Hi=Ct(Xe(1,yi));return!De(vi,Dn,di,Hi,xi)},[di,Xe,yi,Ct,vi,Dn,xi]),wr=function(hi){ct&&Pt(ct(hi,yi))},bn=function(hi){Xe&&Pt(Xe(hi,yi))};if(ri)return null;var Fi="".concat(wi,"-prev-btn"),Ii="".concat(wi,"-next-btn"),Ki="".concat(wi,"-super-prev-btn"),Wi="".concat(wi,"-super-next-btn");return Me.createElement("div",{className:wi},Xe&&Me.createElement("button",{type:"button","aria-label":Dn.previousYear,onClick:function(){return bn(-1)},tabIndex:-1,className:Ee()(Ki,rr&&"".concat(Ki,"-disabled")),disabled:rr,style:Ar?Zt:{}},Vn),ct&&Me.createElement("button",{type:"button","aria-label":Dn.previousMonth,onClick:function(){return wr(-1)},tabIndex:-1,className:Ee()(Fi,mr&&"".concat(Fi,"-disabled")),disabled:mr,style:Ar?Zt:{}},gn),Me.createElement("div",{className:"".concat(wi,"-view")},qt),ct&&Me.createElement("button",{type:"button","aria-label":Dn.nextMonth,onClick:function(){return wr(1)},tabIndex:-1,className:Ee()(Ii,fr&&"".concat(Ii,"-disabled")),disabled:fr,style:ur?Zt:{}},gi),Xe&&Me.createElement("button",{type:"button","aria-label":Dn.nextYear,onClick:function(){return bn(1)},tabIndex:-1,className:Ee()(Wi,nr&&"".concat(Wi,"-disabled")),disabled:nr,style:ur?Zt:{}},Rn))}var zi=pn;function Ti(ke){var ct=ke.prefixCls,Xe=ke.panelName,Pt=Xe===void 0?"date":Xe,Ct=ke.locale,Xt=ke.generateConfig,qt=ke.pickerValue,sn=ke.onPickerValueChange,Tn=ke.onModeChange,jn=ke.mode,gn=jn===void 0?"date":jn,$n=ke.disabledDate,gi=ke.onSelect,pt=ke.onHover,Vn=ke.showWeek,Wn="".concat(ct,"-").concat(Pt,"-panel"),Rn="".concat(ct,"-cell"),Ln=gn==="week",di=vr(ke,gn),vi=(0,nt.Z)(di,2),Dn=vi[0],yi=vi[1],xi=Xt.locale.getWeekFirstDay(Ct.locale),wi=Xt.setDate(qt,1),gr=tt(Ct.locale,Xt,wi),Ar=Xt.getMonth(qt),ur=Vn===void 0?Ln:Vn,ri=ur?function(Hi){var hi=$n==null?void 0:$n(Hi,{type:"week"});return Me.createElement("td",{key:"week",className:Ee()(Rn,"".concat(Rn,"-week"),(0,Et.Z)({},"".concat(Rn,"-disabled"),hi)),onClick:function(){hi||gi(Hi)},onMouseEnter:function(){hi||pt==null||pt(Hi)},onMouseLeave:function(){hi||pt==null||pt(null)}},Me.createElement("div",{className:"".concat(Rn,"-inner")},Xt.locale.getWeek(Ct.locale,Hi)))}:null,mr=[],rr=Ct.shortWeekDays||(Xt.locale.getShortWeekDays?Xt.locale.getShortWeekDays(Ct.locale):[]);ri&&mr.push(Me.createElement("th",{key:"empty"},Me.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},Ct.week)));for(var fr=0;fr<It;fr+=1)mr.push(Me.createElement("th",{key:fr},rr[(fr+xi)%It]));var nr=function(hi,Li){return Xt.addDate(hi,Li)},wr=function(hi){return Ht(hi,{locale:Ct,format:Ct.cellDateFormat,generateConfig:Xt})},bn=function(hi){var Li=(0,Et.Z)((0,Et.Z)({},"".concat(ct,"-cell-in-view"),En(Xt,hi,qt)),"".concat(ct,"-cell-today"),kn(Xt,hi,yi));return Li},Fi=Ct.shortMonths||(Xt.locale.getShortMonths?Xt.locale.getShortMonths(Ct.locale):[]),Ii=Me.createElement("button",{type:"button","aria-label":Ct.yearSelect,key:"year",onClick:function(){Tn("year",qt)},tabIndex:-1,className:"".concat(ct,"-year-btn")},Ht(qt,{locale:Ct,format:Ct.yearFormat,generateConfig:Xt})),Ki=Me.createElement("button",{type:"button","aria-label":Ct.monthSelect,key:"month",onClick:function(){Tn("month",qt)},tabIndex:-1,className:"".concat(ct,"-month-btn")},Ct.monthFormat?Ht(qt,{locale:Ct,format:Ct.monthFormat,generateConfig:Xt}):Fi[Ar]),Wi=Ct.monthBeforeYear?[Ki,Ii]:[Ii,Ki];return Me.createElement(ei.Provider,{value:Dn},Me.createElement("div",{className:Ee()(Wn,Vn&&"".concat(Wn,"-show-week"))},Me.createElement(zi,{offset:function(hi){return Xt.addMonth(qt,hi)},superOffset:function(hi){return Xt.addYear(qt,hi)},onChange:sn,getStart:function(hi){return Xt.setDate(hi,1)},getEnd:function(hi){var Li=Xt.setDate(hi,1);return Li=Xt.addMonth(Li,1),Xt.addDate(Li,-1)}},Wi),Me.createElement(ln,(0,me.Z)({titleFormat:Ct.fieldDateFormat},ke,{colNum:It,rowNum:6,baseDate:gr,headerCells:mr,getCellDate:nr,getCellText:wr,getCellClassName:bn,prefixColumn:ri,cellSelection:!Ln}))))}var dr=Pe(29194),un=1/3;function In(ke,ct){var Xe=Me.useRef(!1),Pt=Me.useRef(null),Ct=Me.useRef(null),Xt=function(){return Xe.current},qt=function(){fi.Z.cancel(Pt.current),Xe.current=!1},sn=Me.useRef(),Tn=function(){var $n=ke.current;if(Ct.current=null,sn.current=0,$n){var gi=$n.querySelector('[data-value="'.concat(ct,'"]')),pt=$n.querySelector("li"),Vn=function Wn(){qt(),Xe.current=!0,sn.current+=1;var Rn=$n.scrollTop,Ln=pt.offsetTop,di=gi.offsetTop,vi=di-Ln;if(di===0&&gi!==pt||!(0,dr.Z)($n)){sn.current<=5&&(Pt.current=(0,fi.Z)(Wn));return}var Dn=Rn+(vi-Rn)*un,yi=Math.abs(vi-Dn);if(Ct.current!==null&&Ct.current<yi){qt();return}if(Ct.current=yi,yi<=1){$n.scrollTop=vi,qt();return}$n.scrollTop=Dn,Pt.current=(0,fi.Z)(Wn)};gi&&pt&&Vn()}},jn=(0,it.zX)(Tn);return[jn,qt,Xt]}var Vi=300;function Fr(ke){return ke.map(function(ct){var Xe=ct.value,Pt=ct.label,Ct=ct.disabled;return[Xe,Pt,Ct].join(",")}).join(";")}function ii(ke){var ct=ke.units,Xe=ke.value,Pt=ke.optionalValue,Ct=ke.type,Xt=ke.onChange,qt=ke.onHover,sn=ke.onDblClick,Tn=ke.changeOnScroll,jn=Gi(),gn=jn.prefixCls,$n=jn.cellRender,gi=jn.now,pt=jn.locale,Vn="".concat(gn,"-time-panel"),Wn="".concat(gn,"-time-panel-cell"),Rn=Me.useRef(null),Ln=Me.useRef(),di=function(){clearTimeout(Ln.current)},vi=In(Rn,Xe!=null?Xe:Pt),Dn=(0,nt.Z)(vi,3),yi=Dn[0],xi=Dn[1],wi=Dn[2];(0,ze.Z)(function(){return yi(),di(),function(){xi(),di()}},[Xe,Pt,Fr(ct)]);var gr=function(ri){di();var mr=ri.target;!wi()&&Tn&&(Ln.current=setTimeout(function(){var rr=Rn.current,fr=rr.querySelector("li").offsetTop,nr=Array.from(rr.querySelectorAll("li")),wr=nr.map(function(Wi){return Wi.offsetTop-fr}),bn=wr.map(function(Wi,Hi){return ct[Hi].disabled?Number.MAX_SAFE_INTEGER:Math.abs(Wi-mr.scrollTop)}),Fi=Math.min.apply(Math,(0,Ve.Z)(bn)),Ii=bn.findIndex(function(Wi){return Wi===Fi}),Ki=ct[Ii];Ki&&!Ki.disabled&&Xt(Ki.value)},Vi))},Ar="".concat(Vn,"-column");return Me.createElement("ul",{className:Ar,ref:Rn,"data-type":Ct,onScroll:gr},ct.map(function(ur){var ri=ur.label,mr=ur.value,rr=ur.disabled,fr=Me.createElement("div",{className:"".concat(Wn,"-inner")},ri);return Me.createElement("li",{key:mr,className:Ee()(Wn,(0,Et.Z)((0,Et.Z)({},"".concat(Wn,"-selected"),Xe===mr),"".concat(Wn,"-disabled"),rr)),onClick:function(){rr||Xt(mr)},onDoubleClick:function(){!rr&&sn&&sn()},onMouseEnter:function(){qt(mr)},onMouseLeave:function(){qt(null)},"data-value":mr},$n?$n(mr,{prefixCls:gn,originNode:fr,today:gi,type:"time",subType:Ct,locale:pt}):fr)}))}function lt(ke){return ke<12}function Rt(ke){var ct=ke.showHour,Xe=ke.showMinute,Pt=ke.showSecond,Ct=ke.showMillisecond,Xt=ke.use12Hours,qt=ke.changeOnScroll,sn=Gi(),Tn=sn.prefixCls,jn=sn.values,gn=sn.generateConfig,$n=sn.locale,gi=sn.onSelect,pt=sn.onHover,Vn=pt===void 0?function(){}:pt,Wn=sn.pickerValue,Rn=(jn==null?void 0:jn[0])||null,Ln=Me.useContext(an),di=Ln.onCellDblClick,vi=Xn(gn,ke,Rn),Dn=(0,nt.Z)(vi,5),yi=Dn[0],xi=Dn[1],wi=Dn[2],gr=Dn[3],Ar=Dn[4],ur=function(ui){var _o=Rn&&gn[ui](Rn),St=Wn&&gn[ui](Wn);return[_o,St]},ri=ur("getHour"),mr=(0,nt.Z)(ri,2),rr=mr[0],fr=mr[1],nr=ur("getMinute"),wr=(0,nt.Z)(nr,2),bn=wr[0],Fi=wr[1],Ii=ur("getSecond"),Ki=(0,nt.Z)(Ii,2),Wi=Ki[0],Hi=Ki[1],hi=ur("getMillisecond"),Li=(0,nt.Z)(hi,2),pr=Li[0],Jn=Li[1],ni=rr===null?null:lt(rr)?"am":"pm",Ui=Me.useMemo(function(){return Xt?lt(rr)?xi.filter(function(yr){return lt(yr.value)}):xi.filter(function(yr){return!lt(yr.value)}):xi},[rr,xi,Xt]),or=function(ui,_o){var St,Cn=ui.filter(function(ja){return!ja.disabled});return _o!=null?_o:Cn==null||(St=Cn[0])===null||St===void 0?void 0:St.value},br=or(xi,rr),co=Me.useMemo(function(){return wi(br)},[wi,br]),mo=or(co,bn),To=Me.useMemo(function(){return gr(br,mo)},[gr,br,mo]),qr=or(To,Wi),ta=Me.useMemo(function(){return Ar(br,mo,qr)},[Ar,br,mo,qr]),Fo=or(ta,pr),ar=Me.useMemo(function(){if(!Xt)return[];var yr=gn.getNow(),ui=gn.setHour(yr,6),_o=gn.setHour(yr,18),St=function(ja,za){var da=$n.cellMeridiemFormat;return da?Ht(ja,{generateConfig:gn,locale:$n,format:da}):za};return[{label:St(ui,"AM"),value:"am",disabled:xi.every(function(Cn){return Cn.disabled||!lt(Cn.value)})},{label:St(_o,"PM"),value:"pm",disabled:xi.every(function(Cn){return Cn.disabled||lt(Cn.value)})}]},[xi,Xt,gn,$n]),Ir=function(ui){var _o=yi(ui);gi(_o)},bo=Me.useMemo(function(){var yr=Rn||Wn||gn.getNow(),ui=function(St){return St!=null};return ui(rr)?(yr=gn.setHour(yr,rr),yr=gn.setMinute(yr,bn),yr=gn.setSecond(yr,Wi),yr=gn.setMillisecond(yr,pr)):ui(fr)?(yr=gn.setHour(yr,fr),yr=gn.setMinute(yr,Fi),yr=gn.setSecond(yr,Hi),yr=gn.setMillisecond(yr,Jn)):ui(br)&&(yr=gn.setHour(yr,br),yr=gn.setMinute(yr,mo),yr=gn.setSecond(yr,qr),yr=gn.setMillisecond(yr,Fo)),yr},[Rn,Wn,rr,bn,Wi,pr,br,mo,qr,Fo,fr,Fi,Hi,Jn,gn]),Zo=function(ui,_o){return ui===null?null:gn[_o](bo,ui)},Ko=function(ui){return Zo(ui,"setHour")},Io=function(ui){return Zo(ui,"setMinute")},Eo=function(ui){return Zo(ui,"setSecond")},ia=function(ui){return Zo(ui,"setMillisecond")},ma=function(ui){return ui===null?null:ui==="am"&&!lt(rr)?gn.setHour(bo,rr-12):ui==="pm"&<(rr)?gn.setHour(bo,rr+12):bo},Oo=function(ui){Ir(Ko(ui))},Da=function(ui){Ir(Io(ui))},Kr=function(ui){Ir(Eo(ui))},so=function(ui){Ir(ia(ui))},uo=function(ui){Ir(ma(ui))},Do=function(ui){Vn(Ko(ui))},ko=function(ui){Vn(Io(ui))},Ea=function(ui){Vn(Eo(ui))},xr=function(ui){Vn(ia(ui))},ir=function(ui){Vn(ma(ui))},kr={onDblClick:di,changeOnScroll:qt};return Me.createElement("div",{className:"".concat(Tn,"-content")},ct&&Me.createElement(ii,(0,me.Z)({units:Ui,value:rr,optionalValue:fr,type:"hour",onChange:Oo,onHover:Do},kr)),Xe&&Me.createElement(ii,(0,me.Z)({units:co,value:bn,optionalValue:Fi,type:"minute",onChange:Da,onHover:ko},kr)),Pt&&Me.createElement(ii,(0,me.Z)({units:To,value:Wi,optionalValue:Hi,type:"second",onChange:Kr,onHover:Ea},kr)),Ct&&Me.createElement(ii,(0,me.Z)({units:ta,value:pr,optionalValue:Jn,type:"millisecond",onChange:so,onHover:xr},kr)),Xt&&Me.createElement(ii,(0,me.Z)({units:ar,value:ni,type:"meridiem",onChange:uo,onHover:ir},kr)))}function ai(ke){var ct=ke.prefixCls,Xe=ke.value,Pt=ke.locale,Ct=ke.generateConfig,Xt=ke.showTime,qt=Xt||{},sn=qt.format,Tn="".concat(ct,"-time-panel"),jn=vr(ke,"time"),gn=(0,nt.Z)(jn,1),$n=gn[0];return Me.createElement(ei.Provider,{value:$n},Me.createElement("div",{className:Ee()(Tn)},Me.createElement(zi,null,Xe?Ht(Xe,{locale:Pt,format:sn,generateConfig:Ct}):"\xA0"),Me.createElement(Rt,Xt)))}function ti(ke){var ct=ke.prefixCls,Xe=ke.generateConfig,Pt=ke.showTime,Ct=ke.onSelect,Xt=ke.value,qt=ke.pickerValue,sn=ke.onHover,Tn="".concat(ct,"-datetime-panel"),jn=Xn(Xe,Pt),gn=(0,nt.Z)(jn,1),$n=gn[0],gi=function(Rn){return Xt?$t(Xe,Rn,Xt):$t(Xe,Rn,qt)},pt=function(Rn){sn==null||sn(Rn&&gi(Rn))},Vn=function(Rn){var Ln=gi(Rn);Ct($n(Ln,Ln))};return Me.createElement("div",{className:Tn},Me.createElement(Ti,(0,me.Z)({},ke,{onSelect:Vn,onHover:pt})),Me.createElement(ai,ke))}function tn(ke){var ct=ke.prefixCls,Xe=ke.locale,Pt=ke.generateConfig,Ct=ke.pickerValue,Xt=ke.disabledDate,qt=ke.onPickerValueChange,sn="".concat(ct,"-decade-panel"),Tn=vr(ke,"decade"),jn=(0,nt.Z)(Tn,1),gn=jn[0],$n=function(xi){var wi=Math.floor(Pt.getYear(xi)/100)*100;return Pt.setYear(xi,wi)},gi=function(xi){var wi=$n(xi);return Pt.addYear(wi,99)},pt=$n(Ct),Vn=gi(Ct),Wn=Pt.addYear(pt,-10),Rn=function(xi,wi){return Pt.addYear(xi,wi*10)},Ln=function(xi){var wi=Xe.cellYearFormat,gr=Ht(xi,{locale:Xe,format:wi,generateConfig:Pt}),Ar=Ht(Pt.addYear(xi,9),{locale:Xe,format:wi,generateConfig:Pt});return"".concat(gr,"-").concat(Ar)},di=function(xi){return(0,Et.Z)({},"".concat(ct,"-cell-in-view"),wn(Pt,xi,pt)||wn(Pt,xi,Vn)||Ye(Pt,pt,Vn,xi))},vi=Xt?function(yi,xi){var wi=Pt.setDate(yi,1),gr=Pt.setMonth(wi,0),Ar=Pt.setYear(gr,Math.floor(Pt.getYear(gr)/10)*10),ur=Pt.addYear(Ar,10),ri=Pt.addDate(ur,-1);return Xt(Ar,xi)&&Xt(ri,xi)}:null,Dn="".concat(Ht(pt,{locale:Xe,format:Xe.yearFormat,generateConfig:Pt}),"-").concat(Ht(Vn,{locale:Xe,format:Xe.yearFormat,generateConfig:Pt}));return Me.createElement(ei.Provider,{value:gn},Me.createElement("div",{className:sn},Me.createElement(zi,{superOffset:function(xi){return Pt.addYear(Ct,xi*100)},onChange:qt,getStart:$n,getEnd:gi},Dn),Me.createElement(ln,(0,me.Z)({},ke,{disabledDate:vi,colNum:3,rowNum:4,baseDate:Wn,getCellDate:Rn,getCellText:Ln,getCellClassName:di}))))}function si(ke){var ct=ke.prefixCls,Xe=ke.locale,Pt=ke.generateConfig,Ct=ke.pickerValue,Xt=ke.disabledDate,qt=ke.onPickerValueChange,sn=ke.onModeChange,Tn="".concat(ct,"-month-panel"),jn=vr(ke,"month"),gn=(0,nt.Z)(jn,1),$n=gn[0],gi=Pt.setMonth(Ct,0),pt=Xe.shortMonths||(Pt.locale.getShortMonths?Pt.locale.getShortMonths(Xe.locale):[]),Vn=function(Dn,yi){return Pt.addMonth(Dn,yi)},Wn=function(Dn){var yi=Pt.getMonth(Dn);return Xe.monthFormat?Ht(Dn,{locale:Xe,format:Xe.monthFormat,generateConfig:Pt}):pt[yi]},Rn=function(){return(0,Et.Z)({},"".concat(ct,"-cell-in-view"),!0)},Ln=Xt?function(vi,Dn){var yi=Pt.setDate(vi,1),xi=Pt.setMonth(yi,Pt.getMonth(yi)+1),wi=Pt.addDate(xi,-1);return Xt(yi,Dn)&&Xt(wi,Dn)}:null,di=Me.createElement("button",{type:"button",key:"year","aria-label":Xe.yearSelect,onClick:function(){sn("year")},tabIndex:-1,className:"".concat(ct,"-year-btn")},Ht(Ct,{locale:Xe,format:Xe.yearFormat,generateConfig:Pt}));return Me.createElement(ei.Provider,{value:$n},Me.createElement("div",{className:Tn},Me.createElement(zi,{superOffset:function(Dn){return Pt.addYear(Ct,Dn)},onChange:qt,getStart:function(Dn){return Pt.setMonth(Dn,0)},getEnd:function(Dn){return Pt.setMonth(Dn,11)}},di),Me.createElement(ln,(0,me.Z)({},ke,{disabledDate:Ln,titleFormat:Xe.fieldMonthFormat,colNum:3,rowNum:4,baseDate:gi,getCellDate:Vn,getCellText:Wn,getCellClassName:Rn}))))}function Ri(ke){var ct=ke.prefixCls,Xe=ke.locale,Pt=ke.generateConfig,Ct=ke.pickerValue,Xt=ke.onPickerValueChange,qt=ke.onModeChange,sn="".concat(ct,"-quarter-panel"),Tn=vr(ke,"quarter"),jn=(0,nt.Z)(Tn,1),gn=jn[0],$n=Pt.setMonth(Ct,0),gi=function(Ln,di){return Pt.addMonth(Ln,di*3)},pt=function(Ln){return Ht(Ln,{locale:Xe,format:Xe.cellQuarterFormat,generateConfig:Pt})},Vn=function(){return(0,Et.Z)({},"".concat(ct,"-cell-in-view"),!0)},Wn=Me.createElement("button",{type:"button",key:"year","aria-label":Xe.yearSelect,onClick:function(){qt("year")},tabIndex:-1,className:"".concat(ct,"-year-btn")},Ht(Ct,{locale:Xe,format:Xe.yearFormat,generateConfig:Pt}));return Me.createElement(ei.Provider,{value:gn},Me.createElement("div",{className:sn},Me.createElement(zi,{superOffset:function(Ln){return Pt.addYear(Ct,Ln)},onChange:Xt,getStart:function(Ln){return Pt.setMonth(Ln,0)},getEnd:function(Ln){return Pt.setMonth(Ln,11)}},Wn),Me.createElement(ln,(0,me.Z)({},ke,{titleFormat:Xe.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:$n,getCellDate:gi,getCellText:pt,getCellClassName:Vn}))))}function Yi(ke){var ct=ke.prefixCls,Xe=ke.generateConfig,Pt=ke.locale,Ct=ke.value,Xt=ke.hoverValue,qt=ke.hoverRangeValue,sn=Pt.locale,Tn="".concat(ct,"-week-panel-row"),jn=function($n){var gi={};if(qt){var pt=(0,nt.Z)(qt,2),Vn=pt[0],Wn=pt[1],Rn=xe(Xe,sn,Vn,$n),Ln=xe(Xe,sn,Wn,$n);gi["".concat(Tn,"-range-start")]=Rn,gi["".concat(Tn,"-range-end")]=Ln,gi["".concat(Tn,"-range-hover")]=!Rn&&!Ln&&Ye(Xe,Vn,Wn,$n)}return Xt&&(gi["".concat(Tn,"-hover")]=Xt.some(function(di){return xe(Xe,sn,$n,di)})),Ee()(Tn,(0,Et.Z)({},"".concat(Tn,"-selected"),!qt&&xe(Xe,sn,Ct,$n)),gi)};return Me.createElement(Ti,(0,me.Z)({},ke,{mode:"week",panelName:"week",rowClassName:jn}))}function tr(ke){var ct=ke.prefixCls,Xe=ke.locale,Pt=ke.generateConfig,Ct=ke.pickerValue,Xt=ke.disabledDate,qt=ke.onPickerValueChange,sn=ke.onModeChange,Tn="".concat(ct,"-year-panel"),jn=vr(ke,"year"),gn=(0,nt.Z)(jn,1),$n=gn[0],gi=function(wi){var gr=Math.floor(Pt.getYear(wi)/10)*10;return Pt.setYear(wi,gr)},pt=function(wi){var gr=gi(wi);return Pt.addYear(gr,9)},Vn=gi(Ct),Wn=pt(Ct),Rn=Pt.addYear(Vn,-1),Ln=function(wi,gr){return Pt.addYear(wi,gr)},di=function(wi){return Ht(wi,{locale:Xe,format:Xe.cellYearFormat,generateConfig:Pt})},vi=function(wi){return(0,Et.Z)({},"".concat(ct,"-cell-in-view"),Dt(Pt,wi,Vn)||Dt(Pt,wi,Wn)||Ye(Pt,Vn,Wn,wi))},Dn=Xt?function(xi,wi){var gr=Pt.setMonth(xi,0),Ar=Pt.setDate(gr,1),ur=Pt.addYear(Ar,1),ri=Pt.addDate(ur,-1);return Xt(Ar,wi)&&Xt(ri,wi)}:null,yi=Me.createElement("button",{type:"button",key:"decade","aria-label":Xe.decadeSelect,onClick:function(){sn("decade")},tabIndex:-1,className:"".concat(ct,"-decade-btn")},Ht(Vn,{locale:Xe,format:Xe.yearFormat,generateConfig:Pt}),"-",Ht(Wn,{locale:Xe,format:Xe.yearFormat,generateConfig:Pt}));return Me.createElement(ei.Provider,{value:$n},Me.createElement("div",{className:Tn},Me.createElement(zi,{superOffset:function(wi){return Pt.addYear(Ct,wi*10)},onChange:qt,getStart:gi,getEnd:pt},yi),Me.createElement(ln,(0,me.Z)({},ke,{disabledDate:Dn,titleFormat:Xe.fieldYearFormat,colNum:3,rowNum:4,baseDate:Rn,getCellDate:Ln,getCellText:di,getCellClassName:vi}))))}var Bn={date:Ti,datetime:ti,week:Yi,month:si,quarter:Ri,year:tr,decade:tn,time:ai};function Ot(ke,ct){var Xe,Pt=ke.locale,Ct=ke.generateConfig,Xt=ke.direction,qt=ke.prefixCls,sn=ke.tabIndex,Tn=sn===void 0?0:sn,jn=ke.multiple,gn=ke.defaultValue,$n=ke.value,gi=ke.onChange,pt=ke.onSelect,Vn=ke.defaultPickerValue,Wn=ke.pickerValue,Rn=ke.onPickerValueChange,Ln=ke.mode,di=ke.onPanelChange,vi=ke.picker,Dn=vi===void 0?"date":vi,yi=ke.showTime,xi=ke.hoverValue,wi=ke.hoverRangeValue,gr=ke.cellRender,Ar=ke.dateRender,ur=ke.monthCellRender,ri=ke.components,mr=ri===void 0?{}:ri,rr=ke.hideHeader,fr=((Xe=Me.useContext(ue))===null||Xe===void 0?void 0:Xe.prefixCls)||qt||"rc-picker",nr=Me.useRef();Me.useImperativeHandle(ct,function(){return{nativeElement:nr.current}});var wr=fn(ke),bn=(0,nt.Z)(wr,4),Fi=bn[0],Ii=bn[1],Ki=bn[2],Wi=bn[3],Hi=bt(Pt,Ii),hi=Dn==="date"&&yi?"datetime":Dn,Li=Me.useMemo(function(){return Bt(hi,Ki,Wi,Fi,Hi)},[hi,Ki,Wi,Fi,Hi]),pr=Ct.getNow(),Jn=(0,it.C8)(Dn,{value:Ln,postState:function(ir){return ir||"date"}}),ni=(0,nt.Z)(Jn,2),Ui=ni[0],or=ni[1],br=Ui==="date"&&Li?"datetime":Ui,co=mi(Ct,Pt,hi),mo=(0,it.C8)(gn,{value:$n}),To=(0,nt.Z)(mo,2),qr=To[0],ta=To[1],Fo=Me.useMemo(function(){var xr=Ce(qr).filter(function(ir){return ir});return jn?xr:xr.slice(0,1)},[qr,jn]),ar=(0,it.zX)(function(xr){ta(xr),gi&&(xr===null||Fo.length!==xr.length||Fo.some(function(ir,kr){return!Te(Ct,Pt,ir,xr[kr],hi)}))&&(gi==null||gi(jn?xr:xr[0]))}),Ir=(0,it.zX)(function(xr){if(pt==null||pt(xr),Ui===Dn){var ir=jn?co(Fo,xr):[xr];ar(ir)}}),bo=(0,it.C8)(Vn||Fo[0]||pr,{value:Wn}),Zo=(0,nt.Z)(bo,2),Ko=Zo[0],Io=Zo[1];Me.useEffect(function(){Fo[0]&&!Wn&&Io(Fo[0])},[Fo[0]]);var Eo=function(ir,kr){di==null||di(ir||Wn,kr||Ui)},ia=function(ir){var kr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Io(ir),Rn==null||Rn(ir),kr&&Eo(ir)},ma=function(ir,kr){or(ir),kr&&ia(kr),Eo(kr,ir)},Oo=function(ir){if(Ir(ir),ia(ir),Ui!==Dn){var kr=["decade","year"],yr=[].concat(kr,["month"]),ui={quarter:[].concat(kr,["quarter"]),week:[].concat((0,Ve.Z)(yr),["week"]),date:[].concat((0,Ve.Z)(yr),["date"])},_o=ui[Dn]||yr,St=_o.indexOf(Ui),Cn=_o[St+1];Cn&&ma(Cn,ir)}},Da=Me.useMemo(function(){var xr,ir;if(Array.isArray(wi)){var kr=(0,nt.Z)(wi,2);xr=kr[0],ir=kr[1]}else xr=wi;return!xr&&!ir?null:(xr=xr||ir,ir=ir||xr,Ct.isAfter(xr,ir)?[ir,xr]:[xr,ir])},[wi,Ct]),Kr=Qe(gr,Ar,ur),so=mr[br]||Bn[br]||Ti,uo=Me.useContext(an),Do=Me.useMemo(function(){return(0,ut.Z)((0,ut.Z)({},uo),{},{hideHeader:rr})},[uo,rr]),ko="".concat(fr,"-panel"),Ea=Oe(ke,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return Me.createElement(an.Provider,{value:Do},Me.createElement("div",{ref:nr,tabIndex:Tn,className:Ee()(ko,(0,Et.Z)({},"".concat(ko,"-rtl"),Xt==="rtl"))},Me.createElement(so,(0,me.Z)({},Ea,{showTime:Li,prefixCls:fr,locale:Hi,generateConfig:Ct,onModeChange:ma,pickerValue:Ko,onPickerValueChange:function(ir){ia(ir,!0)},value:Fo[0],onSelect:Oo,values:Fo,cellRender:Kr,hoverRangeValue:Da,hoverValue:xi}))))}var qn=Me.memo(Me.forwardRef(Ot)),Ji=qn;function $i(ke){var ct=ke.picker,Xe=ke.multiplePanel,Pt=ke.pickerValue,Ct=ke.onPickerValueChange,Xt=ke.needConfirm,qt=ke.onSubmit,sn=ke.range,Tn=ke.hoverValue,jn=Me.useContext(ue),gn=jn.prefixCls,$n=jn.generateConfig,gi=Me.useCallback(function(di,vi){return Qi($n,ct,di,vi)},[$n,ct]),pt=Me.useMemo(function(){return gi(Pt,1)},[Pt,gi]),Vn=function(vi){Ct(gi(vi,-1))},Wn={onCellDblClick:function(){Xt&&qt()}},Rn=ct==="time",Ln=(0,ut.Z)((0,ut.Z)({},ke),{},{hoverValue:null,hoverRangeValue:null,hideHeader:Rn});return sn?Ln.hoverRangeValue=Tn:Ln.hoverValue=Tn,Xe?Me.createElement("div",{className:"".concat(gn,"-panels")},Me.createElement(an.Provider,{value:(0,ut.Z)((0,ut.Z)({},Wn),{},{hideNext:!0})},Me.createElement(Ji,Ln)),Me.createElement(an.Provider,{value:(0,ut.Z)((0,ut.Z)({},Wn),{},{hidePrev:!0})},Me.createElement(Ji,(0,me.Z)({},Ln,{pickerValue:pt,onPickerValueChange:Vn})))):Me.createElement(an.Provider,{value:(0,ut.Z)({},Wn)},Me.createElement(Ji,Ln))}function Pn(ke){return typeof ke=="function"?ke():ke}function Mi(ke){var ct=ke.prefixCls,Xe=ke.presets,Pt=ke.onClick,Ct=ke.onHover;return Xe.length?Me.createElement("div",{className:"".concat(ct,"-presets")},Me.createElement("ul",null,Xe.map(function(Xt,qt){var sn=Xt.label,Tn=Xt.value;return Me.createElement("li",{key:qt,onClick:function(){Pt(Pn(Tn))},onMouseEnter:function(){Ct(Pn(Tn))},onMouseLeave:function(){Ct(null)}},sn)}))):null}function Er(ke){var ct=ke.panelRender,Xe=ke.internalMode,Pt=ke.picker,Ct=ke.showNow,Xt=ke.range,qt=ke.multiple,sn=ke.activeInfo,Tn=sn===void 0?[0,0,0]:sn,jn=ke.presets,gn=ke.onPresetHover,$n=ke.onPresetSubmit,gi=ke.onFocus,pt=ke.onBlur,Vn=ke.onPanelMouseDown,Wn=ke.direction,Rn=ke.value,Ln=ke.onSelect,di=ke.isInvalid,vi=ke.defaultOpenValue,Dn=ke.onOk,yi=ke.onSubmit,xi=Me.useContext(ue),wi=xi.prefixCls,gr="".concat(wi,"-panel"),Ar=Wn==="rtl",ur=Me.useRef(null),ri=Me.useRef(null),mr=Me.useState(0),rr=(0,nt.Z)(mr,2),fr=rr[0],nr=rr[1],wr=Me.useState(0),bn=(0,nt.Z)(wr,2),Fi=bn[0],Ii=bn[1],Ki=Me.useState(0),Wi=(0,nt.Z)(Ki,2),Hi=Wi[0],hi=Wi[1],Li=function(Oo){Oo.width&&nr(Oo.width)},pr=(0,nt.Z)(Tn,3),Jn=pr[0],ni=pr[1],Ui=pr[2],or=Me.useState(0),br=(0,nt.Z)(or,2),co=br[0],mo=br[1];Me.useEffect(function(){mo(10)},[Jn]),Me.useEffect(function(){if(Xt&&ri.current){var ma,Oo=((ma=ur.current)===null||ma===void 0?void 0:ma.offsetWidth)||0,Da=ri.current.getBoundingClientRect();if(!Da.height||Da.right<0){mo(function(Do){return Math.max(0,Do-1)});return}var Kr=(Ar?ni-Oo:Jn)-Da.left;if(hi(Kr),fr&&fr<Ui){var so=Ar?Da.right-(ni-Oo+fr):Jn+Oo-Da.left-fr,uo=Math.max(0,so);Ii(uo)}else Ii(0)}},[co,Ar,fr,Jn,ni,Ui,Xt]);function To(ma){return ma.filter(function(Oo){return Oo})}var qr=Me.useMemo(function(){return To(Ce(Rn))},[Rn]),ta=Pt==="time"&&!qr.length,Fo=Me.useMemo(function(){return ta?To([vi]):qr},[ta,qr,vi]),ar=ta?vi:qr,Ir=Me.useMemo(function(){return Fo.length?Fo.some(function(ma){return di(ma)}):!0},[Fo,di]),bo=function(){ta&&Ln(vi),Dn(),yi()},Zo=Me.createElement("div",{className:"".concat(wi,"-panel-layout")},Me.createElement(Mi,{prefixCls:wi,presets:jn,onClick:$n,onHover:gn}),Me.createElement("div",null,Me.createElement($i,(0,me.Z)({},ke,{value:ar})),Me.createElement(ci,(0,me.Z)({},ke,{showNow:qt?!1:Ct,invalid:Ir,onSubmit:bo}))));ct&&(Zo=ct(Zo));var Ko="".concat(gr,"-container"),Io="marginLeft",Eo="marginRight",ia=Me.createElement("div",{onMouseDown:Vn,tabIndex:-1,className:Ee()(Ko,"".concat(wi,"-").concat(Xe,"-panel-container")),style:(0,Et.Z)((0,Et.Z)({},Ar?Eo:Io,Fi),Ar?Io:Eo,"auto"),onFocus:gi,onBlur:pt},Zo);return Xt&&(ia=Me.createElement("div",{onMouseDown:Vn,ref:ri,className:Ee()("".concat(wi,"-range-wrapper"),"".concat(wi,"-").concat(Pt,"-range-wrapper"))},Me.createElement("div",{ref:ur,className:"".concat(wi,"-range-arrow"),style:{left:Hi}}),Me.createElement(hr.Z,{onResize:Li},ia))),ia}var Hr=Pe(33346);function wo(ke,ct){var Xe=ke.format,Pt=ke.maskFormat,Ct=ke.generateConfig,Xt=ke.locale,qt=ke.preserveInvalidOnBlur,sn=ke.inputReadOnly,Tn=ke.required,jn=ke["aria-required"],gn=ke.onSubmit,$n=ke.onFocus,gi=ke.onBlur,pt=ke.onInputChange,Vn=ke.onInvalid,Wn=ke.open,Rn=ke.onOpenChange,Ln=ke.onKeyDown,di=ke.onChange,vi=ke.activeHelp,Dn=ke.name,yi=ke.autoComplete,xi=ke.id,wi=ke.value,gr=ke.invalid,Ar=ke.placeholder,ur=ke.disabled,ri=ke.activeIndex,mr=ke.allHelp,rr=ke.picker,fr=function(Hi,hi){var Li=Ct.locale.parse(Xt.locale,Hi,[hi]);return Li&&Ct.isValidate(Li)?Li:null},nr=Xe[0],wr=Me.useCallback(function(Wi){return Ht(Wi,{locale:Xt,format:nr,generateConfig:Ct})},[Xt,Ct,nr]),bn=Me.useMemo(function(){return wi.map(wr)},[wi,wr]),Fi=Me.useMemo(function(){var Wi=rr==="time"?8:10,Hi=typeof nr=="function"?nr(Ct.getNow()).length:nr.length;return Math.max(Wi,Hi)+2},[nr,rr,Ct]),Ii=function(Hi){for(var hi=0;hi<Xe.length;hi+=1){var Li=Xe[hi];if(typeof Li=="string"){var pr=fr(Hi,Li);if(pr)return pr}}return!1},Ki=function(Hi){function hi(Jn){return Hi!==void 0?Jn[Hi]:Jn}var Li=(0,yt.Z)(ke,{aria:!0,data:!0}),pr=(0,ut.Z)((0,ut.Z)({},Li),{},{format:Pt,validateFormat:function(ni){return!!Ii(ni)},preserveInvalidOnBlur:qt,readOnly:sn,required:Tn,"aria-required":jn,name:Dn,autoComplete:yi,size:Fi,id:hi(xi),value:hi(bn)||"",invalid:hi(gr),placeholder:hi(Ar),active:ri===Hi,helped:mr||vi&&ri===Hi,disabled:hi(ur),onFocus:function(ni){$n(ni,Hi)},onBlur:function(ni){gi(ni,Hi)},onSubmit:gn,onChange:function(ni){pt();var Ui=Ii(ni);if(Ui){Vn(!1,Hi),di(Ui,Hi);return}Vn(!!ni,Hi)},onHelp:function(){Rn(!0,{index:Hi})},onKeyDown:function(ni){var Ui=!1;if(Ln==null||Ln(ni,function(){Ui=!0}),!ni.defaultPrevented&&!Ui)switch(ni.key){case"Escape":Rn(!1,{index:Hi});break;case"Enter":Wn||Rn(!0);break}}},ct==null?void 0:ct({valueTexts:bn}));return Object.keys(pr).forEach(function(Jn){pr[Jn]===void 0&&delete pr[Jn]}),pr};return[Ki,wr]}var Kt=["onMouseEnter","onMouseLeave"];function Oi(ke){return Me.useMemo(function(){return Oe(ke,Kt)},[ke])}var Nr=["icon","type"],_i=["onClear"];function Jr(ke){var ct=ke.icon,Xe=ke.type,Pt=(0,Hr.Z)(ke,Nr),Ct=Me.useContext(ue),Xt=Ct.prefixCls;return ct?Me.createElement("span",(0,me.Z)({className:"".concat(Xt,"-").concat(Xe)},Pt),ct):null}function Zr(ke){var ct=ke.onClear,Xe=(0,Hr.Z)(ke,_i);return Me.createElement(Jr,(0,me.Z)({},Xe,{type:"clear",role:"button",onMouseDown:function(Ct){Ct.preventDefault()},onClick:function(Ct){Ct.stopPropagation(),ct()}}))}var Xr=Pe(42573),Rr=Pe(58698),Gr=["YYYY","MM","DD","HH","mm","ss","SSS"],oo="\u9867",An=function(){function ke(ct){(0,Xr.Z)(this,ke),(0,Et.Z)(this,"format",void 0),(0,Et.Z)(this,"maskFormat",void 0),(0,Et.Z)(this,"cells",void 0),(0,Et.Z)(this,"maskCells",void 0),this.format=ct;var Xe=Gr.map(function(sn){return"(".concat(sn,")")}).join("|"),Pt=new RegExp(Xe,"g");this.maskFormat=ct.replace(Pt,function(sn){return oo.repeat(sn.length)});var Ct=new RegExp("(".concat(Gr.join("|"),")")),Xt=(ct.split(Ct)||[]).filter(function(sn){return sn}),qt=0;this.cells=Xt.map(function(sn){var Tn=Gr.includes(sn),jn=qt,gn=qt+sn.length;return qt=gn,{text:sn,mask:Tn,start:jn,end:gn}}),this.maskCells=this.cells.filter(function(sn){return sn.mask})}return(0,Rr.Z)(ke,[{key:"getSelection",value:function(Xe){var Pt=this.maskCells[Xe]||{},Ct=Pt.start,Xt=Pt.end;return[Ct||0,Xt||0]}},{key:"match",value:function(Xe){for(var Pt=0;Pt<this.maskFormat.length;Pt+=1){var Ct=this.maskFormat[Pt],Xt=Xe[Pt];if(!Xt||Ct!==oo&&Ct!==Xt)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(Xe){for(var Pt=Number.MAX_SAFE_INTEGER,Ct=0,Xt=0;Xt<this.maskCells.length;Xt+=1){var qt=this.maskCells[Xt],sn=qt.start,Tn=qt.end;if(Xe>=sn&&Xe<=Tn)return Xt;var jn=Math.min(Math.abs(Xe-sn),Math.abs(Xe-Tn));jn<Pt&&(Pt=jn,Ct=Xt)}return Ct}}]),ke}();function ho(ke){var ct={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return ct[ke]}var Fn=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],Kn=Me.forwardRef(function(ke,ct){var Xe=ke.active,Pt=ke.showActiveCls,Ct=Pt===void 0?!0:Pt,Xt=ke.suffixIcon,qt=ke.format,sn=ke.validateFormat,Tn=ke.onChange,jn=ke.onInput,gn=ke.helped,$n=ke.onHelp,gi=ke.onSubmit,pt=ke.onKeyDown,Vn=ke.preserveInvalidOnBlur,Wn=Vn===void 0?!1:Vn,Rn=ke.invalid,Ln=ke.clearIcon,di=(0,Hr.Z)(ke,Fn),vi=ke.value,Dn=ke.onFocus,yi=ke.onBlur,xi=ke.onMouseUp,wi=Me.useContext(ue),gr=wi.prefixCls,Ar=wi.input,ur=Ar===void 0?"input":Ar,ri="".concat(gr,"-input"),mr=Me.useState(!1),rr=(0,nt.Z)(mr,2),fr=rr[0],nr=rr[1],wr=Me.useState(vi),bn=(0,nt.Z)(wr,2),Fi=bn[0],Ii=bn[1],Ki=Me.useState(""),Wi=(0,nt.Z)(Ki,2),Hi=Wi[0],hi=Wi[1],Li=Me.useState(null),pr=(0,nt.Z)(Li,2),Jn=pr[0],ni=pr[1],Ui=Me.useState(null),or=(0,nt.Z)(Ui,2),br=or[0],co=or[1],mo=Fi||"";Me.useEffect(function(){Ii(vi)},[vi]);var To=Me.useRef(),qr=Me.useRef();Me.useImperativeHandle(ct,function(){return{nativeElement:To.current,inputElement:qr.current,focus:function(ir){qr.current.focus(ir)},blur:function(){qr.current.blur()}}});var ta=Me.useMemo(function(){return new An(qt||"")},[qt]),Fo=Me.useMemo(function(){return gn?[0,0]:ta.getSelection(Jn)},[ta,Jn,gn]),ar=(0,nt.Z)(Fo,2),Ir=ar[0],bo=ar[1],Zo=function(ir){ir&&ir!==qt&&ir!==vi&&$n()},Ko=(0,it.zX)(function(xr){sn(xr)&&Tn(xr),Ii(xr),Zo(xr)}),Io=function(ir){if(!qt){var kr=ir.target.value;Zo(kr),Ii(kr),Tn(kr)}},Eo=function(ir){var kr=ir.clipboardData.getData("text");sn(kr)&&Ko(kr)},ia=Me.useRef(!1),ma=function(){ia.current=!0},Oo=function(ir){var kr=ir.target,yr=kr.selectionStart,ui=ta.getMaskCellIndex(yr);ni(ui),co({}),xi==null||xi(ir),ia.current=!1},Da=function(ir){nr(!0),ni(0),hi(""),Dn(ir)},Kr=function(ir){yi(ir)},so=function(ir){nr(!1),Kr(ir)};Ei(Xe,function(){!Xe&&!Wn&&Ii(vi)});var uo=function(ir){ir.key==="Enter"&&sn(mo)&&gi(),pt==null||pt(ir)},Do=function(ir){uo(ir);var kr=ir.key,yr=null,ui=null,_o=bo-Ir,St=qt.slice(Ir,bo),Cn=function(ca){ni(function(Ga){var Na=Ga+ca;return Na=Math.max(Na,0),Na=Math.min(Na,ta.size()-1),Na})},ja=function(ca){var Ga=ho(St),Na=(0,nt.Z)(Ga,3),Zs=Na[0],aa=Na[1],Wr=Na[2],Va=mo.slice(Ir,bo),$a=Number(Va);if(isNaN($a))return String(Wr||(ca>0?Zs:aa));var sa=$a+ca,vo=aa-Zs+1;return String(Zs+(vo+sa-Zs)%vo)};switch(kr){case"Backspace":case"Delete":yr="",ui=St;break;case"ArrowLeft":yr="",Cn(-1);break;case"ArrowRight":yr="",Cn(1);break;case"ArrowUp":yr="",ui=ja(1);break;case"ArrowDown":yr="",ui=ja(-1);break;default:isNaN(Number(kr))||(yr=Hi+kr,ui=yr);break}if(yr!==null&&(hi(yr),yr.length>=_o&&(Cn(1),hi(""))),ui!==null){var za=mo.slice(0,Ir)+ye(ui,_o)+mo.slice(bo);Ko(za.slice(0,qt.length))}co({})},ko=Me.useRef();(0,ze.Z)(function(){if(!(!fr||!qt||ia.current)){if(!ta.match(mo)){Ko(qt);return}return qr.current.setSelectionRange(Ir,bo),ko.current=(0,fi.Z)(function(){qr.current.setSelectionRange(Ir,bo)}),function(){fi.Z.cancel(ko.current)}}},[ta,qt,fr,mo,Jn,Ir,bo,br,Ko]);var Ea=qt?{onFocus:Da,onBlur:so,onKeyDown:Do,onMouseDown:ma,onMouseUp:Oo,onPaste:Eo}:{};return Me.createElement("div",{ref:To,className:Ee()(ri,(0,Et.Z)((0,Et.Z)({},"".concat(ri,"-active"),Xe&&Ct),"".concat(ri,"-placeholder"),gn))},Me.createElement(ur,(0,me.Z)({ref:qr,"aria-invalid":Rn,autoComplete:"off"},di,{onKeyDown:uo,onBlur:Kr},Ea,{value:mo,onChange:Io})),Me.createElement(Jr,{type:"suffix",icon:Xt}),Ln)}),zr=Kn,Tr=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],Co=["index"];function Yr(ke,ct){var Xe=ke.id,Pt=ke.prefix,Ct=ke.clearIcon,Xt=ke.suffixIcon,qt=ke.separator,sn=qt===void 0?"~":qt,Tn=ke.activeIndex,jn=ke.activeHelp,gn=ke.allHelp,$n=ke.focused,gi=ke.onFocus,pt=ke.onBlur,Vn=ke.onKeyDown,Wn=ke.locale,Rn=ke.generateConfig,Ln=ke.placeholder,di=ke.className,vi=ke.style,Dn=ke.onClick,yi=ke.onClear,xi=ke.value,wi=ke.onChange,gr=ke.onSubmit,Ar=ke.onInputChange,ur=ke.format,ri=ke.maskFormat,mr=ke.preserveInvalidOnBlur,rr=ke.onInvalid,fr=ke.disabled,nr=ke.invalid,wr=ke.inputReadOnly,bn=ke.direction,Fi=ke.onOpenChange,Ii=ke.onActiveInfo,Ki=ke.placement,Wi=ke.onMouseDown,Hi=ke.required,hi=ke["aria-required"],Li=ke.autoFocus,pr=ke.tabIndex,Jn=(0,Hr.Z)(ke,Tr),ni=bn==="rtl",Ui=Me.useContext(ue),or=Ui.prefixCls,br=Me.useMemo(function(){if(typeof Xe=="string")return[Xe];var Kr=Xe||{};return[Kr.start,Kr.end]},[Xe]),co=Me.useRef(),mo=Me.useRef(),To=Me.useRef(),qr=function(so){var uo;return(uo=[mo,To][so])===null||uo===void 0?void 0:uo.current};Me.useImperativeHandle(ct,function(){return{nativeElement:co.current,focus:function(so){if((0,At.Z)(so)==="object"){var uo,Do=so||{},ko=Do.index,Ea=ko===void 0?0:ko,xr=(0,Hr.Z)(Do,Co);(uo=qr(Ea))===null||uo===void 0||uo.focus(xr)}else{var ir;(ir=qr(so!=null?so:0))===null||ir===void 0||ir.focus()}},blur:function(){var so,uo;(so=qr(0))===null||so===void 0||so.blur(),(uo=qr(1))===null||uo===void 0||uo.blur()}}});var ta=Oi(Jn),Fo=Me.useMemo(function(){return Array.isArray(Ln)?Ln:[Ln,Ln]},[Ln]),ar=wo((0,ut.Z)((0,ut.Z)({},ke),{},{id:br,placeholder:Fo})),Ir=(0,nt.Z)(ar,1),bo=Ir[0],Zo=Me.useState({position:"absolute",width:0}),Ko=(0,nt.Z)(Zo,2),Io=Ko[0],Eo=Ko[1],ia=(0,it.zX)(function(){var Kr=qr(Tn);if(Kr){var so=Kr.nativeElement.getBoundingClientRect(),uo=co.current.getBoundingClientRect(),Do=so.left-uo.left;Eo(function(ko){return(0,ut.Z)((0,ut.Z)({},ko),{},{width:so.width,left:Do})}),Ii([so.left,so.right,uo.width])}});Me.useEffect(function(){ia()},[Tn]);var ma=Ct&&(xi[0]&&!fr[0]||xi[1]&&!fr[1]),Oo=Li&&!fr[0],Da=Li&&!Oo&&!fr[1];return Me.createElement(hr.Z,{onResize:ia},Me.createElement("div",(0,me.Z)({},ta,{className:Ee()(or,"".concat(or,"-range"),(0,Et.Z)((0,Et.Z)((0,Et.Z)((0,Et.Z)({},"".concat(or,"-focused"),$n),"".concat(or,"-disabled"),fr.every(function(Kr){return Kr})),"".concat(or,"-invalid"),nr.some(function(Kr){return Kr})),"".concat(or,"-rtl"),ni),di),style:vi,ref:co,onClick:Dn,onMouseDown:function(so){var uo=so.target;uo!==mo.current.inputElement&&uo!==To.current.inputElement&&so.preventDefault(),Wi==null||Wi(so)}}),Pt&&Me.createElement("div",{className:"".concat(or,"-prefix")},Pt),Me.createElement(zr,(0,me.Z)({ref:mo},bo(0),{autoFocus:Oo,tabIndex:pr,"date-range":"start"})),Me.createElement("div",{className:"".concat(or,"-range-separator")},sn),Me.createElement(zr,(0,me.Z)({ref:To},bo(1),{autoFocus:Da,tabIndex:pr,"date-range":"end"})),Me.createElement("div",{className:"".concat(or,"-active-bar"),style:Io}),Me.createElement(Jr,{type:"suffix",icon:Xt}),ma&&Me.createElement(Zr,{icon:Ct,onClear:yi})))}var Or=Me.forwardRef(Yr),No=Or;function Qt(ke,ct){var Xe=ke!=null?ke:ct;return Array.isArray(Xe)?Xe:[Xe,Xe]}function mn(ke){return ke===1?"end":"start"}function Wt(ke,ct){var Xe=zn(ke,function(){var $r=ke.disabled,lo=ke.allowEmpty,Mo=Qt($r,!1),na=Qt(lo,!1);return{disabled:Mo,allowEmpty:na}}),Pt=(0,nt.Z)(Xe,6),Ct=Pt[0],Xt=Pt[1],qt=Pt[2],sn=Pt[3],Tn=Pt[4],jn=Pt[5],gn=Ct.prefixCls,$n=Ct.styles,gi=Ct.classNames,pt=Ct.defaultValue,Vn=Ct.value,Wn=Ct.needConfirm,Rn=Ct.onKeyDown,Ln=Ct.disabled,di=Ct.allowEmpty,vi=Ct.disabledDate,Dn=Ct.minDate,yi=Ct.maxDate,xi=Ct.defaultOpen,wi=Ct.open,gr=Ct.onOpenChange,Ar=Ct.locale,ur=Ct.generateConfig,ri=Ct.picker,mr=Ct.showNow,rr=Ct.showToday,fr=Ct.showTime,nr=Ct.mode,wr=Ct.onPanelChange,bn=Ct.onCalendarChange,Fi=Ct.onOk,Ii=Ct.defaultPickerValue,Ki=Ct.pickerValue,Wi=Ct.onPickerValueChange,Hi=Ct.inputReadOnly,hi=Ct.suffixIcon,Li=Ct.onFocus,pr=Ct.onBlur,Jn=Ct.presets,ni=Ct.ranges,Ui=Ct.components,or=Ct.cellRender,br=Ct.dateRender,co=Ct.monthCellRender,mo=Ct.onClick,To=Ci(ct),qr=Pi(wi,xi,Ln,gr),ta=(0,nt.Z)(qr,2),Fo=ta[0],ar=ta[1],Ir=function(lo,Mo){(Ln.some(function(na){return!na})||!lo)&&ar(lo,Mo)},bo=fo(ur,Ar,sn,!0,!1,pt,Vn,bn,Fi),Zo=(0,nt.Z)(bo,5),Ko=Zo[0],Io=Zo[1],Eo=Zo[2],ia=Zo[3],ma=Zo[4],Oo=Eo(),Da=pi(Ln,di,Fo),Kr=(0,nt.Z)(Da,9),so=Kr[0],uo=Kr[1],Do=Kr[2],ko=Kr[3],Ea=Kr[4],xr=Kr[5],ir=Kr[6],kr=Kr[7],yr=Kr[8],ui=function(lo,Mo){uo(!0),Li==null||Li(lo,{range:mn(Mo!=null?Mo:ko)})},_o=function(lo,Mo){uo(!1),pr==null||pr(lo,{range:mn(Mo!=null?Mo:ko)})},St=Me.useMemo(function(){if(!fr)return null;var $r=fr.disabledTime,lo=$r?function(Mo){var na=mn(ko),ns=Be(Oo,ir,ko);return $r(Mo,na,{from:ns})}:void 0;return(0,ut.Z)((0,ut.Z)({},fr),{},{disabledTime:lo})},[fr,ko,Oo,ir]),Cn=(0,it.C8)([ri,ri],{value:nr}),ja=(0,nt.Z)(Cn,2),za=ja[0],da=ja[1],ca=za[ko]||ri,Ga=ca==="date"&&St?"datetime":ca,Na=Ga===ri&&Ga!=="time",Zs=io(ri,ca,mr,rr,!0),aa=po(Ct,Ko,Io,Eo,ia,Ln,sn,so,Fo,jn),Wr=(0,nt.Z)(aa,2),Va=Wr[0],$a=Wr[1],sa=ji(Oo,Ln,ir,ur,Ar,vi),vo=rt(Oo,jn,di),ga=(0,nt.Z)(vo,2),ls=ga[0],oa=ga[1],us=Lr(ur,Ar,Oo,za,Fo,ko,Xt,Na,Ii,Ki,St==null?void 0:St.defaultOpenValue,Wi,Dn,yi),Ta=(0,nt.Z)(us,2),bl=Ta[0],Go=Ta[1],Aa=(0,it.zX)(function($r,lo,Mo){var na=Re(za,ko,lo);if((na[0]!==za[0]||na[1]!==za[1])&&da(na),wr&&Mo!==!1){var ns=(0,Ve.Z)(Oo);$r&&(ns[ko]=$r),wr(ns,na)}}),Ro=function(lo,Mo){return Re(Oo,Mo,lo)},qo=function(lo,Mo){var na=Oo;lo&&(na=Ro(lo,ko)),kr(ko);var ns=xr(na);ia(na),Va(ko,ns===null),ns===null?Ir(!1,{force:!0}):Mo||To.current.focus({index:ns})},ua=function(lo){var Mo,na=lo.target.getRootNode();if(!To.current.nativeElement.contains((Mo=na.activeElement)!==null&&Mo!==void 0?Mo:document.activeElement)){var ns=Ln.findIndex(function(hs){return!hs});ns>=0&&To.current.focus({index:ns})}Ir(!0),mo==null||mo(lo)},pa=function(){$a(null),Ir(!1,{force:!0})},Jo=Me.useState(null),fl=(0,nt.Z)(Jo,2),_r=fl[0],pu=fl[1],Ao=Me.useState(null),Gl=(0,nt.Z)(Ao,2),Qs=Gl[0],Dl=Gl[1],mu=Me.useMemo(function(){return Qs||Oo},[Oo,Qs]);Me.useEffect(function(){Fo||Dl(null)},[Fo]);var vu=Me.useState([0,0,0]),Ws=(0,nt.Z)(vu,2),Vl=Ws[0],Uo=Ws[1],Hs=Yn(Jn,ni),yu=function(lo){Dl(lo),pu("preset")},gl=function(lo){var Mo=$a(lo);Mo&&Ir(!1,{force:!0})},Du=function(lo){qo(lo)},pl=function(lo){Dl(lo?Ro(lo,ko):null),pu("cell")},Bo=function(lo){Ir(!0),ui(lo)},Yo=function(){Do("panel")},Ca=function(lo){var Mo=Re(Oo,ko,lo);ia(Mo),!Wn&&!qt&&Xt===Ga&&qo(lo)},es=function(){Ir(!1)},Xa=Qe(or,br,co,mn(ko)),kl=Oo[ko]||null,ml=(0,it.zX)(function($r){return jn($r,{activeIndex:ko})}),jo=Me.useMemo(function(){var $r=(0,yt.Z)(Ct,!1),lo=(0,Ue.Z)(Ct,[].concat((0,Ve.Z)(Object.keys($r)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return lo},[Ct]),yo=Me.createElement(Er,(0,me.Z)({},jo,{showNow:Zs,showTime:St,range:!0,multiplePanel:Na,activeInfo:Vl,disabledDate:sa,onFocus:Bo,onBlur:_o,onPanelMouseDown:Yo,picker:ri,mode:ca,internalMode:Ga,onPanelChange:Aa,format:Tn,value:kl,isInvalid:ml,onChange:null,onSelect:Ca,pickerValue:bl,defaultOpenValue:Ce(fr==null?void 0:fr.defaultOpenValue)[ko],onPickerValueChange:Go,hoverValue:mu,onHover:pl,needConfirm:Wn,onSubmit:qo,onOk:ma,presets:Hs,onPresetHover:yu,onPresetSubmit:gl,onNow:Du,cellRender:Xa})),_a=function(lo,Mo){var na=Ro(lo,Mo);ia(na)},iu=function(){Do("input")},Dd=function(lo,Mo){var na=ir.length,ns=ir[na-1];if(na&&ns!==Mo&&Wn&&!di[ns]&&!yr(ns)&&Oo[ns]){To.current.focus({index:ns});return}Do("input"),Ir(!0,{inherit:!0}),ko!==Mo&&Fo&&!Wn&&qt&&qo(null,!0),Ea(Mo),ui(lo,Mo)},dg=function(lo,Mo){if(Ir(!1),!Wn&&Do()==="input"){var na=xr(Oo);Va(ko,na===null)}_o(lo,Mo)},tf=function(lo,Mo){lo.key==="Tab"&&qo(null,!0),Rn==null||Rn(lo,Mo)},Za=Me.useMemo(function(){return{prefixCls:gn,locale:Ar,generateConfig:ur,button:Ui.button,input:Ui.input}},[gn,Ar,ur,Ui.button,Ui.input]);if((0,ze.Z)(function(){Fo&&ko!==void 0&&Aa(null,ri,!1)},[Fo,ko,ri]),(0,ze.Z)(function(){var $r=Do();!Fo&&$r==="input"&&(Ir(!1),qo(null,!0)),!Fo&&qt&&!Wn&&$r==="panel"&&(Ir(!0),qo())},[Fo]),0)var Xu;return Me.createElement(ue.Provider,{value:Za},Me.createElement(pe,(0,me.Z)({},Ie(Ct),{popupElement:yo,popupStyle:$n.popup,popupClassName:gi.popup,visible:Fo,onClose:es,range:!0}),Me.createElement(No,(0,me.Z)({},Ct,{ref:To,suffixIcon:hi,activeIndex:so||Fo?ko:null,activeHelp:!!Qs,allHelp:!!Qs&&_r==="preset",focused:so,onFocus:Dd,onBlur:dg,onKeyDown:tf,onSubmit:qo,value:mu,maskFormat:Tn,onChange:_a,onInputChange:iu,format:sn,inputReadOnly:Hi,disabled:Ln,open:Fo,onOpenChange:Ir,onClick:ua,onClear:pa,invalid:ls,onInvalid:oa,onActiveInfo:Uo}))))}var je=Me.forwardRef(Wt),Qn=je,Ai=Pe(11780);function qi(ke){var ct=ke.prefixCls,Xe=ke.value,Pt=ke.onRemove,Ct=ke.removeIcon,Xt=Ct===void 0?"\xD7":Ct,qt=ke.formatDate,sn=ke.disabled,Tn=ke.maxTagCount,jn=ke.placeholder,gn="".concat(ct,"-selector"),$n="".concat(ct,"-selection"),gi="".concat($n,"-overflow");function pt(Rn,Ln){return Me.createElement("span",{className:Ee()("".concat($n,"-item")),title:typeof Rn=="string"?Rn:null},Me.createElement("span",{className:"".concat($n,"-item-content")},Rn),!sn&&Ln&&Me.createElement("span",{onMouseDown:function(vi){vi.preventDefault()},onClick:Ln,className:"".concat($n,"-item-remove")},Xt))}function Vn(Rn){var Ln=qt(Rn),di=function(Dn){Dn&&Dn.stopPropagation(),Pt(Rn)};return pt(Ln,di)}function Wn(Rn){var Ln="+ ".concat(Rn.length," ...");return pt(Ln)}return Me.createElement("div",{className:gn},Me.createElement(Ai.Z,{prefixCls:gi,data:Xe,renderItem:Vn,renderRest:Wn,itemKey:function(Ln){return qt(Ln)},maxCount:Tn}),!Xe.length&&Me.createElement("span",{className:"".concat(ct,"-selection-placeholder")},jn))}var Je=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function Yt(ke,ct){var Xe=ke.id,Pt=ke.open,Ct=ke.prefix,Xt=ke.clearIcon,qt=ke.suffixIcon,sn=ke.activeHelp,Tn=ke.allHelp,jn=ke.focused,gn=ke.onFocus,$n=ke.onBlur,gi=ke.onKeyDown,pt=ke.locale,Vn=ke.generateConfig,Wn=ke.placeholder,Rn=ke.className,Ln=ke.style,di=ke.onClick,vi=ke.onClear,Dn=ke.internalPicker,yi=ke.value,xi=ke.onChange,wi=ke.onSubmit,gr=ke.onInputChange,Ar=ke.multiple,ur=ke.maxTagCount,ri=ke.format,mr=ke.maskFormat,rr=ke.preserveInvalidOnBlur,fr=ke.onInvalid,nr=ke.disabled,wr=ke.invalid,bn=ke.inputReadOnly,Fi=ke.direction,Ii=ke.onOpenChange,Ki=ke.onMouseDown,Wi=ke.required,Hi=ke["aria-required"],hi=ke.autoFocus,Li=ke.tabIndex,pr=ke.removeIcon,Jn=(0,Hr.Z)(ke,Je),ni=Fi==="rtl",Ui=Me.useContext(ue),or=Ui.prefixCls,br=Me.useRef(),co=Me.useRef();Me.useImperativeHandle(ct,function(){return{nativeElement:br.current,focus:function(Io){var Eo;(Eo=co.current)===null||Eo===void 0||Eo.focus(Io)},blur:function(){var Io;(Io=co.current)===null||Io===void 0||Io.blur()}}});var mo=Oi(Jn),To=function(Io){xi([Io])},qr=function(Io){var Eo=yi.filter(function(ia){return ia&&!Te(Vn,pt,ia,Io,Dn)});xi(Eo),Pt||wi()},ta=wo((0,ut.Z)((0,ut.Z)({},ke),{},{onChange:To}),function(Ko){var Io=Ko.valueTexts;return{value:Io[0]||"",active:jn}}),Fo=(0,nt.Z)(ta,2),ar=Fo[0],Ir=Fo[1],bo=!!(Xt&&yi.length&&!nr),Zo=Ar?Me.createElement(Me.Fragment,null,Me.createElement(qi,{prefixCls:or,value:yi,onRemove:qr,formatDate:Ir,maxTagCount:ur,disabled:nr,removeIcon:pr,placeholder:Wn}),Me.createElement("input",{className:"".concat(or,"-multiple-input"),value:yi.map(Ir).join(","),ref:co,readOnly:!0,autoFocus:hi,tabIndex:Li}),Me.createElement(Jr,{type:"suffix",icon:qt}),bo&&Me.createElement(Zr,{icon:Xt,onClear:vi})):Me.createElement(zr,(0,me.Z)({ref:co},ar(),{autoFocus:hi,tabIndex:Li,suffixIcon:qt,clearIcon:bo&&Me.createElement(Zr,{icon:Xt,onClear:vi}),showActiveCls:!1}));return Me.createElement("div",(0,me.Z)({},mo,{className:Ee()(or,(0,Et.Z)((0,Et.Z)((0,Et.Z)((0,Et.Z)((0,Et.Z)({},"".concat(or,"-multiple"),Ar),"".concat(or,"-focused"),jn),"".concat(or,"-disabled"),nr),"".concat(or,"-invalid"),wr),"".concat(or,"-rtl"),ni),Rn),style:Ln,ref:br,onClick:di,onMouseDown:function(Io){var Eo,ia=Io.target;ia!==((Eo=co.current)===null||Eo===void 0?void 0:Eo.inputElement)&&Io.preventDefault(),Ki==null||Ki(Io)}}),Ct&&Me.createElement("div",{className:"".concat(or,"-prefix")},Ct),Zo)}var Lt=Me.forwardRef(Yt),on=Lt;function Gn(ke,ct){var Xe=zn(ke),Pt=(0,nt.Z)(Xe,6),Ct=Pt[0],Xt=Pt[1],qt=Pt[2],sn=Pt[3],Tn=Pt[4],jn=Pt[5],gn=Ct,$n=gn.prefixCls,gi=gn.styles,pt=gn.classNames,Vn=gn.order,Wn=gn.defaultValue,Rn=gn.value,Ln=gn.needConfirm,di=gn.onChange,vi=gn.onKeyDown,Dn=gn.disabled,yi=gn.disabledDate,xi=gn.minDate,wi=gn.maxDate,gr=gn.defaultOpen,Ar=gn.open,ur=gn.onOpenChange,ri=gn.locale,mr=gn.generateConfig,rr=gn.picker,fr=gn.showNow,nr=gn.showToday,wr=gn.showTime,bn=gn.mode,Fi=gn.onPanelChange,Ii=gn.onCalendarChange,Ki=gn.onOk,Wi=gn.multiple,Hi=gn.defaultPickerValue,hi=gn.pickerValue,Li=gn.onPickerValueChange,pr=gn.inputReadOnly,Jn=gn.suffixIcon,ni=gn.removeIcon,Ui=gn.onFocus,or=gn.onBlur,br=gn.presets,co=gn.components,mo=gn.cellRender,To=gn.dateRender,qr=gn.monthCellRender,ta=gn.onClick,Fo=Ci(ct);function ar(jo){return jo===null?null:Wi?jo:jo[0]}var Ir=mi(mr,ri,Xt),bo=Pi(Ar,gr,[Dn],ur),Zo=(0,nt.Z)(bo,2),Ko=Zo[0],Io=Zo[1],Eo=function(yo,_a,iu){if(Ii){var Dd=(0,ut.Z)({},iu);delete Dd.range,Ii(ar(yo),ar(_a),Dd)}},ia=function(yo){Ki==null||Ki(ar(yo))},ma=fo(mr,ri,sn,!1,Vn,Wn,Rn,Eo,ia),Oo=(0,nt.Z)(ma,5),Da=Oo[0],Kr=Oo[1],so=Oo[2],uo=Oo[3],Do=Oo[4],ko=so(),Ea=pi([Dn]),xr=(0,nt.Z)(Ea,4),ir=xr[0],kr=xr[1],yr=xr[2],ui=xr[3],_o=function(yo){kr(!0),Ui==null||Ui(yo,{})},St=function(yo){kr(!1),or==null||or(yo,{})},Cn=(0,it.C8)(rr,{value:bn}),ja=(0,nt.Z)(Cn,2),za=ja[0],da=ja[1],ca=za==="date"&&wr?"datetime":za,Ga=io(rr,za,fr,nr),Na=di&&function(jo,yo){di(ar(jo),ar(yo))},Zs=po((0,ut.Z)((0,ut.Z)({},Ct),{},{onChange:Na}),Da,Kr,so,uo,[],sn,ir,Ko,jn),aa=(0,nt.Z)(Zs,2),Wr=aa[1],Va=rt(ko,jn),$a=(0,nt.Z)(Va,2),sa=$a[0],vo=$a[1],ga=Me.useMemo(function(){return sa.some(function(jo){return jo})},[sa]),ls=function(yo,_a){if(Li){var iu=(0,ut.Z)((0,ut.Z)({},_a),{},{mode:_a.mode[0]});delete iu.range,Li(yo[0],iu)}},oa=Lr(mr,ri,ko,[za],Ko,ui,Xt,!1,Hi,hi,Ce(wr==null?void 0:wr.defaultOpenValue),ls,xi,wi),us=(0,nt.Z)(oa,2),Ta=us[0],bl=us[1],Go=(0,it.zX)(function(jo,yo,_a){if(da(yo),Fi&&_a!==!1){var iu=jo||ko[ko.length-1];Fi(iu,yo)}}),Aa=function(){Wr(so()),Io(!1,{force:!0})},Ro=function(yo){!Dn&&!Fo.current.nativeElement.contains(document.activeElement)&&Fo.current.focus(),Io(!0),ta==null||ta(yo)},qo=function(){Wr(null),Io(!1,{force:!0})},ua=Me.useState(null),pa=(0,nt.Z)(ua,2),Jo=pa[0],fl=pa[1],_r=Me.useState(null),pu=(0,nt.Z)(_r,2),Ao=pu[0],Gl=pu[1],Qs=Me.useMemo(function(){var jo=[Ao].concat((0,Ve.Z)(ko)).filter(function(yo){return yo});return Wi?jo:jo.slice(0,1)},[ko,Ao,Wi]),Dl=Me.useMemo(function(){return!Wi&&Ao?[Ao]:ko.filter(function(jo){return jo})},[ko,Ao,Wi]);Me.useEffect(function(){Ko||Gl(null)},[Ko]);var mu=Yn(br),vu=function(yo){Gl(yo),fl("preset")},Ws=function(yo){var _a=Wi?Ir(so(),yo):[yo],iu=Wr(_a);iu&&!Wi&&Io(!1,{force:!0})},Vl=function(yo){Ws(yo)},Uo=function(yo){Gl(yo),fl("cell")},Hs=function(yo){Io(!0),_o(yo)},yu=function(yo){if(yr("panel"),!(Wi&&ca!==rr)){var _a=Wi?Ir(so(),yo):[yo];uo(_a),!Ln&&!qt&&Xt===ca&&Aa()}},gl=function(){Io(!1)},Du=Qe(mo,To,qr),pl=Me.useMemo(function(){var jo=(0,yt.Z)(Ct,!1),yo=(0,Ue.Z)(Ct,[].concat((0,Ve.Z)(Object.keys(jo)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,ut.Z)((0,ut.Z)({},yo),{},{multiple:Ct.multiple})},[Ct]),Bo=Me.createElement(Er,(0,me.Z)({},pl,{showNow:Ga,showTime:wr,disabledDate:yi,onFocus:Hs,onBlur:St,picker:rr,mode:za,internalMode:ca,onPanelChange:Go,format:Tn,value:ko,isInvalid:jn,onChange:null,onSelect:yu,pickerValue:Ta,defaultOpenValue:wr==null?void 0:wr.defaultOpenValue,onPickerValueChange:bl,hoverValue:Qs,onHover:Uo,needConfirm:Ln,onSubmit:Aa,onOk:Do,presets:mu,onPresetHover:vu,onPresetSubmit:Ws,onNow:Vl,cellRender:Du})),Yo=function(yo){uo(yo)},Ca=function(){yr("input")},es=function(yo){yr("input"),Io(!0,{inherit:!0}),_o(yo)},Xa=function(yo){Io(!1),St(yo)},kl=function(yo,_a){yo.key==="Tab"&&Aa(),vi==null||vi(yo,_a)},ml=Me.useMemo(function(){return{prefixCls:$n,locale:ri,generateConfig:mr,button:co.button,input:co.input}},[$n,ri,mr,co.button,co.input]);return(0,ze.Z)(function(){Ko&&ui!==void 0&&Go(null,rr,!1)},[Ko,ui,rr]),(0,ze.Z)(function(){var jo=yr();!Ko&&jo==="input"&&(Io(!1),Aa()),!Ko&&qt&&!Ln&&jo==="panel"&&Aa()},[Ko]),Me.createElement(ue.Provider,{value:ml},Me.createElement(pe,(0,me.Z)({},Ie(Ct),{popupElement:Bo,popupStyle:gi.popup,popupClassName:pt.popup,visible:Ko,onClose:gl}),Me.createElement(on,(0,me.Z)({},Ct,{ref:Fo,suffixIcon:Jn,removeIcon:ni,activeHelp:!!Ao,allHelp:!!Ao&&Jo==="preset",focused:ir,onFocus:es,onBlur:Xa,onKeyDown:kl,onSubmit:Aa,value:Dl,maskFormat:Tn,onChange:Yo,onInputChange:Ca,internalPicker:Xt,format:sn,inputReadOnly:pr,disabled:Dn,open:Ko,onOpenChange:Io,onClick:Ro,onClear:qo,invalid:ga,onInvalid:function(yo){vo(yo,0)}}))))}var vn=Me.forwardRef(Gn),dn=vn,Mn=dn},25930:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Cd:function(){return Qe}});var me=Pe(67711),Ve=Pe(98506),ut=Pe(33346),nt=Pe(59301),it=Pe(92310),ze=Pe.n(it),Ue={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},yt=function(){var gt=(0,nt.useRef)([]),bt=(0,nt.useRef)(null);return(0,nt.useEffect)(function(){var At=Date.now(),Tt=!1;gt.current.forEach(function(Nt){if(Nt){Tt=!0;var Ut=Nt.style;Ut.transitionDuration=".3s, .3s, .3s, .06s",bt.current&&At-bt.current<100&&(Ut.transitionDuration="0s, 0s")}}),Tt&&(bt.current=Date.now())}),gt.current},ot=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Me=function(gt){var bt=(0,Ve.Z)((0,Ve.Z)({},Ue),gt),At=bt.className,Tt=bt.percent,Nt=bt.prefixCls,Ut=bt.strokeColor,st=bt.strokeLinecap,He=bt.strokeWidth,jt=bt.style,fn=bt.trailColor,Bt=bt.trailWidth,Ft=bt.transition,It=(0,ut.Z)(bt,ot);delete It.gapPosition;var Vt=Array.isArray(Tt)?Tt:[Tt],wn=Array.isArray(Ut)?Ut:[Ut],Dt=yt(),vt=He/2,zt=100-He/2,En="M ".concat(st==="round"?vt:0,",").concat(vt,`
|
|
L `).concat(st==="round"?zt:100,",").concat(vt),kn="0 0 100 ".concat(He),Ze=0;return nt.createElement("svg",(0,me.Z)({className:ze()("".concat(Nt,"-line"),At),viewBox:kn,preserveAspectRatio:"none",style:jt},It),nt.createElement("path",{className:"".concat(Nt,"-line-trail"),d:En,strokeLinecap:st,stroke:fn,strokeWidth:Bt||He,fillOpacity:"0"}),Vt.map(function(Fe,xe){var Te=1;switch(st){case"round":Te=1-He/100;break;case"square":Te=1-He/2/100;break;default:Te=1;break}var Ye={strokeDasharray:"".concat(Fe*Te,"px, 100px"),strokeDashoffset:"-".concat(Ze,"px"),transition:Ft||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},De=wn[xe]||wn[wn.length-1];return Ze+=Fe,nt.createElement("path",{key:xe,className:"".concat(Nt,"-line-path"),d:En,strokeLinecap:st,stroke:De,strokeWidth:He,fillOpacity:"0",ref:function(Ht){Dt[xe]=Ht},style:Ye})}))},Et=Me,_e=Pe(26420),ht=Pe(16886),Ee=Pe(47273),ne=0,ee=(0,Ee.Z)();function ue(){var xt;return ee?(xt=ne,ne+=1):xt="TEST_OR_SSR",xt}var se=function(xt){var gt=nt.useState(),bt=(0,ht.Z)(gt,2),At=bt[0],Tt=bt[1];return nt.useEffect(function(){Tt("rc_progress_".concat(ue()))},[]),xt||At},de=function(gt){var bt=gt.bg,At=gt.children;return nt.createElement("div",{style:{width:"100%",height:"100%",background:bt}},At)};function pe(xt,gt){return Object.keys(xt).map(function(bt){var At=parseFloat(bt),Tt="".concat(Math.floor(At*gt),"%");return"".concat(xt[bt]," ").concat(Tt)})}var ye=nt.forwardRef(function(xt,gt){var bt=xt.prefixCls,At=xt.color,Tt=xt.gradientId,Nt=xt.radius,Ut=xt.style,st=xt.ptg,He=xt.strokeLinecap,jt=xt.strokeWidth,fn=xt.size,Bt=xt.gapDegree,Ft=At&&(0,_e.Z)(At)==="object",It=Ft?"#FFF":void 0,Vt=fn/2,wn=nt.createElement("circle",{className:"".concat(bt,"-circle-path"),r:Nt,cx:Vt,cy:Vt,stroke:It,strokeLinecap:He,strokeWidth:jt,opacity:st===0?0:1,style:Ut,ref:gt});if(!Ft)return wn;var Dt="".concat(Tt,"-conic"),vt=Bt?"".concat(180+Bt/2,"deg"):"0deg",zt=pe(At,(360-Bt)/360),En=pe(At,1),kn="conic-gradient(from ".concat(vt,", ").concat(zt.join(", "),")"),Ze="linear-gradient(to ".concat(Bt?"bottom":"top",", ").concat(En.join(", "),")");return nt.createElement(nt.Fragment,null,nt.createElement("mask",{id:Dt},wn),nt.createElement("foreignObject",{x:0,y:0,width:fn,height:fn,mask:"url(#".concat(Dt,")")},nt.createElement(de,{bg:Ze},nt.createElement(de,{bg:kn}))))}),Ce=ye,Re=100,Oe=function(gt,bt,At,Tt,Nt,Ut,st,He,jt,fn){var Bt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Ft=At/100*360*((360-Ut)/360),It=Ut===0?0:{bottom:0,top:180,left:90,right:-90}[st],Vt=(100-Tt)/100*bt;jt==="round"&&Tt!==100&&(Vt+=fn/2,Vt>=bt&&(Vt=bt-.01));var wn=Re/2;return{stroke:typeof He=="string"?He:void 0,strokeDasharray:"".concat(bt,"px ").concat(gt),strokeDashoffset:Vt+Bt,transform:"rotate(".concat(Nt+Ft+It,"deg)"),transformOrigin:"".concat(wn,"px ").concat(wn,"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}},We=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Be(xt){var gt=xt!=null?xt:[];return Array.isArray(gt)?gt:[gt]}var Ie=function(gt){var bt=(0,Ve.Z)((0,Ve.Z)({},Ue),gt),At=bt.id,Tt=bt.prefixCls,Nt=bt.steps,Ut=bt.strokeWidth,st=bt.trailWidth,He=bt.gapDegree,jt=He===void 0?0:He,fn=bt.gapPosition,Bt=bt.trailColor,Ft=bt.strokeLinecap,It=bt.style,Vt=bt.className,wn=bt.strokeColor,Dt=bt.percent,vt=(0,ut.Z)(bt,We),zt=Re/2,En=se(At),kn="".concat(En,"-gradient"),Ze=zt-Ut/2,Fe=Math.PI*2*Ze,xe=jt>0?90+jt/2:-90,Te=Fe*((360-jt)/360),Ye=(0,_e.Z)(Nt)==="object"?Nt:{count:Nt,gap:2},De=Ye.count,tt=Ye.gap,Ht=Be(Dt),$t=Be(wn),Sn=$t.find(function(_n){return _n&&(0,_e.Z)(_n)==="object"}),en=Sn&&(0,_e.Z)(Sn)==="object",kt=en?"butt":Ft,nn=Oe(Fe,Te,0,100,xe,jt,fn,Bt,kt,Ut),hn=yt(),zn=function(){var Pi=0;return Ht.map(function(Ci,Yn){var Ei=$t[Yn]||$t[$t.length-1],pi=Oe(Fe,Te,Pi,Ci,xe,jt,fn,Ei,kt,Ut);return Pi+=Ci,nt.createElement(Ce,{key:Yn,color:Ei,ptg:Ci,radius:Ze,prefixCls:Tt,gradientId:kn,style:pi,strokeLinecap:kt,strokeWidth:Ut,gapDegree:jt,ref:function(Qi){hn[Yn]=Qi},size:Re})}).reverse()},fi=function(){var Pi=Math.round(De*(Ht[0]/100)),Ci=100/De,Yn=0;return new Array(De).fill(null).map(function(Ei,pi){var ji=pi<=Pi-1?$t[0]:Bt,Qi=ji&&(0,_e.Z)(ji)==="object"?"url(#".concat(kn,")"):void 0,lr=Oe(Fe,Te,Yn,Ci,xe,jt,fn,ji,"butt",Ut,tt);return Yn+=(Te-lr.strokeDashoffset+tt)*100/Te,nt.createElement("circle",{key:pi,className:"".concat(Tt,"-circle-path"),r:Ze,cx:zt,cy:zt,stroke:Qi,strokeWidth:Ut,opacity:1,style:lr,ref:function(Di){hn[pi]=Di}})})};return nt.createElement("svg",(0,me.Z)({className:ze()("".concat(Tt,"-circle"),Vt),viewBox:"0 0 ".concat(Re," ").concat(Re),style:It,id:At,role:"presentation"},vt),!De&&nt.createElement("circle",{className:"".concat(Tt,"-circle-trail"),r:Ze,cx:zt,cy:zt,stroke:Bt,strokeLinecap:kt,strokeWidth:st||Ut,style:nn}),De?fi():zn())},Qe=Ie,rt={Line:Et,Circle:Qe}},738:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Z:function(){return pe}});var me=Pe(67711),Ve=Pe(52873),ut=Pe(16886),nt=Pe(33346),it=Pe(92310),ze=Pe.n(it),Ue=Pe(18929),yt=Pe(10228),ot=Pe(26112),Me=Pe(59301);function Et(ye,Ce){var Re=ye.disabled,Oe=ye.prefixCls,We=ye.character,Be=ye.characterRender,Ie=ye.index,Qe=ye.count,rt=ye.value,xt=ye.allowHalf,gt=ye.focused,bt=ye.onHover,At=ye.onClick,Tt=function(Ft){bt(Ft,Ie)},Nt=function(Ft){At(Ft,Ie)},Ut=function(Ft){Ft.keyCode===yt.Z.ENTER&&At(Ft,Ie)},st=Ie+1,He=new Set([Oe]);rt===0&&Ie===0&>?He.add("".concat(Oe,"-focused")):xt&&rt+.5>=st&&rt<st?(He.add("".concat(Oe,"-half")),He.add("".concat(Oe,"-active")),gt&&He.add("".concat(Oe,"-focused"))):(st<=rt?He.add("".concat(Oe,"-full")):He.add("".concat(Oe,"-zero")),st===rt&>&&He.add("".concat(Oe,"-focused")));var jt=typeof We=="function"?We(ye):We,fn=Me.createElement("li",{className:ze()(Array.from(He)),ref:Ce},Me.createElement("div",{onClick:Re?null:Nt,onKeyDown:Re?null:Ut,onMouseMove:Re?null:Tt,role:"radio","aria-checked":rt>Ie?"true":"false","aria-posinset":Ie+1,"aria-setsize":Qe,tabIndex:Re?-1:0},Me.createElement("div",{className:"".concat(Oe,"-first")},jt),Me.createElement("div",{className:"".concat(Oe,"-second")},jt)));return Be&&(fn=Be(fn,ye)),fn}var _e=Me.forwardRef(Et);function ht(){var ye=Me.useRef({});function Ce(Oe){return ye.current[Oe]}function Re(Oe){return function(We){ye.current[Oe]=We}}return[Ce,Re]}function Ee(ye){var Ce=ye.pageXOffset,Re="scrollLeft";if(typeof Ce!="number"){var Oe=ye.document;Ce=Oe.documentElement[Re],typeof Ce!="number"&&(Ce=Oe.body[Re])}return Ce}function ne(ye){var Ce,Re,Oe=ye.ownerDocument,We=Oe.body,Be=Oe&&Oe.documentElement,Ie=ye.getBoundingClientRect();return Ce=Ie.left,Re=Ie.top,Ce-=Be.clientLeft||We.clientLeft||0,Re-=Be.clientTop||We.clientTop||0,{left:Ce,top:Re}}function ee(ye){var Ce=ne(ye),Re=ye.ownerDocument,Oe=Re.defaultView||Re.parentWindow;return Ce.left+=Ee(Oe),Ce.left}var ue=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function se(ye,Ce){var Re=ye.prefixCls,Oe=Re===void 0?"rc-rate":Re,We=ye.className,Be=ye.defaultValue,Ie=ye.value,Qe=ye.count,rt=Qe===void 0?5:Qe,xt=ye.allowHalf,gt=xt===void 0?!1:xt,bt=ye.allowClear,At=bt===void 0?!0:bt,Tt=ye.keyboard,Nt=Tt===void 0?!0:Tt,Ut=ye.character,st=Ut===void 0?"\u2605":Ut,He=ye.characterRender,jt=ye.disabled,fn=ye.direction,Bt=fn===void 0?"ltr":fn,Ft=ye.tabIndex,It=Ft===void 0?0:Ft,Vt=ye.autoFocus,wn=ye.onHoverChange,Dt=ye.onChange,vt=ye.onFocus,zt=ye.onBlur,En=ye.onKeyDown,kn=ye.onMouseLeave,Ze=(0,nt.Z)(ye,ue),Fe=ht(),xe=(0,ut.Z)(Fe,2),Te=xe[0],Ye=xe[1],De=Me.useRef(null),tt=function(){if(!jt){var hr;(hr=De.current)===null||hr===void 0||hr.focus()}};Me.useImperativeHandle(Ce,function(){return{focus:tt,blur:function(){if(!jt){var hr;(hr=De.current)===null||hr===void 0||hr.blur()}}}});var Ht=(0,Ue.Z)(Be||0,{value:Ie}),$t=(0,ut.Z)(Ht,2),Sn=$t[0],en=$t[1],kt=(0,Ue.Z)(null),nn=(0,ut.Z)(kt,2),hn=nn[0],zn=nn[1],fi=function(hr,ao){var be=Bt==="rtl",Un=hr+1;if(gt){var Xn=Te(hr),ci=ee(Xn),mi=Xn.clientWidth;(be&&ao-ci>mi/2||!be&&ao-ci<mi/2)&&(Un-=.5)}return Un},_n=function(hr){en(hr),Dt==null||Dt(hr)},Pi=Me.useState(!1),Ci=(0,ut.Z)(Pi,2),Yn=Ci[0],Ei=Ci[1],pi=function(){Ei(!0),vt==null||vt()},ji=function(){Ei(!1),zt==null||zt()},Qi=Me.useState(null),lr=(0,ut.Z)(Qi,2),Lr=lr[0],Di=lr[1],cr=function(hr,ao){var be=fi(ao,hr.pageX);be!==hn&&(Di(be),zn(null)),wn==null||wn(be)},to=function(hr){jt||(Di(null),zn(null),wn==null||wn(void 0)),hr&&(kn==null||kn(hr))},ki=function(hr,ao){var be=fi(ao,hr.pageX),Un=!1;At&&(Un=be===Sn),to(),_n(Un?0:be),zn(Un?be:null)},no=function(hr){var ao=hr.keyCode,be=Bt==="rtl",Un=gt?.5:1;Nt&&(ao===yt.Z.RIGHT&&Sn<rt&&!be?(_n(Sn+Un),hr.preventDefault()):ao===yt.Z.LEFT&&Sn>0&&!be||ao===yt.Z.RIGHT&&Sn>0&&be?(_n(Sn-Un),hr.preventDefault()):ao===yt.Z.LEFT&&Sn<rt&&be&&(_n(Sn+Un),hr.preventDefault())),En==null||En(hr)};Me.useEffect(function(){Vt&&!jt&&tt()},[]);var fo=new Array(rt).fill(0).map(function(io,hr){return Me.createElement(_e,{ref:Ye(hr),index:hr,count:rt,disabled:jt,prefixCls:"".concat(Oe,"-star"),allowHalf:gt,value:Lr===null?Sn:Lr,onClick:ki,onHover:cr,key:io||hr,character:st,characterRender:He,focused:Yn})}),po=ze()(Oe,We,(0,Ve.Z)((0,Ve.Z)({},"".concat(Oe,"-disabled"),jt),"".concat(Oe,"-rtl"),Bt==="rtl"));return Me.createElement("ul",(0,me.Z)({className:po,onMouseLeave:to,tabIndex:jt?-1:It,onFocus:jt?null:pi,onBlur:jt?null:ji,onKeyDown:jt?null:no,ref:De},(0,ot.Z)(Ze,{aria:!0,data:!0,attr:!0})),fo)}var de=Me.forwardRef(se),pe=de},6551:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{ZP:function(){return Ue}});var me=Pe(16886),Ve=Pe(59301),ut=Pe(47273),nt=0,it=(0,ut.Z)();function ze(){var yt;return it?(yt=nt,nt+=1):yt="TEST_OR_SSR",yt}function Ue(yt){var ot=Ve.useState(),Me=(0,me.Z)(ot,2),Et=Me[0],_e=Me[1];return Ve.useEffect(function(){_e("rc_select_".concat(ze()))},[]),yt||Et}},37463:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Ac:function(){return Ei},Xo:function(){return ji},Wx:function(){return lr},ZP:function(){return ii},lk:function(){return pe}});var me=Pe(67711),Ve=Pe(15142),ut=Pe(52873),nt=Pe(98506),it=Pe(16886),ze=Pe(33346),Ue=Pe(26420),yt=Pe(18929),ot=Pe(48736),Me=Pe(59301),Et=Pe(92310),_e=Pe.n(Et),ht=Pe(34280),Ee=Pe(49658),ne=Pe(8654),ee=function(Rt){var ai=Rt.className,ti=Rt.customizeIcon,tn=Rt.customizeIconProps,si=Rt.children,Ri=Rt.onMouseDown,Yi=Rt.onClick,tr=typeof ti=="function"?ti(tn):ti;return Me.createElement("span",{className:ai,onMouseDown:function(Ot){Ot.preventDefault(),Ri==null||Ri(Ot)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Yi,"aria-hidden":!0},tr!==void 0?tr:Me.createElement("span",{className:_e()(ai.split(/\s+/).map(function(Bn){return"".concat(Bn,"-icon")}))},si))},ue=ee,se=function(Rt,ai,ti,tn,si){var Ri=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Yi=arguments.length>6?arguments[6]:void 0,tr=arguments.length>7?arguments[7]:void 0,Bn=Me.useMemo(function(){if((0,Ue.Z)(tn)==="object")return tn.clearIcon;if(si)return si},[tn,si]),Ot=Me.useMemo(function(){return!!(!Ri&&tn&&(ti.length||Yi)&&!(tr==="combobox"&&Yi===""))},[tn,Ri,ti.length,Yi,tr]);return{allowClear:Ot,clearIcon:Me.createElement(ue,{className:"".concat(Rt,"-clear"),onMouseDown:ai,customizeIcon:Bn},"\xD7")}},de=Me.createContext(null);function pe(){return Me.useContext(de)}function ye(){var lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Rt=Me.useState(!1),ai=(0,it.Z)(Rt,2),ti=ai[0],tn=ai[1],si=Me.useRef(null),Ri=function(){window.clearTimeout(si.current)};Me.useEffect(function(){return Ri},[]);var Yi=function(Bn,Ot){Ri(),si.current=window.setTimeout(function(){tn(Bn),Ot&&Ot()},lt)};return[ti,Yi,Ri]}function Ce(){var lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Rt=Me.useRef(null),ai=Me.useRef(null);Me.useEffect(function(){return function(){window.clearTimeout(ai.current)}},[]);function ti(tn){(tn||Rt.current===null)&&(Rt.current=tn),window.clearTimeout(ai.current),ai.current=window.setTimeout(function(){Rt.current=null},lt)}return[function(){return Rt.current},ti]}function Re(lt,Rt,ai,ti){var tn=Me.useRef(null);tn.current={open:Rt,triggerOpen:ai,customizedTrigger:ti},Me.useEffect(function(){function si(Ri){var Yi;if(!((Yi=tn.current)!==null&&Yi!==void 0&&Yi.customizedTrigger)){var tr=Ri.target;tr.shadowRoot&&Ri.composed&&(tr=Ri.composedPath()[0]||tr),tn.current.open&<().filter(function(Bn){return Bn}).every(function(Bn){return!Bn.contains(tr)&&Bn!==tr})&&tn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",si),function(){return window.removeEventListener("mousedown",si)}},[])}var Oe=Pe(10228);function We(lt){return lt&&![Oe.Z.ESC,Oe.Z.SHIFT,Oe.Z.BACKSPACE,Oe.Z.TAB,Oe.Z.WIN_KEY,Oe.Z.ALT,Oe.Z.META,Oe.Z.WIN_KEY_RIGHT,Oe.Z.CTRL,Oe.Z.SEMICOLON,Oe.Z.EQUALS,Oe.Z.CAPS_LOCK,Oe.Z.CONTEXT_MENU,Oe.Z.F1,Oe.Z.F2,Oe.Z.F3,Oe.Z.F4,Oe.Z.F5,Oe.Z.F6,Oe.Z.F7,Oe.Z.F8,Oe.Z.F9,Oe.Z.F10,Oe.Z.F11,Oe.Z.F12].includes(lt)}var Be=Pe(26112),Ie=Pe(11780);function Qe(lt,Rt,ai){var ti=(0,nt.Z)((0,nt.Z)({},lt),ai?Rt:{});return Object.keys(Rt).forEach(function(tn){var si=Rt[tn];typeof si=="function"&&(ti[tn]=function(){for(var Ri,Yi=arguments.length,tr=new Array(Yi),Bn=0;Bn<Yi;Bn++)tr[Bn]=arguments[Bn];return si.apply(void 0,tr),(Ri=lt[tn])===null||Ri===void 0?void 0:Ri.call.apply(Ri,[lt].concat(tr))})}),ti}var rt=Qe,xt=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],gt=function(Rt,ai){var ti=Rt.prefixCls,tn=Rt.id,si=Rt.inputElement,Ri=Rt.autoFocus,Yi=Rt.autoComplete,tr=Rt.editable,Bn=Rt.activeDescendantId,Ot=Rt.value,qn=Rt.open,Ji=Rt.attrs,$i=(0,ze.Z)(Rt,xt),Pn=si||Me.createElement("input",null),Mi=Pn,Er=Mi.ref,Hr=Mi.props;return(0,ot.Kp)(!("maxLength"in Pn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Pn=Me.cloneElement(Pn,(0,nt.Z)((0,nt.Z)((0,nt.Z)({type:"search"},rt($i,Hr,!0)),{},{id:tn,ref:(0,ne.sQ)(ai,Er),autoComplete:Yi||"off",autoFocus:Ri,className:_e()("".concat(ti,"-selection-search-input"),Hr==null?void 0:Hr.className),role:"combobox","aria-expanded":qn||!1,"aria-haspopup":"listbox","aria-owns":"".concat(tn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(tn,"_list"),"aria-activedescendant":qn?Bn:void 0},Ji),{},{value:tr?Ot:"",readOnly:!tr,unselectable:tr?null:"on",style:(0,nt.Z)((0,nt.Z)({},Hr.style),{},{opacity:tr?null:0})})),Pn},bt=Me.forwardRef(gt),At=bt;function Tt(lt){return Array.isArray(lt)?lt:lt!==void 0?[lt]:[]}var Nt=typeof window!="undefined"&&window.document&&window.document.documentElement,Ut=Nt;function st(lt){return lt!=null}function He(lt){return!lt&<!==0}function jt(lt){return["string","number"].includes((0,Ue.Z)(lt))}function fn(lt){var Rt=void 0;return lt&&(jt(lt.title)?Rt=lt.title.toString():jt(lt.label)&&(Rt=lt.label.toString())),Rt}function Bt(lt,Rt){Ut?Me.useLayoutEffect(lt,Rt):Me.useEffect(lt,Rt)}function Ft(lt){var Rt;return(Rt=lt.key)!==null&&Rt!==void 0?Rt:lt.value}var It=function(Rt){Rt.preventDefault(),Rt.stopPropagation()},Vt=function(Rt){var ai=Rt.id,ti=Rt.prefixCls,tn=Rt.values,si=Rt.open,Ri=Rt.searchValue,Yi=Rt.autoClearSearchValue,tr=Rt.inputRef,Bn=Rt.placeholder,Ot=Rt.disabled,qn=Rt.mode,Ji=Rt.showSearch,$i=Rt.autoFocus,Pn=Rt.autoComplete,Mi=Rt.activeDescendantId,Er=Rt.tabIndex,Hr=Rt.removeIcon,wo=Rt.maxTagCount,Kt=Rt.maxTagTextLength,Oi=Rt.maxTagPlaceholder,Nr=Oi===void 0?function(Gn){return"+ ".concat(Gn.length," ...")}:Oi,_i=Rt.tagRender,Jr=Rt.onToggleOpen,Zr=Rt.onRemove,Xr=Rt.onInputChange,Rr=Rt.onInputPaste,Gr=Rt.onInputKeyDown,oo=Rt.onInputMouseDown,An=Rt.onInputCompositionStart,ho=Rt.onInputCompositionEnd,Fn=Rt.onInputBlur,Kn=Me.useRef(null),zr=(0,Me.useState)(0),Tr=(0,it.Z)(zr,2),Co=Tr[0],Yr=Tr[1],Or=(0,Me.useState)(!1),No=(0,it.Z)(Or,2),Qt=No[0],mn=No[1],Wt="".concat(ti,"-selection"),je=si||qn==="multiple"&&Yi===!1||qn==="tags"?Ri:"",Qn=qn==="tags"||qn==="multiple"&&Yi===!1||Ji&&(si||Qt);Bt(function(){Yr(Kn.current.scrollWidth)},[je]);var Ai=function(vn,dn,Mn,ke,ct){return Me.createElement("span",{title:fn(vn),className:_e()("".concat(Wt,"-item"),(0,ut.Z)({},"".concat(Wt,"-item-disabled"),Mn))},Me.createElement("span",{className:"".concat(Wt,"-item-content")},dn),ke&&Me.createElement(ue,{className:"".concat(Wt,"-item-remove"),onMouseDown:It,onClick:ct,customizeIcon:Hr},"\xD7"))},qi=function(vn,dn,Mn,ke,ct,Xe){var Pt=function(Xt){It(Xt),Jr(!si)};return Me.createElement("span",{onMouseDown:Pt},_i({label:dn,value:vn,disabled:Mn,closable:ke,onClose:ct,isMaxTag:!!Xe}))},Je=function(vn){var dn=vn.disabled,Mn=vn.label,ke=vn.value,ct=!Ot&&!dn,Xe=Mn;if(typeof Kt=="number"&&(typeof Mn=="string"||typeof Mn=="number")){var Pt=String(Xe);Pt.length>Kt&&(Xe="".concat(Pt.slice(0,Kt),"..."))}var Ct=function(qt){qt&&qt.stopPropagation(),Zr(vn)};return typeof _i=="function"?qi(ke,Xe,dn,ct,Ct):Ai(vn,Xe,dn,ct,Ct)},Yt=function(vn){if(!tn.length)return null;var dn=typeof Nr=="function"?Nr(vn):Nr;return typeof _i=="function"?qi(void 0,dn,!1,!1,void 0,!0):Ai({title:dn},dn,!1)},Lt=Me.createElement("div",{className:"".concat(Wt,"-search"),style:{width:Co},onFocus:function(){mn(!0)},onBlur:function(){mn(!1)}},Me.createElement(At,{ref:tr,open:si,prefixCls:ti,id:ai,inputElement:null,disabled:Ot,autoFocus:$i,autoComplete:Pn,editable:Qn,activeDescendantId:Mi,value:je,onKeyDown:Gr,onMouseDown:oo,onChange:Xr,onPaste:Rr,onCompositionStart:An,onCompositionEnd:ho,onBlur:Fn,tabIndex:Er,attrs:(0,Be.Z)(Rt,!0)}),Me.createElement("span",{ref:Kn,className:"".concat(Wt,"-search-mirror"),"aria-hidden":!0},je,"\xA0")),on=Me.createElement(Ie.Z,{prefixCls:"".concat(Wt,"-overflow"),data:tn,renderItem:Je,renderRest:Yt,suffix:Lt,itemKey:Ft,maxCount:wo});return Me.createElement("span",{className:"".concat(Wt,"-wrap")},on,!tn.length&&!je&&Me.createElement("span",{className:"".concat(Wt,"-placeholder")},Bn))},wn=Vt,Dt=function(Rt){var ai=Rt.inputElement,ti=Rt.prefixCls,tn=Rt.id,si=Rt.inputRef,Ri=Rt.disabled,Yi=Rt.autoFocus,tr=Rt.autoComplete,Bn=Rt.activeDescendantId,Ot=Rt.mode,qn=Rt.open,Ji=Rt.values,$i=Rt.placeholder,Pn=Rt.tabIndex,Mi=Rt.showSearch,Er=Rt.searchValue,Hr=Rt.activeValue,wo=Rt.maxLength,Kt=Rt.onInputKeyDown,Oi=Rt.onInputMouseDown,Nr=Rt.onInputChange,_i=Rt.onInputPaste,Jr=Rt.onInputCompositionStart,Zr=Rt.onInputCompositionEnd,Xr=Rt.onInputBlur,Rr=Rt.title,Gr=Me.useState(!1),oo=(0,it.Z)(Gr,2),An=oo[0],ho=oo[1],Fn=Ot==="combobox",Kn=Fn||Mi,zr=Ji[0],Tr=Er||"";Fn&&Hr&&!An&&(Tr=Hr),Me.useEffect(function(){Fn&&ho(!1)},[Fn,Hr]);var Co=Ot!=="combobox"&&!qn&&!Mi?!1:!!Tr,Yr=Rr===void 0?fn(zr):Rr,Or=Me.useMemo(function(){return zr?null:Me.createElement("span",{className:"".concat(ti,"-selection-placeholder"),style:Co?{visibility:"hidden"}:void 0},$i)},[zr,Co,$i,ti]);return Me.createElement("span",{className:"".concat(ti,"-selection-wrap")},Me.createElement("span",{className:"".concat(ti,"-selection-search")},Me.createElement(At,{ref:si,prefixCls:ti,id:tn,open:qn,inputElement:ai,disabled:Ri,autoFocus:Yi,autoComplete:tr,editable:Kn,activeDescendantId:Bn,value:Tr,onKeyDown:Kt,onMouseDown:Oi,onChange:function(Qt){ho(!0),Nr(Qt)},onPaste:_i,onCompositionStart:Jr,onCompositionEnd:Zr,onBlur:Xr,tabIndex:Pn,attrs:(0,Be.Z)(Rt,!0),maxLength:Fn?wo:void 0})),!Fn&&zr?Me.createElement("span",{className:"".concat(ti,"-selection-item"),title:Yr,style:Co?{visibility:"hidden"}:void 0},zr.label):null,Or)},vt=Dt,zt=function(Rt,ai){var ti=(0,Me.useRef)(null),tn=(0,Me.useRef)(!1),si=Rt.prefixCls,Ri=Rt.open,Yi=Rt.mode,tr=Rt.showSearch,Bn=Rt.tokenWithEnter,Ot=Rt.disabled,qn=Rt.prefix,Ji=Rt.autoClearSearchValue,$i=Rt.onSearch,Pn=Rt.onSearchSubmit,Mi=Rt.onToggleOpen,Er=Rt.onInputKeyDown,Hr=Rt.onInputBlur,wo=Rt.domRef;Me.useImperativeHandle(ai,function(){return{focus:function(Yr){ti.current.focus(Yr)},blur:function(){ti.current.blur()}}});var Kt=Ce(0),Oi=(0,it.Z)(Kt,2),Nr=Oi[0],_i=Oi[1],Jr=function(Yr){var Or=Yr.which,No=ti.current instanceof HTMLTextAreaElement;!No&&Ri&&(Or===Oe.Z.UP||Or===Oe.Z.DOWN)&&Yr.preventDefault(),Er&&Er(Yr),Or===Oe.Z.ENTER&&Yi==="tags"&&!tn.current&&!Ri&&(Pn==null||Pn(Yr.target.value)),!(No&&!Ri&&~[Oe.Z.UP,Oe.Z.DOWN,Oe.Z.LEFT,Oe.Z.RIGHT].indexOf(Or))&&We(Or)&&Mi(!0)},Zr=function(){_i(!0)},Xr=(0,Me.useRef)(null),Rr=function(Yr){$i(Yr,!0,tn.current)!==!1&&Mi(!0)},Gr=function(){tn.current=!0},oo=function(Yr){tn.current=!1,Yi!=="combobox"&&Rr(Yr.target.value)},An=function(Yr){var Or=Yr.target.value;if(Bn&&Xr.current&&/[\r\n]/.test(Xr.current)){var No=Xr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Or=Or.replace(No,Xr.current)}Xr.current=null,Rr(Or)},ho=function(Yr){var Or=Yr.clipboardData,No=Or==null?void 0:Or.getData("text");Xr.current=No||""},Fn=function(Yr){var Or=Yr.target;if(Or!==ti.current){var No=document.body.style.msTouchAction!==void 0;No?setTimeout(function(){ti.current.focus()}):ti.current.focus()}},Kn=function(Yr){var Or=Nr();Yr.target!==ti.current&&!Or&&!(Yi==="combobox"&&Ot)&&Yr.preventDefault(),(Yi!=="combobox"&&(!tr||!Or)||!Ri)&&(Ri&&Ji!==!1&&$i("",!0,!1),Mi())},zr={inputRef:ti,onInputKeyDown:Jr,onInputMouseDown:Zr,onInputChange:An,onInputPaste:ho,onInputCompositionStart:Gr,onInputCompositionEnd:oo,onInputBlur:Hr},Tr=Yi==="multiple"||Yi==="tags"?Me.createElement(wn,(0,me.Z)({},Rt,zr)):Me.createElement(vt,(0,me.Z)({},Rt,zr));return Me.createElement("div",{ref:wo,className:"".concat(si,"-selector"),onClick:Fn,onMouseDown:Kn},qn&&Me.createElement("div",{className:"".concat(si,"-prefix")},qn),Tr)},En=Me.forwardRef(zt),kn=En,Ze=Pe(65030),Fe=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],xe=function(Rt){var ai=Rt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:ai,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:ai,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:ai,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:ai,adjustY:1},htmlRegion:"scroll"}}},Te=function(Rt,ai){var ti=Rt.prefixCls,tn=Rt.disabled,si=Rt.visible,Ri=Rt.children,Yi=Rt.popupElement,tr=Rt.animation,Bn=Rt.transitionName,Ot=Rt.dropdownStyle,qn=Rt.dropdownClassName,Ji=Rt.direction,$i=Ji===void 0?"ltr":Ji,Pn=Rt.placement,Mi=Rt.builtinPlacements,Er=Rt.dropdownMatchSelectWidth,Hr=Rt.dropdownRender,wo=Rt.dropdownAlign,Kt=Rt.getPopupContainer,Oi=Rt.empty,Nr=Rt.getTriggerDOMNode,_i=Rt.onPopupVisibleChange,Jr=Rt.onPopupMouseEnter,Zr=(0,ze.Z)(Rt,Fe),Xr="".concat(ti,"-dropdown"),Rr=Yi;Hr&&(Rr=Hr(Yi));var Gr=Me.useMemo(function(){return Mi||xe(Er)},[Mi,Er]),oo=tr?"".concat(Xr,"-").concat(tr):Bn,An=typeof Er=="number",ho=Me.useMemo(function(){return An?null:Er===!1?"minWidth":"width"},[Er,An]),Fn=Ot;An&&(Fn=(0,nt.Z)((0,nt.Z)({},Fn),{},{width:Er}));var Kn=Me.useRef(null);return Me.useImperativeHandle(ai,function(){return{getPopupElement:function(){var Tr;return(Tr=Kn.current)===null||Tr===void 0?void 0:Tr.popupElement}}}),Me.createElement(Ze.Z,(0,me.Z)({},Zr,{showAction:_i?["click"]:[],hideAction:_i?["click"]:[],popupPlacement:Pn||($i==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Gr,prefixCls:Xr,popupTransitionName:oo,popup:Me.createElement("div",{onMouseEnter:Jr},Rr),ref:Kn,stretch:ho,popupAlign:wo,popupVisible:si,getPopupContainer:Kt,popupClassName:_e()(qn,(0,ut.Z)({},"".concat(Xr,"-empty"),Oi)),popupStyle:Fn,getTriggerDOMNode:Nr,onPopupVisibleChange:_i}),Ri)},Ye=Me.forwardRef(Te),De=Ye,tt=Pe(57879);function Ht(lt,Rt){var ai=lt.key,ti;return"value"in lt&&(ti=lt.value),ai!=null?ai:ti!==void 0?ti:"rc-index-key-".concat(Rt)}function $t(lt){return typeof lt!="undefined"&&!Number.isNaN(lt)}function Sn(lt,Rt){var ai=lt||{},ti=ai.label,tn=ai.value,si=ai.options,Ri=ai.groupLabel,Yi=ti||(Rt?"children":"label");return{label:Yi,value:tn||"value",options:si||"options",groupLabel:Ri||Yi}}function en(lt){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ai=Rt.fieldNames,ti=Rt.childrenAsData,tn=[],si=Sn(ai,!1),Ri=si.label,Yi=si.value,tr=si.options,Bn=si.groupLabel;function Ot(qn,Ji){Array.isArray(qn)&&qn.forEach(function($i){if(Ji||!(tr in $i)){var Pn=$i[Yi];tn.push({key:Ht($i,tn.length),groupOption:Ji,data:$i,label:$i[Ri],value:Pn})}else{var Mi=$i[Bn];Mi===void 0&&ti&&(Mi=$i.label),tn.push({key:Ht($i,tn.length),group:!0,data:$i,label:Mi}),Ot($i[tr],!0)}})}return Ot(lt,!1),tn}function kt(lt){var Rt=(0,nt.Z)({},lt);return"props"in Rt||Object.defineProperty(Rt,"props",{get:function(){return(0,ot.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Rt}}),Rt}var nn=function(Rt,ai,ti){if(!ai||!ai.length)return null;var tn=!1,si=function Yi(tr,Bn){var Ot=(0,tt.Z)(Bn),qn=Ot[0],Ji=Ot.slice(1);if(!qn)return[tr];var $i=tr.split(qn);return tn=tn||$i.length>1,$i.reduce(function(Pn,Mi){return[].concat((0,Ve.Z)(Pn),(0,Ve.Z)(Yi(Mi,Ji)))},[]).filter(Boolean)},Ri=si(Rt,ai);return tn?typeof ti!="undefined"?Ri.slice(0,ti):Ri:null},hn=Me.createContext(null),zn=hn;function fi(lt){var Rt=lt.visible,ai=lt.values;if(!Rt)return null;var ti=50;return Me.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(ai.slice(0,ti).map(function(tn){var si=tn.label,Ri=tn.value;return["number","string"].includes((0,Ue.Z)(si))?si:Ri}).join(", ")),ai.length>ti?", ...":null)}var _n=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Pi=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Ci=function(Rt){return Rt==="tags"||Rt==="multiple"},Yn=Me.forwardRef(function(lt,Rt){var ai,ti=lt.id,tn=lt.prefixCls,si=lt.className,Ri=lt.showSearch,Yi=lt.tagRender,tr=lt.direction,Bn=lt.omitDomProps,Ot=lt.displayValues,qn=lt.onDisplayValuesChange,Ji=lt.emptyOptions,$i=lt.notFoundContent,Pn=$i===void 0?"Not Found":$i,Mi=lt.onClear,Er=lt.mode,Hr=lt.disabled,wo=lt.loading,Kt=lt.getInputElement,Oi=lt.getRawInputElement,Nr=lt.open,_i=lt.defaultOpen,Jr=lt.onDropdownVisibleChange,Zr=lt.activeValue,Xr=lt.onActiveValueChange,Rr=lt.activeDescendantId,Gr=lt.searchValue,oo=lt.autoClearSearchValue,An=lt.onSearch,ho=lt.onSearchSplit,Fn=lt.tokenSeparators,Kn=lt.allowClear,zr=lt.prefix,Tr=lt.suffixIcon,Co=lt.clearIcon,Yr=lt.OptionList,Or=lt.animation,No=lt.transitionName,Qt=lt.dropdownStyle,mn=lt.dropdownClassName,Wt=lt.dropdownMatchSelectWidth,je=lt.dropdownRender,Qn=lt.dropdownAlign,Ai=lt.placement,qi=lt.builtinPlacements,Je=lt.getPopupContainer,Yt=lt.showAction,Lt=Yt===void 0?[]:Yt,on=lt.onFocus,Gn=lt.onBlur,vn=lt.onKeyUp,dn=lt.onKeyDown,Mn=lt.onMouseDown,ke=(0,ze.Z)(lt,_n),ct=Ci(Er),Xe=(Ri!==void 0?Ri:ct)||Er==="combobox",Pt=(0,nt.Z)({},ke);Pi.forEach(function(ir){delete Pt[ir]}),Bn==null||Bn.forEach(function(ir){delete Pt[ir]});var Ct=Me.useState(!1),Xt=(0,it.Z)(Ct,2),qt=Xt[0],sn=Xt[1];Me.useEffect(function(){sn((0,Ee.Z)())},[]);var Tn=Me.useRef(null),jn=Me.useRef(null),gn=Me.useRef(null),$n=Me.useRef(null),gi=Me.useRef(null),pt=Me.useRef(!1),Vn=ye(),Wn=(0,it.Z)(Vn,3),Rn=Wn[0],Ln=Wn[1],di=Wn[2];Me.useImperativeHandle(Rt,function(){var ir,kr;return{focus:(ir=$n.current)===null||ir===void 0?void 0:ir.focus,blur:(kr=$n.current)===null||kr===void 0?void 0:kr.blur,scrollTo:function(ui){var _o;return(_o=gi.current)===null||_o===void 0?void 0:_o.scrollTo(ui)},nativeElement:Tn.current||jn.current}});var vi=Me.useMemo(function(){var ir;if(Er!=="combobox")return Gr;var kr=(ir=Ot[0])===null||ir===void 0?void 0:ir.value;return typeof kr=="string"||typeof kr=="number"?String(kr):""},[Gr,Er,Ot]),Dn=Er==="combobox"&&typeof Kt=="function"&&Kt()||null,yi=typeof Oi=="function"&&Oi(),xi=(0,ne.x1)(jn,yi==null||(ai=yi.props)===null||ai===void 0?void 0:ai.ref),wi=Me.useState(!1),gr=(0,it.Z)(wi,2),Ar=gr[0],ur=gr[1];(0,ht.Z)(function(){ur(!0)},[]);var ri=(0,yt.Z)(!1,{defaultValue:_i,value:Nr}),mr=(0,it.Z)(ri,2),rr=mr[0],fr=mr[1],nr=Ar?rr:!1,wr=!Pn&&Ji;(Hr||wr&&nr&&Er==="combobox")&&(nr=!1);var bn=wr?!1:nr,Fi=Me.useCallback(function(ir){var kr=ir!==void 0?ir:!nr;Hr||(fr(kr),nr!==kr&&(Jr==null||Jr(kr)))},[Hr,nr,fr,Jr]),Ii=Me.useMemo(function(){return(Fn||[]).some(function(ir){return[`
|
|
`,`\r
|
|
`].includes(ir)})},[Fn]),Ki=Me.useContext(zn)||{},Wi=Ki.maxCount,Hi=Ki.rawValues,hi=function(kr,yr,ui){if(!(ct&&$t(Wi)&&(Hi==null?void 0:Hi.size)>=Wi)){var _o=!0,St=kr;Xr==null||Xr(null);var Cn=nn(kr,Fn,$t(Wi)?Wi-Hi.size:void 0),ja=ui?null:Cn;return Er!=="combobox"&&ja&&(St="",ho==null||ho(ja),Fi(!1),_o=!1),An&&vi!==St&&An(St,{source:yr?"typing":"effect"}),_o}},Li=function(kr){!kr||!kr.trim()||An(kr,{source:"submit"})};Me.useEffect(function(){!nr&&!ct&&Er!=="combobox"&&hi("",!1,!1)},[nr]),Me.useEffect(function(){rr&&Hr&&fr(!1),Hr&&!pt.current&&Ln(!1)},[Hr]);var pr=Ce(),Jn=(0,it.Z)(pr,2),ni=Jn[0],Ui=Jn[1],or=Me.useRef(!1),br=function(kr){var yr=ni(),ui=kr.key,_o=ui==="Enter";if(_o&&(Er!=="combobox"&&kr.preventDefault(),nr||Fi(!0)),Ui(!!vi),ui==="Backspace"&&!yr&&ct&&!vi&&Ot.length){for(var St=(0,Ve.Z)(Ot),Cn=null,ja=St.length-1;ja>=0;ja-=1){var za=St[ja];if(!za.disabled){St.splice(ja,1),Cn=za;break}}Cn&&qn(St,{type:"remove",values:[Cn]})}for(var da=arguments.length,ca=new Array(da>1?da-1:0),Ga=1;Ga<da;Ga++)ca[Ga-1]=arguments[Ga];if(nr&&(!_o||!or.current)){var Na;_o&&(or.current=!0),(Na=gi.current)===null||Na===void 0||Na.onKeyDown.apply(Na,[kr].concat(ca))}dn==null||dn.apply(void 0,[kr].concat(ca))},co=function(kr){for(var yr=arguments.length,ui=new Array(yr>1?yr-1:0),_o=1;_o<yr;_o++)ui[_o-1]=arguments[_o];if(nr){var St;(St=gi.current)===null||St===void 0||St.onKeyUp.apply(St,[kr].concat(ui))}kr.key==="Enter"&&(or.current=!1),vn==null||vn.apply(void 0,[kr].concat(ui))},mo=function(kr){var yr=Ot.filter(function(ui){return ui!==kr});qn(yr,{type:"remove",values:[kr]})},To=function(){or.current=!1},qr=Me.useRef(!1),ta=function(){Ln(!0),Hr||(on&&!qr.current&&on.apply(void 0,arguments),Lt.includes("focus")&&Fi(!0)),qr.current=!0},Fo=function(){pt.current=!0,Ln(!1,function(){qr.current=!1,pt.current=!1,Fi(!1)}),!Hr&&(vi&&(Er==="tags"?An(vi,{source:"submit"}):Er==="multiple"&&An("",{source:"blur"})),Gn&&Gn.apply(void 0,arguments))},ar=[];Me.useEffect(function(){return function(){ar.forEach(function(ir){return clearTimeout(ir)}),ar.splice(0,ar.length)}},[]);var Ir=function(kr){var yr,ui=kr.target,_o=(yr=gn.current)===null||yr===void 0?void 0:yr.getPopupElement();if(_o&&_o.contains(ui)){var St=setTimeout(function(){var da=ar.indexOf(St);if(da!==-1&&ar.splice(da,1),di(),!qt&&!_o.contains(document.activeElement)){var ca;(ca=$n.current)===null||ca===void 0||ca.focus()}});ar.push(St)}for(var Cn=arguments.length,ja=new Array(Cn>1?Cn-1:0),za=1;za<Cn;za++)ja[za-1]=arguments[za];Mn==null||Mn.apply(void 0,[kr].concat(ja))},bo=Me.useState({}),Zo=(0,it.Z)(bo,2),Ko=Zo[1];function Io(){Ko({})}var Eo;yi&&(Eo=function(kr){Fi(kr)}),Re(function(){var ir;return[Tn.current,(ir=gn.current)===null||ir===void 0?void 0:ir.getPopupElement()]},bn,Fi,!!yi);var ia=Me.useMemo(function(){return(0,nt.Z)((0,nt.Z)({},lt),{},{notFoundContent:Pn,open:nr,triggerOpen:bn,id:ti,showSearch:Xe,multiple:ct,toggleOpen:Fi})},[lt,Pn,bn,nr,ti,Xe,ct,Fi]),ma=!!Tr||wo,Oo;ma&&(Oo=Me.createElement(ue,{className:_e()("".concat(tn,"-arrow"),(0,ut.Z)({},"".concat(tn,"-arrow-loading"),wo)),customizeIcon:Tr,customizeIconProps:{loading:wo,searchValue:vi,open:nr,focused:Rn,showSearch:Xe}}));var Da=function(){var kr;Mi==null||Mi(),(kr=$n.current)===null||kr===void 0||kr.focus(),qn([],{type:"clear",values:Ot}),hi("",!1,!1)},Kr=se(tn,Da,Ot,Kn,Co,Hr,vi,Er),so=Kr.allowClear,uo=Kr.clearIcon,Do=Me.createElement(Yr,{ref:gi}),ko=_e()(tn,si,(0,ut.Z)((0,ut.Z)((0,ut.Z)((0,ut.Z)((0,ut.Z)((0,ut.Z)((0,ut.Z)((0,ut.Z)((0,ut.Z)((0,ut.Z)({},"".concat(tn,"-focused"),Rn),"".concat(tn,"-multiple"),ct),"".concat(tn,"-single"),!ct),"".concat(tn,"-allow-clear"),Kn),"".concat(tn,"-show-arrow"),ma),"".concat(tn,"-disabled"),Hr),"".concat(tn,"-loading"),wo),"".concat(tn,"-open"),nr),"".concat(tn,"-customize-input"),Dn),"".concat(tn,"-show-search"),Xe)),Ea=Me.createElement(De,{ref:gn,disabled:Hr,prefixCls:tn,visible:bn,popupElement:Do,animation:Or,transitionName:No,dropdownStyle:Qt,dropdownClassName:mn,direction:tr,dropdownMatchSelectWidth:Wt,dropdownRender:je,dropdownAlign:Qn,placement:Ai,builtinPlacements:qi,getPopupContainer:Je,empty:Ji,getTriggerDOMNode:function(kr){return jn.current||kr},onPopupVisibleChange:Eo,onPopupMouseEnter:Io},yi?Me.cloneElement(yi,{ref:xi}):Me.createElement(kn,(0,me.Z)({},lt,{domRef:jn,prefixCls:tn,inputElement:Dn,ref:$n,id:ti,prefix:zr,showSearch:Xe,autoClearSearchValue:oo,mode:Er,activeDescendantId:Rr,tagRender:Yi,values:Ot,open:nr,onToggleOpen:Fi,activeValue:Zr,searchValue:vi,onSearch:hi,onSearchSubmit:Li,onRemove:mo,tokenWithEnter:Ii,onInputBlur:To}))),xr;return yi?xr=Ea:xr=Me.createElement("div",(0,me.Z)({className:ko},Pt,{ref:Tn,onMouseDown:Ir,onKeyDown:br,onKeyUp:co,onFocus:ta,onBlur:Fo}),Me.createElement(fi,{visible:Rn&&!nr,values:Ot}),Ea,Oo,so&&uo),Me.createElement(de.Provider,{value:ia},xr)}),Ei=Yn,pi=function(){return null};pi.isSelectOptGroup=!0;var ji=pi,Qi=function(){return null};Qi.isSelectOption=!0;var lr=Qi,Lr=Pe(80547),Di=Pe(2738),cr=Pe(6790);function to(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var ki=["disabled","title","children","style","className"];function no(lt){return typeof lt=="string"||typeof lt=="number"}var fo=function(Rt,ai){var ti=pe(),tn=ti.prefixCls,si=ti.id,Ri=ti.open,Yi=ti.multiple,tr=ti.mode,Bn=ti.searchValue,Ot=ti.toggleOpen,qn=ti.notFoundContent,Ji=ti.onPopupScroll,$i=Me.useContext(zn),Pn=$i.maxCount,Mi=$i.flattenOptions,Er=$i.onActiveValue,Hr=$i.defaultActiveFirstOption,wo=$i.onSelect,Kt=$i.menuItemSelectedIcon,Oi=$i.rawValues,Nr=$i.fieldNames,_i=$i.virtual,Jr=$i.direction,Zr=$i.listHeight,Xr=$i.listItemHeight,Rr=$i.optionRender,Gr="".concat(tn,"-item"),oo=(0,Lr.Z)(function(){return Mi},[Ri,Mi],function(Yt,Lt){return Lt[0]&&Yt[1]!==Lt[1]}),An=Me.useRef(null),ho=Me.useMemo(function(){return Yi&&$t(Pn)&&(Oi==null?void 0:Oi.size)>=Pn},[Yi,Pn,Oi==null?void 0:Oi.size]),Fn=function(Lt){Lt.preventDefault()},Kn=function(Lt){var on;(on=An.current)===null||on===void 0||on.scrollTo(typeof Lt=="number"?{index:Lt}:Lt)},zr=Me.useCallback(function(Yt){return tr==="combobox"?!1:Oi.has(Yt)},[tr,(0,Ve.Z)(Oi).toString(),Oi.size]),Tr=function(Lt){for(var on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Gn=oo.length,vn=0;vn<Gn;vn+=1){var dn=(Lt+vn*on+Gn)%Gn,Mn=oo[dn]||{},ke=Mn.group,ct=Mn.data;if(!ke&&!(ct!=null&&ct.disabled)&&(zr(ct.value)||!ho))return dn}return-1},Co=Me.useState(function(){return Tr(0)}),Yr=(0,it.Z)(Co,2),Or=Yr[0],No=Yr[1],Qt=function(Lt){var on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;No(Lt);var Gn={source:on?"keyboard":"mouse"},vn=oo[Lt];if(!vn){Er(null,-1,Gn);return}Er(vn.value,Lt,Gn)};(0,Me.useEffect)(function(){Qt(Hr!==!1?Tr(0):-1)},[oo.length,Bn]);var mn=Me.useCallback(function(Yt){return tr==="combobox"?String(Yt).toLowerCase()===Bn.toLowerCase():Oi.has(Yt)},[tr,Bn,(0,Ve.Z)(Oi).toString(),Oi.size]);(0,Me.useEffect)(function(){var Yt=setTimeout(function(){if(!Yi&&Ri&&Oi.size===1){var on=Array.from(Oi)[0],Gn=oo.findIndex(function(vn){var dn=vn.data;return Bn?String(dn.value).startsWith(Bn):dn.value===on});Gn!==-1&&(Qt(Gn),Kn(Gn))}});if(Ri){var Lt;(Lt=An.current)===null||Lt===void 0||Lt.scrollTo(void 0)}return function(){return clearTimeout(Yt)}},[Ri,Bn]);var Wt=function(Lt){Lt!==void 0&&wo(Lt,{selected:!Oi.has(Lt)}),Yi||Ot(!1)};if(Me.useImperativeHandle(ai,function(){return{onKeyDown:function(Lt){var on=Lt.which,Gn=Lt.ctrlKey;switch(on){case Oe.Z.N:case Oe.Z.P:case Oe.Z.UP:case Oe.Z.DOWN:{var vn=0;if(on===Oe.Z.UP?vn=-1:on===Oe.Z.DOWN?vn=1:to()&&Gn&&(on===Oe.Z.N?vn=1:on===Oe.Z.P&&(vn=-1)),vn!==0){var dn=Tr(Or+vn,vn);Kn(dn),Qt(dn,!0)}break}case Oe.Z.TAB:case Oe.Z.ENTER:{var Mn,ke=oo[Or];ke&&!(ke!=null&&(Mn=ke.data)!==null&&Mn!==void 0&&Mn.disabled)&&!ho?Wt(ke.value):Wt(void 0),Ri&&Lt.preventDefault();break}case Oe.Z.ESC:Ot(!1),Ri&&Lt.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Lt){Kn(Lt)}}}),oo.length===0)return Me.createElement("div",{role:"listbox",id:"".concat(si,"_list"),className:"".concat(Gr,"-empty"),onMouseDown:Fn},qn);var je=Object.keys(Nr).map(function(Yt){return Nr[Yt]}),Qn=function(Lt){return Lt.label};function Ai(Yt,Lt){var on=Yt.group;return{role:on?"presentation":"option",id:"".concat(si,"_list_").concat(Lt)}}var qi=function(Lt){var on=oo[Lt];if(!on)return null;var Gn=on.data||{},vn=Gn.value,dn=on.group,Mn=(0,Be.Z)(Gn,!0),ke=Qn(on);return on?Me.createElement("div",(0,me.Z)({"aria-label":typeof ke=="string"&&!dn?ke:null},Mn,{key:Lt},Ai(on,Lt),{"aria-selected":mn(vn)}),vn):null},Je={role:"listbox",id:"".concat(si,"_list")};return Me.createElement(Me.Fragment,null,_i&&Me.createElement("div",(0,me.Z)({},Je,{style:{height:0,width:0,overflow:"hidden"}}),qi(Or-1),qi(Or),qi(Or+1)),Me.createElement(cr.Z,{itemKey:"key",ref:An,data:oo,height:Zr,itemHeight:Xr,fullHeight:!1,onMouseDown:Fn,onScroll:Ji,virtual:_i,direction:Jr,innerProps:_i?null:Je},function(Yt,Lt){var on=Yt.group,Gn=Yt.groupOption,vn=Yt.data,dn=Yt.label,Mn=Yt.value,ke=vn.key;if(on){var ct,Xe=(ct=vn.title)!==null&&ct!==void 0?ct:no(dn)?dn.toString():void 0;return Me.createElement("div",{className:_e()(Gr,"".concat(Gr,"-group"),vn.className),title:Xe},dn!==void 0?dn:ke)}var Pt=vn.disabled,Ct=vn.title,Xt=vn.children,qt=vn.style,sn=vn.className,Tn=(0,ze.Z)(vn,ki),jn=(0,Di.Z)(Tn,je),gn=zr(Mn),$n=Pt||!gn&&ho,gi="".concat(Gr,"-option"),pt=_e()(Gr,gi,sn,(0,ut.Z)((0,ut.Z)((0,ut.Z)((0,ut.Z)({},"".concat(gi,"-grouped"),Gn),"".concat(gi,"-active"),Or===Lt&&!$n),"".concat(gi,"-disabled"),$n),"".concat(gi,"-selected"),gn)),Vn=Qn(Yt),Wn=!Kt||typeof Kt=="function"||gn,Rn=typeof Vn=="number"?Vn:Vn||Mn,Ln=no(Rn)?Rn.toString():void 0;return Ct!==void 0&&(Ln=Ct),Me.createElement("div",(0,me.Z)({},(0,Be.Z)(jn),_i?{}:Ai(Yt,Lt),{"aria-selected":mn(Mn),className:pt,title:Ln,onMouseMove:function(){Or===Lt||$n||Qt(Lt)},onClick:function(){$n||Wt(Mn)},style:qt}),Me.createElement("div",{className:"".concat(gi,"-content")},typeof Rr=="function"?Rr(Yt,{index:Lt}):Rn),Me.isValidElement(Kt)||gn,Wn&&Me.createElement(ue,{className:"".concat(Gr,"-option-state"),customizeIcon:Kt,customizeIconProps:{value:Mn,disabled:$n,isSelected:gn}},gn?"\u2713":null))}))},po=Me.forwardRef(fo),io=po,hr=function(lt,Rt){var ai=Me.useRef({values:new Map,options:new Map}),ti=Me.useMemo(function(){var si=ai.current,Ri=si.values,Yi=si.options,tr=lt.map(function(qn){if(qn.label===void 0){var Ji;return(0,nt.Z)((0,nt.Z)({},qn),{},{label:(Ji=Ri.get(qn.value))===null||Ji===void 0?void 0:Ji.label})}return qn}),Bn=new Map,Ot=new Map;return tr.forEach(function(qn){Bn.set(qn.value,qn),Ot.set(qn.value,Rt.get(qn.value)||Yi.get(qn.value))}),ai.current.values=Bn,ai.current.options=Ot,tr},[lt,Rt]),tn=Me.useCallback(function(si){return Rt.get(si)||ai.current.options.get(si)},[Rt]);return[ti,tn]};function ao(lt,Rt){return Tt(lt).join("").toUpperCase().includes(Rt)}var be=function(lt,Rt,ai,ti,tn){return Me.useMemo(function(){if(!ai||ti===!1)return lt;var si=Rt.options,Ri=Rt.label,Yi=Rt.value,tr=[],Bn=typeof ti=="function",Ot=ai.toUpperCase(),qn=Bn?ti:function($i,Pn){return tn?ao(Pn[tn],Ot):Pn[si]?ao(Pn[Ri!=="children"?Ri:"label"],Ot):ao(Pn[Yi],Ot)},Ji=Bn?function($i){return kt($i)}:function($i){return $i};return lt.forEach(function($i){if($i[si]){var Pn=qn(ai,Ji($i));if(Pn)tr.push($i);else{var Mi=$i[si].filter(function(Er){return qn(ai,Ji(Er))});Mi.length&&tr.push((0,nt.Z)((0,nt.Z)({},$i),{},(0,ut.Z)({},si,Mi)))}return}qn(ai,Ji($i))&&tr.push($i)}),tr},[lt,ti,tn,ai,Rt])},Un=Pe(6551),Xn=Pe(11592),ci=["children","value"],mi=["children"];function ei(lt){var Rt=lt,ai=Rt.key,ti=Rt.props,tn=ti.children,si=ti.value,Ri=(0,ze.Z)(ti,ci);return(0,nt.Z)({key:ai,value:si!==void 0?si:ai,children:tn},Ri)}function Gi(lt){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Xn.Z)(lt).map(function(ai,ti){if(!Me.isValidElement(ai)||!ai.type)return null;var tn=ai,si=tn.type.isSelectOptGroup,Ri=tn.key,Yi=tn.props,tr=Yi.children,Bn=(0,ze.Z)(Yi,mi);return Rt||!si?ei(ai):(0,nt.Z)((0,nt.Z)({key:"__RC_SELECT_GRP__".concat(Ri===null?ti:Ri,"__"),label:Ri},Bn),{},{options:Gi(tr)})}).filter(function(ai){return ai})}var vr=function(Rt,ai,ti,tn,si){return Me.useMemo(function(){var Ri=Rt,Yi=!Rt;Yi&&(Ri=Gi(ai));var tr=new Map,Bn=new Map,Ot=function($i,Pn,Mi){Mi&&typeof Mi=="string"&&$i.set(Pn[Mi],Pn)},qn=function Ji($i){for(var Pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Mi=0;Mi<$i.length;Mi+=1){var Er=$i[Mi];!Er[ti.options]||Pn?(tr.set(Er[ti.value],Er),Ot(Bn,Er,ti.label),Ot(Bn,Er,tn),Ot(Bn,Er,si)):Ji(Er[ti.options],!0)}};return qn(Ri),{options:Ri,valueOptions:tr,labelOptions:Bn}},[Rt,ai,ti,tn,si])},an=vr;function ln(lt){var Rt=Me.useRef();Rt.current=lt;var ai=Me.useCallback(function(){return Rt.current.apply(Rt,arguments)},[]);return ai}function Zt(lt){var Rt=lt.mode,ai=lt.options,ti=lt.children,tn=lt.backfill,si=lt.allowClear,Ri=lt.placeholder,Yi=lt.getInputElement,tr=lt.showSearch,Bn=lt.onSearch,Ot=lt.defaultOpen,qn=lt.autoFocus,Ji=lt.labelInValue,$i=lt.value,Pn=lt.inputValue,Mi=lt.optionLabelProp,Er=isMultiple(Rt),Hr=tr!==void 0?tr:Er||Rt==="combobox",wo=ai||convertChildrenToData(ti);if(warning(Rt!=="tags"||wo.every(function(_i){return!_i.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Rt==="tags"||Rt==="combobox"){var Kt=wo.some(function(_i){return _i.options?_i.options.some(function(Jr){return typeof("value"in Jr?Jr.value:Jr.key)=="number"}):typeof("value"in _i?_i.value:_i.key)=="number"});warning(!Kt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Rt!=="combobox"||!Mi,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Rt==="combobox"||!tn,"`backfill` only works with `combobox` mode."),warning(Rt==="combobox"||!Yi,"`getInputElement` only work with `combobox` mode."),noteOnce(Rt!=="combobox"||!Yi||!si||!Ri,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Bn&&!Hr&&Rt!=="combobox"&&Rt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Ot||qn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),$i!=null){var Oi=toArray($i);warning(!Ji||Oi.every(function(_i){return _typeof(_i)==="object"&&("key"in _i||"value"in _i)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Er||Array.isArray($i),"`value` should be array when `mode` is `multiple` or `tags`")}if(ti){var Nr=null;toNodeArray(ti).some(function(_i){if(!React.isValidElement(_i)||!_i.type)return!1;var Jr=_i,Zr=Jr.type;if(Zr.isSelectOption)return!1;if(Zr.isSelectOptGroup){var Xr=toNodeArray(_i.props.children).every(function(Rr){return!React.isValidElement(Rr)||!_i.type||Rr.type.isSelectOption?!0:(Nr=Rr.type,!1)});return!Xr}return Nr=Zr,!0}),Nr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Nr.displayName||Nr.name||Nr,"`.")),warning(Pn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function pn(lt,Rt){if(lt){var ai=function ti(tn){for(var si=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ri=0;Ri<tn.length;Ri++){var Yi=tn[Ri];if(Yi[Rt==null?void 0:Rt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!si&&Array.isArray(Yi[Rt==null?void 0:Rt.options])&&ti(Yi[Rt==null?void 0:Rt.options],!0))break}};ai(lt)}}var zi=null,Ti=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],dr=["inputValue"];function un(lt){return!lt||(0,Ue.Z)(lt)!=="object"}var In=Me.forwardRef(function(lt,Rt){var ai=lt.id,ti=lt.mode,tn=lt.prefixCls,si=tn===void 0?"rc-select":tn,Ri=lt.backfill,Yi=lt.fieldNames,tr=lt.inputValue,Bn=lt.searchValue,Ot=lt.onSearch,qn=lt.autoClearSearchValue,Ji=qn===void 0?!0:qn,$i=lt.onSelect,Pn=lt.onDeselect,Mi=lt.dropdownMatchSelectWidth,Er=Mi===void 0?!0:Mi,Hr=lt.filterOption,wo=lt.filterSort,Kt=lt.optionFilterProp,Oi=lt.optionLabelProp,Nr=lt.options,_i=lt.optionRender,Jr=lt.children,Zr=lt.defaultActiveFirstOption,Xr=lt.menuItemSelectedIcon,Rr=lt.virtual,Gr=lt.direction,oo=lt.listHeight,An=oo===void 0?200:oo,ho=lt.listItemHeight,Fn=ho===void 0?20:ho,Kn=lt.labelRender,zr=lt.value,Tr=lt.defaultValue,Co=lt.labelInValue,Yr=lt.onChange,Or=lt.maxCount,No=(0,ze.Z)(lt,Ti),Qt=(0,Un.ZP)(ai),mn=Ci(ti),Wt=!!(!Nr&&Jr),je=Me.useMemo(function(){return Hr===void 0&&ti==="combobox"?!1:Hr},[Hr,ti]),Qn=Me.useMemo(function(){return Sn(Yi,Wt)},[JSON.stringify(Yi),Wt]),Ai=(0,yt.Z)("",{value:Bn!==void 0?Bn:tr,postState:function(Ii){return Ii||""}}),qi=(0,it.Z)(Ai,2),Je=qi[0],Yt=qi[1],Lt=an(Nr,Jr,Qn,Kt,Oi),on=Lt.valueOptions,Gn=Lt.labelOptions,vn=Lt.options,dn=Me.useCallback(function(Fi){var Ii=Tt(Fi);return Ii.map(function(Ki){var Wi,Hi,hi,Li,pr;if(un(Ki))Wi=Ki;else{var Jn;hi=Ki.key,Hi=Ki.label,Wi=(Jn=Ki.value)!==null&&Jn!==void 0?Jn:hi}var ni=on.get(Wi);if(ni){var Ui;if(Hi===void 0&&(Hi=ni==null?void 0:ni[Oi||Qn.label]),hi===void 0&&(hi=(Ui=ni==null?void 0:ni.key)!==null&&Ui!==void 0?Ui:Wi),Li=ni==null?void 0:ni.disabled,pr=ni==null?void 0:ni.title,0)var or}return{label:Hi,value:Wi,key:hi,disabled:Li,title:pr}})},[Qn,Oi,on]),Mn=(0,yt.Z)(Tr,{value:zr}),ke=(0,it.Z)(Mn,2),ct=ke[0],Xe=ke[1],Pt=Me.useMemo(function(){var Fi,Ii=mn&&ct===null?[]:ct,Ki=dn(Ii);return ti==="combobox"&&He((Fi=Ki[0])===null||Fi===void 0?void 0:Fi.value)?[]:Ki},[ct,dn,ti,mn]),Ct=hr(Pt,on),Xt=(0,it.Z)(Ct,2),qt=Xt[0],sn=Xt[1],Tn=Me.useMemo(function(){if(!ti&&qt.length===1){var Fi=qt[0];if(Fi.value===null&&(Fi.label===null||Fi.label===void 0))return[]}return qt.map(function(Ii){var Ki;return(0,nt.Z)((0,nt.Z)({},Ii),{},{label:(Ki=typeof Kn=="function"?Kn(Ii):Ii.label)!==null&&Ki!==void 0?Ki:Ii.value})})},[ti,qt,Kn]),jn=Me.useMemo(function(){return new Set(qt.map(function(Fi){return Fi.value}))},[qt]);Me.useEffect(function(){if(ti==="combobox"){var Fi,Ii=(Fi=qt[0])===null||Fi===void 0?void 0:Fi.value;Yt(st(Ii)?String(Ii):"")}},[qt]);var gn=ln(function(Fi,Ii){var Ki=Ii!=null?Ii:Fi;return(0,ut.Z)((0,ut.Z)({},Qn.value,Fi),Qn.label,Ki)}),$n=Me.useMemo(function(){if(ti!=="tags")return vn;var Fi=(0,Ve.Z)(vn),Ii=function(Wi){return on.has(Wi)};return(0,Ve.Z)(qt).sort(function(Ki,Wi){return Ki.value<Wi.value?-1:1}).forEach(function(Ki){var Wi=Ki.value;Ii(Wi)||Fi.push(gn(Wi,Ki.label))}),Fi},[gn,vn,on,qt,ti]),gi=be($n,Qn,Je,je,Kt),pt=Me.useMemo(function(){return ti!=="tags"||!Je||gi.some(function(Fi){return Fi[Kt||"value"]===Je})||gi.some(function(Fi){return Fi[Qn.value]===Je})?gi:[gn(Je)].concat((0,Ve.Z)(gi))},[gn,Kt,ti,gi,Je,Qn]),Vn=function Fi(Ii){var Ki=(0,Ve.Z)(Ii).sort(function(Wi,Hi){return wo(Wi,Hi,{searchValue:Je})});return Ki.map(function(Wi){return Array.isArray(Wi.options)?(0,nt.Z)((0,nt.Z)({},Wi),{},{options:Wi.options.length>0?Fi(Wi.options):Wi.options}):Wi})},Wn=Me.useMemo(function(){return wo?Vn(pt):pt},[pt,wo,Je]),Rn=Me.useMemo(function(){return en(Wn,{fieldNames:Qn,childrenAsData:Wt})},[Wn,Qn,Wt]),Ln=function(Ii){var Ki=dn(Ii);if(Xe(Ki),Yr&&(Ki.length!==qt.length||Ki.some(function(hi,Li){var pr;return((pr=qt[Li])===null||pr===void 0?void 0:pr.value)!==(hi==null?void 0:hi.value)}))){var Wi=Co?Ki:Ki.map(function(hi){return hi.value}),Hi=Ki.map(function(hi){return kt(sn(hi.value))});Yr(mn?Wi:Wi[0],mn?Hi:Hi[0])}},di=Me.useState(null),vi=(0,it.Z)(di,2),Dn=vi[0],yi=vi[1],xi=Me.useState(0),wi=(0,it.Z)(xi,2),gr=wi[0],Ar=wi[1],ur=Zr!==void 0?Zr:ti!=="combobox",ri=Me.useCallback(function(Fi,Ii){var Ki=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Wi=Ki.source,Hi=Wi===void 0?"keyboard":Wi;Ar(Ii),Ri&&ti==="combobox"&&Fi!==null&&Hi==="keyboard"&&yi(String(Fi))},[Ri,ti]),mr=function(Ii,Ki,Wi){var Hi=function(){var mo,To=sn(Ii);return[Co?{label:To==null?void 0:To[Qn.label],value:Ii,key:(mo=To==null?void 0:To.key)!==null&&mo!==void 0?mo:Ii}:Ii,kt(To)]};if(Ki&&$i){var hi=Hi(),Li=(0,it.Z)(hi,2),pr=Li[0],Jn=Li[1];$i(pr,Jn)}else if(!Ki&&Pn&&Wi!=="clear"){var ni=Hi(),Ui=(0,it.Z)(ni,2),or=Ui[0],br=Ui[1];Pn(or,br)}},rr=ln(function(Fi,Ii){var Ki,Wi=mn?Ii.selected:!0;Wi?Ki=mn?[].concat((0,Ve.Z)(qt),[Fi]):[Fi]:Ki=qt.filter(function(Hi){return Hi.value!==Fi}),Ln(Ki),mr(Fi,Wi),ti==="combobox"?yi(""):(!Ci||Ji)&&(Yt(""),yi(""))}),fr=function(Ii,Ki){Ln(Ii);var Wi=Ki.type,Hi=Ki.values;(Wi==="remove"||Wi==="clear")&&Hi.forEach(function(hi){mr(hi.value,!1,Wi)})},nr=function(Ii,Ki){if(Yt(Ii),yi(null),Ki.source==="submit"){var Wi=(Ii||"").trim();if(Wi){var Hi=Array.from(new Set([].concat((0,Ve.Z)(jn),[Wi])));Ln(Hi),mr(Wi,!0),Yt("")}return}Ki.source!=="blur"&&(ti==="combobox"&&Ln(Ii),Ot==null||Ot(Ii))},wr=function(Ii){var Ki=Ii;ti!=="tags"&&(Ki=Ii.map(function(Hi){var hi=Gn.get(Hi);return hi==null?void 0:hi.value}).filter(function(Hi){return Hi!==void 0}));var Wi=Array.from(new Set([].concat((0,Ve.Z)(jn),(0,Ve.Z)(Ki))));Ln(Wi),Wi.forEach(function(Hi){mr(Hi,!0)})},bn=Me.useMemo(function(){var Fi=Rr!==!1&&Er!==!1;return(0,nt.Z)((0,nt.Z)({},Lt),{},{flattenOptions:Rn,onActiveValue:ri,defaultActiveFirstOption:ur,onSelect:rr,menuItemSelectedIcon:Xr,rawValues:jn,fieldNames:Qn,virtual:Fi,direction:Gr,listHeight:An,listItemHeight:Fn,childrenAsData:Wt,maxCount:Or,optionRender:_i})},[Or,Lt,Rn,ri,ur,rr,Xr,jn,Qn,Rr,Er,Gr,An,Fn,Wt,_i]);return Me.createElement(zn.Provider,{value:bn},Me.createElement(Ei,(0,me.Z)({},No,{id:Qt,prefixCls:si,ref:Rt,omitDomProps:dr,mode:ti,displayValues:Tn,onDisplayValuesChange:fr,direction:Gr,searchValue:Je,onSearch:nr,autoClearSearchValue:Ji,onSearchSplit:wr,dropdownMatchSelectWidth:Er,OptionList:io,emptyOptions:!Rn.length,activeValue:Dn,activeDescendantId:"".concat(Qt,"_list_").concat(gr)})))}),Vi=In;Vi.Option=lr,Vi.OptGroup=ji;var Fr=Vi,ii=Fr},63158:function(cn,Jt,Pe){"use strict";var me=Pe(67711),Ve=Pe(52873),ut=Pe(16886),nt=Pe(33346),it=Pe(59301),ze=Pe(92310),Ue=Pe.n(ze),yt=Pe(18929),ot=Pe(10228),Me=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Et=it.forwardRef(function(_e,ht){var Ee,ne=_e.prefixCls,ee=ne===void 0?"rc-switch":ne,ue=_e.className,se=_e.checked,de=_e.defaultChecked,pe=_e.disabled,ye=_e.loadingIcon,Ce=_e.checkedChildren,Re=_e.unCheckedChildren,Oe=_e.onClick,We=_e.onChange,Be=_e.onKeyDown,Ie=(0,nt.Z)(_e,Me),Qe=(0,yt.Z)(!1,{value:se,defaultValue:de}),rt=(0,ut.Z)(Qe,2),xt=rt[0],gt=rt[1];function bt(Ut,st){var He=xt;return pe||(He=Ut,gt(He),We==null||We(He,st)),He}function At(Ut){Ut.which===ot.Z.LEFT?bt(!1,Ut):Ut.which===ot.Z.RIGHT&&bt(!0,Ut),Be==null||Be(Ut)}function Tt(Ut){var st=bt(!xt,Ut);Oe==null||Oe(st,Ut)}var Nt=Ue()(ee,ue,(Ee={},(0,Ve.Z)(Ee,"".concat(ee,"-checked"),xt),(0,Ve.Z)(Ee,"".concat(ee,"-disabled"),pe),Ee));return it.createElement("button",(0,me.Z)({},Ie,{type:"button",role:"switch","aria-checked":xt,disabled:pe,className:Nt,ref:ht,onKeyDown:At,onClick:Tt}),ye,it.createElement("span",{className:"".concat(ee,"-inner")},it.createElement("span",{className:"".concat(ee,"-inner-checked")},Ce),it.createElement("span",{className:"".concat(ee,"-inner-unchecked")},Re)))});Et.displayName="Switch",Jt.Z=Et},86351:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{R:function(){return Ve},w:function(){return me}});var me={},Ve="rc-table-internal-hook"},97347:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{L:function(){return ee},Z:function(){return ye}});var me=Pe(16886),Ve=Pe(52873),ut=Pe(15142),nt=Pe(26420),it=Pe(98506),ze=Pe(33346),Ue=Pe(11592),yt=Pe(48736),ot=Pe(59301),Me=Pe(86351),Et=Pe(54451);function _e(Ce){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Re=="number"?Re:Re.endsWith("%")?Ce*parseFloat(Re)/100:null}function ht(Ce,Re,Oe){return ot.useMemo(function(){if(Re&&Re>0){var We=0,Be=0;Ce.forEach(function(Tt){var Nt=_e(Re,Tt.width);Nt?We+=Nt:Be+=1});var Ie=Math.max(Re,Oe),Qe=Math.max(Ie-We,Be),rt=Be,xt=Qe/Be,gt=0,bt=Ce.map(function(Tt){var Nt=(0,it.Z)({},Tt),Ut=_e(Re,Nt.width);if(Ut)Nt.width=Ut;else{var st=Math.floor(xt);Nt.width=rt===1?Qe:st,Qe-=st,rt-=1}return gt+=Nt.width,Nt});if(gt<Ie){var At=Ie/gt;Qe=Ie,bt.forEach(function(Tt,Nt){var Ut=Math.floor(Tt.width*At);Tt.width=Nt===bt.length-1?Qe:Ut,Qe-=Ut})}return[bt,Math.max(gt,Ie)]}return[Ce,Re]},[Ce,Re,Oe])}var Ee=["children"],ne=["fixed"];function ee(Ce){return(0,Ue.Z)(Ce).filter(function(Re){return ot.isValidElement(Re)}).map(function(Re){var Oe=Re.key,We=Re.props,Be=We.children,Ie=(0,ze.Z)(We,Ee),Qe=(0,it.Z)({key:Oe},Ie);return Be&&(Qe.children=ee(Be)),Qe})}function ue(Ce){return Ce.filter(function(Re){return Re&&(0,nt.Z)(Re)==="object"&&!Re.hidden}).map(function(Re){var Oe=Re.children;return Oe&&Oe.length>0?(0,it.Z)((0,it.Z)({},Re),{},{children:ue(Oe)}):Re})}function se(Ce){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Ce.filter(function(Oe){return Oe&&(0,nt.Z)(Oe)==="object"}).reduce(function(Oe,We,Be){var Ie=We.fixed,Qe=Ie===!0?"left":Ie,rt="".concat(Re,"-").concat(Be),xt=We.children;return xt&&xt.length>0?[].concat((0,ut.Z)(Oe),(0,ut.Z)(se(xt,rt).map(function(gt){return(0,it.Z)({fixed:Qe},gt)}))):[].concat((0,ut.Z)(Oe),[(0,it.Z)((0,it.Z)({key:rt},We),{},{fixed:Qe})])},[])}function de(Ce){return Ce.map(function(Re){var Oe=Re.fixed,We=(0,ze.Z)(Re,ne),Be=Oe;return Oe==="left"?Be="right":Oe==="right"&&(Be="left"),(0,it.Z)({fixed:Be},We)})}function pe(Ce,Re){var Oe=Ce.prefixCls,We=Ce.columns,Be=Ce.children,Ie=Ce.expandable,Qe=Ce.expandedKeys,rt=Ce.columnTitle,xt=Ce.getRowKey,gt=Ce.onTriggerExpand,bt=Ce.expandIcon,At=Ce.rowExpandable,Tt=Ce.expandIconColumnIndex,Nt=Ce.direction,Ut=Ce.expandRowByClick,st=Ce.columnWidth,He=Ce.fixed,jt=Ce.scrollWidth,fn=Ce.clientWidth,Bt=ot.useMemo(function(){var kn=We||ee(Be)||[];return ue(kn.slice())},[We,Be]),Ft=ot.useMemo(function(){if(Ie){var kn=Bt.slice();if(!kn.includes(Me.w)){var Ze=Tt||0;Ze>=0&&(Ze||He==="left"||!He)&&kn.splice(Ze,0,Me.w),He==="right"&&kn.splice(Bt.length,0,Me.w)}var Fe=kn.indexOf(Me.w);kn=kn.filter(function(De,tt){return De!==Me.w||tt===Fe});var xe=Bt[Fe],Te;He?Te=He:Te=xe?xe.fixed:null;var Ye=(0,Ve.Z)((0,Ve.Z)((0,Ve.Z)((0,Ve.Z)((0,Ve.Z)((0,Ve.Z)({},Et.v,{className:"".concat(Oe,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",rt),"fixed",Te),"className","".concat(Oe,"-row-expand-icon-cell")),"width",st),"render",function(tt,Ht,$t){var Sn=xt(Ht,$t),en=Qe.has(Sn),kt=At?At(Ht):!0,nn=bt({prefixCls:Oe,expanded:en,expandable:kt,record:Ht,onExpand:gt});return Ut?ot.createElement("span",{onClick:function(zn){return zn.stopPropagation()}},nn):nn});return kn.map(function(De){return De===Me.w?Ye:De})}return Bt.filter(function(De){return De!==Me.w})},[Ie,Bt,xt,Qe,bt,Nt]),It=ot.useMemo(function(){var kn=Ft;return Re&&(kn=Re(kn)),kn.length||(kn=[{render:function(){return null}}]),kn},[Re,Ft,Nt]),Vt=ot.useMemo(function(){return Nt==="rtl"?de(se(It)):se(It)},[It,Nt,jt]),wn=ot.useMemo(function(){for(var kn=-1,Ze=Vt.length-1;Ze>=0;Ze-=1){var Fe=Vt[Ze].fixed;if(Fe==="left"||Fe===!0){kn=Ze;break}}if(kn>=0)for(var xe=0;xe<=kn;xe+=1){var Te=Vt[xe].fixed;if(Te!=="left"&&Te!==!0)return!0}var Ye=Vt.findIndex(function(Ht){var $t=Ht.fixed;return $t==="right"});if(Ye>=0)for(var De=Ye;De<Vt.length;De+=1){var tt=Vt[De].fixed;if(tt!=="right")return!0}return!1},[Vt]),Dt=ht(Vt,jt,fn),vt=(0,me.Z)(Dt,2),zt=vt[0],En=vt[1];return[It,zt,En,wn]}var ye=pe},4030:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{w2:function(){return me.w},vP:function(){return no.v},RQ:function(){return me.R},ER:function(){return Sn},Q$:function(){return Hr},TN:function(){return Yr}});var me=Pe(86351),Ve=Pe(16886),ut=Pe(6089),nt=Pe(34280),it=Pe(13697),ze=Pe(59301),Ue=Pe(4676);function yt(Qt){var mn=ze.createContext(void 0),Wt=function(Qn){var Ai=Qn.value,qi=Qn.children,Je=ze.useRef(Ai);Je.current=Ai;var Yt=ze.useState(function(){return{getValue:function(){return Je.current},listeners:new Set}}),Lt=(0,Ve.Z)(Yt,1),on=Lt[0];return(0,nt.Z)(function(){(0,Ue.unstable_batchedUpdates)(function(){on.listeners.forEach(function(Gn){Gn(Ai)})})},[Ai]),ze.createElement(mn.Provider,{value:on},qi)};return{Context:mn,Provider:Wt,defaultValue:Qt}}function ot(Qt,mn){var Wt=(0,ut.Z)(typeof mn=="function"?mn:function(Gn){if(mn===void 0)return Gn;if(!Array.isArray(mn))return Gn[mn];var vn={};return mn.forEach(function(dn){vn[dn]=Gn[dn]}),vn}),je=ze.useContext(Qt==null?void 0:Qt.Context),Qn=je||{},Ai=Qn.listeners,qi=Qn.getValue,Je=ze.useRef();Je.current=Wt(je?qi():Qt==null?void 0:Qt.defaultValue);var Yt=ze.useState({}),Lt=(0,Ve.Z)(Yt,2),on=Lt[1];return(0,nt.Z)(function(){if(!je)return;function Gn(vn){var dn=Wt(vn);(0,it.Z)(Je.current,dn,!0)||on({})}return Ai.add(Gn),function(){Ai.delete(Gn)}},[je]),Je.current}var Me=Pe(67711),Et=Pe(8654);function _e(){var Qt=ze.createContext(null);function mn(){return ze.useContext(Qt)}function Wt(Qn,Ai){var qi=(0,Et.Yr)(Qn),Je=function(Lt,on){var Gn=qi?{ref:on}:{},vn=ze.useRef(0),dn=ze.useRef(Lt),Mn=mn();return Mn!==null?ze.createElement(Qn,(0,Me.Z)({},Lt,Gn)):((!Ai||Ai(dn.current,Lt))&&(vn.current+=1),dn.current=Lt,ze.createElement(Qt.Provider,{value:vn.current},ze.createElement(Qn,(0,Me.Z)({},Lt,Gn))))};return qi?ze.forwardRef(Je):Je}function je(Qn,Ai){var qi=(0,Et.Yr)(Qn),Je=function(Lt,on){var Gn=qi?{ref:on}:{};return mn(),ze.createElement(Qn,(0,Me.Z)({},Lt,Gn))};return qi?ze.memo(ze.forwardRef(Je),Ai):ze.memo(Je,Ai)}return{makeImmutable:Wt,responseImmutable:je,useImmutableMark:mn}}var ht=_e(),Ee=ht.makeImmutable,ne=ht.responseImmutable,ee=ht.useImmutableMark,ue=_e(),se=ue.makeImmutable,de=ue.responseImmutable,pe=ue.useImmutableMark,ye=yt(),Ce=ye;function Re(Qt,mn){var Wt=React.useRef(0);Wt.current+=1;var je=React.useRef(Qt),Qn=[];Object.keys(Qt||{}).map(function(qi){var Je;(Qt==null?void 0:Qt[qi])!==((Je=je.current)===null||Je===void 0?void 0:Je[qi])&&Qn.push(qi)}),je.current=Qt;var Ai=React.useRef([]);return Qn.length&&(Ai.current=Qn),React.useDebugValue(Wt.current),React.useDebugValue(Ai.current.join(", ")),mn&&console.log("".concat(mn,":"),Wt.current,Ai.current),Wt.current}var Oe=null,We=null,Be=Pe(26420),Ie=Pe(98506),Qe=Pe(52873),rt=Pe(92310),xt=Pe.n(rt),gt=Pe(80547),bt=Pe(97938),At=Pe(48736),Tt=ze.createContext({renderWithProps:!1}),Nt=Tt,Ut="RC_TABLE_KEY";function st(Qt){return Qt==null?[]:Array.isArray(Qt)?Qt:[Qt]}function He(Qt){var mn=[],Wt={};return Qt.forEach(function(je){for(var Qn=je||{},Ai=Qn.key,qi=Qn.dataIndex,Je=Ai||st(qi).join("-")||Ut;Wt[Je];)Je="".concat(Je,"_next");Wt[Je]=!0,mn.push(Je)}),mn}function jt(Qt){return Qt!=null}function fn(Qt){return typeof Qt=="number"&&!Number.isNaN(Qt)}function Bt(Qt){return Qt&&(0,Be.Z)(Qt)==="object"&&!Array.isArray(Qt)&&!ze.isValidElement(Qt)}function Ft(Qt,mn,Wt,je,Qn,Ai){var qi=ze.useContext(Nt),Je=pe(),Yt=(0,gt.Z)(function(){if(jt(je))return[je];var Lt=mn==null||mn===""?[]:Array.isArray(mn)?mn:[mn],on=(0,bt.Z)(Qt,Lt),Gn=on,vn=void 0;if(Qn){var dn=Qn(on,Qt,Wt);Bt(dn)?(Gn=dn.children,vn=dn.props,qi.renderWithProps=!0):Gn=dn}return[Gn,vn]},[Je,Qt,je,mn,Qn,Wt],function(Lt,on){if(Ai){var Gn=(0,Ve.Z)(Lt,2),vn=Gn[1],dn=(0,Ve.Z)(on,2),Mn=dn[1];return Ai(Mn,vn)}return qi.renderWithProps?!0:!(0,it.Z)(Lt,on,!0)});return Yt}function It(Qt,mn,Wt,je){var Qn=Qt+mn-1;return Qt<=je&&Qn>=Wt}function Vt(Qt,mn){return ot(Ce,function(Wt){var je=It(Qt,mn||1,Wt.hoverStartRow,Wt.hoverEndRow);return[je,Wt.onHover]})}var wn=Pe(70425),Dt=function(mn){var Wt=mn.ellipsis,je=mn.rowType,Qn=mn.children,Ai,qi=Wt===!0?{showTitle:!0}:Wt;return qi&&(qi.showTitle||je==="header")&&(typeof Qn=="string"||typeof Qn=="number"?Ai=Qn.toString():ze.isValidElement(Qn)&&typeof Qn.props.children=="string"&&(Ai=Qn.props.children)),Ai};function vt(Qt){var mn,Wt,je,Qn,Ai,qi,Je,Yt,Lt=Qt.component,on=Qt.children,Gn=Qt.ellipsis,vn=Qt.scope,dn=Qt.prefixCls,Mn=Qt.className,ke=Qt.align,ct=Qt.record,Xe=Qt.render,Pt=Qt.dataIndex,Ct=Qt.renderIndex,Xt=Qt.shouldCellUpdate,qt=Qt.index,sn=Qt.rowType,Tn=Qt.colSpan,jn=Qt.rowSpan,gn=Qt.fixLeft,$n=Qt.fixRight,gi=Qt.firstFixLeft,pt=Qt.lastFixLeft,Vn=Qt.firstFixRight,Wn=Qt.lastFixRight,Rn=Qt.appendNode,Ln=Qt.additionalProps,di=Ln===void 0?{}:Ln,vi=Qt.isSticky,Dn="".concat(dn,"-cell"),yi=ot(Ce,["supportSticky","allColumnsFixedLeft","rowHoverable"]),xi=yi.supportSticky,wi=yi.allColumnsFixedLeft,gr=yi.rowHoverable,Ar=Ft(ct,Pt,Ct,on,Xe,Xt),ur=(0,Ve.Z)(Ar,2),ri=ur[0],mr=ur[1],rr={},fr=typeof gn=="number"&&xi,nr=typeof $n=="number"&ξfr&&(rr.position="sticky",rr.left=gn),nr&&(rr.position="sticky",rr.right=$n);var wr=(mn=(Wt=(je=mr==null?void 0:mr.colSpan)!==null&&je!==void 0?je:di.colSpan)!==null&&Wt!==void 0?Wt:Tn)!==null&&mn!==void 0?mn:1,bn=(Qn=(Ai=(qi=mr==null?void 0:mr.rowSpan)!==null&&qi!==void 0?qi:di.rowSpan)!==null&&Ai!==void 0?Ai:jn)!==null&&Qn!==void 0?Qn:1,Fi=Vt(qt,bn),Ii=(0,Ve.Z)(Fi,2),Ki=Ii[0],Wi=Ii[1],Hi=(0,wn.zX)(function(or){var br;ct&&Wi(qt,qt+bn-1),di==null||(br=di.onMouseEnter)===null||br===void 0||br.call(di,or)}),hi=(0,wn.zX)(function(or){var br;ct&&Wi(-1,-1),di==null||(br=di.onMouseLeave)===null||br===void 0||br.call(di,or)});if(wr===0||bn===0)return null;var Li=(Je=di.title)!==null&&Je!==void 0?Je:Dt({rowType:sn,ellipsis:Gn,children:ri}),pr=xt()(Dn,Mn,(Yt={},(0,Qe.Z)((0,Qe.Z)((0,Qe.Z)((0,Qe.Z)((0,Qe.Z)((0,Qe.Z)((0,Qe.Z)((0,Qe.Z)((0,Qe.Z)((0,Qe.Z)(Yt,"".concat(Dn,"-fix-left"),fr&&xi),"".concat(Dn,"-fix-left-first"),gi&&xi),"".concat(Dn,"-fix-left-last"),pt&&xi),"".concat(Dn,"-fix-left-all"),pt&&wi&&xi),"".concat(Dn,"-fix-right"),nr&&xi),"".concat(Dn,"-fix-right-first"),Vn&&xi),"".concat(Dn,"-fix-right-last"),Wn&&xi),"".concat(Dn,"-ellipsis"),Gn),"".concat(Dn,"-with-append"),Rn),"".concat(Dn,"-fix-sticky"),(fr||nr)&&vi&&xi),(0,Qe.Z)(Yt,"".concat(Dn,"-row-hover"),!mr&&Ki)),di.className,mr==null?void 0:mr.className),Jn={};ke&&(Jn.textAlign=ke);var ni=(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},mr==null?void 0:mr.style),rr),Jn),di.style),Ui=ri;return(0,Be.Z)(Ui)==="object"&&!Array.isArray(Ui)&&!ze.isValidElement(Ui)&&(Ui=null),Gn&&(pt||Vn)&&(Ui=ze.createElement("span",{className:"".concat(Dn,"-content")},Ui)),ze.createElement(Lt,(0,Me.Z)({},mr,di,{className:pr,style:ni,title:Li,scope:vn,onMouseEnter:gr?Hi:void 0,onMouseLeave:gr?hi:void 0,colSpan:wr!==1?wr:null,rowSpan:bn!==1?bn:null}),Rn,Ui)}var zt=ze.memo(vt);function En(Qt,mn,Wt,je,Qn){var Ai=Wt[Qt]||{},qi=Wt[mn]||{},Je,Yt;Ai.fixed==="left"?Je=je.left[Qn==="rtl"?mn:Qt]:qi.fixed==="right"&&(Yt=je.right[Qn==="rtl"?Qt:mn]);var Lt=!1,on=!1,Gn=!1,vn=!1,dn=Wt[mn+1],Mn=Wt[Qt-1],ke=dn&&!dn.fixed||Mn&&!Mn.fixed||Wt.every(function(Xt){return Xt.fixed==="left"});if(Qn==="rtl"){if(Je!==void 0){var ct=Mn&&Mn.fixed==="left";vn=!ct&&ke}else if(Yt!==void 0){var Xe=dn&&dn.fixed==="right";Gn=!Xe&&ke}}else if(Je!==void 0){var Pt=dn&&dn.fixed==="left";Lt=!Pt&&ke}else if(Yt!==void 0){var Ct=Mn&&Mn.fixed==="right";on=!Ct&&ke}return{fixLeft:Je,fixRight:Yt,lastFixLeft:Lt,firstFixRight:on,lastFixRight:Gn,firstFixLeft:vn,isSticky:je.isSticky}}var kn=ze.createContext({}),Ze=kn;function Fe(Qt){var mn=Qt.className,Wt=Qt.index,je=Qt.children,Qn=Qt.colSpan,Ai=Qn===void 0?1:Qn,qi=Qt.rowSpan,Je=Qt.align,Yt=ot(Ce,["prefixCls","direction"]),Lt=Yt.prefixCls,on=Yt.direction,Gn=ze.useContext(Ze),vn=Gn.scrollColumnIndex,dn=Gn.stickyOffsets,Mn=Gn.flattenColumns,ke=Wt+Ai-1,ct=ke+1===vn?Ai+1:Ai,Xe=En(Wt,Wt+ct-1,Mn,dn,on);return ze.createElement(zt,(0,Me.Z)({className:mn,index:Wt,component:"td",prefixCls:Lt,record:null,dataIndex:null,align:Je,colSpan:ct,rowSpan:qi,render:function(){return je}},Xe))}var xe=Pe(33346),Te=["children"];function Ye(Qt){var mn=Qt.children,Wt=(0,xe.Z)(Qt,Te);return ze.createElement("tr",Wt,mn)}function De(Qt){var mn=Qt.children;return mn}De.Row=Ye,De.Cell=Fe;var tt=De;function Ht(Qt){var mn=Qt.children,Wt=Qt.stickyOffsets,je=Qt.flattenColumns,Qn=ot(Ce,"prefixCls"),Ai=je.length-1,qi=je[Ai],Je=ze.useMemo(function(){return{stickyOffsets:Wt,flattenColumns:je,scrollColumnIndex:qi!=null&&qi.scrollbar?Ai:null}},[qi,je,Ai,Wt]);return ze.createElement(Ze.Provider,{value:Je},ze.createElement("tfoot",{className:"".concat(Qn,"-summary")},mn))}var $t=de(Ht),Sn=tt,en=Pe(29301),kt=Pe(24514),nn=Pe(75152),hn=Pe(26112);function zn(Qt,mn,Wt,je,Qn,Ai,qi){Qt.push({record:mn,indent:Wt,index:qi});var Je=Ai(mn),Yt=Qn==null?void 0:Qn.has(Je);if(mn&&Array.isArray(mn[je])&&Yt)for(var Lt=0;Lt<mn[je].length;Lt+=1)zn(Qt,mn[je][Lt],Wt+1,je,Qn,Ai,Lt)}function fi(Qt,mn,Wt,je){var Qn=ze.useMemo(function(){if(Wt!=null&&Wt.size){for(var Ai=[],qi=0;qi<(Qt==null?void 0:Qt.length);qi+=1){var Je=Qt[qi];zn(Ai,Je,0,mn,Wt,je,qi)}return Ai}return Qt==null?void 0:Qt.map(function(Yt,Lt){return{record:Yt,indent:0,index:Lt}})},[Qt,mn,Wt,je]);return Qn}function _n(Qt,mn,Wt,je){var Qn=ot(Ce,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Ai=Qn.flattenColumns,qi=Qn.expandableType,Je=Qn.expandedKeys,Yt=Qn.childrenColumnName,Lt=Qn.onTriggerExpand,on=Qn.rowExpandable,Gn=Qn.onRow,vn=Qn.expandRowByClick,dn=Qn.rowClassName,Mn=qi==="nest",ke=qi==="row"&&(!on||on(Qt)),ct=ke||Mn,Xe=Je&&Je.has(mn),Pt=Yt&&Qt&&Qt[Yt],Ct=(0,wn.zX)(Lt),Xt=Gn==null?void 0:Gn(Qt,Wt),qt=Xt==null?void 0:Xt.onClick,sn=function($n){vn&&ct&&Lt(Qt,$n);for(var gi=arguments.length,pt=new Array(gi>1?gi-1:0),Vn=1;Vn<gi;Vn++)pt[Vn-1]=arguments[Vn];qt==null||qt.apply(void 0,[$n].concat(pt))},Tn;typeof dn=="string"?Tn=dn:typeof dn=="function"&&(Tn=dn(Qt,Wt,je));var jn=He(Ai);return(0,Ie.Z)((0,Ie.Z)({},Qn),{},{columnsKey:jn,nestExpandable:Mn,expanded:Xe,hasNestChildren:Pt,record:Qt,onTriggerExpand:Ct,rowSupportExpand:ke,expandable:ct,rowProps:(0,Ie.Z)((0,Ie.Z)({},Xt),{},{className:xt()(Tn,Xt==null?void 0:Xt.className),onClick:sn})})}function Pi(Qt){var mn=Qt.prefixCls,Wt=Qt.children,je=Qt.component,Qn=Qt.cellComponent,Ai=Qt.className,qi=Qt.expanded,Je=Qt.colSpan,Yt=Qt.isEmpty,Lt=ot(Ce,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),on=Lt.scrollbarSize,Gn=Lt.fixHeader,vn=Lt.fixColumn,dn=Lt.componentWidth,Mn=Lt.horizonScroll,ke=Wt;return(Yt?Mn&&dn:vn)&&(ke=ze.createElement("div",{style:{width:dn-(Gn&&!Yt?on:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(mn,"-expanded-row-fixed")},ke)),ze.createElement(je,{className:Ai,style:{display:qi?null:"none"}},ze.createElement(zt,{component:Qn,prefixCls:mn,colSpan:Je},ke))}var Ci=Pi;function Yn(Qt){var mn=Qt.prefixCls,Wt=Qt.record,je=Qt.onExpand,Qn=Qt.expanded,Ai=Qt.expandable,qi="".concat(mn,"-row-expand-icon");if(!Ai)return ze.createElement("span",{className:xt()(qi,"".concat(mn,"-row-spaced"))});var Je=function(Lt){je(Wt,Lt),Lt.stopPropagation()};return ze.createElement("span",{className:xt()(qi,(0,Qe.Z)((0,Qe.Z)({},"".concat(mn,"-row-expanded"),Qn),"".concat(mn,"-row-collapsed"),!Qn)),onClick:Je})}function Ei(Qt,mn,Wt){var je=[];function Qn(Ai){(Ai||[]).forEach(function(qi,Je){je.push(mn(qi,Je)),Qn(qi[Wt])})}return Qn(Qt),je}function pi(Qt,mn,Wt,je){return typeof Qt=="string"?Qt:typeof Qt=="function"?Qt(mn,Wt,je):""}function ji(Qt,mn,Wt,je,Qn){var Ai=Qt.record,qi=Qt.prefixCls,Je=Qt.columnsKey,Yt=Qt.fixedInfoList,Lt=Qt.expandIconColumnIndex,on=Qt.nestExpandable,Gn=Qt.indentSize,vn=Qt.expandIcon,dn=Qt.expanded,Mn=Qt.hasNestChildren,ke=Qt.onTriggerExpand,ct=Je[Wt],Xe=Yt[Wt],Pt;Wt===(Lt||0)&&on&&(Pt=ze.createElement(ze.Fragment,null,ze.createElement("span",{style:{paddingLeft:"".concat(Gn*je,"px")},className:"".concat(qi,"-row-indent indent-level-").concat(je)}),vn({prefixCls:qi,expanded:dn,expandable:Mn,record:Ai,onExpand:ke})));var Ct;return mn.onCell&&(Ct=mn.onCell(Ai,Qn)),{key:ct,fixedInfo:Xe,appendCellNode:Pt,additionalCellProps:Ct||{}}}function Qi(Qt){var mn=Qt.className,Wt=Qt.style,je=Qt.record,Qn=Qt.index,Ai=Qt.renderIndex,qi=Qt.rowKey,Je=Qt.indent,Yt=Je===void 0?0:Je,Lt=Qt.rowComponent,on=Qt.cellComponent,Gn=Qt.scopeCellComponent,vn=_n(je,qi,Qn,Yt),dn=vn.prefixCls,Mn=vn.flattenColumns,ke=vn.expandedRowClassName,ct=vn.expandedRowRender,Xe=vn.rowProps,Pt=vn.expanded,Ct=vn.rowSupportExpand,Xt=ze.useRef(!1);Xt.current||(Xt.current=Pt);var qt=pi(ke,je,Qn,Yt),sn=ze.createElement(Lt,(0,Me.Z)({},Xe,{"data-row-key":qi,className:xt()(mn,"".concat(dn,"-row"),"".concat(dn,"-row-level-").concat(Yt),Xe==null?void 0:Xe.className,(0,Qe.Z)({},qt,Yt>=1)),style:(0,Ie.Z)((0,Ie.Z)({},Wt),Xe==null?void 0:Xe.style)}),Mn.map(function(gn,$n){var gi=gn.render,pt=gn.dataIndex,Vn=gn.className,Wn=ji(vn,gn,$n,Yt,Qn),Rn=Wn.key,Ln=Wn.fixedInfo,di=Wn.appendCellNode,vi=Wn.additionalCellProps;return ze.createElement(zt,(0,Me.Z)({className:Vn,ellipsis:gn.ellipsis,align:gn.align,scope:gn.rowScope,component:gn.rowScope?Gn:on,prefixCls:dn,key:Rn,record:je,index:Qn,renderIndex:Ai,dataIndex:pt,render:gi,shouldCellUpdate:gn.shouldCellUpdate},Ln,{appendNode:di,additionalProps:vi}))})),Tn;if(Ct&&(Xt.current||Pt)){var jn=ct(je,Qn,Yt+1,Pt);Tn=ze.createElement(Ci,{expanded:Pt,className:xt()("".concat(dn,"-expanded-row"),"".concat(dn,"-expanded-row-level-").concat(Yt+1),qt),prefixCls:dn,component:Lt,cellComponent:on,colSpan:Mn.length,isEmpty:!1},jn)}return ze.createElement(ze.Fragment,null,sn,Tn)}var lr=de(Qi);function Lr(Qt){var mn=Qt.columnKey,Wt=Qt.onColumnResize,je=ze.useRef();return(0,nt.Z)(function(){je.current&&Wt(mn,je.current.offsetWidth)},[]),ze.createElement(en.Z,{data:mn},ze.createElement("td",{ref:je,style:{padding:0,border:0,height:0}},ze.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var Di=Pe(29194);function cr(Qt){var mn=Qt.prefixCls,Wt=Qt.columnsKey,je=Qt.onColumnResize,Qn=ze.useRef(null);return ze.createElement("tr",{"aria-hidden":"true",className:"".concat(mn,"-measure-row"),style:{height:0,fontSize:0},ref:Qn},ze.createElement(en.Z.Collection,{onBatchResize:function(qi){(0,Di.Z)(Qn.current)&&qi.forEach(function(Je){var Yt=Je.data,Lt=Je.size;je(Yt,Lt.offsetWidth)})}},Wt.map(function(Ai){return ze.createElement(Lr,{key:Ai,columnKey:Ai,onColumnResize:je})})))}function to(Qt){var mn=Qt.data,Wt=Qt.measureColumnWidth,je=ot(Ce,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Qn=je.prefixCls,Ai=je.getComponent,qi=je.onColumnResize,Je=je.flattenColumns,Yt=je.getRowKey,Lt=je.expandedKeys,on=je.childrenColumnName,Gn=je.emptyNode,vn=fi(mn,on,Lt,Yt),dn=ze.useRef({renderWithProps:!1}),Mn=Ai(["body","wrapper"],"tbody"),ke=Ai(["body","row"],"tr"),ct=Ai(["body","cell"],"td"),Xe=Ai(["body","cell"],"th"),Pt;mn.length?Pt=vn.map(function(Xt,qt){var sn=Xt.record,Tn=Xt.indent,jn=Xt.index,gn=Yt(sn,qt);return ze.createElement(lr,{key:gn,rowKey:gn,record:sn,index:qt,renderIndex:jn,rowComponent:ke,cellComponent:ct,scopeCellComponent:Xe,indent:Tn})}):Pt=ze.createElement(Ci,{expanded:!0,className:"".concat(Qn,"-placeholder"),prefixCls:Qn,component:ke,cellComponent:ct,colSpan:Je.length,isEmpty:!0},Gn);var Ct=He(Je);return ze.createElement(Nt.Provider,{value:dn.current},ze.createElement(Mn,{className:"".concat(Qn,"-tbody")},Wt&&ze.createElement(cr,{prefixCls:Qn,columnsKey:Ct,onColumnResize:qi}),Pt))}var ki=de(to),no=Pe(54451),fo=["columnType"];function po(Qt){for(var mn=Qt.colWidths,Wt=Qt.columns,je=Qt.columCount,Qn=ot(Ce,["tableLayout"]),Ai=Qn.tableLayout,qi=[],Je=je||Wt.length,Yt=!1,Lt=Je-1;Lt>=0;Lt-=1){var on=mn[Lt],Gn=Wt&&Wt[Lt],vn=void 0,dn=void 0;if(Gn&&(vn=Gn[no.v],Ai==="auto"&&(dn=Gn.minWidth)),on||dn||vn||Yt){var Mn=vn||{},ke=Mn.columnType,ct=(0,xe.Z)(Mn,fo);qi.unshift(ze.createElement("col",(0,Me.Z)({key:Lt,style:{width:on,minWidth:dn}},ct))),Yt=!0}}return ze.createElement("colgroup",null,qi)}var io=po,hr=Pe(15142),ao=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function be(Qt,mn){return(0,ze.useMemo)(function(){for(var Wt=[],je=0;je<mn;je+=1){var Qn=Qt[je];if(Qn!==void 0)Wt[je]=Qn;else return null}return Wt},[Qt.join("_"),mn])}var Un=ze.forwardRef(function(Qt,mn){var Wt=Qt.className,je=Qt.noData,Qn=Qt.columns,Ai=Qt.flattenColumns,qi=Qt.colWidths,Je=Qt.columCount,Yt=Qt.stickyOffsets,Lt=Qt.direction,on=Qt.fixHeader,Gn=Qt.stickyTopOffset,vn=Qt.stickyBottomOffset,dn=Qt.stickyClassName,Mn=Qt.onScroll,ke=Qt.maxContentScroll,ct=Qt.children,Xe=(0,xe.Z)(Qt,ao),Pt=ot(Ce,["prefixCls","scrollbarSize","isSticky","getComponent"]),Ct=Pt.prefixCls,Xt=Pt.scrollbarSize,qt=Pt.isSticky,sn=Pt.getComponent,Tn=sn(["header","table"],"table"),jn=qt&&!on?0:Xt,gn=ze.useRef(null),$n=ze.useCallback(function(vi){(0,Et.mH)(mn,vi),(0,Et.mH)(gn,vi)},[]);ze.useEffect(function(){var vi;function Dn(yi){var xi=yi,wi=xi.currentTarget,gr=xi.deltaX;gr&&(Mn({currentTarget:wi,scrollLeft:wi.scrollLeft+gr}),yi.preventDefault())}return(vi=gn.current)===null||vi===void 0||vi.addEventListener("wheel",Dn,{passive:!1}),function(){var yi;(yi=gn.current)===null||yi===void 0||yi.removeEventListener("wheel",Dn)}},[]);var gi=ze.useMemo(function(){return Ai.every(function(vi){return vi.width})},[Ai]),pt=Ai[Ai.length-1],Vn={fixed:pt?pt.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Ct,"-cell-scrollbar")}}},Wn=(0,ze.useMemo)(function(){return jn?[].concat((0,hr.Z)(Qn),[Vn]):Qn},[jn,Qn]),Rn=(0,ze.useMemo)(function(){return jn?[].concat((0,hr.Z)(Ai),[Vn]):Ai},[jn,Ai]),Ln=(0,ze.useMemo)(function(){var vi=Yt.right,Dn=Yt.left;return(0,Ie.Z)((0,Ie.Z)({},Yt),{},{left:Lt==="rtl"?[].concat((0,hr.Z)(Dn.map(function(yi){return yi+jn})),[0]):Dn,right:Lt==="rtl"?vi:[].concat((0,hr.Z)(vi.map(function(yi){return yi+jn})),[0]),isSticky:qt})},[jn,Yt,qt]),di=be(qi,Je);return ze.createElement("div",{style:(0,Ie.Z)({overflow:"hidden"},qt?{top:Gn,bottom:vn}:{}),ref:$n,className:xt()(Wt,(0,Qe.Z)({},dn,!!dn))},ze.createElement(Tn,{style:{tableLayout:"fixed",visibility:je||di?null:"hidden"}},(!je||!ke||gi)&&ze.createElement(io,{colWidths:di?[].concat((0,hr.Z)(di),[jn]):[],columCount:Je+1,columns:Rn}),ct((0,Ie.Z)((0,Ie.Z)({},Xe),{},{stickyOffsets:Ln,columns:Wn,flattenColumns:Rn}))))}),Xn=ze.memo(Un),ci=function(mn){var Wt=mn.cells,je=mn.stickyOffsets,Qn=mn.flattenColumns,Ai=mn.rowComponent,qi=mn.cellComponent,Je=mn.onHeaderRow,Yt=mn.index,Lt=ot(Ce,["prefixCls","direction"]),on=Lt.prefixCls,Gn=Lt.direction,vn;Je&&(vn=Je(Wt.map(function(Mn){return Mn.column}),Yt));var dn=He(Wt.map(function(Mn){return Mn.column}));return ze.createElement(Ai,vn,Wt.map(function(Mn,ke){var ct=Mn.column,Xe=En(Mn.colStart,Mn.colEnd,Qn,je,Gn),Pt;return ct&&ct.onHeaderCell&&(Pt=Mn.column.onHeaderCell(ct)),ze.createElement(zt,(0,Me.Z)({},Mn,{scope:ct.title?Mn.colSpan>1?"colgroup":"col":null,ellipsis:ct.ellipsis,align:ct.align,component:qi,prefixCls:on,key:dn[ke]},Xe,{additionalProps:Pt,rowType:"header"}))}))},mi=ci;function ei(Qt){var mn=[];function Wt(qi,Je){var Yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;mn[Yt]=mn[Yt]||[];var Lt=Je,on=qi.filter(Boolean).map(function(Gn){var vn={key:Gn.key,className:Gn.className||"",children:Gn.title,column:Gn,colStart:Lt},dn=1,Mn=Gn.children;return Mn&&Mn.length>0&&(dn=Wt(Mn,Lt,Yt+1).reduce(function(ke,ct){return ke+ct},0),vn.hasSubColumns=!0),"colSpan"in Gn&&(dn=Gn.colSpan),"rowSpan"in Gn&&(vn.rowSpan=Gn.rowSpan),vn.colSpan=dn,vn.colEnd=vn.colStart+dn-1,mn[Yt].push(vn),Lt+=dn,dn});return on}Wt(Qt,0);for(var je=mn.length,Qn=function(Je){mn[Je].forEach(function(Yt){!("rowSpan"in Yt)&&!Yt.hasSubColumns&&(Yt.rowSpan=je-Je)})},Ai=0;Ai<je;Ai+=1)Qn(Ai);return mn}var Gi=function(mn){var Wt=mn.stickyOffsets,je=mn.columns,Qn=mn.flattenColumns,Ai=mn.onHeaderRow,qi=ot(Ce,["prefixCls","getComponent"]),Je=qi.prefixCls,Yt=qi.getComponent,Lt=ze.useMemo(function(){return ei(je)},[je]),on=Yt(["header","wrapper"],"thead"),Gn=Yt(["header","row"],"tr"),vn=Yt(["header","cell"],"th");return ze.createElement(on,{className:"".concat(Je,"-thead")},Lt.map(function(dn,Mn){var ke=ze.createElement(mi,{key:Mn,flattenColumns:Qn,cells:dn,stickyOffsets:Wt,rowComponent:Gn,cellComponent:vn,onHeaderRow:Ai,index:Mn});return ke}))},vr=de(Gi),an=Pe(97347);function ln(Qt,mn,Wt){var je=(0,no.g)(Qt),Qn=je.expandIcon,Ai=je.expandedRowKeys,qi=je.defaultExpandedRowKeys,Je=je.defaultExpandAllRows,Yt=je.expandedRowRender,Lt=je.onExpand,on=je.onExpandedRowsChange,Gn=je.childrenColumnName,vn=Qn||Yn,dn=Gn||"children",Mn=ze.useMemo(function(){return Yt?"row":Qt.expandable&&Qt.internalHooks===me.R&&Qt.expandable.__PARENT_RENDER_ICON__||mn.some(function(qt){return qt&&(0,Be.Z)(qt)==="object"&&qt[dn]})?"nest":!1},[!!Yt,mn]),ke=ze.useState(function(){return qi||(Je?Ei(mn,Wt,dn):[])}),ct=(0,Ve.Z)(ke,2),Xe=ct[0],Pt=ct[1],Ct=ze.useMemo(function(){return new Set(Ai||Xe||[])},[Ai,Xe]),Xt=ze.useCallback(function(qt){var sn=Wt(qt,mn.indexOf(qt)),Tn,jn=Ct.has(sn);jn?(Ct.delete(sn),Tn=(0,hr.Z)(Ct)):Tn=[].concat((0,hr.Z)(Ct),[sn]),Pt(Tn),Lt&&Lt(!jn,qt),on&&on(Tn)},[Wt,Ct,mn,Lt,on]);return[je,Mn,Ct,vn,dn,Xt]}function Zt(Qt,mn,Wt){var je=Qt.map(function(Qn,Ai){return En(Ai,Ai,Qt,mn,Wt)});return(0,gt.Z)(function(){return je},[je],function(Qn,Ai){return!(0,it.Z)(Qn,Ai)})}function pn(Qt){var mn=(0,ze.useRef)(Qt),Wt=(0,ze.useState)({}),je=(0,Ve.Z)(Wt,2),Qn=je[1],Ai=(0,ze.useRef)(null),qi=(0,ze.useRef)([]);function Je(Yt){qi.current.push(Yt);var Lt=Promise.resolve();Ai.current=Lt,Lt.then(function(){if(Ai.current===Lt){var on=qi.current,Gn=mn.current;qi.current=[],on.forEach(function(vn){mn.current=vn(mn.current)}),Ai.current=null,Gn!==mn.current&&Qn({})}})}return(0,ze.useEffect)(function(){return function(){Ai.current=null}},[]),[mn.current,Je]}function zi(Qt){var mn=(0,ze.useRef)(Qt||null),Wt=(0,ze.useRef)();function je(){window.clearTimeout(Wt.current)}function Qn(qi){mn.current=qi,je(),Wt.current=window.setTimeout(function(){mn.current=null,Wt.current=void 0},100)}function Ai(){return mn.current}return(0,ze.useEffect)(function(){return je},[]),[Qn,Ai]}function Ti(){var Qt=ze.useState(-1),mn=(0,Ve.Z)(Qt,2),Wt=mn[0],je=mn[1],Qn=ze.useState(-1),Ai=(0,Ve.Z)(Qn,2),qi=Ai[0],Je=Ai[1],Yt=ze.useCallback(function(Lt,on){je(Lt),Je(on)},[]);return[Wt,qi,Yt]}var dr=Pe(47273),un=(0,dr.Z)()?window:null;function In(Qt,mn){var Wt=(0,Be.Z)(Qt)==="object"?Qt:{},je=Wt.offsetHeader,Qn=je===void 0?0:je,Ai=Wt.offsetSummary,qi=Ai===void 0?0:Ai,Je=Wt.offsetScroll,Yt=Je===void 0?0:Je,Lt=Wt.getContainer,on=Lt===void 0?function(){return un}:Lt,Gn=on()||un,vn=!!Qt;return ze.useMemo(function(){return{isSticky:vn,stickyClassName:vn?"".concat(mn,"-sticky-holder"):"",offsetHeader:Qn,offsetSummary:qi,offsetScroll:Yt,container:Gn}},[vn,Yt,Qn,qi,mn,Gn])}function Vi(Qt,mn,Wt){var je=(0,ze.useMemo)(function(){var Qn=mn.length,Ai=function(Lt,on,Gn){for(var vn=[],dn=0,Mn=Lt;Mn!==on;Mn+=Gn)vn.push(dn),mn[Mn].fixed&&(dn+=Qt[Mn]||0);return vn},qi=Ai(0,Qn,1),Je=Ai(Qn-1,-1,-1).reverse();return Wt==="rtl"?{left:Je,right:qi}:{left:qi,right:Je}},[Qt,mn,Wt]);return je}var Fr=Vi;function ii(Qt){var mn=Qt.className,Wt=Qt.children;return ze.createElement("div",{className:mn},Wt)}var lt=ii,Rt=Pe(8224),ai=Pe(16089),ti=Pe(76846);function tn(Qt){var mn=(0,ti.bn)(Qt),Wt=mn.getBoundingClientRect(),je=document.documentElement;return{left:Wt.left+(window.pageXOffset||je.scrollLeft)-(je.clientLeft||document.body.clientLeft||0),top:Wt.top+(window.pageYOffset||je.scrollTop)-(je.clientTop||document.body.clientTop||0)}}var si=function(mn,Wt){var je,Qn,Ai=mn.scrollBodyRef,qi=mn.onScroll,Je=mn.offsetScroll,Yt=mn.container,Lt=mn.direction,on=ot(Ce,"prefixCls"),Gn=((je=Ai.current)===null||je===void 0?void 0:je.scrollWidth)||0,vn=((Qn=Ai.current)===null||Qn===void 0?void 0:Qn.clientWidth)||0,dn=Gn&&vn*(vn/Gn),Mn=ze.useRef(),ke=pn({scrollLeft:0,isHiddenScrollBar:!0}),ct=(0,Ve.Z)(ke,2),Xe=ct[0],Pt=ct[1],Ct=ze.useRef({delta:0,x:0}),Xt=ze.useState(!1),qt=(0,Ve.Z)(Xt,2),sn=qt[0],Tn=qt[1],jn=ze.useRef(null);ze.useEffect(function(){return function(){ai.Z.cancel(jn.current)}},[]);var gn=function(){Tn(!1)},$n=function(Rn){Rn.persist(),Ct.current.delta=Rn.pageX-Xe.scrollLeft,Ct.current.x=0,Tn(!0),Rn.preventDefault()},gi=function(Rn){var Ln,di=Rn||((Ln=window)===null||Ln===void 0?void 0:Ln.event),vi=di.buttons;if(!sn||vi===0){sn&&Tn(!1);return}var Dn=Ct.current.x+Rn.pageX-Ct.current.x-Ct.current.delta,yi=Lt==="rtl";Dn=Math.max(yi?dn-vn:0,Math.min(yi?0:vn-dn,Dn));var xi=!yi||Math.abs(Dn)+Math.abs(dn)<vn;xi&&(qi({scrollLeft:Dn/vn*(Gn+2)}),Ct.current.x=Rn.pageX)},pt=function(){ai.Z.cancel(jn.current),jn.current=(0,ai.Z)(function(){if(Ai.current){var Rn=tn(Ai.current).top,Ln=Rn+Ai.current.offsetHeight,di=Yt===window?document.documentElement.scrollTop+window.innerHeight:tn(Yt).top+Yt.clientHeight;Ln-(0,nn.Z)()<=di||Rn>=di-Je?Pt(function(vi){return(0,Ie.Z)((0,Ie.Z)({},vi),{},{isHiddenScrollBar:!0})}):Pt(function(vi){return(0,Ie.Z)((0,Ie.Z)({},vi),{},{isHiddenScrollBar:!1})})}})},Vn=function(Rn){Pt(function(Ln){return(0,Ie.Z)((0,Ie.Z)({},Ln),{},{scrollLeft:Rn/Gn*vn||0})})};return ze.useImperativeHandle(Wt,function(){return{setScrollLeft:Vn,checkScrollBarVisible:pt}}),ze.useEffect(function(){var Wn=(0,Rt.Z)(document.body,"mouseup",gn,!1),Rn=(0,Rt.Z)(document.body,"mousemove",gi,!1);return pt(),function(){Wn.remove(),Rn.remove()}},[dn,sn]),ze.useEffect(function(){if(Ai.current){for(var Wn=[],Rn=(0,ti.bn)(Ai.current);Rn;)Wn.push(Rn),Rn=Rn.parentElement;return Wn.forEach(function(Ln){return Ln.addEventListener("scroll",pt,!1)}),window.addEventListener("resize",pt,!1),window.addEventListener("scroll",pt,!1),Yt.addEventListener("scroll",pt,!1),function(){Wn.forEach(function(Ln){return Ln.removeEventListener("scroll",pt)}),window.removeEventListener("resize",pt),window.removeEventListener("scroll",pt),Yt.removeEventListener("scroll",pt)}}},[Yt]),ze.useEffect(function(){Xe.isHiddenScrollBar||Pt(function(Wn){var Rn=Ai.current;return Rn?(0,Ie.Z)((0,Ie.Z)({},Wn),{},{scrollLeft:Rn.scrollLeft/Rn.scrollWidth*Rn.clientWidth}):Wn})},[Xe.isHiddenScrollBar]),Gn<=vn||!dn||Xe.isHiddenScrollBar?null:ze.createElement("div",{style:{height:(0,nn.Z)(),width:vn,bottom:Je},className:"".concat(on,"-sticky-scroll")},ze.createElement("div",{onMouseDown:$n,ref:Mn,className:xt()("".concat(on,"-sticky-scroll-bar"),(0,Qe.Z)({},"".concat(on,"-sticky-scroll-bar-active"),sn)),style:{width:"".concat(dn,"px"),transform:"translate3d(".concat(Xe.scrollLeft,"px, 0, 0)")}}))},Ri=ze.forwardRef(si);function Yi(Qt){return null}var tr=Yi;function Bn(Qt){return null}var Ot=Bn,qn="rc-table",Ji=[],$i={};function Pn(){return"No Data"}function Mi(Qt,mn){var Wt=(0,Ie.Z)({rowKey:"key",prefixCls:qn,emptyText:Pn},Qt),je=Wt.prefixCls,Qn=Wt.className,Ai=Wt.rowClassName,qi=Wt.style,Je=Wt.data,Yt=Wt.rowKey,Lt=Wt.scroll,on=Wt.tableLayout,Gn=Wt.direction,vn=Wt.title,dn=Wt.footer,Mn=Wt.summary,ke=Wt.caption,ct=Wt.id,Xe=Wt.showHeader,Pt=Wt.components,Ct=Wt.emptyText,Xt=Wt.onRow,qt=Wt.onHeaderRow,sn=Wt.onScroll,Tn=Wt.internalHooks,jn=Wt.transformColumns,gn=Wt.internalRefs,$n=Wt.tailor,gi=Wt.getContainerWidth,pt=Wt.sticky,Vn=Wt.rowHoverable,Wn=Vn===void 0?!0:Vn,Rn=Je||Ji,Ln=!!Rn.length,di=Tn===me.R,vi=ze.useCallback(function(Bo,Yo){return(0,bt.Z)(Pt,Bo)||Yo},[Pt]),Dn=ze.useMemo(function(){return typeof Yt=="function"?Yt:function(Bo){var Yo=Bo&&Bo[Yt];return Yo}},[Yt]),yi=vi(["body"]),xi=Ti(),wi=(0,Ve.Z)(xi,3),gr=wi[0],Ar=wi[1],ur=wi[2],ri=ln(Wt,Rn,Dn),mr=(0,Ve.Z)(ri,6),rr=mr[0],fr=mr[1],nr=mr[2],wr=mr[3],bn=mr[4],Fi=mr[5],Ii=Lt==null?void 0:Lt.x,Ki=ze.useState(0),Wi=(0,Ve.Z)(Ki,2),Hi=Wi[0],hi=Wi[1],Li=(0,an.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},Wt),rr),{},{expandable:!!rr.expandedRowRender,columnTitle:rr.columnTitle,expandedKeys:nr,getRowKey:Dn,onTriggerExpand:Fi,expandIcon:wr,expandIconColumnIndex:rr.expandIconColumnIndex,direction:Gn,scrollWidth:di&&$n&&typeof Ii=="number"?Ii:null,clientWidth:Hi}),di?jn:null),pr=(0,Ve.Z)(Li,4),Jn=pr[0],ni=pr[1],Ui=pr[2],or=pr[3],br=Ui!=null?Ui:Ii,co=ze.useMemo(function(){return{columns:Jn,flattenColumns:ni}},[Jn,ni]),mo=ze.useRef(),To=ze.useRef(),qr=ze.useRef(),ta=ze.useRef();ze.useImperativeHandle(mn,function(){return{nativeElement:mo.current,scrollTo:function(Yo){var Ca;if(qr.current instanceof HTMLElement){var es=Yo.index,Xa=Yo.top,kl=Yo.key;if(fn(Xa)){var ml;(ml=qr.current)===null||ml===void 0||ml.scrollTo({top:Xa})}else{var jo,yo=kl!=null?kl:Dn(Rn[es]);(jo=qr.current.querySelector('[data-row-key="'.concat(yo,'"]')))===null||jo===void 0||jo.scrollIntoView()}}else(Ca=qr.current)!==null&&Ca!==void 0&&Ca.scrollTo&&qr.current.scrollTo(Yo)}}});var Fo=ze.useRef(),ar=ze.useState(!1),Ir=(0,Ve.Z)(ar,2),bo=Ir[0],Zo=Ir[1],Ko=ze.useState(!1),Io=(0,Ve.Z)(Ko,2),Eo=Io[0],ia=Io[1],ma=ze.useState(new Map),Oo=(0,Ve.Z)(ma,2),Da=Oo[0],Kr=Oo[1],so=He(ni),uo=so.map(function(Bo){return Da.get(Bo)}),Do=ze.useMemo(function(){return uo},[uo.join("_")]),ko=Fr(Do,ni,Gn),Ea=Lt&&jt(Lt.y),xr=Lt&&jt(br)||!!rr.fixed,ir=xr&&ni.some(function(Bo){var Yo=Bo.fixed;return Yo}),kr=ze.useRef(),yr=In(pt,je),ui=yr.isSticky,_o=yr.offsetHeader,St=yr.offsetSummary,Cn=yr.offsetScroll,ja=yr.stickyClassName,za=yr.container,da=ze.useMemo(function(){return Mn==null?void 0:Mn(Rn)},[Mn,Rn]),ca=(Ea||ui)&&ze.isValidElement(da)&&da.type===tt&&da.props.fixed,Ga,Na,Zs;Ea&&(Na={overflowY:Ln?"scroll":"auto",maxHeight:Lt.y}),xr&&(Ga={overflowX:"auto"},Ea||(Na={overflowY:"hidden"}),Zs={width:br===!0?"auto":br,minWidth:"100%"});var aa=ze.useCallback(function(Bo,Yo){Kr(function(Ca){if(Ca.get(Bo)!==Yo){var es=new Map(Ca);return es.set(Bo,Yo),es}return Ca})},[]),Wr=zi(null),Va=(0,Ve.Z)(Wr,2),$a=Va[0],sa=Va[1];function vo(Bo,Yo){Yo&&(typeof Yo=="function"?Yo(Bo):Yo.scrollLeft!==Bo&&(Yo.scrollLeft=Bo,Yo.scrollLeft!==Bo&&setTimeout(function(){Yo.scrollLeft=Bo},0)))}var ga=(0,ut.Z)(function(Bo){var Yo=Bo.currentTarget,Ca=Bo.scrollLeft,es=Gn==="rtl",Xa=typeof Ca=="number"?Ca:Yo.scrollLeft,kl=Yo||$i;if(!sa()||sa()===kl){var ml;$a(kl),vo(Xa,To.current),vo(Xa,qr.current),vo(Xa,Fo.current),vo(Xa,(ml=kr.current)===null||ml===void 0?void 0:ml.setScrollLeft)}var jo=Yo||To.current;if(jo){var yo=di&&$n&&typeof br=="number"?br:jo.scrollWidth,_a=jo.clientWidth;if(yo===_a){Zo(!1),ia(!1);return}es?(Zo(-Xa<yo-_a),ia(-Xa>0)):(Zo(Xa>0),ia(Xa<yo-_a))}}),ls=(0,ut.Z)(function(Bo){ga(Bo),sn==null||sn(Bo)}),oa=function(){if(xr&&qr.current){var Yo;ga({currentTarget:(0,ti.bn)(qr.current),scrollLeft:(Yo=qr.current)===null||Yo===void 0?void 0:Yo.scrollLeft})}else Zo(!1),ia(!1)},us=function(Yo){var Ca,es=Yo.width;(Ca=kr.current)===null||Ca===void 0||Ca.checkScrollBarVisible();var Xa=mo.current?mo.current.offsetWidth:es;di&&gi&&mo.current&&(Xa=gi(mo.current,Xa)||Xa),Xa!==Hi&&(oa(),hi(Xa))},Ta=ze.useRef(!1);ze.useEffect(function(){Ta.current&&oa()},[xr,Je,Jn.length]),ze.useEffect(function(){Ta.current=!0},[]);var bl=ze.useState(0),Go=(0,Ve.Z)(bl,2),Aa=Go[0],Ro=Go[1],qo=ze.useState(!0),ua=(0,Ve.Z)(qo,2),pa=ua[0],Jo=ua[1];(0,nt.Z)(function(){(!$n||!di)&&(qr.current instanceof Element?Ro((0,nn.o)(qr.current).width):Ro((0,nn.o)(ta.current).width)),Jo((0,kt.G)("position","sticky"))},[]),ze.useEffect(function(){di&&gn&&(gn.body.current=qr.current)});var fl=ze.useCallback(function(Bo){return ze.createElement(ze.Fragment,null,ze.createElement(vr,Bo),ca==="top"&&ze.createElement($t,Bo,da))},[ca,da]),_r=ze.useCallback(function(Bo){return ze.createElement($t,Bo,da)},[da]),pu=vi(["table"],"table"),Ao=ze.useMemo(function(){return on||(ir?br==="max-content"?"auto":"fixed":Ea||ui||ni.some(function(Bo){var Yo=Bo.ellipsis;return Yo})?"fixed":"auto")},[Ea,ir,ni,on,ui]),Gl,Qs={colWidths:Do,columCount:ni.length,stickyOffsets:ko,onHeaderRow:qt,fixHeader:Ea,scroll:Lt},Dl=ze.useMemo(function(){return Ln?null:typeof Ct=="function"?Ct():Ct},[Ln,Ct]),mu=ze.createElement(ki,{data:Rn,measureColumnWidth:Ea||xr||ui}),vu=ze.createElement(io,{colWidths:ni.map(function(Bo){var Yo=Bo.width;return Yo}),columns:ni}),Ws=ke!=null?ze.createElement("caption",{className:"".concat(je,"-caption")},ke):void 0,Vl=(0,hn.Z)(Wt,{data:!0}),Uo=(0,hn.Z)(Wt,{aria:!0});if(Ea||ui){var Hs;typeof yi=="function"?(Hs=yi(Rn,{scrollbarSize:Aa,ref:qr,onScroll:ga}),Qs.colWidths=ni.map(function(Bo,Yo){var Ca=Bo.width,es=Yo===ni.length-1?Ca-Aa:Ca;return typeof es=="number"&&!Number.isNaN(es)?es:0})):Hs=ze.createElement("div",{style:(0,Ie.Z)((0,Ie.Z)({},Ga),Na),onScroll:ls,ref:qr,className:xt()("".concat(je,"-body"))},ze.createElement(pu,(0,Me.Z)({style:(0,Ie.Z)((0,Ie.Z)({},Zs),{},{tableLayout:Ao})},Uo),Ws,vu,mu,!ca&&da&&ze.createElement($t,{stickyOffsets:ko,flattenColumns:ni},da)));var yu=(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({noData:!Rn.length,maxContentScroll:xr&&br==="max-content"},Qs),co),{},{direction:Gn,stickyClassName:ja,onScroll:ga});Gl=ze.createElement(ze.Fragment,null,Xe!==!1&&ze.createElement(Xn,(0,Me.Z)({},yu,{stickyTopOffset:_o,className:"".concat(je,"-header"),ref:To}),fl),Hs,ca&&ca!=="top"&&ze.createElement(Xn,(0,Me.Z)({},yu,{stickyBottomOffset:St,className:"".concat(je,"-summary"),ref:Fo}),_r),ui&&qr.current&&qr.current instanceof Element&&ze.createElement(Ri,{ref:kr,offsetScroll:Cn,scrollBodyRef:qr,onScroll:ga,container:za,direction:Gn}))}else Gl=ze.createElement("div",{style:(0,Ie.Z)((0,Ie.Z)({},Ga),Na),className:xt()("".concat(je,"-content")),onScroll:ga,ref:qr},ze.createElement(pu,(0,Me.Z)({style:(0,Ie.Z)((0,Ie.Z)({},Zs),{},{tableLayout:Ao})},Uo),Ws,vu,Xe!==!1&&ze.createElement(vr,(0,Me.Z)({},Qs,co)),mu,da&&ze.createElement($t,{stickyOffsets:ko,flattenColumns:ni},da)));var gl=ze.createElement("div",(0,Me.Z)({className:xt()(je,Qn,(0,Qe.Z)((0,Qe.Z)((0,Qe.Z)((0,Qe.Z)((0,Qe.Z)((0,Qe.Z)((0,Qe.Z)((0,Qe.Z)((0,Qe.Z)((0,Qe.Z)({},"".concat(je,"-rtl"),Gn==="rtl"),"".concat(je,"-ping-left"),bo),"".concat(je,"-ping-right"),Eo),"".concat(je,"-layout-fixed"),on==="fixed"),"".concat(je,"-fixed-header"),Ea),"".concat(je,"-fixed-column"),ir),"".concat(je,"-fixed-column-gapped"),ir&&or),"".concat(je,"-scroll-horizontal"),xr),"".concat(je,"-has-fix-left"),ni[0]&&ni[0].fixed),"".concat(je,"-has-fix-right"),ni[ni.length-1]&&ni[ni.length-1].fixed==="right")),style:qi,id:ct,ref:mo},Vl),vn&&ze.createElement(lt,{className:"".concat(je,"-title")},vn(Rn)),ze.createElement("div",{ref:ta,className:"".concat(je,"-container")},Gl),dn&&ze.createElement(lt,{className:"".concat(je,"-footer")},dn(Rn)));xr&&(gl=ze.createElement(en.Z,{onResize:us},gl));var Du=Zt(ni,ko,Gn),pl=ze.useMemo(function(){return{scrollX:br,prefixCls:je,getComponent:vi,scrollbarSize:Aa,direction:Gn,fixedInfoList:Du,isSticky:ui,supportSticky:pa,componentWidth:Hi,fixHeader:Ea,fixColumn:ir,horizonScroll:xr,tableLayout:Ao,rowClassName:Ai,expandedRowClassName:rr.expandedRowClassName,expandIcon:wr,expandableType:fr,expandRowByClick:rr.expandRowByClick,expandedRowRender:rr.expandedRowRender,onTriggerExpand:Fi,expandIconColumnIndex:rr.expandIconColumnIndex,indentSize:rr.indentSize,allColumnsFixedLeft:ni.every(function(Bo){return Bo.fixed==="left"}),emptyNode:Dl,columns:Jn,flattenColumns:ni,onColumnResize:aa,hoverStartRow:gr,hoverEndRow:Ar,onHover:ur,rowExpandable:rr.rowExpandable,onRow:Xt,getRowKey:Dn,expandedKeys:nr,childrenColumnName:bn,rowHoverable:Wn}},[br,je,vi,Aa,Gn,Du,ui,pa,Hi,Ea,ir,xr,Ao,Ai,rr.expandedRowClassName,wr,fr,rr.expandRowByClick,rr.expandedRowRender,Fi,rr.expandIconColumnIndex,rr.indentSize,Dl,Jn,ni,aa,gr,Ar,ur,rr.rowExpandable,Xt,Dn,nr,bn,Wn]);return ze.createElement(Ce.Provider,{value:pl},gl)}var Er=ze.forwardRef(Mi);function Hr(Qt){return se(Er,Qt)}var wo=Hr();wo.EXPAND_COLUMN=me.w,wo.INTERNAL_HOOKS=me.R,wo.Column=tr,wo.ColumnGroup=Ot,wo.Summary=Sn;var Kt=wo,Oi=Pe(6790),Nr=yt(null),_i=yt(null);function Jr(Qt,mn,Wt){var je=mn||1;return Wt[Qt+je]-(Wt[Qt]||0)}function Zr(Qt){var mn=Qt.rowInfo,Wt=Qt.column,je=Qt.colIndex,Qn=Qt.indent,Ai=Qt.index,qi=Qt.component,Je=Qt.renderIndex,Yt=Qt.record,Lt=Qt.style,on=Qt.className,Gn=Qt.inverse,vn=Qt.getHeight,dn=Wt.render,Mn=Wt.dataIndex,ke=Wt.className,ct=Wt.width,Xe=ot(_i,["columnsOffset"]),Pt=Xe.columnsOffset,Ct=ji(mn,Wt,je,Qn,Ai),Xt=Ct.key,qt=Ct.fixedInfo,sn=Ct.appendCellNode,Tn=Ct.additionalCellProps,jn=Tn.style,gn=Tn.colSpan,$n=gn===void 0?1:gn,gi=Tn.rowSpan,pt=gi===void 0?1:gi,Vn=je-1,Wn=Jr(Vn,$n,Pt),Rn=$n>1?ct-Wn:0,Ln=(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},jn),Lt),{},{flex:"0 0 ".concat(Wn,"px"),width:"".concat(Wn,"px"),marginRight:Rn,pointerEvents:"auto"}),di=ze.useMemo(function(){return Gn?pt<=1:$n===0||pt===0||pt>1},[pt,$n,Gn]);di?Ln.visibility="hidden":Gn&&(Ln.height=vn==null?void 0:vn(pt));var vi=di?function(){return null}:dn,Dn={};return(pt===0||$n===0)&&(Dn.rowSpan=1,Dn.colSpan=1),ze.createElement(zt,(0,Me.Z)({className:xt()(ke,on),ellipsis:Wt.ellipsis,align:Wt.align,scope:Wt.rowScope,component:qi,prefixCls:mn.prefixCls,key:Xt,record:Yt,index:Ai,renderIndex:Je,dataIndex:Mn,render:vi,shouldCellUpdate:Wt.shouldCellUpdate},qt,{appendNode:sn,additionalProps:(0,Ie.Z)((0,Ie.Z)({},Tn),{},{style:Ln},Dn)}))}var Xr=Zr,Rr=["data","index","className","rowKey","style","extra","getHeight"],Gr=ze.forwardRef(function(Qt,mn){var Wt=Qt.data,je=Qt.index,Qn=Qt.className,Ai=Qt.rowKey,qi=Qt.style,Je=Qt.extra,Yt=Qt.getHeight,Lt=(0,xe.Z)(Qt,Rr),on=Wt.record,Gn=Wt.indent,vn=Wt.index,dn=ot(Ce,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Mn=dn.scrollX,ke=dn.flattenColumns,ct=dn.prefixCls,Xe=dn.fixColumn,Pt=dn.componentWidth,Ct=ot(Nr,["getComponent"]),Xt=Ct.getComponent,qt=_n(on,Ai,je,Gn),sn=Xt(["body","row"],"div"),Tn=Xt(["body","cell"],"div"),jn=qt.rowSupportExpand,gn=qt.expanded,$n=qt.rowProps,gi=qt.expandedRowRender,pt=qt.expandedRowClassName,Vn;if(jn&&gn){var Wn=gi(on,je,Gn+1,gn),Rn=pi(pt,on,je,Gn),Ln={};Xe&&(Ln={style:(0,Qe.Z)({},"--virtual-width","".concat(Pt,"px"))});var di="".concat(ct,"-expanded-row-cell");Vn=ze.createElement(sn,{className:xt()("".concat(ct,"-expanded-row"),"".concat(ct,"-expanded-row-level-").concat(Gn+1),Rn)},ze.createElement(zt,{component:Tn,prefixCls:ct,className:xt()(di,(0,Qe.Z)({},"".concat(di,"-fixed"),Xe)),additionalProps:Ln},Wn))}var vi=(0,Ie.Z)((0,Ie.Z)({},qi),{},{width:Mn});Je&&(vi.position="absolute",vi.pointerEvents="none");var Dn=ze.createElement(sn,(0,Me.Z)({},$n,Lt,{"data-row-key":Ai,ref:jn?null:mn,className:xt()(Qn,"".concat(ct,"-row"),$n==null?void 0:$n.className,(0,Qe.Z)({},"".concat(ct,"-row-extra"),Je)),style:(0,Ie.Z)((0,Ie.Z)({},vi),$n==null?void 0:$n.style)}),ke.map(function(yi,xi){return ze.createElement(Xr,{key:xi,component:Tn,rowInfo:qt,column:yi,colIndex:xi,indent:Gn,index:je,renderIndex:vn,record:on,inverse:Je,getHeight:Yt})}));return jn?ze.createElement("div",{ref:mn},Dn,Vn):Dn}),oo=de(Gr),An=oo,ho=ze.forwardRef(function(Qt,mn){var Wt=Qt.data,je=Qt.onScroll,Qn=ot(Ce,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),Ai=Qn.flattenColumns,qi=Qn.onColumnResize,Je=Qn.getRowKey,Yt=Qn.expandedKeys,Lt=Qn.prefixCls,on=Qn.childrenColumnName,Gn=Qn.scrollX,vn=Qn.direction,dn=ot(Nr),Mn=dn.sticky,ke=dn.scrollY,ct=dn.listItemHeight,Xe=dn.getComponent,Pt=dn.onScroll,Ct=ze.useRef(),Xt=fi(Wt,on,Yt,Je),qt=ze.useMemo(function(){var Vn=0;return Ai.map(function(Wn){var Rn=Wn.width,Ln=Wn.key;return Vn+=Rn,[Ln,Rn,Vn]})},[Ai]),sn=ze.useMemo(function(){return qt.map(function(Vn){return Vn[2]})},[qt]);ze.useEffect(function(){qt.forEach(function(Vn){var Wn=(0,Ve.Z)(Vn,2),Rn=Wn[0],Ln=Wn[1];qi(Rn,Ln)})},[qt]),ze.useImperativeHandle(mn,function(){var Vn,Wn={scrollTo:function(Ln){var di;(di=Ct.current)===null||di===void 0||di.scrollTo(Ln)},nativeElement:(Vn=Ct.current)===null||Vn===void 0?void 0:Vn.nativeElement};return Object.defineProperty(Wn,"scrollLeft",{get:function(){var Ln;return((Ln=Ct.current)===null||Ln===void 0?void 0:Ln.getScrollInfo().x)||0},set:function(Ln){var di;(di=Ct.current)===null||di===void 0||di.scrollTo({left:Ln})}}),Wn});var Tn=function(Wn,Rn){var Ln,di=(Ln=Xt[Rn])===null||Ln===void 0?void 0:Ln.record,vi=Wn.onCell;if(vi){var Dn,yi=vi(di,Rn);return(Dn=yi==null?void 0:yi.rowSpan)!==null&&Dn!==void 0?Dn:1}return 1},jn=function(Wn){var Rn=Wn.start,Ln=Wn.end,di=Wn.getSize,vi=Wn.offsetY;if(Ln<0)return null;for(var Dn=Ai.filter(function(wr){return Tn(wr,Rn)===0}),yi=Rn,xi=function(bn){if(Dn=Dn.filter(function(Fi){return Tn(Fi,bn)===0}),!Dn.length)return yi=bn,1},wi=Rn;wi>=0&&!xi(wi);wi-=1);for(var gr=Ai.filter(function(wr){return Tn(wr,Ln)!==1}),Ar=Ln,ur=function(bn){if(gr=gr.filter(function(Fi){return Tn(Fi,bn)!==1}),!gr.length)return Ar=Math.max(bn-1,Ln),1},ri=Ln;ri<Xt.length&&!ur(ri);ri+=1);for(var mr=[],rr=function(bn){var Fi=Xt[bn];if(!Fi)return 1;Ai.some(function(Ii){return Tn(Ii,bn)>1})&&mr.push(bn)},fr=yi;fr<=Ar;fr+=1)rr(fr);var nr=mr.map(function(wr){var bn=Xt[wr],Fi=Je(bn.record,wr),Ii=function(Hi){var hi=wr+Hi-1,Li=Je(Xt[hi].record,hi),pr=di(Fi,Li);return pr.bottom-pr.top},Ki=di(Fi);return ze.createElement(An,{key:wr,data:bn,rowKey:Fi,index:wr,style:{top:-vi+Ki.top},extra:!0,getHeight:Ii})});return nr},gn=ze.useMemo(function(){return{columnsOffset:sn}},[sn]),$n="".concat(Lt,"-tbody"),gi=Xe(["body","wrapper"]),pt={};return Mn&&(pt.position="sticky",pt.bottom=0,(0,Be.Z)(Mn)==="object"&&Mn.offsetScroll&&(pt.bottom=Mn.offsetScroll)),ze.createElement(_i.Provider,{value:gn},ze.createElement(Oi.Z,{fullHeight:!1,ref:Ct,prefixCls:"".concat($n,"-virtual"),styles:{horizontalScrollBar:pt},className:$n,height:ke,itemHeight:ct||24,data:Xt,itemKey:function(Wn){return Je(Wn.record)},component:gi,scrollWidth:Gn,direction:vn,onVirtualScroll:function(Wn){var Rn,Ln=Wn.x;je({currentTarget:(Rn=Ct.current)===null||Rn===void 0?void 0:Rn.nativeElement,scrollLeft:Ln})},onScroll:Pt,extraRender:jn},function(Vn,Wn,Rn){var Ln=Je(Vn.record,Wn);return ze.createElement(An,{data:Vn,rowKey:Ln,index:Wn,style:Rn.style})}))}),Fn=de(ho),Kn=Fn,zr=function(mn,Wt){var je=Wt.ref,Qn=Wt.onScroll;return ze.createElement(Kn,{ref:je,data:mn,onScroll:Qn})};function Tr(Qt,mn){var Wt=Qt.data,je=Qt.columns,Qn=Qt.scroll,Ai=Qt.sticky,qi=Qt.prefixCls,Je=qi===void 0?qn:qi,Yt=Qt.className,Lt=Qt.listItemHeight,on=Qt.components,Gn=Qt.onScroll,vn=Qn||{},dn=vn.x,Mn=vn.y;typeof dn!="number"&&(dn=1),typeof Mn!="number"&&(Mn=500);var ke=(0,wn.zX)(function(Pt,Ct){return(0,bt.Z)(on,Pt)||Ct}),ct=(0,wn.zX)(Gn),Xe=ze.useMemo(function(){return{sticky:Ai,scrollY:Mn,listItemHeight:Lt,getComponent:ke,onScroll:ct}},[Ai,Mn,Lt,ke,ct]);return ze.createElement(Nr.Provider,{value:Xe},ze.createElement(Kt,(0,Me.Z)({},Qt,{className:xt()(Yt,"".concat(Je,"-virtual")),scroll:(0,Ie.Z)((0,Ie.Z)({},Qn),{},{x:dn}),components:(0,Ie.Z)((0,Ie.Z)({},on),{},{body:Wt!=null&&Wt.length?zr:void 0}),columns:je,internalHooks:me.R,tailor:!0,ref:mn})))}var Co=ze.forwardRef(Tr);function Yr(Qt){return se(Co,Qt)}var Or=Yr(),No=null},54451:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{g:function(){return ze},v:function(){return it}});var me=Pe(98506),Ve=Pe(33346),ut=Pe(48736),nt=["expandable"],it="RC_TABLE_INTERNAL_COL_DEFINE";function ze(Ue){var yt=Ue.expandable,ot=(0,Ve.Z)(Ue,nt),Me;return"expandable"in Ue?Me=(0,me.Z)((0,me.Z)({},ot),yt):Me=ot,Me.showExpandColumn===!1&&(Me.expandIconColumnIndex=-1),Me}},22711:function(cn,Jt,Pe){"use strict";Pe.r(Jt),Pe.d(Jt,{ResizableTextArea:function(){return rt},default:function(){return At}});var me=Pe(67711),Ve=Pe(52873),ut=Pe(98506),nt=Pe(15142),it=Pe(16886),ze=Pe(33346),Ue=Pe(92310),yt=Pe.n(Ue),ot=Pe(36901),Me=Pe(66003),Et=Pe(30292),_e=Pe(18929),ht=Pe(59301),Ee=Pe(26420),ne=Pe(29301),ee=Pe(34280),ue=Pe(16089),se=`
|
|
min-height:0 !important;
|
|
max-height:none !important;
|
|
height:0 !important;
|
|
visibility:hidden !important;
|
|
overflow:hidden !important;
|
|
position:absolute !important;
|
|
z-index:-1000 !important;
|
|
top:0 !important;
|
|
right:0 !important;
|
|
pointer-events: none !important;
|
|
`,de=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],pe={},ye;function Ce(Tt){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ut=Tt.getAttribute("id")||Tt.getAttribute("data-reactid")||Tt.getAttribute("name");if(Nt&&pe[Ut])return pe[Ut];var st=window.getComputedStyle(Tt),He=st.getPropertyValue("box-sizing")||st.getPropertyValue("-moz-box-sizing")||st.getPropertyValue("-webkit-box-sizing"),jt=parseFloat(st.getPropertyValue("padding-bottom"))+parseFloat(st.getPropertyValue("padding-top")),fn=parseFloat(st.getPropertyValue("border-bottom-width"))+parseFloat(st.getPropertyValue("border-top-width")),Bt=de.map(function(It){return"".concat(It,":").concat(st.getPropertyValue(It))}).join(";"),Ft={sizingStyle:Bt,paddingSize:jt,borderSize:fn,boxSizing:He};return Nt&&Ut&&(pe[Ut]=Ft),Ft}function Re(Tt){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,st=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ye||(ye=document.createElement("textarea"),ye.setAttribute("tab-index","-1"),ye.setAttribute("aria-hidden","true"),ye.setAttribute("name","hiddenTextarea"),document.body.appendChild(ye)),Tt.getAttribute("wrap")?ye.setAttribute("wrap",Tt.getAttribute("wrap")):ye.removeAttribute("wrap");var He=Ce(Tt,Nt),jt=He.paddingSize,fn=He.borderSize,Bt=He.boxSizing,Ft=He.sizingStyle;ye.setAttribute("style","".concat(Ft,";").concat(se)),ye.value=Tt.value||Tt.placeholder||"";var It=void 0,Vt=void 0,wn,Dt=ye.scrollHeight;if(Bt==="border-box"?Dt+=fn:Bt==="content-box"&&(Dt-=jt),Ut!==null||st!==null){ye.value=" ";var vt=ye.scrollHeight-jt;Ut!==null&&(It=vt*Ut,Bt==="border-box"&&(It=It+jt+fn),Dt=Math.max(It,Dt)),st!==null&&(Vt=vt*st,Bt==="border-box"&&(Vt=Vt+jt+fn),wn=Dt>Vt?"":"hidden",Dt=Math.min(Vt,Dt))}var zt={height:Dt,overflowY:wn,resize:"none"};return It&&(zt.minHeight=It),Vt&&(zt.maxHeight=Vt),zt}var Oe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],We=0,Be=1,Ie=2,Qe=ht.forwardRef(function(Tt,Nt){var Ut=Tt,st=Ut.prefixCls,He=Ut.defaultValue,jt=Ut.value,fn=Ut.autoSize,Bt=Ut.onResize,Ft=Ut.className,It=Ut.style,Vt=Ut.disabled,wn=Ut.onChange,Dt=Ut.onInternalAutoSize,vt=(0,ze.Z)(Ut,Oe),zt=(0,_e.Z)(He,{value:jt,postState:function(lr){return lr!=null?lr:""}}),En=(0,it.Z)(zt,2),kn=En[0],Ze=En[1],Fe=function(lr){Ze(lr.target.value),wn==null||wn(lr)},xe=ht.useRef();ht.useImperativeHandle(Nt,function(){return{textArea:xe.current}});var Te=ht.useMemo(function(){return fn&&(0,Ee.Z)(fn)==="object"?[fn.minRows,fn.maxRows]:[]},[fn]),Ye=(0,it.Z)(Te,2),De=Ye[0],tt=Ye[1],Ht=!!fn,$t=function(){try{if(document.activeElement===xe.current){var lr=xe.current,Lr=lr.selectionStart,Di=lr.selectionEnd,cr=lr.scrollTop;xe.current.setSelectionRange(Lr,Di),xe.current.scrollTop=cr}}catch(to){}},Sn=ht.useState(Ie),en=(0,it.Z)(Sn,2),kt=en[0],nn=en[1],hn=ht.useState(),zn=(0,it.Z)(hn,2),fi=zn[0],_n=zn[1],Pi=function(){nn(We)};(0,ee.Z)(function(){Ht&&Pi()},[jt,De,tt,Ht]),(0,ee.Z)(function(){if(kt===We)nn(Be);else if(kt===Be){var Qi=Re(xe.current,!1,De,tt);nn(Ie),_n(Qi)}else $t()},[kt]);var Ci=ht.useRef(),Yn=function(){ue.Z.cancel(Ci.current)},Ei=function(lr){kt===Ie&&(Bt==null||Bt(lr),fn&&(Yn(),Ci.current=(0,ue.Z)(function(){Pi()})))};ht.useEffect(function(){return Yn},[]);var pi=Ht?fi:null,ji=(0,ut.Z)((0,ut.Z)({},It),pi);return(kt===We||kt===Be)&&(ji.overflowY="hidden",ji.overflowX="hidden"),ht.createElement(ne.Z,{onResize:Ei,disabled:!(fn||Bt)},ht.createElement("textarea",(0,me.Z)({},vt,{ref:xe,style:ji,className:yt()(st,Ft,(0,Ve.Z)({},"".concat(st,"-disabled"),Vt)),disabled:Vt,value:kn,onChange:Fe})))}),rt=Qe,xt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],gt=ht.forwardRef(function(Tt,Nt){var Ut,st=Tt.defaultValue,He=Tt.value,jt=Tt.onFocus,fn=Tt.onBlur,Bt=Tt.onChange,Ft=Tt.allowClear,It=Tt.maxLength,Vt=Tt.onCompositionStart,wn=Tt.onCompositionEnd,Dt=Tt.suffix,vt=Tt.prefixCls,zt=vt===void 0?"rc-textarea":vt,En=Tt.showCount,kn=Tt.count,Ze=Tt.className,Fe=Tt.style,xe=Tt.disabled,Te=Tt.hidden,Ye=Tt.classNames,De=Tt.styles,tt=Tt.onResize,Ht=Tt.onClear,$t=Tt.onPressEnter,Sn=Tt.readOnly,en=Tt.autoSize,kt=Tt.onKeyDown,nn=(0,ze.Z)(Tt,xt),hn=(0,_e.Z)(st,{value:He,defaultValue:st}),zn=(0,it.Z)(hn,2),fi=zn[0],_n=zn[1],Pi=fi==null?"":String(fi),Ci=ht.useState(!1),Yn=(0,it.Z)(Ci,2),Ei=Yn[0],pi=Yn[1],ji=ht.useRef(!1),Qi=ht.useState(null),lr=(0,it.Z)(Qi,2),Lr=lr[0],Di=lr[1],cr=(0,ht.useRef)(null),to=(0,ht.useRef)(null),ki=function(){var Vi;return(Vi=to.current)===null||Vi===void 0?void 0:Vi.textArea},no=function(){ki().focus()};(0,ht.useImperativeHandle)(Nt,function(){var In;return{resizableTextArea:to.current,focus:no,blur:function(){ki().blur()},nativeElement:((In=cr.current)===null||In===void 0?void 0:In.nativeElement)||ki()}}),(0,ht.useEffect)(function(){pi(function(In){return!xe&&In})},[xe]);var fo=ht.useState(null),po=(0,it.Z)(fo,2),io=po[0],hr=po[1];ht.useEffect(function(){if(io){var In;(In=ki()).setSelectionRange.apply(In,(0,nt.Z)(io))}},[io]);var ao=(0,Me.Z)(kn,En),be=(Ut=ao.max)!==null&&Ut!==void 0?Ut:It,Un=Number(be)>0,Xn=ao.strategy(Pi),ci=!!be&&Xn>be,mi=function(Vi,Fr){var ii=Fr;!ji.current&&ao.exceedFormatter&&ao.max&&ao.strategy(Fr)>ao.max&&(ii=ao.exceedFormatter(Fr,{max:ao.max}),Fr!==ii&&hr([ki().selectionStart||0,ki().selectionEnd||0])),_n(ii),(0,Et.rJ)(Vi.currentTarget,Vi,Bt,ii)},ei=function(Vi){ji.current=!0,Vt==null||Vt(Vi)},Gi=function(Vi){ji.current=!1,mi(Vi,Vi.currentTarget.value),wn==null||wn(Vi)},vr=function(Vi){mi(Vi,Vi.target.value)},an=function(Vi){Vi.key==="Enter"&&$t&&$t(Vi),kt==null||kt(Vi)},ln=function(Vi){pi(!0),jt==null||jt(Vi)},Zt=function(Vi){pi(!1),fn==null||fn(Vi)},pn=function(Vi){_n(""),no(),(0,Et.rJ)(ki(),Vi,Bt)},zi=Dt,Ti;ao.show&&(ao.showFormatter?Ti=ao.showFormatter({value:Pi,count:Xn,maxLength:be}):Ti="".concat(Xn).concat(Un?" / ".concat(be):""),zi=ht.createElement(ht.Fragment,null,zi,ht.createElement("span",{className:yt()("".concat(zt,"-data-count"),Ye==null?void 0:Ye.count),style:De==null?void 0:De.count},Ti)));var dr=function(Vi){var Fr;tt==null||tt(Vi),(Fr=ki())!==null&&Fr!==void 0&&Fr.style.height&&Di(!0)},un=!en&&!En&&!Ft;return ht.createElement(ot.BaseInput,{ref:cr,value:Pi,allowClear:Ft,handleReset:pn,suffix:zi,prefixCls:zt,classNames:(0,ut.Z)((0,ut.Z)({},Ye),{},{affixWrapper:yt()(Ye==null?void 0:Ye.affixWrapper,(0,Ve.Z)((0,Ve.Z)({},"".concat(zt,"-show-count"),En),"".concat(zt,"-textarea-allow-clear"),Ft))}),disabled:xe,focused:Ei,className:yt()(Ze,ci&&"".concat(zt,"-out-of-range")),style:(0,ut.Z)((0,ut.Z)({},Fe),Lr&&!un?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ti=="string"?Ti:void 0}},hidden:Te,readOnly:Sn,onClear:Ht},ht.createElement(rt,(0,me.Z)({},nn,{autoSize:en,maxLength:It,onKeyDown:an,onChange:vr,onFocus:ln,onBlur:Zt,onCompositionStart:ei,onCompositionEnd:Gi,className:yt()(Ye==null?void 0:Ye.textarea),style:(0,ut.Z)((0,ut.Z)({},De==null?void 0:De.textarea),{},{resize:Fe==null?void 0:Fe.resize}),disabled:xe,prefixCls:zt,onResize:dr,ref:to,readOnly:Sn})))}),bt=gt,At=bt},639:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Z:function(){return pe}});var me=Pe(67711),Ve=Pe(52873),ut=Pe(98506),nt=Pe(16886),it=Pe(33346),ze=Pe(59301),Ue=Pe(92310),yt=Pe.n(Ue),ot=Pe(26112),Me=Pe(30699),Et=function(Ce){for(var Re=Ce.prefixCls,Oe=Ce.level,We=Ce.isStart,Be=Ce.isEnd,Ie="".concat(Re,"-indent-unit"),Qe=[],rt=0;rt<Oe;rt+=1)Qe.push(ze.createElement("span",{key:rt,className:yt()(Ie,(0,Ve.Z)((0,Ve.Z)({},"".concat(Ie,"-start"),We[rt]),"".concat(Ie,"-end"),Be[rt]))}));return ze.createElement("span",{"aria-hidden":"true",className:"".concat(Re,"-indent")},Qe)},_e=ze.memo(Et),ht=Pe(65065),Ee=Pe(34061),ne=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ee="open",ue="close",se="---",de=function(Ce){var Re,Oe,We,Be=Ce.eventKey,Ie=Ce.className,Qe=Ce.style,rt=Ce.dragOver,xt=Ce.dragOverGapTop,gt=Ce.dragOverGapBottom,bt=Ce.isLeaf,At=Ce.isStart,Tt=Ce.isEnd,Nt=Ce.expanded,Ut=Ce.selected,st=Ce.checked,He=Ce.halfChecked,jt=Ce.loading,fn=Ce.domRef,Bt=Ce.active,Ft=Ce.data,It=Ce.onMouseMove,Vt=Ce.selectable,wn=(0,it.Z)(Ce,ne),Dt=ze.useContext(Me.k),vt=ze.useContext(Me.y),zt=ze.useRef(null),En=ze.useState(!1),kn=(0,nt.Z)(En,2),Ze=kn[0],Fe=kn[1],xe=!!(Dt.disabled||Ce.disabled||(Re=vt.nodeDisabled)!==null&&Re!==void 0&&Re.call(vt,Ft)),Te=ze.useMemo(function(){return!Dt.checkable||Ce.checkable===!1?!1:Dt.checkable},[Dt.checkable,Ce.checkable]),Ye=function(Xn){xe||Dt.onNodeSelect(Xn,(0,Ee.F)(Ce))},De=function(Xn){xe||!Te||Ce.disableCheckbox||Dt.onNodeCheck(Xn,(0,Ee.F)(Ce),!st)},tt=ze.useMemo(function(){return typeof Vt=="boolean"?Vt:Dt.selectable},[Vt,Dt.selectable]),Ht=function(Xn){Dt.onNodeClick(Xn,(0,Ee.F)(Ce)),tt?Ye(Xn):De(Xn)},$t=function(Xn){Dt.onNodeDoubleClick(Xn,(0,Ee.F)(Ce))},Sn=function(Xn){Dt.onNodeMouseEnter(Xn,(0,Ee.F)(Ce))},en=function(Xn){Dt.onNodeMouseLeave(Xn,(0,Ee.F)(Ce))},kt=function(Xn){Dt.onNodeContextMenu(Xn,(0,Ee.F)(Ce))},nn=ze.useMemo(function(){return!!(Dt.draggable&&(!Dt.draggable.nodeDraggable||Dt.draggable.nodeDraggable(Ft)))},[Dt.draggable,Ft]),hn=function(Xn){Xn.stopPropagation(),Fe(!0),Dt.onNodeDragStart(Xn,Ce);try{Xn.dataTransfer.setData("text/plain","")}catch(ci){}},zn=function(Xn){Xn.preventDefault(),Xn.stopPropagation(),Dt.onNodeDragEnter(Xn,Ce)},fi=function(Xn){Xn.preventDefault(),Xn.stopPropagation(),Dt.onNodeDragOver(Xn,Ce)},_n=function(Xn){Xn.stopPropagation(),Dt.onNodeDragLeave(Xn,Ce)},Pi=function(Xn){Xn.stopPropagation(),Fe(!1),Dt.onNodeDragEnd(Xn,Ce)},Ci=function(Xn){Xn.preventDefault(),Xn.stopPropagation(),Fe(!1),Dt.onNodeDrop(Xn,Ce)},Yn=function(Xn){jt||Dt.onNodeExpand(Xn,(0,Ee.F)(Ce))},Ei=ze.useMemo(function(){var Un=(0,ht.Z)(Dt.keyEntities,Be)||{},Xn=Un.children;return!!(Xn||[]).length},[Dt.keyEntities,Be]),pi=ze.useMemo(function(){return bt===!1?!1:bt||!Dt.loadData&&!Ei||Dt.loadData&&Ce.loaded&&!Ei},[bt,Dt.loadData,Ei,Ce.loaded]);ze.useEffect(function(){jt||typeof Dt.loadData=="function"&&Nt&&!pi&&!Ce.loaded&&Dt.onNodeLoad((0,Ee.F)(Ce))},[jt,Dt.loadData,Dt.onNodeLoad,Nt,pi,Ce]);var ji=ze.useMemo(function(){var Un;return(Un=Dt.draggable)!==null&&Un!==void 0&&Un.icon?ze.createElement("span",{className:"".concat(Dt.prefixCls,"-draggable-icon")},Dt.draggable.icon):null},[Dt.draggable]),Qi=function(Xn){var ci=Ce.switcherIcon||Dt.switcherIcon;return typeof ci=="function"?ci((0,ut.Z)((0,ut.Z)({},Ce),{},{isLeaf:Xn})):ci},lr=function(){if(pi){var Xn=Qi(!0);return Xn!==!1?ze.createElement("span",{className:yt()("".concat(Dt.prefixCls,"-switcher"),"".concat(Dt.prefixCls,"-switcher-noop"))},Xn):null}var ci=Qi(!1);return ci!==!1?ze.createElement("span",{onClick:Yn,className:yt()("".concat(Dt.prefixCls,"-switcher"),"".concat(Dt.prefixCls,"-switcher_").concat(Nt?ee:ue))},ci):null},Lr=ze.useMemo(function(){if(!Te)return null;var Un=typeof Te!="boolean"?Te:null;return ze.createElement("span",{className:yt()("".concat(Dt.prefixCls,"-checkbox"),(0,Ve.Z)((0,Ve.Z)((0,Ve.Z)({},"".concat(Dt.prefixCls,"-checkbox-checked"),st),"".concat(Dt.prefixCls,"-checkbox-indeterminate"),!st&&He),"".concat(Dt.prefixCls,"-checkbox-disabled"),xe||Ce.disableCheckbox)),onClick:De,role:"checkbox","aria-checked":He?"mixed":st,"aria-disabled":xe||Ce.disableCheckbox,"aria-label":"Select ".concat(typeof Ce.title=="string"?Ce.title:"tree node")},Un)},[Te,st,He,xe,Ce.disableCheckbox,Ce.title]),Di=ze.useMemo(function(){return pi?null:Nt?ee:ue},[pi,Nt]),cr=ze.useMemo(function(){return ze.createElement("span",{className:yt()("".concat(Dt.prefixCls,"-iconEle"),"".concat(Dt.prefixCls,"-icon__").concat(Di||"docu"),(0,Ve.Z)({},"".concat(Dt.prefixCls,"-icon_loading"),jt))})},[Dt.prefixCls,Di,jt]),to=ze.useMemo(function(){var Un=!!Dt.draggable,Xn=!Ce.disabled&&Un&&Dt.dragOverNodeKey===Be;return Xn?Dt.dropIndicatorRender({dropPosition:Dt.dropPosition,dropLevelOffset:Dt.dropLevelOffset,indent:Dt.indent,prefixCls:Dt.prefixCls,direction:Dt.direction}):null},[Dt.dropPosition,Dt.dropLevelOffset,Dt.indent,Dt.prefixCls,Dt.direction,Dt.draggable,Dt.dragOverNodeKey,Dt.dropIndicatorRender]),ki=ze.useMemo(function(){var Un=Ce.title,Xn=Un===void 0?se:Un,ci="".concat(Dt.prefixCls,"-node-content-wrapper"),mi;if(Dt.showIcon){var ei=Ce.icon||Dt.icon;mi=ei?ze.createElement("span",{className:yt()("".concat(Dt.prefixCls,"-iconEle"),"".concat(Dt.prefixCls,"-icon__customize"))},typeof ei=="function"?ei(Ce):ei):cr}else Dt.loadData&&jt&&(mi=cr);var Gi;return typeof Xn=="function"?Gi=Xn(Ft):Dt.titleRender?Gi=Dt.titleRender(Ft):Gi=Xn,ze.createElement("span",{ref:zt,title:typeof Xn=="string"?Xn:"",className:yt()(ci,"".concat(ci,"-").concat(Di||"normal"),(0,Ve.Z)({},"".concat(Dt.prefixCls,"-node-selected"),!xe&&(Ut||Ze))),onMouseEnter:Sn,onMouseLeave:en,onContextMenu:kt,onClick:Ht,onDoubleClick:$t},mi,ze.createElement("span",{className:"".concat(Dt.prefixCls,"-title")},Gi),to)},[Dt.prefixCls,Dt.showIcon,Ce,Dt.icon,cr,Dt.titleRender,Ft,Di,Sn,en,kt,Ht,$t]),no=(0,ot.Z)(wn,{aria:!0,data:!0}),fo=(0,ht.Z)(Dt.keyEntities,Be)||{},po=fo.level,io=Tt[Tt.length-1],hr=!xe&&nn,ao=Dt.draggingNodeKey===Be,be=Vt!==void 0?{"aria-selected":!!Vt}:void 0;return ze.createElement("div",(0,me.Z)({ref:fn,role:"treeitem","aria-expanded":bt?void 0:Nt,className:yt()(Ie,"".concat(Dt.prefixCls,"-treenode"),(We={},(0,Ve.Z)((0,Ve.Z)((0,Ve.Z)((0,Ve.Z)((0,Ve.Z)((0,Ve.Z)((0,Ve.Z)((0,Ve.Z)((0,Ve.Z)((0,Ve.Z)(We,"".concat(Dt.prefixCls,"-treenode-disabled"),xe),"".concat(Dt.prefixCls,"-treenode-switcher-").concat(Nt?"open":"close"),!bt),"".concat(Dt.prefixCls,"-treenode-checkbox-checked"),st),"".concat(Dt.prefixCls,"-treenode-checkbox-indeterminate"),He),"".concat(Dt.prefixCls,"-treenode-selected"),Ut),"".concat(Dt.prefixCls,"-treenode-loading"),jt),"".concat(Dt.prefixCls,"-treenode-active"),Bt),"".concat(Dt.prefixCls,"-treenode-leaf-last"),io),"".concat(Dt.prefixCls,"-treenode-draggable"),nn),"dragging",ao),(0,Ve.Z)((0,Ve.Z)((0,Ve.Z)((0,Ve.Z)((0,Ve.Z)((0,Ve.Z)((0,Ve.Z)(We,"drop-target",Dt.dropTargetKey===Be),"drop-container",Dt.dropContainerKey===Be),"drag-over",!xe&&rt),"drag-over-gap-top",!xe&&xt),"drag-over-gap-bottom",!xe&>),"filter-node",(Oe=Dt.filterTreeNode)===null||Oe===void 0?void 0:Oe.call(Dt,(0,Ee.F)(Ce))),"".concat(Dt.prefixCls,"-treenode-leaf"),pi))),style:Qe,draggable:hr,onDragStart:hr?hn:void 0,onDragEnter:nn?zn:void 0,onDragOver:nn?fi:void 0,onDragLeave:nn?_n:void 0,onDrop:nn?Ci:void 0,onDragEnd:nn?Pi:void 0,onMouseMove:It},be,no),ze.createElement(_e,{prefixCls:Dt.prefixCls,level:po,isStart:At,isEnd:Tt}),ji,lr(),Lr,ki)};de.isTreeNode=1;var pe=de},30699:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{k:function(){return Ve},y:function(){return ut}});var me=Pe(59301),Ve=me.createContext(null),ut=me.createContext({})},71598:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{OF:function(){return Be.Z},y6:function(){return ue.y},ZP:function(){return xe}});var me=Pe(67711),Ve=Pe(26420),ut=Pe(98506),nt=Pe(15142),it=Pe(42573),ze=Pe(58698),Ue=Pe(62437),yt=Pe(74700),ot=Pe(45080),Me=Pe(52873),Et=Pe(92310),_e=Pe.n(Et),ht=Pe(10228),Ee=Pe(26112),ne=Pe(48736),ee=Pe(59301),ue=Pe(30699),se=function(Ye){var De=Ye.dropPosition,tt=Ye.dropLevelOffset,Ht=Ye.indent,$t={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(De){case-1:$t.top=0,$t.left=-tt*Ht;break;case 1:$t.bottom=0,$t.left=-tt*Ht;break;case 0:$t.bottom=0,$t.left=Ht;break}return ee.createElement("div",{style:$t})},de=se;function pe(Te){if(Te==null)throw new TypeError("Cannot destructure "+Te)}var ye=Pe(16886),Ce=Pe(33346),Re=Pe(34280),Oe=Pe(6790),We=Pe(77900),Be=Pe(639);function Ie(Te,Ye){var De=ee.useState(!1),tt=(0,ye.Z)(De,2),Ht=tt[0],$t=tt[1];(0,Re.Z)(function(){if(Ht)return Te(),function(){Ye()}},[Ht]),(0,Re.Z)(function(){return $t(!0),function(){$t(!1)}},[])}var Qe=Ie,rt=Pe(34061),xt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],gt=ee.forwardRef(function(Te,Ye){var De=Te.className,tt=Te.style,Ht=Te.motion,$t=Te.motionNodes,Sn=Te.motionType,en=Te.onMotionStart,kt=Te.onMotionEnd,nn=Te.active,hn=Te.treeNodeRequiredProps,zn=(0,Ce.Z)(Te,xt),fi=ee.useState(!0),_n=(0,ye.Z)(fi,2),Pi=_n[0],Ci=_n[1],Yn=ee.useContext(ue.k),Ei=Yn.prefixCls,pi=$t&&Sn!=="hide";(0,Re.Z)(function(){$t&&pi!==Pi&&Ci(pi)},[$t]);var ji=function(){$t&&en()},Qi=ee.useRef(!1),lr=function(){$t&&!Qi.current&&(Qi.current=!0,kt())};Qe(ji,lr);var Lr=function(cr){pi===cr&&lr()};return $t?ee.createElement(We.default,(0,me.Z)({ref:Ye,visible:Pi},Ht,{motionAppear:Sn==="show",onVisibleChanged:Lr}),function(Di,cr){var to=Di.className,ki=Di.style;return ee.createElement("div",{ref:cr,className:_e()("".concat(Ei,"-treenode-motion"),to),style:ki},$t.map(function(no){var fo=Object.assign({},(pe(no.data),no.data)),po=no.title,io=no.key,hr=no.isStart,ao=no.isEnd;delete fo.children;var be=(0,rt.H8)(io,hn);return ee.createElement(Be.Z,(0,me.Z)({},fo,be,{title:po,active:nn,data:no.data,key:io,isStart:hr,isEnd:ao}))}))}):ee.createElement(Be.Z,(0,me.Z)({domRef:Ye,className:De,style:tt},zn,{active:nn}))}),bt=gt;function At(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],De=Te.length,tt=Ye.length;if(Math.abs(De-tt)!==1)return{add:!1,key:null};function Ht($t,Sn){var en=new Map;$t.forEach(function(nn){en.set(nn,!0)});var kt=Sn.filter(function(nn){return!en.has(nn)});return kt.length===1?kt[0]:null}return De<tt?{add:!0,key:Ht(Te,Ye)}:{add:!1,key:Ht(Ye,Te)}}function Tt(Te,Ye,De){var tt=Te.findIndex(function(en){return en.key===De}),Ht=Te[tt+1],$t=Ye.findIndex(function(en){return en.key===De});if(Ht){var Sn=Ye.findIndex(function(en){return en.key===Ht.key});return Ye.slice($t+1,Sn)}return Ye.slice($t+1)}var Nt=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Ut={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},st=function(){},He="RC_TREE_MOTION_".concat(Math.random()),jt={key:He},fn={key:He,level:0,index:0,pos:"0",node:jt,nodes:[jt]},Bt={parent:null,children:[],pos:fn.pos,data:jt,title:null,key:He,isStart:[],isEnd:[]};function Ft(Te,Ye,De,tt){return Ye===!1||!De?Te:Te.slice(0,Math.ceil(De/tt)+1)}function It(Te){var Ye=Te.key,De=Te.pos;return(0,rt.km)(Ye,De)}function Vt(Te){for(var Ye=String(Te.data.key),De=Te;De.parent;)De=De.parent,Ye="".concat(De.data.key," > ").concat(Ye);return Ye}var wn=ee.forwardRef(function(Te,Ye){var De=Te.prefixCls,tt=Te.data,Ht=Te.selectable,$t=Te.checkable,Sn=Te.expandedKeys,en=Te.selectedKeys,kt=Te.checkedKeys,nn=Te.loadedKeys,hn=Te.loadingKeys,zn=Te.halfCheckedKeys,fi=Te.keyEntities,_n=Te.disabled,Pi=Te.dragging,Ci=Te.dragOverNodeKey,Yn=Te.dropPosition,Ei=Te.motion,pi=Te.height,ji=Te.itemHeight,Qi=Te.virtual,lr=Te.scrollWidth,Lr=Te.focusable,Di=Te.activeItem,cr=Te.focused,to=Te.tabIndex,ki=Te.onKeyDown,no=Te.onFocus,fo=Te.onBlur,po=Te.onActiveChange,io=Te.onListChangeStart,hr=Te.onListChangeEnd,ao=(0,Ce.Z)(Te,Nt),be=ee.useRef(null),Un=ee.useRef(null);ee.useImperativeHandle(Ye,function(){return{scrollTo:function(Yi){be.current.scrollTo(Yi)},getIndentWidth:function(){return Un.current.offsetWidth}}});var Xn=ee.useState(Sn),ci=(0,ye.Z)(Xn,2),mi=ci[0],ei=ci[1],Gi=ee.useState(tt),vr=(0,ye.Z)(Gi,2),an=vr[0],ln=vr[1],Zt=ee.useState(tt),pn=(0,ye.Z)(Zt,2),zi=pn[0],Ti=pn[1],dr=ee.useState([]),un=(0,ye.Z)(dr,2),In=un[0],Vi=un[1],Fr=ee.useState(null),ii=(0,ye.Z)(Fr,2),lt=ii[0],Rt=ii[1],ai=ee.useRef(tt);ai.current=tt;function ti(){var Ri=ai.current;ln(Ri),Ti(Ri),Vi([]),Rt(null),hr()}(0,Re.Z)(function(){ei(Sn);var Ri=At(mi,Sn);if(Ri.key!==null)if(Ri.add){var Yi=an.findIndex(function($i){var Pn=$i.key;return Pn===Ri.key}),tr=Ft(Tt(an,tt,Ri.key),Qi,pi,ji),Bn=an.slice();Bn.splice(Yi+1,0,Bt),Ti(Bn),Vi(tr),Rt("show")}else{var Ot=tt.findIndex(function($i){var Pn=$i.key;return Pn===Ri.key}),qn=Ft(Tt(tt,an,Ri.key),Qi,pi,ji),Ji=tt.slice();Ji.splice(Ot+1,0,Bt),Ti(Ji),Vi(qn),Rt("hide")}else an!==tt&&(ln(tt),Ti(tt))},[Sn,tt]),ee.useEffect(function(){Pi||ti()},[Pi]);var tn=Ei?zi:tt,si={expandedKeys:Sn,selectedKeys:en,loadedKeys:nn,loadingKeys:hn,checkedKeys:kt,halfCheckedKeys:zn,dragOverNodeKey:Ci,dropPosition:Yn,keyEntities:fi};return ee.createElement(ee.Fragment,null,cr&&Di&&ee.createElement("span",{style:Ut,"aria-live":"assertive"},Vt(Di)),ee.createElement("div",null,ee.createElement("input",{style:Ut,disabled:Lr===!1||_n,tabIndex:Lr!==!1?to:null,onKeyDown:ki,onFocus:no,onBlur:fo,value:"",onChange:st,"aria-label":"for screen reader"})),ee.createElement("div",{className:"".concat(De,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ee.createElement("div",{className:"".concat(De,"-indent")},ee.createElement("div",{ref:Un,className:"".concat(De,"-indent-unit")}))),ee.createElement(Oe.Z,(0,me.Z)({},ao,{data:tn,itemKey:It,height:pi,fullHeight:!1,virtual:Qi,itemHeight:ji,scrollWidth:lr,prefixCls:"".concat(De,"-list"),ref:be,role:"tree",onVisibleChange:function(Yi){Yi.every(function(tr){return It(tr)!==He})&&ti()}}),function(Ri){var Yi=Ri.pos,tr=Object.assign({},(pe(Ri.data),Ri.data)),Bn=Ri.title,Ot=Ri.key,qn=Ri.isStart,Ji=Ri.isEnd,$i=(0,rt.km)(Ot,Yi);delete tr.key,delete tr.children;var Pn=(0,rt.H8)($i,si);return ee.createElement(bt,(0,me.Z)({},tr,Pn,{title:Bn,active:!!Di&&Ot===Di.key,pos:Yi,data:Ri.data,isStart:qn,isEnd:Ji,motion:Ei,motionNodes:Ot===He?In:null,motionType:lt,onMotionStart:io,onMotionEnd:ti,treeNodeRequiredProps:si,onMouseMove:function(){po(null)}}))}))}),Dt=wn,vt=Pe(82661),zt=Pe(34643),En=Pe(65065),kn=10,Ze=function(Te){(0,yt.Z)(De,Te);var Ye=(0,ot.Z)(De);function De(){var tt;(0,it.Z)(this,De);for(var Ht=arguments.length,$t=new Array(Ht),Sn=0;Sn<Ht;Sn++)$t[Sn]=arguments[Sn];return tt=Ye.call.apply(Ye,[this].concat($t)),(0,Me.Z)((0,Ue.Z)(tt),"destroyed",!1),(0,Me.Z)((0,Ue.Z)(tt),"delayedDragEnterLogic",void 0),(0,Me.Z)((0,Ue.Z)(tt),"loadingRetryTimes",{}),(0,Me.Z)((0,Ue.Z)(tt),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,rt.w$)()}),(0,Me.Z)((0,Ue.Z)(tt),"dragStartMousePosition",null),(0,Me.Z)((0,Ue.Z)(tt),"dragNodeProps",null),(0,Me.Z)((0,Ue.Z)(tt),"currentMouseOverDroppableNodeKey",null),(0,Me.Z)((0,Ue.Z)(tt),"listRef",ee.createRef()),(0,Me.Z)((0,Ue.Z)(tt),"onNodeDragStart",function(en,kt){var nn=tt.state,hn=nn.expandedKeys,zn=nn.keyEntities,fi=tt.props.onDragStart,_n=kt.eventKey;tt.dragNodeProps=kt,tt.dragStartMousePosition={x:en.clientX,y:en.clientY};var Pi=(0,vt._5)(hn,_n);tt.setState({draggingNodeKey:_n,dragChildrenKeys:(0,vt.wA)(_n,zn),indent:tt.listRef.current.getIndentWidth()}),tt.setExpandedKeys(Pi),window.addEventListener("dragend",tt.onWindowDragEnd),fi==null||fi({event:en,node:(0,rt.F)(kt)})}),(0,Me.Z)((0,Ue.Z)(tt),"onNodeDragEnter",function(en,kt){var nn=tt.state,hn=nn.expandedKeys,zn=nn.keyEntities,fi=nn.dragChildrenKeys,_n=nn.flattenNodes,Pi=nn.indent,Ci=tt.props,Yn=Ci.onDragEnter,Ei=Ci.onExpand,pi=Ci.allowDrop,ji=Ci.direction,Qi=kt.pos,lr=kt.eventKey;if(tt.currentMouseOverDroppableNodeKey!==lr&&(tt.currentMouseOverDroppableNodeKey=lr),!tt.dragNodeProps){tt.resetDragState();return}var Lr=(0,vt.OM)(en,tt.dragNodeProps,kt,Pi,tt.dragStartMousePosition,pi,_n,zn,hn,ji),Di=Lr.dropPosition,cr=Lr.dropLevelOffset,to=Lr.dropTargetKey,ki=Lr.dropContainerKey,no=Lr.dropTargetPos,fo=Lr.dropAllowed,po=Lr.dragOverNodeKey;if(fi.includes(to)||!fo){tt.resetDragState();return}if(tt.delayedDragEnterLogic||(tt.delayedDragEnterLogic={}),Object.keys(tt.delayedDragEnterLogic).forEach(function(io){clearTimeout(tt.delayedDragEnterLogic[io])}),tt.dragNodeProps.eventKey!==kt.eventKey&&(en.persist(),tt.delayedDragEnterLogic[Qi]=window.setTimeout(function(){if(tt.state.draggingNodeKey!==null){var io=(0,nt.Z)(hn),hr=(0,En.Z)(zn,kt.eventKey);hr&&(hr.children||[]).length&&(io=(0,vt.L0)(hn,kt.eventKey)),tt.props.hasOwnProperty("expandedKeys")||tt.setExpandedKeys(io),Ei==null||Ei(io,{node:(0,rt.F)(kt),expanded:!0,nativeEvent:en.nativeEvent})}},800)),tt.dragNodeProps.eventKey===to&&cr===0){tt.resetDragState();return}tt.setState({dragOverNodeKey:po,dropPosition:Di,dropLevelOffset:cr,dropTargetKey:to,dropContainerKey:ki,dropTargetPos:no,dropAllowed:fo}),Yn==null||Yn({event:en,node:(0,rt.F)(kt),expandedKeys:hn})}),(0,Me.Z)((0,Ue.Z)(tt),"onNodeDragOver",function(en,kt){var nn=tt.state,hn=nn.dragChildrenKeys,zn=nn.flattenNodes,fi=nn.keyEntities,_n=nn.expandedKeys,Pi=nn.indent,Ci=tt.props,Yn=Ci.onDragOver,Ei=Ci.allowDrop,pi=Ci.direction;if(tt.dragNodeProps){var ji=(0,vt.OM)(en,tt.dragNodeProps,kt,Pi,tt.dragStartMousePosition,Ei,zn,fi,_n,pi),Qi=ji.dropPosition,lr=ji.dropLevelOffset,Lr=ji.dropTargetKey,Di=ji.dropContainerKey,cr=ji.dropTargetPos,to=ji.dropAllowed,ki=ji.dragOverNodeKey;hn.includes(Lr)||!to||(tt.dragNodeProps.eventKey===Lr&&lr===0?tt.state.dropPosition===null&&tt.state.dropLevelOffset===null&&tt.state.dropTargetKey===null&&tt.state.dropContainerKey===null&&tt.state.dropTargetPos===null&&tt.state.dropAllowed===!1&&tt.state.dragOverNodeKey===null||tt.resetDragState():Qi===tt.state.dropPosition&&lr===tt.state.dropLevelOffset&&Lr===tt.state.dropTargetKey&&Di===tt.state.dropContainerKey&&cr===tt.state.dropTargetPos&&to===tt.state.dropAllowed&&ki===tt.state.dragOverNodeKey||tt.setState({dropPosition:Qi,dropLevelOffset:lr,dropTargetKey:Lr,dropContainerKey:Di,dropTargetPos:cr,dropAllowed:to,dragOverNodeKey:ki}),Yn==null||Yn({event:en,node:(0,rt.F)(kt)}))}}),(0,Me.Z)((0,Ue.Z)(tt),"onNodeDragLeave",function(en,kt){tt.currentMouseOverDroppableNodeKey===kt.eventKey&&!en.currentTarget.contains(en.relatedTarget)&&(tt.resetDragState(),tt.currentMouseOverDroppableNodeKey=null);var nn=tt.props.onDragLeave;nn==null||nn({event:en,node:(0,rt.F)(kt)})}),(0,Me.Z)((0,Ue.Z)(tt),"onWindowDragEnd",function(en){tt.onNodeDragEnd(en,null,!0),window.removeEventListener("dragend",tt.onWindowDragEnd)}),(0,Me.Z)((0,Ue.Z)(tt),"onNodeDragEnd",function(en,kt){var nn=tt.props.onDragEnd;tt.setState({dragOverNodeKey:null}),tt.cleanDragState(),nn==null||nn({event:en,node:(0,rt.F)(kt)}),tt.dragNodeProps=null,window.removeEventListener("dragend",tt.onWindowDragEnd)}),(0,Me.Z)((0,Ue.Z)(tt),"onNodeDrop",function(en,kt){var nn,hn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,zn=tt.state,fi=zn.dragChildrenKeys,_n=zn.dropPosition,Pi=zn.dropTargetKey,Ci=zn.dropTargetPos,Yn=zn.dropAllowed;if(Yn){var Ei=tt.props.onDrop;if(tt.setState({dragOverNodeKey:null}),tt.cleanDragState(),Pi!==null){var pi=(0,ut.Z)((0,ut.Z)({},(0,rt.H8)(Pi,tt.getTreeNodeRequiredProps())),{},{active:((nn=tt.getActiveItem())===null||nn===void 0?void 0:nn.key)===Pi,data:(0,En.Z)(tt.state.keyEntities,Pi).node}),ji=fi.includes(Pi);(0,ne.ZP)(!ji,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Qi=(0,vt.yx)(Ci),lr={event:en,node:(0,rt.F)(pi),dragNode:tt.dragNodeProps?(0,rt.F)(tt.dragNodeProps):null,dragNodesKeys:[tt.dragNodeProps.eventKey].concat(fi),dropToGap:_n!==0,dropPosition:_n+Number(Qi[Qi.length-1])};hn||Ei==null||Ei(lr),tt.dragNodeProps=null}}}),(0,Me.Z)((0,Ue.Z)(tt),"cleanDragState",function(){var en=tt.state.draggingNodeKey;en!==null&&tt.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),tt.dragStartMousePosition=null,tt.currentMouseOverDroppableNodeKey=null}),(0,Me.Z)((0,Ue.Z)(tt),"triggerExpandActionExpand",function(en,kt){var nn=tt.state,hn=nn.expandedKeys,zn=nn.flattenNodes,fi=kt.expanded,_n=kt.key,Pi=kt.isLeaf;if(!(Pi||en.shiftKey||en.metaKey||en.ctrlKey)){var Ci=zn.filter(function(Ei){return Ei.key===_n})[0],Yn=(0,rt.F)((0,ut.Z)((0,ut.Z)({},(0,rt.H8)(_n,tt.getTreeNodeRequiredProps())),{},{data:Ci.data}));tt.setExpandedKeys(fi?(0,vt._5)(hn,_n):(0,vt.L0)(hn,_n)),tt.onNodeExpand(en,Yn)}}),(0,Me.Z)((0,Ue.Z)(tt),"onNodeClick",function(en,kt){var nn=tt.props,hn=nn.onClick,zn=nn.expandAction;zn==="click"&&tt.triggerExpandActionExpand(en,kt),hn==null||hn(en,kt)}),(0,Me.Z)((0,Ue.Z)(tt),"onNodeDoubleClick",function(en,kt){var nn=tt.props,hn=nn.onDoubleClick,zn=nn.expandAction;zn==="doubleClick"&&tt.triggerExpandActionExpand(en,kt),hn==null||hn(en,kt)}),(0,Me.Z)((0,Ue.Z)(tt),"onNodeSelect",function(en,kt){var nn=tt.state.selectedKeys,hn=tt.state,zn=hn.keyEntities,fi=hn.fieldNames,_n=tt.props,Pi=_n.onSelect,Ci=_n.multiple,Yn=kt.selected,Ei=kt[fi.key],pi=!Yn;pi?Ci?nn=(0,vt.L0)(nn,Ei):nn=[Ei]:nn=(0,vt._5)(nn,Ei);var ji=nn.map(function(Qi){var lr=(0,En.Z)(zn,Qi);return lr?lr.node:null}).filter(Boolean);tt.setUncontrolledState({selectedKeys:nn}),Pi==null||Pi(nn,{event:"select",selected:pi,node:kt,selectedNodes:ji,nativeEvent:en.nativeEvent})}),(0,Me.Z)((0,Ue.Z)(tt),"onNodeCheck",function(en,kt,nn){var hn=tt.state,zn=hn.keyEntities,fi=hn.checkedKeys,_n=hn.halfCheckedKeys,Pi=tt.props,Ci=Pi.checkStrictly,Yn=Pi.onCheck,Ei=kt.key,pi,ji={event:"check",node:kt,checked:nn,nativeEvent:en.nativeEvent};if(Ci){var Qi=nn?(0,vt.L0)(fi,Ei):(0,vt._5)(fi,Ei),lr=(0,vt._5)(_n,Ei);pi={checked:Qi,halfChecked:lr},ji.checkedNodes=Qi.map(function(no){return(0,En.Z)(zn,no)}).filter(Boolean).map(function(no){return no.node}),tt.setUncontrolledState({checkedKeys:Qi})}else{var Lr=(0,zt.S)([].concat((0,nt.Z)(fi),[Ei]),!0,zn),Di=Lr.checkedKeys,cr=Lr.halfCheckedKeys;if(!nn){var to=new Set(Di);to.delete(Ei);var ki=(0,zt.S)(Array.from(to),{checked:!1,halfCheckedKeys:cr},zn);Di=ki.checkedKeys,cr=ki.halfCheckedKeys}pi=Di,ji.checkedNodes=[],ji.checkedNodesPositions=[],ji.halfCheckedKeys=cr,Di.forEach(function(no){var fo=(0,En.Z)(zn,no);if(fo){var po=fo.node,io=fo.pos;ji.checkedNodes.push(po),ji.checkedNodesPositions.push({node:po,pos:io})}}),tt.setUncontrolledState({checkedKeys:Di},!1,{halfCheckedKeys:cr})}Yn==null||Yn(pi,ji)}),(0,Me.Z)((0,Ue.Z)(tt),"onNodeLoad",function(en){var kt,nn=en.key,hn=tt.state.keyEntities,zn=(0,En.Z)(hn,nn);if(!(zn!=null&&(kt=zn.children)!==null&&kt!==void 0&&kt.length)){var fi=new Promise(function(_n,Pi){tt.setState(function(Ci){var Yn=Ci.loadedKeys,Ei=Yn===void 0?[]:Yn,pi=Ci.loadingKeys,ji=pi===void 0?[]:pi,Qi=tt.props,lr=Qi.loadData,Lr=Qi.onLoad;if(!lr||Ei.includes(nn)||ji.includes(nn))return null;var Di=lr(en);return Di.then(function(){var cr=tt.state.loadedKeys,to=(0,vt.L0)(cr,nn);Lr==null||Lr(to,{event:"load",node:en}),tt.setUncontrolledState({loadedKeys:to}),tt.setState(function(ki){return{loadingKeys:(0,vt._5)(ki.loadingKeys,nn)}}),_n()}).catch(function(cr){if(tt.setState(function(ki){return{loadingKeys:(0,vt._5)(ki.loadingKeys,nn)}}),tt.loadingRetryTimes[nn]=(tt.loadingRetryTimes[nn]||0)+1,tt.loadingRetryTimes[nn]>=kn){var to=tt.state.loadedKeys;(0,ne.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),tt.setUncontrolledState({loadedKeys:(0,vt.L0)(to,nn)}),_n()}Pi(cr)}),{loadingKeys:(0,vt.L0)(ji,nn)}})});return fi.catch(function(){}),fi}}),(0,Me.Z)((0,Ue.Z)(tt),"onNodeMouseEnter",function(en,kt){var nn=tt.props.onMouseEnter;nn==null||nn({event:en,node:kt})}),(0,Me.Z)((0,Ue.Z)(tt),"onNodeMouseLeave",function(en,kt){var nn=tt.props.onMouseLeave;nn==null||nn({event:en,node:kt})}),(0,Me.Z)((0,Ue.Z)(tt),"onNodeContextMenu",function(en,kt){var nn=tt.props.onRightClick;nn&&(en.preventDefault(),nn({event:en,node:kt}))}),(0,Me.Z)((0,Ue.Z)(tt),"onFocus",function(){var en=tt.props.onFocus;tt.setState({focused:!0});for(var kt=arguments.length,nn=new Array(kt),hn=0;hn<kt;hn++)nn[hn]=arguments[hn];en==null||en.apply(void 0,nn)}),(0,Me.Z)((0,Ue.Z)(tt),"onBlur",function(){var en=tt.props.onBlur;tt.setState({focused:!1}),tt.onActiveChange(null);for(var kt=arguments.length,nn=new Array(kt),hn=0;hn<kt;hn++)nn[hn]=arguments[hn];en==null||en.apply(void 0,nn)}),(0,Me.Z)((0,Ue.Z)(tt),"getTreeNodeRequiredProps",function(){var en=tt.state,kt=en.expandedKeys,nn=en.selectedKeys,hn=en.loadedKeys,zn=en.loadingKeys,fi=en.checkedKeys,_n=en.halfCheckedKeys,Pi=en.dragOverNodeKey,Ci=en.dropPosition,Yn=en.keyEntities;return{expandedKeys:kt||[],selectedKeys:nn||[],loadedKeys:hn||[],loadingKeys:zn||[],checkedKeys:fi||[],halfCheckedKeys:_n||[],dragOverNodeKey:Pi,dropPosition:Ci,keyEntities:Yn}}),(0,Me.Z)((0,Ue.Z)(tt),"setExpandedKeys",function(en){var kt=tt.state,nn=kt.treeData,hn=kt.fieldNames,zn=(0,rt.oH)(nn,en,hn);tt.setUncontrolledState({expandedKeys:en,flattenNodes:zn},!0)}),(0,Me.Z)((0,Ue.Z)(tt),"onNodeExpand",function(en,kt){var nn=tt.state.expandedKeys,hn=tt.state,zn=hn.listChanging,fi=hn.fieldNames,_n=tt.props,Pi=_n.onExpand,Ci=_n.loadData,Yn=kt.expanded,Ei=kt[fi.key];if(!zn){var pi=nn.includes(Ei),ji=!Yn;if((0,ne.ZP)(Yn&&pi||!Yn&&!pi,"Expand state not sync with index check"),nn=ji?(0,vt.L0)(nn,Ei):(0,vt._5)(nn,Ei),tt.setExpandedKeys(nn),Pi==null||Pi(nn,{node:kt,expanded:ji,nativeEvent:en.nativeEvent}),ji&&Ci){var Qi=tt.onNodeLoad(kt);Qi&&Qi.then(function(){var lr=(0,rt.oH)(tt.state.treeData,nn,fi);tt.setUncontrolledState({flattenNodes:lr})}).catch(function(){var lr=tt.state.expandedKeys,Lr=(0,vt._5)(lr,Ei);tt.setExpandedKeys(Lr)})}}}),(0,Me.Z)((0,Ue.Z)(tt),"onListChangeStart",function(){tt.setUncontrolledState({listChanging:!0})}),(0,Me.Z)((0,Ue.Z)(tt),"onListChangeEnd",function(){setTimeout(function(){tt.setUncontrolledState({listChanging:!1})})}),(0,Me.Z)((0,Ue.Z)(tt),"onActiveChange",function(en){var kt=tt.state.activeKey,nn=tt.props,hn=nn.onActiveChange,zn=nn.itemScrollOffset,fi=zn===void 0?0:zn;kt!==en&&(tt.setState({activeKey:en}),en!==null&&tt.scrollTo({key:en,offset:fi}),hn==null||hn(en))}),(0,Me.Z)((0,Ue.Z)(tt),"getActiveItem",function(){var en=tt.state,kt=en.activeKey,nn=en.flattenNodes;return kt===null?null:nn.find(function(hn){var zn=hn.key;return zn===kt})||null}),(0,Me.Z)((0,Ue.Z)(tt),"offsetActiveKey",function(en){var kt=tt.state,nn=kt.flattenNodes,hn=kt.activeKey,zn=nn.findIndex(function(Pi){var Ci=Pi.key;return Ci===hn});zn===-1&&en<0&&(zn=nn.length),zn=(zn+en+nn.length)%nn.length;var fi=nn[zn];if(fi){var _n=fi.key;tt.onActiveChange(_n)}else tt.onActiveChange(null)}),(0,Me.Z)((0,Ue.Z)(tt),"onKeyDown",function(en){var kt=tt.state,nn=kt.activeKey,hn=kt.expandedKeys,zn=kt.checkedKeys,fi=kt.fieldNames,_n=tt.props,Pi=_n.onKeyDown,Ci=_n.checkable,Yn=_n.selectable;switch(en.which){case ht.Z.UP:{tt.offsetActiveKey(-1),en.preventDefault();break}case ht.Z.DOWN:{tt.offsetActiveKey(1),en.preventDefault();break}}var Ei=tt.getActiveItem();if(Ei&&Ei.data){var pi=tt.getTreeNodeRequiredProps(),ji=Ei.data.isLeaf===!1||!!(Ei.data[fi.children]||[]).length,Qi=(0,rt.F)((0,ut.Z)((0,ut.Z)({},(0,rt.H8)(nn,pi)),{},{data:Ei.data,active:!0}));switch(en.which){case ht.Z.LEFT:{ji&&hn.includes(nn)?tt.onNodeExpand({},Qi):Ei.parent&&tt.onActiveChange(Ei.parent.key),en.preventDefault();break}case ht.Z.RIGHT:{ji&&!hn.includes(nn)?tt.onNodeExpand({},Qi):Ei.children&&Ei.children.length&&tt.onActiveChange(Ei.children[0].key),en.preventDefault();break}case ht.Z.ENTER:case ht.Z.SPACE:{Ci&&!Qi.disabled&&Qi.checkable!==!1&&!Qi.disableCheckbox?tt.onNodeCheck({},Qi,!zn.includes(nn)):!Ci&&Yn&&!Qi.disabled&&Qi.selectable!==!1&&tt.onNodeSelect({},Qi);break}}}Pi==null||Pi(en)}),(0,Me.Z)((0,Ue.Z)(tt),"setUncontrolledState",function(en){var kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!tt.destroyed){var hn=!1,zn=!0,fi={};Object.keys(en).forEach(function(_n){if(tt.props.hasOwnProperty(_n)){zn=!1;return}hn=!0,fi[_n]=en[_n]}),hn&&(!kt||zn)&&tt.setState((0,ut.Z)((0,ut.Z)({},fi),nn))}}),(0,Me.Z)((0,Ue.Z)(tt),"scrollTo",function(en){tt.listRef.current.scrollTo(en)}),tt}return(0,ze.Z)(De,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Ht=this.props,$t=Ht.activeKey,Sn=Ht.itemScrollOffset,en=Sn===void 0?0:Sn;$t!==void 0&&$t!==this.state.activeKey&&(this.setState({activeKey:$t}),$t!==null&&this.scrollTo({key:$t,offset:en}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var Ht=this.state,$t=Ht.focused,Sn=Ht.flattenNodes,en=Ht.keyEntities,kt=Ht.draggingNodeKey,nn=Ht.activeKey,hn=Ht.dropLevelOffset,zn=Ht.dropContainerKey,fi=Ht.dropTargetKey,_n=Ht.dropPosition,Pi=Ht.dragOverNodeKey,Ci=Ht.indent,Yn=this.props,Ei=Yn.prefixCls,pi=Yn.className,ji=Yn.style,Qi=Yn.showLine,lr=Yn.focusable,Lr=Yn.tabIndex,Di=Lr===void 0?0:Lr,cr=Yn.selectable,to=Yn.showIcon,ki=Yn.icon,no=Yn.switcherIcon,fo=Yn.draggable,po=Yn.checkable,io=Yn.checkStrictly,hr=Yn.disabled,ao=Yn.motion,be=Yn.loadData,Un=Yn.filterTreeNode,Xn=Yn.height,ci=Yn.itemHeight,mi=Yn.scrollWidth,ei=Yn.virtual,Gi=Yn.titleRender,vr=Yn.dropIndicatorRender,an=Yn.onContextMenu,ln=Yn.onScroll,Zt=Yn.direction,pn=Yn.rootClassName,zi=Yn.rootStyle,Ti=(0,Ee.Z)(this.props,{aria:!0,data:!0}),dr;fo&&((0,Ve.Z)(fo)==="object"?dr=fo:typeof fo=="function"?dr={nodeDraggable:fo}:dr={});var un={prefixCls:Ei,selectable:cr,showIcon:to,icon:ki,switcherIcon:no,draggable:dr,draggingNodeKey:kt,checkable:po,checkStrictly:io,disabled:hr,keyEntities:en,dropLevelOffset:hn,dropContainerKey:zn,dropTargetKey:fi,dropPosition:_n,dragOverNodeKey:Pi,indent:Ci,direction:Zt,dropIndicatorRender:vr,loadData:be,filterTreeNode:Un,titleRender:Gi,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return ee.createElement(ue.k.Provider,{value:un},ee.createElement("div",{className:_e()(Ei,pi,pn,(0,Me.Z)((0,Me.Z)((0,Me.Z)({},"".concat(Ei,"-show-line"),Qi),"".concat(Ei,"-focused"),$t),"".concat(Ei,"-active-focused"),nn!==null)),style:zi},ee.createElement(Dt,(0,me.Z)({ref:this.listRef,prefixCls:Ei,style:ji,data:Sn,disabled:hr,selectable:cr,checkable:!!po,motion:ao,dragging:kt!==null,height:Xn,itemHeight:ci,virtual:ei,focusable:lr,focused:$t,tabIndex:Di,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:an,onScroll:ln,scrollWidth:mi},this.getTreeNodeRequiredProps(),Ti))))}}],[{key:"getDerivedStateFromProps",value:function(Ht,$t){var Sn=$t.prevProps,en={prevProps:Ht};function kt(Di){return!Sn&&Ht.hasOwnProperty(Di)||Sn&&Sn[Di]!==Ht[Di]}var nn,hn=$t.fieldNames;if(kt("fieldNames")&&(hn=(0,rt.w$)(Ht.fieldNames),en.fieldNames=hn),kt("treeData")?nn=Ht.treeData:kt("children")&&((0,ne.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),nn=(0,rt.zn)(Ht.children)),nn){en.treeData=nn;var zn=(0,rt.I8)(nn,{fieldNames:hn});en.keyEntities=(0,ut.Z)((0,Me.Z)({},He,fn),zn.keyEntities)}var fi=en.keyEntities||$t.keyEntities;if(kt("expandedKeys")||Sn&&kt("autoExpandParent"))en.expandedKeys=Ht.autoExpandParent||!Sn&&Ht.defaultExpandParent?(0,vt.r7)(Ht.expandedKeys,fi):Ht.expandedKeys;else if(!Sn&&Ht.defaultExpandAll){var _n=(0,ut.Z)({},fi);delete _n[He];var Pi=[];Object.keys(_n).forEach(function(Di){var cr=_n[Di];cr.children&&cr.children.length&&Pi.push(cr.key)}),en.expandedKeys=Pi}else!Sn&&Ht.defaultExpandedKeys&&(en.expandedKeys=Ht.autoExpandParent||Ht.defaultExpandParent?(0,vt.r7)(Ht.defaultExpandedKeys,fi):Ht.defaultExpandedKeys);if(en.expandedKeys||delete en.expandedKeys,nn||en.expandedKeys){var Ci=(0,rt.oH)(nn||$t.treeData,en.expandedKeys||$t.expandedKeys,hn);en.flattenNodes=Ci}if(Ht.selectable&&(kt("selectedKeys")?en.selectedKeys=(0,vt.BT)(Ht.selectedKeys,Ht):!Sn&&Ht.defaultSelectedKeys&&(en.selectedKeys=(0,vt.BT)(Ht.defaultSelectedKeys,Ht))),Ht.checkable){var Yn;if(kt("checkedKeys")?Yn=(0,vt.E6)(Ht.checkedKeys)||{}:!Sn&&Ht.defaultCheckedKeys?Yn=(0,vt.E6)(Ht.defaultCheckedKeys)||{}:nn&&(Yn=(0,vt.E6)(Ht.checkedKeys)||{checkedKeys:$t.checkedKeys,halfCheckedKeys:$t.halfCheckedKeys}),Yn){var Ei=Yn,pi=Ei.checkedKeys,ji=pi===void 0?[]:pi,Qi=Ei.halfCheckedKeys,lr=Qi===void 0?[]:Qi;if(!Ht.checkStrictly){var Lr=(0,zt.S)(ji,!0,fi);ji=Lr.checkedKeys,lr=Lr.halfCheckedKeys}en.checkedKeys=ji,en.halfCheckedKeys=lr}}return kt("loadedKeys")&&(en.loadedKeys=Ht.loadedKeys),en}}]),De}(ee.Component);(0,Me.Z)(Ze,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:de,allowDrop:function(){return!0},expandAction:!1}),(0,Me.Z)(Ze,"TreeNode",Be.Z);var Fe=Ze,xe=Fe},82661:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{BT:function(){return ee},E6:function(){return de},L0:function(){return Me},OM:function(){return ne},_5:function(){return ot},r7:function(){return pe},wA:function(){return _e},yx:function(){return Et}});var me=Pe(15142),Ve=Pe(26420),ut=Pe(48736),nt=Pe(59301),it=Pe(639),ze=Pe(65065),Ue=Pe(34061),yt=null;function ot(ye,Ce){if(!ye)return[];var Re=ye.slice(),Oe=Re.indexOf(Ce);return Oe>=0&&Re.splice(Oe,1),Re}function Me(ye,Ce){var Re=(ye||[]).slice();return Re.indexOf(Ce)===-1&&Re.push(Ce),Re}function Et(ye){return ye.split("-")}function _e(ye,Ce){var Re=[],Oe=(0,ze.Z)(Ce,ye);function We(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Be.forEach(function(Ie){var Qe=Ie.key,rt=Ie.children;Re.push(Qe),We(rt)})}return We(Oe.children),Re}function ht(ye){if(ye.parent){var Ce=Et(ye.pos);return Number(Ce[Ce.length-1])===ye.parent.children.length-1}return!1}function Ee(ye){var Ce=Et(ye.pos);return Number(Ce[Ce.length-1])===0}function ne(ye,Ce,Re,Oe,We,Be,Ie,Qe,rt,xt){var gt,bt=ye.clientX,At=ye.clientY,Tt=ye.target.getBoundingClientRect(),Nt=Tt.top,Ut=Tt.height,st=(xt==="rtl"?-1:1)*(((We==null?void 0:We.x)||0)-bt),He=(st-12)/Oe,jt=rt.filter(function(xe){var Te;return(Te=Qe[xe])===null||Te===void 0||(Te=Te.children)===null||Te===void 0?void 0:Te.length}),fn=(0,ze.Z)(Qe,Re.eventKey);if(At<Nt+Ut/2){var Bt=Ie.findIndex(function(xe){return xe.key===fn.key}),Ft=Bt<=0?0:Bt-1,It=Ie[Ft].key;fn=(0,ze.Z)(Qe,It)}var Vt=fn.key,wn=fn,Dt=fn.key,vt=0,zt=0;if(!jt.includes(Vt))for(var En=0;En<He&&ht(fn);En+=1)fn=fn.parent,zt+=1;var kn=Ce.data,Ze=fn.node,Fe=!0;return Ee(fn)&&fn.level===0&&At<Nt+Ut/2&&Be({dragNode:kn,dropNode:Ze,dropPosition:-1})&&fn.key===Re.eventKey?vt=-1:(wn.children||[]).length&&jt.includes(Dt)?Be({dragNode:kn,dropNode:Ze,dropPosition:0})?vt=0:Fe=!1:zt===0?He>-1.5?Be({dragNode:kn,dropNode:Ze,dropPosition:1})?vt=1:Fe=!1:Be({dragNode:kn,dropNode:Ze,dropPosition:0})?vt=0:Be({dragNode:kn,dropNode:Ze,dropPosition:1})?vt=1:Fe=!1:Be({dragNode:kn,dropNode:Ze,dropPosition:1})?vt=1:Fe=!1,{dropPosition:vt,dropLevelOffset:zt,dropTargetKey:fn.key,dropTargetPos:fn.pos,dragOverNodeKey:Dt,dropContainerKey:vt===0?null:((gt=fn.parent)===null||gt===void 0?void 0:gt.key)||null,dropAllowed:Fe}}function ee(ye,Ce){if(ye){var Re=Ce.multiple;return Re?ye.slice():ye.length?[ye[0]]:ye}}var ue=function(Ce){return Ce};function se(ye,Ce){if(!ye)return[];var Re=Ce||{},Oe=Re.processProps,We=Oe===void 0?ue:Oe,Be=Array.isArray(ye)?ye:[ye];return Be.map(function(Ie){var Qe=Ie.children,rt=_objectWithoutProperties(Ie,yt),xt=se(Qe,Ce);return React.createElement(TreeNode,_extends({key:rt.key},We(rt)),xt)})}function de(ye){if(!ye)return null;var Ce;if(Array.isArray(ye))Ce={checkedKeys:ye,halfCheckedKeys:void 0};else if((0,Ve.Z)(ye)==="object")Ce={checkedKeys:ye.checked||void 0,halfCheckedKeys:ye.halfChecked||void 0};else return(0,ut.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Ce}function pe(ye,Ce){var Re=new Set;function Oe(We){if(!Re.has(We)){var Be=(0,ze.Z)(Ce,We);if(Be){Re.add(We);var Ie=Be.parent,Qe=Be.node;Qe.disabled||Ie&&Oe(Ie.key)}}}return(ye||[]).forEach(function(We){Oe(We)}),(0,me.Z)(Re)}},34643:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{S:function(){return Ue}});var me=Pe(48736),Ve=Pe(65065);function ut(yt,ot){var Me=new Set;return yt.forEach(function(Et){ot.has(Et)||Me.add(Et)}),Me}function nt(yt){var ot=yt||{},Me=ot.disabled,Et=ot.disableCheckbox,_e=ot.checkable;return!!(Me||Et)||_e===!1}function it(yt,ot,Me,Et){for(var _e=new Set(yt),ht=new Set,Ee=0;Ee<=Me;Ee+=1){var ne=ot.get(Ee)||new Set;ne.forEach(function(de){var pe=de.key,ye=de.node,Ce=de.children,Re=Ce===void 0?[]:Ce;_e.has(pe)&&!Et(ye)&&Re.filter(function(Oe){return!Et(Oe.node)}).forEach(function(Oe){_e.add(Oe.key)})})}for(var ee=new Set,ue=Me;ue>=0;ue-=1){var se=ot.get(ue)||new Set;se.forEach(function(de){var pe=de.parent,ye=de.node;if(!(Et(ye)||!de.parent||ee.has(de.parent.key))){if(Et(de.parent.node)){ee.add(pe.key);return}var Ce=!0,Re=!1;(pe.children||[]).filter(function(Oe){return!Et(Oe.node)}).forEach(function(Oe){var We=Oe.key,Be=_e.has(We);Ce&&!Be&&(Ce=!1),!Re&&(Be||ht.has(We))&&(Re=!0)}),Ce&&_e.add(pe.key),Re&&ht.add(pe.key),ee.add(pe.key)}})}return{checkedKeys:Array.from(_e),halfCheckedKeys:Array.from(ut(ht,_e))}}function ze(yt,ot,Me,Et,_e){for(var ht=new Set(yt),Ee=new Set(ot),ne=0;ne<=Et;ne+=1){var ee=Me.get(ne)||new Set;ee.forEach(function(pe){var ye=pe.key,Ce=pe.node,Re=pe.children,Oe=Re===void 0?[]:Re;!ht.has(ye)&&!Ee.has(ye)&&!_e(Ce)&&Oe.filter(function(We){return!_e(We.node)}).forEach(function(We){ht.delete(We.key)})})}Ee=new Set;for(var ue=new Set,se=Et;se>=0;se-=1){var de=Me.get(se)||new Set;de.forEach(function(pe){var ye=pe.parent,Ce=pe.node;if(!(_e(Ce)||!pe.parent||ue.has(pe.parent.key))){if(_e(pe.parent.node)){ue.add(ye.key);return}var Re=!0,Oe=!1;(ye.children||[]).filter(function(We){return!_e(We.node)}).forEach(function(We){var Be=We.key,Ie=ht.has(Be);Re&&!Ie&&(Re=!1),!Oe&&(Ie||Ee.has(Be))&&(Oe=!0)}),Re||ht.delete(ye.key),Oe&&Ee.add(ye.key),ue.add(ye.key)}})}return{checkedKeys:Array.from(ht),halfCheckedKeys:Array.from(ut(Ee,ht))}}function Ue(yt,ot,Me,Et){var _e=[],ht;Et?ht=Et:ht=nt;var Ee=new Set(yt.filter(function(se){var de=!!(0,Ve.Z)(Me,se);return de||_e.push(se),de})),ne=new Map,ee=0;Object.keys(Me).forEach(function(se){var de=Me[se],pe=de.level,ye=ne.get(pe);ye||(ye=new Set,ne.set(pe,ye)),ye.add(de),ee=Math.max(ee,pe)}),(0,me.ZP)(!_e.length,"Tree missing follow keys: ".concat(_e.slice(0,100).map(function(se){return"'".concat(se,"'")}).join(", ")));var ue;return ot===!0?ue=it(Ee,ne,ee,ht):ue=ze(Ee,ot.halfCheckedKeys,ne,ee,ht),ue}},65065:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Z:function(){return me}});function me(Ve,ut){return Ve[ut]}},34061:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{F:function(){return pe},H8:function(){return de},I8:function(){return se},km:function(){return _e},oH:function(){return ee},w$:function(){return ht},zn:function(){return ne}});var me=Pe(26420),Ve=Pe(15142),ut=Pe(98506),nt=Pe(33346),it=Pe(11592),ze=Pe(2738),Ue=Pe(48736),yt=Pe(65065),ot=["children"];function Me(ye,Ce){return"".concat(ye,"-").concat(Ce)}function Et(ye){return ye&&ye.type&&ye.type.isTreeNode}function _e(ye,Ce){return ye!=null?ye:Ce}function ht(ye){var Ce=ye||{},Re=Ce.title,Oe=Ce._title,We=Ce.key,Be=Ce.children,Ie=Re||"title";return{title:Ie,_title:Oe||[Ie],key:We||"key",children:Be||"children"}}function Ee(ye,Ce){var Re=new Map;function Oe(We){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(We||[]).forEach(function(Ie){var Qe=Ie[Ce.key],rt=Ie[Ce.children];warning(Qe!=null,"Tree node must have a certain key: [".concat(Be).concat(Qe,"]"));var xt=String(Qe);warning(!Re.has(xt)||Qe===null||Qe===void 0,"Same 'key' exist in the Tree: ".concat(xt)),Re.set(xt,!0),Oe(rt,"".concat(Be).concat(xt," > "))})}Oe(ye)}function ne(ye){function Ce(Re){var Oe=(0,it.Z)(Re);return Oe.map(function(We){if(!Et(We))return(0,Ue.ZP)(!We,"Tree/TreeNode can only accept TreeNode as children."),null;var Be=We.key,Ie=We.props,Qe=Ie.children,rt=(0,nt.Z)(Ie,ot),xt=(0,ut.Z)({key:Be},rt),gt=Ce(Qe);return gt.length&&(xt.children=gt),xt}).filter(function(We){return We})}return Ce(ye)}function ee(ye,Ce,Re){var Oe=ht(Re),We=Oe._title,Be=Oe.key,Ie=Oe.children,Qe=new Set(Ce===!0?[]:Ce),rt=[];function xt(gt){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return gt.map(function(At,Tt){for(var Nt=Me(bt?bt.pos:"0",Tt),Ut=_e(At[Be],Nt),st,He=0;He<We.length;He+=1){var jt=We[He];if(At[jt]!==void 0){st=At[jt];break}}var fn=Object.assign((0,ze.Z)(At,[].concat((0,Ve.Z)(We),[Be,Ie])),{title:st,key:Ut,parent:bt,pos:Nt,children:null,data:At,isStart:[].concat((0,Ve.Z)(bt?bt.isStart:[]),[Tt===0]),isEnd:[].concat((0,Ve.Z)(bt?bt.isEnd:[]),[Tt===gt.length-1])});return rt.push(fn),Ce===!0||Qe.has(Ut)?fn.children=xt(At[Ie]||[],fn):fn.children=[],fn})}return xt(ye),rt}function ue(ye,Ce,Re){var Oe={};(0,me.Z)(Re)==="object"?Oe=Re:Oe={externalGetKey:Re},Oe=Oe||{};var We=Oe,Be=We.childrenPropName,Ie=We.externalGetKey,Qe=We.fieldNames,rt=ht(Qe),xt=rt.key,gt=rt.children,bt=Be||gt,At;Ie?typeof Ie=="string"?At=function(Ut){return Ut[Ie]}:typeof Ie=="function"&&(At=function(Ut){return Ie(Ut)}):At=function(Ut,st){return _e(Ut[xt],st)};function Tt(Nt,Ut,st,He){var jt=Nt?Nt[bt]:ye,fn=Nt?Me(st.pos,Ut):"0",Bt=Nt?[].concat((0,Ve.Z)(He),[Nt]):[];if(Nt){var Ft=At(Nt,fn),It={node:Nt,index:Ut,pos:fn,key:Ft,parentPos:st.node?st.pos:null,level:st.level+1,nodes:Bt};Ce(It)}jt&&jt.forEach(function(Vt,wn){Tt(Vt,wn,{node:Nt,pos:fn,level:st?st.level+1:-1},Bt)})}Tt(null)}function se(ye){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Re=Ce.initWrapper,Oe=Ce.processEntity,We=Ce.onProcessFinished,Be=Ce.externalGetKey,Ie=Ce.childrenPropName,Qe=Ce.fieldNames,rt=arguments.length>2?arguments[2]:void 0,xt=Be||rt,gt={},bt={},At={posEntities:gt,keyEntities:bt};return Re&&(At=Re(At)||At),ue(ye,function(Tt){var Nt=Tt.node,Ut=Tt.index,st=Tt.pos,He=Tt.key,jt=Tt.parentPos,fn=Tt.level,Bt=Tt.nodes,Ft={node:Nt,nodes:Bt,index:Ut,key:He,pos:st,level:fn},It=_e(He,st);gt[st]=Ft,bt[It]=Ft,Ft.parent=gt[jt],Ft.parent&&(Ft.parent.children=Ft.parent.children||[],Ft.parent.children.push(Ft)),Oe&&Oe(Ft,At)},{externalGetKey:xt,childrenPropName:Ie,fieldNames:Qe}),We&&We(At),At}function de(ye,Ce){var Re=Ce.expandedKeys,Oe=Ce.selectedKeys,We=Ce.loadedKeys,Be=Ce.loadingKeys,Ie=Ce.checkedKeys,Qe=Ce.halfCheckedKeys,rt=Ce.dragOverNodeKey,xt=Ce.dropPosition,gt=Ce.keyEntities,bt=(0,yt.Z)(gt,ye),At={eventKey:ye,expanded:Re.indexOf(ye)!==-1,selected:Oe.indexOf(ye)!==-1,loaded:We.indexOf(ye)!==-1,loading:Be.indexOf(ye)!==-1,checked:Ie.indexOf(ye)!==-1,halfChecked:Qe.indexOf(ye)!==-1,pos:String(bt?bt.pos:""),dragOver:rt===ye&&xt===0,dragOverGapTop:rt===ye&&xt===-1,dragOverGapBottom:rt===ye&&xt===1};return At}function pe(ye){var Ce=ye.data,Re=ye.expanded,Oe=ye.selected,We=ye.checked,Be=ye.loaded,Ie=ye.loading,Qe=ye.halfChecked,rt=ye.dragOver,xt=ye.dragOverGapTop,gt=ye.dragOverGapBottom,bt=ye.pos,At=ye.active,Tt=ye.eventKey,Nt=(0,ut.Z)((0,ut.Z)({},Ce),{},{expanded:Re,selected:Oe,checked:We,loaded:Be,loading:Ie,halfChecked:Qe,dragOver:rt,dragOverGapTop:xt,dragOverGapBottom:gt,pos:bt,active:At,key:Tt});return"props"in Nt||Object.defineProperty(Nt,"props",{get:function(){return(0,Ue.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),ye}}),Nt}},90472:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Z:function(){return Tt}});var me=Pe(67711),Ve=Pe(42573),ut=Pe(58698),nt=Pe(62437),it=Pe(74700),ze=Pe(45080),Ue=Pe(52873),yt=Pe(59301),ot=Pe(98506),Me=Pe(33346),Et=Pe(26420),_e=Pe(77910),ht=Pe(51343),Ee=Pe(15142),ne=Pe(92310),ee=Pe.n(ne),ue=Pe(26112),se=Pe(48736),de=function(Nt,Ut){if(Nt&&Ut){var st=Array.isArray(Ut)?Ut:Ut.split(","),He=Nt.name||"",jt=Nt.type||"",fn=jt.replace(/\/.*$/,"");return st.some(function(Bt){var Ft=Bt.trim();if(/^\*(\/\*)?$/.test(Bt))return!0;if(Ft.charAt(0)==="."){var It=He.toLowerCase(),Vt=Ft.toLowerCase(),wn=[Vt];return(Vt===".jpg"||Vt===".jpeg")&&(wn=[".jpg",".jpeg"]),wn.some(function(Dt){return It.endsWith(Dt)})}return/\/\*$/.test(Ft)?fn===Ft.replace(/\/.*$/,""):jt===Ft?!0:/^\w+$/.test(Ft)?((0,se.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ft,"'.Skip for check.")),!0):!1})}return!0};function pe(Nt,Ut){var st="cannot ".concat(Nt.method," ").concat(Nt.action," ").concat(Ut.status,"'"),He=new Error(st);return He.status=Ut.status,He.method=Nt.method,He.url=Nt.action,He}function ye(Nt){var Ut=Nt.responseText||Nt.response;if(!Ut)return Ut;try{return JSON.parse(Ut)}catch(st){return Ut}}function Ce(Nt){var Ut=new XMLHttpRequest;Nt.onProgress&&Ut.upload&&(Ut.upload.onprogress=function(fn){fn.total>0&&(fn.percent=fn.loaded/fn.total*100),Nt.onProgress(fn)});var st=new FormData;Nt.data&&Object.keys(Nt.data).forEach(function(jt){var fn=Nt.data[jt];if(Array.isArray(fn)){fn.forEach(function(Bt){st.append("".concat(jt,"[]"),Bt)});return}st.append(jt,fn)}),Nt.file instanceof Blob?st.append(Nt.filename,Nt.file,Nt.file.name):st.append(Nt.filename,Nt.file),Ut.onerror=function(fn){Nt.onError(fn)},Ut.onload=function(){return Ut.status<200||Ut.status>=300?Nt.onError(pe(Nt,Ut),ye(Ut)):Nt.onSuccess(ye(Ut),Ut)},Ut.open(Nt.method,Nt.action,!0),Nt.withCredentials&&"withCredentials"in Ut&&(Ut.withCredentials=!0);var He=Nt.headers||{};return He["X-Requested-With"]!==null&&Ut.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(He).forEach(function(jt){He[jt]!==null&&Ut.setRequestHeader(jt,He[jt])}),Ut.send(st),{abort:function(){Ut.abort()}}}var Re=function(){var Nt=(0,ht.Z)((0,_e.Z)().mark(function Ut(st,He){var jt,fn,Bt,Ft,It,Vt,wn,Dt;return(0,_e.Z)().wrap(function(zt){for(;;)switch(zt.prev=zt.next){case 0:Vt=function(){return Vt=(0,ht.Z)((0,_e.Z)().mark(function kn(Ze){return(0,_e.Z)().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return xe.abrupt("return",new Promise(function(Te){Ze.file(function(Ye){He(Ye)?(Ze.fullPath&&!Ye.webkitRelativePath&&(Object.defineProperties(Ye,{webkitRelativePath:{writable:!0}}),Ye.webkitRelativePath=Ze.fullPath.replace(/^\//,""),Object.defineProperties(Ye,{webkitRelativePath:{writable:!1}})),Te(Ye)):Te(null)})}));case 1:case"end":return xe.stop()}},kn)})),Vt.apply(this,arguments)},It=function(kn){return Vt.apply(this,arguments)},Ft=function(){return Ft=(0,ht.Z)((0,_e.Z)().mark(function kn(Ze){var Fe,xe,Te,Ye,De;return(0,_e.Z)().wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:Fe=Ze.createReader(),xe=[];case 2:return Ht.next=5,new Promise(function($t){Fe.readEntries($t,function(){return $t([])})});case 5:if(Te=Ht.sent,Ye=Te.length,Ye){Ht.next=9;break}return Ht.abrupt("break",12);case 9:for(De=0;De<Ye;De++)xe.push(Te[De]);Ht.next=2;break;case 12:return Ht.abrupt("return",xe);case 13:case"end":return Ht.stop()}},kn)})),Ft.apply(this,arguments)},Bt=function(kn){return Ft.apply(this,arguments)},jt=[],fn=[],st.forEach(function(En){return fn.push(En.webkitGetAsEntry())}),wn=function(){var En=(0,ht.Z)((0,_e.Z)().mark(function kn(Ze,Fe){var xe,Te;return(0,_e.Z)().wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(Ze){De.next=2;break}return De.abrupt("return");case 2:if(Ze.path=Fe||"",!Ze.isFile){De.next=10;break}return De.next=6,It(Ze);case 6:xe=De.sent,xe&&jt.push(xe),De.next=15;break;case 10:if(!Ze.isDirectory){De.next=15;break}return De.next=13,Bt(Ze);case 13:Te=De.sent,fn.push.apply(fn,(0,Ee.Z)(Te));case 15:case"end":return De.stop()}},kn)}));return function(Ze,Fe){return En.apply(this,arguments)}}(),Dt=0;case 9:if(!(Dt<fn.length)){zt.next=15;break}return zt.next=12,wn(fn[Dt]);case 12:Dt++,zt.next=9;break;case 15:return zt.abrupt("return",jt);case 16:case"end":return zt.stop()}},Ut)}));return function(st,He){return Nt.apply(this,arguments)}}(),Oe=Re,We=+new Date,Be=0;function Ie(){return"rc-upload-".concat(We,"-").concat(++Be)}var Qe=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],rt=function(Nt){(0,it.Z)(st,Nt);var Ut=(0,ze.Z)(st);function st(){var He;(0,Ve.Z)(this,st);for(var jt=arguments.length,fn=new Array(jt),Bt=0;Bt<jt;Bt++)fn[Bt]=arguments[Bt];return He=Ut.call.apply(Ut,[this].concat(fn)),(0,Ue.Z)((0,nt.Z)(He),"state",{uid:Ie()}),(0,Ue.Z)((0,nt.Z)(He),"reqs",{}),(0,Ue.Z)((0,nt.Z)(He),"fileInput",void 0),(0,Ue.Z)((0,nt.Z)(He),"_isMounted",void 0),(0,Ue.Z)((0,nt.Z)(He),"onChange",function(Ft){var It=He.props,Vt=It.accept,wn=It.directory,Dt=Ft.target.files,vt=(0,Ee.Z)(Dt).filter(function(zt){return!wn||de(zt,Vt)});He.uploadFiles(vt),He.reset()}),(0,Ue.Z)((0,nt.Z)(He),"onClick",function(Ft){var It=He.fileInput;if(It){var Vt=Ft.target,wn=He.props.onClick;if(Vt&&Vt.tagName==="BUTTON"){var Dt=It.parentNode;Dt.focus(),Vt.blur()}It.click(),wn&&wn(Ft)}}),(0,Ue.Z)((0,nt.Z)(He),"onKeyDown",function(Ft){Ft.key==="Enter"&&He.onClick(Ft)}),(0,Ue.Z)((0,nt.Z)(He),"onFileDrop",function(){var Ft=(0,ht.Z)((0,_e.Z)().mark(function It(Vt){var wn,Dt,vt;return(0,_e.Z)().wrap(function(En){for(;;)switch(En.prev=En.next){case 0:if(wn=He.props.multiple,Vt.preventDefault(),Vt.type!=="dragover"){En.next=4;break}return En.abrupt("return");case 4:if(!He.props.directory){En.next=11;break}return En.next=7,Oe(Array.prototype.slice.call(Vt.dataTransfer.items),function(kn){return de(kn,He.props.accept)});case 7:Dt=En.sent,He.uploadFiles(Dt),En.next=14;break;case 11:vt=(0,Ee.Z)(Vt.dataTransfer.files).filter(function(kn){return de(kn,He.props.accept)}),wn===!1&&(vt=vt.slice(0,1)),He.uploadFiles(vt);case 14:case"end":return En.stop()}},It)}));return function(It){return Ft.apply(this,arguments)}}()),(0,Ue.Z)((0,nt.Z)(He),"uploadFiles",function(Ft){var It=(0,Ee.Z)(Ft),Vt=It.map(function(wn){return wn.uid=Ie(),He.processFile(wn,It)});Promise.all(Vt).then(function(wn){var Dt=He.props.onBatchStart;Dt==null||Dt(wn.map(function(vt){var zt=vt.origin,En=vt.parsedFile;return{file:zt,parsedFile:En}})),wn.filter(function(vt){return vt.parsedFile!==null}).forEach(function(vt){He.post(vt)})})}),(0,Ue.Z)((0,nt.Z)(He),"processFile",function(){var Ft=(0,ht.Z)((0,_e.Z)().mark(function It(Vt,wn){var Dt,vt,zt,En,kn,Ze,Fe,xe,Te;return(0,_e.Z)().wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(Dt=He.props.beforeUpload,vt=Vt,!Dt){De.next=14;break}return De.prev=3,De.next=6,Dt(Vt,wn);case 6:vt=De.sent,De.next=12;break;case 9:De.prev=9,De.t0=De.catch(3),vt=!1;case 12:if(vt!==!1){De.next=14;break}return De.abrupt("return",{origin:Vt,parsedFile:null,action:null,data:null});case 14:if(zt=He.props.action,typeof zt!="function"){De.next=21;break}return De.next=18,zt(Vt);case 18:En=De.sent,De.next=22;break;case 21:En=zt;case 22:if(kn=He.props.data,typeof kn!="function"){De.next=29;break}return De.next=26,kn(Vt);case 26:Ze=De.sent,De.next=30;break;case 29:Ze=kn;case 30:return Fe=((0,Et.Z)(vt)==="object"||typeof vt=="string")&&vt?vt:Vt,Fe instanceof File?xe=Fe:xe=new File([Fe],Vt.name,{type:Vt.type}),Te=xe,Te.uid=Vt.uid,De.abrupt("return",{origin:Vt,data:Ze,parsedFile:Te,action:En});case 35:case"end":return De.stop()}},It,null,[[3,9]])}));return function(It,Vt){return Ft.apply(this,arguments)}}()),(0,Ue.Z)((0,nt.Z)(He),"saveFileInput",function(Ft){He.fileInput=Ft}),He}return(0,ut.Z)(st,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(jt){var fn=this,Bt=jt.data,Ft=jt.origin,It=jt.action,Vt=jt.parsedFile;if(this._isMounted){var wn=this.props,Dt=wn.onStart,vt=wn.customRequest,zt=wn.name,En=wn.headers,kn=wn.withCredentials,Ze=wn.method,Fe=Ft.uid,xe=vt||Ce,Te={action:It,filename:zt,data:Bt,file:Vt,headers:En,withCredentials:kn,method:Ze||"post",onProgress:function(De){var tt=fn.props.onProgress;tt==null||tt(De,Vt)},onSuccess:function(De,tt){var Ht=fn.props.onSuccess;Ht==null||Ht(De,Vt,tt),delete fn.reqs[Fe]},onError:function(De,tt){var Ht=fn.props.onError;Ht==null||Ht(De,tt,Vt),delete fn.reqs[Fe]}};Dt(Ft),this.reqs[Fe]=xe(Te)}}},{key:"reset",value:function(){this.setState({uid:Ie()})}},{key:"abort",value:function(jt){var fn=this.reqs;if(jt){var Bt=jt.uid?jt.uid:jt;fn[Bt]&&fn[Bt].abort&&fn[Bt].abort(),delete fn[Bt]}else Object.keys(fn).forEach(function(Ft){fn[Ft]&&fn[Ft].abort&&fn[Ft].abort(),delete fn[Ft]})}},{key:"render",value:function(){var jt=this.props,fn=jt.component,Bt=jt.prefixCls,Ft=jt.className,It=jt.classNames,Vt=It===void 0?{}:It,wn=jt.disabled,Dt=jt.id,vt=jt.name,zt=jt.style,En=jt.styles,kn=En===void 0?{}:En,Ze=jt.multiple,Fe=jt.accept,xe=jt.capture,Te=jt.children,Ye=jt.directory,De=jt.openFileDialogOnClick,tt=jt.onMouseEnter,Ht=jt.onMouseLeave,$t=jt.hasControlInside,Sn=(0,Me.Z)(jt,Qe),en=ee()((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},Bt,!0),"".concat(Bt,"-disabled"),wn),Ft,Ft)),kt=Ye?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},nn=wn?{}:{onClick:De?this.onClick:function(){},onKeyDown:De?this.onKeyDown:function(){},onMouseEnter:tt,onMouseLeave:Ht,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:$t?void 0:"0"};return yt.createElement(fn,(0,me.Z)({},nn,{className:en,role:$t?void 0:"button",style:zt}),yt.createElement("input",(0,me.Z)({},(0,ue.Z)(Sn,{aria:!0,data:!0}),{id:Dt,name:vt,disabled:wn,type:"file",ref:this.saveFileInput,onClick:function(zn){return zn.stopPropagation()},key:this.state.uid,style:(0,ot.Z)({display:"none"},kn.input),className:Vt.input,accept:Fe},kt,{multiple:Ze,onChange:this.onChange},xe!=null?{capture:xe}:{})),Te)}}]),st}(yt.Component),xt=rt;function gt(){}var bt=function(Nt){(0,it.Z)(st,Nt);var Ut=(0,ze.Z)(st);function st(){var He;(0,Ve.Z)(this,st);for(var jt=arguments.length,fn=new Array(jt),Bt=0;Bt<jt;Bt++)fn[Bt]=arguments[Bt];return He=Ut.call.apply(Ut,[this].concat(fn)),(0,Ue.Z)((0,nt.Z)(He),"uploader",void 0),(0,Ue.Z)((0,nt.Z)(He),"saveUploader",function(Ft){He.uploader=Ft}),He}return(0,ut.Z)(st,[{key:"abort",value:function(jt){this.uploader.abort(jt)}},{key:"render",value:function(){return yt.createElement(xt,(0,me.Z)({},this.props,{ref:this.saveUploader}))}}]),st}(yt.Component);(0,Ue.Z)(bt,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:gt,onError:gt,onSuccess:gt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var At=bt,Tt=At},8224:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Z:function(){return Ve}});var me=Pe(4676);function Ve(ut,nt,it,ze){var Ue=me.unstable_batchedUpdates?function(ot){me.unstable_batchedUpdates(it,ot)}:it;return ut!=null&&ut.addEventListener&&ut.addEventListener(nt,Ue,ze),{remove:function(){ut!=null&&ut.removeEventListener&&ut.removeEventListener(nt,Ue,ze)}}}},24514:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{G:function(){return nt}});var me=Pe(47273),Ve=function(ze){if((0,me.Z)()&&window.document.documentElement){var Ue=Array.isArray(ze)?ze:[ze],yt=window.document.documentElement;return Ue.some(function(ot){return ot in yt.style})}return!1},ut=function(ze,Ue){if(!Ve(ze))return!1;var yt=document.createElement("div"),ot=yt.style[ze];return yt.style[ze]=Ue,yt.style[ze]!==ot};function nt(it,ze){return!Array.isArray(it)&&ze!==void 0?ut(it,ze):Ve(it)}},6790:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Z:function(){return kn}});var me=Pe(67711),Ve=Pe(26420),ut=Pe(98506),nt=Pe(52873),it=Pe(16886),ze=Pe(33346),Ue=Pe(92310),yt=Pe.n(Ue),ot=Pe(29301),Me=Pe(70425),Et=Pe(34280),_e=Pe(59301),ht=Pe(4676),Ee=_e.forwardRef(function(Ze,Fe){var xe=Ze.height,Te=Ze.offsetY,Ye=Ze.offsetX,De=Ze.children,tt=Ze.prefixCls,Ht=Ze.onInnerResize,$t=Ze.innerProps,Sn=Ze.rtl,en=Ze.extra,kt={},nn={display:"flex",flexDirection:"column"};return Te!==void 0&&(kt={height:xe,position:"relative",overflow:"hidden"},nn=(0,ut.Z)((0,ut.Z)({},nn),{},(0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)({transform:"translateY(".concat(Te,"px)")},Sn?"marginRight":"marginLeft",-Ye),"position","absolute"),"left",0),"right",0),"top",0))),_e.createElement("div",{style:kt},_e.createElement(ot.Z,{onResize:function(zn){var fi=zn.offsetHeight;fi&&Ht&&Ht()}},_e.createElement("div",(0,me.Z)({style:nn,className:yt()((0,nt.Z)({},"".concat(tt,"-holder-inner"),tt)),ref:Fe},$t),De,en)))});Ee.displayName="Filler";var ne=Ee;function ee(Ze){var Fe=Ze.children,xe=Ze.setRef,Te=_e.useCallback(function(Ye){xe(Ye)},[]);return _e.cloneElement(Fe,{ref:Te})}function ue(Ze,Fe,xe,Te,Ye,De,tt,Ht){var $t=Ht.getKey;return Ze.slice(Fe,xe+1).map(function(Sn,en){var kt=Fe+en,nn=tt(Sn,kt,{style:{width:Te},offsetX:Ye}),hn=$t(Sn);return _e.createElement(ee,{key:hn,setRef:function(fi){return De(Sn,fi)}},nn)})}function se(Ze,Fe,xe,Te){var Ye=xe-Ze,De=Fe-xe,tt=Math.min(Ye,De)*2;if(Te<=tt){var Ht=Math.floor(Te/2);return Te%2?xe+Ht+1:xe-Ht}return Ye>De?xe-(Te-De):xe+(Te-Ye)}function de(Ze,Fe,xe){var Te=Ze.length,Ye=Fe.length,De,tt;if(Te===0&&Ye===0)return null;Te<Ye?(De=Ze,tt=Fe):(De=Fe,tt=Ze);var Ht={__EMPTY_ITEM__:!0};function $t(zn){return zn!==void 0?xe(zn):Ht}for(var Sn=null,en=Math.abs(Te-Ye)!==1,kt=0;kt<tt.length;kt+=1){var nn=$t(De[kt]),hn=$t(tt[kt]);if(nn!==hn){Sn=kt,en=en||nn!==$t(tt[kt+1]);break}}return Sn===null?null:{index:Sn,multiple:en}}function pe(Ze,Fe,xe){var Te=_e.useState(Ze),Ye=(0,it.Z)(Te,2),De=Ye[0],tt=Ye[1],Ht=_e.useState(null),$t=(0,it.Z)(Ht,2),Sn=$t[0],en=$t[1];return _e.useEffect(function(){var kt=de(De||[],Ze||[],Fe);(kt==null?void 0:kt.index)!==void 0&&(xe==null||xe(kt.index),en(Ze[kt.index])),tt(Ze)},[Ze]),[Sn]}var ye=Pe(16089),Ce=(typeof navigator=="undefined"?"undefined":(0,Ve.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Re=Ce,Oe=function(Ze,Fe,xe,Te){var Ye=(0,_e.useRef)(!1),De=(0,_e.useRef)(null);function tt(){clearTimeout(De.current),Ye.current=!0,De.current=setTimeout(function(){Ye.current=!1},50)}var Ht=(0,_e.useRef)({top:Ze,bottom:Fe,left:xe,right:Te});return Ht.current.top=Ze,Ht.current.bottom=Fe,Ht.current.left=xe,Ht.current.right=Te,function($t,Sn){var en=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,kt=$t?Sn<0&&Ht.current.left||Sn>0&&Ht.current.right:Sn<0&&Ht.current.top||Sn>0&&Ht.current.bottom;return en&&kt?(clearTimeout(De.current),Ye.current=!1):(!kt||Ye.current)&&tt(),!Ye.current&&kt}};function We(Ze,Fe,xe,Te,Ye,De,tt){var Ht=(0,_e.useRef)(0),$t=(0,_e.useRef)(null),Sn=(0,_e.useRef)(null),en=(0,_e.useRef)(!1),kt=Oe(Fe,xe,Te,Ye);function nn(Ci,Yn){if(ye.Z.cancel($t.current),!kt(!1,Yn)){var Ei=Ci;if(!Ei._virtualHandled)Ei._virtualHandled=!0;else return;Ht.current+=Yn,Sn.current=Yn,Re||Ei.preventDefault(),$t.current=(0,ye.Z)(function(){var pi=en.current?10:1;tt(Ht.current*pi,!1),Ht.current=0})}}function hn(Ci,Yn){tt(Yn,!0),Re||Ci.preventDefault()}var zn=(0,_e.useRef)(null),fi=(0,_e.useRef)(null);function _n(Ci){if(Ze){ye.Z.cancel(fi.current),fi.current=(0,ye.Z)(function(){zn.current=null},2);var Yn=Ci.deltaX,Ei=Ci.deltaY,pi=Ci.shiftKey,ji=Yn,Qi=Ei;(zn.current==="sx"||!zn.current&&pi&&Ei&&!Yn)&&(ji=Ei,Qi=0,zn.current="sx");var lr=Math.abs(ji),Lr=Math.abs(Qi);zn.current===null&&(zn.current=De&&lr>Lr?"x":"y"),zn.current==="y"?nn(Ci,Qi):hn(Ci,ji)}}function Pi(Ci){Ze&&(en.current=Ci.detail===Sn.current)}return[_n,Pi]}function Be(Ze,Fe,xe,Te){var Ye=_e.useMemo(function(){return[new Map,[]]},[Ze,xe.id,Te]),De=(0,it.Z)(Ye,2),tt=De[0],Ht=De[1],$t=function(en){var kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:en,nn=tt.get(en),hn=tt.get(kt);if(nn===void 0||hn===void 0)for(var zn=Ze.length,fi=Ht.length;fi<zn;fi+=1){var _n,Pi=Ze[fi],Ci=Fe(Pi);tt.set(Ci,fi);var Yn=(_n=xe.get(Ci))!==null&&_n!==void 0?_n:Te;if(Ht[fi]=(Ht[fi-1]||0)+Yn,Ci===en&&(nn=fi),Ci===kt&&(hn=fi),nn!==void 0&&hn!==void 0)break}return{top:Ht[nn-1]||0,bottom:Ht[hn]}};return $t}var Ie=Pe(42573),Qe=Pe(58698),rt=function(){function Ze(){(0,Ie.Z)(this,Ze),(0,nt.Z)(this,"maps",void 0),(0,nt.Z)(this,"id",0),(0,nt.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Qe.Z)(Ze,[{key:"set",value:function(xe,Te){this.diffRecords.set(xe,this.maps[xe]),this.maps[xe]=Te,this.id+=1}},{key:"get",value:function(xe){return this.maps[xe]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),Ze}(),xt=rt;function gt(Ze){var Fe=parseFloat(Ze);return isNaN(Fe)?0:Fe}function bt(Ze,Fe,xe){var Te=_e.useState(0),Ye=(0,it.Z)(Te,2),De=Ye[0],tt=Ye[1],Ht=(0,_e.useRef)(new Map),$t=(0,_e.useRef)(new xt),Sn=(0,_e.useRef)(0);function en(){Sn.current+=1}function kt(){var hn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;en();var zn=function(){var Pi=!1;Ht.current.forEach(function(Ci,Yn){if(Ci&&Ci.offsetParent){var Ei=Ci.offsetHeight,pi=getComputedStyle(Ci),ji=pi.marginTop,Qi=pi.marginBottom,lr=gt(ji),Lr=gt(Qi),Di=Ei+lr+Lr;$t.current.get(Yn)!==Di&&($t.current.set(Yn,Di),Pi=!0)}}),Pi&&tt(function(Ci){return Ci+1})};if(hn)zn();else{Sn.current+=1;var fi=Sn.current;Promise.resolve().then(function(){fi===Sn.current&&zn()})}}function nn(hn,zn){var fi=Ze(hn),_n=Ht.current.get(fi);zn?(Ht.current.set(fi,zn),kt()):Ht.current.delete(fi),!_n!=!zn&&(zn?Fe==null||Fe(hn):xe==null||xe(hn))}return(0,_e.useEffect)(function(){return en},[]),[nn,kt,$t.current,De]}var At=14/15;function Tt(Ze,Fe,xe){var Te=(0,_e.useRef)(!1),Ye=(0,_e.useRef)(0),De=(0,_e.useRef)(0),tt=(0,_e.useRef)(null),Ht=(0,_e.useRef)(null),$t,Sn=function(hn){if(Te.current){var zn=Math.ceil(hn.touches[0].pageX),fi=Math.ceil(hn.touches[0].pageY),_n=Ye.current-zn,Pi=De.current-fi,Ci=Math.abs(_n)>Math.abs(Pi);Ci?Ye.current=zn:De.current=fi;var Yn=xe(Ci,Ci?_n:Pi,!1,hn);Yn&&hn.preventDefault(),clearInterval(Ht.current),Yn&&(Ht.current=setInterval(function(){Ci?_n*=At:Pi*=At;var Ei=Math.floor(Ci?_n:Pi);(!xe(Ci,Ei,!0)||Math.abs(Ei)<=.1)&&clearInterval(Ht.current)},16))}},en=function(){Te.current=!1,$t()},kt=function(hn){$t(),hn.touches.length===1&&!Te.current&&(Te.current=!0,Ye.current=Math.ceil(hn.touches[0].pageX),De.current=Math.ceil(hn.touches[0].pageY),tt.current=hn.target,tt.current.addEventListener("touchmove",Sn,{passive:!1}),tt.current.addEventListener("touchend",en,{passive:!0}))};$t=function(){tt.current&&(tt.current.removeEventListener("touchmove",Sn),tt.current.removeEventListener("touchend",en))},(0,Et.Z)(function(){return Ze&&Fe.current.addEventListener("touchstart",kt,{passive:!0}),function(){var nn;(nn=Fe.current)===null||nn===void 0||nn.removeEventListener("touchstart",kt),$t(),clearInterval(Ht.current)}},[Ze])}function Nt(Ze){return Math.floor(Math.pow(Ze,.5))}function Ut(Ze,Fe){var xe="touches"in Ze?Ze.touches[0]:Ze;return xe[Fe?"pageX":"pageY"]-window[Fe?"scrollX":"scrollY"]}function st(Ze,Fe,xe){_e.useEffect(function(){var Te=Fe.current;if(Ze&&Te){var Ye=!1,De,tt,Ht=function(){ye.Z.cancel(De)},$t=function nn(){Ht(),De=(0,ye.Z)(function(){xe(tt),nn()})},Sn=function(hn){if(!(hn.target.draggable||hn.button!==0)){var zn=hn;zn._virtualHandled||(zn._virtualHandled=!0,Ye=!0)}},en=function(){Ye=!1,Ht()},kt=function(hn){if(Ye){var zn=Ut(hn,!1),fi=Te.getBoundingClientRect(),_n=fi.top,Pi=fi.bottom;if(zn<=_n){var Ci=_n-zn;tt=-Nt(Ci),$t()}else if(zn>=Pi){var Yn=zn-Pi;tt=Nt(Yn),$t()}else Ht()}};return Te.addEventListener("mousedown",Sn),Te.ownerDocument.addEventListener("mouseup",en),Te.ownerDocument.addEventListener("mousemove",kt),function(){Te.removeEventListener("mousedown",Sn),Te.ownerDocument.removeEventListener("mouseup",en),Te.ownerDocument.removeEventListener("mousemove",kt),Ht()}}},[Ze])}var He=10;function jt(Ze,Fe,xe,Te,Ye,De,tt,Ht){var $t=_e.useRef(),Sn=_e.useState(null),en=(0,it.Z)(Sn,2),kt=en[0],nn=en[1];return(0,Et.Z)(function(){if(kt&&kt.times<He){if(!Ze.current){nn(function(ao){return(0,ut.Z)({},ao)});return}De();var hn=kt.targetAlign,zn=kt.originAlign,fi=kt.index,_n=kt.offset,Pi=Ze.current.clientHeight,Ci=!1,Yn=hn,Ei=null;if(Pi){for(var pi=hn||zn,ji=0,Qi=0,lr=0,Lr=Math.min(Fe.length-1,fi),Di=0;Di<=Lr;Di+=1){var cr=Ye(Fe[Di]);Qi=ji;var to=xe.get(cr);lr=Qi+(to===void 0?Te:to),ji=lr}for(var ki=pi==="top"?_n:Pi-_n,no=Lr;no>=0;no-=1){var fo=Ye(Fe[no]),po=xe.get(fo);if(po===void 0){Ci=!0;break}if(ki-=po,ki<=0)break}switch(pi){case"top":Ei=Qi-_n;break;case"bottom":Ei=lr-Pi+_n;break;default:{var io=Ze.current.scrollTop,hr=io+Pi;Qi<io?Yn="top":lr>hr&&(Yn="bottom")}}Ei!==null&&tt(Ei),Ei!==kt.lastTop&&(Ci=!0)}Ci&&nn((0,ut.Z)((0,ut.Z)({},kt),{},{times:kt.times+1,targetAlign:Yn,lastTop:Ei}))}},[kt,Ze.current]),function(hn){if(hn==null){Ht();return}if(ye.Z.cancel($t.current),typeof hn=="number")tt(hn);else if(hn&&(0,Ve.Z)(hn)==="object"){var zn,fi=hn.align;"index"in hn?zn=hn.index:zn=Fe.findIndex(function(Ci){return Ye(Ci)===hn.key});var _n=hn.offset,Pi=_n===void 0?0:_n;nn({times:0,index:zn,offset:Pi,originAlign:fi})}}}var fn=_e.forwardRef(function(Ze,Fe){var xe=Ze.prefixCls,Te=Ze.rtl,Ye=Ze.scrollOffset,De=Ze.scrollRange,tt=Ze.onStartMove,Ht=Ze.onStopMove,$t=Ze.onScroll,Sn=Ze.horizontal,en=Ze.spinSize,kt=Ze.containerSize,nn=Ze.style,hn=Ze.thumbStyle,zn=Ze.showScrollBar,fi=_e.useState(!1),_n=(0,it.Z)(fi,2),Pi=_n[0],Ci=_n[1],Yn=_e.useState(null),Ei=(0,it.Z)(Yn,2),pi=Ei[0],ji=Ei[1],Qi=_e.useState(null),lr=(0,it.Z)(Qi,2),Lr=lr[0],Di=lr[1],cr=!Te,to=_e.useRef(),ki=_e.useRef(),no=_e.useState(zn),fo=(0,it.Z)(no,2),po=fo[0],io=fo[1],hr=_e.useRef(),ao=function(){zn===!0||zn===!1||(clearTimeout(hr.current),io(!0),hr.current=setTimeout(function(){io(!1)},3e3))},be=De-kt||0,Un=kt-en||0,Xn=_e.useMemo(function(){if(Ye===0||be===0)return 0;var pn=Ye/be;return pn*Un},[Ye,be,Un]),ci=function(zi){zi.stopPropagation(),zi.preventDefault()},mi=_e.useRef({top:Xn,dragging:Pi,pageY:pi,startTop:Lr});mi.current={top:Xn,dragging:Pi,pageY:pi,startTop:Lr};var ei=function(zi){Ci(!0),ji(Ut(zi,Sn)),Di(mi.current.top),tt(),zi.stopPropagation(),zi.preventDefault()};_e.useEffect(function(){var pn=function(un){un.preventDefault()},zi=to.current,Ti=ki.current;return zi.addEventListener("touchstart",pn,{passive:!1}),Ti.addEventListener("touchstart",ei,{passive:!1}),function(){zi.removeEventListener("touchstart",pn),Ti.removeEventListener("touchstart",ei)}},[]);var Gi=_e.useRef();Gi.current=be;var vr=_e.useRef();vr.current=Un,_e.useEffect(function(){if(Pi){var pn,zi=function(un){var In=mi.current,Vi=In.dragging,Fr=In.pageY,ii=In.startTop;ye.Z.cancel(pn);var lt=to.current.getBoundingClientRect(),Rt=kt/(Sn?lt.width:lt.height);if(Vi){var ai=(Ut(un,Sn)-Fr)*Rt,ti=ii;!cr&&Sn?ti-=ai:ti+=ai;var tn=Gi.current,si=vr.current,Ri=si?ti/si:0,Yi=Math.ceil(Ri*tn);Yi=Math.max(Yi,0),Yi=Math.min(Yi,tn),pn=(0,ye.Z)(function(){$t(Yi,Sn)})}},Ti=function(){Ci(!1),Ht()};return window.addEventListener("mousemove",zi,{passive:!0}),window.addEventListener("touchmove",zi,{passive:!0}),window.addEventListener("mouseup",Ti,{passive:!0}),window.addEventListener("touchend",Ti,{passive:!0}),function(){window.removeEventListener("mousemove",zi),window.removeEventListener("touchmove",zi),window.removeEventListener("mouseup",Ti),window.removeEventListener("touchend",Ti),ye.Z.cancel(pn)}}},[Pi]),_e.useEffect(function(){return ao(),function(){clearTimeout(hr.current)}},[Ye]),_e.useImperativeHandle(Fe,function(){return{delayHidden:ao}});var an="".concat(xe,"-scrollbar"),ln={position:"absolute",visibility:po?null:"hidden"},Zt={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Sn?(Object.assign(ln,{height:8,left:0,right:0,bottom:0}),Object.assign(Zt,(0,nt.Z)({height:"100%",width:en},cr?"left":"right",Xn))):(Object.assign(ln,(0,nt.Z)({width:8,top:0,bottom:0},cr?"right":"left",0)),Object.assign(Zt,{width:"100%",height:en,top:Xn})),_e.createElement("div",{ref:to,className:yt()(an,(0,nt.Z)((0,nt.Z)((0,nt.Z)({},"".concat(an,"-horizontal"),Sn),"".concat(an,"-vertical"),!Sn),"".concat(an,"-visible"),po)),style:(0,ut.Z)((0,ut.Z)({},ln),nn),onMouseDown:ci,onMouseMove:ao},_e.createElement("div",{ref:ki,className:yt()("".concat(an,"-thumb"),(0,nt.Z)({},"".concat(an,"-thumb-moving"),Pi)),style:(0,ut.Z)((0,ut.Z)({},Zt),hn),onMouseDown:ei}))}),Bt=fn,Ft=20;function It(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,xe=Ze/Fe*Ze;return isNaN(xe)&&(xe=0),xe=Math.max(xe,Ft),Math.floor(xe)}var Vt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],wn=[],Dt={overflowY:"auto",overflowAnchor:"none"};function vt(Ze,Fe){var xe=Ze.prefixCls,Te=xe===void 0?"rc-virtual-list":xe,Ye=Ze.className,De=Ze.height,tt=Ze.itemHeight,Ht=Ze.fullHeight,$t=Ht===void 0?!0:Ht,Sn=Ze.style,en=Ze.data,kt=Ze.children,nn=Ze.itemKey,hn=Ze.virtual,zn=Ze.direction,fi=Ze.scrollWidth,_n=Ze.component,Pi=_n===void 0?"div":_n,Ci=Ze.onScroll,Yn=Ze.onVirtualScroll,Ei=Ze.onVisibleChange,pi=Ze.innerProps,ji=Ze.extraRender,Qi=Ze.styles,lr=Ze.showScrollBar,Lr=lr===void 0?"optional":lr,Di=(0,ze.Z)(Ze,Vt),cr=_e.useCallback(function(Lt){return typeof nn=="function"?nn(Lt):Lt==null?void 0:Lt[nn]},[nn]),to=bt(cr,null,null),ki=(0,it.Z)(to,4),no=ki[0],fo=ki[1],po=ki[2],io=ki[3],hr=!!(hn!==!1&&De&&tt),ao=_e.useMemo(function(){return Object.values(po.maps).reduce(function(Lt,on){return Lt+on},0)},[po.id,po.maps]),be=hr&&en&&(Math.max(tt*en.length,ao)>De||!!fi),Un=zn==="rtl",Xn=yt()(Te,(0,nt.Z)({},"".concat(Te,"-rtl"),Un),Ye),ci=en||wn,mi=(0,_e.useRef)(),ei=(0,_e.useRef)(),Gi=(0,_e.useRef)(),vr=(0,_e.useState)(0),an=(0,it.Z)(vr,2),ln=an[0],Zt=an[1],pn=(0,_e.useState)(0),zi=(0,it.Z)(pn,2),Ti=zi[0],dr=zi[1],un=(0,_e.useState)(!1),In=(0,it.Z)(un,2),Vi=In[0],Fr=In[1],ii=function(){Fr(!0)},lt=function(){Fr(!1)},Rt={getKey:cr};function ai(Lt){Zt(function(on){var Gn;typeof Lt=="function"?Gn=Lt(on):Gn=Lt;var vn=Zr(Gn);return mi.current.scrollTop=vn,vn})}var ti=(0,_e.useRef)({start:0,end:ci.length}),tn=(0,_e.useRef)(),si=pe(ci,cr),Ri=(0,it.Z)(si,1),Yi=Ri[0];tn.current=Yi;var tr=_e.useMemo(function(){if(!hr)return{scrollHeight:void 0,start:0,end:ci.length-1,offset:void 0};if(!be){var Lt;return{scrollHeight:((Lt=ei.current)===null||Lt===void 0?void 0:Lt.offsetHeight)||0,start:0,end:ci.length-1,offset:void 0}}for(var on=0,Gn,vn,dn,Mn=ci.length,ke=0;ke<Mn;ke+=1){var ct=ci[ke],Xe=cr(ct),Pt=po.get(Xe),Ct=on+(Pt===void 0?tt:Pt);Ct>=ln&&Gn===void 0&&(Gn=ke,vn=on),Ct>ln+De&&dn===void 0&&(dn=ke),on=Ct}return Gn===void 0&&(Gn=0,vn=0,dn=Math.ceil(De/tt)),dn===void 0&&(dn=ci.length-1),dn=Math.min(dn+1,ci.length-1),{scrollHeight:on,start:Gn,end:dn,offset:vn}},[be,hr,ln,ci,io,De]),Bn=tr.scrollHeight,Ot=tr.start,qn=tr.end,Ji=tr.offset;ti.current.start=Ot,ti.current.end=qn,_e.useLayoutEffect(function(){var Lt=po.getRecord();if(Lt.size===1){var on=Array.from(Lt.keys())[0],Gn=Lt.get(on),vn=ci[Ot];if(vn&&Gn===void 0){var dn=cr(vn);if(dn===on){var Mn=po.get(on),ke=Mn-tt;ai(function(ct){return ct+ke})}}}po.resetRecord()},[Bn]);var $i=_e.useState({width:0,height:De}),Pn=(0,it.Z)($i,2),Mi=Pn[0],Er=Pn[1],Hr=function(on){Er({width:on.offsetWidth,height:on.offsetHeight})},wo=(0,_e.useRef)(),Kt=(0,_e.useRef)(),Oi=_e.useMemo(function(){return It(Mi.width,fi)},[Mi.width,fi]),Nr=_e.useMemo(function(){return It(Mi.height,Bn)},[Mi.height,Bn]),_i=Bn-De,Jr=(0,_e.useRef)(_i);Jr.current=_i;function Zr(Lt){var on=Lt;return Number.isNaN(Jr.current)||(on=Math.min(on,Jr.current)),on=Math.max(on,0),on}var Xr=ln<=0,Rr=ln>=_i,Gr=Ti<=0,oo=Ti>=fi,An=Oe(Xr,Rr,Gr,oo),ho=function(){return{x:Un?-Ti:Ti,y:ln}},Fn=(0,_e.useRef)(ho()),Kn=(0,Me.zX)(function(Lt){if(Yn){var on=(0,ut.Z)((0,ut.Z)({},ho()),Lt);(Fn.current.x!==on.x||Fn.current.y!==on.y)&&(Yn(on),Fn.current=on)}});function zr(Lt,on){var Gn=Lt;on?((0,ht.flushSync)(function(){dr(Gn)}),Kn()):ai(Gn)}function Tr(Lt){var on=Lt.currentTarget.scrollTop;on!==ln&&ai(on),Ci==null||Ci(Lt),Kn()}var Co=function(on){var Gn=on,vn=fi?fi-Mi.width:0;return Gn=Math.max(Gn,0),Gn=Math.min(Gn,vn),Gn},Yr=(0,Me.zX)(function(Lt,on){on?((0,ht.flushSync)(function(){dr(function(Gn){var vn=Gn+(Un?-Lt:Lt);return Co(vn)})}),Kn()):ai(function(Gn){var vn=Gn+Lt;return vn})}),Or=We(hr,Xr,Rr,Gr,oo,!!fi,Yr),No=(0,it.Z)(Or,2),Qt=No[0],mn=No[1];Tt(hr,mi,function(Lt,on,Gn,vn){var dn=vn;return An(Lt,on,Gn)?!1:!dn||!dn._virtualHandled?(dn&&(dn._virtualHandled=!0),Qt({preventDefault:function(){},deltaX:Lt?on:0,deltaY:Lt?0:on}),!0):!1}),st(be,mi,function(Lt){ai(function(on){return on+Lt})}),(0,Et.Z)(function(){function Lt(Gn){var vn=Xr&&Gn.detail<0,dn=Rr&&Gn.detail>0;hr&&!vn&&!dn&&Gn.preventDefault()}var on=mi.current;return on.addEventListener("wheel",Qt,{passive:!1}),on.addEventListener("DOMMouseScroll",mn,{passive:!0}),on.addEventListener("MozMousePixelScroll",Lt,{passive:!1}),function(){on.removeEventListener("wheel",Qt),on.removeEventListener("DOMMouseScroll",mn),on.removeEventListener("MozMousePixelScroll",Lt)}},[hr,Xr,Rr]),(0,Et.Z)(function(){if(fi){var Lt=Co(Ti);dr(Lt),Kn({x:Lt})}},[Mi.width,fi]);var Wt=function(){var on,Gn;(on=wo.current)===null||on===void 0||on.delayHidden(),(Gn=Kt.current)===null||Gn===void 0||Gn.delayHidden()},je=jt(mi,ci,po,tt,cr,function(){return fo(!0)},ai,Wt);_e.useImperativeHandle(Fe,function(){return{nativeElement:Gi.current,getScrollInfo:ho,scrollTo:function(on){function Gn(vn){return vn&&(0,Ve.Z)(vn)==="object"&&("left"in vn||"top"in vn)}Gn(on)?(on.left!==void 0&&dr(Co(on.left)),je(on.top)):je(on)}}}),(0,Et.Z)(function(){if(Ei){var Lt=ci.slice(Ot,qn+1);Ei(Lt,ci)}},[Ot,qn,ci]);var Qn=Be(ci,cr,po,tt),Ai=ji==null?void 0:ji({start:Ot,end:qn,virtual:be,offsetX:Ti,offsetY:Ji,rtl:Un,getSize:Qn}),qi=ue(ci,Ot,qn,fi,Ti,no,kt,Rt),Je=null;De&&(Je=(0,ut.Z)((0,nt.Z)({},$t?"height":"maxHeight",De),Dt),hr&&(Je.overflowY="hidden",fi&&(Je.overflowX="hidden"),Vi&&(Je.pointerEvents="none")));var Yt={};return Un&&(Yt.dir="rtl"),_e.createElement("div",(0,me.Z)({ref:Gi,style:(0,ut.Z)((0,ut.Z)({},Sn),{},{position:"relative"}),className:Xn},Yt,Di),_e.createElement(ot.Z,{onResize:Hr},_e.createElement(Pi,{className:"".concat(Te,"-holder"),style:Je,ref:mi,onScroll:Tr,onMouseEnter:Wt},_e.createElement(ne,{prefixCls:Te,height:Bn,offsetX:Ti,offsetY:Ji,scrollWidth:fi,onInnerResize:fo,ref:ei,innerProps:pi,rtl:Un,extra:Ai},qi))),be&&Bn>De&&_e.createElement(Bt,{ref:wo,prefixCls:Te,scrollOffset:ln,scrollRange:Bn,rtl:Un,onScroll:zr,onStartMove:ii,onStopMove:lt,spinSize:Nr,containerSize:Mi.height,style:Qi==null?void 0:Qi.verticalScrollBar,thumbStyle:Qi==null?void 0:Qi.verticalScrollBarThumb,showScrollBar:Lr}),be&&fi>Mi.width&&_e.createElement(Bt,{ref:Kt,prefixCls:Te,scrollOffset:Ti,scrollRange:fi,rtl:Un,onScroll:zr,onStartMove:ii,onStopMove:lt,spinSize:Oi,containerSize:Mi.width,horizontal:!0,style:Qi==null?void 0:Qi.horizontalScrollBar,thumbStyle:Qi==null?void 0:Qi.horizontalScrollBarThumb,showScrollBar:Lr}))}var zt=_e.forwardRef(vt);zt.displayName="List";var En=zt,kn=En},51353:function(cn,Jt,Pe){"use strict";Object.defineProperty(Jt,"__esModule",{value:!0}),Object.defineProperty(Jt,"DraggableCore",{enumerable:!0,get:function(){return yt.default}}),Jt.default=void 0;var me=Et(Pe(59301)),Ve=Me(Pe(12708)),ut=Me(Pe(4676)),nt=Pe(14625),it=Pe(77026),ze=Pe(22013),Ue=Pe(80217),yt=Me(Pe(68555)),ot=Me(Pe(97510));function Me(ue){return ue&&ue.__esModule?ue:{default:ue}}function Et(ue,se){if(typeof WeakMap=="function")var de=new WeakMap,pe=new WeakMap;return(Et=function(ye,Ce){if(!Ce&&ye&&ye.__esModule)return ye;var Re,Oe,We={__proto__:null,default:ye};if(ye===null||typeof ye!="object"&&typeof ye!="function")return We;if(Re=Ce?pe:de){if(Re.has(ye))return Re.get(ye);Re.set(ye,We)}for(const Be in ye)Be!=="default"&&{}.hasOwnProperty.call(ye,Be)&&((Oe=(Re=Object.defineProperty)&&Object.getOwnPropertyDescriptor(ye,Be))&&(Oe.get||Oe.set)?Re(We,Be,Oe):We[Be]=ye[Be]);return We})(ue,se)}function _e(){return _e=Object.assign?Object.assign.bind():function(ue){for(var se=1;se<arguments.length;se++){var de=arguments[se];for(var pe in de)({}).hasOwnProperty.call(de,pe)&&(ue[pe]=de[pe])}return ue},_e.apply(null,arguments)}function ht(ue,se,de){return(se=Ee(se))in ue?Object.defineProperty(ue,se,{value:de,enumerable:!0,configurable:!0,writable:!0}):ue[se]=de,ue}function Ee(ue){var se=ne(ue,"string");return typeof se=="symbol"?se:se+""}function ne(ue,se){if(typeof ue!="object"||!ue)return ue;var de=ue[Symbol.toPrimitive];if(de!==void 0){var pe=de.call(ue,se||"default");if(typeof pe!="object")return pe;throw new TypeError("@@toPrimitive must return a primitive value.")}return(se==="string"?String:Number)(ue)}class ee extends me.Component{static getDerivedStateFromProps(se,de){let{position:pe}=se,{prevPropsPosition:ye}=de;return pe&&(!ye||pe.x!==ye.x||pe.y!==ye.y)?((0,ot.default)("Draggable: getDerivedStateFromProps %j",{position:pe,prevPropsPosition:ye}),{x:pe.x,y:pe.y,prevPropsPosition:bd({},pe)}):null}constructor(se){super(se),ht(this,"onDragStart",(de,pe)=>{if((0,ot.default)("Draggable: onDragStart: %j",pe),this.props.onStart(de,(0,ze.createDraggableData)(this,pe))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),ht(this,"onDrag",(de,pe)=>{if(!this.state.dragging)return!1;(0,ot.default)("Draggable: onDrag: %j",pe);const ye=(0,ze.createDraggableData)(this,pe),Ce={x:ye.x,y:ye.y,slackX:0,slackY:0};if(this.props.bounds){const{x:Oe,y:We}=Ce;Ce.x+=this.state.slackX,Ce.y+=this.state.slackY;const[Be,Ie]=(0,ze.getBoundPosition)(this,Ce.x,Ce.y);Ce.x=Be,Ce.y=Ie,Ce.slackX=this.state.slackX+(Oe-Ce.x),Ce.slackY=this.state.slackY+(We-Ce.y),ye.x=Ce.x,ye.y=Ce.y,ye.deltaX=Ce.x-this.state.x,ye.deltaY=Ce.y-this.state.y}if(this.props.onDrag(de,ye)===!1)return!1;this.setState(Ce)}),ht(this,"onDragStop",(de,pe)=>{if(!this.state.dragging||this.props.onStop(de,(0,ze.createDraggableData)(this,pe))===!1)return!1;(0,ot.default)("Draggable: onDragStop: %j",pe);const Ce={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:Oe,y:We}=this.props.position;Ce.x=Oe,Ce.y=We}this.setState(Ce)}),this.state={dragging:!1,dragged:!1,x:se.position?se.position.x:se.defaultPosition.x,y:se.position?se.position.y:se.defaultPosition.y,prevPropsPosition:bd({},se.position),slackX:0,slackY:0,isElementSVG:!1},se.position&&!(se.onDrag||se.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var se,de,pe;return(pe=(de=(se=this.props)==null?void 0:se.nodeRef)==null?void 0:de.current)!=null?pe:ut.default.findDOMNode(this)}render(){const Ut=this.props,{axis:se,bounds:de,children:pe,defaultPosition:ye,defaultClassName:Ce,defaultClassNameDragging:Re,defaultClassNameDragged:Oe,position:We,positionOffset:Be,scale:Ie}=Ut,Qe=Px(Ut,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let rt={},xt=null;const bt=!!!We||this.state.dragging,At=We||ye,Tt={x:(0,ze.canDragX)(this)&&bt?this.state.x:At.x,y:(0,ze.canDragY)(this)&&bt?this.state.y:At.y};this.state.isElementSVG?xt=(0,it.createSVGTransform)(Tt,Be):rt=(0,it.createCSSTransform)(Tt,Be);const Nt=(0,nt.clsx)(pe.props.className||"",Ce,{[Re]:this.state.dragging,[Oe]:this.state.dragged});return me.createElement(yt.default,_e({},Qe,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),me.cloneElement(me.Children.only(pe),{className:Nt,style:bd(bd({},pe.props.style),rt),transform:xt}))}}Jt.default=ee,ht(ee,"displayName","Draggable"),ht(ee,"propTypes",Xy(bd({},yt.default.propTypes),{axis:Ve.default.oneOf(["both","x","y","none"]),bounds:Ve.default.oneOfType([Ve.default.shape({left:Ve.default.number,right:Ve.default.number,top:Ve.default.number,bottom:Ve.default.number}),Ve.default.string,Ve.default.oneOf([!1])]),defaultClassName:Ve.default.string,defaultClassNameDragging:Ve.default.string,defaultClassNameDragged:Ve.default.string,defaultPosition:Ve.default.shape({x:Ve.default.number,y:Ve.default.number}),positionOffset:Ve.default.shape({x:Ve.default.oneOfType([Ve.default.number,Ve.default.string]),y:Ve.default.oneOfType([Ve.default.number,Ve.default.string])}),position:Ve.default.shape({x:Ve.default.number,y:Ve.default.number}),className:Ue.dontSetMe,style:Ue.dontSetMe,transform:Ue.dontSetMe})),ht(ee,"defaultProps",Xy(bd({},yt.default.defaultProps),{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},68555:function(cn,Jt,Pe){"use strict";Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.default=void 0;var me=ot(Pe(59301)),Ve=yt(Pe(12708)),ut=yt(Pe(4676)),nt=Pe(77026),it=Pe(22013),ze=Pe(80217),Ue=yt(Pe(97510));function yt(ee){return ee&&ee.__esModule?ee:{default:ee}}function ot(ee,ue){if(typeof WeakMap=="function")var se=new WeakMap,de=new WeakMap;return(ot=function(pe,ye){if(!ye&&pe&&pe.__esModule)return pe;var Ce,Re,Oe={__proto__:null,default:pe};if(pe===null||typeof pe!="object"&&typeof pe!="function")return Oe;if(Ce=ye?de:se){if(Ce.has(pe))return Ce.get(pe);Ce.set(pe,Oe)}for(const We in pe)We!=="default"&&{}.hasOwnProperty.call(pe,We)&&((Re=(Ce=Object.defineProperty)&&Object.getOwnPropertyDescriptor(pe,We))&&(Re.get||Re.set)?Ce(Oe,We,Re):Oe[We]=pe[We]);return Oe})(ee,ue)}function Me(ee,ue,se){return(ue=Et(ue))in ee?Object.defineProperty(ee,ue,{value:se,enumerable:!0,configurable:!0,writable:!0}):ee[ue]=se,ee}function Et(ee){var ue=_e(ee,"string");return typeof ue=="symbol"?ue:ue+""}function _e(ee,ue){if(typeof ee!="object"||!ee)return ee;var se=ee[Symbol.toPrimitive];if(se!==void 0){var de=se.call(ee,ue||"default");if(typeof de!="object")return de;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ue==="string"?String:Number)(ee)}const ht={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let Ee=ht.mouse;class ne extends me.Component{constructor(){super(...arguments),Me(this,"dragging",!1),Me(this,"lastX",NaN),Me(this,"lastY",NaN),Me(this,"touchIdentifier",null),Me(this,"mounted",!1),Me(this,"handleDragStart",ue=>{if(this.props.onMouseDown(ue),!this.props.allowAnyClick&&typeof ue.button=="number"&&ue.button!==0)return!1;const se=this.findDOMNode();if(!se||!se.ownerDocument||!se.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:de}=se;if(this.props.disabled||!(ue.target instanceof de.defaultView.Node)||this.props.handle&&!(0,nt.matchesSelectorAndParentsTo)(ue.target,this.props.handle,se)||this.props.cancel&&(0,nt.matchesSelectorAndParentsTo)(ue.target,this.props.cancel,se))return;ue.type==="touchstart"&&!this.props.allowMobileScroll&&ue.preventDefault();const pe=(0,nt.getTouchIdentifier)(ue);this.touchIdentifier=pe;const ye=(0,it.getControlPosition)(ue,pe,this);if(ye==null)return;const{x:Ce,y:Re}=ye,Oe=(0,it.createCoreData)(this,Ce,Re);(0,Ue.default)("DraggableCore: handleDragStart: %j",Oe),(0,Ue.default)("calling",this.props.onStart),!(this.props.onStart(ue,Oe)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,nt.addUserSelectStyles)(de),this.dragging=!0,this.lastX=Ce,this.lastY=Re,(0,nt.addEvent)(de,Ee.move,this.handleDrag),(0,nt.addEvent)(de,Ee.stop,this.handleDragStop))}),Me(this,"handleDrag",ue=>{const se=(0,it.getControlPosition)(ue,this.touchIdentifier,this);if(se==null)return;let{x:de,y:pe}=se;if(Array.isArray(this.props.grid)){let Re=de-this.lastX,Oe=pe-this.lastY;if([Re,Oe]=(0,it.snapToGrid)(this.props.grid,Re,Oe),!Re&&!Oe)return;de=this.lastX+Re,pe=this.lastY+Oe}const ye=(0,it.createCoreData)(this,de,pe);if((0,Ue.default)("DraggableCore: handleDrag: %j",ye),this.props.onDrag(ue,ye)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(Re){const Oe=document.createEvent("MouseEvents");Oe.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(Oe)}return}this.lastX=de,this.lastY=pe}),Me(this,"handleDragStop",ue=>{if(!this.dragging)return;const se=(0,it.getControlPosition)(ue,this.touchIdentifier,this);if(se==null)return;let{x:de,y:pe}=se;if(Array.isArray(this.props.grid)){let Oe=de-this.lastX||0,We=pe-this.lastY||0;[Oe,We]=(0,it.snapToGrid)(this.props.grid,Oe,We),de=this.lastX+Oe,pe=this.lastY+We}const ye=(0,it.createCoreData)(this,de,pe);if(this.props.onStop(ue,ye)===!1||this.mounted===!1)return!1;const Re=this.findDOMNode();Re&&this.props.enableUserSelectHack&&(0,nt.scheduleRemoveUserSelectStyles)(Re.ownerDocument),(0,Ue.default)("DraggableCore: handleDragStop: %j",ye),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,Re&&((0,Ue.default)("DraggableCore: Removing handlers"),(0,nt.removeEvent)(Re.ownerDocument,Ee.move,this.handleDrag),(0,nt.removeEvent)(Re.ownerDocument,Ee.stop,this.handleDragStop))}),Me(this,"onMouseDown",ue=>(Ee=ht.mouse,this.handleDragStart(ue))),Me(this,"onMouseUp",ue=>(Ee=ht.mouse,this.handleDragStop(ue))),Me(this,"onTouchStart",ue=>(Ee=ht.touch,this.handleDragStart(ue))),Me(this,"onTouchEnd",ue=>(Ee=ht.touch,this.handleDragStop(ue)))}componentDidMount(){this.mounted=!0;const ue=this.findDOMNode();ue&&(0,nt.addEvent)(ue,ht.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const ue=this.findDOMNode();if(ue){const{ownerDocument:se}=ue;(0,nt.removeEvent)(se,ht.mouse.move,this.handleDrag),(0,nt.removeEvent)(se,ht.touch.move,this.handleDrag),(0,nt.removeEvent)(se,ht.mouse.stop,this.handleDragStop),(0,nt.removeEvent)(se,ht.touch.stop,this.handleDragStop),(0,nt.removeEvent)(ue,ht.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,nt.scheduleRemoveUserSelectStyles)(se)}}findDOMNode(){var ue,se,de;return(ue=this.props)!=null&&ue.nodeRef?(de=(se=this.props)==null?void 0:se.nodeRef)==null?void 0:de.current:ut.default.findDOMNode(this)}render(){return me.cloneElement(me.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}Jt.default=ne,Me(ne,"displayName","DraggableCore"),Me(ne,"propTypes",{allowAnyClick:Ve.default.bool,allowMobileScroll:Ve.default.bool,children:Ve.default.node.isRequired,disabled:Ve.default.bool,enableUserSelectHack:Ve.default.bool,offsetParent:function(ee,ue){if(ee[ue]&&ee[ue].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Ve.default.arrayOf(Ve.default.number),handle:Ve.default.string,cancel:Ve.default.string,nodeRef:Ve.default.object,onStart:Ve.default.func,onDrag:Ve.default.func,onStop:Ve.default.func,onMouseDown:Ve.default.func,scale:Ve.default.number,className:ze.dontSetMe,style:ze.dontSetMe,transform:ze.dontSetMe}),Me(ne,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},96249:function(cn,Jt,Pe){"use strict";const{default:me,DraggableCore:Ve}=Pe(51353);cn.exports=me,cn.exports.default=me,cn.exports.DraggableCore=Ve},77026:function(cn,Jt,Pe){"use strict";Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.addClassName=Ce,Jt.addEvent=Ue,Jt.addUserSelectStyles=de,Jt.createCSSTransform=Ee,Jt.createSVGTransform=ne,Jt.getTouch=ue,Jt.getTouchIdentifier=se,Jt.getTranslation=ee,Jt.innerHeight=Et,Jt.innerWidth=_e,Jt.matchesSelector=it,Jt.matchesSelectorAndParentsTo=ze,Jt.offsetXYFromParent=ht,Jt.outerHeight=ot,Jt.outerWidth=Me,Jt.removeClassName=Re,Jt.removeEvent=yt,Jt.scheduleRemoveUserSelectStyles=pe;var me=Pe(80217),Ve=ut(Pe(76172));function ut(Oe,We){if(typeof WeakMap=="function")var Be=new WeakMap,Ie=new WeakMap;return(ut=function(Qe,rt){if(!rt&&Qe&&Qe.__esModule)return Qe;var xt,gt,bt={__proto__:null,default:Qe};if(Qe===null||typeof Qe!="object"&&typeof Qe!="function")return bt;if(xt=rt?Ie:Be){if(xt.has(Qe))return xt.get(Qe);xt.set(Qe,bt)}for(const At in Qe)At!=="default"&&{}.hasOwnProperty.call(Qe,At)&&((gt=(xt=Object.defineProperty)&&Object.getOwnPropertyDescriptor(Qe,At))&&(gt.get||gt.set)?xt(bt,At,gt):bt[At]=Qe[At]);return bt})(Oe,We)}let nt="";function it(Oe,We){return nt||(nt=(0,me.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(Be){return(0,me.isFunction)(Oe[Be])})),(0,me.isFunction)(Oe[nt])?Oe[nt](We):!1}function ze(Oe,We,Be){let Ie=Oe;do{if(it(Ie,We))return!0;if(Ie===Be)return!1;Ie=Ie.parentNode}while(Ie);return!1}function Ue(Oe,We,Be,Ie){if(!Oe)return;const Qe=bd({capture:!0},Ie);Oe.addEventListener?Oe.addEventListener(We,Be,Qe):Oe.attachEvent?Oe.attachEvent("on"+We,Be):Oe["on"+We]=Be}function yt(Oe,We,Be,Ie){if(!Oe)return;const Qe=bd({capture:!0},Ie);Oe.removeEventListener?Oe.removeEventListener(We,Be,Qe):Oe.detachEvent?Oe.detachEvent("on"+We,Be):Oe["on"+We]=null}function ot(Oe){let We=Oe.clientHeight;const Be=Oe.ownerDocument.defaultView.getComputedStyle(Oe);return We+=(0,me.int)(Be.borderTopWidth),We+=(0,me.int)(Be.borderBottomWidth),We}function Me(Oe){let We=Oe.clientWidth;const Be=Oe.ownerDocument.defaultView.getComputedStyle(Oe);return We+=(0,me.int)(Be.borderLeftWidth),We+=(0,me.int)(Be.borderRightWidth),We}function Et(Oe){let We=Oe.clientHeight;const Be=Oe.ownerDocument.defaultView.getComputedStyle(Oe);return We-=(0,me.int)(Be.paddingTop),We-=(0,me.int)(Be.paddingBottom),We}function _e(Oe){let We=Oe.clientWidth;const Be=Oe.ownerDocument.defaultView.getComputedStyle(Oe);return We-=(0,me.int)(Be.paddingLeft),We-=(0,me.int)(Be.paddingRight),We}function ht(Oe,We,Be){const Qe=We===We.ownerDocument.body?{left:0,top:0}:We.getBoundingClientRect(),rt=(Oe.clientX+We.scrollLeft-Qe.left)/Be,xt=(Oe.clientY+We.scrollTop-Qe.top)/Be;return{x:rt,y:xt}}function Ee(Oe,We){const Be=ee(Oe,We,"px");return{[(0,Ve.browserPrefixToKey)("transform",Ve.default)]:Be}}function ne(Oe,We){return ee(Oe,We,"")}function ee(Oe,We,Be){let{x:Ie,y:Qe}=Oe,rt=`translate(${Ie}${Be},${Qe}${Be})`;if(We){const xt=`${typeof We.x=="string"?We.x:We.x+Be}`,gt=`${typeof We.y=="string"?We.y:We.y+Be}`;rt=`translate(${xt}, ${gt})`+rt}return rt}function ue(Oe,We){return Oe.targetTouches&&(0,me.findInArray)(Oe.targetTouches,Be=>We===Be.identifier)||Oe.changedTouches&&(0,me.findInArray)(Oe.changedTouches,Be=>We===Be.identifier)}function se(Oe){if(Oe.targetTouches&&Oe.targetTouches[0])return Oe.targetTouches[0].identifier;if(Oe.changedTouches&&Oe.changedTouches[0])return Oe.changedTouches[0].identifier}function de(Oe){if(!Oe)return;let We=Oe.getElementById("react-draggable-style-el");We||(We=Oe.createElement("style"),We.type="text/css",We.id="react-draggable-style-el",We.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
`,We.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
`,Oe.getElementsByTagName("head")[0].appendChild(We)),Oe.body&&Ce(Oe.body,"react-draggable-transparent-selection")}function pe(Oe){window.requestAnimationFrame?window.requestAnimationFrame(()=>{ye(Oe)}):ye(Oe)}function ye(Oe){if(Oe)try{if(Oe.body&&Re(Oe.body,"react-draggable-transparent-selection"),Oe.selection)Oe.selection.empty();else{const We=(Oe.defaultView||window).getSelection();We&&We.type!=="Caret"&&We.removeAllRanges()}}catch(We){}}function Ce(Oe,We){Oe.classList?Oe.classList.add(We):Oe.className.match(new RegExp(`(?:^|\\s)${We}(?!\\S)`))||(Oe.className+=` ${We}`)}function Re(Oe,We){Oe.classList?Oe.classList.remove(We):Oe.className=Oe.className.replace(new RegExp(`(?:^|\\s)${We}(?!\\S)`,"g"),"")}},76172:function(cn,Jt){"use strict";Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.browserPrefixToKey=Ve,Jt.browserPrefixToStyle=ut,Jt.default=void 0,Jt.getPrefix=me;const Pe=["Moz","Webkit","O","ms"];function me(){var yt,ot;let ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const Ue=(ot=(yt=window.document)==null?void 0:yt.documentElement)==null?void 0:ot.style;if(!Ue||ze in Ue)return"";for(let Me=0;Me<Pe.length;Me++)if(Ve(ze,Pe[Me])in Ue)return Pe[Me];return""}function Ve(ze,Ue){return Ue?`${Ue}${nt(ze)}`:ze}function ut(ze,Ue){return Ue?`-${Ue.toLowerCase()}-${ze}`:ze}function nt(ze){let Ue="",yt=!0;for(let ot=0;ot<ze.length;ot++)yt?(Ue+=ze[ot].toUpperCase(),yt=!1):ze[ot]==="-"?yt=!0:Ue+=ze[ot];return Ue}var it=Jt.default=me()},97510:function(cn,Jt){"use strict";Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.default=Pe;function Pe(){}},22013:function(cn,Jt,Pe){"use strict";Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.canDragX=it,Jt.canDragY=ze,Jt.createCoreData=yt,Jt.createDraggableData=ot,Jt.getBoundPosition=ut,Jt.getControlPosition=Ue,Jt.snapToGrid=nt;var me=Pe(80217),Ve=Pe(77026);function ut(_e,ht,Ee){if(!_e.props.bounds)return[ht,Ee];let{bounds:ne}=_e.props;ne=typeof ne=="string"?ne:Me(ne);const ee=Et(_e);if(typeof ne=="string"){const{ownerDocument:ue}=ee,se=ue.defaultView;let de;if(ne==="parent"?de=ee.parentNode:de=ee.getRootNode().querySelector(ne),!(de instanceof se.HTMLElement))throw new Error('Bounds selector "'+ne+'" could not find an element.');const pe=de,ye=se.getComputedStyle(ee),Ce=se.getComputedStyle(pe);ne={left:-ee.offsetLeft+(0,me.int)(Ce.paddingLeft)+(0,me.int)(ye.marginLeft),top:-ee.offsetTop+(0,me.int)(Ce.paddingTop)+(0,me.int)(ye.marginTop),right:(0,Ve.innerWidth)(pe)-(0,Ve.outerWidth)(ee)-ee.offsetLeft+(0,me.int)(Ce.paddingRight)-(0,me.int)(ye.marginRight),bottom:(0,Ve.innerHeight)(pe)-(0,Ve.outerHeight)(ee)-ee.offsetTop+(0,me.int)(Ce.paddingBottom)-(0,me.int)(ye.marginBottom)}}return(0,me.isNum)(ne.right)&&(ht=Math.min(ht,ne.right)),(0,me.isNum)(ne.bottom)&&(Ee=Math.min(Ee,ne.bottom)),(0,me.isNum)(ne.left)&&(ht=Math.max(ht,ne.left)),(0,me.isNum)(ne.top)&&(Ee=Math.max(Ee,ne.top)),[ht,Ee]}function nt(_e,ht,Ee){const ne=Math.round(ht/_e[0])*_e[0],ee=Math.round(Ee/_e[1])*_e[1];return[ne,ee]}function it(_e){return _e.props.axis==="both"||_e.props.axis==="x"}function ze(_e){return _e.props.axis==="both"||_e.props.axis==="y"}function Ue(_e,ht,Ee){const ne=typeof ht=="number"?(0,Ve.getTouch)(_e,ht):null;if(typeof ht=="number"&&!ne)return null;const ee=Et(Ee),ue=Ee.props.offsetParent||ee.offsetParent||ee.ownerDocument.body;return(0,Ve.offsetXYFromParent)(ne||_e,ue,Ee.props.scale)}function yt(_e,ht,Ee){const ne=!(0,me.isNum)(_e.lastX),ee=Et(_e);return ne?{node:ee,deltaX:0,deltaY:0,lastX:ht,lastY:Ee,x:ht,y:Ee}:{node:ee,deltaX:ht-_e.lastX,deltaY:Ee-_e.lastY,lastX:_e.lastX,lastY:_e.lastY,x:ht,y:Ee}}function ot(_e,ht){const Ee=_e.props.scale;return{node:ht.node,x:_e.state.x+ht.deltaX/Ee,y:_e.state.y+ht.deltaY/Ee,deltaX:ht.deltaX/Ee,deltaY:ht.deltaY/Ee,lastX:_e.state.x,lastY:_e.state.y}}function Me(_e){return{left:_e.left,top:_e.top,right:_e.right,bottom:_e.bottom}}function Et(_e){const ht=_e.findDOMNode();if(!ht)throw new Error("<DraggableCore>: Unmounted during event!");return ht}},80217:function(cn,Jt){"use strict";Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.dontSetMe=nt,Jt.findInArray=Pe,Jt.int=ut,Jt.isFunction=me,Jt.isNum=Ve;function Pe(it,ze){for(let Ue=0,yt=it.length;Ue<yt;Ue++)if(ze.apply(ze,[it[Ue],Ue,it]))return it[Ue]}function me(it){return typeof it=="function"||Object.prototype.toString.call(it)==="[object Function]"}function Ve(it){return typeof it=="number"&&!isNaN(it)}function ut(it){return parseInt(it,10)}function nt(it,ze,Ue){if(it[ze])return new Error(`Invalid prop ${ze} passed to ${Ue} - do not set this, set it on the child.`)}},51581:function(cn,Jt,Pe){"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});var me=function(){function _e(ht,Ee){for(var ne=0;ne<Ee.length;ne++){var ee=Ee[ne];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(ht,ee.key,ee)}}return function(ht,Ee,ne){return Ee&&_e(ht.prototype,Ee),ne&&_e(ht,ne),ht}}(),Ve=Pe(59301),ut=ze(Ve),nt=Pe(12708),it=ze(nt);function ze(_e){return _e&&_e.__esModule?_e:{default:_e}}function Ue(_e,ht){var Ee={};for(var ne in _e)ht.indexOf(ne)>=0||Object.prototype.hasOwnProperty.call(_e,ne)&&(Ee[ne]=_e[ne]);return Ee}function yt(_e,ht){if(!(_e instanceof ht))throw new TypeError("Cannot call a class as a function")}function ot(_e,ht){if(!_e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ht&&(typeof ht=="object"||typeof ht=="function")?ht:_e}function Me(_e,ht){if(typeof ht!="function"&&ht!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ht);_e.prototype=Object.create(ht&&ht.prototype,{constructor:{value:_e,enumerable:!1,writable:!0,configurable:!0}}),ht&&(Object.setPrototypeOf?Object.setPrototypeOf(_e,ht):_e.__proto__=ht)}var Et=function(_e){Me(ht,_e);function ht(Ee){yt(this,ht);var ne=ot(this,(ht.__proto__||Object.getPrototypeOf(ht)).call(this,Ee));return ne.scrollListener=ne.scrollListener.bind(ne),ne.eventListenerOptions=ne.eventListenerOptions.bind(ne),ne.mousewheelListener=ne.mousewheelListener.bind(ne),ne}return me(ht,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var ne=this.getParentElement(this.scrollComponent);ne.scrollTop=ne.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var ne=!1,ee={get passive(){ne=!0}};try{document.addEventListener("test",null,ee),document.removeEventListener("test",null,ee)}catch(ue){}return ne}},{key:"eventListenerOptions",value:function(){var ne=this.props.useCapture;return this.isPassiveSupported()&&(ne={useCapture:this.props.useCapture,passive:!0}),ne}},{key:"setDefaultLoader",value:function(ne){this.defaultLoader=ne}},{key:"detachMousewheelListener",value:function(){var ne=window;this.props.useWindow===!1&&(ne=this.scrollComponent.parentNode),ne.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var ne=window;this.props.useWindow===!1&&(ne=this.getParentElement(this.scrollComponent)),ne.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),ne.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(ne){var ee=this.props.getScrollParent&&this.props.getScrollParent();return ee!=null?ee:ne&&ne.parentNode}},{key:"filterProps",value:function(ne){return ne}},{key:"attachScrollListener",value:function(){var ne=this.getParentElement(this.scrollComponent);if(!(!this.props.hasMore||!ne)){var ee=window;this.props.useWindow===!1&&(ee=ne),ee.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),ee.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),ee.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(ne){ne.deltaY===1&&!this.isPassiveSupported()&&ne.preventDefault()}},{key:"scrollListener",value:function(){var ne=this.scrollComponent,ee=window,ue=this.getParentElement(ne),se=void 0;if(this.props.useWindow){var de=document.documentElement||document.body.parentNode||document.body,pe=ee.pageYOffset!==void 0?ee.pageYOffset:de.scrollTop;this.props.isReverse?se=pe:se=this.calculateOffset(ne,pe)}else this.props.isReverse?se=ue.scrollTop:se=ne.scrollHeight-ue.scrollTop-ue.clientHeight;se<Number(this.props.threshold)&&ne&&ne.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=ue.scrollHeight,this.beforeScrollTop=ue.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(ne,ee){return ne?this.calculateTopPosition(ne)+(ne.offsetHeight-ee-window.innerHeight):0}},{key:"calculateTopPosition",value:function(ne){return ne?ne.offsetTop+this.calculateTopPosition(ne.offsetParent):0}},{key:"render",value:function(){var ne=this,ee=this.filterProps(this.props),ue=ee.children,se=ee.element,de=ee.hasMore,pe=ee.initialLoad,ye=ee.isReverse,Ce=ee.loader,Re=ee.loadMore,Oe=ee.pageStart,We=ee.ref,Be=ee.threshold,Ie=ee.useCapture,Qe=ee.useWindow,rt=ee.getScrollParent,xt=Ue(ee,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);xt.ref=function(bt){ne.scrollComponent=bt,We&&We(bt)};var gt=[ue];return de&&(Ce?ye?gt.unshift(Ce):gt.push(Ce):this.defaultLoader&&(ye?gt.unshift(this.defaultLoader):gt.push(this.defaultLoader))),ut.default.createElement(se,xt,gt)}}]),ht}(Ve.Component);Et.propTypes={children:it.default.node.isRequired,element:it.default.node,hasMore:it.default.bool,initialLoad:it.default.bool,isReverse:it.default.bool,loader:it.default.node,loadMore:it.default.func.isRequired,pageStart:it.default.number,ref:it.default.func,getScrollParent:it.default.func,threshold:it.default.number,useCapture:it.default.bool,useWindow:it.default.bool},Et.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},Jt.default=Et,cn.exports=Jt.default},26724:function(cn,Jt,Pe){cn.exports=Pe(51581)},80010:function(cn,Jt,Pe){"use strict";Jt.__esModule=!0,Jt.default=void 0;var me=it(Pe(59301)),Ve=Pe(96249),ut=Pe(73638),nt=Pe(6217);function it(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}}function ze(){return ze=Object.assign||function(Ee){for(var ne=1;ne<arguments.length;ne++){var ee=arguments[ne];for(var ue in ee)Object.prototype.hasOwnProperty.call(ee,ue)&&(Ee[ue]=ee[ue])}return Ee},ze.apply(this,arguments)}function Ue(Ee,ne){var ee=Object.keys(Ee);if(Object.getOwnPropertySymbols){var ue=Object.getOwnPropertySymbols(Ee);ne&&(ue=ue.filter(function(se){return Object.getOwnPropertyDescriptor(Ee,se).enumerable})),ee.push.apply(ee,ue)}return ee}function yt(Ee){for(var ne=1;ne<arguments.length;ne++){var ee=arguments[ne]!=null?arguments[ne]:{};ne%2?Ue(Object(ee),!0).forEach(function(ue){_e(Ee,ue,ee[ue])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ee,Object.getOwnPropertyDescriptors(ee)):Ue(Object(ee)).forEach(function(ue){Object.defineProperty(Ee,ue,Object.getOwnPropertyDescriptor(ee,ue))})}return Ee}function ot(Ee,ne){if(Ee==null)return{};var ee={},ue=Object.keys(Ee),se,de;for(de=0;de<ue.length;de++)se=ue[de],!(ne.indexOf(se)>=0)&&(ee[se]=Ee[se]);return ee}function Me(Ee){if(Ee===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ee}function Et(Ee,ne){Ee.prototype=Object.create(ne.prototype),Ee.prototype.constructor=Ee,Ee.__proto__=ne}function _e(Ee,ne,ee){return ne in Ee?Object.defineProperty(Ee,ne,{value:ee,enumerable:!0,configurable:!0,writable:!0}):Ee[ne]=ee,Ee}var ht=function(Ee){Et(ne,Ee);function ne(){for(var ue,se=arguments.length,de=new Array(se),pe=0;pe<se;pe++)de[pe]=arguments[pe];return ue=Ee.call.apply(Ee,[this].concat(de))||this,_e(Me(ue),"state",void 0),_e(Me(ue),"lastHandleRect",null),_e(Me(ue),"slack",null),ue}var ee=ne.prototype;return ee.componentWillUnmount=function(){this.resetData()},ee.lockAspectRatio=function(se,de,pe){return de=se/pe,se=de*pe,[se,de]},ee.resetData=function(){this.lastHandleRect=this.slack=null},ee.runConstraints=function(se,de){var pe=[this.props.minConstraints,this.props.maxConstraints],ye=pe[0],Ce=pe[1];if(!ye&&!Ce)return[se,de];if(this.props.lockAspectRatio){var Re=de===this.props.height;if(Re){var Oe=this.props.width/this.props.height;de=se/Oe,se=de*Oe}else{var We=this.props.height/this.props.width;se=de/We,de=se*We}}var Be=se,Ie=de,Qe=this.slack||[0,0],rt=Qe[0],xt=Qe[1];return se+=rt,de+=xt,ye&&(se=Math.max(ye[0],se),de=Math.max(ye[1],de)),Ce&&(se=Math.min(Ce[0],se),de=Math.min(Ce[1],de)),this.slack=[rt+(Be-se),xt+(Ie-de)],[se,de]},ee.resizeHandler=function(se,de){var pe=this;return function(ye,Ce){var Re=Ce.node,Oe=Ce.deltaX,We=Ce.deltaY;se==="onResizeStart"&&pe.resetData();var Be=(pe.props.axis==="both"||pe.props.axis==="x")&&de!=="n"&&de!=="s",Ie=(pe.props.axis==="both"||pe.props.axis==="y")&&de!=="e"&&de!=="w";if(!(!Be&&!Ie)){var Qe=de[0],rt=de[de.length-1],xt=Re.getBoundingClientRect();if(pe.lastHandleRect!=null){if(rt==="w"){var gt=xt.left-pe.lastHandleRect.left;Oe+=gt}if(Qe==="n"){var bt=xt.top-pe.lastHandleRect.top;We+=bt}}pe.lastHandleRect=xt,rt==="w"&&(Oe=-Oe),Qe==="n"&&(We=-We);var At=pe.props.width+(Be?Oe/pe.props.transformScale:0),Tt=pe.props.height+(Ie?We/pe.props.transformScale:0),Nt=pe.runConstraints(At,Tt);At=Nt[0],Tt=Nt[1];var Ut=At!==pe.props.width||Tt!==pe.props.height,st=typeof pe.props[se]=="function"?pe.props[se]:null,He=se==="onResize"&&!Ut;st&&!He&&(typeof ye.persist=="function"&&ye.persist(),st(ye,{node:Re,size:{width:At,height:Tt},handle:de})),se==="onResizeStop"&&pe.resetData()}}},ee.renderResizeHandle=function(se){var de=this.props.handle;return de?typeof de=="function"?de(se):de:me.default.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+se})},ee.render=function(){var se=this,de=this.props,pe=de.children,ye=de.className,Ce=de.draggableOpts,Re=de.width,Oe=de.height,We=de.handle,Be=de.handleSize,Ie=de.lockAspectRatio,Qe=de.axis,rt=de.minConstraints,xt=de.maxConstraints,gt=de.onResize,bt=de.onResizeStop,At=de.onResizeStart,Tt=de.resizeHandles,Nt=de.transformScale,Ut=ot(de,["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"]);return(0,ut.cloneElement)(pe,yt(yt({},Ut),{},{className:(ye?ye+" ":"")+"react-resizable",children:[].concat(pe.props.children,Tt.map(function(st){return me.default.createElement(Ve.DraggableCore,ze({},Ce,{key:"resizableHandle-"+st,onStop:se.resizeHandler("onResizeStop",st),onStart:se.resizeHandler("onResizeStart",st),onDrag:se.resizeHandler("onResize",st)}),se.renderResizeHandle(st))}))}))},ne}(me.default.Component);Jt.default=ht,_e(ht,"propTypes",nt.resizableProps),_e(ht,"defaultProps",{handleSize:[20,20],lockAspectRatio:!1,axis:"both",minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1})},60842:function(cn,Jt,Pe){"use strict";var me;me=!0,Jt.default=void 0;var Ve=yt(Pe(59301)),ut=ze(Pe(12708)),nt=ze(Pe(80010)),it=Pe(6217);function ze(ue){return ue&&ue.__esModule?ue:{default:ue}}function Ue(){if(typeof WeakMap!="function")return null;var ue=new WeakMap;return Ue=function(){return ue},ue}function yt(ue){if(ue&&ue.__esModule)return ue;if(ue===null||typeof ue!="object"&&typeof ue!="function")return{default:ue};var se=Ue();if(se&&se.has(ue))return se.get(ue);var de={},pe=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ye in ue)if(Object.prototype.hasOwnProperty.call(ue,ye)){var Ce=pe?Object.getOwnPropertyDescriptor(ue,ye):null;Ce&&(Ce.get||Ce.set)?Object.defineProperty(de,ye,Ce):de[ye]=ue[ye]}return de.default=ue,se&&se.set(ue,de),de}function ot(){return ot=Object.assign||function(ue){for(var se=1;se<arguments.length;se++){var de=arguments[se];for(var pe in de)Object.prototype.hasOwnProperty.call(de,pe)&&(ue[pe]=de[pe])}return ue},ot.apply(this,arguments)}function Me(ue,se){var de=Object.keys(ue);if(Object.getOwnPropertySymbols){var pe=Object.getOwnPropertySymbols(ue);se&&(pe=pe.filter(function(ye){return Object.getOwnPropertyDescriptor(ue,ye).enumerable})),de.push.apply(de,pe)}return de}function Et(ue){for(var se=1;se<arguments.length;se++){var de=arguments[se]!=null?arguments[se]:{};se%2?Me(Object(de),!0).forEach(function(pe){ne(ue,pe,de[pe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ue,Object.getOwnPropertyDescriptors(de)):Me(Object(de)).forEach(function(pe){Object.defineProperty(ue,pe,Object.getOwnPropertyDescriptor(de,pe))})}return ue}function _e(ue,se){if(ue==null)return{};var de={},pe=Object.keys(ue),ye,Ce;for(Ce=0;Ce<pe.length;Ce++)ye=pe[Ce],!(se.indexOf(ye)>=0)&&(de[ye]=ue[ye]);return de}function ht(ue){if(ue===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ue}function Ee(ue,se){ue.prototype=Object.create(se.prototype),ue.prototype.constructor=ue,ue.__proto__=se}function ne(ue,se,de){return se in ue?Object.defineProperty(ue,se,{value:de,enumerable:!0,configurable:!0,writable:!0}):ue[se]=de,ue}var ee=function(ue){Ee(se,ue);function se(){for(var pe,ye=arguments.length,Ce=new Array(ye),Re=0;Re<ye;Re++)Ce[Re]=arguments[Re];return pe=ue.call.apply(ue,[this].concat(Ce))||this,ne(ht(pe),"state",{width:pe.props.width,height:pe.props.height,propsWidth:pe.props.width,propsHeight:pe.props.height}),ne(ht(pe),"onResize",function(Oe,We){var Be=We.size;pe.props.onResize?(Oe.persist&&Oe.persist(),pe.setState(Be,function(){return pe.props.onResize&&pe.props.onResize(Oe,We)})):pe.setState(Be)}),pe}se.getDerivedStateFromProps=function(ye,Ce){return Ce.propsWidth!==ye.width||Ce.propsHeight!==ye.height?{width:ye.width,height:ye.height,propsWidth:ye.width,propsHeight:ye.height}:null};var de=se.prototype;return de.render=function(){var ye=this.props,Ce=ye.handle,Re=ye.handleSize,Oe=ye.onResize,We=ye.onResizeStart,Be=ye.onResizeStop,Ie=ye.draggableOpts,Qe=ye.minConstraints,rt=ye.maxConstraints,xt=ye.lockAspectRatio,gt=ye.axis,bt=ye.width,At=ye.height,Tt=ye.resizeHandles,Nt=ye.style,Ut=ye.transformScale,st=_e(ye,["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"]);return Ve.createElement(nt.default,{axis:gt,draggableOpts:Ie,handle:Ce,handleSize:Re,height:this.state.height,lockAspectRatio:xt,maxConstraints:rt,minConstraints:Qe,onResizeStart:We,onResize:this.onResize,onResizeStop:Be,resizeHandles:Tt,transformScale:Ut,width:this.state.width},Ve.createElement("div",ot({},st,{style:Et(Et({},Nt),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},se}(Ve.Component);Jt.default=ee,ne(ee,"propTypes",Et(Et({},it.resizableProps),{},{children:ut.default.element}))},6217:function(cn,Jt,Pe){"use strict";Jt.__esModule=!0,Jt.resizableProps=void 0;var me=ut(Pe(12708)),Ve=Pe(96249);function ut(it){return it&&it.__esModule?it:{default:it}}var nt={axis:me.default.oneOf(["both","x","y","none"]),className:me.default.string,children:me.default.element.isRequired,draggableOpts:me.default.shape({allowAnyClick:me.default.bool,cancel:me.default.string,children:me.default.node,disabled:me.default.bool,enableUserSelectHack:me.default.bool,offsetParent:me.default.node,grid:me.default.arrayOf(me.default.number),handle:me.default.string,nodeRef:me.default.object,onStart:me.default.func,onDrag:me.default.func,onStop:me.default.func,onMouseDown:me.default.func,scale:me.default.number}),height:me.default.number.isRequired,handle:me.default.oneOfType([me.default.node,me.default.func]),handleSize:me.default.arrayOf(me.default.number),lockAspectRatio:me.default.bool,maxConstraints:me.default.arrayOf(me.default.number),minConstraints:me.default.arrayOf(me.default.number),onResizeStop:me.default.func,onResizeStart:me.default.func,onResize:me.default.func,resizeHandles:me.default.arrayOf(me.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:me.default.number,width:me.default.number.isRequired};Jt.resizableProps=nt},73638:function(cn,Jt,Pe){"use strict";Jt.__esModule=!0,Jt.cloneElement=ze;var me=Ve(Pe(59301));function Ve(Ue){return Ue&&Ue.__esModule?Ue:{default:Ue}}function ut(Ue,yt){var ot=Object.keys(Ue);if(Object.getOwnPropertySymbols){var Me=Object.getOwnPropertySymbols(Ue);yt&&(Me=Me.filter(function(Et){return Object.getOwnPropertyDescriptor(Ue,Et).enumerable})),ot.push.apply(ot,Me)}return ot}function nt(Ue){for(var yt=1;yt<arguments.length;yt++){var ot=arguments[yt]!=null?arguments[yt]:{};yt%2?ut(Object(ot),!0).forEach(function(Me){it(Ue,Me,ot[Me])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ue,Object.getOwnPropertyDescriptors(ot)):ut(Object(ot)).forEach(function(Me){Object.defineProperty(Ue,Me,Object.getOwnPropertyDescriptor(ot,Me))})}return Ue}function it(Ue,yt,ot){return yt in Ue?Object.defineProperty(Ue,yt,{value:ot,enumerable:!0,configurable:!0,writable:!0}):Ue[yt]=ot,Ue}function ze(Ue,yt){return yt.style&&Ue.props.style&&(yt.style=nt(nt({},Ue.props.style),yt.style)),yt.className&&Ue.props.className&&(yt.className=Ue.props.className+" "+yt.className),me.default.cloneElement(Ue,yt)}},9221:function(cn,Jt,Pe){"use strict";cn.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},cn.exports.Resizable=Pe(80010).default,cn.exports.ResizableBox=Pe(60842).default},25510:function(cn){"use strict";cn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiwAAAIsCAYAAADRd/LpAAAgAElEQVR4Xuyda5BtVXXvV3efc+CAYBQRjaJBeWjiVVKVB0mMUV6GKv0cvVVG/XTrViUlSd0bqUoQg4KapKJW8j3mWinNx1SRSgkciKARYiqi1ycvFZSggHgFDofz6L71m3v/9xk9eq695ty91t67u8eimu6z91zzMcaYY/znGGPOudLEExQICgQFggJBgaBAUGDJKbBC/26+98jGkvczuhcUCAoEBYICQYGgwB6lwJUXnroSgGWPMj+GHRQICgQFggJBgZ1CgS2A5YoLTtkpfY9+BgW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rrrms//elPQ06Na66+OgCWww873LbeZhs76Yc/tD/84UY78cQT7cKLLrL37/FB+++v7G9rrLGmjSADLwnm5r7WlzyMlLbs+QnpS14P7bn5pltt749+xJZdehk78sgjbOONN7IllphiL738ou237352+SWX29hRY+17J37fVnjrCvbxT37C/vDHP9riUxcPcSwrLLO8vfDC32zGXXfZx/b+t5Cw8dvHn2Brr72O3XvfvfbZfT9jq6y+in1or73sA8ThjFvEDjn8SDvzF7+2xSZOtgM//2V7/7+83/508y32fz/8vp38s1Ns1PhF7Mprr7ZVlls+ZLcdM2qMjRnLoZEcc9C3zbtvbxCRyH1gZX4aluISKjEsbUvDAljySVcASwEs+VzTgScKYGkGLH0JZV+3q6+6yn7323PtW0cfbWuvsaZt+45t+/JdjCThGnlMRtioMWNssSmL2ft2+4Cdecav7bhvHWcv/O1vtsvOO9uJP/iBjRk5xh595CG76Y832gfe///sLYsvZr88/XTbfMstQv6Tm2+91fbYfY/g/thg/fUDYFl08mS7WoDl8CNtm222thN/eJLdfPNNAbj87ne/tX9833vtawd9LcTUAFiwrMx9ffb8RGucJzSq75yiESPt7rtn2JVXXm2f/cxnbf31N7Djjv2WTZ++QThO4PUR8+yggw6ys848y5576nk79LDDbM01VrPPf+m/QgDt6musbuedf74tOXVJe+WVl+0v9/3F9tjjQ/bIww/bN446Ouyauv322+yrB+5vSy+7tG2+xWb2trdvYiNHj7RzLrzYbrjyGpsy+S22z3982j7x8U/aH2/6g/3gRyfZz375c3vLkovbTTfdbMtNmdJ3oGJIudJ34GII8OGMGfH8/DOaOCuJq1hYioWlXXFYAEs+5QpgKYAln2s68EQBLM2AhWX9vLlz7bprr7XzzzvPjv7GUbb9dtvbFz//haDAcVPMsXk2dvy4cA4QwGPqUkvZ9/7ve/a9737PXnv1VfvAbrvZccceGzLG/u3F5+z2O2+zbbZ5hy2x5FT7xS9+YVtsvkVwdtzyp1tst/d/MOQq2XD6dPvZz061iePH2zVXX2OXX3G5HXHkkbbV1lvZD086yW67/TY75eST7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jIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SLQSFjqFdmSGQEjYASMgBEwAqsVge1b1x12GCr/8p6D/12tQrjeRsAIGAEjYASMQN0ITAhL3WJaOiNgBIyAETACRmC1I/C/+Ryxj68oilIAAAAASUVORK5CYII="},32637:function(cn,Jt,Pe){"use strict";cn.exports=Pe.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(cn){"use strict";cn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHi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OyGP5bkFVbm8zowJJ07wQCjH2Bf1K8aO7WK57azo3P6vV+0cZzm6hz59bSNvWyYtW2O+cX5pjlvTBUDZciLHXxyLARC+Q4+gWEVne9GsdQHKfyTcn/QOo7vUqbqS7sqqy/kzyA2Ttyp/LUtfoUmaOqHAVtj9sYbq1F/OlQxBvsCJ84/STL274zDWODWOD/uF8xlwpf6v2flucwfSU6+tXZAsBYsSX5wh6TQ+o/zoHygTub4zP+vSs7X2BWZ9+2vyyHOh/orU2G6/sPeSOntWeNpYpLmQ/XObrBP7g/XU3ikL2v8AIAf8etAcp/JNxxxyddj4b5J3GSmF6y3TheG4qWOHGPTX2rosmtKoiMdkJxA1t++BGa0idji4YDQlSF8z4PY6FkfxlWWUG259vIPiGwcfoKU4gNDAssOZcTIRWhaOQUU35lHZIQpWuOwciOqDV7h9zmNb0sGHZHpivpY0fNdbZJkd7HLJcaxq83fSwZ4nmeSMI0D5XJfGcETmxyFjSUUrRtL2NI5/d9h0Jp2HSOBuxSTIzMxvbbIsgzLL8tPCgrSMkyzKDnHW9qtcNLPCDHIqQwQjNIIVkQ7FfNI9zl59TWeBD11jTqR1tIvrKda2d/e3kmOOIW3vLiR7E6asQTyjjNeqDGMKFKrWCariPcqrz5O1tik2blTb5tPGx2rgU9VjmPUEWSWYGmoKSN61fBSYZgiSnsRSlIZRBRzyuRo2tRE52nlB5NeOOObkDzCzPhmY5j2OVqo5FTvpevk3v+nNcnStciqioqKiqi87CieF7hkarXNVUVFTp16flP8AUX7oqfRU+qc4DIwzGkG5HNciKiovX7/hf8VPsqL0VFRUVEVOYc6+c+OOOOOOOOOOOOOOOOOOOOOOOObjjzFTMhhY573uRqI1FXrtevk7r+mtanaucqoiIiqqoic7BCeZ7RjarnOVERETr06/lf8AET7qq/RE+q84EIwLHEI5GtaiqqqvT7fhP9VfsiJ1VVVERFVef//Z"},69429:function(cn,Jt,Pe){"use strict";cn.exports=Pe.p+"static/lock.1b5026ee.png"},16722:function(cn,Jt,Pe){"use strict";Pe.d(Jt,{Z:function(){return yt}});const me=ot=>typeof ot=="object"&&ot!=null&&ot.nodeType===1,Ve=(ot,Me)=>(!Me||ot!=="hidden")&&ot!=="visible"&&ot!=="clip",ut=(ot,Me)=>{if(ot.clientHeight<ot.scrollHeight||ot.clientWidth<ot.scrollWidth){const Et=getComputedStyle(ot,null);return Ve(Et.overflowY,Me)||Ve(Et.overflowX,Me)||(_e=>{const ht=(Ee=>{if(!Ee.ownerDocument||!Ee.ownerDocument.defaultView)return null;try{return Ee.ownerDocument.defaultView.frameElement}catch(ne){return null}})(_e);return!!ht&&(ht.clientHeight<_e.scrollHeight||ht.clientWidth<_e.scrollWidth)})(ot)}return!1},nt=(ot,Me,Et,_e,ht,Ee,ne,ee)=>Ee<ot&&ne>Me||Ee>ot&&ne<Me?0:Ee<=ot&&ee<=Et||ne>=Me&&ee>=Et?Ee-ot-_e:ne>Me&&ee<Et||Ee<ot&&ee>Et?ne-Me+ht:0,it=ot=>{const Me=ot.parentElement;return Me==null?ot.getRootNode().host||null:Me},ze=(ot,Me)=>{var Et,_e,ht,Ee;if(typeof document=="undefined")return[];const{scrollMode:ne,block:ee,inline:ue,boundary:se,skipOverflowHiddenElements:de}=Me,pe=typeof se=="function"?se:Bt=>Bt!==se;if(!me(ot))throw new TypeError("Invalid target");const ye=document.scrollingElement||document.documentElement,Ce=[];let Re=ot;for(;me(Re)&&pe(Re);){if(Re=it(Re),Re===ye){Ce.push(Re);break}Re!=null&&Re===document.body&&ut(Re)&&!ut(document.documentElement)||Re!=null&&ut(Re,de)&&Ce.push(Re)}const Oe=(_e=(Et=window.visualViewport)==null?void 0:Et.width)!=null?_e:innerWidth,We=(Ee=(ht=window.visualViewport)==null?void 0:ht.height)!=null?Ee:innerHeight,{scrollX:Be,scrollY:Ie}=window,{height:Qe,width:rt,top:xt,right:gt,bottom:bt,left:At}=ot.getBoundingClientRect(),{top:Tt,right:Nt,bottom:Ut,left:st}=(Bt=>{const Ft=window.getComputedStyle(Bt);return{top:parseFloat(Ft.scrollMarginTop)||0,right:parseFloat(Ft.scrollMarginRight)||0,bottom:parseFloat(Ft.scrollMarginBottom)||0,left:parseFloat(Ft.scrollMarginLeft)||0}})(ot);let He=ee==="start"||ee==="nearest"?xt-Tt:ee==="end"?bt+Ut:xt+Qe/2-Tt+Ut,jt=ue==="center"?At+rt/2-st+Nt:ue==="end"?gt+Nt:At-st;const fn=[];for(let Bt=0;Bt<Ce.length;Bt++){const Ft=Ce[Bt],{height:It,width:Vt,top:wn,right:Dt,bottom:vt,left:zt}=Ft.getBoundingClientRect();if(ne==="if-needed"&&xt>=0&&At>=0&&bt<=We&><=Oe&&(Ft===ye&&!ut(Ft)||xt>=wn&&bt<=vt&&At>=zt&><=Dt))return fn;const En=getComputedStyle(Ft),kn=parseInt(En.borderLeftWidth,10),Ze=parseInt(En.borderTopWidth,10),Fe=parseInt(En.borderRightWidth,10),xe=parseInt(En.borderBottomWidth,10);let Te=0,Ye=0;const De="offsetWidth"in Ft?Ft.offsetWidth-Ft.clientWidth-kn-Fe:0,tt="offsetHeight"in Ft?Ft.offsetHeight-Ft.clientHeight-Ze-xe:0,Ht="offsetWidth"in Ft?Ft.offsetWidth===0?0:Vt/Ft.offsetWidth:0,$t="offsetHeight"in Ft?Ft.offsetHeight===0?0:It/Ft.offsetHeight:0;if(ye===Ft)Te=ee==="start"?He:ee==="end"?He-We:ee==="nearest"?nt(Ie,Ie+We,We,Ze,xe,Ie+He,Ie+He+Qe,Qe):He-We/2,Ye=ue==="start"?jt:ue==="center"?jt-Oe/2:ue==="end"?jt-Oe:nt(Be,Be+Oe,Oe,kn,Fe,Be+jt,Be+jt+rt,rt),Te=Math.max(0,Te+Ie),Ye=Math.max(0,Ye+Be);else{Te=ee==="start"?He-wn-Ze:ee==="end"?He-vt+xe+tt:ee==="nearest"?nt(wn,vt,It,Ze,xe+tt,He,He+Qe,Qe):He-(wn+It/2)+tt/2,Ye=ue==="start"?jt-zt-kn:ue==="center"?jt-(zt+Vt/2)+De/2:ue==="end"?jt-Dt+Fe+De:nt(zt,Dt,Vt,kn,Fe+De,jt,jt+rt,rt);const{scrollLeft:Sn,scrollTop:en}=Ft;Te=$t===0?0:Math.max(0,Math.min(en+Te/$t,Ft.scrollHeight-It/$t+tt)),Ye=Ht===0?0:Math.max(0,Math.min(Sn+Ye/Ht,Ft.scrollWidth-Vt/Ht+De)),He+=en-Te,jt+=Sn-Ye}fn.push({el:Ft,top:Te,left:Ye})}return fn},Ue=ot=>ot===!1?{block:"end",inline:"nearest"}:(Me=>Me===Object(Me)&&Object.keys(Me).length!==0)(ot)?ot:{block:"start",inline:"nearest"};function yt(ot,Me){if(!ot.isConnected||!(ht=>{let Ee=ht;for(;Ee&&Ee.parentNode;){if(Ee.parentNode===document)return!0;Ee=Ee.parentNode instanceof ShadowRoot?Ee.parentNode.host:Ee.parentNode}return!1})(ot))return;const Et=(ht=>{const Ee=window.getComputedStyle(ht);return{top:parseFloat(Ee.scrollMarginTop)||0,right:parseFloat(Ee.scrollMarginRight)||0,bottom:parseFloat(Ee.scrollMarginBottom)||0,left:parseFloat(Ee.scrollMarginLeft)||0}})(ot);if((ht=>typeof ht=="object"&&typeof ht.behavior=="function")(Me))return Me.behavior(ze(ot,Me));const _e=typeof Me=="boolean"||Me==null?void 0:Me.behavior;for(const{el:ht,top:Ee,left:ne}of ze(ot,Ue(Me))){const ee=Ee-Et.top+Et.bottom,ue=ne-Et.left+Et.right;ht.scroll({top:ee,left:ue,behavior:_e})}}}}]);
|
|
}()); |