|
|
!(function(){var ux=Object.defineProperty,cx=Object.defineProperties;var dx=Object.getOwnPropertyDescriptors;var nv=Object.getOwnPropertySymbols;var bE=Object.prototype.hasOwnProperty,wE=Object.prototype.propertyIsEnumerable;var Xy=Math.pow,xE=(Ge,be,de)=>be in Ge?ux(Ge,be,{enumerable:!0,configurable:!0,writable:!0,value:de}):Ge[be]=de,Mo=(Ge,be)=>{for(var de in be||(be={}))bE.call(be,de)&&xE(Ge,de,be[de]);if(nv)for(var de of nv(be))wE.call(be,de)&&xE(Ge,de,be[de]);return Ge},Nf=(Ge,be)=>cx(Ge,dx(be));var TE=(Ge,be)=>{var de={};for(var le in Ge)bE.call(Ge,le)&&be.indexOf(le)<0&&(de[le]=Ge[le]);if(Ge!=null&&nv)for(var le of nv(Ge))be.indexOf(le)<0&&wE.call(Ge,le)&&(de[le]=Ge[le]);return de};var Jy=(Ge,be,de)=>new Promise((le,Ie)=>{var De=Re=>{try{Ye(de.next(Re))}catch(Ve){Ie(Ve)}},Le=Re=>{try{Ye(de.throw(Re))}catch(Ve){Ie(Ve)}},Ye=Re=>Re.done?le(Re.value):Promise.resolve(Re.value).then(De,Le);Ye((de=de.apply(Ge,be)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[3897],{8336:function(){"use strict"},12469:function(){"use strict"},99587:function(Ge,be){"use strict";be.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},63720:function(){"use strict";function Ge(_e,te,ne,he){ne===void 0&&(ne=0),he===void 0&&(he=1/0),this._name=_e,this._defaultValue=te,this._minimum=ne,this._maximum=he}Object.defineProperty(Ge.prototype,"name",{get:function(){return this._name},set:function(_e){if(typeof _e!="string"||_e==="")throw new Error("Shape name must be a valid string.");this._name=_e}}),Object.defineProperty(Ge.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(_e){if(typeof _e!="number"||isNaN(_e))throw new Error("The default value must be a real number, not: "+_e);this._defaultValue=_e}}),Object.defineProperty(Ge.prototype,"minimum",{get:function(){return this._minimum},set:function(_e){if(typeof _e!="number"||isNaN(_e))throw new Error("Minimum must be a real number, not: "+_e);this._minimum=_e}}),Object.defineProperty(Ge.prototype,"maximum",{get:function(){return this._maximum},set:function(_e){if(typeof _e!="number"||isNaN(_e))throw new Error("Maximum must be a real number, not: "+_e);this._maximum=_e}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(_e,te){var ne=go.Shape._FigureParameters[_e];return ne?ne[te]:null},go.Shape.setFigureParameter=function(_e,te,ne){if(!(ne instanceof Ge))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+ne);if(ne.defaultValue<ne.minimum||ne.defaultValue>ne.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+ne.defaultValue);var he=go.Shape._FigureParameters[_e];he||(he=[],go.Shape._FigureParameters[_e]=he),he[te]=ne};var be=[];function de(_e,te){var ne=be.pop();return ne===void 0?new go.Point(_e,te):(ne.x=_e,ne.y=te,ne)}function le(){var _e=be.pop();return _e===void 0?new go.Point:_e}function Ie(_e){be.push(_e)}function De(_e,te,ne,he,se,ge,Se,Ae,Oe){Oe||(Oe=new go.Point);var Be=_e-ne,Ke=se-Se,rt=NaN,ot=NaN;if(Be===0)if(Ke===0)_e===ne&&(rt=_e,ot=te);else{var ht=(ge-Ae)/Ke,bt=ge-ht*se;rt=_e,ot=ht*rt+bt}else if(Ke===0){var at=(te-he)/Be,At=te-at*_e;rt=se,ot=at*rt+At}else{var at=(te-he)/Be,ht=(ge-Ae)/Ke,At=te-at*_e,bt=ge-ht*se;rt=(bt-At)/(at-ht),ot=at*rt+At}return Oe.x=rt,Oe.y=ot,Oe}function Le(_e,te,ne,he,se,ge,Se,Ae,Oe,Be,Ke,rt,ot,ht){var bt=1-Oe,at=Oe,At=_e*bt+ne*at,It=te*bt+he*at,$t=ne*bt+se*at,Tn=he*bt+ge*at,yn=se*bt+Se*at,un=ge*bt+Ae*at,On=At*bt+$t*at,xt=It*bt+Tn*at,ct=$t*bt+yn*at,it=Tn*bt+un*at,cn=On*bt+ct*at,An=xt*bt+it*at;Be.x=At,Be.y=It,Ke.x=On,Ke.y=xt,rt.x=cn,rt.y=An,ot.x=ct,ot.y=it,ht.x=yn,ht.y=un}var Ye=new go.Spot(.156,.156),Re=new go.Spot(.844,.844),Ve=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ge("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(_e,te,ne){var he=_e?_e.parameter1:NaN;(isNaN(he)||he<0)&&(he=5),he=Math.min(he,te/3),he=Math.min(he,ne/3);var se=he*Ve,ge=new go.Geometry().add(new go.PathFigure(he,0,!0).add(new go.PathSegment(go.PathSegment.Line,te-he,0)).add(new go.PathSegment(go.PathSegment.Bezier,te,he,te-se,0,te,se)).add(new go.PathSegment(go.PathSegment.Line,te,ne-he)).add(new go.PathSegment(go.PathSegment.Bezier,te-he,ne,te,ne-se,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,he,ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,ne-he,se,ne,0,ne-se)).add(new go.PathSegment(go.PathSegment.Line,0,he)).add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,se,se,0).close()));return se>1&&(ge.spot1=new go.Spot(0,0,se,se),ge.spot2=new go.Spot(1,1,-se,-se)),ge}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(te,ne).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(te,ne).add(new go.PathSegment(go.PathSegment.Line,0,ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(_e,te,ne){var he=new go.Geometry(go.Geometry.Line);return he.startX=0,he.startY=ne/2,he.endX=te,he.endY=ne/2,he}),go.Shape.defineFigureGenerator("LineV",function(_e,te,ne){var he=new go.Geometry(go.Geometry.Line);return he.startX=te/2,he.startY=0,he.endX=te/2,he.endY=ne,he}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne/2,!1).add(new go.PathSegment(go.PathSegment.Line,te,ne/2)).add(new go.PathSegment(go.PathSegment.Move,te/2,0)).add(new go.PathSegment(go.PathSegment.Line,te/2,ne)))}),go.Shape.defineFigureGenerator("XLine",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)))}),go.Shape.defineFigureGenerator("LineRight",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(.25*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.25*te,ne)))}),go.Shape.defineFigureGenerator("LineDown",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(0,.25*ne,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,.75*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)))}),go.Shape.defineFigureGenerator("LineLeft",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(.75*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.75*te,ne)))}),go.Shape.defineFigureGenerator("LineUp",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(0,.75*ne,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,.25*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(_e,te,ne){var he=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(he*te,(1-he)*ne,!1).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,he*ne)).add(new go.PathSegment(go.PathSegment.Move,he*te,he*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,(1-he)*ne)).add(new go.PathSegment(go.PathSegment.Move,0,ne/2)).add(new go.PathSegment(go.PathSegment.Line,te,ne/2)).add(new go.PathSegment(go.PathSegment.Move,te/2,0)).add(new go.PathSegment(go.PathSegment.Line,te/2,ne)))}),go.Shape.defineFigureGenerator("CircleLine",function(_e,te,ne){var he=te/2,se=new go.Geometry().add(new go.PathFigure(te,te/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,he,he,he,he).close()));return se.spot1=Ye,se.spot2=Re,se.defaultStretch=go.GraphObject.Uniform,se}),go.Shape.defineFigureGenerator("Line1",function(_e,te,ne){var he=new go.Geometry(go.Geometry.Line);return he.startX=0,he.startY=0,he.endX=te,he.endY=ne,he}),go.Shape.defineFigureGenerator("Line2",function(_e,te,ne){var he=new go.Geometry(go.Geometry.Line);return he.startX=te,he.startY=0,he.endX=0,he.endY=ne,he}),go.Shape.defineFigureGenerator("Curve1",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ne,Ve*te,0,te,(1-Ve)*ne)))}),go.Shape.defineFigureGenerator("Curve2",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ne,0,Ve*ne,(1-Ve)*te,ne)))}),go.Shape.defineFigureGenerator("Curve3",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,te,Ve*ne,Ve*te,ne)))}),go.Shape.defineFigureGenerator("Curve4",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,(1-Ve)*te,0,0,(1-Ve)*ne)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(te,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Ge("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(_e,te,ne){var he=_e?_e.parameter1:NaN;isNaN(he)?he=.1:he<-1?he=-1:he>1&&(he=1);var se=Math.abs(he)*te;if(he===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=te,ge.endY=ne,ge}else{var ge=new go.Geometry;return he>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())),se<te/2&&ge.setSpots(se/te,0,(te-se)/te,1),ge}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Ge("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(_e,te,ne){var he=_e?_e.parameter1:NaN;isNaN(he)?he=10:he<-te?he=-te:he>te&&(he=te);var se=Math.abs(he);if(he===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=te,ge.endY=ne,ge}else{var ge=new go.Geometry;return he>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())),se<te/2&&ge.setSpots(se/te,0,(te-se)/te,1),ge}}),go.Shape.setFigureParameter("Trapezoid1",0,new Ge("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(_e,te,ne){var he=_e?_e.parameter1:NaN;isNaN(he)?he=.2:he<.5?he=-.5:he>.5&&(he=.5);var se=Math.abs(he)*te;if(he===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=te,ge.endY=ne,ge}else{var ge=new go.Geometry;return he>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())),se<te/2&&ge.setSpots(se/te,0,(te-se)/te,1),ge}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Ge("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(_e,te,ne){var he=_e?_e.parameter1:NaN;isNaN(he)?he=20:he<-te?he=-te/2:he>te&&(he=te/2);var se=Math.abs(he);if(he===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=te,ge.endY=ne,ge}else{var ge=new go.Geometry;return he>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())),se<te/2&&ge.setSpots(se/te,0,(te-se)/te,1),ge}}),go.Shape.setFigureParameter("ManualOperation",0,new Ge("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(_e,te,ne){var he=_e?_e.parameter1:NaN;isNaN(he)?he=10:he<-te?he=-te/2:he>te&&(he=te/2);var se=Math.abs(he);if(he===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=te,ge.endY=ne,ge}else{var ge=new go.Geometry;return he>0?ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())):ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())),se<te/2&&ge.setSpots(se/te,0,(te-se)/te,1),ge}});var Je=[];function Xe(){var _e=Je.pop();return _e===void 0?[]:_e}function qe(_e){_e.length=0,Je.push(_e)}function mt(_e){for(var te=Xe(),ne=.5,he=.5,se=Math.PI*1.5,ge=0,Se=0;Se<_e;Se++)ge=2*Math.PI/_e*Se+se,te[Se]=new go.Point(he+ne*Math.cos(ge),he+ne*Math.sin(ge));return te.push(te[0]),te}function st(_e){var te=Nt(_e),ne=Xe();ne[0]=te[0];for(var he=1,se=1;he<te.length;he+=2,se+=3)ne[se]=te[he],ne[se+1]=te[he],ne[se+2]=te[he+1];return qe(te),ne}function Nt(_e){for(var te=mt(_e),ne=Xe(),he=Math.floor(te.length/2),se=te.length-1,ge=_e%2===0?2:1,Se=0;Se<se;Se++){var Ae=te[Se],Oe=te[Se+1],Be=te[(he+Se-1)%se],Ke=te[(he+Se+ge)%se];ne[Se*2]=Ae,ne[Se*2+1]=De(Ae.x,Ae.y,Be.x,Be.y,Oe.x,Oe.y,Ke.x,Ke.y,new go.Point)}return ne[ne.length]=ne[0],qe(te),ne}go.Shape.defineFigureGenerator("Pentagon",function(_e,te,ne){var he=mt(5),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var Se=1;Se<5;Se++)ge.add(new go.PathSegment(go.PathSegment.Line,he[Se].x*te,he[Se].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),qe(he),se.spot1=new go.Spot(.2,.22),se.spot2=new go.Spot(.8,.9),se}),go.Shape.defineFigureGenerator("Hexagon",function(_e,te,ne){var he=mt(6),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var Se=1;Se<6;Se++)ge.add(new go.PathSegment(go.PathSegment.Line,he[Se].x*te,he[Se].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),qe(he),se.spot1=new go.Spot(.07,.25),se.spot2=new go.Spot(.93,.75),se}),go.Shape.defineFigureGenerator("Heptagon",function(_e,te,ne){var he=mt(7),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var Se=1;Se<7;Se++)ge.add(new go.PathSegment(go.PathSegment.Line,he[Se].x*te,he[Se].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),qe(he),se.spot1=new go.Spot(.2,.15),se.spot2=new go.Spot(.8,.85),se}),go.Shape.defineFigureGenerator("Octagon",function(_e,te,ne){var he=mt(8),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var Se=1;Se<8;Se++)ge.add(new go.PathSegment(go.PathSegment.Line,he[Se].x*te,he[Se].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),qe(he),se.spot1=new go.Spot(.15,.15),se.spot2=new go.Spot(.85,.85),se}),go.Shape.defineFigureGenerator("Nonagon",function(_e,te,ne){var he=mt(9),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var Se=1;Se<9;Se++)ge.add(new go.PathSegment(go.PathSegment.Line,he[Se].x*te,he[Se].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),qe(he),se.spot1=new go.Spot(.17,.13),se.spot2=new go.Spot(.82,.82),se}),go.Shape.defineFigureGenerator("Decagon",function(_e,te,ne){var he=mt(10),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var Se=1;Se<10;Se++)ge.add(new go.PathSegment(go.PathSegment.Line,he[Se].x*te,he[Se].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),qe(he),se.spot1=new go.Spot(.16,.16),se.spot2=new go.Spot(.84,.84),se}),go.Shape.defineFigureGenerator("Dodecagon",function(_e,te,ne){var he=mt(12),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var Se=1;Se<12;Se++)ge.add(new go.PathSegment(go.PathSegment.Line,he[Se].x*te,he[Se].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),qe(he),se.spot1=new go.Spot(.16,.16),se.spot2=new go.Spot(.84,.84),se}),go.Shape.defineFigureGenerator("FivePointedStar",function(_e,te,ne){var he=Nt(5),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var Se=1;Se<10;Se++)ge.add(new go.PathSegment(go.PathSegment.Line,he[Se].x*te,he[Se].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),qe(he),se.spot1=new go.Spot(.266,.333),se.spot2=new go.Spot(.733,.733),se}),go.Shape.defineFigureGenerator("SixPointedStar",function(_e,te,ne){var he=Nt(6),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var Se=1;Se<12;Se++)ge.add(new go.PathSegment(go.PathSegment.Line,he[Se].x*te,he[Se].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),qe(he),se.spot1=new go.Spot(.17,.25),se.spot2=new go.Spot(.83,.75),se}),go.Shape.defineFigureGenerator("SevenPointedStar",function(_e,te,ne){var he=Nt(7),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var Se=1;Se<14;Se++)ge.add(new go.PathSegment(go.PathSegment.Line,he[Se].x*te,he[Se].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),qe(he),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.666),se}),go.Shape.defineFigureGenerator("EightPointedStar",function(_e,te,ne){var he=Nt(8),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var Se=1;Se<16;Se++)ge.add(new go.PathSegment(go.PathSegment.Line,he[Se].x*te,he[Se].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),qe(he),se.spot1=new go.Spot(.25,.25),se.spot2=new go.Spot(.75,.75),se}),go.Shape.defineFigureGenerator("NinePointedStar",function(_e,te,ne){var he=Nt(9),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var Se=1;Se<18;Se++)ge.add(new go.PathSegment(go.PathSegment.Line,he[Se].x*te,he[Se].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),qe(he),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.666),se}),go.Shape.defineFigureGenerator("TenPointedStar",function(_e,te,ne){var he=Nt(10),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var Se=1;Se<20;Se++)ge.add(new go.PathSegment(go.PathSegment.Line,he[Se].x*te,he[Se].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),qe(he),se.spot1=new go.Spot(.281,.261),se.spot2=new go.Spot(.723,.748),se}),go.Shape.defineFigureGenerator("FivePointedBurst",function(_e,te,ne){var he=st(5),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var Se=1;Se<he.length;Se+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[Se+2].x*te,he[Se+2].y*ne,he[Se].x*te,he[Se].y*ne,he[Se+1].x*te,he[Se+1].y*ne));return ge.segments.last().close(),qe(he),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("SixPointedBurst",function(_e,te,ne){var he=st(6),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var Se=1;Se<he.length;Se+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[Se+2].x*te,he[Se+2].y*ne,he[Se].x*te,he[Se].y*ne,he[Se+1].x*te,he[Se+1].y*ne));return ge.segments.last().close(),qe(he),se.spot1=new go.Spot(.17,.222),se.spot2=new go.Spot(.833,.777),se}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(_e,te,ne){var he=st(7),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var Se=1;Se<he.length;Se+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[Se+2].x*te,he[Se+2].y*ne,he[Se].x*te,he[Se].y*ne,he[Se+1].x*te,he[Se+1].y*ne));return ge.segments.last().close(),qe(he),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("EightPointedBurst",function(_e,te,ne){var he=st(8),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var Se=1;Se<he.length;Se+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[Se+2].x*te,he[Se+2].y*ne,he[Se].x*te,he[Se].y*ne,he[Se+1].x*te,he[Se+1].y*ne));return ge.segments.last().close(),qe(he),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("NinePointedBurst",function(_e,te,ne){var he=st(9),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var Se=1;Se<he.length;Se+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[Se+2].x*te,he[Se+2].y*ne,he[Se].x*te,he[Se].y*ne,he[Se+1].x*te,he[Se+1].y*ne));return ge.segments.last().close(),qe(he),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("TenPointedBurst",function(_e,te,ne){var he=st(10),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var Se=1;Se<he.length;Se+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[Se+2].x*te,he[Se+2].y*ne,he[Se].x*te,he[Se].y*ne,he[Se+1].x*te,he[Se+1].y*ne));return ge.segments.last().close(),qe(he),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.setFigureParameter("FramedRectangle",0,new Ge("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ge("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(_e,te,ne){var he=_e?_e.parameter1:NaN,se=_e?_e.parameter2:NaN;isNaN(he)&&(he=8),isNaN(se)&&(se=8);var ge=new go.Geometry,Se=new go.PathFigure(0,0,!0);return ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,0)),Se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he<te/2&&se<ne/2&&(Se.add(new go.PathSegment(go.PathSegment.Move,he,se)),Se.add(new go.PathSegment(go.PathSegment.Line,he,ne-se)),Se.add(new go.PathSegment(go.PathSegment.Line,te-he,ne-se)),Se.add(new go.PathSegment(go.PathSegment.Line,te-he,se).close())),ge.setSpots(0,0,1,1,he,se,-he,-se),ge}),go.Shape.setFigureParameter("Ring",0,new Ge("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(_e,te,ne){var he=_e?_e.parameter1:NaN;(isNaN(he)||he<0)&&(he=8);var se=te/2,ge=new go.Geometry,Se=new go.PathFigure(te,te/2,!0);ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Arc,0,360,se,se,se,se).close());var Ae=Math.max(se-he,0);return Ae>0&&(Se.add(new go.PathSegment(go.PathSegment.Move,te/2+Ae,te/2)),Se.add(new go.PathSegment(go.PathSegment.Arc,0,-360,se,se,Ae,Ae).close())),ge.spot1=Ye,ge.spot2=Re,ge.defaultStretch=go.GraphObject.Uniform,ge}),go.Shape.defineFigureGenerator("Cloud",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(.08034461*te,.1944299*ne,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*te,.05349299*ne,-.09239631*te,.07836421*ne,.1406031*te,-.0542823*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*te,.074219*ne,.2450511*te,-.00697547*ne,.3776197*te,-.01112067*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*te,.07004196*ne,.4539471*te,0,.6066018*te,-.02526587*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*te,.08370865*ne,.6914277*te,-.01904177*ne,.8921095*te,-.01220843*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*te,.3194596*ne,1.036446*te,.04105738*ne,1.020377*te,.3022052*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*te,.562044*ne,1.04448*te,.360238*ne,.992256*te,.5219009*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*te,.8217117*ne,1.032337*te,.5771781*ne,1.018411*te,.8120651*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*te,.9156953*ne,1.028411*te,.9571472*ne,.8556702*te,1.052487*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*te,.9310455*ne,.7431877*te,1.009325*ne,.5624123*te,1.021761*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*te,.9344623*ne,.4820677*te,1.031761*ne,.3030112*te,1.002796*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*te,.870098*ne,.2329994*te,1.01518*ne,.03213784*te,1.01518*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*te,.6545475*ne,-.02812061*te,.9032597*ne,-.01205169*te,.6835638*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*te,.4265613*ne,-.01812061*te,.6089503*ne,-.00606892*te,.4555777*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*te,.1944299*ne,-.01606892*te,.3892545*ne,-.01205169*te,.1944299*ne))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(_e,te,ne){var he=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(he*te,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,he*ne)).add(new go.PathSegment(go.PathSegment.Line,te,(1-he)*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,ne)).add(new go.PathSegment(go.PathSegment.Line,he*te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,(1-he)*ne)).add(new go.PathSegment(go.PathSegment.Line,0,he*ne).close())).setSpots(he/2,he/2,1-he/2,1-he/2)}),go.Shape.setFigureParameter("Pie",0,new Ge("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ge("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(_e,te,ne){var he=_e?_e.parameter1:NaN,se=_e?_e.parameter2:NaN;isNaN(he)&&(he=0),isNaN(se)&&(se=315);var ge=he%360;ge<0&&(ge+=360);var Se=se%360,Ae=Math.min(te,ne)/2;return new go.Geometry().add(new go.PathFigure(Ae,Ae).add(new go.PathSegment(go.PathSegment.Arc,ge,Se,Ae,Ae,Ae,Ae).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(_e,te,ne){var he=Ve/Math.SQRT2*.5,se=Math.SQRT2/2,ge=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(te,ne,!0).add(new go.PathSegment(go.PathSegment.Bezier,se*te,ge*ne,te,(1-he)*ne,(se+he)*te,(ge+he)*ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Ge("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(_e,te,ne){var he=_e?_e.parameter1:NaN;(isNaN(he)||he<0)&&(he=30);var se=Math.min(he,te)/2,ge=te/2,Se=ne/2;return new go.Geometry().add(new go.PathFigure(ge-se,0,!0).add(new go.PathSegment(go.PathSegment.Line,ge+se,0)).add(new go.PathSegment(go.PathSegment.Line,ge+se,Se-se)).add(new go.PathSegment(go.PathSegment.Line,te,Se-se)).add(new go.PathSegment(go.PathSegment.Line,te,Se+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,Se+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,ne)).add(new go.PathSegment(go.PathSegment.Line,ge-se,ne)).add(new go.PathSegment(go.PathSegment.Line,ge-se,Se+se)).add(new go.PathSegment(go.PathSegment.Line,0,Se+se)).add(new go.PathSegment(go.PathSegment.Line,0,Se-se)).add(new go.PathSegment(go.PathSegment.Line,ge-se,Se-se).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Ge("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(_e,te,ne){var he=_e?_e.parameter1:NaN;(isNaN(he)||he<0)&&(he=10);var se=Math.min(he,te)/2,ge=te/2,Se=ne/2;return new go.Geometry().add(new go.PathFigure(ge-se,0,!0).add(new go.PathSegment(go.PathSegment.Line,ge+se,0)).add(new go.PathSegment(go.PathSegment.Line,ge+se,Se-se)).add(new go.PathSegment(go.PathSegment.Line,te,Se-se)).add(new go.PathSegment(go.PathSegment.Line,te,Se+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,Se+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,ne)).add(new go.PathSegment(go.PathSegment.Line,ge-se,ne)).add(new go.PathSegment(go.PathSegment.Line,ge-se,Se+se)).add(new go.PathSegment(go.PathSegment.Line,0,Se+se)).add(new go.PathSegment(go.PathSegment.Line,0,Se-se)).add(new go.PathSegment(go.PathSegment.Line,ge-se,Se-se).close()))}),go.Shape.setFigureParameter("ThickX",0,new Ge("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(_e,te,ne){var he=_e?_e.parameter1:NaN;if((isNaN(he)||he<0)&&(he=30),te===0||ne===0){var se=new go.Geometry(go.Geometry.Rectangle);return se.startX=0,se.startY=0,se.endX=te,se.endY=ne,se}else{var ge=te/2,Se=ne/2,Ae=Math.atan2(ne,te),Oe=he-Math.min(Math.cos(Ae)*he/2,ge),Be=he-Math.min(Math.sin(Ae)*he/2,Se),se=new go.Geometry,Ke=new go.PathFigure(Oe,0,!0);return se.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Line,ge,.2*ne)),Ke.add(new go.PathSegment(go.PathSegment.Line,te-Oe,0)),Ke.add(new go.PathSegment(go.PathSegment.Line,te,Be)),Ke.add(new go.PathSegment(go.PathSegment.Line,.8*te,Se)),Ke.add(new go.PathSegment(go.PathSegment.Line,te,ne-Be)),Ke.add(new go.PathSegment(go.PathSegment.Line,te-Oe,ne)),Ke.add(new go.PathSegment(go.PathSegment.Line,ge,.8*ne)),Ke.add(new go.PathSegment(go.PathSegment.Line,Oe,ne)),Ke.add(new go.PathSegment(go.PathSegment.Line,0,ne-Be)),Ke.add(new go.PathSegment(go.PathSegment.Line,.2*te,Se)),Ke.add(new go.PathSegment(go.PathSegment.Line,0,Be).close()),se}}),go.Shape.setFigureParameter("ThinX",0,new Ge("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(_e,te,ne){var he=_e?_e.parameter1:NaN;(isNaN(he)||he<0)&&(he=10);var se=new go.Geometry,ge=new go.PathFigure(.1*te,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.1*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.9*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne).close()),se}),go.Shape.setFigureParameter("SquareIBeam",0,new Ge("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(_e,te,ne){var he=_e?_e.parameter1:NaN;isNaN(he)&&(he=.2);var se=new go.Geometry,ge=new go.PathFigure(0,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,he*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5+he/2)*te,he*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5+he/2)*te,(1-he)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,(1-he)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,(1-he)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5-he/2)*te,(1-he)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5-he/2)*te,he*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,he*ne).close()),se}),go.Shape.setFigureParameter("RoundedIBeam",0,new Ge("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(_e,te,ne){var he=_e?_e.parameter1:NaN;isNaN(he)&&(he=.5);var se=new go.Geometry,ge=new go.PathFigure(0,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te,ne,Math.abs(1-he)*te,.25*ne,Math.abs(1-he)*te,.75*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,0,0,he*te,.75*ne,he*te,.25*ne).close()),se}),go.Shape.defineFigureGenerator("HalfEllipse",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,Ve*te,0,te,(.5-Ve/2)*ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,te,(.5+Ve/2)*ne,Ve*te,ne).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,te,0,te,ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*te,.75*ne,.5*te,.25*ne).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,ne,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ne,.1*te,.8*ne,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ne,0,0,.45*te,0)).add(new go.PathSegment(go.PathSegment.Bezier,te,.3*ne,.55*te,0,te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,.5*ne,.9*te,.8*ne).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*te,.01*ne)).add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,.6*te,.2*ne,te,.25*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.7*ne,te,.8*ne,.6*te,.8*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ne,.5*te,.75*ne,.55*te,.95*ne)).add(new go.PathSegment(go.PathSegment.Line,.25*te,ne)).add(new go.PathSegment(go.PathSegment.Bezier,.45*te,.7*ne,.45*te,.95*ne,.5*te,.75*ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,.4*te,.8*ne,0,.8*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.49*te,.01*ne,0,.25*ne,.4*te,.2*ne).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(.4*te,.6*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.15*te,ne,.5*te,.75*ne,.45*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.6*te,.6*ne,.55*te,.95*ne,.5*te,.75*ne));var ge=.2,Se=.3,Ae=0,Oe=ge*Ve;return se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*te,(.5+ge+Ae)*ne,(.5-ge+Se)*te,(.5+Oe+Ae)*ne,(.5-Oe+Se)*te,(.5+ge+Ae)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ge+Se)*te,(.5+Ae)*ne,(.5+Oe+Se)*te,(.5+ge+Ae)*ne,(.5+ge+Se)*te,(.5+Oe+Ae)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*te,(.5-ge+Ae)*ne,(1-.5+ge+Se)*te,(.5-Oe+Ae)*ne,(.5+Oe+Se)*te,(.5-ge+Ae)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.65*te,.36771243*ne,(.5-Oe+Se)*te,(.5-ge+Ae)*ne,(.5-ge+Se+.05)*te,(.5-Oe+Ae-.02)*ne)),ge=.2,Se=0,Ae=-.3,Oe=ge*Ve,se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ge+Se)*te,(.5+Ae)*ne,(.5+Oe+Se)*te,(.5+ge+Ae)*ne,(.5+ge+Se)*te,(.5+Oe+Ae)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*te,(.5-ge+Ae)*ne,(1-.5+ge+Se)*te,(.5-Oe+Ae)*ne,(.5+Oe+Se)*te,(.5-ge+Ae)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ge+Se)*te,(.5+Ae)*ne,(.5-Oe+Se)*te,(.5-ge+Ae)*ne,(.5-ge+Se)*te,(.5-Oe+Ae)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Oe+Se)*te,(.5+ge+Ae)*ne,(.5-ge+Se)*te,(.5+Oe+Ae)*ne,(.5-Oe+Se)*te,(.5+ge+Ae)*ne)),ge=.2,Se=-.3,Ae=0,Oe=ge*Ve,se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*te,(.5-ge+Ae)*ne,(1-.5+ge+Se-.05)*te,(.5-Oe+Ae-.02)*ne,(.5+Oe+Se)*te,(.5-ge+Ae)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ge+Se)*te,(.5+Ae)*ne,(.5-Oe+Se)*te,(.5-ge+Ae)*ne,(.5-ge+Se)*te,(.5-Oe+Ae)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*te,(.5+ge+Ae)*ne,(.5-ge+Se)*te,(.5+Oe+Ae)*ne,(.5-Oe+Se)*te,(.5+ge+Ae)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.6*ne,(.5+Oe+Se)*te,(.5+ge+Ae)*ne,(.5+ge+Se)*te,(.5+Oe+Ae)*ne).close()),he.setSpots(.06,.33,.93,.68),he}),go.Shape.defineFigureGenerator("YinYang",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*.5,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,te*.5,te*.5,te*.5,te*.5)),se.add(new go.PathSegment(go.PathSegment.Arc,90,-180,te*.5,te*.75,te*.25,te*.25)),se.add(new go.PathSegment(go.PathSegment.Arc,90,180,te*.5,te*.25,te*.25,te*.25));var ge=.1,Se=.5,Ae=.25;return se.add(new go.PathSegment(go.PathSegment.Move,(Se+ge)*te,Ae*ne)),se.add(new go.PathSegment(go.PathSegment.Arc,0,-360,te*Se,ne*Ae,ge*te,ge*te).close()),se=new go.PathFigure(te*.5,0,!1),he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,-180,te*.5,te*.5,te*.5,te*.5)),Ae=.75,se=new go.PathFigure((Se+ge)*te,Ae*ne,!0),he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,0,360,te*Se,ne*Ae,ge*te,ge*te).close()),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("Peace",function(_e,te,ne){var he=.8535533905932737,se=.5*te,ge=.5*ne;return new go.Geometry().add(new go.PathFigure(se,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,se,ge,se,ge)).add(new go.PathSegment(go.PathSegment.Line,se,ne)).add(new go.PathSegment(go.PathSegment.Move,se,ge)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,he*ne)).add(new go.PathSegment(go.PathSegment.Move,se,ge)).add(new go.PathSegment(go.PathSegment.Line,he*te,he*ne)))}),go.Shape.defineFigureGenerator("NotAllowed",function(_e,te,ne){var he=new go.Geometry,se=Ve*.5,ge=.5,Se=.5,Ae=.5,Oe=new go.PathFigure(Se*te,(Ae-ge)*ne);he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*te,Ae*ne,(Se-se)*te,(Ae-ge)*ne,(Se-ge)*te,(Ae-se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae+ge)*ne,(Se-ge)*te,(Ae+se)*ne,(Se-se)*te,(Ae+ge)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*te,Ae*ne,(Se+se)*te,(Ae+ge)*ne,(Se+ge)*te,(Ae+se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae-ge)*ne,(Se+ge)*te,(Ae-se)*ne,(Se+se)*te,(Ae-ge)*ne)),ge=.4,se=Ve*.4;var Be=le(),Ke=le(),rt=le(),ot=le();Le(Se,Ae-ge,Se+se,Ae-ge,Se+ge,Ae-se,Se+ge,Ae,.42,Be,Ke,rt,ot,ot);var ht=le(),bt=le(),at=le();Le(Se,Ae-ge,Se+se,Ae-ge,Se+ge,Ae-se,Se+ge,Ae,.58,ot,ot,at,ht,bt);var At=le(),It=le(),$t=le();Le(Se,Ae+ge,Se-se,Ae+ge,Se-ge,Ae+se,Se-ge,Ae,.42,At,It,$t,ot,ot);var Tn=le(),yn=le(),un=le();return Le(Se,Ae+ge,Se-se,Ae+ge,Se-ge,Ae+se,Se-ge,Ae,.58,ot,ot,un,Tn,yn),Oe.add(new go.PathSegment(go.PathSegment.Move,un.x*te,un.y*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*te,Ae*ne,Tn.x*te,Tn.y*ne,yn.x*te,yn.y*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae-ge)*ne,(Se-ge)*te,(Ae-se)*ne,(Se-se)*te,(Ae-ge)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,rt.x*te,rt.y*ne,Be.x*te,Be.y*ne,Ke.x*te,Ke.y*ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,un.x*te,un.y*ne).close()),Oe.add(new go.PathSegment(go.PathSegment.Move,$t.x*te,$t.y*ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,at.x*te,at.y*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*te,Ae*ne,ht.x*te,ht.y*ne,bt.x*te,bt.y*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae+ge)*ne,(Se+ge)*te,(Ae+se)*ne,(Se+se)*te,(Ae+ge)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,$t.x*te,$t.y*ne,At.x*te,At.y*ne,It.x*te,It.y*ne).close()),Ie(Be),Ie(Ke),Ie(rt),Ie(ot),Ie(ht),Ie(bt),Ie(at),Ie(At),Ie(It),Ie($t),Ie(Tn),Ie(yn),Ie(un),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("Fragile",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*te,0)).add(new go.PathSegment(go.PathSegment.Line,.2*te,.15*ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.25*ne)).add(new go.PathSegment(go.PathSegment.Line,.29*te,.33*ne)).add(new go.PathSegment(go.PathSegment.Line,.35*te,.25*ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.15*ne)).add(new go.PathSegment(go.PathSegment.Line,.4*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.5*ne,te,.25*ne,.75*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.55*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.45*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.5*ne,0,.25*ne).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Ge("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(_e,te,ne){var he=_e?_e.parameter1:NaN;(isNaN(he)||he<0)&&(he=30),he>te&&(he=te);var se=(te-he)/2,ge=se+he;return new go.Geometry().add(new go.PathFigure(ge,.5*ne).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne)).add(new go.PathSegment(go.PathSegment.Line,se,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,te,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(0,.55*ne).add(new go.PathSegment(go.PathSegment.Line,.6*te,0)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.45*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.45*ne)).add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.55*ne).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(_e,te,ne){var he=new go.Geometry,se=Ve*.4,ge=.4,Se=.5,Ae=.5,Oe=le(),Be=le(),Ke=le(),rt=le(),ot=new go.PathFigure((Se-ge)*te,Ae*ne,!1);he.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae-ge)*ne,(Se-ge)*te,(Ae-se)*ne,(Se-se)*te,(Ae-ge)*ne)),Le(Se,Ae-ge,Se+se,Ae-ge,Se+ge,Ae-se,Se+ge,Ae,.44,Ke,rt,Be,Oe,Oe),ot.add(new go.PathSegment(go.PathSegment.Bezier,Be.x*te,Be.y*ne,Ke.x*te,Ke.y*ne,rt.x*te,rt.y*ne));var ht=de(Be.x,Be.y);Le(Se,Ae-ge,Se+se,Ae-ge,Se+ge,Ae-se,Se+ge,Ae,.56,Oe,Oe,Be,Ke,rt);var bt=de(Be.x,Be.y);ot.add(new go.PathSegment(go.PathSegment.Line,(ht.x*.1+.95*.9)*te,ht.y*.1*ne)),ot.add(new go.PathSegment(go.PathSegment.Line,.85*te,ht.y*.1*ne)),ot.add(new go.PathSegment(go.PathSegment.Line,.85*te,0)),ot.add(new go.PathSegment(go.PathSegment.Line,te,0)),ot.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),ot.add(new go.PathSegment(go.PathSegment.Line,(bt.x*.1+.9)*te,.15*ne)),ot.add(new go.PathSegment(go.PathSegment.Line,(bt.x*.1+.9)*te,(bt.y*.1+.05*.9)*ne)),ot.add(new go.PathSegment(go.PathSegment.Line,bt.x*te,bt.y*ne)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*te,Ae*ne,Ke.x*te,Ke.y*ne,rt.x*te,rt.y*ne)),ot.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae+ge)*ne,(Se+ge)*te,(Ae+se)*ne,(Se+se)*te,(Ae+ge)*ne)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*te,Ae*ne,(Se-se)*te,(Ae+ge)*ne,(Se-ge)*te,(Ae+se)*ne)),ge=.35,se=Ve*.35;var at=new go.PathFigure(Se*te,(Ae-ge)*ne,!1);he.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*te,Ae*ne,(Se-se)*te,(Ae-ge)*ne,(Se-ge)*te,(Ae-se)*ne)),at.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae+ge)*ne,(Se-ge)*te,(Ae+se)*ne,(Se-se)*te,(Ae+ge)*ne)),at.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*te,Ae*ne,(Se+se)*te,(Ae+ge)*ne,(Se+ge)*te,(Ae+se)*ne)),at.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae-ge)*ne,(Se+ge)*te,(Ae-se)*ne,(Se+se)*te,(Ae-ge)*ne));var At=new go.PathFigure((Se-ge)*te,Ae*ne,!1);return he.add(At),Ie(Oe),Ie(Be),Ie(Ke),Ie(rt),Ie(ht),Ie(bt),he.spot1=new go.Spot(.202,.257),he.spot2=new go.Spot(.792,.739),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("GenderFemale",function(_e,te,ne){var he=new go.Geometry,se=.375,ge=0,Se=-.125,Ae=se*Ve,Oe=new go.PathFigure((.525+ge)*te,(.5+se+Se)*ne,!1);he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+ge)*te,(.5+Se)*ne,(.5+Ae+ge)*te,(.5+se+Se)*ne,(.5+se+ge)*te,(.5+Ae+Se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*te,(.5-se+Se)*ne,(1-.5+se+ge)*te,(.5-Ae+Se)*ne,(.5+Ae+ge)*te,(.5-se+Se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*te,(.5+Se)*ne,(.5-Ae+ge)*te,(.5-se+Se)*ne,(.5-se+ge)*te,(.5-Ae+Se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(.475+ge)*te,(.5+se+Se)*ne,(.5-se+ge)*te,(.5+Ae+Se)*ne,(.5-Ae+ge)*te,(.5+se+Se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,.475*te,.85*ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,.425*te,.85*ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,.425*te,.9*ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,.475*te,.9*ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,.475*te,ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,.525*te,ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,.525*te,.9*ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,.575*te,.9*ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,.575*te,.85*ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,.525*te,.85*ne).close()),se=.325,ge=0,Se=-.125,Ae=se*Ve;var Oe=new go.PathFigure((1-.5+se+ge)*te,(.5+Se)*ne,!1);he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*te,(.5+se+Se)*ne,(.5+se+ge)*te,(.5+Ae+Se)*ne,(.5+Ae+ge)*te,(.5+se+Se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*te,(.5+Se)*ne,(.5-Ae+ge)*te,(.5+se+Se)*ne,(.5-se+ge)*te,(.5+Ae+Se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*te,(.5-se+Se)*ne,(.5-se+ge)*te,(.5-Ae+Se)*ne,(.5-Ae+ge)*te,(.5-se+Se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+ge)*te,(.5+Se)*ne,(.5+Ae+ge)*te,(.5-se+Se)*ne,(1-.5+se+ge)*te,(.5-Ae+Se)*ne));var Oe=new go.PathFigure((.525+ge)*te,(.5+se+Se)*ne,!1);return he.add(Oe),he.spot1=new go.Spot(.232,.136),he.spot2=new go.Spot(.682,.611),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("LogicImplies",function(_e,te,ne){var he=_e?_e.parameter1:NaN;return isNaN(he)&&(he=.2),new go.Geometry().add(new go.PathFigure((1-he)*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,ne)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(_e,te,ne){var he=_e?_e.parameter1:NaN;return isNaN(he)&&(he=.2),new go.Geometry().add(new go.PathFigure((1-he)*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,ne)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Move,he*te,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,he*te,ne))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)))}),go.Shape.defineFigureGenerator("LogicAnd",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,te,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(_e,te,ne){var he=new go.Geometry().add(new go.PathFigure(.5*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*te,.5*ne,.5*te,.5*ne)));return he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("LogicTruth",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,.5*te,0)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Move,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Move,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne)))}),go.Shape.defineFigureGenerator("LogicForAll",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,.25*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ne))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Move,0,ne)).add(new go.PathSegment(go.PathSegment.Line,te,ne))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(_e,te,ne){var he=.5;return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,0,he*ne)).add(new go.PathSegment(go.PathSegment.Arc,180,180,he*te,he*ne,he*te,he*ne)).add(new go.PathSegment(go.PathSegment.Line,te,ne))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(_e,te,ne){var he=.5;return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,he*ne)).add(new go.PathSegment(go.PathSegment.Arc,0,180,he*te,he*ne,he*te,he*ne)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Ge("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ge("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(_e,te,ne){var he=_e?_e.parameter1:NaN;isNaN(he)&&(he=.3);var se=_e?_e.parameter2:NaN;isNaN(se)&&(se=.3);var ge=(1-he)*te,Se=(.5-se/2)*ne,Ae=(.5+se/2)*ne,Oe=new go.Geometry,Be=new go.PathFigure(0,Se,!0);Oe.add(Be),Be.add(new go.PathSegment(go.PathSegment.Line,ge,Se)),Be.add(new go.PathSegment(go.PathSegment.Line,ge,0)),Be.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),Be.add(new go.PathSegment(go.PathSegment.Line,ge,ne)),Be.add(new go.PathSegment(go.PathSegment.Line,ge,Ae)),Be.add(new go.PathSegment(go.PathSegment.Line,0,Ae).close()),Oe.spot1=new go.Spot(0,Se/ne);var Ke=De(0,Ae/ne,1,Ae/ne,ge/te,1,1,.5,le());return Oe.spot2=new go.Spot(Ke.x,Ke.y),Ie(Ke),Oe}),go.Shape.setFigureParameter("Arrow2",0,new Ge("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ge("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(_e,te,ne){var he=_e?_e.parameter1:NaN;isNaN(he)&&(he=30),he>te&&(he=te);var se=_e?_e.parameter2:NaN;isNaN(se)&&(se=30),se=Math.min(se,ne/2);var ge=te-he,Se=(ne-se)/2,Ae=Se+se,Oe=new go.Geometry,Be=new go.PathFigure(0,Se,!0);Oe.add(Be),Be.add(new go.PathSegment(go.PathSegment.Line,ge,Se)),Be.add(new go.PathSegment(go.PathSegment.Line,ge,0)),Be.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),Be.add(new go.PathSegment(go.PathSegment.Line,ge,ne)),Be.add(new go.PathSegment(go.PathSegment.Line,ge,Ae)),Be.add(new go.PathSegment(go.PathSegment.Line,0,Ae).close()),Oe.spot1=new go.Spot(0,Se/ne);var Ke=De(0,Ae/ne,1,Ae/ne,ge/te,1,1,.5,le());return Oe.spot2=new go.Spot(Ke.x,Ke.y),Ie(Ke),Oe}),go.Shape.defineFigureGenerator("Chevron",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne).close()),he}),go.Shape.defineFigureGenerator("DoubleArrow",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.214*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,1*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.786*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,1*ne).close()),he}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Ge("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(_e,te,ne){var he=_e?_e.parameter1:NaN;isNaN(he)&&(he=.3);var se=(.5-he/2)*ne,ge=(.5+he/2)*ne,Se=new go.Geometry,Ae=new go.PathFigure(te,.5*ne,!0);Se.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Ae.add(new go.PathSegment(go.PathSegment.Line,.3*te,ge)),Ae.add(new go.PathSegment(go.PathSegment.Line,.3*te,ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),Ae.add(new go.PathSegment(go.PathSegment.Line,.3*te,se)),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close());var Oe=De(0,.5,.3,0,0,se/ne,.1,se/ne,le());return Se.spot1=new go.Spot(Oe.x,Oe.y),Oe=De(.7,1,1,.5,0,ge/ne,1,ge/ne,Oe),Se.spot2=new go.Spot(Oe.x,Oe.y),Ie(Oe),Se}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ge("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ge("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(_e,te,ne){var he=_e?_e.parameter1:NaN;isNaN(he)&&(he=40);var se=_e?_e.parameter2:NaN;isNaN(se)&&(se=100);var ge=(ne-he)/2,Se=ge+he,Ae=(ne-se)/2,Oe=Ae+se;(he>ne||se>ne)&&(se>he?(he=he*ne/se,ge=(ne-he)/2,Se=ge+he,Ae=0,Oe=ne):(ge=0,Se=ne,Ae=0,Oe=ne));var Be=new go.Geometry,Ke=new go.PathFigure(te,.5*ne,!0);Be.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Line,.7*te,Oe)),Ke.add(new go.PathSegment(go.PathSegment.Line,.7*te,Se)),Ke.add(new go.PathSegment(go.PathSegment.Line,.3*te,Se)),Ke.add(new go.PathSegment(go.PathSegment.Line,.3*te,Oe)),Ke.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),Ke.add(new go.PathSegment(go.PathSegment.Line,.3*te,Ae)),Ke.add(new go.PathSegment(go.PathSegment.Line,.3*te,ge)),Ke.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Ke.add(new go.PathSegment(go.PathSegment.Line,.7*te,Ae).close());var rt=De(0,.5,.3,Ae/ne,0,ge/ne,1,ge/ne,le());return Be.spot1=new go.Spot(rt.x,rt.y),rt=De(.7,Oe/ne,1,.5,0,Se/ne,1,Se/ne,rt),Be.spot2=new go.Spot(rt.x,rt.y),Ie(rt),Be}),go.Shape.setFigureParameter("IBeamArrow",0,new Ge("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(_e,te,ne){var he=_e?_e.parameter1:NaN;isNaN(he)&&(he=.3);var se=(.5-he/2)*ne,ge=(.5+he/2)*ne,Se=new go.Geometry,Ae=new go.PathFigure(te,.5*ne,!0);Se.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*te,ge)),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,0,ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*te,se)),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),Se.spot1=new go.Spot(0,se/ne);var Oe=De(.7,1,1,.5,0,ge/ne,1,ge/ne,le());return Se.spot2=new go.Spot(Oe.x,Oe.y),Ie(Oe),Se}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ge("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ge("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(_e,te,ne){var he=_e?_e.parameter1:NaN;isNaN(he)&&(he=40);var se=_e?_e.parameter2:NaN;isNaN(se)&&(se=100);var ge=(ne-he)/2,Se=ge+he,Ae=(ne-se)/2,Oe=Ae+se;(he>ne||se>ne)&&(se>he?(he=he*ne/se,ge=(ne-he)/2,Se=ge+he,Ae=0,Oe=ne):(ge=0,Se=ne,Ae=0,Oe=ne));var Be=new go.Geometry,Ke=new go.PathFigure(te,.5*ne,!0);Be.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Line,.7*te,Oe)),Ke.add(new go.PathSegment(go.PathSegment.Line,.7*te,Se)),Ke.add(new go.PathSegment(go.PathSegment.Line,.2*te,Se)),Ke.add(new go.PathSegment(go.PathSegment.Line,.2*te,Oe)),Ke.add(new go.PathSegment(go.PathSegment.Line,0,Oe)),Ke.add(new go.PathSegment(go.PathSegment.Line,0,Ae)),Ke.add(new go.PathSegment(go.PathSegment.Line,.2*te,Ae)),Ke.add(new go.PathSegment(go.PathSegment.Line,.2*te,ge)),Ke.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Ke.add(new go.PathSegment(go.PathSegment.Line,.7*te,Ae).close()),Be.spot1=new go.Spot(0,ge/ne);var rt=De(.7,Oe/ne,1,.5,0,Se/ne,1,Se/ne,le());return Be.spot2=new go.Spot(rt.x,rt.y),Ie(rt),Be}),go.Shape.setFigureParameter("Pointer",0,new Ge("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(_e,te,ne){var he=_e?_e.parameter1:NaN;isNaN(he)&&(he=.1);var se=new go.Geometry,ge=new go.PathFigure(te,.5*ne,!0);se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,he*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),se.spot1=new go.Spot(he,.35);var Se=De(.2,.65,1,.65,0,1,1,.5,le());return se.spot2=new go.Spot(Se.x,Se.y),Ie(Se),se}),go.Shape.setFigureParameter("RoundedPointer",0,new Ge("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(_e,te,ne){var he=_e?_e.parameter1:NaN;isNaN(he)&&(he=.3);var se=new go.Geometry,ge=new go.PathFigure(te,.5*ne,!0);se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,0,0,he*te,.75*ne,he*te,.25*ne).close()),se.spot1=new go.Spot(he,.35);var Se=De(0,.65,1,.65,0,1,1,.5,le());return se.spot2=new go.Spot(Se.x,Se.y),Ie(Se),se}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ge("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(_e,te,ne){var he=_e?_e.parameter1:NaN;isNaN(he)&&(he=.4);var se=(.5-he/2)*ne,ge=(.5+he/2)*ne,Se=new go.Geometry,Ae=new go.PathFigure(te,.5*ne,!0);Se.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Ae.add(new go.PathSegment(go.PathSegment.Line,0,ge)),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,0,se)),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),Se.spot1=new go.Spot(.2,.3);var Oe=De(.7,1,1,.5,0,ge/ne,1,ge/ne,le());return Se.spot2=new go.Spot(Oe.x,Oe.y),Ie(Oe),Se}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ge("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(_e,te,ne){var he=_e?_e.parameter1:NaN;isNaN(he)&&(he=50);var se=(ne-he)/2,ge=se+he;he>ne&&(se=0,ge=ne);var Se=new go.Geometry,Ae=new go.PathFigure(te,.5*ne,!0);Se.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Ae.add(new go.PathSegment(go.PathSegment.Line,0,ge)),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,0,se)),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),Se.spot1=new go.Spot(.2,se/ne);var Oe=De(.7,1,1,.5,0,ge/ne,1,ge/ne,le());return Se.spot2=new go.Spot(Oe.x,Oe.y),Ie(Oe),Se}),go.Shape.setFigureParameter("SquareArrow",0,new Ge("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(_e,te,ne){var he=_e?_e.parameter1:NaN;isNaN(he)&&(he=.7);var se=new go.Geometry,ge=new go.PathFigure(te,.5*ne,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,he*te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,he*te,0).close()),se.spot1=go.Spot.TopLeft,se.spot2=new go.Spot(he,1),se}),go.Shape.defineFigureGenerator("Cone1",function(_e,te,ne){var he=new go.Geometry,se=Ve*.5,ge=Ve*.1,Se=new go.PathFigure(0,.9*ne,!0);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),Se.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+ge)*ne,(.5+se)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-se)*te,ne,0,(.9+ge)*ne).close()),he.spot1=new go.Spot(.25,.5),he.spot2=new go.Spot(.75,.97),he}),go.Shape.defineFigureGenerator("Cone2",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.9*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.9*ne,(1-.85/.9)*te,ne,.85/.9*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.9*ne).close());var ge=new go.PathFigure(0,.9*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te,.9*ne,(1-.85/.9)*te,.8*ne,.85/.9*te,.8*ne)),he.spot1=new go.Spot(.25,.5),he.spot2=new go.Spot(.75,.82),he}),go.Shape.defineFigureGenerator("Cube1",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.85*ne).close());var ge=new go.PathFigure(.5*te,ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.15*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.5*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),he.spot1=new go.Spot(0,.3),he.spot2=new go.Spot(.5,.85),he}),go.Shape.defineFigureGenerator("Cube2",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.3*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,0).close());var ge=new go.PathFigure(0,.3*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Move,.7*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),he.spot1=new go.Spot(0,.3),he.spot2=new go.Spot(.7,1),he}),go.Shape.defineFigureGenerator("Cylinder1",function(_e,te,ne){var he=_e?_e.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,ne/3);var se=new go.Geometry,ge=Ve*.5,Se=new go.PathFigure(0,he,!0);se.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,Ve*he,(.5-ge)*te,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,1*te,he,(.5+ge)*te,0,1*te,Ve*he)),Se.add(new go.PathSegment(go.PathSegment.Line,te,ne-he)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,1*ne,1*te,ne-Ve*he,(.5+ge)*te,1*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-he,(.5-ge)*te,1*ne,0,ne-Ve*he)),Se.add(new go.PathSegment(go.PathSegment.Line,0,he));var Ae=new go.PathFigure(te,he,!1);return se.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,2*he,1*te,2*he-Ve*he,(.5+ge)*te,2*he)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,he,(.5-ge)*te,2*he,0,2*he-Ve*he)),se.spot1=new go.Spot(0,0,0,2*he),se.spot2=new go.Spot(1,1),se}),go.Shape.defineFigureGenerator("Cylinder2",function(_e,te,ne){var he=_e?_e.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,ne/3);var se=new go.Geometry,ge=Ve*.5,Se=new go.PathFigure(0,ne-he,!0);se.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,0,he)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,Ve*he,(.5-ge)*te,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te,he,(.5+ge)*te,0,te,Ve*he)),Se.add(new go.PathSegment(go.PathSegment.Line,te,ne-he)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,ne-Ve*he,(.5+ge)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-he,(.5-ge)*te,ne,0,ne-Ve*he));var Ae=new go.PathFigure(0,ne-he,!1);return se.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne-2*he,0,ne-he-Ve*he,(.5-ge)*te,ne-2*he)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,te,ne-he,(.5+ge)*te,ne-2*he,te,ne-he-Ve*he)),se.spot1=new go.Spot(0,0),se.spot2=new go.Spot(1,1,0,-2*he),se}),go.Shape.defineFigureGenerator("Cylinder3",function(_e,te,ne){var he=_e?_e.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,te/3);var se=new go.Geometry,ge=Ve*.5,Se=new go.PathFigure(he,0,!0);se.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te-he,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,te-Ve*he,0,te,(.5-ge)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te-he,ne,te,(.5+ge)*ne,te-Ve*he,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,he,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,Ve*he,ne,0,(.5+ge)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,(.5-ge)*ne,Ve*he,0));var Ae=new go.PathFigure(he,0,!1);return se.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,2*he,.5*ne,he+Ve*he,0,2*he,(.5-ge)*ne)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,he,ne,2*he,(.5+ge)*ne,he+Ve*he,ne)),se.spot1=new go.Spot(0,0,2*he,0),se.spot2=new go.Spot(1,1),se}),go.Shape.defineFigureGenerator("Cylinder4",function(_e,te,ne){var he=_e?_e.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,te/3);var se=new go.Geometry,ge=Ve*.5,Se=new go.PathFigure(te-he,0,!0);se.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,te-Ve*he,0,te,(.5-ge)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te-he,ne,te,(.5+ge)*ne,te-Ve*he,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,he,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,Ve*he,ne,0,(.5+ge)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,(.5-ge)*ne,Ve*he,0)),Se.add(new go.PathSegment(go.PathSegment.Line,te-he,0));var Ae=new go.PathFigure(te-he,0,!1);return se.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,te-2*he,.5*ne,te-he-Ve*he,0,te-2*he,(.5-ge)*ne)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,te-he,ne,te-2*he,(.5+ge)*ne,te-he-Ve*he,ne)),se.spot1=new go.Spot(0,0),se.spot2=new go.Spot(1,1,-2*he,0),se}),go.Shape.defineFigureGenerator("Prism1",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(.25*te,.25*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var ge=new go.PathFigure(.25*te,.25*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),he.spot1=new go.Spot(.408,.172),he.spot2=new go.Spot(.833,.662),he}),go.Shape.defineFigureGenerator("Prism2",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.25*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var ge=new go.PathFigure(0,ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,0,.25*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ne)),he.spot1=new go.Spot(.25,.5),he.spot2=new go.Spot(.75,.75),he}),go.Shape.defineFigureGenerator("Pyramid1",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*ne).close());var ge=new go.PathFigure(.5*te,0,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),he.spot1=new go.Spot(.25,.367),he.spot2=new go.Spot(.75,.875),he}),go.Shape.defineFigureGenerator("Pyramid2",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.85*ne).close());var ge=new go.PathFigure(.5*te,0,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.7*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.85*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.5*te,.7*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),he.spot1=new go.Spot(.25,.367),he.spot2=new go.Spot(.75,.875),he}),go.Shape.defineFigureGenerator("Actor",function(_e,te,ne){var he=new go.Geometry,se=.2,ge=.1,Se=Ve*se,Ae=Ve*ge,Oe=.5,Be=.1,Ke=new go.PathFigure(Oe*te,(Be+ge)*ne,!0);he.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-se)*te,Be*ne,(Oe-Se)*te,(Be+ge)*ne,(Oe-se)*te,(Be+Ae)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Be-ge)*ne,(Oe-se)*te,(Be-Ae)*ne,(Oe-Se)*te,(Be-ge)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+se)*te,Be*ne,(Oe+Se)*te,(Be-ge)*ne,(Oe+se)*te,(Be-Ae)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Be+ge)*ne,(Oe+se)*te,(Be+Ae)*ne,(Oe+Se)*te,(Be+ge)*ne));var rt=.05,ot=Ve*rt;Oe=.05,Be=.25;var ht=new go.PathFigure(.5*te,.2*ne,!0);return he.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.95*te,.2*ne)),Oe=.95,Be=.25,ht.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+rt)*te,Be*ne,(Oe+ot)*te,(Be-rt)*ne,(Oe+rt)*te,(Be-ot)*ne)),ht.add(new go.PathSegment(go.PathSegment.Line,te,.6*ne)),ht.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ne)),ht.add(new go.PathSegment(go.PathSegment.Line,.85*te,.35*ne)),rt=.025,ot=Ve*rt,Oe=.825,Be=.35,ht.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Be-rt)*ne,(Oe+rt)*te,(Be-ot)*ne,(Oe+ot)*te,(Be-rt)*ne)),ht.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-rt)*te,Be*ne,(Oe-ot)*te,(Be-rt)*ne,(Oe-rt)*te,(Be-ot)*ne)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),ht.add(new go.PathSegment(go.PathSegment.Line,.55*te,ne)),ht.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ne)),rt=.05,ot=Ve*rt,Oe=.5,Be=.7,ht.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Be-rt)*ne,(Oe+rt)*te,(Be-ot)*ne,(Oe+ot)*te,(Be-rt)*ne)),ht.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-rt)*te,Be*ne,(Oe-ot)*te,(Be-rt)*ne,(Oe-rt)*te,(Be-ot)*ne)),ht.add(new go.PathSegment(go.PathSegment.Line,.45*te,ne)),ht.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),ht.add(new go.PathSegment(go.PathSegment.Line,.2*te,.35*ne)),rt=.025,ot=Ve*rt,Oe=.175,Be=.35,ht.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Be-rt)*ne,(Oe+rt)*te,(Be-ot)*ne,(Oe+ot)*te,(Be-rt)*ne)),ht.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-rt)*te,Be*ne,(Oe-ot)*te,(Be-rt)*ne,(Oe-rt)*te,(Be-ot)*ne)),ht.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ne)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),rt=.05,ot=Ve*rt,Oe=.05,Be=.25,ht.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Be-rt)*ne,(Oe-rt)*te,(Be-ot)*ne,(Oe-ot)*te,(Be-rt)*ne)),ht.add(new go.PathSegment(go.PathSegment.Line,.5*te,.2*ne)),he.spot1=new go.Spot(.2,.2),he.spot2=new go.Spot(.8,.65),he}),go.Shape.setFigureParameter("Card",0,new Ge("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(_e,te,ne){var he=_e?_e.parameter1:NaN;isNaN(he)&&(he=.2);var se=new go.Geometry,ge=new go.PathFigure(te,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,he*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,he*te,0).close()),se.spot1=new go.Spot(0,he),se.spot2=go.Spot.BottomRight,se}),go.Shape.defineFigureGenerator("Collate",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,.5*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne));var ge=new go.PathFigure(.5*te,.5*ne,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),he.spot1=new go.Spot(.25,0),he.spot2=new go.Spot(.75,.25),he}),go.Shape.defineFigureGenerator("CreateRequest",function(_e,te,ne){var he=new go.Geometry,se=_e?_e.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var Se=new go.PathFigure(0,se*ne,!1);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,se*ne)),Se.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,te,(1-se)*ne)),he}),go.Shape.defineFigureGenerator("Database",function(_e,te,ne){var he=new go.Geometry,se=Ve*.5,ge=Ve*.1,Se=new go.PathFigure(te,.1*ne,!0);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+ge)*ne,(.5+se)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-se)*te,ne,0,(.9+ge)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,(.1-ge)*ne,(.5-se)*te,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ne,(.5+se)*te,0,te,(.1-ge)*ne));var Ae=new go.PathFigure(te,.1*ne,!1);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,te,(.1+ge)*ne,(.5+se)*te,.2*ne)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ne,(.5-se)*te,.2*ne,0,(.1+ge)*ne)),Ae.add(new go.PathSegment(go.PathSegment.Move,te,.2*ne)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ne,te,(.2+ge)*ne,(.5+se)*te,.3*ne)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ne,(.5-se)*te,.3*ne,0,(.2+ge)*ne)),Ae.add(new go.PathSegment(go.PathSegment.Move,te,.3*ne)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.4*ne,te,(.3+ge)*ne,(.5+se)*te,.4*ne)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ne,(.5-se)*te,.4*ne,0,(.3+ge)*ne)),he.spot1=new go.Spot(0,.4),he.spot2=new go.Spot(1,.9),he}),go.Shape.defineFigureGenerator("DataStorage",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ne,te,0,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.9*ne,.25*te,.1*ne).close()),he.spot1=new go.Spot(.226,0),he.spot2=new go.Spot(.81,1),he}),go.Shape.defineFigureGenerator("DiskStorage",function(_e,te,ne){var he=new go.Geometry,se=Ve*.5,ge=Ve*.1,Se=new go.PathFigure(te,.1*ne,!0);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+ge)*ne,(.5+se)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-se)*te,ne,0,(.9+ge)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,(.1-ge)*ne,(.5-se)*te,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ne,(.5+se)*te,0,te,(.1-ge)*ne));var Ae=new go.PathFigure(te,.1*ne,!1);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,te,(.1+ge)*ne,(.5+se)*te,.2*ne)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ne,(.5-se)*te,.2*ne,0,(.1+ge)*ne)),Ae.add(new go.PathSegment(go.PathSegment.Move,te,.2*ne)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ne,te,(.2+ge)*ne,(.5+se)*te,.3*ne)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ne,(.5-se)*te,.3*ne,0,(.2+ge)*ne)),he.spot1=new go.Spot(0,.3),he.spot2=new go.Spot(1,.9),he}),go.Shape.defineFigureGenerator("Display",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(.25*te,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ne,te,0,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne).close()),he.spot1=new go.Spot(.25,0),he.spot2=new go.Spot(.75,1),he}),go.Shape.defineFigureGenerator("DividedEvent",function(_e,te,ne){var he=new go.Geometry,se=_e?_e.parameter1:NaN;isNaN(se)?se=.2:se<.15&&(se=.15);var ge=Ve*.2,Se=new go.PathFigure(0,.2*ne,!0);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,0,(.2-ge)*ne,(.2-ge)*te,0)),Se.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te,.2*ne,(.8+ge)*te,0,te,(.2-ge)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,ne,te,(.8+ge)*ne,(.8+ge)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*ne,(.2-ge)*te,ne,0,(.8+ge)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne));var Ae=new go.PathFigure(0,se*ne,!1);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,te,se*ne)),he}),go.Shape.defineFigureGenerator("DividedProcess",function(_e,te,ne){var he=new go.Geometry,se=_e?_e.parameter1:NaN;(isNaN(se)||se<.1)&&(se=.1);var ge=new go.PathFigure(0,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var Se=new go.PathFigure(0,se*ne,!1);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,se*ne)),he}),go.Shape.defineFigureGenerator("Document",function(_e,te,ne){var he=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(0,.7*ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.5*te,.4*ne,.5*te,ne).close()),he.spot1=go.Spot.TopLeft,he.spot2=new go.Spot(1,.6),he}),go.Shape.defineFigureGenerator("ExternalOrganization",function(_e,te,ne){var he=new go.Geometry,se=_e?_e.parameter1:NaN;(isNaN(se)||se<.2)&&(se=.2);var ge=new go.PathFigure(0,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var Se=new go.PathFigure(se*te,0,!1);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,0,se*ne)),Se.add(new go.PathSegment(go.PathSegment.Move,te,se*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,0)),Se.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Move,(1-se)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,te,(1-se)*ne)),he}),go.Shape.defineFigureGenerator("ExternalProcess",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne).close());var ge=new go.PathFigure(.1*te,.4*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.1*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.9*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.6*te,.1*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*te,.1*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.4*te,.9*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*te,.9*ne)),he.spot1=new go.Spot(.25,.25),he.spot2=new go.Spot(.75,.75),he}),go.Shape.defineFigureGenerator("File",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var ge=new go.PathFigure(.75*te,0,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.75*te,.25*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),he.spot1=new go.Spot(0,.25),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("Interrupt",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(te,.5*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne));var ge=new go.PathFigure(te,.5*ne,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne));var Se=new go.PathFigure(te,.5*ne,!1);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,0)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.5,.75),he}),go.Shape.defineFigureGenerator("InternalStorage",function(_e,te,ne){var he=new go.Geometry,se=_e?_e.parameter1:NaN,ge=_e?_e.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(ge)&&(ge=.1);var Se=new go.PathFigure(0,0,!0);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,0)),Se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var Ae=new go.PathFigure(se*te,0,!1);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),Ae.add(new go.PathSegment(go.PathSegment.Move,0,ge*ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,te,ge*ne)),he}),go.Shape.defineFigureGenerator("Junction",function(_e,te,ne){var he=new go.Geometry,se=1/Math.SQRT2,ge=(1-1/Math.SQRT2)/2,Se=Ve*.5,Ae=.5,Oe=new go.PathFigure(te,Ae*ne,!0);he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,ne,te,(Ae+Se)*ne,(Ae+Se)*te,ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,0,Ae*ne,(Ae-Se)*te,ne,0,(Ae+Se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,0,0,(Ae-Se)*ne,(Ae-Se)*te,0)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,te,Ae*ne,(Ae+Se)*te,0,te,(Ae-Se)*ne));var Be=new go.PathFigure((ge+se)*te,(ge+se)*ne,!1);return he.add(Be),Be.add(new go.PathSegment(go.PathSegment.Line,ge*te,ge*ne)),Be.add(new go.PathSegment(go.PathSegment.Move,ge*te,(ge+se)*ne)),Be.add(new go.PathSegment(go.PathSegment.Line,(ge+se)*te,ge*ne)),he}),go.Shape.defineFigureGenerator("LinedDocument",function(_e,te,ne){var he=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(0,.7*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.5*te,.4*ne,.5*te,ne).close());var ge=new go.PathFigure(.1*te,0,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.1*te,.75*ne)),he.spot1=new go.Spot(.1,0),he.spot2=new go.Spot(1,.6),he}),go.Shape.defineFigureGenerator("LoopLimit",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne).close()),he.spot1=new go.Spot(0,.25),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("MagneticTape",function(_e,te,ne){var he=new go.Geometry,se=Ve*.5,ge=.5,Se=new go.PathFigure(.5*te,ne,!0);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*ne,(ge-se)*te,ne,0,(ge+se)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,0,0,(ge-se)*ne,(ge-se)*te,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te,ge*ne,(ge+se)*te,0,te,(ge-se)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ge+.1)*te,.9*ne,te,(ge+se)*ne,(ge+se)*te,.9*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),he.spot1=new go.Spot(.15,.15),he.spot2=new go.Spot(.85,.8),he}),go.Shape.defineFigureGenerator("ManualInput",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(te,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne).close()),he.spot1=new go.Spot(0,.25),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("MessageFromUser",function(_e,te,ne){var he=new go.Geometry,se=_e?_e.parameter1:NaN;isNaN(se)&&(se=.7);var ge=new go.PathFigure(0,0,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,se*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he.spot1=go.Spot.TopLeft,he}),go.Shape.defineFigureGenerator("MicroformProcessing",function(_e,te,ne){var he=new go.Geometry,se=_e?_e.parameter1:NaN;isNaN(se)&&(se=.25);var ge=new go.PathFigure(0,0,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,se*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,(1-se)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he}),go.Shape.defineFigureGenerator("MicroformRecording",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(1,.75),he}),go.Shape.defineFigureGenerator("MultiDocument",function(_e,te,ne){var he=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(te,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.44*ne,.96*te,.47*ne,.93*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.54*ne,.86*te,.57*ne,.83*te,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.4*te,.4*ne,.4*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,0).close());var ge=new go.PathFigure(.1*te,.2*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.54*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*te,.1*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,.1*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,.44*ne)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.8,.77),he}),go.Shape.defineFigureGenerator("MultiProcess",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(.1*te,.1*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ne).close());var ge=new go.PathFigure(.2*te,.1*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,.1*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.1*te,.2*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.9*ne)),he.spot1=new go.Spot(0,.2),he.spot2=new go.Spot(.8,1),he}),go.Shape.defineFigureGenerator("OfflineStorage",function(_e,te,ne){var he=new go.Geometry,se=_e?_e.parameter1:NaN;isNaN(se)&&(se=.1);var ge=1-se,Se=new go.PathFigure(0,0,!0);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,0)),Se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne).close());var Ae=new go.PathFigure(.5*se*te,se*ne,!1);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,(1-.5*se)*te,se*ne)),he}),go.Shape.defineFigureGenerator("OffPageConnector",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he.spot1=go.Spot.TopLeft,he.spot2=new go.Spot(.75,1),he}),go.Shape.defineFigureGenerator("Or",function(_e,te,ne){var he=new go.Geometry,se=Ve*.5,ge=.5,Se=new go.PathFigure(te,ge*ne,!0);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,ne,te,(ge+se)*ne,(ge+se)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*ne,(ge-se)*te,ne,0,(ge+se)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,0,0,(ge-se)*ne,(ge-se)*te,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te,ge*ne,(ge+se)*te,0,te,(ge-se)*ne));var Ae=new go.PathFigure(te,.5*ne,!1);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),Ae.add(new go.PathSegment(go.PathSegment.Move,.5*te,ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),he}),go.Shape.defineFigureGenerator("PaperTape",function(_e,te,ne){var he=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(0,.7*ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.3*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.3*ne,.5*te,.6*ne,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.5*te,.4*ne,.5*te,ne).close()),he.spot1=new go.Spot(0,.49),he.spot2=new go.Spot(1,.75),he}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(_e,te,ne){var he=new go.Geometry,se=_e?_e.parameter1:NaN,ge=_e?_e.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(ge)&&(ge=.3);var Se=new go.PathFigure(0,0,!0);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,0)),Se.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*te,.5*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(_e,te,ne){var he=new go.Geometry,se=_e?_e.parameter1:NaN,ge=_e?_e.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(ge)&&(ge=.3);var Se=new go.PathFigure(0,0,!0);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*te,0)),Se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he}),go.Shape.defineFigureGenerator("Procedure",function(_e,te,ne){var he=new go.Geometry,se=_e?_e.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var Se=new go.PathFigure((1-se)*te,0,!1);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Move,se*te,0)),Se.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),he}),go.Shape.defineFigureGenerator("Process",function(_e,te,ne){var he=new go.Geometry,se=_e?_e.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var Se=new go.PathFigure(se*te,0,!1);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("Sort",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne).close());var ge=new go.PathFigure(0,.5*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),he.spot1=new go.Spot(.25,.25),he.spot2=new go.Spot(.75,.5),he}),go.Shape.defineFigureGenerator("Start",function(_e,te,ne){var he=new go.Geometry,se=_e?_e.parameter1:NaN;isNaN(se)&&(se=.25);var ge=new go.PathFigure(se*te,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*te,.5*ne,.25*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*te,.5*ne,.25*te,.5*ne));var Se=new go.PathFigure(se*te,0,!1);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Move,(1-se)*te,0)),Se.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,ne)),he.spot1=new go.Spot(se,0),he.spot2=new go.Spot(1-se,1),he}),go.Shape.defineFigureGenerator("Terminator",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(.25*te,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*te,.5*ne,.25*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*te,.5*ne,.25*te,.5*ne)),he.spot1=new go.Spot(.23,0),he.spot2=new go.Spot(.77,1),he}),go.Shape.defineFigureGenerator("TransmittalTape",function(_e,te,ne){var he=new go.Geometry,se=_e?_e.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.75*te,(1-se)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,(1-se)*ne).close()),he.spot1=go.Spot.TopLeft,he}),go.Shape.defineFigureGenerator("AndGate",function(_e,te,ne){var he=new go.Geometry,se=Ve*.5,ge=new go.PathFigure(0,0,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,(.5+se)*te,0,te,(.5-se)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.5+se)*ne,(.5+se)*te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he.spot1=go.Spot.TopLeft,he.spot2=new go.Spot(.55,1),he}),go.Shape.defineFigureGenerator("Buffer",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.5,.75),he}),go.Shape.defineFigureGenerator("Clock",function(_e,te,ne){var he=new go.Geometry,se=Ve*.5,ge=.5,Se=new go.PathFigure(te,ge*ne,!0);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,ne,te,(ge+se)*ne,(ge+se)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*ne,(ge-se)*te,ne,0,(ge+se)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,0,0,(ge-se)*ne,(ge-se)*te,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te,ge*ne,(ge+se)*te,0,te,(ge-se)*ne));var Ae=new go.PathFigure(te,ge*ne,!1);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,te,ge*ne));var Oe=new go.PathFigure(.8*te,.75*ne,!1);return he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.25*ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.25*ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.75*ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.75*ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.25*ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,.2*te,.25*ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,.2*te,.75*ne)),he}),go.Shape.defineFigureGenerator("Ground",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.3*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.4*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,ne)),he}),go.Shape.defineFigureGenerator("Inverter",function(_e,te,ne){var he=new go.Geometry,se=Ve*.1,ge=.1,Se=.9,Ae=.5,Oe=new go.PathFigure(.8*te,.5*ne,!0);he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Line,0,ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,0,0)),Oe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ne));var Be=new go.PathFigure((Se+ge)*te,Ae*ne,!0);return he.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae+ge)*ne,(Se+ge)*te,(Ae+se)*ne,(Se+se)*te,(Ae+ge)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*te,Ae*ne,(Se-se)*te,(Ae+ge)*ne,(Se-ge)*te,(Ae+se)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae-ge)*ne,(Se-ge)*te,(Ae-se)*ne,(Se-se)*te,(Ae-ge)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*te,Ae*ne,(Se+se)*te,(Ae-ge)*ne,(Se+ge)*te,(Ae-se)*ne)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.4,.75),he}),go.Shape.defineFigureGenerator("NandGate",function(_e,te,ne){var he=new go.Geometry,se=Ve*.5,ge=Ve*.4,Se=Ve*.1,Ae=.1,Oe=.9,Be=.5,Ke=new go.PathFigure(.8*te,.5*ne,!0);he.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,ne,.8*te,(.5+ge)*ne,(.4+se)*te,ne)),Ke.add(new go.PathSegment(go.PathSegment.Line,0,ne)),Ke.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ke.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ne,(.4+se)*te,0,.8*te,(.5-ge)*ne));var rt=new go.PathFigure((Oe+Ae)*te,Be*ne,!0);return he.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Be+Ae)*ne,(Oe+Ae)*te,(Be+Se)*ne,(Oe+Se)*te,(Be+Ae)*ne)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-Ae)*te,Be*ne,(Oe-Se)*te,(Be+Ae)*ne,(Oe-Ae)*te,(Be+Se)*ne)),rt.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Be-Ae)*ne,(Oe-Ae)*te,(Be-Se)*ne,(Oe-Se)*te,(Be-Ae)*ne)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+Ae)*te,Be*ne,(Oe+Se)*te,(Be-Ae)*ne,(Oe+Ae)*te,(Be-Se)*ne)),he.spot1=new go.Spot(0,.05),he.spot2=new go.Spot(.55,.95),he}),go.Shape.defineFigureGenerator("NorGate",function(_e,te,ne){var he=new go.Geometry,se=.5,ge=Ve*se,Se=0,Ae=.5,Oe=new go.PathFigure(.8*te,.5*ne,!0);he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.7*te,(Ae+ge)*ne,(Se+ge)*te,(Ae+se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.75*ne,.25*te,.25*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ne,(Se+ge)*te,(Ae-se)*ne,.7*te,(Ae-ge)*ne)),se=.1,ge=Ve*.1,Se=.9,Ae=.5;var Be=new go.PathFigure((Se-se)*te,Ae*ne,!0);return he.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae-se)*ne,(Se-se)*te,(Ae-ge)*ne,(Se-ge)*te,(Ae-se)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*te,Ae*ne,(Se+ge)*te,(Ae-se)*ne,(Se+se)*te,(Ae-ge)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae+se)*ne,(Se+se)*te,(Ae+ge)*ne,(Se+ge)*te,(Ae+se)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*te,Ae*ne,(Se-ge)*te,(Ae+se)*ne,(Se-se)*te,(Ae+ge)*ne)),he.spot1=new go.Spot(.2,.25),he.spot2=new go.Spot(.6,.75),he}),go.Shape.defineFigureGenerator("OrGate",function(_e,te,ne){var he=new go.Geometry,se=.5,ge=Ve*se,Se=0,Ae=.5,Oe=new go.PathFigure(0,0,!0);return he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,(Se+ge+ge)*te,(Ae-se)*ne,.8*te,(Ae-ge)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.8*te,(Ae+ge)*ne,(Se+ge+ge)*te,(Ae+se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.75*ne,.25*te,.25*ne).close()),he.spot1=new go.Spot(.2,.25),he.spot2=new go.Spot(.75,.75),he}),go.Shape.defineFigureGenerator("XnorGate",function(_e,te,ne){var he=new go.Geometry,se=.5,ge=Ve*se,Se=.2,Ae=.5,Oe=new go.PathFigure(.1*te,0,!1);he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ne,.35*te,.25*ne,.35*te,.75*ne));var Be=new go.PathFigure(.8*te,.5*ne,!0);he.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ne,.7*te,(Ae+ge)*ne,(Se+ge)*te,(Ae+se)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,.45*te,.75*ne,.45*te,.25*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ne,(Se+ge)*te,(Ae-se)*ne,.7*te,(Ae-ge)*ne)),se=.1,ge=Ve*.1,Se=.9,Ae=.5;var Ke=new go.PathFigure((Se-se)*te,Ae*ne,!0);return he.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae-se)*ne,(Se-se)*te,(Ae-ge)*ne,(Se-ge)*te,(Ae-se)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*te,Ae*ne,(Se+ge)*te,(Ae-se)*ne,(Se+se)*te,(Ae-ge)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae+se)*ne,(Se+se)*te,(Ae+ge)*ne,(Se+ge)*te,(Ae+se)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*te,Ae*ne,(Se-ge)*te,(Ae+se)*ne,(Se-se)*te,(Ae+ge)*ne)),he.spot1=new go.Spot(.4,.25),he.spot2=new go.Spot(.65,.75),he}),go.Shape.defineFigureGenerator("XorGate",function(_e,te,ne){var he=new go.Geometry,se=.5,ge=Ve*se,Se=.2,Ae=.5,Oe=new go.PathFigure(.1*te,0,!1);he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ne,.35*te,.25*ne,.35*te,.75*ne));var Be=new go.PathFigure(.2*te,0,!0);return he.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,(Se+ge)*te,(Ae-se)*ne,.9*te,(Ae-ge)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ne,.9*te,(Ae+ge)*ne,(Se+ge)*te,(Ae+se)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,.45*te,.75*ne,.45*te,.25*ne).close()),he.spot1=new go.Spot(.4,.25),he.spot2=new go.Spot(.8,.75),he}),go.Shape.defineFigureGenerator("Capacitor",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),he}),go.Shape.defineFigureGenerator("Resistor",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.5*ne,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.5*ne)),he}),go.Shape.defineFigureGenerator("Inductor",function(_e,te,ne){var he=new go.Geometry,se=Ve*.1,ge=.1,Se=.1,Ae=.5,Oe=new go.PathFigure((Se-se*.5)*te,ne,!1);return he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*te,0,(Se-se)*te,ne,(Se-ge)*te,0)),Se=.3,Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,ne,(Se+ge)*te,0,(Se+se)*te,ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*te,0,(Se-se)*te,ne,(Se-ge)*te,0)),Se=.5,Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,ne,(Se+ge)*te,0,(Se+se)*te,ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*te,0,(Se-se)*te,ne,(Se-ge)*te,0)),Se=.7,Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,ne,(Se+ge)*te,0,(Se+se)*te,ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*te,0,(Se-se)*te,ne,(Se-ge)*te,0)),Se=.9,Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se*.5)*te,ne,(Se+ge)*te,0,(Se+se)*te,ne)),he}),go.Shape.defineFigureGenerator("ACvoltageSource",function(_e,te,ne){var he=new go.Geometry,se=Ve*.5,ge=.5,Se=.5,Ae=.5,Oe=new go.PathFigure((Se-ge)*te,Ae*ne,!1);return he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae-ge)*ne,(Se-ge)*te,(Ae-se)*ne,(Se-se)*te,(Ae-ge)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*te,Ae*ne,(Se+se)*te,(Ae-ge)*ne,(Se+ge)*te,(Ae-se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae+ge)*ne,(Se+ge)*te,(Ae+se)*ne,(Se+se)*te,(Ae+ge)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*te,Ae*ne,(Se-se)*te,(Ae+ge)*ne,(Se-ge)*te,(Ae+se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Move,(Se-ge+.1)*te,Ae*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge-.1)*te,Ae*ne,Se*te,(Ae-ge)*ne,Se*te,(Ae+ge)*ne)),he}),go.Shape.defineFigureGenerator("DCvoltageSource",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.75*ne,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),he}),go.Shape.defineFigureGenerator("Diode",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(te,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.5,.75),he}),go.Shape.defineFigureGenerator("Wifi",function(_e,te,ne){var he=new go.Geometry,se=te,ge=ne;te=te*.38,ne=ne*.6;var Se=Ve*.8,Ae=.8,Oe=0,Be=.5,Ke=(se-te)/2,rt=(ge-ne)/2,ot=new go.PathFigure(Oe*te+Ke,(Be+Ae)*ne+rt,!0);he.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-Ae)*te+Ke,Be*ne+rt,(Oe-Se)*te+Ke,(Be+Ae)*ne+rt,(Oe-Ae)*te+Ke,(Be+Se)*ne+rt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te+Ke,(Be-Ae)*ne+rt,(Oe-Ae)*te+Ke,(Be-Se)*ne+rt,(Oe-Se)*te+Ke,(Be-Ae)*ne+rt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-Ae+Se*.5)*te+Ke,Be*ne+rt,Oe*te+Ke,(Be-Ae)*ne+rt,(Oe-Ae+Se*.5)*te+Ke,(Be-Se)*ne+rt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te+Ke,(Be+Ae)*ne+rt,(Oe-Ae+Se*.5)*te+Ke,(Be+Se)*ne+rt,Oe*te+Ke,(Be+Ae)*ne+rt).close()),Se=Ve*.4,Ae=.4,Oe=.2,Be=.5;var ht=new go.PathFigure(Oe*te+Ke,(Be+Ae)*ne+rt,!0);he.add(ht),ht.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-Ae)*te+Ke,Be*ne+rt,(Oe-Se)*te+Ke,(Be+Ae)*ne+rt,(Oe-Ae)*te+Ke,(Be+Se)*ne+rt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te+Ke,(Be-Ae)*ne+rt,(Oe-Ae)*te+Ke,(Be-Se)*ne+rt,(Oe-Se)*te+Ke,(Be-Ae)*ne+rt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-Ae+Se*.5)*te+Ke,Be*ne+rt,Oe*te+Ke,(Be-Ae)*ne+rt,(Oe-Ae+Se*.5)*te+Ke,(Be-Se)*ne+rt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te+Ke,(Be+Ae)*ne+rt,(Oe-Ae+Se*.5)*te+Ke,(Be+Se)*ne+rt,Oe*te+Ke,(Be+Ae)*ne+rt).close()),Se=Ve*.2,Ae=.2,Oe=.5,Be=.5;var bt=new go.PathFigure((Oe-Ae)*te+Ke,Be*ne+rt,!0);he.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te+Ke,(Be-Ae)*ne+rt,(Oe-Ae)*te+Ke,(Be-Se)*ne+rt,(Oe-Se)*te+Ke,(Be-Ae)*ne+rt)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+Ae)*te+Ke,Be*ne+rt,(Oe+Se)*te+Ke,(Be-Ae)*ne+rt,(Oe+Ae)*te+Ke,(Be-Se)*ne+rt)),bt.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te+Ke,(Be+Ae)*ne+rt,(Oe+Ae)*te+Ke,(Be+Se)*ne+rt,(Oe+Se)*te+Ke,(Be+Ae)*ne+rt)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-Ae)*te+Ke,Be*ne+rt,(Oe-Se)*te+Ke,(Be+Ae)*ne+rt,(Oe-Ae)*te+Ke,(Be+Se)*ne+rt)),Se=Ve*.4,Ae=.4,Oe=.8,Be=.5;var at=new go.PathFigure(Oe*te+Ke,(Be-Ae)*ne+rt,!0);he.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+Ae)*te+Ke,Be*ne+rt,(Oe+Se)*te+Ke,(Be-Ae)*ne+rt,(Oe+Ae)*te+Ke,(Be-Se)*ne+rt)),at.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te+Ke,(Be+Ae)*ne+rt,(Oe+Ae)*te+Ke,(Be+Se)*ne+rt,(Oe+Se)*te+Ke,(Be+Ae)*ne+rt)),at.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+Ae-Se*.5)*te+Ke,Be*ne+rt,Oe*te+Ke,(Be+Ae)*ne+rt,(Oe+Ae-Se*.5)*te+Ke,(Be+Se)*ne+rt)),at.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te+Ke,(Be-Ae)*ne+rt,(Oe+Ae-Se*.5)*te+Ke,(Be-Se)*ne+rt,Oe*te+Ke,(Be-Ae)*ne+rt).close()),Se=Ve*.8,Ae=.8,Oe=1,Be=.5;var At=new go.PathFigure(Oe*te+Ke,(Be-Ae)*ne+rt,!0);return he.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+Ae)*te+Ke,Be*ne+rt,(Oe+Se)*te+Ke,(Be-Ae)*ne+rt,(Oe+Ae)*te+Ke,(Be-Se)*ne+rt)),At.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te+Ke,(Be+Ae)*ne+rt,(Oe+Ae)*te+Ke,(Be+Se)*ne+rt,(Oe+Se)*te+Ke,(Be+Ae)*ne+rt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+Ae-Se*.5)*te+Ke,Be*ne+rt,Oe*te+Ke,(Be+Ae)*ne+rt,(Oe+Ae-Se*.5)*te+Ke,(Be+Se)*ne+rt)),At.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te+Ke,(Be-Ae)*ne+rt,(Oe+Ae-Se*.5)*te+Ke,(Be-Se)*ne+rt,Oe*te+Ke,(Be-Ae)*ne+rt).close()),he}),go.Shape.defineFigureGenerator("Email",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(0,0,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Move,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.45*te,.54*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.55*te,.54*ne)),he}),go.Shape.defineFigureGenerator("Ethernet",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(.35*te,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,0).close());var ge=new go.PathFigure(.1*te,ne,!0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*te,ne).close());var Se=new go.PathFigure(.6*te,ne,!0,!0);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.6*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.6*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.6*te,ne).close());var Ae=new go.PathFigure(0,.5*ne,!1);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),Ae.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ne)),Ae.add(new go.PathSegment(go.PathSegment.Move,.75*te,.5*ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,.75*te,.6*ne)),Ae.add(new go.PathSegment(go.PathSegment.Move,.25*te,.5*ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,.25*te,.6*ne)),he}),go.Shape.defineFigureGenerator("Power",function(_e,te,ne){var he=new go.Geometry,se=Ve*.4,ge=.4,Se=.5,Ae=.5,Oe=le(),Be=le(),Ke=le(),rt=le();Le(Se,Ae-ge,Se+se,Ae-ge,Se+ge,Ae-se,Se+ge,Ae,.5,Oe,Oe,Be,Ke,rt);var ot=de(Be.x,Be.y),ht=new go.PathFigure(Be.x*te,Be.y*ne,!0);he.add(ht),ht.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*te,Ae*ne,Ke.x*te,Ke.y*ne,rt.x*te,rt.y*ne)),ht.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae+ge)*ne,(Se+ge)*te,(Ae+se)*ne,(Se+se)*te,(Ae+ge)*ne)),ht.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*te,Ae*ne,(Se-se)*te,(Ae+ge)*ne,(Se-ge)*te,(Ae+se)*ne)),Le(Se-ge,Ae,Se-ge,Ae-se,Se-se,Ae-ge,Se,Ae-ge,.5,Ke,rt,Be,Oe,Oe),ht.add(new go.PathSegment(go.PathSegment.Bezier,Be.x*te,Be.y*ne,Ke.x*te,Ke.y*ne,rt.x*te,rt.y*ne)),se=Ve*.3,ge=.3,Le(Se-ge,Ae,Se-ge,Ae-se,Se-se,Ae-ge,Se,Ae-ge,.5,Ke,rt,Be,Oe,Oe),ht.add(new go.PathSegment(go.PathSegment.Line,Be.x*te,Be.y*ne)),ht.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*te,Ae*ne,rt.x*te,rt.y*ne,Ke.x*te,Ke.y*ne)),ht.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae+ge)*ne,(Se-ge)*te,(Ae+se)*ne,(Se-se)*te,(Ae+ge)*ne)),ht.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*te,Ae*ne,(Se+se)*te,(Ae+ge)*ne,(Se+ge)*te,(Ae+se)*ne)),Le(Se,Ae-ge,Se+se,Ae-ge,Se+ge,Ae-se,Se+ge,Ae,.5,Oe,Oe,Be,Ke,rt),ht.add(new go.PathSegment(go.PathSegment.Bezier,Be.x*te,Be.y*ne,rt.x*te,rt.y*ne,Ke.x*te,Ke.y*ne).close());var ht=new go.PathFigure(.45*te,0,!0);return he.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ne)),ht.add(new go.PathSegment(go.PathSegment.Line,.55*te,.5*ne)),ht.add(new go.PathSegment(go.PathSegment.Line,.55*te,0).close()),Ie(Oe),Ie(Be),Ie(Ke),Ie(rt),Ie(ot),he.spot1=new go.Spot(.25,.45),he.spot2=new go.Spot(.75,.8),he}),go.Shape.defineFigureGenerator("Fallout",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne/2,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,180,360,te/2,ne/2,te/2,ne/2));function ge(Se,Ae,Oe){Se.add(new go.PathSegment(go.PathSegment.Move,(.3+Ae)*te,(.8+Oe)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,(.5+Ae)*te,(.5+Oe)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,(.1+Ae)*te,(.5+Oe)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,(.3+Ae)*te,(.8+Oe)*ne).close())}return ge(se,0,0),ge(se,.4,0),ge(se,.2,-.3),he}),go.Shape.defineFigureGenerator("IrritationHazard",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(.2*te,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.3*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne).close()),he.spot1=new go.Spot(.3,.3),he.spot2=new go.Spot(.7,.7),he}),go.Shape.defineFigureGenerator("ElectricalHazard",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(.37*te,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.11*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.77*te,.04*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,.49*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.37*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.63*te,.86*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.77*te,.91*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.34*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.34*te,.78*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.44*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.56*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.68*ne).close()),he}),go.Shape.defineFigureGenerator("FireHazard",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(.1*te,ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.29*te,0,-.25*te,.63*ne,.45*te,.44*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.51*te,.42*ne,.48*te,.17*ne,.54*te,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.59*te,.18*ne,.59*te,.29*ne,.58*te,.28*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,.6*ne,.8*te,.34*ne,.88*te,.43*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.88*te,.31*ne,.87*te,.48*ne,.88*te,.43*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,ne,1.17*te,.76*ne,.82*te,.8*ne).close()),he.spot1=new go.Spot(.07,.445),he.spot2=new go.Spot(.884,.958),he}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(_e,te,ne){var he=new go.Geometry,se=.5,ge=0,Se=0,Ae=se*Ve,Oe=.4*Math.SQRT2/2+.5,Be=.5-.5*Math.SQRT2/2,Ke=1,rt=.5,ot=.5,ht=0,bt=new go.PathFigure(Oe*te,(1-Be)*ne,!1);return he.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,Ke*te,rt*ne,Ke*te,.7*ne,Ke*te,rt*ne)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(ot+ge)*te,(ht+ge)*ne,(.5+se+ge)*te,(.5-Ae+ge)*ne,(.5+Ae+ge)*te,(.5-se+ge)*ne)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*te,(.5+Se)*ne,(.5-Ae+ge)*te,(.5-se+Se)*ne,(.5-se+ge)*te,(.5-Ae+Se)*ne)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(.35+ge)*te,.9*ne,(.5-se+ge)*te,(.5+Ae+Se)*ne,(.5-Ae+ge)*te,.9*ne)),bt.add(new go.PathSegment(go.PathSegment.Move,(.25+ge)*te,.8*ne)),bt.add(new go.PathSegment(go.PathSegment.Line,(.35+ge)*te,.9*ne)),bt.add(new go.PathSegment(go.PathSegment.Line,(.2+ge)*te,.95*ne)),he}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),he}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Move,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),he}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);he.add(se);var ge=new go.PathFigure(te,ne,!1);he.add(ge);var Se=new go.PathFigure(0,.5*ne,!1);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.5*ne,.2*te,.35*ne,.3*te,.35*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,.7*te,.65*ne,.8*te,.65*ne)),he}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne).close()),he}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.2*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne).close());var se=new go.PathFigure(0,.2*ne,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),he}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(.7*te,ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,0,.6*te,.5*ne,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,ne,.4*te,.5*ne,te,.5*ne).close());var ge=new go.PathFigure(.45*te,.73*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*te,.73*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.38*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.63*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.31*te,.27*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.56*te,.27*ne)),he}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);he.add(se);var ge=new go.PathFigure(.335*te,(1-.555)*ne,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.335*te,(1-.405)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.405)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.555)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te,.68*ne,(1-.12)*te,.46*ne,(1-.02)*te,.54*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.68*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.335*te,(1-.555)*ne,.02*te,.54*ne,.12*te,.46*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.365*te,(1-.595)*ne));var Se=.5-.285,Ae=.5,Oe=Se,Be=Math.PI/4,Ke=4*(1-Math.cos(Be))/(3*Math.sin(Be)),rt=Ke*.5,ot=Se,ht=Se,bt=Ke*ot,at=Ke*ht;ge.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-ot)*te,Oe*ne,(Ae-(bt+ot)/2)*te,(Oe+(ht+at)/2)*ne,(Ae-ot)*te,(Oe+at)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(Oe-ht)*ne,(Ae-ot)*te,(Oe-at)*ne,(Ae-bt)*te,(Oe-ht)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+ot)*te,Oe*ne,(Ae+bt)*te,(Oe-ht)*ne,(Ae+ot)*te,(Oe-at)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*te,(1-.595)*ne,(Ae+ot)*te,(Oe+at)*ne,(Ae+(bt+ot)/2)*te,(Oe+(ht+at)/2)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*te,(1-.595)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.555)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.405)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.335*te,(1-.405)*ne));var At=new go.PathFigure(.2*te,ne,!1);he.add(At),At.add(new go.PathSegment(go.PathSegment.Line,.2*te,.8*ne));var It=new go.PathFigure(.8*te,ne,!1);return he.add(It),It.add(new go.PathSegment(go.PathSegment.Line,.8*te,.8*ne)),he}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(.1*te,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,ne).close());var ge=new go.PathFigure(.2*te,.2*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*te,.8*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.8*ne)),he}),go.Shape.defineFigureGenerator("BpmnEventError",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,.5*ne).close()),he}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);he.add(se);var ge=new go.PathFigure(te,ne,!1);he.add(ge);var Se=new go.PathFigure(.1*te,ne,!0);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),Se.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne).close()),he}),go.Shape.defineFigureGenerator("Caution",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(.05*te,ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,.8*ne,0,ne,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.1*ne,.5*te,0,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.95*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,ne,te,ne,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.05*te,ne));var ge=.05;return se.add(new go.PathSegment(go.PathSegment.Move,(.5-ge)*te,.875*ne)),se.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*te,.875*ne,ge*te,ge*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.325*ne,.575*te,.725*ne,.625*te,.375*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.75*ne,.375*te,.375*ne,.425*te,.725*ne)),he}),go.Shape.defineFigureGenerator("Recycle",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(.45*te,.95*ne,!1);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.185*te,.85*ne,.17*te,.95*ne,.15*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.235*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.625*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.275*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.05*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.05*te,.575*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.1875*te,.95*ne,0,.675*ne,0,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.45*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.775*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.22*te,.775*ne));var ge=new go.PathFigure(.475*te,.2*ne,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.4*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.225*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.275*te,.175*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.325*te,.05*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.05*ne,.35*te,0,.375*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.575*te,.375*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.525*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.75*te,.475*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.85*te,.315*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.32*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.65*te,.05*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.575*te,0,.65*te,.05*ne,.625*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.38*te,.0105*ne));var Se=new go.PathFigure(.675*te,.575*ne,!1);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.875*te,.525*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,te,.775*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.85*te,.95*ne,te,.8*ne,te,.85*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.95*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.65*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*te,.85*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.725*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.775*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.775*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,te,.775*ne)),Se.add(new go.PathSegment(go.PathSegment.Move,.675*te,.575*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.775*te,.775*ne)),he}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(_e,te,ne){var he=new go.Geometry,se=.5,ge=Ve*.5,Se=new go.PathFigure(te,se*ne,!0);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,se*te,ne,te,(se+ge)*ne,(se+ge)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,se*ne,(se-ge)*te,ne,0,(se+ge)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,se*te,0,0,(se-ge)*ne,(se-ge)*te,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te,se*ne,(se+ge)*te,0,te,(se-ge)*ne));var Ae=new go.PathFigure(se*te,0,!1);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,se*te,.15*ne)),Ae.add(new go.PathSegment(go.PathSegment.Move,se*te,ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,se*te,.85*ne)),Ae.add(new go.PathSegment(go.PathSegment.Move,0,se*ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,.15*te,se*ne)),Ae.add(new go.PathSegment(go.PathSegment.Move,te,se*ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,.85*te,se*ne)),Ae.add(new go.PathSegment(go.PathSegment.Move,se*te,se*ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,.58*te,.1*ne)),Ae.add(new go.PathSegment(go.PathSegment.Move,se*te,se*ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,.78*te,.54*ne)),he}),go.Shape.defineFigureGenerator("Package",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.15*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var ge=new go.PathFigure(0,.15*ne,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.65*te,.15*ne).close()),he.spot1=new go.Spot(0,.1),he.spot2=new go.Spot(1,1),he}),go.Shape.defineFigureGenerator("Class",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(0,.2*ne,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne).close());var Se=new go.PathFigure(0,.5*ne,!1);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne).close()),he}),go.Shape.defineFigureGenerator("Component",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(te,ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne).close());var ge=new go.PathFigure(0,.2*ne,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.45*te,.2*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.45*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne).close());var Se=new go.PathFigure(0,.6*ne,!0);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.6*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.8*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne).close()),he}),go.Shape.defineFigureGenerator("Boat Shipment",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(.15*te,.6*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ne));var ge=new go.PathFigure(.15*te,.6*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ne)),he}),go.Shape.defineFigureGenerator("Customer/Supplier",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(te,ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne).close()),he}),go.Shape.defineFigureGenerator("Workcell",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he}),go.Shape.defineFigureGenerator("Supermarket",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.66*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.66*ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,.66*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),he}),go.Shape.defineFigureGenerator("TruckShipment",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(te,.8*ne,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*te,.8*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne).close());var Se=.1,Ae=Ve*.1,Oe=.2,Be=.9,Ke=new go.PathFigure((Oe-Se)*te,Be*ne,!0);he.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Be-Se)*ne,(Oe-Se)*te,(Be-Ae)*ne,(Oe-Ae)*te,(Be-Se)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+Se)*te,Be*ne,(Oe+Ae)*te,(Be-Se)*ne,(Oe+Se)*te,(Be-Ae)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Be+Se)*ne,(Oe+Se)*te,(Be+Ae)*ne,(Oe+Ae)*te,(Be+Se)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-Se)*te,Be*ne,(Oe-Ae)*te,(Be+Se)*ne,(Oe-Se)*te,(Be+Ae)*ne).close()),Se=.1,Ae=Ve*.1,Oe=.8,Be=.9;var rt=new go.PathFigure((Oe-Se)*te,Be*ne,!0);return he.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Be-Se)*ne,(Oe-Se)*te,(Be-Ae)*ne,(Oe-Ae)*te,(Be-Se)*ne)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+Se)*te,Be*ne,(Oe+Ae)*te,(Be-Se)*ne,(Oe+Se)*te,(Be-Ae)*ne)),rt.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Be+Se)*ne,(Oe+Se)*te,(Be+Ae)*ne,(Oe+Ae)*te,(Be+Se)*ne)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-Se)*te,Be*ne,(Oe-Ae)*te,(Be+Se)*ne,(Oe-Se)*te,(Be+Ae)*ne).close()),he}),go.Shape.defineFigureGenerator("KanbanPost",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(.2*te,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),he}),go.Shape.defineFigureGenerator("Forklift",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0));var ge=new go.PathFigure(0,.5*ne,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.8*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne));var Se=new go.PathFigure(.5*te,.8*ne,!0);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.1*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*te,.1*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*te,.8*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.8*ne));var Ae=new go.PathFigure(.5*te,.7*ne,!1);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne));var Oe=.1,Be=Ve*.1,Ke=.1,rt=.9,ot=new go.PathFigure((Ke-Oe)*te,rt*ne,!0);he.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,Ke*te,(rt-Oe)*ne,(Ke-Oe)*te,(rt-Be)*ne,(Ke-Be)*te,(rt-Oe)*ne)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Ke+Oe)*te,rt*ne,(Ke+Be)*te,(rt-Oe)*ne,(Ke+Oe)*te,(rt-Be)*ne)),ot.add(new go.PathSegment(go.PathSegment.Bezier,Ke*te,(rt+Oe)*ne,(Ke+Oe)*te,(rt+Be)*ne,(Ke+Be)*te,(rt+Oe)*ne)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Ke-Oe)*te,rt*ne,(Ke-Be)*te,(rt+Oe)*ne,(Ke-Oe)*te,(rt+Be)*ne)),Oe=.1,Be=Ve*.1,Ke=.4,rt=.9;var ht=new go.PathFigure((Ke-Oe)*te,rt*ne,!0);return he.add(ht),ht.add(new go.PathSegment(go.PathSegment.Bezier,Ke*te,(rt-Oe)*ne,(Ke-Oe)*te,(rt-Be)*ne,(Ke-Be)*te,(rt-Oe)*ne)),ht.add(new go.PathSegment(go.PathSegment.Bezier,(Ke+Oe)*te,rt*ne,(Ke+Be)*te,(rt-Oe)*ne,(Ke+Oe)*te,(rt-Be)*ne)),ht.add(new go.PathSegment(go.PathSegment.Bezier,Ke*te,(rt+Oe)*ne,(Ke+Oe)*te,(rt+Be)*ne,(Ke+Be)*te,(rt+Oe)*ne)),ht.add(new go.PathSegment(go.PathSegment.Bezier,(Ke-Oe)*te,rt*ne,(Ke-Be)*te,(rt+Oe)*ne,(Ke-Oe)*te,(rt+Be)*ne)),he}),go.Shape.defineFigureGenerator("RailShipment",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(.1*te,.4*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.4*ne).close());var ge=new go.PathFigure(.45*te,.7*ne,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ne));var Se=new go.PathFigure(.55*te,.4*ne,!0);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.9*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*te,.9*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*te,.4*ne).close());var Ke=.05,rt=Ve*.05,ot=.175,ht=.95,Ae=new go.PathFigure((ot-Ke)*te,ht*ne,!0);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ot*te,(ht-Ke)*ne,(ot-Ke)*te,(ht-rt)*ne,(ot-rt)*te,(ht-Ke)*ne)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ot+Ke)*te,ht*ne,(ot+rt)*te,(ht-Ke)*ne,(ot+Ke)*te,(ht-rt)*ne)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ot*te,(ht+Ke)*ne,(ot+Ke)*te,(ht+rt)*ne,(ot+rt)*te,(ht+Ke)*ne)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ot-Ke)*te,ht*ne,(ot-rt)*te,(ht+Ke)*ne,(ot-Ke)*te,(ht+rt)*ne));var Ke=.05,rt=Ve*.05,ot=.375,ht=.95,Oe=new go.PathFigure((ot-Ke)*te,ht*ne,!0);he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,ot*te,(ht-Ke)*ne,(ot-Ke)*te,(ht-rt)*ne,(ot-rt)*te,(ht-Ke)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ot+Ke)*te,ht*ne,(ot+rt)*te,(ht-Ke)*ne,(ot+Ke)*te,(ht-rt)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,ot*te,(ht+Ke)*ne,(ot+Ke)*te,(ht+rt)*ne,(ot+rt)*te,(ht+Ke)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ot-Ke)*te,ht*ne,(ot-rt)*te,(ht+Ke)*ne,(ot-Ke)*te,(ht+rt)*ne));var Ke=.05,rt=Ve*.05,ot=.625,ht=.95,Be=new go.PathFigure((ot-Ke)*te,ht*ne,!0);he.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,ot*te,(ht-Ke)*ne,(ot-Ke)*te,(ht-rt)*ne,(ot-rt)*te,(ht-Ke)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ot+Ke)*te,ht*ne,(ot+rt)*te,(ht-Ke)*ne,(ot+Ke)*te,(ht-rt)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,ot*te,(ht+Ke)*ne,(ot+Ke)*te,(ht+rt)*ne,(ot+rt)*te,(ht+Ke)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ot-Ke)*te,ht*ne,(ot-rt)*te,(ht+Ke)*ne,(ot-Ke)*te,(ht+rt)*ne));var Ke=.05,rt=Ve*.05,ot=.825,ht=.95,bt=new go.PathFigure((ot-Ke)*te,ht*ne,!0);he.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,ot*te,(ht-Ke)*ne,(ot-Ke)*te,(ht-rt)*ne,(ot-rt)*te,(ht-Ke)*ne)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(ot+Ke)*te,ht*ne,(ot+rt)*te,(ht-Ke)*ne,(ot+Ke)*te,(ht-rt)*ne)),bt.add(new go.PathSegment(go.PathSegment.Bezier,ot*te,(ht+Ke)*ne,(ot+Ke)*te,(ht+rt)*ne,(ot+rt)*te,(ht+Ke)*ne)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(ot-Ke)*te,ht*ne,(ot-rt)*te,(ht+Ke)*ne,(ot-Ke)*te,(ht+rt)*ne).close());var at=new go.PathFigure(0,ne,!1);return he.add(at),at.add(new go.PathSegment(go.PathSegment.Line,te,ne).close()),he}),go.Shape.defineFigureGenerator("Warehouse",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(0,.2*ne,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne).close());var Se=new go.PathFigure(.15*te,ne,!0);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.15*te,.5*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.5*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.15*te,ne).close());var Ae=.05,Oe=Ve*.05,Be=.35,Ke=.775,rt=new go.PathFigure((Be-Ae)*te,Ke*ne,!0);return he.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,Be*te,(Ke-Ae)*ne,(Be-Ae)*te,(Ke-Oe)*ne,(Be-Oe)*te,(Ke-Ae)*ne)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Be+Ae)*te,Ke*ne,(Be+Oe)*te,(Ke-Ae)*ne,(Be+Ae)*te,(Ke-Oe)*ne)),rt.add(new go.PathSegment(go.PathSegment.Bezier,Be*te,(Ke+Ae)*ne,(Be+Ae)*te,(Ke+Oe)*ne,(Be+Oe)*te,(Ke+Ae)*ne)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Be-Ae)*te,Ke*ne,(Be-Oe)*te,(Ke+Ae)*ne,(Be-Ae)*te,(Ke+Oe)*ne).close()),he}),go.Shape.defineFigureGenerator("ControlCenter",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.1*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne).close()),he}),go.Shape.defineFigureGenerator("Bluetooth",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.75*ne,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),he}),go.Shape.defineFigureGenerator("Bookmark",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ne)),he}),go.Shape.defineFigureGenerator("Bookmark",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ne)),he}),go.Shape.defineFigureGenerator("Globe",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,.75*te,0,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,.75*ne,.75*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,.25*te,ne,0,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,.25*ne,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,.15*te,.25*ne,.15*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.85*te,.75*ne,.85*te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.1675*te,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8325*te,.15*ne,.35*te,.3*ne,.65*te,.3*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.1675*te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8325*te,.85*ne,.35*te,.7*ne,.65*te,.7*ne)),he}),go.Shape.defineFigureGenerator("Wave",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.25*ne,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.25*ne,.1*te,0,.2*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,.25*ne,.425*te,.5*ne,.575*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.25*ne,.8*te,0,.9*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Move,0,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.75*ne,.1*te,.5*ne,.2*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,.75*ne,.425*te,ne,.575*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.75*ne,.8*te,.5*ne,.9*te,.5*ne)),he}),go.Shape.defineFigureGenerator("Operator",function(_e,te,ne){var he=new go.Geometry,se=.3,ge=Ve*.3,Se=.5,Ae=.7,Oe=new go.PathFigure((Se-se)*te,Ae*ne,!0);he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae-se)*ne,(Se-se)*te,(Ae-ge)*ne,(Se-ge)*te,(Ae-se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*te,Ae*ne,(Se+ge)*te,(Ae-se)*ne,(Se+se)*te,(Ae-ge)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae+se)*ne,(Se+se)*te,(Ae+ge)*ne,(Se+ge)*te,(Ae+se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*te,Ae*ne,(Se-ge)*te,(Ae+se)*ne,(Se-se)*te,(Ae+ge)*ne));var Be=new go.PathFigure(0,.7*ne,!1);return he.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,te,.7*ne,0,0,te,0)),he}),go.Shape.defineFigureGenerator("TripleFanBlades",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ne,.65*te,.3*ne,.65*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.35*te,.5*ne,.35*te,.3*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.3*te,.6*ne,.1*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ne,.2*te,ne,.35*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,ne,.7*te,.6*ne,.9*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ne,.8*te,ne,.65*te,.95*ne)),he}),go.Shape.defineFigureGenerator("CentrifugalPump",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(te,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,0,.075*ne,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,ne,0,ne,.4*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.4*ne,.8*te,ne,.85*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),he}),go.Shape.defineFigureGenerator("Battery",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.4*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.1*ne));var ge=new go.PathFigure(0,.6*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Move,0,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.4*ne)),he}),go.Shape.defineFigureGenerator("Delete",function(_e,te,ne){var he=new go.Geometry,se=.5,ge=Ve*.5,Se=.5,Ae=.5,Oe=new go.PathFigure((Se-se)*te,Ae*ne,!0);he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae-se)*ne,(Se-se)*te,(Ae-ge)*ne,(Se-ge)*te,(Ae-se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*te,Ae*ne,(Se+ge)*te,(Ae-se)*ne,(Se+se)*te,(Ae-ge)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae+se)*ne,(Se+se)*te,(Ae+ge)*ne,(Se+ge)*te,(Ae+se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*te,Ae*ne,(Se-ge)*te,(Ae+se)*ne,(Se-se)*te,(Ae+ge)*ne));var Be=new go.PathFigure(.15*te,.5*ne,!1);return he.add(Be),Be.add(new go.PathSegment(go.PathSegment.Line,.85*te,.5*ne)),he}),go.Shape.defineFigureGenerator("Flag",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.1*ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,0,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.1*ne,.15*te,0,.35*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ne,.65*te,.2*ne,.85*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.5*ne,.85*te,.6*ne,.65*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,.35*te,.4*ne,.15*te,.4*ne).close()),he}),go.Shape.defineFigureGenerator("Help",function(_e,te,ne){var he=new go.Geometry,se=.5,ge=Ve*.5,Se=.5,Ae=.5,Oe=new go.PathFigure((Se-se)*te,Ae*ne,!1);he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae-se)*ne,(Se-se)*te,(Ae-ge)*ne,(Se-ge)*te,(Ae-se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*te,Ae*ne,(Se+ge)*te,(Ae-se)*ne,(Se+se)*te,(Ae-ge)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae+se)*ne,(Se+se)*te,(Ae+ge)*ne,(Se+ge)*te,(Ae+se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*te,Ae*ne,(Se-ge)*te,(Ae+se)*ne,(Se-se)*te,(Ae+ge)*ne).close()),se=.05,ge=Ve*.05,Se=.5,Ae=.8;var Be=new go.PathFigure((Se-se)*te,Ae*ne,!1);return he.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae-se)*ne,(Se-se)*te,(Ae-ge)*ne,(Se-ge)*te,(Ae-se)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*te,Ae*ne,(Se+ge)*te,(Ae-se)*ne,(Se+se)*te,(Ae-ge)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae+se)*ne,(Se+se)*te,(Ae+ge)*ne,(Se+ge)*te,(Ae+se)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*te,Ae*ne,(Se-ge)*te,(Ae+se)*ne,(Se-se)*te,(Ae+ge)*ne).close()),Be.add(new go.PathSegment(go.PathSegment.Move,.5*te,.7*ne)),Be.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,.75*te,.475*ne,.75*te,.225*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.35*ne,.4*te,.2*ne,.3*te,.25*ne)),he}),go.Shape.defineFigureGenerator("Location",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,ne,!0).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.975*te,.025*ne,.5*te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*te,.5*ne,.5*te,0,.025*te,.025*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.5*te,.2*ne)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*te,.3*ne,.1*te,.1*ne).close()))}),go.Shape.defineFigureGenerator("Lock",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne));var ge=new go.PathFigure(.2*te,.5*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Move,.2*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.3*ne,.25*te,0,.75*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.3*ne)),he}),go.Shape.defineFigureGenerator("Unlocked",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne));var ge=new go.PathFigure(.2*te,.5*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Move,.2*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.3*ne,.25*te,0,.75*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.35*ne)),he}),go.Shape.defineFigureGenerator("Gear",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(.9375*te,.56246875*ne,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*te,.4375*ne)).add(new go.PathSegment(go.PathSegment.Line,.80621875*te,.4375*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.763*te,.3316875*ne,.79840625*te,.39915625*ne,.7834375*te,.3635*ne)).add(new go.PathSegment(go.PathSegment.Line,.8566875*te,.23796875*ne)).add(new go.PathSegment(go.PathSegment.Line,.76825*te,.14959375*ne)).add(new go.PathSegment(go.PathSegment.Line,.67596875*te,.24184375*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*te,.19378125*ne,.64228125*te,.2188125*ne,.603875*te,.2021875*ne)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.0625*ne)).add(new go.PathSegment(go.PathSegment.Line,.4375*te,.0625*ne)).add(new go.PathSegment(go.PathSegment.Line,.4375*te,.19378125*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*te,.239375*ne,.39759375*te,.20190625*ne,.36053125*te,.2176875*ne)).add(new go.PathSegment(go.PathSegment.Line,.2379375*te,.14959375*ne)).add(new go.PathSegment(go.PathSegment.Line,.14953125*te,.2379375*ne)).add(new go.PathSegment(go.PathSegment.Line,.23934375*te,.3278125*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*te,.4375*ne,.21765625*te,.36059375*ne,.201875*te,.397625*ne)).add(new go.PathSegment(go.PathSegment.Line,.0625*te,.4375*ne)).add(new go.PathSegment(go.PathSegment.Line,.0625*te,.5625*ne)).add(new go.PathSegment(go.PathSegment.Line,.1938125*te,.5625*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*te,.67596875*ne,.20221875*te,.603875*ne,.21884375*te,.64228125*ne)).add(new go.PathSegment(go.PathSegment.Line,.1495625*te,.76825*ne)).add(new go.PathSegment(go.PathSegment.Line,.238*te,.8566875*ne)).add(new go.PathSegment(go.PathSegment.Line,.3316875*te,.76296875*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*te,.80621875*ne,.36353125*te,.78340625*ne,.3991875*te,.79840625*ne)).add(new go.PathSegment(go.PathSegment.Line,.43753125*te,.9375*ne)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.9375*ne)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.80621875*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*te,.760625*ne,.602375*te,.79809375*ne,.63946875*te,.78234375*ne)).add(new go.PathSegment(go.PathSegment.Line,.76828125*te,.8566875*ne)).add(new go.PathSegment(go.PathSegment.Line,.85671875*te,.76825*ne)).add(new go.PathSegment(go.PathSegment.Line,.76065625*te,.67221875*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*te,.56246875*ne,.78234375*te,.63940625*ne,.798125*te,.602375*ne)).add(new go.PathSegment(go.PathSegment.Line,.9375*te,.56246875*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.5*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*te,.5*ne,.1*te,.1*ne).close()))}),go.Shape.defineFigureGenerator("Hand",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,.3*ne,0,.375*ne,.05*te,.325*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.45*te,.075*ne,.3*te,.225*ne,.4*te,.175*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.525*te,.075*ne,.46*te,.05*ne,.525*te,.05*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.4*ne,.525*te,.275*ne,.475*te,.325*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.55*ne,te,.4*ne,te,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.425*te,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.6*te,.7*ne,.675*te,.55*ne,.675*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.575*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.575*te,.85*ne,.65*te,.7*ne,.65*te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.525*te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.535*te,ne,.61*te,.85*ne,.61*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,.435*te,ne,0,ne).close()),he}),go.Shape.defineFigureGenerator("Map",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.2*ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),se.add(new go.PathSegment(go.PathSegment.Move,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.8*ne)),he}),go.Shape.defineFigureGenerator("Eject",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne*.7)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.7).close());var ge=new go.PathFigure(0,ne*.6,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,0).close()),he}),go.Shape.defineFigureGenerator("Pencil",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ne).close()))}),go.Shape.defineFigureGenerator("Building",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*1,ne*1,!1);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.85)),se.add(new go.PathSegment(go.PathSegment.Line,.046*te,ne*.85)),se.add(new go.PathSegment(go.PathSegment.Line,.046*te,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.3)),se.add(new go.PathSegment(go.PathSegment.Line,.046*te,ne*.3)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ne*.3)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne*.3)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ne*.85)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne*.85).close());var ge=new go.PathFigure(.126*te,.85*ne,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.126*te,.45*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.322*te,.45*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.322*te,.85*ne).close());var Se=new go.PathFigure(.402*te,.85*ne,!1);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.402*te,.45*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.598*te,.45*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.598*te,.85*ne).close());var Ae=new go.PathFigure(.678*te,.85*ne,!1);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,.678*te,.45*ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,.874*te,.45*ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,.874*te,.85*ne).close());var Oe=new go.PathFigure(.5*te,.1*ne,!1);return he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*te,.3*ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*te,.3*ne).close()),he}),go.Shape.defineFigureGenerator("Staircase",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne*1,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*.8)),se.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.8)),se.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.6)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.6)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.4)),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*.4)),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*.2)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.2)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.15)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.15)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.95).close()),he}),go.Shape.defineFigureGenerator("5Bars",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne*1,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.184,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.184,ne*(1-.184)).close());var ge=new go.PathFigure(te*.204,ne,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*.204,ne*(1-.184))),ge.add(new go.PathSegment(go.PathSegment.Line,te*.388,ne*(1-.184*2))),ge.add(new go.PathSegment(go.PathSegment.Line,te*.388,ne*1).close());var Se=new go.PathFigure(te*.408,ne,!0);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te*.408,ne*(1-.184*2))),Se.add(new go.PathSegment(go.PathSegment.Line,te*.592,ne*(1-.184*3))),Se.add(new go.PathSegment(go.PathSegment.Line,te*.592,ne*1).close());var Ae=new go.PathFigure(te*.612,ne,!0);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.612,ne*(1-.184*3))),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.796,ne*(1-.184*4))),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.796,ne*1).close());var Oe=new go.PathFigure(te*.816,ne,!0);return he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Line,te*.816,ne*(1-.184*4))),Oe.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-.184*5))),Oe.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1).close()),he}),go.Shape.defineFigureGenerator("PC",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,0).close());var ge=new go.PathFigure(te*.055,.07*ne,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.07)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.1)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.055,ne*.1).close());var Se=new go.PathFigure(te*.055,.13*ne,!0);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.13)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.16)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.055,ne*.16).close());var Ae=new go.PathFigure(te*.055,.18*ne,!0);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.18)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.21)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.055,ne*.21).close());var Oe=new go.PathFigure(te*1,0,!0);return he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Line,te*.4,0)),Oe.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.65)),Oe.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.65).close()),he}),go.Shape.defineFigureGenerator("Plane",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(.55*te,ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.475*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.35*te,.525*ne,0,.4*ne,.225*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.475*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.325*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.325*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.2*ne,.975*te,0,te,.08*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.55*te,ne).close()),he}),go.Shape.defineFigureGenerator("Key",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*1,ne*.5,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.9,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.7,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.85,.575*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.9,.6*ne).close()),se.add(new go.PathSegment(go.PathSegment.Move,.17*te,.425*ne)),se.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*te,.5*ne,.075*te,.075*ne).close()),he}),go.Shape.defineFigureGenerator("FilmTape",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,te*0,te*.3,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.08,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.08,ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*1),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*1),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*2),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*2),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*3),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*3),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*4),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*4),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*5),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*5),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*6),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*6),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*7),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*7),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*8),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*8),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*9),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*9),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*10),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*10),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*11),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*11),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*12),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*12),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*13),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*13),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*14),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*14),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*15),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*15),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1));var ge=new go.PathFigure(0,0,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*0)),ge.add(new go.PathSegment(go.PathSegment.Arc,270,-180,te*1,te*.3,te*.055)),ge.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1));var Se=new go.PathFigure(te*.11,ne*.1,!1);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ne*.1)),Se.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ne*.8)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.11,ne*.8).close());var Ae=new go.PathFigure(te*(.11+.24133333*1+.028*1),ne*.1,!1);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ne*.1)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ne*.8)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*1),ne*.8).close());var Oe=new go.PathFigure(te*(.11+.24133333*2+.028*2),ne*.1,!1);return he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ne*.1)),Oe.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ne*.8)),Oe.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*2),ne*.8).close()),he}),go.Shape.defineFigureGenerator("FloppyDisk",function(_e,te,ne){var he=new go.Geometry,se=8,ge=se*Ve,Se=new go.PathFigure(se,0,!1);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te*.86,0)),Se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.14)),Se.add(new go.PathSegment(go.PathSegment.Line,te,ne-se)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te-se,ne,te,ne-ge,te-ge,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,se,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-se,ge,ne,0,ne-ge)),Se.add(new go.PathSegment(go.PathSegment.Line,0,se)),Se.add(new go.PathSegment(go.PathSegment.Bezier,se,0,0,ge,ge,0).close());var Ae=new go.PathFigure(te*.83,0,!1);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.83,ne*.3)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*.3)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*0).close());var Oe=new go.PathFigure(te*.83,ne*1,!1);he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Line,te*.83,ne*.5)),Oe.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*.5)),Oe.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*1).close());var Be=new go.PathFigure(te*.78,ne*.05,!1);return he.add(Be),Be.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.05)),Be.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.25)),Be.add(new go.PathSegment(go.PathSegment.Line,te*.78,ne*.25).close()),he}),go.Shape.defineFigureGenerator("SpeechBubble",function(_e,te,ne){var he=_e?_e.parameter1:NaN;(isNaN(he)||he<0)&&(he=15),he=Math.min(he,te/3),he=Math.min(he,ne/3);var se=he*Ve,ge=ne*.8,Se=new go.Geometry,Ae=new go.PathFigure(he,0,!0);return Se.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,te-he,0)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,te,he,te-se,0,te,se)),Ae.add(new go.PathSegment(go.PathSegment.Line,te,ge-he)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,te-he,ge,te,ge-se,te-se,ge)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.7,ge)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.55,ge)),Ae.add(new go.PathSegment(go.PathSegment.Line,he,ge)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,ge-he,se,ge,0,ge-se)),Ae.add(new go.PathSegment(go.PathSegment.Line,0,he)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,se,se,0).close()),se>1?(Se.spot1=new go.Spot(0,0,se,se),Se.spot2=new go.Spot(1,.8,-se,-se)):(Se.spot1=go.Spot.TopLeft,Se.spot2=new go.Spot(1,.8)),Se}),go.Shape.defineFigureGenerator("Repeat",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*0,ne*.45,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*.9)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.9)),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*.45).close());var ge=new go.PathFigure(te*1,ne*.55,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*1)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.55)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*.55)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*.1)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.1)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*0)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*.55).close()),he}),go.Shape.defineFigureGenerator("Windows",function(_e,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close()).add(new go.PathSegment(go.PathSegment.Move,.4*te,.4*ne)).add(new go.PathSegment(go.PathSegment.Line,.4*te,.8*ne)).add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)).add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.2*te,.1*ne)).add(new go.PathSegment(go.PathSegment.Line,.2*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.1*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.1*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Line,.1*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne).close()))}),go.Shape.defineFigureGenerator("Terminal",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*0,ne*.1,!1);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.9)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*.9).close());var ge=new go.PathFigure(te*.1,ne*.2,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*.1,ne*.25)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.22,ne*.285)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.1,ne*.32)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.1,ne*.37)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.275,ne*.32)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.275,ne*.25).close());var Se=new go.PathFigure(te*.28,ne*.37,!0);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.37)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.41)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.28,ne*.41).close()),he}),go.Shape.defineFigureGenerator("Beaker",function(_e,te,ne){var he=new go.Geometry,se=15,ge=se*Ve,Se=new go.PathFigure(te*.62,ne*.475,!0);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,ne-se)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te-se,ne,te,ne-ge,te-ge,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,se,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-se,ge,ne,0,ne-ge)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.38,ne*.475)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.38,ne*.03)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*0)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*0)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.62,ne*.03).close()),ge>1?(he.spot1=new go.Spot(0,0,ge,ge),he.spot2=new go.Spot(1,1,-ge,-ge)):(he.spot1=go.Spot.TopLeft,he.spot2=go.Spot.BottomRight),he}),go.Shape.defineFigureGenerator("Download",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*0,ne*1,!0);he.add(se);var ge=.1/.3;se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.755,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.93,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.61,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.39,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.07,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*(1-ge)).close());var Se=new go.PathFigure(te*.4,ne*0,!0);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.44)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.26,ne*.44)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.66)),Se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.26),ne*.44)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.44)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*0).close()),he}),go.Shape.defineFigureGenerator("Bin",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*0,ne*1,!0);he.add(se);var ge=.1/.3;return se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.755,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.93,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.61,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.39,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.07,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*(1-ge)).close()),he}),go.Shape.defineFigureGenerator("Upload",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*0,ne*1,!0);he.add(se);var ge=.1/.3;se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.755,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.93,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.61,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.39,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.07,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*(1-ge)).close());var Se=new go.PathFigure(te*.5,ne*0,!0);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te*.26,ne*.25)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.25)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.63)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.63)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.25)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.74,ne*.25).close()),he}),go.Shape.defineFigureGenerator("EmptyDrink",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*.15,ne*0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.85,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*1).close()),he}),go.Shape.defineFigureGenerator("Drink",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*.15,ne*0,!1);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.85,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*1).close());var ge=new go.PathFigure(te*.235,ne*.28,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*.765,ne*.28)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.655,ne*.97)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.345,ne*.97).close()),he}),go.Shape.defineFigureGenerator("4Arrows",function(_e,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*.5,ne*0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,ne*.25)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.25)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.5)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.65)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.65)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*.5)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.25)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.25).close()),he}),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 Ge={},be="5.0",de={},le=null,Ie=!1,De=!1,Le=null,Ye=!1,Re=null,Ve=null,Je=0;Je<arguments.length;Je++){var Xe=arguments[Je];if(Xe!==null)switch(typeof Xe){case"number":be=Xe.toFixed(1);break;case"string":Xe.match(new RegExp("^[0-9]\\.[0-9]+$"))?be=Xe:Le=Xe;break;case"object":typeof Xe.is3D!="undefined"?le=Xe:de=Xe;break;case"boolean":Ie=Xe,De=!0;break}}le===null&&(le={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},de.material_id!==void 0&&!De&&(Ie=!0)),Le!==null&&de.id===void 0&&(de.id=Le);var qe="",mt="",st=!1,Nt=null,_e=null,te=null,ne=!1,he=null,se=null,ge=null,Se=null,Ae=null;de.height!==void 0&&(de.height=Math.round(de.height)),de.width!==void 0&&(de.width=Math.round(de.width));var Oe=function(Pt){return parseFloat(Pt)>4?parseFloat(Pt):5};Ge.setHTML5Codebase=function(Pt,an){Ve=Pt,it(Pt,an)},Ge.setJavaCodebase=Ge.setJavaCodebaseVersion=Ge.isCompiledInstalled=Ge.setPreCompiledScriptPath=Ge.setPreCompiledResourcePath=function(){},Ge.setHTML5CodebaseVersion=function(Pt,an){var ln=parseFloat(Pt);if(ln!==NaN&&ln<5){console.log("The GeoGebra HTML5 codebase version "+ln+" is deprecated. Using version latest instead.");return}Re=Pt,ct(Pt,an)},Ge.getHTML5CodebaseVersion=function(){return _e},Ge.getParameters=function(){return de},Ge.setFontsCSSURL=function(Pt){Se=Pt},Ge.setGiacJSURL=function(Pt){},Ge.setJNLPFile=function(Pt){qe=Pt},Ge.setJNLPBaseDir=function(Pt){},Ge.inject=function(){function Pt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var an="auto",ln=de.id,zn,En=!1,ii=0;ii<arguments.length;ii++){var kt=arguments[ii];typeof kt=="string"?(kt=kt.toLowerCase(),kt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?an=kt:ln=arguments[ii]):typeof kt=="boolean"?En=kt:kt instanceof HTMLElement&&(zn=kt)}Kn();function Kn(){if(!Ye){setTimeout(Kn,200);return}an=On(an);var yi=zn||document.getElementById(ln);if(!yi){console.log("possibly bug on ajax loading? ");return}if(Ge.removeExistingApplet(yi,!1),de.width===void 0&&yi.clientWidth&&(de.width=yi.clientWidth),de.height===void 0&&yi.clientHeight&&(de.height=yi.clientHeight),!(de.width&&de.height)&&an==="html5"&&(delete de.width,delete de.height),Nt=an,an==="screenshot")It(yi,de);else{var et=!1;de.hasOwnProperty("playButton")&&de.playButton||de.hasOwnProperty("clickToLoad")&&de.clickToLoad?et=!0:de.hasOwnProperty("playButtonAutoDecide")&&de.playButtonAutoDecide&&(et=(!Be()||Pt())&&Ke()),et?(Nt="screenshot",Tn(yi,de,En,an)):At(yi,de,En)}}};function Be(){try{return window.self!==window.top}catch(Pt){return!0}}function Ke(){return de.hasOwnProperty("screenshotGenerator")&&de.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ge.getViews=function(){return le},Ge.isJavaInstalled=function(){return!1};var rt=function(Pt){var an=function(ii){var kt=JSON.parse(ii),Kn=function(ze){return ze.type=="G"||ze.type=="E"},yi=kt.elements?kt.elements.filter(Kn)[0]:kt;if(!yi||!yi.url){ln();return}de.fileName=yi.url,ot(yi.settings||{}),le.is3D=!0;var et="https://www.geogebra.org/images/";Ge.setPreviewImage(he||yi.previewUrl,et+"GeoGebra_loading.png",et+"applet_play.png"),Pt()},ln=function(){de.onError&&de.onError(),cn("Error: Fetching material (id "+de.material_id+") failed.",de)},zn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",En="/materials/"+de.material_id+"?scope=basic";ht("https://"+zn+"/api/proxy.php?path="+encodeURIComponent(En),an,ln)};function ot(Pt){var an=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(ln){Pt[ln]=!!Pt[ln]}),an.forEach(function(ln){de[ln]===void 0&&Pt[ln]!==void 0&&(de[ln]=Pt[ln])}),de.showToolBarHelp===void 0&&(de.showToolBarHelp=de.showToolBar)}function ht(Pt,an,ln){var zn=new XMLHttpRequest;zn.open("GET",Pt),zn.onload=function(){an(zn.responseText)},zn.onerror=ln,zn.send()}Ge.isHTML5Installed=function(){return!0},Ge.getLoadedAppletType=function(){return Nt},Ge.setPreviewImage=function(Pt,an,ln){he=Pt,se=an,ge=ln},Ge.removeExistingApplet=function(Pt,an){var ln;typeof Pt=="string"&&(Pt=document.getElementById(Pt)),Nt=null;var zn=null;for(ln=0;ln<Pt.childNodes.length;ln++){var En=Pt.childNodes[ln],ii=En.className;ii==="applet_screenshot"?an?(En.style.display="block",Nt="screenshot"):En.style.display="none":ii!=="applet_scaler prerender"&&(Pt.removeChild(En),zn=ii&&ii.indexOf("appletParameters")!=-1?En.id:null,ln--)}var kt=de.id!==void 0?de.id:zn,Kn=window[kt];Kn&&typeof Kn.getBase64=="function"&&(Kn.remove(),window[kt]=null)},Ge.refreshHitPoints=function(){if(Oe(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Pt=Ge.getAppletObject();return Pt&&typeof Pt.recalculateEnvironments=="function"?(Pt.recalculateEnvironments(),!0):!1},Ge.startAnimation=function(){var Pt=Ge.getAppletObject();return Pt&&typeof Pt.startAnimation=="function"?(Pt.startAnimation(),!0):!1},Ge.stopAnimation=function(){var Pt=Ge.getAppletObject();return Pt&&typeof Pt.stopAnimation=="function"?(Pt.stopAnimation(),!0):!1},Ge.getAppletObject=function(){var Pt=de.id!==void 0?de.id:"ggbApplet";return window[Pt]},Ge.resize=function(){};var bt=function(Pt,an,ln){var zn=document.createElement("param");zn.setAttribute("name",an),zn.setAttribute("value",ln),Pt.appendChild(zn)},at=function(Pt){return Pt&&Pt!=="false"},At=function(Pt,an,ln){Oe(_e)<=4.2&&(ln=!0);var zn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==_e||ggbHTML5LoadedCodebaseIsWebSimple&&!ne)&&(zn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var En=document.createElement("div");En.classList.add("appletParameters","notranslate");var ii=an.width,kt=an.height;if(an.disableAutoScale=an.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():an.disableAutoScale,an.width!==void 0)if(Oe(_e)<=4.4)at(an.showToolBar)&&(an.height-=7),at(an.showAlgebraInput)&&(an.height-=37),an.width<605&&at(an.showToolBar)&&(an.width=605,ii=605);else{var Kn=100;(at(an.showToolBar)||at(an.showMenuBar))&&(an.hasOwnProperty("customToolBar")&&(an.customToolbar=an.customToolBar),Kn=at(an.showMenuBar)?245:155),ii<Kn&&(an.width=Kn,ii=Kn)}En.style.border="none",En.style.display="inline-block";for(var yi in an)an.hasOwnProperty(yi)&&yi!=="appletOnLoad"&&En.setAttribute("data-param-"+yi,an[yi]);Se&&En.setAttribute("data-param-fontscssurl",Se),Ge.resize=function(){GGBAppletUtils.responsiveResize(Pt,an)},window.addEventListener("resize",function(gn){Ge.resize()});var et=typeof an.appletOnLoad=="function"?an.appletOnLoad:function(){};if(!ln&&an.width!==void 0){an.hasOwnProperty("showSplash")||En.setAttribute("data-param-showSplash","false");var ze=Pt.querySelector(".applet_scaler.prerender"),xe=ze!==null;if(xe)var Te=ze.querySelector(".ggb_preview");else{var Te=un(ii,kt,an.borderColor,!1);ze=document.createElement("div"),ze.className="applet_scaler",ze.style.position="relative",ze.style.display="block",ze.style.width=ii+"px",ze.style.height=kt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ze,"66%"),Oe(_e)>=5?(an.appletOnLoad=function(gn){var qt=Pt.querySelector(".ggb_preview");qt&&qt.parentNode.removeChild(qt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ze),window.GGBT_wsf_view&&$(window).trigger("resize"),et(gn)},xe||ze.appendChild(Te)):En.appendChild(Te),ze.appendChild(En),xe||Pt.appendChild(ze),setTimeout(function(){Ge.resize()},1)}else{var Me=document.createElement("div");Me.className="applet_scaler",Me.style.position="relative",Me.style.display="block",Me.appendChild(En),Pt.appendChild(Me),an.appletOnLoad=function(gn){Ge.resize(),et(gn)}}function Ce(gn,qt){qt&&typeof qt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(gn,qt.appletOnLoad):renderGGBElement(gn),cn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",qt)}function ut(gn,qt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:gn,params:qt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(fn){Ce(fn.article,fn.params)}),html5AppletsToProcess=null)},Oe(_e)<5&&(gn.className+=" geogebraweb")):Ce(gn,qt)}if(zn){scriptLoadStarted=!0;for(var Lt=0;Lt<En.childNodes.length;Lt++){var Mt=En.childNodes[Lt].tagName;Mt==="TABLE"&&(En.removeChild(En.childNodes[Lt]),Lt--)}if(ggbHTML5LoadedScript!==null){var Yt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Yt!=null&&Yt.parentNode.removeChild(Yt)}var Vt=document.createElement("script"),Gt=function(){ut(En,an)};Vt.src=mt+te,ggbHTML5LoadedCodebaseIsWebSimple=ne,ggbHTML5LoadedCodebaseVersion=_e,ggbHTML5LoadedScript=Vt.src,cn("GeoGebra HTML5 codebase loaded: '"+mt+"'.",an),!Ve&&(!Re||Re=="5.0")?(ne?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Gt()):mt.requirejs?__webpack_require__.e(7963).then(function(){var gn=[__webpack_require__(87963)];Gt.apply(null,gn)}.bind(this)).catch(__webpack_require__.oe):(Vt.onload=Gt,Pt.appendChild(Vt))}else ut(En,an);an.height=kt,an.width=ii},It=function(Pt,an,ln){var zn=un(an.width,an.height,an.borderColor,ln),En=document.createElement("div");En.style.position="relative",En.style.display="block",En.style.width=an.width+"px",En.style.height=an.height+"px",En.className="applet_screenshot applet_scaler"+(ln?" applet_screenshot_play":""),En.appendChild(zn);var ii=GGBAppletUtils.getScale(an,Pt,ln);ln?(Pt.appendChild(yn()),window.GGBT_wsf_view||(Pt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(En,"66%"),Pt.appendChild(En),ii!==1&&!isNaN(ii)&&(GGBAppletUtils.scaleElement(En,ii),En.style.width=an.width+"px",En.style.height=an.height+"px",En.parentNode.style.width=an.width*ii+"px",En.parentNode.style.height=an.height*ii+"px"),Ge.resize=function(){$t(Pt,zn,En,ln)},window.addEventListener("resize",function(kt){Ge.resize()}),Ge.resize()};function $t(Pt,an,ln,zn){if(Pt.contains(an)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Pt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Pt)}var En=GGBAppletUtils.getScale(de,Pt,zn);ln.parentNode!==null&&(!isNaN(En)&&En!==1?(GGBAppletUtils.scaleElement(ln,En),ln.parentNode.style.width=de.width*En+"px",ln.parentNode.style.height=de.height*En+"px"):(GGBAppletUtils.scaleElement(ln,1),ln.parentNode.style.width=de.width+"px",ln.parentNode.style.height=de.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Pt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ge.onExitFullscreen=function(Pt,an){an.appendChild(Pt)};var Tn=function(Pt,an,ln,zn){It(Pt,an,!0);for(var En=function(){var Kn=[];for(kt=0;kt<Pt.childNodes.length;kt++)Kn.push(Pt.childNodes[kt]);if(window.GGBT_wsf_view){var yi=window.GGBT_wsf_view.renderFullScreen(Pt,an.id),et=document.getElementById("fullscreencontainer"),ze=jQuery(Pt).find(".fullscreencontent");ze.length>0?(yi.remove(),ze.attr("id","fullscreencontent").show(),jQuery(et).append(ze),window.dispatchEvent(new Event("resize"))):At(yi,an,!1),window.GGBT_wsf_view.launchFullScreen(et)}else Nt=zn,At(Pt,an,!1);if(!window.GGBT_wsf_view)for(kt=0;kt<Kn.length;kt++)Pt.removeChild(Kn[kt])},ii=Pt.getElementsByClassName("ggb_preview_play"),kt=0;kt<ii.length;kt++)ii[kt].addEventListener("click",En,!1),ii[kt].addEventListener("ontouchstart",En,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Pt),Ke()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},yn=function(){var Pt=document.createElement("div");if(Pt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var an='.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");}',ln=document.createElement("style");ln.styleSheet?ln.styleSheet.cssText=an:ln.appendChild(document.createTextNode(an)),document.getElementsByTagName("head")[0].appendChild(ln)}return Pt},un=function(Pt,an,ln,zn){var En=document.createElement("div");En.className="ggb_preview",En.style.position="absolute",En.style.zIndex="90",En.style.width=Pt-2+"px",En.style.height=an-2+"px",En.style.top="0px",En.style.left="0px",En.style.overflow="hidden",En.style.backgroundColor="white";var ii="lightgrey";ln!==void 0&&(ln==="none"?ii="transparent":ii=ln),En.style.border="1px solid "+ii;var kt=document.createElement("img");if(kt.style.position="relative",kt.style.zIndex="1000",kt.style.top="-1px",kt.style.left="-1px",he!==null&&kt.setAttribute("src",he),kt.style.opacity=.7,se!==null){var Kn,yi,et;if(!zn){Kn=document.createElement("img"),Kn.style.position="absolute",Kn.style.zIndex="1001",Kn.style.opacity=1,kt.style.opacity=.3,yi=360,yi>Pt/4*3&&(yi=Pt/4*3),et=yi/5.8,Kn.setAttribute("src",se),Kn.setAttribute("width",yi),Kn.setAttribute("height",et);var ze=(Pt-yi)/2,xe=(an-et)/2;Kn.style.left=ze+"px",Kn.style.top=xe+"px",En.appendChild(Kn)}}return En.appendChild(kt),En},On=function(Pt){return Pt=Pt.toLowerCase(),Pt==="html5"||Pt==="screenshot"?Pt:"html5"},xt=["web","webSimple","web3d","tablet","tablet3d","phone"],ct=function(Pt,an){if(_e=Pt,an){it(_e,!0);return}var ln=!Ie;if(ln){var zn=Oe(_e);!isNaN(zn)&&zn<4.4&&(ln=!1)}var En,ii;window.location.protocol.substr(0,4)==="http"?En=window.location.protocol:En="http:";var kt=_e.indexOf("//");kt>0?ii=_e:kt===0?ii=En+_e:ii="https://www.geogebra.org/apps/5.2.814.0/";for(var Kn in xt)if(_e.slice(xt[Kn].length*-1)===xt[Kn]||_e.slice((xt[Kn].length+1)*-1)===xt[Kn]+"/"){it(ii,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&ln&&!le.is3D&&!le.AV&&!le.SV&&!le.CV&&!le.EV2&&!le.CP&&!le.PC&&!le.DA&&!le.FI&&!le.PV&&!at(de.showToolBar)&&!at(de.showMenuBar)&&!at(de.showAlgebraInput)&&!at(de.enableRightClick)&&(!de.appName||de.appName=="classic")?ii+="webSimple/":ii+="web3d/",it(ii,!1)},it=function(Pt,an){if(Pt.requirejs){mt=Pt;return}Pt.slice(-1)!=="/"&&(Pt+="/"),mt=Pt,an===null&&(an=Pt.indexOf("http")===-1),st=an,te="web.nocache.js",ne=!1;var ln=mt.split("/");ln.length>1&&(!an&&ln[ln.length-2]==="webSimple"?(te="webSimple.nocache.js",ne=!0):xt.indexOf(ln[ln.length-2])>=0&&(te=ln[ln.length-2]+".nocache.js")),ln=Pt.split("/"),_e=ln[ln.length-3],_e.substr(0,4)==="test"?_e=_e.substr(4,1)+"."+_e.substr(5,1):(_e.substr(0,3)==="war"||_e.substr(0,4)==="beta")&&(_e="5.0");var zn=parseFloat(_e);zn!==NaN&&zn<5&&Pt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+zn+" is deprecated. Using version latest instead."),ct("5.0",an))},cn=function(Pt,an){window.console&&window.console.log&&(!an||typeof an.showLogging=="undefined"||an.showLogging&&an.showLogging!=="false")&&console.log(Pt)};de.material_id!==void 0?rt(An):An();function An(){var Pt=be;Re!==null?Pt=Re:parseFloat(Pt)<5&&(Pt="5.0"),ct(Pt,!1),Ve!==null&&it(Ve,st),Ye=!0}return Ge},GGBAppletUtils=function(){"use strict";function Ge(){return window.GGBT_wsf_edit!==void 0}function be(Ye,Re){Re!=1?(Ye.style.transformOrigin="0% 0% 0px",Ye.style.webkitTransformOrigin="0% 0% 0px",Ye.style.transform="scale("+Re+","+Re+")",Ye.style.webkitTransform="scale("+Re+","+Re+")",Ye.style.maxWidth="initial",Ye.querySelector(".ggb_preview")!==null&&(Ye.querySelector(".ggb_preview").style.maxWidth="initial"),Ye.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ye.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ye.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ye.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ye.style.transform="none",Ye.style.webkitTransform="none")}function de(Ye,Re,Ve,Je,Xe,qe){var mt=null;if(qe!=null&&qe!="")for(var st=Ye.parentNode;st!=null;)if((" "+st.className+" ").indexOf(" "+qe+" ")>-1){mt=st;break}else st=st.parentNode;var Nt=0,_e=0,te=0,ne=0,he=0,se=0,ge=0;if(mt)Nt=mt.offsetWidth,_e=Math.max(Je?mt.offsetWidth:0,mt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Nt=Math.min(window.innerWidth,document.documentElement.clientWidth),_e=Math.min(window.innerHeight,document.documentElement.clientHeight),te=Nt):(Nt=window.innerWidth,_e=window.innerHeight,te=window.innerWidth),Ye){var Se=Ye.getBoundingClientRect();Se.left>0&&Se.left<=Nt&&(Xe===void 0||!Xe)&&(document.dir==="rtl"?(he=Nt-Se.width-Se.left,se=te<=480?10:30):(se=Se.left,he=te<=480?10:30),ne=se+he)}if(Ye&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Ae=Ye.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ne=40,ge=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ne=0,ge=40)}}return Ye&&((Ve===void 0||!Ve)&&Re>0&&Re+ne<Nt?Nt=Re:Nt-=ne,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ve===void 0||!Ve)&&(_e-=ge)),{width:Nt,height:_e}}function le(Ye,Re,Ve,Je,Xe){if(Ye.isScreenshoGenerator)return 1;var qe=Je!==void 0&&Je,mt=Ye.noScaleMargin!=null&&Ye.noScaleMargin,st=function(Ae){return Ae&&Ae!=="false"},Nt=st(Ye.autoHeight),_e=de(Re,Ye.width,Ve,Nt,qe&&window.GGBT_wsf_view||mt,Xe),te=parseInt(_e.width),ne=Ye.width,he=Ye.height;if(ne===void 0){var se=Re.querySelector(".appletParameters");se&&(ne=se.offsetWidth,he=se.offsetHeight)}var ge=te/ne,Se=qe?1:_e.height/he;return Ve!==void 0&&!Ve&&(ge=Math.min(1,ge),Se=Math.min(1,Se)),Math.min(ge,Se)}function Ie(Ye,Re,Ve){var Je=1,Xe,qe=!1;if(Ye.hasOwnProperty("allowUpscale")&&(qe=Ye.allowUpscale),Ye.hasOwnProperty("scale")&&(Je=parseFloat(Ye.scale),(isNaN(Je)||Je===null||Je===0)&&(Je=1),Je>1&&(qe=!0)),Re&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(qe=!0),!(Ye.hasOwnProperty("disableAutoScale")&&Ye.disableAutoScale))Xe=le(Ye,Re,qe,Ve,Ye.scaleContainerClass);else return Je;return qe&&(!Ye.hasOwnProperty("scale")||Je===1)?Xe:Math.min(Je,Xe)}function De(Ye){var Re=Math.min(window.innerWidth,document.documentElement.clientWidth),Ve=Math.min(window.innerHeight,document.documentElement.clientHeight),Je=Ye.getBoundingClientRect(),Xe=(Re-Je.width)/2,qe=(Ve-Je.height)/2;qe<0&&(qe=0),Ye.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Xe<40?Ye.style.left="40px":Ye.style.left=Xe+"px",Ye.style.top=qe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(qe<40?Ye.style.top="40px":Ye.style.top=qe+"px",Ye.style.left=Xe+"px")}function Le(Ye,Re){var Ve=Ye.querySelector(".appletParameters");if(Ve){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Re.id!==Ve.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ye)}if(Ve.parentElement&&/fullscreen/.test(Ve.parentElement.className))return;var Je=Ie(Re,Ye);Ge()&&Ve.setAttribute("data-param-scale",Je);for(var Xe=null,qe=0;qe<Ye.childNodes.length;qe++)if(Ye.childNodes[qe].className!==void 0&&Ye.childNodes[qe].className.match(/^applet_scaler/)){Xe=Ye.childNodes[qe];break}if(Xe!==null&&Xe.querySelector(".noscale")!==null)return;var mt=Re.id!==void 0?Re.id:"ggbApplet",st=window[mt];(st==null||!st.recalculateEnvironments)&&Xe!==null&&!Xe.className.match(/fullscreen/)&&(Xe.parentNode.style.transform="",!isNaN(Je)&&Je!==1?(Xe.parentNode.style.width=Re.width*Je+"px",Xe.parentNode.style.height=Re.height*Je+"px",be(Xe,Je)):(be(Xe,1),Xe.parentNode.style.width=Re.width+"px",Xe.parentNode.style.height=Re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&De(Ye),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ve).parents(".content-added-content"))}}return{responsiveResize:Le,isFlexibleWorksheetEditor:Ge,positionCenter:De,getScale:Ie,scaleElement:be}}();__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 Ge=n.location.search;return Ge.indexOf(J)!=-1||Ge.indexOf(K)!=-1}function q(Ge,be){}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(Ge){var be=s[L].bindings;s[L].bindings=function(){for(var de=be?be():{},le=Ge[webModule.__softPermutationId],Ie=O;Ie<le.length;Ie++){var De=le[Ie];de[De[O]]=De[P]}return de}};var t;function u(){return v(),t}function v(){if(!t){var Ge=o.createElement(Q);if(Ge.id=L,Ge.style.cssText=R+S,Ge.tabIndex=-1,o.body.appendChild(Ge),t=Ge.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var be=document.compatMode==U?V:W;t.write(be+X),t.close()}}}function w(Ge){function be(le){function Ie(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var De=Ie();if(De){le();return}function Le(){if(!De){if(!Ie())return;De=!0,le(),o.removeEventListener&&o.removeEventListener(Z,Le,!1),Ye&&clearInterval(Ye)}}o.addEventListener&&o.addEventListener(Z,Le,!1);var Ye=setInterval(function(){Le()},$)}function de(le){var Ie=u(),De=Ie.body,Le=Ie.createElement(_);Le.language=ab,Le.crossOrigin=W,Le.src=le,webModule.__errFn&&(Le.onerror=function(){webModule.__errFn(L,new Error(bb+le))}),De.appendChild(Le)}be(function(){de(Ge)})}webModule.__startLoadingFragment=function(Ge){return C(Ge)},webModule.__installRunAsyncCode=function(Ge){var be=u(),de=be.body,le=be.createElement(_);le.language=ab,le.text=Ge,de.appendChild(le),de.removeChild(le)};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(Ge){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ge){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ge){var be=c[Ge];return be==null?null:be},r=d,webModule.__errFn=e}function B(){function Ge(Ye){var Re=Ye.lastIndexOf(rb);Re==-1&&(Re=Ye.length);var Ve=Ye.indexOf(sb);Ve==-1&&(Ve=Ye.length);var Je=Ye.lastIndexOf(tb,Math.min(Ve,Re));return Je>=O?Ye.substring(O,Je+P):W}function be(Ye){if(!Ye.match(/^\w+:\/\//)){var Re=o.createElement(ub);Re.src=Ye+vb,Ye=Ge(Re.src)}return Ye}function de(){var Ye=__gwt_getMetaProperty(wb);return Ye!=null?Ye:W}function le(){for(var Ye=o.getElementsByTagName(_),Re=O;Re<Ye.length;++Re)if(Ye[Re].src.indexOf(xb)!=-1)return Ge(Ye[Re].src);return W}function Ie(){var Ye=o.getElementsByTagName(yb);return Ye.length>O?Ye[Ye.length-P].href:W}function De(){var Ye=o.location;return Ye.href==Ye.protocol+zb+Ye.host+Ye.pathname+Ye.search+Ye.hash}var Le=de();return Le==W&&(Le=le()),Le==W&&(Le=Ie()),Le==W&&De()&&(Le=Ge(o.location.href)),Le=be(Le),Le}function C(Ge){return Ge.match(/^\//)||Ge.match(/^[a-zA-Z]+:\/\//)?Ge:webModule.__moduleBase+Ge}function D(){var Ge=[],be=O,de=[],le=[];function Ie(Ye){var Re=le[Ye](),Ve=de[Ye];if(Re in Ve)return Re;var Je=[];for(var Xe in Ve)Je[Ve[Xe]]=Xe;throw r&&r(Ye,Je,Re),null}if(__gwt_isKnownPropertyValue=function(Ye,Re){return Re in de[Ye]},webModule.__getPropMap=function(){var Ye={};for(var Re in de)de.hasOwnProperty(Re)&&(Ye[Re]=Ie(Re));return Ye},webModule.__computePropValue=Ie,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var De;try{De=Cb;var Le=De.indexOf(Db);Le!=-1&&(be=parseInt(De.substring(Le+P),$),De=De.substring(O,Le))}catch(Ye){}return webModule.__softPermutationId=be,C(De+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})()},52358:function(Ge,be){(function(de,le){le(be)})(this,function(de){"use strict";var le=function(){return(le=Object.assign||function(Me){for(var Ce,ut=1,Lt=arguments.length;ut<Lt;ut++)for(var Mt in Ce=arguments[ut])Object.prototype.hasOwnProperty.call(Ce,Mt)&&(Me[Mt]=Ce[Mt]);return Me}).apply(this,arguments)};function Ie(Me,Ce,ut,Lt){return new(ut||(ut=Promise))(function(Mt,Yt){function Vt(qt){try{gn(Lt.next(qt))}catch(fn){Yt(fn)}}function Gt(qt){try{gn(Lt.throw(qt))}catch(fn){Yt(fn)}}function gn(qt){var fn;qt.done?Mt(qt.value):(fn=qt.value,fn instanceof ut?fn:new ut(function(sn){sn(fn)})).then(Vt,Gt)}gn((Lt=Lt.apply(Me,Ce||[])).next())})}function De(Me,Ce){var ut,Lt,Mt,Yt,Vt={label:0,sent:function(){if(1&Mt[0])throw Mt[1];return Mt[1]},trys:[],ops:[]};return Yt={next:Gt(0),throw:Gt(1),return:Gt(2)},typeof Symbol=="function"&&(Yt[Symbol.iterator]=function(){return this}),Yt;function Gt(gn){return function(qt){return function(fn){if(ut)throw new TypeError("Generator is already executing.");for(;Vt;)try{if(ut=1,Lt&&(Mt=2&fn[0]?Lt.return:fn[0]?Lt.throw||((Mt=Lt.return)&&Mt.call(Lt),0):Lt.next)&&!(Mt=Mt.call(Lt,fn[1])).done)return Mt;switch(Lt=0,Mt&&(fn=[2&fn[0],Mt.value]),fn[0]){case 0:case 1:Mt=fn;break;case 4:return Vt.label++,{value:fn[1],done:!1};case 5:Vt.label++,Lt=fn[1],fn=[0];continue;case 7:fn=Vt.ops.pop(),Vt.trys.pop();continue;default:if(!(Mt=(Mt=Vt.trys).length>0&&Mt[Mt.length-1])&&(fn[0]===6||fn[0]===2)){Vt=0;continue}if(fn[0]===3&&(!Mt||fn[1]>Mt[0]&&fn[1]<Mt[3])){Vt.label=fn[1];break}if(fn[0]===6&&Vt.label<Mt[1]){Vt.label=Mt[1],Mt=fn;break}if(Mt&&Vt.label<Mt[2]){Vt.label=Mt[2],Vt.ops.push(fn);break}Mt[2]&&Vt.ops.pop(),Vt.trys.pop();continue}fn=Ce.call(Me,Vt)}catch(sn){fn=[6,sn],Lt=0}finally{ut=Mt=0}if(5&fn[0])throw fn[1];return{value:fn[0]?fn[1]:void 0,done:!0}}([gn,qt])}}}var Le=function(){function Me(){}return Me.add=function(Ce){Me.HANDLE_LIST.push(Ce),window.addEventListener("message",Ce,!1)},Me.remove=function(Ce){var ut=Me.HANDLE_LIST.indexOf(Ce);ut>=0&&Me.HANDLE_LIST.splice(ut,1),window.removeEventListener("message",Ce,!1)},Me.empty=function(){for(;Me.HANDLE_LIST.length;)window.removeEventListener("message",Me.HANDLE_LIST.shift(),!1)},Me.parse=function(Ce){try{return typeof Ce=="object"?Ce:Ce&&JSON.parse(Ce)}catch(ut){return console.log("Message.parse Error:",ut),Ce}},Me.HANDLE_LIST=[],Me}();function Ye(Me){return{}.toString.call(Me)==="[object Function]"}var Re,Ve,Je,Xe,qe={origin:""};function mt(Me,Ce){qe[Me]=Ce}function st(Me){return qe[Me]}function Nt(Me){var Ce=st("origin");return!!function(ut,Lt){return ut!==Lt&&(ut.replace(/www\./i,"").toLowerCase()!==Lt.replace(/www\./i,"").toLowerCase()||(ut.match("www.")?void 0:(mt("origin",Lt),!1)))}(Ce,Me.origin)&&(console.warn("postMessage \u57DF\u540D\u68C0\u67E5\u4E0D\u901A\u8FC7",{safeOrigin:Ce,eventOrigin:Me.origin}),!0)}(function(Me){Me.unknown="unknown",Me.spreadsheet="s",Me.writer="w",Me.presentation="p",Me.pdf="f"})(Re||(Re={})),function(Me){Me.wps="w",Me.et="s",Me.presentation="p",Me.pdf="f"}(Ve||(Ve={})),function(Me){Me.nomal="nomal",Me.simple="simple"}(Je||(Je={})),function(Me){Me[Me.requestFullscreen=1]="requestFullscreen",Me[Me.exitFullscreen=0]="exitFullscreen"}(Xe||(Xe={}));var _e,te,ne,he=(_e=0,function(){return _e+=1}),se=function(Me,Ce,ut){ut===void 0&&(ut=!0);var Lt=Ce;if(!te){var Mt=function Gt(gn){var qt=gn.clientHeight,fn=gn.clientWidth;qt!==0||fn!==0||ne?qt===0&&fn===0||!ne||(ne.disconnect(),ne=null):window.ResizeObserver&&(ne=new ResizeObserver(function(sn){Gt(gn)})).observe(gn),te.style.cssText+="height: "+qt+"px; width: "+fn+"px"}.bind(null,Lt);(te=document.createElement("iframe")).classList.add("web-office-iframe");var Yt={id:"office-iframe",src:Me,scrolling:"no",frameborder:"0",allowfullscreen:"allowfullscreen",webkitallowfullscreen:"true",mozallowfullscreen:"true",allow:"clipboard-read; clipboard-write"};for(var Vt in Lt?(Yt.style="width: "+Lt.clientWidth+"px; height: "+Lt.clientHeight+"px;",ut&&window.addEventListener("resize",Mt)):((Lt=document.createElement("div")).classList.add("web-office-default-container"),function(Gt){var gn=document.createElement("style");document.head.appendChild(gn);var qt=gn.sheet;qt.insertRule(Gt,qt.cssRules.length)}(".web-office-default-container {position: absolute; padding: 0; margin: 0; width: 100%; height: 100%; left: 0; top: 0;}"),document.body.appendChild(Lt),Yt.style="position: fixed; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%;"),Yt)te.setAttribute(Vt,Yt[Vt]);Lt.appendChild(te),te.destroy=function(){te.parentNode.removeChild(te),te=null,window.removeEventListener("resize",Mt),ne&&(ne.disconnect(),ne=null)}}return te},ge=function(Me){se().contentWindow&&se().contentWindow.postMessage(JSON.stringify(Me),st("origin"))};function Se(Me,Ce,ut){return new Promise(function(Lt){var Mt=he(),Yt=function(Vt){if(!Nt(Vt)){var Gt=Le.parse(Vt.data);Gt.eventName===ut&&Gt.msgId===Mt&&(Lt(Gt.data),Le.remove(Yt))}};Le.add(Yt),ge({data:Me,msgId:Mt,eventName:Ce})})}var Ae=function(Me){return Se(Me,"wps.jssdk.api","wps.api.reply")},Oe=function(Me){return Se(Me,"api.basic","api.basic.reply")},Be={idMap:{}};function Ke(Me){return Ie(this,void 0,void 0,function(){var Ce,ut,Lt,Mt,Yt,Vt,Gt,gn,qt,fn;return De(this,function(sn){switch(sn.label){case 0:return Nt(Me)?[2]:(Ce=Le.parse(Me.data),ut=Ce.eventName,Lt=Ce.callbackId,Mt=Ce.data,Lt&&(Yt=Be.idMap[Lt])?(Vt=Yt.split(":"),Gt=Vt[0],gn=Vt[1],ut==="api.callback"&&Be[Gt]&&Be[Gt][gn]?[4,(fn=Be[Gt][gn]).callback.apply(fn,Mt.args)]:[3,2]):[3,2]);case 1:qt=sn.sent(),ge({result:qt,callbackId:Lt,eventName:"api.callback.reply"}),sn.label=2;case 2:return[2]}})})}var rt=function(Me){return Ie(void 0,void 0,void 0,function(){function Ce(){return Object.keys(Be.idMap).find(function(sn){return Be.idMap[sn]===Lt+":"+ut})}var ut,Lt,Mt,Yt,Vt,Gt,gn,qt,fn;return De(this,function(sn){switch(sn.label){case 0:return ut=Me.prop,Lt=Me.parentObjId,[4,ht([Mt=Me.value])];case 1:return Yt=sn.sent(),Vt=Yt[0],Gt=Yt[1],Me.value=Vt[0],gn=Object.keys(Gt)[0],qt=Be[Lt],Mt===null&&qt&&qt[ut]&&((fn=Ce())&&delete Be.idMap[fn],delete qt[ut],Object.keys(qt).length||delete Be[Lt],Object.keys(Be.idMap).length||Le.remove(Ke)),gn&&(Object.keys(Be.idMap).length||Le.add(Ke),Be[Lt]||(Be[Lt]={}),Be[Lt][ut]={callbackId:gn,callback:Gt[gn]},(fn=Ce())&&delete Be.idMap[fn],Be.idMap[gn]=Lt+":"+ut),[2]}})})},ot=function(Me,Ce,ut,Lt){return Ie(void 0,void 0,void 0,function(){var Mt,Yt,Vt,Gt,gn,qt,fn,sn;return De(this,function(_t){switch(_t.label){case 0:return Mt=he(),Gt=new Promise(function(wn,dn){Yt=wn,Vt=dn}),gn={},Ce.args?[4,ht(Ce.args)]:[3,2];case 1:qt=_t.sent(),fn=qt[0],sn=qt[1],Ce.args=fn,gn=sn,_t.label=2;case 2:return Me!=="api.setter"?[3,4]:[4,rt(Ce)];case 3:_t.sent(),_t.label=4;case 4:return function(wn){var dn=wn[0],Sn=wn[1];typeof(dn=le({},dn)).data=="function"&&(dn.data=dn.data()),Sn(),ge(dn)}([{eventName:Me,data:Ce,msgId:Mt},function(){var wn=this,dn=function(Sn){return Ie(wn,void 0,void 0,function(){var nn,si,Fn;return De(this,function(yt){switch(yt.label){case 0:return Nt(Sn)?[2]:(nn=Le.parse(Sn.data)).eventName==="api.callback"&&nn.callbackId&&gn[nn.callbackId]?[4,gn[nn.callbackId].apply(gn,nn.data.args)]:[3,2];case 1:si=yt.sent(),ge({result:si,eventName:"api.callback.reply",callbackId:nn.callbackId}),yt.label=2;case 2:return nn.eventName===Me+".reply"&&nn.msgId===Mt&&(nn.error?((Fn=new Error("")).stack=nn.error+`
|
|
|
`+ut,Lt&&Lt(),Vt(Fn)):Yt(nn.result),Le.remove(dn)),[2]}})})};return Le.add(dn),Gt}]),[2,Gt]}})})};function ht(Me){return Ie(this,void 0,void 0,function(){var Ce,ut,Lt,Mt,Yt,Vt,Gt,gn,qt,fn,sn;return De(this,function(_t){switch(_t.label){case 0:Ce={},ut=[],Lt=Me.slice(0),_t.label=1;case 1:return Lt.length?(Mt=void 0,[4,Lt.shift()]):[3,13];case 2:return(Yt=_t.sent())&&Yt.done?[4,Yt.done()]:[3,4];case 3:_t.sent(),_t.label=4;case 4:if(!function(wn){if(!wn)return!1;for(var dn=wn;Object.getPrototypeOf(dn)!==null;)dn=Object.getPrototypeOf(dn);return Object.getPrototypeOf(wn)===dn}(Mt))return[3,11];for(Gt in Mt={},Vt=[],Yt)Vt.push(Gt);gn=0,_t.label=5;case 5:return gn<Vt.length?(qt=Vt[gn],fn=Yt[qt],/^[A-Z]/.test(qt)?fn&&fn.done?[4,fn.done()]:[3,7]:[3,8]):[3,10];case 6:_t.sent(),_t.label=7;case 7:fn&&fn.objId?fn={objId:fn.objId}:typeof fn=="function"&&(sn=he(),Ce[sn]=fn,fn={callbackId:sn}),_t.label=8;case 8:Mt[qt]=fn,_t.label=9;case 9:return gn++,[3,5];case 10:return[3,12];case 11:Yt&&Yt.objId?Mt={objId:Yt.objId}:typeof Yt=="function"&&Yt.objId===void 0?(sn=he(),Ce[sn]=Yt,Mt={callbackId:sn}):Mt=Yt,_t.label=12;case 12:return ut.push(Mt),[3,1];case 13:return[2,[ut,Ce]]}})})}var bt=function(Me,Ce){Ce===void 0&&(Ce=!0);var ut=le({},Me),Lt=ut.headers,Mt=Lt===void 0?{}:Lt,Yt=ut.subscriptions,Vt=Yt===void 0?{}:Yt,Gt=ut.mode,gn=Gt===void 0?Je.nomal:Gt,qt=ut.commonOptions,fn=Mt.backBtn,sn=fn===void 0?{}:fn,_t=Mt.shareBtn,wn=_t===void 0?{}:_t,dn=Mt.otherMenuBtn,Sn=dn===void 0?{}:dn,nn=function(kn,Cn){kn.subscribe&&typeof kn.subscribe=="function"&&(kn.callback=Cn,Vt[Cn]=kn.subscribe,Ce&&delete kn.subscribe)};if(nn(sn,"wpsconfig_back_btn"),nn(wn,"wpsconfig_share_btn"),nn(Sn,"wpsconfig_other_menu_btn"),Sn.items&&Array.isArray(Sn.items)){var si=[];Sn.items.forEach(function(kn,Cn){switch(kn===void 0&&(kn={}),kn.type){case"export_img":kn.type=1,kn.callback="export_img";break;case"export_pdf":kn.type=1,kn.callback="export_pdf";break;case"save_version":kn.type=1,kn.callback="save_version";break;case"about_wps":kn.type=1,kn.callback="about_wps";break;case"split_line":kn.type=2;break;case"custom":kn.type=3,nn(kn,"wpsconfig_other_menu_btn_"+Cn),si.push(kn)}}),si.length&&($t||Tn)&&(Sn.items=si)}ut.url=ut.url||ut.wpsUrl;var Fn=[];if((gn===Je.simple||qt&&qt.isShowTopArea===!1)&&Fn.push("simple","hidecmb"),ut.debug&&Fn.push("debugger"),ut.url&&Fn.length&&(ut.url=ut.url+(ut.url.indexOf("?")>=0?"&":"?")+Fn.join("&")),qt&&(qt.isParentFullscreen||qt.isBrowserViewFullscreen)&&(document.addEventListener("fullscreenchange",yn),document.addEventListener("webkitfullscreenchange",yn),document.addEventListener("mozfullscreenchange",yn)),ut.wordOptions&&(ut.wpsOptions=ut.wordOptions),ut.excelOptions&&(ut.etOptions=ut.excelOptions),ut.pptOptions&&(ut.wppOptions=ut.pptOptions),typeof Vt.print=="object"){var yt="wpsconfig_print";typeof Vt.print.subscribe=="function"&&(Vt[yt]=Vt.print.subscribe,ut.print={callback:yt},Vt.print.custom!==void 0&&(ut.print.custom=Vt.print.custom)),delete Vt.print}return typeof Vt.exportPdf=="function"&&(Vt[yt="wpsconfig_export_pdf"]=Vt.exportPdf,ut.exportPdf={callback:yt},delete Vt.exportPdf),ut.commandBars&&At(ut.commandBars,!1),le(le({},ut),{subscriptions:Vt})},at=function(Me){Me===void 0&&(Me="");var Ce="";if(!Ce&&Me){var ut=Me.toLowerCase();ut.indexOf("/office/s/")!==-1&&(Ce=Re.spreadsheet),ut.indexOf("/office/w/")!==-1&&(Ce=Re.writer),ut.indexOf("/office/p/")!==-1&&(Ce=Re.presentation),ut.indexOf("/office/f/")!==-1&&(Ce=Re.pdf)}if(!Ce){var Lt=Me.match(/[\?&]type=([a-z]+)/)||[];Ce=Ve[Lt[1]]||""}return Ce};function At(Me,Ce){Ce===void 0&&(Ce=!0);var ut=Me.map(function(Lt){var Mt=Lt.attributes;if(!Array.isArray(Mt)){var Yt=[];for(var Vt in Mt)if(Mt.hasOwnProperty(Vt)){var Gt={name:Vt,value:Mt[Vt]};Yt.push(Gt)}Lt.attributes=Yt}return Lt});return Ce&&ge({data:ut,eventName:"setCommandBars"}),ut}var It=window.navigator.userAgent.toLowerCase(),$t=/Android|webOS|iPhone|iPod|BlackBerry|iPad/i.test(It),Tn=function(){try{return window._parent.location.search.indexOf("from=wxminiprogram")!==-1}catch(Me){return!1}}();function yn(){var Me={status:Xe.requestFullscreen},Ce=document,ut=Ce.fullscreenElement||Ce.webkitFullscreenElement||Ce.mozFullScreenElement;Me.status=ut?Xe.requestFullscreen:Xe.exitFullscreen,ge({data:Me,eventName:"fullscreenchange"})}var un=function(){Be.idMap={}};function On(){console.group("JSSDK \u4E8B\u4EF6\u673A\u5236\u8C03\u6574\u8BF4\u660E"),console.warn("jssdk.on\u3001jssdk.off \u548C jssdk.Application.Sub \u5C06\u5728\u540E\u7EED\u7248\u672C\u4E2D\u88AB\u5F03\u7528\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u6539\u8FDB\u540E\u7684 ApiEvent"),console.warn("\u5177\u4F53\u8BF7\u53C2\u8003\uFF1Ahttps://wwo.wps.cn/docs/front-end/basic-usage/events/intro/"),console.groupEnd()}var xt=0,ct=new Set;function it(Me){return xt+=1,!Me&&function(Ce){ct.forEach(function(ut){return ut(Ce)})}(xt),xt}function cn(){var Me=new Error("");return(Me.stack||Me.message||"").split(`
|
|
|
`).slice(2).join(`
|
|
|
`)}function An(Me,Ce){var ut,Lt=this,Mt=Ce.Events,Yt=Ce.Enum,Vt=Ce.Props,Gt=Vt[0],gn=Vt[1],qt={objId:xt};switch(function wn(dn,Sn,nn){for(var si=Sn.slice(0),Fn=function(){var yt=si.shift();!yt.alias&&~Pt.indexOf(yt.prop)&&si.push(le(le({},yt),{alias:yt.prop+"Async"})),Object.defineProperty(dn,yt.alias||yt.prop,{get:function(){var kn=this,Cn=yt.cache===1,Ht=Cn&&this["__"+yt.prop+"CacheValue"];if(!Ht){var di=cn(),zi=it(Cn),Ni=function(){for(var Ln,rr=[],Hi=0;Hi<arguments.length;Hi++)rr[Hi]=arguments[Hi];return yt.caller!==void 0?function ui(wi,Di,ke){for(var mi=Di.slice(0),ki=function(){var Yn=mi.shift();!Yn.alias&&~Pt.indexOf(Yn.prop)&&mi.push(le(le({},Yn),{alias:Yn.prop+"Async"})),Object.defineProperty(wi,Yn.alias||Yn.prop,{get:function(){var fi=this,Ai=Yn.cache===1,xi=Ai&&this["__"+Yn.prop+"CacheValue"];if(!xi){var hr=cn(),er=it(Ai),Kt=function(){for(var en,zt=[],on=0;on<arguments.length;on++)zt[on]=arguments[on];return Yn.caller!==void 0?ui(en={objId:it()},ke[Yn.caller],ke):en={},ln(Kt,en,"api.caller",{obj:Kt,args:zt,parentObjId:wi.objId,objId:en.objId,prop:Yn.prop},hr),en};return Kt.objId=-1,Yn.getter!==void 0&&(Kt.objId=er,ui(Kt,ke[Yn.getter],ke)),ln(wi,Kt,"api.getter",{parentObjId:wi.objId,objId:Kt.objId,prop:Yn.prop},hr,function(){delete fi["__"+Yn.prop+"CacheValue"]}),Ai&&(this["__"+Yn.prop+"CacheValue"]=Kt),Kt}return xi},set:function(fi){var Ai=cn();return ln(wi,{},"api.setter",{value:fi,parentObjId:wi.objId,objId:-1,prop:Yn.prop},Ai)}})};mi.length;)ki()}(Ln={objId:it()},nn[yt.caller],nn):Ln={},ln(Ni,Ln,"api.caller",{obj:Ni,args:rr,parentObjId:dn.objId,objId:Ln.objId,prop:yt.prop},di),Ln};return Ni.objId=-1,yt.getter!==void 0&&(Ni.objId=zi,wn(Ni,nn[yt.getter],nn)),ln(dn,Ni,"api.getter",{parentObjId:dn.objId,objId:Ni.objId,prop:yt.prop},di,function(){delete kn["__"+yt.prop+"CacheValue"]}),Cn&&(this["__"+yt.prop+"CacheValue"]=Ni),Ni}return Ht},set:function(kn){var Cn=cn();return ln(dn,{},"api.setter",{value:kn,parentObjId:dn.objId,objId:-1,prop:yt.prop},Cn)}})};si.length;)Fn()}(qt,Gt,gn),qt.Events=Mt,qt.Enum=Yt,Me.Enum=qt.Enum,Me.Events=qt.Events,Me.Props=Vt,at(Me.url)){case Re.writer:Me.WordApplication=Me.WpsApplication=function(){return qt};break;case Re.spreadsheet:Me.ExcelApplication=Me.EtApplication=function(){return qt};break;case Re.presentation:Me.PPTApplication=Me.WppApplication=function(){return qt};break;case Re.pdf:Me.PDFApplication=function(){return qt}}Me.Application=qt,Me.Free=function(wn){return ot("api.free",{objId:wn},"")},Me.Stack=qt.Stack=(ut=function(wn){Me&&Me.Free(wn)},function(){var wn=[],dn=function(Sn){wn.push(Sn)};return ct.add(dn),{End:function(){ut(wn),ct.delete(dn)}}});var fn={};Le.add(function(wn){return Ie(Lt,void 0,void 0,function(){var dn,Sn,nn,si,Fn;return De(this,function(yt){switch(yt.label){case 0:return Nt(wn)?[2]:(dn=Le.parse(wn.data)).eventName==="api.event"&&dn.data?(Sn=dn.data,nn=Sn.eventName,si=Sn.data,(Fn=fn[nn])?[4,Fn(si)]:[3,2]):[3,2];case 1:yt.sent(),yt.label=2;case 2:return[2]}})})}),qt.Sub={};var sn=function(wn){var dn=Mt[wn];Object.defineProperty(qt.Sub,dn,{set:function(Sn){On(),fn[dn]=Sn,ge({eventName:"api.event.register",data:{eventName:dn,register:!!Sn,objId:xt+=1}})}})};for(var _t in Mt)sn(_t)}var Pt=["ExportAsFixedFormat","GetOperatorsInfo","ImportDataIntoFields","ReplaceText","ReplaceBookmark","GetBookmarkText","GetComments"];function an(Me,Ce,ut){for(var Lt=Ce.slice(0),Mt=function(){var Yt=Lt.shift();!Yt.alias&&~Pt.indexOf(Yt.prop)&&Lt.push(le(le({},Yt),{alias:Yt.prop+"Async"})),Object.defineProperty(Me,Yt.alias||Yt.prop,{get:function(){var Vt=this,Gt=Yt.cache===1,gn=Gt&&this["__"+Yt.prop+"CacheValue"];if(!gn){var qt=cn(),fn=it(Gt),sn=function(){for(var wn=[],dn=0,Sn;dn<arguments.length;dn++)wn[dn]=arguments[dn];return Yt.caller!==void 0?(Sn={objId:it()},an(Sn,ut[Yt.caller],ut)):Sn={},ln(_t,Sn,"api.caller",{obj:_t,args:wn,parentObjId:Me.objId,objId:Sn.objId,prop:Yt.prop},qt),Sn},_t=sn;return _t.objId=-1,Yt.getter!==void 0&&(_t.objId=fn,an(_t,ut[Yt.getter],ut)),ln(Me,_t,"api.getter",{parentObjId:Me.objId,objId:_t.objId,prop:Yt.prop},qt,function(){delete Vt["__"+Yt.prop+"CacheValue"]}),Gt&&(this["__"+Yt.prop+"CacheValue"]=_t),_t}return gn},set:function(Vt){var Gt=cn();return ln(Me,{},"api.setter",{value:Vt,parentObjId:Me.objId,objId:-1,prop:Yt.prop},Gt)}})};Lt.length;)Mt()}function ln(Me,Ce,ut,Lt,Mt,Yt){var Vt,Gt=(Me.done?Me.done():Promise.resolve()).then(function(){return Vt||(Vt=ot(ut,Lt,Mt,Yt)),Vt});Ce.done=function(){return Gt},Ce.then=function(gn,qt){return Lt.objId>=0?(Ce.then=null,Ce.catch=null,Gt.then(function(){gn(Ce)}).catch(function(fn){return qt(fn)})):Gt.then(gn,qt)},Ce.catch=function(gn){return Gt.catch(gn)},Ce.Destroy=function(){return ot("api.free",{objId:Ce.objId},"")}}var zn={},En=null,ii={fileOpen:"fileOpen",tabSwitch:"tabSwitch",fileSaved:"fileSaved",fileStatus:"fileStatus",fullscreenChange:"fullscreenChange",error:"error",stage:"stage"},kt={getToken:"api.getToken",onToast:"event.toast",onHyperLinkOpen:"event.hyperLinkOpen",getClipboardData:"api.getClipboardData"};function Kn(Me,Ce,ut,Lt,Mt,Yt,Vt){var Gt=this;ut===void 0&&(ut={}),Le.add(function(gn){return Ie(Gt,void 0,void 0,function(){var qt,fn,sn,_t,wn,dn,Sn,nn,si,Fn,yt,kn,Cn,Ht,di,zi,Ni,Ln,rr;return De(this,function(Hi){switch(Hi.label){case 0:return Nt(gn)?[2]:(qt=Le.parse(gn.data),fn=qt.eventName,sn=fn===void 0?"":fn,_t=qt.data,wn=_t===void 0?null:_t,dn=qt.url,Sn=dn===void 0?null:dn,["wps.jssdk.api"].indexOf(sn)!==-1?[2]:sn!=="ready"?[3,1]:(Mt.apiReadySended&&function(ui){var wi=[];Object.keys(zn).forEach(function(Di){zn[Di].forEach(function(ke){var mi=Di;ui.off(mi,ke),wi.push({handle:ke,eventName:mi})}),delete zn[Di]}),wi.forEach(function(Di){var ke=Di.eventName,mi=Di.handle;En==null||En.ApiEvent.AddApiEventListener(ke,mi)})}(Ce),ge({eventName:"setConfig",data:le(le({},ut),{version:Me.version})}),Me.tokenData&&Me.setToken(le(le({},Me.tokenData),{hasRefreshTokenConfig:!!ut.refreshToken})),Me.iframeReady=!0,[3,15]));case 1:return sn!=="error"?[3,2]:(Ce.emit(ii.error,wn),[3,15]);case 2:return sn!=="open.result"?[3,3]:(((Ni=wn==null?void 0:wn.fileInfo)===null||Ni===void 0?void 0:Ni.officeVersion)!==void 0&&(Me.mainVersion=wn.fileInfo.officeVersion,console.log("aliyun Main Version: V"+Me.mainVersion)),Ce.emit(ii.fileOpen,wn),[3,15]);case 3:return sn!=="api.scroll"?[3,4]:(window.scrollTo(wn.x,wn.y),[3,15]);case 4:if(sn!==kt.getToken)return[3,9];nn={token:!1},Hi.label=5;case 5:return Hi.trys.push([5,7,,8]),[4,Mt.refreshToken()];case 6:return nn=Hi.sent(),[3,8];case 7:return si=Hi.sent(),console.error("refreshToken: "+(si||"fail to get")),[3,8];case 8:return ge({eventName:kt.getToken+".reply",data:nn}),[3,15];case 9:if(sn!==kt.getClipboardData)return[3,14];Fn={text:"",html:""},Hi.label=10;case 10:return Hi.trys.push([10,12,,13]),[4,Mt.getClipboardData()];case 11:return Fn=Hi.sent(),[3,13];case 12:return yt=Hi.sent(),console.error("getClipboardData: "+(yt||"fail to get")),[3,13];case 13:return ge({eventName:kt.getClipboardData+".reply",data:Fn}),[3,15];case 14:sn===kt.onToast?Mt.onToast(wn):sn===kt.onHyperLinkOpen?Mt.onHyperLinkOpen(wn):sn==="stage"?Ce.emit(ii.stage,wn):sn==="event.callback"?(kn=wn.eventName,Cn=wn.data,Ht=kn,kn==="fullScreenChange"&&(Ht=ii.fullscreenChange),kn==="file.saved"&&(Ht=ii.fileStatus),(!((Ln=ut.commonOptions)===null||Ln===void 0)&&Ln.isBrowserViewFullscreen||!((rr=ut.commonOptions)===null||rr===void 0)&&rr.isParentFullscreen)&&Ht==="fullscreenchange"&&(di=Cn.status,zi=Cn.isDispatchEvent,ut.commonOptions.isBrowserViewFullscreen?function(ui,wi,Di,ke){ui===0?wi.style="position: static; width: "+Di.width+"; height: "+Di.height:ui===1&&(wi.style="position: absolute; width: 100%; height: 100%"),ke&&function(mi){["fullscreen","fullscreenElement"].forEach(function(Yn){Object.defineProperty(document,Yn,{get:function(){return!!mi.status},configurable:!0})});var ki=new CustomEvent("fullscreenchange");document.dispatchEvent(ki)}({status:ui})}(di,Yt,Vt,zi):ut.commonOptions.isParentFullscreen&&function(ui,wi,Di){var ke=document.querySelector(Di),mi=ke&&ke.nodeType===1?ke:wi;if(ui===0){var ki=document,Yn=ki.exitFullscreen||ki.mozCancelFullScreen||ki.msExitFullscreen||ki.webkitCancelFullScreen||ki.webkitExitFullscreen;Yn.call(document)}else if(ui===1){var fi=mi.requestFullscreen||mi.mozRequestFullScreen||mi.msRequestFullscreen||mi.webkitRequestFullscreen;fi.call(mi)}}(di,Yt,ut.commonOptions.isParentFullscreen)),Ce.emit(Ht,Cn)):sn==="api.ready"&&An(Me,wn),Hi.label=15;case 15:return typeof Lt[sn]=="function"&&Lt[sn](Me,Sn||wn),[2]}})})})}function yi(Me){return new Promise(function(Ce){var ut=function(Lt){Nt(Lt)||Le.parse(Lt.data).eventName===Me&&(Ce(),Le.remove(ut))};Le.add(ut)})}function et(Me){var Ce,ut=this;Me===void 0&&(Me={}),En&&En.destroy();try{var Lt=bt(Me),Mt=Lt.subscriptions,Yt=Mt===void 0?{}:Mt,Vt=Lt.mount,Gt=Vt===void 0?null:Vt,gn=Lt.url,qt=Lt.refreshToken,fn=Lt.onToast,sn=Lt.onHyperLinkOpen,_t=Lt.getClipboardData;mt("origin",(gn.match(/https*:\/\/[^\/]+/g)||[])[0]);var wn=se(gn,Gt),dn=yi("ready"),Sn=yi("open.result"),nn=yi("api.ready"),si=Gt?{width:Gt.clientWidth+"px",height:Gt.clientHeight+"px"}:{width:"100vw",height:"100vh"};delete Lt.mount,gn&&delete Lt.url,delete Lt.subscriptions;var Fn=(Ce=Ce||Object.create(null),{on:function(Cn,Ht){(Ce[Cn]||(Ce[Cn]=[])).push(Ht)},off:function(Cn,Ht){Ce[Cn]&&Ce[Cn].splice(Ce[Cn].indexOf(Ht)>>>0,1)},emit:function(Cn,Ht){(Ce[Cn]||[]).slice().map(function(di){di(Ht)}),(Ce["*"]||[]).slice().map(function(di){di(Cn,Ht)})}}),yt={apiReadySended:!1},kn=function(Cn,Ht,di){return Ie(ut,void 0,void 0,function(){return De(this,function(zi){switch(zi.label){case 0:return function(Ni,Ln,rr){if(zn[Ni]){var Hi=!!zn[Ni].find(function(ui){return ui===Ln});return Hi&&rr==="off"?(Fn.off(Ni,Ln),zn[Ni]=zn[Ni].filter(function(ui){return ui!==Ln}),!!zn[Ni].length||(zn[Ni]=void 0,!1)):(Hi||rr!=="on"||(zn[Ni].push(Ln),Fn.on(Ni,Ln)),!0)}return rr==="on"?(zn[Ni]=[],zn[Ni].push(Ln),!1):rr==="off"||void 0}(Cn,Ht,di)?[3,2]:[4,dn];case 1:zi.sent(),function(Ni,Ln){var rr=Ni.eventName,Hi=Ni.type,ui=Ni.handle;Ln==="on"?Fn.on(rr,ui):Fn.off(rr,ui),Hi==="base.event"&&ge({eventName:"basic.event",data:{eventName:rr,action:Ln}}),On()}(function(Ni,Ln){var rr=Ni,Hi="base.event";switch(rr){case ii.fileSaved:console.warn("fileSaved\u4E8B\u4EF6\u76D1\u542C\u5373\u5C06\u5F03\u7528\uFF0C \u63A8\u8350\u4F7F\u7528fileStatus\u8FDB\u884C\u6587\u4EF6\u72B6\u6001\u7684\u76D1\u542C"),rr="fileStatus";break;case ii.fullscreenChange:rr="fullscreenchange";break;case"error":case"fileOpen":Hi="callback.event"}return{eventName:rr,type:Hi,handle:Ln}}(Cn,Ht),di),zi.label=2;case 2:return[2]}})})};return En={url:gn,iframe:wn,version:"1.1.19",iframeReady:!1,tokenData:null,commandBars:null,tabs:{getTabs:function(){return Ie(this,void 0,void 0,function(){return De(this,function(Cn){switch(Cn.label){case 0:return[4,dn];case 1:return Cn.sent(),[2,Oe({api:"tab.getTabs"})]}})})},switchTab:function(Cn){return Ie(this,void 0,void 0,function(){return De(this,function(Ht){switch(Ht.label){case 0:return[4,dn];case 1:return Ht.sent(),[2,Oe({api:"tab.switchTab",args:{tabKey:Cn}})]}})})}},setCooperUserColor:function(Cn){return Ie(this,void 0,void 0,function(){return De(this,function(Ht){switch(Ht.label){case 0:return[4,dn];case 1:return Ht.sent(),[2,Oe({api:"setCooperUserColor",args:Cn})]}})})},setToken:function(Cn){return Ie(this,void 0,void 0,function(){return De(this,function(Ht){switch(Ht.label){case 0:return[4,dn];case 1:return Ht.sent(),En.tokenData=Cn,ge({eventName:"setToken",data:Cn}),[2]}})})},ready:function(){return Ie(this,void 0,void 0,function(){return De(this,function(Cn){switch(Cn.label){case 0:return yt.apiReadySended?[3,2]:[4,Sn];case 1:Cn.sent(),yt.apiReadySended=!0,ge({eventName:"api.ready"}),Cn.label=2;case 2:return[4,nn];case 3:return Cn.sent(),[2,new Promise(function(Ht){return setTimeout(function(){return Ht(En==null?void 0:En.Application)},0)})]}})})},destroy:function(){zn={},wn.destroy(),Le.empty(),En=null,ct=new Set,xt=0,document.removeEventListener("fullscreenchange",yn),un()},save:function(){return Ie(this,void 0,void 0,function(){return De(this,function(Cn){switch(Cn.label){case 0:return[4,dn];case 1:return Cn.sent(),[2,Ae({api:"save"})]}})})},setCommandBars:function(Cn){return Ie(this,void 0,void 0,function(){return De(this,function(Ht){switch(Ht.label){case 0:return[4,dn];case 1:return Ht.sent(),At(Cn),[2]}})})},updateConfig:function(Cn){return Cn===void 0&&(Cn={}),Ie(this,void 0,void 0,function(){return De(this,function(Ht){switch(Ht.label){case 0:return[4,dn];case 1:return Ht.sent(),Cn.commandBars?(console.warn("Deprecated: `updateConfig()` \u65B9\u6CD5\u5373\u5C06\u5E9F\u5F03\uFF0C\u8BF7\u4F7F\u7528`setCommandBars()`\u4EE3\u66FF`updateConfig()`\u66F4\u65B0`commandBars`\u914D\u7F6E\u3002"),[4,At(Cn.commandBars)]):[3,3];case 2:Ht.sent(),Ht.label=3;case 3:return[2]}})})},executeCommandBar:function(Cn){return Ie(this,void 0,void 0,function(){return De(this,function(Ht){switch(Ht.label){case 0:return[4,dn];case 1:return Ht.sent(),At([{cmbId:Cn,attributes:[{name:"click",value:!0}]}]),[2]}})})},on:function(Cn,Ht){return Ie(this,void 0,void 0,function(){return De(this,function(di){return[2,this.ApiEvent.AddApiEventListener(Cn,Ht)]})})},off:function(Cn,Ht){return Ie(this,void 0,void 0,function(){return De(this,function(di){return[2,this.ApiEvent.RemoveApiEventListener(Cn,Ht)]})})},ApiEvent:{AddApiEventListener:function(Cn,Ht){return Ie(this,void 0,void 0,function(){return De(this,function(di){switch(di.label){case 0:return[4,kn(Cn,Ht,"on")];case 1:return[2,di.sent()]}})})},RemoveApiEventListener:function(Cn,Ht){return Ie(this,void 0,void 0,function(){return De(this,function(di){switch(di.label){case 0:return[4,kn(Cn,Ht,"off")];case 1:return[2,di.sent()]}})})}}},function(Cn,Ht,di,zi,Ni,Ln){Ht&&Ye(Ht)&&(Ni.refreshToken=Ht,Cn.refreshToken={eventName:kt.getToken}),Ln&&Ye(Ln)&&(Ni.getClipboardData=Ln,Cn.getClipboardData={eventName:kt.getClipboardData}),di&&Ye(di)&&(Ni.onToast=di,Cn.onToast={eventName:kt.onToast}),zi&&Ye(zi)&&(Ni.onHyperLinkOpen=zi,Cn.onHyperLinkOpen={eventName:kt.onHyperLinkOpen})}(Lt,qt,fn,sn,yt,_t),Kn(En,Fn,Lt,Yt,yt,wn,si),En}catch(Cn){console.error(Cn)}}console.log("aliyun JS-SDK V1.1.19");var ze=Object.freeze({__proto__:null,listener:Kn,config:et});window.WPS=ze;var xe=et,Te={config:xe};de.config=xe,de.default=Te,Object.defineProperty(de,"__esModule",{value:!0})})},46699:function(Ge,be,de){"use strict";de.d(be,{Ax:function(){return Le},Ds:function(){return Ye},KI:function(){return Ve},SI:function(){return De},f1:function(){return Ie}});var le=de(346);function Ie(Je){let Xe=!0;if(Je.length>0){for(let qe=0;qe<Je.length;qe++)if(Je[qe].compile_success==0||!Je[qe].compile_success){Xe=!1;break}}else Xe=!1;return Xe}function De(Je,Xe=""){let qe=[];for(let mt=0;mt<Je.length;mt++){let st=Je[mt],Nt=Xe?`${Xe}/${st.name}`:`${st.name}`;qe.push({title:st.name,type:st.type,isLeaf:st.type!=="tree",key:Nt})}return qe}function Le(Je,Xe,qe){for(let mt=0;mt<Je.length;mt++){let st=Je[mt];if(st.key===Xe){st.children=qe;break}st.children&&Le(st.children,Xe,qe)}return Je}function Ye(Je,Xe,qe){let mt;return function(){let st=this,Nt=arguments,_e=function(){mt=null,qe||Je.apply(st,Nt)},te=qe&&!mt;clearTimeout(mt),mt=setTimeout(_e,Xe),te&&Je.apply(st,Nt)}}const Re=!0,Ve=le.Z.API_SERVER},84842:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return _e}});var le=de(99571),Ie=de(59301),De=Object.defineProperty,Le=Object.defineProperties,Ye=Object.getOwnPropertyDescriptors,Re=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,Xe=(te,ne,he)=>ne in te?De(te,ne,{enumerable:!0,configurable:!0,writable:!0,value:he}):te[ne]=he,qe=(te,ne)=>{for(var he in ne||(ne={}))Ve.call(ne,he)&&Xe(te,he,ne[he]);if(Re)for(var he of Re(ne))Je.call(ne,he)&&Xe(te,he,ne[he]);return te},mt=(te,ne)=>Le(te,Ye(ne)),st=(te,ne)=>{var he={};for(var se in te)Ve.call(te,se)&&ne.indexOf(se)<0&&(he[se]=te[se]);if(te!=null&&Re)for(var se of Re(te))ne.indexOf(se)<0&&Je.call(te,se)&&(he[se]=te[se]);return he},Nt=(te,ne,he)=>new Promise((se,ge)=>{var Se=Be=>{try{Oe(he.next(Be))}catch(Ke){ge(Ke)}},Ae=Be=>{try{Oe(he.throw(Be))}catch(Ke){ge(Ke)}},Oe=Be=>Be.done?se(Be.value):Promise.resolve(Be.value).then(Se,Ae);Oe((he=he.apply(te,ne)).next())});const _e=te=>{var ne=te,{children:he}=ne,se=st(ne,["children"]);const[ge,Se]=(0,Ie.useState)(!1);return Ie.createElement(le.ZP,mt(qe({},se),{loading:ge,onClick:Ae=>Nt(void 0,null,function*(){try{Se(!0),yield se.onClick(Ae),Se(!1)}catch(Oe){console.error(Oe),Se(!1)}})}),he)}},85788:function(Ge,be,de){"use strict";var le=de(86204),Ie=de.n(le),De=Object.defineProperty,Le=(Je,Xe,qe)=>Xe in Je?De(Je,Xe,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Je[Xe]=qe,Ye=(Je,Xe,qe)=>Le(Je,typeof Xe!="symbol"?Xe+"":Xe,qe),Re=(Je,Xe,qe)=>new Promise((mt,st)=>{var Nt=ne=>{try{te(qe.next(ne))}catch(he){st(he)}},_e=ne=>{try{te(qe.throw(ne))}catch(he){st(he)}},te=ne=>ne.done?mt(ne.value):Promise.resolve(ne.value).then(Nt,_e);te((qe=qe.apply(Je,Xe)).next())});class Ve extends le.EventEmitter{constructor(Xe,qe){super(),Ye(this,"url"),Ye(this,"body"),Ye(this,"fullContent",""),Ye(this,"controller",null),Ye(this,"buffer",""),this.url=Xe,this.body=qe}startStream(){return Re(this,null,function*(){this.controller=new AbortController;const{signal:Xe}=this.controller;try{const qe=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:Xe});if(!qe.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${qe.status}`);const mt=qe.headers.get("content-type");if(!mt)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(mt.includes("application/json")){const _e=yield qe.json();this.emit("error",_e);return}if(!mt.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const st=qe.body.getReader(),Nt=new TextDecoder("utf-8");for(;;){const{done:_e,value:te}=yield st.read();if(_e)break;const ne=Nt.decode(te,{stream:!0});this.buffer+=ne;const he=this.buffer.split(`
|
|
|
`);this.buffer=he.pop()||"";for(const se of he)if(se.startsWith("data:")){const ge=se.slice(5).trim();if(ge==="[DONE]")break;try{const Se=JSON.parse(ge);Se.data&&this.handleData(Se.data)}catch(Se){this.buffer=se+`
|
|
|
`+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",Se)}}}this.emit("done",this.fullContent)}catch(qe){qe.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",qe.message)}})}handleData(Xe){Xe.content&&(this.fullContent+=Xe.content,this.emit("data",{chunk:Xe,full:this.fullContent}))}cancelRequest(){var Xe;(Xe=this.controller)==null||Xe.abort()}}be.Z=Ve},81679:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return Nt}});var le=de(59301),Ie=de(30641),De=de(77019),Le=de(5269),Ye={smartWrp:"smartWrp___NjRcB"},Re=de(75975),Ve=de(9148),Je=de(84842),Xe=de(59301),qe=(_e,te,ne)=>new Promise((he,se)=>{var ge=Oe=>{try{Ae(ne.next(Oe))}catch(Be){se(Be)}},Se=Oe=>{try{Ae(ne.throw(Oe))}catch(Be){se(Be)}},Ae=Oe=>Oe.done?he(Oe.value):Promise.resolve(Oe.value).then(ge,Se);Ae((ne=ne.apply(_e,te)).next())});const mt=`<!DOCTYPE html>
|
|
|
<html lang="en">
|
|
|
<head>
|
|
|
<meta charset="UTF-8">
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
<title>\u5FEB\u901F\u6392\u5E8F\u6F14\u793A</title>
|
|
|
<style>
|
|
|
body {
|
|
|
font-family: Arial, sans-serif;
|
|
|
text-align: center;
|
|
|
margin: 20px;
|
|
|
}
|
|
|
.array-container {
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
align-items: flex-end;
|
|
|
height: 300px;
|
|
|
margin-top: 20px;
|
|
|
}
|
|
|
.bar {
|
|
|
width: 30px;
|
|
|
margin: 0 2px;
|
|
|
background-color: #4caf50;
|
|
|
color: white;
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
|
border-radius: 5px;
|
|
|
transition: all 0.3s ease;
|
|
|
}
|
|
|
.bar.sorted {
|
|
|
background-color: #ff9800;
|
|
|
}
|
|
|
.bar.pivot {
|
|
|
background-color: #f44336;
|
|
|
}
|
|
|
</style>
|
|
|
</head>
|
|
|
<body>
|
|
|
<h1>\u5FEB\u901F\u6392\u5E8F\u7B97\u6CD5\u6F14\u793A</h1>
|
|
|
<button id="start-sort">\u5F00\u59CB\u6392\u5E8F</button>
|
|
|
<div class="array-container" id="array-container"></div>
|
|
|
|
|
|
<script>
|
|
|
const array = [34, 7, 23, 32, 5, 62]; // \u56FA\u5B9A\u6570\u7EC4
|
|
|
let bars = [];
|
|
|
|
|
|
// \u521D\u59CB\u5316\u6570\u7EC4\u663E\u793A
|
|
|
function initArrayDisplay() {
|
|
|
const container = document.getElementById('array-container');
|
|
|
container.innerHTML = '';
|
|
|
bars = array.map(value => {
|
|
|
const bar = document.createElement('div');
|
|
|
bar.className = 'bar';
|
|
|
bar.style.height = \`\${value * 5}px\`;
|
|
|
bar.textContent = value;
|
|
|
container.appendChild(bar);
|
|
|
return bar;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
// \u9AD8\u4EAE\u67D0\u4E2A\u8303\u56F4\u5185\u7684\u67F1\u5B50
|
|
|
function highlightBars(indices, className) {
|
|
|
indices.forEach(index => bars[index].classList.add(className));
|
|
|
}
|
|
|
|
|
|
// \u79FB\u9664\u9AD8\u4EAE
|
|
|
function removeHighlightBars(indices, className) {
|
|
|
indices.forEach(index => bars[index].classList.remove(className));
|
|
|
}
|
|
|
|
|
|
// \u5FEB\u901F\u6392\u5E8F\u4E3B\u51FD\u6570
|
|
|
async function quickSort(arr, left = 0, right = arr.length - 1) {
|
|
|
if (left >= right) return;
|
|
|
|
|
|
const pivotIndex = await partition(arr, left, right);
|
|
|
await quickSort(arr, left, pivotIndex - 1);
|
|
|
await quickSort(arr, pivotIndex + 1, right);
|
|
|
}
|
|
|
|
|
|
// \u5206\u533A\u51FD\u6570
|
|
|
async function partition(arr, left, right) {
|
|
|
const pivot = arr[right];
|
|
|
let i = left - 1;
|
|
|
|
|
|
highlightBars([right], 'pivot'); // \u9AD8\u4EAE\u57FA\u51C6\u503C
|
|
|
|
|
|
for (let j = left; j < right; j++) {
|
|
|
highlightBars([j], 'sorted'); // \u9AD8\u4EAE\u5F53\u524D\u6BD4\u8F83\u5143\u7D20
|
|
|
await sleep(500);
|
|
|
|
|
|
if (arr[j] <= pivot) {
|
|
|
i++;
|
|
|
[arr[i], arr[j]] = [arr[j], arr[i]];
|
|
|
|
|
|
// \u66F4\u65B0\u67F1\u5B50\u9AD8\u5EA6
|
|
|
bars[i].style.height = \`\${arr[i] * 5}px\`;
|
|
|
bars[i].textContent = arr[i];
|
|
|
bars[j].style.height = \`\${arr[j] * 5}px\`;
|
|
|
bars[j].textContent = arr[j];
|
|
|
|
|
|
await sleep(500);
|
|
|
}
|
|
|
|
|
|
removeHighlightBars([j], 'sorted'); // \u79FB\u9664\u9AD8\u4EAE
|
|
|
}
|
|
|
|
|
|
// \u5C06\u57FA\u51C6\u503C\u653E\u5230\u6B63\u786E\u4F4D\u7F6E
|
|
|
[arr[i + 1], arr[right]] = [arr[right], arr[i + 1]];
|
|
|
bars[i + 1].style.height = \`\${arr[i + 1] * 5}px\`;
|
|
|
bars[i + 1].textContent = arr[i + 1];
|
|
|
bars[right].style.height = \`\${arr[right] * 5}px\`;
|
|
|
bars[right].textContent = arr[right];
|
|
|
|
|
|
removeHighlightBars([right], 'pivot'); // \u79FB\u9664\u57FA\u51C6\u503C\u9AD8\u4EAE
|
|
|
highlightBars([i + 1], 'sorted'); // \u9AD8\u4EAE\u6700\u7EC8\u4F4D\u7F6E
|
|
|
await sleep(500);
|
|
|
removeHighlightBars([i + 1], 'sorted');
|
|
|
|
|
|
return i + 1;
|
|
|
}
|
|
|
|
|
|
// \u5EF6\u8FDF\u51FD\u6570
|
|
|
function sleep(ms) {
|
|
|
return new Promise(resolve => setTimeout(resolve, ms));
|
|
|
}
|
|
|
|
|
|
// \u5F00\u59CB\u6392\u5E8F\u6309\u94AE\u70B9\u51FB\u4E8B\u4EF6
|
|
|
document.getElementById('start-sort').addEventListener('click', () => {
|
|
|
quickSort(array);
|
|
|
});
|
|
|
|
|
|
// \u521D\u59CB\u5316\u9875\u9762
|
|
|
initArrayDisplay();
|
|
|
<\/script>
|
|
|
</body>
|
|
|
</html>`;function st({open:_e=!0,onChange:te,defaultValue:ne,placement:he,width:se,height:ge,extra:Se,onDynamic:Ae,showExtra:Oe=!0}){const Be=(0,le.useRef)(null),Ke=(0,le.useRef)(null),[rt,ot]=(0,le.useState)(ne||""),[ht,bt]=(0,le.useState)(ne||""),[at,At]=(0,le.useState)(!!_e),[It,$t]=(0,le.useState)(1),Tn={selectOnLineNumbers:!0};(0,le.useEffect)(()=>{_e&&(ot(ne),bt(ne),At(!0))},[_e,ne]),(0,le.useEffect)(()=>{rt!==""&&(clearTimeout(Ke.current),Ke.current=setTimeout(()=>{const un=document.createElement("iframe");if(un.style.width="100%",un.style.height="100%",un.style.border="0",Be.current){Be.current.innerHTML="",Be.current.appendChild(un);const On=un.contentDocument||un.contentWindow.document;On.open(),On.write(rt),On.close()}},1e3))},[_e,rt]);const yn=un=>{ot(un),te==null||te(un,ht)};return Xe.createElement(Ie.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:at,width:Oe?700:"100%",height:ge||"100vh",rootClassName:Ye.smartWrp,destroyOnClose:!0,onClose:()=>At(!1),extra:Oe&&Xe.createElement("div",null,Xe.createElement(Ve.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:It,onChange:un=>$t(un)}),Xe.createElement(Je.Z,{type:"primary",className:"ml20",onClick:()=>qe(this,null,function*(){yield Ae(rt,()=>{At(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},Xe.createElement(De.Z,{className:"h100"},Xe.createElement(Le.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:It===1?"block":"none"}},Xe.createElement("div",{className:"h100",ref:Be})),Xe.createElement(Le.Z,{flex:"1",style:{display:It===2?"block":"none"}},Xe.createElement(Re.ZP,{height:"90vh",value:ne,language:"html",theme:"vs",showMiniMap:!1,options:Tn,onChange:yn}))))}var Nt=st},10946:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return ot}});var le=de(59301),Ie=de(74439),De=de(77596),Le=de(3310),Ye=de(14179),Re=de(56102),Ve={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Je=de(6767),Xe=de(90083),qe=de(95827),mt=de(30084),st=de(10787),Nt=de(8944),_e=de(81679),te=Object.defineProperty,ne=Object.defineProperties,he=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Ae=(ht,bt,at)=>bt in ht?te(ht,bt,{enumerable:!0,configurable:!0,writable:!0,value:at}):ht[bt]=at,Oe=(ht,bt)=>{for(var at in bt||(bt={}))ge.call(bt,at)&&Ae(ht,at,bt[at]);if(se)for(var at of se(bt))Se.call(bt,at)&&Ae(ht,at,bt[at]);return ht},Be=(ht,bt)=>ne(ht,he(bt)),Ke=(ht,bt)=>{var at={};for(var At in ht)ge.call(ht,At)&&bt.indexOf(At)<0&&(at[At]=ht[At]);if(ht!=null&&se)for(var At of se(ht))bt.indexOf(At)<0&&Se.call(ht,At)&&(at[At]=ht[At]);return at},ot=({onFinish:ht,value:bt,streamingStatus:at,cancelIndex:At,loadImage:It,onDynamic:$t})=>{const[Tn,yn]=(0,le.useState)(""),[un,On]=(0,le.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[xt,ct]=(0,le.useState)(0),[it,cn]=(0,le.useState)(!1),An=ln=>ln.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(zn,En)=>`<mathx data-text="${En.trim()}">$$${En.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Pt=()=>{cn(!0),ht==null||ht()};(0,le.useEffect)(()=>{const ln=It?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
|
|
|
|
|
|
${bt}`:bt,zn=An(ln);if(!it)if(It||!at||At>0){yn(zn),ct(zn.length),(!at||At>0)&&!It&&Pt();return}else if((zn==null?void 0:zn.length)<4)yn(zn),ct(zn.length);else if(xt<zn.length){const En=zn.length-xt,ii=setInterval(()=>{yn(zn.slice(0,xt+2)),ct(kt=>kt+2)},En>10?Math.max(500/(En/2),20):50);return()=>clearInterval(ii)}else at||Pt()},[bt,at,At,It,xt]);const an=(0,le.useMemo)(()=>le.createElement("section",{className:`${Ve.answer} fadeIn animated edu_md`},le.createElement(Ie.UG,{remarkPlugins:[mt.Z,st.Z],rehypePlugins:[qe.Z,Le.Z],components:{code(ln){var zn=ln,{node:En,inline:ii,className:kt,children:Kn}=zn,yi=Ke(zn,["node","inline","className","children"]);const et=/language-(\w+)/.exec(kt||""),ze=String(Kn).trim();return ii||!et?le.createElement("code",Oe({className:kt},yi),Kn):le.createElement("code",{className:Ve.codeCopy,"data-text":`\`\`\`${et?et[1]:""}
|
|
|
${Kn}
|
|
|
\`\`\``},le.createElement(Re.CopyToClipboard,{text:ze,onCopy:()=>Je.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},le.createElement("button",null,"\u590D\u5236")),et[1]==="html"&&it&&le.createElement("button",{className:Ve.runCode,onClick:()=>{On(Oe({},Be(Oe({},un),{open:++un.open,defaultValue:ze,language:et[1]})))}},"\u8FD0\u884CHTML"),le.createElement(De.Z,Oe({wrapLongLines:!0,style:Ye.Z,language:et[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},yi),ze))},img({node:ln}){var zn;const En=(zn=ln.properties)==null?void 0:zn.src;return le.createElement(Xe.Z,{src:En,width:320,"data-text":En,onLoad:()=>It&&setTimeout(()=>Pt(),500)})},a:ln=>{var zn=ln,{node:En}=zn,ii=Ke(zn,["node"]);return le.createElement("a",Be(Oe({},ii),{target:"_blank",rel:"noopener noreferrer"}))}}},it?Tn:`${Tn}__`)),[Tn]);return le.createElement(le.Fragment,null,le.createElement(_e.Z,{defaultValue:un.defaultValue,open:un.open,language:un.language,height:un.height,onChange:(ln,zn)=>{yn(Tn.replaceAll(zn,ln))},onDynamic:$t}),an)}},14531:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return Ye}});var le=de(59301),Ie=de(51257),De={draggableImage:"draggableImage___vcTso",img:"img___xAyno",close:"close___WUtfj",extraNode:"extraNode___tnBrt"},Ye=({src:Re,onClick:Ve,topPercentage:Je=.62,draggableExtraNode:Xe})=>{const qe=(0,le.useRef)(null),mt=(0,le.useRef)(!1),st=(0,le.useRef)(!1),[Nt,_e]=(0,le.useState)(window.innerHeight*Je),[te,ne]=(0,le.useState)(!1),he=10;return(0,le.useEffect)(()=>{if(qe.current){let se=function(Be){var Ke;mt.current=!0,Oe=Be.pageY,Ae=Be.pageY-(((Ke=qe.current)==null?void 0:Ke.getBoundingClientRect().top)||0),(0,Ie.kk)("none"),document.onselectstart=function(){return!1}},ge=function(){mt.current&&!st.current&&Ve&&Ve(),mt.current=!1,st.current=!1,(0,Ie.kk)("auto"),document.onselectstart=null},Se=function(Be){var Ke;if(mt.current){const ot=Be.pageY-Ae,ht=window.innerHeight-(((Ke=qe.current)==null?void 0:Ke.offsetHeight)||0)-50,bt=50;if(!st.current&&Math.abs(Oe-Be.pageY)>he&&(st.current=!0),st.current){let at=Math.max(bt,Math.min(ot,ht));_e(at)}}},Ae=0,Oe=0;return qe.current.addEventListener("mousedown",se),document.addEventListener("mousemove",Se),document.addEventListener("mouseup",ge),()=>{var Be,Ke;(Ke=(Be=qe==null?void 0:qe.current)==null?void 0:Be.removeEventListener)==null||Ke.call(Be,"mousedown",se),document.removeEventListener("mousemove",Se),document.removeEventListener("mouseup",ge)}}},[Ve]),(0,le.useEffect)(()=>{const se=()=>{_e(window.innerHeight*Je)};return window.addEventListener("resize",se),()=>{window.removeEventListener("resize",se)}},[Je]),le.createElement("div",{className:De.draggableImage,style:{top:`${Nt}px`,display:te?"none":"block",cursor:mt.current?"grabbing":"grab"},ref:qe},Xe&&le.createElement("div",{className:De.extraNode,onMouseUp:se=>se.stopPropagation(),onMouseDownCapture:se=>se.stopPropagation()},Xe),le.createElement("img",{className:De.img,src:Re,width:60,draggable:"false"}),le.createElement("i",{className:`iconfont icon-tupianguanbi ${De.close}`,onMouseUp:se=>{se.stopPropagation(),ne(!0)}}))}},3418:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return Oe}});var le=de(59301),Ie={select:"select___Kt_GE",box:"box___S5_ly",text:"text___dtZDv",itemWrap:"itemWrap___xmw7x",item:"item___io6Bx",active:"active___nHRTI"},De=de(77736),Le=Object.defineProperty,Ye=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,Je=(Be,Ke,rt)=>Ke in Be?Le(Be,Ke,{enumerable:!0,configurable:!0,writable:!0,value:rt}):Be[Ke]=rt,Xe=(Be,Ke)=>{for(var rt in Ke||(Ke={}))Re.call(Ke,rt)&&Je(Be,rt,Ke[rt]);if(Ye)for(var rt of Ye(Ke))Ve.call(Ke,rt)&&Je(Be,rt,Ke[rt]);return Be};const qe=Be=>React.createElement("svg",Xe({className:"logo1_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},Be),React.createElement("path",{d:"M1019.407 620.8 891.834 397.781 946.49 293.12a29.099 29.099 0 0 0 6.4-36.395l-70.187-126.592a30.08 30.08 0 0 0-24.576-13.653H597.519L539.194 14.507a27.35 27.35 0 0 0-20.907-14.55H380.644a29.141 29.141 0 0 0-24.618 14.55v5.546L225.806 243.03H100.923a29.184 29.184 0 0 0-25.515 13.654L3.428 384.085a32.768 32.768 0 0 0 0 29.184L132.836 638.08 74.511 740.053a32.768 32.768 0 0 0 0 29.056l66.517 116.566a29.907 29.907 0 0 0 25.515 14.506H427.15l62.848 109.227A30.08 30.08 0 0 0 512.783 1024H660.41a29.141 29.141 0 0 0 24.576-14.55l128.469-224.853h114.773a31.915 31.915 0 0 0 24.662-15.445l66.474-117.419a28.16 28.16 0 0 0 0-30.976l.043.043zm-161.28 14.592L791.61 512.469 518.287 993.963l-74.752-122.88h-273.28l65.621-119.211h139.392L101.86 272.213h143.062L380.687 30.08l68.352 119.253-70.187 122.88H925.54l-69.205 121.942 137.6 241.194H858.17z",fill:"#605BEC"}),React.createElement("path",{d:"m499.983 699.307 174.379-274.731H324.708z",fill:"#605BEC"}));var mt="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTEwMTkuNDA3IDYyMC44IDg5MS44MzQgMzk3Ljc4MSA5NDYuNDkgMjkzLjEyYTI5LjA5OSAyOS4wOTkgMCAwIDAgNi40LTM2LjM5NWwtNzAuMTg3LTEyNi41OTJhMzAuMDggMzAuMDggMCAwIDAtMjQuNTc2LTEzLjY1M0g1OTcuNTE5TDUzOS4xOTQgMTQuNTA3YTI3LjM1IDI3LjM1IDAgMCAwLTIwLjkwNy0xNC41NUgzODAuNjQ0YTI5LjE0MSAyOS4xNDEgMCAwIDAtMjQuNjE4IDE0LjU1djUuNTQ2TDIyNS44MDYgMjQzLjAzSDEwMC45MjNhMjkuMTg0IDI5LjE4NCAwIDAgMC0yNS41MTUgMTMuNjU0TDMuNDI4IDM4NC4wODVhMzIuNzY4IDMyLjc2OCAwIDAgMCAwIDI5LjE4NEwxMzIuODM2IDYzOC4wOCA3NC41MTEgNzQwLjA1M2EzMi43NjggMzIuNzY4IDAgMCAwIDAgMjkuMDU2bDY2LjUxNyAxMTYuNTY2YTI5LjkwNyAyOS45MDcgMCAwIDAgMjUuNTE1IDE0LjUwNkg0MjcuMTVsNjIuODQ4IDEwOS4yMjdBMzAuMDggMzAuMDggMCAwIDAgNTEyLjc4MyAxMDI0SDY2MC40MWEyOS4xNDEgMjkuMTQxIDAgMCAwIDI0LjU3Ni0xNC41NWwxMjguNDY5LTIyNC44NTNoMTE0Ljc3M2EzMS45MTUgMzEuOTE1IDAgMCAwIDI0LjY2Mi0xNS40NDVsNjYuNDc0LTExNy40MTlhMjguMTYgMjguMTYgMCAwIDAgMC0zMC45NzZsLjA0My4wNDN6bS0xNjEuMjggMTQuNTkyTDc5MS42MSA1MTIuNDY5IDUxOC4yODcgOTkzLjk2M2wtNzQuNzUyLTEyMi44OGgtMjczLjI4bDY1LjYyMS0xMTkuMjExaDEzOS4zOTJMMTAxLjg2IDI3Mi4yMTNoMTQzLjA2MkwzODAuNjg3IDMwLjA4bDY4LjM1MiAxMTkuMjUzLTcwLjE4NyAxMjIuODhIOTI1LjU0bC02OS4yMDUgMTIxLjk0MiAxMzcuNiAyNDEuMTk0SDg1OC4xN3oiIGZpbGw9IiM2MDVCRUMiLz48cGF0aCBkPSJtNDk5Ljk4MyA2OTkuMzA3IDE3NC4zNzktMjc0LjczMUgzMjQuNzA4eiIgZmlsbD0iIzYwNUJFQyIvPjwvc3ZnPg==",st=Object.defineProperty,Nt=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ne=(Be,Ke,rt)=>Ke in Be?st(Be,Ke,{enumerable:!0,configurable:!0,writable:!0,value:rt}):Be[Ke]=rt,he=(Be,Ke)=>{for(var rt in Ke||(Ke={}))_e.call(Ke,rt)&&ne(Be,rt,Ke[rt]);if(Nt)for(var rt of Nt(Ke))te.call(Ke,rt)&&ne(Be,rt,Ke[rt]);return Be};const se=Be=>React.createElement("svg",he({className:"logo2_svg__icon",viewBox:"0 0 1417 1024",xmlns:"http://www.w3.org/2000/svg",width:276.758,height:200},Be),React.createElement("path",{d:"M1364.44 118.705c-14.178-6.695-20.322 6.065-28.593 12.525-2.914 2.048-5.277 4.726-7.64 7.246-20.717 21.268-44.899 35.21-76.643 33.556a152.576 152.576 0 0 0-120.674 45.371c-7.404-41.826-32.06-66.875-69.553-82.865-19.693-8.35-39.543-16.7-53.248-34.737-9.61-12.919-12.288-27.333-17.015-41.512-3.15-8.507-6.144-17.25-16.384-18.668-11.185-1.733-15.517 7.247-19.928 14.73a189.125 189.125 0 0 0-23.552 98.461c1.575 76.88 35.446 138.083 102.636 181.642 7.562 4.963 9.531 9.925 7.09 17.25-4.49 14.967-9.926 29.54-14.81 44.584-2.992 9.61-7.561 11.658-18.274 7.483a309.484 309.484 0 0 1-96.886-63.015c-47.813-44.426-91.057-93.342-144.935-131.702a635.825 635.825 0 0 0-38.36-25.207c-54.982-51.2 7.167-93.262 21.582-98.225 14.966-5.199 5.277-23.158-43.402-22.922-48.68.237-93.184 15.833-149.977 36.628-8.428 3.15-17.092 5.514-25.993 7.326a557.844 557.844 0 0 0-160.768-5.436c-105.157 11.264-189.204 58.92-250.96 140.367-74.2 97.832-91.687 208.975-70.261 325.002 22.449 122.25 87.434 223.468 187.47 302.631 103.582 82 222.917 122.172 359.188 114.452 82.708-4.568 174.79-15.202 278.686-99.485 26.151 12.445 53.642 17.486 99.249 21.267 35.131 3.072 69.002-1.733 95.153-6.931 40.96-8.35 38.203-44.741 23.316-51.437-120.202-53.72-93.814-31.822-117.839-49.624 61.125-69.317 153.206-141.312 189.204-374.706 2.835-18.51.472-30.168 0-45.213-.237-9.137 1.969-12.603 12.918-13.706a240.089 240.089 0 0 0 86.173-25.442c77.982-40.803 109.332-107.914 116.736-188.259 1.103-12.288-.236-24.97-13.705-31.429zM685.45 842.043C569.108 754.215 512.55 725.307 489.157 726.49c-21.82 1.26-17.96 25.206-13.155 40.802 5.042 15.439 11.58 26.073 20.717 39.621 6.301 8.9 10.791 22.213-6.302 32.295-37.494 22.213-102.794-7.561-105.787-8.98-76.012-42.929-139.421-99.564-184.241-176.994a523.894 523.894 0 0 1-72.468-239.93c-1.024-20.56 5.278-27.885 26.703-31.587a272.148 272.148 0 0 1 85.307-2.127c118.942 16.699 220.16 67.741 305.073 148.48 48.443 46.001 85.071 100.982 122.88 154.703 40.173 57.029 83.338 111.458 138.32 155.963 19.376 15.675 34.894 27.569 49.781 36.234-44.74 4.805-119.414 5.829-170.456-32.926zm55.926-344.615c0-5.357 2.757-10.398 7.326-13.47a17.723 17.723 0 0 1 22.134 2.048c3.072 2.915 4.805 7.09 4.805 11.422a16.778 16.778 0 0 1-17.25 16.541 17.33 17.33 0 0 1-12.131-4.883 15.911 15.911 0 0 1-4.884-11.658zm173.529 85.464a104.37 104.37 0 0 1-33.005 8.586 71.444 71.444 0 0 1-44.504-13.548c-15.282-12.288-26.23-19.141-30.72-40.645a89.167 89.167 0 0 1 .787-31.429c3.939-17.487-.393-28.75-13.312-38.912-10.476-8.35-23.71-10.634-38.36-10.634a32.06 32.06 0 0 1-14.179-4.175c-6.144-2.914-11.106-10.24-6.301-19.14a60.18 60.18 0 0 1 10.712-11.265c19.85-10.79 42.693-7.246 63.882.788 19.693 7.798 34.501 21.898 55.926 41.905 21.74 24.183 25.68 30.8 38.125 48.916 9.846 14.179 18.747 28.75 24.89 45.45 3.703 10.397-1.102 18.905-13.941 24.103z",fill:"#4D6BFE"}));var ge="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDE0MTcgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjc2Ljc1OCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik0xMzY0LjQ0IDExOC43MDVjLTE0LjE3OC02LjY5NS0yMC4zMjIgNi4wNjUtMjguNTkzIDEyLjUyNS0yLjkxNCAyLjA0OC01LjI3NyA0LjcyNi03LjY0IDcuMjQ2LTIwLjcxNyAyMS4yNjgtNDQuODk5IDM1LjIxLTc2LjY0MyAzMy41NTZhMTUyLjU3NiAxNTIuNTc2IDAgMCAwLTEyMC42NzQgNDUuMzcxYy03LjQwNC00MS44MjYtMzIuMDYtNjYuODc1LTY5LjU1My04Mi44NjUtMTkuNjkzLTguMzUtMzkuNTQzLTE2LjctNTMuMjQ4LTM0LjczNy05LjYxLTEyLjkxOS0xMi4yODgtMjcuMzMzLTE3LjAxNS00MS41MTItMy4xNS04LjUwNy02LjE0NC0xNy4yNS0xNi4zODQtMTguNjY4LTExLjE4NS0xLjczMy0xNS41MTcgNy4yNDctMTkuOTI4IDE0LjczYTE4OS4xMjUgMTg5LjEyNSAwIDAgMC0yMy41NTIgOTguNDYxYzEuNTc1IDc2Ljg4IDM1LjQ0NiAxMzguMDgzIDEwMi42MzYgMTgxLjY0MiA3LjU2MiA0Ljk2MyA5LjUzMSA5LjkyNSA3LjA5IDE3LjI1LTQuNDkgMTQuOTY3LTkuOTI2IDI5LjU0LTE0LjgxIDQ0LjU4NC0yLjk5MiA5LjYxLTcuNTYxIDExLjY1OC0xOC4yNzQgNy40ODNhMzA5LjQ4NCAzMDkuNDg0IDAgMCAxLTk2Ljg4Ni02My4wMTVjLTQ3LjgxMy00NC40MjYtOTEuMDU3LTkzLjM0Mi0xNDQuOTM1LTEzMS43MDJhNjM1LjgyNSA2MzUuODI1IDAgMCAwLTM4LjM2LTI1LjIwN2MtNTQuOTgyLTUxLjIgNy4xNjctOTMuMjYyIDIxLjU4Mi05OC4yMjUgMTQuOTY2LTUuMTk5IDUuMjc3LTIzLjE1OC00My40MDItMjIuOTIyLTQ4LjY4LjIzNy05My4xODQgMTUuODMzLTE0OS45NzcgMzYuNjI4LTguNDI4IDMuMTUtMTcuMDkyIDUuNTE0LTI1Ljk5MyA3LjMyNmE1NTcuODQ0IDU1Ny44NDQgMCAwIDAtMTYwLjc2OC01LjQzNmMtMTA1LjE1NyAxMS4yNjQtMTg5LjIwNCA1OC45Mi0yNTAuOTYgMTQwLjM2Ny03NC4yIDk3LjgzMi05MS42ODcgMjA4Ljk3NS03MC4yNjEgMzI1LjAwMiAyMi40NDkgMTIyLjI1IDg3LjQzNCAyMjMuNDY4IDE4Ny40NyAzMDIuNjMxIDEwMy41ODIgODIgMjIyLjkxNyAxMjIuMTcyIDM1OS4xODggMTE0LjQ1MiA4Mi43MDgtNC41NjggMTc0Ljc5LTE1LjIwMiAyNzguNjg2LTk5LjQ4NSAyNi4xNTEgMTIuNDQ1IDUzLjY0MiAxNy40ODYgOTkuMjQ5IDIxLjI2NyAzNS4xMzEgMy4wNzIgNjkuMDAyLTEuNzMzIDk1LjE1My02LjkzMSA0MC45Ni04LjM1IDM4LjIwMy00NC43NDEgMjMuMzE2LTUxLjQzNy0xMjAuMjAyLTUzLjcyLTkzLjgxNC0zMS44MjItMTE3LjgzOS00OS42MjQgNjEuMTI1LTY5LjMxNyAxNTMuMjA2LTE0MS4zMTIgMTg5LjIwNC0zNzQuNzA2IDIuODM1LTE4LjUxLjQ3Mi0zMC4xNjggMC00NS4yMTMtLjIzNy05LjEzNyAxLjk2OS0xMi42MDMgMTIuOTE4LTEzLjcwNmEyNDAuMDg5IDI0MC4wODkgMCAwIDAgODYuMTczLTI1LjQ0MmM3Ny45ODItNDAuODAzIDEwOS4zMzItMTA3LjkxNCAxMTYuNzM2LTE4OC4yNTkgMS4xMDMtMTIuMjg4LS4yMzYtMjQuOTctMTMuNzA1LTMxLjQyOXpNNjg1LjQ1IDg0Mi4wNDNDNTY5LjEwOCA3NTQuMjE1IDUxMi41NSA3MjUuMzA3IDQ4OS4xNTcgNzI2LjQ5Yy0yMS44MiAxLjI2LTE3Ljk2IDI1LjIwNi0xMy4xNTUgNDAuODAyIDUuMDQyIDE1LjQzOSAxMS41OCAyNi4wNzMgMjAuNzE3IDM5LjYyMSA2LjMwMSA4LjkgMTAuNzkxIDIyLjIxMy02LjMwMiAzMi4yOTUtMzcuNDk0IDIyLjIxMy0xMDIuNzk0LTcuNTYxLTEwNS43ODctOC45OC03Ni4wMTItNDIuOTI5LTEzOS40MjEtOTkuNTY0LTE4NC4yNDEtMTc2Ljk5NGE1MjMuODk0IDUyMy44OTQgMCAwIDEtNzIuNDY4LTIzOS45M2MtMS4wMjQtMjAuNTYgNS4yNzgtMjcuODg1IDI2LjcwMy0zMS41ODdhMjcyLjE0OCAyNzIuMTQ4IDAgMCAxIDg1LjMwNy0yLjEyN2MxMTguOTQyIDE2LjY5OSAyMjAuMTYgNjcuNzQxIDMwNS4wNzMgMTQ4LjQ4IDQ4LjQ0MyA0Ni4wMDEgODUuMDcxIDEwMC45ODIgMTIyLjg4IDE1NC43MDMgNDAuMTczIDU3LjAyOSA4My4zMzggMTExLjQ1OCAxMzguMzIgMTU1Ljk2MyAxOS4zNzYgMTUuNjc1IDM0Ljg5NCAyNy41NjkgNDkuNzgxIDM2LjIzNC00NC43NCA0LjgwNS0xMTkuNDE0IDUuODI5LTE3MC40NTYtMzIuOTI2em01NS45MjYtMzQ0LjYxNWMwLTUuMzU3IDIuNzU3LTEwLjM5OCA3LjMyNi0xMy40N2ExNy43MjMgMTcuNzIzIDAgMCAxIDIyLjEzNCAyLjA0OGMzLjA3MiAyLjkxNSA0LjgwNSA3LjA5IDQuODA1IDExLjQyMmExNi43NzggMTYuNzc4IDAgMCAxLTE3LjI1IDE2LjU0MSAxNy4zMyAxNy4zMyAwIDAgMS0xMi4xMzEtNC44ODMgMTUuOTExIDE1LjkxMSAwIDAgMS00Ljg4NC0xMS42NTh6bTE3My41MjkgODUuNDY0YTEwNC4zNyAxMDQuMzcgMCAwIDEtMzMuMDA1IDguNTg2IDcxLjQ0NCA3MS40NDQgMCAwIDEtNDQuNTA0LTEzLjU0OGMtMTUuMjgyLTEyLjI4OC0yNi4yMy0xOS4xNDEtMzAuNzItNDAuNjQ1YTg5LjE2NyA4OS4xNjcgMCAwIDEgLjc4Ny0zMS40MjljMy45MzktMTcuNDg3LS4zOTMtMjguNzUtMTMuMzEyLTM4LjkxMi0xMC40NzYtOC4zNS0yMy43MS0xMC42MzQtMzguMzYtMTAuNjM0YTMyLjA2IDMyLjA2IDAgMCAxLTE0LjE3OS00LjE3NWMtNi4xNDQtMi45MTQtMTEuMTA2LTEwLjI0LTYuMzAxLTE5LjE0YTYwLjE4IDYwLjE4IDAgMCAxIDEwLjcxMi0xMS4yNjVjMTkuODUtMTAuNzkgNDIuNjkzLTcuMjQ2IDYzLjg4Mi43ODggMTkuNjkzIDcuNzk4IDM0LjUwMSAyMS44OTggNTUuOTI2IDQxLjkwNSAyMS43NCAyNC4xODMgMjUuNjggMzAuOCAzOC4xMjUgNDguOTE2IDkuODQ2IDE0LjE3OSAxOC43NDcgMjguNzUgMjQuODkgNDUuNDUgMy43MDMgMTAuMzk3LTEuMTAyIDE4LjkwNS0xMy45NDEgMjQuMTAzeiIgZmlsbD0iIzRENkJGRSIvPjwvc3ZnPg==",Se=de(59301),Oe=({value:Be,onChange:Ke})=>{const[rt,ot]=(0,le.useState)(!1),ht=[{name:"\u901A\u4E49\u5343\u95EE",key:"qwen-max",img:mt},{name:"DeepSeek R1-671B",key:"deepseek-r1",img:ge}],bt=ht.find(at=>at.key===Be);return Se.createElement("div",{className:Ie.select},Se.createElement(De.Z,{size:10},Se.createElement("span",{className:"c-grey-333 font16"},"\u6A21\u578B"),Se.createElement("div",{className:Ie.box,onMouseLeave:()=>ot(!1)},Se.createElement("div",{className:Ie.text,onClick:()=>ot(!0)},Se.createElement("img",{src:bt.img,width:20}),Se.createElement("span",null,bt.name),Se.createElement("b",{className:"iconfont icon-zhankai6"})),rt&&Se.createElement("div",{className:Ie.itemWrap},Se.createElement("aside",null,ht.map(at=>Se.createElement("div",{key:at.key,className:`${Ie.item} ${at.key===Be?Ie.active:""}`,onClick:At=>{At.stopPropagation(),Ke(at.key),ot(!1)}},Se.createElement("img",{src:at.img,width:20}),Se.createElement("span",null,at.name))))))))}},18655:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return bt}});var le=de(59301),Ie=de(62957),De=de(6767),Le=de(29787),Ye=de(77019),Re=de(25399),Ve=de(37568),Je=de(75727),Xe=de(82326),qe={judgment:"judgment___cE7n1",active:"active___VwnES",selectMore:"selectMore___x1UrU"},mt=de(38986),st=de(39793),Nt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAi5JREFUOE9lk81rE0EYxn+TNU2isNKC0oMXUXPxInipN8WA93rUk0gQBBHbHvoX9BRp8YuCFS1UREgUkZ5SEERIETQnD5HqxYNIMW3a7k4+dkfenV02tYfhHZaZ3z7P876jACo1UzQ+c2hKoYerujAC5B0oKMhn0lXI0Mk51EcMs+fKqqUq9ehyA59Ro8H4gIZMH/LDl2XvpN8KGdoOTKj5j6YaeEzKRQGQVA2HBvv/Pqwk3tfUo3Wz3fNww/hioiCqYsUchBQykMtE9jpqsWlMz4O+AJIlSmI7kkd8OLKQi20JRFSopW/G9HwQyCD2f/MyuIdhZxcWn4Hq2cO370nkUHsYq1KgXmxYQN8DqSeOwNXz8LcDYy5U38OP75AN4e6UBbx6kIapVn6lFgRQOglnjsHLD3DtIrR+wrtVECvTMWB5AZIc1OtNC5AlUq+fhTCEjd9wahwcBU9WwN+CmTtWwdN5Ox85B9SbLWO62so/nYcL4/BnF3QX8lk47sJaA740YeaWBTy+bxVEIa52jPECC7gyBkez8PyrDTAfQPkSbLZh+S1M37CAhUraWrW2Y4wXgh5YG0lH9rV2aEKl1WI1aqd04dOe2d4LcD0D3W4KSboiNZrQGDI86gWHjvrsmaoXMCkAP0ghESBWFPw3YMm4Z0NqqqlNUQc0/JBRsSKQYRvJjAgkUpG+l7bTZUJJKOvaFIOAOS+k5IW4un8wD5lSeS9oOvjUlWZ2qqxa/wBF3k0rRn8T3AAAAABJRU5ErkJggg==",_e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAADxJREFUKFNjZEADBkkX5oOELswzSESWYhxAhTA3wZ3wn8EGzGZkOILiRrjCf1Bhxv82IFUYCgfQM8RaDQDYKCkNszfCOwAAAABJRU5ErkJggg==",te=de(9148),ne=Object.defineProperty,he=Object.defineProperties,se=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,Oe=(at,At,It)=>At in at?ne(at,At,{enumerable:!0,configurable:!0,writable:!0,value:It}):at[At]=It,Be=(at,At)=>{for(var It in At||(At={}))Se.call(At,It)&&Oe(at,It,At[It]);if(ge)for(var It of ge(At))Ae.call(At,It)&&Oe(at,It,At[It]);return at},Ke=(at,At)=>he(at,se(At)),rt=(at,At,It)=>new Promise(($t,Tn)=>{var yn=xt=>{try{On(It.next(xt))}catch(ct){Tn(ct)}},un=xt=>{try{On(It.throw(xt))}catch(ct){Tn(ct)}},On=xt=>xt.done?$t(xt.value):Promise.resolve(xt.value).then(yn,un);On((It=It.apply(at,At)).next())});const ot=({value:at,onChange:At})=>{const It=["\u6B63\u786E","\u9519\u8BEF"];return le.createElement("div",{className:qe.judgment},It.map($t=>le.createElement("div",{className:$t===at?qe.active:"",key:$t},le.createElement("b",{onClick:()=>At($t)},$t==="\u6B63\u786E"?"T":"F"),le.createElement("span",null,$t))))};var bt=({isEdit:at=!1,visible:At,data:It,onClose:$t,onOk:Tn,changePage:yn})=>{const un=[{type:0,question:"",answer:""},{type:1,question:"",answer:"\u6B63\u786E"},{type:2,question:"",answer:""}],[On,xt]=(0,le.useState)(!1),[ct,it]=(0,le.useState)(""),[cn,An]=(0,le.useState)(!1),[Pt,an]=(0,le.useState)([]),[ln,zn]=(0,le.useState)([]),[En,ii]=(0,le.useState)([]);(0,le.useEffect)(()=>{var xe,Te;At&&(at?(it(((xe=It==null?void 0:It.page)==null?void 0:xe.page_info)||""),an(((Te=It==null?void 0:It.page)==null?void 0:Te.smart_plan_page_knowledges)||[])):an([un[0]]),kt())},[At]);const kt=()=>rt(void 0,null,function*(){let xe=yield(0,mt.ZP)(`/api/courses/${It==null?void 0:It.coursesId}/smart_plans/${It==null?void 0:It.id}/page_list.json`,{method:"get",params:{position:It==null?void 0:It.position}});(xe==null?void 0:xe.status)==0&&(ii(xe==null?void 0:xe.data),yn(It==null?void 0:It.relation_positions),zn(It==null?void 0:It.relation_positions))}),Kn=(xe,Te,Me)=>{Pt[Te][xe]=Me,an([...Pt])},yi=()=>rt(void 0,null,function*(){var xe,Te,Me,Ce;xt(!0);const Lt=(0,mt.ZP)(`/api/courses/${It==null?void 0:It.coursesId}/smart_plans/${It==null?void 0:It.id}/get_questions.json`,{method:"post",body:{url:(xe=It==null?void 0:It.url)==null?void 0:xe.map(Gt=>Gt==null?void 0:Gt.url),count:3,type:0}}),Mt=(0,mt.ZP)(`/api/courses/${It==null?void 0:It.coursesId}/smart_plans/${It==null?void 0:It.id}/get_page_info.json`,{method:"post",body:{url:(Te=It==null?void 0:It.url)==null?void 0:Te.map(Gt=>Gt==null?void 0:Gt.url)}}),[Yt,Vt]=yield Promise.all([Lt,Mt]);(Yt==null?void 0:Yt.status)===0&&an([...(Ce=(Me=Yt==null?void 0:Yt.data)==null?void 0:Me.questions)==null?void 0:Ce.map(Gt=>(Gt.type=0,Gt))]),(Vt==null?void 0:Vt.status)===0&&it(Vt==null?void 0:Vt.data),xt(!1)}),et=xe=>rt(void 0,null,function*(){var Te,Me,Ce;xt(!0);const ut=Pt[xe].type,Lt=yield(0,mt.ZP)(`/api/courses/${It==null?void 0:It.coursesId}/smart_plans/${It==null?void 0:It.id}/get_questions.json`,{method:"post",body:{url:(Te=It==null?void 0:It.url)==null?void 0:Te.map(Mt=>Mt==null?void 0:Mt.url),count:1,type:ut}});if((Lt==null?void 0:Lt.status)===0){const Mt=(Ce=(Me=Lt==null?void 0:Lt.data)==null?void 0:Me.questions)==null?void 0:Ce[0];Mt&&(Pt[xe]=Ke(Be({},Mt),{type:ut}),ut===0&&(Pt[xe].answer=""),an([...Pt]))}xt(!1)}),ze=[{key:"1",label:"\u5224\u65AD\u9898"},{key:"2",label:"\u5173\u952E\u8BCD\u4F5C\u7B54"}];return le.createElement(Ie.default,{centered:!0,destroyOnClose:!0,onCancel:$t,open:At,title:"\u667A\u80FD\u4E92\u52A8\u8BBE\u7F6E",okText:"\u786E\u8BA4",confirmLoading:cn,afterClose:()=>{it(""),an([])},onOk:()=>rt(void 0,null,function*(){var xe,Te,Me;const Ce=[],ut=[];Pt.forEach((Vt,Gt)=>{var gn;(!Vt.question||((gn=Vt.question)==null?void 0:gn.length)>200)&&Ce.push(Gt+1),Vt.type!==0&&!Vt.answer&&ut.push(Gt+1)});let Lt=[];if(Ce.length&&Lt.push(`\u7B2C${Ce.join("\u3001")}\u9053\u95EE\u7B54\uFF0C\u672A\u8BBE\u7F6E\u95EE\u9898\u6216\u95EE\u9898\u8D85\u51FA200\u4E2A\u5B57\u7B26`),ut.length&&Lt.push(`\u7B2C${ut.join("\u3001")}\u9053\u95EE\u7B54\uFF0C\u672A\u8BBE\u7F6E\u56DE\u7B54`),Lt.length){De.ZP.warning(Lt.join("\uFF1B"),4);return}let Mt=!1;const Yt=yield(0,mt.ZP)(`/api/courses/${It==null?void 0:It.coursesId}/smart_plans/${It==null?void 0:It.id}/exist_data.json`,{method:"post",body:{is_item_bank:!1,position:ln,page_num:(xe=It==null?void 0:It.page)==null?void 0:xe.position}});if((Yt==null?void 0:Yt.status)==0&&(((Te=Yt==null?void 0:Yt.data)==null?void 0:Te.length)>0?Mt=yield new Promise(Gt=>{var gn;Ie.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:le.createElement("div",null,"\u7CFB\u7EDF\u68C0\u6D4B",le.createElement("span",{style:{color:"#0152d9",margin:"0 10px"}},(gn=Yt==null?void 0:Yt.data)==null?void 0:gn.map((qt,fn,sn)=>`\u7B2C${qt}\u9875${fn<sn.length-1?"\u3001":""}`).join("")),"\u5DF2\u7ED1\u5B9A\u5B66\u4E60\u4E92\u52A8\u5185\u5BB9\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u7528\u65B0\u5185\u5BB9\u66FF\u6362\u539F\u6709\u5185\u5BB9\uFF1F\u66FF\u6362\u540E\u539F\u6709\u5185\u5BB9\u5C06\u65E0\u6CD5\u6062\u590D\u3002"),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Gt(!0),onCancel:()=>Gt(!1)})}):Mt=!0),Mt){An(!0);const Vt=yield(0,mt.ZP)(`/api/smart_plan_item_banks/${(Me=It==null?void 0:It.page)==null?void 0:Me.id}/${at?"smart_plan_page_knowledges/update_knowledge":"smart_plan_page_knowledges"}.json`,{method:at?"put":"post",body:{questions:Pt,page_info:ct,page_list:ln}});(Vt==null?void 0:Vt.status)===0&&Tn(),An(!1)}}),wrapClassName:"QASetting-modal",bodyStyle:{paddingBottom:10,maxHeight:650},width:1e3},le.createElement(Le.Z,{spinning:On},le.createElement("div",{style:{minHeight:"70px"}},le.createElement("div",{className:"c-black"},"\u5927\u6A21\u578B\u53EF\u4E3B\u52A8\u4E0E\u5B66\u751F\u8FDB\u884C\u4EA4\u4E92\uFF0C\u5E76\u63A8\u9001\u77E5\u8BC6\u70B9\u89E3\u6790\uFF0C\u4E86\u89E3\u5B66\u751F\u5BF9\u77E5\u8BC6\u70B9\u7684\u638C\u63E1\u60C5\u51B5\uFF0C\u5728\u4E92\u52A8\u7684\u8FC7\u7A0B\u4E2D\u8FDB\u884C\u542F\u53D1\u5F0F\u52A9\u5B66\uFF0C\u5E76\u751F\u6210\u8BE6\u7EC6\u7684\u5B66\u4E60\u8BC4\u4EF7\u3002"),le.createElement("div",null,le.createElement(Ye.Z,{align:"middle",className:"mb10 mt20"},le.createElement("span",{className:"mr10 c-black",style:{fontWeight:500}},"\u9884\u8BBE\u89E3\u6790"),le.createElement(Re.Z,{title:"\u667A\u80FD\u89E3\u6790\u8BFE\u4EF6\u5185\u5BB9\uFF0C\u5E76\u81EA\u52A8\u751F\u6210\u77E5\u8BC6\u70B9\u8BE6\u89E3\u53CA3\u4E2A\u5173\u8054\u63D0\u95EE\uFF0C\u52A9\u529B\u6559\u5E08\u8F7B\u677E\u521B\u5EFA\u4E92\u52A8\u8BFE\u5802\u3002"},le.createElement("img",{src:Nt,onClick:()=>{yi()},className:"iconfont icon-shuaxin4 font14 c-light-primary current"}))),le.createElement(st.Z,{height:200,defaultValue:ct,onChange:xe=>it(xe)})),le.createElement(te.op,{className:"mt20",onClick:()=>{Pt.push(un[0]),an([...Pt]),setTimeout(()=>{const xe=document.querySelector(".QASetting-modal"),Te=xe==null?void 0:xe.querySelector(".ant-modal-body");Te==null||Te.scrollTo({top:Te.scrollHeight,behavior:"smooth"})},0)},icon:le.createElement(Ye.Z,{align:"middle",justify:"center",style:{width:16,height:16,background:"rgba(48,97,208,0.1)",borderRadius:"50%"}},le.createElement("img",{src:_e}))},"\u65B0\u589E\u95EE\u9898"),Pt.map((xe,Te)=>le.createElement("div",{key:Te,style:{marginTop:Te===0?20:30}},le.createElement(Ye.Z,{align:"middle",className:"mb10"},le.createElement("span",{className:"mr10 c-black",style:{fontWeight:500}},"\u95EE\u9898",Te+1),le.createElement(Re.Z,{title:"\u667A\u80FD\u5206\u6790\u8BFE\u4EF6\u5185\u5BB9\uFF0C\u81EA\u52A8\u751F\u6210\u77E5\u8BC6\u70B9\u5173\u8054\u63D0\u95EE\u3002"},le.createElement("img",{src:Nt,onClick:()=>et(Te),className:"iconfont icon-shuaxin4 font14 c-light-primary current"})),le.createElement(Re.Z,{title:"\u5220\u9664\u95EE\u9898"},le.createElement("i",{onClick:()=>{Pt.splice(Te,1),an([...Pt])},style:{marginLeft:"auto"},className:"iconfont icon-shanchu15 font14 current c-grey-999"}))),le.createElement(Ve.default.TextArea,{onChange:Me=>Kn("question",Te,Me.target.value),value:xe==null?void 0:xe.question}),xe.type===0&&le.createElement(Je.Z,{menu:{items:ze,onClick:({key:Me})=>{const Ce=Number(Me),ut={type:Ce,answer:un[Ce].answer,question:xe.question};Pt[Te]=ut,an([...Pt])}},placement:"topRight"},le.createElement(te.op,{className:"mt10",shape:"default"},"\u9884\u8BBE\u7B54\u6848")),[1,2].includes(xe.type)&&le.createElement(Ye.Z,{align:"middle",className:"mr10 mt10 mb10"},le.createElement("span",{className:"c-black"},"\u56DE\u7B54"),le.createElement("span",{className:"font14 c-light-primary current ml10",onClick:()=>{Pt[Te]=un[xe.type===1?2:1],an([...Pt])}},le.createElement("i",{className:"iconfont icon-dingbu-qiehuanbanben font14 c-light-primary mr5"}),le.createElement("span",null,xe.type===1?"\u5207\u6362\u81F3\u6587\u5B57\u4F5C\u7B54\u6A21\u5F0F":"\u5207\u6362\u81F3\u5224\u65AD\u9898\u6A21\u5F0F"))),xe.type===1&&le.createElement(ot,{value:xe.answer,onChange:Me=>Kn("answer",Te,Me)}),xe.type===2&&le.createElement(Ve.default,{onChange:Me=>Kn("answer",Te,Me.target.value),placeholder:"\u8BF7\u8BBE\u7F6E\u56DE\u7B54\u5173\u952E\u8BCD\uFF0C\u8BF7\u7528\u2018\uFF0C\u2019\u5206\u9694\u5F00",value:xe.answer})))),le.createElement("div",{style:{fontWeight:400,marginTop:"20px",display:"flex",alignItems:"center"}},le.createElement("div",{style:{fontWeight:500}},"\u5E94\u7528\u8BFE\u4EF6\u9875\u9762"),le.createElement("div",{style:{color:"#9096A3",fontSize:12,marginLeft:"10px"}},"\u667A\u80FD\u4E92\u52A8\u652F\u6301\u591A\u9875\u9762\u5173\u8054\uFF0C\u5B66\u751F\u6D4F\u89C8\u5173\u8054\u5E7B\u706F\u7247\u65F6\u5C06\u770B\u5230\u76F8\u540C\u7684\u89E3\u6790\u548C\u63D0\u95EE\u5185\u5BB9\u3002")),le.createElement(Xe.default,{placeholder:"\u8BF7\u9009\u62E9\u5E7B\u706F\u7247\u9875\u7801",className:qe.selectMore,style:{width:"100%",marginTop:"10px"},mode:"multiple",size:"large",value:ln,showSearch:!1,onChange:xe=>{yn(xe),zn(xe)}},En==null?void 0:En.map((xe,Te)=>{var Me;return le.createElement(Xe.default.Option,{value:xe,key:Te,disabled:xe==((Me=It==null?void 0:It.page)==null?void 0:Me.position)},"\u7B2C",xe,"\u9875")}))))}},91479:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return zt}});var le=de(59301),Ie=de(61209),De={panel:"panel___sQgCV"},Ye=({children:on})=>le.createElement("div",{className:De.panel},on),Re={head:"head___Sq9Jd",btn:"btn___qLoeT",center:"center___iV40j",left:"left___VTVFI",tool:"tool___sOsjb",right:"right___weWPx",borderBox:"borderBox___DAP9a",try:"try___xy70Z",btns:"btns___ZqNMP",add:"add___KnDP5",analysis:"analysis___F1nSY"},Ve=de(18655),Je=de(62957),Xe=de(6767),qe=de(29787),mt=de(25399),st={graphicItem:"graphicItem___ZiQL5",item_img:"item_img___ze_nI",button_list:"button_list___QRjkJ",over_button:"over_button___lh82t",ewm_img:"ewm_img___hJN_k",ewm_text:"ewm_text___qaGT6",tag_list:"tag_list___P4_iz",tags_styles:"tags_styles___RateY",header:"header___MIdac",header_title:"header_title___lIXYg",caozuo:"caozuo___ZeZkP"},Nt=de(38986),_e=de(86129),te=de.n(_e),ne=(on,rn,mn)=>new Promise((Bn,ei)=>{var ji=lt=>{try{Yi(mn.next(lt))}catch(Ut){ei(Ut)}},Fi=lt=>{try{Yi(mn.throw(lt))}catch(Ut){ei(Ut)}},Yi=lt=>lt.done?Bn(lt.value):Promise.resolve(lt.value).then(ji,Fi);Yi((mn=mn.apply(on,rn)).next())}),se=({visible:on,data:rn,onClose:mn})=>{var Bn,ei,ji;const[Fi,Yi]=(0,le.useState)(!1),[lt,Ut]=(0,le.useState)(!1),[oi,gi]=(0,le.useState)(null);(0,le.useEffect)(()=>{on&&jt()},[on]);const jt=()=>ne(void 0,null,function*(){var Vn,ni;Yi(!0),console.log(rn==null?void 0:rn.aiImg);const Zt=(ni=(Vn=rn==null?void 0:rn.aiImg)==null?void 0:Vn[0])==null?void 0:ni.url;try{const ci=yield(yield fetch(Zt)).arrayBuffer(),bn=(yield te().loadAsync(ci)).files;let Ki=null;for(const Ui in bn){if(bn[Ui].dir)continue;const Wi=bn[Ui];if(/\.(jpg|jpeg|png|gif)$/i.test(Ui)){Ki=Wi;break}}if(Ki){const Ui=yield Ki.async("base64");gi(`data:image/jpeg;base64,${Ui}`),Yi(!1)}else alert("\u6CA1\u6709\u627E\u5230\u56FE\u7247\u6587\u4EF6")}catch(je){alert("\u52A0\u8F7D ZIP \u6587\u4EF6\u65F6\u51FA\u9519")}});return le.createElement(Je.default,{centered:!0,keyboard:!1,maskClosable:!1,open:on,title:"\u8BFE\u4EF6\u5C01\u9762\u9884\u89C8",width:"350px",onCancel:()=>{mn()},okButtonProps:{loading:lt},onOk:()=>ne(void 0,null,function*(){Ut(!0);const Vn=yield(0,Nt.ZP)(`/api/courses/${rn==null?void 0:rn.coursesId}/smart_plans/${rn==null?void 0:rn.id}/set_cover.json`,{method:"post",body:{position:rn==null?void 0:rn.position}});Ut(!1),(Vn==null?void 0:Vn.status)==0&&(Xe.ZP.success("\u8BBE\u7F6E\u6210\u529F"),mn())})},le.createElement(qe.Z,{spinning:Fi},le.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"}},le.createElement("div",{className:st.graphicItem},le.createElement("img",{src:oi,className:st.item_img}),le.createElement("div",{className:st.info},le.createElement("div",{className:st.title},le.createElement("div",{className:st.header},le.createElement(mt.Z,{title:(Bn=rn==null?void 0:rn.pptInfo)==null?void 0:Bn.name},le.createElement("div",{className:st.header_title},(ei=rn==null?void 0:rn.pptInfo)==null?void 0:ei.name))),le.createElement("div",{className:st.caozuo},le.createElement("span",{style:{color:"#5F6A95"}},"\u521B\u5EFA\u4EBA",le.createElement("span",{style:{color:"#000F37",marginLeft:"6px"}},(ji=rn==null?void 0:rn.pptInfo)==null?void 0:ji.author)))))))))},ge=de(77736),Se=de(77019),Ae=de(25690),Oe=de(49535),Be=Object.defineProperty,Ke=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,ht=(on,rn,mn)=>rn in on?Be(on,rn,{enumerable:!0,configurable:!0,writable:!0,value:mn}):on[rn]=mn,bt=(on,rn)=>{for(var mn in rn||(rn={}))rt.call(rn,mn)&&ht(on,mn,rn[mn]);if(Ke)for(var mn of Ke(rn))ot.call(rn,mn)&&ht(on,mn,rn[mn]);return on};const at=on=>React.createElement("svg",bt({className:"b_svg__icon",width:200,height:200,viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},on),React.createElement("path",{d:"M0 0h1024v1024H0z",fill:"#C4D6FE"}),React.createElement("path",{d:"M339.968 419.986h-219.94c-44.106 0-80.019-35.84-80.019-80.018v-219.94c0-44.106 35.84-80.019 80.018-80.019h219.941c44.178 0 80.018 35.84 80.018 80.018v219.941c0 44.178-35.84 80.018-80.018 80.018z",fill:"#FFF"}),React.createElement("path",{d:"M119.954 80.018a40.01 40.01 0 0 0-39.936 40.01v219.94c0 22.09 17.92 40.01 40.01 40.01h219.94a40.01 40.01 0 0 0 40.01-40.01v-219.94a40.01 40.01 0 0 0-40.01-40.01h-219.94M119.953 0h219.94C406.31 0 460.07 53.76 460.07 119.954v220.014a119.954 119.954 0 0 1-119.955 120.1h-220.16A119.954 119.954 0 0 1 0 340.115v-220.16C0 53.76 53.76 0 119.954 0zm784.092 983.99H683.959c-44.178 0-80.018-35.84-80.018-80.017V684.032c0-44.178 35.84-80.018 80.018-80.018h219.94c44.106 0 80.019 35.84 80.019 80.018v219.94c0 44.106-35.84 80.019-80.019 80.019z",fill:"#3061D0"}),React.createElement("path",{d:"M684.032 644.023a40.01 40.01 0 0 0-40.01 40.009v219.94c0 22.09 17.92 40.01 40.01 40.01h219.94a40.01 40.01 0 0 0 40.01-40.01v-219.94a40.01 40.01 0 0 0-40.01-40.01h-219.94m0-80.017h219.94c66.268 0 120.028 53.686 120.028 119.954v220.014A119.954 119.954 0 0 1 904.046 1024H683.959A119.954 119.954 0 0 1 563.93 904.046V683.959c0-66.34 53.687-120.028 119.955-120.028z",fill:"#FFF"}),React.createElement("path",{d:"M644.023 833.975H190.025v-79.872h453.998zM833.975 269.97H379.977v-79.945h453.998z",fill:"#3061D0"}),React.createElement("path",{d:"M874.057 230.034v241.957a40.01 40.01 0 0 1-80.091 0V230.034a40.01 40.01 0 1 1 80.018 0zM230.034 552.01v241.957a40.01 40.01 0 0 1-80.018 0V552.009a40.01 40.01 0 0 1 80.018 0z",fill:"#3061D0"}),React.createElement("path",{d:"M773.998 754.03h40.009c10.971 0 19.968 8.923 19.968 19.968v40.009a19.968 19.968 0 0 1-19.968 19.968h-40.01a19.968 19.968 0 0 1-19.967-19.968v-40.01c0-11.044 8.923-19.967 19.968-19.967z",fill:"#FFF"}),React.createElement("path",{d:"M209.993 190.025h40.01c11.044 0 19.967 8.924 19.967 19.968v40.01a19.968 19.968 0 0 1-19.968 19.967h-40.009a19.968 19.968 0 0 1-19.968-19.968v-40.009c0-10.971 8.924-19.968 19.968-19.968z",fill:"#3061D0"}));var At="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTAgMGgxMDI0djEwMjRIMHoiIGZpbGw9IiNDNEQ2RkUiLz48cGF0aCBkPSJNMzM5Ljk2OCA0MTkuOTg2aC0yMTkuOTRjLTQ0LjEwNiAwLTgwLjAxOS0zNS44NC04MC4wMTktODAuMDE4di0yMTkuOTRjMC00NC4xMDYgMzUuODQtODAuMDE5IDgwLjAxOC04MC4wMTloMjE5Ljk0MWM0NC4xNzggMCA4MC4wMTggMzUuODQgODAuMDE4IDgwLjAxOHYyMTkuOTQxYzAgNDQuMTc4LTM1Ljg0IDgwLjAxOC04MC4wMTggODAuMDE4eiIgZmlsbD0iI0ZGRiIvPjxwYXRoIGQ9Ik0xMTkuOTU0IDgwLjAxOGE0MC4wMSA0MC4wMSAwIDAgMC0zOS45MzYgNDAuMDF2MjE5Ljk0YzAgMjIuMDkgMTcuOTIgNDAuMDEgNDAuMDEgNDAuMDFoMjE5Ljk0YTQwLjAxIDQwLjAxIDAgMCAwIDQwLjAxLTQwLjAxdi0yMTkuOTRhNDAuMDEgNDAuMDEgMCAwIDAtNDAuMDEtNDAuMDFoLTIxOS45NE0xMTkuOTUzIDBoMjE5Ljk0QzQwNi4zMSAwIDQ2MC4wNyA1My43NiA0NjAuMDcgMTE5Ljk1NHYyMjAuMDE0YTExOS45NTQgMTE5Ljk1NCAwIDAgMS0xMTkuOTU1IDEyMC4xaC0yMjAuMTZBMTE5Ljk1NCAxMTkuOTU0IDAgMCAxIDAgMzQwLjExNXYtMjIwLjE2QzAgNTMuNzYgNTMuNzYgMCAxMTkuOTU0IDB6bTc4NC4wOTIgOTgzLjk5SDY4My45NTljLTQ0LjE3OCAwLTgwLjAxOC0zNS44NC04MC4wMTgtODAuMDE3VjY4NC4wMzJjMC00NC4xNzggMzUuODQtODAuMDE4IDgwLjAxOC04MC4wMThoMjE5Ljk0YzQ0LjEwNiAwIDgwLjAxOSAzNS44NCA4MC4wMTkgODAuMDE4djIxOS45NGMwIDQ0LjEwNi0zNS44NCA4MC4wMTktODAuMDE5IDgwLjAxOXoiIGZpbGw9IiMzMDYxRDAiLz48cGF0aCBkPSJNNjg0LjAzMiA2NDQuMDIzYTQwLjAxIDQwLjAxIDAgMCAwLTQwLjAxIDQwLjAwOXYyMTkuOTRjMCAyMi4wOSAxNy45MiA0MC4wMSA0MC4wMSA0MC4wMWgyMTkuOTRhNDAuMDEgNDAuMDEgMCAwIDAgNDAuMDEtNDAuMDF2LTIxOS45NGE0MC4wMSA0MC4wMSAwIDAgMC00MC4wMS00MC4wMWgtMjE5Ljk0bTAtODAuMDE3aDIxOS45NGM2Ni4yNjggMCAxMjAuMDI4IDUzLjY4NiAxMjAuMDI4IDExOS45NTR2MjIwLjAxNEExMTkuOTU0IDExOS45NTQgMCAwIDEgOTA0LjA0NiAxMDI0SDY4My45NTlBMTE5Ljk1NCAxMTkuOTU0IDAgMCAxIDU2My45MyA5MDQuMDQ2VjY4My45NTljMC02Ni4zNCA1My42ODctMTIwLjAyOCAxMTkuOTU1LTEyMC4wMjh6IiBmaWxsPSIjRkZGIi8+PHBhdGggZD0iTTY0NC4wMjMgODMzLjk3NUgxOTAuMDI1di03OS44NzJoNDUzLjk5OHpNODMzLjk3NSAyNjkuOTdIMzc5Ljk3N3YtNzkuOTQ1aDQ1My45OTh6IiBmaWxsPSIjMzA2MUQwIi8+PHBhdGggZD0iTTg3NC4wNTcgMjMwLjAzNHYyNDEuOTU3YTQwLjAxIDQwLjAxIDAgMCAxLTgwLjA5MSAwVjIzMC4wMzRhNDAuMDEgNDAuMDEgMCAxIDEgODAuMDE4IDB6TTIzMC4wMzQgNTUyLjAxdjI0MS45NTdhNDAuMDEgNDAuMDEgMCAwIDEtODAuMDE4IDBWNTUyLjAwOWE0MC4wMSA0MC4wMSAwIDAgMSA4MC4wMTggMHoiIGZpbGw9IiMzMDYxRDAiLz48cGF0aCBkPSJNNzczLjk5OCA3NTQuMDNoNDAuMDA5YzEwLjk3MSAwIDE5Ljk2OCA4LjkyMyAxOS45NjggMTkuOTY4djQwLjAwOWExOS45NjggMTkuOTY4IDAgMCAxLTE5Ljk2OCAxOS45NjhoLTQwLjAxYTE5Ljk2OCAxOS45NjggMCAwIDEtMTkuOTY3LTE5Ljk2OHYtNDAuMDFjMC0xMS4wNDQgOC45MjMtMTkuOTY3IDE5Ljk2OC0xOS45Njd6IiBmaWxsPSIjRkZGIi8+PHBhdGggZD0iTTIwOS45OTMgMTkwLjAyNWg0MC4wMWMxMS4wNDQgMCAxOS45NjcgOC45MjQgMTkuOTY3IDE5Ljk2OHY0MC4wMWExOS45NjggMTkuOTY4IDAgMCAxLTE5Ljk2OCAxOS45NjdoLTQwLjAwOWExOS45NjggMTkuOTY4IDAgMCAxLTE5Ljk2OC0xOS45Njh2LTQwLjAwOWMwLTEwLjk3MSA4LjkyNC0xOS45NjggMTkuOTY4LTE5Ljk2OHoiIGZpbGw9IiMzMDYxRDAiLz48L3N2Zz4=",It=Object.defineProperty,$t=Object.getOwnPropertySymbols,Tn=Object.prototype.hasOwnProperty,yn=Object.prototype.propertyIsEnumerable,un=(on,rn,mn)=>rn in on?It(on,rn,{enumerable:!0,configurable:!0,writable:!0,value:mn}):on[rn]=mn,On=(on,rn)=>{for(var mn in rn||(rn={}))Tn.call(rn,mn)&&un(on,mn,rn[mn]);if($t)for(var mn of $t(rn))yn.call(rn,mn)&&un(on,mn,rn[mn]);return on};const xt=on=>React.createElement("svg",On({className:"c_svg__icon",width:200,height:173.41,viewBox:"0 0 1181 1024",xmlns:"http://www.w3.org/2000/svg"},on),React.createElement("path",{d:"M870.662 0c9.925 46.237 14.848 92.434 4.962 143.79H211.85C206.926 87.315 192.039 0 271.358 0H870.7zM320.863 92.434c9.846 0 14.848-10.24 9.846-20.519-4.923-10.28-14.808-15.439-19.77-15.439-9.925 5.12-14.888 15.439-9.925 20.559 0 10.24 9.924 15.399 19.81 15.399zm69.316-15.36c0-5.159-4.963-10.318-9.886-15.438-4.962-5.12-9.924-5.12-14.887 0s-9.885 5.12-9.885 15.399c0 10.24 4.923 15.399 14.848 15.399s19.81-10.24 19.81-15.36zm39.62 15.36c9.925 0 14.887-10.24 14.887-15.36 0-5.159 0-10.318-4.962-10.318-4.963-10.24-4.963-10.24-9.925-10.24-9.885 0-14.848 10.24-14.848 20.519 0 5.12 0 10.24 4.963 10.24 0 5.159 4.962 5.159 9.885 5.159z",fill:"#8DCAFC"}),React.createElement("path",{d:"M870.662 0h59.47c19.81 0 34.657 10.24 39.62 35.957 4.923 41.078 9.885 82.155 4.923 118.152-29.696-10.318-59.43-15.438-94.128-10.318h-4.923C885.51 97.593 885.51 46.237 870.662 0z",fill:"#63B9FC"}),React.createElement("path",{d:"M880.587 143.79c4.923 61.636 9.885 128.392 0 184.908-4.963 30.798 4.923 71.915 4.923 92.434 0 133.511 0 267.062 4.962 395.493H231.66c-4.923 0-9.886 0-9.886-5.12l-4.962-5.16V143.751h663.815zm-495.41 226.025 64.393-61.636c14.887-10.24 14.887-25.678 9.924-41.078-24.772-66.755-133.747 61.636-153.557 82.195-9.925 15.36-9.925 30.798 0 41.077 14.847 15.399 163.443 184.868 153.557 61.636 0-5.12-4.962-10.28-4.962-10.28l-69.276-61.675v-10.24zm257.57-82.155c0-10.28 0-15.4-4.922-25.678-4.963-10.28-9.925-15.439-19.81-15.439-14.888-5.12-34.658 5.12-39.62 20.558L528.848 457.13c-4.962 15.399 4.963 35.957 19.81 41.077 14.848 5.12 34.658-5.12 39.62-20.519l54.508-190.027zm138.71 66.755c4.963 5.12 9.925 10.24 9.925 15.4 0 5.12 0 10.279-4.962 15.399-14.848 15.438-128.785 107.872-39.62 113.031 4.962 0 9.885 0 14.847-5.159 24.773-20.558 54.508-46.237 79.24-66.756 29.736-30.837 64.433-51.356 19.85-92.473-24.812-25.678-118.9-138.631-143.672-61.596v15.36c9.925 20.558 34.658 46.236 64.393 66.794zM479.305 590.68c0-10.279-4.962-15.438-14.847-15.438H310.86c-9.846 0-14.848 5.12-14.848 15.438v5.12c0 10.24 4.962 15.4 14.887 15.4h158.48c4.963 0 9.925 0 9.925-5.12v-15.4zm188.255 77.035c0-10.279-14.887-20.558-34.697-20.558s-34.658 10.279-34.658 20.558c0 10.24 14.848 20.52 34.658 20.52s34.658-10.24 34.658-20.52zm-109.014 0c0-10.279-4.923-15.399-14.848-15.399H310.938c-4.962 0-9.924 0-9.924 5.12s-4.963 5.12-4.963 5.12c0 10.28 4.963 15.438 14.887 15.438h232.799c4.962 0 9.924 0 9.924-5.12 4.923 5.12 4.923 0 4.923-5.159zm183.292 66.756c0-10.24-9.924-15.4-24.772-15.4s-24.773 10.24-24.773 20.52 9.925 15.438 24.812 15.438c9.846 0 24.733-10.279 24.733-20.558zm-321.963 0c0-5.12 0-10.24-4.962-10.24s-4.963-5.16-9.925-5.16H310.86c-4.923 0-9.846 0-9.846 5.12-5.002 5.12-5.002 5.12-5.002 10.28 0 5.12 0 10.24 4.962 10.24s4.963 5.159 9.925 5.159h94.128c4.922 0 14.847-5.12 14.847-15.36zm227.836 0c0-10.24-4.923-15.4-14.848-15.4h-158.52c-4.962 0-9.885 0-9.885 5.12-4.963 5.12-4.963 5.12-4.963 10.28 0 5.12 0 10.24 4.963 10.24 4.923 5.159 4.923 5.159 9.885 5.159h158.52c4.963 0 9.925 0 9.925-5.12 4.923 0 4.923-5.12 4.923-10.24z",fill:"#3291FC"}),React.createElement("path",{d:"M880.587 143.79c29.695-5.12 64.392 0 94.127 10.28v82.233l-4.962 585.48H885.51c-4.923-133.51-4.923-267.061-4.923-395.453 0-20.558-9.925-61.635-4.963-92.473 9.886-61.596 4.963-128.391 4.963-190.027z",fill:"#3291FC"}),React.createElement("path",{d:"m974.675 159.229 128.785 5.12c-69.316-20.558-29.695 46.237-29.695 71.915h-94.128l-4.962-77.035zm-762.826 5.12v77.035h-89.165c-4.923 0-4.923 5.12-4.923 10.24v559.841c0 5.12 4.923 10.28 9.885 15.4 29.735 10.279 59.47 5.12 89.165-15.36l4.962 5.12c0 5.12 4.963 5.12 9.886 5.12h743.016l99.09 5.12c4.962 35.957-4.963 66.794-14.848 97.593H73.139c-4.923 0-9.846-5.12-14.848-5.12-4.923-20.559-9.885-30.838-9.885-46.237V215.705c0-30.798 14.847-46.236 44.582-46.236l118.86-5.12z",fill:"#A1AAEF"}),React.createElement("path",{d:"M1103.46 169.469c24.812 5.12 39.66 20.558 39.66 46.236 4.923 174.629 4.923 410.892-4.963 703.633l-39.62 5.12h-44.622c14.848-30.799 19.81-61.636 14.848-97.594v-585.44c4.962-30.799-34.658-92.435 34.658-71.916z",fill:"#A1AAEF"}),React.createElement("path",{d:"M211.888 241.423v564.922c-29.735 20.52-59.47 25.679-89.204 15.4-4.923 0-9.886-10.24-9.886-15.4V246.504c0-5.12 4.963-10.24 4.963-10.24l94.127 5.12z",fill:"#DDE2F0"}),React.createElement("path",{d:"M974.675 241.423h94.127v580.322l-99.05-5.12 4.923-575.241zM53.368 914.14c4.923 5.12 9.885 5.12 14.848 5.12h1030.282c14.887 30.838 14.887 66.795-4.923 97.593-341.773-5.12-678.624-5.12-1020.436 0-54.468 0-84.203-25.678-69.316-87.274 0-5.12 4.962-5.12 9.885-5.12 14.887 0 24.812-5.16 39.66-10.319z",fill:"#DAE0FF"}),React.createElement("path",{d:"m1138.157 919.338 29.735 5.12c4.923 0 9.885 5.12 9.885 10.24 14.848 66.795-14.847 97.632-84.202 87.353 19.81-35.958 19.81-66.756 4.962-97.593l39.62-5.12z",fill:"#CCD2F2"}),React.createElement("path",{d:"M310.938 56.476c-4.962 0-9.924 5.12-9.924 10.28 0 5.12 0 10.279 4.962 15.399s9.925 5.12 14.848 5.12c4.962 0 9.925-5.12 9.925-10.24s0-10.24-4.963-15.4c-4.962-5.12-9.885-5.12-14.848-5.12zm44.583 20.559c0 5.12 4.923 10.24 9.885 15.399 4.963 5.12 9.925 5.12 14.887 0 4.923-5.12 9.886-10.24 9.886-15.36 0-5.159-4.963-10.318-9.886-15.438-4.962-5.12-9.924-5.12-14.887 0s-9.885 5.12-9.885 15.399zm74.278-20.559c-9.885 0-14.848 10.28-14.848 20.559 0 10.24 4.963 15.399 14.848 15.399 9.925 0 14.887-10.24 14.887-15.36 0-10.318-9.925-20.598-14.887-20.598zm-44.583 323.578 69.355 66.756c4.963 5.12 4.963 5.12 4.963 10.28 9.885 118.15-138.71-51.357-153.558-61.637-9.925-15.36-9.925-30.798 0-46.197 19.81-20.558 128.785-148.95 153.558-87.314 9.885 15.36 4.962 30.798-9.925 46.197l-64.393 61.676v10.279zm232.838-133.511c24.772 5.12 29.695 20.519 24.772 41.077l-49.545 190.028c-4.962 20.519-19.81 25.678-39.62 20.519-19.81-5.12-24.812-20.52-19.81-41.078l49.506-190.027c4.962-20.558 14.887-25.678 34.657-20.558zm163.443 107.833c-29.695-20.558-49.545-46.237-69.316-66.756-4.962-5.12-4.962-10.279 0-15.399 24.733-77.074 118.86 35.918 143.633 61.597 44.583 41.116 9.886 61.635-19.81 92.473a504.114 504.114 0 0 1-79.28 66.756c-4.922 5.12-9.885 5.12-14.847 5.12-94.128-10.24 24.772-102.714 39.62-112.993 4.962-5.12 4.962-10.24 4.962-15.36 0-5.159 0-10.318-4.962-15.438z",fill:"#F1EFF2"}),React.createElement("path",{d:"M310.938 575.201H469.42c9.925 0 14.887 5.12 14.887 15.439v5.12c0 10.24-4.962 15.399-14.887 15.399H310.94c-9.925 0-14.888-5.12-14.888-15.36v-5.16c0-10.278 4.963-15.438 14.887-15.438z",fill:"#FDDD44"}),React.createElement("path",{d:"M598.244 665.272c0 5.908 4.923 17.763 14.848 17.763 9.885 0 24.772 5.907 34.657 0 9.925-5.908 19.81-11.816 19.81-17.763 0-5.907-4.923-17.801-14.847-17.801-9.886 0-24.773-5.908-34.658 0-14.887 5.907-19.81 11.854-19.81 17.801zm-287.306-17.801h232.799c9.924 0 14.847 5.907 14.847 17.801 0 11.816-4.923 17.763-14.847 17.763H310.938c-9.924 5.907-14.887 0-14.887-11.816 0-17.801 4.963-23.748 14.887-23.748z",fill:"#FC9743"}),React.createElement("path",{d:"M687.409 735.573c0 5.474 4.923 10.909 14.848 16.344 9.885 5.435 19.81 5.435 24.772 0 9.885-5.435 14.848-10.87 14.848-16.344 0-5.435-4.963-10.87-14.848-16.305-9.925-5.435-19.81-5.435-24.812 0-9.846 5.435-14.808 10.87-14.808 16.305zm-376.51-16.305h94.128c9.924 0 14.887 5.435 14.887 16.305 0 10.909-4.963 16.344-14.887 16.344h-94.128c-9.846 0-14.848-5.435-14.848-16.344 0-10.87 4.963-16.305 14.887-16.305zm163.483 0h158.52c9.924 0 14.847 5.435 14.847 16.305 0 10.909-4.923 16.344-14.847 16.344h-158.52c-9.886 0-14.848-5.435-14.848-16.344 0-10.87 4.962-16.305 14.848-16.305z",fill:"#28D1B3"}));var ct="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIxNzMuNDEiIHZpZXdCb3g9IjAgMCAxMTgxIDEwMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg3MC42NjIgMGM5LjkyNSA0Ni4yMzcgMTQuODQ4IDkyLjQzNCA0Ljk2MiAxNDMuNzlIMjExLjg1QzIwNi45MjYgODcuMzE1IDE5Mi4wMzkgMCAyNzEuMzU4IDBIODcwLjd6TTMyMC44NjMgOTIuNDM0YzkuODQ2IDAgMTQuODQ4LTEwLjI0IDkuODQ2LTIwLjUxOS00LjkyMy0xMC4yOC0xNC44MDgtMTUuNDM5LTE5Ljc3LTE1LjQzOS05LjkyNSA1LjEyLTE0Ljg4OCAxNS40MzktOS45MjUgMjAuNTU5IDAgMTAuMjQgOS45MjQgMTUuMzk5IDE5LjgxIDE1LjM5OXptNjkuMzE2LTE1LjM2YzAtNS4xNTktNC45NjMtMTAuMzE4LTkuODg2LTE1LjQzOC00Ljk2Mi01LjEyLTkuOTI0LTUuMTItMTQuODg3IDBzLTkuODg1IDUuMTItOS44ODUgMTUuMzk5YzAgMTAuMjQgNC45MjMgMTUuMzk5IDE0Ljg0OCAxNS4zOTlzMTkuODEtMTAuMjQgMTkuODEtMTUuMzZ6bTM5LjYyIDE1LjM2YzkuOTI1IDAgMTQuODg3LTEwLjI0IDE0Ljg4Ny0xNS4zNiAwLTUuMTU5IDAtMTAuMzE4LTQuOTYyLTEwLjMxOC00Ljk2My0xMC4yNC00Ljk2My0xMC4yNC05LjkyNS0xMC4yNC05Ljg4NSAwLTE0Ljg0OCAxMC4yNC0xNC44NDggMjAuNTE5IDAgNS4xMiAwIDEwLjI0IDQuOTYzIDEwLjI0IDAgNS4xNTkgNC45NjIgNS4xNTkgOS44ODUgNS4xNTl6IiBmaWxsPSIjOERDQUZDIi8+PHBhdGggZD0iTTg3MC42NjIgMGg1OS40N2MxOS44MSAwIDM0LjY1NyAxMC4yNCAzOS42MiAzNS45NTcgNC45MjMgNDEuMDc4IDkuODg1IDgyLjE1NSA0LjkyMyAxMTguMTUyLTI5LjY5Ni0xMC4zMTgtNTkuNDMtMTUuNDM4LTk0LjEyOC0xMC4zMThoLTQuOTIzQzg4NS41MSA5Ny41OTMgODg1LjUxIDQ2LjIzNyA4NzAuNjYyIDB6IiBmaWxsPSIjNjNCOUZDIi8+PHBhdGggZD0iTTg4MC41ODcgMTQzLjc5YzQuOTIzIDYxLjYzNiA5Ljg4NSAxMjguMzkyIDAgMTg0LjkwOC00Ljk2MyAzMC43OTggNC45MjMgNzEuOTE1IDQuOTIzIDkyLjQzNCAwIDEzMy41MTEgMCAyNjcuMDYyIDQuOTYyIDM5NS40OTNIMjMxLjY2Yy00LjkyMyAwLTkuODg2IDAtOS44ODYtNS4xMmwtNC45NjItNS4xNlYxNDMuNzUxaDY2My44MTV6bS00OTUuNDEgMjI2LjAyNSA2NC4zOTMtNjEuNjM2YzE0Ljg4Ny0xMC4yNCAxNC44ODctMjUuNjc4IDkuOTI0LTQxLjA3OC0yNC43NzItNjYuNzU1LTEzMy43NDcgNjEuNjM2LTE1My41NTcgODIuMTk1LTkuOTI1IDE1LjM2LTkuOTI1IDMwLjc5OCAwIDQxLjA3NyAxNC44NDcgMTUuMzk5IDE2My40NDMgMTg0Ljg2OCAxNTMuNTU3IDYxLjYzNiAwLTUuMTItNC45NjItMTAuMjgtNC45NjItMTAuMjhsLTY5LjI3Ni02MS42NzV2LTEwLjI0em0yNTcuNTctODIuMTU1YzAtMTAuMjggMC0xNS40LTQuOTIyLTI1LjY3OC00Ljk2My0xMC4yOC05LjkyNS0xNS40MzktMTkuODEtMTUuNDM5LTE0Ljg4OC01LjEyLTM0LjY1OCA1LjEyLTM5LjYyIDIwLjU1OEw1MjguODQ4IDQ1Ny4xM2MtNC45NjIgMTUuMzk5IDQuOTYzIDM1Ljk1NyAxOS44MSA0MS4wNzcgMTQuODQ4IDUuMTIgMzQuNjU4LTUuMTIgMzkuNjItMjAuNTE5bDU0LjUwOC0xOTAuMDI3em0xMzguNzEgNjYuNzU1YzQuOTYzIDUuMTIgOS45MjUgMTAuMjQgOS45MjUgMTUuNCAwIDUuMTIgMCAxMC4yNzktNC45NjIgMTUuMzk5LTE0Ljg0OCAxNS40MzgtMTI4Ljc4NSAxMDcuODcyLTM5LjYyIDExMy4wMzEgNC45NjIgMCA5Ljg4NSAwIDE0Ljg0Ny01LjE1OSAyNC43NzMtMjAuNTU4IDU0LjUwOC00Ni4yMzcgNzkuMjQtNjYuNzU2IDI5LjczNi0zMC44MzcgNjQuNDMzLTUxLjM1NiAxOS44NS05Mi40NzMtMjQuODEyLTI1LjY3OC0xMTguOS0xMzguNjMxLTE0My42NzItNjEuNTk2djE1LjM2YzkuOTI1IDIwLjU1OCAzNC42NTggNDYuMjM2IDY0LjM5MyA2Ni43OTR6TTQ3OS4zMDUgNTkwLjY4YzAtMTAuMjc5LTQuOTYyLTE1LjQzOC0xNC44NDctMTUuNDM4SDMxMC44NmMtOS44NDYgMC0xNC44NDggNS4xMi0xNC44NDggMTUuNDM4djUuMTJjMCAxMC4yNCA0Ljk2MiAxNS40IDE0Ljg4NyAxNS40aDE1OC40OGM0Ljk2MyAwIDkuOTI1IDAgOS45MjUtNS4xMnYtMTUuNHptMTg4LjI1NSA3Ny4wMzVjMC0xMC4yNzktMTQuODg3LTIwLjU1OC0zNC42OTctMjAuNTU4cy0zNC42NTggMTAuMjc5LTM0LjY1OCAyMC41NThjMCAxMC4yNCAxNC44NDggMjAuNTIgMzQuNjU4IDIwLjUyczM0LjY1OC0xMC4yNCAzNC42NTgtMjAuNTJ6bS0xMDkuMDE0IDBjMC0xMC4yNzktNC45MjMtMTUuMzk5LTE0Ljg0OC0xNS4zOTlIMzEwLjkzOGMtNC45NjIgMC05LjkyNCAwLTkuOTI0IDUuMTJzLTQuOTYzIDUuMTItNC45NjMgNS4xMmMwIDEwLjI4IDQuOTYzIDE1LjQzOCAxNC44ODcgMTUuNDM4aDIzMi43OTljNC45NjIgMCA5LjkyNCAwIDkuOTI0LTUuMTIgNC45MjMgNS4xMiA0LjkyMyAwIDQuOTIzLTUuMTU5em0xODMuMjkyIDY2Ljc1NmMwLTEwLjI0LTkuOTI0LTE1LjQtMjQuNzcyLTE1LjRzLTI0Ljc3MyAxMC4yNC0yNC43NzMgMjAuNTIgOS45MjUgMTUuNDM4IDI0LjgxMiAxNS40MzhjOS44NDYgMCAyNC43MzMtMTAuMjc5IDI0LjczMy0yMC41NTh6bS0zMjEuOTYzIDBjMC01LjEyIDAtMTAuMjQtNC45NjItMTAuMjRzLTQuOTYzLTUuMTYtOS45MjUtNS4xNkgzMTAuODZjLTQuOTIzIDAtOS44NDYgMC05Ljg0NiA1LjEyLTUuMDAyIDUuMTItNS4wMDIgNS4xMi01LjAwMiAxMC4yOCAwIDUuMTIgMCAxMC4yNCA0Ljk2MiAxMC4yNHM0Ljk2MyA1LjE1OSA5LjkyNSA1LjE1OWg5NC4xMjhjNC45MjIgMCAxNC44NDctNS4xMiAxNC44NDctMTUuMzZ6bTIyNy44MzYgMGMwLTEwLjI0LTQuOTIzLTE1LjQtMTQuODQ4LTE1LjRoLTE1OC41MmMtNC45NjIgMC05Ljg4NSAwLTkuODg1IDUuMTItNC45NjMgNS4xMi00Ljk2MyA1LjEyLTQuOTYzIDEwLjI4IDAgNS4xMiAwIDEwLjI0IDQuOTYzIDEwLjI0IDQuOTIzIDUuMTU5IDQuOTIzIDUuMTU5IDkuODg1IDUuMTU5aDE1OC41MmM0Ljk2MyAwIDkuOTI1IDAgOS45MjUtNS4xMiA0LjkyMyAwIDQuOTIzLTUuMTIgNC45MjMtMTAuMjR6IiBmaWxsPSIjMzI5MUZDIi8+PHBhdGggZD0iTTg4MC41ODcgMTQzLjc5YzI5LjY5NS01LjEyIDY0LjM5MiAwIDk0LjEyNyAxMC4yOHY4Mi4yMzNsLTQuOTYyIDU4NS40OEg4ODUuNTFjLTQuOTIzLTEzMy41MS00LjkyMy0yNjcuMDYxLTQuOTIzLTM5NS40NTMgMC0yMC41NTgtOS45MjUtNjEuNjM1LTQuOTYzLTkyLjQ3MyA5Ljg4Ni02MS41OTYgNC45NjMtMTI4LjM5MSA0Ljk2My0xOTAuMDI3eiIgZmlsbD0iIzMyOTFGQyIvPjxwYXRoIGQ9Im05NzQuNjc1IDE1OS4yMjkgMTI4Ljc4NSA1LjEyYy02OS4zMTYtMjAuNTU4LTI5LjY5NSA0Ni4yMzctMjkuNjk1IDcxLjkxNWgtOTQuMTI4bC00Ljk2Mi03Ny4wMzV6bS03NjIuODI2IDUuMTJ2NzcuMDM1aC04OS4xNjVjLTQuOTIzIDAtNC45MjMgNS4xMi00LjkyMyAxMC4yNHY1NTkuODQxYzAgNS4xMiA0LjkyMyAxMC4yOCA5Ljg4NSAxNS40IDI5LjczNSAxMC4yNzkgNTkuNDcgNS4xMiA4OS4xNjUtMTUuMzZsNC45NjIgNS4xMmMwIDUuMTIgNC45NjMgNS4xMiA5Ljg4NiA1LjEyaDc0My4wMTZsOTkuMDkgNS4xMmM0Ljk2MiAzNS45NTctNC45NjMgNjYuNzk0LTE0Ljg0OCA5Ny41OTNINzMuMTM5Yy00LjkyMyAwLTkuODQ2LTUuMTItMTQuODQ4LTUuMTItNC45MjMtMjAuNTU5LTkuODg1LTMwLjgzOC05Ljg4NS00Ni4yMzdWMjE1LjcwNWMwLTMwLjc5OCAxNC44NDctNDYuMjM2IDQ0LjU4Mi00Ni4yMzZsMTE4Ljg2LTUuMTJ6IiBmaWxsPSIjQTFBQUVGIi8+PHBhdGggZD0iTTExMDMuNDYgMTY5LjQ2OWMyNC44MTIgNS4xMiAzOS42NiAyMC41NTggMzkuNjYgNDYuMjM2IDQuOTIzIDE3NC42MjkgNC45MjMgNDEwLjg5Mi00Ljk2MyA3MDMuNjMzbC0zOS42MiA1LjEyaC00NC42MjJjMTQuODQ4LTMwLjc5OSAxOS44MS02MS42MzYgMTQuODQ4LTk3LjU5NHYtNTg1LjQ0YzQuOTYyLTMwLjc5OS0zNC42NTgtOTIuNDM1IDM0LjY1OC03MS45MTZ6IiBmaWxsPSIjQTFBQUVGIi8+PHBhdGggZD0iTTIxMS44ODggMjQxLjQyM3Y1NjQuOTIyYy0yOS43MzUgMjAuNTItNTkuNDcgMjUuNjc5LTg5LjIwNCAxNS40LTQuOTIzIDAtOS44ODYtMTAuMjQtOS44ODYtMTUuNFYyNDYuNTA0YzAtNS4xMiA0Ljk2My0xMC4yNCA0Ljk2My0xMC4yNGw5NC4xMjcgNS4xMnoiIGZpbGw9IiNEREUyRjAiLz48cGF0aCBkPSJNOTc0LjY3NSAyNDEuNDIzaDk0LjEyN3Y1ODAuMzIybC05OS4wNS01LjEyIDQuOTIzLTU3NS4yNDF6TTUzLjM2OCA5MTQuMTRjNC45MjMgNS4xMiA5Ljg4NSA1LjEyIDE0Ljg0OCA1LjEyaDEwMzAuMjgyYzE0Ljg4NyAzMC44MzggMTQuODg3IDY2Ljc5NS00LjkyMyA5Ny41OTMtMzQxLjc3My01LjEyLTY3OC42MjQtNS4xMi0xMDIwLjQzNiAwLTU0LjQ2OCAwLTg0LjIwMy0yNS42NzgtNjkuMzE2LTg3LjI3NCAwLTUuMTIgNC45NjItNS4xMiA5Ljg4NS01LjEyIDE0Ljg4NyAwIDI0LjgxMi01LjE2IDM5LjY2LTEwLjMxOXoiIGZpbGw9IiNEQUUwRkYiLz48cGF0aCBkPSJtMTEzOC4xNTcgOTE5LjMzOCAyOS43MzUgNS4xMmM0LjkyMyAwIDkuODg1IDUuMTIgOS44ODUgMTAuMjQgMTQuODQ4IDY2Ljc5NS0xNC44NDcgOTcuNjMyLTg0LjIwMiA4Ny4zNTMgMTkuODEtMzUuOTU4IDE5LjgxLTY2Ljc1NiA0Ljk2Mi05Ny41OTNsMzkuNjItNS4xMnoiIGZpbGw9IiNDQ0QyRjIiLz48cGF0aCBkPSJNMzEwLjkzOCA1Ni40NzZjLTQuOTYyIDAtOS45MjQgNS4xMi05LjkyNCAxMC4yOCAwIDUuMTIgMCAxMC4yNzkgNC45NjIgMTUuMzk5czkuOTI1IDUuMTIgMTQuODQ4IDUuMTJjNC45NjIgMCA5LjkyNS01LjEyIDkuOTI1LTEwLjI0czAtMTAuMjQtNC45NjMtMTUuNGMtNC45NjItNS4xMi05Ljg4NS01LjEyLTE0Ljg0OC01LjEyem00NC41ODMgMjAuNTU5YzAgNS4xMiA0LjkyMyAxMC4yNCA5Ljg4NSAxNS4zOTkgNC45NjMgNS4xMiA5LjkyNSA1LjEyIDE0Ljg4NyAwIDQuOTIzLTUuMTIgOS44ODYtMTAuMjQgOS44ODYtMTUuMzYgMC01LjE1OS00Ljk2My0xMC4zMTgtOS44ODYtMTUuNDM4LTQuOTYyLTUuMTItOS45MjQtNS4xMi0xNC44ODcgMHMtOS44ODUgNS4xMi05Ljg4NSAxNS4zOTl6bTc0LjI3OC0yMC41NTljLTkuODg1IDAtMTQuODQ4IDEwLjI4LTE0Ljg0OCAyMC41NTkgMCAxMC4yNCA0Ljk2MyAxNS4zOTkgMTQuODQ4IDE1LjM5OSA5LjkyNSAwIDE0Ljg4Ny0xMC4yNCAxNC44ODctMTUuMzYgMC0xMC4zMTgtOS45MjUtMjAuNTk4LTE0Ljg4Ny0yMC41OTh6bS00NC41ODMgMzIzLjU3OCA2OS4zNTUgNjYuNzU2YzQuOTYzIDUuMTIgNC45NjMgNS4xMiA0Ljk2MyAxMC4yOCA5Ljg4NSAxMTguMTUtMTM4LjcxLTUxLjM1Ny0xNTMuNTU4LTYxLjYzNy05LjkyNS0xNS4zNi05LjkyNS0zMC43OTggMC00Ni4xOTcgMTkuODEtMjAuNTU4IDEyOC43ODUtMTQ4Ljk1IDE1My41NTgtODcuMzE0IDkuODg1IDE1LjM2IDQuOTYyIDMwLjc5OC05LjkyNSA0Ni4xOTdsLTY0LjM5MyA2MS42NzZ2MTAuMjc5em0yMzIuODM4LTEzMy41MTFjMjQuNzcyIDUuMTIgMjkuNjk1IDIwLjUxOSAyNC43NzIgNDEuMDc3bC00OS41NDUgMTkwLjAyOGMtNC45NjIgMjAuNTE5LTE5LjgxIDI1LjY3OC0zOS42MiAyMC41MTktMTkuODEtNS4xMi0yNC44MTItMjAuNTItMTkuODEtNDEuMDc4bDQ5LjUwNi0xOTAuMDI3YzQuOTYyLTIwLjU1OCAxNC44ODctMjUuNjc4IDM0LjY1Ny0yMC41NTh6bTE2My40NDMgMTA3LjgzM2MtMjkuNjk1LTIwLjU1OC00OS41NDUtNDYuMjM3LTY5LjMxNi02Ni43NTYtNC45NjItNS4xMi00Ljk2Mi0xMC4yNzkgMC0xNS4zOTkgMjQuNzMzLTc3LjA3NCAxMTguODYgMzUuOTE4IDE0My42MzMgNjEuNTk3IDQ0LjU4MyA0MS4xMTYgOS44ODYgNjEuNjM1LTE5LjgxIDkyLjQ3M2E1MDQuMTE0IDUwNC4xMTQgMCAwIDEtNzkuMjggNjYuNzU2Yy00LjkyMiA1LjEyLTkuODg1IDUuMTItMTQuODQ3IDUuMTItOTQuMTI4LTEwLjI0IDI0Ljc3Mi0xMDIuNzE0IDM5LjYyLTExMi45OTMgNC45NjItNS4xMiA0Ljk2Mi0xMC4yNCA0Ljk2Mi0xNS4zNiAwLTUuMTU5IDAtMTAuMzE4LTQuOTYyLTE1LjQzOHoiIGZpbGw9IiNGMUVGRjIiLz48cGF0aCBkPSJNMzEwLjkzOCA1NzUuMjAxSDQ2OS40MmM5LjkyNSAwIDE0Ljg4NyA1LjEyIDE0Ljg4NyAxNS40Mzl2NS4xMmMwIDEwLjI0LTQuOTYyIDE1LjM5OS0xNC44ODcgMTUuMzk5SDMxMC45NGMtOS45MjUgMC0xNC44ODgtNS4xMi0xNC44ODgtMTUuMzZ2LTUuMTZjMC0xMC4yNzggNC45NjMtMTUuNDM4IDE0Ljg4Ny0xNS40Mzh6IiBmaWxsPSIjRkRERDQ0Ii8+PHBhdGggZD0iTTU5OC4yNDQgNjY1LjI3MmMwIDUuOTA4IDQuOTIzIDE3Ljc2MyAxNC44NDggMTcuNzYzIDkuODg1IDAgMjQuNzcyIDUuOTA3IDM0LjY1NyAwIDkuOTI1LTUuOTA4IDE5LjgxLTExLjgxNiAxOS44MS0xNy43NjMgMC01LjkwNy00LjkyMy0xNy44MDEtMTQuODQ3LTE3LjgwMS05Ljg4NiAwLTI0Ljc3My01LjkwOC0zNC42NTggMC0xNC44ODcgNS45MDctMTkuODEgMTEuODU0LTE5LjgxIDE3LjgwMXptLTI4Ny4zMDYtMTcuODAxaDIzMi43OTljOS45MjQgMCAxNC44NDcgNS45MDcgMTQuODQ3IDE3LjgwMSAwIDExLjgxNi00LjkyMyAxNy43NjMtMTQuODQ3IDE3Ljc2M0gzMTAuOTM4Yy05LjkyNCA1LjkwNy0xNC44ODcgMC0xNC44ODctMTEuODE2IDAtMTcuODAxIDQuOTYzLTIzLjc0OCAxNC44ODctMjMuNzQ4eiIgZmlsbD0iI0ZDOTc0MyIvPjxwYXRoIGQ9Ik02ODcuNDA5IDczNS41NzNjMCA1LjQ3NCA0LjkyMyAxMC45MDkgMTQuODQ4IDE2LjM0NCA5Ljg4NSA1LjQzNSAxOS44MSA1LjQzNSAyNC43NzIgMCA5Ljg4NS01LjQzNSAxNC44NDgtMTAuODcgMTQuODQ4LTE2LjM0NCAwLTUuNDM1LTQuOTYzLTEwLjg3LTE0Ljg0OC0xNi4zMDUtOS45MjUtNS40MzUtMTkuODEtNS40MzUtMjQuODEyIDAtOS44NDYgNS40MzUtMTQuODA4IDEwLjg3LTE0LjgwOCAxNi4zMDV6bS0zNzYuNTEtMTYuMzA1aDk0LjEyOGM5LjkyNCAwIDE0Ljg4NyA1LjQzNSAxNC44ODcgMTYuMzA1IDAgMTAuOTA5LTQuOTYzIDE2LjM0NC0xNC44ODcgMTYuMzQ0aC05NC4xMjhjLTkuODQ2IDAtMTQuODQ4LTUuNDM1LTE0Ljg0OC0xNi4zNDQgMC0xMC44NyA0Ljk2My0xNi4zMDUgMTQuODg3LTE2LjMwNXptMTYzLjQ4MyAwaDE1OC41MmM5LjkyNCAwIDE0Ljg0NyA1LjQzNSAxNC44NDcgMTYuMzA1IDAgMTAuOTA5LTQuOTIzIDE2LjM0NC0xNC44NDcgMTYuMzQ0aC0xNTguNTJjLTkuODg2IDAtMTQuODQ4LTUuNDM1LTE0Ljg0OC0xNi4zNDQgMC0xMC44NyA0Ljk2Mi0xNi4zMDUgMTQuODQ4LTE2LjMwNXoiIGZpbGw9IiMyOEQxQjMiLz48L3N2Zz4=",it=Object.defineProperty,cn=Object.getOwnPropertySymbols,An=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,an=(on,rn,mn)=>rn in on?it(on,rn,{enumerable:!0,configurable:!0,writable:!0,value:mn}):on[rn]=mn,ln=(on,rn)=>{for(var mn in rn||(rn={}))An.call(rn,mn)&&an(on,mn,rn[mn]);if(cn)for(var mn of cn(rn))Pt.call(rn,mn)&&an(on,mn,rn[mn]);return on};const zn=on=>React.createElement("svg",ln({className:"d_svg__icon",width:200,height:200,viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},on),React.createElement("path",{d:"m615.56 977.135-403.626-.341h-1.127a102.468 102.468 0 0 1-65.809-23.894 80.725 80.725 0 0 1-29.354-61.03l.58-616.039a80.486 80.486 0 0 1 29.355-60.86 103.117 103.117 0 0 1 65.809-23.893h1.194l67.243.683v3.448c-2.492 64.99-1.672 68.027 3.482 73.386l3.754 3.823h6.008a17.408 17.408 0 0 0 3.618-.478h107.11c282.897 0 282.897 0 286.72-1.706l5.974-2.595 1.604-5.973a275.801 275.801 0 0 0 1.024-46.285v-23.893l64.512.546h.648a102.4 102.4 0 0 1 71.783 28.911 79.748 79.748 0 0 1 23.893 56.15v360.789a208.282 208.282 0 0 0-117.077-35.84c-115.678 0-209.408 93.56-209.408 208.998a207.428 207.428 0 0 0 82.603 166.332l-.512-.24z",fill:"#3291FC"}),React.createElement("path",{d:"M634.266 989.867H211.149a116.531 116.531 0 0 1-74.82-27.239A93.628 93.628 0 0 1 102.4 891.7l.614-616.038a93.236 93.236 0 0 1 34.031-70.895 116.053 116.053 0 0 1 74.411-27.034h1.195l80.896.82v1.809c0 3.208 0 8.567-.615 15.086a394.923 394.923 0 0 0 0 63.83c.615 0 .683 0 .717-.342h109.944c198.246 0 280.337 0 281.156-.614 1.194-14.268 1.4-28.604.682-42.94V177.87l77.756.614h.683a115.268 115.268 0 0 1 80.725 32.768c17.579 17.408 27.443 41.028 27.41 65.707v370.21c-8.295-6.622-17.067-12.63-26.283-17.92V276.992a66.697 66.697 0 0 0-20.207-46.729 89.293 89.293 0 0 0-62.328-25.122h-.682l-51.064-.478v10.616a247.929 247.929 0 0 1-1.434 49.8l-3.276 12.288-11.947 5.086c-6.007 2.526-6.007 2.526-77.073 2.629H297.233a32.256 32.256 0 0 1-5.086.477h-1.194l-10.48-.477-7.236-7.578c-9.01-9.387-9.728-16.18-7.509-72.977l-53.862-.478h-1.195a90.18 90.18 0 0 0-57.242 20.65 67.96 67.96 0 0 0-24.815 50.996l-.682 616.004a67.584 67.584 0 0 0 24.849 50.995c16.11 13.551 36.522 20.992 57.583 21.027h388.744a210.75 210.75 0 0 0 34.475 25.907l.683.239z",fill:"#82BDFF"}),React.createElement("path",{d:"M624.64 235.759H350.345a23.962 23.962 0 0 1-23.894-24.235v-64.853a23.893 23.893 0 0 1 23.894-23.893h42.598a94.55 94.55 0 0 1 94.481-88.645 94.55 94.55 0 0 1 94.447 88.645h42.598a23.893 23.893 0 0 1 23.894 23.893v64.785a23.893 23.893 0 0 1-23.962 23.893l.239.41z",fill:"#38C9FF",fillOpacity:.4}),React.createElement("path",{d:"M562.654 810.667a179.302 179.302 0 0 0 179.473 179.131A179.302 179.302 0 0 0 921.6 810.667a179.063 179.063 0 0 0-89.737-155.136 179.746 179.746 0 0 0-179.473 0 179.063 179.063 0 0 0-89.736 155.136z",fill:"#38C9FF",opacity:.4}),React.createElement("path",{d:"m738.543 742.195 72.158 39.629a4.608 4.608 0 0 1 1.536 5.973l-79.258 134.28a31.232 31.232 0 0 1-22.528 15.02l-36.796 8.294a5.973 5.973 0 0 1-6.348-3.891l-17.238-35.84a31.642 31.642 0 0 1 2.697-27.17l79.667-134.93a4.506 4.506 0 0 1 6.008-1.57m84.206 20.549a4.096 4.096 0 0 1-5.973 1.365c-19.115-11.947-52.702-30.208-66.287-38.639a4.233 4.233 0 0 1-1.297-5.94l11.947-18.772a35.908 35.908 0 0 1 51.507-9.967l5.973 3.754c8.636 4.984 15.258 12.834 18.671 22.187 3.414 9.591 2.219 20.241-3.242 28.877",fill:"#00D8FB"}),React.createElement("path",{d:"M270.131 356.932c9.558-.239 19.08 1.536 27.955 5.12a53.737 53.737 0 0 1 31.096 34.748c2.56 8.397 3.857 17.135 3.755 25.941.068 6.35-.547 12.698-1.775 18.978a63.488 63.488 0 0 1-6.417 17.306l12.322 10.377c1.98 1.775 2.764 4.437 2.116 6.997a13.722 13.722 0 0 1-4.506 7.475 16.52 16.52 0 0 1-8.533 4.3 8.329 8.329 0 0 1-7.373-1.808l-10.342-8.602c-5.393 3.653-11.264 6.486-17.545 8.295-6.792 1.877-13.824 2.73-20.855 2.628a69.734 69.734 0 0 1-27.239-4.95 54.75 54.75 0 0 1-31.573-34.61 84.821 84.821 0 0 1-3.96-26.454 90.897 90.897 0 0 1 3.585-25.873c2.218-7.714 6.075-14.848 11.264-20.958 5.324-6.076 12.015-10.854 19.49-13.995a72.26 72.26 0 0 1 28.535-5.12v.205zm0 111.275c3.857.068 7.68-.341 11.435-1.229a35.499 35.499 0 0 0 9.455-3.96l-10.547-8.874a5.973 5.973 0 0 1-2.39-5.632 13.926 13.926 0 0 1 5.564-8.363 17.408 17.408 0 0 1 8.67-4.71 7.919 7.919 0 0 1 6.895 1.843l5.973 5.018a56.32 56.32 0 0 0 1.74-9.148c.342-3.243.513-6.554.479-9.83a77.79 77.79 0 0 0-1.98-17.92 42.325 42.325 0 0 0-6.383-14.678 30.55 30.55 0 0 0-11.435-9.864 37.683 37.683 0 0 0-17.169-3.584 37.035 37.035 0 0 0-17.237 3.652 31.642 31.642 0 0 0-11.4 9.83 40.98 40.98 0 0 0-6.35 14.405 76.66 76.66 0 0 0 0 34.099c1.025 5.222 3.073 10.172 5.974 14.643 2.936 4.267 6.827 7.85 11.435 10.308a35.713 35.713 0 0 0 17.578 3.96l-.307.034z",fill:"#FFF"}),React.createElement("path",{d:"m249.173 672.085-10.444 21.163a17.92 17.92 0 0 1-5.974 7.066 19.456 19.456 0 0 1-11.196 2.628 19.797 19.797 0 0 1-11.946-3.072c-2.97-2.082-3.311-5.666-1.092-10.718l48.878-110.455a11.264 11.264 0 0 1 5.12-5.257 25.532 25.532 0 0 1 21.163 0 11.469 11.469 0 0 1 5.052 5.257l49.357 110.865c1.911 4.676 1.365 8.09-1.536 10.24a19.422 19.422 0 0 1-11.947 3.208 17.408 17.408 0 0 1-10.923-2.526 18.534 18.534 0 0 1-5.495-6.314l-11.367-22.085H249.14zm42.428-20.787-18.227-45.636-18.296 45.636h36.523zm139.4-244.94h305.87c16.998 0 25.497 5.46 25.497 16.486 0 10.99-8.533 16.486-25.498 16.486H431.002c-16.999 0-25.498-5.495-25.498-16.486s8.533-16.487 25.498-16.487z",fill:"#0DFED4"}),React.createElement("path",{d:"M431.002 620.612h126.395c16.999 0 25.498 5.462 25.498 16.487 0 10.99-8.5 16.452-25.498 16.452H431.002c-16.999 0-25.498-5.461-25.498-16.452 0-10.991 8.533-16.487 25.498-16.487zm-10.889 120.969h72.26c9.728 0 14.61 5.495 14.61 16.486s-4.882 16.487-14.61 16.487h-72.26c-9.728 0-14.609-5.496-14.609-16.487 0-10.99 4.881-16.486 14.61-16.486z",fill:"#FFF"}));var En="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTYxNS41NiA5NzcuMTM1LTQwMy42MjYtLjM0MWgtMS4xMjdhMTAyLjQ2OCAxMDIuNDY4IDAgMCAxLTY1LjgwOS0yMy44OTQgODAuNzI1IDgwLjcyNSAwIDAgMS0yOS4zNTQtNjEuMDNsLjU4LTYxNi4wMzlhODAuNDg2IDgwLjQ4NiAwIDAgMSAyOS4zNTUtNjAuODYgMTAzLjExNyAxMDMuMTE3IDAgMCAxIDY1LjgwOS0yMy44OTNoMS4xOTRsNjcuMjQzLjY4M3YzLjQ0OGMtMi40OTIgNjQuOTktMS42NzIgNjguMDI3IDMuNDgyIDczLjM4NmwzLjc1NCAzLjgyM2g2LjAwOGExNy40MDggMTcuNDA4IDAgMCAwIDMuNjE4LS40NzhoMTA3LjExYzI4Mi44OTcgMCAyODIuODk3IDAgMjg2LjcyLTEuNzA2bDUuOTc0LTIuNTk1IDEuNjA0LTUuOTczYTI3NS44MDEgMjc1LjgwMSAwIDAgMCAxLjAyNC00Ni4yODV2LTIzLjg5M2w2NC41MTIuNTQ2aC42NDhhMTAyLjQgMTAyLjQgMCAwIDEgNzEuNzgzIDI4LjkxMSA3OS43NDggNzkuNzQ4IDAgMCAxIDIzLjg5MyA1Ni4xNXYzNjAuNzg5YTIwOC4yODIgMjA4LjI4MiAwIDAgMC0xMTcuMDc3LTM1Ljg0Yy0xMTUuNjc4IDAtMjA5LjQwOCA5My41Ni0yMDkuNDA4IDIwOC45OThhMjA3LjQyOCAyMDcuNDI4IDAgMCAwIDgyLjYwMyAxNjYuMzMybC0uNTEyLS4yNHoiIGZpbGw9IiMzMjkxRkMiLz48cGF0aCBkPSJNNjM0LjI2NiA5ODkuODY3SDIxMS4xNDlhMTE2LjUzMSAxMTYuNTMxIDAgMCAxLTc0LjgyLTI3LjIzOUE5My42MjggOTMuNjI4IDAgMCAxIDEwMi40IDg5MS43bC42MTQtNjE2LjAzOGE5My4yMzYgOTMuMjM2IDAgMCAxIDM0LjAzMS03MC44OTUgMTE2LjA1MyAxMTYuMDUzIDAgMCAxIDc0LjQxMS0yNy4wMzRoMS4xOTVsODAuODk2LjgydjEuODA5YzAgMy4yMDggMCA4LjU2Ny0uNjE1IDE1LjA4NmEzOTQuOTIzIDM5NC45MjMgMCAwIDAgMCA2My44M2MuNjE1IDAgLjY4MyAwIC43MTctLjM0MmgxMDkuOTQ0YzE5OC4yNDYgMCAyODAuMzM3IDAgMjgxLjE1Ni0uNjE0IDEuMTk0LTE0LjI2OCAxLjQtMjguNjA0LjY4Mi00Mi45NFYxNzcuODdsNzcuNzU2LjYxNGguNjgzYTExNS4yNjggMTE1LjI2OCAwIDAgMSA4MC43MjUgMzIuNzY4YzE3LjU3OSAxNy40MDggMjcuNDQzIDQxLjAyOCAyNy40MSA2NS43MDd2MzcwLjIxYy04LjI5NS02LjYyMi0xNy4wNjctMTIuNjMtMjYuMjgzLTE3LjkyVjI3Ni45OTJhNjYuNjk3IDY2LjY5NyAwIDAgMC0yMC4yMDctNDYuNzI5IDg5LjI5MyA4OS4yOTMgMCAwIDAtNjIuMzI4LTI1LjEyMmgtLjY4MmwtNTEuMDY0LS40Nzh2MTAuNjE2YTI0Ny45MjkgMjQ3LjkyOSAwIDAgMS0xLjQzNCA0OS44bC0zLjI3NiAxMi4yODgtMTEuOTQ3IDUuMDg2Yy02LjAwNyAyLjUyNi02LjAwNyAyLjUyNi03Ny4wNzMgMi42MjlIMjk3LjIzM2EzMi4yNTYgMzIuMjU2IDAgMCAxLTUuMDg2LjQ3N2gtMS4xOTRsLTEwLjQ4LS40NzctNy4yMzYtNy41NzhjLTkuMDEtOS4zODctOS43MjgtMTYuMTgtNy41MDktNzIuOTc3bC01My44NjItLjQ3OGgtMS4xOTVhOTAuMTggOTAuMTggMCAwIDAtNTcuMjQyIDIwLjY1IDY3Ljk2IDY3Ljk2IDAgMCAwLTI0LjgxNSA1MC45OTZsLS42ODIgNjE2LjAwNGE2Ny41ODQgNjcuNTg0IDAgMCAwIDI0Ljg0OSA1MC45OTVjMTYuMTEgMTMuNTUxIDM2LjUyMiAyMC45OTIgNTcuNTgzIDIxLjAyN2gzODguNzQ0YTIxMC43NSAyMTAuNzUgMCAwIDAgMzQuNDc1IDI1LjkwN2wuNjgzLjIzOXoiIGZpbGw9IiM4MkJERkYiLz48cGF0aCBkPSJNNjI0LjY0IDIzNS43NTlIMzUwLjM0NWEyMy45NjIgMjMuOTYyIDAgMCAxLTIzLjg5NC0yNC4yMzV2LTY0Ljg1M2EyMy44OTMgMjMuODkzIDAgMCAxIDIzLjg5NC0yMy44OTNoNDIuNTk4YTk0LjU1IDk0LjU1IDAgMCAxIDk0LjQ4MS04OC42NDUgOTQuNTUgOTQuNTUgMCAwIDEgOTQuNDQ3IDg4LjY0NWg0Mi41OThhMjMuODkzIDIzLjg5MyAwIDAgMSAyMy44OTQgMjMuODkzdjY0Ljc4NWEyMy44OTMgMjMuODkzIDAgMCAxLTIzLjk2MiAyMy44OTNsLjIzOS40MXoiIGZpbGw9IiMzOEM5RkYiIGZpbGwtb3BhY2l0eT0iLjQiLz48cGF0aCBkPSJNNTYyLjY1NCA4MTAuNjY3YTE3OS4zMDIgMTc5LjMwMiAwIDAgMCAxNzkuNDczIDE3OS4xMzFBMTc5LjMwMiAxNzkuMzAyIDAgMCAwIDkyMS42IDgxMC42NjdhMTc5LjA2MyAxNzkuMDYzIDAgMCAwLTg5LjczNy0xNTUuMTM2IDE3OS43NDYgMTc5Ljc0NiAwIDAgMC0xNzkuNDczIDAgMTc5LjA2MyAxNzkuMDYzIDAgMCAwLTg5LjczNiAxNTUuMTM2eiIgZmlsbD0iIzM4QzlGRiIgb3BhY2l0eT0iLjQiLz48cGF0aCBkPSJtNzM4LjU0MyA3NDIuMTk1IDcyLjE1OCAzOS42MjlhNC42MDggNC42MDggMCAwIDEgMS41MzYgNS45NzNsLTc5LjI1OCAxMzQuMjhhMzEuMjMyIDMxLjIzMiAwIDAgMS0yMi41MjggMTUuMDJsLTM2Ljc5NiA4LjI5NGE1Ljk3MyA1Ljk3MyAwIDAgMS02LjM0OC0zLjg5MWwtMTcuMjM4LTM1Ljg0YTMxLjY0MiAzMS42NDIgMCAwIDEgMi42OTctMjcuMTdsNzkuNjY3LTEzNC45M2E0LjUwNiA0LjUwNiAwIDAgMSA2LjAwOC0xLjU3bTg0LjIwNiAyMC41NDlhNC4wOTYgNC4wOTYgMCAwIDEtNS45NzMgMS4zNjVjLTE5LjExNS0xMS45NDctNTIuNzAyLTMwLjIwOC02Ni4yODctMzguNjM5YTQuMjMzIDQuMjMzIDAgMCAxLTEuMjk3LTUuOTRsMTEuOTQ3LTE4Ljc3MmEzNS45MDggMzUuOTA4IDAgMCAxIDUxLjUwNy05Ljk2N2w1Ljk3MyAzLjc1NGM4LjYzNiA0Ljk4NCAxNS4yNTggMTIuODM0IDE4LjY3MSAyMi4xODcgMy40MTQgOS41OTEgMi4yMTkgMjAuMjQxLTMuMjQyIDI4Ljg3NyIgZmlsbD0iIzAwRDhGQiIvPjxwYXRoIGQ9Ik0yNzAuMTMxIDM1Ni45MzJjOS41NTgtLjIzOSAxOS4wOCAxLjUzNiAyNy45NTUgNS4xMmE1My43MzcgNTMuNzM3IDAgMCAxIDMxLjA5NiAzNC43NDhjMi41NiA4LjM5NyAzLjg1NyAxNy4xMzUgMy43NTUgMjUuOTQxLjA2OCA2LjM1LS41NDcgMTIuNjk4LTEuNzc1IDE4Ljk3OGE2My40ODggNjMuNDg4IDAgMCAxLTYuNDE3IDE3LjMwNmwxMi4zMjIgMTAuMzc3YzEuOTggMS43NzUgMi43NjQgNC40MzcgMi4xMTYgNi45OTdhMTMuNzIyIDEzLjcyMiAwIDAgMS00LjUwNiA3LjQ3NSAxNi41MiAxNi41MiAwIDAgMS04LjUzMyA0LjMgOC4zMjkgOC4zMjkgMCAwIDEtNy4zNzMtMS44MDhsLTEwLjM0Mi04LjYwMmMtNS4zOTMgMy42NTMtMTEuMjY0IDYuNDg2LTE3LjU0NSA4LjI5NS02Ljc5MiAxLjg3Ny0xMy44MjQgMi43My0yMC44NTUgMi42MjhhNjkuNzM0IDY5LjczNCAwIDAgMS0yNy4yMzktNC45NSA1NC43NSA1NC43NSAwIDAgMS0zMS41NzMtMzQuNjEgODQuODIxIDg0LjgyMSAwIDAgMS0zLjk2LTI2LjQ1NCA5MC44OTcgOTAuODk3IDAgMCAxIDMuNTg1LTI1Ljg3M2MyLjIxOC03LjcxNCA2LjA3NS0xNC44NDggMTEuMjY0LTIwLjk1OCA1LjMyNC02LjA3NiAxMi4wMTUtMTAuODU0IDE5LjQ5LTEzLjk5NWE3Mi4yNiA3Mi4yNiAwIDAgMSAyOC41MzUtNS4xMnYuMjA1em0wIDExMS4yNzVjMy44NTcuMDY4IDcuNjgtLjM0MSAxMS40MzUtMS4yMjlhMzUuNDk5IDM1LjQ5OSAwIDAgMCA5LjQ1NS0zLjk2bC0xMC41NDctOC44NzRhNS45NzMgNS45NzMgMCAwIDEtMi4zOS01LjYzMiAxMy45MjYgMTMuOTI2IDAgMCAxIDUuNTY0LTguMzYzIDE3LjQwOCAxNy40MDggMCAwIDEgOC42Ny00LjcxIDcuOTE5IDcuOTE5IDAgMCAxIDYuODk1IDEuODQzbDUuOTczIDUuMDE4YTU2LjMyIDU2LjMyIDAgMCAwIDEuNzQtOS4xNDhjLjM0Mi0zLjI0My41MTMtNi41NTQuNDc5LTkuODNhNzcuNzkgNzcuNzkgMCAwIDAtMS45OC0xNy45MiA0Mi4zMjUgNDIuMzI1IDAgMCAwLTYuMzgzLTE0LjY3OCAzMC41NSAzMC41NSAwIDAgMC0xMS40MzUtOS44NjQgMzcuNjgzIDM3LjY4MyAwIDAgMC0xNy4xNjktMy41ODQgMzcuMDM1IDM3LjAzNSAwIDAgMC0xNy4yMzcgMy42NTIgMzEuNjQyIDMxLjY0MiAwIDAgMC0xMS40IDkuODMgNDAuOTggNDAuOTggMCAwIDAtNi4zNSAxNC40MDUgNzYuNjYgNzYuNjYgMCAwIDAgMCAzNC4wOTljMS4wMjUgNS4yMjIgMy4wNzMgMTAuMTcyIDUuOTc0IDE0LjY0MyAyLjkzNiA0LjI2NyA2LjgyNyA3Ljg1IDExLjQzNSAxMC4zMDhhMzUuNzEzIDM1LjcxMyAwIDAgMCAxNy41NzggMy45NmwtLjMwNy4wMzR6IiBmaWxsPSIjRkZGIi8+PHBhdGggZD0ibTI0OS4xNzMgNjcyLjA4NS0xMC40NDQgMjEuMTYzYTE3LjkyIDE3LjkyIDAgMCAxLTUuOTc0IDcuMDY2IDE5LjQ1NiAxOS40NTYgMCAwIDEtMTEuMTk2IDIuNjI4IDE5Ljc5NyAxOS43OTcgMCAwIDEtMTEuOTQ2LTMuMDcyYy0yLjk3LTIuMDgyLTMuMzExLTUuNjY2LTEuMDkyLTEwLjcxOGw0OC44NzgtMTEwLjQ1NWExMS4yNjQgMTEuMjY0IDAgMCAxIDUuMTItNS4yNTcgMjUuNTMyIDI1LjUzMiAwIDAgMSAyMS4xNjMgMCAxMS40NjkgMTEuNDY5IDAgMCAxIDUuMDUyIDUuMjU3bDQ5LjM1NyAxMTAuODY1YzEuOTExIDQuNjc2IDEuMzY1IDguMDktMS41MzYgMTAuMjRhMTkuNDIyIDE5LjQyMiAwIDAgMS0xMS45NDcgMy4yMDggMTcuNDA4IDE3LjQwOCAwIDAgMS0xMC45MjMtMi41MjYgMTguNTM0IDE4LjUzNCAwIDAgMS01LjQ5NS02LjMxNGwtMTEuMzY3LTIyLjA4NUgyNDkuMTR6bTQyLjQyOC0yMC43ODctMTguMjI3LTQ1LjYzNi0xOC4yOTYgNDUuNjM2aDM2LjUyM3ptMTM5LjQtMjQ0Ljk0aDMwNS44N2MxNi45OTggMCAyNS40OTcgNS40NiAyNS40OTcgMTYuNDg2IDAgMTAuOTktOC41MzMgMTYuNDg2LTI1LjQ5OCAxNi40ODZINDMxLjAwMmMtMTYuOTk5IDAtMjUuNDk4LTUuNDk1LTI1LjQ5OC0xNi40ODZzOC41MzMtMTYuNDg3IDI1LjQ5OC0xNi40ODd6IiBmaWxsPSIjMERGRUQ0Ii8+PHBhdGggZD0iTTQzMS4wMDIgNjIwLjYxMmgxMjYuMzk1YzE2Ljk5OSAwIDI1LjQ5OCA1LjQ2MiAyNS40OTggMTYuNDg3IDAgMTAuOTktOC41IDE2LjQ1Mi0yNS40OTggMTYuNDUySDQzMS4wMDJjLTE2Ljk5OSAwLTI1LjQ5OC01LjQ2MS0yNS40OTgtMTYuNDUyIDAtMTAuOTkxIDguNTMzLTE2LjQ4NyAyNS40OTgtMTYuNDg3em0tMTAuODg5IDEyMC45NjloNzIuMjZjOS43MjggMCAxNC42MSA1LjQ5NSAxNC42MSAxNi40ODZzLTQuODgyIDE2LjQ4Ny0xNC42MSAxNi40ODdoLTcyLjI2Yy05LjcyOCAwLTE0LjYwOS01LjQ5Ni0xNC42MDktMTYuNDg3IDAtMTAuOTkgNC44ODEtMTYuNDg2IDE0LjYxLTE2LjQ4NnoiIGZpbGw9IiNGRkYiLz48L3N2Zz4=",ii=Object.defineProperty,kt=Object.getOwnPropertySymbols,Kn=Object.prototype.hasOwnProperty,yi=Object.prototype.propertyIsEnumerable,et=(on,rn,mn)=>rn in on?ii(on,rn,{enumerable:!0,configurable:!0,writable:!0,value:mn}):on[rn]=mn,ze=(on,rn)=>{for(var mn in rn||(rn={}))Kn.call(rn,mn)&&et(on,mn,rn[mn]);if(kt)for(var mn of kt(rn))yi.call(rn,mn)&&et(on,mn,rn[mn]);return on};const xe=on=>React.createElement("svg",ze({className:"e_svg__icon",width:200,height:200,viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},on),React.createElement("path",{d:"M387.883 793.003A165.248 165.248 0 0 0 231.21 957.952c0 19.157 3.328 41.941 9.258 66.048H0V783.53c24.107 5.974 46.933 9.26 66.048 9.26a165.205 165.205 0 0 0 165.205-165.163 165.205 165.205 0 0 0-165.12-165.163c-19.2 0-41.984 3.285-66.09 9.216V231.253h240.469c-5.973-24.106-9.259-46.89-9.259-66.048A165.205 165.205 0 0 1 396.373 0v792.747z",fill:"#3061D0"}),React.createElement("path",{d:"M858.837 462.464c-19.157 0-41.941 3.285-66.048 9.216V231.253H552.32c5.93-24.106 9.216-46.89 9.216-66.048A165.205 165.205 0 0 0 396.416 0v792.747a165.205 165.205 0 0 1 165.12 165.205c0 19.157-3.285 41.941-9.216 66.048h240.47V783.53c24.106 5.974 46.89 9.26 66.047 9.26A165.205 165.205 0 0 0 1024 627.626a165.205 165.205 0 0 0-165.163-165.163z",fill:"#A4C8FC"}));var Te="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTM4Ny44ODMgNzkzLjAwM0ExNjUuMjQ4IDE2NS4yNDggMCAwIDAgMjMxLjIxIDk1Ny45NTJjMCAxOS4xNTcgMy4zMjggNDEuOTQxIDkuMjU4IDY2LjA0OEgwVjc4My41M2MyNC4xMDcgNS45NzQgNDYuOTMzIDkuMjYgNjYuMDQ4IDkuMjZhMTY1LjIwNSAxNjUuMjA1IDAgMCAwIDE2NS4yMDUtMTY1LjE2MyAxNjUuMjA1IDE2NS4yMDUgMCAwIDAtMTY1LjEyLTE2NS4xNjNjLTE5LjIgMC00MS45ODQgMy4yODUtNjYuMDkgOS4yMTZWMjMxLjI1M2gyNDAuNDY5Yy01Ljk3My0yNC4xMDYtOS4yNTktNDYuODktOS4yNTktNjYuMDQ4QTE2NS4yMDUgMTY1LjIwNSAwIDAgMSAzOTYuMzczIDB2NzkyLjc0N3oiIGZpbGw9IiMzMDYxRDAiLz48cGF0aCBkPSJNODU4LjgzNyA0NjIuNDY0Yy0xOS4xNTcgMC00MS45NDEgMy4yODUtNjYuMDQ4IDkuMjE2VjIzMS4yNTNINTUyLjMyYzUuOTMtMjQuMTA2IDkuMjE2LTQ2Ljg5IDkuMjE2LTY2LjA0OEExNjUuMjA1IDE2NS4yMDUgMCAwIDAgMzk2LjQxNiAwdjc5Mi43NDdhMTY1LjIwNSAxNjUuMjA1IDAgMCAxIDE2NS4xMiAxNjUuMjA1YzAgMTkuMTU3LTMuMjg1IDQxLjk0MS05LjIxNiA2Ni4wNDhoMjQwLjQ3Vjc4My41M2MyNC4xMDYgNS45NzQgNDYuODkgOS4yNiA2Ni4wNDcgOS4yNkExNjUuMjA1IDE2NS4yMDUgMCAwIDAgMTAyNCA2MjcuNjI2YTE2NS4yMDUgMTY1LjIwNSAwIDAgMC0xNjUuMTYzLTE2NS4xNjN6IiBmaWxsPSIjQTRDOEZDIi8+PC9zdmc+",Me=Object.defineProperty,Ce=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,Mt=(on,rn,mn)=>rn in on?Me(on,rn,{enumerable:!0,configurable:!0,writable:!0,value:mn}):on[rn]=mn,Yt=(on,rn)=>{for(var mn in rn||(rn={}))ut.call(rn,mn)&&Mt(on,mn,rn[mn]);if(Ce)for(var mn of Ce(rn))Lt.call(rn,mn)&&Mt(on,mn,rn[mn]);return on};const Vt=on=>React.createElement("svg",Yt({className:"g_svg__icon",width:200,height:200,viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},on),React.createElement("path",{d:"M867.26 801.314c-66.56 79.292-160.802 120.9-261.36 129.775h-.306a221.082 221.082 0 0 1-14.541 1.058c-.41.103-.82.103-1.229.103-.41.443-1.365.443-1.74.443a511.386 511.386 0 0 1-155.854-16.862l-1.672-.443a312.422 312.422 0 0 1-17.033-4.915 271.599 271.599 0 0 1-15.906-5.018 30.106 30.106 0 0 0-2.15-.649c-7.748-2.662-15.36-5.53-22.904-8.533a375.02 375.02 0 0 1-18.432-7.68 525.005 525.005 0 0 1-113.083-65.946c-.922-.75-1.946-1.501-2.902-2.355a486.605 486.605 0 0 1-133.666-157.49c-146.773-276.48 40.38-490.156 210.364-500.498 3.72-.239 7.339-.341 10.923-.341h9.83c150.903-7.885 315.392 78.233 430.216 195.515 1.434 1.4 2.731 2.8 4.096 4.267 5.7 5.803 11.162 11.742 16.521 17.715C909.278 514.867 965.12 684.544 867.26 801.314",fill:"#FFD066"}),React.createElement("path",{d:"M222.413 807.697a487.902 487.902 0 0 1-105.267-122.47c4.983-175.343 36.215-364.544 100.42-392.807 65.707 288.598 52.77 442.095 4.847 515.277z",fill:"#E97286"}),React.createElement("path",{d:"m206.916 794.18-41.472-620.202c-1.024-14.95 4.028-29.696 13.995-40.96a57.21 57.21 0 0 1 39.185-19.115l515.994-33.894c31.436-2.048 58.607 21.504 60.689 52.633l46.523 695.876a362.12 362.12 0 0 1-133.222 80.828l-235.93 15.53a542.447 542.447 0 0 1-59.153-14.403 331.537 331.537 0 0 1-15.906-5.018 30.106 30.106 0 0 0-2.15-.683c-7.748-2.628-15.36-5.495-22.904-8.533-6.212-2.39-12.322-4.95-18.432-7.646a524.97 524.97 0 0 1-147.217-94.447v.034z",fill:"#7E4EE3"}),React.createElement("path",{d:"m199.031 171.964 551.424-38.707 52.088 731.238-538.385 25.77-65.16-718.301",fill:"#FFF"}),React.createElement("path",{d:"M236.1 818.79a491.69 491.69 0 0 1-111.889-122.197c9.011-81.237 44.715-127.522 79.394-172.544 16.282-21.163 32.359-41.984 45.364-66.048 49.937-92.501 108.544-87.962 13.004 97.963-16.042 31.334-9.08 59.597-1.297 91.204 11.06 44.578 23.689 95.778-24.576 171.622z",fill:"#F69C93"}),React.createElement("path",{d:"m689.562 339.388-231.936 21.265a15.292 15.292 0 0 1-16.657-13.722l-3.14-33.519a15.223 15.223 0 0 1 13.857-16.486l231.902-21.265a15.258 15.258 0 0 1 16.657 13.721l3.14 33.485a15.223 15.223 0 0 1-13.858 16.52zm18.022 189.167-237.875 15.599a14.54 14.54 0 0 1-15.497-13.449l-2.39-35.02a14.507 14.507 0 0 1 13.62-15.395l237.875-15.599a14.54 14.54 0 0 1 15.497 13.449l2.39 35.055a14.507 14.507 0 0 1-13.62 15.36zM486.741 746.359l239.138-20.002a14.165 14.165 0 0 0 9.626-4.949 13.926 13.926 0 0 0 3.277-10.24l-3.072-35.84a13.96 13.96 0 0 0-4.984-9.523 14.234 14.234 0 0 0-10.308-3.243L481.28 682.598a14.063 14.063 0 0 0-12.902 15.121l3.072 35.875c.682 7.714 7.509 13.414 15.291 12.765z",fill:"#D5CFE3"}),React.createElement("path",{d:"M380.587 351.778c0 29.355-23.996 53.112-53.59 53.112-29.627 0-53.623-23.757-53.623-53.112s23.996-53.111 53.59-53.111c29.627 0 53.657 23.79 53.657 53.111zm18.227 192.683c0 29.354-23.996 53.145-53.624 53.145a53.385 53.385 0 0 1-53.623-53.145c0-29.355 23.996-53.112 53.59-53.112 29.661 0 53.657 23.791 53.657 53.112zm-35.908 237.431c19.421.342 37.546-9.66 47.343-26.282a52.702 52.702 0 0 0 0-53.726 53.726 53.726 0 0 0-47.343-26.249 53.385 53.385 0 0 0-52.566 53.112c0 28.945 23.382 52.565 52.566 53.145z",fill:"#E7E1F4"}),React.createElement("path",{d:"M288.324 349.389c-7.885-8.977 10.684-23.552 20.446-12.63 1.843 2.083 3.516 4.335 5.154 6.486 7.032 9.216 12.766 16.725 21.64 1.877 10.992-18.33 42.667-56.456 51.747-64.717 9.08-8.294 38.298 1.058 21.948 20.583-16.384 19.558-45.568 56.832-54.409 70.895-8.875 14.028-21.845 24.098-36.727 7.134-14.78-16.965-29.799-29.594-29.799-29.594zm16.384 193.604c-8.772-8.09 8.124-24.576 18.978-14.677 2.048 1.843 3.96 3.89 5.803 5.87 8.021 8.432 14.507 15.292 21.777-.409 8.943-19.354 36.352-60.587 44.51-69.768 8.192-9.216 38.23-2.936 24.03 18.193-14.165 21.162-39.253 61.269-46.524 76.185-7.304 14.882-19.217 26.249-35.772 10.923-16.52-15.292-32.768-26.283-32.768-26.283zm37.308 171.486c-9.66-11.025-28.33 3.413-20.48 12.493 0 0 14.882 12.766 29.594 29.798 14.677 17.067 27.784 7.134 36.727-6.86 8.943-13.995 38.434-51.064 54.955-70.486 16.486-19.388-12.698-29.013-21.846-20.787-9.113 8.226-41.096 46.148-52.155 64.375-9.012 14.78-14.678 7.237-21.64-2.048a114.142 114.142 0 0 0-5.12-6.485z",fill:"#00C6CD"}),React.createElement("path",{d:"M569.924 67.174c-49.97-119.5-164.59-54.1-185.856 11.094-31.266 1.706-57.07 2.935-70.997 3.345h-.341c-6.52.239-18.432.58-26.044 8.772-19.354 20.821 6.28 73.66 21.265 100.932a1297.067 1297.067 0 0 0 349.15-23.176c17.34-57.583 21.709-110.148-21.709-105.882-11.4 1.16-35.362 2.902-65.468 4.915zm-91.75.308c-1.707 0-3.96.068-6.588.17-19.353.683-58.3 2.048-38.98-22.698 25.566-32.7 75.23-31.062 91.136-4.916 15.906 26.147-31.266 27.444-45.568 27.444z",fill:"#3D3450"}),React.createElement("path",{d:"M830.669 1019.085a173.431 173.431 0 0 0 149.948-85.743 170.155 170.155 0 0 0 0-171.52 173.431 173.431 0 0 0-149.948-85.777c-95.608 0-173.124 76.8-173.124 171.52 0 94.72 77.482 171.52 173.124 171.52z",fill:"#00C572"}),React.createElement("path",{d:"M919.552 769.434a21.777 21.777 0 0 1 36.181 10.513 21.3 21.3 0 0 1-6.45 20.65l-29.697-31.163zm-161.178 61.235 5.735 7.782c11.4 15.463 22.733 30.925 34.099 46.422A13499.972 13499.972 0 0 1 916.514 772.3l3.072-2.867 29.696 31.163-3.038 2.833-39.594 37.376a12901.717 12901.717 0 0 0-96.154 92.092 21.777 21.777 0 0 1-32.666-2.799 13821.622 13821.622 0 0 0-48.674-66.355l-5.734-7.748 34.952-25.293zm0 0a21.777 21.777 0 0 0-30.242-4.642 21.3 21.3 0 0 0-4.71 29.935l34.952-25.26z",fill:"#FFF"}));var Gt="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg2Ny4yNiA4MDEuMzE0Yy02Ni41NiA3OS4yOTItMTYwLjgwMiAxMjAuOS0yNjEuMzYgMTI5Ljc3NWgtLjMwNmEyMjEuMDgyIDIyMS4wODIgMCAwIDEtMTQuNTQxIDEuMDU4Yy0uNDEuMTAzLS44Mi4xMDMtMS4yMjkuMTAzLS40MS40NDMtMS4zNjUuNDQzLTEuNzQuNDQzYTUxMS4zODYgNTExLjM4NiAwIDAgMS0xNTUuODU0LTE2Ljg2MmwtMS42NzItLjQ0M2EzMTIuNDIyIDMxMi40MjIgMCAwIDEtMTcuMDMzLTQuOTE1IDI3MS41OTkgMjcxLjU5OSAwIDAgMS0xNS45MDYtNS4wMTggMzAuMTA2IDMwLjEwNiAwIDAgMC0yLjE1LS42NDljLTcuNzQ4LTIuNjYyLTE1LjM2LTUuNTMtMjIuOTA0LTguNTMzYTM3NS4wMiAzNzUuMDIgMCAwIDEtMTguNDMyLTcuNjggNTI1LjAwNSA1MjUuMDA1IDAgMCAxLTExMy4wODMtNjUuOTQ2Yy0uOTIyLS43NS0xLjk0Ni0xLjUwMS0yLjkwMi0yLjM1NWE0ODYuNjA1IDQ4Ni42MDUgMCAwIDEtMTMzLjY2Ni0xNTcuNDljLTE0Ni43NzMtMjc2LjQ4IDQwLjM4LTQ5MC4xNTYgMjEwLjM2NC01MDAuNDk4IDMuNzItLjIzOSA3LjMzOS0uMzQxIDEwLjkyMy0uMzQxaDkuODNjMTUwLjkwMy03Ljg4NSAzMTUuMzkyIDc4LjIzMyA0MzAuMjE2IDE5NS41MTUgMS40MzQgMS40IDIuNzMxIDIuOCA0LjA5NiA0LjI2NyA1LjcgNS44MDMgMTEuMTYyIDExLjc0MiAxNi41MjEgMTcuNzE1QzkwOS4yNzggNTE0Ljg2NyA5NjUuMTIgNjg0LjU0NCA4NjcuMjYgODAxLjMxNCIgZmlsbD0iI0ZGRDA2NiIvPjxwYXRoIGQ9Ik0yMjIuNDEzIDgwNy42OTdhNDg3LjkwMiA0ODcuOTAyIDAgMCAxLTEwNS4yNjctMTIyLjQ3YzQuOTgzLTE3NS4zNDMgMzYuMjE1LTM2NC41NDQgMTAwLjQyLTM5Mi44MDcgNjUuNzA3IDI4OC41OTggNTIuNzcgNDQyLjA5NSA0Ljg0NyA1MTUuMjc3eiIgZmlsbD0iI0U5NzI4NiIvPjxwYXRoIGQ9Im0yMDYuOTE2IDc5NC4xOC00MS40NzItNjIwLjIwMmMtMS4wMjQtMTQuOTUgNC4wMjgtMjkuNjk2IDEzLjk5NS00MC45NmE1Ny4yMSA1Ny4yMSAwIDAgMSAzOS4xODUtMTkuMTE1bDUxNS45OTQtMzMuODk0YzMxLjQzNi0yLjA0OCA1OC42MDcgMjEuNTA0IDYwLjY4OSA1Mi42MzNsNDYuNTIzIDY5NS44NzZhMzYyLjEyIDM2Mi4xMiAwIDAgMS0xMzMuMjIyIDgwLjgyOGwtMjM1LjkzIDE1LjUzYTU0Mi40NDcgNTQyLjQ0NyAwIDAgMS01OS4xNTMtMTQuNDAzIDMzMS41MzcgMzMxLjUzNyAwIDAgMS0xNS45MDYtNS4wMTggMzAuMTA2IDMwLjEwNiAwIDAgMC0yLjE1LS42ODNjLTcuNzQ4LTIuNjI4LTE1LjM2LTUuNDk1LTIyLjkwNC04LjUzMy02LjIxMi0yLjM5LTEyLjMyMi00Ljk1LTE4LjQzMi03LjY0NmE1MjQuOTcgNTI0Ljk3IDAgMCAxLTE0Ny4yMTctOTQuNDQ3di4wMzR6IiBmaWxsPSIjN0U0RUUzIi8+PHBhdGggZD0ibTE5OS4wMzEgMTcxLjk2NCA1NTEuNDI0LTM4LjcwNyA1Mi4wODggNzMxLjIzOC01MzguMzg1IDI1Ljc3LTY1LjE2LTcxOC4zMDEiIGZpbGw9IiNGRkYiLz48cGF0aCBkPSJNMjM2LjEgODE4Ljc5YTQ5MS42OSA0OTEuNjkgMCAwIDEtMTExLjg4OS0xMjIuMTk3YzkuMDExLTgxLjIzNyA0NC43MTUtMTI3LjUyMiA3OS4zOTQtMTcyLjU0NCAxNi4yODItMjEuMTYzIDMyLjM1OS00MS45ODQgNDUuMzY0LTY2LjA0OCA0OS45MzctOTIuNTAxIDEwOC41NDQtODcuOTYyIDEzLjAwNCA5Ny45NjMtMTYuMDQyIDMxLjMzNC05LjA4IDU5LjU5Ny0xLjI5NyA5MS4yMDQgMTEuMDYgNDQuNTc4IDIzLjY4OSA5NS43NzgtMjQuNTc2IDE3MS42MjJ6IiBmaWxsPSIjRjY5QzkzIi8+PHBhdGggZD0ibTY4OS41NjIgMzM5LjM4OC0yMzEuOTM2IDIxLjI2NWExNS4yOTIgMTUuMjkyIDAgMCAxLTE2LjY1Ny0xMy43MjJsLTMuMTQtMzMuNTE5YTE1LjIyMyAxNS4yMjMgMCAwIDEgMTMuODU3LTE2LjQ4NmwyMzEuOTAyLTIxLjI2NWExNS4yNTggMTUuMjU4IDAgMCAxIDE2LjY1NyAxMy43MjFsMy4xNCAzMy40ODVhMTUuMjIzIDE1LjIyMyAwIDAgMS0xMy44NTggMTYuNTJ6bTE4LjAyMiAxODkuMTY3LTIzNy44NzUgMTUuNTk5YTE0LjU0IDE0LjU0IDAgMCAxLTE1LjQ5Ny0xMy40NDlsLTIuMzktMzUuMDJhMTQuNTA3IDE0LjUwNyAwIDAgMSAxMy42Mi0xNS4zOTVsMjM3Ljg3NS0xNS41OTlhMTQuNTQgMTQuNTQgMCAwIDEgMTUuNDk3IDEzLjQ0OWwyLjM5IDM1LjA1NWExNC41MDcgMTQuNTA3IDAgMCAxLTEzLjYyIDE1LjM2ek00ODYuNzQxIDc0Ni4zNTlsMjM5LjEzOC0yMC4wMDJhMTQuMTY1IDE0LjE2NSAwIDAgMCA5LjYyNi00Ljk0OSAxMy45MjYgMTMuOTI2IDAgMCAwIDMuMjc3LTEwLjI0bC0zLjA3Mi0zNS44NGExMy45NiAxMy45NiAwIDAgMC00Ljk4NC05LjUyMyAxNC4yMzQgMTQuMjM0IDAgMCAwLTEwLjMwOC0zLjI0M0w0ODEuMjggNjgyLjU5OGExNC4wNjMgMTQuMDYzIDAgMCAwLTEyLjkwMiAxNS4xMjFsMy4wNzIgMzUuODc1Yy42ODIgNy43MTQgNy41MDkgMTMuNDE0IDE1LjI5MSAxMi43NjV6IiBmaWxsPSIjRDVDRkUzIi8+PHBhdGggZD0iTTM4MC41ODcgMzUxLjc3OGMwIDI5LjM1NS0yMy45OTYgNTMuMTEyLTUzLjU5IDUzLjExMi0yOS42MjcgMC01My42MjMtMjMuNzU3LTUzLjYyMy01My4xMTJzMjMuOTk2LTUzLjExMSA1My41OS01My4xMTFjMjkuNjI3IDAgNTMuNjU3IDIzLjc5IDUzLjY1NyA1My4xMTF6bTE4LjIyNyAxOTIuNjgzYzAgMjkuMzU0LTIzLjk5NiA1My4xNDUtNTMuNjI0IDUzLjE0NWE1My4zODUgNTMuMzg1IDAgMCAxLTUzLjYyMy01My4xNDVjMC0yOS4zNTUgMjMuOTk2LTUzLjExMiA1My41OS01My4xMTIgMjkuNjYxIDAgNTMuNjU3IDIzLjc5MSA1My42NTcgNTMuMTEyem0tMzUuOTA4IDIzNy40MzFjMTkuNDIxLjM0MiAzNy41NDYtOS42NiA0Ny4zNDMtMjYuMjgyYTUyLjcwMiA1Mi43MDIgMCAwIDAgMC01My43MjYgNTMuNzI2IDUzLjcyNiAwIDAgMC00Ny4zNDMtMjYuMjQ5IDUzLjM4NSA1My4zODUgMCAwIDAtNTIuNTY2IDUzLjExMmMwIDI4Ljk0NSAyMy4zODIgNTIuNTY1IDUyLjU2NiA1My4xNDV6IiBmaWxsPSIjRTdFMUY0Ii8+PHBhdGggZD0iTTI4OC4zMjQgMzQ5LjM4OWMtNy44ODUtOC45NzcgMTAuNjg0LTIzLjU1MiAyMC40NDYtMTIuNjMgMS44NDMgMi4wODMgMy41MTYgNC4zMzUgNS4xNTQgNi40ODYgNy4wMzIgOS4yMTYgMTIuNzY2IDE2LjcyNSAyMS42NCAxLjg3NyAxMC45OTItMTguMzMgNDIuNjY3LTU2LjQ1NiA1MS43NDctNjQuNzE3IDkuMDgtOC4yOTQgMzguMjk4IDEuMDU4IDIxLjk0OCAyMC41ODMtMTYuMzg0IDE5LjU1OC00NS41NjggNTYuODMyLTU0LjQwOSA3MC44OTUtOC44NzUgMTQuMDI4LTIxLjg0NSAyNC4wOTgtMzYuNzI3IDcuMTM0LTE0Ljc4LTE2Ljk2NS0yOS43OTktMjkuNTk0LTI5Ljc5OS0yOS41OTR6bTE2LjM4NCAxOTMuNjA0Yy04Ljc3Mi04LjA5IDguMTI0LTI0LjU3NiAxOC45NzgtMTQuNjc3IDIuMDQ4IDEuODQzIDMuOTYgMy44OSA1LjgwMyA1Ljg3IDguMDIxIDguNDMyIDE0LjUwNyAxNS4yOTIgMjEuNzc3LS40MDkgOC45NDMtMTkuMzU0IDM2LjM1Mi02MC41ODcgNDQuNTEtNjkuNzY4IDguMTkyLTkuMjE2IDM4LjIzLTIuOTM2IDI0LjAzIDE4LjE5My0xNC4xNjUgMjEuMTYyLTM5LjI1MyA2MS4yNjktNDYuNTI0IDc2LjE4NS03LjMwNCAxNC44ODItMTkuMjE3IDI2LjI0OS0zNS43NzIgMTAuOTIzLTE2LjUyLTE1LjI5Mi0zMi43NjgtMjYuMjgzLTMyLjc2OC0yNi4yODN6bTM3LjMwOCAxNzEuNDg2Yy05LjY2LTExLjAyNS0yOC4zMyAzLjQxMy0yMC40OCAxMi40OTMgMCAwIDE0Ljg4MiAxMi43NjYgMjkuNTk0IDI5Ljc5OCAxNC42NzcgMTcuMDY3IDI3Ljc4NCA3LjEzNCAzNi43MjctNi44NiA4Ljk0My0xMy45OTUgMzguNDM0LTUxLjA2NCA1NC45NTUtNzAuNDg2IDE2LjQ4Ni0xOS4zODgtMTIuNjk4LTI5LjAxMy0yMS44NDYtMjAuNzg3LTkuMTEzIDguMjI2LTQxLjA5NiA0Ni4xNDgtNTIuMTU1IDY0LjM3NS05LjAxMiAxNC43OC0xNC42NzggNy4yMzctMjEuNjQtMi4wNDhhMTE0LjE0MiAxMTQuMTQyIDAgMCAwLTUuMTItNi40ODV6IiBmaWxsPSIjMDBDNkNEIi8+PHBhdGggZD0iTTU2OS45MjQgNjcuMTc0Yy00OS45Ny0xMTkuNS0xNjQuNTktNTQuMS0xODUuODU2IDExLjA5NC0zMS4yNjYgMS43MDYtNTcuMDcgMi45MzUtNzAuOTk3IDMuMzQ1aC0uMzQxYy02LjUyLjIzOS0xOC40MzIuNTgtMjYuMDQ0IDguNzcyLTE5LjM1NCAyMC44MjEgNi4yOCA3My42NiAyMS4yNjUgMTAwLjkzMmExMjk3LjA2NyAxMjk3LjA2NyAwIDAgMCAzNDkuMTUtMjMuMTc2YzE3LjM0LTU3LjU4MyAyMS43MDktMTEwLjE0OC0yMS43MDktMTA1Ljg4Mi0xMS40IDEuMTYtMzUuMzYyIDIuOTAyLTY1LjQ2OCA0LjkxNXptLTkxLjc1LjMwOGMtMS43MDcgMC0zLjk2LjA2OC02LjU4OC4xNy0xOS4zNTMuNjgzLTU4LjMgMi4wNDgtMzguOTgtMjIuNjk4IDI1LjU2Ni0zMi43IDc1LjIzLTMxLjA2MiA5MS4xMzYtNC45MTYgMTUuOTA2IDI2LjE0Ny0zMS4yNjYgMjcuNDQ0LTQ1LjU2OCAyNy40NDR6IiBmaWxsPSIjM0QzNDUwIi8+PHBhdGggZD0iTTgzMC42NjkgMTAxOS4wODVhMTczLjQzMSAxNzMuNDMxIDAgMCAwIDE0OS45NDgtODUuNzQzIDE3MC4xNTUgMTcwLjE1NSAwIDAgMCAwLTE3MS41MiAxNzMuNDMxIDE3My40MzEgMCAwIDAtMTQ5Ljk0OC04NS43NzdjLTk1LjYwOCAwLTE3My4xMjQgNzYuOC0xNzMuMTI0IDE3MS41MiAwIDk0LjcyIDc3LjQ4MiAxNzEuNTIgMTczLjEyNCAxNzEuNTJ6IiBmaWxsPSIjMDBDNTcyIi8+PHBhdGggZD0iTTkxOS41NTIgNzY5LjQzNGEyMS43NzcgMjEuNzc3IDAgMCAxIDM2LjE4MSAxMC41MTMgMjEuMyAyMS4zIDAgMCAxLTYuNDUgMjAuNjVsLTI5LjY5Ny0zMS4xNjN6bS0xNjEuMTc4IDYxLjIzNSA1LjczNSA3Ljc4MmMxMS40IDE1LjQ2MyAyMi43MzMgMzAuOTI1IDM0LjA5OSA0Ni40MjJBMTM0OTkuOTcyIDEzNDk5Ljk3MiAwIDAgMSA5MTYuNTE0IDc3Mi4zbDMuMDcyLTIuODY3IDI5LjY5NiAzMS4xNjMtMy4wMzggMi44MzMtMzkuNTk0IDM3LjM3NmExMjkwMS43MTcgMTI5MDEuNzE3IDAgMCAwLTk2LjE1NCA5Mi4wOTIgMjEuNzc3IDIxLjc3NyAwIDAgMS0zMi42NjYtMi43OTkgMTM4MjEuNjIyIDEzODIxLjYyMiAwIDAgMC00OC42NzQtNjYuMzU1bC01LjczNC03Ljc0OCAzNC45NTItMjUuMjkzem0wIDBhMjEuNzc3IDIxLjc3NyAwIDAgMC0zMC4yNDItNC42NDIgMjEuMyAyMS4zIDAgMCAwLTQuNzEgMjkuOTM1bDM0Ljk1Mi0yNS4yNnoiIGZpbGw9IiNGRkYiLz48L3N2Zz4=",gn=Object.defineProperty,qt=Object.getOwnPropertySymbols,fn=Object.prototype.hasOwnProperty,sn=Object.prototype.propertyIsEnumerable,_t=(on,rn,mn)=>rn in on?gn(on,rn,{enumerable:!0,configurable:!0,writable:!0,value:mn}):on[rn]=mn,wn=(on,rn)=>{for(var mn in rn||(rn={}))fn.call(rn,mn)&&_t(on,mn,rn[mn]);if(qt)for(var mn of qt(rn))sn.call(rn,mn)&&_t(on,mn,rn[mn]);return on};const dn=on=>React.createElement("svg",wn({className:"h_svg__icon",width:200,height:200,viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},on),React.createElement("path",{d:"M931.294 166.775H536.439V856.27h394.855a24.235 24.235 0 0 0 24.44-24.371V192.102c0-14.063-10.343-25.327-24.44-25.327z",fill:"#FF8A65"}),React.createElement("path",{d:"M512 634.88h345.975v48.81H512v-48.81zm0 98.509h345.975v49.732H512V733.39zM660.548 290.61C578.765 290.611 512 357.205 512 438.818S578.765 587.06 660.548 587.06c81.784 0 148.514-66.628 148.514-148.24H660.548V290.61z",fill:"#FBE9E7"}),React.createElement("path",{d:"M709.427 240.879V389.12h148.548c0-81.647-66.764-148.241-148.548-148.241z",fill:"#FBE9E7"}),React.createElement("path",{d:"M586.274 955.733 68.267 857.225v-690.45l518.007-98.508z",fill:"#E64A19"}),React.createElement("path",{d:"M335.258 343.142H218.692v337.716h72.363V564.565h37.649c40.448 0 72.397-10.308 95.915-31.88 23.483-20.65 35.703-48.81 35.703-82.569 0-71.304-42.325-106.94-125.03-106.94zm-13.176 163.226H291.09V401.306h30.993c39.492 0 59.256 16.896 59.256 51.575 0 36.591-19.764 53.487-59.256 53.487z",fill:"#FFF"}));var Sn="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkzMS4yOTQgMTY2Ljc3NUg1MzYuNDM5Vjg1Ni4yN2gzOTQuODU1YTI0LjIzNSAyNC4yMzUgMCAwIDAgMjQuNDQtMjQuMzcxVjE5Mi4xMDJjMC0xNC4wNjMtMTAuMzQzLTI1LjMyNy0yNC40NC0yNS4zMjd6IiBmaWxsPSIjRkY4QTY1Ii8+PHBhdGggZD0iTTUxMiA2MzQuODhoMzQ1Ljk3NXY0OC44MUg1MTJ2LTQ4Ljgxem0wIDk4LjUwOWgzNDUuOTc1djQ5LjczMkg1MTJWNzMzLjM5ek02NjAuNTQ4IDI5MC42MUM1NzguNzY1IDI5MC42MTEgNTEyIDM1Ny4yMDUgNTEyIDQzOC44MThTNTc4Ljc2NSA1ODcuMDYgNjYwLjU0OCA1ODcuMDZjODEuNzg0IDAgMTQ4LjUxNC02Ni42MjggMTQ4LjUxNC0xNDguMjRINjYwLjU0OFYyOTAuNjF6IiBmaWxsPSIjRkJFOUU3Ii8+PHBhdGggZD0iTTcwOS40MjcgMjQwLjg3OVYzODkuMTJoMTQ4LjU0OGMwLTgxLjY0Ny02Ni43NjQtMTQ4LjI0MS0xNDguNTQ4LTE0OC4yNDF6IiBmaWxsPSIjRkJFOUU3Ii8+PHBhdGggZD0iTTU4Ni4yNzQgOTU1LjczMyA2OC4yNjcgODU3LjIyNXYtNjkwLjQ1bDUxOC4wMDctOTguNTA4eiIgZmlsbD0iI0U2NEExOSIvPjxwYXRoIGQ9Ik0zMzUuMjU4IDM0My4xNDJIMjE4LjY5MnYzMzcuNzE2aDcyLjM2M1Y1NjQuNTY1aDM3LjY0OWM0MC40NDggMCA3Mi4zOTctMTAuMzA4IDk1LjkxNS0zMS44OCAyMy40ODMtMjAuNjUgMzUuNzAzLTQ4LjgxIDM1LjcwMy04Mi41NjkgMC03MS4zMDQtNDIuMzI1LTEwNi45NC0xMjUuMDMtMTA2Ljk0em0tMTMuMTc2IDE2My4yMjZIMjkxLjA5VjQwMS4zMDZoMzAuOTkzYzM5LjQ5MiAwIDU5LjI1NiAxNi44OTYgNTkuMjU2IDUxLjU3NSAwIDM2LjU5MS0xOS43NjQgNTMuNDg3LTU5LjI1NiA1My40ODd6IiBmaWxsPSIjRkZGIi8+PC9zdmc+",nn=Object.defineProperty,si=Object.getOwnPropertySymbols,Fn=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,kn=(on,rn,mn)=>rn in on?nn(on,rn,{enumerable:!0,configurable:!0,writable:!0,value:mn}):on[rn]=mn,Cn=(on,rn)=>{for(var mn in rn||(rn={}))Fn.call(rn,mn)&&kn(on,mn,rn[mn]);if(si)for(var mn of si(rn))yt.call(rn,mn)&&kn(on,mn,rn[mn]);return on};const Ht=on=>React.createElement("svg",Cn({className:"i_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},on),React.createElement("path",{d:"M800.29 955.733H223.71A155.614 155.614 0 0 1 68.267 800.29V223.71A155.614 155.614 0 0 1 223.71 68.267h576.58A155.614 155.614 0 0 1 955.733 223.71v576.58A155.614 155.614 0 0 1 800.29 955.733z",fill:"#3291FC"}),React.createElement("path",{d:"M311.125 729.43a87.04 87.04 0 0 0-37.137-28.57c-62.293-26.863-91.443-99.43-64.58-161.724 5.734-11.98 12.595-23.415 21.709-33.724 14.302-14.267 24.576-31.983 29.73-51.405 5.7-22.869 14.848-44.032 27.443-63.453a26.35 26.35 0 0 0 2.287-27.41c-5.154-11.434-9.728-23.45-13.722-34.303-6.28-17.135-10.308-33.724-34.85-35.977a39.083 39.083 0 0 1-27.989-47.445c3.413-21.163 21.129-37.137 42.837-38.298 22.29 1.16 40.005 19.456 41.131 41.711 0 16.043 8.021 20.582 18.295 27.99 25.157 22.869 62.874 24.03 89.703 2.867a248.559 248.559 0 0 1 241.732-3.414c5.12 2.867 9.728 6.28 9.148 12.561-1.127 6.28-6.28 11.435-12.561 11.435-13.722 2.287-27.443 3.413-41.165 5.734-55.979 5.12-107.998 31.403-145.135 73.148a161.041 161.041 0 0 0-42.871 121.72 164.045 164.045 0 0 0 58.88 114.858 53.248 53.248 0 0 1 21.162 72.022c-2.32 3.959-5.188 7.953-8.601 11.946-2.287 3.448-4.574 7.441-7.988 12.595 21.163 5.7 43.418 2.868 62.84-7.987a155.068 155.068 0 0 1 80.555-24.576 234.086 234.086 0 0 0 182.306-112.025c1.16-1.127 2.867-1.707 5.734-3.414a207.19 207.19 0 0 1-8.021 55.979 281.054 281.054 0 0 1-266.855 218.317h-7.987a269.824 269.824 0 0 1-216.03-109.159z",fill:"#AFE9FF"}),React.createElement("path",{d:"M596.855 521.42a69.222 69.222 0 0 1-20.002-48.57v-1.708c0-21.162 9.728-36.59 22.87-39.424 11.98-2.867 27.409 9.694 34.85 27.99a66.56 66.56 0 0 1 .58 54.272 22.87 22.87 0 0 1-20.002 14.882 25.6 25.6 0 0 1-17.75-8.021l-.546.58zm123.427-40.55a70.007 70.007 0 0 1-11.4-65.74c2.286-11.981 14.267-21.163 26.282-18.842a27.443 27.443 0 0 1 14.267 7.987c9.728 10.855 16.59 23.996 18.876 38.298l1.127 11.98c0 6.315-1.127 12.596-3.414 18.876a26.863 26.863 0 0 1-23.45 20.002 29.935 29.935 0 0 1-22.288-12.56z",fill:"#FFF"}));var di="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTgwMC4yOSA5NTUuNzMzSDIyMy43MUExNTUuNjE0IDE1NS42MTQgMCAwIDEgNjguMjY3IDgwMC4yOVYyMjMuNzFBMTU1LjYxNCAxNTUuNjE0IDAgMCAxIDIyMy43MSA2OC4yNjdoNTc2LjU4QTE1NS42MTQgMTU1LjYxNCAwIDAgMSA5NTUuNzMzIDIyMy43MXY1NzYuNThBMTU1LjYxNCAxNTUuNjE0IDAgMCAxIDgwMC4yOSA5NTUuNzMzeiIgZmlsbD0iIzMyOTFGQyIvPjxwYXRoIGQ9Ik0zMTEuMTI1IDcyOS40M2E4Ny4wNCA4Ny4wNCAwIDAgMC0zNy4xMzctMjguNTdjLTYyLjI5My0yNi44NjMtOTEuNDQzLTk5LjQzLTY0LjU4LTE2MS43MjQgNS43MzQtMTEuOTggMTIuNTk1LTIzLjQxNSAyMS43MDktMzMuNzI0IDE0LjMwMi0xNC4yNjcgMjQuNTc2LTMxLjk4MyAyOS43My01MS40MDUgNS43LTIyLjg2OSAxNC44NDgtNDQuMDMyIDI3LjQ0My02My40NTNhMjYuMzUgMjYuMzUgMCAwIDAgMi4yODctMjcuNDFjLTUuMTU0LTExLjQzNC05LjcyOC0yMy40NS0xMy43MjItMzQuMzAzLTYuMjgtMTcuMTM1LTEwLjMwOC0zMy43MjQtMzQuODUtMzUuOTc3YTM5LjA4MyAzOS4wODMgMCAwIDEtMjcuOTg5LTQ3LjQ0NWMzLjQxMy0yMS4xNjMgMjEuMTI5LTM3LjEzNyA0Mi44MzctMzguMjk4IDIyLjI5IDEuMTYgNDAuMDA1IDE5LjQ1NiA0MS4xMzEgNDEuNzExIDAgMTYuMDQzIDguMDIxIDIwLjU4MiAxOC4yOTUgMjcuOTkgMjUuMTU3IDIyLjg2OSA2Mi44NzQgMjQuMDMgODkuNzAzIDIuODY3YTI0OC41NTkgMjQ4LjU1OSAwIDAgMSAyNDEuNzMyLTMuNDE0YzUuMTIgMi44NjcgOS43MjggNi4yOCA5LjE0OCAxMi41NjEtMS4xMjcgNi4yOC02LjI4IDExLjQzNS0xMi41NjEgMTEuNDM1LTEzLjcyMiAyLjI4Ny0yNy40NDMgMy40MTMtNDEuMTY1IDUuNzM0LTU1Ljk3OSA1LjEyLTEwNy45OTggMzEuNDAzLTE0NS4xMzUgNzMuMTQ4YTE2MS4wNDEgMTYxLjA0MSAwIDAgMC00Mi44NzEgMTIxLjcyIDE2NC4wNDUgMTY0LjA0NSAwIDAgMCA1OC44OCAxMTQuODU4IDUzLjI0OCA1My4yNDggMCAwIDEgMjEuMTYyIDcyLjAyMmMtMi4zMiAzLjk1OS01LjE4OCA3Ljk1My04LjYwMSAxMS45NDYtMi4yODcgMy40NDgtNC41NzQgNy40NDEtNy45ODggMTIuNTk1IDIxLjE2MyA1LjcgNDMuNDE4IDIuODY4IDYyLjg0LTcuOTg3YTE1NS4wNjggMTU1LjA2OCAwIDAgMSA4MC41NTUtMjQuNTc2IDIzNC4wODYgMjM0LjA4NiAwIDAgMCAxODIuMzA2LTExMi4wMjVjMS4xNi0xLjEyNyAyLjg2Ny0xLjcwNyA1LjczNC0zLjQxNGEyMDcuMTkgMjA3LjE5IDAgMCAxLTguMDIxIDU1Ljk3OSAyODEuMDU0IDI4MS4wNTQgMCAwIDEtMjY2Ljg1NSAyMTguMzE3aC03Ljk4N2EyNjkuODI0IDI2OS44MjQgMCAwIDEtMjE2LjAzLTEwOS4xNTl6IiBmaWxsPSIjQUZFOUZGIi8+PHBhdGggZD0iTTU5Ni44NTUgNTIxLjQyYTY5LjIyMiA2OS4yMjIgMCAwIDEtMjAuMDAyLTQ4LjU3di0xLjcwOGMwLTIxLjE2MiA5LjcyOC0zNi41OSAyMi44Ny0zOS40MjQgMTEuOTgtMi44NjcgMjcuNDA5IDkuNjk0IDM0Ljg1IDI3Ljk5YTY2LjU2IDY2LjU2IDAgMCAxIC41OCA1NC4yNzIgMjIuODcgMjIuODcgMCAwIDEtMjAuMDAyIDE0Ljg4MiAyNS42IDI1LjYgMCAwIDEtMTcuNzUtOC4wMjFsLS41NDYuNTh6bTEyMy40MjctNDAuNTVhNzAuMDA3IDcwLjAwNyAwIDAgMS0xMS40LTY1Ljc0YzIuMjg2LTExLjk4MSAxNC4yNjctMjEuMTYzIDI2LjI4Mi0xOC44NDJhMjcuNDQzIDI3LjQ0MyAwIDAgMSAxNC4yNjcgNy45ODdjOS43MjggMTAuODU1IDE2LjU5IDIzLjk5NiAxOC44NzYgMzguMjk4bDEuMTI3IDExLjk4YzAgNi4zMTUtMS4xMjcgMTIuNTk2LTMuNDE0IDE4Ljg3NmEyNi44NjMgMjYuODYzIDAgMCAxLTIzLjQ1IDIwLjAwMiAyOS45MzUgMjkuOTM1IDAgMCAxLTIyLjI4OC0xMi41NnoiIGZpbGw9IiNGRkYiLz48L3N2Zz4=",zi=de.p+"static/am.0d671d8c.gif",Ni=de(51257),Ln=de(48790),rr=de(346),Hi=de(9148),ui=de(76902),wi=Object.defineProperty,Di=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,mi=Object.getOwnPropertySymbols,ki=Object.prototype.hasOwnProperty,Yn=Object.prototype.propertyIsEnumerable,fi=(on,rn,mn)=>rn in on?wi(on,rn,{enumerable:!0,configurable:!0,writable:!0,value:mn}):on[rn]=mn,Ai=(on,rn)=>{for(var mn in rn||(rn={}))ki.call(rn,mn)&&fi(on,mn,rn[mn]);if(mi)for(var mn of mi(rn))Yn.call(rn,mn)&&fi(on,mn,rn[mn]);return on},xi=(on,rn)=>Di(on,ke(rn)),hr=(on,rn,mn)=>new Promise((Bn,ei)=>{var ji=lt=>{try{Yi(mn.next(lt))}catch(Ut){ei(Ut)}},Fi=lt=>{try{Yi(mn.throw(lt))}catch(Ut){ei(Ut)}},Yi=lt=>lt.done?Bn(lt.value):Promise.resolve(lt.value).then(ji,Fi);Yi((mn=mn.apply(on,rn)).next())});const er=({data:on,onFinish:rn})=>le.createElement(ge.Z,null,on.map((mn,Bn)=>le.createElement(Hi.op,{key:Bn,style:{height:28},shape:"default",size:"small",onClick:()=>rn(mn)},mn))),Kt=({text:on="",onFinish:rn})=>((0,le.useEffect)(()=>{on!=null&&on.includes("\u672C\u8F6E\u63D0\u95EE\u7ED3\u675F")&&rn()},[on]),le.createElement(le.Fragment,null));var zt=({pageData:on,pageNum:rn,maxPage:mn,aiImg:Bn,isCreator:ei,node:ji,showModelPage:Fi,onModelPageChange:Yi,changePage:lt,pptInfo:Ut})=>{var oi,gi,jt,Vn,ni,Zt,je,ci,pi,bn,Ki,Ui;const Wi=(0,Ae.useParams)(),[vn,Wt]=(0,le.useState)(!1),[ar,Zr]=(0,le.useState)(!1),[Mn,hi]=(0,le.useState)(!1),[Pi,Li]=(0,le.useState)(!0),Ri=(0,le.useRef)({}),sr=(0,le.useRef)(null);(0,le.useEffect)(()=>{var pr,Dn;if((pr=on==null?void 0:on.page)!=null&&pr.id&&((Dn=on==null?void 0:on.page)==null?void 0:Dn.knowledge_need_answer)===!0){Li(!1);const{stream:Lr,setLoading:ro,clearStatus:Ir,renderChatItems:Vr,setChatData:Mr,getData:Sr}=Ri.current,Qr=()=>hr(void 0,null,function*(){var Ro,qr;(qr=(Ro=Lr.current)==null?void 0:Ro.cancelRequest)==null||qr.call(Ro),yield new Promise(yo=>setTimeout(yo,500)),Ir(),ro(!0);const vi="\u4E3B\u52A8\u63D0\u95EE\u5F00\u59CB",dt=Vr(vi),ho={history:[]};dt[0].show=!1,Mr(dt),Sr(vi,ho)});return sr.current=setTimeout(Qr,1e3),()=>{clearTimeout(sr.current)}}},[(oi=on==null?void 0:on.page)==null?void 0:oi.id]),(0,le.useEffect)(()=>{ei===!1&&Fi&&Oe.Z.publish("can-load-data",!1)},[ei,Fi]);const gr=[{key:1,name:"PPT\u5236\u4F5C",img:Sn,des:"\u4E00\u53E5\u8BDD\u667A\u80FD\u751F\u6210PPT\u5927\u7EB2\uFF0C\u4F9D\u636E\u5927\u7EB2\u586B\u5145\u8BFE\u4EF6\u5185\u5BB9"},{key:2,name:"\u667A\u80FD\u52A8\u6548",img:ct,des:"\u8F93\u5165\u77E5\u8BC6\u70B9\u5185\u5BB9\uFF0C\u81EA\u52A8\u751F\u6210\u53EF\u7F16\u8F91\u7684\u6559\u5B66\u52A8\u6548\u4EE3\u7801"},{key:3,name:"\u6DFB\u52A0\u8BD5\u9898",img:En,des:"\u667A\u80FD\u51FA\u9898+\u9898\u5E93\u7CBE\u9009+\u81EA\u7531\u5EFA\u9898+\u62D3\u5C55\u8BAD\u7EC3\uFF0C\u6559\u5B66\u6D4B\u8BC4\u5168\u641E\u5B9A"},{key:4,name:"\u667A\u80FD\u4E92\u52A8",img:di,des:"\u901A\u8FC7\u5927\u6A21\u578B\u4E3B\u52A8\u4E0E\u5B66\u751F\u5F00\u5C55\u542F\u53D1\u5F0F\u4EA4\u6D41\uFF0C\u4E86\u89E3\u5B66\u751F\u5B66\u60C5"}],Tr=[{key:4,name:"\u667A\u80FD\u51FA\u9898",img:Gt},{key:1,name:"\u9898\u5E93\u9009\u9898",img:de(19773)},{key:2,name:"\u81EA\u4E3B\u5EFA\u9898",img:de(96058)},{key:3,name:"\u62D3\u5C55\u7EC3\u4E60",img:Te}],Ar=!((gi=on==null?void 0:on.item_banks)!=null&&gi.length)&&!((jt=on==null?void 0:on.page)!=null&&jt.animation_code)&&!((ni=(Vn=on==null?void 0:on.page)==null?void 0:Vn.smart_plan_page_knowledges)!=null&&ni.length),Rr=pr=>{Ri.current=pr;const{stream:Dn,setTyping:Lr,setLoading:ro,clearStatus:Ir,renderChatItems:Vr,setChatData:Mr,typing:Sr,setCodePreview:Qr,getData:Ro}=pr,qr=(vi,dt)=>{if(Sr){Xe.ZP.warning("\u8BF7\u7B49\u5F85\u4EFB\u52A1\u5B8C\u6210");return}ro(!0),Ir();const ho=Vr(vi),yo={file_ids:[],history:[]},ua=dt===2;Qr(ua),ho[1].codePreview=ua,yo.code_preview=ua,Mr(ho),Ro(vi,yo)};return le.createElement(le.Fragment,null,le.createElement("div",{className:ei?"mb30":"",style:{display:Fi?"block":"none"}},le.createElement("div",{className:Re.head},le.createElement("strong",{className:"font18 c-black mr10"},ei?" \u667A\u6167\u5907\u8BFE":"\u667A\u80FD\u5B66\u4F34"),ei&&le.createElement(le.Fragment,null,le.createElement("b",null),le.createElement("span",{className:"font16 c-grey-333"},"\u8BFE\u4EF6\u79D2\u751F\u6210\xB7\u667A\u80FD\u7CBE\u51C6\u51FA\u9898\xB7\u52A8\u6548\u5B9A\u5236-\u5168\u6D41\u7A0B\u5907\u8BFE\u89E3\u51B3\u65B9\u6848")),Pi&&le.createElement("div",{className:Re.btn,style:{width:"unset"},onClick:()=>{var vi,dt;(dt=(vi=Dn.current)==null?void 0:vi.cancelRequest)==null||dt.call(vi),Ir(),Lr(!1),ro(!1),Mr([]),Yi(!1),Oe.Z.publish("can-load-data",!0)}},le.createElement("img",{width:14,src:At}),le.createElement("div",{style:{marginLeft:"6px"}},"\u8FD4\u56DE\u5B66\u4E60\u4E92\u52A8"))),ei&&le.createElement(le.Fragment,null,le.createElement("div",{className:Re.center},le.createElement("div",{className:Re.left},le.createElement(Se.Z,{align:"middle"},le.createElement("b",{className:"font16 c-grey-333 mr10"},"\u667A\u80FD\u5DE5\u5177")),le.createElement("div",{className:Re.tool},gr.map(vi=>le.createElement("aside",{onClick:()=>{var dt,ho;if(vi.key===1){const yo=`/IntelligentTools/10?pathid=${Wi.coursesId}&url=${window.location.origin}&name=${(ho=(dt=(0,Ln.eY)())==null?void 0:dt.course)==null?void 0:ho.course_name}&type=Course`;(0,Ni.xg)(rr.Z.AI_PLATFORM_URL+yo)}vi.key===2&&Qr(!0),vi.key===3&&Wt(!0),vi.key===4&&Zr(!0)},key:vi.name},le.createElement("img",{src:vi.img,width:28}),le.createElement("div",{className:"ml10"},le.createElement("b",{className:"c-grey-333"},vi.name),le.createElement("div",{className:"c-grey-666 mt5 font12"},vi.des)))))),le.createElement("div",{className:Re.right,onClick:()=>{Je.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u5373\u5C06\u751F\u6210\u5FEB\u901F\u6392\u5E8F\u53EF\u89C6\u5316HTML\u52A8\u6548\uFF08\u8FD0\u884CHTML\u53EF\u4E00\u952E\u5D4C\u5165\u8BFE\u4EF6\uFF09\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u751F\u6210\uFF1F",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>hr(void 0,null,function*(){qr(`\u751F\u6210\u5FEB\u901F\u6392\u5E8F\u7B97\u6CD5\u7684\u53EF\u89C6\u5316\u6F14\u793A\u8FC7\u7A0B\uFF0C\u5305\u542B\u5982\u4E0B\u6838\u5FC3\u5143\u7D20\uFF1A
|
|
|
1. **\u76F4\u89C2\u7684\u6570\u7EC4\u5C55\u793A**\uFF1A\u7528\u67F1\u72B6\u56FE\u5F62\u5F0F\u5C55\u793A\u6570\u7EC4\uFF0C\u9AD8\u5EA6\u4EE3\u8868\u6570\u503C\u5927\u5C0F
|
|
|
2. **\u9010\u6B65\u6267\u884C**\uFF1A\u53EF\u4EE5\u4E00\u6B65\u4E00\u6B65\u6267\u884C\u5FEB\u901F\u6392\u5E8F\u7684\u6BCF\u4E2A\u6B65\u9AA4
|
|
|
3. **\u81EA\u52A8\u64AD\u653E**\uFF1A\u81EA\u52A8\u9010\u6B65\u6267\u884C\u6392\u5E8F\u8FC7\u7A0B
|
|
|
4. **\u76F4\u63A5\u5B8C\u6210**\uFF1A\u4E00\u952E\u5B8C\u6210\u6574\u4E2A\u6392\u5E8F\u8FC7\u7A0B
|
|
|
5. **\u989C\u8272\u6807\u8BB0**\uFF1A\u7528\u4E0D\u540C\u989C\u8272\u6807\u8BB0\u6838\u5FC3\u8981\u7D20
|
|
|
6. **\u4EE3\u7801\u663E\u793A**\uFF1A\u663E\u793A\u5F53\u524D\u6B65\u9AA4\u5BF9\u5E94\u7684\u4EE3\u7801
|
|
|
7. **\u6587\u5B57\u89E3\u91CA**\uFF1A\u8BE6\u7EC6\u8BF4\u660E\u5F53\u524D\u6B65\u9AA4\u7684\u539F\u7406`,2)})})}},le.createElement("b",{className:"c-grey-333"},"\u5FEB\u6392\u52A8\u6548\u793A\u4F8B"),le.createElement("div",{style:{width:120},className:"c-grey-666 mt10 font12"},"\u4E00\u952E\u751F\u6210\u5FEB\u6392\u52A8\u6548\uFF0C",le.createElement("br",null),"\u652F\u6301\u5D4C\u5165\u8BFE\u4EF6\u6F14\u793A"),le.createElement("div",{className:Re.borderBox},le.createElement("img",{className:"w-full h-full",src:zi})))),le.createElement("div",{className:Re.try},le.createElement("div",{className:"c-grey-333 mt10"},"\u8BD5\u4E00\u8BD5"),le.createElement("div",{className:Re.btns},["\u5E2E\u6211\u4F18\u5316\u4E00\u4E0B\u672C\u9875\u7684\u8BFE\u4EF6\u5185\u5BB9"].map((vi,dt)=>le.createElement("div",{key:dt,onClick:()=>hr(void 0,null,function*(){return qr(vi,dt)})},le.createElement("span",{className:"mr20"},vi),le.createElement("i",{className:"iconfont icon-you2 font18"}))))))),le.createElement("div",{style:{display:Fi?"none":"block"}},ji))},Un=(pr,Dn)=>hr(void 0,null,function*(){var Lr,ro,Ir;const Vr=yield(0,Nt.ZP)(`/api/smart_plan_item_banks/${(Lr=on==null?void 0:on.page)==null?void 0:Lr.id}/animation_code.json`,{method:"put",body:{animation_code:pr}});(Vr==null?void 0:Vr.status)===0&&(Xe.ZP.success("\u64CD\u4F5C\u6210\u529F"),(Ir=(ro=Ri.current)==null?void 0:ro.setChatData)==null||Ir.call(ro,[]),Oe.Z.publish("active-data-update",!0),Dn(),setTimeout(()=>{Yi(!1)},500))});return le.createElement(le.Fragment,null,le.createElement(Ve.Z,{data:Ai(xi(Ai({},on),{url:Bn,position:rn,maxPage:mn}),Wi),visible:ar,changePage:lt,onOk:()=>{var pr,Dn;Xe.ZP.success("\u64CD\u4F5C\u6210\u529F"),Zr(!1),(Dn=(pr=Ri.current)==null?void 0:pr.setChatData)==null||Dn.call(pr,[]),Oe.Z.publish("active-data-update",!0),setTimeout(()=>{Yi(!1)},500)},onClose:()=>Zr(!1)}),le.createElement(Je.default,{open:vn,title:"\u6DFB\u52A0\u8BD5\u9898",centered:!0,onCancel:()=>Wt(!1),footer:null,width:640},le.createElement("div",{className:"c-grey-333"},"\u667A\u80FD\u51FA\u9898+\u9898\u5E93\u7CBE\u9009+\u81EA\u7531\u5EFA\u9898+\u62D3\u5C55\u8BAD\u7EC3\uFF0C\u6559\u5B66\u6D4B\u8BC4\u5168\u641E\u5B9A"),le.createElement("div",{className:Re.add,style:{marginBottom:"20px"}},Tr.map(pr=>le.createElement("div",{onClick:()=>{Oe.Z.publish("active-modal-index",pr.key),Wt(!1)}},le.createElement("img",{width:18,src:pr.img}),le.createElement("aside",{className:"ml10"},pr.name))))),le.createElement(se,{data:Ai({position:rn,aiImg:Bn,pptInfo:Ut},Wi),visible:Mn,onClose:()=>hi(!1)}),le.createElement(Ie.Z,{showSource:!1,showSwitchingModel:!1,onDynamic:Un,ReactComponent:Ye,hideInputBox:ei?!1:!((Zt=on==null?void 0:on.page)!=null&&Zt.enable_ai_tutor||(ci=(je=on==null?void 0:on.page)==null?void 0:je.smart_plan_page_knowledges)!=null&&ci.length||(pi=on==null?void 0:on.page)!=null&&pi.page_info),onSendMessage:()=>Yi(!0),showCodePreview:ei,topFunctionNode:pr=>Rr(pr),footerContainerStyle:{marginLeft:20,marginBottom:20},placeholder:ei?"\u8F7B\u70B9\u6B64\u5904\uFF0C\u7ACB\u5373\u4F7F\u7528\u667A\u6167\u5907\u8BFE\u5DE5\u5177/\u6DFB\u52A0\u8BD5\u9898~":void 0,children:null,extraAnswerAction:(pr,Dn,Lr)=>{var ro;if(Pi)return le.createElement(le.Fragment,null);const{isDisAbledUpload:Ir,getData:Vr,clearStatus:Mr,setLoading:Sr,setChatData:Qr,chatData:Ro,renderChatItems:qr}=Lr,vi=dt=>{Mr(),Sr(!0),Qr([...Ro,...qr(dt)]),Vr(dt)};return le.createElement("div",{style:{marginRight:"auto",display:Ir||Dn<Ro.length-1?"none":"block"}},((ro=pr==null?void 0:pr.text)==null?void 0:ro.includes("\u5224\u65AD\u9898"))&&le.createElement(er,{data:["\u6B63\u786E","\u9519\u8BEF"],onFinish:vi}),le.createElement(Kt,{text:pr==null?void 0:pr.text,onFinish:()=>{Li(!0)}}))},headNode:!ei&&Fi&&le.createElement(le.Fragment,null,le.createElement("div",{className:"c-grey-333 font22"},le.createElement("span",{className:"mr5"},"\u{1F44B}"),"\u55E8\uFF0C\u6211\u662F\u4F60\u7684\u667A\u80FD\u5B66\u4F34\u3002"),(bn=on==null?void 0:on.page)!=null&&bn.page_info?le.createElement(le.Fragment,null,le.createElement("div",{className:"font16 mt10",style:{color:"#434D6C"}},"\u6211\u5DF2\u7ECF\u6574\u7406\u597D\u4E86\u672C\u9875\u7684\u91CD\u70B9\u5185\u5BB9\uFF0C\u8BF7\u4ED4\u7EC6\u9605\u8BFB\u3002\u6709\u4EFB\u4F55\u4E0D\u660E\u767D\u7684\u5730\u65B9\u968F\u65F6\u95EE\u6211\u54E6~\u6211\u4EEC\u5F00\u59CB\u5B66\u4E60\u5427\uFF01"),le.createElement("div",{className:Re.analysis},le.createElement(ui.Z,{value:(Ki=on==null?void 0:on.page)==null?void 0:Ki.page_info}))):le.createElement("div",{className:"font16 mt10",style:{color:"#434D6C"}},"\u6211\u4E3A\u672C\u9875\u5B66\u4E60\u5185\u5BB9\u4E13\u95E8\u51C6\u5907\u4E86\u4E00\u4E9B\u6709\u8DA3\u7684\u4E92\u52A8\u95EE\u9898\uFF0C\u5728\u4EA4\u6D41\u8FC7\u7A0B\u4E2D\uFF0C\u4F60\u6709\u4EFB\u4F55\u7591\u95EE\u6211\u90FD\u4F1A\u8010\u5FC3\u8F85\u5BFC\uFF0C\u76F4\u5230\u4F60\u5B8C\u5168\u7406\u89E3\u4E3A\u6B62\u3002\u76F8\u4FE1\u5B8C\u6210\u8FD9\u6B21\u5B66\u4E60\u540E\uFF0C\u4F60\u4E00\u5B9A\u4F1A\u5BF9\u8FD9\u90E8\u5206\u5185\u5BB9\u638C\u63E1\u5F97\u66F4\u624E\u5B9E\u5462~\u73B0\u5728\u6211\u4EEC\u5C31\u4E00\u8D77\u5C55\u5F00\u63A2\u7D22\u5427\uFF01")),showDefaultTips:!ei&&Fi,fetchData:{questionable_type:ei?"SmartPlan":"SmartPlanItemBank",ppt_url:Bn==null?void 0:Bn.map(pr=>pr==null?void 0:pr.url),questionable_id:ei?Wi==null?void 0:Wi.id:(Ui=on==null?void 0:on.page)==null?void 0:Ui.id,position:rn,type:ei?10:11,is_chat:!0},title:"\u667A\u80FD\u52A9\u6559",fetchUrl:"/api/stream/course_qna_records/chat_messages.json",chatContainerStyle:{paddingLeft:20}}))}},36596:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return Ve}});var le=de(59301),Ie={reasoning:"reasoning___S0mKl",btn:"btn____CIJG",content:"content___CIAh9"},De=de(29787),Le=de(59301),Ye=(Je,Xe,qe)=>new Promise((mt,st)=>{var Nt=ne=>{try{te(qe.next(ne))}catch(he){st(he)}},_e=ne=>{try{te(qe.throw(ne))}catch(he){st(he)}},te=ne=>ne.done?mt(ne.value):Promise.resolve(ne.value).then(Nt,_e);te((qe=qe.apply(Je,Xe)).next())}),Ve=({value:Je="",streamingStatus:Xe,onFinish:qe,cancelIndex:mt,time:st,loading:Nt,loadAll:_e})=>{const[te,ne]=(0,le.useState)(""),[he,se]=(0,le.useState)(!0),ge=(0,le.useRef)(Je),Se=(0,le.useRef)(Xe),Ae=(0,le.useRef)(0),Oe=(0,le.useRef)(null),[Be,Ke]=(0,le.useState)(!1),rt=70;(0,le.useEffect)(()=>{Se.current=Xe},[Xe]),(0,le.useEffect)(()=>{ge.current=Je},[Je]),(0,le.useEffect)(()=>{if(!Xe){ne(ge.current);return}return Ke(!0),Oe.current=setInterval(ot,rt),()=>{clearInterval(Oe.current)}},[]),(0,le.useEffect)(()=>{Be&&(ne(ge.current),clearInterval(Oe.current),Ke(!1),qe())},[mt]);const ot=()=>Ye(void 0,null,function*(){const ht=ge.current[Ae.current];ht!==void 0?(ne(bt=>bt+ht),Ae.current++,clearInterval(Oe.current),Oe.current=setInterval(ot,280/(ge.current.length-Ae.current))):Se.current===!1&&(ne(ge.current),clearInterval(Oe.current),Ke(!1),qe())});return Le.createElement("div",{className:`${Ie.reasoning} fadeIn animated`},Le.createElement("div",{className:Ie.btn,onClick:()=>se(!he)},Le.createElement("i",{className:"iconfont icon-shendusikao"}),st?Le.createElement("span",null,"\u5DF2\u6DF1\u5EA6\u601D\u8003\uFF08\u7528\u65F6 ",st," \u79D2\uFF09"):Le.createElement("span",null,"\u601D\u8003\u4E2D..."),he?Le.createElement("b",{className:"iconfont icon-shouqi6"}):Le.createElement("b",{className:"iconfont icon-zhankai6"})),Nt&&Le.createElement(De.Z,{spinning:!0,className:"mt20"}),he&&!Nt&&Le.createElement("div",{className:Ie.content},te,Be?Le.createElement("span",{className:"aiBlink"},"__"):""))}},61209:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return An}});var le=de(59301),Ie=de(30641),De=de(6767),Le=de(14566),Ye=de(62957),Re=de(25399),Ve=de(37568),Je=de(99571),Xe=de(29787),qe=de(584),mt=de(93725),st=de(75727),Nt=de(92310),_e=de.n(Nt),te=de(10946),ne=de(36596),he=de(3418),se={loadingPic:"loadingPic___y2kKZ",loading:"loading___UEUk1",dot:"dot___TYXFV","dot-fade":"dot-fade___KWn1a",wrap:"wrap___nU3cS",chatContainer:"chatContainer___PNe3Q",footerContainer:"footerContainer___hQATV",btnWrp:"btnWrp___mS8l6",btn:"btn___3za5U",btnActive:"btnActive____jzfb",inputContainer:"inputContainer___iCQ3u",uploadBtn:"uploadBtn___OHHJF",sendBtn:"sendBtn___ktaQl",sendBtnDisabled:"sendBtnDisabled___DVncF",cancelBtn:"cancelBtn___bzMDI",lineFour:"lineFour___Lhbz5",fullIcon:"fullIcon___YWXTV",footerContainerSelected:"footerContainerSelected___pGBh3",full:"full___dZLXo",li:"li___PjMV3",avatarIcon:"avatarIcon___ztGQ3",img:"img___wZqEA",content:"content___OlYYG",borderBox:"borderBox___tjHwt",text:"text___yWTCV",fileWrap:"fileWrap___IX778",file:"file___fxAKb",fileName:"fileName___RA8nu",source:"source___nkLC0",action:"action___I2zGy",disabledInput:"disabledInput___Buork",backBottom:"backBottom___SMuL2",head:"head___v8Eom",headBtn:"headBtn___IS7xR",menuWarp:"menuWarp___G6yj0",menu:"menu___M8VWP",menuText:"menuText___gRpb5",menuDel:"menuDel___eH_wg",active:"active___KWwPV"},ge=de(38986),Se=de(51257),Ae=de(14531),Oe=de(37166),Be=de(28984),Ke=de(71986),rt=de(346),ot=de(56102),ht=de(85788),bt=de(58617),at=de(32050),At=Object.defineProperty,It=Object.defineProperties,$t=Object.getOwnPropertyDescriptors,Tn=Object.getOwnPropertySymbols,yn=Object.prototype.hasOwnProperty,un=Object.prototype.propertyIsEnumerable,On=(Pt,an,ln)=>an in Pt?At(Pt,an,{enumerable:!0,configurable:!0,writable:!0,value:ln}):Pt[an]=ln,xt=(Pt,an)=>{for(var ln in an||(an={}))yn.call(an,ln)&&On(Pt,ln,an[ln]);if(Tn)for(var ln of Tn(an))un.call(an,ln)&&On(Pt,ln,an[ln]);return Pt},ct=(Pt,an)=>It(Pt,$t(an)),it=(Pt,an,ln)=>new Promise((zn,En)=>{var ii=yi=>{try{Kn(ln.next(yi))}catch(et){En(et)}},kt=yi=>{try{Kn(ln.throw(yi))}catch(et){En(et)}},Kn=yi=>yi.done?zn(yi.value):Promise.resolve(yi.value).then(ii,kt);Kn((ln=ln.apply(Pt,an)).next())}),An=({title:Pt="\u5934\u6B4CAI",placeholder:an,hideUpload:ln,hideInputBox:zn,aiIcon:En=Oe,userIcon:ii=Be,dragIcon:kt=Ke,children:Kn,fetchUrl:yi,fetchData:et={},extraAnswerAction:ze,showDefaultTips:xe=!0,onOpen:Te,onClose:Me,loadingOption:Ce,showPreference:ut=!1,initMessage:Lt,customRequest:Mt,visible:Yt,width:Vt=1200,isCheckRestrictNumber:Gt=!1,headNode:gn,headFunctionNode:qt,showRedraw:fn,showEdit:sn,promptPropName:_t="prompt",topPercentage:wn,showSwitchingModel:dn=!1,showImageGenerator:Sn=!1,showLookHistory:nn=!1,fetchListObject:si,customPreference:Fn,customDataNode:yt,showAddSession:kn,historyId:Cn,draggableExtraNode:Ht,drawerExtraNode:di,menuExtraFunctionNode:zi,showSceneAwareness:Ni=!1,ReactComponent:Ln=Ie.Z,topFunctionNode:rr,footerContainerStyle:Hi,chatContainerStyle:ui={},showCodePreview:wi=!1,showSource:Di=!0,onSendMessage:ke,onDynamic:mi=()=>{}})=>{var ki,Yn;const[fi,Ai]=(0,le.useState)(!1),[xi,hr]=(0,le.useState)("qwen-max"),[er,Kt]=(0,le.useState)([]),[en,zt]=(0,le.useState)([]),[on,rn]=(0,le.useState)(!1),[mn,Bn]=(0,le.useState)(!1),[ei,ji]=(0,le.useState)(!1),[Fi,Yi]=(0,le.useState)([]),[lt,Ut]=(0,le.useState)(""),[oi,gi]=(0,le.useState)(0),[jt,Vn]=(0,le.useState)(void 0),[ni,Zt]=(0,le.useState)(!1),[je,ci]=(0,le.useState)(null),[pi,bn]=(0,le.useState)(""),Ki=(0,le.useRef)(),Ui=(0,le.useRef)(null),Wi=(0,le.useRef)(null),[vn,Wt]=(0,le.useState)(!1),[ar,Zr]=(0,le.useState)(!1),[Mn,hi]=(0,le.useState)(!1),[Pi,Li]=(0,le.useState)(!1),[Ri,sr]=(0,le.useState)(!1),[gr,Tr]=(0,le.useState)(0),Ar=(0,le.useRef)(null),Rr=(0,le.useRef)(!1),Un=(0,le.useRef)(null),[pr,Dn]=(0,le.useState)(void 0),[Lr,ro]=(0,le.useState)(!0),[Ir,Vr]=(0,le.useState)(Vt-28),[Mr,Sr]=(0,le.useState)(!1),[Qr,Ro]=(0,le.useState)(!0),[qr,vi]=(0,le.useState)([]),dt=(0,le.useRef)([]),ho=(0,le.useRef)(null),yo=(0,le.useRef)(null),ua=(0,le.useRef)(!1),Vo=Ir-22,Kr=lt==null?void 0:lt.split(`
|
|
|
`).length,{onAdd:Zi,onGetList:tr,onListClick:kr,onListDelete:Ji,onListDealData:Cr}=si||{},uo=50,nr=10,Qi={maxCount:uo,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:er,multiple:!0,accept:".doc,.docx,.md,.txt,.pdf,.xlsx,.xls",beforeUpload:tn=>it(void 0,null,function*(){var Ti,_i,qi,ur;const wr=(ur=(qi=(_i=(Ti=tn==null?void 0:tn.name)==null?void 0:Ti.split("."))==null?void 0:_i.slice(-1))==null?void 0:qi[0])==null?void 0:ur.toLowerCase(),Fo=["doc","docx","md","pdf","txt","xlsx","xls"].includes(wr);return tn.size==0?(De.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),Le.default.LIST_IGNORE):Fo?tn.size/1024/1024>100?(De.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u5236100MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Le.default.LIST_IGNORE):!0:(De.ZP.warning("\u76EE\u524D\u652F\u6301txt\u3001md\u3001doc\u3001docx\u3001pdf\u3001xlsx\u3001xls\u6587\u4EF6"),Le.default.LIST_IGNORE)}),onChange:({fileList:tn})=>{Kt(tn)},action:`${(ki=rt.Z)==null?void 0:ki.API_SERVER}/api/intelligent_imports/upload_file.json`},ti={maxCount:nr,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:en,multiple:!0,accept:".jpg,.png,",beforeUpload:tn=>{var Ti,_i,qi,ur;const wr=(ur=(qi=(_i=(Ti=tn==null?void 0:tn.name)==null?void 0:Ti.split("."))==null?void 0:_i.slice(-1))==null?void 0:qi[0])==null?void 0:ur.toLowerCase(),Fo=["jpg","png"].includes(wr);return tn.size==0?(De.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),Le.default.LIST_IGNORE):Fo?tn.size/1024/1024>10?(De.ZP.warning("\u4E0A\u4F20\u7684\u56FE\u7247\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Le.default.LIST_IGNORE):!0:(De.ZP.warning("\u76EE\u524D\u652F\u6301jpg\u3001png"),Le.default.LIST_IGNORE)},onChange:({fileList:tn})=>{zt(tn)},action:`${(Yn=rt.Z)==null?void 0:Yn.API_SERVER}/api/ai/generals/update_file.json`};(0,le.useEffect)(()=>{if(!Fi.length||!Ki.current)return;const tn=Fi[Fi.length-1];tn!=null&&tn.loading&&(Ki.current.scrollTop=Ki.current.scrollHeight)},[Fi.length]),(0,le.useEffect)(()=>{if(!Ki.current||!Ar.current)return;const tn=new IntersectionObserver(([Ti])=>{ro(Ti.isIntersecting)},{root:Ki.current,rootMargin:"70px",threshold:0});return tn.observe(Ar.current),()=>{Ar.current&&tn.unobserve(Ar.current)}},[Ki.current,Ar.current]),(0,le.useEffect)(()=>{if(!vn)return;const tn=Ki.current,Ti=Un.current;Rr.current=!1;let _i=tn.scrollTop;const qi=()=>{const{scrollTop:wr,scrollHeight:Xi,clientHeight:Fo}=tn;wr>_i?wr+Fo>=Xi-50&&(tn.scrollTop=tn.scrollHeight,Rr.current=!1):wr<_i&&(Rr.current=!0),_i=wr};tn.addEventListener("scroll",qi);const ur=new ResizeObserver(()=>{Rr.current||(tn.scrollTop=tn.scrollHeight)});return ur.observe(Ti),()=>{var wr;ur.unobserve(Ti),(wr=tn==null?void 0:tn.removeEventListener)==null||wr.call(tn,"scroll",qi)}},[vn]),(0,le.useEffect)(()=>{!vn&&dt.current.length&&(Yi([...Fi,...dt.current]),dt.current=[])},[vn]),(0,le.useEffect)(()=>{if(!Ki.current)return;const tn=new ResizeObserver(()=>{var Ti;Ki.current&&Vr((Ti=Ki.current)==null?void 0:Ti.offsetWidth)});return tn.observe(Ki.current),()=>{Ki.current&&tn.unobserve(Ki.current)}},[Ki.current]),(0,le.useEffect)(()=>{typeof Yt=="boolean"&&Ai(Yt)},[Yt]),(0,le.useEffect)(()=>{var tn;if(Ui.current&&je!==null){Ui.current.focus();const Ti=(tn=Ui.current.resizableTextArea)==null?void 0:tn.textArea;Ti&&(Ti.selectionStart=Ti.selectionEnd=Ti.value.length)}},[je]),(0,le.useEffect)(()=>{Kr<5&&Zt(!1)},[Kr]),(0,le.useEffect)(()=>{fi&&Lt&&(Yi(lr(Lt)),rn(!0),Yo(Lt,{history:[]})),fi&&(Xo(),Cn?ca(Cn):kn&&!pr&&Nn()),fi||Gr()},[fi]);const lr=(tn="",Ti=[],_i=[])=>{const qi=Date.now();return[{text:tn,key:qi,sender:"user",fileList:Ti,imageList:_i,show:!0},{loading:!0,key:qi,sender:"AI",show:!0,model:xi,imageGenerator:Pi,thinkingEnabled:ar,codePreview:Mn}]},Gr=()=>{bn(""),ci(null),Kt([]),zt([]),Ut("")},Lo=()=>{if(Te){Te({chatData:Fi,setChatData:Yi,setLoading:rn,getData:Yo,renderChatItems:lr,handleAdd:Nn,identifier:pr});return}Ai(!0)},ao=()=>{if(Ro(!0),Me){Me();return}Ai(!1)},Zo=()=>{Zt(!ni)},Xo=()=>it(void 0,null,function*(){if(!Gt)return;const tn=yield(0,ge.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});(tn==null?void 0:tn.status)===0&&(tn==null?void 0:tn.total_number)!==-1&&(gi((tn==null?void 0:tn.total_number)-(tn==null?void 0:tn.remaining_number)),Vn(tn==null?void 0:tn.total_number))}),Go=()=>{Ye.default.info({title:"\u63D0\u793A",icon:null,okText:"\u6211\u77E5\u9053\u4E86",width:510,centered:!0,content:le.createElement("div",null,le.createElement("div",{style:{color:"#FA6400"}},"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),le.createElement("div",{className:"c-grey-333 mt5"},"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F\u7528",jt,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))})},Jo=tn=>tn.reduce((_i,qi)=>{if(qi.sender==="user"){const ur=tn.find(wr=>wr.key===qi.key&&wr.sender==="AI");ur&&(ur!=null&&ur.text)&&!(ur!=null&&ur.error)&&_i.push({question:qi.text,answer:ur.text})}return _i},[]),Yo=(...tn)=>it(void 0,[...tn],function*(Ti="",_i={},qi=Fi){if(Mt&&(yield Mt({mes:Ti,setChatData:Yi,fileList:er,body:_i,checkNum:Xo,setLoading:rn,bodyChatData:qi,setTyping:Wt,setImageGenerator:Li,renderChatItems:lr})),!Mt){const ur=er==null?void 0:er.map(Ao=>{var co;return(co=Ao==null?void 0:Ao.response)==null?void 0:co.file_id}),wr=en==null?void 0:en.map(Ao=>{var co;return(co=Ao==null?void 0:Ao.response)==null?void 0:co.data}),Xi=_i.history||Jo(qi),Fo=xt(xt({identifier:pr,response_mode:"streaming",model:xi,scene_awareness:Ri,thinking_enabled:ar,image_generator:Pi,code_preview:Mn,file_ids:ur,image_list:wr,history:Xi,[_t]:Ti},et),_i),jo=Object.fromEntries(Object.entries(Fo).filter(([Ao,co])=>co!==void 0));Wi.current=new ht.Z(rt.Z.API_SERVER+yi,jo),yield new Promise((Ao,co)=>{let zo=null,rs=null;Wi.current.on("data",ia=>{Wt(!0);const{chunk:{content:Ma,type:Ts,created:Za,msg:$s}}=ia,hl=$s==="error";Ts==="thinking"&&(zo=zo||Za,Yi(Ol=>[...Ol].map((Fa,As)=>As===Ol.length-1?ct(xt({},Fa),{reasoning:(Fa.reasoning||"")+Ma,loading:!1,hideAnswer:!0,error:hl}):Fa))),Ts==="text"&&(rs=rs||Za,Yi(Ol=>[...Ol].map((Fa,As)=>As===Ol.length-1?ct(xt({},Fa),{text:(Fa.text||"")+Ma,loading:!1,startTime:zo,endTime:rs,error:hl}):Fa)))}),Wi.current.on("done",()=>{Ao()}),Wi.current.on("error",ia=>{let Ma="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";Object.prototype.toString.call(ia)==="[object Object]"&&ia.status===-9&&(Ma=ia==null?void 0:ia.message),Yi(Ts=>[...Ts].map((Za,$s)=>$s===Ts.length-1?ct(xt({},Za),{text:Ma,loading:!1,error:!0}):Za)),Ao()}),Wi.current.on("cancelled",()=>{Ao()}),Wi.current.startStream()})}Xo(),rn(!1)}),ra=tn=>{Ut(tn.target.value)},pn=(tn,Ti)=>{if(Gr(),rn(!0),tn==="edit"){dt.current=Fi.slice(Ti+2);const _i=Fi.splice(Ti),{fileList:qi=[],imageList:ur=[]}=(_i==null?void 0:_i[0])||{},wr=qi.map(jo=>{var Ao;return(Ao=jo.response)==null?void 0:Ao.file_id}),Xi=ur.map(jo=>{var Ao;return(Ao=jo.response)==null?void 0:Ao.data}),Fo={history:Jo(Fi),file_ids:wr,image_list:Xi,edit:!0};Yi([...Fi,...lr(pi,qi,ur)]),Yo(pi,Fo,Fi)}if(tn==="redraw"){dt.current=Fi.slice(Ti+1);const _i=Fi.splice(Ti-1),{text:qi,fileList:ur=[],imageList:wr=[]}=(_i==null?void 0:_i[0])||{},Xi=ur.map(Ao=>{var co;return(co=Ao.response)==null?void 0:co.file_id}),Fo=wr.map(Ao=>{var co;return(co=Ao.response)==null?void 0:co.data}),jo={history:Jo(Fi),file_ids:Xi,image_list:Fo,edit:!0};Yi([...Fi,...lr(qi,ur,wr)]),Yo(qi,jo,Fi)}},wa=()=>{if(lt.trim()!==""){Gr(),rn(!0);const tn=er.filter(_i=>_i.status==="done"),Ti=en.filter(_i=>_i.status==="done");Yi([...Fi,...lr(lt,tn,Ti)]),Yo(lt)}},qs=tn=>{if(tn.shiftKey){if(tn.key==="Enter")return}else if(tn.key==="Enter"){if(tn.preventDefault(),cl||ua.current)return;wa()}},za=(tn,Ti)=>{let _i=!1;sn===!0?_i=!0:sn==="last"&&(_i=Fi.reduce((Xi,Fo,jo)=>Fo.sender==="user"?jo:Xi,-1)===Ti);const qi=Ti===je,ur=[...(tn==null?void 0:tn.fileList)||[],...(tn==null?void 0:tn.imageList)||[]];return le.createElement("div",{className:se.li,style:xt({width:Vo},ui)},le.createElement("div",{className:se.avatarIcon},le.createElement("img",{className:se.img,src:ii})),le.createElement("div",{className:se.content},!!(ur!=null&&ur.length)&&le.createElement("div",{className:se.fileWrap},ur==null?void 0:ur.map((wr,Xi)=>{var Fo,jo;return le.createElement("div",{key:Xi,className:se.file},le.createElement("img",{src:de(90034)(`./${((jo=(Fo=wr==null?void 0:wr.name)==null?void 0:Fo.split("."))==null?void 0:jo.pop())||"txt"}.png`),width:20,className:"mr10"}),le.createElement("aside",null,le.createElement(Re.Z,{title:wr==null?void 0:wr.name},le.createElement("div",{className:se.fileName},wr==null?void 0:wr.name)),le.createElement("div",{className:"c-grey-999 font12"},(0,Se.RD)(wr==null?void 0:wr.size))))})),le.createElement("div",{className:se.borderBox},qi?le.createElement(Ve.default.TextArea,{value:pi,ref:Ui,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165",bordered:!1,onChange:wr=>bn(wr.target.value)}):le.createElement("div",{className:se.text},tn==null?void 0:tn.text)),qi?le.createElement("div",{className:se.action},le.createElement(Je.ZP,{onClick:()=>{bn(""),ci(null)},size:"small"},"\u53D6\u6D88"),le.createElement(Je.ZP,{disabled:!pi.trim(),onClick:()=>pn("edit",Ti),type:"primary",size:"small"},"\u786E\u8BA4")):le.createElement("div",{className:se.action},le.createElement(ot.CopyToClipboard,{text:(tn==null?void 0:tn.text)||"",onCopy:()=>De.ZP.success("\u590D\u5236\u6210\u529F")},le.createElement(Re.Z,{title:"\u590D\u5236"},le.createElement("i",{className:"iconfont icon-fuzhi8 font13"}))),_i&&!on&&le.createElement(Re.Z,{title:"\u7F16\u8F91"},le.createElement("i",{onClick:()=>{ci(Ti),bn((tn==null?void 0:tn.text)||"")},className:"iconfont icon-bianji10 font14"})))))},$a=(tn,Ti)=>{let _i=!1;fn===!0?_i=!0:fn==="last"&&(_i=Fi.reduce((wr,Xi,Fo)=>Xi.sender==="AI"?Fo:wr,-1)===Ti);let qi="";return tn!=null&&tn.source?qi=tn==null?void 0:tn.source:(tn==null?void 0:tn.model)==="deepseek-r1"?qi="\u7531deepseek\u751F\u6210":(tn==null?void 0:tn.model)==="qwen-max"&&(qi="\u7531\u901A\u4E49\u5343\u95EE\u751F\u6210"),le.createElement("div",{className:se.li,style:xt({width:Vo},ui)},le.createElement("div",{className:se.avatarIcon},le.createElement("img",{className:se.img,src:En})),le.createElement("div",{className:se.content},le.createElement("div",{className:se.borderBox},tn.loading&&le.createElement(le.Fragment,null,tn!=null&&tn.imageGenerator?le.createElement("div",{className:se.loadingPic},"\u6B63\u5728\u751F\u6210\u4E2D",le.createElement("div",{className:"ai-loading"})):!(tn!=null&&tn.thinkingEnabled)&&le.createElement("div",null,le.createElement("div",{className:se.loading},le.createElement("div",{className:se.dot}),le.createElement("div",{className:se.dot}),le.createElement("div",{className:se.dot})),le.createElement("div",{style:{marginTop:10,color:"#9096A3"}},(Ce==null?void 0:Ce.text)||"\u8BF7\u8010\u5FC3\u7B49\u5F85\uFF0C\u76EE\u524D\u9AD8\u5CF0\u671F\u4F53\u9A8C\u4EBA\u6570\u8FC7\u591A\uFF0C\u6211\u4EEC\u5DF2\u8BB0\u5F55\u4E0B\u60A8\u7684\u9700\u6C42\uFF0C\u7A0D\u540E\u5C06\u81EA\u52A8\u4E3A\u60A8\u751F\u6210\u7B54\u6848\u3002"))),(tn==null?void 0:tn.thinkingEnabled)&&le.createElement(ne.Z,{time:tn==null?void 0:tn.time,cancelIndex:gr,loading:tn.loading,streamingStatus:!(tn!=null&&tn.text),onFinish:()=>{Tr(0),Yi(ur=>[...ur].map((wr,Xi)=>Xi===ur.length-1?ct(xt({},wr),{hideAnswer:!1,time:wr.startTime?wr.endTime-wr.startTime:null}):wr))},value:tn==null?void 0:tn.reasoning}),!!(tn!=null&&tn.text)&&!tn.hideAnswer&&le.createElement(te.Z,{onDynamic:mi,cancelIndex:gr,streamingStatus:on,loadImage:!!(tn!=null&&tn.imageGenerator),onFinish:()=>it(void 0,null,function*(){Tr(0),setTimeout(()=>Wt(!1),0)}),value:tn==null?void 0:tn.text})),Di&&!!(tn!=null&&tn.text)&&qi&&le.createElement("div",{className:se.source},qi),le.createElement("div",{className:se.action},ze==null?void 0:ze(tn,Ti,dl),!(tn!=null&&tn.imageGenerator)&&le.createElement(ot.CopyToClipboard,{text:String((tn==null?void 0:tn.text)||""),onCopy:()=>De.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},le.createElement(Re.Z,{title:"\u590D\u5236"},le.createElement("i",{className:"iconfot icon-fuzhi8 font13"}))),ut&&!on&&le.createElement(le.Fragment,null,le.createElement(Re.Z,{title:"\u559C\u6B22"},le.createElement("i",{style:tn!=null&&tn.like?{color:"#FA8D30"}:{},onClick:()=>Qo("like",!(tn!=null&&tn.like),Ti),className:"iconfot icon-yijiejue font15"})),le.createElement(Re.Z,{title:"\u4E0D\u559C\u6B22"},le.createElement("i",{style:tn!=null&&tn.dislike?{color:"#e86d7c"}:{},onClick:()=>Qo("dislike",!(tn!=null&&tn.dislike),Ti),className:"iconfot icon-weijiejuezhengchang font15"}))),_i&&!on&&le.createElement(Re.Z,{title:"\u91CD\u65B0\u751F\u6210"},le.createElement("i",{onClick:()=>pn("redraw",Ti),className:"iconfot icon-gengxin-genghuan-tihuan"})))))},Qo=(tn,Ti,_i)=>it(void 0,null,function*(){if(Fn){const qi=Fi.slice(0,_i+1),wr=Jo(qi).length;yield Fn({type:tn,value:Ti,index:_i,identifier:pr,objectIndex:wr})}Yi(qi=>(qi[_i][tn]=Ti,Ti&&(qi[_i][tn==="like"?"dislike":"like"]=!1),[...qi]))}),ms=()=>{var tn,Ti;Tr(1),(Ti=(tn=Wi.current)==null?void 0:tn.cancelRequest)==null||Ti.call(tn),rn(!1),Wt(!1)},Nn=()=>it(void 0,null,function*(){var tn,Ti,_i;(Ti=(tn=Wi.current)==null?void 0:tn.cancelRequest)==null||Ti.call(tn),Gr(),Yi([]),rn(!0);const qi=yield Zi();(qi==null?void 0:qi.status)===0&&Dn((_i=qi==null?void 0:qi.data)==null?void 0:_i.identifier),rn(!1),Wt(!1)}),po=()=>it(void 0,null,function*(){var tn;ji(!0);const Ti=yield tr();(Ti==null?void 0:Ti.status)===0&&vi(((tn=Ti==null?void 0:Ti.data)==null?void 0:tn.list)||[]),ji(!1)}),ca=(...tn)=>it(void 0,[...tn],function*(Ti=pr){var _i,qi,ur,wr;(qi=(_i=Wi.current)==null?void 0:_i.cancelRequest)==null||qi.call(_i),Gr(),Bn(!0);const Xi=yield kr(Ti);if(Xi.status===0){const Fo=Cr(((ur=Xi==null?void 0:Xi.data)==null?void 0:ur.messages)||[]);Yi(Fo),Bn(!1),Dn((wr=Xi==null?void 0:Xi.data)==null?void 0:wr.identifier);return}Yi([]),Bn(!1)}),ul=(tn,Ti)=>it(void 0,null,function*(){(yield Ji(tn)).status===0&&(De.ZP.success("\u5220\u9664\u6210\u529F"),Ti===pr&&Nn(),po())}),Ua=()=>le.createElement("div",{className:se.menuWarp},le.createElement("h4",null,"\u5386\u53F2\u5BF9\u8BDD"),le.createElement(Xe.Z,{spinning:ei},!qr.length&&le.createElement(qe.Z,{style:{width:250,paddingBottom:30},image:qe.Z.PRESENTED_IMAGE_SIMPLE}),!!qr.length&&le.createElement("div",{className:se.menu},qr.map(function(tn,Ti){return le.createElement("aside",{className:_e()(pr===tn.identifier&&se.active),key:tn.id,onClick:()=>ca(tn.id)},le.createElement("div",{className:se.menuText},le.createElement(Re.Z,{title:tn==null?void 0:tn.question},le.createElement("span",null,tn==null?void 0:tn.question)),zi&&zi(tn)),le.createElement("div",{className:se.menuDel,onClick:_i=>_i.stopPropagation()},le.createElement(mt.Z,{title:"\u63D0\u793A",description:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u672C\u6761\u5BF9\u8BDD\u5417\uFF1F",onConfirm:()=>ul(tn.id,tn.identifier),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88"},le.createElement("i",{className:"iconfont icon-shanchu14 delete-hover font14"}))))})))),Zl=tn=>{if(tn==="file"){if(en.length){Ye.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u56FE\u7247\uFF0C\u4E0A\u4F20\u6587\u4EF6\u540E\u56FE\u7247\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{zt([]),ho.current.upload.uploader.fileInput.click()}});return}ho.current.upload.uploader.fileInput.click()}if(tn==="image"){if(er.length){Ye.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u6587\u4EF6\uFF0C\u4E0A\u4F20\u56FE\u7247\u540E\u6587\u4EF6\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{Kt([]),yo.current.upload.uploader.fileInput.click()}});return}yo.current.upload.uploader.fileInput.click()}},ws=[{key:"file",disabled:er.length>=uo,label:le.createElement(Re.Z,{placement:"right",title:le.createElement("div",null,le.createElement("b",null,"\u4E0A\u4F20\u9644\u4EF6\uFF08\u4EC5\u8BC6\u522B\u6587\u5B57\uFF09"),le.createElement("div",null,"\u6700\u591A 50 \u4E2A\uFF0C\u6BCF\u4E2A 100 MB\uFF0C\u652F\u6301\u5404\u7C7B\u578B\u6587\u6863"))},le.createElement("span",null,le.createElement("i",{className:"iconfont icon-fujian3 font14 mr5"}),"\u4E0A\u4F20\u6587\u6863"))},xi!=="deepseek-r1"&&{key:"image",disabled:en.length>=nr,label:le.createElement(Re.Z,{placement:"right",title:"\u652F\u6301\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247\uFF0C\u6700\u591A10\u4E2A"},le.createElement("span",null,le.createElement("i",{className:"iconfont icon-tupianshangchuan font14 mr5"}),"\u4E0A\u4F20\u56FE\u7247"))}].filter(Boolean),mr=[...er,...en],cl=mr.some(tn=>tn.status==="uploading")||on||vn,El=oi>=jt,ds=ln||er.length>=uo||en.length>=nr,Ta=Pi||ar||Ri||Mn||!!mr.length,dl={chatData:Fi,stream:Wi,isDisabledNum:El,isDisAbledUpload:cl,checkNumModal:Go,checkNum:Xo,onClose:ao,setChatData:Yi,setLoading:rn,getData:Yo,clearStatus:Gr,typing:vn,setImageGenerator:Li,renderChatItems:lr,setSceneAwareness:sr,setIdentifier:Dn,setCodePreview:hi,setTyping:Wt,onMenuClick:ca};return le.createElement(le.Fragment,null,Kn?le.createElement("div",{onClick:Lo},Kn):Kn!==null&&le.createElement(Ae.Z,{draggableExtraNode:Ht,src:kt,onClick:Lo,topPercentage:wn}),le.createElement(Ln,{open:fi,width:Mr?"100%":Vt,afterOpenChange:tn=>{tn&&Ro(!1)},push:!1,contentWrapperStyle:Qr?{}:{transition:"none"},extra:le.createElement("div",{className:se.head},di,dn&&le.createElement(he.Z,{value:xi,onChange:tn=>{Zr(!1),Li(!1),hr(tn),zt([]),Kt([])}}),nn&&le.createElement(le.Fragment,null,le.createElement(st.Z,{dropdownRender:Ua,onOpenChange:tn=>{tn&&po()},placement:"bottomLeft",arrow:!0},le.createElement("div",{className:se.headBtn},le.createElement("i",{className:"icon-lishiduihua1 font14 mr10"}),"\u5386\u53F2\u5BF9\u8BDD"))),kn&&le.createElement(le.Fragment,null,le.createElement("div",{className:se.headBtn,onClick:Nn},le.createElement("i",{className:"icon-xinjianduihua font14 mr10"}),"\u65B0\u5EFA\u5BF9\u8BDD")),le.createElement(Re.Z,{title:Mr?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F"},le.createElement("div",{className:se.headBtn,style:{padding:"0 12px"},onClick:()=>Sr(!Mr)},Mr&&le.createElement("i",{className:"iconfont icon-tuichuquanping3"}),!Mr&&le.createElement("i",{className:"iconfont icon-quanping4"})))),title:le.createElement("span",{className:"c-grey-333 font16"},Pt),onClose:ao,bodyStyle:{paddingRight:4}},le.createElement("div",{className:_e()(se.wrap,fi&&"body-overflow-hidden")},le.createElement("div",{ref:Ki,className:se.chatContainer},rr==null?void 0:rr(dl),xe&&le.createElement("div",{className:`${se.li} mb20`,style:xt({width:Vo},ui)},le.createElement("div",{className:se.avatarIcon},le.createElement("img",{className:se.img,src:En})),le.createElement("div",{className:se.content},le.createElement("div",{className:se.borderBox},gn,qt==null?void 0:qt(dl)))),le.createElement("div",{ref:Un},le.createElement(Xe.Z,{spinning:mn,className:"mt20"},Fi==null?void 0:Fi.map((tn,Ti)=>le.createElement(le.Fragment,{key:tn.key+Ti},tn.show&&le.createElement(le.Fragment,null,tn.sender==="user"&&za(tn,Ti),tn.sender==="AI"&&$a(tn,Ti),yt&&!["AI","user"].includes(tn.sender)&&yt(tn,Ti,{width:Vo})))))),!Lr&&le.createElement("div",{className:se.backBottom,onClick:()=>{Ki.current.scrollTop=Ki.current.scrollHeight}},le.createElement("i",{className:"iconfont icon-huidaodibu"})),le.createElement("div",{ref:Ar})),!zn&&le.createElement("div",{style:Hi,className:_e()(se.footerContainer,ni&&se.full,Ta&&se.footerContainerSelected)},le.createElement("div",{className:se.btnWrp},wi&&le.createElement(Re.Z,{title:"\u66F4\u64C5\u957F\u5904\u7406\u4EE3\u7801\u95EE\u9898\uFF0C\u652F\u6301\u4E00\u53E5\u8BDD\u751F\u6210\u5E94\u7528"},le.createElement("div",{onClick:()=>hi(!Mn),className:_e()(se.btn,Mn&&se.btnActive)},le.createElement("i",{className:"iconfont icon-daimamoshi1 mr10 font12"}),"\u4EE3\u7801\u6A21\u5F0F")),Ni&&le.createElement(Re.Z,{title:"\u667A\u80FD\u611F\u77E5\u5F53\u524D\u60C5\u5883\uFF0C\u63D0\u4F9B\u9488\u5BF9\u6027\u89E3\u7B54"},le.createElement("div",{onClick:()=>sr(!Ri),className:_e()(se.btn,Ri&&se.btnActive)},le.createElement("i",{className:"iconfont icon-changjingganzhi mr10 font12"}),"\u573A\u666F\u611F\u77E5")),xi==="deepseek-r1"&&le.createElement(Re.Z,{title:"\u8C03\u7528\u65B0\u6A21\u578B DeepSeek-R1\uFF0C\u89E3\u51B3\u63A8\u7406\u95EE\u9898"},le.createElement("div",{onClick:()=>Zr(!ar),className:_e()(se.btn,ar&&se.btnActive)},le.createElement("i",{className:"iconfont icon-shendusikao mr10 font12"}),"\u6DF1\u5EA6\u601D\u8003\uFF08R1\uFF09")),Sn&&xi==="qwen-max"&&le.createElement("div",{onClick:()=>Li(!Pi),className:_e()(se.btn,Pi&&se.btnActive)},le.createElement("i",{className:"iconfont icon-shangchuantupian2 mr10 font12"}),"\u56FE\u50CF\u751F\u6210"),mr.map(tn=>le.createElement("div",{key:tn.uid},(tn==null?void 0:tn.status)==="uploading"&&le.createElement(Xe.Z,{indicator:le.createElement(bt.Z,{rev:"",spin:!0}),className:"mr10",size:"small",spinning:!0}),le.createElement("span",{title:tn==null?void 0:tn.name,className:"mr10"},(0,Se.Pq)(tn.name,20)),le.createElement("i",{onClick:()=>{Kt(Ti=>Ti.filter(_i=>_i.uid!==tn.uid)),zt(Ti=>Ti.filter(_i=>_i.uid!==tn.uid))},className:"iconfont current icon-shanchu15 delete-hover c-red-ee4 font12"})))),le.createElement(Re.Z,{title:El&&le.createElement("div",null,le.createElement("div",null,"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),le.createElement("div",null,"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F",jt,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))},le.createElement("div",{className:_e()(se.inputContainer,Kr>4&&se.lineFour,El&&se.disabledInput)},le.createElement(Le.default,xt({ref:ho},Qi)),le.createElement(Le.default,xt({ref:yo},ti)),le.createElement(st.Z,{className:`${ds&&"hide"}`,menu:{items:ws,onClick:tn=>Zl(tn.key)},placement:"top"},le.createElement(Je.ZP,{className:se.uploadBtn,icon:le.createElement(at.Z,{rev:"",style:{fontSize:18,color:"#FFF"}})})),le.createElement(Ve.default.TextArea,{rows:Kr>4?4:Kr,placeholder:an||"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u7684\u95EE\u9898\u5427\uFF0CShift+Enter\u6362\u884C\uFF5E",value:lt,bordered:!1,style:ds?{paddingLeft:0,marginLeft:0}:{},onChange:ra,onPressEnter:qs,onFocus:()=>ke==null?void 0:ke(),onCompositionStart:()=>{ua.current=!0},onCompositionEnd:()=>{ua.current=!1}}),vn?le.createElement(Re.Z,{title:"\u505C\u6B62\u751F\u6210"},le.createElement("div",{className:`iconfont icon-tingzhihuida ${se.cancelBtn}`,onClick:ms})):le.createElement(Je.ZP,{className:(lt==null?void 0:lt.trim())===""?se.sendBtnDisabled:se.sendBtn,icon:le.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:cl,onClick:wa}),Kr>4&&le.createElement("span",{className:se.fullIcon,onClick:Zo},ni&&le.createElement("span",{className:"iconfont icon-shousuo"}),!ni&&le.createElement("span",{className:"iconfont icon-zhankai"}))))))))}},9507:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return mt}});var le=de(59301),Ie={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},De=de(92310),Le=de.n(De),Ye=de(29787),Re=de(2859),Ve=de(38986),Je=de(51257),Xe=(st,Nt,_e)=>new Promise((te,ne)=>{var he=Se=>{try{ge(_e.next(Se))}catch(Ae){ne(Ae)}},se=Se=>{try{ge(_e.throw(Se))}catch(Ae){ne(Ae)}},ge=Se=>Se.done?te(Se.value):Promise.resolve(Se.value).then(he,se);ge((_e=_e.apply(st,Nt)).next())}),mt=({data:st,className:Nt,fullWidth:_e,style:te={},onClose:ne,onOk:he,showFullTools:se,noAssociationId:ge})=>{const Se=(0,le.useRef)(null),Ae=(0,le.useRef)(null),Oe=(0,le.useRef)(null),Be=(0,le.useRef)(null),[Ke,rt]=(0,le.useState)(!1),[ot,ht]=(0,le.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,le.useEffect)(()=>(Oe.current||(Oe.current=document.createElement("style"),document.head.appendChild(Oe.current)),st!=null&&st.visible?(document.body.setAttribute("data-custom","y-hidden"),Oe.current.innerHTML=" html { overflow-y: hidden; }",st!=null&&st.src&&bt()):(document.body.removeAttribute("data-custom"),Oe.current&&(document.head.removeChild(Oe.current),Oe.current=null)),()=>{document.body.removeAttribute("data-custom"),Oe.current&&(document.head.removeChild(Oe.current),Oe.current=null)}),[st==null?void 0:st.visible]);const bt=()=>Xe(void 0,null,function*(){rt(!0),ht("\u6B63\u5728\u52A0\u8F7D\u4E2D");const $t=yield(0,Je.ZJ)(st==null?void 0:st.src);Se.current.src="",Se.current.src=$t,Se.current.onload=function(){It()},rt(!1),ht("")}),at=$t=>Xe(void 0,null,function*(){rt(!0),ht("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Tn=yield(0,Ve.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:st.title,file:$t.dataUrl}});Tn!=null&&Tn.id&&!ge?(yield(0,Ve.ZP)(`/api/attachments/${st.id}/add_subitem.json`,{method:"post",body:{subitem_id:Tn==null?void 0:Tn.id,settings:JSON.stringify($t.state)}})).status===0&&he():Tn!=null&&Tn.id&&he(Tn),rt(!1),ht("")}),At=()=>{const $t=document.querySelector('a[href="https://markerjs.com/"]');$t&&$t.parentNode&&($t.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(yn=>{const un=document.querySelector(yn.name);un&&un.setAttribute("title",yn.title)})},It=()=>{Ae.current=new Re.hP(Se.current),Ae.current.targetRoot=Be.current,Ae.current.addEventListener("render",at),Ae.current.addEventListener("beforeclose",ne),se&&(Ae.current.availableMarkerTypes=Ae.current.ALL_MARKER_TYPES,Ae.current.uiStyleSettings.redoButtonVisible=!0,Ae.current.uiStyleSettings.notesButtonVisible=!0,Ae.current.uiStyleSettings.zoomButtonVisible=!0,Ae.current.uiStyleSettings.zoomOutButtonVisible=!0,Ae.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Ae.current.uiStyleSettings,Ae.current.show(),st!=null&&st.snapshotData&&Ae.current.restoreState(st.snapshotData),setTimeout(()=>{window.scrollTo(0,0),At()},300)};return le.createElement(le.Fragment,null,(st==null?void 0:st.visible)&&le.createElement(Ye.Z,{spinning:Ke,tip:ot,style:{position:"absolute",width:"100vw"}},le.createElement("div",{ref:Be,className:Le()(Ie.imageDimensions,Nt,_e?Ie.fullWidth:""),style:te},le.createElement("img",{className:Ie.img,ref:Se}))))}},76562:function(Ge,be,de){"use strict";var le=de(59301),Ie=de(77019),De=de(5269),Le=de(20554),Ye=de(99571),Re=de(76902),Ve=de(99587),Je=de(48136),Xe=de(59301);const qe=(0,le.forwardRef)(({callback:mt,showSaveButton:st,value:Nt=""},_e)=>{const te=(0,le.useRef)(),ne=[{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 "}]}]}],he=[{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=Ae=>{te.current.setValue(te.current.getValue()+" "+Ae.value+" ")},ge=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Xe.createElement(Ie.Z,{className:Ve.Z.lists,gutter:[10,10]},ne.map((Ae,Oe)=>Xe.createElement(De.Z,{flex:"110px",className:Ve.Z.item},Xe.createElement("div",null,Xe.createElement(Re.Z,{value:`$$${Ae.value}$$`}),Ae.name),Xe.createElement("div",{className:Ve.Z.children},Ae.children.map((Be,Ke)=>Xe.createElement("div",{key:Ke},Xe.createElement("h1",null,Be.name),Xe.createElement(Ie.Z,{gutter:[10,10]},Be.data.map((rt,ot)=>Xe.createElement(De.Z,{key:ot,onClick:()=>se(rt),className:Ve.Z.diamond},Xe.createElement(Re.Z,{value:"`$$"+rt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Xe.createElement(Ie.Z,{className:Ve.Z.lists,gutter:[10,10]},he.map((Ae,Oe)=>Xe.createElement(De.Z,{flex:"110px",className:Ve.Z.item},Xe.createElement("div",null,Xe.createElement(Re.Z,{value:"`$$"+Ae.value+"$$`"}),Ae.name),Xe.createElement("div",{className:Ve.Z.children},Ae.children.map((Be,Ke)=>Xe.createElement("div",{key:Ke},Be.name&&Xe.createElement("h1",null,Be.name),Xe.createElement(Ie.Z,{gutter:[10,10]},Be.data.map((rt,ot)=>Xe.createElement(De.Z,{key:ot,onClick:()=>se(rt),className:Ve.Z.diamond},Xe.createElement(Re.Z,{value:"`$$"+rt.value+"$$`"}))))))))))}],Se=()=>{var Ae=document.createElement("div");Ae.innerHTML=te.current.getValue();var Oe=Ae.innerText;return mt&&mt(Oe),Oe};return(0,le.useImperativeHandle)(_e,()=>({getData:Se})),Xe.createElement("div",{className:Ve.Z.mathWrap},Xe.createElement(Le.default,{defaultActiveKey:"1",items:ge}),Xe.createElement("math-field",{locale:"zh_cn",className:Ve.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:te,style:{width:800,marginTop:30,fontSize:18}},Nt||""),st&&Xe.createElement("div",{className:Ve.Z.button},Xe.createElement(Ye.ZP,{size:"large",onClick:Se,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});be.Z=qe},28426:function(Ge,be,de){"use strict";var le=de(59301),Ie=de(93314),De=de(99571),Le=Object.defineProperty,Ye=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,qe=(_e,te,ne)=>te in _e?Le(_e,te,{enumerable:!0,configurable:!0,writable:!0,value:ne}):_e[te]=ne,mt=(_e,te)=>{for(var ne in te||(te={}))Je.call(te,ne)&&qe(_e,ne,te[ne]);if(Ve)for(var ne of Ve(te))Xe.call(te,ne)&&qe(_e,ne,te[ne]);return _e},st=(_e,te)=>Ye(_e,Re(te));const Nt=({img:_e,buttonProps:te={},styles:ne={},customText:he,ButtonText:se,ButtonClick:ge,Buttonclass:Se,ButtonTwo:Ae,imgStyles:Oe,loading:Be=!1,className:Ke=""})=>le.createElement("section",{className:`tc animated fadeIn ${Ke}`,style:mt({color:"#999",margin:"100px auto",visibility:Be?"hidden":"visible"},ne)},le.createElement("img",{src:_e||Ie,style:st(mt({},Oe),{pointerEvents:"none",userSelect:"none"})}),le.createElement("p",{className:"mt20 font14"},he||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),se&&le.createElement(De.ZP,mt({className:Se,onClick:ge},te),se),Ae&&Ae);be.Z=Nt},45677:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return Se}});var le=de(59301),Ie={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},De=de(99571),Le=de(70557),Ye=de(75975),Re=de(25399),Ve=de(51257),Je=de(81722),Xe=de(28426),qe=de(346),mt=de(44203),st=de(59301),Nt=Object.defineProperty,_e=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,he=(Ae,Oe,Be)=>Oe in Ae?Nt(Ae,Oe,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Ae[Oe]=Be,se=(Ae,Oe)=>{for(var Be in Oe||(Oe={}))te.call(Oe,Be)&&he(Ae,Be,Oe[Be]);if(_e)for(var Be of _e(Oe))ne.call(Oe,Be)&&he(Ae,Be,Oe[Be]);return Ae},ge=(Ae,Oe,Be)=>new Promise((Ke,rt)=>{var ot=at=>{try{bt(Be.next(at))}catch(At){rt(At)}},ht=at=>{try{bt(Be.throw(at))}catch(At){rt(At)}},bt=at=>at.done?Ke(at.value):Promise.resolve(at.value).then(ot,ht);bt((Be=Be.apply(Ae,Oe)).next())}),Se=({editOffice:Ae="view",data:Oe,issaver:Be,onSaver:Ke,theme:rt,type:ot,filename:ht,monacoEditor:bt,className:at,style:At,close:It,onClose:$t,hasMask:Tn,disabledDownload:yn,onImgDimensions:un,showNodata:On,recordInfo:xt})=>{const[ct,it]=(0,le.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[cn,An]=(0,le.useState)(""),[Pt,an]=(0,le.useState)(),ln=window.ENV==="build"?"/react/build":"",zn=location.host.startsWith("localhost")?qe.Z.PROXY_SERVER:qe.Z.API_SERVER,ii=10*(1024*1024),kt=(0,le.useRef)();Oe!=null&&Oe.startsWith("/api")&&ot!=="txt"&&(Oe=qe.Z.API_SERVER+Oe);const Kn=Te=>Te.substring(Te.lastIndexOf("/")+1).split(".").pop();ht&&bt&&(bt.filename=ht),(0,le.useEffect)(()=>{var Te,Me;const Ce=(Me=(Te=document.cookie)==null?void 0:Te.replace(/\s/g,""))==null?void 0:Me.split(";");Ce==null||Ce.map(ut=>{let Lt=ut.split("=");Lt[0]==="_educoder_session"&&An(Lt[1])})},[]),(0,le.useEffect)(()=>{ot==="office"&&(Oe.indexOf("bigfilescdn.")>-1||Oe.indexOf("bigfiles1")>-1?an({url:Oe,fileType:Kn(Oe),model:Oe.indexOf("model=edit")?"edit":"view"}):et())},[ot,Oe]);function yi(Te){return ge(this,null,function*(){Te.data.type==="pdfdata"&&(Ke(Te.data.data),window.removeEventListener("message",yi,!1)),console.log("mess---:",Te.data)})}const et=()=>ge(void 0,null,function*(){console.log("data:",Oe);let Te=Oe;Oe.startsWith("http")||(Te=location.origin+Te);let Me=new URL(Te).pathname.split("/").pop();const Ce=yield(0,Je.gJ)({attachment_id:Me});Ce.url=zn+Ce.url,an(Ce)}),ze=()=>{if(Oe.startsWith("http")||Oe.startsWith("blob:")){xe();return}(0,Ve.Sv)(ht||"educoder",Oe,ht)},xe=()=>{xt&&(0,mt.fc)({id:xt==null?void 0:xt.id,watch_type:1,course_id:xt==null?void 0:xt.course_id}),(0,Ve.Nd)(ht||"educoder",decodeURIComponent(Oe))};return st.createElement("div",{style:se({},At||{}),className:`${Tn&&Ie.bgBlack} ${ot?Ie.wrp:"hide"}`},It&&st.createElement("div",{className:Ie.close,ref:kt},!!un&&st.createElement(Re.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>kt.current},st.createElement("span",{onClick:()=>{$t(),un()}},st.createElement("i",{className:"icon-yulanpizhu"}))),!yn&&st.createElement(Re.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>kt.current},st.createElement("span",{onClick:xe},st.createElement("i",{className:"icon-quxiaozhiding"}))),Be&&st.createElement(Re.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>kt.current},st.createElement("span",{className:"",onClick:()=>{const Te=document.getElementById("pdfiframe");window.addEventListener("message",yi,!1),setTimeout(()=>{Te.contentWindow.postMessage("getData","*")},300)}},st.createElement("i",{className:"icon-baocun"}))),st.createElement(Re.Z,{title:"\u5173\u95ED",getPopupContainer:()=>kt.current},st.createElement("span",{className:"",onClick:()=>{$t()}},st.createElement("i",{className:"icon-guanbi1"})))),st.createElement("div",{className:`${Ie[at]} ${at} ${Ie.monaco} ${ot==="txt"?"show":"hide"}`},ot==="txt"&&st.createElement(st.Fragment,null,st.createElement(Ye.ZP,se({},bt)))),ot==="audio"&&st.createElement("audio",{src:`${(Oe==null?void 0:Oe.indexOf("http://"))>-1||(Oe==null?void 0:Oe.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Oe}`,autoPlay:!0}),ot==="video"&&st.createElement(st.Fragment,null,(Oe==null?void 0:Oe.indexOf("http"))>-1?st.createElement("video",{controls:!0,src:`${Oe}`,autoPlay:!0}):st.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Oe}`,autoPlay:!0})),ot==="office"&&Pt&&st.createElement("iframe",{src:`${ln}/office.html?key=${Pt.key}&url=${btoa(Pt.url)}&callbackUrl=${zn+(Pt.callbackUrl||"")}&fileType=${Pt.fileType}&title=${Pt.title||""}&model=${Ae}&officeServer=${qe.Z.ONLYOFFICE}&disabledDownload=${!!yn}`}),ot==="html"&&st.createElement("iframe",{src:Oe+"&disposition=inline"}),ot==="pdf"&&st.createElement("iframe",{id:"pdfiframe",src:`${ln}/js/pdfview/index.html?filename=${ht||"educoder.pdf"}&url=${encodeURIComponent(Oe)}&disabledDownload=${!!yn}&model=${Ae}`}),ot==="image"&&st.createElement("img",{src:`${(Oe==null?void 0:Oe.indexOf("http://"))>-1||(Oe==null?void 0:Oe.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Oe}`}),(ot==="other"||ot==="download")&&st.createElement(st.Fragment,null,On?st.createElement(Xe.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:st.createElement(De.ZP,{icon:st.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:ze,disabled:yn},"\u4E0B\u8F7D")}):st.createElement(De.ZP,{type:"primary",size:"middle",onClick:ze,disabled:yn},st.createElement(Le.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},76902:function(Ge,be,de){"use strict";de.d(be,{z:function(){return rt},Z:function(){return ot}});var le=de(59301),Ie=de(8944),De=de(81428),Le=de(64018),Ye=de(79710),Re=de(346),Ve=de(51257),Je=de(15342),Xe=de(1012),qe=de(45677),mt=de(59301),Nt=({html:ht})=>{const bt=(0,le.useRef)(null),at=(0,le.useRef)(null),At=`.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,le.useEffect)(()=>{const It=bt.current.attachShadow({mode:"open"});at.current=document.createElement("div"),at.current.className="markdown-body",at.current.innerHTML=ht,It.appendChild(at.current);const $t=document.createElement("style");return $t.textContent=At,It.appendChild($t),()=>{It.innerHTML=""}},[]),(0,le.useEffect)(()=>{at.current&&(at.current.innerHTML=ht)},[ht]),mt.createElement("div",{ref:bt})};function _e(ht){const bt=["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"],at=new RegExp(`\\b(${bt.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return ht.replace(at,"").trim()}var te=Object.defineProperty,ne=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ge=(ht,bt,at)=>bt in ht?te(ht,bt,{enumerable:!0,configurable:!0,writable:!0,value:at}):ht[bt]=at,Se=(ht,bt)=>{for(var at in bt||(bt={}))he.call(bt,at)&&ge(ht,at,bt[at]);if(ne)for(var at of ne(bt))se.call(bt,at)&&ge(ht,at,bt[at]);return ht};const Ae="@\u2581\u2581@",Oe="@\u2581@",Be=/<pre[^>]*>/g;function Ke(ht){let bt=document.createElement("div");return bt.innerHTML=ht,bt.childNodes.length===0?"":bt.childNodes[0].nodeValue}const rt=(ht,bt)=>{ht=ht||"";const at=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,At=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,It=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,$t=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return bt?ht.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(at,(Tn,yn,un,On,xt,ct,it)=>{const cn=yn||On||ct,An=un||xt||it||"?";return Re.Z.API_SERVER+"/api/attachments/"+cn+An+"&t="+(0,Ve.Jn)(cn,Date.now())+(Tn.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ht=ht.replace($t,(Tn,yn,un,On,xt,ct,it)=>{const cn=yn||On||ct,An=un||xt||it||"?";return Re.Z.API_SERVER+"/attachments/download/"+cn+An+"&t="+(0,Ve.Jn)(cn,Date.now())+(Tn.indexOf(")")>-1?")":"&")}).replace(at,(Tn,yn,un,On,xt,ct,it)=>{const cn=yn||On||ct,An=un||xt||it||"?";return Re.Z.API_SERVER+"/api/attachments/"+cn+An+"&t="+(0,Ve.Jn)(cn,Date.now())+(Tn.indexOf(")")>-1?")":"&")}).replace(At,(Tn,yn,un,On,xt)=>{const ct=yn||On,it=un||xt||"";return'"'+Re.Z.API_SERVER+"/api/attachments/"+ct+it+ct+it+"&t="+(0,Ve.Jn)(ct,Date.now())}).replace(It,(Tn,yn,un,On,xt)=>{const ct=yn||On,it=un||xt||"";return"("+Re.Z.API_SERVER+"/files/uploads/"+ct+it+ct+it+"&t="+(0,Ve.Jn)(ct,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,`
|
|
|
`),ht)};var ot=({value:ht="",className:bt,showTextOnly:at,showLines:At,style:It={},stylesPrev:$t={},highlightKeywords:Tn,showProgramFill:yn,isProgramFill:un,disabledFill:On=!1,programFillValue:xt,onFillChange:ct=An=>{},onFillBlur:it=()=>{},onFillFocus:cn=()=>{}})=>{let An=_e(String(ht||""));const[Pt,an]=(0,le.useState)(""),[ln,zn]=(0,le.useState)("office"),[En,ii]=(0,le.useState)([]),kt=(0,le.useRef)("a"+(0,Xe.Z)()),Kn={},yi=Gt=>/<style[\s\S]*?>/i.test(Gt||""),et=(Gt,gn,qt)=>{const fn=document.createElement(Gt===Oe?"input":"textarea");fn.style.width="100%",fn.style.height=Gt===Oe?"40px":"151px",fn.rows=5,fn.spellcheck=!1,fn.name="edu-program-fill",fn.placeholder="\u8BF7\u8F93\u5165",fn.dataset.id=gn;const sn=Object.keys(Kn).length;return Kn[sn]=fn,`<span class="edu-program-fill-wrap ${Gt===Oe?"":"show"}" style="width:${Gt===Oe?"400px":"100%"}" title=${qt||""}><span>${fn.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function ze(Gt){return Gt=Gt.replace(/!\[.*?\]\(.*?\)/g,""),Gt=Gt.replace(/\[.*?\]\(.*?\)/g,""),Gt=Gt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Gt=Gt.replace(/<embed.*?>/g,""),Gt=Gt.replace(/<img.*?>/g,""),Gt=Gt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Gt=Gt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Gt=Gt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Gt=Gt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Gt}const xe=Gt=>!at&&yi(An)?Gt:Gt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(gn,qt){let fn=qt.replace(/(\n|\r)/g,"").split("}"),sn=[];return fn.map(_t=>{_t!=""&&sn.push(`.${kt.current} ${_t}`)}),`<style>${sn.join("}")}</style>`}),Te=(0,le.useMemo)(()=>{try{const fn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,sn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,_t=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,wn=/\(\/attachments\/download\//g;An=An.replace(wn,"("+Re.Z.API_SERVER+"/attachments/download/").replace(fn,"("+Re.Z.API_SERVER+"/api/attachments/").replace(sn,'"'+Re.Z.API_SERVER+"/api/attachments/").replace(_t,'"'+Re.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(fn){}if(yn){let fn=-1;return An=An.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(sn,_t,wn){var dn;return++fn,et(sn,fn,(dn=xt==null?void 0:xt[fn])==null?void 0:dn.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${xe(An||"")}</pre>`}let Gt=xe(An);Gt=(0,De.ZP)(Gt);const gn=(0,De.ez)();An.match(/\[TOC\]/)&&(Gt=Gt.replace("<p>[TOC]</p>",(0,De.Qv)()),(0,De.Iy)()),Gt=Gt.replace(/(__special_katext_id_\d+__)/g,(fn,sn)=>{const{type:_t,expression:wn}=gn[sn];return(0,Je.renderToString)(Ke(wn)||"",{displayMode:_t==="block",throwOnError:!1,output:"html"})}),Gt=Gt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,De.AL)();const qt=document.createElement("div");if(qt.innerHTML=Gt,at)return qt.innerText;if(Tn){const fn=Tn.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Lt(qt,fn),qt.innerHTML}return setTimeout(()=>Vt(),500),qt.innerHTML},[An,Tn]);(0,le.useEffect)(()=>{Mt.current&&Mt.current.querySelectorAll(["input","textarea"]).forEach(gn=>{gn.oninput=Me,gn.onblur=Ce,gn.onfocus=ut})},[En]),(0,le.useEffect)(()=>{var Gt,gn,qt,fn,sn;if(xt!=null&&xt.length)try{const _t=Mt.current.querySelectorAll(".edu-program-fill-score"),wn=Mt.current.querySelectorAll('[name="edu-program-fill"]');for(const[dn,Sn]of wn.entries())Sn.value=((Gt=xt==null?void 0:xt[dn])==null?void 0:Gt.value)||"",((gn=xt==null?void 0:xt[dn])==null?void 0:gn.type)==="warning"?Sn.className="program-fill-warning":((qt=xt==null?void 0:xt[dn])==null?void 0:qt.type)==="success"?Sn.className="program-fill-success":Sn.className="";for(const[dn,Sn]of _t.entries())Sn.innerHTML=(fn=xt==null?void 0:xt[dn])!=null&&fn.score?`${(sn=xt==null?void 0:xt[dn])==null?void 0:sn.score}\u5206`:"";ii(xt)}catch(_t){console.log(_t,"error")}},[xt]);const Me=Gt=>{En[Gt.target.dataset.id]=En[Gt.target.dataset.id]||{},En[Gt.target.dataset.id].value=Gt.target.value,ii([...En]),ct(En,Gt.target.dataset.id)},Ce=Gt=>{En[Gt.target.dataset.id]=En[Gt.target.dataset.id]||{},En[Gt.target.dataset.id].value=Gt.target.value,ii([...En]),it(En,Gt.target.dataset.id)},ut=Gt=>{En[Gt.target.dataset.id]=En[Gt.target.dataset.id]||{},En[Gt.target.dataset.id].value=Gt.target.value,ii([...En]),cn(En,Gt.target.dataset.id)};function Lt(Gt,gn){return Gt.childNodes.forEach(qt=>{var fn;if(qt.childNodes.length>0)Lt(qt,gn);else if(qt.nodeName!=="IMG")if(qt.innerHTML)qt.innerHTML=(fn=qt.innerHTML)==null?void 0:fn.replace(new RegExp(gn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const sn=document.createElement("span");sn.innerHTML=qt.textContent.replace(new RegExp(gn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),qt.replaceWith(sn)}})}const Mt=(0,le.useRef)();De.jb.WebkitLineClamp=At,At&&(It=Se(Se({},It),De.jb));function Yt(Gt){let gn=Gt.target;if(gn.tagName.toUpperCase()==="A"){let qt=gn.getAttribute("href");if(qt.indexOf("office")>-1)Gt.preventDefault(),an(qt),zn("office");else if(qt.indexOf("application/pdf")>-1)Gt.preventDefault(),an(qt),zn("pdf");else if(qt.indexOf("text/html")>-1)Gt.preventDefault(),an(qt),zn("html");else if(qt.startsWith("#")){Gt.preventDefault();let fn=document.getElementById(qt.replace("#",""));fn&&fn.scrollIntoView(!0)}}}const Vt=()=>{var Gt;const gn=(Gt=Mt.current)==null?void 0:Gt.querySelectorAll("video");gn==null||gn.forEach(qt=>{if(qt.oncontextmenu=()=>!1,qt.src.indexOf(".m3u8")>-1&&!qt.canPlayType("application/vnd.apple.mpegurl")){if(Ye.ZP.isSupported()){var fn=new Ye.ZP;fn.loadSource(qt.src),fn.attachMedia(qt)}}})};return(0,le.useEffect)(()=>{if(Mt.current&&Te&&Te.match(Be)&&window.PR.prettyPrint(),Mt.current)return Mt.current.addEventListener("click",Yt),()=>{var Gt;(Gt=Mt.current)==null||Gt.removeEventListener("click",Yt),(0,De.AL)(),(0,De.Iy)()}},[Te,Mt.current,Yt]),(0,le.useEffect)(()=>{var Gt;const gn=qt=>{qt.preventDefault(),qt.clipboardData.setData("text",window.getSelection().toString())};return(Gt=Mt.current)==null||Gt.addEventListener("copy",gn),()=>{var qt;(qt=Mt.current)==null||qt.removeEventListener("copy",gn)}},[Mt.current]),le.createElement(le.Fragment,null,at&&le.createElement("div",{ref:Mt},Te),!at&&!yi(Te)&&le.createElement("div",{ref:Mt,style:Se({},It),className:`${bt||""} ${On?"disabled-fill":""} markdown-body ${kt.current}`,dangerouslySetInnerHTML:{__html:Te}}),!at&&yi(Te)&&le.createElement(Nt,{html:Te}),le.createElement(qe.Z,{close:!0,data:Pt,type:Pt!=null&&Pt.length?ln:"",style:Se({},$t),onClose:()=>an("")}))}},69720:function(Ge,be,de){"use strict";de.d(be,{h:function(){return Ae}});var le=de(59301),Ie=de(82326),De=de(28284),Le=de(99571),Ye=de(89780),Re=de.n(Ye),Ve=de(8336),Je=de(12469),Xe=Object.defineProperty,qe=Object.defineProperties,mt=Object.getOwnPropertyDescriptors,st=Object.getOwnPropertySymbols,Nt=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,te=(Oe,Be,Ke)=>Be in Oe?Xe(Oe,Be,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Oe[Be]=Ke,ne=(Oe,Be)=>{for(var Ke in Be||(Be={}))Nt.call(Be,Ke)&&te(Oe,Ke,Be[Ke]);if(st)for(var Ke of st(Be))_e.call(Be,Ke)&&te(Oe,Ke,Be[Ke]);return Oe},he=(Oe,Be)=>qe(Oe,mt(Be));const se=Ie.default.Option,ge={labelCol:{span:4},wrapperCol:{span:20}},Se={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"]};be.Z=({callback:Oe,onCancel:Be})=>{const[Ke,rt]=(0,le.useState)("python");function ot(bt){rt(Se[bt][1])}function ht(bt){Oe(bt)}return le.createElement(De.default,he(ne({},ge),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ht,style:{width:500}}),le.createElement(De.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},le.createElement(Ie.default,{getPopupContainer:bt=>bt.parentNode,onChange:ot},Object.keys(Se).map(bt=>le.createElement(se,{key:bt,value:bt},Se[bt][0])))),le.createElement(De.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},le.createElement(Ae,{mode:Ke})),le.createElement("div",{className:"flex-container flex-end"},le.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),le.createElement(Le.ZP,{type:"ghost",onClick:Be},"\u53D6\u6D88")))};function Ae({value:Oe,onChange:Be,mode:Ke,options:rt={}}){const ot=(0,le.useRef)(),[ht,bt]=(0,le.useState)();return(0,le.useEffect)(()=>{if(ht){let at=function(At){const It=At.getValue();Be&&Be(It)};return ht.on("change",at),()=>{ht.off("change",at)}}},[ht,Be]),(0,le.useEffect)(()=>{ht&&ht.setOption("mode",Ke)},[ht,Ke]),(0,le.useEffect)(()=>{ht&&(Oe!==ht.getValue()||Oe==="")&&setTimeout(()=>{ht.setValue(Oe||"")},300)},[ht,Oe]),(0,le.useEffect)(()=>{if(ot.current&&!ht){const at=Re().fromTextArea(ot.current,ne({mode:Ke,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},rt));bt(at)}},[ot.current,ht]),le.createElement("div",{className:"my-codemirror-container"},le.createElement("textarea",{ref:ot}))}},39793:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return er}});var le=de(59301),Ie=de(89780),De=de.n(Ie),Le=de(76374),Ye=de(8336),Re=de(6313),Ve=de(25717),Je=de(99498),Xe=de(25419),qe=de(67549),mt=de(76902),st=({value:Kt="",className:en,showTextOnly:zt,showLines:on,style:rn={}})=>{const mn=(0,le.useMemo)(()=>"",[Kt]);return le.createElement(le.Fragment,null,le.createElement("div",{dangerouslySetInnerHTML:{__html:mn}}))},Nt=de(59301),_e=Object.defineProperty,te=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,Se=(Kt,en,zt)=>en in Kt?_e(Kt,en,{enumerable:!0,configurable:!0,writable:!0,value:zt}):Kt[en]=zt,Ae=(Kt,en)=>{for(var zt in en||(en={}))se.call(en,zt)&&Se(Kt,zt,en[zt]);if(he)for(var zt of he(en))ge.call(en,zt)&&Se(Kt,zt,en[zt]);return Kt},Oe=(Kt,en)=>te(Kt,ne(en));let Be=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Ke({onActionCallback:Kt,title:en,icon:zt,actionName:on,className:rn="",children:mn}){function Bn(){Kt(on)}return Nt.createElement("a",{title:en,className:rn,onClick:Bn},Nt.createElement("i",{className:`${zt}`}),mn)}var rt=({watch:Kt,showNullButton:en,showNullProgramButton:zt,onActionCallback:on,fullScreen:rn,insertTemp:mn,hidetoolBar:Bn,extraUse:ei})=>{const ji=[...Be,{title:`${Kt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Kt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Nt.createElement("ul",{className:"markdown-toolbar-container"},!Bn&&ji.map((Fi,Yi)=>Nt.createElement("li",{key:Yi},Fi.actionName?Nt.createElement(Ke,Oe(Ae({},Fi),{onActionCallback:on})):Nt.createElement("span",{className:"v-line"}))),en?Nt.createElement("li",null,Nt.createElement(Ke,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:on},Nt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,zt?Nt.createElement(Nt.Fragment,null,Nt.createElement("li",null,Nt.createElement(Ke,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:on},Nt.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Nt.createElement("li",null,Nt.createElement(Ke,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:on},Nt.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,mn&&Nt.createElement("li",null,Nt.createElement(Ke,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${mn}`,onActionCallback:on},Nt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),ei&&Nt.createElement("li",null,ei),Nt.createElement("li",{className:"btn-full-screen"},Nt.createElement(Ke,{icon:`${rn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:rn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:on})))},ot=de(91558),ht=de(28284),bt=de(37568),at=de(99571),At=Object.defineProperty,It=Object.defineProperties,$t=Object.getOwnPropertyDescriptors,Tn=Object.getOwnPropertySymbols,yn=Object.prototype.hasOwnProperty,un=Object.prototype.propertyIsEnumerable,On=(Kt,en,zt)=>en in Kt?At(Kt,en,{enumerable:!0,configurable:!0,writable:!0,value:zt}):Kt[en]=zt,xt=(Kt,en)=>{for(var zt in en||(en={}))yn.call(en,zt)&&On(Kt,zt,en[zt]);if(Tn)for(var zt of Tn(en))un.call(en,zt)&&On(Kt,zt,en[zt]);return Kt},ct=(Kt,en)=>It(Kt,$t(en));const it={labelCol:{span:4},wrapperCol:{span:20}};var cn=({callback:Kt,onCancel:en})=>{function zt(on){Kt(on)}return le.createElement(ht.default,ct(xt({},it),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:zt,style:{width:500}}),le.createElement(ht.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},le.createElement(bt.default,null)),le.createElement(ht.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},le.createElement(bt.default,null)),le.createElement("div",{className:"flex-container flex-end"},le.createElement(at.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),le.createElement(at.ZP,{type:"ghost",onClick:en},"\u53D6\u6D88")))},An=de(69720),Pt=de(17077),an=de(62957),ln=de(77019),zn=de(9507),En=de(59301),ii=({callback:Kt,onCancel:en})=>{const zt=document.createElement("canvas"),on=zt.getContext("2d");zt.width=1e3,zt.height=800,on.fillStyle="#ffffff",on.fillRect(0,0,zt.width,zt.height);const rn=zt.toDataURL("image/png");return En.createElement(an.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},En.createElement(ln.Z,{style:{height:"100vh"}},En.createElement(zn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:rn,visible:!0,title:String(Date.now())},onOk:mn=>{Kt({src:mn.url})},onClose:en})))},kt=de(12378);function Kn(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Kn,go.CommandHandler),Kn.prototype.canAlignSelection=function(){var Kt=this.diagram;return!(Kt===null||Kt.isReadOnly||Kt.isModelReadOnly||Kt.selection.count<2)},Kn.prototype.alignLeft=function(){var Kt=this.diagram;Kt.startTransaction("aligning left");var en=1/0;Kt.selection.each(function(zt){zt instanceof go.Link||(en=Math.min(zt.position.x,en))}),Kt.selection.each(function(zt){zt instanceof go.Link||zt.move(new go.Point(en,zt.position.y))}),Kt.commitTransaction("aligning left")},Kn.prototype.alignRight=function(){var Kt=this.diagram;Kt.startTransaction("aligning right");var en=-1/0;Kt.selection.each(function(zt){if(!(zt instanceof go.Link)){var on=zt.actualBounds.x+zt.actualBounds.width;en=Math.max(on,en)}}),Kt.selection.each(function(zt){zt instanceof go.Link||zt.move(new go.Point(en-zt.actualBounds.width,zt.position.y))}),Kt.commitTransaction("aligning right")},Kn.prototype.alignTop=function(){var Kt=this.diagram;Kt.startTransaction("alignTop");var en=1/0;Kt.selection.each(function(zt){zt instanceof go.Link||(en=Math.min(zt.position.y,en))}),Kt.selection.each(function(zt){zt instanceof go.Link||zt.move(new go.Point(zt.position.x,en))}),Kt.commitTransaction("alignTop")},Kn.prototype.alignBottom=function(){var Kt=this.diagram;Kt.startTransaction("aligning bottom");var en=-1/0;Kt.selection.each(function(zt){if(!(zt instanceof go.Link)){var on=zt.actualBounds.y+zt.actualBounds.height;en=Math.max(on,en)}}),Kt.selection.each(function(zt){zt instanceof go.Link||zt.move(new go.Point(zt.actualBounds.x,en-zt.actualBounds.height))}),Kt.commitTransaction("aligning bottom")},Kn.prototype.alignCenterX=function(){var Kt=this.diagram,en=Kt.selection.first();if(en){Kt.startTransaction("aligning Center X");var zt=en.actualBounds.x+en.actualBounds.width/2;Kt.selection.each(function(on){on instanceof go.Link||on.move(new go.Point(zt-on.actualBounds.width/2,on.actualBounds.y))}),Kt.commitTransaction("aligning Center X")}},Kn.prototype.alignCenterY=function(){var Kt=this.diagram,en=Kt.selection.first();if(en){Kt.startTransaction("aligning Center Y");var zt=en.actualBounds.y+en.actualBounds.height/2;Kt.selection.each(function(on){on instanceof go.Link||on.move(new go.Point(on.actualBounds.x,zt-on.actualBounds.height/2))}),Kt.commitTransaction("aligning Center Y")}},Kn.prototype.alignColumn=function(Kt){var en=this.diagram;en.startTransaction("align Column"),Kt===void 0&&(Kt=0),Kt=parseFloat(Kt);var zt=new Array;en.selection.each(function(ei){ei instanceof go.Link||zt.push(ei)});for(var on=0;on<zt.length-1;on++){var rn=zt[on],mn=rn.actualBounds.y+rn.actualBounds.height+Kt,Bn=zt[on+1];Bn.move(new go.Point(rn.actualBounds.x,mn))}en.commitTransaction("align Column")},Kn.prototype.alignRow=function(Kt){Kt===void 0&&(Kt=0),Kt=parseFloat(Kt);var en=this.diagram;en.startTransaction("align Row");var zt=new Array;en.selection.each(function(ei){ei instanceof go.Link||zt.push(ei)});for(var on=0;on<zt.length-1;on++){var rn=zt[on],mn=rn.actualBounds.x+rn.actualBounds.width+Kt,Bn=zt[on+1];Bn.move(new go.Point(mn,rn.actualBounds.y))}en.commitTransaction("align Row")},Kn.prototype.canRotate=function(Kt){var en=this.diagram;return!(en===null||en.isReadOnly||en.isModelReadOnly||en.selection.count<1)},Kn.prototype.rotate=function(Kt){Kt===void 0&&(Kt=90);var en=this.diagram;en.startTransaction("rotate "+Kt.toString());var en=this.diagram;en.selection.each(function(zt){zt instanceof go.Link||zt instanceof go.Group||(zt.angle+=Kt)}),en.commitTransaction("rotate "+Kt.toString())},Kn.prototype.pullToFront=function(){var Kt=this.diagram;Kt.startTransaction("pullToFront");var en=new go.Map;Kt.selection.each(function(zt){en.set(zt.layer,0)}),en.iteratorKeys.each(function(zt){var on=0;zt.parts.each(function(rn){if(!rn.isSelected){var mn=rn.zOrder;isNaN(mn)?rn.zOrder=0:on=Math.max(on,mn)}}),en.set(zt,on)}),Kt.selection.each(function(zt){Kn._assignZOrder(zt,en.get(zt.layer)+1)}),Kt.commitTransaction("pullToFront")},Kn.prototype.pushToBack=function(){var Kt=this.diagram;Kt.startTransaction("pushToBack");var en=new go.Map;Kt.selection.each(function(zt){en.set(zt.layer,0)}),en.iteratorKeys.each(function(zt){var on=0;zt.parts.each(function(rn){if(!rn.isSelected){var mn=rn.zOrder;isNaN(mn)?rn.zOrder=0:on=Math.min(on,mn)}}),en.set(zt,on)}),Kt.selection.each(function(zt){Kn._assignZOrder(zt,en.get(zt.layer)-1-Kn._findGroupDepth(zt))}),Kt.commitTransaction("pushToBack")},Kn._assignZOrder=function(Kt,en,zt){zt===void 0&&(zt=Kt),Kt.layer===zt.layer&&(Kt.zOrder=en),Kt instanceof go.Group&&Kt.memberParts.each(function(on){Kn._assignZOrder(on,en+1,zt)})},Kn._findGroupDepth=function(Kt){if(Kt instanceof go.Group){var en=0;return Kt.memberParts.each(function(zt){en=Math.max(en,Kn._findGroupDepth(zt))}),en+1}else return 0},Kn.prototype.doKeyDown=function(){var Kt=this.diagram;if(Kt!==null){var en=Kt.lastInput;if(en.key==="Up"||en.key==="Down"||en.key==="Left"||en.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)}},Kn.prototype._getAllParts=function(){var Kt=new Array;return this.diagram.nodes.each(function(en){Kt.push(en)}),this.diagram.parts.each(function(en){Kt.push(en)}),Kt},Kn.prototype._arrowKeyMove=function(){var Kt=this.diagram,en=Kt.lastInput,zt=0,on=0;if(en.control||en.meta)zt=1,on=1;else if(Kt.grid!==null){var rn=Kt.grid.gridCellSize;on=rn.width,zt=rn.height}Kt.startTransaction("arrowKeyMove"),Kt.selection.each(function(mn){en.key==="Up"?mn.move(new go.Point(mn.actualBounds.x,mn.actualBounds.y-zt)):en.key==="Down"?mn.move(new go.Point(mn.actualBounds.x,mn.actualBounds.y+zt)):en.key==="Left"?mn.move(new go.Point(mn.actualBounds.x-on,mn.actualBounds.y)):en.key==="Right"&&mn.move(new go.Point(mn.actualBounds.x+on,mn.actualBounds.y))}),Kt.commitTransaction("arrowKeyMove")},Kn.prototype._arrowKeySelect=function(){var Kt=this.diagram,en=Kt.lastInput,zt=null;en.key==="Up"?zt=this._findNearestPartTowards(270):en.key==="Down"?zt=this._findNearestPartTowards(90):en.key==="Left"?zt=this._findNearestPartTowards(180):en.key==="Right"&&(zt=this._findNearestPartTowards(0)),zt!==null&&(en.shift?zt.isSelected=!0:en.control||en.meta?zt.isSelected=!zt.isSelected:Kt.select(zt))},Kn.prototype._findNearestPartTowards=function(Kt){var en=this.diagram.selection.first();if(en===null)return null;for(var zt=en.actualBounds.center,on=this._getAllParts(),rn=1/0,mn=en,Bn=0;Bn<on.length;Bn++){var ei=on[Bn];if(ei!==en&&ei.canSelect()){var ji=ei.actualBounds.center,Fi=zt.directionPoint(ji),Yi=this._angleCloseness(Fi,Kt);if(Yi<=45){var lt=zt.distanceSquaredPoint(ji);lt*=1+Math.sin(Yi*Math.PI/180),lt<rn&&(rn=lt,mn=ei)}}}return mn},Kn.prototype._angleCloseness=function(Kt,en){return Math.min(Math.abs(en-Kt),Math.min(Math.abs(en+360-Kt),Math.abs(en-360-Kt)))},Kn.prototype._arrowKeyTree=function(){var Kt=this.diagram,en=Kt.selection.first();if(en instanceof go.Node){var zt=Kt.lastInput;if(zt.key==="Right"){if(!en.isTreeLeaf)if(!en.isTreeExpanded)Kt.commandHandler.canExpandTree(en)&&Kt.commandHandler.expandTree(en);else{var on=this._sortTreeChildrenByY(en).first();on!==null&&Kt.select(on)}}else if(zt.key==="Left")if(!en.isTreeLeaf&&en.isTreeExpanded)Kt.commandHandler.canCollapseTree(en)&&Kt.commandHandler.collapseTree(en);else{var rn=en.findTreeParentNode();rn!==null&&Kt.select(rn)}else if(zt.key==="Up"){var rn=en.findTreeParentNode();if(rn!==null){var mn=this._sortTreeChildrenByY(rn),Bn=mn.indexOf(en);if(Bn>0){for(var ei=mn.elt(Bn-1);ei!==null&&ei.isTreeExpanded&&!ei.isTreeLeaf;){var ji=this._sortTreeChildrenByY(ei);ei=ji.last()}ei!==null&&Kt.select(ei)}else Kt.select(rn)}}else if(zt.key==="Down")if(en.isTreeExpanded&&!en.isTreeLeaf){var on=this._sortTreeChildrenByY(en).first();on!==null&&Kt.select(on)}else for(;en!==null;){var rn=en.findTreeParentNode();if(rn===null)break;var mn=this._sortTreeChildrenByY(rn),Bn=mn.indexOf(en);if(Bn<mn.length-1){Kt.select(mn.elt(Bn+1));break}else en=rn}var Fi=Kt.selection.first();Fi!==null&&Kt.scrollToRect(Fi.actualBounds)}},Kn.prototype._sortTreeChildrenByY=function(Kt){var en=new go.List().addAll(Kt.findTreeChildrenNodes());return en.sort(function(zt,on){var rn=zt.location,mn=on.location;return rn.y<mn.y?-1:rn.y>mn.y?1:rn.x<mn.x?-1:rn.x>mn.x?1:0}),en},Kn.prototype.copyToClipboard=function(Kt){go.CommandHandler.prototype.copyToClipboard.call(this,Kt),this._lastPasteOffset.set(this.pasteOffset)},Kn.prototype.pasteFromClipboard=function(){var Kt=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Kt,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Kt},Object.defineProperty(Kn.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Kt){if(Kt!=="move"&&Kt!=="select"&&Kt!=="scroll"&&Kt!=="tree"&&Kt!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Kt);this._arrowKeyBehavior=Kt}}),Object.defineProperty(Kn.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Kt){if(!(Kt instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Kt);this._pasteOffset.set(Kt)}});var yi=Kn,et=de(63720),ze=de(5269),xe=de(38986),Te={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Me=de(48790),Ce=de(59301),ut=(Kt,en,zt)=>new Promise((on,rn)=>{var mn=ji=>{try{ei(zt.next(ji))}catch(Fi){rn(Fi)}},Bn=ji=>{try{ei(zt.throw(ji))}catch(Fi){rn(Fi)}},ei=ji=>ji.done?on(ji.value):Promise.resolve(ji.value).then(mn,Bn);ei((zt=zt.apply(Kt,en)).next())});function Lt({onCancel:Kt,callback:en}){let zt=(0,le.useRef)(),on=(0,le.useRef)(),rn=(0,le.useRef)(),mn=(0,le.useRef)(!1);const Bn=(0,le.useRef)(!1),[ei,ji]=(0,le.useState)(0);function Fi(){const lt=kt.bx.make,Ut={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 kt.S0(on.current,{padding:20,grid:lt(kt.s_,"Grid",lt(kt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),lt(kt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:hi=>{var Pi=hi.diagram.commandHandler.addTopLevelParts(hi.diagram.selection,!0);Pi||hi.diagram.currentTool.doCancel()},commandHandler:lt(yi),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:hi=>{var Pi=hi.subject;Pi.location=Pi.location.copy().snapToGridPoint(hi.diagram.grid.gridOrigin,hi.diagram.grid.gridCellSize),setTimeout(()=>{hi.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:hi=>{var Pi=hi.subject;setTimeout(()=>{hi.diagram.commandHandler.editTextBlock()})},LinkRelinked:hi=>{var Pi=hi.parameter.part;Pi.invalidateConnectedLinks();var Li=hi.subject;hi.diagram.toolManager.linkingTool.isForwards?Li.toNode.invalidateConnectedLinks():Li.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),zt.current.nodeTemplate=lt(kt.NB,"Auto",{locationSpot:kt.z6.Center,locationObjectName:"SHAPE",desiredSize:new kt.$u(120,60),minSize:new kt.$u(40,40),resizable:!0,resizeCellSize:new kt.$u(10,10),rotatable:!0},new kt.KX("location","loc",kt.E9.parse).makeTwoWay(kt.E9.stringify),new kt.KX("desiredSize","size",kt.$u.parse).makeTwoWay(kt.$u.stringify),lt(kt.bn,{name:"SHAPE",fill:Ut.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:kt.z6.AllSides,toSpot:kt.z6.AllSides},new kt.KX("figure"),new kt.KX("fill"),new kt.KX("stroke","borderColor"),new kt.KX("strokeWidth","thickness"),new kt.KX("strokeDashArray","dash")),lt(kt.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),lt(kt.al,{margin:1,textAlign:"center",overflow:kt.al.OverflowEllipsis,editable:!0},new kt.KX("text").makeTwoWay(),new kt.KX("stroke","color"))),zt.current.nodeTemplate.toolTip=lt("ToolTip",lt(kt.s_,"Vertical",{maxSize:new kt.$u(200,NaN)},lt(kt.al,{font:"bold 10pt sans-serif",textAlign:"center"},new kt.KX("text")),lt(kt.al,{font:"10pt sans-serif",textAlign:"center"},new kt.KX("text","details"))));function oi(hi,Pi){var Li=(Ri,sr)=>{Ri.handled=!0,Ri.diagram.model.commit(gr=>{var Tr=sr.part.adornedPart,Ar=new kt.E9().setRectSpot(Tr.actualBounds,hi);Ar.subtract(Tr.location),Ar.scale(2,2),Ar.x+=Math.sign(Ar.x)*130,Ar.y+=Math.sign(Ar.y)*130,Ar.add(Tr.location),Ar.snapToGridPoint(Ri.diagram.grid.gridOrigin,Ri.diagram.grid.gridCellSize);var Rr=gr.copyNodeData(Tr.data);gr.setGroupKeyForNodeData(Rr,gr.getGroupKeyForNodeData(Tr.data)),gr.addNodeData(Rr);var Un={from:Tr.key,to:gr.getKeyForNodeData(Rr)};gr.addLinkData(Un);var pr=Ri.diagram.findNodeForData(Rr);pr.location=Ar,Ri.diagram.select(pr),setTimeout(()=>{Ri.diagram.commandHandler.editTextBlock()},20)})};return lt(kt.bn,{figure:Pi,alignment:hi,alignmentFocus:hi.opposite(),width:hi.equals(kt.z6.Top)||hi.equals(kt.z6.Bottom)?25:18,height:hi.equals(kt.z6.Top)||hi.equals(kt.z6.Bottom)?18:25,fill:"orange",stroke:Ut.white,strokeWidth:4,mouseEnter:(Ri,sr)=>sr.fill="dodgerblue",mouseLeave:(Ri,sr)=>sr.fill="orange",isActionable:!0,click:Li,contextClick:Li})}function gi(hi){return lt(kt.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:(Pi,Li)=>Li.fill="dodgerblue",mouseLeave:(Pi,Li)=>Li.fill="orange",click:(Pi,Li)=>{Pi.diagram.commandHandler.showContextMenu(Li.part.adornedPart)}},hi||{})}zt.current.nodeTemplate.selectionAdornmentTemplate=lt(kt.uz,"Spot",lt(kt.Vm,{padding:10}),oi(kt.z6.Top,"TriangleUp"),oi(kt.z6.Left,"TriangleLeft"),oi(kt.z6.Right,"TriangleRight"),oi(kt.z6.Bottom,"TriangleDown"),gi({alignment:new kt.z6(.75,0)}));function jt(hi,Pi){return(Li,Ri)=>{Li.handled=!0,Li.diagram.model.commit(sr=>{sr.set(Ri.part.adornedPart.data,hi,Pi)})}}function Vn(hi,Pi){return Pi||(Pi="color"),lt(kt.bn,{width:16,height:16,stroke:"lightgray",fill:hi,margin:1,background:"transparent",mouseEnter:(Li,Ri)=>Ri.stroke="dodgerblue",mouseLeave:(Li,Ri)=>Ri.stroke="lightgray",click:jt(Pi,hi),contextClick:jt(Pi,hi)})}function ni(){return[lt("ContextMenuButton",lt(kt.s_,"Horizontal",Vn(Ut.white,"fill"),Vn(Ut.beige,"fill"),Vn(Ut.extralightblue,"fill"),Vn(Ut.extralightred,"fill"))),lt("ContextMenuButton",lt(kt.s_,"Horizontal",Vn(Ut.lightgray,"fill"),Vn(Ut.lightgreen,"fill"),Vn(Ut.lightblue,"fill"),Vn(Ut.lightred,"fill")))]}function Zt(){return[lt("ContextMenuButton",lt(kt.s_,"Horizontal",Vn(Ut.black),Vn(Ut.green),Vn(Ut.blue),Vn(Ut.red))),lt("ContextMenuButton",lt(kt.s_,"Horizontal",Vn(Ut.white),Vn(Ut.magenta),Vn(Ut.purple),Vn(Ut.orange)))]}function je(hi,Pi){return Pi||(Pi="thickness"),lt(kt.bn,"LineH",{width:16,height:16,strokeWidth:hi,margin:1,background:"transparent",mouseEnter:(Li,Ri)=>Ri.background="dodgerblue",mouseLeave:(Li,Ri)=>Ri.background="transparent",click:jt(Pi,hi),contextClick:jt(Pi,hi)})}function ci(hi,Pi){return Pi||(Pi="dash"),lt(kt.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:hi,margin:1,background:"transparent",mouseEnter:(Li,Ri)=>Ri.background="dodgerblue",mouseLeave:(Li,Ri)=>Ri.background="transparent",click:jt(Pi,hi),contextClick:jt(Pi,hi)})}function pi(){return[lt("ContextMenuButton",lt(kt.s_,"Horizontal",je(1),je(2),je(3),je(4))),lt("ContextMenuButton",lt(kt.s_,"Horizontal",ci(null),ci([2,4]),ci([4,4])))]}function bn(hi,Pi){return Pi||(Pi="figure"),lt(kt.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:hi,margin:1,background:"transparent",mouseEnter:(Li,Ri)=>Ri.fill="dodgerblue",mouseLeave:(Li,Ri)=>Ri.fill="lightgray",click:jt(Pi,hi),contextClick:jt(Pi,hi)})}zt.current.nodeTemplate.contextMenu=lt("ContextMenu",lt("ContextMenuButton",lt(kt.s_,"Horizontal",bn("Rectangle"),bn("RoundedRectangle"),bn("Ellipse"),bn("Diamond"))),lt("ContextMenuButton",lt(kt.s_,"Horizontal",bn("Parallelogram2"),bn("ManualOperation"),bn("Procedure"),bn("Cylinder1"))),lt("ContextMenuButton",lt(kt.s_,"Horizontal",bn("Terminator"),bn("CreateRequest"),bn("Document"),bn("TriangleDown"))),ni(),Zt(),pi()),zt.current.groupTemplate=lt(kt.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:kt.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(hi,Pi)=>{var Li=Pi.addMembers(Pi.diagram.selection,!0);Li||Pi.diagram.currentTool.doCancel()},avoidable:!1},new kt.KX("location","loc",kt.E9.parse).makeTwoWay(kt.E9.stringify),lt(kt.s_,"Auto",{name:"BODY"},lt(kt.bn,{parameter1:10,fill:Ut.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:kt.z6.AllSides,toSpot:kt.z6.AllSides},new kt.KX("fill"),new kt.KX("stroke","color"),new kt.KX("strokeWidth","thickness"),new kt.KX("strokeDashArray","dash")),lt(kt.Vm,{background:"transparent",margin:20})),lt(kt.al,{alignment:kt.z6.Top,alignmentFocus:kt.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new kt.KX("text"),new kt.KX("stroke","color"))),zt.current.groupTemplate.selectionAdornmentTemplate=lt(kt.uz,"Spot",lt(kt.s_,"Auto",lt(kt.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),lt(kt.Vm,{margin:1.5})),gi({alignment:kt.z6.TopRight,alignmentFocus:kt.z6.BottomRight})),zt.current.groupTemplate.contextMenu=lt("ContextMenu",ni(),Zt(),pi()),zt.current.linkTemplate=lt(kt.rU,{layerName:"Foreground",routing:kt.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new kt.KX("fromSpot","fromSpot",kt.z6.parse),new kt.KX("toSpot","toSpot",kt.z6.parse),new kt.KX("fromShortLength","dir",hi=>hi>=1?10:0),new kt.KX("toShortLength","dir",hi=>hi>=1?10:0),new kt.KX("points").makeTwoWay(),lt(kt.bn,{strokeWidth:2},new kt.KX("stroke","color"),new kt.KX("strokeWidth","thickness"),new kt.KX("strokeDashArray","dash")),lt(kt.bn,{segmentIndex:0,segmentOffset:new kt.E9(15,0),segmentOrientation:kt.rU.OrientAlong,alignmentFocus:kt.z6.Right,figure:"circle",width:10,strokeWidth:0},new kt.KX("fill","color"),new kt.KX("visible","dir",hi=>hi===1)),lt(kt.bn,{segmentIndex:-1,segmentOffset:new kt.E9(-10,6),segmentOrientation:kt.rU.OrientPlus90,alignmentFocus:kt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new kt.KX("fill","color"),new kt.KX("visible","dir",hi=>hi>=1),new kt.KX("width","thickness",hi=>7+3*hi),new kt.KX("height","thickness",hi=>7+3*hi),new kt.KX("segmentOffset","thickness",hi=>new kt.E9(-15,4+1.5*hi))),lt(kt.bn,{segmentIndex:0,segmentOffset:new kt.E9(15,-6),segmentOrientation:kt.rU.OrientMinus90,alignmentFocus:kt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new kt.KX("fill","color"),new kt.KX("visible","dir",hi=>hi===2),new kt.KX("width","thickness",hi=>7+3*hi),new kt.KX("height","thickness",hi=>7+3*hi),new kt.KX("segmentOffset","thickness",hi=>new kt.E9(-15,4+1.5*hi))),lt(kt.al,{alignmentFocus:new kt.z6(0,1,-4,0),editable:!0},new kt.KX("text").makeTwoWay(),new kt.KX("stroke","color"))),zt.current.linkTemplate.selectionAdornmentTemplate=lt(kt.uz,lt(kt.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Ki(2)},new kt.KX("pathPattern","thickness",Ki)),gi({alignmentFocus:new kt.z6(0,0,-6,-4)}));function Ki(hi){return lt(kt.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(hi+4).toString()+" H3"})}function Ui(hi){var Pi="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return hi===0?Pi="M0 0 M16 16 M0 8 L16 8":hi===2&&(Pi="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),lt(kt.bn,{geometryString:Pi,margin:2,background:"transparent",mouseEnter:(Li,Ri)=>Ri.background="dodgerblue",mouseLeave:(Li,Ri)=>Ri.background="transparent",click:jt("dir",hi),contextClick:jt("dir",hi)})}function Wi(hi){var Pi=(Li,Ri)=>{Li.handled=!0,Li.diagram.model.commit(sr=>{var gr=Ri.part.adornedPart;sr.set(gr.data,hi?"toSpot":"fromSpot",kt.z6.stringify(kt.z6.AllSides)),(hi?gr.toNode:gr.fromNode).invalidateConnectedLinks()})};return lt(kt.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Li,Ri)=>Ri.background="dodgerblue",mouseLeave:(Li,Ri)=>Ri.background="transparent",click:Pi,contextClick:Pi})}function vn(hi,Pi){var Li=0,Ri=kt.z6.RightSide;hi.equals(kt.z6.Top)?(Li=270,Ri=kt.z6.TopSide):hi.equals(kt.z6.Left)?(Li=180,Ri=kt.z6.LeftSide):hi.equals(kt.z6.Bottom)&&(Li=90,Ri=kt.z6.BottomSide),Pi||(Li-=180);var sr=(gr,Tr)=>{gr.handled=!0,gr.diagram.model.commit(Ar=>{var Rr=Tr.part.adornedPart;Ar.set(Rr.data,Pi?"toSpot":"fromSpot",kt.z6.stringify(Ri)),(Pi?Rr.toNode:Rr.fromNode).invalidateConnectedLinks()})};return lt(kt.bn,{alignment:hi,alignmentFocus:hi.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Li,background:"transparent",mouseEnter:(gr,Tr)=>Tr.background="dodgerblue",mouseLeave:(gr,Tr)=>Tr.background="transparent",click:sr,contextClick:sr})}zt.current.linkTemplate.contextMenu=lt("ContextMenu",Zt(),pi(),lt("ContextMenuButton",lt(kt.s_,"Horizontal",Ui(0),Ui(1),Ui(2))),lt("ContextMenuButton",lt(kt.s_,"Horizontal",lt(kt.s_,"Spot",Wi(!1),vn(kt.z6.Top,!1),vn(kt.z6.Left,!1),vn(kt.z6.Right,!1),vn(kt.z6.Bottom,!1)),lt(kt.s_,"Spot",{margin:new kt.Zt(0,0,0,2)},Wi(!0),vn(kt.z6.Top,!0),vn(kt.z6.Left,!0),vn(kt.z6.Right,!0),vn(kt.z6.Bottom,!0)))));const Wt=`{ "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 ar=["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 Zr(hi){return console.log("shapeName:",hi),ar.indexOf(hi)>=0}var Mn=new kt.YI(rn.current,{maxSelectionCount:1,linkTemplate:lt(kt.rU,{locationSpot:kt.z6.Center,selectionAdornmentTemplate:lt(kt.uz,"Link",{locationSpot:kt.z6.Center},lt(kt.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),lt(kt.bn,{toArrow:"Standard",stroke:null}))},{routing:kt.rU.AvoidsNodes,curve:kt.rU.JumpOver,corner:5,toShortLength:4},new kt.KX("points"),lt(kt.bn,{isPanelMain:!0,strokeWidth:2}),lt(kt.bn,{toArrow:"Standard",stroke:null})),model:new kt.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...kt.bn.getFigureGenerators().toArray().map(hi=>({text:"\u672A\u547D\u540D",size:"100 100",figure:hi.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return zt.current.addDiagramListener("TextEdited",function(hi){var Pi;const Li=hi.subject.part;var Ri=(Pi=document.activeElement)==null?void 0:Pi.value;typeof Ri=="string"&&Ri.trim()===""&&zt.current.model.commit(function(sr){sr.set(Li.data,"text","\u672A\u547D\u540D"),zt.current.commandHandler.stopCommand()},"increment")}),Mn.nodeTemplate=lt(kt.NB,"Auto",{locationSpot:kt.z6.Center},new kt.KX("location","location",kt.E9.parse).makeTwoWay(kt.E9.stringify),lt(kt.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 kt.KX("stroke").makeTwoWay(),new kt.KX("fill").makeTwoWay(),new kt.KX("figure")),lt(kt.al,{margin:new kt.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new kt.$u(16,16),maxSize:new kt.$u(10,NaN),textAlign:"center",editable:!0},new kt.KX("key").makeTwoWay())),setTimeout(()=>{zt.current.grid=lt(kt.s_,"Grid",lt(kt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),lt(kt.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 Yi=()=>ut(this,null,function*(){var lt,Ut=zt.current.makeImage();const oi=yield(0,xe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Ut.src,file_data:JSON.stringify({login:(lt=(0,Me.eY)())==null?void 0:lt.login,data:JSON.parse(zt.current.model.toJson())})}});en({src:oi.url})});return(0,le.useEffect)(()=>(setTimeout(()=>{Fi()},500),ji(ei+1),()=>{zt.current=null}),[]),Ce.createElement("div",{ref:Bn,className:"body-overflow-initial"},Ce.createElement(an.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!ei,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ce.createElement(ln.Z,null,Ce.createElement(ze.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ce.createElement(ze.Z,{onClick:()=>{var lt,Ut,oi=zt.current.selection.first();if(mn.current=!mn.current,document.activeElement&&oi){let gi=(Ut=(lt=document.activeElement)==null?void 0:lt.value)==null?void 0:Ut.trim();typeof gi=="string"&&zt.current.model.commit(function(jt){jt.set(oi.data,"text",gi||"\u672A\u547D\u540D"),zt.current.commandHandler.stopCommand()},"increment")}ji(ei+1)}},Ce.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Kt},Ce.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:mn.current?"none":"block"},className:Te.flowChartWrp},Ce.createElement("div",{style:{display:"flex",height:"100%"}},Ce.createElement("div",{style:{width:"300px",height:"100%"}},Ce.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Ce.createElement("div",{style:{height:"calc(100% - 50px)"},className:Te.myPaletteDiv,ref:rn})),Ce.createElement("div",{style:{flex:1,position:"relative"}},Ce.createElement("div",{ref:on,style:{height:"80vh"}}))),Ce.createElement("div",{className:"tr"},Ce.createElement(at.ZP,{size:"large",onClick:Yi,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Mt=Lt,Yt=de(47889),Vt=de(71051);const Gt=Yt.ZP.Group,gn={margin:"0 8px"};var qt=({callback:Kt,onCancel:en})=>{function zt(on){Kt(on)}return le.createElement(ht.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:zt},le.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},le.createElement("span",{style:gn},"\u5355\u5143\u683C\u6570\uFF1A"),le.createElement("span",{style:gn},"\u884C\u6570"),le.createElement(ht.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},le.createElement(Vt.Z,null)),le.createElement("span",{style:gn},"\u5217\u6570"),le.createElement(ht.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},le.createElement(Vt.Z,null))),le.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},le.createElement("span",{style:gn},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),le.createElement(ht.default.Item,{name:"align"},le.createElement(Gt,null,le.createElement(Yt.ZP,{value:"default"},le.createElement("i",{className:"fa fa-align-justify"})),le.createElement(Yt.ZP,{value:"left"},le.createElement("i",{className:"fa fa-align-left"})),le.createElement(Yt.ZP,{value:"center"},le.createElement("i",{className:"fa fa-align-center"})),le.createElement(Yt.ZP,{value:"right"},le.createElement("i",{className:"fa fa-align-right"}))))),le.createElement("div",{className:"flex-container flex-end"},le.createElement(at.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),le.createElement(at.ZP,{type:"ghost",onClick:en},"\u53D6\u6D88")))},fn=de(71411),sn=de(43001),_t=de.n(sn),dn=(0,le.forwardRef)(({use3d:Kt,width:en,height:zt,callback:on,showSaveButton:rn},mn)=>{const Bn=(0,le.useRef)(),ei=(0,le.useRef)(),[ji,Fi]=(0,le.useState)(!1),Yi=(0,le.useRef)({id:Bn,appName:"graphing",width:en||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,le.useEffect)(()=>{ei.current=new(_t())(Yi.current,!0),window.onload=function(){ei.current.inject("applet_container")}},[]);const lt=()=>{var Ut=window.ggbApplet.getPNGBase64(1,!0,72);return on&&on(Ut),Ut};return(0,le.useEffect)(()=>{Yi.current.appName=ji?"3D":"graphing",ei.current.inject("applet_container")},[ji]),(0,le.useEffect)(()=>{Fi(Kt)},[Kt]),(0,le.useImperativeHandle)(mn,()=>({getImgData:lt})),le.createElement(le.Fragment,null,le.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Bn}),le.createElement(ln.Z,{align:"middle"},le.createElement(ze.Z,{flex:1},le.createElement(fn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:ji,onChange:Ut=>Fi(Ut)})),le.createElement(ze.Z,null,le.createElement(at.ZP,{size:"large",onClick:lt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Sn=de(76562),nn=de(6767);const si="link",Fn="upload-image",yt="add-flowchart",kn="draw-image",Cn="add-flowchart",Ht="code-block",di="add-table",zi="------------",Ni={default:zi,left:`:${zi}`,center:`:${zi}:`,right:`${zi}:`};var Ln=de(37808);function rr(){}let Hi=0;const ui=1e4,wi="\u2581",Di="@\u2581\u2581@",ke="@\u2581@",mi=`
|
|
|
**\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`,ki=["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 Yn(Kt){return/^\d+$/.test(Kt)?`${Kt}px`:Kt}const Ai=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",xi={[Ai+"-B"]:"bold",[Ai+"-I"]:"italic"},hr={[si]:"\u6DFB\u52A0\u94FE\u63A5",[Ht]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Fn]:"\u6DFB\u52A0\u56FE\u7247",[kn]:"\u6DFB\u52A0\u753B\u56FE",[yt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[di]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var er=({defaultValue:Kt="",onChange:en,width:zt="100%",height:on=400,miniToolbar:rn=!1,isFocus:mn=!1,watch:Bn,insertTemp:ei,mode:ji="markdown",id:Fi="markdown-editor-id",showResizeBar:Yi=!1,noStorage:lt=!1,showNullButton:Ut=!1,showNullProgramButton:oi=!1,hidetoolBar:gi=!1,fullScreen:jt=!1,onBlur:Vn,onCMBeforeChange:ni,onFullScreen:Zt,className:je="",disablePaste:ci=!1,disabled:pi=!1,disabledFill:bn=!1,placeholder:Ki="",values:Ui="",extraUse:Wi})=>{const[vn,Wt]=(0,le.useState)(null),[ar,Zr]=(0,le.useState)(Kt),[Mn,hi]=(0,le.useState)(Bn),[Pi,Li]=(0,le.useState)(jt),[Ri,sr]=(0,le.useState)(""),[gr,Tr]=(0,le.useState)(0),[Ar,Rr]=(0,le.useState)(on),[Un,pr]=(0,le.useState)(!1),[Dn,Lr]=(0,le.useState)(0),[ro,Ir]=(0,le.useState)(0),Vr=(0,le.useRef)(),Mr=(0,le.useRef)(),Sr=(0,le.useRef)(),Qr=(0,le.useRef)();(0,le.useEffect)(()=>{const nr=window.scrollY||window.pageYOffset;Zr(Ui),vn==null||vn.setValue(Ui),window.scrollTo(0,nr)},[Ui]),(0,le.useEffect)(()=>{Zt==null||Zt(Pi)},[Pi]),(0,le.useEffect)(()=>{if(Vr.current){let nr=function(ti,lr){var Gr;if(ci){lr.preventDefault();return}const Lo=lr.clipboardData;if(Lo){const ao=Lo.types.toString(),Zo=Lo.items;if(ao==="Files"||Lo.types.indexOf("Files")>-1){if(lr.preventDefault(),ji=="stex")return;try{let Xo=Zo[1];((Gr=Zo[0])==null?void 0:Gr.kind)==="file"&&(Xo=Zo[0]);const Go=Xo.getAsFile(),Jo=Go.name.split(".").pop();(0,Pt.I)(Go,Yo=>{var ra,pn,wa;Yo.id?((ra=Go==null?void 0:Go.type)==null?void 0:ra.indexOf("image"))>-1?Qi.replaceSelection(`<img width="100%" src="/api/attachments/${Yo.id}?type=${Yo.content_type})" alt="" />`):((pn=Go==null?void 0:Go.type)==null?void 0:pn.indexOf("video"))>-1?Qi.replaceSelection(`<video width="100%" controls src="/api/attachments/${Yo.id}"></video>`):((wa=Go==null?void 0:Go.type)==null?void 0:wa.indexOf("pdf"))>-1?Qi.replaceSelection(`<a href="/api/attachments/${Yo.id}?type=${Go.type}&disposition=inline" target="_blank">${Go.name}</a>`):ki.includes(Jo)?Qi.replaceSelection(`<a href="/api/attachments/${Yo.id}?type=office&disposition=inline" target="_blank">${Go.name}</a>`):Qi.replaceSelection(`[${Go.name}](/api/attachments/${Yo.id}?type=${Yo.content_type})`):(Yo==null?void 0:Yo.status)===401&&(document.location.href="/user/login")})}catch(Xo){nn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Qi=De().fromTextArea(Vr.current,{mode:ji,lineNumbers:!rn,lineWrapping:!0,value:Kt,autoCloseTags:!0,autoCloseBrackets:!0});return Qi.on("keyup",function(ti,lr){lr.keyCode===8&&(ti.getValue()==""?Qi.setOption("placeholder",Ki):Qi.setOption("placeholder",null))}),Qi.on("keydown",function(ti,lr){if(lr.keyCode===8){var Gr=qr(ti);Gr&&lr.preventDefault()}}),mn&&Qi.focus(),Qi.on("paste",nr),pi&&Qi.on("beforeChange",function(ti,lr){(lr.origin==="paste"||lr.origin==="+input")&&lr.cancel()}),Wt(Qi),()=>{Qi.off("paste",nr)}}},[]);const Ro=(0,le.useCallback)(()=>{if(Mr.current)try{}catch(nr){console.log(nr,"---- to set md editor body height")}},[Ar,Mr,Pi]);(0,le.useEffect)(()=>{function nr(){let Qi=new Le.Z(ti=>{for(let lr of ti)(lr.target.offsetHeight>0||lr.target.offsetWidth>0)&&(Ro(),vn.setSize("100%","100%"),vn.refresh())});return Qi.observe(Vr.current.parentElement),Qi}if(vn){const Qi=nr();return()=>{var ti,lr;(ti=Vr.current)!=null&&ti.parentElement&&Qi.unobserve((lr=Vr.current)==null?void 0:lr.parentElement)}}},[vn,Ro]),(0,le.useEffect)(()=>{if(vn){let nr=[];for(const[Qi,ti]of Object.entries(xi)){let lr={[Qi]:()=>{vi(ti)}};nr.push(lr),vn.addKeyMap(lr)}return()=>{for(let Qi of nr)vn.removeKeyMap(Qi)}}},[vn]),(0,le.useEffect)(()=>{jt!==Pi&&Li(jt)},[jt]),(0,Ln.Z)(()=>{if(!lt&&gr>0){let nr=new Date().getTime(),Qi=window.sessionStorage.getItem(Fi);nr>=gr+ui&&(!Qi||Qi!==ar)&&(window.sessionStorage.setItem(Fi,ar),pr(!0))}},ui),(0,le.useEffect)(()=>{hi(Bn)},[vn,Bn]),(0,le.useEffect)(()=>{vn&&mn&&vn.focus()},[vn,mn]),(0,le.useEffect)(()=>{if(Mn&&vn){let nr=function(ti){let lr=ti.target;if(Qr.current){let Gr=lr.scrollTop/lr.scrollHeight;Qr.current.scrollTop=Qr.current.scrollHeight*Gr}};const Qi=vn.getScrollerElement();return Qi.addEventListener("scroll",nr),()=>{Qi.removeEventListener("scroll",nr)}}},[vn,Mn]),(0,le.useEffect)(()=>{if(vn&&ni){let nr=function(Qi,ti){ni(Qi,ti)};return vn.on("beforeChange",nr),()=>{vn.off("beforeChange",nr)}}},[vn,ni]),(0,le.useEffect)(()=>{if(vn&&Vn){let nr=function(){Vn(vn.getValue())};return vn.on("blur",nr),()=>{vn.off("blur",nr)}}},[vn,Vn]);function qr(nr,Qi){var ti=nr.getDoc(),lr=ti.getCursor(),Gr=ti.getLine(lr.line),Lo=Gr.charAt(lr.ch-1),ao=Gr.lastIndexOf("@\u2581@",lr.ch),Zo=Gr.lastIndexOf("@\u2581\u2581@",lr.ch),Xo=ao>Zo?ao:Zo,Go=ao>Zo?3:4;if(Di.indexOf(Lo)===-1)return null;if(console.log("change1:",Qi,nr,Gr,lr,Xo,ao,Zo,Lo),Xo>=0&&lr.ch-Xo<5){var Jo=Xo+Go;return ti.replaceRange("",{line:lr.line,ch:Xo},{line:lr.line,ch:Jo}),{line:lr.line,ch:Jo}}return null}(0,le.useEffect)(()=>{if(vn){let nr=function(Qi,ti){const lr=Qi.getValue();Zr(lr),Tr(new Date().getTime()),Qi.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),en&&(oi?en(lr,tr(lr)):en(lr))};return vn.on("change",nr),()=>{vn.off("change",nr)}}},[vn,en]),(0,le.useEffect)(()=>{if(vn)if(Kt==null)vn.setValue(""),Zr("");else{const nr=window.scrollY||window.pageYOffset;Kt!==vn.getValue()&&(vn.setValue(Kt),Zr(Kt),vn.setCursor(pi?1:vn.lineCount(),0),window.scrollTo(0,nr))}},[vn,Kt]);const vi=(0,le.useCallback)(nr=>{const Qi=vn.getCursor(),ti=vn.getSelection();let lr=ti.split(`
|
|
|
`);switch(nr){case"bold":return vn.replaceSelection("**"+ti+"**"),ti===""&&vn.setCursor(Qi.line,Qi.ch+2),vn.focus();case"italic":return vn.replaceSelection("*"+ti+"*"),ti===""&&vn.setCursor(Qi.line,Qi.ch+1),vn.focus();case"code":return vn.replaceSelection("`"+ti+"`"),ti===""&&vn.setCursor(Qi.line,Qi.ch+1),vn.focus();case"inline-latex":return sr("inline-latex"),vn.focus();case"latex":return vn.replaceSelection("```latex\n"+ti+"\n```"),vn.setCursor(Qi.line+1,ti.length+1),vn.focus();case"line-break":return vn.replaceSelection(`<br/>
|
|
|
`),vn.focus();case"list-ul":return ti===""?vn.replaceSelection("- "+ti):vn.replaceSelection(lr.map(Gr=>Gr===""?"":`- ${Gr}`).join(`
|
|
|
`)),vn.focus();case"list-ol":return ti===""?vn.replaceSelection("1. "+ti):vn.replaceSelection(lr.map((Gr,Lo)=>Gr===""?"":`${Lo+1}. ${Gr}`).join(`
|
|
|
`)),vn.focus();case"add-null-ch":return ti===""&&vn.setCursor(Qi.line,Qi.ch),vn.replaceSelection(wi),vn.focus();case"add-signal":return ti===""&&vn.setCursor(Qi.line,Qi.ch),vn.replaceSelection(ke),vn.focus();case"add-multiple":return ti===""&&vn.setCursor(Qi.line,Qi.ch),vn.replaceSelection(Di),vn.focus();case"inster-template-1":return ti===""&&vn.setCursor(Qi.line,Qi.ch),vn.replaceSelection(mi),vn.focus();case"eraser":return vn.setValue(""),vn.focus();case"trigger-watch":return hi(!Mn),vn.focus();case"trigger-full-screen":return Li(!Pi),vn.focus();case si:sr(si);return;case Ht:sr(Ht);return;case Fn:sr(Fn);return;case kn:sr(kn);return;case"maths-latex":sr("maths-latex");return;case yt:sr(yt);return;case di:sr(di);return;default:throw new Error}},[vn,Mn,Pi]),dt=(0,le.useCallback)((nr,Qi)=>{var ti,lr,Gr,Lo,ao,Zo;switch(sr(""),Ri){case si:const{title:ra,link:pn}=nr;return vn.replaceSelection(`[${ra}](${pn})`),vn.focus();case Ht:const{language:wa,content:qs}=nr;return vn.replaceSelection(["```"+wa,qs,"```"].join(`
|
|
|
`)),vn.focus();case"maths-latex":for(var Xo=atob(nr),Go=new Uint8Array(Xo.length),Jo=0;Jo<Xo.length;Jo++)Go[Jo]=Xo.charCodeAt(Jo);var Yo=new Blob([Go],{type:"image/png"});(0,Pt.I)(Yo,Ua=>{Ua.id?vn.replaceSelection(``):(Ua==null?void 0:Ua.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":vn.replaceSelection("`$$"+nr+"$$`");break;case Fn:case kn:case Cn:const{src:za,alt:$a}=nr,Qo=Qi,ms=(Gr=(lr=(ti=Qo==null?void 0:Qo.name)==null?void 0:ti.split("."))==null?void 0:lr.pop)==null?void 0:Gr.call(lr);return((Lo=Qo==null?void 0:Qo.type)==null?void 0:Lo.indexOf("image"))>-1||!(Qo!=null&&Qo.type)?Qo!=null&&Qo.align||Qo!=null&&Qo.width?vn.replaceSelection(`<p style="text-align:${Qo.align||"initial"}"><img width="${Qo.width?Qo.width+"%":"initial"}" src="${za}" alt="${$a||""}" /></p>`):vn.replaceSelection(`<img width="100%" src="${za}" alt="${$a||""}" />`):((ao=Qo==null?void 0:Qo.type)==null?void 0:ao.indexOf("video"))>-1?vn.replaceSelection(`<video width="100%" controls src="${za}"></video>`):((Zo=Qo==null?void 0:Qo.type)==null?void 0:Zo.indexOf("pdf"))>-1?vn.replaceSelection(`<a href="${za}?type=${Qo.type}&disposition=inline" target="_blank">${Qo.name}</a>`):ki.includes(ms)?vn.replaceSelection(`<a href="${za}?type=office&disposition=inline" target="_blank">${Qo.name}</a>`):vn.replaceSelection(`[${Qo.name}](${za})`),vn.focus();case di:const{row:Nn,col:po,align:ca}=nr;let ul=`
|
|
|
`;for(let Ua=0;Ua<Nn;Ua++){let Zl=[],ws=[];for(let mr=0;mr<po;mr++)Ua===1&&ws.push(Ni[ca]),Zl.push(" ");Ua===1&&(ul+=`| ${ws.join(" | ")} |
|
|
|
`),ul+=`| ${Zl.join(po===1?"":" | ")} |
|
|
|
`}return vn.replaceSelection(ul+`
|
|
|
`),vn.focus();default:throw new Error}},[vn,Ri]),ho=(0,le.useMemo)(()=>{switch(Ri){case si:return le.createElement(cn,{callback:dt,onCancel:yo});case Ht:return le.createElement(An.Z,{callback:dt,onCancel:yo});case Fn:return le.createElement(Pt.Z,{callback:dt,onCancel:yo});case yt:return le.createElement(Mt,{callback:dt,onCancel:yo});case di:return le.createElement(qt,{callback:dt,onCancel:yo});case"maths-latex":return le.createElement(dn,{showSaveButton:!0,callback:dt});case"inline-latex":return le.createElement(Sn.Z,{showSaveButton:!0,callback:dt});default:return null}},[Ri]);function yo(){sr("")}(0,le.useEffect)(()=>{if(Sr.current){let nr=function(ao){Gr=!0,Lo=ao.pageY},Qi=function(){Gr=!1},ti=function(ao){if(Gr){let Zo=ao.pageY-Lo;Zo<0&&(Zo=0),Zo>300&&(Zo=300);let Xo=on+Zo+"px";Rr(Xo)}},lr=Sr.current,Gr=!1,Lo=0;return lr.addEventListener("mousedown",nr),document.addEventListener("mousemove",ti),document.addEventListener("mouseup",Qi),()=>{lr.removeEventListener("mousedown",nr),document.removeEventListener("mousemove",ti),document.removeEventListener("mouseup",Qi)}}},[vn,Sr]),(0,le.useEffect)(()=>{Rr(on)},[on]);const ua=Yn(zt),Vo=Yn(Ar),Kr={width:ua,height:Vo},Zi=(0,le.useMemo)(()=>{if(gr){let nr=new Date(gr),Qi=nr.getHours(),ti=nr.getMinutes(),lr=nr.getSeconds();return Qi=Qi<10?"0"+Qi:Qi,ti=ti<10?"0"+ti:ti,lr=lr<10?"0"+lr:lr,`${Qi}:${ti}:${lr}`}return 0},[gr]),tr=nr=>{const Qi=[];if(oi){let ti=-1;nr=nr.replace(/(@▁▁@|@▁@)/g,function(lr,Gr,Lo){Qi.push({multiLine:lr!==ke})})}return Qi};function kr(){window.sessionStorage.removeItem(Fi),pr(!1),Tr(0)}function Ji(){pr(!1),Tr(0),vn.setValue(window.sessionStorage.getItem(Fi))}(0,le.useEffect)(()=>{hr[Ri]&&Ri!==kn&&Ri!==yt&&setTimeout(()=>{const nr=document.getElementsByClassName("markdown-popup-form")[0],Qi=window.innerWidth/2-nr.offsetWidth/2,ti=window.innerHeight/2-nr.offsetHeight/2;Lr(Qi),Ir(ti)},0)},[Ri]);const Cr=nr=>{nr.preventDefault();const Qi=nr.clientX-Dn,ti=nr.clientY-ro;document.body.onmousemove=lr=>{let Gr=lr.clientX-Qi,Lo=lr.clientY-ti;const ao=document.getElementsByClassName("markdown-popup-form")[0],Zo=window.innerWidth-ao.offsetWidth,Xo=window.innerHeight-ao.offsetHeight;Gr=Math.max(0,Math.min(Gr,Zo)),Lo=Math.max(0,Math.min(Lo,Xo)),uo(lr.clientX,lr.clientY,Qi,ti)&&(Lr(Gr),Ir(Lo))},document.body.onmouseup=function(){document.body.onmousemove=null}},uo=(nr,Qi,ti,lr)=>{const Gr=document.body.clientHeight,Lo=document.body.clientWidth;return nr<20&&ti>nr||nr>Lo-20&&ti<nr||Qi<20&&lr>Qi||Qi>Gr-20&&lr<Qi?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return le.createElement(le.Fragment,null,le.createElement("div",{className:"markdown-editor-wrapper",ref:Mr},le.createElement("div",{className:`markdown-editor-container ${je} ${Mn?"on-preview":""} ${rn?"mini":""} ${Pi?"full-screen":""}`,style:Kr},le.createElement(rt,{insertTemp:ei,watch:Mn,fullScreen:Pi,showNullButton:Ut,showNullProgramButton:oi,onActionCallback:vi,hidetoolBar:gi,extraUse:Wi}),le.createElement("div",{className:"markdown-editor-body"},le.createElement("div",{className:"codemirror-container"},le.createElement("textarea",{ref:Vr,placeholder:Ki})),Mn?le.createElement("div",{ref:Qr,className:"preview-container"},ji==="stex"&&le.createElement(st,{value:ar}),ji!=="stex"&&le.createElement(mt.Z,{disabledFill:bn,showProgramFill:oi,value:ar})):null))),Yi?le.createElement("a",{ref:Sr,className:"editor-resize"}):null,Ri===kn&&le.createElement(ii,{callback:dt,onCancel:yo}),Ri===yt&&le.createElement(Mt,{callback:dt,onCancel:yo}),le.createElement(ot.Z,null,hr[Ri]&&Ri!==kn&&Ri!==yt?le.createElement(an.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Dn,top:ro},title:le.createElement("div",{style:{cursor:"move"},onMouseDown:Cr},hr[Ri]),open:!0,onCancel:yo,footer:null,destroyOnClose:!0,width:Ri===yt?"1200px":null,height:Ri===yt?"80vh":null,className:"markdown-popup-form"},ho):null))}},17077:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return Be},I:function(){return rt}});var le=de(28284),Ie=de(6767),De=de(37568),Le=de(77736),Ye=de(71051),Re=de(47889),Ve=de(99571),Je=de(46699),Xe=de(59301),qe=de(59301),mt=Object.defineProperty,st=Object.defineProperties,Nt=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,he=(ot,ht,bt)=>ht in ot?mt(ot,ht,{enumerable:!0,configurable:!0,writable:!0,value:bt}):ot[ht]=bt,se=(ot,ht)=>{for(var bt in ht||(ht={}))te.call(ht,bt)&&he(ot,bt,ht[bt]);if(_e)for(var bt of _e(ht))ne.call(ht,bt)&&he(ot,bt,ht[bt]);return ot},ge=(ot,ht)=>st(ot,Nt(ht));const{useForm:Se}=le.default,Ae={width:280,marginRight:10},Oe={labelCol:{span:5},wrapperCol:{span:19}};var Be=({callback:ot,onCancel:ht})=>{const[bt]=Se();let at=(0,Xe.useRef)();function At(Tn){at.current.width=bt.getFieldValue("width"),at.current.align=bt.getFieldValue("align"),ot(Tn,at.current)}function It(Tn,yn){if(Tn.status===-1){Ie.ZP.error(Tn.message);return}bt.setFieldsValue({src:`/api/attachments/${Tn.id}`,type:yn.type})}function $t(Tn){let yn=Tn.target.files[0];at.current=yn,rt(yn,It)}return qe.createElement(le.default,ge(se({form:bt},Oe),{className:"upload-image-panel",onFinish:At,style:{width:470,overflow:"hidden"}}),qe.createElement(le.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},qe.createElement("div",{className:"flex-container"},qe.createElement(le.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},qe.createElement(De.default,{style:Ae})),qe.createElement(Ke,{onFileChange:$t}))),qe.createElement(le.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},qe.createElement(De.default,{style:{width:264}})),qe.createElement(le.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},qe.createElement(Le.Z,null,qe.createElement(le.default.Item,{name:"width",style:{margin:0}},qe.createElement(Ye.Z,{style:{width:264}})),qe.createElement("span",{className:"ml8"},"%"))),qe.createElement(le.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},qe.createElement(Re.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"}]})),qe.createElement("aside",null,qe.createElement(le.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},qe.createElement(Ve.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),qe.createElement(Ve.ZP,{type:"default",onClick:ht},"\u53D6\u6D88"))))};function Ke({onFileChange:ot}){return qe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",qe.createElement("input",{type:"file",onChange:ot}))}function rt(ot,ht){if(!ot)throw new String("\u6CA1\u6709\u6587\u4EF6");let bt=new FormData;bt.append("editormd-image-file",ot),bt.append("file_param_name","editormd-image-file"),bt.append("byxhr","true");var at=new window.XMLHttpRequest;at.withCredentials=!0,at.addEventListener("load",function(At){ht(JSON.parse(At.target.responseText),ot)},!1),at.addEventListener("error",function(At){console.error(At)},!1),at.open("POST",`${Je.KI}/api/attachments.json`),at.send(bt)}},91558:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return De}});var le=de(59301),Ie=de(4676);class De extends le.Component{constructor(Ye){super(Ye);const Re=window.document;this.node=Re.createElement("div"),Re.body.appendChild(this.node)}render(){const{children:Ye}=this.props;return(0,Ie.createPortal)(Ye,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},75975:function(Ge,be,de){"use strict";de.d(be,{SV:function(){return Lt},ZP:function(){return ut}});var le=de(59301),Ie=de(76374);const De={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"]},Le={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"]},Ye={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(`
|
|
|
`)}]},Re={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(`
|
|
|
`)}]},Ve={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 Je=de(53184),Xe=de.n(Je),qe=Object.defineProperty,mt=Object.defineProperties,st=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ne=(Mt,Yt,Vt)=>Yt in Mt?qe(Mt,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Vt}):Mt[Yt]=Vt,he=(Mt,Yt)=>{for(var Vt in Yt||(Yt={}))_e.call(Yt,Vt)&&ne(Mt,Vt,Yt[Vt]);if(Nt)for(var Vt of Nt(Yt))te.call(Yt,Vt)&&ne(Mt,Vt,Yt[Vt]);return Mt},se=(Mt,Yt)=>mt(Mt,st(Yt)),ge=(Mt,Yt,Vt)=>new Promise((Gt,gn)=>{var qt=_t=>{try{sn(Vt.next(_t))}catch(wn){gn(wn)}},fn=_t=>{try{sn(Vt.throw(_t))}catch(wn){gn(wn)}},sn=_t=>_t.done?Gt(_t.value):Promise.resolve(_t.value).then(qt,fn);sn((Vt=Vt.apply(Mt,Yt)).next())});const Se={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"]}},Ae=(Mt,Yt)=>Yt.map(Vt=>({label:Vt,kind:Mt.languages.CompletionItemKind.Keyword,insertText:Vt})),Oe=Mt=>Object.keys(Se.tables).map(Yt=>({label:Yt,kind:Mt.languages.CompletionItemKind.Variable,insertText:Yt})),Be=(Mt,Yt)=>{const Vt=Se.tables[Mt];return Vt?Vt.map(Gt=>({label:Gt,kind:Yt.languages.CompletionItemKind.Field,insertText:Gt})):[]};function Ke(Mt,Yt,Vt,Gt,gn){let qt=Yt.getWordUntilPosition(Vt),fn={startLineNumber:Vt.lineNumber,endLineNumber:Vt.lineNumber,startColumn:qt.startColumn,endColumn:qt.endColumn},sn=Gt.map(_t=>({label:_t,kind:Mt.languages.CompletionItemKind.Keyword,insertText:_t,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:fn}));return gn.map(_t=>{sn.push(se(he({},_t),{range:fn}))}),sn}var rt=Mt=>{Se.languages.map(gn=>(Mt.languages.registerDocumentFormattingEditProvider(gn,{provideDocumentFormattingEdits(qt,fn,sn){return ge(this,null,function*(){const _t=Xe()(qt.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:qt.getFullModelRange(),text:_t}]})}}),gn));const Yt=Ye.quickKey.map(gn=>({label:gn.label,kind:Mt.languages.CompletionItemKind.Method,insertText:gn.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Vt=Re.quickKey.map(gn=>({label:gn.label,kind:Mt.languages.CompletionItemKind.Method,insertText:gn.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Gt=Le.quickKey.map(gn=>({label:gn.label,kind:Mt.languages.CompletionItemKind.Method,insertText:gn.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Mt.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(gn,qt){var fn=gn.getWordUntilPosition(qt),sn={startLineNumber:qt.lineNumber,endLineNumber:qt.lineNumber,startColumn:fn.startColumn,endColumn:fn.endColumn},_t=gn.getLineContent(qt.lineNumber).substring(fn.startColumn-2,fn.endColumn);return{suggestions:[...Ye.keywords.map(wn=>({label:wn,kind:Mt.languages.CompletionItemKind.Function,documentation:wn,insertText:wn,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:sn})),...Ye.quickKey.map(wn=>({label:wn.label,kind:Mt.languages.CompletionItemKind.Function,documentation:wn.content,insertText:_t.startsWith("#")?wn.content.replace(/#/,""):wn.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:sn}))]}}}),Mt.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(gn,qt){var fn=gn.getWordUntilPosition(qt),sn={startLineNumber:qt.lineNumber,endLineNumber:qt.lineNumber,startColumn:fn.startColumn,endColumn:fn.endColumn};return{suggestions:[...De.keywords.map(_t=>({label:_t,kind:Mt.languages.CompletionItemKind.Function,documentation:_t,insertText:_t,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:sn}))]}}}),Mt.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(gn,qt){var fn=gn.getWordUntilPosition(qt),sn={startLineNumber:qt.lineNumber,endLineNumber:qt.lineNumber,startColumn:fn.startColumn,endColumn:fn.endColumn},_t=gn.getLineContent(qt.lineNumber).substring(fn.startColumn-2,fn.endColumn);return{suggestions:[...Le.keywords.map(wn=>({label:wn,kind:Mt.languages.CompletionItemKind.Function,documentation:wn,insertText:wn,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:sn})),...Le.quickKey.map(wn=>({label:wn.label,kind:Mt.languages.CompletionItemKind.Function,documentation:wn.content,insertText:_t.startsWith("#")?wn.content.replace(/#/,""):wn.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:sn}))]}}}),Mt.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(gn,qt){var fn=gn.getWordUntilPosition(qt),sn={startLineNumber:qt.lineNumber,endLineNumber:qt.lineNumber,startColumn:fn.startColumn,endColumn:fn.endColumn},_t=gn.getLineContent(qt.lineNumber).substring(fn.startColumn-2,fn.endColumn);return{suggestions:[...Ve.keywords.map(wn=>({label:wn,kind:Mt.languages.CompletionItemKind.Function,documentation:wn,insertText:wn,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:sn})),...Ve.quickKey.map(wn=>({label:wn.label,kind:Mt.languages.CompletionItemKind.Function,documentation:wn.content,insertText:_t.startsWith("#")?wn.content.replace(/#/,""):wn.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:sn}))]}}}),Mt.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(gn,qt){var fn=gn.getWordUntilPosition(qt),sn={startLineNumber:qt.lineNumber,endLineNumber:qt.lineNumber,startColumn:fn.startColumn,endColumn:fn.endColumn},_t=gn.getLineContent(qt.lineNumber).substring(fn.startColumn-2,fn.endColumn);return{suggestions:[...Re.keywords.map(wn=>({label:wn,kind:Mt.languages.CompletionItemKind.Function,documentation:wn,insertText:wn,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:sn})),...Re.quickKey.map(wn=>({label:wn.label,kind:Mt.languages.CompletionItemKind.Function,documentation:wn.content,insertText:_t.startsWith("#")?wn.content.replace(/#/,""):wn.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:sn}))]}}})};const ot="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var ht=Object.defineProperty,bt=(Mt,Yt,Vt)=>Yt in Mt?ht(Mt,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Vt}):Mt[Yt]=Vt,at=(Mt,Yt,Vt)=>bt(Mt,typeof Yt!="symbol"?Yt+"":Yt,Vt);const At=class AE{constructor(Yt,Vt,Gt){this.placeholder=Yt,this.editor=Vt,this.monaco=Gt,Vt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return AE.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)}};at(At,"ID","editor.widget.placeholderHint");var $t=At,Tn=de(96236),yn=de(6767),un=de(25399),On=de(89392),xt=de(49535),ct=de(56102),it=Object.defineProperty,cn=Object.defineProperties,An=Object.getOwnPropertyDescriptors,Pt=Object.getOwnPropertySymbols,an=Object.prototype.hasOwnProperty,ln=Object.prototype.propertyIsEnumerable,zn=(Mt,Yt,Vt)=>Yt in Mt?it(Mt,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Vt}):Mt[Yt]=Vt,En=(Mt,Yt)=>{for(var Vt in Yt||(Yt={}))an.call(Yt,Vt)&&zn(Mt,Vt,Yt[Vt]);if(Pt)for(var Vt of Pt(Yt))ln.call(Yt,Vt)&&zn(Mt,Vt,Yt[Vt]);return Mt},ii=(Mt,Yt)=>cn(Mt,An(Yt)),kt=(Mt,Yt)=>{var Vt={};for(var Gt in Mt)an.call(Mt,Gt)&&Yt.indexOf(Gt)<0&&(Vt[Gt]=Mt[Gt]);if(Mt!=null&&Pt)for(var Gt of Pt(Mt))Yt.indexOf(Gt)<0&&ln.call(Mt,Gt)&&(Vt[Gt]=Mt[Gt]);return Vt},Kn=(Mt,Yt,Vt)=>new Promise((Gt,gn)=>{var qt=_t=>{try{sn(Vt.next(_t))}catch(wn){gn(wn)}},fn=_t=>{try{sn(Vt.throw(_t))}catch(wn){gn(wn)}},sn=_t=>_t.done?Gt(_t.value):Promise.resolve(_t.value).then(qt,fn);sn((Vt=Vt.apply(Mt,Yt)).next())});function yi(Mt){return/^\d+$/.test(Mt)?`${Mt}px`:Mt}function et(){}let ze=!1;const xe={"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 Te(Mt=[]){let Yt=Mt;if(Array.isArray(Mt)){for(let Vt=0;Vt<Mt.length;Vt++){let Gt=xe[Mt[Vt]];if(Gt)return Gt}return Yt[0]}return xe[Yt]||Yt}let Me=null;const Ce=()=>Kn(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Mt){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Mt)}});var ut=Mt=>{var Yt=Mt,{width:Vt="100%",height:Gt="100%",value:gn,language:qt="javascript",style:fn={},options:sn={},overrideServices:_t={},theme:wn="vs-dark",onEditBlur:dn,isCopy:Sn=!1,onSave:nn,autoHeight:si=!1,forbidCopy:Fn=!1,onChange:yt=et,editorDidMount:kn=et,onFocus:Cn=et,onBreakPoint:Ht=et,breakPointValue:di=[],filename:zi="educoder.txt",errorLine:Ni,errorContent:Ln="",highlightLine:rr,openBreakPoint:Hi=!1,placeholder:ui="",showMiniMap:wi=!0}=Yt,Di=kt(Yt,["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 ke=(0,le.useRef)(),mi=(0,le.useRef)({}),ki=(0,le.useRef)(),Yn=(0,le.useRef)(),fi=(0,le.useRef)([]),Ai=(0,le.useRef)(!1),xi=(0,le.useRef)(),hr=(0,le.useRef)(),er=(0,le.useRef)(!1),[Kt,en]=(0,le.useState)(!1);function zt(){let ni;return ke.current&&(ni=new Ie.Z(Zt=>{for(let je of Zt)(je.target.offsetHeight>0||je.target.offsetWidth>0)&&mi.current.instance.layout()}),ni.observe(ke.current)),ni}function on(){yn.ZP.warning({content:decodeURIComponent(ot),key:"monaco-editor-tip"})}const rn=()=>{let ni=mi.current.instance;if(gn!=null&&ni&&Kt){const Zt=ni.getModel();Zt&&gn!==Zt.getValue()&&(ze=!0,Zt.setValue(gn),ni.layout(),ze=!1)}};(0,le.useEffect)(()=>{const ni=xt.Z.subscribe("formatDocument",Zt=>{var je;let ci=mi.current.instance;(je=ci==null?void 0:ci.getAction)==null||je.call(ci,"editor.action.formatDocument").run()});return window.updateMonacoValue=Zt=>{yt(Zt)},ni},[]),(0,le.useEffect)(()=>{var ni;let Zt=mi.current.instance;Yn.current&&clearTimeout(Yn.current),Yn.current=setTimeout(()=>{rn()},500),gn&&(gn!=null&&gn.length)&&((ni=Zt==null?void 0:Zt.updateOptions)==null||ni.call(Zt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(gn.split(/\r\n|\r|\n/g).length))+3,5)}))},[gn,Kt,mi.current]),(0,le.useEffect)(()=>{if(Ni&&mi.current&&mi.current.instance){let Zt=mi.current.instance;Zt.changeViewZones(function(je){var ci=document.createElement("div");ci.style.padding="10px 20px",ci.style.width="calc(100% - 20px)",ci.className="my-error-line-wrp",ci.innerHTML=Ln,je.addZone({afterLineNumber:Ni||11,heightInLines:3,domNode:ci})});var ni={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}};Zt.addOverlayWidget(ni),Zt.revealPositionInCenter({lineNumber:20,column:1})}},[Ni,mi.current,Kt]);const mn=(ni="",Zt)=>{if(!ni||ni.trim()==="")return!0;const ci=mi.current.instance.getModel().getLineTokens(Zt);let pi=!1;for(let bn=0;bn<2;bn++)ci.getStandardTokenType(bn)===1&&(pi=!0);return pi};(0,le.useEffect)(()=>{var ni;const Zt=(ni=mi.current)==null?void 0:ni.instance;if(Zt&&Kt&&Fn){const je=Zt.onDidBlurEditorWidget(()=>{er.current=!1}),ci=Zt.onDidFocusEditorText(()=>{er.current=!0});return()=>{je.dispose(),ci.dispose()}}},[mi.current,Kt,Fn]),(0,le.useEffect)(()=>{var ni;if((ni=mi.current)!=null&&ni.instance&&Kt&&Hi){let Zt=mi.current.instance,je=Zt.getModel();if(!je)return;(()=>{var hi;let Pi=[],Li=[];const Ri=je.getAllDecorations();for(let gr of Ri)gr.options.className==="highlighted-line"&&(Pi.push((hi=gr==null?void 0:gr.range)==null?void 0:hi.startLineNumber),Li.push(gr==null?void 0:gr.id));if(rr===Pi[0])return;je.deltaDecorations(Li,[]);const sr=je.getLineCount();rr&&rr<=sr&&(Zt.deltaDecorations([],[{range:new Me.Range(rr,1,rr,je.getLineMaxColumn(rr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Zt.revealLineInCenter(rr))})();const pi=(hi=!1)=>{var Pi;let Li=[],Ri=[];const sr=je.getAllDecorations();for(let gr of sr)gr.options.linesDecorationsClassName==="breakpoints-select"&&(Li.push((Pi=gr==null?void 0:gr.range)==null?void 0:Pi.startLineNumber),Ri.push(gr==null?void 0:gr.id));if(hi)return{lines:Li,ids:Ri};Ht(Li)},bn=hi=>Kn(void 0,null,function*(){let Pi={range:new Me.Range(hi,1,hi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield je.deltaDecorations([],[Pi]),pi()}),Ki=hi=>Kn(void 0,null,function*(){let Pi=[];const Li=Zt.getLineDecorations(hi);for(let Ri of Li)Ri.options.linesDecorationsClassName==="breakpoints-select"&&Pi.push(Ri.id);yield je.deltaDecorations(Pi,[]),pi()}),Ui=hi=>{let Pi=Zt.getLineDecorations(hi);for(let Li of Pi)if(Li.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,On.isEqual)(di,pi(!0).lines)){je.deltaDecorations(pi(!0).ids,[]);const hi=di.map(Pi=>({range:new Me.Range(Pi,1,Pi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));je.deltaDecorations([],hi)}const Wi=Zt.onDidChangeModelContent(hi=>{let Pi=Zt.getPosition();if(Pi){let Li=Pi.lineNumber;clearTimeout(hr.current),hr.current=setTimeout(()=>{mn(je.getLineContent(Li),Li)?Ki(Li):Ui(Li)?(Ki(Li),bn(Li)):pi()},100)}}),vn=Zt.onMouseDown(hi=>{var Pi,Li,Ri;if(hi.target.detail&&((Ri=(Li=(Pi=hi.target)==null?void 0:Pi.element)==null?void 0:Li.className)!=null&&Ri.includes("line-numbers"))){let sr=hi.target.position.lineNumber;if(mn(je.getLineContent(sr),sr))return;Ui(sr)?Ki(sr):bn(sr)}}),Wt=hi=>{let Pi={range:new Me.Range(hi,1,hi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};fi.current=Zt.deltaDecorations(fi.current,[Pi])},ar=()=>{fi.current=Zt.deltaDecorations(fi.current,[])},Zr=Zt.onMouseMove(hi=>{var Pi,Li,Ri;if(ar(),hi.target.detail&&((Ri=(Li=(Pi=hi.target)==null?void 0:Pi.element)==null?void 0:Li.className)!=null&&Ri.includes("line-numbers"))){let sr=hi.target.position.lineNumber;if(mn(je.getLineContent(sr),sr))return;Wt(sr)}}),Mn=Zt.onMouseLeave(()=>{ar()});return()=>{Wi.dispose(),vn.dispose(),Zr.dispose(),Mn.dispose()}}},[mi.current,Kt,di,rr,Hi,qt]),(0,le.useEffect)(()=>{var ni;(ni=mi.current)!=null&&ni.instance&&Hi&&mi.current.instance.setPosition({lineNumber:0,column:0})},[rr]);function Bn(){let ni=mi.current.instance;if(ni){const Zt=ni.getSelection(),je=mi.current.pastePos||{},ci=new Me.Range(je.startLineNumber||Zt.endLineNumber,je.startColumn||Zt.endColumn,je.endLineNumber||Zt.endLineNumber,je.endColumn||Zt.endColumn);setTimeout(()=>{ni.executeEdits("",[{range:ci,text:""}])},300)}}function ei(ni){(window.navigator.platform.match("Mac")?ni.metaKey:ni.ctrlKey)&&ni.keyCode==83&&(ni.preventDefault(),nn())}const ji=()=>{if(si&&mi.current.instance){const ni=mi.current.instance.getContentHeight();jt(ni<Gt?Gt:ni)}else jt(Gt)};function Fi(ni){var Zt=document.createEvent("MouseEvents");Zt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),ni.dispatchEvent(Zt)}const Yi=ni=>{if(!er.current)return;const{keyCode:Zt,ctrlKey:je,metaKey:ci,target:pi,type:bn}=ni;return(bn==="paste"||(Zt===67||Zt===86)&&(ci||je))&&pi.nodeName==="TEXTAREA"&&(on(),ni.preventDefault()),!1};function lt(ni,Zt){var je=window.URL||window.webkitURL||window,ci=new Blob([Zt]),pi=document.createElementNS("http://www.w3.org/1999/xhtml","a");pi.href=je.createObjectURL(ci),pi.download=ni,Fi(pi)}(0,le.useEffect)(()=>{ji()},[ji]),(0,le.useEffect)(()=>{ke.current&&!Kt&&Promise.all([de.e(8909),de.e(6656)]).then(de.bind(de,71448)).then(ni=>{try{Me=ni,mi.current.instance=Me.editor.create(ke.current,{value:gn,language:Te(qt),theme:wn,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:wi||!1}},_t);const Zt=mi.current.instance;let pi=[...Tn.BH._menuItems].find(Wi=>Wi[0]._debugName=="EditorContext")[1],bn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Ki=(Wi,vn)=>{var Wt,ar;let Zr=Wi._first;do vn.includes((ar=(Wt=Zr.element)==null?void 0:Wt.command)==null?void 0:ar.id)&&Wi._remove(Zr);while(Zr=Zr.next)};if(kn(Zt,Me),setTimeout(()=>{ji(),mi.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{lt(zi||"educoder.txt",Zt.getValue())}})},500),mi.current.subscription=Zt.onDidChangeModelContent(Wi=>{Ai.current?clearTimeout(xi.current):(ji(),yt(Zt.getValue(),Wi)),xi.current=setTimeout(()=>{Ai.current=!1},500)}),window.Monaco||rt(Me,Te(qt)),Fn&&(Ki(pi,bn),ke.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Yi),window.removeEventListener("paste",Yi),window.addEventListener("keydown",Yi),window.addEventListener("paste",Yi)),window.Monaco=Me,dn&&Zt.onDidBlurEditorWidget(()=>{dn(Zt.getValue())}),Cn&&Zt.onDidFocusEditorText(()=>{Fn&&Ce(),Cn(Zt.getValue())}),Fn){Ce();try{Zt.onDidPaste(Wi=>{const vn=Zt.getSelection(),Wt=mi.current.pastePos||{},ar=new Me.Range(Wt.startLineNumber||vn.endLineNumber,Wt.startColumn||vn.endColumn,Wt.endLineNumber||vn.endLineNumber,Wt.endColumn||vn.endColumn);Zt.executeEdits("",[{range:Wi.range,text:""}])})}catch(Wi){}}let Ui=zt();return ui&&typeof ui=="string"&&new $t(ui,Zt,Me),en(!0),()=>{const Wi=mi.current.instance;Wi.dispose();const vn=Wi.getModel();vn&&vn.dispose(),mi.current.subscription&&mi.current.subscription.dispose(),Ui.unobserve(ke.current)}}catch(Zt){}})},[]),(0,le.useEffect)(()=>{if(mi.current.instance&&Kt)return document.addEventListener("keydown",ei,!1),()=>{document.removeEventListener("keydown",ei)}},[nn,Kt]),(0,le.useEffect)(()=>{let ni=mi.current.instance;if(ni&&Kt){let Zt=Te(qt);Me.editor.setModelLanguage(ni.getModel(),Zt)}},[qt,Kt]),(0,le.useEffect)(()=>{mi.current.instance&&Kt&&Me.editor.setTheme(wn)},[wn,Kt]),(0,le.useEffect)(()=>{let ni=mi.current.instance;ki.current=sn,ni&&Kt&&(ni.updateOptions(En({},sn)),setTimeout(()=>{ni.getModel().updateOptions(En({},sn))},200))},[JSON.stringify(sn),Kt]),(0,le.useEffect)(()=>{let ni=mi.current.instance;ni&&Kt&&ni.layout()},[Vt,Gt,Kt]);const[Ut,oi]=(0,le.useState)(yi(Vt)),[gi,jt]=(0,le.useState)(yi(Gt)),Vn=ii(En({},fn),{width:Ut,height:gi,position:"relative"});return le.createElement("div",{className:"my-monaco-editor",ref:ke,style:Vn},Sn&&le.createElement(ct.CopyToClipboard,{text:gn,onCopy:()=>yn.ZP.success("\u590D\u5236\u6210\u529F")},le.createElement(un.Z,{title:"\u590D\u5236\u4EE3\u7801"},le.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},le.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Lt({width:Mt="100%",height:Yt="100%",original:Vt,modified:Gt,language:gn,options:qt={}}){const fn=(0,le.useRef)(),[sn,_t]=(0,le.useState)(null);function wn(si){let Fn;return fn.current&&(Fn=new Ie.Z(yt=>{for(let kn of yt)(kn.target.offsetHeight>0||kn.target.offsetWidth>0)&&si.layout()}),Fn.observe(fn.current)),Fn}(0,le.useEffect)(()=>(fn.current&&Promise.all([de.e(8909),de.e(9404)]).then(de.bind(de,2550)).then(si=>{Me=si;const Fn=Me.editor.createDiffEditor(fn.current,ii(En({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},qt),{wordWrap:!0}));_t(Fn);let yt=wn(Fn);return()=>{Fn.dispose();const kn=Fn.getModel();kn&&kn.dispose(),yt.unobserve(fn.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,le.useEffect)(()=>{sn&&sn.setModel({original:Me.editor.createModel(Vt,gn),modified:Me.editor.createModel(Gt,gn)})},[Vt,Gt,gn,sn]);const dn=yi(Mt),Sn=yi(Yt),nn={width:dn,height:Sn};return le.createElement("div",{className:"my-diff-editor",ref:fn,style:nn})}},10661:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return mt}});var le={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"},Ie=de(29787),De=de(25399),Le=de(92310),Ye=de.n(Le),Re=de(51257),Ve=de(28426),Je=de(48790),Xe=de(59301),mt=({className:st,dataSource:Nt=[],col:_e=4,right:te,bottom:ne=23,precision:he=0,wrapWidth:se=1200,trackEventItems:ge,loading:Se,onRemove:Ae=()=>{},isCurrent:Oe=!0,showAlias:Be=!1})=>{const Ke=Math.floor((se-(_e-1)*te)/_e),rt=[{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 Xe.createElement(Ie.Z,{spinning:Se},Xe.createElement("div",{className:Ye()(le.list,st)},!!(Nt!=null&&Nt.length)&&(Nt==null?void 0:Nt.map((ot,ht)=>{var bt;const{name:at,id:At,identifier:It,featured:$t,school_name:Tn,image_url:yn,excellent:un,is_plan:On}=ot;return Xe.createElement("div",{key:At,className:le.wrap,style:{width:Ke,marginRight:(1+ht)%_e===0?0:te+he,marginBottom:ne}},Xe.createElement("a",{className:le.li,onClick:xt=>{xt.preventDefault(),xt.stopPropagation(),ge&&(0,Re.L9)([ge]),(0,Re.xg)(`/paths/${It}`)}},Xe.createElement("div",{className:le.img},Xe.createElement("img",{className:le.cover,src:`${yn}`}),Oe&&(0,Je.bg)()&&(ot==null?void 0:ot.studying)&&Xe.createElement("div",{className:`${le.movebq} user-path-items`,onClick:xt=>{xt.stopPropagation(),Ae(ot)}},Xe.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Xe.createElement("span",{className:"c-red"},"\u79FB\u9664")),(bt=ot==null?void 0:ot.subject_tags)==null?void 0:bt.map((xt,ct)=>{var it,cn;if(ct===0){const Pt=(it=rt.find(an=>an.name==xt))==null?void 0:it.swimg;return Xe.createElement("img",{className:le.sign,src:Pt,style:{left:"-4px"}})}const An=(cn=rt.find(Pt=>Pt.name==xt))==null?void 0:cn.ptimg;return Xe.createElement("img",{className:le.sign,src:An,style:{left:`${48+52*(ct-1)+2*ct}px`}})}),Xe.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(ot==null?void 0:ot.excellent)&&Xe.createElement("div",{className:le.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Xe.createElement("div",{className:le.name},Xe.createElement(De.Z,{title:Be&&(ot!=null&&ot.excellent_alias_name)?Xe.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${at}`,Xe.createElement("br",null),Xe.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${ot==null?void 0:ot.excellent_alias_name}`)):at},Xe.createElement("span",{className:le.e},Be&&(ot==null?void 0:ot.excellent_alias_name)||at))),Xe.createElement(De.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Tn}`},Xe.createElement("div",{className:le.unit},Xe.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Tn)),Xe.createElement("div",{className:le.tags},Xe.createElement("div",null,Xe.createElement(De.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Xe.createElement("span",null,Xe.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Xe.createElement("span",null,ot.stages_count))),Xe.createElement(De.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Xe.createElement("span",null,Xe.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Xe.createElement("span",null,ot.members_count)))))))})),!Nt.length&&Xe.createElement(Ve.Z,null)))}},9148:function(Ge,be,de){"use strict";de.d(be,{jL:function(){return Ye},w9:function(){return it},QD:function(){return dn},cQ:function(){return yn.Z},op:function(){return gn},O5:function(){return ki},_b:function(){return kn},t7:function(){return se},Gi:function(){return zn},YG:function(){return an},qp:function(){return mt},vr:function(){return si},qE:function(){return sn},Je:function(){return Ae},wb:function(){return Tn},cq:function(){return et},tp:function(){return _e}});var le=de(59301),Ie={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"},De="data:image/png;base64,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",Ye=({dataSource:Yn=[],img:fi,imgWidth:Ai=346,title:xi,sunTitle:hr,bannerExtraContent:er})=>le.createElement("div",{className:Ie.banner},le.createElement("div",{className:Ie.content},le.createElement("aside",null,le.createElement("p",null,le.createElement("b",null,xi),le.createElement("span",null,hr)),Yn.length>0&&le.createElement("div",{className:Ie.btns},Yn.map((Kt,en)=>le.createElement("div",{key:en,onClick:Kt.click},Kt.name,Kt.sign?le.createElement("img",{src:De,width:39}):null))),er),fi&&le.createElement("img",{style:{marginTop:33,marginRight:38},src:fi,width:Ai}))),Re={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"},Ve=de(92310),Je=de.n(Ve),Xe=de(89392),mt=({dataSource:Yn=[],value:fi,onChange:Ai,onTitleChange:xi,className:hr,title:er,titleWidth:Kt=41,style:en={},fontColor:zt="#6A7283",showCount:on})=>{const[rn,mn]=(0,le.useState)(0),[Bn,ei]=(0,le.useState)(!1),ji=(0,le.useRef)(null),Fi=(0,le.useRef)(null);return(0,le.useEffect)(()=>{var Yi;Yn.length!==0&&(((Yi=ji==null?void 0:ji.current)==null?void 0:Yi.clientHeight)>97?mn(1):mn(0)),Yn.length===0&&mn(0),ei(!1)},[Yn]),le.createElement("div",{className:Je()(Re.row,hr),style:en},le.createElement("div",{onClick:(0,Xe.throttle)(()=>xi==null?void 0:xi(),2e3),style:{width:Kt,marginTop:Bn?12:4},className:`${Re.title} ${xi?"current":""}`},er),le.createElement("div",{className:Bn?`${Re.tagsWrap} ${Re.tagsBorderWrap}`:Re.tagsWrap},le.createElement("div",{className:Re.bar,ref:Fi,style:rn>0?{height:rn===1?97:"auto",overflow:rn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},le.createElement("div",{className:Re.tag,ref:ji},Yn==null?void 0:Yn.map(Yi=>le.createElement("span",{onClick:()=>Ai(Yi.id),key:Yi.id,style:{color:zt},className:fi===Yi.id?Re.active:""},le.createElement("span",{title:Yi.name,className:Re.name},Yi.name),!!on&&le.createElement("span",{className:Re.num},Yi.count))))),!!rn&&le.createElement(le.Fragment,null,rn===1?le.createElement("div",{onClick:()=>{var Yi;mn(2),((Yi=ji==null?void 0:ji.current)==null?void 0:Yi.clientHeight)>245?ei(!0):ei(!1)},className:Re.action},"\u5C55\u5F00",le.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):le.createElement("div",{onClick:()=>{Fi.current.scrollTop=0,mn(1),ei(!1)},className:Re.action},"\u6536\u8D77",le.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},st={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"},_e=({dataSource:Yn=[],value:fi,onChange:Ai,className:xi,style:hr={}})=>le.createElement("div",{style:hr,className:Je()(st.tabs,xi)},Yn.map(er=>le.createElement("span",{onClick:()=>Ai(er.id),className:fi===er.id?st.active:"",key:er.id},er.name))),te={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"},ne=de(37568),se=({dataSource:Yn=[],value:fi="",onChange:Ai,onInputChange:xi=()=>{},className:hr,style:er={},placeholder:Kt,allowClear:en=!1})=>{var zt;const[on,rn]=(0,le.useState)(""),[mn,Bn]=(0,le.useState)("");(0,le.useEffect)(()=>{var Fi;let Yi=fi;(Fi=JSON.stringify(fi))!=null&&Fi.includes("{")&&(rn(fi.id),Yi=fi.value||"");try{Bn(decodeURIComponent(Yi||""))}catch(lt){Bn(decodeURIComponent(Yi||""))}},[fi]);const ei=()=>{Ai(encodeURIComponent(mn),on||null)},ji=Fi=>{Fi!==on&&(rn(Fi),Ai(encodeURIComponent(mn),Fi))};return le.createElement("div",{className:Je()(te.input,hr),style:er},!!Yn.length&&le.createElement("div",{className:te.dropdown},le.createElement("div",{className:te.text},(zt=Yn.find(Fi=>Fi.id===on))==null?void 0:zt.name,le.createElement("i",{className:"iconfont icon-zhankai4"}),le.createElement("b",{className:te.b1}),le.createElement("b",{className:te.b2})),le.createElement("div",{className:te.menu},Yn.map((Fi,Yi)=>le.createElement("div",{key:Yi,onClick:()=>ji(Fi.id)},Fi.name)))),le.createElement(ne.default,{onPressEnter:ei,value:mn,onChange:Fi=>{Bn(Fi.target.value),xi(encodeURIComponent(Fi.target.value),on||null)},bordered:!1,placeholder:Kt}),le.createElement("i",{onClick:ei,className:"iconfont icon-sousuo9 font14 pl10 current"}))},ge={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"},Ae=({value:Yn,onChange:fi,className:Ai,total:xi,pageSize:hr,style:er={}})=>{const Kt=Yn<2,en=Yn>=Math.ceil(xi/hr);return xi<=hr?le.createElement(le.Fragment,null):le.createElement("div",{className:Je()(ge.quickPager,Ai),style:er},le.createElement("div",{onClick:()=>{Kt||fi(Yn-1,"prev")},className:Kt?ge.disabled:""},"\u4E0A\u4E00\u9875"),le.createElement("div",{onClick:()=>{en||fi(Yn+1,"next")},className:en?ge.disabled:""},"\u4E0B\u4E00\u9875"))},Oe={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"},Be=de(29787),Ke=de(25399),rt=de(58018),ot=de(346),ht=de(51257),bt=de(96908),at=de(57177),At=de(81378),It=de(28426),Tn=({className:Yn,dataSource:fi=[],col:Ai=4,right:xi,bottom:hr=23,precision:er=0,wrapWidth:Kt=1200,trackEventItems:en,loading:zt})=>{const on=Math.floor((Kt-(Ai-1)*xi)/Ai);return le.createElement(Be.Z,{spinning:zt},le.createElement("div",{className:Je()(Oe.list,Yn)},!!fi.length&&fi.map((rn,mn)=>{const{name:Bn,id:ei,identifier:ji,power:Fi,cover_image_id:Yi,pic:lt}=rn;return le.createElement("div",{className:Oe.wrap,key:ei,style:{width:on,marginRight:(1+mn)%Ai===0?0:xi+er,marginBottom:hr}},le.createElement("a",{target:"_blank",href:`/shixuns/${ji}/challenges`,className:Oe.li,onClick:Ut=>{Ut.preventDefault(),en&&(0,ht.L9)([en]),Fi&&(0,ht.xg)(`/shixuns/${ji}/challenges`)}},le.createElement("div",{className:Oe.img},le.createElement("img",{className:Oe.cover,src:`${lt}`}),rn.is_jupyter&&le.createElement("img",{className:Oe.sign,src:bt}),rn.is_jupyter_lab&&le.createElement("img",{className:Oe.sign,src:at}),rn.is_unity_3d&&le.createElement("img",{className:Oe.sign,src:At})),le.createElement("div",{className:Oe.name},le.createElement(Ke.Z,{title:Bn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},le.createElement("span",{className:Oe.e},Bn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),le.createElement("div",{className:Oe.tags},le.createElement(Ke.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},le.createElement("span",null,le.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),le.createElement("span",null,rn.challenges_count))),!!rn.myshixuns_count&&le.createElement(Ke.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},le.createElement("span",null,le.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),le.createElement("span",null,rn.myshixuns_count))),le.createElement(Ke.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},le.createElement("span",null,le.createElement("span",null,rn.level))),le.createElement("div",{className:Oe.rate},le.createElement(rt.Z,{allowHalf:!0,disabled:!0,defaultValue:rn.score_info}),le.createElement("span",null,"\xA0",rn.score_info?`${rn.score_info}\u5206`:"5\u5206")))),!Fi&&le.createElement("div",{className:Oe.lockWrap},le.createElement("img",{src:`${ot.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),le.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!fi.length&&le.createElement(It.Z,null)))},yn=de(10661),un={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"},On="data:image/png;base64,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",xt=de(59301),it=({className:Yn,dataSource:fi=[],col:Ai=4,right:xi,bottom:hr=23,precision:er=0,wrapWidth:Kt=1200,trackEventItems:en,loading:zt,handleVery:on=()=>!0})=>{const rn=Math.floor((Kt-(Ai-1)*xi)/Ai);return xt.createElement(Be.Z,{spinning:zt},xt.createElement("div",{className:Je()(un.list,Yn)},!!fi.length&&fi.map((mn,Bn)=>{const{subject_identifier:ei,id:ji,identifier:Fi,power:Yi}=mn,lt=mn.is_public!=0&&mn.is_public;return xt.createElement("div",{className:un.wrap,key:ji,style:{width:rn,marginRight:(1+Bn)%Ai===0?0:xi+er,marginBottom:hr}},xt.createElement("a",{className:un.li,onClick:Ut=>{Ut.preventDefault(),on(mn==null?void 0:mn.first_category_url)&&(en&&(0,ht.L9)([en]),(0,ht.xg)(mn.first_category_url))}},xt.createElement("div",{className:un.top},xt.createElement(Ke.Z,{title:mn.name},xt.createElement("div",{className:un.name},mn.name)),xt.createElement("img",{className:un.img,src:ot.Z.IMG_SERVER+"/images/"+mn.avatar_url}),xt.createElement("div",{className:un.text,title:mn.creator},mn.creator),ei&&xt.createElement("div",{className:un.btns},xt.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),xt.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),lt&&xt.createElement("div",{className:un.sign},"\u516C\u5F00")),xt.createElement("div",{className:un.bottom},mn.visits>0&&xt.createElement(Ke.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},xt.createElement("span",null,xt.createElement("i",{className:"iconfont icon-liulanyan"}),xt.createElement("span",null,mn.visits))),mn.course_members_count>0&&xt.createElement(Ke.Z,{title:"\u6210\u5458",placement:"bottom"},xt.createElement("span",null,xt.createElement("i",{className:"iconfont icon-chengyuan"}),mn.course_members_count)),mn.tasks_count>0&&xt.createElement(Ke.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},xt.createElement("span",null,xt.createElement("i",{className:"iconfont icon-zuoye"}),mn.tasks_count)),mn.is_end?xt.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):xt.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!mn.is_accessible&&xt.createElement("div",{className:un.lockWrap},xt.createElement("img",{src:`${ot.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),xt.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!fi.length&&xt.createElement(It.Z,null)))},cn={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"},An=de(25690),an=({dataSource:Yn=[],value:fi,onChange:Ai,className:xi,style:hr={},tabBarExtraContent:er})=>le.createElement("div",{className:Je()(cn.tabs,xi),style:hr},le.createElement("div",{className:cn.tabsWrap},Yn.map((Kt,en)=>!(Kt!=null&&Kt.hide)&&le.createElement("aside",{className:cn.tab,onClick:()=>{Ai(Kt.id),Kt.link&&An.history.push(Kt.link)},key:en},le.createElement("div",{className:fi===Kt.id?cn.active:""},Kt.name),(Kt==null?void 0:Kt.resetCount)==null&&(Kt==null?void 0:Kt.total)!==void 0&&le.createElement("span",null,"\uFF08",Kt==null?void 0:Kt.total,"\uFF09"),(Kt==null?void 0:Kt.resetCount)!==void 0&&(Kt==null?void 0:Kt.total)!==void 0&&le.createElement(Ke.Z,{title:(Kt==null?void 0:Kt.tip)!=null?Kt==null?void 0:Kt.tip:""},le.createElement("span",{style:{color:"#9096A3"}},"\uFF08",le.createElement("span",{style:{color:"#000"}},Kt==null?void 0:Kt.resetCount),"/",le.createElement("span",null,Kt==null?void 0:Kt.total),"\uFF09"))))),le.createElement("div",{className:cn.tabBar},er)),zn=({className:Yn,style:fi={},children:Ai})=>le.createElement("div",{className:Je()(Yn),style:fi},Ai),En={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"},ii=de(75727),kt=de(93041);const Kn=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var et=({sortValue:Yn,dropValue:fi,className:Ai,onSort:xi,onDrop:hr,dataSource:er=Kn})=>{var Kt;return le.createElement("div",{className:Je()(En.orderWrap,Ai)},le.createElement(ii.Z,{dropdownRender:()=>le.createElement(kt.default,null,er.map((en,zt)=>le.createElement(kt.default.Item,{key:zt,onClick:()=>hr(en.id)},en.name)))},le.createElement("span",{className:En.orderTextWrap},(Kt=er.find(en=>fi===en.id))==null?void 0:Kt.name)),le.createElement("span",{className:En.orderIconWrap},le.createElement("span",{className:En.orderAsc},le.createElement("i",{className:Yn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${En.cursorPointer} ${En.active}`:`iconfont icon-sanjiaoxing-up font12 ${En.cursorPointer}`,onClick:()=>xi(Yn==="asc"?"desc":"asc")})),le.createElement("span",{className:En.orderDesc},le.createElement("i",{className:Yn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${En.cursorPointer} ${En.active}`:`iconfont icon-sanjiaoxing-down font12 ${En.cursorPointer}`,onClick:()=>xi(Yn==="asc"?"desc":"asc")}))))},ze={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=de(99571),Te=Object.defineProperty,Me=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,Lt=(Yn,fi,Ai)=>fi in Yn?Te(Yn,fi,{enumerable:!0,configurable:!0,writable:!0,value:Ai}):Yn[fi]=Ai,Mt=(Yn,fi)=>{for(var Ai in fi||(fi={}))Ce.call(fi,Ai)&&Lt(Yn,Ai,fi[Ai]);if(Me)for(var Ai of Me(fi))ut.call(fi,Ai)&&Lt(Yn,Ai,fi[Ai]);return Yn},Yt=(Yn,fi)=>{var Ai={};for(var xi in Yn)Ce.call(Yn,xi)&&fi.indexOf(xi)<0&&(Ai[xi]=Yn[xi]);if(Yn!=null&&Me)for(var xi of Me(Yn))fi.indexOf(xi)<0&&ut.call(Yn,xi)&&(Ai[xi]=Yn[xi]);return Ai},Vt=(Yn,fi,Ai)=>new Promise((xi,hr)=>{var er=zt=>{try{en(Ai.next(zt))}catch(on){hr(on)}},Kt=zt=>{try{en(Ai.throw(zt))}catch(on){hr(on)}},en=zt=>zt.done?xi(zt.value):Promise.resolve(zt.value).then(er,Kt);en((Ai=Ai.apply(Yn,fi)).next())}),gn=Yn=>{var fi=Yn,{className:Ai,style:xi,children:hr,loading:er=!1,openLoading:Kt,onClick:en=()=>{},size:zt="middle",shape:on="round"}=fi,rn=Yt(fi,["className","style","children","loading","openLoading","onClick","size","shape"]);const[mn,Bn]=(0,le.useState)(!1);return le.createElement(xe.ZP,Mt({onClick:(0,Xe.throttle)(ei=>Vt(void 0,null,function*(){Kt&&Bn(!0);try{yield en(ei)}catch(ji){console.log("error",ji)}Kt&&Bn(!1)}),2e3,{leading:!0,trailing:!1}),className:Je()(ze.btn,ze[`${zt}-${on}`],Ai),style:xi,size:zt,shape:on,loading:mn||er},rn),hr)},qt={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"},sn=({className:Yn,style:fi,children:Ai=null,onClick:xi,title:hr})=>le.createElement("div",{className:Je()(qt.head,Yn),style:fi},le.createElement("span",{className:"primary-hover",onClick:xi},le.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),le.createElement("b",{title:hr},hr),le.createElement("div",{className:qt.node},Ai)),_t={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"},dn=({confirmShow:Yn=!0,confirmTitle:fi,confirmClick:Ai,cancelShow:xi=!0,cancelTitle:hr,cancelClick:er,className:Kt,style:en,confirmLoading:zt=!1})=>le.createElement("div",{className:Je()(_t.btns,Kt),style:en},Yn&&le.createElement(xe.ZP,{loading:zt,onClick:Ai,type:"primary",className:_t.confirm},fi),xi&&le.createElement(xe.ZP,{onClick:er,className:_t.cancel},hr)),Sn={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},si=({className:Yn,style:fi={},LeftContent:Ai,children:xi,RightContent:hr})=>le.createElement("div",{className:Je()(Sn.fixedBottom,Yn),style:fi},le.createElement("div",{className:Sn.wrap},le.createElement("div",{className:Sn.left},Ai),le.createElement("div",{className:Sn.center},xi),le.createElement("div",{className:Sn.right},hr))),Fn={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"},kn=({className:Yn,style:fi={},dataSource:Ai=[]})=>le.createElement("div",{className:Je()(Fn.crumbs,Yn),style:fi},Ai.map((xi,hr)=>hr<Ai.length-1?le.createElement(le.Fragment,{key:hr},xi.path||xi.onClick?le.createElement("span",{className:Fn.hover,onClick:xi!=null&&xi.onClick?xi.onClick:()=>An.history.push(xi.path)},xi.name):le.createElement("span",null,xi.name),le.createElement("span",null,"\xA0",">","\xA0")):le.createElement("span",{key:hr,style:{color:"#5F6368"}},xi.name))),Cn=de(11938),Ht=Object.defineProperty,di=Object.defineProperties,zi=Object.getOwnPropertyDescriptors,Ni=Object.getOwnPropertySymbols,Ln=Object.prototype.hasOwnProperty,rr=Object.prototype.propertyIsEnumerable,Hi=(Yn,fi,Ai)=>fi in Yn?Ht(Yn,fi,{enumerable:!0,configurable:!0,writable:!0,value:Ai}):Yn[fi]=Ai,ui=(Yn,fi)=>{for(var Ai in fi||(fi={}))Ln.call(fi,Ai)&&Hi(Yn,Ai,fi[Ai]);if(Ni)for(var Ai of Ni(fi))rr.call(fi,Ai)&&Hi(Yn,Ai,fi[Ai]);return Yn},wi=(Yn,fi)=>di(Yn,zi(fi)),Di=(Yn,fi)=>{var Ai={};for(var xi in Yn)Ln.call(Yn,xi)&&fi.indexOf(xi)<0&&(Ai[xi]=Yn[xi]);if(Yn!=null&&Ni)for(var xi of Ni(Yn))fi.indexOf(xi)<0&&rr.call(Yn,xi)&&(Ai[xi]=Yn[xi]);return Ai};const{Countdown:ke}=Cn.default;var ki=Yn=>{var fi=Yn,{onChange:Ai}=fi,xi=Di(fi,["onChange"]);const[hr,er]=(0,le.useState)(null);(0,le.useEffect)(()=>{typeof hr=="number"&&hr>=0&&Ai(hr)},[hr]);const Kt=en=>{const zt=Math.floor(en/1e3);er(zt)};return le.createElement(ke,wi(ui({},xi),{onChange:Kt}))}},37808:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return Ie}});var le=de(59301);function Ie(De,Le){const Ye=(0,le.useRef)();(0,le.useEffect)(()=>{Ye.current=De}),(0,le.useEffect)(()=>{function Re(){Ye.current()}if(Le!==null){let Ve=setInterval(Re,Le);return()=>clearInterval(Ve)}},[Le])}},77949:function(Ge,be,de){"use strict";de.r(be),de.d(be,{default:function(){return wn}});var le=de(59301),Ie=de(52358),De=de.n(Ie),Le=de(25690),Ye={box:"box___JDRma",question_buuton:"question_buuton___tVuIm",selectQuestion:"selectQuestion___xdvxF",addQuestion:"addQuestion___FQqbC",submit_button:"submit_button___NUmmN"},Re=de(6767),Ve=de(29787),Je=de(62673),Xe=de(99571),qe=de(89392),mt={modalContent:"modalContent___hC3en",modalContentLeft:"modalContentLeft___v0x0I",green:"green___pAmUz",textArea:"textArea___ucgCJ",red:"red___eb0mt",row:"row___td54s",html:"html___F0iOy",line:"line___I6TCQ",submit_button:"submit_button___JCIit",Drawrap:"Drawrap___EoEUV",iframe:"iframe___SOG0q",c:"c___b2vnF",cpp:"cpp___P7I43",java:"java___WVWs5",python:"python___jYtaY"},st=de(76902),Nt=Object.defineProperty,_e=Object.defineProperties,te=Object.getOwnPropertyDescriptors,ne=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ge=(dn,Sn,nn)=>Sn in dn?Nt(dn,Sn,{enumerable:!0,configurable:!0,writable:!0,value:nn}):dn[Sn]=nn,Se=(dn,Sn)=>{for(var nn in Sn||(Sn={}))he.call(Sn,nn)&&ge(dn,nn,Sn[nn]);if(ne)for(var nn of ne(Sn))se.call(Sn,nn)&&ge(dn,nn,Sn[nn]);return dn},Ae=(dn,Sn)=>_e(dn,te(Sn)),Oe=(dn,Sn,nn)=>new Promise((si,Fn)=>{var yt=Ht=>{try{Cn(nn.next(Ht))}catch(di){Fn(di)}},kn=Ht=>{try{Cn(nn.throw(Ht))}catch(di){Fn(di)}},Cn=Ht=>Ht.done?si(Ht.value):Promise.resolve(Ht.value).then(yt,kn);Cn((nn=nn.apply(dn,Sn)).next())});const Be=({problemset:dn,dispatch:Sn,question:nn,solutionVis:si,pageCache:Fn,disabled:yt,onSubmit:kn})=>{const[Cn,Ht]=(0,le.useState)({}),[di,zi]=(0,le.useState)([]),Ni=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];(0,le.useEffect)(()=>{const ui=(0,qe.cloneDeep)(nn);Ht(ui),zi(ui.choices)},[nn]);const Ln=()=>Oe(void 0,null,function*(){var ui;if(!di.some(ke=>ke==null?void 0:ke.checked)){Re.ZP.warning("\u8BF7\u60A8\u4F5C\u7B54\u540E\u518D\u63D0\u4EA4");return}const wi=(ui=di==null?void 0:di.filter(ke=>ke==null?void 0:ke.checked))==null?void 0:ui.map(ke=>ke==null?void 0:ke.choice_id),Di=yield kn(nn==null?void 0:nn.smart_plan_item_bank_id,wi)}),rr=(ui,wi)=>{console.log(ui.target.checked);const Di=di.map((ke,mi)=>Ae(Se({},ke),{checked:mi===wi?ui.target.checked:ke.checked}));zi(Di)},Hi=(ui=!1)=>{let wi="";return di.forEach((Di,ke)=>{ui?Di!=null&&Di.me_answered&&(wi=wi+Ni[ke]):Di!=null&&Di.is_answer&&(wi=wi+Ni[ke])}),wi};return le.createElement("div",null,le.createElement("div",{className:"c-light-primary mb5 font16"},"\u591A\u9009\u9898"),le.createElement(st.Z,{value:Cn==null?void 0:Cn.name}),di==null?void 0:di.map((ui,wi)=>{const{is_answer:Di,checked:ke,choice_text:mi,me_answered:ki}=ui;let Yn="";return si&&Di&&(Yn=mt.green),si&&!Di&&(ke||ki)&&(Yn=mt.red),le.createElement("div",{key:wi,style:{pointerEvents:si?"none":"auto"},className:`${mt.row} ${Yn}`},le.createElement(Je.default,{disabled:(nn==null?void 0:nn.status)=="ended"||(nn==null?void 0:nn.is_answered)||(Fn==null?void 0:Fn.is_end),style:{padding:3},onChange:fi=>rr(fi,wi),checked:ke||(ui==null?void 0:ui.me_answered)}),le.createElement("span",null,Ni[wi],".\xA0"),le.createElement(st.Z,{className:mt.html,value:mi}),si&&Di&&le.createElement("span",{style:{paddingTop:4},className:"iconfont icon-duigou1 font16"}),si&&!Di&&(ke||ki)&&le.createElement("span",{style:{fontWeight:600,paddingTop:5},className:"iconfont icon-guanbi font16"}))}),si&&le.createElement(le.Fragment,null,le.createElement("div",{className:mt.line}),le.createElement("div",{className:"c-grey-333 mb5"},le.createElement("b",null,"\u6211\u7684\u7B54\u6848:\xA0"),Hi(!0)||"--"),le.createElement("div",{className:"c-grey-333 mb5"},le.createElement("b",null,"\u6B63\u786E\u7B54\u6848:\xA0"),Hi()),le.createElement("div",{className:"c-grey-333 mb10"},le.createElement("b",null,"\u89E3\u6790:\xA0"),(Cn==null?void 0:Cn.analysis)||"\u6682\u65E0\u89E3\u6790")),(nn==null?void 0:nn.status)!="ended"&&!(nn!=null&&nn.is_answered)&&!(Fn!=null&&Fn.is_end)&&le.createElement("div",{className:"flex justify-center"},le.createElement(Xe.ZP,{className:mt.submit_button,type:"primary",onClick:()=>{Ln()}},"\u63D0\u4EA4")))};var Ke=(0,Le.connect)(({problemset:dn})=>({problemset:dn}))(Be),rt=de(47889),ot=de(77019),ht=de(59301),bt=Object.defineProperty,at=Object.defineProperties,At=Object.getOwnPropertyDescriptors,It=Object.getOwnPropertySymbols,$t=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable,yn=(dn,Sn,nn)=>Sn in dn?bt(dn,Sn,{enumerable:!0,configurable:!0,writable:!0,value:nn}):dn[Sn]=nn,un=(dn,Sn)=>{for(var nn in Sn||(Sn={}))$t.call(Sn,nn)&&yn(dn,nn,Sn[nn]);if(It)for(var nn of It(Sn))Tn.call(Sn,nn)&&yn(dn,nn,Sn[nn]);return dn},On=(dn,Sn)=>at(dn,At(Sn)),xt=(dn,Sn,nn)=>new Promise((si,Fn)=>{var yt=Ht=>{try{Cn(nn.next(Ht))}catch(di){Fn(di)}},kn=Ht=>{try{Cn(nn.throw(Ht))}catch(di){Fn(di)}},Cn=Ht=>Ht.done?si(Ht.value):Promise.resolve(Ht.value).then(yt,kn);Cn((nn=nn.apply(dn,Sn)).next())});const ct=({problemset:dn,dispatch:Sn,question:nn,pageCache:si,solutionVis:Fn,disabled:yt,onSubmit:kn})=>{const[Cn,Ht]=(0,le.useState)({}),[di,zi]=(0,le.useState)([]),[Ni]=(0,Le.useSearchParams)(),Ln=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];(0,le.useEffect)(()=>{const ui=(0,qe.cloneDeep)(nn);Ht(ui),zi(ui.choices)},[nn]);const rr=()=>xt(void 0,null,function*(){var ui;if(!di.some(Di=>Di==null?void 0:Di.checked)){Re.ZP.warning("\u8BF7\u60A8\u4F5C\u7B54\u540E\u518D\u63D0\u4EA4");return}const wi=yield kn(nn==null?void 0:nn.smart_plan_item_bank_id,(ui=di.find(Di=>Di.checked))==null?void 0:ui.choice_id)}),Hi=(ui,wi)=>{const Di=di.map((ke,mi)=>On(un({},ke),{checked:mi===wi?ui.target.checked:!1}));zi(Di)};return ht.createElement("div",null,ht.createElement("div",{className:"c-light-primary mb5 font16"},"\u5355\u9009\u9898"),ht.createElement(st.Z,{value:Cn==null?void 0:Cn.name}),di==null?void 0:di.map((ui,wi)=>{const{is_answer:Di,checked:ke,choice_text:mi,me_answered:ki}=ui;let Yn="";return Fn&&Di&&(Yn=mt.green),Fn&&!Di&&(ke||ki)&&(Yn=mt.red),ht.createElement("div",{key:wi,style:{pointerEvents:Fn?"none":"auto"},className:`${mt.row} ${Yn}`},ht.createElement(rt.ZP,{disabled:(nn==null?void 0:nn.status)=="ended"||(nn==null?void 0:nn.is_answered)||(si==null?void 0:si.is_end),onChange:fi=>Hi(fi,wi),checked:ke||(ui==null?void 0:ui.me_answered)}),ht.createElement("span",null,Ln[wi],".\xA0"),ht.createElement(st.Z,{className:mt.html,value:mi}),Fn&&Di&&ht.createElement("span",{style:{paddingTop:4},className:"iconfont icon-duigou1 font16"}),Fn&&!Di&&(ke||ki)&&ht.createElement("span",{style:{fontWeight:600,paddingTop:5},className:"iconfont icon-guanbi font16"}))}),Fn&&ht.createElement(le.Fragment,null,ht.createElement("div",{className:mt.line}),ht.createElement("div",{className:"c-grey-333 mb5"},ht.createElement("b",null,"\u6211\u7684\u7B54\u6848:\xA0"),Ln[di.findIndex(ui=>ui==null?void 0:ui.me_answered)]||"--"),ht.createElement("div",{className:"c-grey-333 mb5"},ht.createElement("b",null,"\u6B63\u786E\u7B54\u6848:\xA0"),Ln[di.findIndex(ui=>ui==null?void 0:ui.is_answer)]),ht.createElement(ot.Z,{className:"c-grey-333 mb10"},ht.createElement("b",null,"\u89E3\u6790:\xA0"),ht.createElement(st.Z,{className:`${mt.html} font14`,value:(Cn==null?void 0:Cn.analysis)||"\u6682\u65E0\u89E3\u6790"}))),(nn==null?void 0:nn.status)!="ended"&&!(nn!=null&&nn.is_answered)&&!(si!=null&&si.is_end)&&ht.createElement("div",{className:"flex justify-center"},ht.createElement(Xe.ZP,{className:mt.submit_button,type:"primary",onClick:()=>{rr()}},"\u63D0\u4EA4")))};var it=(0,Le.connect)(({problemset:dn})=>({problemset:dn}))(ct),cn=Object.defineProperty,An=Object.defineProperties,Pt=Object.getOwnPropertyDescriptors,an=Object.getOwnPropertySymbols,ln=Object.prototype.hasOwnProperty,zn=Object.prototype.propertyIsEnumerable,En=(dn,Sn,nn)=>Sn in dn?cn(dn,Sn,{enumerable:!0,configurable:!0,writable:!0,value:nn}):dn[Sn]=nn,ii=(dn,Sn)=>{for(var nn in Sn||(Sn={}))ln.call(Sn,nn)&&En(dn,nn,Sn[nn]);if(an)for(var nn of an(Sn))zn.call(Sn,nn)&&En(dn,nn,Sn[nn]);return dn},kt=(dn,Sn)=>An(dn,Pt(Sn)),Kn=(dn,Sn,nn)=>new Promise((si,Fn)=>{var yt=Ht=>{try{Cn(nn.next(Ht))}catch(di){Fn(di)}},kn=Ht=>{try{Cn(nn.throw(Ht))}catch(di){Fn(di)}},Cn=Ht=>Ht.done?si(Ht.value):Promise.resolve(Ht.value).then(yt,kn);Cn((nn=nn.apply(dn,Sn)).next())});const yi=({problemset:dn,dispatch:Sn,question:nn,solutionVis:si,pageCache:Fn,disabled:yt,onSubmit:kn})=>{var Cn,Ht;const[di,zi]=(0,le.useState)({}),[Ni,Ln]=(0,le.useState)([]),rr=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];(0,le.useEffect)(()=>{const wi=(0,qe.cloneDeep)(nn);zi(wi),Ln(wi.choices)},[nn]);const Hi=()=>Kn(void 0,null,function*(){var wi;if(!Ni.some(ke=>ke==null?void 0:ke.checked)){Re.ZP.warning("\u8BF7\u60A8\u4F5C\u7B54\u540E\u518D\u63D0\u4EA4");return}const Di=yield kn(nn==null?void 0:nn.smart_plan_item_bank_id,(wi=Ni.find(ke=>ke.checked))==null?void 0:wi.choice_id)}),ui=(wi,Di)=>{console.log(wi.target.checked);const ke=Ni.map((mi,ki)=>kt(ii({},mi),{checked:ki===Di?wi.target.checked:!1}));Ln(ke)};return le.createElement("div",null,le.createElement("div",{className:"c-light-primary mb5 font16"},"\u5224\u65AD\u9898"),le.createElement(st.Z,{value:di==null?void 0:di.name}),Ni==null?void 0:Ni.map((wi,Di)=>{const{is_answer:ke,checked:mi,choice_text:ki,me_answered:Yn}=wi;let fi="";return si&&ke&&(fi=mt.green),si&&!ke&&(mi||Yn)&&(fi=mt.red),le.createElement("div",{key:Di,style:{pointerEvents:si?"none":"auto"},className:`${mt.row} ${fi}`},le.createElement(rt.ZP,{disabled:(nn==null?void 0:nn.status)=="ended"||(nn==null?void 0:nn.is_answered)||(Fn==null?void 0:Fn.is_end),onChange:Ai=>ui(Ai,Di),checked:mi||(wi==null?void 0:wi.me_answered)}),le.createElement(st.Z,{className:mt.html,value:ki}),si&&ke&&le.createElement("span",{style:{paddingTop:4},className:"iconfont icon-duigou1 font16"}),si&&!ke&&(mi||Yn)&&le.createElement("span",{style:{fontWeight:600,paddingTop:5},className:"iconfont icon-guanbi font16"}))}),si&&le.createElement(le.Fragment,null,le.createElement("div",{className:mt.line}),le.createElement("div",{className:"c-grey-333 mb5"},le.createElement("b",null,"\u6211\u7684\u7B54\u6848:\xA0"),((Cn=Ni.find(wi=>wi==null?void 0:wi.me_answered))==null?void 0:Cn.choice_text)||"--"),le.createElement("div",{className:"c-grey-333 mb5"},le.createElement("b",null,"\u6B63\u786E\u7B54\u6848:\xA0"),(Ht=Ni.find(wi=>wi==null?void 0:wi.is_answer))==null?void 0:Ht.choice_text),le.createElement("div",{className:"c-grey-333 mb10"},le.createElement("b",null,"\u89E3\u6790:\xA0"),(di==null?void 0:di.analysis)||"\u6682\u65E0\u89E3\u6790")),(nn==null?void 0:nn.status)!="ended"&&!(nn!=null&&nn.is_answered)&&!(Fn!=null&&Fn.is_end)&&le.createElement("div",{className:"flex justify-center"},le.createElement(Xe.ZP,{className:mt.submit_button,type:"primary",onClick:()=>{Hi()}},"\u63D0\u4EA4")))};var et=(0,Le.connect)(({problemset:dn})=>({problemset:dn}))(yi),ze=de(30641),xe=de(81722),Te=de(59301),Me=(dn,Sn,nn)=>new Promise((si,Fn)=>{var yt=Ht=>{try{Cn(nn.next(Ht))}catch(di){Fn(di)}},kn=Ht=>{try{Cn(nn.throw(Ht))}catch(di){Fn(di)}},Cn=Ht=>Ht.done?si(Ht.value):Promise.resolve(Ht.value).then(yt,kn);Cn((nn=nn.apply(dn,Sn)).next())});const Ce=({problemset:dn,dispatch:Sn,question:nn,pageCache:si,solutionVis:Fn,disabled:yt,onSubmit:kn})=>{var Cn;const[Ht,di]=(0,le.useState)(!1),[zi,Ni]=(0,le.useState)(""),Ln=(0,Le.useParams)(),[rr,Hi]=(0,le.useState)(!1),ui=(0,le.useRef)(null),[wi]=(0,Le.useSearchParams)();(0,le.useEffect)(()=>{if(Ht){const ki=document.getElementById("iframeSmartPlan");if(ki){const Yn={type:"showIntelligentTeacherStatus",aiStatus:nn==null?void 0:nn.enable_ai_tutor,questionStatus:(nn==null?void 0:nn.status)==="ended",pptStatus:si==null?void 0:si.is_end};ki.contentWindow.postMessage(Yn,"*")}}},[nn,si==null?void 0:si.is_end]),(0,le.useEffect)(()=>{},[]);const Di=()=>Me(void 0,null,function*(){if(Hi(!0),nn!=null&&nn.hack_identifier){const ki=yield(0,xe.nF)({id:nn==null?void 0:nn.hack_identifier});(ki==null?void 0:ki.status)===0&&(Ni(`/myproblems/${ki==null?void 0:ki.identifier}?type=smartPlan&exercisesId=${wi.get("id")}&coursesId=${wi.get("course_id")}&questionId=${nn==null?void 0:nn.id}&smartPlanItemBankId=${nn==null?void 0:nn.smart_plan_item_bank_id}&isMiniprogram=true`),history.pushState({isIframePage:!0},"",window.location.href))}Hi(!1)}),ke={C:Te.createElement("span",{className:mt.c},"C"),"C++":Te.createElement("span",{className:mt.cpp},"C++"),Java:Te.createElement("span",{className:mt.java},"Java"),Python:Te.createElement("span",{className:mt.python},"Python")},mi={not_started:Te.createElement("div",{style:{backgroundColor:"rgb(144,150,163)",color:"#fff",padding:"2px 20px",borderRadius:"20px"}},"\u672A\u5F00\u542F"),not_pass:Te.createElement("div",{style:{backgroundColor:"rgb(227,0,0)",color:"#fff",padding:"2px 20px",borderRadius:"20px"}},"\u672A\u901A\u5173"),passed:Te.createElement("div",{style:{backgroundColor:"rgb(0,177,135)",color:"#fff",padding:"2px 20px",borderRadius:"20px"}},"\u5DF2\u901A\u5173"),delay_passed:Te.createElement("div",{style:{backgroundColor:"rgb(178, 173, 8)",color:"#fff",padding:"2px 20px",borderRadius:"20px"}},"\u7ED3\u675F\u7B54\u9898\u540E\u901A\u5173")};return Te.createElement("div",null,Te.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"10px"}},Te.createElement("div",{style:{display:"flex",alignItems:"center",fontSize:"14px"}},Te.createElement("div",{className:"font16"},"\u3010\u7F16\u7A0B\u9898\u3011"),mi[nn==null?void 0:nn.answer_status]),Te.createElement("div",{style:{color:"#333",fontSize:"14px",marginBottom:"5px"}},(Cn=nn==null?void 0:nn.languages)==null?void 0:Cn.map((ki,Yn,fi)=>Te.createElement(le.Fragment,{key:Yn},ke[ki==null?void 0:ki.language])))),Te.createElement(st.Z,{value:nn==null?void 0:nn.name,className:"mt20 mb20"}),Te.createElement(st.Z,{value:nn==null?void 0:nn.description}),Fn&&Te.createElement("div",null,Te.createElement("div",{className:mt.line}),Te.createElement(ot.Z,{className:"c-grey-333 mb5",align:"middle"},Te.createElement("b",null,"\u53C2\u8003\u7B54\u6848:\xA0"),Te.createElement(st.Z,{className:`${mt.html} font14`,value:(nn==null?void 0:nn.answer_text)||"\u6682\u65E0\u89E3\u6790"})),Te.createElement(ot.Z,{className:"c-grey-333 mb10",align:"middle"},Te.createElement("b",null,"\u89E3\u6790:\xA0"),Te.createElement(st.Z,{className:`${mt.html} font14`,value:(nn==null?void 0:nn.analysis)||"\u6682\u65E0\u89E3\u6790"}))),Te.createElement("div",{className:"flex justify-center mt20"},Te.createElement(Xe.ZP,{loading:rr,className:mt.submit_button,type:"primary",onClick:()=>Me(void 0,null,function*(){yield Di(),di(!0)})},(nn==null?void 0:nn.status)!="ended"&&!(si!=null&&si.is_end)?"\u8FDB\u5165\u7B54\u9898":"\u67E5\u770B\u7B54\u9898")),Te.createElement(ze.Z,{title:"",placement:"bottom",rootClassName:mt.Drawrap,width:"100vw",height:"100vh",closable:!1,onClose:()=>{di(!1)},maskClosable:!1,open:Ht},Te.createElement(Ve.Z,{spinning:rr},Te.createElement("div",{style:{width:"100%",height:"100%",minHeight:"100vh"}},Ht&&Te.createElement("iframe",{ref:ui,id:"iframeSmartPlan",style:{width:"100vw",height:"100vh"},src:zi,frameBorder:"0"})))))};var ut=(0,Le.connect)(({problemset:dn})=>({problemset:dn}))(Ce),Lt=de(38986),Mt=de(91479),Yt=de(59301),Vt=(dn,Sn,nn)=>new Promise((si,Fn)=>{var yt=Ht=>{try{Cn(nn.next(Ht))}catch(di){Fn(di)}},kn=Ht=>{try{Cn(nn.throw(Ht))}catch(di){Fn(di)}},Cn=Ht=>Ht.done?si(Ht.value):Promise.resolve(Ht.value).then(yt,kn);Cn((nn=nn.apply(dn,Sn)).next())});const Gt=({user:dn,officeToken:Sn,globalSetting:nn,loading:si,problemset:Fn,dispatch:yt,pageCache:kn,pageNum:Cn,aiImg:Ht})=>{var di,zi,Ni,Ln,rr;const[Hi,ui]=(0,le.useState)([]),[wi]=(0,Le.useSearchParams)(),[Di,ke]=(0,le.useState)(0),[mi,ki]=(0,le.useState)(!1),[Yn,fi]=(0,le.useState)(!(kn!=null&&kn.allow_answer&&!(kn!=null&&kn.is_end)&&(Sn==null?void 0:Sn.Status)!=="ended")),[Ai,xi]=(0,le.useState)(!1),[hr,er]=(0,le.useState)(!1),[Kt,en]=(0,le.useState)({});(0,le.useEffect)(()=>{fi(!(kn!=null&&kn.allow_answer&&!(kn!=null&&kn.is_end)&&(Sn==null?void 0:Sn.Status)!=="ended"))},[kn==null?void 0:kn.allow_answer,!(kn!=null&&kn.is_end),(Sn==null?void 0:Sn.Status)!=="ended"]),(0,le.useEffect)(()=>{(Cn||kn!=null&&kn.page)&&zt()},[Cn,kn==null?void 0:kn.page,kn==null?void 0:kn.allow_answer,kn==null?void 0:kn.has_item_bank,kn==null?void 0:kn.randomData,,kn==null?void 0:kn.enable_extra]);const zt=()=>Vt(void 0,null,function*(){var mn,Bn,ei,ji,Fi,Yi;ki(!0);let lt=yield(0,Lt.ZP)(`/api/courses/${wi.get("course_id")}/smart_plans/${wi.get("id")}/item_banks.json`,{method:"get",params:{position:Cn||(kn==null?void 0:kn.page)}});(lt==null?void 0:lt.status)==0&&(en(lt==null?void 0:lt.data),ui((mn=lt==null?void 0:lt.data)==null?void 0:mn.item_banks),ke(0),xi((ji=(ei=(Bn=lt==null?void 0:lt.data)==null?void 0:Bn.item_banks)==null?void 0:ei[0])==null?void 0:ji.enable_ai_tutor),on((Yi=(Fi=lt==null?void 0:lt.data)==null?void 0:Fi.item_banks)==null?void 0:Yi[0])),ki(!1)}),on=mn=>{if(kn!=null&&kn.is_end){er(!0);return}switch(mn==null?void 0:mn.solution_visibility){case"hidden":er(!1);break;case"show_after_edit":mn!=null&&mn.is_answered?er(!0):er(!1);break;case"show_after_submission":(mn==null?void 0:mn.status)==="ended"?er(!0):er(!1);break;case"show_after_ended":kn!=null&&kn.is_end?er(!0):er(!1);break}},rn=(mn,Bn)=>Vt(void 0,null,function*(){const ei=yield(0,Lt.ZP)(`/api/smart_plan_item_banks/${mn}/user_answers.json`,{method:"post",body:{item_choice_id:Bn}});return(ei==null?void 0:ei.status)===0?(yield zt(),Re.ZP.success("\u63D0\u4EA4\u6210\u529F"),!0):!1});return Yt.createElement("section",null,Yt.createElement(Ve.Z,{spinning:mi},Yt.createElement("div",{className:Ye.box},Hi[Di]&&Yt.createElement("div",null,((di=Hi[Di])==null?void 0:di.item_type)==="SINGLE"&&Yt.createElement(it,{question:Hi[Di],onSubmit:rn,disabled:Yn,pageCache:kn,solutionVis:hr}),((zi=Hi[Di])==null?void 0:zi.item_type)==="MULTIPLE"&&Yt.createElement(Ke,{question:Hi[Di],onSubmit:rn,disabled:Yn,pageCache:kn,solutionVis:hr}),((Ni=Hi[Di])==null?void 0:Ni.item_type)==="JUDGMENT"&&Yt.createElement(et,{question:Hi[Di],onSubmit:rn,disabled:Yn,pageCache:kn,solutionVis:hr}),((Ln=Hi[Di])==null?void 0:Ln.item_type)==="PROGRAM"&&Yt.createElement(ut,{question:Hi[Di],onSubmit:rn,disabled:Yn,pageCache:kn,solutionVis:hr})),Ai&&Yt.createElement(Mt.Z,{item_bank_ids:[(rr=Hi[Di])==null?void 0:rr.id],isStudent:!0,aiImg:Ht}))))};var gn=(0,Le.connect)(({user:dn,classroomList:Sn,loading:nn,globalSetting:si,problemset:Fn})=>({user:dn,classroomList:Sn,globalSetting:si,loading:nn.effects,problemset:Fn}))(Gt),qt=de(51257),fn=de(62957),sn=(dn,Sn,nn)=>new Promise((si,Fn)=>{var yt=Ht=>{try{Cn(nn.next(Ht))}catch(di){Fn(di)}},kn=Ht=>{try{Cn(nn.throw(Ht))}catch(di){Fn(di)}},Cn=Ht=>Ht.done?si(Ht.value):Promise.resolve(Ht.value).then(yt,kn);Cn((nn=nn.apply(dn,Sn)).next())});const _t=({user:dn,classroomList:Sn,globalSetting:nn,loading:si,dispatch:Fn})=>{const yt=(0,le.useRef)(),kn=(0,Le.useParams)(),[Cn]=(0,Le.useSearchParams)(),[Ht,di]=(0,le.useState)(),[zi,Ni]=(0,le.useState)(),[Ln,rr]=(0,le.useState)(),[Hi,ui]=(0,le.useState)(""),[wi,Di]=(0,le.useState)("380rem"),ke=(0,le.useRef)(zi),mi=(0,le.useRef)(),[ki,Yn]=(0,le.useState)("");Cn.get("educoder_session")&&(0,qt.d8)("_educoder_session",Cn.get("educoder_session"),30),(0,le.useEffect)(()=>{Ht!=null&&Ht.WebofficeURL&&er()},[Ht]),(0,le.useEffect)(()=>{if(xi(),localStorage.userInfo)try{JSON.parse(localStorage.userInfo).real_name!=="\u6E38\u5BA2"&&(mi.current=document.createElement("meta"),mi.current.name="viewport",mi.current.content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no",document.head.appendChild(mi.current))}catch(zt){}return()=>{document.head.removeChild(mi.current)}},[]),(0,le.useEffect)(()=>{if(zi!=null&&zi.is_end&&!(Ht!=null&&Ht.IsCreator)){let zt=JSON.parse(sessionStorage.getItem("endPPTIds"))||[];zt&&(zt!=null&&zt.includes(Cn.get("id")))||(Re.ZP.info("\u672C\u6B21\u6388\u8BFE\u5DF2\u7ED3\u675F\uFF0C\u611F\u8C22\u60A8\u7684\u53C2\u4E0E\uFF01"),(zt==null?void 0:zt.length)===0?zt=[Cn.get("id")]:zt.push(Cn.get("id")),sessionStorage.setItem("endPPTIds",JSON.stringify(zt)))}},[zi==null?void 0:zi.is_end,Ht]),(0,le.useEffect)(()=>{if(zi!=null&&zi.enable_extra&&!(zi!=null&&zi.is_end)){let zt=JSON.parse(localStorage.getItem("extraPPTIds"))||[];zt&&!(zt!=null&&zt.includes(Cn.get("id")))&&fn.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",icon:null,maskClosable:!1,keyboard:!1,closable:!1,cancelButtonProps:{style:{display:"none"}},title:"\u63D0\u793A",content:"\u606D\u559C\u4F60\u5DF2\u5B8C\u6210\u6240\u6709\u57FA\u7840\u4E60\u9898\uFF01\u8001\u5E08\u8FD8\u51C6\u5907\u4E86\u62D3\u5C55\u4E60\u9898\uFF0C\u53EF\u4EE5\u5F00\u59CB\u6311\u6218\u4E86\u54E6\uFF01",onOk:()=>sn(void 0,null,function*(){(zt==null?void 0:zt.length)===0?zt=[Cn.get("id")]:zt.push(Cn.get("id")),localStorage.setItem("extraPPTIds",JSON.stringify(zt))})})}},[zi==null?void 0:zi.enable_extra]),(0,le.useEffect)(()=>{(zi==null?void 0:zi.is_end)===!1&&(Ht==null?void 0:Ht.Status)=="in_progress"&&fi()},[zi==null?void 0:zi.is_end,Ht]),(0,le.useEffect)(()=>{Ln&&Ai(Ln)},[Ln]),(0,le.useEffect)(()=>{ke.current=zi},[zi]);const fi=()=>sn(void 0,null,function*(){const zt=yield(0,Lt.ZP)(`/api/courses/${Cn.get("course_id")}/smart_plans/${Cn.get("id")}/start_class.json`,{method:"post"})});(0,le.useEffect)(()=>{var zt;((zt=dn==null?void 0:dn.userInfo)==null?void 0:zt.real_name)==="\u6E38\u5BA2"&&Fn({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!1}})},[dn==null?void 0:dn.userInfo]);function Ai(zt){return sn(this,null,function*(){yield yt.current.ready();const on=yt.current.Application;on.ActivePresentation.SlideShowWindow.View.GotoSlide(zt),yield(yield on.ActivePresentation.SlideShowSettings).Run()})}function xi(){return sn(this,null,function*(){var zt;const on=yield(0,Lt.ZP)(`/api/courses/${Cn.get("course_id")}/smart_plans/${Cn.get("id")}/get_office_token.json`,{method:"get",params:{is_student:!0}}),rn=((zt=on==null?void 0:on.data)==null?void 0:zt.FileName)||"";document.title=rn,di(on==null?void 0:on.data),hr()})}function hr(){return sn(this,null,function*(){var zt,on;try{const rn=yield(0,Lt.ZP)(`/api/courses/${Cn.get("course_id")}/smart_plans/${Cn.get("id")}/set_page_cache.json`,{method:"post",body:{type:1}});(zt=rn==null?void 0:rn.data)!=null&&zt.page&&rr((on=rn==null?void 0:rn.data)==null?void 0:on.page),Ni(rn==null?void 0:rn.data)}catch(rn){}setTimeout(()=>{var rn;((rn=ke.current)==null?void 0:rn.is_end)===!1&&hr()},1e3)})}function er(){return sn(this,null,function*(){var zt=document.getElementById("weboffice-zone");yt.current=De().config({mount:zt,url:Ht.WebofficeURL,refreshToken:Kt}),yt.current.setToken({token:Ht.AccessToken,timeout:25*60*1e3}),en()})}function Kt(){return new Promise(function(zt){return sn(this,null,function*(){const on=yield(0,Lt.ZP)(`/api/courses/${Cn.get("course_id")}/smart_plans/${Cn.get("id")}/refresh_office_token.json`,{method:"get",access_token:Ht==null?void 0:Ht.AccessToken,refresh_token:Ht==null?void 0:Ht.RefreshToken});zt(on==null?void 0:on.data)})})}function en(){return sn(this,null,function*(){yield yt.current.ready();const zt=yt.current.Application;console.log("app:",zt);const mn=yield(yield(yield zt.ActivePresentation).Slides).Count;console.log("count:",mn);const Bn=yield zt.ActivePresentation.SlideShowWindow.View.Slide.SlideIndex;console.log("curryPage:",Bn),ui(Bn);try{zt.Sub.SlideSelectionChanged=ji=>sn(this,null,function*(){console.log("\u5207\u6362\u540E\u7684\u9875\u7801\uFF1A",ji),ui(ji)})}catch(ji){console.error("\u4E8B\u4EF6\u7ED1\u5B9A\u51FA\u9519:",ji)}zt.Sub.SlideShowEnd=()=>sn(this,null,function*(){Di("380rem")});const ei=yield zt.ActivePresentation.ExportAsFixedFormat({FixedFormatType:zt.Enum.PpFixedFormatType.ppFixedFormatTypeIMG,From:1,To:1});console.log(ei),Yn(ei),setTimeout(()=>sn(this,null,function*(){yield(yield zt.ActivePresentation.SlideShowSettings).Run()}),500)})}return le.createElement("div",null,le.createElement("div",{id:"weboffice-zone",style:{height:wi}}),le.createElement(gn,{pageCache:zi,pageNum:Hi,officeToken:Ht,aiImg:ki}))};var wn=(0,Le.connect)(({user:dn,classroomList:Sn,loading:nn,globalSetting:si})=>({user:dn,classroomList:Sn,globalSetting:si,loading:nn.effects}))(_t)},81428:function(Ge,be,de){"use strict";de.d(be,{AL:function(){return Ae},Iy:function(){return mt},Qv:function(){return _e},ez:function(){return Se},jb:function(){return st}});var le=de(32834),Ie=de.n(le),De=de(11690),Le=de.n(De);let Ye=1;function Re(ot,ht){const bt=ot.match(/^(\s+)(?:```)/);if(bt===null)return ht;const at=bt[1];return ht.split(`
|
|
|
`).map(At=>{const It=At.match(/^\s+/);if(It===null)return At;const[$t]=It;return $t.length>=at.length?At.slice(at.length):At}).join(`
|
|
|
`)}let Ve=[],Je=["<ul>"];const Xe=new(Ie()).Renderer,qe=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function mt(){Ve.length=0,Je=["<ul>"]}const st={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Nt(ot,ht,bt,at){if(ht>=ot.length||ot[ht].level<=bt)return ht;var At=ot[ht];at.push("<li><a href='#"+Ye+At.anchor+"'>"+At.text+"</a>"),ht++;var It=[];return ht=Nt(ot,ht,At.level,It),It.length>0&&(at.push("<ul>"),It.forEach(function($t){at.push($t)}),at.push("</ul>")),at.push("</li>"),ht=Nt(ot,ht,bt,at),ht}function _e(){return Nt(Ve,0,0,Je),Je.push("</ul>"),Je.join("")}const te={heading(ot){const ht=qe.exec(ot);if(Ye+=1,ht)return{type:"heading",raw:ht[0],depth:ht[1].length,text:ht[2]}},fences(ot){const ht=this.rules.block.fences.exec(ot);if(ht){const bt=ht[0];let at=Re(bt,ht[3]||"");const At=ht[2]?ht[2].trim():ht[2];if(["latex","katex","math"].indexOf(At)>=0){const It=se(),$t=at;at=It,ge[It]={type:"block",expression:$t}}return{type:"code",raw:bt,lang:At,text:at}}}},ne=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let he=0;const se=()=>`__special_katext_id_${he++}__`;let ge={};function Se(){return ge}function Ae(){he=0,ge={}}function Oe(ot){return ot=ot.replace(ne,(ht,bt)=>{const at=se();return ge[at]={type:"inline",expression:bt},at}),ot}const Be=Xe.listitem;Xe.listitem=function(ot){return Be(Oe(ot))};const Ke=Xe.paragraph;Xe.paragraph=function(ot){return Ke(Oe(ot))};const rt=Xe.tablecell;Xe.tablecell=function(ot,ht){return rt(Oe(ot),ht)},Xe.code=function(ot,ht,bt){const at=(ht||"").match(/\S*/)[0];return at?["latex","katex","math"].indexOf(at)>=0?`<p class='editormd-tex'>${ot}</p>`:`<pre class="prettyprint linenums"><code class="language-${ht}">${bt?ot:(0,De.escape)(ot,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(bt?ot:(0,De.escape)(ot,!0))+"</code></pre>"},Xe.heading=function(ot,ht,bt){let at=this.options.headerPrefix+bt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ve.push({anchor:at,level:ht,text:ot}),"<h"+ht+' id="'+Ye+at+'">'+ot+"</h"+ht+">"},Ie().setOptions({silent:!0,gfm:!0,pedantic:!1}),Ie().use({tokenizer:te,renderer:Xe}),be.ZP=Ie()},86251:function(Ge,be){"use strict";be.byteLength=Ve,be.toByteArray=Xe,be.fromByteArray=st;for(var de=[],le=[],Ie=typeof Uint8Array!="undefined"?Uint8Array:Array,De="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Le=0,Ye=De.length;Le<Ye;++Le)de[Le]=De[Le],le[De.charCodeAt(Le)]=Le;le[45]=62,le[95]=63;function Re(Nt){var _e=Nt.length;if(_e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var te=Nt.indexOf("=");te===-1&&(te=_e);var ne=te===_e?0:4-te%4;return[te,ne]}function Ve(Nt){var _e=Re(Nt),te=_e[0],ne=_e[1];return(te+ne)*3/4-ne}function Je(Nt,_e,te){return(_e+te)*3/4-te}function Xe(Nt){var _e,te=Re(Nt),ne=te[0],he=te[1],se=new Ie(Je(Nt,ne,he)),ge=0,Se=he>0?ne-4:ne,Ae;for(Ae=0;Ae<Se;Ae+=4)_e=le[Nt.charCodeAt(Ae)]<<18|le[Nt.charCodeAt(Ae+1)]<<12|le[Nt.charCodeAt(Ae+2)]<<6|le[Nt.charCodeAt(Ae+3)],se[ge++]=_e>>16&255,se[ge++]=_e>>8&255,se[ge++]=_e&255;return he===2&&(_e=le[Nt.charCodeAt(Ae)]<<2|le[Nt.charCodeAt(Ae+1)]>>4,se[ge++]=_e&255),he===1&&(_e=le[Nt.charCodeAt(Ae)]<<10|le[Nt.charCodeAt(Ae+1)]<<4|le[Nt.charCodeAt(Ae+2)]>>2,se[ge++]=_e>>8&255,se[ge++]=_e&255),se}function qe(Nt){return de[Nt>>18&63]+de[Nt>>12&63]+de[Nt>>6&63]+de[Nt&63]}function mt(Nt,_e,te){for(var ne,he=[],se=_e;se<te;se+=3)ne=(Nt[se]<<16&16711680)+(Nt[se+1]<<8&65280)+(Nt[se+2]&255),he.push(qe(ne));return he.join("")}function st(Nt){for(var _e,te=Nt.length,ne=te%3,he=[],se=16383,ge=0,Se=te-ne;ge<Se;ge+=se)he.push(mt(Nt,ge,ge+se>Se?Se:ge+se));return ne===1?(_e=Nt[te-1],he.push(de[_e>>2]+de[_e<<4&63]+"==")):ne===2&&(_e=(Nt[te-2]<<8)+Nt[te-1],he.push(de[_e>>10]+de[_e>>4&63]+de[_e<<2&63]+"=")),he.join("")}},19208:function(Ge,be,de){"use strict";var le;var Ie=de(86251),De=de(67467),Le=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;be.lW=Je,le=ge,be.h2=50;var Ye=2147483647;le=Ye,Je.TYPED_ARRAY_SUPPORT=Re(),!Je.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Re(){try{var xe=new Uint8Array(1),Te={foo:function(){return 42}};return Object.setPrototypeOf(Te,Uint8Array.prototype),Object.setPrototypeOf(xe,Te),xe.foo()===42}catch(Me){return!1}}Object.defineProperty(Je.prototype,"parent",{enumerable:!0,get:function(){if(Je.isBuffer(this))return this.buffer}}),Object.defineProperty(Je.prototype,"offset",{enumerable:!0,get:function(){if(Je.isBuffer(this))return this.byteOffset}});function Ve(xe){if(xe>Ye)throw new RangeError('The value "'+xe+'" is invalid for option "size"');var Te=new Uint8Array(xe);return Object.setPrototypeOf(Te,Je.prototype),Te}function Je(xe,Te,Me){if(typeof xe=="number"){if(typeof Te=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return st(xe)}return Xe(xe,Te,Me)}Je.poolSize=8192;function Xe(xe,Te,Me){if(typeof xe=="string")return Nt(xe,Te);if(ArrayBuffer.isView(xe))return te(xe);if(xe==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof xe);if(yi(xe,ArrayBuffer)||xe&&yi(xe.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(yi(xe,SharedArrayBuffer)||xe&&yi(xe.buffer,SharedArrayBuffer)))return ne(xe,Te,Me);if(typeof xe=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Ce=xe.valueOf&&xe.valueOf();if(Ce!=null&&Ce!==xe)return Je.from(Ce,Te,Me);var ut=he(xe);if(ut)return ut;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof xe[Symbol.toPrimitive]=="function")return Je.from(xe[Symbol.toPrimitive]("string"),Te,Me);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof xe)}Je.from=function(xe,Te,Me){return Xe(xe,Te,Me)},Object.setPrototypeOf(Je.prototype,Uint8Array.prototype),Object.setPrototypeOf(Je,Uint8Array);function qe(xe){if(typeof xe!="number")throw new TypeError('"size" argument must be of type number');if(xe<0)throw new RangeError('The value "'+xe+'" is invalid for option "size"')}function mt(xe,Te,Me){return qe(xe),xe<=0?Ve(xe):Te!==void 0?typeof Me=="string"?Ve(xe).fill(Te,Me):Ve(xe).fill(Te):Ve(xe)}Je.alloc=function(xe,Te,Me){return mt(xe,Te,Me)};function st(xe){return qe(xe),Ve(xe<0?0:se(xe)|0)}Je.allocUnsafe=function(xe){return st(xe)},Je.allocUnsafeSlow=function(xe){return st(xe)};function Nt(xe,Te){if((typeof Te!="string"||Te==="")&&(Te="utf8"),!Je.isEncoding(Te))throw new TypeError("Unknown encoding: "+Te);var Me=Se(xe,Te)|0,Ce=Ve(Me),ut=Ce.write(xe,Te);return ut!==Me&&(Ce=Ce.slice(0,ut)),Ce}function _e(xe){for(var Te=xe.length<0?0:se(xe.length)|0,Me=Ve(Te),Ce=0;Ce<Te;Ce+=1)Me[Ce]=xe[Ce]&255;return Me}function te(xe){if(yi(xe,Uint8Array)){var Te=new Uint8Array(xe);return ne(Te.buffer,Te.byteOffset,Te.byteLength)}return _e(xe)}function ne(xe,Te,Me){if(Te<0||xe.byteLength<Te)throw new RangeError('"offset" is outside of buffer bounds');if(xe.byteLength<Te+(Me||0))throw new RangeError('"length" is outside of buffer bounds');var Ce;return Te===void 0&&Me===void 0?Ce=new Uint8Array(xe):Me===void 0?Ce=new Uint8Array(xe,Te):Ce=new Uint8Array(xe,Te,Me),Object.setPrototypeOf(Ce,Je.prototype),Ce}function he(xe){if(Je.isBuffer(xe)){var Te=se(xe.length)|0,Me=Ve(Te);return Me.length===0||xe.copy(Me,0,0,Te),Me}if(xe.length!==void 0)return typeof xe.length!="number"||et(xe.length)?Ve(0):_e(xe);if(xe.type==="Buffer"&&Array.isArray(xe.data))return _e(xe.data)}function se(xe){if(xe>=Ye)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ye.toString(16)+" bytes");return xe|0}function ge(xe){return+xe!=xe&&(xe=0),Je.alloc(+xe)}Je.isBuffer=function(Te){return Te!=null&&Te._isBuffer===!0&&Te!==Je.prototype},Je.compare=function(Te,Me){if(yi(Te,Uint8Array)&&(Te=Je.from(Te,Te.offset,Te.byteLength)),yi(Me,Uint8Array)&&(Me=Je.from(Me,Me.offset,Me.byteLength)),!Je.isBuffer(Te)||!Je.isBuffer(Me))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Te===Me)return 0;for(var Ce=Te.length,ut=Me.length,Lt=0,Mt=Math.min(Ce,ut);Lt<Mt;++Lt)if(Te[Lt]!==Me[Lt]){Ce=Te[Lt],ut=Me[Lt];break}return Ce<ut?-1:ut<Ce?1:0},Je.isEncoding=function(Te){switch(String(Te).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Je.concat=function(Te,Me){if(!Array.isArray(Te))throw new TypeError('"list" argument must be an Array of Buffers');if(Te.length===0)return Je.alloc(0);var Ce;if(Me===void 0)for(Me=0,Ce=0;Ce<Te.length;++Ce)Me+=Te[Ce].length;var ut=Je.allocUnsafe(Me),Lt=0;for(Ce=0;Ce<Te.length;++Ce){var Mt=Te[Ce];if(yi(Mt,Uint8Array))Lt+Mt.length>ut.length?Je.from(Mt).copy(ut,Lt):Uint8Array.prototype.set.call(ut,Mt,Lt);else if(Je.isBuffer(Mt))Mt.copy(ut,Lt);else throw new TypeError('"list" argument must be an Array of Buffers');Lt+=Mt.length}return ut};function Se(xe,Te){if(Je.isBuffer(xe))return xe.length;if(ArrayBuffer.isView(xe)||yi(xe,ArrayBuffer))return xe.byteLength;if(typeof xe!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof xe);var Me=xe.length,Ce=arguments.length>2&&arguments[2]===!0;if(!Ce&&Me===0)return 0;for(var ut=!1;;)switch(Te){case"ascii":case"latin1":case"binary":return Me;case"utf8":case"utf-8":return zn(xe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Me*2;case"hex":return Me>>>1;case"base64":return kt(xe).length;default:if(ut)return Ce?-1:zn(xe).length;Te=(""+Te).toLowerCase(),ut=!0}}Je.byteLength=Se;function Ae(xe,Te,Me){var Ce=!1;if((Te===void 0||Te<0)&&(Te=0),Te>this.length||((Me===void 0||Me>this.length)&&(Me=this.length),Me<=0)||(Me>>>=0,Te>>>=0,Me<=Te))return"";for(xe||(xe="utf8");;)switch(xe){case"hex":return On(this,Te,Me);case"utf8":case"utf-8":return It(this,Te,Me);case"ascii":return yn(this,Te,Me);case"latin1":case"binary":return un(this,Te,Me);case"base64":return At(this,Te,Me);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xt(this,Te,Me);default:if(Ce)throw new TypeError("Unknown encoding: "+xe);xe=(xe+"").toLowerCase(),Ce=!0}}Je.prototype._isBuffer=!0;function Oe(xe,Te,Me){var Ce=xe[Te];xe[Te]=xe[Me],xe[Me]=Ce}Je.prototype.swap16=function(){var Te=this.length;if(Te%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Me=0;Me<Te;Me+=2)Oe(this,Me,Me+1);return this},Je.prototype.swap32=function(){var Te=this.length;if(Te%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Me=0;Me<Te;Me+=4)Oe(this,Me,Me+3),Oe(this,Me+1,Me+2);return this},Je.prototype.swap64=function(){var Te=this.length;if(Te%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Me=0;Me<Te;Me+=8)Oe(this,Me,Me+7),Oe(this,Me+1,Me+6),Oe(this,Me+2,Me+5),Oe(this,Me+3,Me+4);return this},Je.prototype.toString=function(){var Te=this.length;return Te===0?"":arguments.length===0?It(this,0,Te):Ae.apply(this,arguments)},Je.prototype.toLocaleString=Je.prototype.toString,Je.prototype.equals=function(Te){if(!Je.isBuffer(Te))throw new TypeError("Argument must be a Buffer");return this===Te?!0:Je.compare(this,Te)===0},Je.prototype.inspect=function(){var Te="",Me=be.h2;return Te=this.toString("hex",0,Me).replace(/(.{2})/g,"$1 ").trim(),this.length>Me&&(Te+=" ... "),"<Buffer "+Te+">"},Le&&(Je.prototype[Le]=Je.prototype.inspect),Je.prototype.compare=function(Te,Me,Ce,ut,Lt){if(yi(Te,Uint8Array)&&(Te=Je.from(Te,Te.offset,Te.byteLength)),!Je.isBuffer(Te))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Te);if(Me===void 0&&(Me=0),Ce===void 0&&(Ce=Te?Te.length:0),ut===void 0&&(ut=0),Lt===void 0&&(Lt=this.length),Me<0||Ce>Te.length||ut<0||Lt>this.length)throw new RangeError("out of range index");if(ut>=Lt&&Me>=Ce)return 0;if(ut>=Lt)return-1;if(Me>=Ce)return 1;if(Me>>>=0,Ce>>>=0,ut>>>=0,Lt>>>=0,this===Te)return 0;for(var Mt=Lt-ut,Yt=Ce-Me,Vt=Math.min(Mt,Yt),Gt=this.slice(ut,Lt),gn=Te.slice(Me,Ce),qt=0;qt<Vt;++qt)if(Gt[qt]!==gn[qt]){Mt=Gt[qt],Yt=gn[qt];break}return Mt<Yt?-1:Yt<Mt?1:0};function Be(xe,Te,Me,Ce,ut){if(xe.length===0)return-1;if(typeof Me=="string"?(Ce=Me,Me=0):Me>2147483647?Me=2147483647:Me<-2147483648&&(Me=-2147483648),Me=+Me,et(Me)&&(Me=ut?0:xe.length-1),Me<0&&(Me=xe.length+Me),Me>=xe.length){if(ut)return-1;Me=xe.length-1}else if(Me<0)if(ut)Me=0;else return-1;if(typeof Te=="string"&&(Te=Je.from(Te,Ce)),Je.isBuffer(Te))return Te.length===0?-1:Ke(xe,Te,Me,Ce,ut);if(typeof Te=="number")return Te=Te&255,typeof Uint8Array.prototype.indexOf=="function"?ut?Uint8Array.prototype.indexOf.call(xe,Te,Me):Uint8Array.prototype.lastIndexOf.call(xe,Te,Me):Ke(xe,[Te],Me,Ce,ut);throw new TypeError("val must be string, number or Buffer")}function Ke(xe,Te,Me,Ce,ut){var Lt=1,Mt=xe.length,Yt=Te.length;if(Ce!==void 0&&(Ce=String(Ce).toLowerCase(),Ce==="ucs2"||Ce==="ucs-2"||Ce==="utf16le"||Ce==="utf-16le")){if(xe.length<2||Te.length<2)return-1;Lt=2,Mt/=2,Yt/=2,Me/=2}function Vt(sn,_t){return Lt===1?sn[_t]:sn.readUInt16BE(_t*Lt)}var Gt;if(ut){var gn=-1;for(Gt=Me;Gt<Mt;Gt++)if(Vt(xe,Gt)===Vt(Te,gn===-1?0:Gt-gn)){if(gn===-1&&(gn=Gt),Gt-gn+1===Yt)return gn*Lt}else gn!==-1&&(Gt-=Gt-gn),gn=-1}else for(Me+Yt>Mt&&(Me=Mt-Yt),Gt=Me;Gt>=0;Gt--){for(var qt=!0,fn=0;fn<Yt;fn++)if(Vt(xe,Gt+fn)!==Vt(Te,fn)){qt=!1;break}if(qt)return Gt}return-1}Je.prototype.includes=function(Te,Me,Ce){return this.indexOf(Te,Me,Ce)!==-1},Je.prototype.indexOf=function(Te,Me,Ce){return Be(this,Te,Me,Ce,!0)},Je.prototype.lastIndexOf=function(Te,Me,Ce){return Be(this,Te,Me,Ce,!1)};function rt(xe,Te,Me,Ce){Me=Number(Me)||0;var ut=xe.length-Me;Ce?(Ce=Number(Ce),Ce>ut&&(Ce=ut)):Ce=ut;var Lt=Te.length;Ce>Lt/2&&(Ce=Lt/2);for(var Mt=0;Mt<Ce;++Mt){var Yt=parseInt(Te.substr(Mt*2,2),16);if(et(Yt))return Mt;xe[Me+Mt]=Yt}return Mt}function ot(xe,Te,Me,Ce){return Kn(zn(Te,xe.length-Me),xe,Me,Ce)}function ht(xe,Te,Me,Ce){return Kn(En(Te),xe,Me,Ce)}function bt(xe,Te,Me,Ce){return Kn(kt(Te),xe,Me,Ce)}function at(xe,Te,Me,Ce){return Kn(ii(Te,xe.length-Me),xe,Me,Ce)}Je.prototype.write=function(Te,Me,Ce,ut){if(Me===void 0)ut="utf8",Ce=this.length,Me=0;else if(Ce===void 0&&typeof Me=="string")ut=Me,Ce=this.length,Me=0;else if(isFinite(Me))Me=Me>>>0,isFinite(Ce)?(Ce=Ce>>>0,ut===void 0&&(ut="utf8")):(ut=Ce,Ce=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Lt=this.length-Me;if((Ce===void 0||Ce>Lt)&&(Ce=Lt),Te.length>0&&(Ce<0||Me<0)||Me>this.length)throw new RangeError("Attempt to write outside buffer bounds");ut||(ut="utf8");for(var Mt=!1;;)switch(ut){case"hex":return rt(this,Te,Me,Ce);case"utf8":case"utf-8":return ot(this,Te,Me,Ce);case"ascii":case"latin1":case"binary":return ht(this,Te,Me,Ce);case"base64":return bt(this,Te,Me,Ce);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return at(this,Te,Me,Ce);default:if(Mt)throw new TypeError("Unknown encoding: "+ut);ut=(""+ut).toLowerCase(),Mt=!0}},Je.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function At(xe,Te,Me){return Te===0&&Me===xe.length?Ie.fromByteArray(xe):Ie.fromByteArray(xe.slice(Te,Me))}function It(xe,Te,Me){Me=Math.min(xe.length,Me);for(var Ce=[],ut=Te;ut<Me;){var Lt=xe[ut],Mt=null,Yt=Lt>239?4:Lt>223?3:Lt>191?2:1;if(ut+Yt<=Me){var Vt,Gt,gn,qt;switch(Yt){case 1:Lt<128&&(Mt=Lt);break;case 2:Vt=xe[ut+1],(Vt&192)===128&&(qt=(Lt&31)<<6|Vt&63,qt>127&&(Mt=qt));break;case 3:Vt=xe[ut+1],Gt=xe[ut+2],(Vt&192)===128&&(Gt&192)===128&&(qt=(Lt&15)<<12|(Vt&63)<<6|Gt&63,qt>2047&&(qt<55296||qt>57343)&&(Mt=qt));break;case 4:Vt=xe[ut+1],Gt=xe[ut+2],gn=xe[ut+3],(Vt&192)===128&&(Gt&192)===128&&(gn&192)===128&&(qt=(Lt&15)<<18|(Vt&63)<<12|(Gt&63)<<6|gn&63,qt>65535&&qt<1114112&&(Mt=qt))}}Mt===null?(Mt=65533,Yt=1):Mt>65535&&(Mt-=65536,Ce.push(Mt>>>10&1023|55296),Mt=56320|Mt&1023),Ce.push(Mt),ut+=Yt}return Tn(Ce)}var $t=4096;function Tn(xe){var Te=xe.length;if(Te<=$t)return String.fromCharCode.apply(String,xe);for(var Me="",Ce=0;Ce<Te;)Me+=String.fromCharCode.apply(String,xe.slice(Ce,Ce+=$t));return Me}function yn(xe,Te,Me){var Ce="";Me=Math.min(xe.length,Me);for(var ut=Te;ut<Me;++ut)Ce+=String.fromCharCode(xe[ut]&127);return Ce}function un(xe,Te,Me){var Ce="";Me=Math.min(xe.length,Me);for(var ut=Te;ut<Me;++ut)Ce+=String.fromCharCode(xe[ut]);return Ce}function On(xe,Te,Me){var Ce=xe.length;(!Te||Te<0)&&(Te=0),(!Me||Me<0||Me>Ce)&&(Me=Ce);for(var ut="",Lt=Te;Lt<Me;++Lt)ut+=ze[xe[Lt]];return ut}function xt(xe,Te,Me){for(var Ce=xe.slice(Te,Me),ut="",Lt=0;Lt<Ce.length-1;Lt+=2)ut+=String.fromCharCode(Ce[Lt]+Ce[Lt+1]*256);return ut}Je.prototype.slice=function(Te,Me){var Ce=this.length;Te=~~Te,Me=Me===void 0?Ce:~~Me,Te<0?(Te+=Ce,Te<0&&(Te=0)):Te>Ce&&(Te=Ce),Me<0?(Me+=Ce,Me<0&&(Me=0)):Me>Ce&&(Me=Ce),Me<Te&&(Me=Te);var ut=this.subarray(Te,Me);return Object.setPrototypeOf(ut,Je.prototype),ut};function ct(xe,Te,Me){if(xe%1!==0||xe<0)throw new RangeError("offset is not uint");if(xe+Te>Me)throw new RangeError("Trying to access beyond buffer length")}Je.prototype.readUintLE=Je.prototype.readUIntLE=function(Te,Me,Ce){Te=Te>>>0,Me=Me>>>0,Ce||ct(Te,Me,this.length);for(var ut=this[Te],Lt=1,Mt=0;++Mt<Me&&(Lt*=256);)ut+=this[Te+Mt]*Lt;return ut},Je.prototype.readUintBE=Je.prototype.readUIntBE=function(Te,Me,Ce){Te=Te>>>0,Me=Me>>>0,Ce||ct(Te,Me,this.length);for(var ut=this[Te+--Me],Lt=1;Me>0&&(Lt*=256);)ut+=this[Te+--Me]*Lt;return ut},Je.prototype.readUint8=Je.prototype.readUInt8=function(Te,Me){return Te=Te>>>0,Me||ct(Te,1,this.length),this[Te]},Je.prototype.readUint16LE=Je.prototype.readUInt16LE=function(Te,Me){return Te=Te>>>0,Me||ct(Te,2,this.length),this[Te]|this[Te+1]<<8},Je.prototype.readUint16BE=Je.prototype.readUInt16BE=function(Te,Me){return Te=Te>>>0,Me||ct(Te,2,this.length),this[Te]<<8|this[Te+1]},Je.prototype.readUint32LE=Je.prototype.readUInt32LE=function(Te,Me){return Te=Te>>>0,Me||ct(Te,4,this.length),(this[Te]|this[Te+1]<<8|this[Te+2]<<16)+this[Te+3]*16777216},Je.prototype.readUint32BE=Je.prototype.readUInt32BE=function(Te,Me){return Te=Te>>>0,Me||ct(Te,4,this.length),this[Te]*16777216+(this[Te+1]<<16|this[Te+2]<<8|this[Te+3])},Je.prototype.readIntLE=function(Te,Me,Ce){Te=Te>>>0,Me=Me>>>0,Ce||ct(Te,Me,this.length);for(var ut=this[Te],Lt=1,Mt=0;++Mt<Me&&(Lt*=256);)ut+=this[Te+Mt]*Lt;return Lt*=128,ut>=Lt&&(ut-=Math.pow(2,8*Me)),ut},Je.prototype.readIntBE=function(Te,Me,Ce){Te=Te>>>0,Me=Me>>>0,Ce||ct(Te,Me,this.length);for(var ut=Me,Lt=1,Mt=this[Te+--ut];ut>0&&(Lt*=256);)Mt+=this[Te+--ut]*Lt;return Lt*=128,Mt>=Lt&&(Mt-=Math.pow(2,8*Me)),Mt},Je.prototype.readInt8=function(Te,Me){return Te=Te>>>0,Me||ct(Te,1,this.length),this[Te]&128?(255-this[Te]+1)*-1:this[Te]},Je.prototype.readInt16LE=function(Te,Me){Te=Te>>>0,Me||ct(Te,2,this.length);var Ce=this[Te]|this[Te+1]<<8;return Ce&32768?Ce|4294901760:Ce},Je.prototype.readInt16BE=function(Te,Me){Te=Te>>>0,Me||ct(Te,2,this.length);var Ce=this[Te+1]|this[Te]<<8;return Ce&32768?Ce|4294901760:Ce},Je.prototype.readInt32LE=function(Te,Me){return Te=Te>>>0,Me||ct(Te,4,this.length),this[Te]|this[Te+1]<<8|this[Te+2]<<16|this[Te+3]<<24},Je.prototype.readInt32BE=function(Te,Me){return Te=Te>>>0,Me||ct(Te,4,this.length),this[Te]<<24|this[Te+1]<<16|this[Te+2]<<8|this[Te+3]},Je.prototype.readFloatLE=function(Te,Me){return Te=Te>>>0,Me||ct(Te,4,this.length),De.read(this,Te,!0,23,4)},Je.prototype.readFloatBE=function(Te,Me){return Te=Te>>>0,Me||ct(Te,4,this.length),De.read(this,Te,!1,23,4)},Je.prototype.readDoubleLE=function(Te,Me){return Te=Te>>>0,Me||ct(Te,8,this.length),De.read(this,Te,!0,52,8)},Je.prototype.readDoubleBE=function(Te,Me){return Te=Te>>>0,Me||ct(Te,8,this.length),De.read(this,Te,!1,52,8)};function it(xe,Te,Me,Ce,ut,Lt){if(!Je.isBuffer(xe))throw new TypeError('"buffer" argument must be a Buffer instance');if(Te>ut||Te<Lt)throw new RangeError('"value" argument is out of bounds');if(Me+Ce>xe.length)throw new RangeError("Index out of range")}Je.prototype.writeUintLE=Je.prototype.writeUIntLE=function(Te,Me,Ce,ut){if(Te=+Te,Me=Me>>>0,Ce=Ce>>>0,!ut){var Lt=Math.pow(2,8*Ce)-1;it(this,Te,Me,Ce,Lt,0)}var Mt=1,Yt=0;for(this[Me]=Te&255;++Yt<Ce&&(Mt*=256);)this[Me+Yt]=Te/Mt&255;return Me+Ce},Je.prototype.writeUintBE=Je.prototype.writeUIntBE=function(Te,Me,Ce,ut){if(Te=+Te,Me=Me>>>0,Ce=Ce>>>0,!ut){var Lt=Math.pow(2,8*Ce)-1;it(this,Te,Me,Ce,Lt,0)}var Mt=Ce-1,Yt=1;for(this[Me+Mt]=Te&255;--Mt>=0&&(Yt*=256);)this[Me+Mt]=Te/Yt&255;return Me+Ce},Je.prototype.writeUint8=Je.prototype.writeUInt8=function(Te,Me,Ce){return Te=+Te,Me=Me>>>0,Ce||it(this,Te,Me,1,255,0),this[Me]=Te&255,Me+1},Je.prototype.writeUint16LE=Je.prototype.writeUInt16LE=function(Te,Me,Ce){return Te=+Te,Me=Me>>>0,Ce||it(this,Te,Me,2,65535,0),this[Me]=Te&255,this[Me+1]=Te>>>8,Me+2},Je.prototype.writeUint16BE=Je.prototype.writeUInt16BE=function(Te,Me,Ce){return Te=+Te,Me=Me>>>0,Ce||it(this,Te,Me,2,65535,0),this[Me]=Te>>>8,this[Me+1]=Te&255,Me+2},Je.prototype.writeUint32LE=Je.prototype.writeUInt32LE=function(Te,Me,Ce){return Te=+Te,Me=Me>>>0,Ce||it(this,Te,Me,4,4294967295,0),this[Me+3]=Te>>>24,this[Me+2]=Te>>>16,this[Me+1]=Te>>>8,this[Me]=Te&255,Me+4},Je.prototype.writeUint32BE=Je.prototype.writeUInt32BE=function(Te,Me,Ce){return Te=+Te,Me=Me>>>0,Ce||it(this,Te,Me,4,4294967295,0),this[Me]=Te>>>24,this[Me+1]=Te>>>16,this[Me+2]=Te>>>8,this[Me+3]=Te&255,Me+4},Je.prototype.writeIntLE=function(Te,Me,Ce,ut){if(Te=+Te,Me=Me>>>0,!ut){var Lt=Math.pow(2,8*Ce-1);it(this,Te,Me,Ce,Lt-1,-Lt)}var Mt=0,Yt=1,Vt=0;for(this[Me]=Te&255;++Mt<Ce&&(Yt*=256);)Te<0&&Vt===0&&this[Me+Mt-1]!==0&&(Vt=1),this[Me+Mt]=(Te/Yt>>0)-Vt&255;return Me+Ce},Je.prototype.writeIntBE=function(Te,Me,Ce,ut){if(Te=+Te,Me=Me>>>0,!ut){var Lt=Math.pow(2,8*Ce-1);it(this,Te,Me,Ce,Lt-1,-Lt)}var Mt=Ce-1,Yt=1,Vt=0;for(this[Me+Mt]=Te&255;--Mt>=0&&(Yt*=256);)Te<0&&Vt===0&&this[Me+Mt+1]!==0&&(Vt=1),this[Me+Mt]=(Te/Yt>>0)-Vt&255;return Me+Ce},Je.prototype.writeInt8=function(Te,Me,Ce){return Te=+Te,Me=Me>>>0,Ce||it(this,Te,Me,1,127,-128),Te<0&&(Te=255+Te+1),this[Me]=Te&255,Me+1},Je.prototype.writeInt16LE=function(Te,Me,Ce){return Te=+Te,Me=Me>>>0,Ce||it(this,Te,Me,2,32767,-32768),this[Me]=Te&255,this[Me+1]=Te>>>8,Me+2},Je.prototype.writeInt16BE=function(Te,Me,Ce){return Te=+Te,Me=Me>>>0,Ce||it(this,Te,Me,2,32767,-32768),this[Me]=Te>>>8,this[Me+1]=Te&255,Me+2},Je.prototype.writeInt32LE=function(Te,Me,Ce){return Te=+Te,Me=Me>>>0,Ce||it(this,Te,Me,4,2147483647,-2147483648),this[Me]=Te&255,this[Me+1]=Te>>>8,this[Me+2]=Te>>>16,this[Me+3]=Te>>>24,Me+4},Je.prototype.writeInt32BE=function(Te,Me,Ce){return Te=+Te,Me=Me>>>0,Ce||it(this,Te,Me,4,2147483647,-2147483648),Te<0&&(Te=4294967295+Te+1),this[Me]=Te>>>24,this[Me+1]=Te>>>16,this[Me+2]=Te>>>8,this[Me+3]=Te&255,Me+4};function cn(xe,Te,Me,Ce,ut,Lt){if(Me+Ce>xe.length)throw new RangeError("Index out of range");if(Me<0)throw new RangeError("Index out of range")}function An(xe,Te,Me,Ce,ut){return Te=+Te,Me=Me>>>0,ut||cn(xe,Te,Me,4,34028234663852886e22,-34028234663852886e22),De.write(xe,Te,Me,Ce,23,4),Me+4}Je.prototype.writeFloatLE=function(Te,Me,Ce){return An(this,Te,Me,!0,Ce)},Je.prototype.writeFloatBE=function(Te,Me,Ce){return An(this,Te,Me,!1,Ce)};function Pt(xe,Te,Me,Ce,ut){return Te=+Te,Me=Me>>>0,ut||cn(xe,Te,Me,8,17976931348623157e292,-17976931348623157e292),De.write(xe,Te,Me,Ce,52,8),Me+8}Je.prototype.writeDoubleLE=function(Te,Me,Ce){return Pt(this,Te,Me,!0,Ce)},Je.prototype.writeDoubleBE=function(Te,Me,Ce){return Pt(this,Te,Me,!1,Ce)},Je.prototype.copy=function(Te,Me,Ce,ut){if(!Je.isBuffer(Te))throw new TypeError("argument should be a Buffer");if(Ce||(Ce=0),!ut&&ut!==0&&(ut=this.length),Me>=Te.length&&(Me=Te.length),Me||(Me=0),ut>0&&ut<Ce&&(ut=Ce),ut===Ce||Te.length===0||this.length===0)return 0;if(Me<0)throw new RangeError("targetStart out of bounds");if(Ce<0||Ce>=this.length)throw new RangeError("Index out of range");if(ut<0)throw new RangeError("sourceEnd out of bounds");ut>this.length&&(ut=this.length),Te.length-Me<ut-Ce&&(ut=Te.length-Me+Ce);var Lt=ut-Ce;return this===Te&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(Me,Ce,ut):Uint8Array.prototype.set.call(Te,this.subarray(Ce,ut),Me),Lt},Je.prototype.fill=function(Te,Me,Ce,ut){if(typeof Te=="string"){if(typeof Me=="string"?(ut=Me,Me=0,Ce=this.length):typeof Ce=="string"&&(ut=Ce,Ce=this.length),ut!==void 0&&typeof ut!="string")throw new TypeError("encoding must be a string");if(typeof ut=="string"&&!Je.isEncoding(ut))throw new TypeError("Unknown encoding: "+ut);if(Te.length===1){var Lt=Te.charCodeAt(0);(ut==="utf8"&&Lt<128||ut==="latin1")&&(Te=Lt)}}else typeof Te=="number"?Te=Te&255:typeof Te=="boolean"&&(Te=Number(Te));if(Me<0||this.length<Me||this.length<Ce)throw new RangeError("Out of range index");if(Ce<=Me)return this;Me=Me>>>0,Ce=Ce===void 0?this.length:Ce>>>0,Te||(Te=0);var Mt;if(typeof Te=="number")for(Mt=Me;Mt<Ce;++Mt)this[Mt]=Te;else{var Yt=Je.isBuffer(Te)?Te:Je.from(Te,ut),Vt=Yt.length;if(Vt===0)throw new TypeError('The value "'+Te+'" is invalid for argument "value"');for(Mt=0;Mt<Ce-Me;++Mt)this[Mt+Me]=Yt[Mt%Vt]}return this};var an=/[^+/0-9A-Za-z-_]/g;function ln(xe){if(xe=xe.split("=")[0],xe=xe.trim().replace(an,""),xe.length<2)return"";for(;xe.length%4!==0;)xe=xe+"=";return xe}function zn(xe,Te){Te=Te||1/0;for(var Me,Ce=xe.length,ut=null,Lt=[],Mt=0;Mt<Ce;++Mt){if(Me=xe.charCodeAt(Mt),Me>55295&&Me<57344){if(!ut){if(Me>56319){(Te-=3)>-1&&Lt.push(239,191,189);continue}else if(Mt+1===Ce){(Te-=3)>-1&&Lt.push(239,191,189);continue}ut=Me;continue}if(Me<56320){(Te-=3)>-1&&Lt.push(239,191,189),ut=Me;continue}Me=(ut-55296<<10|Me-56320)+65536}else ut&&(Te-=3)>-1&&Lt.push(239,191,189);if(ut=null,Me<128){if((Te-=1)<0)break;Lt.push(Me)}else if(Me<2048){if((Te-=2)<0)break;Lt.push(Me>>6|192,Me&63|128)}else if(Me<65536){if((Te-=3)<0)break;Lt.push(Me>>12|224,Me>>6&63|128,Me&63|128)}else if(Me<1114112){if((Te-=4)<0)break;Lt.push(Me>>18|240,Me>>12&63|128,Me>>6&63|128,Me&63|128)}else throw new Error("Invalid code point")}return Lt}function En(xe){for(var Te=[],Me=0;Me<xe.length;++Me)Te.push(xe.charCodeAt(Me)&255);return Te}function ii(xe,Te){for(var Me,Ce,ut,Lt=[],Mt=0;Mt<xe.length&&!((Te-=2)<0);++Mt)Me=xe.charCodeAt(Mt),Ce=Me>>8,ut=Me%256,Lt.push(ut),Lt.push(Ce);return Lt}function kt(xe){return Ie.toByteArray(ln(xe))}function Kn(xe,Te,Me,Ce){for(var ut=0;ut<Ce&&!(ut+Me>=Te.length||ut>=xe.length);++ut)Te[ut+Me]=xe[ut];return ut}function yi(xe,Te){return xe instanceof Te||xe!=null&&xe.constructor!=null&&xe.constructor.name!=null&&xe.constructor.name===Te.name}function et(xe){return xe!==xe}var ze=function(){for(var xe="0123456789abcdef",Te=new Array(256),Me=0;Me<16;++Me)for(var Ce=Me*16,ut=0;ut<16;++ut)Te[Ce+ut]=xe[Me]+xe[ut];return Te}()},99498:function(Ge,be,de){(function(le){le(de(89780))})(function(le){le.defineOption("placeholder","",function(Je,Xe,qe){var mt=qe&&qe!=le.Init;if(Xe&&!mt)Je.on("blur",Ye),Je.on("change",Re),Je.on("swapDoc",Re),le.on(Je.getInputField(),"compositionupdate",Je.state.placeholderCompose=function(){Le(Je)}),Re(Je);else if(!Xe&&mt){Je.off("blur",Ye),Je.off("change",Re),Je.off("swapDoc",Re),le.off(Je.getInputField(),"compositionupdate",Je.state.placeholderCompose),Ie(Je);var st=Je.getWrapperElement();st.className=st.className.replace(" CodeMirror-empty","")}Xe&&!Je.hasFocus()&&Ye(Je)});function Ie(Je){Je.state.placeholder&&(Je.state.placeholder.parentNode.removeChild(Je.state.placeholder),Je.state.placeholder=null)}function De(Je){Ie(Je);var Xe=Je.state.placeholder=document.createElement("pre");Xe.style.cssText="height: 0; overflow: visible",Xe.style.direction=Je.getOption("direction"),Xe.className="CodeMirror-placeholder CodeMirror-line-like";var qe=Je.getOption("placeholder");typeof qe=="string"&&(qe=document.createTextNode(qe)),Xe.appendChild(qe),Je.display.lineSpace.insertBefore(Xe,Je.display.lineSpace.firstChild)}function Le(Je){setTimeout(function(){var Xe=!1,qe=Je.getInputField();qe.nodeName=="TEXTAREA"?Xe=!qe.value:Je.lineCount()==1&&(Xe=!/[^\u200b]/.test(qe.querySelector(".CodeMirror-line").textContent)),Xe?De(Je):Ie(Je)},20)}function Ye(Je){Ve(Je)&&De(Je)}function Re(Je){var Xe=Je.getWrapperElement(),qe=Ve(Je);Xe.className=Xe.className.replace(" CodeMirror-empty","")+(qe?" CodeMirror-empty":""),qe?De(Je):Ie(Je)}function Ve(Je){return Je.lineCount()===1&&Je.getLine(0)===""}})},25717:function(Ge,be,de){(function(le){le(de(89780))})(function(le){var Ie={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},De=le.Pos;le.defineOption("autoCloseBrackets",!1,function(te,ne,he){he&&he!=le.Init&&(te.removeKeyMap(Ye),te.state.closeBrackets=null),ne&&(Re(Le(ne,"pairs")),te.state.closeBrackets=ne,te.addKeyMap(Ye))});function Le(te,ne){return ne=="pairs"&&typeof te=="string"?te:typeof te=="object"&&te[ne]!=null?te[ne]:Ie[ne]}var Ye={Backspace:Xe,Enter:qe};function Re(te){for(var ne=0;ne<te.length;ne++){var he=te.charAt(ne),se="'"+he+"'";Ye[se]||(Ye[se]=Ve(he))}}Re(Ie.pairs+"`");function Ve(te){return function(ne){return st(ne,te)}}function Je(te){var ne=te.state.closeBrackets;if(!ne||ne.override)return ne;var he=te.getModeAt(te.getCursor());return he.closeBrackets||ne}function Xe(te){var ne=Je(te);if(!ne||te.getOption("disableInput"))return le.Pass;for(var he=Le(ne,"pairs"),se=te.listSelections(),ge=0;ge<se.length;ge++){if(!se[ge].empty())return le.Pass;var Se=Nt(te,se[ge].head);if(!Se||he.indexOf(Se)%2!=0)return le.Pass}for(var ge=se.length-1;ge>=0;ge--){var Ae=se[ge].head;te.replaceRange("",De(Ae.line,Ae.ch-1),De(Ae.line,Ae.ch+1),"+delete")}}function qe(te){var ne=Je(te),he=ne&&Le(ne,"explode");if(!he||te.getOption("disableInput"))return le.Pass;for(var se=te.listSelections(),ge=0;ge<se.length;ge++){if(!se[ge].empty())return le.Pass;var Se=Nt(te,se[ge].head);if(!Se||he.indexOf(Se)%2!=0)return le.Pass}te.operation(function(){var Ae=te.lineSeparator()||`
|
|
|
`;te.replaceSelection(Ae+Ae,null),te.execCommand("goCharLeft"),se=te.listSelections();for(var Oe=0;Oe<se.length;Oe++){var Be=se[Oe].head.line;te.indentLine(Be,null,!0),te.indentLine(Be+1,null,!0)}})}function mt(te){var ne=le.cmpPos(te.anchor,te.head)>0;return{anchor:new De(te.anchor.line,te.anchor.ch+(ne?-1:1)),head:new De(te.head.line,te.head.ch+(ne?1:-1))}}function st(te,ne){var he=Je(te);if(!he||te.getOption("disableInput"))return le.Pass;var se=Le(he,"pairs"),ge=se.indexOf(ne);if(ge==-1)return le.Pass;for(var Se=Le(he,"closeBefore"),Ae=Le(he,"triples"),Oe=se.charAt(ge+1)==ne,Be=te.listSelections(),Ke=ge%2==0,rt,ot=0;ot<Be.length;ot++){var ht=Be[ot],bt=ht.head,at,At=te.getRange(bt,De(bt.line,bt.ch+1));if(Ke&&!ht.empty())at="surround";else if((Oe||!Ke)&&At==ne)Oe&&_e(te,bt)?at="both":Ae.indexOf(ne)>=0&&te.getRange(bt,De(bt.line,bt.ch+3))==ne+ne+ne?at="skipThree":at="skip";else if(Oe&&bt.ch>1&&Ae.indexOf(ne)>=0&&te.getRange(De(bt.line,bt.ch-2),bt)==ne+ne){if(bt.ch>2&&/\bstring/.test(te.getTokenTypeAt(De(bt.line,bt.ch-2))))return le.Pass;at="addFour"}else if(Oe){var It=bt.ch==0?" ":te.getRange(De(bt.line,bt.ch-1),bt);if(!le.isWordChar(At)&&It!=ne&&!le.isWordChar(It))at="both";else return le.Pass}else if(Ke&&(At.length===0||/\s/.test(At)||Se.indexOf(At)>-1))at="both";else return le.Pass;if(!rt)rt=at;else if(rt!=at)return le.Pass}var $t=ge%2?se.charAt(ge-1):ne,Tn=ge%2?ne:se.charAt(ge+1);te.operation(function(){if(rt=="skip")te.execCommand("goCharRight");else if(rt=="skipThree")for(var yn=0;yn<3;yn++)te.execCommand("goCharRight");else if(rt=="surround"){for(var un=te.getSelections(),yn=0;yn<un.length;yn++)un[yn]=$t+un[yn]+Tn;te.replaceSelections(un,"around"),un=te.listSelections().slice();for(var yn=0;yn<un.length;yn++)un[yn]=mt(un[yn]);te.setSelections(un)}else rt=="both"?(te.replaceSelection($t+Tn,null),te.triggerElectric($t+Tn),te.execCommand("goCharLeft")):rt=="addFour"&&(te.replaceSelection($t+$t+$t+$t,"before"),te.execCommand("goCharRight"))})}function Nt(te,ne){var he=te.getRange(De(ne.line,ne.ch-1),De(ne.line,ne.ch+1));return he.length==2?he:null}function _e(te,ne){var he=te.getTokenAt(De(ne.line,ne.ch+1));return/\bstring/.test(he.type)&&he.start==ne.ch&&(ne.ch==0||!/\bstring/.test(te.getTokenTypeAt(ne)))}})},6313:function(Ge,be,de){(function(le){le(de(89780),de(32855))})(function(le){le.defineOption("autoCloseTags",!1,function(Xe,qe,mt){if(mt!=le.Init&&mt&&Xe.removeKeyMap("autoCloseTags"),!!qe){var st={name:"autoCloseTags"};(typeof qe!="object"||qe.whenClosing!==!1)&&(st["'/'"]=function(Nt){return Re(Nt)}),(typeof qe!="object"||qe.whenOpening!==!1)&&(st["'>'"]=function(Nt){return Le(Nt)}),Xe.addKeyMap(st)}});var Ie=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],De=["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 Le(Xe){if(Xe.getOption("disableInput"))return le.Pass;for(var qe=Xe.listSelections(),mt=[],st=Xe.getOption("autoCloseTags"),Nt=0;Nt<qe.length;Nt++){if(!qe[Nt].empty())return le.Pass;var _e=qe[Nt].head,te=Xe.getTokenAt(_e),ne=le.innerMode(Xe.getMode(),te.state),he=ne.state,se=ne.mode.xmlCurrentTag&&ne.mode.xmlCurrentTag(he),ge=se&&se.name;if(!ge)return le.Pass;var Se=ne.mode.configuration=="html",Ae=typeof st=="object"&&st.dontCloseTags||Se&&Ie,Oe=typeof st=="object"&&st.indentTags||Se&&De;te.end>_e.ch&&(ge=ge.slice(0,ge.length-te.end+_e.ch));var Be=ge.toLowerCase();if(!ge||te.type=="string"&&(te.end!=_e.ch||!/[\"\']/.test(te.string.charAt(te.string.length-1))||te.string.length==1)||te.type=="tag"&&se.close||te.string.indexOf("/")==_e.ch-te.start-1||Ae&&Ve(Ae,Be)>-1||Je(Xe,ne.mode.xmlCurrentContext&&ne.mode.xmlCurrentContext(he)||[],ge,_e,!0))return le.Pass;var Ke=typeof st=="object"&&st.emptyTags;if(Ke&&Ve(Ke,ge)>-1){mt[Nt]={text:"/>",newPos:le.Pos(_e.line,_e.ch+2)};continue}var rt=Oe&&Ve(Oe,Be)>-1;mt[Nt]={indent:rt,text:">"+(rt?`
|
|
|
|
|
|
`:"")+"</"+ge+">",newPos:rt?le.Pos(_e.line+1,0):le.Pos(_e.line,_e.ch+1)}}for(var ot=typeof st=="object"&&st.dontIndentOnAutoClose,Nt=qe.length-1;Nt>=0;Nt--){var ht=mt[Nt];Xe.replaceRange(ht.text,qe[Nt].head,qe[Nt].anchor,"+insert");var bt=Xe.listSelections().slice(0);bt[Nt]={head:ht.newPos,anchor:ht.newPos},Xe.setSelections(bt),!ot&&ht.indent&&(Xe.indentLine(ht.newPos.line,null,!0),Xe.indentLine(ht.newPos.line+1,null,!0))}}function Ye(Xe,qe){for(var mt=Xe.listSelections(),st=[],Nt=qe?"/":"</",_e=Xe.getOption("autoCloseTags"),te=typeof _e=="object"&&_e.dontIndentOnSlash,ne=0;ne<mt.length;ne++){if(!mt[ne].empty())return le.Pass;var he=mt[ne].head,se=Xe.getTokenAt(he),ge=le.innerMode(Xe.getMode(),se.state),Se=ge.state;if(qe&&(se.type=="string"||se.string.charAt(0)!="<"||se.start!=he.ch-1))return le.Pass;var Ae,Oe=ge.mode.name!="xml"&&Xe.getMode().name=="htmlmixed";if(Oe&&ge.mode.name=="javascript")Ae=Nt+"script";else if(Oe&&ge.mode.name=="css")Ae=Nt+"style";else{var Be=ge.mode.xmlCurrentContext&&ge.mode.xmlCurrentContext(Se);if(!Be||Be.length&&Je(Xe,Be,Be[Be.length-1],he))return le.Pass;Ae=Nt+Be[Be.length-1]}Xe.getLine(he.line).charAt(se.end)!=">"&&(Ae+=">"),st[ne]=Ae}if(Xe.replaceSelections(st),mt=Xe.listSelections(),!te)for(var ne=0;ne<mt.length;ne++)(ne==mt.length-1||mt[ne].head.line<mt[ne+1].head.line)&&Xe.indentLine(mt[ne].head.line)}function Re(Xe){return Xe.getOption("disableInput")?le.Pass:Ye(Xe,!0)}le.commands.closeTag=function(Xe){return Ye(Xe)};function Ve(Xe,qe){if(Xe.indexOf)return Xe.indexOf(qe);for(var mt=0,st=Xe.length;mt<st;++mt)if(Xe[mt]==qe)return mt;return-1}function Je(Xe,qe,mt,st,Nt){if(!le.scanForClosingTag)return!1;var _e=Math.min(Xe.lastLine()+1,st.line+500),te=le.scanForClosingTag(Xe,st,null,_e);if(!te||te.tag!=mt)return!1;for(var ne=Nt?1:0,he=qe.length-1;he>=0&&qe[he]==mt;he--)++ne;st=te.to;for(var he=1;he<ne;he++){var se=le.scanForClosingTag(Xe,st,null,_e);if(!se||se.tag!=mt)return!1;st=se.to}return!0}})},32855:function(Ge,be,de){(function(le){le(de(89780))})(function(le){"use strict";var Ie=le.Pos;function De(he,se){return he.line-se.line||he.ch-se.ch}var Le="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",Ye=Le+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Re=new RegExp("<(/?)(["+Le+"]["+Ye+"]*)","g");function Ve(he,se,ge,Se){this.line=se,this.ch=ge,this.cm=he,this.text=he.getLine(se),this.min=Se?Math.max(Se.from,he.firstLine()):he.firstLine(),this.max=Se?Math.min(Se.to-1,he.lastLine()):he.lastLine()}function Je(he,se){var ge=he.cm.getTokenTypeAt(Ie(he.line,se));return ge&&/\btag\b/.test(ge)}function Xe(he){if(!(he.line>=he.max))return he.ch=0,he.text=he.cm.getLine(++he.line),!0}function qe(he){if(!(he.line<=he.min))return he.text=he.cm.getLine(--he.line),he.ch=he.text.length,!0}function mt(he){for(;;){var se=he.text.indexOf(">",he.ch);if(se==-1){if(Xe(he))continue;return}if(!Je(he,se+1)){he.ch=se+1;continue}var ge=he.text.lastIndexOf("/",se),Se=ge>-1&&!/\S/.test(he.text.slice(ge+1,se));return he.ch=se+1,Se?"selfClose":"regular"}}function st(he){for(;;){var se=he.ch?he.text.lastIndexOf("<",he.ch-1):-1;if(se==-1){if(qe(he))continue;return}if(!Je(he,se+1)){he.ch=se;continue}Re.lastIndex=se,he.ch=se;var ge=Re.exec(he.text);if(ge&&ge.index==se)return ge}}function Nt(he){for(;;){Re.lastIndex=he.ch;var se=Re.exec(he.text);if(!se){if(Xe(he))continue;return}if(!Je(he,se.index+1)){he.ch=se.index+1;continue}return he.ch=se.index+se[0].length,se}}function _e(he){for(;;){var se=he.ch?he.text.lastIndexOf(">",he.ch-1):-1;if(se==-1){if(qe(he))continue;return}if(!Je(he,se+1)){he.ch=se;continue}var ge=he.text.lastIndexOf("/",se),Se=ge>-1&&!/\S/.test(he.text.slice(ge+1,se));return he.ch=se+1,Se?"selfClose":"regular"}}function te(he,se){for(var ge=[];;){var Se=Nt(he),Ae,Oe=he.line,Be=he.ch-(Se?Se[0].length:0);if(!Se||!(Ae=mt(he)))return;if(Ae!="selfClose")if(Se[1]){for(var Ke=ge.length-1;Ke>=0;--Ke)if(ge[Ke]==Se[2]){ge.length=Ke;break}if(Ke<0&&(!se||se==Se[2]))return{tag:Se[2],from:Ie(Oe,Be),to:Ie(he.line,he.ch)}}else ge.push(Se[2])}}function ne(he,se){for(var ge=[];;){var Se=_e(he);if(!Se)return;if(Se=="selfClose"){st(he);continue}var Ae=he.line,Oe=he.ch,Be=st(he);if(!Be)return;if(Be[1])ge.push(Be[2]);else{for(var Ke=ge.length-1;Ke>=0;--Ke)if(ge[Ke]==Be[2]){ge.length=Ke;break}if(Ke<0&&(!se||se==Be[2]))return{tag:Be[2],from:Ie(he.line,he.ch),to:Ie(Ae,Oe)}}}}le.registerHelper("fold","xml",function(he,se){for(var ge=new Ve(he,se.line,0);;){var Se=Nt(ge);if(!Se||ge.line!=se.line)return;var Ae=mt(ge);if(!Ae)return;if(!Se[1]&&Ae!="selfClose"){var Oe=Ie(ge.line,ge.ch),Be=te(ge,Se[2]);return Be&&De(Be.from,Oe)>0?{from:Oe,to:Be.from}:null}}}),le.findMatchingTag=function(he,se,ge){var Se=new Ve(he,se.line,se.ch,ge);if(!(Se.text.indexOf(">")==-1&&Se.text.indexOf("<")==-1)){var Ae=mt(Se),Oe=Ae&&Ie(Se.line,Se.ch),Be=Ae&&st(Se);if(!(!Ae||!Be||De(Se,se)>0)){var Ke={from:Ie(Se.line,Se.ch),to:Oe,tag:Be[2]};return Ae=="selfClose"?{open:Ke,close:null,at:"open"}:Be[1]?{open:ne(Se,Be[2]),close:Ke,at:"close"}:(Se=new Ve(he,Oe.line,Oe.ch,ge),{open:Ke,close:te(Se,Be[2]),at:"open"})}}},le.findEnclosingTag=function(he,se,ge,Se){for(var Ae=new Ve(he,se.line,se.ch,ge);;){var Oe=ne(Ae,Se);if(!Oe)break;var Be=new Ve(he,se.line,se.ch,ge),Ke=te(Be,Oe.tag);if(Ke)return{open:Oe,close:Ke}}},le.scanForClosingTag=function(he,se,ge,Se){var Ae=new Ve(he,se.line,se.ch,Se?{from:0,to:Se}:null);return te(Ae,ge)}})},89780:function(Ge){(function(be,de){Ge.exports=de()})(this,function(){"use strict";var be=navigator.userAgent,de=navigator.platform,le=/gecko\/\d/i.test(be),Ie=/MSIE \d/.test(be),De=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(be),Le=/Edge\/(\d+)/.exec(be),Ye=Ie||De||Le,Re=Ye&&(Ie?document.documentMode||6:+(Le||De)[1]),Ve=!Le&&/WebKit\//.test(be),Je=Ve&&/Qt\/\d+\.\d+/.test(be),Xe=!Le&&/Chrome\//.test(be),qe=/Opera\//.test(be),mt=/Apple Computer/.test(navigator.vendor),st=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(be),Nt=/PhantomJS/.test(be),_e=!Le&&/AppleWebKit/.test(be)&&/Mobile\/\w+/.test(be),te=/Android/.test(be),ne=_e||te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(be),he=_e||/Mac/.test(de),se=/\bCrOS\b/.test(be),ge=/win/i.test(de),Se=qe&&be.match(/Version\/(\d*\.\d*)/);Se&&(Se=Number(Se[1])),Se&&Se>=15&&(qe=!1,Ve=!0);var Ae=he&&(Je||qe&&(Se==null||Se<12.11)),Oe=le||Ye&&Re>=9;function Be(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var Ke=function(ie,ae){var ve=ie.className,me=Be(ae).exec(ve);if(me){var Ee=ve.slice(me.index+me[0].length);ie.className=ve.slice(0,me.index)+(Ee?me[1]+Ee:"")}};function rt(ie){for(var ae=ie.childNodes.length;ae>0;--ae)ie.removeChild(ie.firstChild);return ie}function ot(ie,ae){return rt(ie).appendChild(ae)}function ht(ie,ae,ve,me){var Ee=document.createElement(ie);if(ve&&(Ee.className=ve),me&&(Ee.style.cssText=me),typeof ae=="string")Ee.appendChild(document.createTextNode(ae));else if(ae)for(var Ue=0;Ue<ae.length;++Ue)Ee.appendChild(ae[Ue]);return Ee}function bt(ie,ae,ve,me){var Ee=ht(ie,ae,ve,me);return Ee.setAttribute("role","presentation"),Ee}var at;document.createRange?at=function(ie,ae,ve,me){var Ee=document.createRange();return Ee.setEnd(me||ie,ve),Ee.setStart(ie,ae),Ee}:at=function(ie,ae,ve){var me=document.body.createTextRange();try{me.moveToElementText(ie.parentNode)}catch(Ee){return me}return me.collapse(!0),me.moveEnd("character",ve),me.moveStart("character",ae),me};function At(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 It(){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 $t(ie,ae){var ve=ie.className;Be(ae).test(ve)||(ie.className+=(ve?" ":"")+ae)}function Tn(ie,ae){for(var ve=ie.split(" "),me=0;me<ve.length;me++)ve[me]&&!Be(ve[me]).test(ae)&&(ae+=" "+ve[me]);return ae}var yn=function(ie){ie.select()};_e?yn=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:Ye&&(yn=function(ie){try{ie.select()}catch(ae){}});function un(ie){var ae=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,ae)}}function On(ie,ae,ve){ae||(ae={});for(var me in ie)ie.hasOwnProperty(me)&&(ve!==!1||!ae.hasOwnProperty(me))&&(ae[me]=ie[me]);return ae}function xt(ie,ae,ve,me,Ee){ae==null&&(ae=ie.search(/[^\s\u00a0]/),ae==-1&&(ae=ie.length));for(var Ue=me||0,$e=Ee||0;;){var pt=ie.indexOf(" ",Ue);if(pt<0||pt>=ae)return $e+(ae-Ue);$e+=pt-Ue,$e+=ve-$e%ve,Ue=pt+1}}var ct=function(){this.id=null,this.f=null,this.time=0,this.handler=un(this.onTimeout,this)};ct.prototype.onTimeout=function(ie){ie.id=0,ie.time<=+new Date?ie.f():setTimeout(ie.handler,ie.time-+new Date)},ct.prototype.set=function(ie,ae){this.f=ae;var ve=+new Date+ie;(!this.id||ve<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,ie),this.time=ve)};function it(ie,ae){for(var ve=0;ve<ie.length;++ve)if(ie[ve]==ae)return ve;return-1}var cn=50,An={toString:function(){return"CodeMirror.Pass"}},Pt={scroll:!1},an={origin:"*mouse"},ln={origin:"+move"};function zn(ie,ae,ve){for(var me=0,Ee=0;;){var Ue=ie.indexOf(" ",me);Ue==-1&&(Ue=ie.length);var $e=Ue-me;if(Ue==ie.length||Ee+$e>=ae)return me+Math.min($e,ae-Ee);if(Ee+=Ue-me,Ee+=ve-Ee%ve,me=Ue+1,Ee>=ae)return me}}var En=[""];function ii(ie){for(;En.length<=ie;)En.push(kt(En)+" ");return En[ie]}function kt(ie){return ie[ie.length-1]}function Kn(ie,ae){for(var ve=[],me=0;me<ie.length;me++)ve[me]=ae(ie[me],me);return ve}function yi(ie,ae,ve){for(var me=0,Ee=ve(ae);me<ie.length&&ve(ie[me])<=Ee;)me++;ie.splice(me,0,ae)}function et(){}function ze(ie,ae){var ve;return Object.create?ve=Object.create(ie):(et.prototype=ie,ve=new et),ae&&On(ae,ve),ve}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 Me(ie,ae){return ae?ae.source.indexOf("\\w")>-1&&Te(ie)?!0:ae.test(ie):Te(ie)}function Ce(ie){for(var ae in ie)if(ie.hasOwnProperty(ae)&&ie[ae])return!1;return!0}var ut=/[\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 Lt(ie){return ie.charCodeAt(0)>=768&&ut.test(ie)}function Mt(ie,ae,ve){for(;(ve<0?ae>0:ae<ie.length)&&Lt(ie.charAt(ae));)ae+=ve;return ae}function Yt(ie,ae,ve){for(var me=ae>ve?-1:1;;){if(ae==ve)return ae;var Ee=(ae+ve)/2,Ue=me<0?Math.ceil(Ee):Math.floor(Ee);if(Ue==ae)return ie(Ue)?ae:ve;ie(Ue)?ve=Ue:ae=Ue+me}}function Vt(ie,ae,ve,me){if(!ie)return me(ae,ve,"ltr",0);for(var Ee=!1,Ue=0;Ue<ie.length;++Ue){var $e=ie[Ue];($e.from<ve&&$e.to>ae||ae==ve&&$e.to==ae)&&(me(Math.max($e.from,ae),Math.min($e.to,ve),$e.level==1?"rtl":"ltr",Ue),Ee=!0)}Ee||me(ae,ve,"ltr")}var Gt=null;function gn(ie,ae,ve){var me;Gt=null;for(var Ee=0;Ee<ie.length;++Ee){var Ue=ie[Ee];if(Ue.from<ae&&Ue.to>ae)return Ee;Ue.to==ae&&(Ue.from!=Ue.to&&ve=="before"?me=Ee:Gt=Ee),Ue.from==ae&&(Ue.from!=Ue.to&&ve!="before"?me=Ee:Gt=Ee)}return me!=null?me:Gt}var qt=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ae="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ve(Ct){return Ct<=247?ie.charAt(Ct):1424<=Ct&&Ct<=1524?"R":1536<=Ct&&Ct<=1785?ae.charAt(Ct-1536):1774<=Ct&&Ct<=2220?"r":8192<=Ct&&Ct<=8203?"w":Ct==8204?"b":"L"}var me=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Ee=/[stwN]/,Ue=/[LRr]/,$e=/[Lb1n]/,pt=/[1n]/;function ft(Ct,hn,Rt){this.level=Ct,this.from=hn,this.to=Rt}return function(Ct,hn){var Rt=hn=="ltr"?"L":"R";if(Ct.length==0||hn=="ltr"&&!me.test(Ct))return!1;for(var Gn=Ct.length,Rn=[],Mi=0;Mi<Gn;++Mi)Rn.push(ve(Ct.charCodeAt(Mi)));for(var Oi=0,Vi=Rt;Oi<Gn;++Oi){var fr=Rn[Oi];fr=="m"?Rn[Oi]=Vi:Vi=fr}for(var Pr=0,br=Rt;Pr<Gn;++Pr){var _r=Rn[Pr];_r=="1"&&br=="r"?Rn[Pr]="n":Ue.test(_r)&&(br=_r,_r=="r"&&(Rn[Pr]="R"))}for(var io=1,xr=Rn[0];io<Gn-1;++io){var No=Rn[io];No=="+"&&xr=="1"&&Rn[io+1]=="1"?Rn[io]="1":No==","&&xr==Rn[io+1]&&(xr=="1"||xr=="n")&&(Rn[io]=xr),xr=No}for(var Da=0;Da<Gn;++Da){var Is=Rn[Da];if(Is==",")Rn[Da]="N";else if(Is=="%"){var Wa=void 0;for(Wa=Da+1;Wa<Gn&&Rn[Wa]=="%";++Wa);for(var Ul=Da&&Rn[Da-1]=="!"||Wa<Gn&&Rn[Wa]=="1"?"1":"N",gl=Da;gl<Wa;++gl)Rn[gl]=Ul;Da=Wa-1}}for(var Es=0,eu=Rt;Es<Gn;++Es){var il=Rn[Es];eu=="L"&&il=="1"?Rn[Es]="L":Ue.test(il)&&(eu=il)}for(var xs=0;xs<Gn;++xs)if(Ee.test(Rn[xs])){var $o=void 0;for($o=xs+1;$o<Gn&&Ee.test(Rn[$o]);++$o);for(var Xa=(xs?Rn[xs-1]:Rt)=="L",Us=($o<Gn?Rn[$o]:Rt)=="L",rl=Xa==Us?Xa?"L":"R":Rt,Ju=xs;Ju<$o;++Ju)Rn[Ju]=rl;xs=$o-1}for(var Va=[],Ou,is=0;is<Gn;)if($e.test(Rn[is])){var rf=is;for(++is;is<Gn&&$e.test(Rn[is]);++is);Va.push(new ft(0,rf,is))}else{var vu=is,tu=Va.length,Hl=hn=="rtl"?1:0;for(++is;is<Gn&&Rn[is]!="L";++is);for(var Ea=vu;Ea<is;)if(pt.test(Rn[Ea])){vu<Ea&&(Va.splice(tu,0,new ft(1,vu,Ea)),tu+=Hl);var Hs=Ea;for(++Ea;Ea<is&&pt.test(Rn[Ea]);++Ea);Va.splice(tu,0,new ft(2,Hs,Ea)),tu+=Hl,vu=Ea}else++Ea;vu<is&&Va.splice(tu,0,new ft(1,vu,is))}return hn=="ltr"&&(Va[0].level==1&&(Ou=Ct.match(/^\s+/))&&(Va[0].from=Ou[0].length,Va.unshift(new ft(0,0,Ou[0].length))),kt(Va).level==1&&(Ou=Ct.match(/\s+$/))&&(kt(Va).to-=Ou[0].length,Va.push(new ft(0,Gn-Ou[0].length,Gn)))),hn=="rtl"?Va.reverse():Va}}();function fn(ie,ae){var ve=ie.order;return ve==null&&(ve=ie.order=qt(ie.text,ae)),ve}var sn=[],_t=function(ie,ae,ve){if(ie.addEventListener)ie.addEventListener(ae,ve,!1);else if(ie.attachEvent)ie.attachEvent("on"+ae,ve);else{var me=ie._handlers||(ie._handlers={});me[ae]=(me[ae]||sn).concat(ve)}};function wn(ie,ae){return ie._handlers&&ie._handlers[ae]||sn}function dn(ie,ae,ve){if(ie.removeEventListener)ie.removeEventListener(ae,ve,!1);else if(ie.detachEvent)ie.detachEvent("on"+ae,ve);else{var me=ie._handlers,Ee=me&&me[ae];if(Ee){var Ue=it(Ee,ve);Ue>-1&&(me[ae]=Ee.slice(0,Ue).concat(Ee.slice(Ue+1)))}}}function Sn(ie,ae){var ve=wn(ie,ae);if(ve.length)for(var me=Array.prototype.slice.call(arguments,2),Ee=0;Ee<ve.length;++Ee)ve[Ee].apply(null,me)}function nn(ie,ae,ve){return typeof ae=="string"&&(ae={type:ae,preventDefault:function(){this.defaultPrevented=!0}}),Sn(ie,ve||ae.type,ie,ae),Ht(ae)||ae.codemirrorIgnore}function si(ie){var ae=ie._handlers&&ie._handlers.cursorActivity;if(ae)for(var ve=ie.curOp.cursorActivityHandlers||(ie.curOp.cursorActivityHandlers=[]),me=0;me<ae.length;++me)it(ve,ae[me])==-1&&ve.push(ae[me])}function Fn(ie,ae){return wn(ie,ae).length>0}function yt(ie){ie.prototype.on=function(ae,ve){_t(this,ae,ve)},ie.prototype.off=function(ae,ve){dn(this,ae,ve)}}function kn(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function Cn(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function Ht(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function di(ie){kn(ie),Cn(ie)}function zi(ie){return ie.target||ie.srcElement}function Ni(ie){var ae=ie.which;return ae==null&&(ie.button&1?ae=1:ie.button&2?ae=3:ie.button&4&&(ae=2)),he&&ie.ctrlKey&&ae==1&&(ae=3),ae}var Ln=function(){if(Ye&&Re<9)return!1;var ie=ht("div");return"draggable"in ie||"dragDrop"in ie}(),rr;function Hi(ie){if(rr==null){var ae=ht("span","\u200B");ot(ie,ht("span",[ae,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(rr=ae.offsetWidth<=1&&ae.offsetHeight>2&&!(Ye&&Re<8))}var ve=rr?ht("span","\u200B"):ht("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ve.setAttribute("cm-text",""),ve}var ui;function wi(ie){if(ui!=null)return ui;var ae=ot(ie,document.createTextNode("A\u062EA")),ve=at(ae,0,1).getBoundingClientRect(),me=at(ae,1,2).getBoundingClientRect();return rt(ie),!ve||ve.left==ve.right?!1:ui=me.right-ve.right<3}var Di=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(ie){for(var ae=0,ve=[],me=ie.length;ae<=me;){var Ee=ie.indexOf(`
|
|
|
`,ae);Ee==-1&&(Ee=ie.length);var Ue=ie.slice(ae,ie.charAt(Ee-1)=="\r"?Ee-1:Ee),$e=Ue.indexOf("\r");$e!=-1?(ve.push(Ue.slice(0,$e)),ae+=$e+1):(ve.push(Ue),ae=Ee+1)}return ve}:function(ie){return ie.split(/\r\n?|\n/)},ke=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(ve){}return!ae||ae.parentElement()!=ie?!1:ae.compareEndPoints("StartToEnd",ae)!=0},mi=function(){var ie=ht("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),ki=null;function Yn(ie){if(ki!=null)return ki;var ae=ot(ie,ht("span","x")),ve=ae.getBoundingClientRect(),me=at(ae,0,1).getBoundingClientRect();return ki=Math.abs(ve.left-me.left)>1}var fi={},Ai={};function xi(ie,ae){arguments.length>2&&(ae.dependencies=Array.prototype.slice.call(arguments,2)),fi[ie]=ae}function hr(ie,ae){Ai[ie]=ae}function er(ie){if(typeof ie=="string"&&Ai.hasOwnProperty(ie))ie=Ai[ie];else if(ie&&typeof ie.name=="string"&&Ai.hasOwnProperty(ie.name)){var ae=Ai[ie.name];typeof ae=="string"&&(ae={name:ae}),ie=ze(ae,ie),ie.name=ae.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return er("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return er("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function Kt(ie,ae){ae=er(ae);var ve=fi[ae.name];if(!ve)return Kt(ie,"text/plain");var me=ve(ie,ae);if(en.hasOwnProperty(ae.name)){var Ee=en[ae.name];for(var Ue in Ee)Ee.hasOwnProperty(Ue)&&(me.hasOwnProperty(Ue)&&(me["_"+Ue]=me[Ue]),me[Ue]=Ee[Ue])}if(me.name=ae.name,ae.helperType&&(me.helperType=ae.helperType),ae.modeProps)for(var $e in ae.modeProps)me[$e]=ae.modeProps[$e];return me}var en={};function zt(ie,ae){var ve=en.hasOwnProperty(ie)?en[ie]:en[ie]={};On(ae,ve)}function on(ie,ae){if(ae===!0)return ae;if(ie.copyState)return ie.copyState(ae);var ve={};for(var me in ae){var Ee=ae[me];Ee instanceof Array&&(Ee=Ee.concat([])),ve[me]=Ee}return ve}function rn(ie,ae){for(var ve;ie.innerMode&&(ve=ie.innerMode(ae),!(!ve||ve.mode==ie));)ae=ve.state,ie=ve.mode;return ve||{mode:ie,state:ae}}function mn(ie,ae,ve){return ie.startState?ie.startState(ae,ve):!0}var Bn=function(ie,ae,ve){this.pos=this.start=0,this.string=ie,this.tabSize=ae||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ve};Bn.prototype.eol=function(){return this.pos>=this.string.length},Bn.prototype.sol=function(){return this.pos==this.lineStart},Bn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Bn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Bn.prototype.eat=function(ie){var ae=this.string.charAt(this.pos),ve;if(typeof ie=="string"?ve=ae==ie:ve=ae&&(ie.test?ie.test(ae):ie(ae)),ve)return++this.pos,ae},Bn.prototype.eatWhile=function(ie){for(var ae=this.pos;this.eat(ie););return this.pos>ae},Bn.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},Bn.prototype.skipToEnd=function(){this.pos=this.string.length},Bn.prototype.skipTo=function(ie){var ae=this.string.indexOf(ie,this.pos);if(ae>-1)return this.pos=ae,!0},Bn.prototype.backUp=function(ie){this.pos-=ie},Bn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=xt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?xt(this.string,this.lineStart,this.tabSize):0)},Bn.prototype.indentation=function(){return xt(this.string,null,this.tabSize)-(this.lineStart?xt(this.string,this.lineStart,this.tabSize):0)},Bn.prototype.match=function(ie,ae,ve){if(typeof ie=="string"){var me=function($e){return ve?$e.toLowerCase():$e},Ee=this.string.substr(this.pos,ie.length);if(me(Ee)==me(ie))return ae!==!1&&(this.pos+=ie.length),!0}else{var Ue=this.string.slice(this.pos).match(ie);return Ue&&Ue.index>0?null:(Ue&&ae!==!1&&(this.pos+=Ue[0].length),Ue)}},Bn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Bn.prototype.hideFirstChars=function(ie,ae){this.lineStart+=ie;try{return ae()}finally{this.lineStart-=ie}},Bn.prototype.lookAhead=function(ie){var ae=this.lineOracle;return ae&&ae.lookAhead(ie)},Bn.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function ei(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 ve=ie;!ve.lines;)for(var me=0;;++me){var Ee=ve.children[me],Ue=Ee.chunkSize();if(ae<Ue){ve=Ee;break}ae-=Ue}return ve.lines[ae]}function ji(ie,ae,ve){var me=[],Ee=ae.line;return ie.iter(ae.line,ve.line+1,function(Ue){var $e=Ue.text;Ee==ve.line&&($e=$e.slice(0,ve.ch)),Ee==ae.line&&($e=$e.slice(ae.ch)),me.push($e),++Ee}),me}function Fi(ie,ae,ve){var me=[];return ie.iter(ae,ve,function(Ee){me.push(Ee.text)}),me}function Yi(ie,ae){var ve=ae-ie.height;if(ve)for(var me=ie;me;me=me.parent)me.height+=ve}function lt(ie){if(ie.parent==null)return null;for(var ae=ie.parent,ve=it(ae.lines,ie),me=ae.parent;me;ae=me,me=me.parent)for(var Ee=0;me.children[Ee]!=ae;++Ee)ve+=me.children[Ee].chunkSize();return ve+ae.first}function Ut(ie,ae){var ve=ie.first;e:do{for(var me=0;me<ie.children.length;++me){var Ee=ie.children[me],Ue=Ee.height;if(ae<Ue){ie=Ee;continue e}ae-=Ue,ve+=Ee.chunkSize()}return ve}while(!ie.lines);for(var $e=0;$e<ie.lines.length;++$e){var pt=ie.lines[$e],ft=pt.height;if(ae<ft)break;ae-=ft}return ve+$e}function oi(ie,ae){return ae>=ie.first&&ae<ie.first+ie.size}function gi(ie,ae){return String(ie.lineNumberFormatter(ae+ie.firstLineNumber))}function jt(ie,ae,ve){if(ve===void 0&&(ve=null),!(this instanceof jt))return new jt(ie,ae,ve);this.line=ie,this.ch=ae,this.sticky=ve}function Vn(ie,ae){return ie.line-ae.line||ie.ch-ae.ch}function ni(ie,ae){return ie.sticky==ae.sticky&&Vn(ie,ae)==0}function Zt(ie){return jt(ie.line,ie.ch)}function je(ie,ae){return Vn(ie,ae)<0?ae:ie}function ci(ie,ae){return Vn(ie,ae)<0?ie:ae}function pi(ie,ae){return Math.max(ie.first,Math.min(ae,ie.first+ie.size-1))}function bn(ie,ae){if(ae.line<ie.first)return jt(ie.first,0);var ve=ie.first+ie.size-1;return ae.line>ve?jt(ve,ei(ie,ve).text.length):Ki(ae,ei(ie,ae.line).text.length)}function Ki(ie,ae){var ve=ie.ch;return ve==null||ve>ae?jt(ie.line,ae):ve<0?jt(ie.line,0):ie}function Ui(ie,ae){for(var ve=[],me=0;me<ae.length;me++)ve[me]=bn(ie,ae[me]);return ve}var Wi=function(ie,ae){this.state=ie,this.lookAhead=ae},vn=function(ie,ae,ve,me){this.state=ae,this.doc=ie,this.line=ve,this.maxLookAhead=me||0,this.baseTokens=null,this.baseTokenPos=1};vn.prototype.lookAhead=function(ie){var ae=this.doc.getLine(this.line+ie);return ae!=null&&ie>this.maxLookAhead&&(this.maxLookAhead=ie),ae},vn.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}},vn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},vn.fromSaved=function(ie,ae,ve){return ae instanceof Wi?new vn(ie,on(ie.mode,ae.state),ve,ae.lookAhead):new vn(ie,on(ie.mode,ae),ve)},vn.prototype.save=function(ie){var ae=ie!==!1?on(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Wi(ae,this.maxLookAhead):ae};function Wt(ie,ae,ve,me){var Ee=[ie.state.modeGen],Ue={};gr(ie,ae.text,ie.doc.mode,ve,function(Ct,hn){return Ee.push(Ct,hn)},Ue,me);for(var $e=ve.state,pt=function(Ct){ve.baseTokens=Ee;var hn=ie.state.overlays[Ct],Rt=1,Gn=0;ve.state=!0,gr(ie,ae.text,hn.mode,ve,function(Rn,Mi){for(var Oi=Rt;Gn<Rn;){var Vi=Ee[Rt];Vi>Rn&&Ee.splice(Rt,1,Rn,Ee[Rt+1],Vi),Rt+=2,Gn=Math.min(Rn,Vi)}if(Mi)if(hn.opaque)Ee.splice(Oi,Rt-Oi,Rn,"overlay "+Mi),Rt=Oi+2;else for(;Oi<Rt;Oi+=2){var fr=Ee[Oi+1];Ee[Oi+1]=(fr?fr+" ":"")+"overlay "+Mi}},Ue),ve.state=$e,ve.baseTokens=null,ve.baseTokenPos=1},ft=0;ft<ie.state.overlays.length;++ft)pt(ft);return{styles:Ee,classes:Ue.bgClass||Ue.textClass?Ue:null}}function ar(ie,ae,ve){if(!ae.styles||ae.styles[0]!=ie.state.modeGen){var me=Zr(ie,lt(ae)),Ee=ae.text.length>ie.options.maxHighlightLength&&on(ie.doc.mode,me.state),Ue=Wt(ie,ae,me);Ee&&(me.state=Ee),ae.stateAfter=me.save(!Ee),ae.styles=Ue.styles,Ue.classes?ae.styleClasses=Ue.classes:ae.styleClasses&&(ae.styleClasses=null),ve===ie.doc.highlightFrontier&&(ie.doc.modeFrontier=Math.max(ie.doc.modeFrontier,++ie.doc.highlightFrontier))}return ae.styles}function Zr(ie,ae,ve){var me=ie.doc,Ee=ie.display;if(!me.mode.startState)return new vn(me,!0,ae);var Ue=Tr(ie,ae,ve),$e=Ue>me.first&&ei(me,Ue-1).stateAfter,pt=$e?vn.fromSaved(me,$e,Ue):new vn(me,mn(me.mode),Ue);return me.iter(Ue,ae,function(ft){Mn(ie,ft.text,pt);var Ct=pt.line;ft.stateAfter=Ct==ae-1||Ct%5==0||Ct>=Ee.viewFrom&&Ct<Ee.viewTo?pt.save():null,pt.nextLine()}),ve&&(me.modeFrontier=pt.line),pt}function Mn(ie,ae,ve,me){var Ee=ie.doc.mode,Ue=new Bn(ae,ie.options.tabSize,ve);for(Ue.start=Ue.pos=me||0,ae==""&&hi(Ee,ve.state);!Ue.eol();)Pi(Ee,Ue,ve.state),Ue.start=Ue.pos}function hi(ie,ae){if(ie.blankLine)return ie.blankLine(ae);if(ie.innerMode){var ve=rn(ie,ae);if(ve.mode.blankLine)return ve.mode.blankLine(ve.state)}}function Pi(ie,ae,ve,me){for(var Ee=0;Ee<10;Ee++){me&&(me[0]=rn(ie,ve).mode);var Ue=ie.token(ae,ve);if(ae.pos>ae.start)return Ue}throw new Error("Mode "+ie.name+" failed to advance stream.")}var Li=function(ie,ae,ve){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=ae||null,this.state=ve};function Ri(ie,ae,ve,me){var Ee=ie.doc,Ue=Ee.mode,$e;ae=bn(Ee,ae);var pt=ei(Ee,ae.line),ft=Zr(ie,ae.line,ve),Ct=new Bn(pt.text,ie.options.tabSize,ft),hn;for(me&&(hn=[]);(me||Ct.pos<ae.ch)&&!Ct.eol();)Ct.start=Ct.pos,$e=Pi(Ue,Ct,ft.state),me&&hn.push(new Li(Ct,$e,on(Ee.mode,ft.state)));return me?hn:new Li(Ct,$e,ft.state)}function sr(ie,ae){if(ie)for(;;){var ve=ie.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ve)break;ie=ie.slice(0,ve.index)+ie.slice(ve.index+ve[0].length);var me=ve[1]?"bgClass":"textClass";ae[me]==null?ae[me]=ve[2]:new RegExp("(?:^|\\s)"+ve[2]+"(?:$|\\s)").test(ae[me])||(ae[me]+=" "+ve[2])}return ie}function gr(ie,ae,ve,me,Ee,Ue,$e){var pt=ve.flattenSpans;pt==null&&(pt=ie.options.flattenSpans);var ft=0,Ct=null,hn=new Bn(ae,ie.options.tabSize,me),Rt,Gn=ie.options.addModeClass&&[null];for(ae==""&&sr(hi(ve,me.state),Ue);!hn.eol();){if(hn.pos>ie.options.maxHighlightLength?(pt=!1,$e&&Mn(ie,ae,me,hn.pos),hn.pos=ae.length,Rt=null):Rt=sr(Pi(ve,hn,me.state,Gn),Ue),Gn){var Rn=Gn[0].name;Rn&&(Rt="m-"+(Rt?Rn+" "+Rt:Rn))}if(!pt||Ct!=Rt){for(;ft<hn.start;)ft=Math.min(hn.start,ft+5e3),Ee(ft,Ct);Ct=Rt}hn.start=hn.pos}for(;ft<hn.pos;){var Mi=Math.min(hn.pos,ft+5e3);Ee(Mi,Ct),ft=Mi}}function Tr(ie,ae,ve){for(var me,Ee,Ue=ie.doc,$e=ve?-1:ae-(ie.doc.mode.innerMode?1e3:100),pt=ae;pt>$e;--pt){if(pt<=Ue.first)return Ue.first;var ft=ei(Ue,pt-1),Ct=ft.stateAfter;if(Ct&&(!ve||pt+(Ct instanceof Wi?Ct.lookAhead:0)<=Ue.modeFrontier))return pt;var hn=xt(ft.text,null,ie.options.tabSize);(Ee==null||me>hn)&&(Ee=pt-1,me=hn)}return Ee}function Ar(ie,ae){if(ie.modeFrontier=Math.min(ie.modeFrontier,ae),!(ie.highlightFrontier<ae-10)){for(var ve=ie.first,me=ae-1;me>ve;me--){var Ee=ei(ie,me).stateAfter;if(Ee&&(!(Ee instanceof Wi)||me+Ee.lookAhead<ae)){ve=me+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,ve)}}var Rr=!1,Un=!1;function pr(){Rr=!0}function Dn(){Un=!0}function Lr(ie,ae,ve){this.marker=ie,this.from=ae,this.to=ve}function ro(ie,ae){if(ie)for(var ve=0;ve<ie.length;++ve){var me=ie[ve];if(me.marker==ae)return me}}function Ir(ie,ae){for(var ve,me=0;me<ie.length;++me)ie[me]!=ae&&(ve||(ve=[])).push(ie[me]);return ve}function Vr(ie,ae){ie.markedSpans=ie.markedSpans?ie.markedSpans.concat([ae]):[ae],ae.marker.attachLine(ie)}function Mr(ie,ae,ve){var me;if(ie)for(var Ee=0;Ee<ie.length;++Ee){var Ue=ie[Ee],$e=Ue.marker,pt=Ue.from==null||($e.inclusiveLeft?Ue.from<=ae:Ue.from<ae);if(pt||Ue.from==ae&&$e.type=="bookmark"&&(!ve||!Ue.marker.insertLeft)){var ft=Ue.to==null||($e.inclusiveRight?Ue.to>=ae:Ue.to>ae);(me||(me=[])).push(new Lr($e,Ue.from,ft?null:Ue.to))}}return me}function Sr(ie,ae,ve){var me;if(ie)for(var Ee=0;Ee<ie.length;++Ee){var Ue=ie[Ee],$e=Ue.marker,pt=Ue.to==null||($e.inclusiveRight?Ue.to>=ae:Ue.to>ae);if(pt||Ue.from==ae&&$e.type=="bookmark"&&(!ve||Ue.marker.insertLeft)){var ft=Ue.from==null||($e.inclusiveLeft?Ue.from<=ae:Ue.from<ae);(me||(me=[])).push(new Lr($e,ft?null:Ue.from-ae,Ue.to==null?null:Ue.to-ae))}}return me}function Qr(ie,ae){if(ae.full)return null;var ve=oi(ie,ae.from.line)&&ei(ie,ae.from.line).markedSpans,me=oi(ie,ae.to.line)&&ei(ie,ae.to.line).markedSpans;if(!ve&&!me)return null;var Ee=ae.from.ch,Ue=ae.to.ch,$e=Vn(ae.from,ae.to)==0,pt=Mr(ve,Ee,$e),ft=Sr(me,Ue,$e),Ct=ae.text.length==1,hn=kt(ae.text).length+(Ct?Ee:0);if(pt)for(var Rt=0;Rt<pt.length;++Rt){var Gn=pt[Rt];if(Gn.to==null){var Rn=ro(ft,Gn.marker);Rn?Ct&&(Gn.to=Rn.to==null?null:Rn.to+hn):Gn.to=Ee}}if(ft)for(var Mi=0;Mi<ft.length;++Mi){var Oi=ft[Mi];if(Oi.to!=null&&(Oi.to+=hn),Oi.from==null){var Vi=ro(pt,Oi.marker);Vi||(Oi.from=hn,Ct&&(pt||(pt=[])).push(Oi))}else Oi.from+=hn,Ct&&(pt||(pt=[])).push(Oi)}pt&&(pt=Ro(pt)),ft&&ft!=pt&&(ft=Ro(ft));var fr=[pt];if(!Ct){var Pr=ae.text.length-2,br;if(Pr>0&&pt)for(var _r=0;_r<pt.length;++_r)pt[_r].to==null&&(br||(br=[])).push(new Lr(pt[_r].marker,null,null));for(var io=0;io<Pr;++io)fr.push(br);fr.push(ft)}return fr}function Ro(ie){for(var ae=0;ae<ie.length;++ae){var ve=ie[ae];ve.from!=null&&ve.from==ve.to&&ve.marker.clearWhenEmpty!==!1&&ie.splice(ae--,1)}return ie.length?ie:null}function qr(ie,ae,ve){var me=null;if(ie.iter(ae.line,ve.line+1,function(Rn){if(Rn.markedSpans)for(var Mi=0;Mi<Rn.markedSpans.length;++Mi){var Oi=Rn.markedSpans[Mi].marker;Oi.readOnly&&(!me||it(me,Oi)==-1)&&(me||(me=[])).push(Oi)}}),!me)return null;for(var Ee=[{from:ae,to:ve}],Ue=0;Ue<me.length;++Ue)for(var $e=me[Ue],pt=$e.find(0),ft=0;ft<Ee.length;++ft){var Ct=Ee[ft];if(!(Vn(Ct.to,pt.from)<0||Vn(Ct.from,pt.to)>0)){var hn=[ft,1],Rt=Vn(Ct.from,pt.from),Gn=Vn(Ct.to,pt.to);(Rt<0||!$e.inclusiveLeft&&!Rt)&&hn.push({from:Ct.from,to:pt.from}),(Gn>0||!$e.inclusiveRight&&!Gn)&&hn.push({from:pt.to,to:Ct.to}),Ee.splice.apply(Ee,hn),ft+=hn.length-3}}return Ee}function vi(ie){var ae=ie.markedSpans;if(ae){for(var ve=0;ve<ae.length;++ve)ae[ve].marker.detachLine(ie);ie.markedSpans=null}}function dt(ie,ae){if(ae){for(var ve=0;ve<ae.length;++ve)ae[ve].marker.attachLine(ie);ie.markedSpans=ae}}function ho(ie){return ie.inclusiveLeft?-1:0}function yo(ie){return ie.inclusiveRight?1:0}function ua(ie,ae){var ve=ie.lines.length-ae.lines.length;if(ve!=0)return ve;var me=ie.find(),Ee=ae.find(),Ue=Vn(me.from,Ee.from)||ho(ie)-ho(ae);if(Ue)return-Ue;var $e=Vn(me.to,Ee.to)||yo(ie)-yo(ae);return $e||ae.id-ie.id}function Vo(ie,ae){var ve=Un&&ie.markedSpans,me;if(ve)for(var Ee=void 0,Ue=0;Ue<ve.length;++Ue)Ee=ve[Ue],Ee.marker.collapsed&&(ae?Ee.from:Ee.to)==null&&(!me||ua(me,Ee.marker)<0)&&(me=Ee.marker);return me}function Kr(ie){return Vo(ie,!0)}function Zi(ie){return Vo(ie,!1)}function tr(ie,ae){var ve=Un&&ie.markedSpans,me;if(ve)for(var Ee=0;Ee<ve.length;++Ee){var Ue=ve[Ee];Ue.marker.collapsed&&(Ue.from==null||Ue.from<ae)&&(Ue.to==null||Ue.to>ae)&&(!me||ua(me,Ue.marker)<0)&&(me=Ue.marker)}return me}function kr(ie,ae,ve,me,Ee){var Ue=ei(ie,ae),$e=Un&&Ue.markedSpans;if($e)for(var pt=0;pt<$e.length;++pt){var ft=$e[pt];if(ft.marker.collapsed){var Ct=ft.marker.find(0),hn=Vn(Ct.from,ve)||ho(ft.marker)-ho(Ee),Rt=Vn(Ct.to,me)||yo(ft.marker)-yo(Ee);if(!(hn>=0&&Rt<=0||hn<=0&&Rt>=0)&&(hn<=0&&(ft.marker.inclusiveRight&&Ee.inclusiveLeft?Vn(Ct.to,ve)>=0:Vn(Ct.to,ve)>0)||hn>=0&&(ft.marker.inclusiveRight&&Ee.inclusiveLeft?Vn(Ct.from,me)<=0:Vn(Ct.from,me)<0)))return!0}}}function Ji(ie){for(var ae;ae=Kr(ie);)ie=ae.find(-1,!0).line;return ie}function Cr(ie){for(var ae;ae=Zi(ie);)ie=ae.find(1,!0).line;return ie}function uo(ie){for(var ae,ve;ae=Zi(ie);)ie=ae.find(1,!0).line,(ve||(ve=[])).push(ie);return ve}function nr(ie,ae){var ve=ei(ie,ae),me=Ji(ve);return ve==me?ae:lt(me)}function Qi(ie,ae){if(ae>ie.lastLine())return ae;var ve=ei(ie,ae),me;if(!ti(ie,ve))return ae;for(;me=Zi(ve);)ve=me.find(1,!0).line;return lt(ve)+1}function ti(ie,ae){var ve=Un&&ae.markedSpans;if(ve){for(var me=void 0,Ee=0;Ee<ve.length;++Ee)if(me=ve[Ee],!!me.marker.collapsed){if(me.from==null)return!0;if(!me.marker.widgetNode&&me.from==0&&me.marker.inclusiveLeft&&lr(ie,ae,me))return!0}}}function lr(ie,ae,ve){if(ve.to==null){var me=ve.marker.find(1,!0);return lr(ie,me.line,ro(me.line.markedSpans,ve.marker))}if(ve.marker.inclusiveRight&&ve.to==ae.text.length)return!0;for(var Ee=void 0,Ue=0;Ue<ae.markedSpans.length;++Ue)if(Ee=ae.markedSpans[Ue],Ee.marker.collapsed&&!Ee.marker.widgetNode&&Ee.from==ve.to&&(Ee.to==null||Ee.to!=ve.from)&&(Ee.marker.inclusiveLeft||ve.marker.inclusiveRight)&&lr(ie,ae,Ee))return!0}function Gr(ie){ie=Ji(ie);for(var ae=0,ve=ie.parent,me=0;me<ve.lines.length;++me){var Ee=ve.lines[me];if(Ee==ie)break;ae+=Ee.height}for(var Ue=ve.parent;Ue;ve=Ue,Ue=ve.parent)for(var $e=0;$e<Ue.children.length;++$e){var pt=Ue.children[$e];if(pt==ve)break;ae+=pt.height}return ae}function Lo(ie){if(ie.height==0)return 0;for(var ae=ie.text.length,ve,me=ie;ve=Kr(me);){var Ee=ve.find(0,!0);me=Ee.from.line,ae+=Ee.from.ch-Ee.to.ch}for(me=ie;ve=Zi(me);){var Ue=ve.find(0,!0);ae-=me.text.length-Ue.from.ch,me=Ue.to.line,ae+=me.text.length-Ue.to.ch}return ae}function ao(ie){var ae=ie.display,ve=ie.doc;ae.maxLine=ei(ve,ve.first),ae.maxLineLength=Lo(ae.maxLine),ae.maxLineChanged=!0,ve.iter(function(me){var Ee=Lo(me);Ee>ae.maxLineLength&&(ae.maxLineLength=Ee,ae.maxLine=me)})}var Zo=function(ie,ae,ve){this.text=ie,dt(this,ae),this.height=ve?ve(this):1};Zo.prototype.lineNo=function(){return lt(this)},yt(Zo);function Xo(ie,ae,ve,me){ie.text=ae,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),vi(ie),dt(ie,ve);var Ee=me?me(ie):1;Ee!=ie.height&&Yi(ie,Ee)}function Go(ie){ie.parent=null,vi(ie)}var Jo={},Yo={};function ra(ie,ae){if(!ie||/^\s*$/.test(ie))return null;var ve=ae.addModeClass?Yo:Jo;return ve[ie]||(ve[ie]=ie.replace(/\S+/g,"cm-$&"))}function pn(ie,ae){var ve=bt("span",null,null,Ve?"padding-right: .1px":null),me={pre:bt("pre",[ve],"CodeMirror-line"),content:ve,col:0,pos:0,cm:ie,trailingSpace:!1,splitSpaces:ie.getOption("lineWrapping")};ae.measure={};for(var Ee=0;Ee<=(ae.rest?ae.rest.length:0);Ee++){var Ue=Ee?ae.rest[Ee-1]:ae.line,$e=void 0;me.pos=0,me.addToken=qs,wi(ie.display.measure)&&($e=fn(Ue,ie.doc.direction))&&(me.addToken=$a(me.addToken,$e)),me.map=[];var pt=ae!=ie.display.externalMeasured&<(Ue);ms(Ue,me,ar(ie,Ue,pt)),Ue.styleClasses&&(Ue.styleClasses.bgClass&&(me.bgClass=Tn(Ue.styleClasses.bgClass,me.bgClass||"")),Ue.styleClasses.textClass&&(me.textClass=Tn(Ue.styleClasses.textClass,me.textClass||""))),me.map.length==0&&me.map.push(0,0,me.content.appendChild(Hi(ie.display.measure))),Ee==0?(ae.measure.map=me.map,ae.measure.cache={}):((ae.measure.maps||(ae.measure.maps=[])).push(me.map),(ae.measure.caches||(ae.measure.caches=[])).push({}))}if(Ve){var ft=me.content.lastChild;(/\bcm-tab\b/.test(ft.className)||ft.querySelector&&ft.querySelector(".cm-tab"))&&(me.content.className="cm-tab-wrap-hack")}return Sn(ie,"renderLine",ie,ae.line,me.pre),me.pre.className&&(me.textClass=Tn(me.pre.className,me.textClass||"")),me}function wa(ie){var ae=ht("span","\u2022","cm-invalidchar");return ae.title="\\u"+ie.charCodeAt(0).toString(16),ae.setAttribute("aria-label",ae.title),ae}function qs(ie,ae,ve,me,Ee,Ue,$e){if(ae){var pt=ie.splitSpaces?za(ae,ie.trailingSpace):ae,ft=ie.cm.state.specialChars,Ct=!1,hn;if(!ft.test(ae))ie.col+=ae.length,hn=document.createTextNode(pt),ie.map.push(ie.pos,ie.pos+ae.length,hn),Ye&&Re<9&&(Ct=!0),ie.pos+=ae.length;else{hn=document.createDocumentFragment();for(var Rt=0;;){ft.lastIndex=Rt;var Gn=ft.exec(ae),Rn=Gn?Gn.index-Rt:ae.length-Rt;if(Rn){var Mi=document.createTextNode(pt.slice(Rt,Rt+Rn));Ye&&Re<9?hn.appendChild(ht("span",[Mi])):hn.appendChild(Mi),ie.map.push(ie.pos,ie.pos+Rn,Mi),ie.col+=Rn,ie.pos+=Rn}if(!Gn)break;Rt+=Rn+1;var Oi=void 0;if(Gn[0]==" "){var Vi=ie.cm.options.tabSize,fr=Vi-ie.col%Vi;Oi=hn.appendChild(ht("span",ii(fr),"cm-tab")),Oi.setAttribute("role","presentation"),Oi.setAttribute("cm-text"," "),ie.col+=fr}else Gn[0]=="\r"||Gn[0]==`
|
|
|
`?(Oi=hn.appendChild(ht("span",Gn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Oi.setAttribute("cm-text",Gn[0]),ie.col+=1):(Oi=ie.cm.options.specialCharPlaceholder(Gn[0]),Oi.setAttribute("cm-text",Gn[0]),Ye&&Re<9?hn.appendChild(ht("span",[Oi])):hn.appendChild(Oi),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,Oi),ie.pos++}}if(ie.trailingSpace=pt.charCodeAt(ae.length-1)==32,ve||me||Ee||Ct||Ue||$e){var Pr=ve||"";me&&(Pr+=me),Ee&&(Pr+=Ee);var br=ht("span",[hn],Pr,Ue);if($e)for(var _r in $e)$e.hasOwnProperty(_r)&&_r!="style"&&_r!="class"&&br.setAttribute(_r,$e[_r]);return ie.content.appendChild(br)}ie.content.appendChild(hn)}}function za(ie,ae){if(ie.length>1&&!/ /.test(ie))return ie;for(var ve=ae,me="",Ee=0;Ee<ie.length;Ee++){var Ue=ie.charAt(Ee);Ue==" "&&ve&&(Ee==ie.length-1||ie.charCodeAt(Ee+1)==32)&&(Ue="\xA0"),me+=Ue,ve=Ue==" "}return me}function $a(ie,ae){return function(ve,me,Ee,Ue,$e,pt,ft){Ee=Ee?Ee+" cm-force-border":"cm-force-border";for(var Ct=ve.pos,hn=Ct+me.length;;){for(var Rt=void 0,Gn=0;Gn<ae.length&&(Rt=ae[Gn],!(Rt.to>Ct&&Rt.from<=Ct));Gn++);if(Rt.to>=hn)return ie(ve,me,Ee,Ue,$e,pt,ft);ie(ve,me.slice(0,Rt.to-Ct),Ee,Ue,null,pt,ft),Ue=null,me=me.slice(Rt.to-Ct),Ct=Rt.to}}}function Qo(ie,ae,ve,me){var Ee=!me&&ve.widgetNode;Ee&&ie.map.push(ie.pos,ie.pos+ae,Ee),!me&&ie.cm.display.input.needsContentAttribute&&(Ee||(Ee=ie.content.appendChild(document.createElement("span"))),Ee.setAttribute("cm-marker",ve.id)),Ee&&(ie.cm.display.input.setUneditable(Ee),ie.content.appendChild(Ee)),ie.pos+=ae,ie.trailingSpace=!1}function ms(ie,ae,ve){var me=ie.markedSpans,Ee=ie.text,Ue=0;if(!me){for(var $e=1;$e<ve.length;$e+=2)ae.addToken(ae,Ee.slice(Ue,Ue=ve[$e]),ra(ve[$e+1],ae.cm.options));return}for(var pt=Ee.length,ft=0,Ct=1,hn="",Rt,Gn,Rn=0,Mi,Oi,Vi,fr,Pr;;){if(Rn==ft){Mi=Oi=Vi=Gn="",Pr=null,fr=null,Rn=1/0;for(var br=[],_r=void 0,io=0;io<me.length;++io){var xr=me[io],No=xr.marker;if(No.type=="bookmark"&&xr.from==ft&&No.widgetNode)br.push(No);else if(xr.from<=ft&&(xr.to==null||xr.to>ft||No.collapsed&&xr.to==ft&&xr.from==ft)){if(xr.to!=null&&xr.to!=ft&&Rn>xr.to&&(Rn=xr.to,Oi=""),No.className&&(Mi+=" "+No.className),No.css&&(Gn=(Gn?Gn+";":"")+No.css),No.startStyle&&xr.from==ft&&(Vi+=" "+No.startStyle),No.endStyle&&xr.to==Rn&&(_r||(_r=[])).push(No.endStyle,xr.to),No.title&&((Pr||(Pr={})).title=No.title),No.attributes)for(var Da in No.attributes)(Pr||(Pr={}))[Da]=No.attributes[Da];No.collapsed&&(!fr||ua(fr.marker,No)<0)&&(fr=xr)}else xr.from>ft&&Rn>xr.from&&(Rn=xr.from)}if(_r)for(var Is=0;Is<_r.length;Is+=2)_r[Is+1]==Rn&&(Oi+=" "+_r[Is]);if(!fr||fr.from==ft)for(var Wa=0;Wa<br.length;++Wa)Qo(ae,0,br[Wa]);if(fr&&(fr.from||0)==ft){if(Qo(ae,(fr.to==null?pt+1:fr.to)-ft,fr.marker,fr.from==null),fr.to==null)return;fr.to==ft&&(fr=!1)}}if(ft>=pt)break;for(var Ul=Math.min(pt,Rn);;){if(hn){var gl=ft+hn.length;if(!fr){var Es=gl>Ul?hn.slice(0,Ul-ft):hn;ae.addToken(ae,Es,Rt?Rt+Mi:Mi,Vi,ft+Es.length==Rn?Oi:"",Gn,Pr)}if(gl>=Ul){hn=hn.slice(Ul-ft),ft=Ul;break}ft=gl,Vi=""}hn=Ee.slice(Ue,Ue=ve[Ct++]),Rt=ra(ve[Ct++],ae.cm.options)}}}function Nn(ie,ae,ve){this.line=ae,this.rest=uo(ae),this.size=this.rest?lt(kt(this.rest))-ve+1:1,this.node=this.text=null,this.hidden=ti(ie,ae)}function po(ie,ae,ve){for(var me=[],Ee,Ue=ae;Ue<ve;Ue=Ee){var $e=new Nn(ie.doc,ei(ie.doc,Ue),Ue);Ee=Ue+$e.size,me.push($e)}return me}var ca=null;function ul(ie){ca?ca.ops.push(ie):ie.ownsGroup=ca={ops:[ie],delayedCallbacks:[]}}function Ua(ie){var ae=ie.delayedCallbacks,ve=0;do{for(;ve<ae.length;ve++)ae[ve].call(null);for(var me=0;me<ie.ops.length;me++){var Ee=ie.ops[me];if(Ee.cursorActivityHandlers)for(;Ee.cursorActivityCalled<Ee.cursorActivityHandlers.length;)Ee.cursorActivityHandlers[Ee.cursorActivityCalled++].call(null,Ee.cm)}}while(ve<ae.length)}function Zl(ie,ae){var ve=ie.ownsGroup;if(ve)try{Ua(ve)}finally{ca=null,ae(ve)}}var ws=null;function mr(ie,ae){var ve=wn(ie,ae);if(ve.length){var me=Array.prototype.slice.call(arguments,2),Ee;ca?Ee=ca.delayedCallbacks:ws?Ee=ws:(Ee=ws=[],setTimeout(cl,0));for(var Ue=function(pt){Ee.push(function(){return ve[pt].apply(null,me)})},$e=0;$e<ve.length;++$e)Ue($e)}}function cl(){var ie=ws;ws=null;for(var ae=0;ae<ie.length;++ae)ie[ae]()}function El(ie,ae,ve,me){for(var Ee=0;Ee<ae.changes.length;Ee++){var Ue=ae.changes[Ee];Ue=="text"?tn(ie,ae):Ue=="gutter"?_i(ie,ae,ve,me):Ue=="class"?Ti(ie,ae):Ue=="widget"&&qi(ie,ae,me)}ae.changes=null}function ds(ie){return ie.node==ie.text&&(ie.node=ht("div",null,null,"position: relative"),ie.text.parentNode&&ie.text.parentNode.replaceChild(ie.node,ie.text),ie.node.appendChild(ie.text),Ye&&Re<8&&(ie.node.style.zIndex=2)),ie.node}function Ta(ie,ae){var ve=ae.bgClass?ae.bgClass+" "+(ae.line.bgClass||""):ae.line.bgClass;if(ve&&(ve+=" CodeMirror-linebackground"),ae.background)ve?ae.background.className=ve:(ae.background.parentNode.removeChild(ae.background),ae.background=null);else if(ve){var me=ds(ae);ae.background=me.insertBefore(ht("div",null,ve),me.firstChild),ie.display.input.setUneditable(ae.background)}}function dl(ie,ae){var ve=ie.display.externalMeasured;return ve&&ve.line==ae.line?(ie.display.externalMeasured=null,ae.measure=ve.measure,ve.built):pn(ie,ae)}function tn(ie,ae){var ve=ae.text.className,me=dl(ie,ae);ae.text==ae.node&&(ae.node=me.pre),ae.text.parentNode.replaceChild(me.pre,ae.text),ae.text=me.pre,me.bgClass!=ae.bgClass||me.textClass!=ae.textClass?(ae.bgClass=me.bgClass,ae.textClass=me.textClass,Ti(ie,ae)):ve&&(ae.text.className=ve)}function Ti(ie,ae){Ta(ie,ae),ae.line.wrapClass?ds(ae).className=ae.line.wrapClass:ae.node!=ae.text&&(ae.node.className="");var ve=ae.textClass?ae.textClass+" "+(ae.line.textClass||""):ae.line.textClass;ae.text.className=ve||""}function _i(ie,ae,ve,me){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 Ee=ds(ae);ae.gutterBackground=ht("div",null,"CodeMirror-gutter-background "+ae.line.gutterClass,"left: "+(ie.options.fixedGutter?me.fixedPos:-me.gutterTotalWidth)+"px; width: "+me.gutterTotalWidth+"px"),ie.display.input.setUneditable(ae.gutterBackground),Ee.insertBefore(ae.gutterBackground,ae.text)}var Ue=ae.line.gutterMarkers;if(ie.options.lineNumbers||Ue){var $e=ds(ae),pt=ae.gutter=ht("div",null,"CodeMirror-gutter-wrapper","left: "+(ie.options.fixedGutter?me.fixedPos:-me.gutterTotalWidth)+"px");if(ie.display.input.setUneditable(pt),$e.insertBefore(pt,ae.text),ae.line.gutterClass&&(pt.className+=" "+ae.line.gutterClass),ie.options.lineNumbers&&(!Ue||!Ue["CodeMirror-linenumbers"])&&(ae.lineNumber=pt.appendChild(ht("div",gi(ie.options,ve),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+me.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),Ue)for(var ft=0;ft<ie.display.gutterSpecs.length;++ft){var Ct=ie.display.gutterSpecs[ft].className,hn=Ue.hasOwnProperty(Ct)&&Ue[Ct];hn&&pt.appendChild(ht("div",[hn],"CodeMirror-gutter-elt","left: "+me.gutterLeft[Ct]+"px; width: "+me.gutterWidth[Ct]+"px"))}}}function qi(ie,ae,ve){ae.alignable&&(ae.alignable=null);for(var me=Be("CodeMirror-linewidget"),Ee=ae.node.firstChild,Ue=void 0;Ee;Ee=Ue)Ue=Ee.nextSibling,me.test(Ee.className)&&ae.node.removeChild(Ee);wr(ie,ae,ve)}function ur(ie,ae,ve,me){var Ee=dl(ie,ae);return ae.text=ae.node=Ee.pre,Ee.bgClass&&(ae.bgClass=Ee.bgClass),Ee.textClass&&(ae.textClass=Ee.textClass),Ti(ie,ae),_i(ie,ae,ve,me),wr(ie,ae,me),ae.node}function wr(ie,ae,ve){if(Xi(ie,ae.line,ae,ve,!0),ae.rest)for(var me=0;me<ae.rest.length;me++)Xi(ie,ae.rest[me],ae,ve,!1)}function Xi(ie,ae,ve,me,Ee){if(ae.widgets)for(var Ue=ds(ve),$e=0,pt=ae.widgets;$e<pt.length;++$e){var ft=pt[$e],Ct=ht("div",[ft.node],"CodeMirror-linewidget"+(ft.className?" "+ft.className:""));ft.handleMouseEvents||Ct.setAttribute("cm-ignore-events","true"),Fo(ft,Ct,ve,me),ie.display.input.setUneditable(Ct),Ee&&ft.above?Ue.insertBefore(Ct,ve.gutter||ve.text):Ue.appendChild(Ct),mr(ft,"redraw")}}function Fo(ie,ae,ve,me){if(ie.noHScroll){(ve.alignable||(ve.alignable=[])).push(ae);var Ee=me.wrapperWidth;ae.style.left=me.fixedPos+"px",ie.coverGutter||(Ee-=me.gutterTotalWidth,ae.style.paddingLeft=me.gutterTotalWidth+"px"),ae.style.width=Ee+"px"}ie.coverGutter&&(ae.style.zIndex=5,ae.style.position="relative",ie.noHScroll||(ae.style.marginLeft=-me.gutterTotalWidth+"px"))}function jo(ie){if(ie.height!=null)return ie.height;var ae=ie.doc.cm;if(!ae)return 0;if(!At(document.body,ie.node)){var ve="position: relative;";ie.coverGutter&&(ve+="margin-left: -"+ae.display.gutters.offsetWidth+"px;"),ie.noHScroll&&(ve+="width: "+ae.display.wrapper.clientWidth+"px;"),ot(ae.display.measure,ht("div",[ie.node],null,ve))}return ie.height=ie.node.parentNode.offsetHeight}function Ao(ie,ae){for(var ve=zi(ae);ve!=ie.wrapper;ve=ve.parentNode)if(!ve||ve.nodeType==1&&ve.getAttribute("cm-ignore-events")=="true"||ve.parentNode==ie.sizer&&ve!=ie.mover)return!0}function co(ie){return ie.lineSpace.offsetTop}function zo(ie){return ie.mover.offsetHeight-ie.lineSpace.offsetHeight}function rs(ie){if(ie.cachedPaddingH)return ie.cachedPaddingH;var ae=ot(ie.measure,ht("pre","x","CodeMirror-line-like")),ve=window.getComputedStyle?window.getComputedStyle(ae):ae.currentStyle,me={left:parseInt(ve.paddingLeft),right:parseInt(ve.paddingRight)};return!isNaN(me.left)&&!isNaN(me.right)&&(ie.cachedPaddingH=me),me}function ia(ie){return cn-ie.display.nativeBarWidth}function Ma(ie){return ie.display.scroller.clientWidth-ia(ie)-ie.display.barWidth}function Ts(ie){return ie.display.scroller.clientHeight-ia(ie)-ie.display.barHeight}function Za(ie,ae,ve){var me=ie.options.lineWrapping,Ee=me&&Ma(ie);if(!ae.measure.heights||me&&ae.measure.width!=Ee){var Ue=ae.measure.heights=[];if(me){ae.measure.width=Ee;for(var $e=ae.text.firstChild.getClientRects(),pt=0;pt<$e.length-1;pt++){var ft=$e[pt],Ct=$e[pt+1];Math.abs(ft.bottom-Ct.bottom)>2&&Ue.push((ft.bottom+Ct.top)/2-ve.top)}}Ue.push(ve.bottom-ve.top)}}function $s(ie,ae,ve){if(ie.line==ae)return{map:ie.measure.map,cache:ie.measure.cache};for(var me=0;me<ie.rest.length;me++)if(ie.rest[me]==ae)return{map:ie.measure.maps[me],cache:ie.measure.caches[me]};for(var Ee=0;Ee<ie.rest.length;Ee++)if(lt(ie.rest[Ee])>ve)return{map:ie.measure.maps[Ee],cache:ie.measure.caches[Ee],before:!0}}function hl(ie,ae){ae=Ji(ae);var ve=lt(ae),me=ie.display.externalMeasured=new Nn(ie.doc,ae,ve);me.lineN=ve;var Ee=me.built=pn(ie,me);return me.text=Ee.pre,ot(ie.display.lineMeasure,Ee.pre),me}function Ol(ie,ae,ve,me){return Rs(ie,As(ie,ae),ve,me)}function Fa(ie,ae){if(ae>=ie.display.viewFrom&&ae<ie.display.viewTo)return ie.display.view[Ns(ie,ae)];var ve=ie.display.externalMeasured;if(ve&&ae>=ve.lineN&&ae<ve.lineN+ve.size)return ve}function As(ie,ae){var ve=lt(ae),me=Fa(ie,ve);me&&!me.text?me=null:me&&me.changes&&(El(ie,me,ve,cu(ie)),ie.curOp.forceUpdate=!0),me||(me=hl(ie,ae));var Ee=$s(me,ae,ve);return{line:ae,view:me,rect:null,map:Ee.map,cache:Ee.cache,before:Ee.before,hasHeights:!1}}function Rs(ie,ae,ve,me,Ee){ae.before&&(ve=-1);var Ue=ve+(me||""),$e;return ae.cache.hasOwnProperty(Ue)?$e=ae.cache[Ue]:(ae.rect||(ae.rect=ae.view.text.getBoundingClientRect()),ae.hasHeights||(Za(ie,ae.view,ae.rect),ae.hasHeights=!0),$e=Aa(ie,ae,ve,me),$e.bogus||(ae.cache[Ue]=$e)),{left:$e.left,right:$e.right,top:Ee?$e.rtop:$e.top,bottom:Ee?$e.rbottom:$e.bottom}}var sc={left:0,right:0,top:0,bottom:0};function xc(ie,ae,ve){for(var me,Ee,Ue,$e,pt,ft,Ct=0;Ct<ie.length;Ct+=3)if(pt=ie[Ct],ft=ie[Ct+1],ae<pt?(Ee=0,Ue=1,$e="left"):ae<ft?(Ee=ae-pt,Ue=Ee+1):(Ct==ie.length-3||ae==ft&&ie[Ct+3]>ae)&&(Ue=ft-pt,Ee=Ue-1,ae>=ft&&($e="right")),Ee!=null){if(me=ie[Ct+2],pt==ft&&ve==(me.insertLeft?"left":"right")&&($e=ve),ve=="left"&&Ee==0)for(;Ct&&ie[Ct-2]==ie[Ct-3]&&ie[Ct-1].insertLeft;)me=ie[(Ct-=3)+2],$e="left";if(ve=="right"&&Ee==ft-pt)for(;Ct<ie.length-3&&ie[Ct+3]==ie[Ct+4]&&!ie[Ct+5].insertLeft;)me=ie[(Ct+=3)+2],$e="right";break}return{node:me,start:Ee,end:Ue,collapse:$e,coverStart:pt,coverEnd:ft}}function Yc(ie,ae){var ve=sc;if(ae=="left")for(var me=0;me<ie.length&&(ve=ie[me]).left==ve.right;me++);else for(var Ee=ie.length-1;Ee>=0&&(ve=ie[Ee]).left==ve.right;Ee--);return ve}function Aa(ie,ae,ve,me){var Ee=xc(ae.map,ve,me),Ue=Ee.node,$e=Ee.start,pt=Ee.end,ft=Ee.collapse,Ct;if(Ue.nodeType==3){for(var hn=0;hn<4;hn++){for(;$e&&Lt(ae.line.text.charAt(Ee.coverStart+$e));)--$e;for(;Ee.coverStart+pt<Ee.coverEnd&&Lt(ae.line.text.charAt(Ee.coverStart+pt));)++pt;if(Ye&&Re<9&&$e==0&&pt==Ee.coverEnd-Ee.coverStart?Ct=Ue.parentNode.getBoundingClientRect():Ct=Yc(at(Ue,$e,pt).getClientRects(),me),Ct.left||Ct.right||$e==0)break;pt=$e,$e=$e-1,ft="right"}Ye&&Re<11&&(Ct=ad(ie.display.measure,Ct))}else{$e>0&&(ft=me="right");var Rt;ie.options.lineWrapping&&(Rt=Ue.getClientRects()).length>1?Ct=Rt[me=="right"?Rt.length-1:0]:Ct=Ue.getBoundingClientRect()}if(Ye&&Re<9&&!$e&&(!Ct||!Ct.left&&!Ct.right)){var Gn=Ue.parentNode.getClientRects()[0];Gn?Ct={left:Gn.left,right:Gn.left+Rl(ie.display),top:Gn.top,bottom:Gn.bottom}:Ct=sc}for(var Rn=Ct.top-ae.rect.top,Mi=Ct.bottom-ae.rect.top,Oi=(Rn+Mi)/2,Vi=ae.view.measure.heights,fr=0;fr<Vi.length-1&&!(Oi<Vi[fr]);fr++);var Pr=fr?Vi[fr-1]:0,br=Vi[fr],_r={left:(ft=="right"?Ct.right:Ct.left)-ae.rect.left,right:(ft=="left"?Ct.left:Ct.right)-ae.rect.left,top:Pr,bottom:br};return!Ct.left&&!Ct.right&&(_r.bogus=!0),ie.options.singleCursorHeightPerLine||(_r.rtop=Rn,_r.rbottom=Mi),_r}function ad(ie,ae){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Yn(ie))return ae;var ve=screen.logicalXDPI/screen.deviceXDPI,me=screen.logicalYDPI/screen.deviceYDPI;return{left:ae.left*ve,right:ae.right*ve,top:ae.top*me,bottom:ae.bottom*me}}function bc(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 Gu(ie){ie.display.externalMeasure=null,rt(ie.display.lineMeasure);for(var ae=0;ae<ie.display.view.length;ae++)bc(ie.display.view[ae])}function Yu(ie){Gu(ie),ie.display.cachedCharWidth=ie.display.cachedTextHeight=ie.display.cachedPaddingH=null,ie.options.lineWrapping||(ie.display.maxLineChanged=!0),ie.display.lineNumChars=null}function es(){return Xe&&te?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function hs(){return Xe&&te?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ha(ie){var ae=0;if(ie.widgets)for(var ve=0;ve<ie.widgets.length;++ve)ie.widgets[ve].above&&(ae+=jo(ie.widgets[ve]));return ae}function ts(ie,ae,ve,me,Ee){if(!Ee){var Ue=Ha(ae);ve.top+=Ue,ve.bottom+=Ue}if(me=="line")return ve;me||(me="local");var $e=Gr(ae);if(me=="local"?$e+=co(ie.display):$e-=ie.display.viewOffset,me=="page"||me=="window"){var pt=ie.display.lineSpace.getBoundingClientRect();$e+=pt.top+(me=="window"?0:hs());var ft=pt.left+(me=="window"?0:es());ve.left+=ft,ve.right+=ft}return ve.top+=$e,ve.bottom+=$e,ve}function wc(ie,ae,ve){if(ve=="div")return ae;var me=ae.left,Ee=ae.top;if(ve=="page")me-=es(),Ee-=hs();else if(ve=="local"||!ve){var Ue=ie.display.sizer.getBoundingClientRect();me+=Ue.left,Ee+=Ue.top}var $e=ie.display.lineSpace.getBoundingClientRect();return{left:me-$e.left,top:Ee-$e.top}}function Wu(ie,ae,ve,me,Ee){return me||(me=ei(ie.doc,ae.line)),ts(ie,me,Ol(ie,me,ae.ch,Ee),ve)}function oa(ie,ae,ve,me,Ee,Ue){me=me||ei(ie.doc,ae.line),Ee||(Ee=As(ie,me));function $e(Mi,Oi){var Vi=Rs(ie,Ee,Mi,Oi?"right":"left",Ue);return Oi?Vi.left=Vi.right:Vi.right=Vi.left,ts(ie,me,Vi,ve)}var pt=fn(me,ie.doc.direction),ft=ae.ch,Ct=ae.sticky;if(ft>=me.text.length?(ft=me.text.length,Ct="before"):ft<=0&&(ft=0,Ct="after"),!pt)return $e(Ct=="before"?ft-1:ft,Ct=="before");function hn(Mi,Oi,Vi){var fr=pt[Oi],Pr=fr.level==1;return $e(Vi?Mi-1:Mi,Pr!=Vi)}var Rt=gn(pt,ft,Ct),Gn=Gt,Rn=hn(ft,Rt,Ct=="before");return Gn!=null&&(Rn.other=hn(ft,Gn,Ct!="before")),Rn}function Bo(ie,ae){var ve=0;ae=bn(ie.doc,ae),ie.options.lineWrapping||(ve=Rl(ie.display)*ae.ch);var me=ei(ie.doc,ae.line),Ee=Gr(me)+co(ie.display);return{left:ve,right:ve,top:Ee,bottom:Ee+me.height}}function So(ie,ae,ve,me,Ee){var Ue=jt(ie,ae,ve);return Ue.xRel=Ee,me&&(Ue.outside=me),Ue}function os(ie,ae,ve){var me=ie.doc;if(ve+=ie.display.viewOffset,ve<0)return So(me.first,0,null,-1,-1);var Ee=Ut(me,ve),Ue=me.first+me.size-1;if(Ee>Ue)return So(me.first+me.size-1,ei(me,Ue).text.length,null,1,1);ae<0&&(ae=0);for(var $e=ei(me,Ee);;){var pt=Qn(ie,$e,Ee,ae,ve),ft=tr($e,pt.ch+(pt.xRel>0||pt.outside>0?1:0));if(!ft)return pt;var Ct=ft.find(1);if(Ct.line==Ee)return Ct;$e=ei(me,Ee=Ct.line)}}function ir(ie,ae,ve,me){me-=Ha(ae);var Ee=ae.text.length,Ue=Yt(function($e){return Rs(ie,ve,$e-1).bottom<=me},Ee,0);return Ee=Yt(function($e){return Rs(ie,ve,$e).top>me},Ue,Ee),{begin:Ue,end:Ee}}function Ga(ie,ae,ve,me){ve||(ve=As(ie,ae));var Ee=ts(ie,ae,Rs(ie,ve,me),"line").top;return ir(ie,ae,ve,Ee)}function Ft(ie,ae,ve,me){return ie.bottom<=ve?!1:ie.top>ve?!0:(me?ie.left:ie.right)>ae}function Qn(ie,ae,ve,me,Ee){Ee-=Gr(ae);var Ue=As(ie,ae),$e=Ha(ae),pt=0,ft=ae.text.length,Ct=!0,hn=fn(ae,ie.doc.direction);if(hn){var Rt=(ie.options.lineWrapping?uu:xl)(ie,ae,ve,Ue,hn,me,Ee);Ct=Rt.level!=1,pt=Ct?Rt.from:Rt.to-1,ft=Ct?Rt.to:Rt.from-1}var Gn=null,Rn=null,Mi=Yt(function(io){var xr=Rs(ie,Ue,io);return xr.top+=$e,xr.bottom+=$e,Ft(xr,me,Ee,!1)?(xr.top<=Ee&&xr.left<=me&&(Gn=io,Rn=xr),!0):!1},pt,ft),Oi,Vi,fr=!1;if(Rn){var Pr=me-Rn.left<Rn.right-me,br=Pr==Ct;Mi=Gn+(br?0:1),Vi=br?"after":"before",Oi=Pr?Rn.left:Rn.right}else{!Ct&&(Mi==ft||Mi==pt)&&Mi++,Vi=Mi==0?"after":Mi==ae.text.length?"before":Rs(ie,Ue,Mi-(Ct?1:0)).bottom+$e<=Ee==Ct?"after":"before";var _r=oa(ie,jt(ve,Mi,Vi),"line",ae,Ue);Oi=_r.left,fr=Ee<_r.top?-1:Ee>=_r.bottom?1:0}return Mi=Mt(ae.text,Mi,1),So(ve,Mi,Vi,fr,me-Oi)}function xl(ie,ae,ve,me,Ee,Ue,$e){var pt=Yt(function(Rt){var Gn=Ee[Rt],Rn=Gn.level!=1;return Ft(oa(ie,jt(ve,Rn?Gn.to:Gn.from,Rn?"before":"after"),"line",ae,me),Ue,$e,!0)},0,Ee.length-1),ft=Ee[pt];if(pt>0){var Ct=ft.level!=1,hn=oa(ie,jt(ve,Ct?ft.from:ft.to,Ct?"after":"before"),"line",ae,me);Ft(hn,Ue,$e,!0)&&hn.top>$e&&(ft=Ee[pt-1])}return ft}function uu(ie,ae,ve,me,Ee,Ue,$e){var pt=ir(ie,ae,me,$e),ft=pt.begin,Ct=pt.end;/\s/.test(ae.text.charAt(Ct-1))&&Ct--;for(var hn=null,Rt=null,Gn=0;Gn<Ee.length;Gn++){var Rn=Ee[Gn];if(!(Rn.from>=Ct||Rn.to<=ft)){var Mi=Rn.level!=1,Oi=Rs(ie,me,Mi?Math.min(Ct,Rn.to)-1:Math.max(ft,Rn.from)).right,Vi=Oi<Ue?Ue-Oi+1e9:Oi-Ue;(!hn||Rt>Vi)&&(hn=Rn,Rt=Vi)}}return hn||(hn=Ee[Ee.length-1]),hn.from<ft&&(hn={from:ft,to:hn.to,level:hn.level}),hn.to>Ct&&(hn={from:hn.from,to:Ct,level:hn.level}),hn}var Cs;function fs(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(Cs==null){Cs=ht("pre",null,"CodeMirror-line-like");for(var ae=0;ae<49;++ae)Cs.appendChild(document.createTextNode("x")),Cs.appendChild(ht("br"));Cs.appendChild(document.createTextNode("x"))}ot(ie.measure,Cs);var ve=Cs.offsetHeight/50;return ve>3&&(ie.cachedTextHeight=ve),rt(ie.measure),ve||1}function Rl(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var ae=ht("span","xxxxxxxxxx"),ve=ht("pre",[ae],"CodeMirror-line-like");ot(ie.measure,ve);var me=ae.getBoundingClientRect(),Ee=(me.right-me.left)/10;return Ee>2&&(ie.cachedCharWidth=Ee),Ee||10}function cu(ie){for(var ae=ie.display,ve={},me={},Ee=ae.gutters.clientLeft,Ue=ae.gutters.firstChild,$e=0;Ue;Ue=Ue.nextSibling,++$e){var pt=ie.display.gutterSpecs[$e].className;ve[pt]=Ue.offsetLeft+Ue.clientLeft+Ee,me[pt]=Ue.clientWidth}return{fixedPos:Wc(ae),gutterTotalWidth:ae.gutters.offsetWidth,gutterLeft:ve,gutterWidth:me,wrapperWidth:ae.wrapper.clientWidth}}function Wc(ie){return ie.scroller.getBoundingClientRect().left-ie.sizer.getBoundingClientRect().left}function pa(ie){var ae=fs(ie.display),ve=ie.options.lineWrapping,me=ve&&Math.max(5,ie.display.scroller.clientWidth/Rl(ie.display)-3);return function(Ee){if(ti(ie.doc,Ee))return 0;var Ue=0;if(Ee.widgets)for(var $e=0;$e<Ee.widgets.length;$e++)Ee.widgets[$e].height&&(Ue+=Ee.widgets[$e].height);return ve?Ue+(Math.ceil(Ee.text.length/me)||1)*ae:Ue+ae}}function jr(ie){var ae=ie.doc,ve=pa(ie);ae.iter(function(me){var Ee=ve(me);Ee!=me.height&&Yi(me,Ee)})}function as(ie,ae,ve,me){var Ee=ie.display;if(!ve&&zi(ae).getAttribute("cm-not-content")=="true")return null;var Ue,$e,pt=Ee.lineSpace.getBoundingClientRect();try{Ue=ae.clientX-pt.left,$e=ae.clientY-pt.top}catch(Rt){return null}var ft=os(ie,Ue,$e),Ct;if(me&&ft.xRel>0&&(Ct=ei(ie.doc,ft.line).text).length==ft.ch){var hn=xt(Ct,Ct.length,ie.options.tabSize)-Ct.length;ft=jt(ft.line,Math.max(0,Math.round((Ue-rs(ie.display).left)/Rl(ie.display))-hn))}return ft}function Ns(ie,ae){if(ae>=ie.display.viewTo||(ae-=ie.display.viewFrom,ae<0))return null;for(var ve=ie.display.view,me=0;me<ve.length;me++)if(ae-=ve[me].size,ae<0)return me}function Po(ie,ae,ve,me){ae==null&&(ae=ie.doc.first),ve==null&&(ve=ie.doc.first+ie.doc.size),me||(me=0);var Ee=ie.display;if(me&&ve<Ee.viewTo&&(Ee.updateLineNumbers==null||Ee.updateLineNumbers>ae)&&(Ee.updateLineNumbers=ae),ie.curOp.viewChanged=!0,ae>=Ee.viewTo)Un&&nr(ie.doc,ae)<Ee.viewTo&&Ba(ie);else if(ve<=Ee.viewFrom)Un&&Qi(ie.doc,ve+me)>Ee.viewFrom?Ba(ie):(Ee.viewFrom+=me,Ee.viewTo+=me);else if(ae<=Ee.viewFrom&&ve>=Ee.viewTo)Ba(ie);else if(ae<=Ee.viewFrom){var Ue=Fs(ie,ve,ve+me,1);Ue?(Ee.view=Ee.view.slice(Ue.index),Ee.viewFrom=Ue.lineN,Ee.viewTo+=me):Ba(ie)}else if(ve>=Ee.viewTo){var $e=Fs(ie,ae,ae,-1);$e?(Ee.view=Ee.view.slice(0,$e.index),Ee.viewTo=$e.lineN):Ba(ie)}else{var pt=Fs(ie,ae,ae,-1),ft=Fs(ie,ve,ve+me,1);pt&&ft?(Ee.view=Ee.view.slice(0,pt.index).concat(po(ie,pt.lineN,ft.lineN)).concat(Ee.view.slice(ft.index)),Ee.viewTo+=me):Ba(ie)}var Ct=Ee.externalMeasured;Ct&&(ve<Ct.lineN?Ct.lineN+=me:ae<Ct.lineN+Ct.size&&(Ee.externalMeasured=null))}function mo(ie,ae,ve){ie.curOp.viewChanged=!0;var me=ie.display,Ee=ie.display.externalMeasured;if(Ee&&ae>=Ee.lineN&&ae<Ee.lineN+Ee.size&&(me.externalMeasured=null),!(ae<me.viewFrom||ae>=me.viewTo)){var Ue=me.view[Ns(ie,ae)];if(Ue.node!=null){var $e=Ue.changes||(Ue.changes=[]);it($e,ve)==-1&&$e.push(ve)}}}function Ba(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function Fs(ie,ae,ve,me){var Ee=Ns(ie,ae),Ue,$e=ie.display.view;if(!Un||ve==ie.doc.first+ie.doc.size)return{index:Ee,lineN:ve};for(var pt=ie.display.viewFrom,ft=0;ft<Ee;ft++)pt+=$e[ft].size;if(pt!=ae){if(me>0){if(Ee==$e.length-1)return null;Ue=pt+$e[Ee].size-ae,Ee++}else Ue=pt-ae;ae+=Ue,ve+=Ue}for(;nr(ie.doc,ve)!=ve;){if(Ee==(me<0?0:$e.length-1))return null;ve+=me*$e[Ee-(me<0?1:0)].size,Ee+=me}return{index:Ee,lineN:ve}}function ea(ie,ae,ve){var me=ie.display,Ee=me.view;Ee.length==0||ae>=me.viewTo||ve<=me.viewFrom?(me.view=po(ie,ae,ve),me.viewFrom=ae):(me.viewFrom>ae?me.view=po(ie,ae,me.viewFrom).concat(me.view):me.viewFrom<ae&&(me.view=me.view.slice(Ns(ie,ae))),me.viewFrom=ae,me.viewTo<ve?me.view=me.view.concat(po(ie,me.viewTo,ve)):me.viewTo>ve&&(me.view=me.view.slice(0,Ns(ie,ve)))),me.viewTo=ve}function el(ie){for(var ae=ie.display.view,ve=0,me=0;me<ae.length;me++){var Ee=ae[me];!Ee.hidden&&(!Ee.node||Ee.changes)&&++ve}return ve}function Qa(ie){ie.display.input.showSelection(ie.display.input.prepareSelection())}function Au(ie,ae){ae===void 0&&(ae=!0);for(var ve=ie.doc,me={},Ee=me.cursors=document.createDocumentFragment(),Ue=me.selection=document.createDocumentFragment(),$e=0;$e<ve.sel.ranges.length;$e++)if(!(!ae&&$e==ve.sel.primIndex)){var pt=ve.sel.ranges[$e];if(!(pt.from().line>=ie.display.viewTo||pt.to().line<ie.display.viewFrom)){var ft=pt.empty();(ft||ie.options.showCursorWhenSelecting)&&Io(ie,pt.head,Ee),ft||wo(ie,pt,Ue)}}return me}function Io(ie,ae,ve){var me=oa(ie,ae,"div",null,null,!ie.options.singleCursorHeightPerLine),Ee=ve.appendChild(ht("div","\xA0","CodeMirror-cursor"));if(Ee.style.left=me.left+"px",Ee.style.top=me.top+"px",Ee.style.height=Math.max(0,me.bottom-me.top)*ie.options.cursorHeight+"px",me.other){var Ue=ve.appendChild(ht("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Ue.style.display="",Ue.style.left=me.other.left+"px",Ue.style.top=me.other.top+"px",Ue.style.height=(me.other.bottom-me.other.top)*.85+"px"}}function vs(ie,ae){return ie.top-ae.top||ie.left-ae.left}function wo(ie,ae,ve){var me=ie.display,Ee=ie.doc,Ue=document.createDocumentFragment(),$e=rs(ie.display),pt=$e.left,ft=Math.max(me.sizerWidth,Ma(ie)-me.sizer.offsetLeft)-$e.right,Ct=Ee.direction=="ltr";function hn(br,_r,io,xr){_r<0&&(_r=0),_r=Math.round(_r),xr=Math.round(xr),Ue.appendChild(ht("div",null,"CodeMirror-selected","position: absolute; left: "+br+`px;
|
|
|
top: `+_r+"px; width: "+(io==null?ft-br:io)+`px;
|
|
|
height: `+(xr-_r)+"px"))}function Rt(br,_r,io){var xr=ei(Ee,br),No=xr.text.length,Da,Is;function Wa(Es,eu){return Wu(ie,jt(br,Es),"div",xr,eu)}function Ul(Es,eu,il){var xs=Ga(ie,xr,null,Es),$o=eu=="ltr"==(il=="after")?"left":"right",Xa=il=="after"?xs.begin:xs.end-(/\s/.test(xr.text.charAt(xs.end-1))?2:1);return Wa(Xa,$o)[$o]}var gl=fn(xr,Ee.direction);return Vt(gl,_r||0,io==null?No:io,function(Es,eu,il,xs){var $o=il=="ltr",Xa=Wa(Es,$o?"left":"right"),Us=Wa(eu-1,$o?"right":"left"),rl=_r==null&&Es==0,Ju=io==null&&eu==No,Va=xs==0,Ou=!gl||xs==gl.length-1;if(Us.top-Xa.top<=3){var is=(Ct?rl:Ju)&&Va,rf=(Ct?Ju:rl)&&Ou,vu=is?pt:($o?Xa:Us).left,tu=rf?ft:($o?Us:Xa).right;hn(vu,Xa.top,tu-vu,Xa.bottom)}else{var Hl,Ea,Hs,Lc;$o?(Hl=Ct&&rl&&Va?pt:Xa.left,Ea=Ct?ft:Ul(Es,il,"before"),Hs=Ct?pt:Ul(eu,il,"after"),Lc=Ct&&Ju&&Ou?ft:Us.right):(Hl=Ct?Ul(Es,il,"before"):pt,Ea=!Ct&&rl&&Va?ft:Xa.right,Hs=!Ct&&Ju&&Ou?pt:Us.left,Lc=Ct?Ul(eu,il,"after"):ft),hn(Hl,Xa.top,Ea-Hl,Xa.bottom),Xa.bottom<Us.top&&hn(pt,Xa.bottom,null,Us.top),hn(Hs,Us.top,Lc-Hs,Us.bottom)}(!Da||vs(Xa,Da)<0)&&(Da=Xa),vs(Us,Da)<0&&(Da=Us),(!Is||vs(Xa,Is)<0)&&(Is=Xa),vs(Us,Is)<0&&(Is=Us)}),{start:Da,end:Is}}var Gn=ae.from(),Rn=ae.to();if(Gn.line==Rn.line)Rt(Gn.line,Gn.ch,Rn.ch);else{var Mi=ei(Ee,Gn.line),Oi=ei(Ee,Rn.line),Vi=Ji(Mi)==Ji(Oi),fr=Rt(Gn.line,Gn.ch,Vi?Mi.text.length+1:null).end,Pr=Rt(Rn.line,Vi?0:null,Rn.ch).start;Vi&&(fr.top<Pr.top-2?(hn(fr.right,fr.top,null,fr.bottom),hn(pt,Pr.top,Pr.left,Pr.bottom)):hn(fr.right,fr.top,Pr.left-fr.right,fr.bottom)),fr.bottom<Pr.top&&hn(pt,fr.bottom,null,Pr.top)}ve.appendChild(Ue)}function Wo(ie){if(ie.state.focused){var ae=ie.display;clearInterval(ae.blinker);var ve=!0;ae.cursorDiv.style.visibility="",ie.options.cursorBlinkRate>0?ae.blinker=setInterval(function(){ie.hasFocus()||lc(ie),ae.cursorDiv.style.visibility=(ve=!ve)?"":"hidden"},ie.options.cursorBlinkRate):ie.options.cursorBlinkRate<0&&(ae.cursorDiv.style.visibility="hidden")}}function qo(ie){ie.state.focused||(ie.display.input.focus(),fo(ie))}function ma(ie){ie.state.delayingBlurEvent=!0,setTimeout(function(){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1,lc(ie))},100)}function fo(ie,ae){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1),ie.options.readOnly!="nocursor"&&(ie.state.focused||(Sn(ie,"focus",ie,ae),ie.state.focused=!0,$t(ie.display.wrapper,"CodeMirror-focused"),!ie.curOp&&ie.display.selForContextMenu!=ie.doc.sel&&(ie.display.input.reset(),Ve&&setTimeout(function(){return ie.display.input.reset(!0)},20)),ie.display.input.receivedFocus()),Wo(ie))}function lc(ie,ae){ie.state.delayingBlurEvent||(ie.state.focused&&(Sn(ie,"blur",ie,ae),ie.state.focused=!1,Ke(ie.display.wrapper,"CodeMirror-focused")),clearInterval(ie.display.blinker),setTimeout(function(){ie.state.focused||(ie.display.shift=!1)},150))}function Dr(ie){for(var ae=ie.display,ve=ae.lineDiv.offsetTop,me=0;me<ae.view.length;me++){var Ee=ae.view[me],Ue=ie.options.lineWrapping,$e=void 0,pt=0;if(!Ee.hidden){if(Ye&&Re<8){var ft=Ee.node.offsetTop+Ee.node.offsetHeight;$e=ft-ve,ve=ft}else{var Ct=Ee.node.getBoundingClientRect();$e=Ct.bottom-Ct.top,!Ue&&Ee.text.firstChild&&(pt=Ee.text.firstChild.getBoundingClientRect().right-Ct.left-1)}var hn=Ee.line.height-$e;if((hn>.005||hn<-.005)&&(Yi(Ee.line,$e),gh(Ee.line),Ee.rest))for(var Rt=0;Rt<Ee.rest.length;Rt++)gh(Ee.rest[Rt]);if(pt>ie.display.sizerWidth){var Gn=Math.ceil(pt/Rl(ie.display));Gn>ie.display.maxLineLength&&(ie.display.maxLineLength=Gn,ie.display.maxLine=Ee.line,ie.display.maxLineChanged=!0)}}}}function gh(ie){if(ie.widgets)for(var ae=0;ae<ie.widgets.length;++ae){var ve=ie.widgets[ae],me=ve.node.parentNode;me&&(ve.height=me.offsetHeight)}}function Co(ie,ae,ve){var me=ve&&ve.top!=null?Math.max(0,ve.top):ie.scroller.scrollTop;me=Math.floor(me-co(ie));var Ee=ve&&ve.bottom!=null?ve.bottom:me+ie.wrapper.clientHeight,Ue=Ut(ae,me),$e=Ut(ae,Ee);if(ve&&ve.ensure){var pt=ve.ensure.from.line,ft=ve.ensure.to.line;pt<Ue?(Ue=pt,$e=Ut(ae,Gr(ei(ae,pt))+ie.wrapper.clientHeight)):Math.min(ft,ae.lastLine())>=$e&&(Ue=Ut(ae,Gr(ei(ae,ft))-ie.wrapper.clientHeight),$e=ft)}return{from:Ue,to:Math.max($e,Ue+1)}}function ph(ie,ae){if(!nn(ie,"scrollCursorIntoView")){var ve=ie.display,me=ve.sizer.getBoundingClientRect(),Ee=null;if(ae.top+me.top<0?Ee=!0:ae.bottom+me.top>(window.innerHeight||document.documentElement.clientHeight)&&(Ee=!1),Ee!=null&&!Nt){var Ue=ht("div","\u200B",null,`position: absolute;
|
|
|
top: `+(ae.top-ve.viewOffset-co(ie.display))+`px;
|
|
|
height: `+(ae.bottom-ae.top+ia(ie)+ve.barHeight)+`px;
|
|
|
left: `+ae.left+"px; width: "+Math.max(2,ae.right-ae.left)+"px;");ie.display.lineSpace.appendChild(Ue),Ue.scrollIntoView(Ee),ie.display.lineSpace.removeChild(Ue)}}}function Tc(ie,ae,ve,me){me==null&&(me=0);var Ee;!ie.options.lineWrapping&&ae==ve&&(ae=ae.ch?jt(ae.line,ae.sticky=="before"?ae.ch-1:ae.ch,"after"):ae,ve=ae.sticky=="before"?jt(ae.line,ae.ch+1,"before"):ae);for(var Ue=0;Ue<5;Ue++){var $e=!1,pt=oa(ie,ae),ft=!ve||ve==ae?pt:oa(ie,ve);Ee={left:Math.min(pt.left,ft.left),top:Math.min(pt.top,ft.top)-me,right:Math.max(pt.left,ft.left),bottom:Math.max(pt.bottom,ft.bottom)+me};var Ct=Bd(ie,Ee),hn=ie.doc.scrollTop,Rt=ie.doc.scrollLeft;if(Ct.scrollTop!=null&&(du(ie,Ct.scrollTop),Math.abs(ie.doc.scrollTop-hn)>1&&($e=!0)),Ct.scrollLeft!=null&&(Kl(ie,Ct.scrollLeft),Math.abs(ie.doc.scrollLeft-Rt)>1&&($e=!0)),!$e)break}return Ee}function Cu(ie,ae){var ve=Bd(ie,ae);ve.scrollTop!=null&&du(ie,ve.scrollTop),ve.scrollLeft!=null&&Kl(ie,ve.scrollLeft)}function Bd(ie,ae){var ve=ie.display,me=fs(ie.display);ae.top<0&&(ae.top=0);var Ee=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:ve.scroller.scrollTop,Ue=Ts(ie),$e={};ae.bottom-ae.top>Ue&&(ae.bottom=ae.top+Ue);var pt=ie.doc.height+zo(ve),ft=ae.top<me,Ct=ae.bottom>pt-me;if(ae.top<Ee)$e.scrollTop=ft?0:ae.top;else if(ae.bottom>Ee+Ue){var hn=Math.min(ae.top,(Ct?pt:ae.bottom)-Ue);hn!=Ee&&($e.scrollTop=hn)}var Rt=ie.options.fixedGutter?0:ve.gutters.offsetWidth,Gn=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:ve.scroller.scrollLeft-Rt,Rn=Ma(ie)-ve.gutters.offsetWidth,Mi=ae.right-ae.left>Rn;return Mi&&(ae.right=ae.left+Rn),ae.left<10?$e.scrollLeft=0:ae.left<Gn?$e.scrollLeft=Math.max(0,ae.left+Rt-(Mi?0:10)):ae.right>Rn+Gn-3&&($e.scrollLeft=ae.right+(Mi?0:10)-Rn),$e}function sd(ie,ae){ae!=null&&(Bs(ie),ie.curOp.scrollTop=(ie.curOp.scrollTop==null?ie.doc.scrollTop:ie.curOp.scrollTop)+ae)}function Ql(ie){Bs(ie);var ae=ie.getCursor();ie.curOp.scrollToPos={from:ae,to:ae,margin:ie.options.cursorScrollMargin}}function Fl(ie,ae,ve){(ae!=null||ve!=null)&&Bs(ie),ae!=null&&(ie.curOp.scrollLeft=ae),ve!=null&&(ie.curOp.scrollTop=ve)}function To(ie,ae){Bs(ie),ie.curOp.scrollToPos=ae}function Bs(ie){var ae=ie.curOp.scrollToPos;if(ae){ie.curOp.scrollToPos=null;var ve=Bo(ie,ae.from),me=Bo(ie,ae.to);Ac(ie,ve,me,ae.margin)}}function Ac(ie,ae,ve,me){var Ee=Bd(ie,{left:Math.min(ae.left,ve.left),top:Math.min(ae.top,ve.top)-me,right:Math.max(ae.right,ve.right),bottom:Math.max(ae.bottom,ve.bottom)+me});Fl(ie,Ee.scrollLeft,Ee.scrollTop)}function du(ie,ae){Math.abs(ie.doc.scrollTop-ae)<2||(le||Qe(ie,{top:ae}),Nu(ie,ae,!0),le&&Qe(ie),Qu(ie,100))}function Nu(ie,ae,ve){ae=Math.max(0,Math.min(ie.display.scroller.scrollHeight-ie.display.scroller.clientHeight,ae)),!(ie.display.scroller.scrollTop==ae&&!ve)&&(ie.doc.scrollTop=ae,ie.display.scrollbars.setScrollTop(ae),ie.display.scroller.scrollTop!=ae&&(ie.display.scroller.scrollTop=ae))}function Kl(ie,ae,ve,me){ae=Math.max(0,Math.min(ae,ie.display.scroller.scrollWidth-ie.display.scroller.clientWidth)),!((ve?ae==ie.doc.scrollLeft:Math.abs(ie.doc.scrollLeft-ae)<2)&&!me)&&(ie.doc.scrollLeft=ae,Bt(ie),ie.display.scroller.scrollLeft!=ae&&(ie.display.scroller.scrollLeft=ae),ie.display.scrollbars.setScrollLeft(ae))}function bl(ie){var ae=ie.display,ve=ae.gutters.offsetWidth,me=Math.round(ie.doc.height+zo(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?ve:0,docHeight:me,scrollHeight:me+ia(ie)+ae.barHeight,nativeBarWidth:ae.nativeBarWidth,gutterWidth:ve}}var Vu=function(ie,ae,ve){this.cm=ve;var me=this.vert=ht("div",[ht("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Ee=this.horiz=ht("div",[ht("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");me.tabIndex=Ee.tabIndex=-1,ie(me),ie(Ee),_t(me,"scroll",function(){me.clientHeight&&ae(me.scrollTop,"vertical")}),_t(Ee,"scroll",function(){Ee.clientWidth&&ae(Ee.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ye&&Re<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Vu.prototype.update=function(ie){var ae=ie.scrollWidth>ie.clientWidth+1,ve=ie.scrollHeight>ie.clientHeight+1,me=ie.nativeBarWidth;if(ve){this.vert.style.display="block",this.vert.style.bottom=ae?me+"px":"0";var Ee=ie.viewHeight-(ae?me:0);this.vert.firstChild.style.height=Math.max(0,ie.scrollHeight-ie.clientHeight+Ee)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(ae){this.horiz.style.display="block",this.horiz.style.right=ve?me+"px":"0",this.horiz.style.left=ie.barLeft+"px";var Ue=ie.viewWidth-ie.barLeft-(ve?me:0);this.horiz.firstChild.style.width=Math.max(0,ie.scrollWidth-ie.clientWidth+Ue)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&ie.clientHeight>0&&(me==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ve?me:0,bottom:ae?me:0}},Vu.prototype.setScrollLeft=function(ie){this.horiz.scrollLeft!=ie&&(this.horiz.scrollLeft=ie),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Vu.prototype.setScrollTop=function(ie){this.vert.scrollTop!=ie&&(this.vert.scrollTop=ie),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Vu.prototype.zeroWidthHack=function(){var ie=he&&!st?"12px":"18px";this.horiz.style.height=this.vert.style.width=ie,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ct,this.disableVert=new ct},Vu.prototype.enableZeroWidthBar=function(ie,ae,ve){ie.style.pointerEvents="auto";function me(){var Ee=ie.getBoundingClientRect(),Ue=ve=="vert"?document.elementFromPoint(Ee.right-1,(Ee.top+Ee.bottom)/2):document.elementFromPoint((Ee.right+Ee.left)/2,Ee.bottom-1);Ue!=ie?ie.style.pointerEvents="none":ae.set(1e3,me)}ae.set(1e3,me)},Vu.prototype.clear=function(){var ie=this.horiz.parentNode;ie.removeChild(this.horiz),ie.removeChild(this.vert)};var wl=function(){};wl.prototype.update=function(){return{bottom:0,right:0}},wl.prototype.setScrollLeft=function(){},wl.prototype.setScrollTop=function(){},wl.prototype.clear=function(){};function hu(ie,ae){ae||(ae=bl(ie));var ve=ie.display.barWidth,me=ie.display.barHeight;uc(ie,ae);for(var Ee=0;Ee<4&&ve!=ie.display.barWidth||me!=ie.display.barHeight;Ee++)ve!=ie.display.barWidth&&ie.options.lineWrapping&&Dr(ie),uc(ie,bl(ie)),ve=ie.display.barWidth,me=ie.display.barHeight}function uc(ie,ae){var ve=ie.display,me=ve.scrollbars.update(ae);ve.sizer.style.paddingRight=(ve.barWidth=me.right)+"px",ve.sizer.style.paddingBottom=(ve.barHeight=me.bottom)+"px",ve.heightForcer.style.borderBottom=me.bottom+"px solid transparent",me.right&&me.bottom?(ve.scrollbarFiller.style.display="block",ve.scrollbarFiller.style.height=me.bottom+"px",ve.scrollbarFiller.style.width=me.right+"px"):ve.scrollbarFiller.style.display="",me.bottom&&ie.options.coverGutterNextToScrollbar&&ie.options.fixedGutter?(ve.gutterFiller.style.display="block",ve.gutterFiller.style.height=me.bottom+"px",ve.gutterFiller.style.width=ae.gutterWidth+"px"):ve.gutterFiller.style.display=""}var Zu={native:Vu,null:wl};function cc(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&Ke(ie.display.wrapper,ie.display.scrollbars.addClass)),ie.display.scrollbars=new Zu[ie.options.scrollbarStyle](function(ae){ie.display.wrapper.insertBefore(ae,ie.display.scrollbarFiller),_t(ae,"mousedown",function(){ie.state.focused&&setTimeout(function(){return ie.display.input.focus()},0)}),ae.setAttribute("cm-not-content","true")},function(ae,ve){ve=="horizontal"?Kl(ie,ae):du(ie,ae)},ie),ie.display.scrollbars.addClass&&$t(ie.display.wrapper,ie.display.scrollbars.addClass)}var dc=0;function fu(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:++dc},ul(ie.curOp)}function Mu(ie){var ae=ie.curOp;ae&&Zl(ae,function(ve){for(var me=0;me<ve.ops.length;me++)ve.ops[me].cm.curOp=null;ld(ve)})}function ld(ie){for(var ae=ie.ops,ve=0;ve<ae.length;ve++)mh(ae[ve]);for(var me=0;me<ae.length;me++)vh(ae[me]);for(var Ee=0;Ee<ae.length;Ee++)yh(ae[Ee]);for(var Ue=0;Ue<ae.length;Ue++)Pa(ae[Ue]);for(var $e=0;$e<ae.length;$e++)Pu(ae[$e])}function mh(ie){var ae=ie.cm,ve=ae.display;ud(ae),ie.updateMaxLine&&ao(ae),ie.mustUpdate=ie.viewChanged||ie.forceUpdate||ie.scrollTop!=null||ie.scrollToPos&&(ie.scrollToPos.from.line<ve.viewFrom||ie.scrollToPos.to.line>=ve.viewTo)||ve.maxLineChanged&&ae.options.lineWrapping,ie.update=ie.mustUpdate&&new Lu(ae,ie.mustUpdate&&{top:ie.scrollTop,ensure:ie.scrollToPos},ie.forceUpdate)}function vh(ie){ie.updatedDisplay=ie.mustUpdate&&we(ie.cm,ie.update)}function yh(ie){var ae=ie.cm,ve=ae.display;ie.updatedDisplay&&Dr(ae),ie.barMeasure=bl(ae),ve.maxLineChanged&&!ae.options.lineWrapping&&(ie.adjustWidthTo=Ol(ae,ve.maxLine,ve.maxLine.text.length).left+3,ae.display.sizerWidth=ie.adjustWidthTo,ie.barMeasure.scrollWidth=Math.max(ve.scroller.clientWidth,ve.sizer.offsetLeft+ie.adjustWidthTo+ia(ae)+ae.display.barWidth),ie.maxScrollLeft=Math.max(0,ve.sizer.offsetLeft+ie.adjustWidthTo-Ma(ae))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=ve.input.prepareSelection())}function Pa(ie){var ae=ie.cm;ie.adjustWidthTo!=null&&(ae.display.sizer.style.minWidth=ie.adjustWidthTo+"px",ie.maxScrollLeft<ae.doc.scrollLeft&&Kl(ae,Math.min(ae.display.scroller.scrollLeft,ie.maxScrollLeft),!0),ae.display.maxLineChanged=!1);var ve=ie.focus&&ie.focus==It();ie.preparedSelection&&ae.display.input.showSelection(ie.preparedSelection,ve),(ie.updatedDisplay||ie.startHeight!=ae.doc.height)&&hu(ae,ie.barMeasure),ie.updatedDisplay&&wt(ae,ie.barMeasure),ie.selectionChanged&&Wo(ae),ae.state.focused&&ie.updateInput&&ae.display.input.reset(ie.typing),ve&&qo(ie.cm)}function Pu(ie){var ae=ie.cm,ve=ae.display,me=ae.doc;if(ie.updatedDisplay&&He(ae,ie.update),ve.wheelStartX!=null&&(ie.scrollTop!=null||ie.scrollLeft!=null||ie.scrollToPos)&&(ve.wheelStartX=ve.wheelStartY=null),ie.scrollTop!=null&&Nu(ae,ie.scrollTop,ie.forceScroll),ie.scrollLeft!=null&&Kl(ae,ie.scrollLeft,!0,!0),ie.scrollToPos){var Ee=Tc(ae,bn(me,ie.scrollToPos.from),bn(me,ie.scrollToPos.to),ie.scrollToPos.margin);ph(ae,Ee)}var Ue=ie.maybeHiddenMarkers,$e=ie.maybeUnhiddenMarkers;if(Ue)for(var pt=0;pt<Ue.length;++pt)Ue[pt].lines.length||Sn(Ue[pt],"hide");if($e)for(var ft=0;ft<$e.length;++ft)$e[ft].lines.length&&Sn($e[ft],"unhide");ve.wrapper.offsetHeight&&(me.scrollTop=ae.display.scroller.scrollTop),ie.changeObjs&&Sn(ae,"changes",ae,ie.changeObjs),ie.update&&ie.update.finish()}function Uo(ie,ae){if(ie.curOp)return ae();fu(ie);try{return ae()}finally{Mu(ie)}}function Ka(ie,ae){return function(){if(ie.curOp)return ae.apply(ie,arguments);fu(ie);try{return ae.apply(ie,arguments)}finally{Mu(ie)}}}function ss(ie){return function(){if(this.curOp)return ie.apply(this,arguments);fu(this);try{return ie.apply(this,arguments)}finally{Mu(this)}}}function ns(ie){return function(){var ae=this.cm;if(!ae||ae.curOp)return ie.apply(this,arguments);fu(ae);try{return ie.apply(this,arguments)}finally{Mu(ae)}}}function Qu(ie,ae){ie.doc.highlightFrontier<ie.display.viewTo&&ie.state.highlight.set(ae,un(gs,ie))}function gs(ie){var ae=ie.doc;if(!(ae.highlightFrontier>=ie.display.viewTo)){var ve=+new Date+ie.options.workTime,me=Zr(ie,ae.highlightFrontier),Ee=[];ae.iter(me.line,Math.min(ae.first+ae.size,ie.display.viewTo+500),function(Ue){if(me.line>=ie.display.viewFrom){var $e=Ue.styles,pt=Ue.text.length>ie.options.maxHighlightLength?on(ae.mode,me.state):null,ft=Wt(ie,Ue,me,!0);pt&&(me.state=pt),Ue.styles=ft.styles;var Ct=Ue.styleClasses,hn=ft.classes;hn?Ue.styleClasses=hn:Ct&&(Ue.styleClasses=null);for(var Rt=!$e||$e.length!=Ue.styles.length||Ct!=hn&&(!Ct||!hn||Ct.bgClass!=hn.bgClass||Ct.textClass!=hn.textClass),Gn=0;!Rt&&Gn<$e.length;++Gn)Rt=$e[Gn]!=Ue.styles[Gn];Rt&&Ee.push(me.line),Ue.stateAfter=me.save(),me.nextLine()}else Ue.text.length<=ie.options.maxHighlightLength&&Mn(ie,Ue.text,me),Ue.stateAfter=me.line%5==0?me.save():null,me.nextLine();if(+new Date>ve)return Qu(ie,ie.options.workDelay),!0}),ae.highlightFrontier=me.line,ae.modeFrontier=Math.max(ae.modeFrontier,me.line),Ee.length&&Uo(ie,function(){for(var Ue=0;Ue<Ee.length;Ue++)mo(ie,Ee[Ue],"text")})}}var Lu=function(ie,ae,ve){var me=ie.display;this.viewport=ae,this.visible=Co(me,ie.doc,ae),this.editorIsHidden=!me.wrapper.offsetWidth,this.wrapperHeight=me.wrapper.clientHeight,this.wrapperWidth=me.wrapper.clientWidth,this.oldDisplayWidth=Ma(ie),this.force=ve,this.dims=cu(ie),this.events=[]};Lu.prototype.signal=function(ie,ae){Fn(ie,ae)&&this.events.push(arguments)},Lu.prototype.finish=function(){for(var ie=0;ie<this.events.length;ie++)Sn.apply(null,this.events[ie])};function ud(ie){var ae=ie.display;!ae.scrollbarsClipped&&ae.scroller.offsetWidth&&(ae.nativeBarWidth=ae.scroller.offsetWidth-ae.scroller.clientWidth,ae.heightForcer.style.height=ia(ie)+"px",ae.sizer.style.marginBottom=-ae.nativeBarWidth+"px",ae.sizer.style.borderRightWidth=ia(ie)+"px",ae.scrollbarsClipped=!0)}function cd(ie){if(ie.hasFocus())return null;var ae=It();if(!ae||!At(ie.display.lineDiv,ae))return null;var ve={activeElt:ae};if(window.getSelection){var me=window.getSelection();me.anchorNode&&me.extend&&At(ie.display.lineDiv,me.anchorNode)&&(ve.anchorNode=me.anchorNode,ve.anchorOffset=me.anchorOffset,ve.focusNode=me.focusNode,ve.focusOffset=me.focusOffset)}return ve}function _s(ie){if(!(!ie||!ie.activeElt||ie.activeElt==It())&&(ie.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(ie.activeElt.nodeName)&&ie.anchorNode&&At(document.body,ie.anchorNode)&&At(document.body,ie.focusNode))){var ae=window.getSelection(),ve=document.createRange();ve.setEnd(ie.anchorNode,ie.anchorOffset),ve.collapse(!1),ae.removeAllRanges(),ae.addRange(ve),ae.extend(ie.focusNode,ie.focusOffset)}}function we(ie,ae){var ve=ie.display,me=ie.doc;if(ae.editorIsHidden)return Ba(ie),!1;if(!ae.force&&ae.visible.from>=ve.viewFrom&&ae.visible.to<=ve.viewTo&&(ve.updateLineNumbers==null||ve.updateLineNumbers>=ve.viewTo)&&ve.renderedView==ve.view&&el(ie)==0)return!1;Qt(ie)&&(Ba(ie),ae.dims=cu(ie));var Ee=me.first+me.size,Ue=Math.max(ae.visible.from-ie.options.viewportMargin,me.first),$e=Math.min(Ee,ae.visible.to+ie.options.viewportMargin);ve.viewFrom<Ue&&Ue-ve.viewFrom<20&&(Ue=Math.max(me.first,ve.viewFrom)),ve.viewTo>$e&&ve.viewTo-$e<20&&($e=Math.min(Ee,ve.viewTo)),Un&&(Ue=nr(ie.doc,Ue),$e=Qi(ie.doc,$e));var pt=Ue!=ve.viewFrom||$e!=ve.viewTo||ve.lastWrapHeight!=ae.wrapperHeight||ve.lastWrapWidth!=ae.wrapperWidth;ea(ie,Ue,$e),ve.viewOffset=Gr(ei(ie.doc,ve.viewFrom)),ie.display.mover.style.top=ve.viewOffset+"px";var ft=el(ie);if(!pt&&ft==0&&!ae.force&&ve.renderedView==ve.view&&(ve.updateLineNumbers==null||ve.updateLineNumbers>=ve.viewTo))return!1;var Ct=cd(ie);return ft>4&&(ve.lineDiv.style.display="none"),tt(ie,ve.updateLineNumbers,ae.dims),ft>4&&(ve.lineDiv.style.display=""),ve.renderedView=ve.view,_s(Ct),rt(ve.cursorDiv),rt(ve.selectionDiv),ve.gutters.style.height=ve.sizer.style.minHeight=0,pt&&(ve.lastWrapHeight=ae.wrapperHeight,ve.lastWrapWidth=ae.wrapperWidth,Qu(ie,400)),ve.updateLineNumbers=null,!0}function He(ie,ae){for(var ve=ae.viewport,me=!0;;me=!1){if(!me||!ie.options.lineWrapping||ae.oldDisplayWidth==Ma(ie)){if(ve&&ve.top!=null&&(ve={top:Math.min(ie.doc.height+zo(ie.display)-Ts(ie),ve.top)}),ae.visible=Co(ie.display,ie.doc,ve),ae.visible.from>=ie.display.viewFrom&&ae.visible.to<=ie.display.viewTo)break}else me&&(ae.visible=Co(ie.display,ie.doc,ve));if(!we(ie,ae))break;Dr(ie);var Ee=bl(ie);Qa(ie),hu(ie,Ee),wt(ie,Ee),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 Qe(ie,ae){var ve=new Lu(ie,ae);if(we(ie,ve)){Dr(ie),He(ie,ve);var me=bl(ie);Qa(ie),hu(ie,me),wt(ie,me),ve.finish()}}function tt(ie,ae,ve){var me=ie.display,Ee=ie.options.lineNumbers,Ue=me.lineDiv,$e=Ue.firstChild;function pt(Mi){var Oi=Mi.nextSibling;return Ve&&he&&ie.display.currentWheelTarget==Mi?Mi.style.display="none":Mi.parentNode.removeChild(Mi),Oi}for(var ft=me.view,Ct=me.viewFrom,hn=0;hn<ft.length;hn++){var Rt=ft[hn];if(!Rt.hidden)if(!Rt.node||Rt.node.parentNode!=Ue){var Gn=ur(ie,Rt,Ct,ve);Ue.insertBefore(Gn,$e)}else{for(;$e!=Rt.node;)$e=pt($e);var Rn=Ee&&ae!=null&&ae<=Ct&&Rt.lineNumber;Rt.changes&&(it(Rt.changes,"gutter")>-1&&(Rn=!1),El(ie,Rt,Ct,ve)),Rn&&(rt(Rt.lineNumber),Rt.lineNumber.appendChild(document.createTextNode(gi(ie.options,Ct)))),$e=Rt.node.nextSibling}Ct+=Rt.size}for(;$e;)$e=pt($e)}function Et(ie){var ae=ie.gutters.offsetWidth;ie.sizer.style.marginLeft=ae+"px"}function wt(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+ia(ie)+"px"}function Bt(ie){var ae=ie.display,ve=ae.view;if(!(!ae.alignWidgets&&(!ae.gutters.firstChild||!ie.options.fixedGutter))){for(var me=Wc(ae)-ae.scroller.scrollLeft+ie.doc.scrollLeft,Ee=ae.gutters.offsetWidth,Ue=me+"px",$e=0;$e<ve.length;$e++)if(!ve[$e].hidden){ie.options.fixedGutter&&(ve[$e].gutter&&(ve[$e].gutter.style.left=Ue),ve[$e].gutterBackground&&(ve[$e].gutterBackground.style.left=Ue));var pt=ve[$e].alignable;if(pt)for(var ft=0;ft<pt.length;ft++)pt[ft].style.left=Ue}ie.options.fixedGutter&&(ae.gutters.style.left=me+Ee+"px")}}function Qt(ie){if(!ie.options.lineNumbers)return!1;var ae=ie.doc,ve=gi(ie.options,ae.first+ae.size-1),me=ie.display;if(ve.length!=me.lineNumChars){var Ee=me.measure.appendChild(ht("div",[ht("div",ve)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Ue=Ee.firstChild.offsetWidth,$e=Ee.offsetWidth-Ue;return me.lineGutter.style.width="",me.lineNumInnerWidth=Math.max(Ue,me.lineGutter.offsetWidth-$e)+1,me.lineNumWidth=me.lineNumInnerWidth+$e,me.lineNumChars=me.lineNumInnerWidth?ve.length:-1,me.lineGutter.style.width=me.lineNumWidth+"px",Et(ie.display),!0}return!1}function _n(ie,ae){for(var ve=[],me=!1,Ee=0;Ee<ie.length;Ee++){var Ue=ie[Ee],$e=null;if(typeof Ue!="string"&&($e=Ue.style,Ue=Ue.className),Ue=="CodeMirror-linenumbers")if(ae)me=!0;else continue;ve.push({className:Ue,style:$e})}return ae&&!me&&ve.push({className:"CodeMirror-linenumbers",style:null}),ve}function Hn(ie){var ae=ie.gutters,ve=ie.gutterSpecs;rt(ae),ie.lineGutter=null;for(var me=0;me<ve.length;++me){var Ee=ve[me],Ue=Ee.className,$e=Ee.style,pt=ae.appendChild(ht("div",null,"CodeMirror-gutter "+Ue));$e&&(pt.style.cssText=$e),Ue=="CodeMirror-linenumbers"&&(ie.lineGutter=pt,pt.style.width=(ie.lineNumWidth||1)+"px")}ae.style.display=ve.length?"":"none",Et(ie)}function xn(ie){Hn(ie.display),Po(ie),Bt(ie)}function ri(ie,ae,ve,me){var Ee=this;this.input=ve,Ee.scrollbarFiller=ht("div",null,"CodeMirror-scrollbar-filler"),Ee.scrollbarFiller.setAttribute("cm-not-content","true"),Ee.gutterFiller=ht("div",null,"CodeMirror-gutter-filler"),Ee.gutterFiller.setAttribute("cm-not-content","true"),Ee.lineDiv=bt("div",null,"CodeMirror-code"),Ee.selectionDiv=ht("div",null,null,"position: relative; z-index: 1"),Ee.cursorDiv=ht("div",null,"CodeMirror-cursors"),Ee.measure=ht("div",null,"CodeMirror-measure"),Ee.lineMeasure=ht("div",null,"CodeMirror-measure"),Ee.lineSpace=bt("div",[Ee.measure,Ee.lineMeasure,Ee.selectionDiv,Ee.cursorDiv,Ee.lineDiv],null,"position: relative; outline: none");var Ue=bt("div",[Ee.lineSpace],"CodeMirror-lines");Ee.mover=ht("div",[Ue],null,"position: relative"),Ee.sizer=ht("div",[Ee.mover],"CodeMirror-sizer"),Ee.sizerWidth=null,Ee.heightForcer=ht("div",null,null,"position: absolute; height: "+cn+"px; width: 1px;"),Ee.gutters=ht("div",null,"CodeMirror-gutters"),Ee.lineGutter=null,Ee.scroller=ht("div",[Ee.sizer,Ee.heightForcer,Ee.gutters],"CodeMirror-scroll"),Ee.scroller.setAttribute("tabIndex","-1"),Ee.wrapper=ht("div",[Ee.scrollbarFiller,Ee.gutterFiller,Ee.scroller],"CodeMirror"),Ye&&Re<8&&(Ee.gutters.style.zIndex=-1,Ee.scroller.style.paddingRight=0),!Ve&&!(le&&ne)&&(Ee.scroller.draggable=!0),ie&&(ie.appendChild?ie.appendChild(Ee.wrapper):ie(Ee.wrapper)),Ee.viewFrom=Ee.viewTo=ae.first,Ee.reportedViewFrom=Ee.reportedViewTo=ae.first,Ee.view=[],Ee.renderedView=null,Ee.externalMeasured=null,Ee.viewOffset=0,Ee.lastWrapHeight=Ee.lastWrapWidth=0,Ee.updateLineNumbers=null,Ee.nativeBarWidth=Ee.barHeight=Ee.barWidth=0,Ee.scrollbarsClipped=!1,Ee.lineNumWidth=Ee.lineNumInnerWidth=Ee.lineNumChars=null,Ee.alignWidgets=!1,Ee.cachedCharWidth=Ee.cachedTextHeight=Ee.cachedPaddingH=null,Ee.maxLine=null,Ee.maxLineLength=0,Ee.maxLineChanged=!1,Ee.wheelDX=Ee.wheelDY=Ee.wheelStartX=Ee.wheelStartY=null,Ee.shift=!1,Ee.selForContextMenu=null,Ee.activeTouch=null,Ee.gutterSpecs=_n(me.gutters,me.lineNumbers),Hn(Ee),ve.init(Ee)}var $n=0,Pn=null;Ye?Pn=-.53:le?Pn=15:Xe?Pn=-.7:mt&&(Pn=-1/3);function Br(ie){var ae=ie.wheelDeltaX,ve=ie.wheelDeltaY;return ae==null&&ie.detail&&ie.axis==ie.HORIZONTAL_AXIS&&(ae=ie.detail),ve==null&&ie.detail&&ie.axis==ie.VERTICAL_AXIS?ve=ie.detail:ve==null&&(ve=ie.wheelDelta),{x:ae,y:ve}}function Xr(ie){var ae=Br(ie);return ae.x*=Pn,ae.y*=Pn,ae}function so(ie,ae){var ve=Br(ae),me=ve.x,Ee=ve.y,Ue=ie.display,$e=Ue.scroller,pt=$e.scrollWidth>$e.clientWidth,ft=$e.scrollHeight>$e.clientHeight;if(me&&pt||Ee&&ft){if(Ee&&he&&Ve){e:for(var Ct=ae.target,hn=Ue.view;Ct!=$e;Ct=Ct.parentNode)for(var Rt=0;Rt<hn.length;Rt++)if(hn[Rt].node==Ct){ie.display.currentWheelTarget=Ct;break e}}if(me&&!le&&!qe&&Pn!=null){Ee&&ft&&du(ie,Math.max(0,$e.scrollTop+Ee*Pn)),Kl(ie,Math.max(0,$e.scrollLeft+me*Pn)),(!Ee||Ee&&ft)&&kn(ae),Ue.wheelStartX=null;return}if(Ee&&Pn!=null){var Gn=Ee*Pn,Rn=ie.doc.scrollTop,Mi=Rn+Ue.wrapper.clientHeight;Gn<0?Rn=Math.max(0,Rn+Gn-50):Mi=Math.min(ie.doc.height,Mi+Gn+50),Qe(ie,{top:Rn,bottom:Mi})}$n<20&&(Ue.wheelStartX==null?(Ue.wheelStartX=$e.scrollLeft,Ue.wheelStartY=$e.scrollTop,Ue.wheelDX=me,Ue.wheelDY=Ee,setTimeout(function(){if(Ue.wheelStartX!=null){var Oi=$e.scrollLeft-Ue.wheelStartX,Vi=$e.scrollTop-Ue.wheelStartY,fr=Vi&&Ue.wheelDY&&Vi/Ue.wheelDY||Oi&&Ue.wheelDX&&Oi/Ue.wheelDX;Ue.wheelStartX=Ue.wheelStartY=null,fr&&(Pn=(Pn*$n+fr)/($n+1),++$n)}},200)):(Ue.wheelDX+=me,Ue.wheelDY+=Ee))}}var Er=function(ie,ae){this.ranges=ie,this.primIndex=ae};Er.prototype.primary=function(){return this.ranges[this.primIndex]},Er.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 ve=this.ranges[ae],me=ie.ranges[ae];if(!ni(ve.anchor,me.anchor)||!ni(ve.head,me.head))return!1}return!0},Er.prototype.deepCopy=function(){for(var ie=[],ae=0;ae<this.ranges.length;ae++)ie[ae]=new zr(Zt(this.ranges[ae].anchor),Zt(this.ranges[ae].head));return new Er(ie,this.primIndex)},Er.prototype.somethingSelected=function(){for(var ie=0;ie<this.ranges.length;ie++)if(!this.ranges[ie].empty())return!0;return!1},Er.prototype.contains=function(ie,ae){ae||(ae=ie);for(var ve=0;ve<this.ranges.length;ve++){var me=this.ranges[ve];if(Vn(ae,me.from())>=0&&Vn(ie,me.to())<=0)return ve}return-1};var zr=function(ie,ae){this.anchor=ie,this.head=ae};zr.prototype.from=function(){return ci(this.anchor,this.head)},zr.prototype.to=function(){return je(this.anchor,this.head)},zr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Yr(ie,ae,ve){var me=ie&&ie.options.selectionsMayTouch,Ee=ae[ve];ae.sort(function(Gn,Rn){return Vn(Gn.from(),Rn.from())}),ve=it(ae,Ee);for(var Ue=1;Ue<ae.length;Ue++){var $e=ae[Ue],pt=ae[Ue-1],ft=Vn(pt.to(),$e.from());if(me&&!$e.empty()?ft>0:ft>=0){var Ct=ci(pt.from(),$e.from()),hn=je(pt.to(),$e.to()),Rt=pt.empty()?$e.from()==$e.head:pt.from()==pt.head;Ue<=ve&&--ve,ae.splice(--Ue,2,new zr(Rt?hn:Ct,Rt?Ct:hn))}}return new Er(ae,ve)}function aa(ie,ae){return new Er([new zr(ie,ae||ie)],0)}function sa(ie){return ie.text?jt(ie.from.line+ie.text.length-1,kt(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function or(ie,ae){if(Vn(ie,ae.from)<0)return ie;if(Vn(ie,ae.to)<=0)return sa(ae);var ve=ie.line+ae.text.length-(ae.to.line-ae.from.line)-1,me=ie.ch;return ie.line==ae.to.line&&(me+=sa(ae).ch-ae.to.ch),jt(ve,me)}function da(ie,ae){for(var ve=[],me=0;me<ie.sel.ranges.length;me++){var Ee=ie.sel.ranges[me];ve.push(new zr(or(Ee.anchor,ae),or(Ee.head,ae)))}return Yr(ie.cm,ve,ie.sel.primIndex)}function ka(ie,ae,ve){return ie.line==ae.line?jt(ve.line,ie.ch-ae.ch+ve.ch):jt(ve.line+(ie.line-ae.line),ie.ch)}function ta(ie,ae,ve){for(var me=[],Ee=jt(ie.first,0),Ue=Ee,$e=0;$e<ae.length;$e++){var pt=ae[$e],ft=ka(pt.from,Ee,Ue),Ct=ka(sa(pt),Ee,Ue);if(Ee=pt.to,Ue=Ct,ve=="around"){var hn=ie.sel.ranges[$e],Rt=Vn(hn.head,hn.anchor)<0;me[$e]=new zr(Rt?Ct:ft,Rt?ft:Ct)}else me[$e]=new zr(ft,ft)}return new Er(me,ie.sel.primIndex)}function Fr(ie){ie.doc.mode=Kt(ie.options,ie.doc.modeOption),js(ie)}function js(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,Qu(ie,100),ie.state.modeGen++,ie.curOp&&Po(ie)}function ya(ie,ae){return ae.from.ch==0&&ae.to.ch==0&&kt(ae.text)==""&&(!ie.cm||ie.cm.options.wholeLineUpdateBefore)}function oo(ie,ae,ve,me){function Ee(Pr){return ve?ve[Pr]:null}function Ue(Pr,br,_r){Xo(Pr,br,_r,me),mr(Pr,"change",Pr,ae)}function $e(Pr,br){for(var _r=[],io=Pr;io<br;++io)_r.push(new Zo(Ct[io],Ee(io),me));return _r}var pt=ae.from,ft=ae.to,Ct=ae.text,hn=ei(ie,pt.line),Rt=ei(ie,ft.line),Gn=kt(Ct),Rn=Ee(Ct.length-1),Mi=ft.line-pt.line;if(ae.full)ie.insert(0,$e(0,Ct.length)),ie.remove(Ct.length,ie.size-Ct.length);else if(ya(ie,ae)){var Oi=$e(0,Ct.length-1);Ue(Rt,Rt.text,Rn),Mi&&ie.remove(pt.line,Mi),Oi.length&&ie.insert(pt.line,Oi)}else if(hn==Rt)if(Ct.length==1)Ue(hn,hn.text.slice(0,pt.ch)+Gn+hn.text.slice(ft.ch),Rn);else{var Vi=$e(1,Ct.length-1);Vi.push(new Zo(Gn+hn.text.slice(ft.ch),Rn,me)),Ue(hn,hn.text.slice(0,pt.ch)+Ct[0],Ee(0)),ie.insert(pt.line+1,Vi)}else if(Ct.length==1)Ue(hn,hn.text.slice(0,pt.ch)+Ct[0]+Rt.text.slice(ft.ch),Ee(0)),ie.remove(pt.line+1,Mi);else{Ue(hn,hn.text.slice(0,pt.ch)+Ct[0],Ee(0)),Ue(Rt,Gn+Rt.text.slice(ft.ch),Rn);var fr=$e(1,Ct.length-1);Mi>1&&ie.remove(pt.line+1,Mi-1),ie.insert(pt.line+1,fr)}mr(ie,"change",ie,ae)}function to(ie,ae,ve){function me(Ee,Ue,$e){if(Ee.linked)for(var pt=0;pt<Ee.linked.length;++pt){var ft=Ee.linked[pt];if(ft.doc!=Ue){var Ct=$e&&ft.sharedHist;ve&&!Ct||(ae(ft.doc,Ct),me(ft.doc,Ee,Ct))}}}me(ie,null,!0)}function Do(ie,ae){if(ae.cm)throw new Error("This document is already in use.");ie.doc=ae,ae.cm=ie,jr(ie),Fr(ie),La(ie),ie.options.lineWrapping||ao(ie),ie.options.mode=ae.modeOption,Po(ie)}function La(ie){(ie.doc.direction=="rtl"?$t:Ke)(ie.display.lineDiv,"CodeMirror-rtl")}function ps(ie){Uo(ie,function(){La(ie),Po(ie)})}function Ms(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 fl(ie,ae){var ve={from:Zt(ae.from),to:sa(ae),text:ji(ie,ae.from,ae.to)};return Xl(ie,ve,ae.from.line,ae.to.line+1),to(ie,function(me){return Xl(me,ve,ae.from.line,ae.to.line+1)},!0),ve}function Zn(ie){for(;ie.length;){var ae=kt(ie);if(ae.ranges)ie.pop();else break}}function zs(ie,ae){if(ae)return Zn(ie.done),kt(ie.done);if(ie.done.length&&!kt(ie.done).ranges)return kt(ie.done);if(ie.done.length>1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),kt(ie.done)}function Tl(ie,ae,ve,me){var Ee=ie.history;Ee.undone.length=0;var Ue=+new Date,$e,pt;if((Ee.lastOp==me||Ee.lastOrigin==ae.origin&&ae.origin&&(ae.origin.charAt(0)=="+"&&Ee.lastModTime>Ue-(ie.cm?ie.cm.options.historyEventDelay:500)||ae.origin.charAt(0)=="*"))&&($e=zs(Ee,Ee.lastOp==me)))pt=kt($e.changes),Vn(ae.from,ae.to)==0&&Vn(ae.from,pt.to)==0?pt.to=sa(ae):$e.changes.push(fl(ie,ae));else{var ft=kt(Ee.done);for((!ft||!ft.ranges)&&Bl(ie.sel,Ee.done),$e={changes:[fl(ie,ae)],generation:Ee.generation},Ee.done.push($e);Ee.done.length>Ee.undoDepth;)Ee.done.shift(),Ee.done[0].ranges||Ee.done.shift()}Ee.done.push(ve),Ee.generation=++Ee.maxGeneration,Ee.lastModTime=Ee.lastSelTime=Ue,Ee.lastOp=Ee.lastSelOp=me,Ee.lastOrigin=Ee.lastSelOrigin=ae.origin,pt||Sn(ie,"historyAdded")}function qn(ie,ae,ve,me){var Ee=ae.charAt(0);return Ee=="*"||Ee=="+"&&ve.ranges.length==me.ranges.length&&ve.somethingSelected()==me.somethingSelected()&&new Date-ie.history.lastSelTime<=(ie.cm?ie.cm.options.historyEventDelay:500)}function Ps(ie,ae,ve,me){var Ee=ie.history,Ue=me&&me.origin;ve==Ee.lastSelOp||Ue&&Ee.lastSelOrigin==Ue&&(Ee.lastModTime==Ee.lastSelTime&&Ee.lastOrigin==Ue||qn(ie,Ue,kt(Ee.done),ae))?Ee.done[Ee.done.length-1]=ae:Bl(ae,Ee.done),Ee.lastSelTime=+new Date,Ee.lastSelOrigin=Ue,Ee.lastSelOp=ve,me&&me.clearRedo!==!1&&Zn(Ee.undone)}function Bl(ie,ae){var ve=kt(ae);ve&&ve.ranges&&ve.equals(ie)||ae.push(ie)}function Xl(ie,ae,ve,me){var Ee=ae["spans_"+ie.id],Ue=0;ie.iter(Math.max(ie.first,ve),Math.min(ie.first+ie.size,me),function($e){$e.markedSpans&&((Ee||(Ee=ae["spans_"+ie.id]={}))[Ue]=$e.markedSpans),++Ue})}function ls(ie){if(!ie)return null;for(var ae,ve=0;ve<ie.length;++ve)ie[ve].marker.explicitlyCleared?ae||(ae=ie.slice(0,ve)):ae&&ae.push(ie[ve]);return ae?ae.length?ae:null:ie}function Ia(ie,ae){var ve=ae["spans_"+ie.id];if(!ve)return null;for(var me=[],Ee=0;Ee<ae.text.length;++Ee)me.push(ls(ve[Ee]));return me}function Al(ie,ae){var ve=Ia(ie,ae),me=Qr(ie,ae);if(!ve)return me;if(!me)return ve;for(var Ee=0;Ee<ve.length;++Ee){var Ue=ve[Ee],$e=me[Ee];if(Ue&&$e)e:for(var pt=0;pt<$e.length;++pt){for(var ft=$e[pt],Ct=0;Ct<Ue.length;++Ct)if(Ue[Ct].marker==ft.marker)continue e;Ue.push(ft)}else $e&&(ve[Ee]=$e)}return ve}function ys(ie,ae,ve){for(var me=[],Ee=0;Ee<ie.length;++Ee){var Ue=ie[Ee];if(Ue.ranges){me.push(ve?Er.prototype.deepCopy.call(Ue):Ue);continue}var $e=Ue.changes,pt=[];me.push({changes:pt});for(var ft=0;ft<$e.length;++ft){var Ct=$e[ft],hn=void 0;if(pt.push({from:Ct.from,to:Ct.to,text:Ct.text}),ae)for(var Rt in Ct)(hn=Rt.match(/^spans_(\d+)$/))&&it(ae,Number(hn[1]))>-1&&(kt(pt)[Rt]=Ct[Rt],delete Ct[Rt])}}return me}function gu(ie,ae,ve,me){if(me){var Ee=ie.anchor;if(ve){var Ue=Vn(ae,Ee)<0;Ue!=Vn(ve,Ee)<0?(Ee=ae,ae=ve):Ue!=Vn(ae,ve)<0&&(ae=ve)}return new zr(Ee,ae)}else return new zr(ve||ae,ae)}function Iu(ie,ae,ve,me,Ee){Ee==null&&(Ee=ie.cm&&(ie.cm.display.shift||ie.extend)),pe(ie,new Er([gu(ie.sel.primary(),ae,ve,Ee)],0),me)}function dd(ie,ae,ve){for(var me=[],Ee=ie.cm&&(ie.cm.display.shift||ie.extend),Ue=0;Ue<ie.sel.ranges.length;Ue++)me[Ue]=gu(ie.sel.ranges[Ue],ae[Ue],null,Ee);var $e=Yr(ie.cm,me,ie.sel.primIndex);pe(ie,$e,ve)}function _l(ie,ae,ve,me){var Ee=ie.sel.ranges.slice(0);Ee[ae]=ve,pe(ie,Yr(ie.cm,Ee,ie.sel.primIndex),me)}function Ku(ie,ae,ve,me){pe(ie,aa(ae,ve),me)}function _d(ie,ae,ve){var me={ranges:ae.ranges,update:function(Ee){this.ranges=[];for(var Ue=0;Ue<Ee.length;Ue++)this.ranges[Ue]=new zr(bn(ie,Ee[Ue].anchor),bn(ie,Ee[Ue].head))},origin:ve&&ve.origin};return Sn(ie,"beforeSelectionChange",ie,me),ie.cm&&Sn(ie.cm,"beforeSelectionChange",ie.cm,me),me.ranges!=ae.ranges?Yr(ie.cm,me.ranges,me.ranges.length-1):ae}function ue(ie,ae,ve){var me=ie.history.done,Ee=kt(me);Ee&&Ee.ranges?(me[me.length-1]=ae,Ze(ie,ae,ve)):pe(ie,ae,ve)}function pe(ie,ae,ve){Ze(ie,ae,ve),Ps(ie,ie.sel,ie.cm?ie.cm.curOp.id:NaN,ve)}function Ze(ie,ae,ve){(Fn(ie,"beforeSelectionChange")||ie.cm&&Fn(ie.cm,"beforeSelectionChange"))&&(ae=_d(ie,ae,ve));var me=ve&&ve.bias||(Vn(ae.primary().head,ie.sel.primary().head)<0?-1:1);Ot(ie,bi(ie,ae,me,!0)),!(ve&&ve.scroll===!1)&&ie.cm&&Ql(ie.cm)}function Ot(ie,ae){ae.equals(ie.sel)||(ie.sel=ae,ie.cm&&(ie.cm.curOp.updateInput=1,ie.cm.curOp.selectionChanged=!0,si(ie.cm)),mr(ie,"cursorActivity",ie))}function jn(ie){Ot(ie,bi(ie,ie.sel,null,!1))}function bi(ie,ae,ve,me){for(var Ee,Ue=0;Ue<ae.ranges.length;Ue++){var $e=ae.ranges[Ue],pt=ae.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[Ue],ft=Ur(ie,$e.anchor,pt&&pt.anchor,ve,me),Ct=Ur(ie,$e.head,pt&&pt.head,ve,me);(Ee||ft!=$e.anchor||Ct!=$e.head)&&(Ee||(Ee=ae.ranges.slice(0,Ue)),Ee[Ue]=new zr(ft,Ct))}return Ee?Yr(ie.cm,Ee,ae.primIndex):ae}function Gi(ie,ae,ve,me,Ee){var Ue=ei(ie,ae.line);if(Ue.markedSpans)for(var $e=0;$e<Ue.markedSpans.length;++$e){var pt=Ue.markedSpans[$e],ft=pt.marker,Ct="selectLeft"in ft?!ft.selectLeft:ft.inclusiveLeft,hn="selectRight"in ft?!ft.selectRight:ft.inclusiveRight;if((pt.from==null||(Ct?pt.from<=ae.ch:pt.from<ae.ch))&&(pt.to==null||(hn?pt.to>=ae.ch:pt.to>ae.ch))){if(Ee&&(Sn(ft,"beforeCursorEnter"),ft.explicitlyCleared))if(Ue.markedSpans){--$e;continue}else break;if(!ft.atomic)continue;if(ve){var Rt=ft.find(me<0?1:-1),Gn=void 0;if((me<0?hn:Ct)&&(Rt=no(ie,Rt,-me,Rt&&Rt.line==ae.line?Ue:null)),Rt&&Rt.line==ae.line&&(Gn=Vn(Rt,ve))&&(me<0?Gn<0:Gn>0))return Gi(ie,Rt,ae,me,Ee)}var Rn=ft.find(me<0?-1:1);return(me<0?Ct:hn)&&(Rn=no(ie,Rn,me,Rn.line==ae.line?Ue:null)),Rn?Gi(ie,Rn,ae,me,Ee):null}}return ae}function Ur(ie,ae,ve,me,Ee){var Ue=me||1,$e=Gi(ie,ae,ve,Ue,Ee)||!Ee&&Gi(ie,ae,ve,Ue,!0)||Gi(ie,ae,ve,-Ue,Ee)||!Ee&&Gi(ie,ae,ve,-Ue,!0);return $e||(ie.cantEdit=!0,jt(ie.first,0))}function no(ie,ae,ve,me){return ve<0&&ae.ch==0?ae.line>ie.first?bn(ie,jt(ae.line-1)):null:ve>0&&ae.ch==(me||ei(ie,ae.line)).text.length?ae.line<ie.first+ie.size-1?jt(ae.line+1,0):null:new jt(ae.line,ae.ch+ve)}function Si(ie){ie.setSelection(jt(ie.firstLine(),0),jt(ie.lastLine()),Pt)}function vr(ie,ae,ve){var me={canceled:!1,from:ae.from,to:ae.to,text:ae.text,origin:ae.origin,cancel:function(){return me.canceled=!0}};return ve&&(me.update=function(Ee,Ue,$e,pt){Ee&&(me.from=bn(ie,Ee)),Ue&&(me.to=bn(ie,Ue)),$e&&(me.text=$e),pt!==void 0&&(me.origin=pt)}),Sn(ie,"beforeChange",ie,me),ie.cm&&Sn(ie.cm,"beforeChange",ie.cm,me),me.canceled?(ie.cm&&(ie.cm.curOp.updateInput=2),null):{from:me.from,to:me.to,text:me.text,origin:me.origin}}function lo(ie,ae,ve){if(ie.cm){if(!ie.cm.curOp)return Ka(ie.cm,lo)(ie,ae,ve);if(ie.cm.state.suppressEdits)return}if(!((Fn(ie,"beforeChange")||ie.cm&&Fn(ie.cm,"beforeChange"))&&(ae=vr(ie,ae,!0),!ae))){var me=Rr&&!ve&&qr(ie,ae.from,ae.to);if(me)for(var Ee=me.length-1;Ee>=0;--Ee)_o(ie,{from:me[Ee].from,to:me[Ee].to,text:Ee?[""]:ae.text,origin:ae.origin});else _o(ie,ae)}}function _o(ie,ae){if(!(ae.text.length==1&&ae.text[0]==""&&Vn(ae.from,ae.to)==0)){var ve=da(ie,ae);Tl(ie,ae,ve,ie.cm?ie.cm.curOp.id:NaN),pu(ie,ae,ve,Qr(ie,ae));var me=[];to(ie,function(Ee,Ue){!Ue&&it(me,Ee.history)==-1&&(Cc(Ee.history,ae),me.push(Ee.history)),pu(Ee,ae,null,Qr(Ee,ae))})}}function va(ie,ae,ve){var me=ie.cm&&ie.cm.state.suppressEdits;if(!(me&&!ve)){for(var Ee=ie.history,Ue,$e=ie.sel,pt=ae=="undo"?Ee.done:Ee.undone,ft=ae=="undo"?Ee.undone:Ee.done,Ct=0;Ct<pt.length&&(Ue=pt[Ct],!(ve?Ue.ranges&&!Ue.equals(ie.sel):!Ue.ranges));Ct++);if(Ct!=pt.length){for(Ee.lastOrigin=Ee.lastSelOrigin=null;;)if(Ue=pt.pop(),Ue.ranges){if(Bl(Ue,ft),ve&&!Ue.equals(ie.sel)){pe(ie,Ue,{clearRedo:!1});return}$e=Ue}else if(me){pt.push(Ue);return}else break;var hn=[];Bl($e,ft),ft.push({changes:hn,generation:Ee.generation}),Ee.generation=Ue.generation||++Ee.maxGeneration;for(var Rt=Fn(ie,"beforeChange")||ie.cm&&Fn(ie.cm,"beforeChange"),Gn=function(Oi){var Vi=Ue.changes[Oi];if(Vi.origin=ae,Rt&&!vr(ie,Vi,!1))return pt.length=0,{};hn.push(fl(ie,Vi));var fr=Oi?da(ie,Vi):kt(pt);pu(ie,Vi,fr,Al(ie,Vi)),!Oi&&ie.cm&&ie.cm.scrollIntoView({from:Vi.from,to:sa(Vi)});var Pr=[];to(ie,function(br,_r){!_r&&it(Pr,br.history)==-1&&(Cc(br.history,Vi),Pr.push(br.history)),pu(br,Vi,null,Al(br,Vi))})},Rn=Ue.changes.length-1;Rn>=0;--Rn){var Mi=Gn(Rn);if(Mi)return Mi.v}}}}function Jl(ie,ae){if(ae!=0&&(ie.first+=ae,ie.sel=new Er(Kn(ie.sel.ranges,function(Ee){return new zr(jt(Ee.anchor.line+ae,Ee.anchor.ch),jt(Ee.head.line+ae,Ee.head.ch))}),ie.sel.primIndex),ie.cm)){Po(ie.cm,ie.first,ie.first-ae,ae);for(var ve=ie.cm.display,me=ve.viewFrom;me<ve.viewTo;me++)mo(ie.cm,me,"gutter")}}function pu(ie,ae,ve,me){if(ie.cm&&!ie.cm.curOp)return Ka(ie.cm,pu)(ie,ae,ve,me);if(ae.to.line<ie.first){Jl(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 Ee=ae.text.length-1-(ie.first-ae.from.line);Jl(ie,Ee),ae={from:jt(ie.first,0),to:jt(ae.to.line+Ee,ae.to.ch),text:[kt(ae.text)],origin:ae.origin}}var Ue=ie.lastLine();ae.to.line>Ue&&(ae={from:ae.from,to:jt(Ue,ei(ie,Ue).text.length),text:[ae.text[0]],origin:ae.origin}),ae.removed=ji(ie,ae.from,ae.to),ve||(ve=da(ie,ae)),ie.cm?Xu(ie.cm,ae,me):oo(ie,ae,me),Ze(ie,ve,Pt),ie.cantEdit&&Ur(ie,jt(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function Xu(ie,ae,ve){var me=ie.doc,Ee=ie.display,Ue=ae.from,$e=ae.to,pt=!1,ft=Ue.line;ie.options.lineWrapping||(ft=lt(Ji(ei(me,Ue.line))),me.iter(ft,$e.line+1,function(Rn){if(Rn==Ee.maxLine)return pt=!0,!0})),me.sel.contains(ae.from,ae.to)>-1&&si(ie),oo(me,ae,ve,pa(ie)),ie.options.lineWrapping||(me.iter(ft,Ue.line+ae.text.length,function(Rn){var Mi=Lo(Rn);Mi>Ee.maxLineLength&&(Ee.maxLine=Rn,Ee.maxLineLength=Mi,Ee.maxLineChanged=!0,pt=!1)}),pt&&(ie.curOp.updateMaxLine=!0)),Ar(me,Ue.line),Qu(ie,400);var Ct=ae.text.length-($e.line-Ue.line)-1;ae.full?Po(ie):Ue.line==$e.line&&ae.text.length==1&&!ya(ie.doc,ae)?mo(ie,Ue.line,"text"):Po(ie,Ue.line,$e.line+1,Ct);var hn=Fn(ie,"changes"),Rt=Fn(ie,"change");if(Rt||hn){var Gn={from:Ue,to:$e,text:ae.text,removed:ae.removed,origin:ae.origin};Rt&&mr(ie,"change",ie,Gn),hn&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(Gn)}ie.display.selForContextMenu=null}function ku(ie,ae,ve,me,Ee){var Ue;me||(me=ve),Vn(me,ve)<0&&(Ue=[me,ve],ve=Ue[0],me=Ue[1]),typeof ae=="string"&&(ae=ie.splitLines(ae)),lo(ie,{from:ve,to:me,text:ae,origin:Ee})}function tl(ie,ae,ve,me){ve<ie.line?ie.line+=me:ae<ie.line&&(ie.line=ae,ie.ch=0)}function jl(ie,ae,ve,me){for(var Ee=0;Ee<ie.length;++Ee){var Ue=ie[Ee],$e=!0;if(Ue.ranges){Ue.copied||(Ue=ie[Ee]=Ue.deepCopy(),Ue.copied=!0);for(var pt=0;pt<Ue.ranges.length;pt++)tl(Ue.ranges[pt].anchor,ae,ve,me),tl(Ue.ranges[pt].head,ae,ve,me);continue}for(var ft=0;ft<Ue.changes.length;++ft){var Ct=Ue.changes[ft];if(ve<Ct.from.line)Ct.from=jt(Ct.from.line+me,Ct.from.ch),Ct.to=jt(Ct.to.line+me,Ct.to.ch);else if(ae<=Ct.to.line){$e=!1;break}}$e||(ie.splice(0,Ee+1),Ee=0)}}function Cc(ie,ae){var ve=ae.from.line,me=ae.to.line,Ee=ae.text.length-(me-ve)-1;jl(ie.done,ve,me,Ee),jl(ie.undone,ve,me,Ee)}function Cl(ie,ae,ve,me){var Ee=ae,Ue=ae;return typeof ae=="number"?Ue=ei(ie,pi(ie,ae)):Ee=lt(ae),Ee==null?null:(me(Ue,Ee)&&ie.cm&&mo(ie.cm,Ee,ve),Ue)}function Sh(ie){this.lines=ie,this.parent=null;for(var ae=0,ve=0;ve<ie.length;++ve)ie[ve].parent=this,ae+=ie[ve].height;this.height=ae}Sh.prototype={chunkSize:function(){return this.lines.length},removeInner:function(ie,ae){for(var ve=ie,me=ie+ae;ve<me;++ve){var Ee=this.lines[ve];this.height-=Ee.height,Go(Ee),mr(Ee,"delete")}this.lines.splice(ie,ae)},collapse:function(ie){ie.push.apply(ie,this.lines)},insertInner:function(ie,ae,ve){this.height+=ve,this.lines=this.lines.slice(0,ie).concat(ae).concat(this.lines.slice(ie));for(var me=0;me<ae.length;++me)ae[me].parent=this},iterN:function(ie,ae,ve){for(var me=ie+ae;ie<me;++ie)if(ve(this.lines[ie]))return!0}};function Ya(ie){this.children=ie;for(var ae=0,ve=0,me=0;me<ie.length;++me){var Ee=ie[me];ae+=Ee.chunkSize(),ve+=Ee.height,Ee.parent=this}this.size=ae,this.height=ve,this.parent=null}Ya.prototype={chunkSize:function(){return this.size},removeInner:function(ie,ae){this.size-=ae;for(var ve=0;ve<this.children.length;++ve){var me=this.children[ve],Ee=me.chunkSize();if(ie<Ee){var Ue=Math.min(ae,Ee-ie),$e=me.height;if(me.removeInner(ie,Ue),this.height-=$e-me.height,Ee==Ue&&(this.children.splice(ve--,1),me.parent=null),(ae-=Ue)==0)break;ie=0}else ie-=Ee}if(this.size-ae<25&&(this.children.length>1||!(this.children[0]instanceof Sh))){var pt=[];this.collapse(pt),this.children=[new Sh(pt)],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,ve){this.size+=ae.length,this.height+=ve;for(var me=0;me<this.children.length;++me){var Ee=this.children[me],Ue=Ee.chunkSize();if(ie<=Ue){if(Ee.insertInner(ie,ae,ve),Ee.lines&&Ee.lines.length>50){for(var $e=Ee.lines.length%25+25,pt=$e;pt<Ee.lines.length;){var ft=new Sh(Ee.lines.slice(pt,pt+=25));Ee.height-=ft.height,this.children.splice(++me,0,ft),ft.parent=this}Ee.lines=Ee.lines.slice(0,$e),this.maybeSpill()}break}ie-=Ue}},maybeSpill:function(){if(!(this.children.length<=10)){var ie=this;do{var ae=ie.children.splice(ie.children.length-5,5),ve=new Ya(ae);if(ie.parent){ie.size-=ve.size,ie.height-=ve.height;var Ee=it(ie.parent.children,ie);ie.parent.children.splice(Ee+1,0,ve)}else{var me=new Ya(ie.children);me.parent=ie,ie.children=[me,ve],ie=me}ve.parent=ie.parent}while(ie.children.length>10);ie.parent.maybeSpill()}},iterN:function(ie,ae,ve){for(var me=0;me<this.children.length;++me){var Ee=this.children[me],Ue=Ee.chunkSize();if(ie<Ue){var $e=Math.min(ae,Ue-ie);if(Ee.iterN(ie,$e,ve))return!0;if((ae-=$e)==0)break;ie=0}else ie-=Ue}}};var Vc=function(ie,ae,ve){if(ve)for(var me in ve)ve.hasOwnProperty(me)&&(this[me]=ve[me]);this.doc=ie,this.node=ae};Vc.prototype.clear=function(){var ie=this.doc.cm,ae=this.line.widgets,ve=this.line,me=lt(ve);if(!(me==null||!ae)){for(var Ee=0;Ee<ae.length;++Ee)ae[Ee]==this&&ae.splice(Ee--,1);ae.length||(ve.widgets=null);var Ue=jo(this);Yi(ve,Math.max(0,ve.height-Ue)),ie&&(Uo(ie,function(){Xp(ie,ve,-Ue),mo(ie,me,"widget")}),mr(ie,"lineWidgetCleared",ie,this,me))}},Vc.prototype.changed=function(){var ie=this,ae=this.height,ve=this.doc.cm,me=this.line;this.height=null;var Ee=jo(this)-ae;Ee&&(ti(this.doc,me)||Yi(me,me.height+Ee),ve&&Uo(ve,function(){ve.curOp.forceUpdate=!0,Xp(ve,me,Ee),mr(ve,"lineWidgetChanged",ve,ie,lt(me))}))},yt(Vc);function Xp(ie,ae,ve){Gr(ae)<(ie.curOp&&ie.curOp.scrollTop||ie.doc.scrollTop)&&sd(ie,ve)}function Mf(ie,ae,ve,me){var Ee=new Vc(ie,ve,me),Ue=ie.cm;return Ue&&Ee.noHScroll&&(Ue.display.alignWidgets=!0),Cl(ie,ae,"widget",function($e){var pt=$e.widgets||($e.widgets=[]);if(Ee.insertAt==null?pt.push(Ee):pt.splice(Math.min(pt.length-1,Math.max(0,Ee.insertAt)),0,Ee),Ee.line=$e,Ue&&!ti(ie,$e)){var ft=Gr($e)<ie.scrollTop;Yi($e,$e.height+jo(Ee)),ft&&sd(Ue,Ee.height),Ue.curOp.forceUpdate=!0}return!0}),Ue&&mr(Ue,"lineWidgetAdded",Ue,Ee,typeof ae=="number"?ae:lt(ae)),Ee}var Jp=0,Jt=function(ie,ae){this.lines=[],this.type=ae,this.doc=ie,this.id=++Jp};Jt.prototype.clear=function(){if(!this.explicitlyCleared){var ie=this.doc.cm,ae=ie&&!ie.curOp;if(ae&&fu(ie),Fn(this,"clear")){var ve=this.find();ve&&mr(this,"clear",ve.from,ve.to)}for(var me=null,Ee=null,Ue=0;Ue<this.lines.length;++Ue){var $e=this.lines[Ue],pt=ro($e.markedSpans,this);ie&&!this.collapsed?mo(ie,lt($e),"text"):ie&&(pt.to!=null&&(Ee=lt($e)),pt.from!=null&&(me=lt($e))),$e.markedSpans=Ir($e.markedSpans,pt),pt.from==null&&this.collapsed&&!ti(this.doc,$e)&&ie&&Yi($e,fs(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var ft=0;ft<this.lines.length;++ft){var Ct=Ji(this.lines[ft]),hn=Lo(Ct);hn>ie.display.maxLineLength&&(ie.display.maxLine=Ct,ie.display.maxLineLength=hn,ie.display.maxLineChanged=!0)}me!=null&&ie&&this.collapsed&&Po(ie,me,Ee+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,ie&&jn(ie.doc)),ie&&mr(ie,"markerCleared",ie,this,me,Ee),ae&&Mu(ie),this.parent&&this.parent.clear()}},Jt.prototype.find=function(ie,ae){ie==null&&this.type=="bookmark"&&(ie=1);for(var ve,me,Ee=0;Ee<this.lines.length;++Ee){var Ue=this.lines[Ee],$e=ro(Ue.markedSpans,this);if($e.from!=null&&(ve=jt(ae?Ue:lt(Ue),$e.from),ie==-1))return ve;if($e.to!=null&&(me=jt(ae?Ue:lt(Ue),$e.to),ie==1))return me}return ve&&{from:ve,to:me}},Jt.prototype.changed=function(){var ie=this,ae=this.find(-1,!0),ve=this,me=this.doc.cm;!ae||!me||Uo(me,function(){var Ee=ae.line,Ue=lt(ae.line),$e=Fa(me,Ue);if($e&&(bc($e),me.curOp.selectionChanged=me.curOp.forceUpdate=!0),me.curOp.updateMaxLine=!0,!ti(ve.doc,Ee)&&ve.height!=null){var pt=ve.height;ve.height=null;var ft=jo(ve)-pt;ft&&Yi(Ee,Ee.height+ft)}mr(me,"markerChanged",me,ie)})},Jt.prototype.attachLine=function(ie){if(!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(!ae.maybeHiddenMarkers||it(ae.maybeHiddenMarkers,this)==-1)&&(ae.maybeUnhiddenMarkers||(ae.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(ie)},Jt.prototype.detachLine=function(ie){if(this.lines.splice(it(this.lines,ie),1),!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(ae.maybeHiddenMarkers||(ae.maybeHiddenMarkers=[])).push(this)}},yt(Jt);function jd(ie,ae,ve,me,Ee){if(me&&me.shared)return qp(ie,ae,ve,me,Ee);if(ie.cm&&!ie.cm.curOp)return Ka(ie.cm,jd)(ie,ae,ve,me,Ee);var Ue=new Jt(ie,Ee),$e=Vn(ae,ve);if(me&&On(me,Ue,!1),$e>0||$e==0&&Ue.clearWhenEmpty!==!1)return Ue;if(Ue.replacedWith&&(Ue.collapsed=!0,Ue.widgetNode=bt("span",[Ue.replacedWith],"CodeMirror-widget"),me.handleMouseEvents||Ue.widgetNode.setAttribute("cm-ignore-events","true"),me.insertLeft&&(Ue.widgetNode.insertLeft=!0)),Ue.collapsed){if(kr(ie,ae.line,ae,ve,Ue)||ae.line!=ve.line&&kr(ie,ve.line,ae,ve,Ue))throw new Error("Inserting collapsed marker partially overlapping an existing one");Dn()}Ue.addToHistory&&Tl(ie,{from:ae,to:ve,origin:"markText"},ie.sel,NaN);var pt=ae.line,ft=ie.cm,Ct;if(ie.iter(pt,ve.line+1,function(Rt){ft&&Ue.collapsed&&!ft.options.lineWrapping&&Ji(Rt)==ft.display.maxLine&&(Ct=!0),Ue.collapsed&&pt!=ae.line&&Yi(Rt,0),Vr(Rt,new Lr(Ue,pt==ae.line?ae.ch:null,pt==ve.line?ve.ch:null)),++pt}),Ue.collapsed&&ie.iter(ae.line,ve.line+1,function(Rt){ti(ie,Rt)&&Yi(Rt,0)}),Ue.clearOnEnter&&_t(Ue,"beforeCursorEnter",function(){return Ue.clear()}),Ue.readOnly&&(pr(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),Ue.collapsed&&(Ue.id=++Jp,Ue.atomic=!0),ft){if(Ct&&(ft.curOp.updateMaxLine=!0),Ue.collapsed)Po(ft,ae.line,ve.line+1);else if(Ue.className||Ue.startStyle||Ue.endStyle||Ue.css||Ue.attributes||Ue.title)for(var hn=ae.line;hn<=ve.line;hn++)mo(ft,hn,"text");Ue.atomic&&jn(ft.doc),mr(ft,"markerAdded",ft,Ue)}return Ue}var Nc=function(ie,ae){this.markers=ie,this.primary=ae;for(var ve=0;ve<ie.length;++ve)ie[ve].parent=this};Nc.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var ie=0;ie<this.markers.length;++ie)this.markers[ie].clear();mr(this,"clear")}},Nc.prototype.find=function(ie,ae){return this.primary.find(ie,ae)},yt(Nc);function qp(ie,ae,ve,me,Ee){me=On(me),me.shared=!1;var Ue=[jd(ie,ae,ve,me,Ee)],$e=Ue[0],pt=me.widgetNode;return to(ie,function(ft){pt&&(me.widgetNode=pt.cloneNode(!0)),Ue.push(jd(ft,bn(ft,ae),bn(ft,ve),me,Ee));for(var Ct=0;Ct<ft.linked.length;++Ct)if(ft.linked[Ct].isParent)return;$e=kt(Ue)}),new Nc(Ue,$e)}function Ng(ie){return ie.findMarks(jt(ie.first,0),ie.clipPos(jt(ie.lastLine())),function(ae){return ae.parent})}function $p(ie,ae){for(var ve=0;ve<ae.length;ve++){var me=ae[ve],Ee=me.find(),Ue=ie.clipPos(Ee.from),$e=ie.clipPos(Ee.to);if(Vn(Ue,$e)){var pt=jd(ie,Ue,$e,me.primary,me.primary.type);me.markers.push(pt),pt.parent=me}}}function Mg(ie){for(var ae=function(me){var Ee=ie[me],Ue=[Ee.primary.doc];to(Ee.primary.doc,function(ft){return Ue.push(ft)});for(var $e=0;$e<Ee.markers.length;$e++){var pt=Ee.markers[$e];it(Ue,pt.doc)==-1&&(pt.parent=null,Ee.markers.splice($e--,1))}},ve=0;ve<ie.length;ve++)ae(ve)}var iv=0,nl=function(ie,ae,ve,me,Ee){if(!(this instanceof nl))return new nl(ie,ae,ve,me,Ee);ve==null&&(ve=0),Ya.call(this,[new Sh([new Zo("",null)])]),this.first=ve,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ve;var Ue=jt(ve,0);this.sel=aa(Ue),this.history=new Ms(null),this.id=++iv,this.modeOption=ae,this.lineSep=me,this.direction=Ee=="rtl"?"rtl":"ltr",this.extend=!1,typeof ie=="string"&&(ie=this.splitLines(ie)),oo(this,{from:Ue,to:Ue,text:ie}),pe(this,aa(Ue),Pt)};nl.prototype=ze(Ya.prototype,{constructor:nl,iter:function(ie,ae,ve){ve?this.iterN(ie-this.first,ae-ie,ve):this.iterN(this.first,this.first+this.size,ie)},insert:function(ie,ae){for(var ve=0,me=0;me<ae.length;++me)ve+=ae[me].height;this.insertInner(ie-this.first,ae,ve)},remove:function(ie,ae){this.removeInner(ie-this.first,ae)},getValue:function(ie){var ae=Fi(this,this.first,this.first+this.size);return ie===!1?ae:ae.join(ie||this.lineSeparator())},setValue:ns(function(ie){var ae=jt(this.first,0),ve=this.first+this.size-1;lo(this,{from:ae,to:jt(ve,ei(this,ve).text.length),text:this.splitLines(ie),origin:"setValue",full:!0},!0),this.cm&&Fl(this.cm,0,0),pe(this,aa(ae),Pt)}),replaceRange:function(ie,ae,ve,me){ae=bn(this,ae),ve=ve?bn(this,ve):ae,ku(this,ie,ae,ve,me)},getRange:function(ie,ae,ve){var me=ji(this,bn(this,ie),bn(this,ae));return ve===!1?me:me.join(ve||this.lineSeparator())},getLine:function(ie){var ae=this.getLineHandle(ie);return ae&&ae.text},getLineHandle:function(ie){if(oi(this,ie))return ei(this,ie)},getLineNumber:function(ie){return lt(ie)},getLineHandleVisualStart:function(ie){return typeof ie=="number"&&(ie=ei(this,ie)),Ji(ie)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ie){return bn(this,ie)},getCursor:function(ie){var ae=this.sel.primary(),ve;return ie==null||ie=="head"?ve=ae.head:ie=="anchor"?ve=ae.anchor:ie=="end"||ie=="to"||ie===!1?ve=ae.to():ve=ae.from(),ve},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ns(function(ie,ae,ve){Ku(this,bn(this,typeof ie=="number"?jt(ie,ae||0):ie),null,ve)}),setSelection:ns(function(ie,ae,ve){Ku(this,bn(this,ie),bn(this,ae||ie),ve)}),extendSelection:ns(function(ie,ae,ve){Iu(this,bn(this,ie),ae&&bn(this,ae),ve)}),extendSelections:ns(function(ie,ae){dd(this,Ui(this,ie),ae)}),extendSelectionsBy:ns(function(ie,ae){var ve=Kn(this.sel.ranges,ie);dd(this,Ui(this,ve),ae)}),setSelections:ns(function(ie,ae,ve){if(ie.length){for(var me=[],Ee=0;Ee<ie.length;Ee++)me[Ee]=new zr(bn(this,ie[Ee].anchor),bn(this,ie[Ee].head));ae==null&&(ae=Math.min(ie.length-1,this.sel.primIndex)),pe(this,Yr(this.cm,me,ae),ve)}}),addSelection:ns(function(ie,ae,ve){var me=this.sel.ranges.slice(0);me.push(new zr(bn(this,ie),bn(this,ae||ie))),pe(this,Yr(this.cm,me,me.length-1),ve)}),getSelection:function(ie){for(var ae=this.sel.ranges,ve,me=0;me<ae.length;me++){var Ee=ji(this,ae[me].from(),ae[me].to());ve=ve?ve.concat(Ee):Ee}return ie===!1?ve:ve.join(ie||this.lineSeparator())},getSelections:function(ie){for(var ae=[],ve=this.sel.ranges,me=0;me<ve.length;me++){var Ee=ji(this,ve[me].from(),ve[me].to());ie!==!1&&(Ee=Ee.join(ie||this.lineSeparator())),ae[me]=Ee}return ae},replaceSelection:function(ie,ae,ve){for(var me=[],Ee=0;Ee<this.sel.ranges.length;Ee++)me[Ee]=ie;this.replaceSelections(me,ae,ve||"+input")},replaceSelections:ns(function(ie,ae,ve){for(var me=[],Ee=this.sel,Ue=0;Ue<Ee.ranges.length;Ue++){var $e=Ee.ranges[Ue];me[Ue]={from:$e.from(),to:$e.to(),text:this.splitLines(ie[Ue]),origin:ve}}for(var pt=ae&&ae!="end"&&ta(this,me,ae),ft=me.length-1;ft>=0;ft--)lo(this,me[ft]);pt?ue(this,pt):this.cm&&Ql(this.cm)}),undo:ns(function(){va(this,"undo")}),redo:ns(function(){va(this,"redo")}),undoSelection:ns(function(){va(this,"undo",!0)}),redoSelection:ns(function(){va(this,"redo",!0)}),setExtending:function(ie){this.extend=ie},getExtending:function(){return this.extend},historySize:function(){for(var ie=this.history,ae=0,ve=0,me=0;me<ie.done.length;me++)ie.done[me].ranges||++ae;for(var Ee=0;Ee<ie.undone.length;Ee++)ie.undone[Ee].ranges||++ve;return{undo:ae,redo:ve}},clearHistory:function(){var ie=this;this.history=new Ms(this.history.maxGeneration),to(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:ys(this.history.done),undone:ys(this.history.undone)}},setHistory:function(ie){var ae=this.history=new Ms(this.history.maxGeneration);ae.done=ys(ie.done.slice(0),null,!0),ae.undone=ys(ie.undone.slice(0),null,!0)},setGutterMarker:ns(function(ie,ae,ve){return Cl(this,ie,"gutter",function(me){var Ee=me.gutterMarkers||(me.gutterMarkers={});return Ee[ae]=ve,!ve&&Ce(Ee)&&(me.gutterMarkers=null),!0})}),clearGutter:ns(function(ie){var ae=this;this.iter(function(ve){ve.gutterMarkers&&ve.gutterMarkers[ie]&&Cl(ae,ve,"gutter",function(){return ve.gutterMarkers[ie]=null,Ce(ve.gutterMarkers)&&(ve.gutterMarkers=null),!0})})}),lineInfo:function(ie){var ae;if(typeof ie=="number"){if(!oi(this,ie)||(ae=ie,ie=ei(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:ns(function(ie,ae,ve){return Cl(this,ie,ae=="gutter"?"gutter":"class",function(me){var Ee=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass";if(!me[Ee])me[Ee]=ve;else{if(Be(ve).test(me[Ee]))return!1;me[Ee]+=" "+ve}return!0})}),removeLineClass:ns(function(ie,ae,ve){return Cl(this,ie,ae=="gutter"?"gutter":"class",function(me){var Ee=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass",Ue=me[Ee];if(Ue)if(ve==null)me[Ee]=null;else{var $e=Ue.match(Be(ve));if(!$e)return!1;var pt=$e.index+$e[0].length;me[Ee]=Ue.slice(0,$e.index)+(!$e.index||pt==Ue.length?"":" ")+Ue.slice(pt)||null}else return!1;return!0})}),addLineWidget:ns(function(ie,ae,ve){return Mf(this,ie,ae,ve)}),removeLineWidget:function(ie){ie.clear()},markText:function(ie,ae,ve){return jd(this,bn(this,ie),bn(this,ae),ve,ve&&ve.type||"range")},setBookmark:function(ie,ae){var ve={replacedWith:ae&&(ae.nodeType==null?ae.widget:ae),insertLeft:ae&&ae.insertLeft,clearWhenEmpty:!1,shared:ae&&ae.shared,handleMouseEvents:ae&&ae.handleMouseEvents};return ie=bn(this,ie),jd(this,ie,ie,ve,"bookmark")},findMarksAt:function(ie){ie=bn(this,ie);var ae=[],ve=ei(this,ie.line).markedSpans;if(ve)for(var me=0;me<ve.length;++me){var Ee=ve[me];(Ee.from==null||Ee.from<=ie.ch)&&(Ee.to==null||Ee.to>=ie.ch)&&ae.push(Ee.marker.parent||Ee.marker)}return ae},findMarks:function(ie,ae,ve){ie=bn(this,ie),ae=bn(this,ae);var me=[],Ee=ie.line;return this.iter(ie.line,ae.line+1,function(Ue){var $e=Ue.markedSpans;if($e)for(var pt=0;pt<$e.length;pt++){var ft=$e[pt];!(ft.to!=null&&Ee==ie.line&&ie.ch>=ft.to||ft.from==null&&Ee!=ie.line||ft.from!=null&&Ee==ae.line&&ft.from>=ae.ch)&&(!ve||ve(ft.marker))&&me.push(ft.marker.parent||ft.marker)}++Ee}),me},getAllMarks:function(){var ie=[];return this.iter(function(ae){var ve=ae.markedSpans;if(ve)for(var me=0;me<ve.length;++me)ve[me].from!=null&&ie.push(ve[me].marker)}),ie},posFromIndex:function(ie){var ae,ve=this.first,me=this.lineSeparator().length;return this.iter(function(Ee){var Ue=Ee.text.length+me;if(Ue>ie)return ae=ie,!0;ie-=Ue,++ve}),bn(this,jt(ve,ae))},indexFromPos:function(ie){ie=bn(this,ie);var ae=ie.ch;if(ie.line<this.first||ie.ch<0)return 0;var ve=this.lineSeparator().length;return this.iter(this.first,ie.line,function(me){ae+=me.text.length+ve}),ae},copy:function(ie){var ae=new nl(Fi(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,ve=this.first+this.size;ie.from!=null&&ie.from>ae&&(ae=ie.from),ie.to!=null&&ie.to<ve&&(ve=ie.to);var me=new nl(Fi(this,ae,ve),ie.mode||this.modeOption,ae,this.lineSep,this.direction);return ie.sharedHist&&(me.history=this.history),(this.linked||(this.linked=[])).push({doc:me,sharedHist:ie.sharedHist}),me.linked=[{doc:this,isParent:!0,sharedHist:ie.sharedHist}],$p(me,Ng(this)),me},unlinkDoc:function(ie){if(ie instanceof Ko&&(ie=ie.doc),this.linked)for(var ae=0;ae<this.linked.length;++ae){var ve=this.linked[ae];if(ve.doc==ie){this.linked.splice(ae,1),ie.unlinkDoc(this),Mg(Ng(this));break}}if(ie.history==this.history){var me=[ie.id];to(ie,function(Ee){return me.push(Ee.id)},!0),ie.history=new Ms(null),ie.history.done=ys(this.history.done,me),ie.history.undone=ys(this.history.undone,me)}},iterLinkedDocs:function(ie){to(this,ie)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(ie){return this.lineSep?ie.split(this.lineSep):Di(ie)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:ns(function(ie){ie!="rtl"&&(ie="ltr"),ie!=this.direction&&(this.direction=ie,this.iter(function(ae){return ae.order=null}),this.cm&&ps(this.cm))})}),nl.prototype.eachLine=nl.prototype.iter;var Qh=0;function Pg(ie){var ae=this;if(nm(ae),!(nn(ae,ie)||Ao(ae.display,ie))){kn(ie),Ye&&(Qh=+new Date);var ve=as(ae,ie,!0),me=ie.dataTransfer.files;if(!(!ve||ae.isReadOnly()))if(me&&me.length&&window.FileReader&&window.File)for(var Ee=me.length,Ue=Array(Ee),$e=0,pt=function(){++$e==Ee&&Ka(ae,function(){ve=bn(ae.doc,ve);var Rn={from:ve,to:ve,text:ae.doc.splitLines(Ue.filter(function(Mi){return Mi!=null}).join(ae.doc.lineSeparator())),origin:"paste"};lo(ae.doc,Rn),ue(ae.doc,aa(bn(ae.doc,ve),bn(ae.doc,sa(Rn))))})()},ft=function(Rn,Mi){if(ae.options.allowDropFileTypes&&it(ae.options.allowDropFileTypes,Rn.type)==-1){pt();return}var Oi=new FileReader;Oi.onerror=function(){return pt()},Oi.onload=function(){var Vi=Oi.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Vi)){pt();return}Ue[Mi]=Vi,pt()},Oi.readAsText(Rn)},Ct=0;Ct<me.length;Ct++)ft(me[Ct],Ct);else{if(ae.state.draggingText&&ae.doc.sel.contains(ve)>-1){ae.state.draggingText(ie),setTimeout(function(){return ae.display.input.focus()},20);return}try{var hn=ie.dataTransfer.getData("Text");if(hn){var Rt;if(ae.state.draggingText&&!ae.state.draggingText.copy&&(Rt=ae.listSelections()),Ze(ae.doc,aa(ve,ve)),Rt)for(var Gn=0;Gn<Rt.length;++Gn)ku(ae.doc,"",Rt[Gn].anchor,Rt[Gn].head,"drag");ae.replaceSelection(hn,"around","paste"),ae.display.input.focus()}}catch(Rn){}}}}function em(ie,ae){if(Ye&&(!ie.state.draggingText||+new Date-Qh<100)){di(ae);return}if(!(nn(ie,ae)||Ao(ie.display,ae))&&(ae.dataTransfer.setData("Text",ie.getSelection()),ae.dataTransfer.effectAllowed="copyMove",ae.dataTransfer.setDragImage&&!mt)){var ve=ht("img",null,null,"position: fixed; left: 0; top: 0;");ve.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",qe&&(ve.width=ve.height=1,ie.display.wrapper.appendChild(ve),ve._top=ve.offsetTop),ae.dataTransfer.setDragImage(ve,0,0),qe&&ve.parentNode.removeChild(ve)}}function tm(ie,ae){var ve=as(ie,ae);if(ve){var me=document.createDocumentFragment();Io(ie,ve,me),ie.display.dragCursor||(ie.display.dragCursor=ht("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),ie.display.lineSpace.insertBefore(ie.display.dragCursor,ie.display.cursorDiv)),ot(ie.display.dragCursor,me)}}function nm(ie){ie.display.dragCursor&&(ie.display.lineSpace.removeChild(ie.display.dragCursor),ie.display.dragCursor=null)}function im(ie){if(document.getElementsByClassName){for(var ae=document.getElementsByClassName("CodeMirror"),ve=[],me=0;me<ae.length;me++){var Ee=ae[me].CodeMirror;Ee&&ve.push(Ee)}ve.length&&ve[0].operation(function(){for(var Ue=0;Ue<ve.length;Ue++)ie(ve[Ue])})}}var Lg=!1;function mu(){Lg||(Eh(),Lg=!0)}function Eh(){var ie;_t(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,im(Ig)},100))}),_t(window,"blur",function(){return im(lc)})}function Ig(ie){var ae=ie.display;ae.cachedCharWidth=ae.cachedTextHeight=ae.cachedPaddingH=null,ae.scrollbarsClipped=!1,ie.setSize()}for(var Mc={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"},Kh=0;Kh<10;Kh++)Mc[Kh+48]=Mc[Kh+96]=String(Kh);for(var Pf=65;Pf<=90;Pf++)Mc[Pf]=String.fromCharCode(Pf);for(var Xh=1;Xh<=12;Xh++)Mc[Xh+111]=Mc[Xh+63235]="F"+Xh;var ql={};ql.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"},ql.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"},ql.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"},ql.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"]},ql.default=he?ql.macDefault:ql.pcDefault;function kg(ie){var ae=ie.split(/-(?!$)/);ie=ae[ae.length-1];for(var ve,me,Ee,Ue,$e=0;$e<ae.length-1;$e++){var pt=ae[$e];if(/^(cmd|meta|m)$/i.test(pt))Ue=!0;else if(/^a(lt)?$/i.test(pt))ve=!0;else if(/^(c|ctrl|control)$/i.test(pt))me=!0;else if(/^s(hift)?$/i.test(pt))Ee=!0;else throw new Error("Unrecognized modifier name: "+pt)}return ve&&(ie="Alt-"+ie),me&&(ie="Ctrl-"+ie),Ue&&(ie="Cmd-"+ie),Ee&&(ie="Shift-"+ie),ie}function Dg(ie){var ae={};for(var ve in ie)if(ie.hasOwnProperty(ve)){var me=ie[ve];if(/^(name|fallthrough|(de|at)tach)$/.test(ve))continue;if(me=="..."){delete ie[ve];continue}for(var Ee=Kn(ve.split(" "),kg),Ue=0;Ue<Ee.length;Ue++){var $e=void 0,pt=void 0;Ue==Ee.length-1?(pt=Ee.join(" "),$e=me):(pt=Ee.slice(0,Ue+1).join(" "),$e="...");var ft=ae[pt];if(!ft)ae[pt]=$e;else if(ft!=$e)throw new Error("Inconsistent bindings for "+pt)}delete ie[ve]}for(var Ct in ae)ie[Ct]=ae[Ct];return ie}function Du(ie,ae,ve,me){ae=zd(ae);var Ee=ae.call?ae.call(ie,me):ae[ie];if(Ee===!1)return"nothing";if(Ee==="...")return"multi";if(Ee!=null&&ve(Ee))return"handled";if(ae.fallthrough){if(Object.prototype.toString.call(ae.fallthrough)!="[object Array]")return Du(ie,ae.fallthrough,ve,me);for(var Ue=0;Ue<ae.fallthrough.length;Ue++){var $e=Du(ie,ae.fallthrough[Ue],ve,me);if($e)return $e}}}function xh(ie){var ae=typeof ie=="string"?ie:Mc[ie.keyCode];return ae=="Ctrl"||ae=="Alt"||ae=="Shift"||ae=="Mod"}function Og(ie,ae,ve){var me=ie;return ae.altKey&&me!="Alt"&&(ie="Alt-"+ie),(Ae?ae.metaKey:ae.ctrlKey)&&me!="Ctrl"&&(ie="Ctrl-"+ie),(Ae?ae.ctrlKey:ae.metaKey)&&me!="Mod"&&(ie="Cmd-"+ie),!ve&&ae.shiftKey&&me!="Shift"&&(ie="Shift-"+ie),ie}function rm(ie,ae){if(qe&&ie.keyCode==34&&ie.char)return!1;var ve=Mc[ie.keyCode];return ve==null||ie.altGraphKey?!1:(ie.keyCode==3&&ie.code&&(ve=ie.code),Og(ve,ie,ae))}function zd(ie){return typeof ie=="string"?ql[ie]:ie}function $l(ie,ae){for(var ve=ie.doc.sel.ranges,me=[],Ee=0;Ee<ve.length;Ee++){for(var Ue=ae(ve[Ee]);me.length&&Vn(Ue.from,kt(me).to)<=0;){var $e=me.pop();if(Vn($e.from,Ue.from)<0){Ue.from=$e.from;break}}me.push(Ue)}Uo(ie,function(){for(var pt=me.length-1;pt>=0;pt--)ku(ie.doc,"",me[pt].from,me[pt].to,"+delete");Ql(ie)})}function Rg(ie,ae,ve){var me=Mt(ie.text,ae+ve,ve);return me<0||me>ie.text.length?null:me}function us(ie,ae,ve){var me=Rg(ie,ae.ch,ve);return me==null?null:new jt(ae.line,me,ve<0?"after":"before")}function Jh(ie,ae,ve,me,Ee){if(ie){ae.doc.direction=="rtl"&&(Ee=-Ee);var Ue=fn(ve,ae.doc.direction);if(Ue){var $e=Ee<0?kt(Ue):Ue[0],pt=Ee<0==($e.level==1),ft=pt?"after":"before",Ct;if($e.level>0||ae.doc.direction=="rtl"){var hn=As(ae,ve);Ct=Ee<0?ve.text.length-1:0;var Rt=Rs(ae,hn,Ct).top;Ct=Yt(function(Gn){return Rs(ae,hn,Gn).top==Rt},Ee<0==($e.level==1)?$e.from:$e.to-1,Ct),ft=="before"&&(Ct=Rg(ve,Ct,1))}else Ct=Ee<0?$e.to:$e.from;return new jt(me,Ct,ft)}}return new jt(me,Ee<0?ve.text.length:0,Ee<0?"before":"after")}function Lf(ie,ae,ve,me){var Ee=fn(ae,ie.doc.direction);if(!Ee)return us(ae,ve,me);ve.ch>=ae.text.length?(ve.ch=ae.text.length,ve.sticky="before"):ve.ch<=0&&(ve.ch=0,ve.sticky="after");var Ue=gn(Ee,ve.ch,ve.sticky),$e=Ee[Ue];if(ie.doc.direction=="ltr"&&$e.level%2==0&&(me>0?$e.to>ve.ch:$e.from<ve.ch))return us(ae,ve,me);var pt=function(fr,Pr){return Rg(ae,fr instanceof jt?fr.ch:fr,Pr)},ft,Ct=function(fr){return ie.options.lineWrapping?(ft=ft||As(ie,ae),Ga(ie,ae,ft,fr)):{begin:0,end:ae.text.length}},hn=Ct(ve.sticky=="before"?pt(ve,-1):ve.ch);if(ie.doc.direction=="rtl"||$e.level==1){var Rt=$e.level==1==me<0,Gn=pt(ve,Rt?1:-1);if(Gn!=null&&(Rt?Gn<=$e.to&&Gn<=hn.end:Gn>=$e.from&&Gn>=hn.begin)){var Rn=Rt?"before":"after";return new jt(ve.line,Gn,Rn)}}var Mi=function(fr,Pr,br){for(var _r=function(Da,Is){return Is?new jt(ve.line,pt(Da,1),"before"):new jt(ve.line,Da,"after")};fr>=0&&fr<Ee.length;fr+=Pr){var io=Ee[fr],xr=Pr>0==(io.level!=1),No=xr?br.begin:pt(br.end,-1);if(io.from<=No&&No<io.to||(No=xr?io.from:pt(io.to,-1),br.begin<=No&&No<br.end))return _r(No,xr)}},Oi=Mi(Ue+me,me,hn);if(Oi)return Oi;var Vi=me>0?hn.end:pt(hn.begin,-1);return Vi!=null&&!(me>0&&Vi==ae.text.length)&&(Oi=Mi(me>0?0:Ee.length-1,me,Ct(Vi)),Oi)?Oi:null}var hd={selectAll:Si,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),Pt)},killLine:function(ie){return $l(ie,function(ae){if(ae.empty()){var ve=ei(ie.doc,ae.head.line).text.length;return ae.head.ch==ve&&ae.head.line<ie.lastLine()?{from:ae.head,to:jt(ae.head.line+1,0)}:{from:ae.head,to:jt(ae.head.line,ve)}}else return{from:ae.from(),to:ae.to()}})},deleteLine:function(ie){return $l(ie,function(ae){return{from:jt(ae.from().line,0),to:bn(ie.doc,jt(ae.to().line+1,0))}})},delLineLeft:function(ie){return $l(ie,function(ae){return{from:jt(ae.from().line,0),to:ae.from()}})},delWrappedLineLeft:function(ie){return $l(ie,function(ae){var ve=ie.charCoords(ae.head,"div").top+5,me=ie.coordsChar({left:0,top:ve},"div");return{from:me,to:ae.from()}})},delWrappedLineRight:function(ie){return $l(ie,function(ae){var ve=ie.charCoords(ae.head,"div").top+5,me=ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:ve},"div");return{from:ae.from(),to:me}})},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(jt(ie.firstLine(),0))},goDocEnd:function(ie){return ie.extendSelection(jt(ie.lastLine()))},goLineStart:function(ie){return ie.extendSelectionsBy(function(ae){return bh(ie,ae.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(ie){return ie.extendSelectionsBy(function(ae){return Fg(ie,ae.head)},{origin:"+move",bias:1})},goLineEnd:function(ie){return ie.extendSelectionsBy(function(ae){return wh(ie,ae.head.line)},{origin:"+move",bias:-1})},goLineRight:function(ie){return ie.extendSelectionsBy(function(ae){var ve=ie.cursorCoords(ae.head,"div").top+5;return ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:ve},"div")},ln)},goLineLeft:function(ie){return ie.extendSelectionsBy(function(ae){var ve=ie.cursorCoords(ae.head,"div").top+5;return ie.coordsChar({left:0,top:ve},"div")},ln)},goLineLeftSmart:function(ie){return ie.extendSelectionsBy(function(ae){var ve=ie.cursorCoords(ae.head,"div").top+5,me=ie.coordsChar({left:0,top:ve},"div");return me.ch<ie.getLine(me.line).search(/\S/)?Fg(ie,ae.head):me},ln)},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=[],ve=ie.listSelections(),me=ie.options.tabSize,Ee=0;Ee<ve.length;Ee++){var Ue=ve[Ee].from(),$e=xt(ie.getLine(Ue.line),Ue.ch,me);ae.push(ii(me-$e%me))}ie.replaceSelections(ae)},defaultTab:function(ie){ie.somethingSelected()?ie.indentSelection("add"):ie.execCommand("insertTab")},transposeChars:function(ie){return Uo(ie,function(){for(var ae=ie.listSelections(),ve=[],me=0;me<ae.length;me++)if(ae[me].empty()){var Ee=ae[me].head,Ue=ei(ie.doc,Ee.line).text;if(Ue){if(Ee.ch==Ue.length&&(Ee=new jt(Ee.line,Ee.ch-1)),Ee.ch>0)Ee=new jt(Ee.line,Ee.ch+1),ie.replaceRange(Ue.charAt(Ee.ch-1)+Ue.charAt(Ee.ch-2),jt(Ee.line,Ee.ch-2),Ee,"+transpose");else if(Ee.line>ie.doc.first){var $e=ei(ie.doc,Ee.line-1).text;$e&&(Ee=new jt(Ee.line,1),ie.replaceRange(Ue.charAt(0)+ie.doc.lineSeparator()+$e.charAt($e.length-1),jt(Ee.line-1,$e.length-1),Ee,"+transpose"))}}ve.push(new zr(Ee,Ee))}ie.setSelections(ve)})},newlineAndIndent:function(ie){return Uo(ie,function(){for(var ae=ie.listSelections(),ve=ae.length-1;ve>=0;ve--)ie.replaceRange(ie.doc.lineSeparator(),ae[ve].anchor,ae[ve].head,"+input");ae=ie.listSelections();for(var me=0;me<ae.length;me++)ie.indentLine(ae[me].from().line,null,!0);Ql(ie)})},openLine:function(ie){return ie.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(ie){return ie.toggleOverwrite()}};function bh(ie,ae){var ve=ei(ie.doc,ae),me=Ji(ve);return me!=ve&&(ae=lt(me)),Jh(!0,ie,me,ae,1)}function wh(ie,ae){var ve=ei(ie.doc,ae),me=Cr(ve);return me!=ve&&(ae=lt(me)),Jh(!0,ie,ve,ae,-1)}function Fg(ie,ae){var ve=bh(ie,ae.line),me=ei(ie.doc,ve.line),Ee=fn(me,ie.doc.direction);if(!Ee||Ee[0].level==0){var Ue=Math.max(ve.ch,me.text.search(/\S/)),$e=ae.line==ve.line&&ae.ch<=Ue&&ae.ch;return jt(ve.line,$e?0:Ue,ve.sticky)}return ve}function Th(ie,ae,ve){if(typeof ae=="string"&&(ae=hd[ae],!ae))return!1;ie.display.input.ensurePolled();var me=ie.display.shift,Ee=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),ve&&(ie.display.shift=!1),Ee=ae(ie)!=An}finally{ie.display.shift=me,ie.state.suppressEdits=!1}return Ee}function Bg(ie,ae,ve){for(var me=0;me<ie.state.keyMaps.length;me++){var Ee=Du(ae,ie.state.keyMaps[me],ve,ie);if(Ee)return Ee}return ie.options.extraKeys&&Du(ae,ie.options.extraKeys,ve,ie)||Du(ae,ie.options.keyMap,ve,ie)}var Pc=new ct;function Ud(ie,ae,ve,me){var Ee=ie.state.keySeq;if(Ee){if(xh(ae))return"handled";if(/\'$/.test(ae)?ie.state.keySeq=null:Pc.set(50,function(){ie.state.keySeq==Ee&&(ie.state.keySeq=null,ie.display.input.reset())}),If(ie,Ee+" "+ae,ve,me))return!0}return If(ie,ae,ve,me)}function If(ie,ae,ve,me){var Ee=Bg(ie,ae,me);return Ee=="multi"&&(ie.state.keySeq=ae),Ee=="handled"&&mr(ie,"keyHandled",ie,ae,ve),(Ee=="handled"||Ee=="multi")&&(kn(ve),Wo(ie)),!!Ee}function kf(ie,ae){var ve=rm(ae,!0);return ve?ae.shiftKey&&!ie.state.keySeq?Ud(ie,"Shift-"+ve,ae,function(me){return Th(ie,me,!0)})||Ud(ie,ve,ae,function(me){if(typeof me=="string"?/^go[A-Z]/.test(me):me.motion)return Th(ie,me)}):Ud(ie,ve,ae,function(me){return Th(ie,me)}):!1}function Df(ie,ae,ve){return Ud(ie,"'"+ve+"'",ae,function(me){return Th(ie,me,!0)})}var Hd=null;function _g(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&(ae.curOp.focus=It(),!nn(ae,ie))){Ye&&Re<11&&ie.keyCode==27&&(ie.returnValue=!1);var ve=ie.keyCode;ae.display.shift=ve==16||ie.shiftKey;var me=kf(ae,ie);qe&&(Hd=me?ve:null,!me&&ve==88&&!mi&&(he?ie.metaKey:ie.ctrlKey)&&ae.replaceSelection("",null,"cut")),le&&!he&&!me&&ve==46&&ie.shiftKey&&!ie.ctrlKey&&document.execCommand&&document.execCommand("cut"),ve==18&&!/\bCodeMirror-crosshair\b/.test(ae.display.lineDiv.className)&&jg(ae)}}function jg(ie){var ae=ie.display.lineDiv;$t(ae,"CodeMirror-crosshair");function ve(me){(me.keyCode==18||!me.altKey)&&(Ke(ae,"CodeMirror-crosshair"),dn(document,"keyup",ve),dn(document,"mouseover",ve))}_t(document,"keyup",ve),_t(document,"mouseover",ve)}function zg(ie){ie.keyCode==16&&(this.doc.sel.shift=!1),nn(this,ie)}function hc(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&!(Ao(ae.display,ie)||nn(ae,ie)||ie.ctrlKey&&!ie.altKey||he&&ie.metaKey)){var ve=ie.keyCode,me=ie.charCode;if(qe&&ve==Hd){Hd=null,kn(ie);return}if(!(qe&&(!ie.which||ie.which<10)&&kf(ae,ie))){var Ee=String.fromCharCode(me==null?ve:me);Ee!="\b"&&(Df(ae,ie,Ee)||ae.display.input.onKeyPress(ie))}}}var om=400,Ug=function(ie,ae,ve){this.time=ie,this.pos=ae,this.button=ve};Ug.prototype.compare=function(ie,ae,ve){return this.time+om>ie&&Vn(ae,this.pos)==0&&ve==this.button};var Ah,Gd;function Hg(ie,ae){var ve=+new Date;return Gd&&Gd.compare(ve,ie,ae)?(Ah=Gd=null,"triple"):Ah&&Ah.compare(ve,ie,ae)?(Gd=new Ug(ve,ie,ae),Ah=null,"double"):(Ah=new Ug(ve,ie,ae),Gd=null,"single")}function fc(ie){var ae=this,ve=ae.display;if(!(nn(ae,ie)||ve.activeTouch&&ve.input.supportsTouch())){if(ve.input.ensurePolled(),ve.shift=ie.shiftKey,Ao(ve,ie)){Ve||(ve.scroller.draggable=!1,setTimeout(function(){return ve.scroller.draggable=!0},100));return}if(!Ff(ae,ie)){var me=as(ae,ie),Ee=Ni(ie),Ue=me?Hg(me,Ee):"single";window.focus(),Ee==1&&ae.state.selectingText&&ae.state.selectingText(ie),!(me&&Gg(ae,Ee,me,Ue,ie))&&(Ee==1?me?am(ae,me,Ue,ie):zi(ie)==ve.scroller&&kn(ie):Ee==2?(me&&Iu(ae.doc,me),setTimeout(function(){return ve.input.focus()},20)):Ee==3&&(Oe?ae.display.input.onContextMenu(ie):ma(ae)))}}}function Gg(ie,ae,ve,me,Ee){var Ue="Click";return me=="double"?Ue="Double"+Ue:me=="triple"&&(Ue="Triple"+Ue),Ue=(ae==1?"Left":ae==2?"Middle":"Right")+Ue,Ud(ie,Og(Ue,Ee),Ee,function($e){if(typeof $e=="string"&&($e=hd[$e]),!$e)return!1;var pt=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),pt=$e(ie,ve)!=An}finally{ie.state.suppressEdits=!1}return pt})}function Of(ie,ae,ve){var me=ie.getOption("configureMouse"),Ee=me?me(ie,ae,ve):{};if(Ee.unit==null){var Ue=se?ve.shiftKey&&ve.metaKey:ve.altKey;Ee.unit=Ue?"rectangle":ae=="single"?"char":ae=="double"?"word":"line"}return(Ee.extend==null||ie.doc.extend)&&(Ee.extend=ie.doc.extend||ve.shiftKey),Ee.addNew==null&&(Ee.addNew=he?ve.metaKey:ve.ctrlKey),Ee.moveOnDrag==null&&(Ee.moveOnDrag=!(he?ve.altKey:ve.ctrlKey)),Ee}function am(ie,ae,ve,me){Ye?setTimeout(un(qo,ie),0):ie.curOp.focus=It();var Ee=Of(ie,ve,me),Ue=ie.doc.sel,$e;ie.options.dragDrop&&Ln&&!ie.isReadOnly()&&ve=="single"&&($e=Ue.contains(ae))>-1&&(Vn(($e=Ue.ranges[$e]).from(),ae)<0||ae.xRel>0)&&(Vn($e.to(),ae)>0||ae.xRel<0)?Yg(ie,me,ae,Ee):rv(ie,me,ae,Ee)}function Yg(ie,ae,ve,me){var Ee=ie.display,Ue=!1,$e=Ka(ie,function(Ct){Ve&&(Ee.scroller.draggable=!1),ie.state.draggingText=!1,dn(Ee.wrapper.ownerDocument,"mouseup",$e),dn(Ee.wrapper.ownerDocument,"mousemove",pt),dn(Ee.scroller,"dragstart",ft),dn(Ee.scroller,"drop",$e),Ue||(kn(Ct),me.addNew||Iu(ie.doc,ve,null,null,me.extend),Ve&&!mt||Ye&&Re==9?setTimeout(function(){Ee.wrapper.ownerDocument.body.focus({preventScroll:!0}),Ee.input.focus()},20):Ee.input.focus())}),pt=function(Ct){Ue=Ue||Math.abs(ae.clientX-Ct.clientX)+Math.abs(ae.clientY-Ct.clientY)>=10},ft=function(){return Ue=!0};Ve&&(Ee.scroller.draggable=!0),ie.state.draggingText=$e,$e.copy=!me.moveOnDrag,Ee.scroller.dragDrop&&Ee.scroller.dragDrop(),_t(Ee.wrapper.ownerDocument,"mouseup",$e),_t(Ee.wrapper.ownerDocument,"mousemove",pt),_t(Ee.scroller,"dragstart",ft),_t(Ee.scroller,"drop",$e),ma(ie),setTimeout(function(){return Ee.input.focus()},20)}function Wg(ie,ae,ve){if(ve=="char")return new zr(ae,ae);if(ve=="word")return ie.findWordAt(ae);if(ve=="line")return new zr(jt(ae.line,0),bn(ie.doc,jt(ae.line+1,0)));var me=ve(ie,ae);return new zr(me.from,me.to)}function rv(ie,ae,ve,me){var Ee=ie.display,Ue=ie.doc;kn(ae);var $e,pt,ft=Ue.sel,Ct=ft.ranges;if(me.addNew&&!me.extend?(pt=Ue.sel.contains(ve),pt>-1?$e=Ct[pt]:$e=new zr(ve,ve)):($e=Ue.sel.primary(),pt=Ue.sel.primIndex),me.unit=="rectangle")me.addNew||($e=new zr(ve,ve)),ve=as(ie,ae,!0,!0),pt=-1;else{var hn=Wg(ie,ve,me.unit);me.extend?$e=gu($e,hn.anchor,hn.head,me.extend):$e=hn}me.addNew?pt==-1?(pt=Ct.length,pe(Ue,Yr(ie,Ct.concat([$e]),pt),{scroll:!1,origin:"*mouse"})):Ct.length>1&&Ct[pt].empty()&&me.unit=="char"&&!me.extend?(pe(Ue,Yr(ie,Ct.slice(0,pt).concat(Ct.slice(pt+1)),0),{scroll:!1,origin:"*mouse"}),ft=Ue.sel):_l(Ue,pt,$e,an):(pt=0,pe(Ue,new Er([$e],0),an),ft=Ue.sel);var Rt=ve;function Gn(br){if(Vn(Rt,br)!=0)if(Rt=br,me.unit=="rectangle"){for(var _r=[],io=ie.options.tabSize,xr=xt(ei(Ue,ve.line).text,ve.ch,io),No=xt(ei(Ue,br.line).text,br.ch,io),Da=Math.min(xr,No),Is=Math.max(xr,No),Wa=Math.min(ve.line,br.line),Ul=Math.min(ie.lastLine(),Math.max(ve.line,br.line));Wa<=Ul;Wa++){var gl=ei(Ue,Wa).text,Es=zn(gl,Da,io);Da==Is?_r.push(new zr(jt(Wa,Es),jt(Wa,Es))):gl.length>Es&&_r.push(new zr(jt(Wa,Es),jt(Wa,zn(gl,Is,io))))}_r.length||_r.push(new zr(ve,ve)),pe(Ue,Yr(ie,ft.ranges.slice(0,pt).concat(_r),pt),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(br)}else{var eu=$e,il=Wg(ie,br,me.unit),xs=eu.anchor,$o;Vn(il.anchor,xs)>0?($o=il.head,xs=ci(eu.from(),il.anchor)):($o=il.anchor,xs=je(eu.to(),il.head));var Xa=ft.ranges.slice(0);Xa[pt]=sm(ie,new zr(bn(Ue,xs),$o)),pe(Ue,Yr(ie,Xa,pt),an)}}var Rn=Ee.wrapper.getBoundingClientRect(),Mi=0;function Oi(br){var _r=++Mi,io=as(ie,br,!0,me.unit=="rectangle");if(io)if(Vn(io,Rt)!=0){ie.curOp.focus=It(),Gn(io);var xr=Co(Ee,Ue);(io.line>=xr.to||io.line<xr.from)&&setTimeout(Ka(ie,function(){Mi==_r&&Oi(br)}),150)}else{var No=br.clientY<Rn.top?-20:br.clientY>Rn.bottom?20:0;No&&setTimeout(Ka(ie,function(){Mi==_r&&(Ee.scroller.scrollTop+=No,Oi(br))}),50)}}function Vi(br){ie.state.selectingText=!1,Mi=1/0,br&&(kn(br),Ee.input.focus()),dn(Ee.wrapper.ownerDocument,"mousemove",fr),dn(Ee.wrapper.ownerDocument,"mouseup",Pr),Ue.history.lastSelOrigin=null}var fr=Ka(ie,function(br){br.buttons===0||!Ni(br)?Vi(br):Oi(br)}),Pr=Ka(ie,Vi);ie.state.selectingText=Pr,_t(Ee.wrapper.ownerDocument,"mousemove",fr),_t(Ee.wrapper.ownerDocument,"mouseup",Pr)}function sm(ie,ae){var ve=ae.anchor,me=ae.head,Ee=ei(ie.doc,ve.line);if(Vn(ve,me)==0&&ve.sticky==me.sticky)return ae;var Ue=fn(Ee);if(!Ue)return ae;var $e=gn(Ue,ve.ch,ve.sticky),pt=Ue[$e];if(pt.from!=ve.ch&&pt.to!=ve.ch)return ae;var ft=$e+(pt.from==ve.ch==(pt.level!=1)?0:1);if(ft==0||ft==Ue.length)return ae;var Ct;if(me.line!=ve.line)Ct=(me.line-ve.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var hn=gn(Ue,me.ch,me.sticky),Rt=hn-$e||(me.ch-ve.ch)*(pt.level==1?-1:1);hn==ft-1||hn==ft?Ct=Rt<0:Ct=Rt>0}var Gn=Ue[ft+(Ct?-1:0)],Rn=Ct==(Gn.level==1),Mi=Rn?Gn.from:Gn.to,Oi=Rn?"after":"before";return ve.ch==Mi&&ve.sticky==Oi?ae:new zr(new jt(ve.line,Mi,Oi),me)}function Rf(ie,ae,ve,me){var Ee,Ue;if(ae.touches)Ee=ae.touches[0].clientX,Ue=ae.touches[0].clientY;else try{Ee=ae.clientX,Ue=ae.clientY}catch(Gn){return!1}if(Ee>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;me&&kn(ae);var $e=ie.display,pt=$e.lineDiv.getBoundingClientRect();if(Ue>pt.bottom||!Fn(ie,ve))return Ht(ae);Ue-=pt.top-$e.viewOffset;for(var ft=0;ft<ie.display.gutterSpecs.length;++ft){var Ct=$e.gutters.childNodes[ft];if(Ct&&Ct.getBoundingClientRect().right>=Ee){var hn=Ut(ie.doc,Ue),Rt=ie.display.gutterSpecs[ft];return Sn(ie,ve,ie,hn,Rt.className,ae),Ht(ae)}}}function Ff(ie,ae){return Rf(ie,ae,"gutterClick",!0)}function Bf(ie,ae){Ao(ie.display,ae)||lm(ie,ae)||nn(ie,ae,"contextmenu")||Oe||ie.display.input.onContextMenu(ae)}function lm(ie,ae){return Fn(ie,"gutterContextMenu")?Rf(ie,ae,"gutterContextMenu",!1):!1}function _f(ie){ie.display.wrapper.className=ie.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+ie.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Yu(ie)}var fd={toString:function(){return"CodeMirror.Init"}},Vg={},qh={};function um(ie){var ae=ie.optionHandlers;function ve(me,Ee,Ue,$e){ie.defaults[me]=Ee,Ue&&(ae[me]=$e?function(pt,ft,Ct){Ct!=fd&&Ue(pt,ft,Ct)}:Ue)}ie.defineOption=ve,ie.Init=fd,ve("value","",function(me,Ee){return me.setValue(Ee)},!0),ve("mode",null,function(me,Ee){me.doc.modeOption=Ee,Fr(me)},!0),ve("indentUnit",2,Fr,!0),ve("indentWithTabs",!1),ve("smartIndent",!0),ve("tabSize",4,function(me){js(me),Yu(me),Po(me)},!0),ve("lineSeparator",null,function(me,Ee){if(me.doc.lineSep=Ee,!!Ee){var Ue=[],$e=me.doc.first;me.doc.iter(function(ft){for(var Ct=0;;){var hn=ft.text.indexOf(Ee,Ct);if(hn==-1)break;Ct=hn+Ee.length,Ue.push(jt($e,hn))}$e++});for(var pt=Ue.length-1;pt>=0;pt--)ku(me.doc,Ee,Ue[pt],jt(Ue[pt].line,Ue[pt].ch+Ee.length))}}),ve("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(me,Ee,Ue){me.state.specialChars=new RegExp(Ee.source+(Ee.test(" ")?"":"| "),"g"),Ue!=fd&&me.refresh()}),ve("specialCharPlaceholder",wa,function(me){return me.refresh()},!0),ve("electricChars",!0),ve("inputStyle",ne?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ve("spellcheck",!1,function(me,Ee){return me.getInputField().spellcheck=Ee},!0),ve("autocorrect",!1,function(me,Ee){return me.getInputField().autocorrect=Ee},!0),ve("autocapitalize",!1,function(me,Ee){return me.getInputField().autocapitalize=Ee},!0),ve("rtlMoveVisually",!ge),ve("wholeLineUpdateBefore",!0),ve("theme","default",function(me){_f(me),xn(me)},!0),ve("keyMap","default",function(me,Ee,Ue){var $e=zd(Ee),pt=Ue!=fd&&zd(Ue);pt&&pt.detach&&pt.detach(me,$e),$e.attach&&$e.attach(me,pt||null)}),ve("extraKeys",null),ve("configureMouse",null),ve("lineWrapping",!1,cm,!0),ve("gutters",[],function(me,Ee){me.display.gutterSpecs=_n(Ee,me.options.lineNumbers),xn(me)},!0),ve("fixedGutter",!0,function(me,Ee){me.display.gutters.style.left=Ee?Wc(me.display)+"px":"0",me.refresh()},!0),ve("coverGutterNextToScrollbar",!1,function(me){return hu(me)},!0),ve("scrollbarStyle","native",function(me){cc(me),hu(me),me.display.scrollbars.setScrollTop(me.doc.scrollTop),me.display.scrollbars.setScrollLeft(me.doc.scrollLeft)},!0),ve("lineNumbers",!1,function(me,Ee){me.display.gutterSpecs=_n(me.options.gutters,Ee),xn(me)},!0),ve("firstLineNumber",1,xn,!0),ve("lineNumberFormatter",function(me){return me},xn,!0),ve("showCursorWhenSelecting",!1,Qa,!0),ve("resetSelectionOnContextMenu",!0),ve("lineWiseCopyCut",!0),ve("pasteLinesPerSelection",!0),ve("selectionsMayTouch",!1),ve("readOnly",!1,function(me,Ee){Ee=="nocursor"&&(lc(me),me.display.input.blur()),me.display.input.readOnlyChanged(Ee)}),ve("screenReaderLabel",null,function(me,Ee){Ee=Ee===""?null:Ee,me.display.input.screenReaderLabelChanged(Ee)}),ve("disableInput",!1,function(me,Ee){Ee||me.display.input.reset()},!0),ve("dragDrop",!0,jf),ve("allowDropFileTypes",null),ve("cursorBlinkRate",530),ve("cursorScrollMargin",0),ve("cursorHeight",1,Qa,!0),ve("singleCursorHeightPerLine",!0,Qa,!0),ve("workTime",100),ve("workDelay",100),ve("flattenSpans",!0,js,!0),ve("addModeClass",!1,js,!0),ve("pollInterval",100),ve("undoDepth",200,function(me,Ee){return me.doc.history.undoDepth=Ee}),ve("historyEventDelay",1250),ve("viewportMargin",10,function(me){return me.refresh()},!0),ve("maxHighlightLength",1e4,js,!0),ve("moveInputWithCursor",!0,function(me,Ee){Ee||me.display.input.resetPosition()}),ve("tabindex",null,function(me,Ee){return me.display.input.getField().tabIndex=Ee||""}),ve("autofocus",null),ve("direction","ltr",function(me,Ee){return me.doc.setDirection(Ee)},!0),ve("phrases",null)}function jf(ie,ae,ve){var me=ve&&ve!=fd;if(!ae!=!me){var Ee=ie.display.dragFunctions,Ue=ae?_t:dn;Ue(ie.display.scroller,"dragstart",Ee.start),Ue(ie.display.scroller,"dragenter",Ee.enter),Ue(ie.display.scroller,"dragover",Ee.over),Ue(ie.display.scroller,"dragleave",Ee.leave),Ue(ie.display.scroller,"drop",Ee.drop)}}function cm(ie){ie.options.lineWrapping?($t(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(Ke(ie.display.wrapper,"CodeMirror-wrap"),ao(ie)),jr(ie),Po(ie),Yu(ie),setTimeout(function(){return hu(ie)},100)}function Ko(ie,ae){var ve=this;if(!(this instanceof Ko))return new Ko(ie,ae);this.options=ae=ae?On(ae):{},On(Vg,ae,!1);var me=ae.value;typeof me=="string"?me=new nl(me,ae.mode,null,ae.lineSeparator,ae.direction):ae.mode&&(me.modeOption=ae.mode),this.doc=me;var Ee=new Ko.inputStyles[ae.inputStyle](this),Ue=this.display=new ri(ie,me,Ee,ae);Ue.wrapper.CodeMirror=this,_f(this),ae.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),cc(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 ct,keySeq:null,specialChars:null},ae.autofocus&&!ne&&Ue.input.focus(),Ye&&Re<11&&setTimeout(function(){return ve.display.input.reset(!0)},20),Ch(this),mu(),fu(this),this.curOp.forceUpdate=!0,Do(this,me),ae.autofocus&&!ne||this.hasFocus()?setTimeout(function(){ve.hasFocus()&&!ve.state.focused&&fo(ve)},20):lc(this);for(var $e in qh)qh.hasOwnProperty($e)&&qh[$e](this,ae[$e],fd);Qt(this),ae.finishInit&&ae.finishInit(this);for(var pt=0;pt<Yd.length;++pt)Yd[pt](this);Mu(this),Ve&&ae.lineWrapping&&getComputedStyle(Ue.lineDiv).textRendering=="optimizelegibility"&&(Ue.lineDiv.style.textRendering="auto")}Ko.defaults=Vg,Ko.optionHandlers=qh;function Ch(ie){var ae=ie.display;_t(ae.scroller,"mousedown",Ka(ie,fc)),Ye&&Re<11?_t(ae.scroller,"dblclick",Ka(ie,function(ft){if(!nn(ie,ft)){var Ct=as(ie,ft);if(!(!Ct||Ff(ie,ft)||Ao(ie.display,ft))){kn(ft);var hn=ie.findWordAt(Ct);Iu(ie.doc,hn.anchor,hn.head)}}})):_t(ae.scroller,"dblclick",function(ft){return nn(ie,ft)||kn(ft)}),_t(ae.scroller,"contextmenu",function(ft){return Bf(ie,ft)}),_t(ae.input.getField(),"contextmenu",function(ft){ae.scroller.contains(ft.target)||Bf(ie,ft)});var ve,me={end:0};function Ee(){ae.activeTouch&&(ve=setTimeout(function(){return ae.activeTouch=null},1e3),me=ae.activeTouch,me.end=+new Date)}function Ue(ft){if(ft.touches.length!=1)return!1;var Ct=ft.touches[0];return Ct.radiusX<=1&&Ct.radiusY<=1}function $e(ft,Ct){if(Ct.left==null)return!0;var hn=Ct.left-ft.left,Rt=Ct.top-ft.top;return hn*hn+Rt*Rt>20*20}_t(ae.scroller,"touchstart",function(ft){if(!nn(ie,ft)&&!Ue(ft)&&!Ff(ie,ft)){ae.input.ensurePolled(),clearTimeout(ve);var Ct=+new Date;ae.activeTouch={start:Ct,moved:!1,prev:Ct-me.end<=300?me:null},ft.touches.length==1&&(ae.activeTouch.left=ft.touches[0].pageX,ae.activeTouch.top=ft.touches[0].pageY)}}),_t(ae.scroller,"touchmove",function(){ae.activeTouch&&(ae.activeTouch.moved=!0)}),_t(ae.scroller,"touchend",function(ft){var Ct=ae.activeTouch;if(Ct&&!Ao(ae,ft)&&Ct.left!=null&&!Ct.moved&&new Date-Ct.start<300){var hn=ie.coordsChar(ae.activeTouch,"page"),Rt;!Ct.prev||$e(Ct,Ct.prev)?Rt=new zr(hn,hn):!Ct.prev.prev||$e(Ct,Ct.prev.prev)?Rt=ie.findWordAt(hn):Rt=new zr(jt(hn.line,0),bn(ie.doc,jt(hn.line+1,0))),ie.setSelection(Rt.anchor,Rt.head),ie.focus(),kn(ft)}Ee()}),_t(ae.scroller,"touchcancel",Ee),_t(ae.scroller,"scroll",function(){ae.scroller.clientHeight&&(du(ie,ae.scroller.scrollTop),Kl(ie,ae.scroller.scrollLeft,!0),Sn(ie,"scroll",ie))}),_t(ae.scroller,"mousewheel",function(ft){return so(ie,ft)}),_t(ae.scroller,"DOMMouseScroll",function(ft){return so(ie,ft)}),_t(ae.wrapper,"scroll",function(){return ae.wrapper.scrollTop=ae.wrapper.scrollLeft=0}),ae.dragFunctions={enter:function(ft){nn(ie,ft)||di(ft)},over:function(ft){nn(ie,ft)||(tm(ie,ft),di(ft))},start:function(ft){return em(ie,ft)},drop:Ka(ie,Pg),leave:function(ft){nn(ie,ft)||nm(ie)}};var pt=ae.input.getField();_t(pt,"keyup",function(ft){return zg.call(ie,ft)}),_t(pt,"keydown",Ka(ie,_g)),_t(pt,"keypress",Ka(ie,hc)),_t(pt,"focus",function(ft){return fo(ie,ft)}),_t(pt,"blur",function(ft){return lc(ie,ft)})}var Yd=[];Ko.defineInitHook=function(ie){return Yd.push(ie)};function Ls(ie,ae,ve,me){var Ee=ie.doc,Ue;ve==null&&(ve="add"),ve=="smart"&&(Ee.mode.indent?Ue=Zr(ie,ae).state:ve="prev");var $e=ie.options.tabSize,pt=ei(Ee,ae),ft=xt(pt.text,null,$e);pt.stateAfter&&(pt.stateAfter=null);var Ct=pt.text.match(/^\s*/)[0],hn;if(!me&&!/\S/.test(pt.text))hn=0,ve="not";else if(ve=="smart"&&(hn=Ee.mode.indent(Ue,pt.text.slice(Ct.length),pt.text),hn==An||hn>150)){if(!me)return;ve="prev"}ve=="prev"?ae>Ee.first?hn=xt(ei(Ee,ae-1).text,null,$e):hn=0:ve=="add"?hn=ft+ie.options.indentUnit:ve=="subtract"?hn=ft-ie.options.indentUnit:typeof ve=="number"&&(hn=ft+ve),hn=Math.max(0,hn);var Rt="",Gn=0;if(ie.options.indentWithTabs)for(var Rn=Math.floor(hn/$e);Rn;--Rn)Gn+=$e,Rt+=" ";if(Gn<hn&&(Rt+=ii(hn-Gn)),Rt!=Ct)return ku(Ee,Rt,jt(ae,0),jt(ae,Ct.length),"+input"),pt.stateAfter=null,!0;for(var Mi=0;Mi<Ee.sel.ranges.length;Mi++){var Oi=Ee.sel.ranges[Mi];if(Oi.head.line==ae&&Oi.head.ch<Ct.length){var Vi=jt(ae,Ct.length);_l(Ee,Mi,new zr(Vi,Vi));break}}}var zl=null;function Wd(ie){zl=ie}function $h(ie,ae,ve,me,Ee){var Ue=ie.doc;ie.display.shift=!1,me||(me=Ue.sel);var $e=+new Date-200,pt=Ee=="paste"||ie.state.pasteIncoming>$e,ft=Di(ae),Ct=null;if(pt&&me.ranges.length>1)if(zl&&zl.text.join(`
|
|
|
`)==ae){if(me.ranges.length%zl.text.length==0){Ct=[];for(var hn=0;hn<zl.text.length;hn++)Ct.push(Ue.splitLines(zl.text[hn]))}}else ft.length==me.ranges.length&&ie.options.pasteLinesPerSelection&&(Ct=Kn(ft,function(fr){return[fr]}));for(var Rt=ie.curOp.updateInput,Gn=me.ranges.length-1;Gn>=0;Gn--){var Rn=me.ranges[Gn],Mi=Rn.from(),Oi=Rn.to();Rn.empty()&&(ve&&ve>0?Mi=jt(Mi.line,Mi.ch-ve):ie.state.overwrite&&!pt?Oi=jt(Oi.line,Math.min(ei(Ue,Oi.line).text.length,Oi.ch+kt(ft).length)):pt&&zl&&zl.lineWise&&zl.text.join(`
|
|
|
`)==ft.join(`
|
|
|
`)&&(Mi=Oi=jt(Mi.line,0)));var Vi={from:Mi,to:Oi,text:Ct?Ct[Gn%Ct.length]:ft,origin:Ee||(pt?"paste":ie.state.cutIncoming>$e?"cut":"+input")};lo(ie.doc,Vi),mr(ie,"inputRead",ie,Vi)}ae&&!pt&&Qg(ie,ae),Ql(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=Rt),ie.curOp.typing=!0,ie.state.pasteIncoming=ie.state.cutIncoming=-1}function Zg(ie,ae){var ve=ie.clipboardData&&ie.clipboardData.getData("Text");if(ve)return ie.preventDefault(),!ae.isReadOnly()&&!ae.options.disableInput&&Uo(ae,function(){return $h(ae,ve,0,null,"paste")}),!0}function Qg(ie,ae){if(!(!ie.options.electricChars||!ie.options.smartIndent))for(var ve=ie.doc.sel,me=ve.ranges.length-1;me>=0;me--){var Ee=ve.ranges[me];if(!(Ee.head.ch>100||me&&ve.ranges[me-1].head.line==Ee.head.line)){var Ue=ie.getModeAt(Ee.head),$e=!1;if(Ue.electricChars){for(var pt=0;pt<Ue.electricChars.length;pt++)if(ae.indexOf(Ue.electricChars.charAt(pt))>-1){$e=Ls(ie,Ee.head.line,"smart");break}}else Ue.electricInput&&Ue.electricInput.test(ei(ie.doc,Ee.head.line).text.slice(0,Ee.head.ch))&&($e=Ls(ie,Ee.head.line,"smart"));$e&&mr(ie,"electricInput",ie,Ee.head.line)}}}function Kg(ie){for(var ae=[],ve=[],me=0;me<ie.doc.sel.ranges.length;me++){var Ee=ie.doc.sel.ranges[me].head.line,Ue={anchor:jt(Ee,0),head:jt(Ee+1,0)};ve.push(Ue),ae.push(ie.getRange(Ue.anchor,Ue.head))}return{text:ae,ranges:ve}}function Xg(ie,ae,ve,me){ie.setAttribute("autocorrect",ve?"":"off"),ie.setAttribute("autocapitalize",me?"":"off"),ie.setAttribute("spellcheck",!!ae)}function Jg(){var ie=ht("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),ae=ht("div",[ie],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ve?ie.style.width="1000px":ie.setAttribute("wrap","off"),_e&&(ie.style.border="1px solid black"),Xg(ie),ae}function gd(ie){var ae=ie.optionHandlers,ve=ie.helpers={};ie.prototype={constructor:ie,focus:function(){window.focus(),this.display.input.focus()},setOption:function(me,Ee){var Ue=this.options,$e=Ue[me];Ue[me]==Ee&&me!="mode"||(Ue[me]=Ee,ae.hasOwnProperty(me)&&Ka(this,ae[me])(this,Ee,$e),Sn(this,"optionChange",this,me))},getOption:function(me){return this.options[me]},getDoc:function(){return this.doc},addKeyMap:function(me,Ee){this.state.keyMaps[Ee?"push":"unshift"](zd(me))},removeKeyMap:function(me){for(var Ee=this.state.keyMaps,Ue=0;Ue<Ee.length;++Ue)if(Ee[Ue]==me||Ee[Ue].name==me)return Ee.splice(Ue,1),!0},addOverlay:ss(function(me,Ee){var Ue=me.token?me:ie.getMode(this.options,me);if(Ue.startState)throw new Error("Overlays may not be stateful.");yi(this.state.overlays,{mode:Ue,modeSpec:me,opaque:Ee&&Ee.opaque,priority:Ee&&Ee.priority||0},function($e){return $e.priority}),this.state.modeGen++,Po(this)}),removeOverlay:ss(function(me){for(var Ee=this.state.overlays,Ue=0;Ue<Ee.length;++Ue){var $e=Ee[Ue].modeSpec;if($e==me||typeof me=="string"&&$e.name==me){Ee.splice(Ue,1),this.state.modeGen++,Po(this);return}}}),indentLine:ss(function(me,Ee,Ue){typeof Ee!="string"&&typeof Ee!="number"&&(Ee==null?Ee=this.options.smartIndent?"smart":"prev":Ee=Ee?"add":"subtract"),oi(this.doc,me)&&Ls(this,me,Ee,Ue)}),indentSelection:ss(function(me){for(var Ee=this.doc.sel.ranges,Ue=-1,$e=0;$e<Ee.length;$e++){var pt=Ee[$e];if(pt.empty())pt.head.line>Ue&&(Ls(this,pt.head.line,me,!0),Ue=pt.head.line,$e==this.doc.sel.primIndex&&Ql(this));else{var ft=pt.from(),Ct=pt.to(),hn=Math.max(Ue,ft.line);Ue=Math.min(this.lastLine(),Ct.line-(Ct.ch?0:1))+1;for(var Rt=hn;Rt<Ue;++Rt)Ls(this,Rt,me);var Gn=this.doc.sel.ranges;ft.ch==0&&Ee.length==Gn.length&&Gn[$e].from().ch>0&&_l(this.doc,$e,new zr(ft,Gn[$e].to()),Pt)}}}),getTokenAt:function(me,Ee){return Ri(this,me,Ee)},getLineTokens:function(me,Ee){return Ri(this,jt(me),Ee,!0)},getTokenTypeAt:function(me){me=bn(this.doc,me);var Ee=ar(this,ei(this.doc,me.line)),Ue=0,$e=(Ee.length-1)/2,pt=me.ch,ft;if(pt==0)ft=Ee[2];else for(;;){var Ct=Ue+$e>>1;if((Ct?Ee[Ct*2-1]:0)>=pt)$e=Ct;else if(Ee[Ct*2+1]<pt)Ue=Ct+1;else{ft=Ee[Ct*2+2];break}}var hn=ft?ft.indexOf("overlay "):-1;return hn<0?ft:hn==0?null:ft.slice(0,hn-1)},getModeAt:function(me){var Ee=this.doc.mode;return Ee.innerMode?ie.innerMode(Ee,this.getTokenAt(me).state).mode:Ee},getHelper:function(me,Ee){return this.getHelpers(me,Ee)[0]},getHelpers:function(me,Ee){var Ue=[];if(!ve.hasOwnProperty(Ee))return Ue;var $e=ve[Ee],pt=this.getModeAt(me);if(typeof pt[Ee]=="string")$e[pt[Ee]]&&Ue.push($e[pt[Ee]]);else if(pt[Ee])for(var ft=0;ft<pt[Ee].length;ft++){var Ct=$e[pt[Ee][ft]];Ct&&Ue.push(Ct)}else pt.helperType&&$e[pt.helperType]?Ue.push($e[pt.helperType]):$e[pt.name]&&Ue.push($e[pt.name]);for(var hn=0;hn<$e._global.length;hn++){var Rt=$e._global[hn];Rt.pred(pt,this)&&it(Ue,Rt.val)==-1&&Ue.push(Rt.val)}return Ue},getStateAfter:function(me,Ee){var Ue=this.doc;return me=pi(Ue,me==null?Ue.first+Ue.size-1:me),Zr(this,me+1,Ee).state},cursorCoords:function(me,Ee){var Ue,$e=this.doc.sel.primary();return me==null?Ue=$e.head:typeof me=="object"?Ue=bn(this.doc,me):Ue=me?$e.from():$e.to(),oa(this,Ue,Ee||"page")},charCoords:function(me,Ee){return Wu(this,bn(this.doc,me),Ee||"page")},coordsChar:function(me,Ee){return me=wc(this,me,Ee||"page"),os(this,me.left,me.top)},lineAtHeight:function(me,Ee){return me=wc(this,{top:me,left:0},Ee||"page").top,Ut(this.doc,me+this.display.viewOffset)},heightAtLine:function(me,Ee,Ue){var $e=!1,pt;if(typeof me=="number"){var ft=this.doc.first+this.doc.size-1;me<this.doc.first?me=this.doc.first:me>ft&&(me=ft,$e=!0),pt=ei(this.doc,me)}else pt=me;return ts(this,pt,{top:0,left:0},Ee||"page",Ue||$e).top+($e?this.doc.height-Gr(pt):0)},defaultTextHeight:function(){return fs(this.display)},defaultCharWidth:function(){return Rl(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(me,Ee,Ue,$e,pt){var ft=this.display;me=oa(this,bn(this.doc,me));var Ct=me.bottom,hn=me.left;if(Ee.style.position="absolute",Ee.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Ee),ft.sizer.appendChild(Ee),$e=="over")Ct=me.top;else if($e=="above"||$e=="near"){var Rt=Math.max(ft.wrapper.clientHeight,this.doc.height),Gn=Math.max(ft.sizer.clientWidth,ft.lineSpace.clientWidth);($e=="above"||me.bottom+Ee.offsetHeight>Rt)&&me.top>Ee.offsetHeight?Ct=me.top-Ee.offsetHeight:me.bottom+Ee.offsetHeight<=Rt&&(Ct=me.bottom),hn+Ee.offsetWidth>Gn&&(hn=Gn-Ee.offsetWidth)}Ee.style.top=Ct+"px",Ee.style.left=Ee.style.right="",pt=="right"?(hn=ft.sizer.clientWidth-Ee.offsetWidth,Ee.style.right="0px"):(pt=="left"?hn=0:pt=="middle"&&(hn=(ft.sizer.clientWidth-Ee.offsetWidth)/2),Ee.style.left=hn+"px"),Ue&&Cu(this,{left:hn,top:Ct,right:hn+Ee.offsetWidth,bottom:Ct+Ee.offsetHeight})},triggerOnKeyDown:ss(_g),triggerOnKeyPress:ss(hc),triggerOnKeyUp:zg,triggerOnMouseDown:ss(fc),execCommand:function(me){if(hd.hasOwnProperty(me))return hd[me].call(null,this)},triggerElectric:ss(function(me){Qg(this,me)}),findPosH:function(me,Ee,Ue,$e){var pt=1;Ee<0&&(pt=-1,Ee=-Ee);for(var ft=bn(this.doc,me),Ct=0;Ct<Ee&&(ft=ef(this.doc,ft,pt,Ue,$e),!ft.hitSide);++Ct);return ft},moveH:ss(function(me,Ee){var Ue=this;this.extendSelectionsBy(function($e){return Ue.display.shift||Ue.doc.extend||$e.empty()?ef(Ue.doc,$e.head,me,Ee,Ue.options.rtlMoveVisually):me<0?$e.from():$e.to()},ln)}),deleteH:ss(function(me,Ee){var Ue=this.doc.sel,$e=this.doc;Ue.somethingSelected()?$e.replaceSelection("",null,"+delete"):$l(this,function(pt){var ft=ef($e,pt.head,me,Ee,!1);return me<0?{from:ft,to:pt.head}:{from:pt.head,to:ft}})}),findPosV:function(me,Ee,Ue,$e){var pt=1,ft=$e;Ee<0&&(pt=-1,Ee=-Ee);for(var Ct=bn(this.doc,me),hn=0;hn<Ee;++hn){var Rt=oa(this,Ct,"div");if(ft==null?ft=Rt.left:Rt.left=ft,Ct=pd(this,Rt,pt,Ue),Ct.hitSide)break}return Ct},moveV:ss(function(me,Ee){var Ue=this,$e=this.doc,pt=[],ft=!this.display.shift&&!$e.extend&&$e.sel.somethingSelected();if($e.extendSelectionsBy(function(hn){if(ft)return me<0?hn.from():hn.to();var Rt=oa(Ue,hn.head,"div");hn.goalColumn!=null&&(Rt.left=hn.goalColumn),pt.push(Rt.left);var Gn=pd(Ue,Rt,me,Ee);return Ee=="page"&&hn==$e.sel.primary()&&sd(Ue,Wu(Ue,Gn,"div").top-Rt.top),Gn},ln),pt.length)for(var Ct=0;Ct<$e.sel.ranges.length;Ct++)$e.sel.ranges[Ct].goalColumn=pt[Ct]}),findWordAt:function(me){var Ee=this.doc,Ue=ei(Ee,me.line).text,$e=me.ch,pt=me.ch;if(Ue){var ft=this.getHelper(me,"wordChars");(me.sticky=="before"||pt==Ue.length)&&$e?--$e:++pt;for(var Ct=Ue.charAt($e),hn=Me(Ct,ft)?function(Rt){return Me(Rt,ft)}:/\s/.test(Ct)?function(Rt){return/\s/.test(Rt)}:function(Rt){return!/\s/.test(Rt)&&!Me(Rt)};$e>0&&hn(Ue.charAt($e-1));)--$e;for(;pt<Ue.length&&hn(Ue.charAt(pt));)++pt}return new zr(jt(me.line,$e),jt(me.line,pt))},toggleOverwrite:function(me){me!=null&&me==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?$t(this.display.cursorDiv,"CodeMirror-overwrite"):Ke(this.display.cursorDiv,"CodeMirror-overwrite"),Sn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==It()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:ss(function(me,Ee){Fl(this,me,Ee)}),getScrollInfo:function(){var me=this.display.scroller;return{left:me.scrollLeft,top:me.scrollTop,height:me.scrollHeight-ia(this)-this.display.barHeight,width:me.scrollWidth-ia(this)-this.display.barWidth,clientHeight:Ts(this),clientWidth:Ma(this)}},scrollIntoView:ss(function(me,Ee){me==null?(me={from:this.doc.sel.primary().head,to:null},Ee==null&&(Ee=this.options.cursorScrollMargin)):typeof me=="number"?me={from:jt(me,0),to:null}:me.from==null&&(me={from:me,to:null}),me.to||(me.to=me.from),me.margin=Ee||0,me.from.line!=null?To(this,me):Ac(this,me.from,me.to,me.margin)}),setSize:ss(function(me,Ee){var Ue=this,$e=function(ft){return typeof ft=="number"||/^\d+$/.test(String(ft))?ft+"px":ft};me!=null&&(this.display.wrapper.style.width=$e(me)),Ee!=null&&(this.display.wrapper.style.height=$e(Ee)),this.options.lineWrapping&&Gu(this);var pt=this.display.viewFrom;this.doc.iter(pt,this.display.viewTo,function(ft){if(ft.widgets){for(var Ct=0;Ct<ft.widgets.length;Ct++)if(ft.widgets[Ct].noHScroll){mo(Ue,pt,"widget");break}}++pt}),this.curOp.forceUpdate=!0,Sn(this,"refresh",this)}),operation:function(me){return Uo(this,me)},startOperation:function(){return fu(this)},endOperation:function(){return Mu(this)},refresh:ss(function(){var me=this.display.cachedTextHeight;Po(this),this.curOp.forceUpdate=!0,Yu(this),Fl(this,this.doc.scrollLeft,this.doc.scrollTop),Et(this.display),(me==null||Math.abs(me-fs(this.display))>.5||this.options.lineWrapping)&&jr(this),Sn(this,"refresh",this)}),swapDoc:ss(function(me){var Ee=this.doc;return Ee.cm=null,this.state.selectingText&&this.state.selectingText(),Do(this,me),Yu(this),this.display.input.reset(),Fl(this,me.scrollLeft,me.scrollTop),this.curOp.forceScroll=!0,mr(this,"swapDoc",this,Ee),Ee}),phrase:function(me){var Ee=this.options.phrases;return Ee&&Object.prototype.hasOwnProperty.call(Ee,me)?Ee[me]:me},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}},yt(ie),ie.registerHelper=function(me,Ee,Ue){ve.hasOwnProperty(me)||(ve[me]=ie[me]={_global:[]}),ve[me][Ee]=Ue},ie.registerGlobalHelper=function(me,Ee,Ue,$e){ie.registerHelper(me,Ee,$e),ve[me]._global.push({pred:Ue,val:$e})}}function ef(ie,ae,ve,me,Ee){var Ue=ae,$e=ve,pt=ei(ie,ae.line),ft=Ee&&ie.direction=="rtl"?-ve:ve;function Ct(){var Pr=ae.line+ft;return Pr<ie.first||Pr>=ie.first+ie.size?!1:(ae=new jt(Pr,ae.ch,ae.sticky),pt=ei(ie,Pr))}function hn(Pr){var br;if(me=="codepoint"){var _r=pt.text.charCodeAt(ae.ch+(me>0?0:-1));isNaN(_r)?br=null:br=new jt(ae.line,Math.max(0,Math.min(pt.text.length,ae.ch+ve*(_r>=55296&&_r<56320?2:1))),-ve)}else Ee?br=Lf(ie.cm,pt,ae,ve):br=us(pt,ae,ve);if(br==null)if(!Pr&&Ct())ae=Jh(Ee,ie.cm,pt,ae.line,ft);else return!1;else ae=br;return!0}if(me=="char"||me=="codepoint")hn();else if(me=="column")hn(!0);else if(me=="word"||me=="group")for(var Rt=null,Gn=me=="group",Rn=ie.cm&&ie.cm.getHelper(ae,"wordChars"),Mi=!0;!(ve<0&&!hn(!Mi));Mi=!1){var Oi=pt.text.charAt(ae.ch)||`
|
|
|
`,Vi=Me(Oi,Rn)?"w":Gn&&Oi==`
|
|
|
`?"n":!Gn||/\s/.test(Oi)?null:"p";if(Gn&&!Mi&&!Vi&&(Vi="s"),Rt&&Rt!=Vi){ve<0&&(ve=1,hn(),ae.sticky="after");break}if(Vi&&(Rt=Vi),ve>0&&!hn(!Mi))break}var fr=Ur(ie,ae,Ue,$e,!0);return ni(Ue,fr)&&(fr.hitSide=!0),fr}function pd(ie,ae,ve,me){var Ee=ie.doc,Ue=ae.left,$e;if(me=="page"){var pt=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ft=Math.max(pt-.5*fs(ie.display),3);$e=(ve>0?ae.bottom:ae.top)+ve*ft}else me=="line"&&($e=ve>0?ae.bottom+3:ae.top-3);for(var Ct;Ct=os(ie,Ue,$e),!!Ct.outside;){if(ve<0?$e<=0:$e>=Ee.height){Ct.hitSide=!0;break}$e+=ve*5}return Ct}var Sa=function(ie){this.cm=ie,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ct,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Sa.prototype.init=function(ie){var ae=this,ve=this,me=ve.cm,Ee=ve.div=ie.lineDiv;Xg(Ee,me.options.spellcheck,me.options.autocorrect,me.options.autocapitalize);function Ue(pt){for(var ft=pt.target;ft;ft=ft.parentNode){if(ft==Ee)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ft.className))break}return!1}_t(Ee,"paste",function(pt){!Ue(pt)||nn(me,pt)||Zg(pt,me)||Re<=11&&setTimeout(Ka(me,function(){return ae.updateFromDOM()}),20)}),_t(Ee,"compositionstart",function(pt){ae.composing={data:pt.data,done:!1}}),_t(Ee,"compositionupdate",function(pt){ae.composing||(ae.composing={data:pt.data,done:!1})}),_t(Ee,"compositionend",function(pt){ae.composing&&(pt.data!=ae.composing.data&&ae.readFromDOMSoon(),ae.composing.done=!0)}),_t(Ee,"touchstart",function(){return ve.forceCompositionEnd()}),_t(Ee,"input",function(){ae.composing||ae.readFromDOMSoon()});function $e(pt){if(!(!Ue(pt)||nn(me,pt))){if(me.somethingSelected())Wd({lineWise:!1,text:me.getSelections()}),pt.type=="cut"&&me.replaceSelection("",null,"cut");else if(me.options.lineWiseCopyCut){var ft=Kg(me);Wd({lineWise:!0,text:ft.text}),pt.type=="cut"&&me.operation(function(){me.setSelections(ft.ranges,0,Pt),me.replaceSelection("",null,"cut")})}else return;if(pt.clipboardData){pt.clipboardData.clearData();var Ct=zl.text.join(`
|
|
|
`);if(pt.clipboardData.setData("Text",Ct),pt.clipboardData.getData("Text")==Ct){pt.preventDefault();return}}var hn=Jg(),Rt=hn.firstChild;me.display.lineSpace.insertBefore(hn,me.display.lineSpace.firstChild),Rt.value=zl.text.join(`
|
|
|
`);var Gn=document.activeElement;yn(Rt),setTimeout(function(){me.display.lineSpace.removeChild(hn),Gn.focus(),Gn==Ee&&ve.showPrimarySelection()},50)}}_t(Ee,"copy",$e),_t(Ee,"cut",$e)},Sa.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},Sa.prototype.prepareSelection=function(){var ie=Au(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},Sa.prototype.showSelection=function(ie,ae){!ie||!this.cm.display.view.length||((ie.focus||ae)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},Sa.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Sa.prototype.showPrimarySelection=function(){var ie=this.getSelection(),ae=this.cm,ve=ae.doc.sel.primary(),me=ve.from(),Ee=ve.to();if(ae.display.viewTo==ae.display.viewFrom||me.line>=ae.display.viewTo||Ee.line<ae.display.viewFrom){ie.removeAllRanges();return}var Ue=tf(ae,ie.anchorNode,ie.anchorOffset),$e=tf(ae,ie.focusNode,ie.focusOffset);if(!(Ue&&!Ue.bad&&$e&&!$e.bad&&Vn(ci(Ue,$e),me)==0&&Vn(je(Ue,$e),Ee)==0)){var pt=ae.display.view,ft=me.line>=ae.display.viewFrom&&zf(ae,me)||{node:pt[0].measure.map[2],offset:0},Ct=Ee.line<ae.display.viewTo&&zf(ae,Ee);if(!Ct){var hn=pt[pt.length-1].measure,Rt=hn.maps?hn.maps[hn.maps.length-1]:hn.map;Ct={node:Rt[Rt.length-1],offset:Rt[Rt.length-2]-Rt[Rt.length-3]}}if(!ft||!Ct){ie.removeAllRanges();return}var Gn=ie.rangeCount&&ie.getRangeAt(0),Rn;try{Rn=at(ft.node,ft.offset,Ct.offset,Ct.node)}catch(Mi){}Rn&&(!le&&ae.state.focused?(ie.collapse(ft.node,ft.offset),Rn.collapsed||(ie.removeAllRanges(),ie.addRange(Rn))):(ie.removeAllRanges(),ie.addRange(Rn)),Gn&&ie.anchorNode==null?ie.addRange(Gn):le&&this.startGracePeriod()),this.rememberSelection()}},Sa.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)},Sa.prototype.showMultipleSelections=function(ie){ot(this.cm.display.cursorDiv,ie.cursors),ot(this.cm.display.selectionDiv,ie.selection)},Sa.prototype.rememberSelection=function(){var ie=this.getSelection();this.lastAnchorNode=ie.anchorNode,this.lastAnchorOffset=ie.anchorOffset,this.lastFocusNode=ie.focusNode,this.lastFocusOffset=ie.focusOffset},Sa.prototype.selectionInEditor=function(){var ie=this.getSelection();if(!ie.rangeCount)return!1;var ae=ie.getRangeAt(0).commonAncestorContainer;return At(this.div,ae)},Sa.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Sa.prototype.blur=function(){this.div.blur()},Sa.prototype.getField=function(){return this.div},Sa.prototype.supportsTouch=function(){return!0},Sa.prototype.receivedFocus=function(){var ie=this;this.selectionInEditor()?this.pollSelection():Uo(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)},Sa.prototype.selectionChanged=function(){var ie=this.getSelection();return ie.anchorNode!=this.lastAnchorNode||ie.anchorOffset!=this.lastAnchorOffset||ie.focusNode!=this.lastFocusNode||ie.focusOffset!=this.lastFocusOffset},Sa.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var ie=this.getSelection(),ae=this.cm;if(te&&Xe&&this.cm.display.gutterSpecs.length&&qg(ie.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ve=tf(ae,ie.anchorNode,ie.anchorOffset),me=tf(ae,ie.focusNode,ie.focusOffset);ve&&me&&Uo(ae,function(){pe(ae.doc,aa(ve,me),Pt),(ve.bad||me.bad)&&(ae.curOp.selectionChanged=!0)})}}},Sa.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var ie=this.cm,ae=ie.display,ve=ie.doc.sel.primary(),me=ve.from(),Ee=ve.to();if(me.ch==0&&me.line>ie.firstLine()&&(me=jt(me.line-1,ei(ie.doc,me.line-1).length)),Ee.ch==ei(ie.doc,Ee.line).text.length&&Ee.line<ie.lastLine()&&(Ee=jt(Ee.line+1,0)),me.line<ae.viewFrom||Ee.line>ae.viewTo-1)return!1;var Ue,$e,pt;me.line==ae.viewFrom||(Ue=Ns(ie,me.line))==0?($e=lt(ae.view[0].line),pt=ae.view[0].node):($e=lt(ae.view[Ue].line),pt=ae.view[Ue-1].node.nextSibling);var ft=Ns(ie,Ee.line),Ct,hn;if(ft==ae.view.length-1?(Ct=ae.viewTo-1,hn=ae.lineDiv.lastChild):(Ct=lt(ae.view[ft+1].line)-1,hn=ae.view[ft+1].node.previousSibling),!pt)return!1;for(var Rt=ie.doc.splitLines(Mh(ie,pt,hn,$e,Ct)),Gn=ji(ie.doc,jt($e,0),jt(Ct,ei(ie.doc,Ct).text.length));Rt.length>1&&Gn.length>1;)if(kt(Rt)==kt(Gn))Rt.pop(),Gn.pop(),Ct--;else if(Rt[0]==Gn[0])Rt.shift(),Gn.shift(),$e++;else break;for(var Rn=0,Mi=0,Oi=Rt[0],Vi=Gn[0],fr=Math.min(Oi.length,Vi.length);Rn<fr&&Oi.charCodeAt(Rn)==Vi.charCodeAt(Rn);)++Rn;for(var Pr=kt(Rt),br=kt(Gn),_r=Math.min(Pr.length-(Rt.length==1?Rn:0),br.length-(Gn.length==1?Rn:0));Mi<_r&&Pr.charCodeAt(Pr.length-Mi-1)==br.charCodeAt(br.length-Mi-1);)++Mi;if(Rt.length==1&&Gn.length==1&&$e==me.line)for(;Rn&&Rn>me.ch&&Pr.charCodeAt(Pr.length-Mi-1)==br.charCodeAt(br.length-Mi-1);)Rn--,Mi++;Rt[Rt.length-1]=Pr.slice(0,Pr.length-Mi).replace(/^\u200b+/,""),Rt[0]=Rt[0].slice(Rn).replace(/\u200b+$/,"");var io=jt($e,Rn),xr=jt(Ct,Gn.length?kt(Gn).length-Mi:0);if(Rt.length>1||Rt[0]||Vn(io,xr))return ku(ie.doc,Rt,io,xr,"+input"),!0},Sa.prototype.ensurePolled=function(){this.forceCompositionEnd()},Sa.prototype.reset=function(){this.forceCompositionEnd()},Sa.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Sa.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))},Sa.prototype.updateFromDOM=function(){var ie=this;(this.cm.isReadOnly()||!this.pollContent())&&Uo(this.cm,function(){return Po(ie.cm)})},Sa.prototype.setUneditable=function(ie){ie.contentEditable="false"},Sa.prototype.onKeyPress=function(ie){ie.charCode==0||this.composing||(ie.preventDefault(),this.cm.isReadOnly()||Ka(this.cm,$h)(this.cm,String.fromCharCode(ie.charCode==null?ie.keyCode:ie.charCode),0))},Sa.prototype.readOnlyChanged=function(ie){this.div.contentEditable=String(ie!="nocursor")},Sa.prototype.onContextMenu=function(){},Sa.prototype.resetPosition=function(){},Sa.prototype.needsContentAttribute=!0;function zf(ie,ae){var ve=Fa(ie,ae.line);if(!ve||ve.hidden)return null;var me=ei(ie.doc,ae.line),Ee=$s(ve,me,ae.line),Ue=fn(me,ie.doc.direction),$e="left";if(Ue){var pt=gn(Ue,ae.ch);$e=pt%2?"right":"left"}var ft=xc(Ee.map,ae.ch,$e);return ft.offset=ft.collapse=="right"?ft.end:ft.start,ft}function qg(ie){for(var ae=ie;ae;ae=ae.parentNode)if(/CodeMirror-gutter-wrapper/.test(ae.className))return!0;return!1}function Nh(ie,ae){return ae&&(ie.bad=!0),ie}function Mh(ie,ae,ve,me,Ee){var Ue="",$e=!1,pt=ie.doc.lineSeparator(),ft=!1;function Ct(Rn){return function(Mi){return Mi.id==Rn}}function hn(){$e&&(Ue+=pt,ft&&(Ue+=pt),$e=ft=!1)}function Rt(Rn){Rn&&(hn(),Ue+=Rn)}function Gn(Rn){if(Rn.nodeType==1){var Mi=Rn.getAttribute("cm-text");if(Mi){Rt(Mi);return}var Oi=Rn.getAttribute("cm-marker"),Vi;if(Oi){var fr=ie.findMarks(jt(me,0),jt(Ee+1,0),Ct(+Oi));fr.length&&(Vi=fr[0].find(0))&&Rt(ji(ie.doc,Vi.from,Vi.to).join(pt));return}if(Rn.getAttribute("contenteditable")=="false")return;var Pr=/^(pre|div|p|li|table|br)$/i.test(Rn.nodeName);if(!/^br$/i.test(Rn.nodeName)&&Rn.textContent.length==0)return;Pr&&hn();for(var br=0;br<Rn.childNodes.length;br++)Gn(Rn.childNodes[br]);/^(pre|p)$/i.test(Rn.nodeName)&&(ft=!0),Pr&&($e=!0)}else Rn.nodeType==3&&Rt(Rn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Gn(ae),ae!=ve;)ae=ae.nextSibling,ft=!1;return Ue}function tf(ie,ae,ve){var me;if(ae==ie.display.lineDiv){if(me=ie.display.lineDiv.childNodes[ve],!me)return Nh(ie.clipPos(jt(ie.display.viewTo-1)),!0);ae=null,ve=0}else for(me=ae;;me=me.parentNode){if(!me||me==ie.display.lineDiv)return null;if(me.parentNode&&me.parentNode==ie.display.lineDiv)break}for(var Ee=0;Ee<ie.display.view.length;Ee++){var Ue=ie.display.view[Ee];if(Ue.node==me)return dm(Ue,ae,ve)}}function dm(ie,ae,ve){var me=ie.text.firstChild,Ee=!1;if(!ae||!At(me,ae))return Nh(jt(lt(ie.line),0),!0);if(ae==me&&(Ee=!0,ae=me.childNodes[ve],ve=0,!ae)){var Ue=ie.rest?kt(ie.rest):ie.line;return Nh(jt(lt(Ue),Ue.text.length),Ee)}var $e=ae.nodeType==3?ae:null,pt=ae;for(!$e&&ae.childNodes.length==1&&ae.firstChild.nodeType==3&&($e=ae.firstChild,ve&&(ve=$e.nodeValue.length));pt.parentNode!=me;)pt=pt.parentNode;var ft=ie.measure,Ct=ft.maps;function hn(Vi,fr,Pr){for(var br=-1;br<(Ct?Ct.length:0);br++)for(var _r=br<0?ft.map:Ct[br],io=0;io<_r.length;io+=3){var xr=_r[io+2];if(xr==Vi||xr==fr){var No=lt(br<0?ie.line:ie.rest[br]),Da=_r[io]+Pr;return(Pr<0||xr!=Vi)&&(Da=_r[io+(Pr?1:0)]),jt(No,Da)}}}var Rt=hn($e,pt,ve);if(Rt)return Nh(Rt,Ee);for(var Gn=pt.nextSibling,Rn=$e?$e.nodeValue.length-ve:0;Gn;Gn=Gn.nextSibling){if(Rt=hn(Gn,Gn.firstChild,0),Rt)return Nh(jt(Rt.line,Rt.ch-Rn),Ee);Rn+=Gn.textContent.length}for(var Mi=pt.previousSibling,Oi=ve;Mi;Mi=Mi.previousSibling){if(Rt=hn(Mi,Mi.firstChild,-1),Rt)return Nh(jt(Rt.line,Rt.ch+Oi),Ee);Oi+=Mi.textContent.length}}var Ss=function(ie){this.cm=ie,this.prevInput="",this.pollingFast=!1,this.polling=new ct,this.hasSelection=!1,this.composing=null};Ss.prototype.init=function(ie){var ae=this,ve=this,me=this.cm;this.createField(ie);var Ee=this.textarea;ie.wrapper.insertBefore(this.wrapper,ie.wrapper.firstChild),_e&&(Ee.style.width="0px"),_t(Ee,"input",function(){Ye&&Re>=9&&ae.hasSelection&&(ae.hasSelection=null),ve.poll()}),_t(Ee,"paste",function($e){nn(me,$e)||Zg($e,me)||(me.state.pasteIncoming=+new Date,ve.fastPoll())});function Ue($e){if(!nn(me,$e)){if(me.somethingSelected())Wd({lineWise:!1,text:me.getSelections()});else if(me.options.lineWiseCopyCut){var pt=Kg(me);Wd({lineWise:!0,text:pt.text}),$e.type=="cut"?me.setSelections(pt.ranges,null,Pt):(ve.prevInput="",Ee.value=pt.text.join(`
|
|
|
`),yn(Ee))}else return;$e.type=="cut"&&(me.state.cutIncoming=+new Date)}}_t(Ee,"cut",Ue),_t(Ee,"copy",Ue),_t(ie.scroller,"paste",function($e){if(!(Ao(ie,$e)||nn(me,$e))){if(!Ee.dispatchEvent){me.state.pasteIncoming=+new Date,ve.focus();return}var pt=new Event("paste");pt.clipboardData=$e.clipboardData,Ee.dispatchEvent(pt)}}),_t(ie.lineSpace,"selectstart",function($e){Ao(ie,$e)||kn($e)}),_t(Ee,"compositionstart",function(){var $e=me.getCursor("from");ve.composing&&ve.composing.range.clear(),ve.composing={start:$e,range:me.markText($e,me.getCursor("to"),{className:"CodeMirror-composing"})}}),_t(Ee,"compositionend",function(){ve.composing&&(ve.poll(),ve.composing.range.clear(),ve.composing=null)})},Ss.prototype.createField=function(ie){this.wrapper=Jg(),this.textarea=this.wrapper.firstChild},Ss.prototype.screenReaderLabelChanged=function(ie){ie?this.textarea.setAttribute("aria-label",ie):this.textarea.removeAttribute("aria-label")},Ss.prototype.prepareSelection=function(){var ie=this.cm,ae=ie.display,ve=ie.doc,me=Au(ie);if(ie.options.moveInputWithCursor){var Ee=oa(ie,ve.sel.primary().head,"div"),Ue=ae.wrapper.getBoundingClientRect(),$e=ae.lineDiv.getBoundingClientRect();me.teTop=Math.max(0,Math.min(ae.wrapper.clientHeight-10,Ee.top+$e.top-Ue.top)),me.teLeft=Math.max(0,Math.min(ae.wrapper.clientWidth-10,Ee.left+$e.left-Ue.left))}return me},Ss.prototype.showSelection=function(ie){var ae=this.cm,ve=ae.display;ot(ve.cursorDiv,ie.cursors),ot(ve.selectionDiv,ie.selection),ie.teTop!=null&&(this.wrapper.style.top=ie.teTop+"px",this.wrapper.style.left=ie.teLeft+"px")},Ss.prototype.reset=function(ie){if(!(this.contextMenuPending||this.composing)){var ae=this.cm;if(ae.somethingSelected()){this.prevInput="";var ve=ae.getSelection();this.textarea.value=ve,ae.state.focused&&yn(this.textarea),Ye&&Re>=9&&(this.hasSelection=ve)}else ie||(this.prevInput=this.textarea.value="",Ye&&Re>=9&&(this.hasSelection=null))}},Ss.prototype.getField=function(){return this.textarea},Ss.prototype.supportsTouch=function(){return!1},Ss.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ne||It()!=this.textarea))try{this.textarea.focus()}catch(ie){}},Ss.prototype.blur=function(){this.textarea.blur()},Ss.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ss.prototype.receivedFocus=function(){this.slowPoll()},Ss.prototype.slowPoll=function(){var ie=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ie.poll(),ie.cm.state.focused&&ie.slowPoll()})},Ss.prototype.fastPoll=function(){var ie=!1,ae=this;ae.pollingFast=!0;function ve(){var me=ae.poll();!me&&!ie?(ie=!0,ae.polling.set(60,ve)):(ae.pollingFast=!1,ae.slowPoll())}ae.polling.set(20,ve)},Ss.prototype.poll=function(){var ie=this,ae=this.cm,ve=this.textarea,me=this.prevInput;if(this.contextMenuPending||!ae.state.focused||ke(ve)&&!me&&!this.composing||ae.isReadOnly()||ae.options.disableInput||ae.state.keySeq)return!1;var Ee=ve.value;if(Ee==me&&!ae.somethingSelected())return!1;if(Ye&&Re>=9&&this.hasSelection===Ee||he&&/[\uf700-\uf7ff]/.test(Ee))return ae.display.input.reset(),!1;if(ae.doc.sel==ae.display.selForContextMenu){var Ue=Ee.charCodeAt(0);if(Ue==8203&&!me&&(me="\u200B"),Ue==8666)return this.reset(),this.cm.execCommand("undo")}for(var $e=0,pt=Math.min(me.length,Ee.length);$e<pt&&me.charCodeAt($e)==Ee.charCodeAt($e);)++$e;return Uo(ae,function(){$h(ae,Ee.slice($e),me.length-$e,null,ie.composing?"*compose":null),Ee.length>1e3||Ee.indexOf(`
|
|
|
`)>-1?ve.value=ie.prevInput="":ie.prevInput=Ee,ie.composing&&(ie.composing.range.clear(),ie.composing.range=ae.markText(ie.composing.start,ae.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ss.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ss.prototype.onKeyPress=function(){Ye&&Re>=9&&(this.hasSelection=null),this.fastPoll()},Ss.prototype.onContextMenu=function(ie){var ae=this,ve=ae.cm,me=ve.display,Ee=ae.textarea;ae.contextMenuPending&&ae.contextMenuPending();var Ue=as(ve,ie),$e=me.scroller.scrollTop;if(!Ue||qe)return;var pt=ve.options.resetSelectionOnContextMenu;pt&&ve.doc.sel.contains(Ue)==-1&&Ka(ve,pe)(ve.doc,aa(Ue),Pt);var ft=Ee.style.cssText,Ct=ae.wrapper.style.cssText,hn=ae.wrapper.offsetParent.getBoundingClientRect();ae.wrapper.style.cssText="position: static",Ee.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(ie.clientY-hn.top-5)+"px; left: "+(ie.clientX-hn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(Ye?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Rt;Ve&&(Rt=window.scrollY),me.input.focus(),Ve&&window.scrollTo(null,Rt),me.input.reset(),ve.somethingSelected()||(Ee.value=ae.prevInput=" "),ae.contextMenuPending=Rn,me.selForContextMenu=ve.doc.sel,clearTimeout(me.detectingSelectAll);function Gn(){if(Ee.selectionStart!=null){var Oi=ve.somethingSelected(),Vi="\u200B"+(Oi?Ee.value:"");Ee.value="\u21DA",Ee.value=Vi,ae.prevInput=Oi?"":"\u200B",Ee.selectionStart=1,Ee.selectionEnd=Vi.length,me.selForContextMenu=ve.doc.sel}}function Rn(){if(ae.contextMenuPending==Rn&&(ae.contextMenuPending=!1,ae.wrapper.style.cssText=Ct,Ee.style.cssText=ft,Ye&&Re<9&&me.scrollbars.setScrollTop(me.scroller.scrollTop=$e),Ee.selectionStart!=null)){(!Ye||Ye&&Re<9)&&Gn();var Oi=0,Vi=function(){me.selForContextMenu==ve.doc.sel&&Ee.selectionStart==0&&Ee.selectionEnd>0&&ae.prevInput=="\u200B"?Ka(ve,Si)(ve):Oi++<10?me.detectingSelectAll=setTimeout(Vi,500):(me.selForContextMenu=null,me.input.reset())};me.detectingSelectAll=setTimeout(Vi,200)}}if(Ye&&Re>=9&&Gn(),Oe){di(ie);var Mi=function(){dn(window,"mouseup",Mi),setTimeout(Rn,20)};_t(window,"mouseup",Mi)}else setTimeout(Rn,50)},Ss.prototype.readOnlyChanged=function(ie){ie||this.reset(),this.textarea.disabled=ie=="nocursor",this.textarea.readOnly=!!ie},Ss.prototype.setUneditable=function(){},Ss.prototype.needsContentAttribute=!1;function hm(ie,ae){if(ae=ae?On(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 ve=It();ae.autofocus=ve==ie||ie.getAttribute("autofocus")!=null&&ve==document.body}function me(){ie.value=pt.getValue()}var Ee;if(ie.form&&(_t(ie.form,"submit",me),!ae.leaveSubmitMethodAlone)){var Ue=ie.form;Ee=Ue.submit;try{var $e=Ue.submit=function(){me(),Ue.submit=Ee,Ue.submit(),Ue.submit=$e}}catch(ft){}}ae.finishInit=function(ft){ft.save=me,ft.getTextArea=function(){return ie},ft.toTextArea=function(){ft.toTextArea=isNaN,me(),ie.parentNode.removeChild(ft.getWrapperElement()),ie.style.display="",ie.form&&(dn(ie.form,"submit",me),!ae.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=Ee))}},ie.style.display="none";var pt=Ko(function(ft){return ie.parentNode.insertBefore(ft,ie.nextSibling)},ae);return pt}function Ph(ie){ie.off=dn,ie.on=_t,ie.wheelEventPixels=Xr,ie.Doc=nl,ie.splitLines=Di,ie.countColumn=xt,ie.findColumn=zn,ie.isWordChar=Te,ie.Pass=An,ie.signal=Sn,ie.Line=Zo,ie.changeEnd=sa,ie.scrollbarModel=Zu,ie.Pos=jt,ie.cmpPos=Vn,ie.modes=fi,ie.mimeModes=Ai,ie.resolveMode=er,ie.getMode=Kt,ie.modeExtensions=en,ie.extendMode=zt,ie.copyState=on,ie.startState=mn,ie.innerMode=rn,ie.commands=hd,ie.keyMap=ql,ie.keyName=rm,ie.isModifierKey=xh,ie.lookupKey=Du,ie.normalizeKeyMap=Dg,ie.StringStream=Bn,ie.SharedTextMarker=Nc,ie.TextMarker=Jt,ie.LineWidget=Vc,ie.e_preventDefault=kn,ie.e_stopPropagation=Cn,ie.e_stop=di,ie.addClass=$t,ie.contains=At,ie.rmClass=Ke,ie.keyNames=Mc}um(Ko),gd(Ko);var Zc="iter insert remove copy getEditor constructor".split(" ");for(var nf in nl.prototype)nl.prototype.hasOwnProperty(nf)&&it(Zc,nf)<0&&(Ko.prototype[nf]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(nl.prototype[nf]));return yt(nl),Ko.inputStyles={textarea:Ss,contenteditable:Sa},Ko.defineMode=function(ie){!Ko.defaults.mode&&ie!="null"&&(Ko.defaults.mode=ie),xi.apply(this,arguments)},Ko.defineMIME=hr,Ko.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),Ko.defineMIME("text/plain","null"),Ko.defineExtension=function(ie,ae){Ko.prototype[ie]=ae},Ko.defineDocExtension=function(ie,ae){nl.prototype[ie]=ae},Ko.fromTextArea=hm,Ph(Ko),Ko.version="5.58.2",Ko})},25419:function(Ge,be,de){(function(le){le(de(89780),de(15525),de(98101))})(function(le){"use strict";le.defineMode("markdown",function(Ie,De){var Le=le.getMode(Ie,"text/html"),Ye=Le.name=="null";function Re(xt){if(le.findModeByName){var ct=le.findModeByName(xt);ct&&(xt=ct.mime||ct.mimes[0])}var it=le.getMode(Ie,xt);return it.name=="null"?null:it}De.highlightFormatting===void 0&&(De.highlightFormatting=!1),De.maxBlockquoteDepth===void 0&&(De.maxBlockquoteDepth=0),De.taskLists===void 0&&(De.taskLists=!1),De.strikethrough===void 0&&(De.strikethrough=!1),De.emoji===void 0&&(De.emoji=!1),De.fencedCodeBlockHighlighting===void 0&&(De.fencedCodeBlockHighlighting=!0),De.fencedCodeBlockDefaultMode===void 0&&(De.fencedCodeBlockDefaultMode="text/plain"),De.xml===void 0&&(De.xml=!0),De.tokenTypeOverrides===void 0&&(De.tokenTypeOverrides={});var Ve={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 Je in Ve)Ve.hasOwnProperty(Je)&&De.tokenTypeOverrides[Je]&&(Ve[Je]=De.tokenTypeOverrides[Je]);var Xe=/^([*\-_])(?:\s*\1){2,}\s*$/,qe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,mt=/^\[(x| )\](?=\s)/i,st=De.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Nt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,_e=/^[^#!\[\]*_\\<>` "'(~:]+/,te=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ne=/^\s*\[[^\]]+?\]:.*$/,he=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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 ge(xt,ct,it){return ct.f=ct.inline=it,it(xt,ct)}function Se(xt,ct,it){return ct.f=ct.block=it,it(xt,ct)}function Ae(xt){return!xt||!/\S/.test(xt.string)}function Oe(xt){if(xt.linkTitle=!1,xt.linkHref=!1,xt.linkText=!1,xt.em=!1,xt.strong=!1,xt.strikethrough=!1,xt.quote=0,xt.indentedCode=!1,xt.f==Ke){var ct=Ye;if(!ct){var it=le.innerMode(Le,xt.htmlState);ct=it.mode.name=="xml"&&it.state.tagStart===null&&!it.state.context&&it.state.tokenize.isInText}ct&&(xt.f=bt,xt.block=Be,xt.htmlState=null)}return xt.trailingSpace=0,xt.trailingSpaceNewLine=!1,xt.prevLine=xt.thisLine,xt.thisLine={stream:null},null}function Be(xt,ct){var it=xt.column()===ct.indentation,cn=Ae(ct.prevLine.stream),An=ct.indentedCode,Pt=ct.prevLine.hr,an=ct.list!==!1,ln=(ct.listStack[ct.listStack.length-1]||0)+3;ct.indentedCode=!1;var zn=ct.indentation;if(ct.indentationDiff===null&&(ct.indentationDiff=ct.indentation,an)){for(ct.list=null;zn<ct.listStack[ct.listStack.length-1];)ct.listStack.pop(),ct.listStack.length?ct.indentation=ct.listStack[ct.listStack.length-1]:ct.list=!1;ct.list!==!1&&(ct.indentationDiff=zn-ct.listStack[ct.listStack.length-1])}var En=!cn&&!Pt&&!ct.prevLine.header&&(!an||!An)&&!ct.prevLine.fencedCodeEnd,ii=(ct.list===!1||Pt||cn)&&ct.indentation<=ln&&xt.match(Xe),kt=null;if(ct.indentationDiff>=4&&(An||ct.prevLine.fencedCodeEnd||ct.prevLine.header||cn))return xt.skipToEnd(),ct.indentedCode=!0,Ve.code;if(xt.eatSpace())return null;if(it&&ct.indentation<=ln&&(kt=xt.match(st))&&kt[1].length<=6)return ct.quote=0,ct.header=kt[1].length,ct.thisLine.header=!0,De.highlightFormatting&&(ct.formatting="header"),ct.f=ct.inline,ot(ct);if(ct.indentation<=ln&&xt.eat(">"))return ct.quote=it?1:ct.quote+1,De.highlightFormatting&&(ct.formatting="quote"),xt.eatSpace(),ot(ct);if(!ii&&!ct.setext&&it&&ct.indentation<=ln&&(kt=xt.match(qe))){var Kn=kt[1]?"ol":"ul";return ct.indentation=zn+xt.current().length,ct.list=!0,ct.quote=0,ct.listStack.push(ct.indentation),ct.em=!1,ct.strong=!1,ct.code=!1,ct.strikethrough=!1,De.taskLists&&xt.match(mt,!1)&&(ct.taskList=!0),ct.f=ct.inline,De.highlightFormatting&&(ct.formatting=["list","list-"+Kn]),ot(ct)}else{if(it&&ct.indentation<=ln&&(kt=xt.match(te,!0)))return ct.quote=0,ct.fencedEndRE=new RegExp(kt[1]+"+ *$"),ct.localMode=De.fencedCodeBlockHighlighting&&Re(kt[2]||De.fencedCodeBlockDefaultMode),ct.localMode&&(ct.localState=le.startState(ct.localMode)),ct.f=ct.block=rt,De.highlightFormatting&&(ct.formatting="code-block"),ct.code=-1,ot(ct);if(ct.setext||(!En||!an)&&!ct.quote&&ct.list===!1&&!ct.code&&!ii&&!ne.test(xt.string)&&(kt=xt.lookAhead(1))&&(kt=kt.match(Nt)))return ct.setext?(ct.header=ct.setext,ct.setext=0,xt.skipToEnd(),De.highlightFormatting&&(ct.formatting="header")):(ct.header=kt[0].charAt(0)=="="?1:2,ct.setext=ct.header),ct.thisLine.header=!0,ct.f=ct.inline,ot(ct);if(ii)return xt.skipToEnd(),ct.hr=!0,ct.thisLine.hr=!0,Ve.hr;if(xt.peek()==="[")return ge(xt,ct,Tn)}return ge(xt,ct,ct.inline)}function Ke(xt,ct){var it=Le.token(xt,ct.htmlState);if(!Ye){var cn=le.innerMode(Le,ct.htmlState);(cn.mode.name=="xml"&&cn.state.tagStart===null&&!cn.state.context&&cn.state.tokenize.isInText||ct.md_inside&&xt.current().indexOf(">")>-1)&&(ct.f=bt,ct.block=Be,ct.htmlState=null)}return it}function rt(xt,ct){var it=ct.listStack[ct.listStack.length-1]||0,cn=ct.indentation<it,An=it+3;if(ct.fencedEndRE&&ct.indentation<=An&&(cn||xt.match(ct.fencedEndRE))){De.highlightFormatting&&(ct.formatting="code-block");var Pt;return cn||(Pt=ot(ct)),ct.localMode=ct.localState=null,ct.block=Be,ct.f=bt,ct.fencedEndRE=null,ct.code=0,ct.thisLine.fencedCodeEnd=!0,cn?Se(xt,ct,ct.block):Pt}else return ct.localMode?ct.localMode.token(xt,ct.localState):(xt.skipToEnd(),Ve.code)}function ot(xt){var ct=[];if(xt.formatting){ct.push(Ve.formatting),typeof xt.formatting=="string"&&(xt.formatting=[xt.formatting]);for(var it=0;it<xt.formatting.length;it++)ct.push(Ve.formatting+"-"+xt.formatting[it]),xt.formatting[it]==="header"&&ct.push(Ve.formatting+"-"+xt.formatting[it]+"-"+xt.header),xt.formatting[it]==="quote"&&(!De.maxBlockquoteDepth||De.maxBlockquoteDepth>=xt.quote?ct.push(Ve.formatting+"-"+xt.formatting[it]+"-"+xt.quote):ct.push("error"))}if(xt.taskOpen)return ct.push("meta"),ct.length?ct.join(" "):null;if(xt.taskClosed)return ct.push("property"),ct.length?ct.join(" "):null;if(xt.linkHref?ct.push(Ve.linkHref,"url"):(xt.strong&&ct.push(Ve.strong),xt.em&&ct.push(Ve.em),xt.strikethrough&&ct.push(Ve.strikethrough),xt.emoji&&ct.push(Ve.emoji),xt.linkText&&ct.push(Ve.linkText),xt.code&&ct.push(Ve.code),xt.image&&ct.push(Ve.image),xt.imageAltText&&ct.push(Ve.imageAltText,"link"),xt.imageMarker&&ct.push(Ve.imageMarker)),xt.header&&ct.push(Ve.header,Ve.header+"-"+xt.header),xt.quote&&(ct.push(Ve.quote),!De.maxBlockquoteDepth||De.maxBlockquoteDepth>=xt.quote?ct.push(Ve.quote+"-"+xt.quote):ct.push(Ve.quote+"-"+De.maxBlockquoteDepth)),xt.list!==!1){var cn=(xt.listStack.length-1)%3;cn?cn===1?ct.push(Ve.list2):ct.push(Ve.list3):ct.push(Ve.list1)}return xt.trailingSpaceNewLine?ct.push("trailing-space-new-line"):xt.trailingSpace&&ct.push("trailing-space-"+(xt.trailingSpace%2?"a":"b")),ct.length?ct.join(" "):null}function ht(xt,ct){if(xt.match(_e,!0))return ot(ct)}function bt(xt,ct){var it=ct.text(xt,ct);if(typeof it!="undefined")return it;if(ct.list)return ct.list=null,ot(ct);if(ct.taskList){var cn=xt.match(mt,!0)[1]===" ";return cn?ct.taskOpen=!0:ct.taskClosed=!0,De.highlightFormatting&&(ct.formatting="task"),ct.taskList=!1,ot(ct)}if(ct.taskOpen=!1,ct.taskClosed=!1,ct.header&&xt.match(/^#+$/,!0))return De.highlightFormatting&&(ct.formatting="header"),ot(ct);var An=xt.next();if(ct.linkTitle){ct.linkTitle=!1;var Pt=An;An==="("&&(Pt=")"),Pt=(Pt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var an="^\\s*(?:[^"+Pt+"\\\\]+|\\\\\\\\|\\\\.)"+Pt;if(xt.match(new RegExp(an),!0))return Ve.linkHref}if(An==="`"){var ln=ct.formatting;De.highlightFormatting&&(ct.formatting="code"),xt.eatWhile("`");var zn=xt.current().length;if(ct.code==0&&(!ct.quote||zn==1))return ct.code=zn,ot(ct);if(zn==ct.code){var En=ot(ct);return ct.code=0,En}else return ct.formatting=ln,ot(ct)}else if(ct.code)return ot(ct);if(An==="\\"&&(xt.next(),De.highlightFormatting)){var ii=ot(ct),kt=Ve.formatting+"-escape";return ii?ii+" "+kt:kt}if(An==="!"&&xt.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ct.imageMarker=!0,ct.image=!0,De.highlightFormatting&&(ct.formatting="image"),ot(ct);if(An==="["&&ct.imageMarker&&xt.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ct.imageMarker=!1,ct.imageAltText=!0,De.highlightFormatting&&(ct.formatting="image"),ot(ct);if(An==="]"&&ct.imageAltText){De.highlightFormatting&&(ct.formatting="image");var ii=ot(ct);return ct.imageAltText=!1,ct.image=!1,ct.inline=ct.f=At,ii}if(An==="["&&!ct.image)return ct.linkText&&xt.match(/^.*?\]/)||(ct.linkText=!0,De.highlightFormatting&&(ct.formatting="link")),ot(ct);if(An==="]"&&ct.linkText){De.highlightFormatting&&(ct.formatting="link");var ii=ot(ct);return ct.linkText=!1,ct.inline=ct.f=xt.match(/\(.*?\)| ?\[.*?\]/,!1)?At:bt,ii}if(An==="<"&&xt.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ct.f=ct.inline=at,De.highlightFormatting&&(ct.formatting="link");var ii=ot(ct);return ii?ii+=" ":ii="",ii+Ve.linkInline}if(An==="<"&&xt.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ct.f=ct.inline=at,De.highlightFormatting&&(ct.formatting="link");var ii=ot(ct);return ii?ii+=" ":ii="",ii+Ve.linkEmail}if(De.xml&&An==="<"&&xt.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Kn=xt.string.indexOf(">",xt.pos);if(Kn!=-1){var yi=xt.string.substring(xt.start,Kn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(yi)&&(ct.md_inside=!0)}return xt.backUp(1),ct.htmlState=le.startState(Le),Se(xt,ct,Ke)}if(De.xml&&An==="<"&&xt.match(/^\/\w*?>/))return ct.md_inside=!1,"tag";if(An==="*"||An==="_"){for(var et=1,ze=xt.pos==1?" ":xt.string.charAt(xt.pos-2);et<3&&xt.eat(An);)et++;var xe=xt.peek()||" ",Te=!/\s/.test(xe)&&(!he.test(xe)||/\s/.test(ze)||he.test(ze)),Me=!/\s/.test(ze)&&(!he.test(ze)||/\s/.test(xe)||he.test(xe)),Ce=null,ut=null;if(et%2&&(!ct.em&&Te&&(An==="*"||!Me||he.test(ze))?Ce=!0:ct.em==An&&Me&&(An==="*"||!Te||he.test(xe))&&(Ce=!1)),et>1&&(!ct.strong&&Te&&(An==="*"||!Me||he.test(ze))?ut=!0:ct.strong==An&&Me&&(An==="*"||!Te||he.test(xe))&&(ut=!1)),ut!=null||Ce!=null){De.highlightFormatting&&(ct.formatting=Ce==null?"strong":ut==null?"em":"strong em"),Ce===!0&&(ct.em=An),ut===!0&&(ct.strong=An);var En=ot(ct);return Ce===!1&&(ct.em=!1),ut===!1&&(ct.strong=!1),En}}else if(An===" "&&(xt.eat("*")||xt.eat("_"))){if(xt.peek()===" ")return ot(ct);xt.backUp(1)}if(De.strikethrough){if(An==="~"&&xt.eatWhile(An)){if(ct.strikethrough){De.highlightFormatting&&(ct.formatting="strikethrough");var En=ot(ct);return ct.strikethrough=!1,En}else if(xt.match(/^[^\s]/,!1))return ct.strikethrough=!0,De.highlightFormatting&&(ct.formatting="strikethrough"),ot(ct)}else if(An===" "&&xt.match(/^~~/,!0)){if(xt.peek()===" ")return ot(ct);xt.backUp(2)}}if(De.emoji&&An===":"&&xt.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ct.emoji=!0,De.highlightFormatting&&(ct.formatting="emoji");var Lt=ot(ct);return ct.emoji=!1,Lt}return An===" "&&(xt.match(/^ +$/,!1)?ct.trailingSpace++:ct.trailingSpace&&(ct.trailingSpaceNewLine=!0)),ot(ct)}function at(xt,ct){var it=xt.next();if(it===">"){ct.f=ct.inline=bt,De.highlightFormatting&&(ct.formatting="link");var cn=ot(ct);return cn?cn+=" ":cn="",cn+Ve.linkInline}return xt.match(/^[^>]+/,!0),Ve.linkInline}function At(xt,ct){if(xt.eatSpace())return null;var it=xt.next();return it==="("||it==="["?(ct.f=ct.inline=$t(it==="("?")":"]"),De.highlightFormatting&&(ct.formatting="link-string"),ct.linkHref=!0,ot(ct)):"error"}var It={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function $t(xt){return function(ct,it){var cn=ct.next();if(cn===xt){it.f=it.inline=bt,De.highlightFormatting&&(it.formatting="link-string");var An=ot(it);return it.linkHref=!1,An}return ct.match(It[xt]),it.linkHref=!0,ot(it)}}function Tn(xt,ct){return xt.match(/^([^\]\\]|\\.)*\]:/,!1)?(ct.f=yn,xt.next(),De.highlightFormatting&&(ct.formatting="link"),ct.linkText=!0,ot(ct)):ge(xt,ct,bt)}function yn(xt,ct){if(xt.match(/^\]:/,!0)){ct.f=ct.inline=un,De.highlightFormatting&&(ct.formatting="link");var it=ot(ct);return ct.linkText=!1,it}return xt.match(/^([^\]\\]|\\.)+/,!0),Ve.linkText}function un(xt,ct){return xt.eatSpace()?null:(xt.match(/^[^\s]+/,!0),xt.peek()===void 0?ct.linkTitle=!0:xt.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ct.f=ct.inline=bt,Ve.linkHref+" url")}var On={startState:function(){return{f:Be,prevLine:{stream:null},thisLine:{stream:null},block:Be,htmlState:null,indentation:0,inline:bt,text:ht,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(xt){return{f:xt.f,prevLine:xt.prevLine,thisLine:xt.thisLine,block:xt.block,htmlState:xt.htmlState&&le.copyState(Le,xt.htmlState),indentation:xt.indentation,localMode:xt.localMode,localState:xt.localMode?le.copyState(xt.localMode,xt.localState):null,inline:xt.inline,text:xt.text,formatting:!1,linkText:xt.linkText,linkTitle:xt.linkTitle,linkHref:xt.linkHref,code:xt.code,em:xt.em,strong:xt.strong,strikethrough:xt.strikethrough,emoji:xt.emoji,header:xt.header,setext:xt.setext,hr:xt.hr,taskList:xt.taskList,list:xt.list,listStack:xt.listStack.slice(0),quote:xt.quote,indentedCode:xt.indentedCode,trailingSpace:xt.trailingSpace,trailingSpaceNewLine:xt.trailingSpaceNewLine,md_inside:xt.md_inside,fencedEndRE:xt.fencedEndRE}},token:function(xt,ct){if(ct.formatting=!1,xt!=ct.thisLine.stream){if(ct.header=0,ct.hr=!1,xt.match(/^\s*$/,!0))return Oe(ct),null;if(ct.prevLine=ct.thisLine,ct.thisLine={stream:xt},ct.taskList=!1,ct.trailingSpace=0,ct.trailingSpaceNewLine=!1,!ct.localState&&(ct.f=ct.block,ct.f!=Ke)){var it=xt.match(/^\s*/,!0)[0].replace(/\t/g,se).length;if(ct.indentation=it,ct.indentationDiff=null,it>0)return null}}return ct.f(xt,ct)},innerMode:function(xt){return xt.block==Ke?{state:xt.htmlState,mode:Le}:xt.localState?{state:xt.localState,mode:xt.localMode}:{state:xt,mode:On}},indent:function(xt,ct,it){return xt.block==Ke&&Le.indent?Le.indent(xt.htmlState,ct,it):xt.localState&&xt.localMode.indent?xt.localMode.indent(xt.localState,ct,it):le.Pass},blankLine:Oe,getType:ot,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return On},"xml"),le.defineMIME("text/markdown","markdown"),le.defineMIME("text/x-markdown","markdown")})},98101:function(Ge,be,de){(function(le){le(de(89780))})(function(le){"use strict";le.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 Ie=0;Ie<le.modeInfo.length;Ie++){var De=le.modeInfo[Ie];De.mimes&&(De.mime=De.mimes[0])}le.findModeByMIME=function(Le){Le=Le.toLowerCase();for(var Ye=0;Ye<le.modeInfo.length;Ye++){var Re=le.modeInfo[Ye];if(Re.mime==Le)return Re;if(Re.mimes){for(var Ve=0;Ve<Re.mimes.length;Ve++)if(Re.mimes[Ve]==Le)return Re}}if(/\+xml$/.test(Le))return le.findModeByMIME("application/xml");if(/\+json$/.test(Le))return le.findModeByMIME("application/json")},le.findModeByExtension=function(Le){Le=Le.toLowerCase();for(var Ye=0;Ye<le.modeInfo.length;Ye++){var Re=le.modeInfo[Ye];if(Re.ext){for(var Ve=0;Ve<Re.ext.length;Ve++)if(Re.ext[Ve]==Le)return Re}}},le.findModeByFileName=function(Le){for(var Ye=0;Ye<le.modeInfo.length;Ye++){var Re=le.modeInfo[Ye];if(Re.file&&Re.file.test(Le))return Re}var Ve=Le.lastIndexOf("."),Je=Ve>-1&&Le.substring(Ve+1,Le.length);if(Je)return le.findModeByExtension(Je)},le.findModeByName=function(Le){Le=Le.toLowerCase();for(var Ye=0;Ye<le.modeInfo.length;Ye++){var Re=le.modeInfo[Ye];if(Re.name.toLowerCase()==Le)return Re;if(Re.alias){for(var Ve=0;Ve<Re.alias.length;Ve++)if(Re.alias[Ve].toLowerCase()==Le)return Re}}}})},67549:function(Ge,be,de){(function(le){le(de(89780))})(function(le){"use strict";le.defineMode("stex",function(Ie,De){"use strict";function Le(_e,te){_e.cmdState.push(te)}function Ye(_e){return _e.cmdState.length>0?_e.cmdState[_e.cmdState.length-1]:null}function Re(_e){var te=_e.cmdState.pop();te&&te.closeBracket()}function Ve(_e){for(var te=_e.cmdState,ne=te.length-1;ne>=0;ne--){var he=te[ne];if(he.name!="DEFAULT")return he}return{styleIdentifier:function(){return null}}}function Je(_e,te,ne){return function(){this.name=_e,this.bracketNo=0,this.style=te,this.styles=ne,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Xe={};Xe.importmodule=Je("importmodule","tag",["string","builtin"]),Xe.documentclass=Je("documentclass","tag",["","atom"]),Xe.usepackage=Je("usepackage","tag",["atom"]),Xe.begin=Je("begin","tag",["atom"]),Xe.end=Je("end","tag",["atom"]),Xe.label=Je("label","tag",["atom"]),Xe.ref=Je("ref","tag",["atom"]),Xe.eqref=Je("eqref","tag",["atom"]),Xe.cite=Je("cite","tag",["atom"]),Xe.bibitem=Je("bibitem","tag",["atom"]),Xe.Bibitem=Je("Bibitem","tag",["atom"]),Xe.RBibitem=Je("RBibitem","tag",["atom"]),Xe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function qe(_e,te){_e.f=te}function mt(_e,te){var ne;if(_e.match(/^\\[a-zA-Z@]+/)){var he=_e.current().slice(1);return ne=Xe.hasOwnProperty(he)?Xe[he]:Xe.DEFAULT,ne=new ne,Le(te,ne),qe(te,Nt),ne.style}if(_e.match(/^\\[$&%#{}_]/)||_e.match(/^\\[,;!\/\\]/))return"tag";if(_e.match("\\["))return qe(te,function(ge,Se){return st(ge,Se,"\\]")}),"keyword";if(_e.match("\\("))return qe(te,function(ge,Se){return st(ge,Se,"\\)")}),"keyword";if(_e.match("$$"))return qe(te,function(ge,Se){return st(ge,Se,"$$")}),"keyword";if(_e.match("$"))return qe(te,function(ge,Se){return st(ge,Se,"$")}),"keyword";var se=_e.next();if(se=="%")return _e.skipToEnd(),"comment";if(se=="}"||se=="]"){if(ne=Ye(te),ne)ne.closeBracket(se),qe(te,Nt);else return"error";return"bracket"}else return se=="{"||se=="["?(ne=Xe.DEFAULT,ne=new ne,Le(te,ne),"bracket"):/\d/.test(se)?(_e.eatWhile(/[\w.%]/),"atom"):(_e.eatWhile(/[\w\-_]/),ne=Ve(te),ne.name=="begin"&&(ne.argument=_e.current()),ne.styleIdentifier())}function st(_e,te,ne){if(_e.eatSpace())return null;if(ne&&_e.match(ne))return qe(te,mt),"keyword";if(_e.match(/^\\[a-zA-Z@]+/))return"tag";if(_e.match(/^[a-zA-Z]+/))return"variable-2";if(_e.match(/^\\[$&%#{}_]/)||_e.match(/^\\[,;!\/]/)||_e.match(/^[\^_&]/))return"tag";if(_e.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(_e.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var he=_e.next();return he=="{"||he=="}"||he=="["||he=="]"||he=="("||he==")"?"bracket":he=="%"?(_e.skipToEnd(),"comment"):"error"}function Nt(_e,te){var ne=_e.peek(),he;return ne=="{"||ne=="["?(he=Ye(te),he.openBracket(ne),_e.eat(ne),qe(te,mt),"bracket"):/[ \t\r]/.test(ne)?(_e.eat(ne),null):(qe(te,mt),Re(te),mt(_e,te))}return{startState:function(){var _e=De.inMathMode?function(te,ne){return st(te,ne)}:mt;return{cmdState:[],f:_e}},copyState:function(_e){return{cmdState:_e.cmdState.slice(),f:_e.f}},token:function(_e,te){return te.f(_e,te)},blankLine:function(_e){_e.f=mt,_e.cmdState.length=0},lineComment:"%"}}),le.defineMIME("text/x-stex","stex"),le.defineMIME("text/x-latex","stex")})},15525:function(Ge,be,de){(function(le){le(de(89780))})(function(le){"use strict";var Ie={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},De={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};le.defineMode("xml",function(Le,Ye){var Re=Le.indentUnit,Ve={},Je=Ye.htmlMode?Ie:De;for(var Xe in Je)Ve[Xe]=Je[Xe];for(var Xe in Ye)Ve[Xe]=Ye[Xe];var qe,mt;function st(at,At){function It(yn){return At.tokenize=yn,yn(at,At)}var $t=at.next();if($t=="<")return at.eat("!")?at.eat("[")?at.match("CDATA[")?It(te("atom","]]>")):null:at.match("--")?It(te("comment","-->")):at.match("DOCTYPE",!0,!0)?(at.eatWhile(/[\w\._\-]/),It(ne(1))):null:at.eat("?")?(at.eatWhile(/[\w\._\-]/),At.tokenize=te("meta","?>"),"meta"):(qe=at.eat("/")?"closeTag":"openTag",At.tokenize=Nt,"tag bracket");if($t=="&"){var Tn;return at.eat("#")?at.eat("x")?Tn=at.eatWhile(/[a-fA-F\d]/)&&at.eat(";"):Tn=at.eatWhile(/[\d]/)&&at.eat(";"):Tn=at.eatWhile(/[\w\.\-:]/)&&at.eat(";"),Tn?"atom":"error"}else return at.eatWhile(/[^&<]/),null}st.isInText=!0;function Nt(at,At){var It=at.next();if(It==">"||It=="/"&&at.eat(">"))return At.tokenize=st,qe=It==">"?"endTag":"selfcloseTag","tag bracket";if(It=="=")return qe="equals",null;if(It=="<"){At.tokenize=st,At.state=Se,At.tagName=At.tagStart=null;var $t=At.tokenize(at,At);return $t?$t+" tag error":"tag error"}else return/[\'\"]/.test(It)?(At.tokenize=_e(It),At.stringStartCol=at.column(),At.tokenize(at,At)):(at.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function _e(at){var At=function(It,$t){for(;!It.eol();)if(It.next()==at){$t.tokenize=Nt;break}return"string"};return At.isInAttribute=!0,At}function te(at,At){return function(It,$t){for(;!It.eol();){if(It.match(At)){$t.tokenize=st;break}It.next()}return at}}function ne(at){return function(At,It){for(var $t;($t=At.next())!=null;){if($t=="<")return It.tokenize=ne(at+1),It.tokenize(At,It);if($t==">")if(at==1){It.tokenize=st;break}else return It.tokenize=ne(at-1),It.tokenize(At,It)}return"meta"}}function he(at,At,It){this.prev=at.context,this.tagName=At,this.indent=at.indented,this.startOfLine=It,(Ve.doNotIndent.hasOwnProperty(At)||at.context&&at.context.noIndent)&&(this.noIndent=!0)}function se(at){at.context&&(at.context=at.context.prev)}function ge(at,At){for(var It;;){if(!at.context||(It=at.context.tagName,!Ve.contextGrabbers.hasOwnProperty(It)||!Ve.contextGrabbers[It].hasOwnProperty(At)))return;se(at)}}function Se(at,At,It){return at=="openTag"?(It.tagStart=At.column(),Ae):at=="closeTag"?Oe:Se}function Ae(at,At,It){return at=="word"?(It.tagName=At.current(),mt="tag",rt):Ve.allowMissingTagName&&at=="endTag"?(mt="tag bracket",rt(at,At,It)):(mt="error",Ae)}function Oe(at,At,It){if(at=="word"){var $t=At.current();return It.context&&It.context.tagName!=$t&&Ve.implicitlyClosed.hasOwnProperty(It.context.tagName)&&se(It),It.context&&It.context.tagName==$t||Ve.matchClosing===!1?(mt="tag",Be):(mt="tag error",Ke)}else return Ve.allowMissingTagName&&at=="endTag"?(mt="tag bracket",Be(at,At,It)):(mt="error",Ke)}function Be(at,At,It){return at!="endTag"?(mt="error",Be):(se(It),Se)}function Ke(at,At,It){return mt="error",Be(at,At,It)}function rt(at,At,It){if(at=="word")return mt="attribute",ot;if(at=="endTag"||at=="selfcloseTag"){var $t=It.tagName,Tn=It.tagStart;return It.tagName=It.tagStart=null,at=="selfcloseTag"||Ve.autoSelfClosers.hasOwnProperty($t)?ge(It,$t):(ge(It,$t),It.context=new he(It,$t,Tn==It.indented)),Se}return mt="error",rt}function ot(at,At,It){return at=="equals"?ht:(Ve.allowMissing||(mt="error"),rt(at,At,It))}function ht(at,At,It){return at=="string"?bt:at=="word"&&Ve.allowUnquoted?(mt="string",rt):(mt="error",rt(at,At,It))}function bt(at,At,It){return at=="string"?bt:rt(at,At,It)}return{startState:function(at){var At={tokenize:st,state:Se,indented:at||0,tagName:null,tagStart:null,context:null};return at!=null&&(At.baseIndent=at),At},token:function(at,At){if(!At.tagName&&at.sol()&&(At.indented=at.indentation()),at.eatSpace())return null;qe=null;var It=At.tokenize(at,At);return(It||qe)&&It!="comment"&&(mt=null,At.state=At.state(qe||It,at,At),mt&&(It=mt=="error"?It+" error":mt)),It},indent:function(at,At,It){var $t=at.context;if(at.tokenize.isInAttribute)return at.tagStart==at.indented?at.stringStartCol+1:at.indented+Re;if($t&&$t.noIndent)return le.Pass;if(at.tokenize!=Nt&&at.tokenize!=st)return It?It.match(/^(\s*)/)[0].length:0;if(at.tagName)return Ve.multilineTagIndentPastTag!==!1?at.tagStart+at.tagName.length+2:at.tagStart+Re*(Ve.multilineTagIndentFactor||1);if(Ve.alignCDATA&&/<!\[CDATA\[/.test(At))return 0;var Tn=At&&/^<(\/)?([\w_:\.-]*)/.exec(At);if(Tn&&Tn[1])for(;$t;)if($t.tagName==Tn[2]){$t=$t.prev;break}else if(Ve.implicitlyClosed.hasOwnProperty($t.tagName))$t=$t.prev;else break;else if(Tn)for(;$t;){var yn=Ve.contextGrabbers[$t.tagName];if(yn&&yn.hasOwnProperty(Tn[2]))$t=$t.prev;else break}for(;$t&&$t.prev&&!$t.startOfLine;)$t=$t.prev;return $t?$t.indent+Re:at.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ve.htmlMode?"html":"xml",helperType:Ve.htmlMode?"html":"xml",skipAttribute:function(at){at.state==ht&&(at.state=rt)},xmlCurrentTag:function(at){return at.tagName?{name:at.tagName,close:at.type=="closeTag"}:null},xmlCurrentContext:function(at){for(var At=[],It=at.context;It;It=It.prev)It.tagName&&At.push(It.tagName);return At.reverse()}}}),le.defineMIME("text/xml","xml"),le.defineMIME("application/xml","xml"),le.mimeModes.hasOwnProperty("text/html")||le.defineMIME("text/html",{name:"xml",htmlMode:!0})})},58951:function(Ge,be){"use strict";var de;be.Q=Le,de=Ye;var le=",",Ie=" ",De="";function Le(Re){for(var Ve=[],Je=String(Re||De),Xe=Je.indexOf(le),qe=0,mt=!1,st;!mt;)Xe===-1&&(Xe=Je.length,mt=!0),st=Je.slice(qe,Xe).trim(),(st||!mt)&&Ve.push(st),qe=Xe+1,Xe=Je.indexOf(le,qe);return Ve}function Ye(Re,Ve){var Je=Ve||{},Xe=Je.padLeft===!1?De:Ie,qe=Je.padRight?Ie:De;return Re[Re.length-1]===De&&(Re=Re.concat(De)),Re.join(qe+le+Xe).trim()}},86204:function(Ge){"use strict";var be=typeof Reflect=="object"?Reflect:null,de=be&&typeof be.apply=="function"?be.apply:function(Se,Ae,Oe){return Function.prototype.apply.call(Se,Ae,Oe)},le;be&&typeof be.ownKeys=="function"?le=be.ownKeys:Object.getOwnPropertySymbols?le=function(Se){return Object.getOwnPropertyNames(Se).concat(Object.getOwnPropertySymbols(Se))}:le=function(Se){return Object.getOwnPropertyNames(Se)};function Ie(ge){console&&console.warn&&console.warn(ge)}var De=Number.isNaN||function(Se){return Se!==Se};function Le(){Le.init.call(this)}Ge.exports=Le,Ge.exports.once=ne,Le.EventEmitter=Le,Le.prototype._events=void 0,Le.prototype._eventsCount=0,Le.prototype._maxListeners=void 0;var Ye=10;function Re(ge){if(typeof ge!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ge)}Object.defineProperty(Le,"defaultMaxListeners",{enumerable:!0,get:function(){return Ye},set:function(ge){if(typeof ge!="number"||ge<0||De(ge))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+ge+".");Ye=ge}}),Le.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Le.prototype.setMaxListeners=function(Se){if(typeof Se!="number"||Se<0||De(Se))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Se+".");return this._maxListeners=Se,this};function Ve(ge){return ge._maxListeners===void 0?Le.defaultMaxListeners:ge._maxListeners}Le.prototype.getMaxListeners=function(){return Ve(this)},Le.prototype.emit=function(Se){for(var Ae=[],Oe=1;Oe<arguments.length;Oe++)Ae.push(arguments[Oe]);var Be=Se==="error",Ke=this._events;if(Ke!==void 0)Be=Be&&Ke.error===void 0;else if(!Be)return!1;if(Be){var rt;if(Ae.length>0&&(rt=Ae[0]),rt instanceof Error)throw rt;var ot=new Error("Unhandled error."+(rt?" ("+rt.message+")":""));throw ot.context=rt,ot}var ht=Ke[Se];if(ht===void 0)return!1;if(typeof ht=="function")de(ht,this,Ae);else for(var bt=ht.length,at=Nt(ht,bt),Oe=0;Oe<bt;++Oe)de(at[Oe],this,Ae);return!0};function Je(ge,Se,Ae,Oe){var Be,Ke,rt;if(Re(Ae),Ke=ge._events,Ke===void 0?(Ke=ge._events=Object.create(null),ge._eventsCount=0):(Ke.newListener!==void 0&&(ge.emit("newListener",Se,Ae.listener?Ae.listener:Ae),Ke=ge._events),rt=Ke[Se]),rt===void 0)rt=Ke[Se]=Ae,++ge._eventsCount;else if(typeof rt=="function"?rt=Ke[Se]=Oe?[Ae,rt]:[rt,Ae]:Oe?rt.unshift(Ae):rt.push(Ae),Be=Ve(ge),Be>0&&rt.length>Be&&!rt.warned){rt.warned=!0;var ot=new Error("Possible EventEmitter memory leak detected. "+rt.length+" "+String(Se)+" listeners added. Use emitter.setMaxListeners() to increase limit");ot.name="MaxListenersExceededWarning",ot.emitter=ge,ot.type=Se,ot.count=rt.length,Ie(ot)}return ge}Le.prototype.addListener=function(Se,Ae){return Je(this,Se,Ae,!1)},Le.prototype.on=Le.prototype.addListener,Le.prototype.prependListener=function(Se,Ae){return Je(this,Se,Ae,!0)};function Xe(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function qe(ge,Se,Ae){var Oe={fired:!1,wrapFn:void 0,target:ge,type:Se,listener:Ae},Be=Xe.bind(Oe);return Be.listener=Ae,Oe.wrapFn=Be,Be}Le.prototype.once=function(Se,Ae){return Re(Ae),this.on(Se,qe(this,Se,Ae)),this},Le.prototype.prependOnceListener=function(Se,Ae){return Re(Ae),this.prependListener(Se,qe(this,Se,Ae)),this},Le.prototype.removeListener=function(Se,Ae){var Oe,Be,Ke,rt,ot;if(Re(Ae),Be=this._events,Be===void 0)return this;if(Oe=Be[Se],Oe===void 0)return this;if(Oe===Ae||Oe.listener===Ae)--this._eventsCount===0?this._events=Object.create(null):(delete Be[Se],Be.removeListener&&this.emit("removeListener",Se,Oe.listener||Ae));else if(typeof Oe!="function"){for(Ke=-1,rt=Oe.length-1;rt>=0;rt--)if(Oe[rt]===Ae||Oe[rt].listener===Ae){ot=Oe[rt].listener,Ke=rt;break}if(Ke<0)return this;Ke===0?Oe.shift():_e(Oe,Ke),Oe.length===1&&(Be[Se]=Oe[0]),Be.removeListener!==void 0&&this.emit("removeListener",Se,ot||Ae)}return this},Le.prototype.off=Le.prototype.removeListener,Le.prototype.removeAllListeners=function(Se){var Ae,Oe,Be;if(Oe=this._events,Oe===void 0)return this;if(Oe.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Oe[Se]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Oe[Se]),this;if(arguments.length===0){var Ke=Object.keys(Oe),rt;for(Be=0;Be<Ke.length;++Be)rt=Ke[Be],rt!=="removeListener"&&this.removeAllListeners(rt);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Ae=Oe[Se],typeof Ae=="function")this.removeListener(Se,Ae);else if(Ae!==void 0)for(Be=Ae.length-1;Be>=0;Be--)this.removeListener(Se,Ae[Be]);return this};function mt(ge,Se,Ae){var Oe=ge._events;if(Oe===void 0)return[];var Be=Oe[Se];return Be===void 0?[]:typeof Be=="function"?Ae?[Be.listener||Be]:[Be]:Ae?te(Be):Nt(Be,Be.length)}Le.prototype.listeners=function(Se){return mt(this,Se,!0)},Le.prototype.rawListeners=function(Se){return mt(this,Se,!1)},Le.listenerCount=function(ge,Se){return typeof ge.listenerCount=="function"?ge.listenerCount(Se):st.call(ge,Se)},Le.prototype.listenerCount=st;function st(ge){var Se=this._events;if(Se!==void 0){var Ae=Se[ge];if(typeof Ae=="function")return 1;if(Ae!==void 0)return Ae.length}return 0}Le.prototype.eventNames=function(){return this._eventsCount>0?le(this._events):[]};function Nt(ge,Se){for(var Ae=new Array(Se),Oe=0;Oe<Se;++Oe)Ae[Oe]=ge[Oe];return Ae}function _e(ge,Se){for(;Se+1<ge.length;Se++)ge[Se]=ge[Se+1];ge.pop()}function te(ge){for(var Se=new Array(ge.length),Ae=0;Ae<Se.length;++Ae)Se[Ae]=ge[Ae].listener||ge[Ae];return Se}function ne(ge,Se){return new Promise(function(Ae,Oe){function Be(rt){ge.removeListener(Se,Ke),Oe(rt)}function Ke(){typeof ge.removeListener=="function"&&ge.removeListener("error",Be),Ae([].slice.call(arguments))}se(ge,Se,Ke,{once:!0}),Se!=="error"&&he(ge,Be,{once:!0})})}function he(ge,Se,Ae){typeof ge.on=="function"&&se(ge,"error",Se,Ae)}function se(ge,Se,Ae,Oe){if(typeof ge.on=="function")Oe.once?ge.once(Se,Ae):ge.on(Se,Ae);else if(typeof ge.addEventListener=="function")ge.addEventListener(Se,function Be(Ke){Oe.once&&ge.removeEventListener(Se,Be),Ae(Ke)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof ge)}},58847:function(Ge){"use strict";var be=Object.prototype.hasOwnProperty,de=Object.prototype.toString,le=Object.defineProperty,Ie=Object.getOwnPropertyDescriptor,De=function(Je){return typeof Array.isArray=="function"?Array.isArray(Je):de.call(Je)==="[object Array]"},Le=function(Je){if(!Je||de.call(Je)!=="[object Object]")return!1;var Xe=be.call(Je,"constructor"),qe=Je.constructor&&Je.constructor.prototype&&be.call(Je.constructor.prototype,"isPrototypeOf");if(Je.constructor&&!Xe&&!qe)return!1;var mt;for(mt in Je);return typeof mt=="undefined"||be.call(Je,mt)},Ye=function(Je,Xe){le&&Xe.name==="__proto__"?le(Je,Xe.name,{enumerable:!0,configurable:!0,value:Xe.newValue,writable:!0}):Je[Xe.name]=Xe.newValue},Re=function(Je,Xe){if(Xe==="__proto__")if(be.call(Je,Xe)){if(Ie)return Ie(Je,Xe).value}else return;return Je[Xe]};Ge.exports=function Ve(){var Je,Xe,qe,mt,st,Nt,_e=arguments[0],te=1,ne=arguments.length,he=!1;for(typeof _e=="boolean"&&(he=_e,_e=arguments[1]||{},te=2),(_e==null||typeof _e!="object"&&typeof _e!="function")&&(_e={});te<ne;++te)if(Je=arguments[te],Je!=null)for(Xe in Je)qe=Re(_e,Xe),mt=Re(Je,Xe),_e!==mt&&(he&&mt&&(Le(mt)||(st=De(mt)))?(st?(st=!1,Nt=qe&&De(qe)?qe:[]):Nt=qe&&Le(qe)?qe:{},Ye(_e,{name:Xe,newValue:Ve(he,Nt,mt)})):typeof mt!="undefined"&&Ye(_e,{name:Xe,newValue:mt}));return _e}},12378:function(Ge,be,de){"use strict";de.d(be,{$u:function(){return Xe},BD:function(){return et},E9:function(){return Je},FF:function(){return rr},FJ:function(){return Se},Hn:function(){return ge},KX:function(){return Oe},NB:function(){return Vt},S0:function(){return kt},UL:function(){return qe},Vk:function(){return se},Vm:function(){return gn},YI:function(){return Kn},ZA:function(){return De},Zt:function(){return mt},al:function(){return Ce},bn:function(){return Me},bx:function(){return ze},g2:function(){return yi},h1:function(){return ht},hD:function(){return yt},l4:function(){return Re},rU:function(){return Gt},s_:function(){return xe},uz:function(){return Yt},z6:function(){return st}}),Ge=de.hmd(Ge),function(){var ke;function mi(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function ki(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:mi(a)}}function Yn(a){for(var y,E=[];!(y=a.next()).done;)E.push(y.value);return E}var fi=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},Ai;if(typeof Object.setPrototypeOf=="function")Ai=Object.setPrototypeOf;else{var xi;e:{var hr={a:!0},er={};try{er.__proto__=hr,xi=er.a;break e}catch(a){}xi=!1}Ai=xi?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var Kt=Ai;function en(a,y){if(a.prototype=fi(y.prototype),a.prototype.constructor=a,Kt)Kt(a,y);else for(var E in y)if(E!="prototype")if(Object.defineProperties){var x=Object.getOwnPropertyDescriptor(y,E);x&&Object.defineProperty(a,E,x)}else a[E]=y[E];a.QA=y.prototype}var zt=typeof de.g!="undefined"&&de.g!=null?de.g:self,on=typeof Object.assign=="function"?Object.assign:function(a,y){for(var E=1;E<arguments.length;E++){var x=arguments[E];if(x)for(var b in x)Object.prototype.hasOwnProperty.call(x,b)&&(a[b]=x[b])}return a},rn=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,E){a!=Array.prototype&&a!=Object.prototype&&(a[y]=E.value)};function mn(a,y){if(y){var E=zt;a=a.split(".");for(var x=0;x<a.length-1;x++){var b=a[x];b in E||(E[b]={}),E=E[b]}a=a[a.length-1],x=E[a],y=y(x),y!=x&&y!=null&&rn(E,a,{writable:!0,value:y})}}mn("Object.assign",function(a){return a||on}),mn("Array.prototype.fill",function(a){return a||function(y,E,x){var b=this.length||0;for(0>E&&(E=Math.max(0,b+E)),(x==null||x>b)&&(x=b),x=Number(x),0>x&&(x=Math.max(0,b+x)),E=Number(E||0);E<x;E++)this[E]=y;return this}});var Bn=typeof globalThis=="object"&&globalThis||typeof de.g=="object"&&de.g.global===de.g&&de.g||typeof self=="object"&&self.self===self&&self||{};Bn.requestAnimationFrame===void 0&&(Bn.setImmediate===void 0?Bn.requestAnimationFrame=function(a){Bn.setTimeout(a,0)}:Bn.requestAnimationFrame=Bn.setImmediate);function ei(){}function ji(a,y){var E=-1;return function(){var x=this,b=arguments;E!==-1&&Bn.clearTimeout(E),E=Fi(function(){E=-1,a.apply(x,b)},y)}}function Fi(a,y){return Bn.setTimeout(a,y)}function Yi(a){return Bn.document.createElement(a)}function lt(a){throw Error(a)}function Ut(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 oi(a,y,E,x){E=E===null?"*":typeof E=="string"?E:typeof E=="function"&&typeof E.className=="string"?E.className:"",x!==void 0&&(E+="."+x),lt(E+" is not in the range "+y+": "+a)}function gi(a){Bn.console&&Bn.console.log(a)}function jt(a){return typeof a=="object"&&a!==null}function Vn(a){return Array.isArray(a)||Bn.NodeList&&a instanceof Bn.NodeList||Bn.HTMLCollection&&a instanceof Bn.HTMLCollection}function ni(a){return Array.prototype.slice.call(a)}function Zt(a,y,E){Array.isArray(a)?y>=a.length?a.push(E):a.splice(y,0,E):lt("Cannot insert an object into an HTMLCollection or NodeList: "+E+" at "+y)}function je(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 ci(){var a=Zr.pop();return a===void 0?[]:a}function pi(a){a.length=0,Zr.push(a)}function bn(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(jt(a)&&a.constructor)return bn(a.constructor);return typeof a}function Ki(a){var y=a;return jt(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 Ui(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var E=a.CA;if(E&&E[y])return!0;a=Object.getPrototypeOf(a)}return!1}function Wi(a,y,E){Object.defineProperty(Co.prototype,a,{get:y,set:E})}function vn(a){for(var y=[],E=0;256>E;E++)y["0123456789abcdef".charAt(E>>4)+"0123456789abcdef".charAt(E&15)]=String.fromCharCode(E);a.length%2&&(a="0"+a),E=[];for(var x=0,b=0;b<a.length;b+=2)E[x++]=y[a.substr(b,2)];for(a=E.join(""),a=a===""?"0":a,y=[],E=0;256>E;E++)y[E]=E;for(E=x=0;256>E;E++)x=(x+y[E]+119)%256,b=y[E],y[E]=y[x],y[x]=b;x=E=0;for(var z="",ee=0;ee<a.length;ee++)E=(E+1)%256,x=(x+y[E])%256,b=y[E],y[E]=y[x],y[x]=b,z+=String.fromCharCode(a.charCodeAt(ee)^y[(y[E]+y[x])%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 Wt=Bn.navigator!==void 0&&0<Bn.navigator.userAgent.indexOf("Trident/7"),ar=Bn.navigator!==void 0&&Bn.navigator.platform!==void 0&&Bn.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Zr=[];Object.freeze([]),ei.className="Util",ei.Dx="32ab5ff3b26f42dc0ed90f21472913b5",ei.adym="gojs.net",ei.vfo="28e645fdb266",ei.className="Util";function Mn(a,y,E){Lr(this),this.j=a,this.xa=y,this.o=E}Mn.prototype.toString=function(){return"EnumValue."+this.xa};function hi(a,y){return y==null||y===""?null:a[y]}zt.Object.defineProperties(Mn.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),Mn.className="EnumValue";function Pi(){this.ew=[]}Pi.prototype.toString=function(){return this.ew.join("")},Pi.prototype.add=function(a){a!==""&&this.ew.push(a)},Pi.className="StringBuilder";function Li(){}Li.className="PropertyCollection";var Ri={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Bn.console&&Bn.console.log(a)},HA:function(a,y,E,x){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(E,E),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.lineWidth=2,a.beginPath(),a.moveTo(x.left,x.top+20),a.lineTo(x.left,x.top),a.lineTo(x.left+20,x.top),a.moveTo(x.right,x.bottom-20),a.lineTo(x.right,x.bottom),a.lineTo(x.right-20,x.bottom),a.stroke(),a.fillText("DB: "+Math.round(x.x)+", "+Math.round(x.y)+", "+Math.round(x.width)+", "+Math.round(x.height),x.left,x.top-5)},DA:function(a){var y={},E;for(E in a){if(y.x=E,y.x!=="licenseKey"){var x=a[y.x];if(x.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(x.prototype);for(var b={Tj:0};b.Tj<y.Zl.length;b={Tj:b.Tj},b.Tj++){var z=Object.getOwnPropertyDescriptor(x.prototype,y.Zl[b.Tj]);z.get!==void 0&&z.set===void 0&&Object.defineProperty(x.prototype,y.Zl[b.Tj],{set:function(ee,re){return function(){throw Error("Property "+ee.Zl[re.Tj]+" of "+ee.x+" is read-only.")}}(y,b)})}}}y={Zl:y.Zl,x:y.x}}}};function sr(){}sr.prototype.reset=function(){},sr.prototype.next=function(){return!1},sr.prototype.Ad=function(){return!1},sr.prototype.first=function(){return null},sr.prototype.any=function(){return!1},sr.prototype.all=function(){return!0},sr.prototype.each=function(){return this},sr.prototype.map=function(){return this},sr.prototype.filter=function(){return this},sr.prototype.de=function(){},sr.prototype.toString=function(){return"EmptyIterator"},zt.Object.defineProperties(sr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),sr.prototype.first=sr.prototype.first,sr.prototype.hasNext=sr.prototype.Ad,sr.prototype.next=sr.prototype.next,sr.prototype.reset=sr.prototype.reset;var gr=null;sr.className="EmptyIterator",gr=new sr;function Tr(a){this.key=-1,this.value=a}Tr.prototype.reset=function(){this.key=-1},Tr.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Tr.prototype.Ad=function(){return this.next()},Tr.prototype.first=function(){return this.key=0,this.value},Tr.prototype.any=function(a){return this.key=-1,a(this.value)},Tr.prototype.all=function(a){return this.key=-1,a(this.value)},Tr.prototype.each=function(a){return this.key=-1,a(this.value),this},Tr.prototype.map=function(a){return new Tr(a(this.value))},Tr.prototype.filter=function(a){return a(this.value)?new Tr(this.value):gr},Tr.prototype.de=function(){this.value=null},Tr.prototype.toString=function(){return"SingletonIterator("+this.value+")"},zt.Object.defineProperties(Tr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Tr.prototype.first=Tr.prototype.first,Tr.prototype.hasNext=Tr.prototype.Ad,Tr.prototype.next=Tr.prototype.next,Tr.prototype.reset=Tr.prototype.reset,Tr.className="SingletonIterator";function Ar(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}Ar.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},Ar.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;a=a.s;var y=a.length,E=++this.Za,x=this.qf;if(x!==null)for(;E<y;){var b=a[E];if(x(b))return this.key=this.Za=E,this.value=b,!0;E++}else{if(E<y)return this.key=E,this.value=a[E],!0;this.de()}return!1},Ar.prototype.Ad=function(){return this.next()},Ar.prototype.first=function(){var a=this.Bb;this.qa=a.Ja,this.Za=0,a=a.s;var y=a.length,E=this.qf;if(E!==null){for(var x=0;x<y;){var b=a[x];if(E(b))return this.key=this.Za=x,this.value=b;x++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},Ar.prototype.any=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var E=y.length,x=this.qf,b=0;b<E;b++){var z=y[b];if((x===null||x(z))&&a(z))return!0}return!1},Ar.prototype.all=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var E=y.length,x=this.qf,b=0;b<E;b++){var z=y[b];if((x===null||x(z))&&!a(z))return!1}return!0},Ar.prototype.each=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var E=y.length,x=this.qf,b=0;b<E;b++){var z=y[b];(x===null||x(z))&&a(z)}return this},Ar.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var E=[];y=y.s;for(var x=y.length,b=this.qf,z=0;z<x;z++){var ee=y[z];(b===null||b(ee))&&E.push(a(ee))}return a=new Un,a.s=E,a.xb(),a.iterator},Ar.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var E=[];y=y.s;for(var x=y.length,b=this.qf,z=0;z<x;z++){var ee=y[z];(b===null||b(ee))&&a(ee)&&E.push(ee)}return a=new Un,a.s=E,a.xb(),a.iterator},Ar.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Ar.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},zt.Object.defineProperties(Ar.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,E=this.Bb.s,x=E.length,b=0;b<x;b++)a(E[b])&&y++;return y}return this.Bb.s.length}}}),Ar.prototype.first=Ar.prototype.first,Ar.prototype.hasNext=Ar.prototype.Ad,Ar.prototype.next=Ar.prototype.next,Ar.prototype.reset=Ar.prototype.reset,Ar.className="ListIterator";function Rr(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Rr.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Rr.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)},Rr.prototype.Ad=function(){return this.next()},Rr.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},Rr.prototype.any=function(a){var y=this.Bb;y.Hg=null,y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)if(a(y[E]))return!0;return!1},Rr.prototype.all=function(a){var y=this.Bb;y.Hg=null,y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)if(!a(y[E]))return!1;return!0},Rr.prototype.each=function(a){var y=this.Bb;y.Hg=null,y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)a(y[E]);return this},Rr.prototype.map=function(a){var y=this.Bb;y.Hg=null;var E=[];y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)E.push(a(y[x]));return a=new Un,a.s=E,a.xb(),a.iterator},Rr.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var E=[];y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--){var b=y[x];a(b)&&E.push(b)}return a=new Un,a.s=E,a.xb(),a.iterator},Rr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Rr.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},zt.Object.defineProperties(Rr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),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="ListIteratorBackwards";function Un(a){Lr(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)}ke=Un.prototype,ke.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},ke.freeze=function(){return this._isFrozen=!0,this},ke.ka=function(){return this._isFrozen=!1,this},ke.toString=function(){return"List()#"+Ir(this)},ke.add=function(a){return a===null?this:(this._isFrozen&&Ut(this,a),this.s.push(a),this.xb(),this)},ke.push=function(a){this.add(a)},ke.addAll=function(a){if(a===null)return this;this._isFrozen&&Ut(this);var y=this.s;if(Vn(a))for(var E=a.length,x=0;x<E;x++)y.push(a[x]);else for(a=a.iterator;a.next();)y.push(a.value);return this.xb(),this},ke.clear=function(){this._isFrozen&&Ut(this),this.s.length=0,this.xb()},ke.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},ke.has=function(a){return this.contains(a)},ke.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},ke.M=function(a){var y=this.s;return(0>a||a>=y.length)&&oi(a,"0 <= i < length",Un,"elt:i"),y[a]},ke.get=function(a){return this.M(a)},ke.cd=function(a,y){var E=this.s;(0>a||a>=E.length)&&oi(a,"0 <= i < length",Un,"setElt:i"),this._isFrozen&&Ut(this,a),E[a]=y},ke.set=function(a,y){this.cd(a,y)},ke.first=function(){var a=this.s;return a.length===0?null:a[0]},ke.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},ke.pop=function(){this._isFrozen&&Ut(this);var a=this.s;return 0<a.length?a.pop():null},Un.prototype.any=function(a){for(var y=this.s,E=y.length,x=0;x<E;x++)if(a(y[x]))return!0;return!1},Un.prototype.all=function(a){for(var y=this.s,E=y.length,x=0;x<E;x++)if(!a(y[x]))return!1;return!0},Un.prototype.each=function(a){for(var y=this.s,E=y.length,x=0;x<E;x++)a(y[x]);return this},Un.prototype.map=function(a){for(var y=new Un,E=[],x=this.s,b=x.length,z=0;z<b;z++)E.push(a(x[z]));return y.s=E,y.xb(),y},Un.prototype.filter=function(a){for(var y=new Un,E=[],x=this.s,b=x.length,z=0;z<b;z++){var ee=x[z];a(ee)&&E.push(ee)}return y.s=E,y.xb(),y},ke=Un.prototype,ke.Gb=function(a,y){0>a&&oi(a,">= 0",Un,"insertAt:i"),this._isFrozen&&Ut(this,a);var E=this.s;a>=E.length?E.push(y):E.splice(a,0,y),this.xb()},ke.remove=function(a){if(a===null)return!1;this._isFrozen&&Ut(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)},ke.delete=function(a){return this.remove(a)},ke.mb=function(a){var y=this.s;(0>a||a>=y.length)&&oi(a,"0 <= i < length",Un,"removeAt:i"),this._isFrozen&&Ut(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},ke.removeRange=function(a,y){var E=this.s,x=E.length;if(0>a)a=0;else if(a>=x)return this;if(0>y)return this;if(y>=x&&(y=x-1),a>y)return this;this._isFrozen&&Ut(this);for(var b=a,z=y+1;z<x;)E[b++]=E[z++];return E.length=x-(y-a+1),this.xb(),this},Un.prototype.copy=function(){var a=new Un,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},ke=Un.prototype,ke.Fa=function(){for(var a=this.s,y=this.count,E=Array(y),x=0;x<y;x++)E[x]=a[x];return E},ke.Iv=function(){for(var a=new Dn,y=this.s,E=this.count,x=0;x<E;x++)a.add(y[x]);return a},ke.sort=function(a){return this._isFrozen&&Ut(this),this.s.sort(a),this.xb(),this},ke.zi=function(a,y,E){var x=this.s,b=x.length;y===void 0&&(y=0),E===void 0&&(E=b),this._isFrozen&&Ut(this);var z=E-y;if(1>=z)return this;if((0>y||y>=b-1)&&oi(y,"0 <= from < length",Un,"sortRange:from"),z===2)return E=x[y],b=x[y+1],0<a(E,b)&&(x[y]=b,x[y+1]=E,this.xb()),this;if(y===0)if(E>=b)x.sort(a);else for(y=x.slice(0,E),y.sort(a),a=0;a<E;a++)x[a]=y[a];else if(E>=b)for(E=x.slice(y),E.sort(a),a=y;a<b;a++)x[a]=E[a-y];else for(b=x.slice(y,E),b.sort(a),a=y;a<E;a++)x[a]=b[a-y];return this.xb(),this},ke.reverse=function(){return this._isFrozen&&Ut(this),this.s.reverse(),this.xb(),this},zt.Object.defineProperties(Un.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 gr;var a=this.Sa;return a!==null?(a.reset(),a):new Ar(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return gr;var a=this.Hg;return a!==null?(a.reset(),a):new Rr(this)}}}),Un.prototype.reverse=Un.prototype.reverse,Un.prototype.sortRange=Un.prototype.zi,Un.prototype.sort=Un.prototype.sort,Un.prototype.toSet=Un.prototype.Iv,Un.prototype.toArray=Un.prototype.Fa,Un.prototype.removeRange=Un.prototype.removeRange,Un.prototype.removeAt=Un.prototype.mb,Un.prototype.delete=Un.prototype.delete,Un.prototype.remove=Un.prototype.remove,Un.prototype.insertAt=Un.prototype.Gb,Un.prototype.pop=Un.prototype.pop,Un.prototype.last=Un.prototype.jc,Un.prototype.first=Un.prototype.first,Un.prototype.set=Un.prototype.set,Un.prototype.setElt=Un.prototype.cd,Un.prototype.get=Un.prototype.get,Un.prototype.elt=Un.prototype.M,Un.prototype.indexOf=Un.prototype.indexOf,Un.prototype.has=Un.prototype.has,Un.prototype.contains=Un.prototype.contains,Un.prototype.clear=Un.prototype.clear,Un.prototype.addAll=Un.prototype.addAll,Un.prototype.push=Un.prototype.push,Un.prototype.add=Un.prototype.add,Un.prototype.thaw=Un.prototype.ka,Un.prototype.freeze=Un.prototype.freeze,Un.className="List";function pr(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}pr.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},pr.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)},pr.prototype.Ad=function(){return this.next()},pr.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},pr.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},pr.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},pr.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},pr.prototype.map=function(a){var y=this.eg;y.Sa=null;var E=new Un;for(y=y.ea;y!==null;)E.add(a(y.value)),y=y.va;return E.iterator},pr.prototype.filter=function(a){var y=this.eg;y.Sa=null;var E=new Un;for(y=y.ea;y!==null;){var x=y.value;a(x)&&E.add(x),y=y.va}return E.iterator},pr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},pr.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},zt.Object.defineProperties(pr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),pr.prototype.first=pr.prototype.first,pr.prototype.hasNext=pr.prototype.Ad,pr.prototype.next=pr.prototype.next,pr.prototype.reset=pr.prototype.reset,pr.className="SetIterator";function Dn(a){Lr(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)}ke=Dn.prototype,ke.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},ke.freeze=function(){return this._isFrozen=!0,this},ke.ka=function(){return this._isFrozen=!1,this},ke.toString=function(){return"Set()#"+Ir(this)},ke.add=function(a){if(a===null)return this;this._isFrozen&&Ut(this,a);var y=a;return jt(a)&&(y=ro(a)),this.Tb[y]===void 0&&(this.Sb++,a=new Ro(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},ke.addAll=function(a){if(a===null)return this;if(this._isFrozen&&Ut(this),Vn(a))for(var y=a.length,E=0;E<y;E++)this.add(a[E]);else for(a=a.iterator;a.next();)this.add(a.value);return this},ke.contains=function(a){if(a===null)return!1;var y=a;return jt(a)&&(y=Ir(a),y===void 0)?!1:this.Tb[y]!==void 0},ke.has=function(a){return this.contains(a)},ke.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},ke.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},ke.first=function(){var a=this.ea;return a===null?null:a.value},Dn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Dn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Dn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},Dn.prototype.map=function(a){for(var y=new Dn,E=this.ea;E!==null;)y.add(a(E.value)),E=E.va;return y},Dn.prototype.filter=function(a){for(var y=new Dn,E=this.ea;E!==null;){var x=E.value;a(x)&&y.add(x),E=E.va}return y},ke=Dn.prototype,ke.remove=function(a){if(a===null)return!1;this._isFrozen&&Ut(this,a);var y=a;if(jt(a)&&(y=Ir(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var E=a.va,x=a.ll;return E!==null&&(E.ll=x),x!==null&&(x.va=E),this.ea===a&&(this.ea=E),this.kf===a&&(this.kf=x),delete this.Tb[y],this.Sb--,this.xb(),!0},ke.delete=function(a){return this.remove(a)},ke.hp=function(a){if(a===null)return this;if(this._isFrozen&&Ut(this),Vn(a))for(var y=a.length,E=0;E<y;E++)this.remove(a[E]);else for(a=a.iterator;a.next();)this.remove(a.value);return this},ke.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&Ut(this);var y=new Dn;y.addAll(a),a=[];for(var E=this.iterator;E.next();){var x=E.value;y.contains(x)||a.push(x)}return this.hp(a),this},ke.clear=function(){this._isFrozen&&Ut(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Dn.prototype.copy=function(){var a=new Dn,y=this.Tb,E;for(E in y)a.add(y[E].value);return a},Dn.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,E=0,x;for(x in y)a[E]=y[x].value,E++;return a},Dn.prototype.Hv=function(){var a=new Un,y=this.Tb,E;for(E in y)a.add(y[E].value);return a};function Lr(a){a.__gohashid=Vr++}function ro(a){var y=a.__gohashid;return y===void 0&&(y=Vr++,a.__gohashid=y),y}function Ir(a){return a.__gohashid}zt.Object.defineProperties(Dn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return gr;var a=this.Sa;return a!==null?(a.reset(),a):new pr(this)}}}),Dn.prototype.toList=Dn.prototype.Hv,Dn.prototype.toArray=Dn.prototype.Fa,Dn.prototype.clear=Dn.prototype.clear,Dn.prototype.retainAll=Dn.prototype.pA,Dn.prototype.removeAll=Dn.prototype.hp,Dn.prototype.delete=Dn.prototype.delete,Dn.prototype.remove=Dn.prototype.remove,Dn.prototype.first=Dn.prototype.first,Dn.prototype.containsAny=Dn.prototype.Ty,Dn.prototype.containsAll=Dn.prototype.Sy,Dn.prototype.has=Dn.prototype.has,Dn.prototype.contains=Dn.prototype.contains,Dn.prototype.addAll=Dn.prototype.addAll,Dn.prototype.add=Dn.prototype.add,Dn.prototype.thaw=Dn.prototype.ka,Dn.prototype.freeze=Dn.prototype.freeze;var Vr=1;Dn.className="Set",Dn.uniqueHash=Lr,Dn.hashIdUnique=ro,Dn.hashId=Ir;function Mr(a){this.ma=a,this.qa=a.Ja,this.sa=null}Mr.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Mr.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)},Mr.prototype.Ad=function(){return this.next()},Mr.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},Mr.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},Mr.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},Mr.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},Mr.prototype.map=function(a){var y=this.ma;this.sa=null;var E=new Un;for(y=y.ea;y!==null;)E.add(a(y.key)),y=y.va;return E.iterator},Mr.prototype.filter=function(a){var y=this.ma;this.sa=null;var E=new Un;for(y=y.ea;y!==null;){var x=y.key;a(x)&&E.add(x),y=y.va}return E.iterator},Mr.prototype.de=function(){this.value=this.key=null,this.qa=-1},Mr.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},zt.Object.defineProperties(Mr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Mr.prototype.first=Mr.prototype.first,Mr.prototype.hasNext=Mr.prototype.Ad,Mr.prototype.next=Mr.prototype.next,Mr.prototype.reset=Mr.prototype.reset,Mr.className="MapKeySetIterator";function Sr(a){Dn.call(this),Lr(this),this._isFrozen=!0,this.ma=a}en(Sr,Dn),ke=Sr.prototype,ke.freeze=function(){return this},ke.ka=function(){return this},ke.toString=function(){return"MapKeySet("+this.ma.toString()+")"},ke.add=function(){lt("This Set is read-only: "+this.toString())},ke.contains=function(a){return this.ma.contains(a)},ke.has=function(a){return this.contains(a)},ke.remove=function(){lt("This Set is read-only: "+this.toString())},ke.delete=function(a){return this.remove(a)},ke.clear=function(){lt("This Set is read-only: "+this.toString())},ke.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Sr.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Sr.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Sr.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Sr.prototype.map=function(a){for(var y=new Dn,E=this.ma.ea;E!==null;)y.add(a(E.key)),E=E.va;return y},Sr.prototype.filter=function(a){for(var y=new Dn,E=this.ma.ea;E!==null;){var x=E.key;a(x)&&y.add(x),E=E.va}return y},Sr.prototype.copy=function(){return new Sr(this.ma)},Sr.prototype.Iv=function(){var a=new Dn,y=this.ma.Tb,E;for(E in y)a.add(y[E].key);return a},Sr.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),E=0,x;for(x in a)y[E]=a[x].key,E++;return y},Sr.prototype.Hv=function(){var a=new Un,y=this.ma.Tb,E;for(E in y)a.add(y[E].key);return a},zt.Object.defineProperties(Sr.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?gr:new Mr(this.ma)}}}),Sr.prototype.toList=Sr.prototype.Hv,Sr.prototype.toArray=Sr.prototype.Fa,Sr.prototype.toSet=Sr.prototype.Iv,Sr.prototype.first=Sr.prototype.first,Sr.prototype.clear=Sr.prototype.clear,Sr.prototype.delete=Sr.prototype.delete,Sr.prototype.remove=Sr.prototype.remove,Sr.prototype.has=Sr.prototype.has,Sr.prototype.contains=Sr.prototype.contains,Sr.prototype.add=Sr.prototype.add,Sr.prototype.thaw=Sr.prototype.ka,Sr.prototype.freeze=Sr.prototype.freeze,Sr.className="MapKeySet";function Qr(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}Qr.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},Qr.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)},Qr.prototype.Ad=function(){return this.next()},Qr.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},Qr.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},Qr.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},Qr.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},Qr.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var E=new Un;for(y=y.ea;y!==null;)E.add(a(y.value)),y=y.va;return E.iterator},Qr.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var E=new Un;for(y=y.ea;y!==null;){var x=y.value;a(x)&&E.add(x),y=y.va}return E.iterator},Qr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Qr.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},zt.Object.defineProperties(Qr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Qr.prototype.first=Qr.prototype.first,Qr.prototype.hasNext=Qr.prototype.Ad,Qr.prototype.next=Qr.prototype.next,Qr.prototype.reset=Qr.prototype.reset,Qr.className="MapValueSetIterator";function Ro(a,y){this.key=a,this.value=y,this.ll=this.va=null}Ro.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Ro.className="KeyValuePair";function qr(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}qr.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},qr.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)},qr.prototype.Ad=function(){return this.next()},qr.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},qr.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},qr.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},qr.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},qr.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var E=new Un;for(y=y.ea;y!==null;)E.add(a(y)),y=y.va;return E.iterator},qr.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var E=new Un;for(y=y.ea;y!==null;)a(y)&&E.add(y),y=y.va;return E.iterator},qr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},qr.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},zt.Object.defineProperties(qr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),qr.prototype.first=qr.prototype.first,qr.prototype.hasNext=qr.prototype.Ad,qr.prototype.next=qr.prototype.next,qr.prototype.reset=qr.prototype.reset,qr.className="MapIterator";function vi(a){Lr(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)}ke=vi.prototype,ke.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},ke.freeze=function(){return this._isFrozen=!0,this},ke.ka=function(){return this._isFrozen=!1,this},ke.toString=function(){return"Map()#"+Ir(this)},ke.add=function(a,y){this._isFrozen&&Ut(this,a);var E=a;jt(a)&&(E=ro(a));var x=this.Tb[E];return x===void 0?(this.Sb++,a=new Ro(a,y),this.Tb[E]=a,E=this.kf,E===null?this.ea=a:(a.ll=E,E.va=a),this.kf=a,this.xb()):x.value=y,this},ke.set=function(a,y){return this.add(a,y)},ke.addAll=function(a){if(a===null)return this;if(Vn(a))for(var y=a.length,E=0;E<y;E++){var x=a[E];this.add(x.key,x.value)}else if(a instanceof vi)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},ke.first=function(){return this.ea},vi.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},vi.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},vi.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},vi.prototype.map=function(a){for(var y=new vi,E=this.ea;E!==null;)y.add(E.key,a(E)),E=E.va;return y},vi.prototype.filter=function(a){for(var y=new vi,E=this.ea;E!==null;)a(E)&&y.add(E.key,E.value),E=E.va;return y},ke=vi.prototype,ke.contains=function(a){var y=a;return jt(a)&&(y=Ir(a),y===void 0)?!1:this.Tb[y]!==void 0},ke.has=function(a){return this.contains(a)},ke.I=function(a){var y=a;return jt(a)&&(y=Ir(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},ke.get=function(a){return this.I(a)},ke.remove=function(a){if(a===null)return!1;this._isFrozen&&Ut(this,a);var y=a;if(jt(a)&&(y=Ir(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var E=a.va,x=a.ll;return E!==null&&(E.ll=x),x!==null&&(x.va=E),this.ea===a&&(this.ea=E),this.kf===a&&(this.kf=x),delete this.Tb[y],this.Sb--,this.xb(),!0},ke.delete=function(a){return this.remove(a)},ke.clear=function(){this._isFrozen&&Ut(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()},vi.prototype.copy=function(){var a=new vi,y=this.Tb,E;for(E in y){var x=y[E];a.add(x.key,x.value)}return a},vi.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),E=0,x;for(x in a){var b=a[x];y[E]=new Ro(b.key,b.value),E++}return y},vi.prototype.Lf=function(){return new Sr(this)},zt.Object.defineProperties(vi.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return gr;var a=this.Sa;return a!==null?(a.reset(),a):new qr(this)}},iteratorKeys:{get:function(){return 0>=this.count?gr:new Mr(this)}},iteratorValues:{get:function(){if(0>=this.count)return gr;var a=this.jf;return a!==null?(a.reset(),a):new Qr(this)}}}),vi.prototype.toKeySet=vi.prototype.Lf,vi.prototype.toArray=vi.prototype.Fa,vi.prototype.clear=vi.prototype.clear,vi.prototype.delete=vi.prototype.delete,vi.prototype.remove=vi.prototype.remove,vi.prototype.get=vi.prototype.get,vi.prototype.getValue=vi.prototype.I,vi.prototype.has=vi.prototype.has,vi.prototype.contains=vi.prototype.contains,vi.prototype.first=vi.prototype.first,vi.prototype.addAll=vi.prototype.addAll,vi.prototype.set=vi.prototype.set,vi.prototype.add=vi.prototype.add,vi.prototype.thaw=vi.prototype.ka,vi.prototype.freeze=vi.prototype.freeze,vi.className="Map";function dt(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 ho,yo,ua,Vo,Kr;dt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},dt.prototype.h=function(a,y){return this.x=a,this.y=y,this},dt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},dt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},dt.prototype.copy=function(){var a=new dt;return a.x=this.x,a.y=this.y,a},ke=dt.prototype,ke.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ke.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ke.freeze=function(){return this._isFrozen=!0,this},ke.ka=function(){return Object.isFrozen(this)&<("cannot thaw constant: "+this),this._isFrozen=!1,this};function Zi(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,E=0;a[y]==="";)y++;var x=a[y++];x&&(E=parseFloat(x));for(var b=0;a[y]==="";)y++;return(x=a[y++])&&(b=parseFloat(x)),new dt(E,b)}return new dt}function tr(a){return a.x.toString()+" "+a.y.toString()}ke.toString=function(){return"Point("+this.x+","+this.y+")"},ke.D=function(a){return a instanceof dt?this.x===a.x&&this.y===a.y:!1},ke.hi=function(a,y){return this.x===a&&this.y===y},ke.Xa=function(a){return Ft.B(this.x,a.x)&&Ft.B(this.y,a.y)},ke.add=function(a){return this.x+=a.x,this.y+=a.y,this},ke.re=function(a){return this.x-=a.x,this.y-=a.y,this},ke.offset=function(a,y){return this.x+=a,this.y+=y,this},dt.prototype.rotate=function(a){if(a===0)return this;var y=this.x,E=this.y;if(y===0&&E===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var x=1}else a===180?(a=-1,x=0):a===270?(a=0,x=-1):(x=a*Math.PI/180,a=Math.cos(x),x=Math.sin(x));return this.x=a*y-x*E,this.y=x*y+a*E,this},ke=dt.prototype,ke.scale=function(a,y){return this.x*=a,this.y*=y,this},ke.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},ke.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},ke.normalize=function(){var a=this.x,y=this.y,E=Math.sqrt(a*a+y*y);return 0<E&&(this.x=a/E,this.y=y/E),this},ke.ab=function(a){return kr(a.x-this.x,a.y-this.y)},ke.direction=function(a,y){return kr(a-this.x,y-this.y)};function kr(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 E=180*Math.atan(Math.abs(y/a))/Math.PI;return 0>a?E=0>y?E+180:180-E:0>y&&(E=360-E),E}ke.Ry=function(a,y){return Ft.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},ke.fA=function(a,y,E,x){return Ft.qh(a,y,E,x,this.x,this.y,this),this},ke.gA=function(a,y){return Ft.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},ke.uA=function(a,y,E,x){return Ft.No(this.x,this.y,a,y,E,x,this),this},ke.vA=function(a,y){return Ft.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},ke.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},ke.yi=function(a,y,E,x,b){return this.x=a+b.x*E+b.offsetX,this.y=y+b.y*x+b.offsetY,this},ke.transform=function(a){return a.Ga(this),this};function Ji(a,y){return y.Cd(a),a}function Cr(a,y,E,x,b,z){var ee=b-E,re=z-x,oe=ee*ee+re*re;E-=a,x-=y;var ce=-E*ee-x*re;return 0>=ce||ce>=oe?(ee=b-a,re=z-y,Math.min(E*E+x*x,ee*ee+re*re)):(a=ee*x-re*E,a*a/oe)}function uo(a,y,E,x){return a=E-a,y=x-y,a*a+y*y}function nr(a,y,E,x){return a=E-a,y=x-y,a===0?0<y?90:0>y?270:0:y===0?0<a?0:180:isNaN(a)||isNaN(y)?0:(x=180*Math.atan(Math.abs(y/a))/Math.PI,0>a?x=0>y?x+180:180-x:0>y&&(x=360-x),x)}ke.w=function(){return isFinite(this.x)&&isFinite(this.y)},dt.alloc=function(){var a=Qi.pop();return a===void 0?new dt:a},dt.allocAt=function(a,y){var E=Qi.pop();return E===void 0?new dt(a,y):(E.x=a,E.y=y,E)},dt.free=function(a){Qi.push(a)},dt.prototype.isReal=dt.prototype.w,dt.prototype.setSpot=dt.prototype.yi,dt.prototype.setRectSpot=dt.prototype.xi,dt.prototype.snapToGridPoint=dt.prototype.vA,dt.prototype.snapToGrid=dt.prototype.uA,dt.prototype.projectOntoLineSegmentPoint=dt.prototype.gA,dt.prototype.projectOntoLineSegment=dt.prototype.fA,dt.intersectingLineSegments=function(a,y,E,x,b,z,ee,re){return Ft.Rl(a,y,E,x,b,z,ee,re)},dt.prototype.compareWithLineSegmentPoint=dt.prototype.Ry,dt.compareWithLineSegment=function(a,y,E,x,b,z){return Ft.Fl(a,y,E,x,b,z)},dt.prototype.direction=dt.prototype.direction,dt.prototype.directionPoint=dt.prototype.ab,dt.prototype.normalize=dt.prototype.normalize,dt.prototype.distanceSquared=dt.prototype.zd,dt.prototype.distanceSquaredPoint=dt.prototype.Bf,dt.prototype.scale=dt.prototype.scale,dt.prototype.rotate=dt.prototype.rotate,dt.prototype.offset=dt.prototype.offset,dt.prototype.subtract=dt.prototype.re,dt.prototype.add=dt.prototype.add,dt.prototype.equalsApprox=dt.prototype.Xa,dt.prototype.equalTo=dt.prototype.hi,dt.prototype.equals=dt.prototype.D,dt.prototype.set=dt.prototype.set,dt.prototype.setTo=dt.prototype.sg;var Qi=[];dt.className="Point",dt.parse=Zi,dt.stringify=tr,dt.distanceLineSegmentSquared=Cr,dt.distanceSquared=uo,dt.direction=nr,dt.Origin=ho=new dt(0,0).ja(),dt.InfiniteTopLeft=yo=new dt(-1/0,-1/0).ja(),dt.InfiniteBottomRight=ua=new dt(1/0,1/0).ja(),dt.SixPoint=Vo=new dt(6,6).ja(),dt.NoPoint=Kr=new dt(NaN,NaN).ja(),dt.parse=Zi,dt.stringify=tr,dt.distanceLineSegmentSquared=Cr,dt.distanceSquared=uo,dt.direction=nr;function ti(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 lr,Gr,Lo,ao,Zo,Xo,Go;ti.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},ti.prototype.h=function(a,y){return this.width=a,this.height=y,this},ti.prototype.sg=function(a,y){return this.width=a,this.height=y,this},ti.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},ti.prototype.copy=function(){var a=new ti;return a.width=this.width,a.height=this.height,a},ke=ti.prototype,ke.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ke.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ke.freeze=function(){return this._isFrozen=!0,this},ke.ka=function(){return Object.isFrozen(this)&<("cannot thaw constant: "+this),this._isFrozen=!1,this};function Jo(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,E=0;a[y]==="";)y++;var x=a[y++];x&&(E=parseFloat(x));for(var b=0;a[y]==="";)y++;return(x=a[y++])&&(b=parseFloat(x)),new ti(E,b)}return new ti}function Yo(a){return a.width.toString()+" "+a.height.toString()}ke.toString=function(){return"Size("+this.width+","+this.height+")"},ke.D=function(a){return a instanceof ti?this.width===a.width&&this.height===a.height:!1},ke.hi=function(a,y){return this.width===a&&this.height===y},ke.Xa=function(a){return Ft.B(this.width,a.width)&&Ft.B(this.height,a.height)},ke.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},ke.w=function(){return isFinite(this.width)&&isFinite(this.height)},ti.alloc=function(){var a=ra.pop();return a===void 0?new ti:a},ti.free=function(a){ra.push(a)},ti.prototype.isReal=ti.prototype.w,ti.prototype.inflate=ti.prototype.Bc,ti.prototype.equalsApprox=ti.prototype.Xa,ti.prototype.equalTo=ti.prototype.hi,ti.prototype.equals=ti.prototype.D,ti.prototype.set=ti.prototype.set,ti.prototype.setTo=ti.prototype.sg;var ra=[];ti.className="Size",ti.parse=Jo,ti.stringify=Yo,ti.ZeroSize=lr=new ti(0,0).ja(),ti.OneSize=Gr=new ti(1,1).ja(),ti.SixSize=Lo=new ti(6,6).ja(),ti.EightSize=ao=new ti(8,8).ja(),ti.TenSize=Zo=new ti(10,10).ja(),ti.InfiniteSize=Xo=new ti(1/0,1/0).ja(),ti.NoSize=Go=new ti(NaN,NaN).ja(),ti.parse=Jo,ti.stringify=Yo;function pn(a,y,E,x){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof E=="number"&&(0<=E||isNaN(E))&&typeof x=="number"&&(0<=x||isNaN(x))?(this.x=a,this.y=y,this.width=E,this.height=x):a instanceof dt?(E=a.x,a=a.y,y instanceof dt?(x=y.x,y=y.y,this.x=Math.min(E,x),this.y=Math.min(a,y),this.width=Math.abs(E-x),this.height=Math.abs(a-y)):y instanceof ti?(this.x=E,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+", "+E+", "+x),this._isFrozen=!1}ke=pn.prototype,ke.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},ke.h=function(a,y,E,x){return this.x=a,this.y=y,this.width=E,this.height=x,this};function wa(a,y,E){a.width=y,a.height=E}ke.sg=function(a,y,E,x){return this.x=a,this.y=y,this.width=E,this.height=x,this},ke.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},ke.dd=function(a){return this.x=a.x,this.y=a.y,this},ke.tA=function(a){return this.width=a.width,this.height=a.height,this},pn.prototype.copy=function(){var a=new pn;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},ke=pn.prototype,ke.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ke.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ke.freeze=function(){return this._isFrozen=!0,this},ke.ka=function(){return Object.isFrozen(this)&<("cannot thaw constant: "+this),this._isFrozen=!1,this};function qs(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,E=0;a[y]==="";)y++;var x=a[y++];x&&(E=parseFloat(x));for(var b=0;a[y]==="";)y++;(x=a[y++])&&(b=parseFloat(x));for(var z=0;a[y]==="";)y++;(x=a[y++])&&(z=parseFloat(x));for(var ee=0;a[y]==="";)y++;return(x=a[y++])&&(ee=parseFloat(x)),new pn(E,b,z,ee)}return new pn}function za(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}ke.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},ke.D=function(a){return a instanceof pn?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},ke.hi=function(a,y,E,x){return this.x===a&&this.y===y&&this.width===E&&this.height===x},ke.Xa=function(a){return Ft.B(this.x,a.x)&&Ft.B(this.y,a.y)&&Ft.B(this.width,a.width)&&Ft.B(this.height,a.height)};function $a(a,y){return Ft.$(a.x,y.x)&&Ft.$(a.y,y.y)&&Ft.$(a.width,y.width)&&Ft.$(a.height,y.height)}ke.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},ke.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},ke.contains=function(a,y,E,x){return E===void 0&&(E=0),x===void 0&&(x=0),this.x<=a&&a+E<=this.x+this.width&&this.y<=y&&y+x<=this.y+this.height},ke.offset=function(a,y){return this.x+=a,this.y+=y,this},ke.Bc=function(a,y){return Qo(this,y,a,y,a)},ke.Co=function(a){return Qo(this,a.top,a.right,a.bottom,a.left)},ke.Fv=function(a){return Qo(this,-a.top,-a.right,-a.bottom,-a.left)},ke.Hz=function(a,y,E,x){return Qo(this,a,y,E,x)};function Qo(a,y,E,x,b){var z=a.width;return E+b<=-z?(a.x+=z/2,a.width=0):(a.x-=b,a.width+=E+b),E=a.height,y+x<=-E?(a.y+=E/2,a.height=0):(a.y-=y,a.height+=y+x),a}ke.Ex=function(a){return ms(this,a.x,a.y,a.width,a.height)},ke.Uu=function(a,y,E,x){return ms(this,a,y,E,x)};function ms(a,y,E,x,b){var z=Math.max(a.x,y),ee=Math.max(a.y,E);return y=Math.min(a.x+a.width,y+x),E=Math.min(a.y+a.height,E+b),a.x=z,a.y=ee,a.width=Math.max(0,y-z),a.height=Math.max(0,E-ee),a}ke.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},ke.Vu=function(a,y,E,x){var b=this.width,z=this.x;return b!==1/0&&E!==1/0&&(b+=z,E+=a,isNaN(E)||isNaN(b)||z>E||a>b)?!1:(a=this.height,E=this.y,!(a!==1/0&&x!==1/0&&(a+=E,x+=y,isNaN(x)||isNaN(a)||E>x||y>a)))};function Nn(a,y){var E=a.width,x=a.x,b=y.x-10;return x>y.width+10+10+b||b>E+x?!1:(E=a.height,a=a.y,x=y.y-10,!(a>y.height+10+10+x||x>E+a))}ke.Ye=function(a){return po(this,a.x,a.y,0,0)},ke.ed=function(a){return po(this,a.x,a.y,a.width,a.height)},ke.Kv=function(a,y,E,x){return E===void 0&&(E=0),x===void 0&&(x=0),po(this,a,y,E,x)};function po(a,y,E,x,b){var z=Math.min(a.x,y),ee=Math.min(a.y,E);return y=Math.max(a.x+a.width,y+x),E=Math.max(a.y+a.height,E+b),a.x=z,a.y=ee,a.width=y-z,a.height=E-ee,a}ke.yi=function(a,y,E){return this.x=a-E.offsetX-E.x*this.width,this.y=y-E.offsetY-E.y*this.height,this};function ca(a,y,E,x,b,z,ee,re){return ee===void 0&&(ee=0),re===void 0&&(re=0),a<=b&&b+ee<=a+E&&y<=z&&z+re<=y+x}function ul(a,y,E,x,b,z,ee,re){return a>ee+b||b>E+a?!1:!(y>re+z||z>x+y)}ke.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},ke.Mz=function(){return this.width===0&&this.height===0},pn.alloc=function(){var a=ws.pop();return a===void 0?new pn:a},pn.allocAt=function(a,y,E,x){var b=ws.pop();return b===void 0?new pn(a,y,E,x):b.h(a,y,E,x)},pn.free=function(a){ws.push(a)},zt.Object.defineProperties(pn.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 dt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new ti(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new dt(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}}}),pn.prototype.isEmpty=pn.prototype.Mz,pn.prototype.isReal=pn.prototype.w,pn.intersectsLineSegment=function(a,y,E,x,b,z,ee,re){return Ft.Fx(a,y,E,x,b,z,ee,re)},pn.prototype.setSpot=pn.prototype.yi,pn.prototype.union=pn.prototype.Kv,pn.prototype.unionRect=pn.prototype.ed,pn.prototype.unionPoint=pn.prototype.Ye,pn.prototype.intersects=pn.prototype.Vu,pn.prototype.intersectsRect=pn.prototype.Yc,pn.prototype.intersect=pn.prototype.Uu,pn.prototype.intersectRect=pn.prototype.Ex,pn.prototype.grow=pn.prototype.Hz,pn.prototype.subtractMargin=pn.prototype.Fv,pn.prototype.addMargin=pn.prototype.Co,pn.prototype.inflate=pn.prototype.Bc,pn.prototype.offset=pn.prototype.offset,pn.prototype.contains=pn.prototype.contains,pn.prototype.containsRect=pn.prototype.Re,pn.prototype.containsPoint=pn.prototype.ca,pn.prototype.equalsApprox=pn.prototype.Xa,pn.prototype.equalTo=pn.prototype.hi,pn.prototype.equals=pn.prototype.D,pn.prototype.setSize=pn.prototype.tA,pn.prototype.setPoint=pn.prototype.dd,pn.prototype.set=pn.prototype.set,pn.prototype.setTo=pn.prototype.sg;var Ua=null,Zl=null,ws=[];pn.className="Rect",pn.parse=qs,pn.stringify=za,pn.contains=ca,pn.intersects=ul,pn.ZeroRect=Ua=new pn(0,0,0,0).ja(),pn.NoRect=Zl=new pn(NaN,NaN,NaN,NaN).ja(),pn.parse=qs,pn.stringify=za,pn.contains=ca,pn.intersects=ul;function mr(a,y,E,x){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:E===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):x!==void 0?(this.top=a,this.right=y,this.bottom=E,this.left=x):lt("Invalid arguments to Margin constructor: "+a+", "+y+", "+E+", "+x),this._isFrozen=!1}mr.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},mr.prototype.sg=function(a,y,E,x){return this.top=a,this.right=y,this.bottom=E,this.left=x,this},mr.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},mr.prototype.copy=function(){var a=new mr;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},ke=mr.prototype,ke.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ke.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ke.freeze=function(){return this._isFrozen=!0,this},ke.ka=function(){return Object.isFrozen(this)&<("cannot thaw constant: "+this),this._isFrozen=!1,this};function cl(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,E=NaN;a[y]==="";)y++;var x=a[y++];if(x&&(E=parseFloat(x)),isNaN(E))return new mr;for(var b=NaN;a[y]==="";)y++;if((x=a[y++])&&(b=parseFloat(x)),isNaN(b))return new mr(E);for(var z=NaN;a[y]==="";)y++;if((x=a[y++])&&(z=parseFloat(x)),isNaN(z))return new mr(E,b);for(var ee=NaN;a[y]==="";)y++;return(x=a[y++])&&(ee=parseFloat(x)),isNaN(ee)?new mr(E,b):new mr(E,b,z,ee)}return new mr}function El(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}ke.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},ke.D=function(a){return a instanceof mr?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},ke.hi=function(a,y,E,x){return this.top===a&&this.right===y&&this.bottom===E&&this.left===x},ke.Xa=function(a){return Ft.B(this.top,a.top)&&Ft.B(this.right,a.right)&&Ft.B(this.bottom,a.bottom)&&Ft.B(this.left,a.left)},ke.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},mr.alloc=function(){var a=dl.pop();return a===void 0?new mr:a},mr.free=function(a){dl.push(a)},mr.prototype.isReal=mr.prototype.w,mr.prototype.equalsApprox=mr.prototype.Xa,mr.prototype.equalTo=mr.prototype.hi,mr.prototype.equals=mr.prototype.D,mr.prototype.set=mr.prototype.set,mr.prototype.setTo=mr.prototype.sg;var ds=null,Ta=null,dl=[];mr.className="Margin",mr.parse=cl,mr.stringify=El,mr.ZeroMargin=ds=new mr(0,0,0,0).ja(),mr.TwoMargin=Ta=new mr(2,2,2,2).ja(),mr.parse=cl,mr.stringify=El;function tn(a,y,E,x){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),E===void 0&&(E=0),x===void 0&&(x=0),this.x=a,this.y=y,this.offsetX=E,this.offsetY=x),this._isFrozen=!1}var Ti,_i,qi,ur,wr,Xi,Fo,jo,Ao,co,zo,rs,ia,Ma,Ts,Za,$s,hl,Ol,Fa,As,Rs,sc,xc,Yc,Aa,ad,bc,Gu,Yu,es,hs,Ha,ts,wc,Wu;tn.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},tn.prototype.sg=function(a,y,E,x){return this.x=a,this.y=y,this.offsetX=E,this.offsetY=x,this},tn.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},tn.prototype.copy=function(){var a=new tn;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},ke=tn.prototype,ke.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ke.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ke.freeze=function(){return this._isFrozen=!0,this},ke.ka=function(){return Object.isFrozen(this)&<("cannot thaw constant: "+this),this._isFrozen=!1,this};function oa(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Bo(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Ti;if(a==="TopLeft")return _i;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return qi;if(a==="TopRight")return ur;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return wr;if(a==="Center")return Xi;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Fo;if(a==="BottomLeft")return jo;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Ao;if(a==="BottomRight")return co;if(a==="TopSide")return zo;if(a==="LeftSide")return rs;if(a==="RightSide")return ia;if(a==="BottomSide")return Ma;if(a==="TopBottomSides")return Ts;if(a==="LeftRightSides")return Za;if(a==="TopLeftSides")return $s;if(a==="TopRightSides")return hl;if(a==="BottomLeftSides")return Ol;if(a==="BottomRightSides")return Fa;if(a==="NotTopSide")return As;if(a==="NotLeftSide")return Rs;if(a==="NotRightSide")return sc;if(a==="NotBottomSide")return xc;if(a==="AllSides")return Yc;if(a==="Default")return Aa;a=a.split(" ");for(var y=0,E=0;a[y]==="";)y++;var x=a[y++];x!==void 0&&0<x.length&&(E=parseFloat(x));for(var b=0;a[y]==="";)y++;x=a[y++],x!==void 0&&0<x.length&&(b=parseFloat(x));for(var z=0;a[y]==="";)y++;x=a[y++],x!==void 0&&0<x.length&&(z=parseFloat(x));for(var ee=0;a[y]==="";)y++;return x=a[y++],x!==void 0&&0<x.length&&(ee=parseFloat(x)),new tn(E,b,z,ee)}return new tn}function So(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}ke.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(Ti)?"None":this.D(_i)?"TopLeft":this.D(qi)?"Top":this.D(ur)?"TopRight":this.D(wr)?"Left":this.D(Xi)?"Center":this.D(Fo)?"Right":this.D(jo)?"BottomLeft":this.D(Ao)?"Bottom":this.D(co)?"BottomRight":this.D(zo)?"TopSide":this.D(rs)?"LeftSide":this.D(ia)?"RightSide":this.D(Ma)?"BottomSide":this.D(Ts)?"TopBottomSides":this.D(Za)?"LeftRightSides":this.D($s)?"TopLeftSides":this.D(hl)?"TopRightSides":this.D(Ol)?"BottomLeftSides":this.D(Fa)?"BottomRightSides":this.D(As)?"NotTopSide":this.D(Rs)?"NotLeftSide":this.D(sc)?"NotRightSide":this.D(xc)?"NotBottomSide":this.D(Yc)?"AllSides":this.D(Aa)?"Default":"None"},ke.D=function(a){return a instanceof tn?(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},ke.gv=function(){return new tn(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},ke.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(ad))a=rs;else if(a.D(bc))a=ia;else if(a.D(Gu))a=zo;else if(a.D(Yu))a=Ma;else return!1;return a=a.offsetY,(this.offsetY&a)===a},ke.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},ke.Mc=function(){return isNaN(this.x)||isNaN(this.y)},ke.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},ke.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},ke.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},tn.alloc=function(){var a=os.pop();return a===void 0?new tn:a},tn.free=function(a){os.push(a)},tn.prototype.isDefault=tn.prototype.Xb,tn.prototype.isNone=tn.prototype.ys,tn.prototype.isSide=tn.prototype.$c,tn.prototype.isNoSpot=tn.prototype.Mc,tn.prototype.isSpot=tn.prototype.sb,tn.prototype.includesSide=tn.prototype.Hf,tn.prototype.opposite=tn.prototype.gv,tn.prototype.equals=tn.prototype.D,tn.prototype.set=tn.prototype.set,tn.prototype.setTo=tn.prototype.sg;var os=[];tn.className="Spot",tn.parse=Bo,tn.stringify=So,tn.None=Ti=oa(new tn(0,0,0,0),0).ja(),tn.Default=Aa=oa(new tn(0,0,-1,0),-1).ja(),tn.TopLeft=_i=new tn(0,0,0,0).ja(),tn.TopCenter=qi=new tn(.5,0,0,0).ja(),tn.TopRight=ur=new tn(1,0,0,0).ja(),tn.LeftCenter=wr=new tn(0,.5,0,0).ja(),tn.Center=Xi=new tn(.5,.5,0,0).ja(),tn.RightCenter=Fo=new tn(1,.5,0,0).ja(),tn.BottomLeft=jo=new tn(0,1,0,0).ja(),tn.BottomCenter=Ao=new tn(.5,1,0,0).ja(),tn.BottomRight=co=new tn(1,1,0,0).ja(),tn.MiddleTop=es=qi,tn.MiddleLeft=hs=wr,tn.MiddleRight=Ha=Fo,tn.MiddleBottom=ts=Ao,tn.Top=Gu=qi,tn.Left=ad=wr,tn.Right=bc=Fo,tn.Bottom=Yu=Ao,tn.TopSide=zo=oa(new tn(0,0,1,1),1).ja(),tn.LeftSide=rs=oa(new tn(0,0,1,2),1).ja(),tn.RightSide=ia=oa(new tn(0,0,1,4),1).ja(),tn.BottomSide=Ma=oa(new tn(0,0,1,8),1).ja(),tn.TopBottomSides=Ts=oa(new tn(0,0,1,9),1).ja(),tn.LeftRightSides=Za=oa(new tn(0,0,1,6),1).ja(),tn.TopLeftSides=$s=oa(new tn(0,0,1,3),1).ja(),tn.TopRightSides=hl=oa(new tn(0,0,1,5),1).ja(),tn.BottomLeftSides=Ol=oa(new tn(0,0,1,10),1).ja(),tn.BottomRightSides=Fa=oa(new tn(0,0,1,12),1).ja(),tn.NotTopSide=As=oa(new tn(0,0,1,14),1).ja(),tn.NotLeftSide=Rs=oa(new tn(0,0,1,13),1).ja(),tn.NotRightSide=sc=oa(new tn(0,0,1,11),1).ja(),tn.NotBottomSide=xc=oa(new tn(0,0,1,7),1).ja(),tn.AllSides=Yc=oa(new tn(0,0,1,15),1).ja(),wc=new tn(.156,.156).ja(),Wu=new tn(.844,.844).ja(),tn.parse=Bo,tn.stringify=So;function ir(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}ir.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},ir.prototype.setTransform=function(a,y,E,x,b,z){return this.m11=a,this.m12=y,this.m21=E,this.m22=x,this.dx=b,this.dy=z,this},ir.prototype.copy=function(){var a=new ir;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},ir.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},ir.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},ir.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},ir.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},ir.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,E=this.m12*a.m11+this.m22*a.m12,x=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=E,this.m21=x,this.m22=b,this},ir.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),E=a.m22*y,x=-a.m12*y,b=-a.m21*y,z=a.m11*y,ee=y*(a.m21*a.dy-a.m22*a.dx);return a=y*(a.m12*a.dx-a.m11*a.dy),y=this.m11*E+this.m21*x,E=this.m12*E+this.m22*x,x=this.m11*b+this.m21*z,b=this.m12*b+this.m22*z,this.dx=this.m11*ee+this.m21*a+this.dx,this.dy=this.m12*ee+this.m22*a+this.dy,this.m11=y,this.m12=E,this.m21=x,this.m22=b,this},ir.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,E=-this.m21*a,x=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=E,this.m22=x,this.dx=b,this.dy=z,this},ir.prototype.rotate=function(a,y,E){if(360<=a?a-=360:0>a&&(a+=360),a===0)return this;if(this.translate(y,E),a===90){a=0;var x=1}else a===180?(a=-1,x=0):a===270?(a=0,x=-1):(x=a*Math.PI/180,a=Math.cos(x),x=Math.sin(x));var b=this.m12*a+this.m22*x,z=this.m11*-x+this.m21*a,ee=this.m12*-x+this.m22*a;return this.m11=this.m11*a+this.m21*x,this.m12=b,this.m21=z,this.m22=ee,this.translate(-y,-E),this},ke=ir.prototype,ke.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},ke.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},ke.Ga=function(a){var y=a.x,E=a.y;return a.h(y*this.m11+E*this.m21+this.dx,y*this.m12+E*this.m22+this.dy)},ke.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),E=a.x,x=a.y;return a.h(E*this.m22*y+x*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),E*-this.m12*y+x*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},ke.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),E=1.25*a.x,x=1.2*a.y;return a.h(E*this.m22*y+x*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),E*-this.m12*y+x*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},ke.pp=function(a){var y=a.x,E=a.y,x=y+a.width,b=E+a.height,z=this.m11,ee=this.m12,re=this.m21,oe=this.m22,ce=this.dx,fe=this.dy,ye=y*z+E*re+ce,Ne=y*ee+E*oe+fe,Pe=x*z+E*re+ce,Fe=x*ee+E*oe+fe;return E=y*z+b*re+ce,y=y*ee+b*oe+fe,z=x*z+b*re+ce,x=x*ee+b*oe+fe,b=Math.min(ye,Pe),ye=Math.max(ye,Pe),Pe=Math.min(Ne,Fe),Ne=Math.max(Ne,Fe),b=Math.min(b,E),ye=Math.max(ye,E),Pe=Math.min(Pe,y),Ne=Math.max(Ne,y),b=Math.min(b,z),ye=Math.max(ye,z),Pe=Math.min(Pe,x),Ne=Math.max(Ne,x),a.h(b,Pe,ye-b,Ne-Pe),a},ir.alloc=function(){var a=Ga.pop();return a===void 0?new ir:a},ir.free=function(a){Ga.push(a)},ir.prototype.transformRect=ir.prototype.pp,ir.prototype.transformPoint=ir.prototype.Ga,ir.prototype.scale=ir.prototype.scale,ir.prototype.translate=ir.prototype.translate,ir.prototype.rotate=ir.prototype.rotate,ir.prototype.invert=ir.prototype.Vj,ir.prototype.multiplyInverted=ir.prototype.bv,ir.prototype.multiply=ir.prototype.multiply,ir.prototype.reset=ir.prototype.reset,ir.prototype.isIdentity=ir.prototype.ws,ir.prototype.equals=ir.prototype.D,ir.prototype.setTransform=ir.prototype.setTransform,ir.prototype.set=ir.prototype.set;var Ga=[];ir.className="Transform",ir.xF="54a702f3e53909c447824c6706603faf4c";var Ft={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Ft.Uv;if(y===null){y=[];for(var E=0;2e3>=E;E++)y[E]=Math.sqrt(E);Ft.Uv=y}return 1>a?(E=1/a,2e3>=E?1/y[E|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,E,x,b,z,ee){if(0>=b&&(b=1e-6),a<E)var re=a,oe=E;else re=E,oe=a;if(y<x)var ce=y,fe=x;else ce=x,fe=y;if(a===E)return ce<=ee&&ee<=fe&&a-b<=z&&z<=a+b;if(y===x)return re<=z&&z<=oe&&y-b<=ee&&ee<=y+b;if(oe+=b,re-=b,re<=z&&z<=oe&&(fe+=b,ce-=b,ce<=ee&&ee<=fe))if(oe-re>fe-ce)if(a-E>b||E-a>b){if(z=(x-y)/(E-a)*(z-a)+y,z-b<=ee&&ee<=z+b)return!0}else return!0;else if(y-x>b||x-y>b){if(ee=(E-a)/(x-y)*(ee-y)+a,ee-b<=z&&z<=ee+b)return!0}else return!0;return!1},cs:function(a,y,E,x,b,z,ee,re,oe,ce,fe,ye){if(Ft.Yb(a,y,ee,re,ye,E,x)&&Ft.Yb(a,y,ee,re,ye,b,z))return Ft.Yb(a,y,ee,re,ye,ce,fe);var Ne=(a+E)/2,Pe=(y+x)/2,Fe=(E+b)/2,We=(x+z)/2;b=(b+ee)/2,z=(z+re)/2,x=(Ne+Fe)/2,E=(Pe+We)/2,Fe=(Fe+b)/2,We=(We+z)/2;var gt=(x+Fe)/2,nt=(E+We)/2;return Ft.cs(a,y,Ne,Pe,x,E,gt,nt,oe,ce,fe,ye)||Ft.cs(gt,nt,Fe,We,b,z,ee,re,oe,ce,fe,ye)},ax:function(a,y,E,x,b,z,ee,re,oe){var ce=(E+b)/2,fe=(x+z)/2;return oe.h((((a+E)/2+ce)/2+(ce+(b+ee)/2)/2)/2,(((y+x)/2+fe)/2+(fe+(z+re)/2)/2)/2),oe},My:function(a,y,E,x,b,z,ee,re){var oe=(E+b)/2,ce=(x+z)/2;return nr(((a+E)/2+oe)/2,((y+x)/2+ce)/2,(oe+(b+ee)/2)/2,(ce+(z+re)/2)/2)},Dl:function(a,y,E,x,b,z,ee,re,oe,ce){if(Ft.Yb(a,y,ee,re,oe,E,x)&&Ft.Yb(a,y,ee,re,oe,b,z))po(ce,a,y,0,0),po(ce,ee,re,0,0);else{var fe=(a+E)/2,ye=(y+x)/2,Ne=(E+b)/2,Pe=(x+z)/2;b=(b+ee)/2,z=(z+re)/2,x=(fe+Ne)/2,E=(ye+Pe)/2,Ne=(Ne+b)/2,Pe=(Pe+z)/2;var Fe=(x+Ne)/2,We=(E+Pe)/2;Ft.Dl(a,y,fe,ye,x,E,Fe,We,oe,ce),Ft.Dl(Fe,We,Ne,Pe,b,z,ee,re,oe,ce)}return ce},Qe:function(a,y,E,x,b,z,ee,re,oe,ce){if(Ft.Yb(a,y,ee,re,oe,E,x)&&Ft.Yb(a,y,ee,re,oe,b,z))ce.length===0&&(ce.push(a),ce.push(y)),ce.push(ee),ce.push(re);else{var fe=(a+E)/2,ye=(y+x)/2,Ne=(E+b)/2,Pe=(x+z)/2;b=(b+ee)/2,z=(z+re)/2,x=(fe+Ne)/2,E=(ye+Pe)/2,Ne=(Ne+b)/2,Pe=(Pe+z)/2;var Fe=(x+Ne)/2,We=(E+Pe)/2;Ft.Qe(a,y,fe,ye,x,E,Fe,We,oe,ce),Ft.Qe(Fe,We,Ne,Pe,b,z,ee,re,oe,ce)}return ce},jv:function(a,y,E,x,b,z,ee,re,oe,ce){if(Ft.Yb(a,y,b,z,ce,E,x))return Ft.Yb(a,y,b,z,ce,re,oe);var fe=(a+E)/2,ye=(y+x)/2;E=(E+b)/2,x=(x+z)/2;var Ne=(fe+E)/2,Pe=(ye+x)/2;return Ft.jv(a,y,fe,ye,Ne,Pe,ee,re,oe,ce)||Ft.jv(Ne,Pe,E,x,b,z,ee,re,oe,ce)},OA:function(a,y,E,x,b,z,ee){return ee.h(((a+E)/2+(E+b)/2)/2,((y+x)/2+(x+z)/2)/2),ee},iv:function(a,y,E,x,b,z,ee,re){if(Ft.Yb(a,y,b,z,ee,E,x))po(re,a,y,0,0),po(re,b,z,0,0);else{var oe=(a+E)/2,ce=(y+x)/2;E=(E+b)/2,x=(x+z)/2;var fe=(oe+E)/2,ye=(ce+x)/2;Ft.iv(a,y,oe,ce,fe,ye,ee,re),Ft.iv(fe,ye,E,x,b,z,ee,re)}return re},ep:function(a,y,E,x,b,z,ee,re){if(Ft.Yb(a,y,b,z,ee,E,x))re.length===0&&(re.push(a),re.push(y)),re.push(b),re.push(z);else{var oe=(a+E)/2,ce=(y+x)/2;E=(E+b)/2,x=(x+z)/2;var fe=(oe+E)/2,ye=(ce+x)/2;Ft.ep(a,y,oe,ce,fe,ye,ee,re),Ft.ep(fe,ye,E,x,b,z,ee,re)}return re},Eo:function(a,y,E,x,b,z,ee,re,oe,ce,fe,ye,Ne,Pe){if(Ft.Yb(a,y,ee,re,Ne,E,x)&&Ft.Yb(a,y,ee,re,Ne,b,z))return!Ft.Rl(a,y,ee,re,oe,ce,fe,ye)||(Ne=(a-ee)*(ce-ye)-(y-re)*(oe-fe),Ne===0)?!1:(Pe.h(((a*re-y*ee)*(oe-fe)-(a-ee)*(oe*ye-ce*fe))/Ne,((a*re-y*ee)*(ce-ye)-(y-re)*(oe*ye-ce*fe))/Ne),!0);var Fe=(a+E)/2,We=(y+x)/2,gt=(E+b)/2,nt=(x+z)/2;b=(b+ee)/2,z=(z+re)/2,x=(Fe+gt)/2,E=(We+nt)/2,gt=(gt+b)/2,nt=(nt+z)/2;var vt=(x+gt)/2,St=(E+nt)/2,Tt=1/0,Dt=!1,Xt=0,ai=0;return Ft.Eo(a,y,Fe,We,x,E,vt,St,oe,ce,fe,ye,Ne,Pe)&&(a=(Pe.x-oe)*(Pe.x-oe)+(Pe.y-ce)*(Pe.y-ce),a<Tt&&(Tt=a,Dt=!0,Xt=Pe.x,ai=Pe.y)),Ft.Eo(vt,St,gt,nt,b,z,ee,re,oe,ce,fe,ye,Ne,Pe)&&(Pe.x-oe)*(Pe.x-oe)+(Pe.y-ce)*(Pe.y-ce)<Tt&&(Dt=!0,Xt=Pe.x,ai=Pe.y),Dt&&(Pe.x=Xt,Pe.y=ai),Dt},Fo:function(a,y,E,x,b,z,ee,re,oe,ce,fe,ye,Ne){var Pe=0;if(Ft.Yb(a,y,ee,re,Ne,E,x)&&Ft.Yb(a,y,ee,re,Ne,b,z)){if(Ne=(a-ee)*(ce-ye)-(y-re)*(oe-fe),Ne===0)return Pe;var Fe=((a*re-y*ee)*(oe-fe)-(a-ee)*(oe*ye-ce*fe))/Ne,We=((a*re-y*ee)*(ce-ye)-(y-re)*(oe*ye-ce*fe))/Ne;if(Fe>=fe)return Pe;if((oe>fe?oe-fe:fe-oe)<(ce>ye?ce-ye:ye-ce)){if(y<re?(oe=y,a=re):(oe=re,a=y),We<oe||We>a)return Pe}else if(a<ee?(oe=a,a=ee):oe=ee,Fe<oe||Fe>a)return Pe;0<Ne?Pe++:0>Ne&&Pe--}else{Fe=(a+E)/2,We=(y+x)/2;var gt=(E+b)/2,nt=(x+z)/2;b=(b+ee)/2,z=(z+re)/2,x=(Fe+gt)/2,E=(We+nt)/2,gt=(gt+b)/2,nt=(nt+z)/2;var vt=(x+gt)/2,St=(E+nt)/2;Pe+=Ft.Fo(a,y,Fe,We,x,E,vt,St,oe,ce,fe,ye,Ne),Pe+=Ft.Fo(vt,St,gt,nt,b,z,ee,re,oe,ce,fe,ye,Ne)}return Pe},qh:function(a,y,E,x,b,z,ee){return Ft.$(a,E)?(y<x?(E=y,y=x):E=x,z<E?(ee.h(a,E),!1):z>y?(ee.h(a,y),!1):(ee.h(a,z),!0)):Ft.$(y,x)?(a<E?(x=a,a=E):x=E,b<x?(ee.h(x,y),!1):b>a?(ee.h(a,y),!1):(ee.h(b,y),!0)):(b=((a-b)*(a-E)+(y-z)*(y-x))/((E-a)*(E-a)+(x-y)*(x-y)),-5e-6>b?(ee.h(a,y),!1):1.000005<b?(ee.h(E,x),!1):(ee.h(a+b*(E-a),y+b*(x-y)),!0))},Ve:function(a,y,E,x,b,z,ee,re,oe){return Ft.B(a,E)&&Ft.B(y,x)?(oe.h(a,y),!1):Ft.$(b,ee)?Ft.$(a,E)?(Ft.qh(a,y,E,x,b,z,oe),!1):Ft.qh(a,y,E,x,b,(x-y)/(E-a)*(b-a)+y,oe):(re=(re-z)/(ee-b),Ft.$(a,E)?(E=re*(a-b)+z,y<x?(b=y,y=x):b=x,E<b?(oe.h(a,b),!1):E>y?(oe.h(a,y),!1):(oe.h(a,E),!0)):(ee=(x-y)/(E-a),Ft.$(re,ee)?(Ft.qh(a,y,E,x,b,z,oe),!1):(b=(ee*a-re*b+z-y)/(ee-re),Ft.$(ee,0)?(a<E?(x=a,a=E):x=E,b<x?(oe.h(x,y),!1):b>a?(oe.h(a,y),!1):(oe.h(b,y),!0)):Ft.qh(a,y,E,x,b,ee*(b-a)+y,oe))))},MA:function(a,y,E,x,b){return Ft.Ve(E.x,E.y,x.x,x.y,a.x,a.y,y.x,y.y,b)},KA:function(a,y,E,x,b,z,ee,re,oe,ce){function fe(gt,nt){var vt=(gt-a)*(gt-a)+(nt-y)*(nt-y);vt<ye&&(ye=vt,oe.h(gt,nt))}var ye=1/0;fe(oe.x,oe.y);var Ne=0,Pe=0,Fe=0,We=0;if(b<ee?(Ne=b,Pe=ee):(Ne=ee,Pe=b),z<re?(Fe=b,We=ee):(Fe=ee,We=b),Ne=(Pe-Ne)/2+ce,ce=(We-Fe)/2+ce,b=(b+ee)/2,z=(z+re)/2,Ne===0||ce===0)return oe;if(.5>(E>a?E-a:a-E)){if(Ne=1-(E-b)*(E-b)/(Ne*Ne),0>Ne)return oe;Ne=Math.sqrt(Ne),x=-ce*Ne+z,fe(E,ce*Ne+z),fe(E,x)}else{if(E=(x-y)/(E-a),x=1/(Ne*Ne)+E*E/(ce*ce),re=2*E*(y-E*a)/(ce*ce)-2*E*z/(ce*ce)-2*b/(Ne*Ne),Ne=re*re-4*x*(2*E*a*z/(ce*ce)-2*y*z/(ce*ce)+z*z/(ce*ce)+b*b/(Ne*Ne)-1+(y-E*a)*(y-E*a)/(ce*ce)),0>Ne)return oe;Ne=Math.sqrt(Ne),ce=(-re+Ne)/(2*x),fe(ce,E*ce-E*a+y),Ne=(-re-Ne)/(2*x),fe(Ne,E*Ne-E*a+y)}return oe},Ff:function(a,y,E,x,b,z,ee,re,oe){var ce=1e21,fe=a,ye=y;if(Ft.Ve(a,y,a,x,b,z,ee,re,oe)){var Ne=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z);Ne<ce&&(ce=Ne,fe=oe.x,ye=oe.y)}return Ft.Ve(E,y,E,x,b,z,ee,re,oe)&&(Ne=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z),Ne<ce&&(ce=Ne,fe=oe.x,ye=oe.y)),Ft.Ve(a,y,E,y,b,z,ee,re,oe)&&(y=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z),y<ce&&(ce=y,fe=oe.x,ye=oe.y)),Ft.Ve(a,x,E,x,b,z,ee,re,oe)&&(a=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z),a<ce&&(ce=a,fe=oe.x,ye=oe.y)),oe.h(fe,ye),1e21>ce},us:function(a,y,E){return Ft.Fx(a.x,a.y,a.width,a.height,y.x,y.y,E.x,E.y)},Fx:function(a,y,E,x,b,z,ee,re){var oe=a+E,ce=y+x;return b===ee?(z<re?(ee=z,z=re):ee=re,a<=b&&b<=oe&&ee<=ce&&z>=y):z===re?(b<ee?(re=b,b=ee):re=ee,y<=z&&z<=ce&&re<=oe&&b>=a):!!(ca(a,y,E,x,b,z)||ca(a,y,E,x,ee,re)||Ft.Rl(a,y,oe,y,b,z,ee,re)||Ft.Rl(oe,y,oe,ce,b,z,ee,re)||Ft.Rl(oe,ce,a,ce,b,z,ee,re)||Ft.Rl(a,ce,a,y,b,z,ee,re))},Rl:function(a,y,E,x,b,z,ee,re){return a===E&&y===x&&b===ee&&z===re?a===b&&y===z:0>=Ft.Fl(a,y,E,x,b,z)*Ft.Fl(a,y,E,x,ee,re)&&0>=Ft.Fl(b,z,ee,re,a,y)*Ft.Fl(b,z,ee,re,E,x)},Fl:function(a,y,E,x,b,z){return E-=a,x-=y,a=b-a,y=z-y,z=a*x-y*E,z===0&&(z=a*E+y*x,0<z&&(z=(a-E)*E+(y-x)*x,0>z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,E,x,b,z){var ee=Math.PI;z||(x*=ee/180,b*=ee/180);var re=x>b?-1:1;z=[];var oe=ee/2,ce=x;if(x=Math.min(2*ee,Math.abs(b-x)),1e-5>x)return oe=ce+re*Math.min(x,oe),re=a+E*Math.cos(ce),ce=y+E*Math.sin(ce),a+=E*Math.cos(oe),y+=E*Math.sin(oe),E=(re+a)/2,oe=(ce+y)/2,z.push([re,ce,E,oe,E,oe,a,y]),z;for(;1e-5<x;)b=ce+re*Math.min(x,oe),z.push(Ft.Vy(E,ce,b,a,y)),x-=Math.abs(b-ce),ce=b;return z},Vy:function(a,y,E,x,b){var z=(E-y)/2,ee=a*Math.cos(z),re=a*Math.sin(z),oe=-re,ce=ee*ee+oe*oe,fe=ce+ee*ee+oe*re;return ce=4/3*(Math.sqrt(2*ce*fe)-fe)/(ee*re-oe*ee),re=ee-ce*oe,ee=oe+ce*ee,oe=-ee,ce=z+y,z=Math.cos(ce),ce=Math.sin(ce),[x+a*Math.cos(y),b+a*Math.sin(y),x+re*z-ee*ce,b+re*ce+ee*z,x+re*z-oe*ce,b+re*ce+oe*z,x+a*Math.cos(E),b+a*Math.sin(E)]},No:function(a,y,E,x,b,z,ee){E=Math.floor((a-E)/b)*b+E,x=Math.floor((y-x)/z)*z+x;var re=E;return E+b-a<b/2&&(re=E+b),a=x,x+z-y<z/2&&(a=x+z),ee.h(re,a),ee},vx:function(a,y){var E=Math.max(a,y);a=Math.min(a,y);var x;do y=E%a,E=x=a,a=y;while(0<y);return x},$y:function(a,y,E,x){var b=0>E,z=0>x;if(a<y)var ee=1,re=0;else ee=0,re=1;var oe=ee===0?a:y,ce=ee===0?E:x;return(ee===0?b:z)&&(ce=-ce),ee=re,E=ee===0?E:x,(ee===0?b:z)&&(E=-E),Ft.az(oe,ee===0?a:y,ce,E,0,0)},az:function(a,y,E,x,b,z){if(0<x)if(0<E){b=a*a,z=y*y,a*=E;var ee=y*x,re=-z+ee,oe=-z+Math.sqrt(a*a+ee*ee);y=re;for(var ce=0;9999999999>ce&&(y=.5*(re+oe),!(y===re||y===oe));++ce){var fe=a/(y+b),ye=ee/(y+z);if(fe=fe*fe+ye*ye-1,0<fe)re=y;else if(0>fe)oe=y;else break}E=b*E/(y+b)-E,x=z*x/(y+z)-x,E=Math.sqrt(E*E+x*x)}else E=Math.abs(x-y);else x=a*a-y*y,z=a*E,z<x?(x=z/x,z=y*Math.sqrt(Math.abs(1-x*x)),E=a*x-E,E=Math.sqrt(E*E+z*z)):E=Math.abs(E-a);return E},Ze:new Li,um:new Li,Mf:new Li,Nf:0,vm:100};Ft.za=Ft.AA;function Qn(a){Lr(this),this.l=2,a===void 0&&(a=Qn.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Qn.o?this.ee=new Un:(Qn.V===null&&(Qn.V=new Un().freeze()),this.ee=Qn.V),this.aq=this.ee.Ja,this.Ip=new pn().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=_i,this.gg=co,this.Rk=this.Sk=NaN,this.Uf=Gn}Qn.prototype.copy=function(){var a=new Qn;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===Qn.o){for(var y=this.ee.s,E=a.ee,x=0;x<y.length;x++)E.add(y[x].copy());a.ee=E}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},Qn.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Qn.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Qn.o)return this;var a=this.figures;a.freeze(),a=a.s;for(var y=a.length,E=0;E<y;E++)a[E].freeze();return this},Qn.prototype.ka=function(){if(Object.isFrozen(this)&<("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Qn.o)return this;var a=this.figures;a.ka(),a=a.s;for(var y=a.length,E=0;E<y;E++)a[E].ka();return this},Qn.prototype.Xa=function(a){if(!(a instanceof Qn))return!1;if(this.type!==a.type)return this.type===Qn.j&&a.type===Qn.o?xl(this,a):a.type===Qn.j&&this.type===Qn.o?xl(a,this):!1;if(this.type===Qn.o){var y=this.figures.s;a=a.figures.s;var E=y.length;if(E!==a.length)return!1;for(var x=0;x<E;x++)if(!y[x].Xa(a[x]))return!1;return!0}return Ft.B(this.startX,a.startX)&&Ft.B(this.startY,a.startY)&&Ft.B(this.endX,a.endX)&&Ft.B(this.endY,a.endY)};function xl(a,y){return a.type!==Qn.j||y.type!==Qn.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&Ft.B(a.startX,y.startX)&&Ft.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===mo&&Ft.B(a.endX,y.endX)&&Ft.B(a.endY,y.endY))))}Qn.ia=function(a){return a.toString()},Qn.prototype.qb=function(a){a.classType===Qn&&(this.type=a)},Qn.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Qn.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 Qn.u:var y=new pn(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 Qn.F:if(y=new pn(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 E=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+E+"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 "+E;case Qn.o:y="",E=this.figures.s;for(var x=E.length,b=0;b<x;b++){var z=E[b];0<b&&(y+=" x "),z.isFilled&&(y+="F "),y+=z.toString(a)}return y;default:return this.type.toString()}},Qn.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,E="",x=0;x<y;x++){var b=a[x];E=b.match(/[Ff]/)!==null?x===0?E+b:E+("X"+(b[0]===" "?"":" ")+b):E+((x===0?"":"X ")+"F"+(b[0]===" "?"":" ")+b)}return E},Qn.parse=function(a,y){function E(){return We>=Tt-1?!0:ce[We+1].match(Dt)!==null}function x(){return We++,ce[We]}function b(cr){var $i=parseFloat(x()),Wr=parseFloat(x());gt===gt.toLowerCase()&&($i=St.x+$i,Wr=St.y+Wr),cr.h($i,Wr)}function z(){return b(St),St}function ee(){return b(vt),vt}function re(){var cr=nt.toLowerCase();return cr!=="c"&&cr!=="s"&&cr!=="q"&&cr!=="t"?St:new dt(2*St.x-vt.x,2*St.y-vt.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 ce=a.split(" ");for(a=0;a<ce.length;a++){var fe=ce[a];if(fe.match(/(\.[0-9]*)(\.)/gm)!==null){oe=ci();for(var ye="",Ne=!1,Pe=0;Pe<fe.length;Pe++){var Fe=fe[Pe];Fe!=="."||Ne?Fe==="."?(oe.push(ye),ye="."):ye+=Fe:(Ne=!0,ye+=Fe)}for(oe.push(ye),ce.splice(a,1),fe=0;fe<oe.length;fe++)ce.splice(a+fe,0,oe[fe]);a+=oe.length-1,pi(oe)}}var We=-1,gt="",nt="";oe=new dt(0,0);var vt=new dt(0,0),St=new dt(0,0),Tt=ce.length;a=R1(null),Ne=ye=fe=!1,Pe=!0,Fe=null;for(var Dt=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(We>=Tt-1);)if(nt=gt,gt=x(),gt!=="")switch(gt.toUpperCase()){case"X":Pe=!0,ye=fe=!1;break;case"M":for(Fe=z(),a.mc===null||Pe===!0?(eg(a,Fe.x,Fe.y,fe,!ye,Ne),Pe=!1):a.moveTo(Fe.x,Fe.y),oe.assign(St);!E();)Fe=z(),a.lineTo(Fe.x,Fe.y);break;case"L":for(;!E();)Fe=z(),a.lineTo(Fe.x,Fe.y);break;case"H":for(;!E();)St=new dt((gt===gt.toLowerCase()?St.x:0)+parseFloat(x()),St.y),a.lineTo(St.x,St.y);break;case"V":for(;!E();)St=new dt(St.x,(gt===gt.toLowerCase()?St.y:0)+parseFloat(x())),a.lineTo(St.x,St.y);break;case"C":for(;!E();){Fe=new dt,b(Fe);var Xt=ee(),ai=z();Sd(a,Fe.x,Fe.y,Xt.x,Xt.y,ai.x,ai.y)}break;case"S":for(;!E();)Fe=re(),Xt=ee(),ai=z(),Sd(a,Fe.x,Fe.y,Xt.x,Xt.y,ai.x,ai.y);break;case"Q":for(;!E();)Fe=ee(),Xt=z(),Hm(a,Fe.x,Fe.y,Xt.x,Xt.y);break;case"T":for(;!E();)vt=Fe=re(),Xt=z(),Hm(a,Fe.x,Fe.y,Xt.x,Xt.y);break;case"B":for(;!E();){Fe=parseFloat(x()),Xt=parseFloat(x()),ai=parseFloat(x());var Ci=parseFloat(x()),Ei=parseFloat(x()),Xn=Ei,In=!1;E()||(Xn=parseFloat(x()),E()||(In=parseFloat(x())!==0)),gt===gt.toLowerCase()&&(ai+=St.x,Ci+=St.y),a.arcTo(Fe,Xt,ai,Ci,Ei,Xn,In)}break;case"A":for(;!E();)Fe=Math.abs(parseFloat(x())),Xt=Math.abs(parseFloat(x())),ai=parseFloat(x()),Ei=Ci=!1,In=Xn=0,Xn=x(),Xn.length===1?(Ci=!!parseFloat(Xn),Ei=!!parseFloat(x()),Xn=parseFloat(x())):Xn.length===2?(Ci=!!parseFloat(Xn[0]),Ei=!!parseFloat(Xn[1]),Xn=parseFloat(x())):(Ci=!!parseFloat(Xn[0]),Ei=!!parseFloat(Xn[1]),Xn=parseFloat(Xn.slice(2))),In=parseFloat(x()),gt===gt.toLowerCase()&&(Xn=St.x+Xn,In=St.y+In),St.h(Xn,In),kE(a,Fe,Xt,ai,Ci,Ei,Xn,In);break;case"Z":IE(a),St.assign(oe);break;case"F":for(Fe="",Xt=1;ce[We+Xt];)if(ce[We+Xt]==="0")Ne=!0,Xt++;else if(ce[We+Xt].match(/[Uu]/)!==null)Xt++;else if(ce[We+Xt].match(Dt)===null)Xt++;else{Fe=ce[We+Xt];break}Fe.match(/[Mm]/)?fe=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Fe="",Xt=1;ce[We+Xt];)if(ce[We+Xt].match(/[Ff]/)!==null)Xt++;else if(ce[We+Xt].match(Dt)===null)Xt++;else{Fe=ce[We+Xt];break}Fe.match(/[Mm]/)?ye=!0:a.mc.isShadowed=!1}if(oe=a.os,Gm=a,y)for(y=oe.figures.iterator;y.next();)y.value.isFilled=!0;return oe},Qn.Ha=function(a,y){for(var E=a.length,x=dt.alloc(),b=0;b<E;b++){var z=a[b];x.x=z[0],x.y=z[1],y.Ga(x),z[0]=x.x,z[1]=x.y,x.x=z[2],x.y=z[3],y.Ga(x),z[2]=x.x,z[3]=x.y,x.x=z[4],x.y=z[5],y.Ga(x),z[4]=x.x,z[5]=x.y,x.x=z[6],x.y=z[7],y.Ga(x),z[6]=x.x,z[7]=x.y}dt.free(x)},Qn.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Qn.o){if(this.aq!==this.figures.Ja)return!0;for(var a=this.figures.s,y=a.length,E=0;E<y;E++)if(a[E].Zu())return!0}return!1},Qn.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Qn.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,E=0;E<y;E++){var x=a[E];x._isInvalidBounds=!1;var b=x.segments;x.sr=b.Ja,x=b.s,b=x.length;for(var z=0;z<b;z++){var ee=x[z];ee._isInvalidBounds=!1,ee.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),uu(this,a,!1),po(a,0,0,0,0),a.freeze()},Qn.prototype.ix=function(){var a=new pn;return uu(this,a,!0),a};function uu(a,y,E){switch(a.type){case Qn.j:case Qn.u:case Qn.F:E?y.h(a.od,a.pd,0,0):po(y,a.od,a.pd,0,0),po(y,a.Dc,a.Ec,0,0);break;case Qn.o:var x=a.figures;a=x.s,x=x.length;for(var b=0;b<x;b++){var z=a[b];E&&b===0?y.h(z.startX,z.startY,0,0):po(y,z.startX,z.startY,0,0);for(var ee=z.segments.s,re=ee.length,oe=z.startX,ce=z.startY,fe=0;fe<re;fe++){var ye=ee[fe];switch(ye.type){case mo:case Po:oe=ye.endX,ce=ye.endY,po(y,oe,ce,0,0);break;case Ba:Ft.Dl(oe,ce,ye.point1X,ye.point1Y,ye.point2X,ye.point2Y,ye.endX,ye.endY,.5,y),oe=ye.endX,ce=ye.endY;break;case Fs:Ft.iv(oe,ce,ye.point1X,ye.point1Y,ye.endX,ye.endY,.5,y),oe=ye.endX,ce=ye.endY;break;case ea:case el:var Ne=ye.type===ea?as(ye,z):Ns(ye,z,oe,ce),Pe=Ne.length;if(Pe===0){oe=ye.type===ea?ye.centerX:ye.endX,ce=ye.type===ea?ye.centerY:ye.endY,po(y,oe,ce,0,0);break}ye=null;for(var Fe=0;Fe<Pe;Fe++)ye=Ne[Fe],Ft.Dl(ye[0],ye[1],ye[2],ye[3],ye[4],ye[5],ye[6],ye[7],.5,y);ye!==null&&(oe=ye[6],ce=ye[7]);break;default:lt("Unknown Segment type: "+ye.type)}}}break;default:lt("Unknown Geometry type: "+a.type)}}Qn.prototype.normalize=function(){this._isFrozen&&Ut(this);var a=this.ix();return this.offset(-a.x,-a.y),new dt(-a.x,-a.y)},Qn.prototype.offset=function(a,y){return this._isFrozen&&Ut(this),this.transform(1,0,0,1,a,y),this},Qn.prototype.scale=function(a,y){return this._isFrozen&&Ut(this),this.transform(a,0,0,y,0,0),this},Qn.prototype.rotate=function(a,y,E){this._isFrozen&&Ut(this),y===void 0&&(y=0),E===void 0&&(E=0);var x=ir.alloc();return x.reset(),x.rotate(a,y,E),this.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),ir.free(x),this},ke=Qn.prototype,ke.transform=function(a,y,E,x,b,z){switch(this.type){case Qn.j:case Qn.u:case Qn.F:var ee=this.od,re=this.pd;this.od=ee*a+re*E+b,this.pd=ee*y+re*x+z,ee=this.Dc,re=this.Ec,this.Dc=ee*a+re*E+b,this.Ec=ee*y+re*x+z;break;case Qn.o:for(var oe=this.figures.s,ce=oe.length,fe=0;fe<ce;fe++){var ye=oe[fe];ee=ye.startX,re=ye.startY,ye.startX=ee*a+re*E+b,ye.startY=ee*y+re*x+z,ye=ye.segments.s;for(var Ne=ye.length,Pe=0;Pe<Ne;Pe++){var Fe=ye[Pe];switch(Fe.type){case mo:case Po:ee=Fe.endX,re=Fe.endY,Fe.endX=ee*a+re*E+b,Fe.endY=ee*y+re*x+z;break;case Ba:ee=Fe.point1X,re=Fe.point1Y,Fe.point1X=ee*a+re*E+b,Fe.point1Y=ee*y+re*x+z,ee=Fe.point2X,re=Fe.point2Y,Fe.point2X=ee*a+re*E+b,Fe.point2Y=ee*y+re*x+z,ee=Fe.endX,re=Fe.endY,Fe.endX=ee*a+re*E+b,Fe.endY=ee*y+re*x+z;break;case Fs:ee=Fe.point1X,re=Fe.point1Y,Fe.point1X=ee*a+re*E+b,Fe.point1Y=ee*y+re*x+z,ee=Fe.endX,re=Fe.endY,Fe.endX=ee*a+re*E+b,Fe.endY=ee*y+re*x+z;break;case ea:ee=Fe.centerX,re=Fe.centerY,Fe.centerX=ee*a+re*E+b,Fe.centerY=ee*y+re*x+z,y!==0&&(ee=180*Math.atan2(y,a)/Math.PI,0>ee&&(ee+=360),Fe.startAngle+=ee),0>a&&(Fe.startAngle=180-Fe.startAngle,Fe.sweepAngle=-Fe.sweepAngle),0>x&&(Fe.startAngle=-Fe.startAngle,Fe.sweepAngle=-Fe.sweepAngle),Fe.radiusX*=Math.sqrt(a*a+E*E),Fe.radiusY!==void 0&&(Fe.radiusY*=Math.sqrt(y*y+x*x));break;case el:if(ee=Fe.endX,re=Fe.endY,Fe.endX=ee*a+re*E+b,Fe.endY=ee*y+re*x+z,Fe.radiusX===0||Fe.radiusY===0)break;y!==0&&(ee=180*Math.atan2(y,a)/Math.PI,0>ee&&(ee+=360),Fe.xAxisRotation+=ee),0>a&&(Fe.xAxisRotation=180-Fe.xAxisRotation,Fe.isClockwiseArc=!Fe.isClockwiseArc),0>x&&(Fe.xAxisRotation=-Fe.xAxisRotation,Fe.isClockwiseArc=!Fe.isClockwiseArc),Fe.radiusX*=Math.sqrt(a*a+E*E),Fe.radiusY*=Math.sqrt(y*y+x*x);break;default:lt("Unknown Segment type: "+Fe.type)}}}}return this._isInvalidBounds=!0,this},ke.ca=function(a,y){y===void 0&&(y=0);var E=this.od,x=this.pd,b=this.Dc,z=this.Ec;switch(this.type){case Qn.j:return Ft.Yb(E,x,b,z,y,a.x,a.y);case Qn.u:var ee=pn.allocAt(Math.min(E,b)-y,Math.min(x,z)-y,Math.abs(b-E)+2*y,Math.abs(z-x)+2*y);return a=ee.ca(a),pn.free(ee),a;case Qn.F:ee=Math.min(E,b)-y;var re=Math.min(x,z)-y;return E=(Math.abs(b-E)+2*y)/2,y=(Math.abs(z-x)+2*y)/2,0>=E||0>=y?!1:(ee=a.x-(ee+E),re=a.y-(re+y),1>=ee*ee/(E*E)+re*re/(y*y));case Qn.o:return Cs(this,a,y,!0,!1);default:return!1}};function Cs(a,y,E,x,b){var z=y.x;y=y.y;for(var ee=a.bounds.x-20,re=0,oe,ce,fe,ye,Ne=a.figures.s,Pe=Ne.length,Fe=0;Fe<Pe;Fe++){var We=Ne[Fe],gt=!We.isEvenOdd;if(We.isFilled){if(x&&We.ca(z,y,E))return!0;var nt=We.segments;oe=We.startX,ce=We.startY;for(var vt=oe,St=ce,Tt=nt.s,Dt=0;Dt<=nt.length;Dt++){var Xt=void 0;if(Dt!==nt.length){Xt=Tt[Dt];var ai=Xt.type;a=Xt.endX,ye=Xt.endY}else ai=mo,a=vt,ye=St;switch(ai){case Po:if(vt=fs(z,y,ee,y,oe,ce,vt,St),isNaN(vt))return!0;re+=vt,vt=a,St=ye;break;case mo:if(oe=fs(z,y,ee,y,oe,ce,a,ye),isNaN(oe))return!0;re+=oe;break;case Ba:fe=Ft.Fo(oe,ce,Xt.point1X,Xt.point1Y,Xt.point2X,Xt.point2Y,a,ye,ee,y,z,y,.5),re+=fe;break;case Fs:fe=Ft.Fo(oe,ce,(oe+2*Xt.point1X)/3,(ce+2*Xt.point1Y)/3,(2*Xt.point1X+a)/3,(2*Xt.point1Y+ye)/3,a,ye,ee,y,z,y,.5),re+=fe;break;case ea:case el:ai=Xt.type===ea?as(Xt,We):Ns(Xt,We,oe,ce);var Ci=ai.length;if(Ci===0){if(oe=fs(z,y,ee,y,oe,ce,Xt.type===ea?Xt.centerX:Xt.endX,Xt.type===ea?Xt.centerY:Xt.endY),isNaN(oe))return!0;re+=oe;break}Xt=null;for(var Ei=0;Ei<Ci;Ei++){if(Xt=ai[Ei],Ei===0){if(fe=fs(z,y,ee,y,oe,ce,Xt[0],Xt[1]),isNaN(fe))return!0;re+=fe}fe=Ft.Fo(Xt[0],Xt[1],Xt[2],Xt[3],Xt[4],Xt[5],Xt[6],Xt[7],ee,y,z,y,.5),re+=fe}Xt!==null&&(a=Xt[6],ye=Xt[7]);break;default:lt("Unknown Segment type: "+Xt.type)}oe=a,ce=ye}if(gt){if(re!==0)return!0}else if(re%2!==0)return!0;re=0}else if(We.ca(z,y,b?E:E+2))return!0}return!1}function fs(a,y,E,x,b,z,ee,re){if(Ft.Yb(b,z,ee,re,.05,a,y))return NaN;var oe=(a-E)*(z-re);if(oe===0)return 0;var ce=((a*x-y*E)*(b-ee)-(a-E)*(b*re-z*ee))/oe;if(y=(a*x-y*E)*(z-re)/oe,ce>=a)return 0;if((b>ee?b-ee:ee-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<ee){if(ce<b||ce>ee)return 0}else if(ce<ee||ce>b)return 0;return 0<oe?1:-1}function Rl(a,y,E,x){a=a.figures.s;for(var b=a.length,z=0;z<b;z++)if(a[z].ca(y,E,x))return!0;return!1}ke.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new dt),this.type===Qn.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var E=this.flattenedSegments,x=this.flattenedLengths,b=E.length,z=this.flattenedTotalLength*a,ee=0,re=0;re<b;re++){var oe=x[re],ce=oe.length;for(a=0;a<ce;a++){var fe=oe[a];if(ee+fe>=z)return x=z-ee,x=fe===0?0:x/fe,E=E[re],re=E[2*a],b=E[2*a+1],y.h(re+(E[2*a+2]-re)*x,b+(E[2*a+3]-b)*x),y;ee+=fe}}return y},ke.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===Qn.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,E=this.flattenedLengths,x=y.length,b=this.flattenedTotalLength*a,z=0,ee=0;ee<x;ee++){var re=E[ee],oe=re.length;for(a=0;a<oe;a++){var ce=re[a];if(z+ce>=b)return b=y[ee],y=b[2*a],E=b[2*a+1],x=b[2*a+2],a=b[2*a+3],1>Math.abs(x-y)&&1>Math.abs(a-E)?0:1>Math.abs(x-y)?0<=a-E?90:270:1>Math.abs(a-E)?0<=x-y?0:180:180*Math.atan2(a-E,x-y)/Math.PI;z+=ce}}return NaN},ke.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===Qn.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 E=this.flattenedSegments,x=this.flattenedLengths,b=E.length,z=this.flattenedTotalLength*a,ee=0,re=0;re<b;re++){var oe=x[re],ce=oe.length;for(a=0;a<ce;a++){var fe=oe[a];if(ee+fe>=z)return x=z-ee,x=fe===0?0:x/fe,fe=E[re],E=fe[2*a],re=fe[2*a+1],b=fe[2*a+2],a=fe[2*a+3],y[0]=E+(b-E)*x,y[1]=re+(a-re)*x,y[2]=1>Math.abs(b-E)&&1>Math.abs(a-re)?0:1>Math.abs(b-E)?0<=a-re?90:270:1>Math.abs(a-re)?0<=b-E?0:180:180*Math.atan2(a-re,b-E)/Math.PI,y;ee+=fe}}return y},ke.xx=function(a){if(this.type===Qn.j){var y=this.startX,E=this.startY,x=this.endX,b=this.endY;if(y!==x||E!==b){var z=a.x;if(a=a.y,y===x){if(E<b){var ee=E;x=b}else ee=b,x=E;return a<=ee?ee===E?0:1:a>=x?x===E?0:1:Math.abs(a-E)/(x-ee)}if(E===b)return y<x?ee=y:(ee=x,x=y),z<=ee?ee===y?0:1:z>=x?x===y?0:1:Math.abs(z-y)/(x-ee);ee=(x-y)*(x-y)+(b-E)*(b-E);var re=dt.alloc();return Ft.qh(y,E,x,b,z,a,re),a=re.x,z=re.y,dt.free(re),Math.sqrt(((a-y)*(a-y)+(z-E)*(z-E))/ee)}}else if(this.type===Qn.u){ee=this.startX,re=this.startY;var oe=this.endX;if(b=this.endY,ee!==oe||re!==b){y=oe-ee,E=b-re,z=2*y+2*E,x=a.x,a=a.y,x=Math.min(Math.max(x,ee),oe),a=Math.min(Math.max(a,re),b),ee=Math.abs(x-ee),oe=Math.abs(x-oe),re=Math.abs(a-re),b=Math.abs(a-b);var ce=Math.min(ee,oe,re,b);if(ce===re)return x/z;if(ce===oe)return(y+a)/z;if(ce===b)return(2*y+E-x)/z;if(ce===ee)return(2*y+2*E-a)/z}}else{y=this.flattenedSegments,E=this.flattenedLengths,z=this.flattenedTotalLength,x=dt.alloc(),b=1/0,re=ee=0,oe=y.length;for(var fe=ce=0,ye=0;ye<oe;ye++)for(var Ne=y[ye],Pe=E[ye],Fe=Ne.length,We=0;We<Fe;We+=2){var gt=Ne[We],nt=Ne[We+1];if(We!==0){Ft.qh(ce,fe,gt,nt,a.x,a.y,x);var vt=(x.x-a.x)*(x.x-a.x)+(x.y-a.y)*(x.y-a.y);vt<b&&(b=vt,ee=re,ee+=Math.sqrt((x.x-ce)*(x.x-ce)+(x.y-fe)*(x.y-fe))),re+=Pe[(We-2)/2]}ce=gt,fe=nt}return dt.free(x),a=ee/z,0>a?0:1<a?1:a}return 0};function cu(a){if(a.tk===null){var y=a.tk=[],E=a.ym=[],x=[],b=[];if(a.type===Qn.j)x.push(a.startX),x.push(a.startY),x.push(a.endX),x.push(a.endY),y.push(x),b.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),E.push(b);else if(a.type===Qn.u)x.push(a.startX),x.push(a.startY),x.push(a.endX),x.push(a.startY),x.push(a.endX),x.push(a.endY),x.push(a.startX),x.push(a.endY),x.push(a.startX),x.push(a.startY),y.push(x),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)),E.push(b);else if(a.type===Qn.F){var z=new pa;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var ee=new jr(ea);if(ee.startAngle=0,ee.sweepAngle=360,ee.centerX=(a.startX+a.endX)/2,ee.centerY=(a.startY+a.endY)/2,ee.radiusX=Math.abs(a.startX-a.endX)/2,ee.radiusY=Math.abs(a.startY-a.endY)/2,z.add(ee),a=as(ee,z),b=a.length,b===0)x.push(ee.centerX),x.push(ee.centerY);else{ee=z.startX,z=z.startY;for(var re=0;re<b;re++){var oe=a[re];Ft.Qe(ee,z,oe[2],oe[3],oe[4],oe[5],oe[6],oe[7],.5,x),ee=oe[6],z=oe[7]}}y.push(x),E.push(Wc(x))}else for(a=a.figures.iterator;a.next();){b=a.value,x=[],x.push(b.startX),x.push(b.startY),ee=b.startX,z=b.startY,re=ee,oe=z;for(var ce=b.segments.s,fe=ce.length,ye=0;ye<fe;ye++){var Ne=ce[ye];switch(Ne.type){case Po:4<=x.length&&(y.push(x),E.push(Wc(x))),x=[],x.push(Ne.endX),x.push(Ne.endY),ee=Ne.endX,z=Ne.endY,re=ee,oe=z;break;case mo:x.push(Ne.endX),x.push(Ne.endY),ee=Ne.endX,z=Ne.endY;break;case Ba:Ft.Qe(ee,z,Ne.point1X,Ne.point1Y,Ne.point2X,Ne.point2Y,Ne.endX,Ne.endY,.5,x),ee=Ne.endX,z=Ne.endY;break;case Fs:Ft.ep(ee,z,Ne.point1X,Ne.point1Y,Ne.endX,Ne.endY,.5,x),ee=Ne.endX,z=Ne.endY;break;case ea:var Pe=as(Ne,b),Fe=Pe.length;if(Fe===0){x.push(Ne.centerX),x.push(Ne.centerY),ee=Ne.centerX,z=Ne.centerY;break}for(var We=0;We<Fe;We++){var gt=Pe[We];Ft.Qe(ee,z,gt[2],gt[3],gt[4],gt[5],gt[6],gt[7],.5,x),ee=gt[6],z=gt[7]}break;case el:if(Pe=Ns(Ne,b,ee,z),Fe=Pe.length,We=Ne.endX,gt=Ne.endY,Fe===0){x.push(We),x.push(gt),ee=We,z=gt;break}for(We=0;We<Fe;We++)gt=Pe[We],Ft.Qe(ee,z,gt[2],gt[3],gt[4],gt[5],gt[6],gt[7],.5,x),ee=gt[6],z=gt[7];break;default:lt("Segment not of valid type: "+Ne.type)}Ne.isClosed&&(x.push(re),x.push(oe))}4<=x.length&&(y.push(x),E.push(Wc(x)))}}}function Wc(a){for(var y=[],E=0,x=0,b=a.length,z=0;z<b;z+=2){var ee=a[z],re=a[z+1];z!==0&&y.push(Math.sqrt(uo(E,x,ee,re))),E=ee,x=re}return y}ke.add=function(a){return this.ee.add(a),this},ke.pm=function(a,y,E,x,b,z,ee,re){return this._isFrozen&&Ut(this),this.fg=new tn(a,y,b,z).freeze(),this.gg=new tn(E,x,ee,re).freeze(),this},zt.Object.defineProperties(Qn.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 cu(this),this.tk}},flattenedLengths:{get:function(){return cu(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===Qn.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===Qn.u)a=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{y=this.flattenedLengths;for(var E=y.length,x=a=0;x<E;x++)for(var b=y[x],z=b.length,ee=0;ee<z;ee++)a+=b[ee]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&Ut(this,a),this.na=a,a===Qn.o?this.ee=new Un:(Qn.V===null&&(Qn.V=new Un().freeze()),this.ee=Qn.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&Ut(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&Ut(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&Ut(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&Ut(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&Ut(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&Ut(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&Ut(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&Ut(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Qn.prototype.setSpots=Qn.prototype.pm,Qn.prototype.add=Qn.prototype.add,Qn.prototype.getFractionForPoint=Qn.prototype.xx,Qn.prototype.getPointAndAngleAlongPath=Qn.prototype.Qu,Qn.prototype.getAngleAlongPath=Qn.prototype.wx,Qn.prototype.getPointAlongPath=Qn.prototype.Pu,Qn.prototype.containsPoint=Qn.prototype.ca,Qn.prototype.transform=Qn.prototype.transform,Qn.prototype.rotate=Qn.prototype.rotate,Qn.prototype.scale=Qn.prototype.scale,Qn.prototype.offset=Qn.prototype.offset,Qn.prototype.normalize=Qn.prototype.normalize,Qn.prototype.computeBoundsWithoutOrigin=Qn.prototype.ix,Qn.prototype.equalsApprox=Qn.prototype.Xa,Qn.className="Geometry",Qn.j=new Mn(Qn,"Line",0),Qn.u=new Mn(Qn,"Rectangle",1),Qn.F=new Mn(Qn,"Ellipse",2),Qn.o=new Mn(Qn,"Path",3),Qn.V=null,Qn.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Qn.className="Geometry",Qn.stringify=Qn.ia,Qn.fillPath=Qn.nb,Qn.parse=Qn.parse,Qn.Line=Qn.j,Qn.Rectangle=Qn.u,Qn.Ellipse=Qn.F,Qn.Path=Qn.o;function pa(a,y,E,x,b){Lr(this),E===void 0&&(E=!0),x===void 0&&(x=!0),b===void 0&&(b=!1),this.l=2|(E?4:0)|(x?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 Un,this.sr=this.pl.Ja,this.fw=null}pa.prototype.copy=function(){var a=new pa;a.l=this.l&-2,a.od=this.od,a.pd=this.pd;for(var y=this.pl.s,E=y.length,x=a.pl,b=0;b<E;b++){var z=y[b].copy();x.add(z)}return a.sr=this.sr,a.fw=this.fw,a},ke=pa.prototype,ke.Xa=function(a){if(!(a instanceof pa&&Ft.B(this.startX,a.startX)&&Ft.B(this.startY,a.startY)))return!1;var y=this.segments.s;a=a.segments.s;var E=y.length;if(E!==a.length)return!1;for(var x=0;x<E;x++)if(!y[x].Xa(a[x]))return!1;return!0},ke.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),E=this.segments.s,x=E.length,b=0;b<x;b++)y+=" "+E[b].toString(a);return y},ke.freeze=function(){this._isFrozen=!0;var a=this.segments;a.freeze();var y=a.s;a=a.length;for(var E=0;E<a;E++)y[E].freeze();return this},ke.ka=function(){this._isFrozen=!1;var a=this.segments;a.ka(),a=a.s;for(var y=a.length,E=0;E<y;E++)a[E].ka();return this},ke.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,E=0;E<y;E++)if(a[E]._isInvalidBounds)return!0;return!1},ke.add=function(a){return this.pl.add(a),this},ke.ca=function(a,y,E){for(var x=this.startX,b=this.startY,z=x,ee=b,re=this.segments.s,oe=re.length,ce=0;ce<oe;ce++){var fe=re[ce];switch(fe.type){case Po:z=fe.endX,ee=fe.endY,x=fe.endX,b=fe.endY;break;case mo:if(Ft.Yb(x,b,fe.endX,fe.endY,E,a,y))return!0;x=fe.endX,b=fe.endY;break;case Ba:if(Ft.cs(x,b,fe.point1X,fe.point1Y,fe.point2X,fe.point2Y,fe.endX,fe.endY,.5,a,y,E))return!0;x=fe.endX,b=fe.endY;break;case Fs:if(Ft.jv(x,b,fe.point1X,fe.point1Y,fe.endX,fe.endY,.5,a,y,E))return!0;x=fe.endX,b=fe.endY;break;case ea:case el:var ye=fe.type===ea?as(fe,this):Ns(fe,this,x,b),Ne=ye.length,Pe=fe.type===ea?fe.centerX:fe.endX,Fe=fe.type===ea?fe.centerY:fe.endY;if(Ne===0){if(Ft.Yb(x,b,Pe,Fe,E,a,y))return!0;x=Pe,b=Fe;break}for(Pe=null,Fe=0;Fe<Ne;Fe++)if(Pe=ye[Fe],Fe===0&&Ft.Yb(x,b,Pe[0],Pe[1],E,a,y)||Ft.cs(Pe[0],Pe[1],Pe[2],Pe[3],Pe[4],Pe[5],Pe[6],Pe[7],.5,a,y,E))return!0;Pe!==null&&(x=Pe[6],b=Pe[7]);break;default:lt("Unknown Segment type: "+fe.type)}if(fe.isClosed&&(x!==z||b!==ee)&&Ft.Yb(x,b,z,ee,E,a,y))return!0}return!1},zt.Object.defineProperties(pa.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&&Ut(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&Ut(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&Ut(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&Ut(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&Ut(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&Ut(this,a),this.pl=a,this._isInvalidBounds=!0}}}),pa.prototype.add=pa.prototype.add,pa.prototype.equalsApprox=pa.prototype.Xa,pa.className="PathFigure";function jr(a,y,E,x,b,z,ee,re){Lr(this),a===void 0&&(a=mo),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,E!==void 0?this.Ec=E:this.Ec=0,x===void 0&&(x=0),b===void 0&&(b=0),z===void 0&&(z=0),ee===void 0&&(ee=0),a===el?(a=z%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(x,0),this.Pg=Math.max(b,0),typeof ee=="boolean"?ee&&(this.isLargeArc=!0):typeof ee=="number"&&ee&&(this.isLargeArc=!0),re&&(this.isClockwiseArc=!0)):(this.Ne=x,this.Vh=b,a===ea&&(z=Math.max(z,0)),this.Wh=z,typeof ee=="number"?(a===ea&&(ee=Math.max(ee,0)),this.Pg=ee):this.Pg=0),this.ae=null}jr.prototype.copy=function(){var a=new jr;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},ke=jr.prototype,ke.Xa=function(a){if(!(a instanceof jr)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case Po:case mo:return Ft.B(this.endX,a.endX)&&Ft.B(this.endY,a.endY);case Ba:return Ft.B(this.endX,a.endX)&&Ft.B(this.endY,a.endY)&&Ft.B(this.point1X,a.point1X)&&Ft.B(this.point1Y,a.point1Y)&&Ft.B(this.point2X,a.point2X)&&Ft.B(this.point2Y,a.point2Y);case Fs:return Ft.B(this.endX,a.endX)&&Ft.B(this.endY,a.endY)&&Ft.B(this.point1X,a.point1X)&&Ft.B(this.point1Y,a.point1Y);case ea:return Ft.B(this.startAngle,a.startAngle)&&Ft.B(this.sweepAngle,a.sweepAngle)&&Ft.B(this.centerX,a.centerX)&&Ft.B(this.centerY,a.centerY)&&Ft.B(this.radiusX,a.radiusX)&&Ft.B(this.radiusY,a.radiusY);case el:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Ft.B(this.xAxisRotation,a.xAxisRotation)&&Ft.B(this.endX,a.endX)&&Ft.B(this.endY,a.endY)&&Ft.B(this.radiusX,a.radiusX)&&Ft.B(this.radiusY,a.radiusY);default:return!1}},ke.qb=function(a){a.classType===jr&&(this.type=a)},ke.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Po:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case mo:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Ba: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 Fs: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 ea: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 el: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":"")},ke.freeze=function(){return this._isFrozen=!0,this},ke.ka=function(){return this._isFrozen=!1,this},ke.close=function(){return this.isClosed=!0,this};function as(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var E=a.radiusX,x=a.radiusY;if(x===void 0&&(x=E),E===0||x===0)return a.ae=[],a.ae;y=a.Ne;var b=a.Vh,z=Ft.jx(0,0,E<x?E:x,a.startAngle,a.startAngle+a.sweepAngle,!1);if(E!==x){var ee=ir.alloc();ee.reset(),E<x?ee.scale(1,x/E):ee.scale(E/x,1),Qn.Ha(z,ee),ir.free(ee)}for(E=z.length,x=0;x<E;x++)ee=z[x],ee[0]+=y,ee[1]+=b,ee[2]+=y,ee[3]+=b,ee[4]+=y,ee[5]+=b,ee[6]+=y,ee[7]+=b;return a.ae=z,a.ae}function Ns(a,y,E,x){function b(We,gt,nt,vt){return(We*vt<gt*nt?-1:1)*Math.acos((We*nt+gt*vt)/(Math.sqrt(We*We+gt*gt)*Math.sqrt(nt*nt+vt*vt)))}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 ee=Math.PI/180*a.Ne,re=a.isLargeArc,oe=a.isClockwiseArc,ce=a.Dc,fe=a.Ec,ye=Math.cos(ee),Ne=Math.sin(ee),Pe=ye*(E-ce)/2+Ne*(x-fe)/2;ee=-Ne*(E-ce)/2+ye*(x-fe)/2;var Fe=Pe*Pe/(y*y)+ee*ee/(z*z);return 1<Fe&&(y*=Math.sqrt(Fe),z*=Math.sqrt(Fe)),Fe=(re===oe?-1:1)*Math.sqrt((y*y*z*z-y*y*ee*ee-z*z*Pe*Pe)/(y*y*ee*ee+z*z*Pe*Pe)),isNaN(Fe)&&(Fe=0),re=Fe*y*ee/z,Fe=Fe*-z*Pe/y,isNaN(re)&&(re=0),isNaN(Fe)&&(Fe=0),E=(E+ce)/2+ye*re-Ne*Fe,x=(x+fe)/2+Ne*re+ye*Fe,fe=b(1,0,(Pe-re)/y,(ee-Fe)/z),ye=(Pe-re)/y,ce=(ee-Fe)/z,Pe=(-Pe-re)/y,re=(-ee-Fe)/z,ee=b(ye,ce,Pe,re),Pe=(ye*Pe+ce*re)/(Math.sqrt(ye*ye+ce*ce)*Math.sqrt(Pe*Pe+re*re)),-1>=Pe?ee=Math.PI:1<=Pe&&(ee=0),!oe&&0<ee&&(ee-=2*Math.PI),oe&&0>ee&&(ee+=2*Math.PI),oe=y>z?1:y/z,Pe=y>z?z/y:1,y=Ft.jx(0,0,y>z?y:z,fe,fe+ee,!0),z=ir.alloc(),z.reset(),z.translate(E,x),z.rotate(a.Ne,0,0),z.scale(oe,Pe),Qn.Ha(y,z),ir.free(z),a.ae=y,a.ae}zt.Object.defineProperties(jr.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&&Ut(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Ut(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Ut(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Ut(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Ut(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&Ut(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&Ut(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Ut(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Ut(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&oi(a,">= zero",jr,"radiusX"),this._isFrozen&&Ut(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&oi(a,">= zero",jr,"radiusY"),this._isFrozen&&Ut(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Ut(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&&Ut(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&&Ut(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&&Ut(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&&Ut(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),jr.prototype.equalsApprox=jr.prototype.Xa;var Po=new Mn(jr,"Move",0),mo=new Mn(jr,"Line",1),Ba=new Mn(jr,"Bezier",2),Fs=new Mn(jr,"QuadraticBezier",3),ea=new Mn(jr,"Arc",4),el=new Mn(jr,"SvgArc",4);jr.className="PathSegment",jr.Move=Po,jr.Line=mo,jr.Bezier=Ba,jr.QuadraticBezier=Fs,jr.Arc=ea,jr.SvgArc=el;function Qa(){this.H=null,this.xu=new dt(0,0).freeze(),this.mt=new dt(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}Qa.prototype.copy=function(){var a=new Qa;return this.clone(a)},Qa.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},Qa.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},Qa.prototype.So=function(a,y){var E=this.diagram;return E===null||Og(E,a,y),y},Qa.prototype.Bz=function(a,y){var E=this.diagram;return E===null||(Og(E,a,y),y.assign(E.Ps(y))),y},zt.Object.defineProperties(Qa.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}}}),Qa.prototype.getMultiTouchDocumentPoint=Qa.prototype.Bz,Qa.prototype.getMultiTouchViewPoint=Qa.prototype.So,Qa.className="InputEvent";function Au(){this.H=null,this.xa="",this.ar=this.Lr=null}Au.prototype.copy=function(){var a=new Au;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Au.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},zt.Object.defineProperties(Au.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}}}),Au.className="DiagramEvent";function Io(){this.Fm=wo,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Io.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Io.prototype.copy=function(){var a=new Io;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=jt(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=jt(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=jt(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=jt(y)&&typeof y.J=="function"?y.J():y,a},Io.prototype.qb=function(a){a.classType===Io&&(this.change=a)},Io.prototype.toString=function(){var a="";return a=this.change===vs?a+"* ":this.change===wo?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===vs?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Ki(this.object)),this.oldValue!==null&&(a+=" old: "+Ki(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Ki(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Io.prototype.I=function(a){return a?this.oldValue:this.newValue},Io.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Io.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Io.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Io.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Io.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},zt.Object.defineProperties(Io.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===vs&&(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}}}),Io.prototype.redo=Io.prototype.redo,Io.prototype.canRedo=Io.prototype.canRedo,Io.prototype.undo=Io.prototype.undo,Io.prototype.canUndo=Io.prototype.canUndo,Io.prototype.getParam=Io.prototype.Dz,Io.prototype.getValue=Io.prototype.I,Io.prototype.clear=Io.prototype.clear;var vs=new Mn(Io,"Transaction",-1),wo=new Mn(Io,"Property",0),Wo=new Mn(Io,"Insert",1),qo=new Mn(Io,"Remove",2);Io.className="ChangedEvent",Io.Transaction=vs,Io.Property=wo,Io.Insert=Wo,Io.Remove=qo;function ma(){this.o=new Un().freeze(),this.xa="",this.j=!1}ma.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 E=0;E<a;E++){var x=this.changes.M(E);x!==null&&(y+=`
|
|
|
`+x.toString())}}return y},ma.prototype.clear=function(){var a=this.changes;a.ka();for(var y=a.count-1;0<=y;y--){var E=a.M(y);E!==null&&E.clear()}a.clear(),a.freeze()},ma.prototype.canUndo=function(){return this.isComplete},ma.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()}},ma.prototype.canRedo=function(){return this.isComplete},ma.prototype.redo=function(){if(this.canRedo())for(var a=this.changes.count,y=0;y<a;y++){var E=this.changes.M(y);E!==null&&E.redo()}},ma.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new vi,E=0;E<a.count;E++){var x=a.M(E);if(x!==null&&x.change===wo&&x.object){var b=y.get(x.object);b||(b=new vi,y.set(x.object,b));var z=b.get(x.propertyName);z===null?b.set(x.propertyName,-1):(0<z&&a.cd(z,null),b.set(x.propertyName,E))}}for(E=y=0;E<a.count;E++)x=a.M(E),x!==null&&(E>y&&a.cd(y,x),y++);for(;a.length>y;)a.pop();a.freeze()}},zt.Object.defineProperties(ma.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}}}),ma.prototype.optimize=ma.prototype.ak,ma.prototype.redo=ma.prototype.redo,ma.prototype.canRedo=ma.prototype.canRedo,ma.prototype.undo=ma.prototype.undo,ma.prototype.canUndo=ma.prototype.canUndo,ma.prototype.clear=ma.prototype.clear,ma.className="Transaction";function fo(){this.Pt=new Dn,this.Jd=!1,this.u=new Un().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Un().freeze(),this.hl=new Un,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}fo.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var E=this.nestedTransactionNames.count,x=0;x<E;x++)0<x&&(y+=" "),y+=this.nestedTransactionNames.M(x);if(y+="]",a!==void 0&&0<a)for(E=this.history.count,x=0;x<E;x++)y+=`
|
|
|
`+this.history.M(x).toString(a-1);return y},fo.prototype.clear=function(){var a=this.history;a.ka();for(var y=a.count-1;0<=y;y--){var E=a.M(y);E!==null&&E.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},fo.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},ke=fo.prototype,ke.Xw=function(a){this.Pt.add(a)},ke.Rx=function(a){this.Pt.remove(a)},ke.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},ke.eb=function(a){return a===void 0&&(a=""),lc(this,!0,a)},ke.Kf=function(){return lc(this,!1,"")};function lc(a,y,E){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&gi("Ending transaction without having started a transaction: "+E);var x=a.transactionLevel===1,b=a.currentTransaction;x&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",E,b));var z=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var ee=a.Ie.count;0<ee&&(E===""&&(E=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(ee-1),a.Ie.freeze()),ee=a.hl.count,0<ee&&(z=a.hl.M(ee-1),a.hl.mb(ee-1))}if(x){if(y)a.rq=!1,b===null&&E!==""&&(b=a.currentTransaction),a.isEnabled&&b!==null&&(b.isComplete||(b.isComplete=!0,b.name=E),a.lx(),y=a.history,y.ka(),x=a.maxHistoryLength,0<=x&&(x===0?y.clear():y.count>=x&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),x===0||y.count!==0&&y.get(y.count-1)===b||(y.add(b),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",E,b);else{a.Fe=!0;try{a.isEnabled&&b!==null&&(b.isComplete=!0,b.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",E,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,E=b.changes,b=E.count-1;b>=a;b--)y=E.M(b),y!==null&&y.undo(),E.ka(),E.mb(b);E.freeze()}return!1}ke.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var E=a.M(y);E!==null&&E.clear(),a.mb(y),this.rq=!0}a.freeze()}},fo.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},fo.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){gi("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},fo.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},fo.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){gi("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},fo.prototype.Ob=function(a,y,E){E===void 0&&(E=null);var x=new Io;for(x.change=vs,x.propertyName=a,x.object=E,x.oldValue=y,a=this.models;a.next();)y=a.value,x.model=y,y.ds(x)},fo.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new ma);var E=a.copy();y=y.changes,y.ka(),y.add(E),y.freeze(),this.checksTransactionLevel&&0>=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||gi("Change not within a transaction: "+E.toString()))}},fo.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},zt.Object.defineProperties(fo.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}}}),fo.prototype.handleChanged=fo.prototype.Tu,fo.prototype.redo=fo.prototype.redo,fo.prototype.undo=fo.prototype.undo,fo.prototype.canUndo=fo.prototype.canUndo,fo.prototype.discardHistoryAfterIndex=fo.prototype.lx,fo.prototype.rollbackTransaction=fo.prototype.Kf,fo.prototype.commitTransaction=fo.prototype.eb,fo.prototype.startTransaction=fo.prototype.Ea,fo.prototype.removeModel=fo.prototype.Rx,fo.prototype.addModel=fo.prototype.Xw,fo.prototype.clear=fo.prototype.clear,fo.className="UndoManager";function Dr(){Lr(this),this.H=Nc,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new Qa,this.Zr=-1}Dr.prototype.toString=function(){return this.name!==""?this.name+" Tool":bn(this.constructor)},Dr.prototype.updateAdornments=function(){},Dr.prototype.canStart=function(){return this.isEnabled},Dr.prototype.doStart=function(){},Dr.prototype.doActivate=function(){this.isActive=!0},Dr.prototype.doDeactivate=function(){this.isActive=!1},Dr.prototype.doStop=function(){},Dr.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Dr.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},Dr.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Dr.prototype.doMouseMove=function(){},Dr.prototype.doMouseUp=function(){this.stopTool()},Dr.prototype.doMouseWheel=function(){},Dr.prototype.canStartMultiTouch=function(){return!0},Dr.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,E=y.So(0,dt.allocAt(NaN,NaN)),x=y.So(1,dt.allocAt(NaN,NaN));if(E.w()&&x.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var b=x.x-E.x,z=x.y-E.y;a.Jw=Math.sqrt(b*b+z*z),y.bubbles=!1}dt.free(E),dt.free(x)},Dr.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,E=y.So(0,dt.allocAt(NaN,NaN)),x=y.So(1,dt.allocAt(NaN,NaN));if(E.w()&&x.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var b=x.x-E.x,z=x.y-E.y;z=Math.sqrt(b*b+z*z)/a.Jw,b=new dt((Math.min(x.x,E.x)+Math.max(x.x,E.x))/2,(Math.min(x.y,E.y)+Math.max(x.y,E.y))/2),z*=a.Bw;var ee=a.commandHandler;if(z!==a.scale&&ee.canResetZoom(z)){var re=a.zoomPoint;a.zoomPoint=b,ee.resetZoom(z),a.zoomPoint=re}y.bubbles=!1}dt.free(E),dt.free(x)},Dr.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Dr.prototype.doKeyUp=function(){},Dr.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},Dr.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},Dr.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,E=a.Ol(y.documentPoint,!1);if(E!==null){if(ar?y.meta:y.control){for(a.R("ChangingSelection",a.selection),y=E;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!y.isSelected),a.R("ChangedSelection",a.selection)}else if(y.shift){if(!E.isSelected){for(a.R("ChangingSelection",a.selection),y=E;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!0),a.R("ChangedSelection",a.selection)}}else if(!E.isSelected){for(y=E;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&a.select(y)}}else!y.left||(ar?y.meta:y.control)||y.shift||a.clearSelection()}},Dr.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(b){return!b.layer.isTemporary});var E=this.diagram,x=E.lastInput;return a=E.ic(x.documentPoint,a,y),x.targetObject=a,gh(a,x,E),x.handled};function gh(a,y,E){if(y.handled=!1,a===null||a.If()){var x=0;y.left?x=y.clickCount===1?1:y.clickCount===2?2:1:y.right&&y.clickCount===1&&(x=3);var b="ObjectSingleClicked";if(a!==null){switch(x){case 1:b="ObjectSingleClicked";break;case 2:b="ObjectDoubleClicked";break;case 3:b="ObjectContextClicked"}x!==0&&E.R(b,a)}else{switch(x){case 1:b="BackgroundSingleClicked";break;case 2:b="BackgroundDoubleClicked";break;case 3:b="BackgroundContextClicked"}x!==0&&E.R(b)}if(a!==null)for(;a!==null;){switch(E=null,x){case 1:E=a.click;break;case 2:E=a.doubleClick?a.doubleClick:a.click;break;case 3:E=a.contextClick}if(E!==null&&(E(y,a),y.handled))break;a=a.panel}else{switch(a=null,x){case 1:a=E.click;break;case 2:a=E.doubleClick?E.doubleClick:E.click;break;case 3:a=E.contextClick}a!==null&&a(y)}}}Dr.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var E=a.skipsUndoManager;a.skipsUndoManager=!0;var x=a.viewportBounds.ca(y.documentPoint)?a.ic(y.documentPoint,null,null):null;!y.event||y.event.type!=="pointercancel"&&y.event.type!=="pointerout"||(x=null),y.targetObject=x;var b=!1;if(x!==a.Ck){var z=a.Ck,ee=z;for(a.Ck=x,this.doCurrentObjectChanged(z,x),y.handled=!1;z!==null;){var re=z.mouseLeave;if(re!==null&&(x===z||x!==null&&x.rg(z)||(re(y,z,x),b=!0,y.handled)))break;z=z.panel}for(z=ee,y.handled=!1;x!==null&&(ee=x.mouseEnter,!(ee!==null&&(z===x||z!==null&&z.rg(x)||(ee(y,x,z),b=!0,y.handled))));)x=x.panel;x=a.Ck}if(x!==null){for(z=x,ee="";z!==null&&(ee=z.cursor,ee==="");)z=z.panel;for(a.currentCursor=ee,y.handled=!1,z=x;z!==null&&(x=z.mouseOver,!(x!==null&&(x(y,z),b=!0,y.handled)));)z=z.panel}else this.doUpdateCursor(null),x=a.mouseOver,x!==null&&(x(y),b=!0);b&&a.$b(),a.skipsUndoManager=E}},Dr.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},Dr.prototype.doCurrentObjectChanged=function(){},Dr.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,E=y.delta;if(E!==0&&a.documentBounds.w()){var x=a.commandHandler,b=a.toolManager.mouseWheelBehavior;if(x!==null&&(b===Cu&&!y.shift||b===Tc&&y.control))(0<E?x.canIncreaseZoom():x.canDecreaseZoom())&&(b=a.zoomPoint,a.zoomPoint=y.viewPoint,0<E?x.increaseZoom():x.decreaseZoom(),a.zoomPoint=b),y.bubbles=!1;else if(b===Cu&&y.shift||b===Tc&&!y.control){x=a.position.copy();var z=y.event;b=z.deltaMode;var ee=z.deltaX;z=z.deltaY;var re="pixel";if(ee===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(E=3*E*a.scrollVerticalLineChange,a.scroll(re,0<E?"up":"down",Math.abs(E))):y.shift&&a.allowHorizontalScroll&&(E=3*E*a.scrollHorizontalLineChange,a.scroll(re,0<E?"left":"right",Math.abs(E)));else{switch(b){case 0:re="pixel";break;case 1:re="line";break;case 2:re="page"}ee!==0&&a.allowHorizontalScroll&&(ee*=a.scrollHorizontalLineChange/16,a.scroll(re,0<ee?"right":"left",Math.abs(ee))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(re,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,x,y)}}},Dr.prototype.doWheelChange=function(a,y,E){a.position.D(y)&&E.event.wheelDeltaX===0||(E.bubbles=!1)},Dr.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var E=this,x=y.clone(this.yy);this.Zr=Fi(function(){E.doWaitAfter(x)},a)},Dr.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Bn.clearTimeout(this.Zr),this.Zr=-1},Dr.prototype.doWaitAfter=function(){},Dr.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(E){for(;E!==null&&!(E.panel instanceof Hr);)E=E.panel;return E}),a===null?null:a.part.category===y?a:null},Dr.prototype.isBeyondDragSize=function(a,y){var E=this.diagram;a===void 0&&(a=E.firstInput.viewPoint),y===void 0&&(y=E.lastInput.viewPoint);var x=E.toolManager.dragSize,b=x.width;return x=x.height,E.firstInput.isTouchEvent&&(b+=6,x+=6),Math.abs(y.x-a.x)>b||Math.abs(y.y-a.y)>x},zt.Object.defineProperties(Dr.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof Jt&&(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}}}),Dr.prototype.startTransaction=Dr.prototype.Ea,Dr.className="Tool";function Co(){Dr.call(this),this.name="ToolManager",this.hb=new Un,this.ob=new Un,this.Hb=new Un,this.F=this.V=850,this.o=new ti(2,2).ja(),this.Ha=5e3,this.ia=Tc,this.u=sd,this.Mp=this.j=null,this.zj=-1}en(Co,Dr),Co.prototype.initializeStandardTools=function(){},Co.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Hr&&this.Mp===a){var E=y.adornedObject;(a!==null?E.part===a:E===null)?this.showToolTip(y,E):this.hideToolTip()}},Co.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Ql&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Fl){y.bubbles=!0;return}if(this.gestureBehavior===Ql)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var E=this.mouseDownTools.length,x=0;x<E;x++){var b=this.mouseDownTools.M(x);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===Tc?this.mouseWheelBehavior=Cu:this.mouseWheelBehavior===Cu&&(this.mouseWheelBehavior=Tc)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},Co.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===Fl){y.bubbles=!0;return}if(this.gestureBehavior===Ql)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var E=this.mouseMoveTools.length,x=0;x<E;x++){var b=this.mouseMoveTools.M(x);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseMove());return}}ph(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function ph(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}Co.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof Hr&&(y===a||y.rg(a))||this.hideToolTip()},Co.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()))},Co.prototype.doMouseHover=function(){var a=this.diagram,y=a.lastInput;y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null));var E=y.targetObject;if(E!==null)for(y.handled=!1;E!==null&&(a=this.isActive?E.mouseHold:E.mouseHover,!(a!==null&&(a(y,E),y.handled)));)E=E.panel;else E=this.isActive?a.mouseHold:a.mouseHover,E!==null&&E(y)},Co.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 Hr)||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()},Co.prototype.showToolTip=function(a,y){var E=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Hr){a.layerName="Tool",a.selectable=!1,a.scale=1/E.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=E.scale);var x=a.diagram;x!==null&&x!==E&&x.remove(a),E.add(a),y!==null?a.adornedObject=y:a.data=E.model,a.Va(),this.positionToolTip(a,y)}else a instanceof Br&&a!==this.currentToolTip&&a.show(y,E,this);if(this.currentToolTip=a,this.zj!==-1&&(Bn.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var b=this;this.zj=Fi(function(){b.hideToolTip()},a)}},Co.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,E=y.lastInput.documentPoint.copy(),x=a.measuredBounds,b=y.viewportBounds;y.lastInput.isTouchEvent&&(E.x-=x.width),E.x+x.width>b.right&&(E.x-=x.width+5/y.scale),E.x<b.x&&(E.x=b.x),E.y=E.y+20/y.scale+x.height>b.bottom?E.y-(x.height+5/y.scale):E.y+20/y.scale,E.y<b.y&&(E.y=b.y),a.position=E}},Co.prototype.hideToolTip=function(){this.zj!==-1&&(Bn.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Hr?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Br&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},Co.prototype.doMouseUp=function(){this.cancelWaitAfter();var a=this.diagram;if(this.isActive)for(var y=this.mouseUpTools.length,E=0;E<y;E++){var x=this.mouseUpTools.M(E);if(x.diagram=this.diagram,x.canStart()){a.doFocus(),a.currentTool=x,a.currentTool===x&&(x.isActive||x.doActivate(),x.doMouseUp());return}}a.doFocus(),this.doDeactivate()},Co.prototype.doMouseWheel=function(){this.standardMouseWheel()},Co.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Co.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Co.prototype.findTool=function(a){for(var y=this.mouseDownTools.length,E=0;E<y;E++){var x=this.mouseDownTools.M(E);if(x.name===a)return x}for(y=this.mouseMoveTools.length,E=0;E<y;E++)if(x=this.mouseMoveTools.M(E),x.name===a)return x;for(y=this.mouseUpTools.length,E=0;E<y;E++)if(x=this.mouseUpTools.M(E),x.name===a)return x;return null},Co.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var E=this.mouseDownTools.length,x=0;x<E;x++){var b=this.mouseDownTools.M(x);if(b.name===a)return y!==null?this.mouseDownTools.cd(x,y):this.mouseDownTools.mb(x),b}for(E=this.mouseMoveTools.length,x=0;x<E;x++)if(b=this.mouseMoveTools.M(x),b.name===a)return y!==null?this.mouseMoveTools.cd(x,y):this.mouseMoveTools.mb(x),b;for(E=this.mouseUpTools.length,x=0;x<E;x++)if(b=this.mouseUpTools.M(x),b.name===a)return y!==null?this.mouseUpTools.cd(x,y):this.mouseUpTools.mb(x),b;return null},Co.prototype.gb=function(a,y,E){y!==null&&(y.name=a,y.diagram=this.diagram),this.findTool(a)?this.replaceTool(a,y):y!==null&&E.add(y)},zt.Object.defineProperties(Co.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 Hr?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}}}),Co.prototype.replaceStandardTool=Co.prototype.gb;var Tc=new Mn(Co,"WheelScroll",0),Cu=new Mn(Co,"WheelZoom",1),Bd=new Mn(Co,"WheelNone",2),sd=new Mn(Co,"GestureZoom",3),Ql=new Mn(Co,"GestureCancel",4),Fl=new Mn(Co,"GestureNone",5);Co.className="ToolManager",Co.WheelScroll=Tc,Co.WheelZoom=Cu,Co.WheelNone=Bd,Co.GestureZoom=sd,Co.GestureCancel=Ql,Co.GestureNone=Fl;function To(){Dr.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 dt(NaN,NaN),this.Fr=new dt,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Dn().freeze(),this.ia=new ae,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Bs;en(To,Dr),To.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},To.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},To.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,(ar?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},To.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),Pa=null,this.isActive=!0,this.tl.set(a.position),Ac(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&&nl(a),Df(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Pa=this,Pu=this.diagram,this.doSimulatedDragOut()))};function Ac(a,y){if(a.dragsLink){var E=a.diagram;E.allowRelink&&(E.model.Wj()&&y.count===1&&y.first()instanceof Jn?(a.draggedLink=y.first(),a.draggedLink.canRelinkFrom()&&a.draggedLink.canRelinkTo()&&a.draggedLink.Ej(),a.Oe=E.toolManager.findTool("Relinking"),a.Oe===null&&(a.Oe=new _s,a.Oe.diagram=E),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}To.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},To.prototype.Pd=function(a){return a===void 0?new Zc(ho):this.isGridSnapEnabled?new Zc(new dt(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new Zc(a.copy())},To.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),du(this),Hd(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Bs.count){for(var y=Bs,E=y.length,x=0;x<E;x++){var b=y.M(x);Vu(b),bl(b),du(b),b.diagram.ug()}y.clear()}Vu(this),this.tl.h(NaN,NaN),Pu!==null&&(Pu.currentCursor=""),Pa=Pu=null,bl(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),Qh(a,!0)},To.prototype.stopTransaction=function(){var a=this.diagram,y=Dr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function du(a){var y=a.diagram,E=y.skipsUndoManager;y.skipsUndoManager=!0,Zu(a,y.lastInput,null),y.skipsUndoManager=E,a.Cg.length=0}function Nu(){var a=Pa;bl(a),hu(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}To.prototype.doCancel=function(){bl(this),hu(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},To.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},To.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function Kl(a,y){if(a.copiedParts===null){var E=a.diagram;if((!y||!E.isReadOnly&&!E.isModelReadOnly)&&a.draggedParts!==null){var x=E.undoManager;for(x.isEnabled&&x.isInTransaction?x.currentTransaction!==null&&0<x.currentTransaction.changes.count&&(E.undoManager.Kf(),E.Ea("Drag")):hu(a),E.skipsUndoManager=!y,E.partManager.addsToTemporaryLayer=!y,a.startPoint=E.firstInput.documentPoint,y=a.copiesEffectiveCollection?a.draggedParts.Lf():E.selection,y=E.Kj(y,E,!0),E=new vi,x=a.draggedParts.iterator;x.next();){var b=x.key;if(b.Zc()&&b.canCopy()){var z=y.I(b);z!==null&&(z.location=b.location,z.Va(),E.add(z,a.Pd(z.location)))}}for(y=y.iterator;y.next();)x=y.value,x instanceof Jn&&x.canCopy()&&E.add(x,a.Pd());a.copiedParts=E,Ac(a,E.Lf()),a.draggedLink!==null&&(E=a.draggedLink,y=E.routeBounds,bd(E,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function bl(a){var y=a.diagram;if(a.copiedParts!==null){if(y.Is(a.copiedParts.Lf(),!1),a.copiedParts=null,a.draggedParts!==null)for(var E=a.draggedParts.iterator;E.next();)E.key instanceof Jn&&(E.value.point=new dt(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function Vu(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 wl(a,y,E){var x=a.diagram,b=a.startPoint,z=dt.alloc();z.assign(x.lastInput.documentPoint),a.moveParts(y,z.re(b),E),dt.free(z),x.Gf("temporaryPixelRatio")===!0&&x.Yh===null&&30<x.$w&&(nl(x),x.hk())}To.prototype.moveParts=function(a,y,E){E===void 0&&(E=!1);var x=this.diagram;x!==null&&Ud(x,a,y,this.dragOptions,E)};function hu(a){if(a.draggedParts!==null){for(var y=a.diagram,E=a.draggedParts.iterator;E.next();){var x=E.key;x.Zc()&&(x.location=E.value.point)}for(E=a.draggedParts.iterator;E.next();)if(x=E.key,x instanceof Jn&&x.suspendsRouting){var b=E.value.point;a.draggedParts.add(x,a.Pd()),bd(x,-b.x,-b.y)}y.bd()}}function uc(a,y){var E=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),fu(a,!1));var x=a.findDragOverObject(y),b=E.lastInput;b.targetObject=x,a.doUpdateCursor(x);var z=E.skipsUndoManager,ee=!1;try{if(E.skipsUndoManager=!0,ee=Zu(a,b,x),!a.isActive&&Pa===null)return;var re=x!==null?x.part:null;if(re===null||E.handlesDragDropForTopLevelParts&&re.isTopLevel&&!(re instanceof dr)){var oe=E.mouseDragOver;oe!==null&&(oe(b),ee=!0)}if(!a.isActive&&Pa===null||(a.doDragOver(y,x),!a.isActive&&Pa===null))return}finally{E.skipsUndoManager=z,ee&&E.bd()}a.Bn=x,E.isReadOnly||!E.allowMove&&!E.allowCopy||!E.allowHorizontalScroll&&!E.allowVerticalScroll||E.gs(b.viewPoint)}To.prototype.findDragOverObject=function(a){var y=this;return Mc(this.diagram,a,null,function(E){return E===null?E=!0:(E=E.part,E=!!(E===null||E instanceof Hr||E.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(E)||y.copiedParts&&y.copiedParts.contains(E))),!E})},To.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 Zu(a,y,E){var x=!1,b=a.Cg.length,z=0<b?a.Cg[0]:null;if(E===z)return!1;y.handled=!1;for(var ee=0;ee<b;ee++){var re=a.Cg[ee],oe=re.mouseDragLeave;if(oe!==null&&(oe(y,re,E),x=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Pa===null||E===null)return x;for(y.handled=!1,b=E;b!==null;)a.Cg.push(b),b=cc(b);for(b=a.Cg.length,E=0;E<b&&(ee=a.Cg[E],re=ee.mouseDragEnter,re===null||(re(y,ee,z),x=!0,!y.handled));E++);return x}function cc(a){var y=a.panel;return y!==null?y:a instanceof Bi&&!(a instanceof dr)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function dc(a,y,E){var x=a.Oe;if(x===null)return null;var b=a.diagram.og(y,x.portGravity,function(ce){return x.findValidLinkablePort(ce,E)});a=dt.alloc();var z=1/0,ee=null;for(b=b.iterator;b.next();){var re=b.value;if(re.part!==null){var oe=re.ga(Xi,a);oe=y.Bf(oe),oe<z&&(ee=re,z=oe)}}return dt.free(a),ee}function fu(a,y){var E=a.draggedLink;if(E!==null&&!(2>E.pointsCount)){var x=a.diagram;if(!x.isReadOnly){var b=a.Oe;if(b!==null){var z=null,ee=null;E.fromNode===null&&(z=dc(a,E.i(0),!1),z!==null&&(ee=z.part));var re=null,oe=null;E.toNode===null&&(re=dc(a,E.i(E.pointsCount-1),!0),re!==null&&(oe=re.part)),b.isValidLink(ee,z,oe,re)?y?(E.defaultFromPoint=E.i(0),E.defaultToPoint=E.i(E.pointsCount-1),E.suspendsRouting=!1,E.fromNode=ee,z!==null&&(E.fromPortId=z.portId),E.toNode=oe,re!==null&&(E.toPortId=re.portId),E.fromPort!==x.Mx&&x.R("LinkRelinked",E,x.Mx),E.toPort!==x.Nx&&x.R("LinkRelinked",E,x.Nx)):we(b,ee,z,oe,re):we(b,null,null,null,null)}}}}To.prototype.doDragOver=function(){};function Mu(a,y){var E=a.diagram;a.dragsLink&&fu(a,!0),du(a);var x=a.findDragOverObject(y),b=E.lastInput;if(b.targetObject=x,x!==null){b.handled=!1;for(var z=x;z!==null;){var ee=z.mouseDrop;if(ee!==null&&(ee(b,z),b.handled))break;ld(a,b,z),z=cc(z)}}else z=E.mouseDrop,z!==null&&z(b);if(a.isActive||Pa!==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,x),a.isActive||Pa!==null){for(a=pn.alloc(),y=E.selection.iterator;y.next();)x=y.value,x instanceof li&&mh(E,x,a);pn.free(a)}}}function ld(a,y,E){a=a.diagram,E=E.part,!a.handlesDragDropForTopLevelParts||!E.isTopLevel||E instanceof dr||(E=a.mouseDrop,E!==null&&E(y))}function mh(a,y,E){var x=!1;if(E=y.getAvoidableRect(E),a.viewportBounds.Re(E)&&(x=!0),a=a.Nu(E,function(b){return b.part},function(b){return b instanceof Jn},!0,function(b){return b instanceof Jn},x),a.count!==0)for(a=a.iterator;a.next();)E=a.value,!E.Td(y)&&E.isAvoiding&&E.bb()}To.prototype.doDropOnto=function(){},To.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()?(Kl(this,!1),Df(a,this.copiedParts),wl(this,this.copiedParts,!1),Hd(a,this.copiedParts)):this.mayMove()?(bl(this),wl(this,this.draggedParts,!0)):this.mayDragOut()?(Kl(this,!1),wl(this,this.copiedParts,!1)):bl(this),uc(this,a.lastInput.documentPoint))}},To.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 E=this.mayCopy();if(E&&this.copiedParts!==null?(bl(this),Kl(this,!0),Df(a,this.copiedParts),wl(this,this.copiedParts,!1),Hd(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,bl(this),this.mayMove()&&(wl(this,this.draggedParts,!0),uc(this,a.lastInput.documentPoint))),this.Ym=!0,Mu(this,a.lastInput.documentPoint),this.isActive){var x=E?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&vh(this),a.Ya(),Hd(a,this.draggedParts),this.transactionResult=E?"Copy":"Move",a.R(E?"SelectionCopied":"SelectionMoved",x)}this.stopTool(),E&&a.R("ChangedSelection",a.selection)}}},To.prototype.simulatedMouseMove=function(a,y,E){if(Pa===null)return!1;var x=Pa.diagram;E instanceof Jt||(E=null);var b=Pu;return E!==b&&(b!==null&&b!==x&&(b.ug(),Pa.isDragOutStarted=!1,b=b.toolManager.findTool("Dragging"),b!==null&&b.doSimulatedDragLeave()),Pu=E,E!==null&&E!==x&&(Nu(),b=E.toolManager.findTool("Dragging"),b!==null&&(Bs.contains(b)||Bs.add(b),b.doSimulatedDragEnter())),this.doUpdateCursor(null)),E===null||E===x||!E.allowDrop||E.isReadOnly||!E.allowInsert?!1:(x=E.toolManager.findTool("Dragging"),x!==null&&(a!==null&&(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=E.getMouse(a)),E.lastInput.documentPoint=y,E.lastInput.viewPoint=E.op(y),E.lastInput.down=!1,E.lastInput.up=!1,x.doSimulatedDragOver()),!0)},To.prototype.simulatedMouseUp=function(a,y,E){if(Pa===null)return!1;var x=Pu,b=Pa.diagram;if(E===null)return Pa.doCancel(),!0;if(E!==x){var z=x.toolManager.findTool("Dragging");if(x!==null&&x!==b&&z!==null)return x.ug(),Pa.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;Pu=E,x=E.toolManager.findTool("Dragging"),x!==null&&(Nu(),Bs.contains(x)||Bs.add(x),x.doSimulatedDragEnter())}return E!==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=E.getMouse(a)):y===null&&(y=new dt),E.lastInput.documentPoint=y,E.lastInput.viewPoint=E.op(y),E.lastInput.down=!1,E.lastInput.up=!0,a=E.toolManager.findTool("Dragging"),a!==null&&a.doSimulatedDrop(),a=Pa,a!==null&&(E=a.mayCopy(),a.transactionResult=E?"Copy":"Move",a.stopTool()),!0):!1};function vh(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var E=y.key;E instanceof li&&(E=E.containingGroup,E===null||E.placeholder===null||a.draggedParts.contains(E)||E.placeholder.v())}}To.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(ar?!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())},To.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())},To.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())},To.prototype.computeBorder=function(a,y,E){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:E.assign(y)},To.prototype.Az=function(){return Pa},To.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Pa;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},To.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),$l(a),a.animationManager.Cc(),a=Pa,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},To.prototype.doSimulatedDragLeave=function(){var a=Pa;a!==null&&a.doSimulatedDragOut(),this.doCancel()},To.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Pa;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;yh(this,y.draggedParts.Lf(),!1,a.firstInput),wl(this,this.copiedParts,!1),uc(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},To.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Pa;if(y!==null){var E=y.diagram;if(y.Ym=!0,bl(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),yh(this,y.draggedParts.Lf(),!0,a.lastInput),wl(this,this.copiedParts,!1);var x=new Dn;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0,x.add(b)})),Mu(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",x,E),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function yh(a,y,E,x){if(a.copiedParts===null){var b=a.diagram;if(!b.isReadOnly&&!b.isModelReadOnly){b.skipsUndoManager=!E,b.partManager.addsToTemporaryLayer=!E,a.startPoint=x.documentPoint,E=b.Kj(y,b,!0);var z=pn.alloc();b=x=1/0;for(var ee=-1/0,re=-1/0,oe=y.iterator;oe.next();){var ce=oe.value;if(ce.isVisible()){var fe=ce.location;ce=fe.x,fe=fe.y,isNaN(ce)||isNaN(fe)||(ce<x&&(x=ce),fe<b&&(b=fe),ce>ee&&(ee=ce),fe>re&&(re=fe))}}for(x===1/0?z.h(0,0,0,0):z.h(x,b,ee-x,re-b),x=z.x+z.width/2,b=z.y+z.height/2,pn.free(z),z=a.Fr,ee=new vi,re=dt.alloc(),oe=y.iterator;oe.next();)ce=oe.value,ce instanceof Jn&&ce.canCopy()&&(fe=E.I(ce),fe!==null&&(fe.points=ce.points,bd(fe,z.x-x,z.y-b),fe.suspendsRouting=!0,ee.add(fe,a.Pd())));for(y=y.iterator;y.next();)ce=y.value,ce.Zc()&&ce.canCopy()&&(oe=E.I(ce),oe!==null&&(ce=ce.location,re.h(z.x-(x-ce.x),z.y-(b-ce.y)),oe.location=re,oe.Va(),ee.add(oe,a.Pd(re))));dt.free(re),a.copiedParts=ee,Ac(a,ee.Lf()),a.draggedLink!==null&&(E=a.draggedLink,y=E.routeBounds,bd(E,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}To.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},To.prototype.computeMove=function(a,y,E,x){return E=this.diagram,E!==null?E.computeMove(a,y,this.dragOptions,x):new dt},zt.Object.defineProperties(To.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}}}),To.prototype.getDraggingSource=To.prototype.Az;var Pa=null,Pu=null;To.className="DraggingTool",Bs=new Un,Wi("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Co.prototype.doCancel=function(){Pa!==null&&Pa.doCancel(),Dr.prototype.doCancel.call(this)};function Uo(){Dr.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Jn,y=new yr;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new yr,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new li,y=new yr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Gr,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new li,y=new yr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Gr,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 vi,this.Of=this.gj=this.Pf=null}en(Uo,Dr),Uo.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Uo.prototype.copyPortProperties=function(a,y,E,x,b){if(a!==null&&y!==null&&E!==null&&x!==null){var z=y.Df(),ee=ti.alloc();ee.width=y.naturalBounds.width*z,ee.height=y.naturalBounds.height*z,x.desiredSize=ee,ti.free(ee),b?(x.toSpot=y.toSpot,x.toEndSegmentLength=y.toEndSegmentLength):(x.fromSpot=y.fromSpot,x.fromEndSegmentLength=y.fromEndSegmentLength),E.locationSpot=Xi,z=dt.alloc(),E.location=y.ga(Xi,z),dt.free(z),x.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,E,x,b)}},Uo.prototype.setNoTargetPortProperties=function(a,y,E){y!==null&&(y.desiredSize=Gr,y.fromSpot=Ti,y.toSpot=Ti),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,E)},Uo.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Uo.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)}},Uo.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var E=a.part;if(!(E instanceof li))return null;for(;a!==null;){var x=y?a.toLinkable:a.fromLinkable;if(x===!0&&(a.portId!==null||a instanceof li)&&(y?this.isValidTo(E,a):this.isValidFrom(E,a)))return a;if(x===!1)break;a=a.panel}return null},Uo.prototype.findTargetPort=function(a){var y=this.diagram,E=y.lastInput.documentPoint,x=this.portGravity;0>=x&&(x=.1);var b=this,z=y.og(E,x,function(ye){return b.findValidLinkablePort(ye,a)},null,!0);for(x=1/0,y=null,z=z.iterator;z.next();){var ee=z.value,re=ee.part;if(re instanceof li){var oe=ee.ga(Xi,dt.alloc()),ce=E.x-oe.x,fe=E.y-oe.y;dt.free(oe),oe=ce*ce+fe*fe,oe<x&&(ce=this.validPortsCache.I(ee),ce!==null?ce&&(y=ee,x=oe):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,re,ee)||!a&&this.isValidLink(re,ee,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(ee,!0),y=ee,x=oe):this.validPortsCache.add(ee,!1))}}return y!==null&&(E=y.part,E instanceof li&&(E.layer===null||E.layer.allowLink))?y:null},Uo.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 E=y.fromMaxLinks;if(1/0>E){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=E)return!1}return!0},Uo.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 E=y.toMaxLinks;if(1/0>E){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=E)return!1}return!0},Uo.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},Uo.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var E=a.part;if(!(E instanceof li))return!1;a=a.portId,a===null&&(a="");var x=y.part;if(!(x instanceof li))return!1;for(y=y.portId,y===null&&(y=""),y=x.Sd(y);y.next();)if(x=y.value,x.fromNode===E&&x.fromPortId===a)return!0;return!1},Uo.prototype.isValidLink=function(a,y,E,x){if(!this.isValidFrom(a,y)||!this.isValidTo(E,x)||!(y===null||x===null||(y.fromLinkableSelfNode&&x.toLinkableSelfNode||!this.isInSameNode(y,x))&&(y.fromLinkableDuplicates&&x.toLinkableDuplicates||!this.isLinked(y,x)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||E!==null&&this.isLabelDependentOnLink(E,this.originalLink))||a!==null&&E!==null&&(a.data===null&&E.data!==null||a.data!==null&&E.data===null)||!this.isValidCycle(a,E,this.originalLink))return!1;if(a!==null){var b=a.linkValidation;if(b!==null&&!b(a,y,E,x,this.originalLink))return!1}return E!==null&&(b=E.linkValidation,b!==null&&!b(a,y,E,x,this.originalLink))?!1:(b=this.linkValidation,b!==null?b(a,y,E,x,this.originalLink):!0)},Uo.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var E=a.labeledLink;if(E===null)return!1;if(E===y)return!0;var x=new Dn;return x.add(a),Ka(this,E,y,x)};function Ka(a,y,E,x){if(y===E)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(x.add(b),Ka(a,b.labeledLink,E,x))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(x.add(y),Ka(a,y.labeledLink,E,x))))}Uo.prototype.isValidCycle=function(a,y,E){if(E===void 0&&(E=null),a===null||y===null)return this.isUnconnectedLinkValid;var x=this.diagram.validCycle;if(x!==$h){if(x===Xg){if(x=E||this.temporaryLink,x!==null&&!x.isTreeLink)return!0;for(x=y.linksConnected;x.next();){var b=x.value;if(b!==E&&b.isTreeLink&&b.toNode===y)return!1}return!ss(this,a,y,E,!0)}if(x===Jg){if(x=E||this.temporaryLink,x!==null&&!x.isTreeLink)return!0;for(x=a.linksConnected;x.next();)if(b=x.value,b!==E&&b.isTreeLink&&b.fromNode===a)return!1;return!ss(this,a,y,E,!0)}if(x===Zg)return a===y?a=!0:(x=new Dn,x.add(y),a=ns(this,x,a,y,E)),!a;if(x===Qg)return!ss(this,a,y,E,!1);if(x===Kg)return a===y?a=!0:(x=new Dn,x.add(y),a=Qu(this,x,a,y,E)),!a}return!0};function ss(a,y,E,x,b){if(y===E)return!0;if(y===null||E===null)return!1;for(var z=y.linksConnected;z.next();){var ee=z.value;if(ee!==x&&(!b||ee.isTreeLink)&&ee.toNode===y&&(ee=ee.fromNode,ee!==y&&ss(a,ee,E,x,b)))return!0}return!1}function ns(a,y,E,x,b){if(E===x)return!0;if(E===null||x===null||y.contains(E))return!1;y.add(E);for(var z=E.linksConnected;z.next();){var ee=z.value;if(ee!==b&&ee.toNode===E&&(ee=ee.fromNode,ee!==E&&ns(a,y,ee,x,b)))return!0}return!1}function Qu(a,y,E,x,b){if(E===x)return!0;if(E===null||x===null||y.contains(E))return!1;y.add(E);for(var z=E.linksConnected;z.next();){var ee=z.value;if(ee!==b){var re=ee.fromNode;if(ee=ee.toNode,re=re===E?ee:re,re!==E&&Qu(a,y,re,x,b))return!0}}return!1}zt.Object.defineProperties(Uo.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 E=y.O.indexOf(this.j);y.mb(E),y.Gb(E,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 E=y.O.indexOf(this.o);y.mb(E),y.Gb(E,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}}}),Uo.className="LinkingBaseTool";function gs(){Uo.call(this),this.name="Linking",this.V={},this.F=null,this.K=Lu,this.Xd=null}en(gs,Uo),gs.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},gs.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 E=this.direction;if(E===Lu||E===ud){var x=this.findValidLinkablePort(y,!1);if(x!==null||this.startObject===a&&(x=a.port,this.findValidLinkablePort(x,!1)))return this.isForwards=!0,x}return(E===Lu||E===cd)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},gs.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)},gs.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()},gs.prototype.doStop=function(){Uo.prototype.doStop.call(this),this.startObject=null},gs.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,E=null,x=null,b=null,z=null;try{var ee=this.targetPort=this.findTargetPort(this.isForwards);if(ee!==null){var re=ee.part;re instanceof li&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,E=this.originalFromPort),x=re,b=ee):(y=re,E=ee,this.originalToNode!==null&&(x=this.originalToNode,b=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,E=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(x=this.originalToNode,b=this.originalToPort);y!==null||x!==null?(z=this.insertLink(y,E,x,b),z!==null?(ee===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,E,x,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)}}},gs.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Jn)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)},gs.prototype.insertLink=function(a,y,E,x){return this.diagram.partManager.insertLink(a,y,E,x)},gs.prototype.doNoLink=function(){},zt.Object.defineProperties(gs.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 Lu=new Mn(gs,"Either",0),ud=new Mn(gs,"ForwardsOnly",0),cd=new Mn(gs,"BackwardsOnly",0);gs.className="LinkingTool",gs.Either=Lu,gs.ForwardsOnly=ud,gs.BackwardsOnly=cd;function _s(){Uo.call(this),this.name="Relinking";var a=new yr;a.figure="Diamond",a.desiredSize=ao,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new yr,a.figure="Diamond",a.desiredSize=ao,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new pn}en(_s,Uo),_s.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Jn){var y="RelinkFrom",E=null;if(a.isSelected&&!this.diagram.isReadOnly){var x=a.selectionObject;x!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&x.actualBounds.w()&&x.Ed()&&(E=a.Pj(y),E===null&&(E=this.makeAdornment(x,!1),a.bh(y,E)))}E===null&&a.Jf(y),y="RelinkTo",E=null,a.isSelected&&!this.diagram.isReadOnly&&(x=a.selectionObject,x!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&x.actualBounds.w()&&x.Ed()&&(E=a.Pj(y),E===null?(E=this.makeAdornment(x,!0),a.bh(y,E)):E.v())),E===null&&a.Jf(y)}},_s.prototype.makeAdornment=function(a,y){var E=new Hr;return E.type=Wn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&E.add(y.copy()),E.adornedObject=a,E},_s.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},_s.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 E=y.part;if(!(E instanceof Hr&&E.adornedPart instanceof Jn))return;this.handle=y,this.isForwards=E===null||E.category==="RelinkTo",this.originalLink=E.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=lr),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=lr),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},_s.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var E=a.curve;(E===ig||E===wd)&&(E=Ws),y.curve=E,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}},_s.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()},_s.prototype.doStop=function(){Uo.prototype.doStop.call(this),this.handle=null},_s.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,E=this.originalFromPort,x=this.originalToNode,b=this.originalToPort,z=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var ee=this.targetPort.part;ee instanceof li&&(this.isForwards?(x=ee,b=this.targetPort):(y=ee,E=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?b=x=null:E=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?x:y,this.isForwards?b:E,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()}}},_s.prototype.reconnectLink=function(a,y,E,x){return E=E!==null&&E.portId!==null?E.portId:"",x?(a.toNode=y,a.toPortId=E):(a.fromNode=y,a.fromPortId=E),!0},_s.prototype.doNoRelink=function(){};function we(a,y,E,x,b){y!==null?(a.copyPortProperties(y,E,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),x!==null?(a.copyPortProperties(x,b,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}zt.Object.defineProperties(_s.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 Hr))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),_s.className="RelinkingTool",Wi("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Wi("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function He(){Dr.call(this),this.name="LinkReshaping";var a=new yr;a.figure="Rectangle",a.desiredSize=Lo,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new yr,a.figure="Diamond",a.desiredSize=ao,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new dt,this.Yq=new Un}en(He,Dr),He.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:tt},He.prototype.om=function(a,y){a.reshapingBehavior=y},He.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Jn){var y=null;if(a.isSelected&&!this.diagram.isReadOnly){var E=a.path;E!==null&&a.canReshape()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(y=a.Pj(this.name),y===null||y.Aw!==a.pointsCount||y.Uw!==a.resegmentable)&&(y=this.makeAdornment(E),y!==null&&(y.Aw=a.pointsCount,y.Uw=a.resegmentable,a.bh(this.name,y)))}y===null&&a.Jf(this.name)}},He.prototype.makeAdornment=function(a){var y=a.part,E=y.pointsCount,x=y.isOrthogonal,b=null;if(y.points!==null&&1<E){b=new Hr,b.type=Wn.Link,E=y.firstPickIndex;var z=y.lastPickIndex,ee=x?1:0;if(y.resegmentable&&y.computeCurve()!==Yl)for(var re=E+ee;re<z-ee;re++){var oe=this.makeResegmentHandle(a,re);oe!==null&&(oe.segmentIndex=re,oe.segmentFraction=.5,oe.fromMaxLinks=999,b.add(oe))}for(ee=E+1;ee<z;ee++)if(re=this.makeHandle(a,ee),re!==null){if(re.segmentIndex=ee,ee!==E)if(ee===E+1&&x){oe=y.i(E);var ce=y.i(E+1);Ft.B(oe.x,ce.x)&&Ft.B(oe.y,ce.y)&&(ce=y.i(E-1)),Ft.B(oe.x,ce.x)?(this.om(re,wt),re.cursor="n-resize"):Ft.B(oe.y,ce.y)&&(this.om(re,Et),re.cursor="w-resize")}else ee===z-1&&x?(oe=y.i(z-1),ce=y.i(z),Ft.B(oe.x,ce.x)&&Ft.B(oe.y,ce.y)&&(oe=y.i(z+1)),Ft.B(oe.x,ce.x)?(this.om(re,wt),re.cursor="n-resize"):Ft.B(oe.y,ce.y)&&(this.om(re,Et),re.cursor="w-resize")):ee!==z&&(this.om(re,Bt),re.cursor="move");b.add(re)}b.adornedObject=a}return b},He.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},He.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},He.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},He.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 Jn){if(this.Ts=y,a.isMouseCaptured=!0,this.Ea(this.name),y.resegmentable&&this.handle.fromMaxLinks===999){var E=y.points.copy(),x=this.getResegmentingPoint();if(E.Gb(this.handle.segmentIndex+1,x),y.isOrthogonal&&E.Gb(this.handle.segmentIndex+1,x),y.points=E,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}}},He.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},He.prototype.stopTransaction=function(){var a=this.diagram,y=Dr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},He.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},He.prototype.getResegmentingPoint=function(){return this.handle.ga(Xi)},He.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},He.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 E=this.handle.segmentIndex,x=y.i(E-1),b=y.i(E),z=y.i(E+1);if(y.isOrthogonal){if(E>y.firstPickIndex+1&&E<y.lastPickIndex-1){var ee=y.i(E-2);if(Math.abs(x.x-b.x)<this.resegmentingDistance&&Math.abs(x.y-b.y)<this.resegmentingDistance&&(Qe(this,ee,x,b,z,!0)||Qe(this,ee,x,b,z,!1))){var re=y.points.copy();Qe(this,ee,x,b,z,!0)?(re.cd(E-2,new dt(ee.x,(z.y+ee.y)/2)),re.cd(E+1,new dt(z.x,(z.y+ee.y)/2))):(re.cd(E-2,new dt((z.x+ee.x)/2,ee.y)),re.cd(E+1,new dt((z.x+ee.x)/2,z.y))),re.mb(E),re.mb(E-1),y.points=re,y.Wb()}else ee=y.i(E+2),Math.abs(b.x-z.x)<this.resegmentingDistance&&Math.abs(b.y-z.y)<this.resegmentingDistance&&(Qe(this,x,b,z,ee,!0)||Qe(this,x,b,z,ee,!1))&&(re=y.points.copy(),Qe(this,x,b,z,ee,!0)?(re.cd(E-1,new dt(x.x,(x.y+ee.y)/2)),re.cd(E+2,new dt(ee.x,(x.y+ee.y)/2))):(re.cd(E-1,new dt((x.x+ee.x)/2,x.y)),re.cd(E+2,new dt((x.x+ee.x)/2,ee.y))),re.mb(E+1),re.mb(E),y.points=re,y.Wb())}}else ee=dt.alloc(),Ft.qh(x.x,x.y,z.x,z.y,b.x,b.y,ee)&&ee.Bf(b)<this.resegmentingDistance*this.resegmentingDistance&&(x=y.points.copy(),x.mb(E),y.points=x,y.Wb()),dt.free(ee)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Qe(a,y,E,x,b,z){return z?Math.abs(y.y-E.y)<a.resegmentingDistance&&Math.abs(E.y-x.y)<a.resegmentingDistance&&Math.abs(x.y-b.y)<a.resegmentingDistance:Math.abs(y.x-E.x)<a.resegmentingDistance&&Math.abs(E.x-x.x)<a.resegmentingDistance&&Math.abs(x.x-b.x)<a.resegmentingDistance}He.prototype.reshape=function(a){var y=this.adornedLink;y.uh();var E=this.handle.segmentIndex,x=this.Ru(this.handle);if(y.isOrthogonal)if(E===y.firstPickIndex+1)E=y.firstPickIndex+1,x===wt?(y.L(E,y.i(E-1).x,a.y),y.L(E+1,y.i(E+2).x,a.y)):x===Et&&(y.L(E,a.x,y.i(E-1).y),y.L(E+1,a.x,y.i(E+2).y));else if(E===y.lastPickIndex-1)E=y.lastPickIndex-1,x===wt?(y.L(E-1,y.i(E-2).x,a.y),y.L(E,y.i(E+1).x,a.y)):x===Et&&(y.L(E-1,a.x,y.i(E-2).y),y.L(E,a.x,y.i(E+1).y));else{x=E;var b=y.i(x),z=y.i(x-1),ee=y.i(x+1);Ft.B(z.x,b.x)&&Ft.B(b.y,ee.y)?(Ft.B(z.x,y.i(x-2).x)&&!Ft.B(z.y,y.i(x-2).y)?(y.m(x,a.x,z.y),E++,x++):y.L(x-1,a.x,z.y),Ft.B(ee.y,y.i(x+2).y)&&!Ft.B(ee.x,y.i(x+2).x)?y.m(x+1,ee.x,a.y):y.L(x+1,ee.x,a.y)):Ft.B(z.y,b.y)&&Ft.B(b.x,ee.x)?(Ft.B(z.y,y.i(x-2).y)&&!Ft.B(z.x,y.i(x-2).x)?(y.m(x,z.x,a.y),E++,x++):y.L(x-1,z.x,a.y),Ft.B(ee.x,y.i(x+2).x)&&!Ft.B(ee.y,y.i(x+2).y)?y.m(x+1,a.x,ee.y):y.L(x+1,a.x,ee.y)):Ft.B(z.x,b.x)&&Ft.B(b.x,ee.x)?(Ft.B(z.x,y.i(x-2).x)&&!Ft.B(z.y,y.i(x-2).y)?(y.m(x,a.x,z.y),E++,x++):y.L(x-1,a.x,z.y),Ft.B(ee.x,y.i(x+2).x)&&!Ft.B(ee.y,y.i(x+2).y)?y.m(x+1,a.x,ee.y):y.L(x+1,a.x,ee.y)):Ft.B(z.y,b.y)&&Ft.B(b.y,ee.y)&&(Ft.B(z.y,y.i(x-2).y)&&!Ft.B(z.x,y.i(x-2).x)?(y.m(x,z.x,a.y),E++,x++):y.L(x-1,z.x,a.y),Ft.B(ee.y,y.i(x+2).y)&&!Ft.B(ee.x,y.i(x+2).x)?y.m(x+1,ee.x,a.y):y.L(x+1,ee.x,a.y)),y.L(E,a.x,a.y)}else y.L(E,a.x,a.y),x=y.fromNode,b=y.fromPort,x!==null&&(z=x.findVisibleNode(),z!==null&&z!==x&&(x=z,b=x.port)),E===1&&y.computeSpot(!0,b).Mc()&&(z=b.ga(Xi,dt.alloc()),x=y.getLinkPointFromPoint(x,b,z,a,!0,dt.alloc()),y.L(0,x.x,x.y),dt.free(z),dt.free(x)),x=y.toNode,b=y.toPort,x!==null&&(z=x.findVisibleNode(),z!==null&&z!==x&&(x=z,b=x.port)),E===y.pointsCount-2&&y.computeSpot(!1,b).Mc()&&(E=b.ga(Xi,dt.alloc()),a=y.getLinkPointFromPoint(x,b,E,a,!1,dt.alloc()),y.L(y.pointsCount-1,a.x,a.y),dt.free(E),dt.free(a));y.zf()},He.prototype.computeReshape=function(a){var y=this.adornedLink,E=this.handle.segmentIndex;switch(this.Ru(this.handle)){case Bt:return a;case wt:return new dt(y.i(E).x,a.y);case Et:return new dt(a.x,y.i(E).y);default:case tt:return y.i(E)}},zt.Object.defineProperties(He.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 Hr))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}}}),He.prototype.setReshapingBehavior=He.prototype.om,He.prototype.getReshapingBehavior=He.prototype.Ru;var tt=new Mn(He,"None",0),Et=new Mn(He,"Horizontal",1),wt=new Mn(He,"Vertical",2),Bt=new Mn(He,"All",3);He.className="LinkReshapingTool",He.None=tt,He.Horizontal=Et,He.Vertical=wt,He.All=Bt,Wi("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function Qt(){Dr.call(this),this.name="Resizing",this.o=new ti(1,1).freeze(),this.j=new ti(9999,9999).freeze(),this.yg=new ti(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new yr;a.alignmentFocus=Xi,a.figure="Rectangle",a.desiredSize=Lo,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new dt,this.Dw=new ti,this.Tn=new dt,this.rt=new ti(0,0),this.qt=new ti(1/0,1/0),this.pt=new ti(1,1)}en(Qt,Dr),Qt.prototype.updateAdornments=function(a){if(!(a===null||a instanceof Jn)){if(a.isSelected&&!this.diagram.isReadOnly){var y=a.resizeObject,E=a.Pj(this.name);if(y!==null&&a.canResize()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed()&&((E===null||E.adornedObject!==y)&&(E=this.makeAdornment(y)),E!==null)){y=y.li(),Qd(a)&&this.updateResizeHandles(E,y),a.bh(this.name,E);return}}a.Jf(this.name)}},Qt.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new Hr,y.type=Wn.Spot,y.locationSpot=Xi;var E=new Ys;E.isPanelMain=!0,y.add(E),y.add(this.makeHandle(a,_i)),y.add(this.makeHandle(a,ur)),y.add(this.makeHandle(a,co)),y.add(this.makeHandle(a,jo)),y.add(this.makeHandle(a,es)),y.add(this.makeHandle(a,Ha)),y.add(this.makeHandle(a,ts)),y.add(this.makeHandle(a,hs))}else if(Su(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Qt.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},Qt.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))e:{var E=a.alignment;if(E.Mc()&&(E=Xi),0>=E.x)y=0>=E.y?y+225:1<=E.y?y+135:y+180;else if(1<=E.x)0>=E.y?y+=315:1<=E.y&&(y+=45);else if(0>=E.y)y+=270;else if(1<=E.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 Wn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},Qt.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},Qt.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))},Qt.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},Qt.prototype.stopTransaction=function(){var a=this.diagram,y=Dr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Qt.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Qt.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,E=this.qt,x=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,dt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,E,x,z),this.resize(y),a.bd(),dt.free(b)}},Qt.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,E=this.qt,x=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,dt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,E,x,z),this.resize(y),dt.free(b),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Qt.prototype.resize=function(a){var y=this.diagram,E=this.adornedObject;if(E!==null){if(E.desiredSize=a.size,a=E.part,a.Va(),E=E.ga(this.handle.alignment.gv()),a instanceof dr){var x=new Un;if(x.add(a),!this.dragsMembers&&a.placeholder===null){var b=new ae;b.dragsMembers=!1}y.moveParts(x,this.oppositePoint.copy().re(E),!0,b)}else a.location=a.location.copy().re(E).add(this.oppositePoint);y.bd()}},Qt.prototype.computeResize=function(a,y,E,x,b,z){y.Mc()&&(y=Xi);var ee=this.adornedObject.naturalBounds,re=ee.x,oe=ee.y,ce=ee.x+ee.width,fe=ee.y+ee.height,ye=1;if(!z){ye=ee.width;var Ne=ee.height;0>=ye&&(ye=1),0>=Ne&&(Ne=1),ye=Ne/ye}return Ne=dt.alloc(),Ft.No(a.x,a.y,re,oe,b.width,b.height,Ne),a=ee.copy(),0>=y.x?0>=y.y?(a.x=Math.max(Ne.x,ce-x.width),a.x=Math.min(a.x,ce-E.width),a.width=Math.max(ce-a.x,E.width),a.y=Math.max(Ne.y,fe-x.height),a.y=Math.min(a.y,fe-E.height),a.height=Math.max(fe-a.y,E.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ye*a.width,x.height),E.height),a.width=a.height/ye):(a.width=Math.max(Math.min(a.height/ye,x.width),E.width),a.height=ye*a.width),a.x=ce-a.width,a.y=fe-a.height)):1<=y.y?(a.x=Math.max(Ne.x,ce-x.width),a.x=Math.min(a.x,ce-E.width),a.width=Math.max(ce-a.x,E.width),a.height=Math.max(Math.min(Ne.y-oe,x.height),E.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ye*a.width,x.height),E.height),a.width=a.height/ye):(a.width=Math.max(Math.min(a.height/ye,x.width),E.width),a.height=ye*a.width),a.x=ce-a.width)):(a.x=Math.max(Ne.x,ce-x.width),a.x=Math.min(a.x,ce-E.width),a.width=ce-a.x,z||(a.height=Math.max(Math.min(ye*a.width,x.height),E.height),a.width=a.height/ye,a.y=oe+.5*(fe-oe-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(Ne.x-re,x.width),E.width),a.y=Math.max(Ne.y,fe-x.height),a.y=Math.min(a.y,fe-E.height),a.height=Math.max(fe-a.y,E.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ye*a.width,x.height),E.height),a.width=a.height/ye):(a.width=Math.max(Math.min(a.height/ye,x.width),E.width),a.height=ye*a.width),a.y=fe-a.height)):1<=y.y?(a.width=Math.max(Math.min(Ne.x-re,x.width),E.width),a.height=Math.max(Math.min(Ne.y-oe,x.height),E.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ye*a.width,x.height),E.height),a.width=a.height/ye):(a.width=Math.max(Math.min(a.height/ye,x.width),E.width),a.height=ye*a.width))):(a.width=Math.max(Math.min(Ne.x-re,x.width),E.width),z||(a.height=Math.max(Math.min(ye*a.width,x.height),E.height),a.width=a.height/ye,a.y=oe+.5*(fe-oe-a.height))):0>=y.y?(a.y=Math.max(Ne.y,fe-x.height),a.y=Math.min(a.y,fe-E.height),a.height=fe-a.y,z||(a.width=Math.max(Math.min(a.height/ye,x.width),E.width),a.height=ye*a.width,a.x=re+.5*(ce-re-a.width))):1<=y.y&&(a.height=Math.max(Math.min(Ne.y-oe,x.height),E.height),z||(a.width=Math.max(Math.min(a.height/ye,x.width),E.width),a.height=ye*a.width,a.x=re+.5*(ce-re-a.width))),dt.free(Ne),a},Qt.prototype.computeReshape=function(){var a=Rn;return this.adornedObject instanceof yr&&(a=Nv(this.adornedObject)),!(a===Mi||this.diagram.lastInput.shift)},Qt.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},Qt.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},Qt.prototype.computeCellSize=function(){var a=new ti(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},zt.Object.defineProperties(Qt.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 Hr))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 Hr)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}}}),Qt.className="ResizingTool",Wi("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function _n(){Dr.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new dt,this.ue=null;var a=new yr;a.figure="Ellipse",a.desiredSize=ao,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new dt(NaN,NaN),this.u=0,this.F=50}en(_n,Dr),_n.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 E=a.Pj(this.name);if((E===null||E.adornedObject!==y)&&(E=this.makeAdornment(y)),E!==null){E.angle=y.li(),E.placeholder===null&&(E.location=this.computeAdornmentLocation(y)),a.bh(this.name,E);return}}a.Jf(this.name)}},_n.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Hr,y.type=Wn.Position,y.locationSpot=Xi;var E=this.handleArchetype;E!==null&&y.add(E.copy())}else if(Su(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},_n.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},_n.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)},_n.prototype.computeRotationPoint=function(a){var y=a.part,E=y.locationObject;return y.rotationSpot.sb()?a.ga(y.rotationSpot):a===y||a===E?E.ga(y.locationSpot):a.ga(Xi)},_n.prototype.computeAdornmentLocation=function(a){var y=this.rotationPoint;y.w()||(y=this.computeRotationPoint(a)),y=a.qs(y);var E=this.handleAngle;0>E?E+=360:360<=E&&(E-=360),E=Math.round(45*Math.round(E/45));var x=this.handleDistance;return E===0?y.x=a.naturalBounds.width+x:E===45?(y.x=a.naturalBounds.width+x,y.y=a.naturalBounds.height+x):E===90?y.y=a.naturalBounds.height+x:E===135?(y.x=-x,y.y=a.naturalBounds.height+x):E===180?y.x=-x:E===225?(y.x=-x,y.y=-x):E===270?y.y=-x:E===315&&(y.x=a.naturalBounds.width+x,y.y=-x),a.ga(y)},_n.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new dt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},_n.prototype.stopTransaction=function(){var a=this.diagram,y=Dr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},_n.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},_n.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},_n.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()},_n.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var E=y.locationObject,x=y.rotateObject;(E===x||E.rg(x))&&(E=this.Tn.copy(),y.location=E.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},_n.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 E=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0<y&&0<E&&(a%y<E?a=Math.floor(a/y)*y:a%y>y-E&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},zt.Object.defineProperties(_n.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 Hr))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 Hr)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}}}),_n.className="RotatingTool",Wi("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Hn(){Dr.call(this),this.name="ClickSelecting"}en(Hn,Dr),Hn.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Hn.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Hn.className="ClickSelectingTool";function xn(){Dr.call(this),this.name="Action",this.pk=null}en(xn,Dr),xn.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,E=a.ic(y.documentPoint,function(x){for(;x.panel!==null&&!x.isActionable;)x=x.panel;return x});return E!==null&&E.isActionable?(this.pk=E,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},xn.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()},xn.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))}},xn.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(E){for(;E.panel!==null&&(!E.isActionable||E!==y);)E=E.panel;return E},function(E){return E===y})}this.stopTool()},xn.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())},xn.prototype.doStop=function(){this.pk=null},xn.className="ActionTool";function ri(){Dr.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new dt(0,0)}en(ri,Dr),ri.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)},ri.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},ri.prototype.insertPart=function(a){var y=this.diagram,E=this.archetypeNodeData;if(E===null)return null;var x=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),E instanceof Bi)E.Zc()&&(Su(E),x=E.copy(),x!==null&&y.add(x));else if(E!==null){var b=y.model.copyNodeData(E);jt(b)&&(y.model.xf(b),x=y.Lc(b))}if(x!==null){var z=dt.allocAt(a.x,a.y);this.isGridSnapEnabled&&kf(this.diagram,x,a,z),x.location=z,y.allowSelect&&(y.clearSelection(!0),x.isSelected=!0),dt.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",x)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return x},zt.Object.defineProperties(ri.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}}}),ri.className="ClickCreatingTool";function $n(){Dr.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Bi;a.layerName="Tool",a.selectable=!1;var y=new yr;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}en($n,Dr),$n.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))},$n.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},$n.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},$n.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive&&this.box!==null){var y=this.computeBoxBounds(),E=this.box.fb("SHAPE");E===null&&(E=this.box.Pb());var x=ti.alloc().h(y.width,y.height);E.desiredSize=x,this.box.mm(y.x,y.y,!1),ti.free(x),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},$n.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()},$n.prototype.computeBoxBounds=function(){var a=this.diagram;return new pn(a.firstInput.documentPoint,a.lastInput.documentPoint)},$n.prototype.selectInRect=function(a){var y=this.diagram,E=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),ar?E.meta:E.control)if(E.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(E.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0);else{for(E=new Un,y=y.selection.iterator;y.next();){var x=y.value;a.contains(x)||E.add(x)}for(y=E.iterator;y.next();)y.value.isSelected=!1;for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0)}},zt.Object.defineProperties($n.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}}}),$n.className="DragSelectingTool";function Pn(){Dr.call(this),this.name="Panning",this.Xt=new dt,this.xy=new dt,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Bn.document,"scroll",a.Kw,!1),a.stopTool()}}en(Pn,Dr),Pn.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())},Pn.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(Bn.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},Pn.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},Pn.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},Pn.prototype.doMouseMove=function(){this.move()},Pn.prototype.doMouseUp=function(){this.move(),this.stopTool()},Pn.prototype.move=function(){var a=this.diagram;if(this.isActive&&a)if(this.xg)a.lastInput.bubbles=!0;else{var y=a.position,E=a.firstInput.documentPoint,x=a.lastInput.documentPoint,b=y.x+E.x-x.x;E=y.y+E.y-x.y,a.allowHorizontalScroll||(b=y.x),a.allowVerticalScroll||(E=y.y),a.position=this.xy.h(b,E)}},zt.Object.defineProperties(Pn.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),Pn.className="PanningTool",Wi("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Wi("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Wi("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Wi("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Wi("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function Br(){this.F=this.u=this.j=this.o=null}zt.Object.defineProperties(Br.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}}}),Br.className="HTMLInfo";function Xr(a,y,E){this.text=a,this.hx=y,this.visible=E}Xr.className="ContextMenuButtonInfo";function so(){Dr.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new dt,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}en(so,Dr);function Er(a){var y=new Br;y.show=function(b,z,ee){ee.showDefaultContextMenu()},y.hide=function(b,z){z.hideDefaultContextMenu()},or=y,a.tu=function(){a.stopTool()},y=Yi("div");var E=Yi("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",E.style.cssText="z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;";var x=Yi("style");Bn.document.getElementsByTagName("head")[0].appendChild(x),x.sheet.insertRule(".goCXul { list-style: none; }",0),x.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),x.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),x=a.diagram,x!==null&&(x.addEventListener(y,"contextmenu",zr,!1),x.addEventListener(y,"selectstart",zr,!1),x.addEventListener(E,"contextmenu",zr,!1)),y.className="goCXforeground",E.className="goCXbackground",Bn.document.body&&(Bn.document.body.appendChild(y),Bn.document.body.appendChild(E)),ta=y,ka=E,da=!0}function zr(a){return a.preventDefault(),!1}so.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)},so.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},so.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},so.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,E=y.lastInput,x=null;if(a instanceof Jt||(a instanceof Rt?x=a:x=y.ic(E.documentPoint,null,function(b){return!b.layer.isTemporary})),x!==null){for(a=x;a!==null;){if(a.contextMenu!==null)return a;a=a.panel}if(y.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return x.part}else if(y.contextMenu!==null)return y;return null},so.prototype.doActivate=function(){},so.prototype.doMouseDown=function(){if(Dr.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Hr){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&Yr(this)},so.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Hr){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}Yr(this)};function Yr(a){var y=a.diagram;if(a.isActive){var E=a.currentContextMenu;if(E!==null){var x=null;E instanceof Br||(x=y.ic(y.lastInput.documentPoint,null,null),x!==null&&x.rg(E)&&a.standardMouseClick(null,null)),a.maybeStopTool(x)}}else a.canStart()&&(aa(a,!0),a.isActive||a.stopTool())}so.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function aa(a,y,E){if(E===void 0&&(E=null),!a.Et&&(a.Et=!0,y&&a.standardMouseSelect(),y=a.standardMouseClick(),a.Et=!1,!y)){if(a.isActive=!0,y=or,E===null&&(E=a.findObjectWithContextMenu()),E!==null){var x=E.contextMenu;x!==null?(a.currentObject=E instanceof Rt?E:null,a.showContextMenu(x,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Hr&&!a.currentContextMenu.visible&&a.stopTool()}}so.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},so.prototype.showContextMenu=function(a,y){var E=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof Hr){a.layerName="Tool",a.selectable=!1,a.scale=1/E.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=E.scale);var x=a.diagram;x!==null&&x!==E&&x.remove(a),E.add(a),y!==null?a.adornedObject=y:a.data=E.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof Br&&a.show(y,E,this);this.currentContextMenu=a},so.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,E=y.lastInput.documentPoint.copy(),x=a.measuredBounds,b=y.viewportBounds;y.lastInput.isTouchEvent&&(E.x-=x.width),E.x+x.width>b.right&&(E.x-=x.width+5/y.scale),E.x<b.x&&(E.x=b.x),E.y+x.height>b.bottom&&(E.y-=x.height+5/y.scale),E.y<b.y&&(E.y=b.y),a.position=E}},so.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof Hr?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Br&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function sa(a){var y=new Un;return y.add(new Xr("Copy",function(E){E.commandHandler.copySelection()},function(E){return E.commandHandler.canCopySelection()})),y.add(new Xr("Cut",function(E){E.commandHandler.cutSelection()},function(E){return E.commandHandler.canCutSelection()})),y.add(new Xr("Delete",function(E){E.commandHandler.deleteSelection()},function(E){return E.commandHandler.canDeleteSelection()})),y.add(new Xr("Paste",function(E){E.commandHandler.pasteSelection(a.mouseDownPoint)},function(E){return E.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Xr("Select All",function(E){E.commandHandler.selectAll()},function(E){return E.commandHandler.canSelectAll()})),y.add(new Xr("Undo",function(E){E.commandHandler.undo()},function(E){return E.commandHandler.canUndo()})),y.add(new Xr("Redo",function(E){E.commandHandler.redo()},function(E){return E.commandHandler.canRedo()})),y.add(new Xr("Scroll To Part",function(E){E.commandHandler.scrollToPart()},function(E){return E.commandHandler.canScrollToPart()})),y.add(new Xr("Zoom To Fit",function(E){E.commandHandler.zoomToFit()},function(E){return E.commandHandler.canZoomToFit()})),y.add(new Xr("Reset Zoom",function(E){E.commandHandler.resetZoom()},function(E){return E.commandHandler.canResetZoom()})),y.add(new Xr("Group Selection",function(E){E.commandHandler.groupSelection()},function(E){return E.commandHandler.canGroupSelection()})),y.add(new Xr("Ungroup Selection",function(E){E.commandHandler.ungroupSelection()},function(E){return E.commandHandler.canUngroupSelection()})),y.add(new Xr("Edit Text",function(E){E.commandHandler.editTextBlock()},function(E){return E.commandHandler.canEditTextBlock()})),y}so.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=sa(this)),ta.innerHTML="",ka.addEventListener("pointerdown",this.tu,!1);var y=this,E=Yi("ul");E.className="goCXul",ta.appendChild(E),E.innerHTML="";for(var x=this.jt.iterator;x.next();){var b=x.value,z=b.visible;if(typeof b.hx=="function"&&(typeof z!="function"||z(a))){z=Yi("li"),z.className="goCXli";var ee=Yi("a");ee.className="goCXa",ee.href="#",ee.ky=b.hx,ee.addEventListener("pointerdown",function(re){return this.ky(a),y.stopTool(),re.preventDefault(),!1},!1),ee.textContent=b.text,z.appendChild(ee),E.appendChild(z)}}ta.style.display="block",ka.style.display="block"},so.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===or){ta.style.display="none",ka.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(ka,"pointerdown",this.tu,!1),this.currentContextMenu=null}},zt.Object.defineProperties(so.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Hr?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return da===!1&&or===null&&Ko&&Er(this),or},set:function(a){a===null&&(da=!0),or=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var or=null,da=!1,ka=null,ta=null;so.className="ContextMenuTool",Wi("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function Fr(){Dr.call(this),this.name="TextEditing",this.Zh=new Eo,this.ia=null,this.V=Ms,this.vj=null,this.qa=Zn,this.u=1,this.F=!0,this.o=null,this.j=new Br,this.kt=null,js(this,this.j)}en(Fr,Dr);function js(a,y){if(Ko){var E=Yi("textarea");a.kt=E,E.addEventListener("input",function(){if(a.textBlock!==null){var x=a.Lx(this.value);this.style.width=20+x.measuredBounds.width*this.wA+"px",this.rows=x.lineCount}},!1),E.addEventListener("keydown",function(x){if(!x.isComposing&&a.textBlock!==null){var b=x.key;b==="Enter"?(a.textBlock.isMultiline===!1&&x.preventDefault(),a.acceptText(La)):b==="Tab"?(a.acceptText(Do),x.preventDefault()):b==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),E.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Zn){var x=a.kt;a.qa===zs&&(a.qa=Tl),typeof x.select=="function"&&a.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},!1),E.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Zn){var x=a.kt;typeof x.focus=="function"&&x.focus(),typeof x.select=="function"&&a.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return E.value},y.mainElement=E,y.show=function(x,b,z){if(x instanceof Eo&&z instanceof Fr)if(z.state===Ps)E.style.border="3px solid red",E.focus();else{var ee=x.ga(Xi),re=b.position,oe=b.scale,ce=x.Df()*oe;ce<z.minimumEditorScale&&(ce=z.minimumEditorScale);var fe=x.naturalBounds.width*ce+6,ye=x.naturalBounds.height*ce+2,Ne=(ee.x-re.x)*oe;ee=(ee.y-re.y)*oe,re=x.verticalAlignment,oe=(x.lineHeight+x.spacingAbove+x.spacingBelow)*x.lineCount*ce,ye=re.y*ye-re.y*oe+re.offsetY-(.5*ye-.5*oe)-oe/2,E.value=x.text,b.div.style.font=x.font,E.style.position="absolute",E.style.zIndex="100",E.style.font="inherit",E.style.fontSize=100*ce+"%",E.style.lineHeight="normal",E.style.width=fe+"px",E.style.left=(Ne-fe/2|0)-1+"px",E.style.top=(ee+ye|0)-1+"px",E.style.textAlign=x.textAlign,E.style.margin="0",E.style.padding="1px",E.style.border="0",E.style.outline="none",E.style.whiteSpace="pre-wrap",E.style.overflow="hidden",E.rows=x.lineCount,E.wA=ce,E.className="goTXarea",b.div.appendChild(E),E.focus(),z.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},y.hide=function(x){x.div.removeChild(E)}}}Fr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||Xl&&Xl!==this&&(Xl.acceptText(to),Xl&&Xl!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof Eo&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===Ms&&!y.isSelected||this.starting===fl&&2>a.lastInput.clickCount)):!1},Fr.prototype.doStart=function(){Xl=this,this.textBlock!==null&&this.doActivate()},Fr.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 Eo&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=zs;var E=this.defaultTextEditor;y.textEditor!==null&&(E=y.textEditor),this.Zh=this.textBlock.copy();var x=new pn(this.textBlock.ga(_i),this.textBlock.ga(co));a.tv(x),E.show(y,a,this),this.currentTextEditor=E}}}},Fr.prototype.doCancel=function(){this.stopTool()},Fr.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Fr.prototype.doMouseDown=function(){this.isActive&&this.acceptText(to)},Fr.prototype.acceptText=function(a){switch(a){case to:this.qa===Bl?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===zs||this.qa===Ps||this.qa===Tl)&&(this.qa=qn,ya(this));break;case oo:case La:case Do:(La!==a||this.textBlock.isMultiline!==!0)&&(this.qa===zs||this.qa===Ps||this.qa===Tl)&&(this.qa=qn,ya(this))}};function ya(a){var y=a.textBlock,E=a.diagram,x=a.currentTextEditor;if(y!==null&&x!==null){var b=y.text,z="";x.valueFunction!==null&&(z=x.valueFunction()),a.isValidText(y,b,z)?(a.Ea(a.name),a.qa=Bl,a.transactionResult=a.name,y.text=z,a.doSuccess(b,z),E!==null&&E.R("TextEdited",y,b),a.stopTransaction(),a.stopTool(),E!==null&&E.doFocus()):(a.qa=Ps,a.doError(b,z))}}Fr.prototype.doError=function(a,y){var E=this.textBlock;E.errorFunction!==null&&E.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(E,this.diagram,this)},Fr.prototype.doSuccess=function(a,y){var E=this.textBlock;E.textEdited!==null&&E.textEdited(E,a,y)},Fr.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Zn,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},Fr.prototype.doStop=function(){Xl=null},Fr.prototype.isValidText=function(a,y,E){var x=this.textValidation;return x!==null&&!x(a,y,E)?!1:(x=a.textValidation,!!(x===null||x(a,y,E)))},Fr.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},zt.Object.defineProperties(Fr.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)}}}),Fr.prototype.measureTemporaryTextBlock=Fr.prototype.Lx;var oo=new Mn(Fr,"LostFocus",0),to=new Mn(Fr,"MouseDown",1),Do=new Mn(Fr,"Tab",2),La=new Mn(Fr,"Enter",3),ps=new Mn(Fr,"SingleClick",0),Ms=new Mn(Fr,"SingleClickSelected",1),fl=new Mn(Fr,"DoubleClick",2),Zn=new Mn(Fr,"StateNone",0),zs=new Mn(Fr,"StateActive",1),Tl=new Mn(Fr,"StateEditing",2),qn=new Mn(Fr,"StateValidating",3),Ps=new Mn(Fr,"StateInvalid",4),Bl=new Mn(Fr,"StateValidated",5),Xl=null;Fr.className="TextEditingTool",Fr.LostFocus=oo,Fr.MouseDown=to,Fr.Tab=Do,Fr.Enter=La,Fr.SingleClick=ps,Fr.SingleClickSelected=Ms,Fr.DoubleClick=fl,Fr.StateNone=Zn,Fr.StateActive=zs,Fr.StateEditing=Tl,Fr.StateValidating=qn,Fr.StateInvalid=Ps,Fr.StateValidated=Bl,Wi("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function ls(a){bi||(Ot(),bi=!0),this.H=Nc,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Gi,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Dn,this.ce=new Si,this.ce.Yd=this,this.Ei=new Dn,this.pu=new Dn,this.Sr=new Dn,this.pr=new Dn,a&&Object.assign(this,a)}ls.prototype.Xe=function(a){this.H=a},ls.prototype.canStart=function(){return!0};function Ia(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),us(a.H),a.zb=!0)}function Al(a){if(a.Jd&&a.zb){var y=a.ce,E=a.H,x=a.Zd.contains("Model");x&&(a.Ok=!0,a.Pk===Gi?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(E,"position",E.position.copy().offset(0,-200),E.position),y.add(E,"opacity",0,1)):a.Pk===no&&y.vc.clear(),a.Qw=!!(a.Pk===Ur&&E.du.D(E.pa)),E.R("InitialAnimationStarting",a)),x&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),vr(y,E),a.Ok=!1,E.N()):(a.Zd.clear(),E.kg=!1,x=y.vc.get(E),E.autoScale!==Ls&&x!==null&&(delete x.start.scale,delete x.end.scale),Bn.requestAnimationFrame(function(){a.zb===!1||y.bc||(E.Gf("temporaryPixelRatio")&&nl(E),Pg(E),a.zb=!1,y.start(),y.bc&&(_l(a),E.Ya(),Jl(y,0),$l(E,!0),Ku(a),E.R("AnimationStarting",a)))}))}}function ys(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function gu(a,y,E,x){a.isTicking||ys(a)||y instanceof Jn&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",E,x,!1)}ke=ls.prototype,ke.fv=function(a){return this.ce.fv(a)},ke.Xu=function(a){return this.ce.Xu(a)};function Iu(a,y){function E(){if(0<b.Sr.count&&(x.addAll(b.Sr),b.Sr.clear(),b.bc=!0),b.bc!==!1&&x.count!==0){b.pu.addAll(x);for(var z=b.pu.iterator;z.next();){var ee=z.value;if(ee.bc!==!1){e:if(0<ee.yl.count)var re=!0;else{for(re=ee.vc.iterator;re.next();){var oe=re.key;if(oe instanceof Rt&&oe.diagram!==null||oe instanceof Jt){re=!0;break e}}re=!1}re?va(ee,!1):ee.Xk=!0}}b.pu.clear(),b.bc!==!1&&(_l(b),$l(b.H),Ku(b)),Bn.requestAnimationFrame(E)}}var x=a.Ei,b=a;a.bc?a.Sr.add(y):(a.bc=!0,x.add(y),Bn.requestAnimationFrame(function(){E()}))}function dd(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function _l(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 Ku(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}ke.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(),vr(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),vr(y,this.H)},ke.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))},ke.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),pe(this,a))},ke.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),lo(this.ce,y,"position",y.position,y.position),pe(this,a))};function _d(a,y,E){!a.zb||y.D(E)||ys(a)||(a.H.pi||(y=E.copy()),lo(a.ce,a.H,"position",y,E))}function ue(a,y,E){y.fd&&(y.Tg=E,a.pr.add(y))}function pe(a,y){for(y=y.findLinksConnected();y.next();){var E=y.value;E.fd&&(E.Tg=E.points.copy(),a.pr.add(E))}}function Ze(a,y,E,x,b){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],ee=a[1],re=a[2];a=a[3];var oe=y[0],ce=y[1],fe=y[2];return y=y[3],re===0||re===100?(z=oe,ee=ce):(fe===0||fe===100)&&(oe=z,ce=ee),180<Math.abs(oe-z)&&(oe>z?z+=360:oe+=360),z=b(E,z,oe-z,x)%360,ee=b(E,ee,ce-ee,x),re=b(E,re,fe-re,x),E=b(E,a,y-a,x),"hsla("+z+", "+ee+"%, "+re+"%, "+E+")"}function Ot(){function a(E,x,b,z,ee,re){E.position=new dt(z(ee,x.x,b.x-x.x,re),z(ee,x.y,b.y-x.y,re))}var y=new vi;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(E,x,b,z,ee,re){ee<re?E.mm(z(ee,x.x,b.x-x.x,re),z(ee,x.y,b.y-x.y,re),!1):E.position=new dt(z(ee,x.x,b.x-x.x,re),z(ee,x.y,b.y-x.y,re))}),y.add("location",function(E,x,b,z,ee,re){ee<re?E.mm(z(ee,x.x,b.x-x.x,re),z(ee,x.y,b.y-x.y,re),!0):E.location=new dt(z(ee,x.x,b.x-x.x,re),z(ee,x.y,b.y-x.y,re))}),y.add("position:placeholder",function(E,x,b,z,ee,re){ee<re?E.mm(z(ee,x.x,b.x-x.x,re),z(ee,x.y,b.y-x.y,re),!1):E.position=new dt(z(ee,x.x,b.x-x.x,re),z(ee,x.y,b.y-x.y,re))}),y.add("position:nodeCollapse",function(E,x,b,z,ee,re){var oe=E.actualBounds,ce=b.actualBounds;b=ce.x+ce.width/2-oe.width/2,oe=ce.y+ce.height/2-oe.height/2,ee<re?E.mm(z(ee,x.x,b-x.x,re),z(ee,x.y,oe-x.y,re),!1):E.position=new dt(z(ee,x.x,b-x.x,re),z(ee,x.y,oe-x.y,re))}),y.add("desiredSize",function(E,x,b,z,ee,re){E.desiredSize=new pn(z(ee,x.width,b.width-x.width,re),z(ee,x.height,b.height-x.height,re))}),y.add("width",function(E,x,b,z,ee,re){E.width=z(ee,x,b-x,re)}),y.add("height",function(E,x,b,z,ee,re){E.height=z(ee,x,b-x,re)}),y.add("fill",function(E,x,b,z,ee,re){E.fill=Ze(x,b,ee,re,z)}),y.add("stroke",function(E,x,b,z,ee,re){E.stroke=Ze(x,b,ee,re,z)}),y.add("strokeWidth",function(E,x,b,z,ee,re){E.strokeWidth=z(ee,x,b-x,re)}),y.add("strokeDashOffset",function(E,x,b,z,ee,re){E.strokeDashOffset=z(ee,x,b-x,re)}),y.add("background",function(E,x,b,z,ee,re){E.background=Ze(x,b,ee,re,z)}),y.add("areaBackground",function(E,x,b,z,ee,re){E.areaBackground=Ze(x,b,ee,re,z)}),y.add("opacity",function(E,x,b,z,ee,re){E.opacity=z(ee,x,b-x,re)}),y.add("scale",function(E,x,b,z,ee,re){E.scale=z(ee,x,b-x,re)}),y.add("angle",function(E,x,b,z,ee,re){E.angle=z(ee,x,b-x,re)}),jn=y}zt.Object.defineProperties(ls.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&&oi(a,">= 1",ls,"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}}}),ls.prototype.stopAnimation=ls.prototype.Cc;var jn=null,bi=!1,Gi=new Mn(ls,"Default",1),Ur=new Mn(ls,"AnimateLocations",2),no=new Mn(ls,"None",3);ls.className="AnimationManager",ls.defineAnimationEffect=function(a,y){bi||(Ot(),bi=!0),jn.add(a,y)},ls.Default=Gi,ls.AnimateLocations=Ur,ls.None=no;function Si(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=pu,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=ho,this.vc=new vi,this.Tt=new vi,this.yl=new Dn,this.Ut=new Dn,this.dw=gd,a&&Object.assign(this,a)}Si.prototype.suspend=function(){this.Xk=!0},Si.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,va(this,!0),_l(this.Yd),$l(this.H),Ku(this.Yd),this.H.redraw()};function vr(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}ke=Si.prototype,ke.start=function(){if(this.vc.count===0||this.bc)return this;for(var a=this.H,y=this.vc.iterator;y.next();){var E=y.key;a===null&&(E instanceof Jt?a=E:E instanceof Rt&&(a=E.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===Gi&&this===y.defaultAnimation&&(this.Lp=Xu,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=ef),_l(y),this.yl.each(function(x){x.data=null,a.add(x)}),Ku(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,Iu(y,this),this)},ke.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},ke.add=function(a,y,E,x,b){if(y==="position"&&E.Xa(x))return this;if(this.H===null&&(a instanceof Jt?this.H=a:a instanceof Rt&&a.diagram!==null&&(this.H=a.diagram)),a instanceof Bi){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return lo(this,a,y,E,x,b),this};function lo(a,y,E,x,b,z){var ee=a.vc;if(y instanceof Jt&&E==="position"&&(E="position:diagram"),(E==="fill"||E==="stroke"||E==="background"||E==="areaBackground")&&(Kc(x),uv(),x=[Gl.j,Gl.u,Gl.o,Gl.F],Kc(b),uv(),b=[Gl.j,Gl.u,Gl.o,Gl.F]),ee.contains(y)){var re=ee.I(y),oe=re.start,ce=re.end;oe[E]===void 0&&(oe[E]=_o(x)),ce[E]=_o(b)}else oe={},ce={},oe[E]=_o(x),ce[E]=_o(b),re=oe.position,y instanceof Rt&&re instanceof dt&&!re.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&re.assign(ce.position),re=new ku(oe,ce,z),ee.add(y,re);ee=oe[E],ee instanceof dt&&!ee.w()&&ee.assign(a.o),z&&E.indexOf("position:")===0&&y instanceof Bi?re.Ku.location=_o(y.location):z&&(re.Ku[E]=_o(x))}function _o(a){return a instanceof dt||a instanceof ti?a.copy():a}ke.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},ke.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function va(a,y){if(!a.Xk||y){var E=a.Yd;if(a.bc!==!1){var x=+new Date,b=x>a.cn?a.Gd:x-a.Qd;y&&(b=a.gw,b<a.Gd?(a.Qd=+new Date-b,a.cn=a.Qd+a.Gd):b=a.Gd),_l(E),Jl(a,b),$l(a.H,!0),Ku(E),x>a.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function Jl(a,y){for(var E=a.Gd,x=a.vc.iterator,b=a.Wk;x.next();){var z=x.key;if(!(z instanceof Rt&&z.diagram===null)){var ee=x.value,re=b?ee.end:ee.start;ee=b?ee.start:ee.end;var oe=jn,ce;for(ce in ee)ce==="position"&&(ee["position:placeholder"]||ee["position:nodeCollapse"])||oe.get(ce)===null||oe.get(ce)(z,re[ce],ee[ce],a.Lp,y,E,a)}}}ke.stop=function(){return this.bc?(this.Ml(!0),this):this},ke.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,E=this.Yd;this.Xk=this.bc=E.Ok=!1,_l(E);for(var x=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,x=x.iterator;for(var z=jn;x.next();){var ee=x.key,re=x.value,oe=b?re.end:re.start,ce=b?re.start:re.end,fe=re.Ku,ye;for(ye in ce)if(z.get(ye)!==null){var Ne=ye;!re.Hu||Ne!=="position:nodeCollapse"&&Ne!=="position:placeholder"||(Ne="position"),z.get(Ne)(ee,oe[ye],fe[ye]!==void 0?fe[ye]:re.Hu?oe[ye]:ce[ye],this.Lp,this.Gd,this.Gd,this)}re.Hu&&fe.location!==void 0&&ee instanceof Bi&&(ee.location=fe.location),re.nv&&ee instanceof Bi&&ee.Zb(!1)}if(y.As.clear(),Qh(y,!1),y.Ya(),y.N(),$l(y,!0),E.defaultAnimation===this){for(ye=E.pr.iterator;ye.next();)b=ye.value,b.Tg!==null&&(b.points=b.Tg,b.Tg=null);E.pr.clear()}$l(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Ku(E),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),vr(this,null),E.Ml(this),y.$b())}},ke.Cj=function(a,y){var E=y.actualBounds,x=null;if(y instanceof dr&&(x=y.placeholder),x!==null?(E=x.ga(_i),x=x.padding,E.x+=x.left,E.y+=x.top,this.add(a,"position",E,a.position,!1)):this.add(a,"position",new dt(E.x+E.width/2,E.y+E.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof dr)for(a=a.memberParts;a.next();)x=a.value,x instanceof li&&this.Cj(x,y)},ke.Aj=function(a,y){if(a.isVisible()){var E=null;if(y instanceof dr&&(E=y.placeholder),E!==null){var x=E.ga(_i);E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position:placeholder",a.position,x,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),x=this.vc,x.contains(a)&&(x.I(a).nv=!0),a instanceof dr)for(a=a.memberParts;a.next();)x=a.value,x instanceof li&&this.Aj(x,y)}},ke.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},zt.Object.defineProperties(Si.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&oi(a,">= 1",Si,"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}}}),Si.prototype.getTemporaryState=Si.prototype.Ez,Si.prototype.stop=Si.prototype.stop,Si.prototype.add=Si.prototype.add,Si.prototype.addTemporaryPart=Si.prototype.Iy;function pu(a,y,E,x){return a/=x/2,1>a?E/2*a*a+y:-E/2*(--a*(a-2)-1)+y}function Xu(a,y,E,x){return a===x?y+E:E*(-Math.pow(2,-10*a/x)+1)+y}Si.className="Animation",Si.EaseLinear=function(a,y,E,x){return E*a/x+y},Si.EaseInOutQuad=pu,Si.EaseInQuad=function(a,y,E,x){return E*(a/=x)*a+y},Si.EaseOutQuad=function(a,y,E,x){return-E*(a/=x)*(a-2)+y},Si.EaseInExpo=function(a,y,E,x){return a===0?y:E*Math.pow(2,10*(a/x-1))+y},Si.EaseOutExpo=Xu;function ku(a,y,E){this.start=a,this.end=y,this.Ku={},this.Hu=E,this.nv=!1}ku.className="AnimationState";function tl(a,y,E){this.xd=null,this.rf=a,this.so=E||Cc,this.uk=null,y!==void 0&&(this.uk=y,E===void 0&&(this.so=Cl))}tl.prototype.copy=function(){var a=new tl(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var E={};y.duration!==void 0&&(E.duration=y.duration),y.finished!==void 0&&(E.finished=y.finished),y.easing!==void 0&&(E.easing=y.easing),a.uk=E}return a};function jl(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))}zt.Object.defineProperties(tl.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 Cc=new Mn(tl,"Default",1),Cl=new Mn(tl,"Immediate",2),Sh=new Mn(tl,"Bundled",3);tl.className="AnimationTrigger",tl.Default=Cc,tl.Immediate=Cl,tl.Bundled=Sh;function Ya(a){Lr(this),this.H=null,this.Pa=new Un,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)}ke=Ya.prototype,ke.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var E=a.s[y];E.Ig=null,xs(E)}a.clear(),this.Zq.length=0},ke.Xe=function(a){this.H=a},ke.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var E=0,x=0,b=0,z=0,ee=0,re=this.Pa.iterator;re.next();){var oe=re.value;oe instanceof dr?b++:oe instanceof li?x++:oe instanceof Jn?z++:oe instanceof Hr?ee++:E++}if(re="",0<E&&(re+=E+" Parts "),0<x&&(re+=x+" Nodes "),0<b&&(re+=b+" Groups "),0<z&&(re+=z+" Links "),0<ee&&(re+=ee+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)E=a.value,re+=`
|
|
|
`+E.toString(),x=E.data,x!==null&&Ir(x)&&(re+=" #"+Ir(x)),E instanceof li?re+=" "+Ki(x):E instanceof Jn&&(re+=" "+Ki(E.fromNode)+" "+Ki(E.toNode));return y+" "+this.Pa.count+": "+re},ke.ic=function(a,y,E){if(y===void 0&&(y=null),E===void 0&&(E=null),this.Uh===!1)return null;var x=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(x=!0);for(var b=dt.alloc(),z=this.Pa.s,ee=z.length;ee--;){var re=z[ee];if((x!==!0||Qd(re)!==!1)&&re.isVisible()&&(b.assign(a),Ji(b,re.oe),re=re.ic(b,y,E),re!==null&&(y!==null&&(re=y(re)),re!==null&&(E===null||E(re)))))return dt.free(b),re}return dt.free(b),null},ke.ji=function(a,y,E,x){if(y===void 0&&(y=null),E===void 0&&(E=null),x instanceof Un||x instanceof Dn||(x=new Dn),this.Uh===!1)return x;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var z=dt.alloc(),ee=this.Pa.s,re=ee.length;re--;){var oe=ee[re];if((b!==!0||Qd(oe)!==!1)&&oe.isVisible()){z.assign(a),Ji(z,oe.oe);var ce=oe;oe.ji(z,y,E,x)&&(y!==null&&(ce=y(ce)),ce===null||E!==null&&!E(ce)||x.add(ce))}}return dt.free(z),x},ke.Cf=function(a,y,E,x,b){if(y===void 0&&(y=null),E===void 0&&(E=null),x===void 0&&(x=!1),b instanceof Un||b instanceof Dn||(b=new Dn),this.Uh===!1)return b;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var ee=this.Pa.s,re=ee.length;re--;){var oe=ee[re];if((z!==!0||Qd(oe)!==!1)&&oe.isVisible()){var ce=oe;oe.Cf(a,y,E,x,b)&&(y!==null&&(ce=y(ce)),ce===null||E!==null&&!E(ce)||b.add(ce))}}return b},ke.Nu=function(a,y,E,x,b,z,ee){if(this.Uh===!1)return b;for(var re=this.Pa.s,oe=re.length;oe--;){var ce=re[oe];if((ee!==!0||Qd(ce)!==!1)&&z(ce)&&ce.isVisible()){var fe=ce;ce.Cf(a,y,E,x,b)&&(y!==null&&(fe=y(fe)),fe===null||E!==null&&!E(fe)||b.add(fe))}}return b},ke.og=function(a,y,E,x,b,z){if(E===void 0&&(E=null),x===void 0&&(x=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof Un||b instanceof Dn)&&(z=b),b=!0),z instanceof Un||z instanceof Dn||(z=new Dn),this.Uh===!1)return z;var ee=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ee=!0);for(var re=dt.alloc(),oe=dt.alloc(),ce=this.Pa.s,fe=ce.length;fe--;){var ye=ce[fe];if((ee!==!0||Qd(ye)!==!1)&&ye.isVisible()){re.assign(a),Ji(re,ye.oe),oe.h(a.x+y,a.y),Ji(oe,ye.oe);var Ne=ye;ye.og(re,oe,E,x,b,z)&&(E!==null&&(Ne=E(Ne)),Ne===null||x!==null&&!x(Ne)||z.add(Ne))}}return dt.free(re),dt.free(oe),z},ke.Fd=function(a,y){if(this.visible){var E=this.Pa.s,x=E.length;if(x!==0){a=ci();for(var b=ci(),z=0;z<x;z++){var ee=E[z];if(ee.vw=z,ee instanceof Jn){if(ee.fd===!1)continue}else if(ee instanceof Hr&&ee.adornedPart!==null)continue;var re=ee.actualBounds;ee.isVisible()&&Nn(re,y)?(ee.Fd(!0),a.push(ee)):(ee.Fd(!1),ee.adornments!==null&&0<ee.adornments.count&&b.push(ee))}for(y=0;y<a.length;y++)for(E=a[y],_v(E),E=E.adornments;E.next();)x=E.value,x.measure(1/0,1/0),x.arrange(),x.Fd(!0);for(y=0;y<b.length;y++)_v(b[y]);pi(a),pi(b)}}};function Vc(a,y){var E=1;return a.pb!==1&&(E=y.globalAlpha,y.globalAlpha=E*a.pb),E}ke.gc=function(a,y,E){if(this.visible&&this.pb!==0&&(E===void 0&&(E=!0),E||!this.isTemporary)){E=this.Pa.s;var x=E.length;if(x!==0){if(a.isTemporary)for(var b=0;b<x;b++)E[b].Gj();b=Vc(this,a);var z=this.Zq;z.length=0;for(var ee=y.scale,re=pn.alloc(),oe=0;oe<x;oe++)this.Oj(a,E[oe],y,z,ee,re,!0);if(pn.free(re),a.isTemporary)for(y=0;y<x;y++)E[y].Gj();a.globalAlpha=b}}};function Xp(a,y,E,x,b){if(a.visible&&a.pb!==0&&(b||!a.isTemporary)){b=a.Pa.s;var z=b.length;if(z!==0){var ee=Vc(a,y),re=a.Zq;re.length=0;for(var oe=E.scale,ce=pn.alloc(),fe=0;fe<z;fe++){var ye=b[fe];x.contains(ye)&&a.Oj(y,ye,E,re,oe,ce,!1)}pn.free(ce),y.globalAlpha=ee}}}ke.Oj=function(a,y,E,x,b,z,ee){if(ee&&!Qd(y))a.Hs(y);else{if(x!==null&&y instanceof Jn&&(y.isOrthogonal&&x.push(y),y.fd===!1)){a.Hs(y);return}for(ee=!1,x=y.containingGroup;x!==null;)ee?x.tb!==null&&z.Ex(x.tb):x.tb!==null&&(ee=!0,z.assign(x.tb)),x=x.containingGroup;var re=y.actualBounds;if(x=!1,ee&&y.isVisible()){if(!z.Yc(re)){a.Hs(y);return}x=!z.Re(re)}x&&(a.save(),a instanceof Nl?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),re.width*b>E.Oq||re.height*b>E.Oq?y.gc(a,E):(b=y.actualBounds,z=y.naturalBounds,b.width===0||b.height===0||isNaN(b.x)||isNaN(b.y)||!y.isVisible()||(E=y.transform,y.areaBackground!==null&&($o(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&($o(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(E.m11,E.m12,E.m21,E.m22,E.dx,E.dy),$o(y,a,y.background,!0,!1,z,b),a.fillRect(0,0,z.width/2,z.height/2),E.ws()||(y=1/(E.m11*E.m22-E.m12*E.m21),a.transform(E.m22*y,-E.m12*y,-E.m21*y,E.m11*y,y*(E.m21*E.dy-E.m22*E.dx),y*(E.m12*E.dx-E.m11*E.dy)))))),x&&(a.restore(),a.Vc(!0))}},ke.g=function(a,y,E,x,b){var z=this.diagram;z!==null&&z.cb(wo,a,this,y,E,x,b)},ke.oi=function(a,y,E){var x=this.Pa;if(y.Ig=this,this===null&&xs(y),a>=x.count)a=x.count;else if(x.M(a)===y)return-1;return x.Gb(a,y),y.Vo(E),x=this.diagram,x!==null&&(E?x.N():x.oi(y)),Mf(this,a,y),a},ke.pc=function(a,y,E){if(!E&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,E);var x=this.Pa;if(0>a||a>=x.length){if(a=x.indexOf(y),0>a)return-1}else if(x.M(a)!==y&&(a=x.indexOf(y),0>a))return-1;return y.Wo(E),x.mb(a),x=this.diagram,x!==null&&(E?x.N():x.pc(y)),y.Ig=null,xs(y),a};function Mf(a,y,E){if(y=Jp(a,y,E),E instanceof dr&&E!==null&&isNaN(E.zOrder)){if(E.memberParts.count!==0){for(var x=-1,b=a.Pa.s,z=b.length,ee=0;ee<z;ee++){var re=b[ee];if(re===E&&(y=ee,0<=x)||0>x&&re.containingGroup===E&&(x=ee,0<=y))break}!(0>x)&&x<y&&(b=a.Pa,b.mb(y),b.Gb(x,E))}y=E.containingGroup,y!==null&&Mf(a,-1,y)}E.svg!==null&&E.svg.remove()}function Jp(a,y,E){var x=E.zOrder;if(isNaN(x))return y;a=a.Pa;var b=a.count;if(1>=b)return y;if(0>y&&(y=a.indexOf(E)),0>y)return-1;for(var z=y-1,ee=NaN;0<=z&&(ee=a.M(z).zOrder,!!isNaN(ee));)z--;for(var re=y+1,oe=NaN;re<b&&(oe=a.M(re).zOrder,!!isNaN(oe));)re++;if(!isNaN(ee)&&ee>x)for(;;){if(z===-1||ee<=x){if(z++,z===y)break;return a.mb(y),a.Gb(z,E),z}for(ee=NaN;0<=--z&&(ee=a.M(z).zOrder,isNaN(ee)););}else if(!isNaN(oe)&&oe<x)for(;;){if(re===b||oe>=x){if(re--,re===y)break;return a.mb(y),a.Gb(re,E),re}for(oe=NaN;++re<b&&(oe=a.M(re).zOrder,isNaN(oe)););}return y}zt.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 E=this.diagram;if(E!==null)for(y===""&<("Cannot rename default Layer to: "+a),E=E.layers;E.next();)E.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)&&oi(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 Jt(a,y){if(dm||(Ss(),dm=!0),Lr(this),Nc=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,Ko){var E=this,x=function(){E.removeEventListener(Bn.document,"DOMContentLoaded",x,!1),E.setRTL()};Bn.document.body!==null?this.setRTL():E.addEventListener(Bn.document,"DOMContentLoaded",x,!1)}this.ol=null,jf.add("Model",$r);var b=this;return this.Hb=function(z){var ee=b.partManager;if(z.model===ee.diagram.model&&ee.diagram.aa){ee.diagram.aa=!1;try{var re=z.change;z.modelChange===""&&re===wo&&ee.updateDataBindings(z.object,z.propertyName)}finally{ee.diagram.aa=!0}}},this.Oc=function(z){b.partManager.doModelChanged(z)},this.hu=this.ku=null,qp(this),this.model=fy(),this.Wg=!0,em(this),this.layout=new Oo,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 hm,a!==void 0&&(typeof a=="string"||Bn.Element&&a instanceof Element?Mg(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var jd,Nc;function qp(a){a.Yd=new ls,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new Un,a.pj=new vi,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new dt(NaN,NaN).freeze(),a.du=new dt(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new dt(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new ir,a.zu=new dt(NaN,NaN).freeze(),a.ut=new pn(NaN,NaN,NaN,NaN).freeze(),a.rj=new mr(0,0,0,0).freeze(),a.sj=gd,a.nu=!1,a.Zt=null,a.fu=null,a.yh=Ls,a.zk=Aa,a.Fg=Ls,a.pq=Aa,a.yt=_i,a.Bt=_i,a.Fc=!0,a.pn=!1,a.De=new Dn,a.Eh=new vi,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new mr(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new Qa,a.bq.diagram=a,a.Qg=new Qa,a.Qg.diagram=a,a.cj=new Qa,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,rv(a),a.ai=new Dn,a.Ht=!0,a.uu=pd,a.pw=!1,a.wu=$h,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 vi,a.Xn=new Un,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 mr(5).freeze(),a.Hw=new Dn().freeze(),a.Nt=999999999,a.nw=new Dn().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 Dn,a.ow=new Dn,a.Xh=null,a.aw=new ti(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new dt,bounds:new pn,Py:new ti,bA:new ti,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new pn(NaN,NaN,NaN,NaN).freeze(),a.wo=new ti(NaN,NaN).freeze(),a.Sp=new pn(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new vi;var y=new li,E=new Eo;E.bind(new ha("text","",Ki)),y.add(E),a.ny=y,a.Lg.add("",y),y=new li,E=new Eo,E.stroke="brown",E.bind(new ha("text","",Ki)),y.add(E),a.Lg.add("Comment",y),y=new li,y.selectable=!1,y.avoidable=!1,E=new yr,E.figure="Ellipse",E.fill="black",E.stroke=null,E.desiredSize=new ti(3,3).ja(),y.add(E),a.Lg.add("LinkLabel",y),a.Yi=new vi,y=new dr,y.selectionObjectName="GROUPPANEL",y.type=Wn.Vertical,E=new Eo,E.font="bold 12pt sans-serif",E.bind(new ha("text","",Ki)),y.add(E),E=new Wn(Wn.Auto),E.name="GROUPPANEL";var x=new yr;x.figure="Rectangle",x.fill="rgba(128,128,128,0.2)",x.stroke="black",E.add(x),x=new Ys,x.padding=new mr(5,5,5,5).ja(),E.add(x),y.add(E),a.ly=y,a.Yi.add("",y),a.Kh=new vi,y=new Jn,E=new yr,E.isPanelMain=!0,y.add(E),E=new yr,E.toArrow="Standard",E.fill="black",E.stroke=null,E.strokeWidth=0,y.add(E),a.my=y,a.Kh.add("",y),y=new Jn,E=new yr,E.isPanelMain=!0,E.stroke="brown",y.add(E),a.Kh.add("Comment",y),y=new Hr,y.type=Wn.Auto,E=new yr,E.fill=null,E.stroke="dodgerblue",E.strokeWidth=3,y.add(E),E=new Ys,E.margin=new mr(1.5,1.5,1.5,1.5).ja(),y.add(E),a.St=y,a.wt=y,y=new Hr,y.type=Wn.Link,E=new yr,E.isPanelMain=!0,E.fill=null,E.stroke="dodgerblue",E.strokeWidth=3,y.add(E),a.Kt=y,a.fe=null,a.mq=!1,a.Ck=null,a.partManager=new $r,a.toolManager=new Co,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=$p(),a.eq=null,a.fq=Kr,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 dt,a.zy=500,a.wp=new dt,a.wq=!1}Jt.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Ch=null,Yd="",Ng(this,!1),this.Xn.clear(),qf(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function Ng(a,y){a.animationManager.Cc(!0),a.Hw=new Dn().freeze(),a.nw=new Dn().freeze();var E=a.skipsUndoManager,x=a.cc!==null&&a.cc!==void 0;x&&(a.skipsUndoManager=!0);var b=null;a.fe!==null&&(b=a.fe.part,b!==null&&a.remove(b));var z=[],ee=a.Wa.length;if(y){for(y=0;y<ee;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<ee;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(),qf(),a.Og.clear(),Zr=[],b!==null&&(a.add(b),a.partManager.parts.remove(b)),x&&(a.skipsUndoManager=E),z}function $p(){return null}Jt.prototype.reset=function(){this.clear(),this.vb=!0,qp(this),fc(this),this.Wg=!0,em(this),this.layout=new Oo,this.Wg=!1,this.model=fy(),this.model.undoManager=new fo,this.vb=this.rn=!1,this.N()},Jt.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Bn.document.body);var y=Yi("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 E="reverse";0<y.scrollLeft?E="default":(y.scrollLeft=1,y.scrollLeft===0&&(E="negative")),a.removeChild(y),this.bu=E},Jt.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Bn.document.body);var y=0;if(Ko){var E=cm;y=jd,E===null&&(E=cm=Yi("p"),E.style.width="100%",E.style.height="200px",E.style.boxSizing="content-box",y=jd=Yi("div"),y.style.position="absolute",y.style.visibility="hidden",y.style.width="200px",y.style.height="150px",y.style.boxSizing="content-box",y.appendChild(E)),y.style.overflow="hidden",a.appendChild(y);var x=E.offsetWidth;y.style.overflow="scroll",E=E.offsetWidth,x===E&&(E=y.clientWidth),a.removeChild(y),y=x-E,y!==0||ar||(y=11)}this.Db=y,this.Gw=!0},Jt.prototype.qb=function(a){a.classType===Jt&&(this.autoScale=a)},Jt.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 E=this.Wa.iterator;E.next();)y+=`
|
|
|
`+E.value.toString(a-1);return y};function Mg(a,y){if(Ko){if(y!=null||lt("Diagram setup requires an argument DIV."),a.Ka!==null&<("Diagram has already completed setup."),typeof y=="string"?a.Ka=Bn.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&&Bn.ResizeObserver){var E=ji(function(){a.$b()},250);a.ol=new Bn.ResizeObserver(function(){E()}),a.ol.observe(a.Ka)}Bn.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var x="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=x,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=Bn.go;var b=new yu(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",Bn.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,x=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),Fg(a,a.Aa,a.ya),a.Ka.insertBefore(b.Oa,a.Ka.firstChild),b=new yu(null),b.width=1,b.height=1,a.jw=b,a.oy=b.context,Ko){b=Yi("div");var z=Yi("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=nm,b.addEventListener("pointerdown",im),b.H=a,b.uy=!0,b.vy=!0,a.ku=b,a.hu=z}a.hk=ji(function(){a.Yh=null,a.N()},300),a.Ov=ji(function(){Pg(a)},250),a.preventDefault=function(ee){return ee.preventDefault(),!1},a.$j=function(ee){if(a.isEnabled){var re=ql(a,ee,!0);re.bubbles=!0;var oe=0,ce=0;re.delta=0,ee.deltaX!==void 0?(ee.deltaX!==0&&(oe=0<ee.deltaX?1:-1),ee.deltaY!==0&&(ce=0<ee.deltaY?1:-1),re.delta=Math.abs(ee.deltaX)>Math.abs(ee.deltaY)?-oe:-ce):ee.wheelDeltaX!==void 0?(ee.wheelDeltaX!==0&&(oe=0<ee.wheelDeltaX?-1:1),ee.wheelDeltaY!==0&&(ce=0<ee.wheelDeltaY?-1:1),re.delta=Math.abs(ee.wheelDeltaX)>Math.abs(ee.wheelDeltaY)?-oe:-ce):ee.wheelDelta!==void 0&&ee.wheelDelta!==0&&(re.delta=0<ee.wheelDelta?1:-1),a.doMouseWheel(),Du(re,ee)}},a.aA=function(ee){a.isEnabled&&(a.Vk=!1,ql(a,ee,!0),ee=a.currentTool,ee.cancelWaitAfter(),ee.standardMouseOver())},a.ui=function(ee){if(a.isEnabled){a.Vk=!0;var re=a.Yt;re[ee.pointerId]===void 0&&(re[ee.pointerId]=ee),re=a.oj;var oe=!1;if(re[0]===null||re[0].pointerId!==ee.pointerId&&re[0].pointerType===ee.pointerType)if(re[1]!==null&&re[1].pointerId===ee.pointerId)re[1]=ee,oe=!0;else if(re[0]===null)re[0]=ee;else if(re[1]===null)re[1]=ee,oe=!0;else{ee.preventDefault();return}else re[0]=ee;(re=ee.pointerType==="touch"||ee.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var ce=oe;oe=Dg(a,ee,!0,!1,!0,ce),xh(a,ee,oe),oe.targetDiagram=kg(ee,ee.target),oe.targetObject=null,ce||oe.clone(a.bq),ce=a.uw,re=re?25:10,ee.timeStamp-a.tw<a.zy&&!(Math.abs(ce.x-ee.screenX)>re||Math.abs(ce.y-ee.screenY)>re)?a.yq++:a.yq=1,oe.clickCount=a.yq,a.tw=ee.timeStamp,a.uw.sg(ee.screenX,ee.screenY),a.doMouseDown(),ee.button===1?ee.preventDefault():Du(oe,ee)}},a.dk=function(ee){if(a.isEnabled){a.Vk=!0;var re=a.oj;if(re[0]===null||re[0].pointerId!==ee.pointerId&&re[0].pointerType===ee.pointerType){if(re[1]!==null&&re[1].pointerId===ee.pointerId){re[1]=ee;return}if(re[0]===null)re[0]=ee;else return}else re[0]=ee;if(re[0].pointerId===ee.pointerId){re=Dg(a,ee,!1,!1,!1,re[1]!==null);var oe=Bn.document.elementFromPoint(ee.clientX,ee.clientY)||null;oe!==null&&oe.shadowRoot!==void 0&&oe.shadowRoot!==null&&(oe=oe.shadowRoot.elementFromPoint(ee.clientX,ee.clientY));var ce=a,fe=ee;oe&&oe.H&&(fe=ee,ce=oe.H),re.targetDiagram=ce,xh(a,fe,re),re.targetObject=null,a.doMouseMove(),Du(re,ee)}}},a.fk=function(ee){if(a.isEnabled){a.Vk=!0;var re=ee.pointerType==="touch"||ee.pointerType==="pen",oe=a.Yt;if(re&&a.qu)delete oe[ee.pointerId],ee.preventDefault();else if(oe=a.oj,oe[0]===null||oe[0].pointerId!==ee.pointerId&&oe[0].pointerType===ee.pointerType)oe[1]!==null&&oe[1].pointerId===ee.pointerId&&(oe[1]=null);else{oe[0]=null,oe=Dg(a,ee,!1,!0,!0,!1);var ce=Bn.document.elementFromPoint(ee.clientX,ee.clientY)||null;ce!==null&&ce.shadowRoot!==void 0&&ce.shadowRoot!==null&&(ce=ce.shadowRoot.elementFromPoint(ee.clientX,ee.clientY)),ce!==null&&ce.H instanceof Jt&&ce.H!==a&&xh(ce.H,ee,oe),ce===null&&(ce=ee.target),xh(a,ee,oe),oe.clickCount=a.yq,oe.targetDiagram=kg(ee,ce),oe.targetObject=null,a.doMouseUp(),Du(oe,ee),re&&(a.wq=!1)}}},a.ek=function(ee){if(a.isEnabled){a.Vk=!1;var re=a.Yt;re[ee.pointerId]&&delete re[ee.pointerId],re=a.oj,re[0]!==null&&re[0].pointerId===ee.pointerId&&(re[0]=null),re[1]!==null&&re[1].pointerId===ee.pointerId&&(re[1]=null),ee.pointerType!=="touch"&&ee.pointerType!=="pen"&&(ee=a.currentTool,ee.cancelWaitAfter(),ee.standardMouseOver())}},a.ck=function(ee){var re=a.oj;re[0]!==null&&re[0].pointerId===ee.pointerId?(re[0]=null,a.wq=!1):re[1]!==null&&re[1].pointerId===ee.pointerId&&(re[1]=null)},a.Vp=x.Z["d"+nf[1]+nf[2]+"wI"+Mh.slice(1,5)]["b"+HE.slice(1,y)](x.Z,tf,y,y),x.Vc(!0),iv(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}Jt.prototype.addEventListener=function(a,y,E,x){a.addEventListener(y,E,{capture:x,passive:!1})},Jt.prototype.removeEventListener=function(a,y,E,x){a.removeEventListener(y,E,{capture:x})};function iv(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(E){return E.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(E){return E.preventDefault(),!1},!1),a.addEventListener(Bn,"resize",a.Ov,!1)}function nl(a){30<a.Sq&&(a.Yh=1)}function Qh(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Ri&&Ri.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}Jt.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Bn.devicePixelRatio||1},Jt.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Jt.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Jt.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Jt.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Jt.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Jt.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Jt.prototype.doFocus=function(){this.focus()},Jt.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Bn.scrollX||Bn.pageXOffset,y=Bn.scrollY||Bn.pageYOffset;this.ta.focus(),Bn.scrollTo(a,y)}},Jt.prototype.Oy=function(){this.H.R("GainedFocus")},Jt.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 E=a.gf?a.Db:0,x=a.Be?a.Db:0,b=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==b&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+E||y.clientHeight!==a.ya+x)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===Ls&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function em(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 tm(a){var y=new Wn(Wn.Grid);y.name="GRID";var E=new yr;return E.figure="LineH",E.stroke="lightgray",E.strokeWidth=.5,E.interval=1,y.add(E),E=new yr,E.figure="LineH",E.stroke="gray",E.strokeWidth=.5,E.interval=5,y.add(E),E=new yr,E.figure="LineH",E.stroke="gray",E.strokeWidth=1,E.interval=10,y.add(E),E=new yr,E.figure="LineV",E.stroke="lightgray",E.strokeWidth=.5,E.interval=1,y.add(E),E=new yr,E.figure="LineV",E.stroke="gray",E.strokeWidth=.5,E.interval=5,y.add(E),E=new yr,E.figure="LineV",E.stroke="gray",E.strokeWidth=1,E.interval=10,y.add(E),E=new Bi,E.add(y),E.layerName="Grid",E.zOrder=0,E.isInDocumentBounds=!1,E.isAnimated=!1,E.pickable=!1,E.locationObjectName="GRID",a.add(E),a.partManager.parts.remove(E),y.visible=!1,y}function nm(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Th(this.H)}function im(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Th(this.H)}Jt.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,E=this.hu;this.qr=!0;var x=this.documentBounds,b=this.viewportBounds,z=this.rj,ee=x.x-z.left,re=x.y-z.top,oe=x.width+z.left+z.right,ce=x.height+z.top+z.bottom,fe=x.right+z.right;z=x.bottom+z.bottom;var ye=b.x;x=b.y;var Ne=b.width,Pe=b.height,Fe=b.right,We=b.bottom;b=this.scale;var gt=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":gt=gt+a.scrollWidth-a.clientWidth;break;case"reverse":gt=a.scrollWidth-gt-a.clientWidth}var nt=gt;Ne<oe||Pe<ce?(gt=dt.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==nt&&(gt.x=nt/b+ee,this.ju=nt),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(gt.y=a.scrollTop/b+re,this.lu=a.scrollTop),this.position=gt,dt.free(gt),this.Ee=this.qr=!1):(gt=dt.alloc(),a.uy&&this.allowHorizontalScroll&&(ee<ye&&(this.position=gt.h(nt+ee,this.position.y)),fe>Fe&&(this.position=gt.h(-(y.scrollWidth-this.Aa)+nt-this.Aa/b+fe,this.position.y))),a.vy&&this.allowVerticalScroll&&(re<x&&(this.position=gt.h(this.position.x,a.scrollTop+re)),z>We&&(this.position=gt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),dt.free(gt),this.vd=!0,this.Ee=this.qr=!1,x=this.documentBounds,b=this.viewportBounds,fe=x.right,Fe=b.right,z=x.bottom,We=b.bottom,ee=x.x,ye=b.x,re=x.y,x=b.y,Ne>=oe&&ee>=ye&&fe<=Fe&&(E.style.width="1px"),Pe>=ce&&re>=x&&z<=We&&(E.style.height="1px"))}},Jt.prototype.computeBounds=function(a){return a===void 0&&(a=new pn),us(this),Lg(this,a)};function Lg(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var E=!0,x=a.Wa.s,b=x.length,z=0;z<b;z++){var ee=x[z];if(ee.visible&&ee.isInDocumentBounds){ee=ee.Pa.s;for(var re=ee.length,oe=0;oe<re;oe++){var ce=ee[oe];ce.isInDocumentBounds&&ce.isVisible()&&(ce=ce.actualBounds,ce.w()&&(E?(E=!1,y.assign(ce)):y.ed(ce)))}}}return E&&y.h(0,0,0,0),y.Co(a.yb),y}Jt.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var E=null;if(Vn(a))for(var x=0;x<a.length;x++){var b=a[x];!y&&b instanceof Jn||(b.Va(),E===null?E=b.actualBounds.copy():E.ed(b.actualBounds))}else for(a=a.iterator;a.next();)x=a.value,!y&&x instanceof Jn||(x.Va(),E===null?E=x.actualBounds.copy():E.ed(x.actualBounds));return E===null?new pn(NaN,NaN,0,0):E};function mu(a,y){if((y||a.hf)&&!a.vb&&a.ta!==null&&a.documentBounds.w()){if(a.vb=!0,y){var E=a.initialPosition;if(E.w()){a.vb=!1,a.position=E;return}E=dt.alloc(),E.xi(a.documentBounds,a.initialDocumentSpot);var x=a.viewportBounds;x=pn.allocAt(0,0,x.width,x.height);var b=dt.alloc();b.xi(x,a.initialViewportSpot),b.h(E.x-b.x,E.y-b.y),a.position=b,pn.free(x),dt.free(b),dt.free(E)}E=a.yh,y&&a.Fg!==Ls&&(E=a.Fg);var z=E!==Ls?Eh(a,E):a.scale;E=a.pa.x,x=a.pa.y,b=a.Aa/z;var ee=a.ya/z,re=a.zk,oe=a.pq;y&&!re.sb()&&(oe.sb()||oe.Xb())&&(re=oe.Xb()?Xi:oe),Ig(a,a.documentBounds,b,ee,re,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,Ft.B(z.x,E)&&Ft.B(z.y,x)&&Ft.B(z.width,b)&&Ft.B(z.height,ee)||a.onViewportBoundsChanged(new pn(E,x,b,ee),z,y,!1)}}function Eh(a,y){var E=a.Pp;if(a.ta===null)return E;a.Va();var x=a.documentBounds;if(!x.w())return E;var b=x.width;x=x.height;var z=a.Aa+(a.gf?a.Db:0),ee=a.ya+(a.Be?a.Db:0),re=z/b,oe=ee/x;return y===zl?(y=Math.min(oe,re),y>E&&(y=E),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===Wd?(y=oe>re?(ee-a.Db)/x:(z-a.Db)/b,y>E&&(y=E),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}Jt.prototype.zoomToFit=function(){var a=this.sj;this.sj=gd,this.scale=Eh(this,zl),a!==gd&&(mu(this,!1),Ig(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},ke=Jt.prototype,ke.BA=function(a,y){y===void 0&&(y=zl);var E=a.width,x=a.height;if(!(E===0||x===0||isNaN(E)&&isNaN(x))){var b=1;if(y===zl||y===Wd)if(isNaN(E))b=this.viewportBounds.height*this.scale/x;else if(isNaN(x))b=this.viewportBounds.width*this.scale/E;else{b=this.Aa;var z=this.ya;b=y===Wd?z/x>b/E?(z-(this.Be?this.Db:0))/x:(b-(this.gf?this.Db:0))/E:Math.min(z/x,b/E)}this.scale=b,this.position=new dt(a.x,a.y)}},ke.Jy=function(a,y){this.Va();var E=this.documentBounds,x=this.viewportBounds;this.position=new dt(E.x+(a.x*E.width+a.offsetX)-(y.x*x.width-y.offsetX),E.y+(a.y*E.height+a.offsetY)-(y.y*x.height-y.offsetY))},ke.zz=function(a){if(a instanceof Rt){this.eq=a;var y=dt.alloc();this.fq=this.op(a.ga(_i,y)),dt.free(y)}else this.eq=null,this.fq=Kr};function Ig(a,y,E,x,b,z){var ee=dt.allocAt(a.pa.x,a.pa.y),re=ee.x,oe=ee.y;if(a.eq!==null){var ce=dt.alloc();ce=a.eq.ga(_i,ce),re=ce.x-a.fq.x/a.scale,oe=ce.y-a.fq.y/a.scale,b=Ti,dt.free(ce)}(z||a.scrollMode===gd)&&(b.sb()&&(E>y.width&&(re=y.x+(b.x*y.width+b.offsetX)-(b.x*E-b.offsetX)),x>y.height&&(oe=y.y+(b.y*y.height+b.offsetY)-(b.y*x-b.offsetY))),b=a.rj,z=E-y.width,E<y.width+b.left+b.right?(re=Math.min(re+E/2,y.right+Math.max(z,b.right)-E/2),re=Math.max(re,y.left-Math.max(z,b.left)+E/2),re-=E/2):re>y.left?re=y.left:re<y.right-E&&(re=y.right-E),E=x-y.height,x<y.height+b.top+b.bottom?(oe=Math.min(oe+x/2,y.bottom+Math.max(E,b.bottom)-x/2),oe=Math.max(oe,y.top-Math.max(E,b.top)+x/2),oe-=x/2):oe>y.top?oe=y.top:oe<y.bottom-x&&(oe=y.bottom-x)),ee.x=isFinite(re)?re:-a.yb.left,ee.y=isFinite(oe)?oe:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,ee),ee.x=y.x,ee.y=y.y),_d(a.Yd,a.pa,ee),a.pa.h(ee.x,ee.y),fc(a),dt.free(ee)}ke.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Mc(this,a,function(E){return E.part},function(E){return E.canSelect()}),a instanceof Bi)return a}else if(a=Mc(this,a,function(E){return E.part}),a instanceof Bi)return a;return null},ke.ic=function(a,y,E){y===void 0&&(y=null),E===void 0&&(E=null),us(this);for(var x=this.Wa.iteratorBackwards;x.next();){var b=x.value;if(b.visible&&(b=b.ic(a,y,E),b!==null))return b}return null};function Mc(a,y,E,x){for(E===void 0&&(E=null),x===void 0&&(x=null),us(a),a=a.Wa.iteratorBackwards;a.next();){var b=a.value;if(b.visible&&!b.isTemporary&&(b=b.ic(y,E,x),b!==null))return b}return null}ke.lz=function(a,y,E){return y===void 0&&(y=!0),Kh(this,a,function(x){return x.part},y?function(x){return x instanceof Bi&&x.canSelect()}:null,E)};function Kh(a,y,E,x,b){for(E===void 0&&(E=null),x===void 0&&(x=null),b instanceof Un||b instanceof Dn||(b=new Dn),us(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,E,x,b)}return b}ke.ji=function(a,y,E,x){y===void 0&&(y=null),E===void 0&&(E=null),x instanceof Un||x instanceof Dn||(x=new Dn),us(this);for(var b=this.Wa.iteratorBackwards;b.next();){var z=b.value;z.visible&&z.ji(a,y,E,x)}return x},ke.ux=function(a,y,E,x){return y===void 0&&(y=!1),E===void 0&&(E=!0),Pf(this,a,function(b){return b instanceof Bi&&(!E||b.canSelect())},y,x)},ke.Cf=function(a,y,E,x,b){y===void 0&&(y=null),E===void 0&&(E=null),x===void 0&&(x=!1),b instanceof Un||b instanceof Dn||(b=new Dn),us(this);for(var z=this.Wa.iteratorBackwards;z.next();){var ee=z.value;ee.visible&&ee.Cf(a,y,E,x,b)}return b},ke.Nu=function(a,y,E,x,b,z){var ee=new Dn;us(this);for(var re=this.Wa.iteratorBackwards;re.next();){var oe=re.value;oe.visible&&oe.Nu(a,y,E,x,ee,b,z)}return ee};function Pf(a,y,E,x,b){var z=null;for(z===void 0&&(z=null),E===void 0&&(E=null),x===void 0&&(x=!1),b instanceof Un||b instanceof Dn||(b=new Dn),us(a),a=a.Wa.iteratorBackwards;a.next();){var ee=a.value;ee.visible&&!ee.isTemporary&&ee.Cf(y,z,E,x,b)}return b}ke.mz=function(a,y,E,x,b){return E===void 0&&(E=!0),x===void 0&&(x=!0),Xh(this,a,y,function(z){return z instanceof Bi&&(!x||z.canSelect())},E,b)},ke.og=function(a,y,E,x,b,z){E===void 0&&(E=null),x===void 0&&(x=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof Un||b instanceof Dn)&&(z=b),b=!0),z instanceof Un||z instanceof Dn||(z=new Dn),us(this);for(var ee=this.Wa.iteratorBackwards;ee.next();){var re=ee.value;re.visible&&re.og(a,y,E,x,b,z)}return z};function Xh(a,y,E,x,b,z){var ee=null;for(ee===void 0&&(ee=null),x===void 0&&(x=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof Un||b instanceof Dn)&&(z=b),b=!0),z instanceof Un||z instanceof Dn||(z=new Dn),us(a),a=a.Wa.iteratorBackwards;a.next();){var re=a.value;re.visible&&!re.isTemporary&&re.og(y,E,ee,x,b,z)}return z}Jt.prototype.acceptEvent=function(a){return ql(this,a,a instanceof MouseEvent)};function ql(a,y,E){var x=a.Qg;return a.Qg=a.cj,a.cj=x,x.diagram=a,x.event=y,E?xh(a,y,x):(x.viewPoint=a.Qg.viewPoint,x.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),x.modifiers=a,x.button=y.button,y.buttons!==void 0&&(x.buttons=y.buttons),ar&&y.button===0&&y.ctrlKey&&(x.button=2),x.down=!1,x.up=!1,x.clickCount=1,x.delta=0,x.handled=!1,x.bubbles=!1,x.timestamp=y.timeStamp,x.isMultiTouch=!1,x.targetDiagram=kg(y,y.target),x.targetObject=null,x}function kg(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 Dg(a,y,E,x,b,z){var ee=a.Qg;return a.Qg=a.cj,a.cj=ee,ee.diagram=a,ee.clickCount=1,a=ee.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),ee.modifiers=a,ee.event=y,ee.timestamp=y.timeStamp,ee.button=y.button,ee.buttons=y.buttons,ar&&y.button===0&&y.ctrlKey&&(ee.button=2),ee.down=E,ee.up=x,ee.handled=!1,ee.bubbles=b,ee.isMultiTouch=z,ee}function Du(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}Jt.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var E=ql(y,a,!1);switch(E.key=String.fromCharCode(a.which),E.down=!0,a.which){case 8:E.key="Backspace";break;case 33:E.key="PageUp";break;case 34:E.key="PageDown";break;case 35:E.key="End";break;case 36:E.key="Home";break;case 37:E.key="Left";break;case 38:E.key="Up";break;case 39:E.key="Right";break;case 40:E.key="Down";break;case 45:E.key="Insert";break;case 46:E.key="Del";break;case 48:E.key="0";break;case 187:case 61:case 107:E.key="Add";break;case 189:case 173:case 109:E.key="Subtract";break;case 27:E.key="Esc"}return y.doKeyDown(),Du(E,a)},Jt.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var E=ql(y,a,!1);switch(E.key=String.fromCharCode(a.which),E.up=!0,a.which){case 8:E.key="Backspace";break;case 33:E.key="PageUp";break;case 34:E.key="PageDown";break;case 35:E.key="End";break;case 36:E.key="Home";break;case 37:E.key="Left";break;case 38:E.key="Up";break;case 39:E.key="Right";break;case 40:E.key="Down";break;case 45:E.key="Insert";break;case 46:E.key="Del"}return y.doKeyUp(),Du(E,a)},Jt.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var E=ql(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(E),y.currentTool.standardMouseOver(),Du(E,a)},Jt.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var E=ql(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(E),Du(E,a)},Jt.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new dt(0,0);var E=y.getBoundingClientRect();return y=a.clientX-this.Aa/E.width*E.left,a=a.clientY-this.ya/E.height*E.top,this.Ab!==null?Ji(new dt(y,a),this.Ab):new dt(y,a)};function xh(a,y,E){var x=a.ta,b=a.Aa,z=a.ya,ee=0,re=0;x!==null&&(x=x.getBoundingClientRect(),ee=y.clientX-b/x.width*x.left,re=y.clientY-z/x.height*x.top),E.viewPoint.h(ee,re),a.Ab!==null?(y=dt.allocAt(ee,re),a.Ab.Cd(y),E.documentPoint.assign(y),dt.free(y)):E.documentPoint.h(ee,re)}function Og(a,y,E){if(a.oj[0]!==null){y=a.oj[y];var x=a.ta;x!==null&&(x=x.getBoundingClientRect(),E.h(y.clientX-a.Aa/x.width*x.left,y.clientY-a.ya/x.height*x.top))}}Jt.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function rm(a){a.ld||us(a),a.Va()}Jt.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},ke=Jt.prototype,ke.Pz=function(){return this.kg},ke.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,E=y.isEnabled;y.Cc(),y.isEnabled=!1,$l(this),this.hf=!1,this.du=new dt(NaN,NaN),y.isEnabled=E,this.ld=!0;var x=this;a!==null&&Fi(function(){x.ld=!1,Ia(y,"Model"),a(x)},1)},ke.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;Bn.requestAnimationFrame(function(){y.kg&&y.bd()})}},ke.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),$l(this))};function zd(a,y,E){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Th(a)||(y&&us(a),E&&mu(a,!1))}function $l(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var E=a.animationManager,x=a.Xn;if(!E.isAnimating&&x.length!==0){for(var b=x.s,z=b.length,ee=0;ee<z;ee++){var re=b[ee];Ea(re,!1),re.v()}x.clear()}x=a.ow,0<x.count&&(x.each(function(oe){oe.Nv()}),x.clear()),b=x=!1,E.defaultAnimation.isAnimating&&(b=!0,x=a.skipsUndoManager,a.skipsUndoManager=!0),E.zb||Pg(a),zd(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(hc(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),us(a),z=!1,(!a.hf||a.xh)&&(a.hf?Yg(a,!a.Jk):(a.Ea("Initial Layout"),E.isEnabled===!1&&E.Cc(),Yg(a,!1)),z=!0),a.Jk=!1,us(a),a.ou||rm(a),zd(a,!0,!1),ee=!1,z?(E=pn.alloc(),E.assign(a.viewportBounds),a.hf||(ee=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Rg(a)),a.R("LayoutCompleted"),zd(a,!0,!1),pn.free(E)):E.Ok&&E.Qw&&(a.Fg!==Ls?a.scale=Eh(a,a.Fg):a.yh!==Ls?a.scale=Eh(a,a.yh):(E=a.initialScale,isFinite(E)&&0<E&&(a.scale=E)),mu(a,!0)),z&&ee&&a.eb("Initial Layout"),us(a),y||a.gc(a.ib),b&&(a.skipsUndoManager=x),a.ld=!1}}function Rg(a){if(a.Fg!==Ls)a.scale=Eh(a,a.Fg);else if(a.yh!==Ls)a.scale=Eh(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}mu(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),hc(a)}function us(a){if(a.De.count!==0&&(a.ld||!a.animationManager.isTicking)){for(var y=0;23>y;y++){var E=a.De.iterator;if(E===null||a.De.count===0)break;a.De=new Dn,a.Nv(E,a.De)}a.nodes.each(function(x){x instanceof dr&&x.U&65536&&(x.U=x.U^65536)})}}ke.Nv=function(a,y){for(a.reset();a.next();){var E=a.value;!E.Zc()||E instanceof dr||(E.si()?(E.measure(1/0,1/0),E.arrange()):y.add(E))}for(a.reset();a.next();)E=a.value,E instanceof dr&&E.isVisible()&&Jh(this,E);for(a.reset();a.next();)E=a.value,E instanceof Jn&&E.isVisible()&&(E.si()?(E.measure(1/0,1/0),E.arrange()):y.add(E));for(a.reset();a.next();)E=a.value,E instanceof Hr&&E.isVisible()&&(E.si()?(E.measure(1/0,1/0),E.arrange()):y.add(E))};function Jh(a,y){for(var E=ci(),x=ci(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof dr?(Hl(z)||Hs(z)||Zd(z))&&Jh(a,z):z instanceof Jn?z.fromNode===y||z.toNode===y?x.push(z):E.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=E.length,b=0;b<a;b++)z=E[b],z.measure(1/0,1/0),z.arrange();for(pi(E),y.measure(1/0,1/0),y.arrange(),a=x.length,y=0;y<a;y++)E=x[y],E.measure(1/0,1/0),E.arrange();pi(x)}ke.Fd=function(a,y,E,x){if(this.vd||this.animationManager.isAnimating)for(var b=0;b<y;b++)a[b].Fd(E,x)},ke.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)){wh(this);var E=this.Aa,x=this.ya;if(a.Gv.resize(E,x,E,x),E=this.Wa.s,x=E.length,this.Fd(E,x,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var b=this.Ca,z=Math.round(y.x*b)/b,ee=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,-ee),a.ti=null,$y(a,re.m11,re.m12,re.m21,re.m22,re.dx,re.dy),this.pb!==1&&(a.globalAlpha=this.pb),hd(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<x;y++)E[y].gc(a,this);a=!1,this.Yf?Ph(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(ir.prototype.Cd=ir.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(E=new Date,wh(this),this.Ka.style.opacity!=="0")){if(x=a!==this.ib,y=this.Wa.s,b=y.length,this.Fd(y,b,this,this.viewportBounds),x)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!z.isAnimating)break e;z=this.Ab,z.reset(),ee=this.Mb,re=this.pa;var oe=this.Ca,ce=Math.round(re.x*oe)/oe,fe=Math.round(re.y*oe)/oe;for(oe!==1&&z.scale(oe),re.x===0&&re.y===0||z.translate(-ce,-fe),a.setTransform(ee,0,0,ee,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),hd(this,a),re=0;re<b;re++)a.setTransform(ee,0,0,ee,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?Ph(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(ir.prototype.Cd=ir.prototype.Eu),x?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+E,x=Ri&&Ri.nx,E=this.zw,x||this.Yh===null){for(E[this.Tq]=y,this.Tq=(this.Tq+1)%E.length,b=y=0;b<E.length;b++)y+=E[b];this.Sq=y/E.length}if(this.pb!==1&&(a.globalAlpha=1),x)for(a.setTransform(1,0,0,1,0,0),x=0;x<E.length;x++)a.fillText(E[x].toString(),20,150+ +(20*x))}}};function Lf(a,y,E,x,b,z,ee,re,oe,ce){if(a.Ka!==null){a.ta===null&<("No canvas specified"),ee===void 0&&(ee=null),re===void 0&&(re=null),oe===void 0&&(oe=!1),ce===void 0&&(ce=!1),wh(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var fe=a.Ca;a.Ca=b;var ye=a.Wa.s,Ne=ye.length;try{var Pe=new pn(z.x,z.y,x.width/b,x.height/b),Fe=Pe.copy();Fe.Co(E),hc(a,Fe),us(a),a.Fd(ye,Ne,a,Pe),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,x.width,x.height),re!==null&&re!==""&&(y.fillStyle=re,y.ox(0,0,x.width,x.height));var We=a.Mb;y.scale(We,We);var gt=ir.alloc();gt.reset(),gt.translate(E.left,E.top),gt.scale(b),z.x===0&&z.y===0||gt.translate(-z.x,-z.y),y.setTransform(gt.m11,gt.m12,gt.m21,gt.m22,gt.dx,gt.dy),y.yc(),y instanceof Nl&&$y(y,gt.m11,gt.m12,gt.m21,gt.m22,gt.dx,gt.dy),ir.free(gt),hd(a,y),y.globalAlpha=a.pb;var nt=a.Qj("Grid");if(ee){var vt=new Dn,St=ee.iterator;for(St.reset();St.next();){var Tt=St.value;Tt instanceof Bi&&(ce||Tt.layer!==nt)&&(Tt.Gj(),vt.add(Tt))}for(ce=0;ce<Ne;ce++)Xp(ye[ce],y,a,vt,oe);vt.each(function(Xt){return Xt.Gj()})}else for(vt=0;vt<Ne;vt++){var Dt=ye[vt];Dt===nt?ce&&Dt.gc(y,a,!0):Dt.gc(y,a,oe)}a.$i=!1,a.Yf&&Ph(a.Yf,a)&&a.Vp()}finally{a.Ca=fe,a.ib.Vc(!0),a.vd=!0,a.Fd(ye,Ne,a,a.viewportBounds),hc(a),a.ib instanceof Nl&&(a.ib.Nj.PA(),a.redraw())}}}ke.Gf=function(a){return this.Rg[a]},ke.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},ke.Tx=function(){this.Rg=new Li,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(ar||Wt),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function hd(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}ke.Ql=function(a){return this.on[a]},ke.sA=function(a,y){this.on[a]=y},ke.Sx=function(){this.on=new Li,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},ke.set=function(a){return Object.assign(this,a),this},ke.Du=function(a){return this.nm(a)},ke.nm=function(a){return bh(this,a),this};function bh(a,y){var E=a instanceof Wn,x=a instanceof Jt,b;for(b in y){b===""&<("Setting properties requires non-empty property names");var z=a,ee=b;if(E||x){var re=b.indexOf(".");if(0<re){var oe=b.substring(0,re);E?z=a.fb(oe):(z=a[oe],z==null&&(z=a.toolManager[oe])),jt(z)?ee=b.substr(re+1):lt("Unable to find object named: "+oe+" in "+a.toString()+" when trying to set property: "+b)}}if(ee[0]!=="_"&&!Ui(z,ee))if(x&&ee==="ModelChanged"){a.Yw(y[ee]);continue}else if(x&&ee==="Changed"){a.Pe(y[ee]);continue}else if(x&&Ui(a.toolManager,ee))z=a.toolManager;else if(x&&sm(a,ee)){a.Bj(ee,y[ee]);continue}else if(a instanceof Ii&&ee==="Changed"){a.Pe(y[ee]);continue}else lt('Trying to set undefined property "'+ee+'" on object: '+z.toString());z[ee]=y[b],ee[0]==="_"&&z instanceof Rt&&z.Vw(ee)}}ke.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new vi,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},ke.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")},Jt.prototype.invalidateViewport=function(a,y){if(this.Fc!==!0)if(this.Fc=!0,this.nl==="svg")this.bd();else{var E=this.Gf("temporaryPixelRatio")===!0;if(this.Gf("viewportOptimizations")===!0&&this.scrollMode!==ef&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var x=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))*x&&0<Math.max(0,z-b)*x){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(x=pn.alloc(),Gg(this,this.computeBounds(x)),pn.free(x)),x=this.ta,x===null||x instanceof gc)))){var ee=this.Mb;b=this.Aa*ee;var re=this.ya*ee,oe=this.scale*ee;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*ee;var ce=70*ee,fe=Math.max(z,0),ye=Math.max(y,0),Ne=Math.floor(b-fe),Pe=Math.floor(re-ye);a.drawImage(x.Oa,fe,ye,Ne,Pe,0,0,Ne,Pe),Ph(this.Yf,this)&&a.clearRect(0,0,oe,ce),x=ci(),a=ci(),Pe=Math.abs(z),Ne=Math.abs(y);var Fe=fe===0?0:b-Pe;fe=dt.allocAt(Fe,0),Pe=dt.allocAt(Pe+Fe,re),a.push(new pn(Math.min(fe.x,Pe.x),Math.min(fe.y,Pe.y),Math.abs(fe.x-Pe.x),Math.abs(fe.y-Pe.y)));var We=this.Ab;if(We.reset(),We.scale(ee,ee),this.Ca!==1&&We.scale(this.Ca),ee=this.pa,(ee.x!==0||ee.y!==0)&&isFinite(ee.x)&&isFinite(ee.y)&&We.translate(-ee.x,-ee.y),Ji(fe,We),Ji(Pe,We),x.push(new pn(Math.min(fe.x,Pe.x),Math.min(fe.y,Pe.y),Math.abs(fe.x-Pe.x),Math.abs(fe.y-Pe.y))),Fe=ye===0?0:re-Ne,fe.h(0,Fe),Pe.h(b,Ne+Fe),a.push(new pn(Math.min(fe.x,Pe.x),Math.min(fe.y,Pe.y),Math.abs(fe.x-Pe.x),Math.abs(fe.y-Pe.y))),Ji(fe,We),Ji(Pe,We),x.push(new pn(Math.min(fe.x,Pe.x),Math.min(fe.y,Pe.y),Math.abs(fe.x-Pe.x),Math.abs(fe.y-Pe.y))),Ph(this.Yf,this)&&(b=0<z?0:-z,re=0<y?0:-y,fe.h(b,re),Pe.h(oe+b,ce+re),a.push(new pn(Math.min(fe.x,Pe.x),Math.min(fe.y,Pe.y),Math.abs(fe.x-Pe.x),Math.abs(fe.y-Pe.y))),Ji(fe,We),Ji(Pe,We),x.push(new pn(Math.min(fe.x,Pe.x),Math.min(fe.y,Pe.y),Math.abs(fe.x-Pe.x),Math.abs(fe.y-Pe.y)))),dt.free(fe),dt.free(Pe),zd(this,!1,!0),this.Ka===null&<("No div specified"),this.ta===null&<("No canvas specified"),!this.animationManager.zb&&(b=this.ib,this.Fc)){for(wh(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,ee=this.Ca,oe=Math.round(z.x*ee)/ee,ce=Math.round(z.y*ee)/ee,y=this.Ab,y.reset(),ee!==1&&y.scale(ee),z.x===0&&z.y===0||y.translate(-oe,-ce),b.save(),b.beginPath(),z=a.length,ee=0;ee<z;ee++)oe=a[ee],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),hd(this,b),b.globalAlpha=this.pb,re=0;re<z;re++)if(ee=y[re],oe=x,ee.visible&&ee.pb!==0){ce=Vc(ee,b),ye=ee.Zq,ye.length=0,fe=this.scale,Ne=pn.alloc(),Pe=ee.Pa.s,We=Pe.length,Fe=oe.length;for(var gt=0;gt<We;gt++){var nt=Pe[gt],vt=Fh(nt,nt.actualBounds);e:{for(var St=2/fe,Tt=4/fe,Dt=0;Dt<Fe;Dt++){var Xt=oe[Dt];if(Xt.width!==0&&Xt.height!==0&&vt.Vu(Xt.x-St,Xt.y-St,Xt.width+Tt,Xt.height+Tt)){vt=!0;break e}}vt=!1}vt&&ee.Oj(b,nt,this,ye,fe,Ne,!0)}pn.free(Ne),b.globalAlpha=ce}b.restore(),b.Vc(!0),this.Yf&&Ph(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}pi(x),pi(a),this.ld=!1}}else this.bd();E&&(nl(this),this.bd(),Qh(this,!0))}else E?(nl(this),this.bd(),Qh(this,!0)):this.bd()}};function wh(a){a.pn!==!1&&(a.pn=!1,Fg(a,a.Aa,a.ya))}function Fg(a,y,E){fc(a);var x=a.Mb;a.ta.resize(y*x,E*x,y,E)&&(a.Fc=!0,a.ib.Vc(!0))}function Th(a){var y=a.ta;if(y===null||a.wo.w())return!0;var E=a.Aa,x=a.ya,b=a.Ka,z=!1,ee=a.gf?a.Db:0,re=a.Be?a.Db:0,oe=b.clientWidth||E+ee,ce=b.clientHeight||x+re,fe=a.viewportBounds;b=fe.x;var ye=fe.y,Ne=fe.width,Pe=fe.height;if((oe!==E+ee||ce!==x+re)&&(a.gf=!1,a.Be=!1,re=ee=0,a.Aa=oe,a.ya=ce,z=a.pn=!0,fc(a)),!a.hf||!a.viewportBounds.w())return!0;var Fe=a.ku,We=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var gt=a.documentBounds,nt=0,vt=0,St=0,Tt=0,Dt=fe.width,Xt=fe.height,ai=a.rj;a.contentAlignment.sb()?(gt.width>Dt&&(nt=ai.left,vt=ai.right),gt.height>Xt&&(St=ai.top,Tt=ai.bottom)):(nt=ai.left,vt=ai.right,St=ai.top,Tt=ai.bottom);var Ci=gt.width+nt+vt,Ei=gt.height+St+Tt;ai=a.scale;var Xn=Ci>oe/ai,In=Ei>ce/ai;if(!(z||a.gf||a.Be||Xn||In))return!0;nt=gt.x-nt,oe=fe.x,vt=gt.right+vt,ce=fe.right+ee,St=gt.y-St;var cr=fe.y;gt=gt.bottom+Tt,fe=fe.bottom+re;var $i="1px";if(Tt="1px",a.scrollMode===gd&&(Xn||In)&&(Xn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Xn=1,nt+1<oe&&(Xn=Math.max((oe-nt)*ai+a.Aa,Xn)),vt>ce+1&&(Xn=Math.max((vt-ce)*ai+a.Aa,Xn)),Dt+ee+1<Ci&&(Xn=Math.max((Ci-Dt)*ai+a.Aa,Xn)),$i=Xn.toString()+"px"),In&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Xn=1,St+1<cr&&(Xn=Math.max((cr-St)*ai+a.ya,Xn)),gt>fe+1&&(Xn=Math.max((gt-fe)*ai+a.ya,Xn)),Xt+re+1<Ei&&(Xn=Math.max((Ei-Xt)*ai+a.ya,Xn)),Tt=Xn.toString()+"px")),Xn=$i!=="1px",In=Tt!=="1px",Xn&&In||!Xn&&!In||(In&&(ce-=a.Db),Xn&&(fe-=a.Db),Ci<Dt+ee||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ee=1,nt+1<oe&&(ee=Math.max((oe-nt)*ai+a.Aa,ee)),vt>ce+1&&(ee=Math.max((vt-ce)*ai+a.Aa,ee)),Dt+1<Ci&&(ee=Math.max((Ci-Dt)*ai+a.Aa,ee)),$i=ee.toString()+"px"),Xn=$i!=="1px",ee=a.ya,Xn!==a.Be&&(ee=Xn?a.ya-a.Db:a.ya+a.Db),Ei<Xt+re||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(re=1,St+1<cr&&(re=Math.max((cr-St)*ai+ee,re)),gt>fe+1&&(re=Math.max((gt-fe)*ai+ee,re)),Xt+1<Ei&&(re=Math.max((Ei-Xt)*ai+ee,re)),Tt=re.toString()+"px"),In=Tt!=="1px"),a.qr&&Xn===a.Be&&In===a.gf)return E===a.Aa&&x===a.ya||a.bd(),!1;if(Xn!==a.Be&&($i==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=Xn,We.style.width=$i,In!==a.gf&&(Tt==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(re=dt.alloc(),In?(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)),dt.free(re))),z&&fc(a),a.gf=In,We.style.height=Tt,a.gu=!0,z&&(a.pn=!0),y=Fe.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Dt+1<Ci?y=(a.position.x-nt)*ai:nt+1<oe?y=Fe.scrollWidth-Fe.clientWidth:vt>ce+1&&(y=a.position.x*ai)),a.tn)switch(a.bu){case"negative":y=-(Fe.scrollWidth-y-Fe.clientWidth);break;case"reverse":y=Fe.scrollWidth-y-Fe.clientWidth}return Fe.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Xt+1<Ei?Fe.scrollTop=(a.position.y-St)*ai:St+1<cr?Fe.scrollTop=Fe.scrollHeight-Fe.clientHeight:gt>fe+1&&(Fe.scrollTop=a.position.y*ai)),oe=a.Aa,ce=a.ya,Fe.style.width=oe+(a.gf?a.Db:0)+"px",Fe.style.height=ce+(a.Be?a.Db:0)+"px",E!==oe||x!==ce||a.animationManager.zb?(E=pn.allocAt(b,ye,Ne,Pe),a.onViewportBoundsChanged(E,a.viewportBounds,ai,z),pn.free(E),!1):!0}ke=Jt.prototype,ke.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 E=y.oi(99999999,a,a.diagram===this);0<=E&&this.cb(Wo,"parts",y,null,a,null,E),y.isTemporary||this.Ya(),a.C(1),E=a.layerChanged,E!==null&&E(a,null,y)}},ke.oi=function(a){this.partManager.oi(a);var y=this;Dh(a,function(E){Ah(y,E)}),(a instanceof Hr||a instanceof dr&&a.placeholder!==null)&&a.v(),a.data!==null&&Dh(a,function(E){cy(y.partManager,E)}),Hs(a)!==!0&&Zd(a)!==!0||this.De.add(a),H1(a,!0,this),Y1(a)?(a.actualBounds.w()&&this.N(Fh(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Fh(a,a.actualBounds)),this.$b()},ke.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Dh(a,function(E){dy(y.partManager,E,y)}),this.De.remove(a),Y1(a)?(a.actualBounds.w()&&this.N(Fh(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Fh(a,a.actualBounds)),this.$b()},ke.remove=function(a){Bg(this,a,!0)};function Bg(a,y,E){var x=y.layer;x!==null&&x.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),E&&y.Lj(),E=x.pc(-1,y,!1),0<=E&&a.cb(qo,"parts",x,y,null,E,null),a=y.layerChanged,a!==null&&a(y,x,null))}ke.Is=function(a,y){if(y===void 0&&(y=!1),Vn(a))for(var E=a.length,x=0;x<E;x++){var b=a[x];y&&!b.canDelete()||this.remove(b)}else for(E=new Dn,E.addAll(a),a=E.iterator;a.next();)E=a.value,y&&!E.canDelete()||this.remove(E)},ke.Kj=function(a,y,E){return E===void 0&&(E=!1),this.partManager.Kj(a,y,E)},Jt.prototype.moveParts=function(a,y,E,x){if(E===void 0&&(E=!1),x===void 0&&(x=If(this)),this.toolManager!==null){var b=new vi;if(a!==null)if(Vn(a))for(var z=0;z<a.length;z++)Pc(this,b,a[z],E,x);else for(a=a.iterator;a.next();)Pc(this,b,a.value,E,x);else{for(a=this.parts;a.next();)Pc(this,b,a.value,E,x);for(a=this.nodes;a.next();)Pc(this,b,a.value,E,x);for(a=this.links;a.next();)Pc(this,b,a.value,E,x)}Ud(this,b,y,x,E)}};function Pc(a,y,E,x,b,z){if(!y.contains(E)&&(z===void 0&&(z=!1),!x||z||E.canMove()||E.canCopy()))if(b===void 0&&(b=If(a)),E instanceof li){if(y.add(E,a.Pd(b,E,E.location)),E instanceof dr&&(E.placeholder!==null||b.dragsMembers))for(z=E.memberParts;z.next();)Pc(a,y,z.value,x,b,b.groupsAlwaysMove);for(z=E.linksConnected;z.next();){var ee=z.value;if(!y.contains(ee)){var re=ee.fromNode,oe=ee.toNode;re!==null&&y.contains(re)&&oe!==null&&y.contains(oe)&&Pc(a,y,ee,x,b)}}if(b.dragsTree)for(E=E.Ou();E.next();)Pc(a,y,E.value,x,b)}else if(E instanceof Jn)for(y.add(E,a.Pd(b,E)),E=E.labelNodes;E.next();)Pc(a,y,E.value,x,b);else E instanceof Hr||y.add(E,a.Pd(b,E,E.location))}function Ud(a,y,E,x,b){if(y!==null&&y.count!==0){var z=dt.alloc(),ee=dt.alloc();ee.assign(E),isNaN(ee.x)&&(ee.x=0),isNaN(ee.y)&&(ee.y=0),(E=a.Mr)||Df(a,y);for(var re=ci(),oe=ci(),ce=y.iterator,fe=dt.alloc();ce.next();){var ye=ce.key,Ne=ce.value;if(ye.Zc()){var Pe=_g(a,ye,y);Pe!==null?re.push(new ie(ye,Ne,Pe)):(!b||ye.canMove())&&(Pe=Ne.point,z.assign(Pe),a.computeMove(ye,z.add(ee),x,fe),ye.location=fe,Ne.shifted===void 0&&(Ne.shifted=new dt),Ne.shifted.assign(fe.re(Pe)))}else ce.key instanceof Jn&&oe.push(ce.sa)}for(dt.free(fe),b=re.length,ce=0;ce<b;ce++)ye=re[ce],z.assign(ye.info.point),ye.Su.shifted===void 0&&(ye.Su.shifted=new dt),ye.node.location=z.add(ye.Su.shifted);for(b=dt.alloc(),ce=dt.alloc(),ye=oe.length,Ne=0;Ne<ye;Ne++){var Fe=oe[Ne];if(Pe=Fe.key,Pe instanceof Jn)if(Pe.suspendsRouting){Pe.Tg=null,fe=Pe.fromNode;var We=Pe.toNode;if(a.draggedLink!==null&&x.dragsLink)if(We=Fe.value.point,Pe.dragComputation===null)y.add(Pe,a.Pd(x,Pe,ee)),bd(Pe,ee.x-We.x,ee.y-We.y);else{Fe=dt.allocAt(0,0),(fe=Pe.i(0))&&fe.w()&&Fe.assign(fe);var gt=fe=dt.alloc().assign(Fe).add(ee);x.isGridSnapEnabled&&(x.isGridSnapRealtime||a.lastInput.up)&&(gt=dt.alloc(),kf(a,Pe,fe,gt,x)),fe.assign(Pe.dragComputation(Pe,fe,gt)).re(Fe),y.add(Pe,a.Pd(x,Pe,fe)),bd(Pe,fe.x-We.x,fe.y-We.y),dt.free(Fe),dt.free(fe),gt!==fe&&dt.free(gt)}else fe!==null&&(b.assign(fe.location),gt=y.I(fe),gt!==null&&b.re(gt.point)),We!==null&&(ce.assign(We.location),gt=y.I(We),gt!==null&&ce.re(gt.point)),fe!==null&&We!==null?b.Xa(ce)?(fe=Fe.value.point,We=z,We.assign(b),We.re(fe),y.add(Pe,a.Pd(x,Pe,b)),bd(Pe,We.x,We.y)):(Pe.suspendsRouting=!1,Pe.bb()):(Fe=Fe.value.point,fe=fe!==null?b:We!==null?ce:ee,y.add(Pe,a.Pd(x,Pe,fe)),bd(Pe,fe.x-Fe.x,fe.y-Fe.y))}else(Pe.fromNode===null||Pe.toNode===null)&&(fe=Fe.value.point,y.add(Pe,a.Pd(x,Pe,ee)),bd(Pe,ee.x-fe.x,ee.y-fe.y))}dt.free(z),dt.free(ee),dt.free(b),dt.free(ce),pi(re),pi(oe),E||(us(a),Hd(a,y))}}Jt.prototype.computeMove=function(a,y,E,x){if(x===void 0&&(x=new dt),x.assign(y),a===null)return x;var b=y,z=E.isGridSnapEnabled;z&&(E.isGridSnapRealtime||this.lastInput.up)&&(b=dt.alloc(),kf(this,a,y,b,E)),E=a.dragComputation!==null?a.dragComputation(a,y,b):b;var ee=a.minLocation,re=ee.x;isNaN(re)&&(re=z?Math.round(1e3*a.location.x)/1e3:a.location.x),ee=ee.y,isNaN(ee)&&(ee=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var oe=a.maxLocation,ce=oe.x;return isNaN(ce)&&(ce=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),x.h(Math.max(re,Math.min(E.x,ce)),Math.max(ee,Math.min(E.y,oe))),b!==y&&dt.free(b),x};function If(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function kf(a,y,E,x,b){if(b===void 0&&(b=If(a)),x.assign(E),y!==null){var z=a.grid;y=b.gridSnapCellSize,a=y.width,y=y.height;var ee=b.gridSnapOrigin,re=ee.x;if(ee=ee.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(ee)&&(ee=z.y)}z=dt.allocAt(0,0),z.yi(0,0,a,y,b),Ft.No(E.x,E.y,re+z.x,ee+z.y,a,y,x),dt.free(z)}}function Df(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof Jn&&(y.suspendsRouting=!0)}function Hd(a,y){if(y!==null){for(y=y.iterator;y.next();){var E=y.key;E instanceof Jn&&(E.suspendsRouting=!1,Xv(E)&&E.bb())}a.Mr=!1}}function _g(a,y,E){return y=y.containingGroup,y!==null&&(a=_g(a,y,E),a!==null||(a=E.I(y),a!==null))?a:null}ke=Jt.prototype,ke.Pd=function(a,y,E){if(E===void 0)return new Zc(ho);var x=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(x=!1),x?new Zc(new dt(Math.round(1e3*E.x)/1e3,Math.round(1e3*E.y)/1e3)):new Zc(E.copy())};function jg(a,y,E){if(y.diagram!==null&&y.diagram!==a&<("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),E===null?y.diagram!==null&<("Cannot add an existing Layer to this Diagram again: "+y):(E.diagram!==a&<("Existing Layer must be in this Diagram: "+E+" not in "+E.diagram),y===E&<("Cannot move a Layer before or after itself: "+y)),y.diagram!==a){y=y.name,a=a.Wa,E=a.count;for(var x=0;x<E;x++)a.M(x).name===y&<("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}ke.Al=function(a){jg(this,a,null),a.Xe(this);var y=this.Wa,E=y.count-1;if(!a.isTemporary)for(;0<=E&&y.M(E).isTemporary;)E--;return y.Gb(E+1,a),this.cc!==null&&this.cb(Wo,"layers",this,null,a,null,E+1),this.N(),this.Ya(),this},ke.Ww=function(a,y){jg(this,a,y),a.Xe(this);var E=this.Wa,x=E.indexOf(a);0<=x&&(E.remove(a),this.cc!==null&&this.cb(qo,"layers",this,a,null,x,null));var b=E.count,z;for(z=0;z<b;z++)if(E.M(z)===y){E.Gb(z,a);break}return this.cc!==null&&this.cb(Wo,"layers",this,null,a,null,z),this.N(),0>x&&this.Ya(),this},ke.Cy=function(a,y){jg(this,a,y),a.Xe(this);var E=this.Wa,x=E.indexOf(a);0<=x&&(E.remove(a),this.cc!==null&&this.cb(qo,"layers",this,a,null,x,null));var b=E.count,z;for(z=0;z<b;z++)if(E.M(z)===y){E.Gb(z+1,a);break}return this.cc!==null&&this.cb(Wo,"layers",this,null,a,null,z+1),this.N(),0>x&&this.Ya(),this},ke.kA=function(a){if(a.diagram!==this&<("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,E=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var x=y.value,b=x.layerName;b!==a.name?x.layerName=b:x.layerName=""}this.cc!==null&&this.cb(qo,"layers",this,a,null,E,null),this.N(),this.Ya()}}},ke.Qj=function(a){for(var y=this.layers;y.next();){var E=y.value;if(E.name===a)return E}return null},ke.Yw=function(a){return this.pf===null&&(this.pf=new Un),this.pf.add(a),this.model.Pe(a),this},ke.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},ke.Pe=function(a){return this.zg===null&&(this.zg=new Un),this.zg.add(a),this},ke.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},ke.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==vs&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,E=y.length,x=0;x<E;x++)y.M(x)(a)},ke.cb=function(a,y,E,x,b,z,ee){z===void 0&&(z=null),ee===void 0&&(ee=null);var re=new Io;re.diagram=this,re.change=a,re.propertyName=y,re.object=E,re.oldValue=x,re.oldParam=z,re.newValue=b,re.newParam=ee,this.ds(re)},ke.g=function(a,y,E,x,b){this.cb(wo,a,this,y,E,x,b)},Jt.prototype.changeState=function(a,y){if(a!==null&&a.diagram===this){var E=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var x=a.change;if(x===wo){var b=a.object;if(ko(b,a.propertyName,a.I(y)),b instanceof Rt){var z=b.part;z!==null&&z.Wb()}this.isModified=!0}else if(x===Wo){var ee=a.object,re=a.newParam,oe=a.newValue;if(ee instanceof Wn)if(typeof re=="number"&&oe instanceof Rt){y?ee.pc(re):ee.Gb(re,oe);var ce=ee.part;ce!==null&&ce.Wb()}else typeof re=="number"&&oe instanceof xa&&(oe.isRow?p1(ee,re,y?void 0:oe):m1(ee,re,y?void 0:oe));else if(ee instanceof Ya){var fe=a.oldParam===!0;typeof re=="number"&&oe instanceof Bi&&(y?(oe.isSelected=!1,oe.isHighlighted=!1,oe.Wb(),ee.pc(fe?re:-1,oe,fe)):ee.oi(re,oe,fe))}else ee instanceof Jt?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(x===qo){var ye=a.object,Ne=a.oldParam,Pe=a.oldValue;if(ye instanceof Wn)typeof Ne=="number"&&Pe instanceof Rt?y?ye.Gb(Ne,Pe):ye.pc(Ne):typeof Ne=="number"&&Pe instanceof xa&&(Pe.isRow?p1(ye,Ne,y?Pe:void 0):m1(ye,Ne,y?Pe:void 0));else if(ye instanceof Ya){var Fe=a.newParam===!0;typeof Ne=="number"&&Pe instanceof Bi&&(y?0>ye.Pa.indexOf(Pe)&&ye.oi(Ne,Pe,Fe):(Pe.isSelected=!1,Pe.isHighlighted=!1,Pe.Wb(),ye.pc(Fe?Ne:-1,Pe,Fe)))}else ye instanceof Jt?typeof Ne=="number"&&Pe instanceof Ya&&(y?(Pe.Xe(this),this.Wa.Gb(Ne,Pe)):this.Wa.mb(Ne)):lt("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else x!==vs&<("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=E}}},Jt.prototype.Ea=function(a){return this.undoManager.Ea(a)},Jt.prototype.eb=function(a){return this.undoManager.eb(a)},Jt.prototype.Kf=function(){return this.undoManager.Kf()},Jt.prototype.commit=function(a,y){y===void 0&&(y="");var E=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var x=!1;try{a(this),x=!0}finally{x?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=E}},Jt.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},Jt.prototype.rp=function(){this.partManager.rp()};function zg(a,y,E){var x=a.animationManager;if(a.vb||a.ld)a.Ca=E,fc(a),a.N(),a.Ee=!0,x.zb&&(ys(x)||x.ce.add(x.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=E,fc(a);else{a.vb=!0;var b=a.viewportBounds.copy(),z=a.Aa,ee=a.ya,re=a.zoomPoint.x,oe=a.zoomPoint.y,ce=a.contentAlignment;isNaN(re)&&(ce.$c()?ce.Hf(rs)?re=0:ce.Hf(ia)&&(re=z-1):re=ce.sb()?ce.x*(z-1):z/2),isNaN(oe)&&(ce.$c()?ce.Hf(zo)?oe=0:ce.Hf(Ma)&&(oe=ee-1):oe=ce.sb()?ce.y*(ee-1):ee/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(E=a.scaleComputation(a,E)),E<a.minScale&&(E=a.minScale),E>a.maxScale&&(E=a.maxScale),z=dt.allocAt(a.pa.x+re/y-re/E,a.pa.y+oe/y-oe/E),a.position=z,dt.free(z),a.Ca=E,fc(a),a.vb=!1,a.onViewportBoundsChanged(b,a.viewportBounds,y,!1),mu(a,!1),x.zb&&(ys(x)||x.ce.add(x.H,"scale",y,a.Ca))}}Jt.prototype.onViewportBoundsChanged=function(a,y,E,x){if(!a.D(y)){x===void 0&&(x=!1),x||(this.Ee=!0),this.vd=!0;var b=this.layout;b===null||!b.isViewportSized||this.autoScale!==Ls||a.width===y.width&&a.height===y.height||b.C(),b=this.currentTool,this.Vk===!0&&b instanceof Co&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),ph(b,this)),this.vb||this.invalidateViewport(a,y),hc(this),this.fc.scale=E,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*E),this.fc.canvasSize.height=Math.round(a.height*E),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=x,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function hc(a,y){var E=a.fe;if(E!==null&&E.visible){for(var x=ti.alloc(),b=1,z=1,ee=E.O.s,re=ee.length,oe=0;oe<re;oe++){var ce=ee[oe],fe=Math.abs(ce.interval);2>fe||(yv(ce.figure)?z=z*fe/Ft.vx(z,fe):b=b*fe/Ft.vx(b,fe))}if(ee=E.gridCellSize,x.h(z*ee.width,b*ee.height),y!==void 0)b=y.width,z=y.height,a=y.x,ee=y.y;else{if(y=pn.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){pn.free(y);return}b=y.width,z=y.height,a=y.x,ee=y.y,pn.free(y)}E.width=b+2*x.width,E.height=z+2*x.height,y=dt.alloc(),Ft.No(a,ee,0,0,x.width,x.height,y),y.offset(-x.width,-x.height),ti.free(x),E.part.location=y,dt.free(y)}}Jt.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var E=y.Fa(),x=E.length,b=0;b<x;b++)E[b].isSelected=!1;y.ka(),y.clear(),y.freeze(),a||this.R("ChangedSelection",y)}},Jt.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))},Jt.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),Vn(a))for(var y=a.length,E=0;E<y;E++){var x=a[E];x instanceof Bi||lt("Diagram.selectCollection given something that is not a Part: "+x),x.isSelected=!0}else for(a=a.iterator;a.next();)y=a.value,y instanceof Bi||lt("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},Jt.prototype.clearHighlighteds=function(){var a=this.highlighteds;if(0<a.count){for(var y=a.Fa(),E=y.length,x=0;x<E;x++)y[x].isHighlighted=!1;a.ka(),a.clear(),a.freeze()}},ke=Jt.prototype,ke.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},ke.Jz=function(a){a=new Dn().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 Bi||lt("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},ke.scroll=function(a,y,E){E===void 0&&(E=1);var x=y==="up"||y==="down",b=0,z=dt.alloc();if(a==="pixel")b=E;else if(a==="line")b=E*(x?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=x?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(b=E*Math.max(a-(x?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){b=this.documentBounds,E=this.viewportBounds,y==="up"?this.position=z.h(E.x,b.y):y==="left"?this.position=z.h(b.x,E.y):y==="down"?this.position=z.h(E.x,b.bottom-E.height):y==="right"&&(this.position=z.h(b.right-E.width,E.y)),dt.free(z);return}lt("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}b/=this.scale,E=this.position,y==="up"?this.position=z.h(E.x,E.y-b):y==="down"?this.position=z.h(E.x,E.y+b):y==="left"?this.position=z.h(E.x-b,E.y):y==="right"?this.position=z.h(E.x+b,E.y):lt("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),dt.free(z)},ke.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)},ke.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},ke.op=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var E=this.pa;return(E.x!==0||E.y!==0)&&isFinite(E.x)&&isFinite(E.y)&&y.translate(-E.x,-E.y),a.copy().transform(this.Ab)},ke.zA=function(a){var y=this.Ab,E=a.x,x=a.y,b=E+a.width,z=x+a.height,ee=y.m11,re=y.m12,oe=y.m21,ce=y.m22,fe=y.dx,ye=y.dy,Ne=E*ee+x*oe+fe;y=E*re+x*ce+ye;var Pe=b*ee+x*oe+fe;return a=b*re+x*ce+ye,x=E*ee+z*oe+fe,E=E*re+z*ce+ye,ee=b*ee+z*oe+fe,b=b*re+z*ce+ye,z=Math.min(Ne,Pe),Ne=Math.max(Ne,Pe),Pe=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,x),Ne=Math.max(Ne,x),Pe=Math.min(Pe,E),y=Math.max(y,E),z=Math.min(z,ee),Ne=Math.max(Ne,ee),Pe=Math.min(Pe,b),y=Math.max(y,b),new pn(z,Pe,Ne-z,y-Pe)},ke.Ps=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var E=this.pa;return(E.x!==0||E.y!==0)&&isFinite(E.x)&&isFinite(E.y)&&y.translate(-E.x,-E.y),Ji(a.copy(),this.Ab)};function om(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Ug(a){return a=jf.get(a),a!==null?new a:new $r}Jt.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var E=a.change,x=a.propertyName;if(E===vs&&x[0]==="S")if(x==="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 x==="StartingUndo"||x==="StartingRedo"?(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc(),this.R("ChangingSelection",this.selection)):x==="StartedTransaction"&&(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc());else if(this.aa){this.aa=!1;try{if(a.modelChange===""&&E===vs){(x==="FinishedUndo"||x==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),us(this));var z=this.animationManager;x==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||Al(z),x==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),x!=="CommittedTransaction"&&x!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var ee=a.isTransactionFinished;if(ee&&(om(this),this.As.clear(),dd(this.animationManager)),!this.Rt&&ee&&this.lastInput.targetDiagram){this.Rt=!0;var re=this;Fi(function(){re.currentTool.standardMouseOver(),re.Rt=!1},10)}}}finally{this.aa=!0}}}};function Ah(a,y){y=y.O.s;for(var E=y.length,x=0;x<E;x++)Gd(a,y[x])}function Gd(a,y){if(y instanceof al){var E=y.element;if(E!==null&&E instanceof HTMLImageElement){E.Bg instanceof Dn&&E.Bg.add(a);var x=y.Eg;if(x!==null&&x.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),E.hn)if(E=E.getAttribute("src")||"",x=a.Og.I(E),x===null)x=[],x.push(y),a.Og.add(E,x);else{for(a=0;a<x.length;a++)if(x[a]===y)return;x.push(y)}}}}function Hg(a,y){if(y instanceof al){var E=y.element;if(E!==null&&E instanceof HTMLImageElement&&E.hn){var x=E.getAttribute("src")||"",b=a.Og.I(x);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(x),E.Fq&&E.removeEventListener("load",E.Fq),E.Yp&&E.removeEventListener("error",E.Yp),delete E.Fq,delete E.Yp,E.Bg instanceof Dn&&E.Bg.remove(a),qf(x));break}}}}}Jt.prototype.Wd=function(){this.partManager.Wd()},Jt.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},Jt.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},Jt.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},Jt.prototype.Vb=function(a){return this.partManager.Vb(a)},Jt.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},ke=Jt.prototype,ke.Lc=function(a){return this.partManager.Lc(a)},ke.ii=function(a){return this.partManager.ii(a)},ke.Kc=function(a){return this.partManager.Kc(a)},ke.ms=function(a){for(var y=[],E=0;E<arguments.length;++E)y[E]=arguments[E];return this.partManager.ms.apply(this.partManager,y instanceof Array?y:Yn(ki(y)))},ke.ls=function(a){for(var y=[],E=0;E<arguments.length;++E)y[E]=arguments[E];return this.partManager.ls.apply(this.partManager,y instanceof Array?y:Yn(ki(y)))};function fc(a){var y=a.pa,E=a.Ca;a.Rw.h(y.x,y.y,Math.max(a.Aa,0)/E,Math.max(a.ya,0)/E),a.vd=!0}function Gg(a,y){a.Zi=!1;var E=a.Sp;E.D(y)||(E=E.copy(),a.Sp.assign(y),mu(a,!1),a.R("DocumentBoundsChanged",void 0,E),a.Ee=!0,a.N())}ke.Va=function(){if(this.Zi){var a=pn.alloc();Gg(this,this.computeBounds(a)),pn.free(a)}},ke.rz=function(){for(var a=new Dn,y=this.nodes;y.next();){var E=y.value;E.isTopLevel&&a.add(E)}for(y=this.links;y.next();)E=y.value,E.isTopLevel&&a.add(E);return a.iterator},ke.qz=function(){return this.ai.iterator},ke.Uz=function(a){us(this),a&&Of(this,!0),this.ld?Yg(this,!1):(this.Jk=!0,$l(this))};function Of(a,y){for(var E=a.ai.iterator;E.next();)am(a,E.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function am(a,y,E){if(y!==null){for(var x=y.gl.iterator;x.next();)am(a,x.value,E);y.layout!==null&&(E?y.layout.isValidLayout=!1:y.layout.C())}}function Yg(a,y){if(a.xh&&!a.lt){var E=a.aa;a.aa=!0;var x=a.undoManager.transactionLevel,b=a.layout,z=a.animationManager;try{x===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=x&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Ia(z,"Layout")),a.xh=!1;for(var ee=a.ai.iterator;ee.next();)Wg(a,ee.value,y,x);b.isValidLayout||(!y||b.isRealtime||b.isRealtime===null||x===0?(b.doLayout(a),us(a),b.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,x===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||x!==0&&x!==1||Al(z),a.aa=E}}}function Wg(a,y,E,x){if(y!==null){for(var b=y.gl.iterator;b.next();)Wg(a,b.value,E,x);b=y.layout,b===null||b.isValidLayout||(!E||b.isRealtime||x===0?(y.rh=!y.location.w(),b.doLayout(y),y.C(32),Jh(a,y),b.isValidLayout=!0):a.xh=!0)}}ke.yz=function(){for(var a=new Un,y=this.nodes;y.next();){var E=y.value;E.isTopLevel&&E.kh()===null&&a.add(E)}return a.iterator};function rv(a){function y(b){var z=b.toLowerCase(),ee=new Un;E.add(b,ee),E.add(z,ee),x.add(b,b),x.add(z,b)}var E=new vi,x=new vi;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=E,a.hw=x}function sm(a,y){var E=a.hw.I(y);return E!==null?E:a.hw.I(y.toLowerCase())}function Rf(a,y){var E=a.iw.I(y);if(E!==null||(E=a.iw.I(y.toLowerCase()),E!==null))return E;lt("Unknown DiagramEvent name: "+y)}ke.Bj=function(a,y){return a=Rf(this,a),a!==null&&a.add(y),this},ke.am=function(a,y){a=Rf(this,a),a!==null&&a.remove(y)},ke.R=function(a,y,E){var x=Rf(this,a),b=new Au;if(b.diagram=this,a=sm(this,a),a!==null&&(b.name=a),y!==void 0&&(b.subject=y),E!==void 0&&(b.parameter=E),y=x.length,y===1)x.M(0)(b);else if(y!==0)for(x=x.Fa(),E=0;E<y;E++)(0,x[E])(b)};function Ff(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}ke.Yj=function(a,y){return Bf(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},Jt.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?Lg(this,a):a.assign(this.documentBounds)};function Bf(a,y,E,x){var b=a.Xh;if(b===null&&(a.Xh=b=new Ep(a.avoidanceCellSize)),b.vs||b.group!==E||b.Yx!==x){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)),E!==null&&(E=lm(a,E)),E===null){y=pn.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),b.initialize(y);for(var z=a.nodes;z.next();){var ee=z.value,re=ee.layer;re!==null&&re.visible&&!re.isTemporary&&_f(a,ee,x,y)}pn.free(y)}else{for(0<E.memberParts.count&&(y=a.computePartsBounds(E.memberParts,!1),y.Bc(20,20),b.initialize(y)),y=pn.alloc(),z=E.memberParts;z.next();)ee=z.value,ee instanceof li&&_f(a,ee,x,y);pn.free(y)}b.group=E,b.Yx=x,b.vs=!1}else y&&uS(b);return b}function lm(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?lm(a,y.containingGroup):null}function _f(a,y,E,x){if(y!==E&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(x),a=a.Xh;var b=y.x,z=y.y;if(rg(a,b,z))for(E=(z-a.Od)/a.sc|0,x=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<=x;b++)if(z=a.ac[b],z.fill)z.fill(Td,E,y+1);else for(var ee=E;ee<=y;ee++)z[ee]=Td}else if(y instanceof dr)for(y=y.memberParts;y.next();)b=y.value,b instanceof li&&_f(a,b,E,x)}}function fd(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}Jt.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():Vg(this)};function Vg(a){a.vk===-1&&(a.vk=Fi(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=pn.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Gg(a,y),pn.free(y),a.Fc=!0,a.bd(),Vg(a))}},a.vp))}Jt.prototype.ug=function(){this.vk!==-1&&(Bn.clearTimeout(this.vk),this.vk=-1)},Jt.prototype.computeAutoScrollPosition=function(a){var y=this.position,E=this.xp;if(0>=E.top&&0>=E.left&&0>=E.right&&0>=E.bottom)return y;var x=this.viewportBounds,b=this.scale;x=pn.allocAt(0,0,x.width*b,x.height*b);var z=dt.allocAt(0,0);if(a.x>=x.x&&a.x<x.x+E.left&&this.allowHorizontalScroll){var ee=Math.max(this.scrollHorizontalLineChange,1);ee|=0,z.x-=ee,a.x<x.x+E.left/2&&(z.x-=ee),a.x<x.x+E.left/4&&(z.x-=4*ee)}else a.x<=x.x+x.width&&a.x>x.x+x.width-E.right&&this.allowHorizontalScroll&&(ee=Math.max(this.scrollHorizontalLineChange,1),ee|=0,z.x+=ee,a.x>x.x+x.width-E.right/2&&(z.x+=ee),a.x>x.x+x.width-E.right/4&&(z.x+=4*ee));return a.y>=x.y&&a.y<x.y+E.top&&this.allowVerticalScroll?(ee=Math.max(this.scrollVerticalLineChange,1),ee|=0,z.y-=ee,a.y<x.y+E.top/2&&(z.y-=ee),a.y<x.y+E.top/4&&(z.y-=4*ee)):a.y<=x.y+x.height&&a.y>x.y+x.height-E.bottom&&this.allowVerticalScroll&&(ee=Math.max(this.scrollVerticalLineChange,1),ee|=0,z.y+=ee,a.y>x.y+x.height-E.bottom/2&&(z.y+=ee),a.y>x.y+x.height-E.bottom/4&&(z.y+=4*ee)),z.Xa(ho)||(y=new dt(y.x+z.x/b,y.y+z.y/b)),pn.free(x),dt.free(z),y},ke=Jt.prototype,ke.Cs=function(){return null},ke.av=function(){return null},ke.bs=function(a,y){this.pj.add(a,y)},ke.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof dr&&(y.$p=null)})};function qh(a,y,E){function x(){var fe=+new Date;for(z=!0,ee.reset();ee.next();)if(!ee.value[0].al){z=!1;break}z||fe-ce>oe?y(E,b,re):Bn.requestAnimationFrame(x)}for(var b=E.callback,z=!0,ee=a.Og.iterator;ee.next();)if(!ee.value[0].al){z=!1;break}if(typeof b!="function"||z)return y(E,b,a);var re=a,oe=E.callbackTimeout||300,ce=+new Date;return Bn.requestAnimationFrame(function(){x()}),null}ke.Wz=function(a){return Ko?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},ke.Jx=function(a){return a===void 0&&(a={}),qh(this,this.Xz,a)},ke.Xz=function(a,y,E){var x=um(E,a,"canvas",null);if(x===null)return null;E=x.Z.canvas;var b=null;if(E!==null)switch(b=a.returnType,b===void 0?b="string":b=b.toLowerCase(),b){case Mh+"data":b=x.getImageData(0,0,E.width,E.height);break;case Mh:x=(a.document||document).createElement("img"),x.src=E.toDataURL(a.type,a.details),b=x;break;case"blob":return typeof y!="function"&<('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof E.toBlob=="function"?(E.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:b=E.toDataURL(a.type,a.details)}return typeof y=="function"?(y(b),null):b};function um(a,y,E,x){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 ee=y.maxSize;y.maxSize===void 0&&(ee=E==="SVG"?new ti(1/0,1/0):new ti(2e3,2e3));var re=y.position||null,oe=y.parts||null,ce=y.padding===void 0?1:y.padding,fe=y.background||null,ye=y.omitTemporary;ye===void 0&&(ye=!0);var Ne=y.document||document,Pe=y.elementFinished||null,Fe=y.showTemporary;Fe===void 0&&(Fe=!ye),y=y.showGrid,y===void 0&&(y=Fe),b!==null&&isNaN(b.width)&&isNaN(b.height)&&(b=null),typeof ce=="number"?ce=new mr(ce):ce instanceof mr||lt("MakeImage padding must be a Margin or a number."),ce.left=Math.max(ce.left,0),ce.right=Math.max(ce.right,0),ce.top=Math.max(ce.top,0),ce.bottom=Math.max(ce.bottom,0),a.ib.Vc(!0),ye=new yu(null,Ne,void 0,!0);var We=ye.context;if(!(b||z||oe||re))return ye.width=a.Aa+Math.ceil(ce.left+ce.right),ye.height=a.ya+Math.ceil(ce.top+ce.bottom),E==="SVG"?x===null?null:(x.resize(ye.width,ye.height,ye.width,ye.height),x.ownerDocument=Ne,x.hs=Pe,Lf(a,x.context,ce,new ti(ye.width,ye.height),a.Ca,a.pa,oe,fe,Fe,y),x.context):(a.Xm=!1,Lf(a,We,ce,new ti(ye.width,ye.height),a.Ca,a.pa,oe,fe,Fe,y),a.Xm=!0,ye.context);var gt=a.Pp,nt=a.documentBounds.copy();if(nt.Fv(a.yb),Fe)for(var vt=a.Wa.s,St=vt.length,Tt=0;Tt<St;Tt++){var Dt=vt[Tt];if(Dt.visible&&Dt.isTemporary){Dt=Dt.Pa.s;for(var Xt=Dt.length,ai=0;ai<Xt;ai++){var Ci=Dt[ai];Ci.isInDocumentBounds&&Ci.isVisible()&&(Ci=Ci.actualBounds,Ci.w()&&nt.ed(Ci))}}}if(vt=new dt(nt.x,nt.y),oe!==null){for(St=new pn(0,0,0,0),Tt=!0,Dt=oe.iterator,Dt.reset();Dt.next();)Xt=Dt.value,Xt instanceof Bi&&(ai=Xt.layer,ai!==null&&!ai.visible||ai!==null&&!Fe&&ai.isTemporary||!Xt.isVisible()||(Xt=Xt.actualBounds,Xt.w()&&(Tt?(Tt=!1,St.assign(Xt)):St.ed(Xt))));nt.width=St.width,nt.height=St.height,vt.x=St.x,vt.y=St.y}return re!==null&&re.w()&&(vt=re,z||(z=gt)),St=re=0,ce!==null&&(re=ce.left+ce.right,St=ce.top+ce.bottom),Tt=Dt=0,b!==null&&(Dt=b.width,Tt=b.height,isFinite(Dt)&&(Dt=Math.max(0,Dt-re)),isFinite(Tt)&&(Tt=Math.max(0,Tt-St))),b!==null&&z!==null?(z==="NaN"&&(z=gt),b.w()?(b=Dt,nt=Tt):isNaN(Tt)?(b=Dt,nt=nt.height*z):(b=nt.width*z,nt=Tt)):b!==null?b.w()?(z=Math.min(Dt/nt.width,Tt/nt.height),b=Dt,nt=Tt):isNaN(Tt)?(z=Dt/nt.width,b=Dt,nt=nt.height*z):(z=Tt/nt.height,b=nt.width*z,nt=Tt):z!==null?z==="NaN"&&ee.w()?(z=Math.min((ee.width-re)/nt.width,(ee.height-St)/nt.height),z>gt?(z=gt,b=nt.width,nt=nt.height):(b=ee.width,nt=ee.height)):(b=nt.width*z,nt=nt.height*z):(z=gt,b=nt.width,nt=nt.height),ce!==null?(b+=re,nt+=St):ce=new mr(0),ee!==null&&(gt=ee.width,ee=ee.height,isNaN(gt)&&(gt=2e3),isNaN(ee)&&(ee=2e3),isFinite(gt)&&(b=Math.min(b,gt)),isFinite(ee)&&(nt=Math.min(nt,ee))),ye.width=Math.ceil(b),ye.height=Math.ceil(nt),E==="SVG"?x===null?null:(x.resize(ye.width,ye.height,ye.width,ye.height),x.ownerDocument=Ne,x.hs=Pe,Lf(a,x.context,ce,new ti(Math.ceil(b),Math.ceil(nt)),z,vt,oe,fe,Fe,y),x.context):(a.Xm=!1,Lf(a,We,ce,new ti(Math.ceil(b),Math.ceil(nt)),z,vt,oe,fe,Fe,y),a.Xm=!0,ye.context)}zt.Object.defineProperties(Jt.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof Ee||(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 gc(this,Bn.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 gc(this,Bn.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(E){E.cancelWaitAfter()}),y.mouseMoveTools.each(function(E){E.cancelWaitAfter()}),y.mouseUpTools.each(function(E){E.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(Bn,"resize",this.Ov,!1),this.removeEventListener(Bn,"wheel",this.$j,!0),Nc===this&&(Nc=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Mg(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)&&oi(a,"0 <= value <= 1",Jt,"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),mu(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),mu(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),mu(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),mu(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&oi(a,">= 0",Jt,"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&&oi(a,">= 0",Jt,"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,E=this.Ka;if(y!==null&&E!==null){this.it=a;var x=y.style.cursor;y.style.cursor=a,E.style.cursor=a,y.style.cursor===x&&(y.style.cursor="-webkit-"+a,E.style.cursor="-webkit-"+a,y.style.cursor===x&&(y.style.cursor="-moz-"+a,E.style.cursor="-moz-"+a,y.style.cursor===x&&(y.style.cursor=a,E.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 E=0;E<a;E++)y[E].isSelected=!1;this.R("ChangedSelection",this.selection)}}else oi(a,">= 0",Jt,"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||om(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 E=Ng(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var x=this.vb;this.vb=!0,Ia(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=Ug(this.cc.type);for(var b=0;b<E.length;b++)this.add(E[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=x,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(Bn,"pointermove",this.dk,!0),this.addEventListener(Bn,"pointerdown",this.ui,!0),this.addEventListener(Bn,"pointerup",this.fk,!0),this.addEventListener(Bn,"pointerout",this.ek,!0),this.addEventListener(Bn,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Bn,"wheel",this.$j,!0),this.addEventListener(Bn,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Bn,"pointermove",this.dk,!0),this.removeEventListener(Bn,"pointerdown",this.ui,!0),this.removeEventListener(Bn,"pointerup",this.fk,!0),this.removeEventListener(Bn,"pointerout",this.ek,!0),this.removeEventListener(Bn,"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(Bn,"wheel",this.$j,!0),this.removeEventListener(Bn,"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=dt.alloc().assign(this.pa);if(!y.D(a)){var E=this.viewportBounds.copy();this.pa.assign(a),_d(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?fc(this):(this.vb=!0,a=this.scale,Ig(this,this.Sp,this.Aa/a,this.ya/a,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(E,this.viewportBounds,this.Ca,!1)}dt.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=tm(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=tm(this)),a.type!==Wn.Grid&<("Diagram.grid must be a Panel of type Panel.Grid");var E=y.panel;E!==null&&E.remove(y),this.fe=a,a.name="GRID",E!==null&&E.add(a),hc(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),fc(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 mr(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===gd&&mu(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,mu(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,zg(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&&zg(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!==Ls&&mu(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)):oi(a,"> 0",Jt,"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)):oi(a,"> 0",Jt,"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),mu(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 mr(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();)cp(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==pd&&a!==Sa&&a!==zf&<("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 ti(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 mr(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),zt.Object.defineProperties(Jt,{licenseKey:{get:function(){return qg.jc()},set:function(a){qg.add(a.replace(/\s/g,""))}},version:{get:function(){return Nh}}}),Jt.prototype.makeImageData=Jt.prototype.Jx,Jt.prototype.makeImage=Jt.prototype.Wz,Jt.prototype.cacheGroupExternalLinks=Jt.prototype.Fu,Jt.prototype.addRenderer=Jt.prototype.bs,Jt.prototype.makeSVG=Jt.prototype.av,Jt.prototype.makeSvg=Jt.prototype.Cs,Jt.prototype.stopAutoScroll=Jt.prototype.ug,Jt.prototype.doAutoScroll=Jt.prototype.gs,Jt.prototype.isUnoccupied=Jt.prototype.Yj,Jt.prototype.raiseDiagramEvent=Jt.prototype.R,Jt.prototype.removeDiagramListener=Jt.prototype.am,Jt.prototype.addDiagramListener=Jt.prototype.Bj,Jt.prototype.findTreeRoots=Jt.prototype.yz,Jt.prototype.layoutDiagram=Jt.prototype.Uz,Jt.prototype.findTopLevelGroups=Jt.prototype.qz,Jt.prototype.findTopLevelNodesAndLinks=Jt.prototype.rz,Jt.prototype.ensureBounds=Jt.prototype.Va,Jt.prototype.findLinksByExample=Jt.prototype.ls,Jt.prototype.findNodesByExample=Jt.prototype.ms,Jt.prototype.findLinkForData=Jt.prototype.Kc,Jt.prototype.findNodeForData=Jt.prototype.ii,Jt.prototype.findPartForData=Jt.prototype.Lc,Jt.prototype.findLinkForKey=Jt.prototype.findLinkForKey,Jt.prototype.findNodeForKey=Jt.prototype.Vb,Jt.prototype.findPartForKey=Jt.prototype.findPartForKey,Jt.prototype.rebuildParts=Jt.prototype.Wd,Jt.prototype.transformViewToDoc=Jt.prototype.Ps,Jt.prototype.transformRectDocToView=Jt.prototype.zA,Jt.prototype.transformDocToView=Jt.prototype.op,Jt.prototype.centerRect=Jt.prototype.es,Jt.prototype.scrollToRect=Jt.prototype.tv,Jt.prototype.scroll=Jt.prototype.scroll,Jt.prototype.highlightCollection=Jt.prototype.Jz,Jt.prototype.highlight=Jt.prototype.Iz,Jt.prototype.selectCollection=Jt.prototype.rA,Jt.prototype.select=Jt.prototype.select,Jt.prototype.updateAllRelationshipsFromData=Jt.prototype.rp,Jt.prototype.updateAllTargetBindings=Jt.prototype.updateAllTargetBindings,Jt.prototype.commit=Jt.prototype.commit,Jt.prototype.rollbackTransaction=Jt.prototype.Kf,Jt.prototype.commitTransaction=Jt.prototype.eb,Jt.prototype.startTransaction=Jt.prototype.Ea,Jt.prototype.raiseChanged=Jt.prototype.g,Jt.prototype.raiseChangedEvent=Jt.prototype.cb,Jt.prototype.removeChangedListener=Jt.prototype.ik,Jt.prototype.addChangedListener=Jt.prototype.Pe,Jt.prototype.removeModelChangedListener=Jt.prototype.mA,Jt.prototype.addModelChangedListener=Jt.prototype.Yw,Jt.prototype.findLayer=Jt.prototype.Qj,Jt.prototype.removeLayer=Jt.prototype.kA,Jt.prototype.addLayerAfter=Jt.prototype.Cy,Jt.prototype.addLayerBefore=Jt.prototype.Ww,Jt.prototype.addLayer=Jt.prototype.Al,Jt.prototype.moveParts=Jt.prototype.moveParts,Jt.prototype.copyParts=Jt.prototype.Kj,Jt.prototype.removeParts=Jt.prototype.Is,Jt.prototype.remove=Jt.prototype.remove,Jt.prototype.add=Jt.prototype.add,Jt.prototype.clearDelayedGeometries=Jt.prototype.bx,Jt.prototype.setProperties=Jt.prototype.nm,Jt.prototype.attach=Jt.prototype.Du,Jt.prototype.set=Jt.prototype.set,Jt.prototype.resetInputOptions=Jt.prototype.Sx,Jt.prototype.setInputOption=Jt.prototype.sA,Jt.prototype.getInputOption=Jt.prototype.Ql,Jt.prototype.resetRenderingHints=Jt.prototype.Tx,Jt.prototype.setRenderingHint=Jt.prototype.Xx,Jt.prototype.getRenderingHint=Jt.prototype.Gf,Jt.prototype.maybeUpdate=Jt.prototype.bd,Jt.prototype.requestUpdate=Jt.prototype.$b,Jt.prototype.delayInitialization=Jt.prototype.Xy,Jt.prototype.isUpdateRequested=Jt.prototype.Pz,Jt.prototype.invalidateDocumentBounds=Jt.prototype.Ya,Jt.prototype.findObjectsNear=Jt.prototype.og,Jt.prototype.findPartsNear=Jt.prototype.mz,Jt.prototype.findObjectsIn=Jt.prototype.Cf,Jt.prototype.findPartsIn=Jt.prototype.ux,Jt.prototype.findObjectsAt=Jt.prototype.ji,Jt.prototype.findPartsAt=Jt.prototype.lz,Jt.prototype.findObjectAt=Jt.prototype.ic,Jt.prototype.findPartAt=Jt.prototype.Ol,Jt.prototype.focusObject=Jt.prototype.zz,Jt.prototype.alignDocument=Jt.prototype.Jy,Jt.prototype.zoomToRect=Jt.prototype.BA,Jt.prototype.zoomToFit=Jt.prototype.zoomToFit,Jt.prototype.diagramScroll=Jt.prototype.kx,Jt.prototype.focus=Jt.prototype.focus;var jf=new vi,cm=null,Ko=Bn.document!==void 0,Ch=null,Yd="",Ls=new Mn(Jt,"None",0),zl=new Mn(Jt,"Uniform",1),Wd=new Mn(Jt,"UniformToFill",2),$h=new Mn(Jt,"CycleAll",10),Zg=new Mn(Jt,"CycleNotDirected",11),Qg=new Mn(Jt,"CycleNotDirectedFast",12),Kg=new Mn(Jt,"CycleNotUndirected",13),Xg=new Mn(Jt,"CycleDestinationTree",14),Jg=new Mn(Jt,"CycleSourceTree",15),gd=new Mn(Jt,"DocumentScroll",1),ef=new Mn(Jt,"InfiniteScroll",2),pd=new Mn(Jt,"TreeParentCollapsed",21),Sa=new Mn(Jt,"AllParentsCollapsed",22),zf=new Mn(Jt,"AnyParentsCollapsed",23),qg=new Un,Nh="2.3.10",Mh="image",tf=null,dm=!1;function Ss(){if(Ko){var a=Bn.document.createElement("canvas"),y=a.getContext("2d"),E=vn("7ca11abfd022028846");y[E]=vn("398c3597c01238");for(var x=["5da73c80a36455d7038e4972187c3cae51fd22",ei.Dx+"4ae6247590da4bb21c324ba3a84e385776",ir.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Ft.za],b=1;5>b;b++)y[vn("7ca11abfd7330390")](vn(x[b-1]),10,15*b);for(y[E]=vn("39f046ebb36e4b"),E=1;5>E;E++)y[vn("7ca11abfd7330390")](vn(x[E-1]),10,15*E);(x.length!==4||x[0][0]!=="5"||x[3][0]!=="7")&&(ir.prototype.Cd=ir.prototype.Eu),tf=a}}Jt.className="Diagram",Jt.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Bn.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof Jt?y.H:null},Jt.inherit=function(a,y){function E(){}if(Object.getPrototypeOf(a).prototype)throw Error(`Used go.Diagram.inherit defining already defined class
|
|
|
`+a);E.prototype=y.prototype,a.prototype=new E,a.prototype.constructor=a},Jt.useDOM=function(a){Ko=a?Bn.document!==void 0:!1},Jt.isUsingDOM=function(){return Ko},Jt.None=Ls,Jt.Uniform=zl,Jt.UniformToFill=Wd,Jt.CycleAll=$h,Jt.CycleNotDirected=Zg,Jt.CycleNotDirectedFast=Qg,Jt.CycleNotUndirected=Kg,Jt.CycleDestinationTree=Xg,Jt.CycleSourceTree=Jg,Jt.DocumentScroll=gd,Jt.InfiniteScroll=ef,Jt.TreeParentCollapsed=pd,Jt.AllParentsCollapsed=Sa,Jt.AnyParentsCollapsed=zf;function hm(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Ph(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)e:{y="f";var E=Bn[vn("76a715b2f73f148a")][vn("72ba13b5")]||"";if(a.Rc=!0,Ko){var x=Jt[vn("76a115b6ed251eaf4692")];if(x)for(var b=qg.iterator;b.next()&&(x=b.value,x=vn(x).split(vn("39e9")),!(6>x.length));){var z=vn(x[1]).split(".");if(x[4]!=="7da71ca0")break;var ee=vn(ei[vn("6cae19")]).split(".");if(z[0]>ee[0]||z[0]===ee[0]&&z[1]>=ee[1]){var re=Bn[vn("74a900bae4370f8b51")][vn("6fbb13a1c2311e8a57")].toLowerCase();if(ee=re[vn("73a612b6fb191d")](vn("3aad1ab6e022098b4dc4")),z=vn(x[2]),-1<ee&&(re=re[vn("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<re&&re<ee),!a.Rc))break;for(ee=E[vn("76ad18b4f73e")],re=E[vn("73a612b6fb191d")](vn("35e7"))+2;re<ee;re++)y+=E[re];if(ee=y[vn("73a612b6fb191d")](z),0>ee&&z!==vn("7da71ca0ad381e90")&&(ee=y[vn("73a612b6fb191d")](vn("76a715b2ef3e149757"))),0>ee&&(ee=y[vn("73a612b6fb191d")](vn("76a715b2ef3e149757"))),0>ee&&(ee=y[vn("73a612b6fb191d")](vn("2bfa41fdb3784bca12"))),0>ee&&(ee=E[vn("73a612b6fb191d")](vn("7baa19a6f76c1988428554"))),a.Rc=!(0<=ee&&ee<y[vn("73a612b6fb191d")](vn("35"))||y[vn("73a612b6fb191d")](vn("35"))===-1),!a.Rc||E[vn("73a612b6fb191d")](vn("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<E[vn("73a612b6fb191d")](z)),!a.Rc)||(ee=Bn[vn("76a715b2f73f148a")][vn("69ad17a1e03e")],re=ee[vn("73a612b6fb191d")](vn("7fb002b6ed25128b4da25b2e")),-1<re&&(a.Rc=!(ee[vn("73a612b6fb191d")](z)>re),!a.Rc)))break;if(z[0]==="#"){ee=Bn.document.createElement("div");for(var oe=x[0].replace(/[A-Za-z]/g,"");4>oe.length;)oe+="9";if(re=oe,oe=oe.substr(oe.length-4),x="",x+=["gsh","gsf"][parseInt(oe.substr(0,1),10)%2],x+=["Header","Background","Display","Feedback"][parseInt(oe.substr(0,1),10)%4],ee[vn("79a417a0f0181a8946")]=x,Bn.document[vn("78a712aa")]){Bn.document[vn("78a712aa")][vn("7bb806b6ed32388c4a875b")](ee),oe=Bn.getComputedStyle(ee).getPropertyValue(vn("78a704b7e62456904c9b12701b6532a8"));var ce=Bn.getComputedStyle(ee).getPropertyValue(vn("75b817b0ea2202"));if(Bn.document[vn("78a712aa")][vn("68ad1bbcf533388c4a875b")](ee),oe){if(ee=Bn[vn("77a902b0eb1b1e804a8a")],ce==="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(ee&&ee(vn("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(x="."+x,z=0;z<document.styleSheets.length;z++){ee=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var fe in ee)if(x===ee[fe].selectorText){a.Rc=!1;break e}}}}else a.Rc=null,a.Rc=!1}}}else{for(fe=E[vn("76ad18b4f73e")],b=E[vn("73a612b6fb191d")](vn("35e7"))+2;b<fe;b++)y+=E[b];E=y[vn("73a612b6fb191d")](vn("7da71ca0ad381e90")),a.Rc=!(0<=E&&E<y[vn("73a612b6fb191d")](vn("35")))}}}return 0<a.Rc&&a!==a.wy}hm.className="DiagramHelper";function Zc(a){this.j=a===void 0?new dt:a,this.o=new dt}zt.Object.defineProperties(Zc.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 nf="DraggingInfo";Zc.className="DraggingInfo";function ie(a,y,E){this.node=a,this.info=y,this.Su=E}ie.className="DraggingNodeInfoPair";function ae(){this.reset()}ae.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new ti(NaN,NaN).freeze(),this.gridSnapCellSpot=_i,this.gridSnapOrigin=new dt(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},ae.className="DraggingOptions";function ve(a,y){if(typeof a=="string"||Bn.Element&&a instanceof Element)var E=Jt.call(this,a)||this;else E=Jt.call(this)||this,y=a;return me(E),y&&E.nm(y),E}en(ve,Jt);function me(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=qi,a.layout=new Ja}ve.prototype.reset=function(){Jt.prototype.reset.call(this),me(this)},ve.className="Palette";function Ee(a,y){if(typeof a=="string"||Bn.Element&&a instanceof Element)var E=Jt.call(this,a)||this;else E=Jt.call(this)||this,y=a;var x=E;E.animationManager.isEnabled=!1,E.vb=!0,E.V=null,E.mn=!1,E.nn=!1,E.F=!0,E.u=!0,E.ia=0,E.o=!1,E.ql=null,E.Xx("drawShadows",!1),a=new Bi;var b=new yr;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),E.j=a,E.allowCopy=!1,E.allowDelete=!1,E.allowSelect=!0,E.autoScrollRegion=new mr(0,0,0,0),E.pa.h(0,0),E.toolManager.gb("Dragging",new pt,E.toolManager.mouseMoveTools),E.click=function(){var z=x.observed;if(z!==null){var ee=z.viewportBounds,re=x.lastInput.documentPoint;z.position=new dt(re.x-ee.width/2,re.y-ee.height/2)}},E.Pf=function(){x.Ya(),$e(x)},E.Xd=function(){x.observed!==null&&(x.Ya(),x.N())},E.Ha=function(){1>x.updateDelay?x.N():x.o||(x.o=!0,setTimeout(function(){return x.redraw()},x.updateDelay))},E.Of=function(){x.observed!==null&&$e(x)},E.autoScale=zl,E.vb=!1,y&&Object.assign(E,y),E}en(Ee,Jt),Ee.prototype.computePixelRatio=function(){return 1},Ee.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(wh(this),this.ql===null){var E=new yu(null);E.width=a.width,E.height=a.height,this.ql=E}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),Ue(this)}finally{this.ta=a,this.ib=y}}}Jt.prototype.redraw.call(this)},Ee.prototype.gc=function(){if(this.Ka===null&<("No div specified"),this.ta===null&<("No canvas specified"),!(this.ta instanceof gc)&&(_v(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){wh(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?Ue(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 E=y.length,x=0;x<E;x++)y[x].gc(a,this);this.Fc=this.vd=!1}}};function Ue(a){var y=a.observed;if(y!==null){var E=a.drawsTemporaryLayers,x=a.drawsGrid&&E,b=y.grid;x&&b!==null&&b.visible&&!isNaN(b.width)&&!isNaN(b.height)&&(b=pn.alloc().assign(a.viewportBounds).ed(y.viewportBounds),hc(y,b),pn.free(b),us(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 ee=0;ee<z;ee++){var re=y[ee],oe=a;if(re.visible&&re.opacity!==0){var ce=re.diagram.grid.part;if(!E&&re.isTemporary)x&&ce.layer===re&&(re=Vc(re,b),ce.gc(b,oe),b.globalAlpha=re);else{for(var fe=Vc(re,b),ye=oe.scale,Ne=pn.alloc(),Pe=re.Pa.s,Fe=Pe.length,We=0;We<Fe;We++){var gt=Pe[We];(x||gt!==ce)&&re.Oj(b,gt,oe,null,ye,Ne,!1)}pn.free(Ne),b.globalAlpha=fe}}}}}function $e(a){var y=a.box;if(y!==null){var E=a.observed;if(E!==null){a.Fc=!0,E=E.viewportBounds;var x=y.selectionObject,b=ti.alloc();b.h(E.width,E.height),x.desiredSize=b,ti.free(b),a=2/a.scale,x instanceof yr&&(x.strokeWidth=a),y.location=new dt(E.x-a/2,E.y-a/2),y.isSelected=!0}}}Ee.prototype.computeBounds=function(){var a=this.observed;if(a===null)return Ua;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},Ee.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},Ee.prototype.onViewportBoundsChanged=function(a,y,E,x){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),$e(this),this.fc.scale=E,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.Oz=x,this.R("ViewportBoundsChanged",this.fc,a))},zt.Object.defineProperties(Ee.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof Ee&<("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 E=this.ta,x=this.ib;E&&x&&(x.setTransform(1,0,0,1,0,0),x.clearRect(0,0,E.width,E.height))}else this.Ha(null),$e(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),$e(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)}}}),Ee.className="Overview";function pt(){To.call(this),this.j=null}en(pt,To),pt.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 E=a.lastInput;return!E.left||a.currentTool!==this&&(!this.isBeyondDragSize()||E.isTouchEvent&&E.timestamp-a.firstInput.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(E=y.viewportBounds,this.j=new dt(E.width/2,E.height/2),a=a.firstInput.documentPoint,y.position=new dt(a.x-this.j.x,a.y-this.j.y)),!0)},pt.prototype.doActivate=function(){this.j=null,To.prototype.doActivate.call(this)},pt.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},pt.prototype.moveParts=function(){var a=this.diagram,y=a.observed;if(y!==null){var E=a.box;if(E!==null){if(this.j===null){var x=a.firstInput.documentPoint;E=E.location,this.j=new dt(x.x-E.x,x.y-E.y)}a=a.lastInput.documentPoint,y.position=new dt(a.x-this.j.x,a.y-this.j.y)}}},pt.className="OverviewDraggingTool";function ft(){Lr(this),this.H=Nc,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=Ua,this.hb=!0,this.cg=null,this.ob=200}ft.prototype.toString=function(){return"CommandHandler"},ft.prototype.Xe=function(a){this.H=a},ft.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,E=ar?y.meta:y.control,x=y.shift,b=y.alt,z=y.key;!E||z!=="C"&&z!=="Insert"?E&&z==="X"||x&&z==="Del"?this.canCutSelection()&&this.cutSelection():E&&z==="V"||x&&z==="Insert"?this.canPasteSelection()&&this.pasteSelection():E&&z==="Y"||b&&x&&z==="Backspace"?this.canRedo()&&this.redo():E&&z==="Z"||b&&z==="Backspace"?this.canUndo()&&this.undo():z==="Del"||z==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():E&&z==="A"?this.canSelectAll()&&this.selectAll():z==="Esc"?this.canStopCommand()&&this.stopCommand():z==="Up"?a.allowVerticalScroll&&(E?a.scroll("pixel","up"):a.scroll("line","up")):z==="Down"?a.allowVerticalScroll&&(E?a.scroll("pixel","down"):a.scroll("line","down")):z==="Left"?a.allowHorizontalScroll&&(E?a.scroll("pixel","left"):a.scroll("line","left")):z==="Right"?a.allowHorizontalScroll&&(E?a.scroll("pixel","right"):a.scroll("line","right")):z==="PageUp"?x&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):z==="PageDown"?x&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):z==="Home"?E&&a.allowVerticalScroll?a.scroll("document","up"):!E&&a.allowHorizontalScroll&&a.scroll("document","left"):z==="End"?E&&a.allowVerticalScroll?a.scroll("document","down"):!E&&a.allowHorizontalScroll&&a.scroll("document","right"):z===" "?this.canScrollToPart()&&this.scrollToPart():z==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():z==="Add"?this.canIncreaseZoom()&&this.increaseZoom():E&&z==="0"?this.canResetZoom()&&this.resetZoom():x&&z==="Z"?this.canZoomToFit()&&this.zoomToFit():E&&!x&&z==="G"?this.canGroupSelection()&&this.groupSelection():E&&x&&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()},ft.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},ft.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Co&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},ft.prototype.canStopCommand=function(){return!0},ft.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 E=a.nodes;E.next();)E.value.isSelected=!0;for(var x=a.links;x.next();)x.value.isSelected=!0}finally{a.R("ChangedSelection",a.selection),a.currentCursor=""}},ft.prototype.canSelectAll=function(){return this.diagram.allowSelect},ft.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 Dn,E=a.selection.iterator;E.next();)Kd(y,E.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(x){return x.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},ft.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},ft.prototype.copySelection=function(){var a=this.diagram,y=new Dn;for(a=a.selection.iterator;a.next();)Kd(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(E){return E.canCopy()});this.copyToClipboard(y)},ft.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},ft.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},ft.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},ft.prototype.copyToClipboard=function(a){var y=this.diagram,E=null;if(a===null)Ch=null,Yd="";else{E=y.model;var x=!1,b=!1,z=null;try{E.Tl()&&(x=E.Jj,E.Jj=this.copiesParentKey),E.Wj()&&(b=E.Ij,E.Ij=this.copiesGroupKey),z=y.Kj(a,null,!0)}finally{E.Tl()&&(E.Jj=x),E.Wj()&&(E.Ij=b),E=new Un,E.addAll(z),Ch=E,Yd=y.model.dataFormat}}y.R("ClipboardChanged",E)},ft.prototype.pasteFromClipboard=function(){var a=new Dn,y=Ch;if(y===null)return a;var E=this.diagram;if(Yd!==E.model.dataFormat)return a;var x=E.model,b=!1,z=!1,ee=null;try{x.Tl()&&(b=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(z=x.Ij,x.Ij=this.copiesGroupKey),ee=E.Kj(y,E,!1)}finally{for(x.Tl()&&(x.Jj=b),x.Wj()&&(x.Ij=z),y=ee.iterator;y.next();)E=y.value,x=y.key,E.location.w()||(x.location.w()?E.location=x.location:!E.position.w()&&x.position.w()&&(E.position=x.position)),a.add(E)}return a},ft.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 E=this.pasteFromClipboard();0<E.count&&y.clearSelection(!0);for(var x=E.iterator;x.next();)x.value.isSelected=!0;if(a!==null){var b=y.computePartsBounds(y.selection);if(b.w()){var z=this.computeEffectiveCollection(y.selection,y.Wm);Ud(y,z,new dt(a.x-b.centerX,a.y-b.centerY),y.Wm,!1)}}y.R("ClipboardPasted",E)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},ft.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Ch===null||Ch.count===0||Yd!==a.model.dataFormat)},ft.prototype.undo=function(){this.diagram.undoManager.undo()},ft.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},ft.prototype.redo=function(){this.diagram.undoManager.redo()},ft.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},ft.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===Ls&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},ft.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Ls?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},ft.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Ls&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},ft.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Ls?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},ft.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},ft.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},ft.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var E=a.position,x=a.scale;Ia(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&x===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=Ua):(this.Jt=x,this.sw=E.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Al(y)},ft.prototype.canZoomToFit=function(){return this.diagram.allowZoom},ft.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 E=y.animationManager;Ia(E,"Scroll To Part");var x=this.scrollToPartPause;if(0<x){var b=Ct(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 dr)||oe.isSubGraphExpanded);)oe=b.pop();0<b.length?(oe instanceof Bi&&y.tv(oe.actualBounds),oe instanceof li&&!oe.isTreeExpanded&&(oe.isTreeExpanded=!0),oe instanceof dr&&!oe.isSubGraphExpanded&&(oe.isSubGraphExpanded=!0)):(oe instanceof Bi&&y.es(oe.actualBounds),y.am("LayoutCompleted",ee)),y.eb("Scroll To Part")},ee=function(){Fi(z,(E.isEnabled?E.duration:0)+x)};y.Bj("LayoutCompleted",ee),z()}}else{var re=y.position.copy();y.es(a.actualBounds),re.Xa(y.position)&&E.Cc()}}};function Ct(a,y,E){if(y.isVisible())return E;if(y instanceof Hr)Ct(a,y.adornedPart,E);else if(y instanceof Jn){var x=y.fromNode;x!==null&&Ct(a,x,E),y=y.toNode,y!==null&&Ct(a,y,E)}else y instanceof li&&(x=y.labeledLink,x!==null&&Ct(a,x,E),x=y.pg(),x!==null&&(x.isTreeExpanded||x.wasTreeExpanded||E.push(x),Ct(a,x,E))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||E.push(y),Ct(a,y,E));return E}ft.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof Bi)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},ft.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Ia(y.animationManager,"Collapse Tree");var E=new Un;if(a!==null&&a.isTreeExpanded)a.collapseTree(),E.add(a);else if(a===null)for(var x=y.selection.iterator;x.next();){var b=x.value;b instanceof li&&b.isTreeExpanded&&(b.collapseTree(),E.add(b))}y.R("TreeCollapsed",E)}finally{y.eb("Collapse Tree")}},ft.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},ft.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Ia(y.animationManager,"Expand Tree");var E=new Un;if(a!==null&&!a.isTreeExpanded)a.expandTree(),E.add(a);else if(a===null)for(var x=y.selection.iterator;x.next();){var b=x.value;b instanceof li&&!b.isTreeExpanded&&(b.expandTree(),E.add(b))}y.R("TreeExpanded",E)}finally{y.eb("Expand Tree")}},ft.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},ft.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var E=this.archetypeGroupData;if(E!==null){var x=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var b=new Un,z=a.selection.iterator;z.next();){var ee=z.value;ee.Zc()&&ee.canGroup()&&b.add(ee)}for(var re=new Un,oe=b.iterator;oe.next();){var ce=oe.value;z=!1;for(var fe=b.iterator;fe.next();)if(ce.Td(fe.value)){z=!0;break}z||re.add(ce)}if(0<re.count){var ye=re.first().containingGroup;if(ye!==null)for(;ye!==null;){b=!1;for(var Ne=re.iterator;Ne.next();)if(!Ne.value.Td(ye)){b=!0;break}if(b)ye=ye.containingGroup;else break}if(E instanceof dr)Su(E),x=E.copy(),x!==null&&a.add(x);else if(y.Yu(E)){var Pe=y.copyNodeData(E);jt(Pe)&&(y.xf(Pe),x=a.ii(Pe))}if(x!==null){ye!==null&&this.isValidMember(ye,x)&&(x.containingGroup=ye);for(var Fe=re.iterator;Fe.next();){var We=Fe.value;this.isValidMember(x,We)&&(We.containingGroup=x)}a.clearSelection(!0),x.isSelected=!0}}a.R("SelectionGrouped",x)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},ft.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 hn(a){var y=ci();for(a=a.iterator;a.next();){var E=a.value;E instanceof Jn||y.push(E)}a=new Dn,E=y.length;for(var x=0;x<E;x++){for(var b=y[x],z=!0,ee=0;ee<E;ee++)if(b.Td(y[ee])){z=!1;break}z&&a.add(b)}return pi(y),a}ft.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof Jn)return!1;if(a!==null){if(a===y||a.Td(y))return!1;var E=a.memberValidation;if(E!==null&&!E(a,y)||a.data===null&&y.data!==null||a.data!==null&&y.data===null)return!1}return E=this.memberValidation,E!==null?E(a,y):!0},ft.prototype.ungroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram,E=y.model;if(E.Xj())try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Ungroup");var x=new Un;if(a!==null)x.add(a);else for(var b=y.selection.iterator;b.next();){var z=b.value;z instanceof dr&&z.canUngroup()&&x.add(z)}var ee=new Un;if(0<x.count){y.clearSelection(!0);for(var re=x.iterator;re.next();){var oe=re.value;oe.expandSubGraph();var ce=oe.containingGroup,fe=ce!==null&&ce.data!==null?E.wa(ce.data):void 0;ee.addAll(oe.memberParts);for(var ye=ee.iterator;ye.next();){var Ne=ye.value;if(Ne.isSelected=!0,!(Ne instanceof Jn)){var Pe=Ne.data;Pe!==null?E.mp(Pe,fe):Ne.containingGroup=ce}}y.remove(oe)}}y.R("SelectionUngrouped",x,ee)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},ft.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 dr))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof dr&&y.canUngroup())return!0;return!1},ft.prototype.addTopLevelParts=function(a,y){var E=!0;for(a=hn(a).iterator;a.next();){var x=a.value;x.containingGroup!==null&&(!y||this.isValidMember(null,x)?x.containingGroup=null:E=!1)}return E},ft.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Ia(y.animationManager,"Collapse SubGraph");var E=new Un;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),E.add(a);else if(a===null)for(var x=y.selection.iterator;x.next();){var b=x.value;b instanceof dr&&b.isSubGraphExpanded&&(b.collapseSubGraph(),E.add(b))}y.R("SubGraphCollapsed",E)}finally{y.eb("Collapse SubGraph")}},ft.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof dr&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof dr&&y.isSubGraphExpanded)return!0;return!1},ft.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Ia(y.animationManager,"Expand SubGraph");var E=new Un;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),E.add(a);else if(a===null)for(var x=y.selection.iterator;x.next();){var b=x.value;b instanceof dr&&!b.isSubGraphExpanded&&(b.expandSubGraph(),E.add(b))}y.R("SubGraphExpanded",E)}finally{y.eb("Expand SubGraph")}},ft.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof dr&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof dr&&!y.isSubGraphExpanded)return!0;return!1},ft.prototype.editTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram,E=y.toolManager.findTool("TextEditing");if(E!==null){if(a===null){a=null;for(var x=y.selection.iterator;x.next();){var b=x.value;if(b.canEdit()){a=b;break}}if(a===null)return;a=a.Nl(function(z){return z instanceof Eo&&z.editable})}a!==null&&(y.currentTool=null,E.textBlock=a,y.currentTool=E)}},ft.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 Eo))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(E){return E instanceof Eo&&E.editable}),a!==null))return!0;return!1},ft.prototype.showContextMenu=function(a){var y=this.diagram,E=y.toolManager.findTool("ContextMenu");if(E!==null&&(a===void 0&&(a=0<y.selection.count?y.selection.first():y),a=E.findObjectWithContextMenu(a),a!==null)){var x=y.lastInput,b=null;a instanceof Rt?b=a.ga(Xi):y.viewportBounds.ca(x.documentPoint)||(b=y.viewportBounds,b=new dt(b.x+b.width/2,b.y+b.height/2)),b!==null&&(x.viewPoint=y.op(b),x.documentPoint=b,x.left=!1,x.right=!0,x.up=!0),y.currentTool=E,aa(E,!1,a)}},ft.prototype.canShowContextMenu=function(a){var y=this.diagram,E=y.toolManager.findTool("ContextMenu");return E===null?!1:(a===void 0&&(a=0<y.selection.count?y.selection.first():y),E.findObjectWithContextMenu(a)!==null)},ft.prototype.computeEffectiveCollection=function(a,y){var E=this.diagram,x=E.toolManager.findTool("Dragging"),b=E.currentTool===x;if(y===void 0&&(y=b?x.dragOptions:E.Wm),x=new vi,a===null)return x;for(var z=a.iterator;z.next();)Pc(E,x,z.value,b,y);if(E.draggedLink!==null&&y.dragsLink)return x;for(z=a.iterator;z.next();)a=z.value,a instanceof Jn&&(y=a.fromNode,y===null||x.contains(y)?(y=a.toNode,y===null||x.contains(y)||x.remove(a)):x.remove(a));return x},zt.Object.defineProperties(ft.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}}}),ft.className="CommandHandler",$p=function(){return new ft};function Rt(){Lr(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new dt(NaN,NaN).freeze(),this.jd=Go,this.Ab=new ir,this.wh=new ir,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=ds,this.uc=new pn(NaN,NaN,NaN,NaN).freeze(),this.Ib=new pn(NaN,NaN,NaN,NaN).freeze(),this.dc=new pn(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Aa,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 Gn,Rn,Mi,Oi,Vi,fr,Pr,br,_r,io;Rt.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=ni(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},Rt.prototype.Vw=function(a){var y=this.Dh;if(Vn(y)){for(var E=0;E<y.length;E++)if(y[E]===a)return}else this.Dh=y=[];y.push(a)},Rt.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},Rt.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 E=this.Dh[y];a[E]=this[E]}return a},Rt.prototype.copy=function(){return this.clone()},ke=Rt.prototype,ke.qb=function(a){a.classType===Jn?a.name.indexOf("Orient")===0?this.segmentOrientation=a:lt("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===Rt&&(this.stretch=a)},ke.toString=function(){return bn(this.constructor)+"#"+Ir(this)},ke.th=function(){this.A!==null&&(this.A.nc=!0)};function xr(a){a.A===null?a.A=new of:a.A.nc&&(a.A=a.A.copy())}ke.Xc=function(){if(this.ba===null){var a=new $g;a.Xi=Ti,a.yj=Ti,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},ke.cb=function(a,y,E,x,b,z,ee){var re=this.part;if(re!==null&&(re.gk(a,y,E,x,b,z,ee),E===this&&a===wo&&is(this)&&No(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 vi),ee=z.undoManager.transactionLevel===0,a.startCondition===Cl?ee=!0:a.startCondition===Sh&&(ee=!1),ee?(z=new Si,jl(a,z),ee=this.jo.get(a),ee!==null&&ee.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,x,b),z.start()):(Ia(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,x,b)))),this instanceof Wn&&E===re&&(re.l&16777216)!==0&&re.data!==null))for(E=this.O.s,x=E.length,b=0;b<x;b++)re=E[b],re instanceof Wn&&Dh(re,function(oe){oe.data!==null&&oe.l&16777216&&oe.La(y)})};function No(a,y,E){var x=a.ih();if(x!==null)for(var b=a.localBindings.iterator;b.next();){var z=b.value,ee=null;if(z.sourceName!==null){if(ee=kS(z,x,a),ee===null)continue;z.sp(a,ee,E,null)}else if(z.isToModel){var re=y.diagram;re===null||re.skipsModelSourceBindings||z.sp(a,re.model.modelData,E,x)}else{if(re=x.data,re===null)continue;var oe=y.diagram;oe===null||oe.skipsModelSourceBindings||z.sp(a,re,E,x)}ee===a&&(re=x.ks(z.Ai),re!==null&&z.Mv(re,ee,E))}}ke.ks=function(a){return this.bindingId===a?this:null},ke.g=function(a,y,E){this.cb(wo,a,this,y,E)},ke.Ge=function(a,y,E,x){var b=this.uc;if(b.h(a,y,E,x),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new ir);var z=this.Lb;z.reset(),this.no(z,a,y,E,x),z.pp(b)}};function Da(a,y,E,x){return a.pickable===!1?!1:(x.multiply(a.transform),E?a.Yc(y,x):a.fh(y,x))}ke.tx=function(a,y,E){if(this.pickable===!1)return!1;var x=this.naturalBounds;return y=a.Bf(y),E?Cr(a.x,a.y,0,0,0,x.height)<=y||Cr(a.x,a.y,0,x.height,x.width,x.height)<=y||Cr(a.x,a.y,x.width,x.height,x.width,0)<=y||Cr(a.x,a.y,x.width,0,0,0)<=y:a.zd(0,0)<=y&&a.zd(0,x.height)<=y&&a.zd(x.width,0)<=y&&a.zd(x.width,x.height)<=y},ke.se=function(){return!0},ke.ca=function(a){var y=dt.alloc();y.assign(a),this.transform.Ga(y);var E=this.actualBounds;if(!E.w())return dt.free(y),!1;var x=this.diagram;if(x!==null&&x.wq){var b=x.Ql("extraTouchThreshold"),z=x.Ql("extraTouchArea"),ee=z/2,re=this.naturalBounds;x=this.Df()*x.scale;var oe=1/x;if(re.width*x<b&&re.height*x<b)return a=ca(E.x-ee*oe,E.y-ee*oe,E.width+z*oe,E.height+z*oe,y.x,y.y),dt.free(y),a}return b=!1,(this instanceof Hr||this instanceof yr?ca(E.x-5,E.y-5,E.width+10,E.height+10,y.x,y.y):E.ca(y))&&(this.tb&&!this.tb.ca(y)?b=!1:this.areaBackground!==null&&E.ca(y)||this.Ma!==null&&this.dc.ca(a)?b=!0:b=this.gh(a)),dt.free(y),b},ke.gh=function(a){var y=this.naturalBounds;return ca(0,0,y.width,y.height,a.x,a.y)},ke.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=pn.allocAt(0,0,y.width,y.height);var E=this.transform,x=!1,b=dt.allocAt(a.x,a.y);return y.ca(E.Cd(b))&&(b.h(a.x,a.bottom),y.ca(E.Cd(b))&&(b.h(a.right,a.bottom),y.ca(E.Cd(b))&&(b.h(a.right,a.y),y.ca(E.Cd(b))&&(x=!0)))),dt.free(b),pn.free(y),x},ke.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var E=this.naturalBounds,x=!1,b=dt.allocAt(0,0);return a.ca(y.Ga(b))&&(b.h(0,E.height),a.ca(y.Ga(b))&&(b.h(E.width,E.height),a.ca(y.Ga(b))&&(b.h(E.width,0),a.ca(y.Ga(b))&&(x=!0)))),dt.free(b),x},ke.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var E=this.naturalBounds,x=dt.allocAt(0,0),b=dt.allocAt(0,E.height),z=dt.allocAt(E.width,E.height),ee=dt.allocAt(E.width,0),re=!1;if(a.ca(y.Ga(x))||a.ca(y.Ga(b))||a.ca(y.Ga(z))||a.ca(y.Ga(ee)))re=!0;else{E=pn.allocAt(0,0,E.width,E.height);var oe=dt.allocAt(a.x,a.y);E.ca(y.Cd(oe))?re=!0:(oe.h(a.x,a.bottom),E.ca(y.Cd(oe))?re=!0:(oe.h(a.right,a.bottom),E.ca(y.Cd(oe))?re=!0:(oe.h(a.right,a.y),E.ca(y.Cd(oe))&&(re=!0)))),dt.free(oe),pn.free(E),!re&&(Ft.us(a,x,b)||Ft.us(a,b,z)||Ft.us(a,z,ee)||Ft.us(a,ee,x))&&(re=!0)}return dt.free(x),dt.free(b),dt.free(z),dt.free(ee),re},ke.ga=function(a,y){if(y===void 0&&(y=new dt),a instanceof tn){var E=this.naturalBounds;y.h(a.x*E.width+a.offsetX,a.y*E.height+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},ke.mi=function(a){a===void 0&&(a=new pn);var y=this.naturalBounds,E=this.oe,x=dt.allocAt(0,0).transform(E);return a.h(x.x,x.y,0,0),x.h(y.width,0).transform(E),po(a,x.x,x.y,0,0),x.h(y.width,y.height).transform(E),po(a,x.x,x.y,0,0),x.h(0,y.height).transform(E),po(a,x.x,x.y,0,0),dt.free(x),a},ke.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},ke.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},ke.qs=function(a,y){return y===void 0&&(y=new dt),y.assign(a),this.oe.Cd(y),y},ke.rs=function(a,y,E){return this.Sj(a.x,a.y,y.x,y.y,E)},ke.Sj=function(a,y,E,x,b){var z=this.transform,ee=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*ee,oe=-z.m12*ee,ce=-z.m21*ee,fe=z.m11*ee,ye=ee*(z.m21*z.dy-z.m22*z.dx),Ne=ee*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,Ft.Ff(z.left,z.top,z.right,z.bottom,a,y,E,x,b)):(ee=a*re+y*ce+ye,a=a*oe+y*fe+Ne,y=E*re+x*ce+ye,E=E*oe+x*fe+Ne,b.h(0,0),x=this.naturalBounds,E=Ft.Ff(0,0,x.width,x.height,ee,a,y,E,b),b.transform(z),E)},Rt.prototype.measure=function(a,y,E,x){if(Hl(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),E=Math.max((E||0)-z,0),x=Math.max((x||0)-b,0),z=this.angle,b=this.desiredSize;var ee=this.kq();z===90||z===270?(a=isFinite(b.height)?b.height+ee:a,y=isFinite(b.width)?b.width+ee:y):(a=isFinite(b.width)?b.width+ee:a,y=isFinite(b.height)?b.height+ee:y),b=E||0,ee=x||0;var re=this instanceof Wn;switch(rl(this,!0)){case Rn:ee=b=0,re&&(y=a=1/0);break;case Gn:isFinite(a)&&a>E&&(b=a),isFinite(y)&&y>x&&(ee=y);break;case Oi:isFinite(a)&&a>E&&(b=a),ee=0,re&&(y=1/0);break;case Vi:isFinite(y)&&y>x&&(ee=y),b=0,re&&(a=1/0)}re=this.maxSize;var oe=this.minSize;b>re.width&&oe.width<re.width&&(b=re.width),ee>re.height&&oe.height<re.height&&(ee=re.height),E=Math.max(b,oe.width),x=Math.max(ee,oe.height),re.width<E&&(E=Math.min(oe.width,E)),re.height<x&&(x=Math.min(oe.height,x)),a=Math.min(re.width,a),y=Math.min(re.height,y),a=Math.max(E,a),y=Math.max(x,y),(z===90||z===270)&&(z=a,a=y,y=z,z=E,E=x,x=z),this.uc.ka(),this.Wl(a,y,E,x),this.uc.freeze(),this.uc.w()||lt("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Ea(this,!1)}},Rt.prototype.Wl=function(){},Rt.prototype.Dd=function(){return!1},Rt.prototype.arrange=function(a,y,E,x,b){this.Uk();var z=pn.alloc();z.assign(this.Ib),this.Ib.ka(),Hs(this)===!1?this.Ib.h(a,y,E,x):this.eh(a,y,E,x),this.Ib.freeze(),b===void 0?this.tb=null:this.tb=b,E=!1,b!==void 0?E=!0:(b=this.panel,b!==null&&yd(b)&&(b=b.panel),b!==null&&(b=b.dc,x=this.measuredBounds,this.areaBackground!==null&&(x=this.Ib),E=y+x.height,x=a+x.width,E=!(0<=a+.05&&x<=b.width+.05&&0<=y+.05&&E<=b.height+.05),this instanceof Eo&&(a=this.naturalBounds,this.Lq>a.height||this.Cb>a.width))&&(E=!0)),this.l=E?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),Lc(this,!1),pn.free(z)},ke=Rt.prototype,ke.eh=function(){};function Is(a,y,E,x,b){if(a.Ib.h(y,E,x,b),!a.desiredSize.w()){var z=a.uc;E=a.Kg,y=E.right+E.left;var ee=E.top+E.bottom;switch(E=z.width+y,z=z.height+ee,x+=y,b+=ee,y=rl(a,!0),E===x&&z===b&&(y=Rn),y){case Rn:(E>x||z>b)&&(Ea(a,!0),a.measure(E>x?x:E,z>b?b:z,0,0));break;case Gn:Ea(a,!0),a.measure(x,b,0,0);break;case Oi:Ea(a,!0),a.measure(x,z,0,0);break;case Vi:Ea(a,!0),a.measure(E,b,0,0)}}}ke.Xl=function(a,y){var E=this.part;E!==null&&E.diagram!==null&&(E.selectionObject!==this&&E.resizeObject!==this&&E.rotateObject!==this||Uv(E,!0),this.N(),$a(a,y)||(E.oh(),this.Pn(E)))},ke.Pn=function(a){this.portId!==null&&(Uv(a,!0),a instanceof li&&Q1(a,this))},ke.gc=function(a,y){if(!eu(this,a,y)&&this.visible){var E=this.opacity;if(E!==0){var x=1;E!==1&&(x=a.globalAlpha,a.globalAlpha=x*E);var b="";this.filter!==""&&(b=a.filter,a.filter=this.filter);var z=this instanceof Wn&&yd(this),ee=this.Ib;if(z){var re=this.Ib,oe=this.dc,ce=this.areaBackground,fe=this.Ma;ce===null&&fe===null||a.yc(),ce!==null&&($o(this,a,ce,!0,!0,oe,re),ce instanceof Jr&&ce.type===iu?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(ce)):a.fillRect(re.x,re.y,re.width,re.height)),fe!==null&&($o(this,a,fe,!0,!1,oe,re),fe instanceof Jr&&fe.type===iu?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(fe)):a.fillRect(re.x,re.y,re.width,re.height)),this.hh(a,y)}if(!z&&(z||ee.width!==0&&ee.height!==0&&!isNaN(ee.x)&&!isNaN(ee.y))){z=this.transform,re=this.panel,this.l&4096&&Xa(this),ce=this.part,oe=!1;var ye=0;ce&&y.Gf("drawShadows")&&(oe=ce.isShadowed)&&(fe=ce.shadowOffset,ye=Math.max(fe.y,fe.x)*y.scale*y.Mb),fe=this.Dd();var Ne;if(!(Ne=y.$i||!fe)){var Pe=this.naturalBounds;Ne=this.wh;var Fe=Ne.m11,We=Ne.m21,gt=Ne.dx,nt=Ne.m12,vt=Ne.m22,St=Ne.dy,Tt,Dt=Tt=0;Ne=Tt*Fe+Dt*We+gt;var Xt=Tt*nt+Dt*vt+St;Tt=Pe.width+ye,Dt=0;var ai=Tt*Fe+Dt*We+gt;Tt=Tt*nt+Dt*vt+St,Dt=Math.min(Ne,ai);var Ci=Math.min(Xt,Tt),Ei=Math.max(Ne+0,ai)-Dt,Xn=Math.max(Xt+0,Tt)-Ci;Ne=Dt,Xt=Ci,Tt=Pe.width+ye,Dt=Pe.height+ye,ai=Tt*Fe+Dt*We+gt,Tt=Tt*nt+Dt*vt+St,Dt=Math.min(Ne,ai),Ci=Math.min(Xt,Tt),Ei=Math.max(Ne+Ei,ai)-Dt,Xn=Math.max(Xt+Xn,Tt)-Ci,Ne=Dt,Xt=Ci,Tt=0,Dt=Pe.height+ye,ai=Tt*Fe+Dt*We+gt,Tt=Tt*nt+Dt*vt+St,Dt=Math.min(Ne,ai),Ci=Math.min(Xt,Tt),Ei=Math.max(Ne+Ei,ai)-Dt,Xn=Math.max(Xt+Xn,Tt)-Ci,Ne=Dt,Xt=Ci,ye=y.viewportBounds,Pe=ye.x,Fe=ye.y,Ne=!(Ne>ye.width+Pe||Pe>Ei+Ne||Xt>ye.height+Fe||Fe>Xn+Xt)}if(Ne){if(Ne=(this.l&256)!==0,a.clipInsteadOfFill&&(Ne=!1),this instanceof Eo&&(a.font=this.font),Ne){if(Xt=re.se()?re.naturalBounds:re.actualBounds,Ei=Math.max(ee.x,Xt.x),Xn=Math.max(ee.y,Xt.y),ye=Math.min(ee.right,Xt.right)-Ei,Pe=Math.min(ee.bottom,Xt.bottom)-Xn,Fe=this.tb,Fe!==null&&(Ei=Fe.x,Xn=Fe.y,ye=Fe.width,Pe=Fe.height),Ei>ee.width+ee.x||ee.x>Xt.width+Xt.x){E!==1&&(a.globalAlpha=x),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(Ei,Xn,ye,Pe),a.clip()}if(fe){if(!ce.isVisible()){E!==1&&(a.globalAlpha=x),this.filter!==""&&(a.filter=b);return}oe&&(Xt=ce.shadowOffset,a.Ev(Xt.x*y.scale*this.scale*y.Mb,Xt.y*y.scale*this.scale*y.Mb,ce.shadowBlur),Qc(a),a.shadowColor=ce.shadowColor)}oe&&this.shadowVisible===!0?Qc(a):oe&&this.shadowVisible===!1&&Ic(a),ce=this.naturalBounds,this.areaBackground!==null&&(a.yc(),Ul(this,a,ce,ee)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),oe&&Wa(this,re)&&this.shadowVisible===null&&Ic(a),this.Ma!==null&&(a.yc(),gl(this,a,ce,ee)),oe&&(this.Ma!==null||this.areaBackground!==null||Wa(this,re))?(Ou(this,!0),this.shadowVisible===null&&Ic(a)):Ou(this,!1),this.hh(a,y),oe&&this.l&512&&Qc(a),fe&&oe&&Ic(a),Ne&&(a.restore(),a.Vc(this instanceof Wn)),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)))}}E!==1&&(a.globalAlpha=x),this.filter!==""&&(a.filter=b)}}};function Wa(a,y){return y===null?!1:(yd(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Wn.Auto||y.type===Wn.Spot)&&y.Pb()!==a)}ke.Dv=function(){};function Ul(a,y,E,x){$o(a,y,a.areaBackground,!0,!0,E,x),a.areaBackground instanceof Jr&&a.areaBackground.type===iu?(y.beginPath(),y.rect(x.x,x.y,x.width,x.height),y.ng(a.areaBackground)):y.fillRect(x.x,x.y,x.width,x.height)}function gl(a,y,E,x){var b=a.kq(),z=E.x,ee=E.y,re=E.width+b,oe=E.height+b;$o(a,y,a.Ma,!0,!1,E,x),a.Ma instanceof Jr&&a.Ma.type===iu?(y.beginPath(),y.rect(z-b/2,ee-b/2,re,oe),y.ng(a.Ma)):y.fillRect(z-b/2,ee-b/2,re,oe)}function Es(a,y,E){for(var x=y.O.s,b=x.length,z=-1,ee=0;ee<b;ee++)if(x[ee]===a){z=ee;break}if(a=z,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(E):y.svg.Ma?y.svg.Ma.after(E):y.type===Wn.Table?(y=y.svg.getElementsByClassName("gojs-ts"),y=y.length!==0?y[0]:null,y!==null&&y.after(E)):y.svg.prepend(E);else{for(;a!==0&&!y.M(a-1).Ed();)a--;a===0?y.svg.prepend(E):(a=y.M(a-1).svg,a!==null?a.after(E):y.svg.appendChild(E))}}function eu(a,y,E){if(!(y instanceof Nl))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 x=a.panel,b=a.nk(y);if(a.kk(y,E,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):x&&Es(a,x,a.svg),!0);if(a.Dd()&&a.isShadowed){var z=a.shadowOffset;y.Ev(z.x*E.scale*a.scale*E.Mb,z.y*E.scale*a.scale*E.Mb,a.shadowBlur),Qc(y),y.shadowColor=a.shadowColor}a instanceof Eo&&(y.font=a.font),y.yd=null;var ee=a.transform;z=a instanceof Wn;var re=a instanceof Wn?yd(a):!1;a.l&4096&&Xa(a);var oe=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,b&&(y.o=!0,z&&re?(ep(y,1,0,0,1,0,0),a.svg=y.ad):z?(ep(y,ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy),a.svg=y.ad):ep(y,1,0,0,1,0,0)),b=a.naturalBounds,a.areaBackground!==null){var ce=ee.copy().Vj();y.rb.ha=[ce.m11,ce.m12,ce.m21,ce.m22,ce.dx,ce.dy],Ul(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=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy]),a.background!==null&&(z?(re&&(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy]),gl(a,y,b,oe),re&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy],gl(a,y,b,oe)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),ee=y.yd,b=a.part,re=!1,b&&E.Gf("drawShadows")&&(re=b.isShadowed),y.clipInsteadOfFill&&(re=!1),a.Dd()&&re&&Qc(y),re&&a.shadowVisible===!0?Qc(y):re&&a.shadowVisible===!1&&Ic(y),b=a.panel,re&&Wa(a,b)&&a.shadowVisible===null&&Ic(y),y.Il&&(ce=E.computePixelRatio(),ce="drop-shadow("+y.shadowOffsetX/ce+"px "+y.shadowOffsetY/ce+"px "+y.shadowBlur/ce/2+"px "+y.shadowColor+")",a.background!==null&&ee.Ma.setAttributeNS(null,"filter",ce),a.areaBackground!==null&&ee.gd.setAttributeNS(null,"filter",ce)),re&&(a.Ma!==null||a.areaBackground!==null||Wa(a,b))?(Ou(a,!0),a.shadowVisible===null&&Ic(y)):Ou(a,!1),b=re,a.hh(y,E),z&&y.nh.pop(),y.o&&y.nh.pop(),ee=y.Gv.hs,re=z?a.svg:y.yd,ce=a.svg,!z&&ce!==null&&re!==ce&&ce.parentNode===a.panel.svg?(a.svg.replaceWith(re),a.svg=re,re!==null&&a.$o(y,x,oe,re),il(y,ce),!0):(a.svg=re,ee!==null&&re===null&&(gm(y),y.nh.pop()),re===null||(a.$o(y,x,oe,re),y.Il&&(E=E.computePixelRatio(),a.Dv(re,"drop-shadow("+y.shadowOffsetX/E+"px "+y.shadowOffsetY/E+"px "+y.shadowBlur/E/2+"px "+y.shadowColor+")")),b&&a.l&512&&Qc(y),a.Dd()&&Ic(y),E=a.Dd()?a.opacity*y.globalAlpha:a.opacity,E!==1&&re.setAttributeNS(null,"opacity",E.toString()),a.filter!==""&&re.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(re):y.Nj.prepend(re),y.ti=re):x!==null&&Es(a,x,re),ee!==null&&ee(a,re)),!0)}ke.$o=function(a,y,E,x){var b=(this.l&256)!==0;if(a.clipInsteadOfFill&&(b=!1),b){var z=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(E.x,z.x),b=Math.max(E.y,z.y);var ee=Math.min(E.right,z.right)-y;E=Math.min(E.bottom,z.bottom)-b,z=this.tb,z!==null&&(y=z.x,b=z.y,ee=z.width,E=z.height),z=x.getAttribute("clip-path");var re=null;z!==null&&(re=a.svg.getElementById(z.split("#")[1].slice(0,-1))),re===null?(z="CLIP"+Vr++,re=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:b,width:ee,height:E}),this instanceof Wn&&(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),x.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=re.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",b.toString()),a.setAttribute("width",ee.toString()),a.setAttribute("height",E.toString()))}else x.removeAttributeNS(null,"clip-path"),il(a,x)};function il(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function xs(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),E=a.svg.ownerDocument;if(y!==null){y=ki(y);for(var x=y.next();!x.done;x=y.next())x=E.getElementById(x.value.split("#")[1].slice(0,-1)),x!==null&&x.remove()}a.svg.remove()}}ke.hh=function(){},ke.lv=function(){this.Uc=!0},ke.kk=function(a,y,E){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"&&E||y.nodeName==="g"&&!E)return!1;var x=this.transform,b=this instanceof Wn?yd(this):!1;if(!(this instanceof Wn&&b))if(this instanceof al){var z=this.bt;a.rb.ha=[x.m11,x.m12,x.m21,x.m22,x.dx,x.dy],z!==null&&e1(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),E?y.lastElementChild.setAttributeNS(null,"transform",t1(a)):y.setAttributeNS(null,"transform",t1(a))}else if(!E||this instanceof Wn)y.setAttributeNS(null,"transform","matrix("+x.m11+", "+x.m12+", "+x.m21+", "+x.m22+", "+x.dx+", "+x.dy+")");else if(this instanceof yr){z=y.getElementsByTagName("path");for(var ee=0;ee<z.length;ee++)z[ee].setAttributeNS(null,"transform","matrix("+x.m11+", "+x.m12+", "+x.m21+", "+x.m22+", "+x.dx+", "+x.dy+")")}else y.lastElementChild.setAttributeNS(null,"transform","matrix("+x.m11+", "+x.m12+", "+x.m21+", "+x.m22+", "+x.dx+", "+x.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):(ee=x.copy().Vj(),a.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy],Ul(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(ee=y.gd.getAttribute("filter"),ee!==null&&a.ad.setAttribute("filter",ee),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&pm(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(pm(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((b||E&&!(this instanceof Wn))&&(a.rb.ha=[x.m11,x.m12,x.m21,x.m22,x.dx,x.dy]),gl(this,a,this.naturalBounds,this.actualBounds),y.Ma?(pm(a,y.Ma),E=y.Ma.getAttribute("filter"),E!==null&&a.ad.setAttribute("filter",E),y.Ma.replaceWith(a.ad)):y.prepend(a.ad),y.Ma=a.ad),z&&pm(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},ke.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 $o(a,y,E,x,b,z,ee){if(E!==null){var re=1,oe=1;if(typeof E=="string")x?y.fillStyle=E:y.strokeStyle=E;else if(E.type===vd)x?y.fillStyle=E.color:y.strokeStyle=E.color;else{var ce=a.kq();if(re=z.width,oe=z.height,b?(re=ee.width,oe=ee.height):x||(re+=ce,oe+=ce),(z=y instanceof kh)&&E.xe&&(E.type===Zf||E.yk===re&&E.ft===oe))var fe=E.xe;else{var ye=0,Ne=0,Pe=0,Fe=0,We=0,gt=0;if(gt=We=0,b?(We=ee.x,gt=ee.y):x||(We-=ce/2,gt-=ce/2),ye=E.start.x*re+E.start.offsetX,Ne=E.start.y*oe+E.start.offsetY,Pe=E.end.x*re+E.end.offsetX,Fe=E.end.y*oe+E.end.offsetY,ye+=We,Pe+=We,Ne+=gt,Fe+=gt,E.type===Xc)fe=y.createLinearGradient(ye,Ne,Pe,Fe);else if(E.type===iu)gt=isNaN(E.endRadius)?Math.max(re,oe)/2:E.endRadius,isNaN(E.startRadius)?(We=0,gt=Math.max(re,oe)/2):We=E.startRadius,fe=y.createRadialGradient(ye,Ne,We,Pe,Fe,gt);else if(E.type===Zf)try{fe=y.createPattern(E.pattern,"repeat")}catch(vt){fe=null}if(E.type!==Zf&&(b=E.colorStops,b!==null))for(b=b.iterator;b.next();)fe.addColorStop(b.key,b.value);if(z&&(E.xe=fe,fe!==null&&(E.yk=re,E.ft=oe),fe===null&&E.type===Zf&&E.yk!==-1)){E.yk=-1;var nt=a.diagram;nt!==null&&E.yk===-1&&Fi(function(){nt.redraw()},600)}}x?y.fillStyle=fe:y.strokeStyle=fe}}}ke.rg=function(a){if(a instanceof Wn)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},ke.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},ke.If=function(){for(var a=this instanceof Wn?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function Xa(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){vu(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 E=a.naturalBounds;a.no(y,E.x,E.y,E.width,E.height)}vu(a,!1),tu(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,tu(a,!1)):y.oe!==null&&(E=a.wh,E.reset(),y.se()?E.multiply(y.wh):y.panel!==null&&E.multiply(y.panel.wh),E.multiply(a.Ab),a.Kk=a.scale*y.Kk,tu(a,!1)))}ke.no=function(a,y,E,x,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=dt.alloc();z.yi(y,E,x,b,Xi),a.rotate(this.Kb,z.x,z.y),dt.free(z)}},ke.v=function(a){if(!Hl(this)){a===void 0&&(a=!1),Ea(this,!0),Lc(this,!0);var y=this.panel;y===null||a||y.v()}},ke.Uj=function(){Hl(this)||(Ea(this,!0),Lc(this,!0))};function Us(a){if(!Hs(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())),Lc(a,!0)}}ke.Uk=function(){!(this.l&2048)&&(vu(this,!0),tu(this,!0))},ke.Wu=function(){tu(this,!0)},ke.N=function(){var a=this.part;a!==null&&a.N()};function rl(a,y){var E=a.stretch,x=a.panel;return x!==null&&x.type===Wn.Table?Ju(a,x.Fb(a.row),x.Eb(a.column),y):x!==null&&x.type===Wn.Auto&&x.Pb()===a?Va(a,Gn,y):E===fr?x!==null?x.type===Wn.Spot&&x.Pb()===a?Va(a,Gn,y):(E=x.defaultStretch,E===fr?Va(a,Rn,y):Va(a,E,y)):Va(a,Rn,y):Va(a,E,y)}function Ju(a,y,E,x){var b=a.stretch;if(b!==fr)return Va(a,b,x);var z=b=null;switch(y.stretch){case Vi:z=!0;break;case Gn:z=!0}switch(E.stretch){case Oi:b=!0;break;case Gn:b=!0}return y=a.panel.defaultStretch,b===null&&(b=y===Oi||y===Gn),z===null&&(z=y===Vi||y===Gn),b===!0&&z===!0?Va(a,Gn,x):b===!0?Va(a,Oi,x):z===!0?Va(a,Vi,x):Va(a,Rn,x)}function Va(a,y,E){if(E)return y;if(y===Rn||(E=a.desiredSize,E.w()))return Rn;if(a=a.angle,!isNaN(E.width))if(a!==90&&a!==270){if(y===Oi)return Rn;if(y===Gn)return Vi}else{if(y===Vi)return Rn;if(y===Gn)return Oi}if(!isNaN(E.height))if(a!==90&&a!==270){if(y===Vi)return Rn;if(y===Gn)return Oi}else{if(y===Oi)return Rn;if(y===Gn)return Vi}return y}function Ou(a,y){a.l=y?a.l|512:a.l&-513}function is(a){return(a.l&1024)!==0}function rf(a,y){a.l=y?a.l|1024:a.l&-1025}function vu(a,y){a.l=y?a.l|2048:a.l&-2049}function tu(a,y){a.l=y?a.l|4096:a.l&-4097}function Hl(a){return(a.l&8192)!==0}function Ea(a,y){a.l=y?a.l|8192:a.l&-8193}function Hs(a){return(a.l&16384)!==0}function Lc(a,y){a.l=y?a.l|16384:a.l&-16385}ke.Gj=function(){this.svg=null},ke.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},ke.Av=function(){},ke.zv=function(a){return this.pa=a,Us(this),!0},ke.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},ke.kq=function(){return 0};function Lh(a){var y=a.part;if(y instanceof li&&(a.portId!==null||a===y.port)){var E=y.diagram;E===null||E.undoManager.isUndoingRedoing||Q1(y,a)}}function qy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof Wn?a instanceof li?a.Bd():a.qm(a,function(E){Lh(E)}):Lh(a))}ke.bind=function(a,y,E,x){var b=null;return typeof a=="string"?b=new ha(a,y,E,x):b=a,b.xd=this,a=this.ih(),a!==null&&v1(a)&<("Cannot add a Binding to a template that has already been copied: "+b),this.localBindings===null&&(this.localBindings=new Un),this.localBindings.add(b),this},ke.set=function(a){return Object.assign(this,a),this},ke.Du=function(a){return ov(this,a),this},ke.apply=function(a){return a(this),this},ke.nm=function(a){return bh(this,a),this},ke.pz=function(){return this.ih()},ke.ih=function(){for(var a=this instanceof Wn?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},ke.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new vi),this.animationTriggers.add(a.propertyName,a),this};function nu(a,y){for(var E=1;E<arguments.length;++E);E=arguments;var x=null,b=null;if(typeof a=="function")b=a;else if(typeof a=="string"){var z=Uf.I(a);typeof z=="function"?(E=ni(arguments),x=z(E),jt(x)||lt('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):b=Bn.go[a]}if(x===null&&(b!=null&&b.constructor||lt("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),x=new b),b=1,x instanceof Jt&&1<E.length){z=x;var ee=E[1];(typeof ee=="string"||ee instanceof HTMLDivElement)&&(Mg(z,ee),b++)}for(;b<E.length;b++)z=E[b],z===void 0?lt("Undefined value at argument "+b+" for object being constructed by GraphObject.make: "+x):ov(x,z);return x}function ov(a,y){if(typeof y=="string")if(a instanceof Eo)a.text=y;else if(a instanceof yr)a.figure=y;else if(a instanceof al)a.source=y;else if(a instanceof Wn)y=Ru.I(y),y!==null&&(a.type=y);else if(a instanceof Jr){var E=hi(Jr,y);E!==null?a.type=E:lt("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Qn?(y=hi(Qn,y),y!==null&&(a.type=y)):a instanceof jr&&(y=hi(jr,y),y!==null&&(a.type=y));else if(y instanceof Rt)a instanceof Wn||lt("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof xa){var x;y.isRow&&typeof a.getRowDefinition=="function"?x=a.getRowDefinition(y.index):y.isRow||typeof a.getColumnDefinition!="function"||(x=a.getColumnDefinition(y.index)),x instanceof xa?Im(x,y):lt("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof Mn)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Ca)a.type=y;else if(y instanceof ha)a instanceof Rt||a instanceof xa?a.bind(y):lt("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof tl)a instanceof Rt?a.Jv(y):lt("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof pa)a instanceof Qn&&a.type===Qn.o?a.figures.add(y):lt("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof jr)a instanceof pa?a.segments.add(y):lt("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Oo)a instanceof Jt||a instanceof dr?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(E=0;E<y.length;E++)ov(a,y[E]);else if(typeof y=="object"&&y!==null)if(a instanceof Jr){E=new Li;for(var b in y)x=parseFloat(b),isNaN(x)?E[b]=y[b]:a.addColorStop(x,y[b]);bh(a,E)}else if(a instanceof xa){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 Li;for(E in y)E!=="row"&&E!=="column"&&(b[E]=y[E]);bh(a,b)}else bh(a,y);else lt('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function md(a,y){Uf.add(a,y)}function fm(a,y,E){E===void 0&&(E=null);var x=a[1];if(typeof E=="function"?E(x):typeof x=="string")return a.splice(1,1),x;if(y===void 0)throw Error("no "+(typeof E=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}zt.Object.defineProperties(Rt.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new of),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 of),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 of),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(xr(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&&(xr(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Ws},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new Vd),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Ws&&(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 Vd),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 Vd),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:ho},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new Vd),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:fr},set:function(a){var y=this.stretch;y!==a&&(xr(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&&(xr(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)&&oi(a,"0 <= value <= 1",Rt,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Fh(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(Fh(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&&sf(a,"GraphObject.areaBackground"),a instanceof Jr&&a.freeze(),xr(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&&sf(a,"GraphObject.background"),a instanceof Jr&&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 Bi)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,E=a.y,x=this.pa,b=x.x;x=x.y,(b===y||isNaN(b)&&isNaN(y))&&(x===E||isNaN(x)&&isNaN(E))?this.Av():(a=a.copy(),this.zv(a,b,x)&&this.g("position",new dt(b,x),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,E=a.height,x=this.jd,b=x.width,z=x.height;(b===y||isNaN(b)&&isNaN(y))&&(z===E||isNaN(z)&&isNaN(E))||(this.jd=a=a.J(),this.v(),this instanceof yr&&this.qc(),this.g("desiredSize",x,a),is(this)&&(a=this.part,a!==null&&(No(this,a,"width"),No(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 ti(a,this.jd.height).freeze(),this.v(),this instanceof yr&&this.qc(),this.g("desiredSize",y,a),is(this)&&(a=this.part,a!==null&&No(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 ti(this.jd.width,a).freeze(),this.v(),this instanceof yr&&this.qc(),this.g("desiredSize",y,a),is(this)&&(a=this.part,a!==null&&No(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:lr},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(),xr(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Xo},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(),xr(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 mr(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&&Xa(this),this.Ab}},oe:{get:function(){return this.l&4096&&Xa(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(xr(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Rn},set:function(a){this.reshapingBehavior!==a&&(xr(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(),Us(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&&oi(a,">= 0",Rt,"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&&oi(a,">= 1",Rt,"columnSpan"),xr(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&&oi(a,">= 0",Rt,"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&&oi(a,">= 1",Rt,"rowSpan"),xr(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&&(xr(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 E=this.part;E===null||E instanceof li||lt("Cannot set portID on a Link: "+a),y!==null&&E!==null&&Wv(E,this),this.Yn=a,a!==null&&E!==null&&(E.Te=!0,J1(E,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Ti},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Lh(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&oi(a,">= 0",Rt,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Lh(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),Lh(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&&oi(a,">= 0",Rt,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Ti},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Lh(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&oi(a,">= 0",Rt,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Lh(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),Lh(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&&oi(a,">= 0",Rt,"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&&(xr(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&&(xr(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&&(xr(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&&(xr(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&&(xr(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&&(xr(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&&(xr(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&&(xr(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&&(xr(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&&(xr(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&&(xr(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&&(xr(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&&(xr(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&&(xr(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&&(xr(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&&(xr(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&&(xr(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&&(xr(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Rt.prototype.trigger=Rt.prototype.Jv,Rt.prototype.findBindingPanel=Rt.prototype.ih,Rt.prototype.findTemplateBinder=Rt.prototype.pz,Rt.prototype.setProperties=Rt.prototype.nm,Rt.prototype.apply=Rt.prototype.apply,Rt.prototype.attach=Rt.prototype.Du,Rt.prototype.set=Rt.prototype.set,Rt.prototype.isEnabledObject=Rt.prototype.If,Rt.prototype.isVisibleObject=Rt.prototype.Ed,Rt.prototype.isContainedBy=Rt.prototype.rg,Rt.prototype.getNearestIntersectionPoint=Rt.prototype.rs,Rt.prototype.getLocalPoint=Rt.prototype.qs,Rt.prototype.getDocumentScale=Rt.prototype.Df,Rt.prototype.getDocumentAngle=Rt.prototype.li,Rt.prototype.getDocumentBounds=Rt.prototype.mi,Rt.prototype.getDocumentPoint=Rt.prototype.ga,Rt.prototype.intersectsRect=Rt.prototype.Yc,Rt.prototype.containedInRect=Rt.prototype.fh,Rt.prototype.containsRect=Rt.prototype.Re,Rt.prototype.containsPoint=Rt.prototype.ca,Rt.prototype.raiseChanged=Rt.prototype.g,Rt.prototype.raiseChangedEvent=Rt.prototype.cb,Rt.prototype.addCopyProperty=Rt.prototype.Vw;var Uf=null;Rt.className="GraphObject",Uf=new vi,md("Button",function(){function a(E,x){return E.diagram.ic(E.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b},function(b){return b===x})!==null}var y=nu(Wn,Wn.Auto,{isActionable:!0,enabledChanged:function(E,x){if(E instanceof Wn){var b=E.fb("ButtonBorder");b!==null&&(b.fill=x?E._buttonFillNormal:E._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},nu(yr,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new tn(0,0,2.76142374915397,2.761423749153969),spot2:new tn(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(E,x){if(x.If()&&x instanceof Wn&&(E=x.fb("ButtonBorder"),E instanceof yr)){var b=x._buttonFillOver;x._buttonFillNormal=E.fill,E.fill=b,b=x._buttonStrokeOver,x._buttonStrokeNormal=E.stroke,E.stroke=b}},y.mouseLeave=function(E,x){x.If()&&x instanceof Wn&&(E=x.fb("ButtonBorder"),E instanceof yr&&(E.fill=x._buttonFillNormal,E.stroke=x._buttonStrokeNormal))},y.actionDown=function(E,x){if(x.If()&&x instanceof Wn&&x._buttonFillPressed!==null&&E.button===0){var b=x.fb("ButtonBorder");if(b instanceof yr){E=E.diagram;var z=E.skipsUndoManager;E.skipsUndoManager=!0;var ee=x._buttonFillPressed;x._buttonFillOver=b.fill,b.fill=ee,ee=x._buttonStrokePressed,x._buttonStrokeOver=b.stroke,b.stroke=ee,E.skipsUndoManager=z}}},y.actionUp=function(E,x){if(x.If()&&x instanceof Wn&&x._buttonFillPressed!==null&&E.button===0){var b=x.fb("ButtonBorder");if(b instanceof yr){var z=E.diagram,ee=z.skipsUndoManager;z.skipsUndoManager=!0,a(E,x)?(b.fill=x._buttonFillOver,b.stroke=x._buttonStrokeOver):(b.fill=x._buttonFillNormal,b.stroke=x._buttonStrokeNormal),z.skipsUndoManager=ee}}},y.actionCancel=function(E,x){if(x.If()&&x instanceof Wn&&x._buttonFillPressed!==null){var b=x.fb("ButtonBorder");if(b instanceof yr){var z=E.diagram,ee=z.skipsUndoManager;z.skipsUndoManager=!0,a(E,x)?(b.fill=x._buttonFillOver,b.stroke=x._buttonStrokeOver):(b.fill=x._buttonFillNormal,b.stroke=x._buttonStrokeNormal),z.skipsUndoManager=ee}}},y.actionMove=function(E,x){if(x.If()&&x instanceof Wn&&x._buttonFillPressed!==null){var b=E.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(E,x)&&(E=x.fb("ButtonBorder"),E instanceof yr))){var z=b.skipsUndoManager;b.skipsUndoManager=!0;var ee=x._buttonFillPressed;E.fill!==ee&&(E.fill=ee),ee=x._buttonStrokePressed,E.stroke!==ee&&(E.stroke=ee),b.skipsUndoManager=z}}},y}),md("TreeExpanderButton",function(){var a=nu("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},nu(yr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:ao},new ha("figure","isTreeExpanded",function(y,E){return E=E.panel,y?E._treeExpandedFigure:E._treeCollapsedFigure}).cp()),{visible:!1},new ha("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,E){if(E=E.part,E instanceof Hr&&(E=E.adornedPart),E instanceof li){var x=E.diagram;if(x!==null){if(x=x.commandHandler,E.isTreeExpanded){if(!x.canCollapseTree(E))return}else if(!x.canExpandTree(E))return;y.handled=!0,E.isTreeExpanded?x.collapseTree(E):x.expandTree(E)}}},a}),md("SubGraphExpanderButton",function(){var a=nu("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},nu(yr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:ao},new ha("figure","isSubGraphExpanded",function(y,E){return E=E.panel,y?E._subGraphExpandedFigure:E._subGraphCollapsedFigure}).cp()));return a.click=function(y,E){if(E=E.part,E instanceof Hr&&(E=E.adornedPart),E instanceof dr){var x=E.diagram;if(x!==null){if(x=x.commandHandler,E.isSubGraphExpanded){if(!x.canCollapseSubGraph(E))return}else if(!x.canExpandSubGraph(E))return;y.handled=!0,E.isSubGraphExpanded?x.collapseSubGraph(E):x.expandSubGraph(E)}}},a}),md("ToolTip",function(){return nu(Hr,Wn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new dt(0,3),shadowBlur:5},nu(yr,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new tn(0,0,4,6),spot2:new tn(1,1,-4,-4)}))}),md("ContextMenu",function(){return nu(Hr,Wn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new dt(0,3),shadowBlur:5},new ha("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),md("ContextMenuButton",function(){var a=nu("Button");a.stretch=Oi;var y=a.fb("ButtonBorder");return y instanceof yr&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new tn(0,0,2,3),y.spot2=new tn(1,1,-2,-2)),a}),md("PanelExpanderButton",function(a){var y=fm(a,"COLLAPSIBLE"),E=nu("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},nu(yr,{name:"ButtonIcon",strokeWidth:2},new ha("geometryString","visible",function(x){return x?E._buttonExpandedFigure:E._buttonCollapsedFigure}).cp(y)));return a=E.fb("ButtonBorder"),a instanceof yr&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),E.click=function(x,b){var z=b.diagram;if(z!==null&&!z.isReadOnly){var ee=b.ih();ee===null&&(ee=b.part),ee!==null&&(b=ee.fb(y),b!==null&&(x.handled=!0,z.Ea("Collapse/Expand Panel"),b.visible=!b.visible,z.eb("Collapse/Expand Panel")))}},E}),md("CheckBoxButton",function(a){var y=fm(a);return a=nu("Button",{desiredSize:new ti(14,14)},nu(yr,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Gn,geometryStretch:Mi,visible:!1},y!==""?new ha("visible",y).Kx():[])),a.click=function(E,x){if(x instanceof Wn){var b=E.diagram;if(!(b===null||b.isReadOnly||y!==""&&b.model.isReadOnly)){E.handled=!0;var z=x.fb("ButtonIcon");b.Ea("checkbox"),z.visible=!z.visible,typeof x._doClick=="function"&&x._doClick(E,x),b.eb("checkbox")}}},a}),md("CheckBox",function(a){a=fm(a),a=nu("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new mr(0,1,0,0)});var y=nu(Wn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new mr(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}),Rt.None=Rn=new Mn(Rt,"None",0),Rt.Default=fr=new Mn(Rt,"Default",0),Rt.Vertical=Vi=new Mn(Rt,"Vertical",4),Rt.Horizontal=Oi=new Mn(Rt,"Horizontal",5),Rt.Fill=Gn=new Mn(Rt,"Fill",3),Rt.Uniform=Mi=new Mn(Rt,"Uniform",1),Rt.UniformToFill=Pr=new Mn(Rt,"UniformToFill",2),Rt.FlipVertical=br=new Mn(Rt,"FlipVertical",1),Rt.FlipHorizontal=_r=new Mn(Rt,"FlipHorizontal",2),Rt.FlipBoth=io=new Mn(Rt,"FlipBoth",3),Rt.make=nu,Rt.getBuilders=function(){var a=new vi,y;for(y in Uf)if(y!==y.toLowerCase()){var E=Uf.I(y);typeof E=="function"&&a.add(y,E)}return a.freeze(),a},Rt.defineBuilder=md,Rt.build=function(a,y,E){for(var x=[],b=2;b<arguments.length;++b)x[b-2]=arguments[b];if(b=Uf.I(a),typeof b=="function"&&(x=b([a].concat(x)),x instanceof Rt))return y&&x.set(y),x;lt('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},Rt.takeBuilderArgument=fm;function of(){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=lr,this.o=Xo,this.hg=fr,this.ob=this.Bi=1,this.Pf=Rn,this.Pc=this.Ci=this.gd=null,this.Oc="category"}of.prototype.copy=function(){var a=new of;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 Vd(){this.u=-1/0,this.o=0,this.F=ho,this.rr=Ws,this.j=this.V="None"}Vd.prototype.copy=function(){var a=new Vd;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},Vd.className="LinkElementSettings";function $g(){this.yj=this.Xi=Aa,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 Ih(){this.ha=[1,0,0,1,0,0]}Ih.prototype.copy=function(){var a=new Ih;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},Ih.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},Ih.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},Ih.prototype.rotate=function(a,y,E){if(360<=a?a-=360:0>a&&(a+=360),a!==0){if(this.translate(y,E),a===90){a=0;var x=1}else a===180?(a=-1,x=0):a===270?(a=0,x=-1):(x=a*Math.PI/180,a=Math.cos(x),x=Math.sin(x));var b=this.ha[1]*a+this.ha[3]*x,z=this.ha[0]*-x+this.ha[2]*a,ee=this.ha[1]*-x+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*x,this.ha[1]=b,this.ha[2]=z,this.ha[3]=ee,this.translate(-y,-E)}},Ih.className="STransform";function af(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}af.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},af.className="SGradient";function gc(a,y,E){this.ownerDocument=a=y===void 0?Bn.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 Nl(this,E)}gc.prototype.resize=function(a,y,E,x){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=E+"px",this.style.height=x+"px",this.Oa.setAttributeNS(null,"width",E+"px"),this.Oa.setAttributeNS(null,"height",x+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+E+" "+x),this.context.ww.firstElementChild.setAttributeNS(null,"width",E+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",x+"px"),!0):!1},gc.prototype.Ud=function(a,y,E){if(a=this.ownerDocument.createElementNS(this.cA,a),jt(y))for(var x in y)a.setAttributeNS(x==="href"?"http://www.w3.org/1999/xlink":"",x,y[x]);return E!==void 0&&(a.textContent=E),a},gc.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},gc.prototype.focus=function(){this.Oa.focus()},gc.prototype.mx=function(){this.ownerDocument=null},zt.Object.defineProperties(gc.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}}}),gc.className="SVGSurface";function Nl(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 Ih,this.j=gm(this),this.Nj=gm(this,"gojs-diagram"),this.Hl=this.ti=null;var E=Vr++,x=this.Ud("clipPath",{id:"mainClip"+E});x.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=x,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(x),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+E+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function $y(a,y,E,x,b,z,ee){a.Nj===void 0?ep(a,y,E,x,b,z,ee):a.Nj.setAttribute("transform","matrix("+y+", "+E+", "+x+", "+b+", "+z+", "+ee+")")}ke=Nl.prototype,ke.arc=function(a,y,E,x,b,z,ee,re){var oe=2*Math.PI,ce=oe-1e-6,fe=E*Math.cos(x),ye=E*Math.sin(x),Ne=a+fe,Pe=y+ye,Fe=z?0:1;x=z?x-b:b-x,(1e-6<Math.abs(ee-Ne)||1e-6<Math.abs(re-Pe))&&this.path.push(["L",Ne,+Pe]),0>x&&(x=x%oe+oe),x>ce?(this.path.push(["A",E,E,0,1,Fe,a-fe,y-ye]),this.path.push(["A",E,E,0,1,Fe,Ne,Pe])):1e-6<x&&this.path.push(["A",E,E,0,+(x>=Math.PI),Fe,a+E*Math.cos(b),y+E*Math.sin(b)])},ke.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},ke.Se=function(a){this.addPath(this.path,this.rb,a||0)},ke.bezierCurveTo=function(a,y,E,x,b,z){this.path.push(["C",a,y,E,x,b,z])},ke.clearRect=function(){},ke.clip=function(){this.Yl.clipPath=!0},ke.closePath=function(){this.path.push(["z"])},ke.createLinearGradient=function(a,y,E,x){var b=new af("linear");return b.x1=a,b.y1=y,b.x2=E,b.y2=x,b},ke.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var E=this.eA;if(E[y])return"url(#"+E[y]+")";var x="PATTERN"+Vr++,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:x,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(Mh,b)),this.svg.appendChild(a),E[y]=x,"url(#"+x+")"},ke.createRadialGradient=function(a,y,E,x,b,z){var ee=new af("radial");return ee.x1=a,ee.y1=y,ee.r1=E,ee.x2=x,ee.y2=b,ee.r2=z,ee};function e1(a,y,E,x,b,z,ee,re,oe){x=re/x,b=oe/b,z===0&&ee===0||a.rb.translate(z,ee),x===1&&b===1||a.rb.scale(x,b),y===0&&E===0||a.rb.translate(-y,-E)}ke.drawImage=function(a,y,E,x,b,z,ee,re,oe){var ce="";a instanceof HTMLCanvasElement&&(ce=a.toDataURL()),a instanceof HTMLImageElement&&(ce=a.getAttribute("src"));var fe=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,x===void 0&&(z=y,ee=E,re=x=fe,oe=b=a),x=x||0,b=b||0,re=re||0,oe=oe||0,e1(this,y,E,x,b,z||0,ee||0,re,oe),z={x:0,y:0,width:fe||x,height:a||b,href:ce},Ft.$(x,re)&&Ft.$(b,oe)?ce.toLowerCase().indexOf(".svg")===-1&&ce.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||E!==0||x!==fe||b!==a)&&(x+=y,b+=E,z["clip-path"]="path('M "+y+","+E+" L "+x+" "+E+" L "+x+" "+b+" L "+y+" "+b+" z')"),Hf(this,Mh,z,this.rb),this.addElement(Mh,z)},ke.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),av(this,this.Yl)},ke.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},ke.fillRect=function(a,y,E,x){a=[a,y,E,x],a={x:a[0],y:a[1],width:a[2],height:a[3]},Hf(this,"fill",a,this.rb),this.addElement("rect",a)},ke.ox=function(a,y,E,x){a={x:a,y,width:E,height:x},Hf(this,"fill",a,this.rb),av(this,a),this.svg.prepend(this.Ud("rect",a))},ke.fillText=function(a,y,E){a=[a,y,E],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},Hf(this,"fill",y,this.rb),this.addElement("text",y,a[0])},ke.lineTo=function(a,y){this.path.push(["L",a,y])},ke.moveTo=function(a,y){this.path.push(["M",a,y])},ke.quadraticCurveTo=function(a,y,E,x){this.path.push(["Q",a,y,E,x])},ke.rect=function(a,y,E,x){this.path.push(["M",a,y],["L",a+E,y],["L",a+E,y+x],["L",a,y+x],["z"])},ke.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},ke.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())},ke.setTransform=function(a,y,E,x,b,z){a===1&&y===0&&E===0&&x===1&&b===0&&z===0||ep(this,a,y,E,x,b,z)};function t1(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}ke.scale=function(a,y){this.rb.scale(a,y)},ke.translate=function(a,y){this.rb.translate(a,y)},ke.transform=function(){},ke.yc=function(){},ke.stroke=function(){i1(this,this.Yl)},ke.jk=function(){this.clipInsteadOfFill||this.stroke()},ke.Ud=function(a,y,E){return this.Gv.Ud(a,y,E)},ke.addElement=function(a,y,E){return a=this.Ud(a,y,E),this.yd!==null?this.yd.appendChild(a):this.yd=a,this.ad=a};function Hf(a,y,E,x){y==="fill"?av(a,E):y==="stroke"&&i1(a,E),x!==null&&(a=x.ha,E.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function av(a,y){a.fillStyle instanceof af?y.fill=sv(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 n1(a,y,E){E=E?"fill":"stroke",a.fillStyle instanceof af?y.setAttributeNS(null,"fill",sv(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,E,"rgb("+a[1]+","+a[2]+","+a[3]+")"),y.setAttributeNS(null,E+"-opacity",a[4])):y.setAttributeNS(null,E,a.fillStyle)}function i1(a,y){if(a.strokeStyle instanceof af)y.stroke=sv(a,a.strokeStyle,!1);else if(/^rgba\(/.test(a.strokeStyle)){var E=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.strokeStyle);y.stroke="rgb("+E[1]+","+E[2]+","+E[3]+")",y["stroke-opacity"]=E[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 sv(a,y,E){var x="";if(x=a.Hl!==null?a.Hl.getAttribute(E?"fill":"stroke"):null,x!==null&&x.indexOf("GRAD")!==-1?(x=x.split("#")[1].slice(0,-1),E=a.svg.getElementById(x),E!==null&&E.remove()):x="GRAD"+Vr++,y.type==="linear")E=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:x,gradientUnits:"userSpaceOnUse"});else if(y.type==="radial")E=a.Ud("radialGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,r1:y.r1,r2:y.r2,id:x});else throw Error("invalid gradient");var b=y.gx;y=b.length;for(var z=[],ee=0;ee<y;ee++){var re=b[ee],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(ce,fe){return ce.offset>fe.offset?1:-1}),b=0;b<y;b++)E.appendChild(a.Ud("stop",z[b]));return a.svg.appendChild(E),"url(#"+x+")"}ke.addPath=function(a,y,E){for(var x=[],b=0;b<a.length;b++){var z=ni(a[b]),ee=[z.shift()];if(ee[0]==="A")ee.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)ee.push(z.shift()+","+z.shift());x.push(ee.join(" "))}if(x=x.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+x+'")');else if(a.d=x,Hf(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[E].setAttributeNS(null,oe,a[oe])}else this.addElement("path",a)};function ep(a,y,E,x,b,z,ee){var re=new Ih;re.ha=[y,E,x,b,z,ee],y={},Hf(a,"g",y,re),re=a.addElement("g",y),a.nh.push(re)}function gm(a,y){var E={};return y&&(E.class=y),y=a.addElement("g",E),a.nh.push(y),y}ke.Ev=function(a,y,E){this.Ar=a,this.Br=y,this.Vg=E};function Ic(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function Qc(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}ke.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},ke.fs=function(){this.Ct=!1},ke.Vc=function(){},ke.Wx=function(){},Nl.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},Nl.prototype.getImageData=function(){return null},Nl.prototype.measureText=function(){return null};function pm(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()))}Nl.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},Nl.className="SVGContext",Jt.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new gc(this,Bn.document));var y=new gc(this,Bn.document,!0);a===void 0&&(a=new Li);var E=this;return qh(this,function(x,b){return x=um(E,x,"SVG",y),x=x!==null?x.svg:null,typeof b=="function"?(b(x),null):x},a)},Jt.prototype.makeSvg=Jt.prototype.Cs,Jt.prototype.av=function(a){return this.Cs(a)},Jt.prototype.makeSVG=Jt.prototype.av;function yu(a,y,E,x){this.ownerDocument=y=y===void 0?Bn.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new kh(y,E,x),y.H=a}yu.prototype.resize=function(a,y,E,x){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=E+"px",this.style.height=x+"px",!0):!1},yu.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},yu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},yu.prototype.focus=function(){this.Oa.focus()},yu.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},zt.Object.defineProperties(yu.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}}}),yu.className="CanvasSurface";function kh(a,y,E){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 ir,this.isTemporary=!!E}ke=kh.prototype,ke.Wx=function(a){this.Z.imageSmoothingEnabled=a},ke.arc=function(a,y,E,x,b,z){this.Z.arc(a,y,E,x,b,z)},ke.beginPath=function(){this.Z.beginPath()},ke.Se=function(){},ke.bezierCurveTo=function(a,y,E,x,b,z){this.Z.bezierCurveTo(a,y,E,x,b,z)},ke.clearRect=function(a,y,E,x){this.yc(),this.Z.clearRect(a,y,E,x)},ke.clip=function(){this.Z.clip()},ke.closePath=function(){this.Z.closePath()},ke.createLinearGradient=function(a,y,E,x){return this.Z.createLinearGradient(a,y,E,x)},ke.createPattern=function(a,y){return this.Z.createPattern(a,y)},ke.createRadialGradient=function(a,y,E,x,b,z){return this.Z.createRadialGradient(a,y,E,x,b,z)},ke.drawImage=function(a,y,E,x,b,z,ee,re,oe){x===void 0?this.Z.drawImage(a,y,E):this.Z.drawImage(a,y,E,x,b,z,ee,re,oe)},ke.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},ke.fillRect=function(a,y,E,x){this.Z.fillRect(a,y,E,x)},ke.ox=function(a,y,E,x){this.Z.fillRect(a,y,E,x)},ke.fillText=function(a,y,E){this.Z.fillText(a,y,E)},ke.getImageData=function(a,y,E,x){return this.Z.getImageData(a,y,E,x)},ke.lineTo=function(a,y){this.Z.lineTo(a,y)},ke.measureText=function(a){return this.Z.measureText(a)},ke.moveTo=function(a,y){this.Z.moveTo(a,y)},ke.quadraticCurveTo=function(a,y,E,x){this.Z.quadraticCurveTo(a,y,E,x)},ke.rect=function(a,y,E,x){this.Z.rect(a,y,E,x)},ke.restore=function(){this.Z.restore()},ke.save=function(){this.yc(),this.Z.save()},kh.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},ke=kh.prototype,ke.setTransform=function(a,y,E,x,b,z){this.El.setTransform(a,y,E,x,b,z)},ke.scale=function(a,y){this.El.scale(a,y)},ke.translate=function(a,y){this.El.translate(a,y)},ke.stroke=function(){this.Z.stroke()},ke.transform=function(a,y,E,x,b,z){if(a!==1||y!==0||E!==0||x!==1||b!==0||z!==0){var ee=this.El,re=ee.m11*a+ee.m21*y;a=ee.m12*a+ee.m22*y,y=ee.m11*E+ee.m21*x,E=ee.m12*E+ee.m22*x,ee.dx=ee.m11*b+ee.m21*z+ee.dx,ee.dy=ee.m12*b+ee.m22*z+ee.dy,ee.m11=re,ee.m12=a,ee.m21=y,ee.m22=E}},ke.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},ke.ng=function(a,y){if(a instanceof Jr&&a.type===iu){var E=a.yk;a=a.ft,a>E?(this.scale(E/a,1),this.translate((a-E)/2,0)):E>a&&(this.scale(1,a/E),this.translate(0,(E-a)/2)),this.Hm?this.clip():this.fill(y),a>E?(this.translate(-(a-E)/2,0),this.scale(1/(E/a),1)):E>a&&(this.translate(0,-(E-a)/2),this.scale(1,1/(a/E)))}else this.Hm?this.clip():this.fill(y)},ke.jk=function(){this.Hm||this.stroke()},ke.Ev=function(a,y,E){this.Ar=a,this.Br=y,this.Vg=E},ke.js=function(a,y){var E=this.Z;E.setLineDash!==void 0&&(E.setLineDash(a),E.lineDashOffset=y)},ke.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(CE),a.lineDashOffset=0)},ke.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},ke.Hs=function(){},zt.Object.defineProperties(kh.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 CE=Object.freeze([]);kh.className="CanvasSurfaceContext";function tp(){this.F=this.o=this.u=this.j=0}tp.className="ColorNumbers";function Jr(a,y){Vf||(fv(),Vf=!0),Lr(this),this._isFrozen=!1,a===void 0?(this.na=vd,this.xk="black"):typeof a=="string"?(this.na=vd,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===Xc?(this.Qd=qi,this.Lk=Ao):this.Lk=a===iu?this.Qd=Xi:this.Qd=Ti,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}Jr.prototype.copy=function(){var a=new Jr;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},ke=Jr.prototype,ke.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},ke.ka=function(){return Object.isFrozen(this)&<("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},ke.qb=function(a){a.classType===Jr&&(this.type=a)},ke.toString=function(){var a="Brush(";if(this.type===vd)a+=this.color;else if(a=this.type===Xc?a+"Linear ":this.type===iu?a+"Radial ":this.type===Zf?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+")"},ke.addColorStop=function(a,y){return this._isFrozen&&Ut(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&oi(a,"0 <= loc <= 1",Jr,"addColorStop:loc"),this.we===null&&(this.we=new vi),this.we.add(a,y),this.na===vd&&(this.type=Xc),this.xe=null,this},ke.Vz=function(a,y){if(this._isFrozen&&Ut(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Qf:y,this.type===vd)Kc(this.color),this.color=Yf(a,y);else if((this.type===Xc||this.type===iu)&&this.colorStops!==null)for(var E=this.colorStops.iterator;E.next();)Kc(E.value),this.addColorStop(E.key,Yf(a,y));return this};function r1(a,y,E){return y=y===void 0||typeof y!="number"?.2:y,E=E===void 0?Qf:E,Kc(a),Yf(y,E)}ke.Wy=function(a,y){if(this._isFrozen&&Ut(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Qf:y,this.type===vd)Kc(this.color),this.color=Yf(-a,y);else if((this.type===Xc||this.type===iu)&&this.colorStops!==null)for(var E=this.colorStops.iterator;E.next();)Kc(E.value),this.addColorStop(E.key,Yf(-a,y));return this};function o1(a,y,E){return y=y===void 0||typeof y!="number"?.2:y,E=E===void 0?Qf:E,Kc(a),Yf(-y,E)}function lv(a,y,E){Kc(a),a=bo.j;var x=bo.u,b=bo.o,z=bo.F;return Kc(y),E===void 0&&(E=.5),"rgba("+Math.round((bo.j-a)*E+a)+", "+Math.round((bo.u-x)*E+x)+", "+Math.round((bo.o-b)*E+b)+", "+Math.round((bo.F-z)*E+z)+")"}ke.Gx=function(){if(this.type===vd)return Gf(this.color);if((this.type===Xc||this.type===iu)&&this.colorStops!==null){var a=this.colorStops;if(this.type===iu)return Gf(a.first().value);if(a.get(.5)!==null)return Gf(a.get(.5));if(a.count===2)return a=a.Fa(),Gf(lv(a[0].value,a[1].value));for(var y=a.iterator,E=-1,x=-1,b=1,z=1;y.next();){var ee=y.key,re=Math.abs(.5-y.key);b>z&&re<b?(E=ee,b=re):z>=b&&re<z&&(x=ee,z=re)}return E>x&&(z=E,E=x,x=z,z=b),b=x-E,Gf(lv(a.get(E),a.get(x),1-z/b))}return!1};function Gf(a){return a?a instanceof Jr?a.Gx():(Kc(a),128>(299*bo.j+587*bo.u+114*bo.o)/1e3):!1}function Yf(a,y){switch(y){case Qf:y=100*cv(bo.j);var E=100*cv(bo.u),x=100*cv(bo.o);return Gs.j=.4124564*y+.3575761*E+.1804375*x,Gs.u=.2126729*y+.7151522*E+.072175*x,Gs.o=.0193339*y+.119192*E+.9503041*x,Gs.F=bo.F,y=hv(Gs.j/Wf[0]),E=hv(Gs.u/Wf[1]),x=hv(Gs.o/Wf[2]),kc.j=116*E-16,kc.u=500*(y-E),kc.o=200*(E-x),kc.F=Gs.F,kc.j=Math.min(100,Math.max(0,kc.j+100*a)),a=(kc.j+16)/116,y=a-kc.o/200,Gs.j=Wf[0]*a1(kc.u/500+a),Gs.u=Wf[1]*(kc.j>mm*gv?Math.pow(a,3):kc.j/mm),Gs.o=Wf[2]*a1(y),Gs.F=kc.F,a=-.969266*Gs.j+1.8760108*Gs.u+.041556*Gs.o,y=.0556434*Gs.j+-.2040259*Gs.u+1.0572252*Gs.o,bo.j=255*dv((3.2404542*Gs.j+-1.5371385*Gs.u+-.4985314*Gs.o)/100),bo.u=255*dv(a/100),bo.o=255*dv(y/100),bo.F=Gs.F,bo.j=Math.round(bo.j),255<bo.j?bo.j=255:0>bo.j&&(bo.j=0),bo.u=Math.round(bo.u),255<bo.u?bo.u=255:0>bo.u&&(bo.u=0),bo.o=Math.round(bo.o),255<bo.o?bo.o=255:0>bo.o&&(bo.o=0),"rgba("+bo.j+", "+bo.u+", "+bo.o+", "+bo.F+")";case s1:return uv(),Gl.o=Math.min(100,Math.max(0,Gl.o+100*a)),"hsla("+Gl.j+", "+Gl.u+"%, "+Gl.o+"%, "+Gl.F+")";default:lt("Unknown color space: "+y)}}function Kc(a){Vf||(fv(),Vf=!0);var y=pv;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var E=y.fillStyle;y.fillStyle=a,y.fillStyle!==E?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,bo.j=a[0],bo.u=a[1],bo.o=a[2],bo.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,bo.j=0,bo.u=0,bo.o=0,bo.F=1)}}function uv(){var a=bo.j/255,y=bo.u/255,E=bo.o/255,x=Math.max(a,y,E),b=Math.min(a,y,E),z=x-b;if(b=(x+b)/2,z===0)var ee=a=0;else{switch(x){case a:ee=(y-E)/z%6;break;case y:ee=(E-a)/z+2;break;case E:ee=(a-y)/z+4}ee*=60,0>ee&&(ee+=360),a=z/(1-Math.abs(2*b-1))}Gl.j=Math.round(ee),Gl.u=Math.round(100*a),Gl.o=Math.round(100*b),Gl.F=bo.F}function cv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function dv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function hv(a){return a>gv?Math.pow(a,1/3):(mm*a+16)/116}function a1(a){var y=a*a*a;return y>gv?y:(116*a-16)/mm}function sf(a,y){typeof a!="string"&&(a instanceof Jr||lt("Value for "+y+" must be a color string or a Brush, not "+a))}function fv(){pv=Ko?new yu(null,void 0,{willReadFrequently:!0}).context:null}zt.Object.defineProperties(Jr.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&Ut(this,a),this.na=a,this.start.Mc()&&(a===Xc?this.start=qi:a===iu&&(this.start=Xi)),this.end.Mc()&&(a===Xc?this.end=Ao:a===iu&&(this.end=Xi)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&Ut(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&Ut(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&Ut(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&Ut(this,a),0>a&&oi(a,">= zero",Jr,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&Ut(this,a),0>a&&oi(a,">= zero",Jr,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&Ut(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&Ut(this,a),this.cr=a,this.xe=null}}}),Jr.prototype.isDark=Jr.prototype.Gx,Jr.prototype.darkenBy=Jr.prototype.Wy,Jr.prototype.lightenBy=Jr.prototype.Vz,Jr.prototype.addColorStop=Jr.prototype.addColorStop;var gv=216/24389,mm=24389/27,Wf=[95.047,100,108.883],pv=null,bo=new tp,Gl=new tp,Gs=new tp,kc=new tp,Vf=!1;Jr.className="Brush";var vd;Jr.Solid=vd=new Mn(Jr,"Solid",0);var Xc;Jr.Linear=Xc=new Mn(Jr,"Linear",1);var iu;Jr.Radial=iu=new Mn(Jr,"Radial",2);var Zf;Jr.Pattern=Zf=new Mn(Jr,"Pattern",4);var Qf;Jr.Lab=Qf=new Mn(Jr,"Lab",5);var s1;Jr.HSL=s1=new Mn(Jr,"HSL",6),Jr.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var E=Math.abs(y-a);y=Math.floor(a+Math.random()*E).toString(16);var x=Math.floor(a+Math.random()*E).toString(16);return a=Math.floor(a+Math.random()*E).toString(16),2>y.length&&(y="0"+y),2>x.length&&(x="0"+x),2>a.length&&(a="0"+a),"#"+y+x+a},Jr.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Vf||(fv(),Vf=!0);var y=pv;if(y===null)return!0;y.fillStyle="#000000";var E=y.fillStyle;return y.fillStyle=a,y.fillStyle!==E?!0:(y.fillStyle="#FFFFFF",E=y.fillStyle,y.fillStyle=a,y.fillStyle!==E)},Jr.lighten=function(a){return r1(a)},Jr.lightenBy=r1,Jr.darken=function(a){return o1(a)},Jr.darkenBy=o1,Jr.mix=lv,Jr.isDark=Gf;function Ca(){this.xa="Base"}Ca.prototype.measure=function(){},Ca.prototype.Yz=function(a,y,E,x,b){a.measure(y,E,x,b)},Ca.prototype.arrange=function(){},Ca.prototype.Ly=function(a,y,E,x,b,z){a.arrange(y,E,x,b,z)},Ca.prototype.iA=function(a){a.Uj()},Ca.prototype.gc=function(){},zt.Object.defineProperties(Ca.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Wn}}}),Ca.prototype.remeasureObject=Ca.prototype.iA,Ca.prototype.arrangeElement=Ca.prototype.Ly,Ca.prototype.measureElement=Ca.prototype.Yz,Ca.className="PanelLayout";function vm(){this.xa="Base"}en(vm,Ca),vm.prototype.measure=function(a,y,E,x,b,z,ee){var re=x.length;a=Jc(a);for(var oe=0;oe<re;oe++){var ce=x[oe];if(ce.visible||ce===a){var fe=ce.margin,ye=fe.right+fe.left;fe=fe.top+fe.bottom,ce.measure(y,E,z,ee);var Ne=ce.measuredBounds;ye=Math.max(Ne.width+ye,0),fe=Math.max(Ne.height+fe,0),Ne=ce.position.x;var Pe=ce.position.y;isFinite(Ne)||(Ne=0),isFinite(Pe)||(Pe=0),ce instanceof yr&&ce.isGeometryPositioned&&(ce=ce.strokeWidth/2,Ne-=ce,Pe-=ce),po(b,Ne,Pe,ye,fe)}}},vm.prototype.arrange=function(a,y,E){var x=y.length,b=a.padding;for(a=E.x-b.left,E=E.y-b.top,b=0;b<x;b++){var z=y[b],ee=z.measuredBounds,re=z.margin,oe=z.position.x,ce=z.position.y;if(oe=isNaN(oe)?-a:oe-a,ce=isNaN(ce)?-E:ce-E,z instanceof yr&&z.isGeometryPositioned){var fe=z.strokeWidth/2;oe-=fe,ce-=fe}z.visible&&z.arrange(oe+re.left,ce+re.top,ee.width,ee.height)}};function ym(){this.xa="Base"}en(ym,Ca),ym.prototype.measure=function(a,y,E,x,b,z,ee){var re=x.length;y=ci(),z=Jc(a);for(var oe=0;oe<re;oe++){var ce=x[oe];if(ce.visible||ce===z){var fe=rl(ce,!1);if(fe!==Rn&&fe!==Oi)y.push(ce);else{ce.measure(1/0,E,0,ee),fe=ce.margin,ce=ce.measuredBounds;var ye=Math.max(ce.height+fe.top+fe.bottom,0);b.width+=Math.max(ce.width+fe.right+fe.left,0),b.height=Math.max(b.height,ye)}}}for(x=y.length,a.desiredSize.height?E=Math.min(a.desiredSize.height,a.maxSize.height):b.height!==0&&(E=Math.min(b.height,a.maxSize.height)),a=0;a<x;a++)oe=y[a],(oe.visible||oe===z)&&(fe=oe.margin,re=fe.right+fe.left,fe=fe.top+fe.bottom,oe.measure(1/0,E,0,ee),oe=oe.measuredBounds,fe=Math.max(oe.height+fe,0),b.width+=Math.max(oe.width+re,0),b.height=Math.max(b.height,fe));pi(y)},ym.prototype.arrange=function(a,y,E){for(var x=y.length,b=a.padding,z=b.top,ee=a.isOpposite,re=ee?E.width:b.left,oe=0;oe<x;oe++){var ce=z,fe=y[oe];if(fe.visible){var ye=fe.measuredBounds,Ne=fe.margin,Pe=Ne.top+Ne.bottom,Fe=z+b.bottom,We=ye.height,gt=rl(fe,!1);(isNaN(fe.desiredSize.height)&>===Gn||gt===Vi)&&(We=Math.max(E.height-Pe-Fe,0)),Pe=We+Pe+Fe,Fe=fe.alignment,Fe.Xb()&&(Fe=a.defaultAlignment),Fe.sb()||(Fe=Xi),ee&&(re-=ye.width+Ne.left+Ne.right),fe.arrange(re+Fe.offsetX+Ne.left,ce+Fe.offsetY+Ne.top+(E.height*Fe.y-Pe*Fe.y),ye.width,We),ee||(re+=ye.width+Ne.left+Ne.right)}}};function Sm(){this.xa="Base"}en(Sm,Ca),Sm.prototype.measure=function(a,y,E,x,b,z){var ee=x.length;E=ci();for(var re=Jc(a),oe=0;oe<ee;oe++){var ce=x[oe];if(ce.visible||ce===re){var fe=rl(ce,!1);if(fe!==Rn&&fe!==Vi)E.push(ce);else{var ye=ce.margin;fe=ye.right+ye.left,ye=ye.top+ye.bottom,ce.measure(y,1/0,z,0),ce=ce.measuredBounds,wa(b,Math.max(b.width,Math.max(ce.width+fe,0)),b.height+Math.max(ce.height+ye,0))}}}if(x=E.length,x!==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<x;a++)oe=E[a],(oe.visible||oe===re)&&(ce=oe.margin,ee=ce.right+ce.left,ce=ce.top+ce.bottom,oe.measure(y,1/0,z,0),oe=oe.measuredBounds,ce=Math.max(oe.height+ce,0),b.width=Math.max(b.width,Math.max(oe.width+ee,0)),b.height+=ce);pi(E)}},Sm.prototype.arrange=function(a,y,E){for(var x=y.length,b=a.padding,z=b.left,ee=a.isOpposite,re=ee?E.height:b.top,oe=0;oe<x;oe++){var ce=z,fe=y[oe];if(fe.visible){var ye=fe.measuredBounds,Ne=fe.margin,Pe=Ne.left+Ne.right,Fe=z+b.right,We=ye.width,gt=rl(fe,!1);(isNaN(fe.desiredSize.width)&>===Gn||gt===Oi)&&(We=Math.max(E.width-Pe-Fe,0)),Pe=We+Pe+Fe,Fe=fe.alignment,Fe.Xb()&&(Fe=a.defaultAlignment),Fe.sb()||(Fe=Xi),ee&&(re-=ye.height+Ne.bottom+Ne.top),fe.arrange(ce+Fe.offsetX+Ne.left+(E.width*Fe.x-Pe*Fe.x),re+Fe.offsetY+Ne.top,We,ye.height),ee||(re+=ye.height+Ne.bottom+Ne.top)}}};function Em(){this.xa="Base"}en(Em,Ca),Em.prototype.measure=function(a,y,E,x,b,z,ee){var re=x.length,oe=a.Pb(),ce=oe.margin,fe=ce.right+ce.left,ye=ce.top+ce.bottom;oe.measure(y,E,z,ee);var Ne=oe.measuredBounds;z=Ne.width,ee=Ne.height;var Pe=Math.max(z+fe,0),Fe=Math.max(ee+ye,0),We=a.isClipping,gt=pn.allocAt(-ce.left,-ce.top,Pe,Fe),nt=pn.allocAt(0,0,z,ee);mv(oe,nt,!0),z=nt.width,ee=nt.height;for(var vt=!0,St=Jc(a),Tt=0;Tt<re;Tt++){var Dt=x[Tt];Ne=y;var Xt=E;if(Dt!==oe&&(Dt.visible||Dt===St)){ce=Dt.margin;var ai=ce.left,Ci=ce.top;switch(Pe=ce.right+ce.left,Fe=ce.top+ce.bottom,ce=rl(Dt,!1),ce){case Gn:Ne=z,Xt=ee,Ci=ai=Fe=Pe=0;break;case Oi:Ne=z,ai=Pe=0;break;case Vi:Xt=ee,Ci=Fe=0}Dt.measure(Ne,Xt,0,0),Ne=Dt.measuredBounds,Pe=Math.max(Ne.width+Pe,0),Fe=Math.max(Ne.height+Fe,0),ce=Dt.alignment,ce.Xb()&&(ce=a.defaultAlignment),ce.sb()||(ce=Xi);var Ei=Dt.alignmentFocus;if(Ei.Xb()&&(Ei=Xi),Xt=null,Dt instanceof Wn&&Dt.$e!==""&&(Xt=Dt.fb(Dt.$e),Xt===Dt&&(Xt=null)),ai=nt.x-ai,Ci=nt.y-Ci,Xt!==null){for(Dt.arrange(0,0,Ne.width,Ne.height),Ne=Xt.actualBounds,Ne=dt.allocAt(Ne.x+(Ei.x*Ne.width-Ei.offsetX),Ne.y+(Ei.y*Ne.height-Ei.offsetY)),Xt=Xt.panel;Xt!==Dt;)Xt.transform.Ga(Ne),Xt=Xt.panel;ai+=ce.x*z+ce.offsetX-Ne.x,Ci+=ce.y*ee+ce.offsetY-Ne.y,dt.free(Ne)}else ai+=ce.x*z+ce.offsetX-(Ei.x*Ne.width+Ei.offsetX),Ci+=ce.y*ee+ce.offsetY-(Ei.y*Ne.height+Ei.offsetY);vt?(vt=!1,b.h(ai,Ci,Pe,Fe)):po(b,ai,Ci,Pe,Fe)}}switch(vt?b.assign(gt):We?b.Uu(nt.x,nt.y,nt.width,nt.height):po(b,gt.x,gt.y,gt.width,gt.height),pn.free(gt),pn.free(nt),ce=oe.stretch,ce===fr&&(ce=rl(oe,!1)),ce){case Rn:return;case Gn:if(!isFinite(y)&&!isFinite(E))return;break;case Oi:if(!isFinite(y))return;break;case Vi:if(!isFinite(E))return}for(Ne=oe.measuredBounds,z=Ne.width,ee=Ne.height,Pe=Math.max(z+fe,0),Fe=Math.max(ee+ye,0),ce=oe.margin,nt=pn.allocAt(-ce.left,-ce.top,Pe,Fe),mv(oe,nt,!0),z=nt.width,ee=nt.height,y=0;y<re;y++)E=x[y],E===oe||!E.visible&&E!==St||(ce=E.margin,Pe=ce.right+ce.left,Fe=ce.top+ce.bottom,Ne=E.measuredBounds,Pe=Math.max(Ne.width+Pe,0),Fe=Math.max(Ne.height+Fe,0),fe=E.alignment,fe.Xb()&&(fe=a.defaultAlignment),fe.sb()||(fe=Xi),E=E.alignmentFocus,E.Xb()&&(E=Xi),vt?(vt=!1,b.h(fe.x*z+fe.offsetX-(E.x*Ne.width+E.offsetX)-ce.left,fe.y*ee+fe.offsetY-(E.y*Ne.height+E.offsetY)-ce.top,Pe,Fe)):po(b,fe.x*z+fe.offsetX-(E.x*Ne.width+E.offsetX)-ce.left,fe.y*ee+fe.offsetY-(E.y*Ne.height+E.offsetY)-ce.top,Pe,Fe));vt?b.assign(gt):We?b.Uu(nt.x,nt.y,nt.width,nt.height):po(b,gt.x,gt.y,gt.width,gt.height),pn.free(nt)},Em.prototype.arrange=function(a,y,E){var x=y.length,b=a.Pb(),z=b.measuredBounds,ee=z.width,re=z.height,oe=a.padding;z=oe.left,oe=oe.top;var ce=z-E.x,fe=oe-E.y;for(b.arrange(ce,fe,ee,re),ee=pn.allocAt(0,0,ee,re),mv(b,ee,!1),re=0;re<x;re++){var ye=y[re];if(ye!==b){ce=ye.measuredBounds;var Ne=ce.width,Pe=ce.height;fe=ye.alignment,fe.Xb()&&(fe=a.defaultAlignment),fe.sb()||(fe=Xi);var Fe=ye.alignmentFocus;if(Fe.Xb()&&(Fe=Xi),ce=null,ye instanceof Wn&&ye.$e!==""&&(ce=ye.fb(ye.$e),ce===ye&&(ce=null)),ce!==null){var We=ce.actualBounds;for(Fe=dt.allocAt(We.x+(Fe.x*We.width-Fe.offsetX),We.y+(Fe.y*We.height-Fe.offsetY)),ce=ce.panel;ce!==ye;)ce.transform.Ga(Fe),ce=ce.panel;ce=fe.x*ee.width+fe.offsetX-Fe.x,fe=fe.y*ee.height+fe.offsetY-Fe.y,dt.free(Fe)}else ce=fe.x*ee.width+fe.offsetX-(Fe.x*Ne+Fe.offsetX),fe=fe.y*ee.height+fe.offsetY-(Fe.y*Pe+Fe.offsetY);ce+=ee.x-E.x,fe+=ee.y-E.y,ye.visible&&ye.arrange(z+ce,oe+fe,Ne,Pe)}}pn.free(ee)};function mv(a,y,E){var x=null;if(a instanceof Wn&&a.$e!==""&&(x=a.fb(a.$e),x===a&&(x=null)),x!==null)for(E&&a.arrange(0,0,y.width,y.height),y.assign(x.actualBounds),x=x.panel;x!==a;)x.transform.pp(y),x=x.panel}function xm(){this.xa="Base"}en(xm,Ca),xm.prototype.measure=function(a,y,E,x,b,z,ee){var re=x.length,oe=a.Pb(),ce=oe.margin,fe=y,ye=E,Ne=ce.right+ce.left,Pe=ce.top+ce.bottom;oe.measure(y,E,z,ee),ce=oe.measuredBounds;var Fe=0,We=null;oe instanceof yr&&(We=oe,Fe=We.strokeWidth*We.scale);var gt=Math.max(ce.width+Ne,0);ce=Math.max(ce.height+Pe,0);var nt=Ev(oe),vt=nt.x*gt+nt.offsetX;nt=nt.y*ce+nt.offsetY;var St=xv(oe),Tt=St.x*gt+St.offsetX;for(St=St.y*ce+St.offsetY,isFinite(y)&&(fe=Math.max(Math.abs(vt-Tt)-Fe,0)),isFinite(E)&&(ye=Math.max(Math.abs(nt-St)-Fe,0)),Fe=ti.alloc(),Fe.h(0,0),a=Jc(a),St=0;St<re;St++)nt=x[St],nt===oe||!nt.visible&&nt!==a||(ce=nt.margin,gt=ce.right+ce.left,vt=ce.top+ce.bottom,nt.measure(fe,ye,0,0),ce=nt.measuredBounds,gt=Math.max(ce.width+gt,0),ce=Math.max(ce.height+vt,0),Fe.h(Math.max(gt,Fe.width),Math.max(ce,Fe.height)));if(re===1)b.width=gt,b.height=ce,ti.free(Fe);else{switch(nt=Ev(oe),St=xv(oe),re=x=0,St.x!==nt.x&&St.y!==nt.y&&(x=Fe.width/Math.abs(St.x-nt.x),re=Fe.height/Math.abs(St.y-nt.y)),ti.free(Fe),Fe=0,We!==null&&(Fe=We.strokeWidth*We.scale,Nv(We)===Mi&&(x=re=Math.max(x,re))),x+=Math.abs(nt.offsetX)+Math.abs(St.offsetX)+Fe,re+=Math.abs(nt.offsetY)+Math.abs(St.offsetY)+Fe,We=oe.stretch,We===fr&&(We=rl(oe,!1)),We){case Rn:ee=z=0;break;case Gn:isFinite(y)&&(x=y),isFinite(E)&&(re=E);break;case Oi:isFinite(y)&&(x=y),ee=0;break;case Vi:z=0,isFinite(E)&&(re=E)}oe.Uj(),oe.measure(x,re,z,ee),b.width=oe.measuredBounds.width+Ne,b.height=oe.measuredBounds.height+Pe}},xm.prototype.arrange=function(a,y){var E=y.length,x=a.Pb(),b=x.measuredBounds,z=pn.alloc();z.h(0,0,1,1);var ee=x.margin,re=ee.left;ee=ee.top;var oe=a.padding,ce=oe.left;oe=oe.top,x.arrange(ce+re,oe+ee,b.width,b.height);var fe=Ev(x),ye=xv(x),Ne=fe.y*b.height+fe.offsetY,Pe=ye.x*b.width+ye.offsetX;for(ye=ye.y*b.height+ye.offsetY,z.x=fe.x*b.width+fe.offsetX,z.y=Ne,po(z,Pe,ye,0,0),z.x+=re+ce,z.y+=ee+oe,b=0;b<E;b++)re=y[b],re!==x&&(ce=re.measuredBounds,ee=re.margin,oe=Math.max(ce.width+ee.right+ee.left,0),fe=Math.max(ce.height+ee.top+ee.bottom,0),Ne=re.alignment,Ne.Xb()&&(Ne=a.defaultAlignment),Ne.sb()||(Ne=Xi),oe=z.width*Ne.x+Ne.offsetX-oe*Ne.x+ee.left+z.x,ee=z.height*Ne.y+Ne.offsetY-fe*Ne.y+ee.top+z.y,re.visible&&(ca(z.x,z.y,z.width,z.height,oe,ee,ce.width,ce.height)?re.arrange(oe,ee,ce.width,ce.height):re.arrange(oe,ee,ce.width,ce.height,new pn(z.x,z.y,z.width,z.height))));pn.free(z)};function bm(){this.xa="Base",this.name="Table"}en(bm,Ca),bm.prototype.measure=function(a,y,E,x,b){for(var z=x.length,ee=ci(),re=ci(),oe=0;oe<z;oe++){var ce=x[oe],fe=ce instanceof Wn?ce:null;if(fe!==null&&yd(fe)&&ce.visible){re.push(fe);for(var ye=fe.O.s,Ne=ye.length,Pe=0;Pe<Ne;Pe++){var Fe=ye[Pe];fe.type===Wn.TableRow?Fe.row=ce.row:fe.type===Wn.TableColumn&&(Fe.column=ce.column),ee.push(Fe)}}else ee.push(ce)}z=ee.length,z===0&&(a.Fb(0),a.Eb(0));for(var We=[],gt=0;gt<z;gt++){var nt=ee[gt];nt.visible&&(Ea(nt,!0),Lc(nt,!0),We[nt.row]||(We[nt.row]=[]),We[nt.row][nt.column]||(We[nt.row][nt.column]=[]),We[nt.row][nt.column].push(nt))}pi(ee);var vt=ci(),St=ci(),Tt=ci(),Dt={count:0},Xt={count:0},ai=y,Ci=E,Ei=a.rowDefs,Xn=a.colDefs,In=null;z=Ei.length;for(var cr=0;cr<z;cr++)In=Ei[cr],In!==void 0&&(In.actual=0);z=Xn.length;for(var $i=0;$i<z;$i++)In=Xn[$i],In!==void 0&&(In.actual=0);for(var Wr=We.length,vo=0,Oa=0;Oa<Wr;Oa++)We[Oa]&&(vo=Math.max(vo,We[Oa].length));var ja=Math.min(a.topIndex,Wr-1),ks=Math.min(a.leftIndex,vo-1),Ra=0;Wr=We.length;for(var Md=Jc(a),fa=0;fa<Wr;fa++)if(We[fa]){vo=We[fa].length;var nc=a.Fb(fa);nc.actual=0;for(var Ds=nc.oc=0;Ds<vo;Ds++)if(We[fa][Ds]){var Pd=a.Eb(Ds);vt[Ds]===void 0&&(Pd.actual=0,Pd.oc=0,vt[Ds]=!0);for(var Vl=We[fa][Ds],bu=Vl.length,Ll=0;Ll<bu;Ll++){var ml=Vl[Ll];if(ml.visible||ml===Md){var ah=1<ml.rowSpan||1<ml.columnSpan;ah&&(fa<ja||Ds<ks||St.push(ml));var ic=ml.margin,vg=ic.right+ic.left,Il=ic.top+ic.bottom,Os=Ju(ml,nc,Pd,!1),Hp=ml.desiredSize,Sf=!isNaN(Hp.height),vc=!isNaN(Hp.width)&&Sf;if(ah||Os===Rn||vc||fa<ja||Ds<ks||(Dt[Ds]!==void 0||Os!==Gn&&Os!==Oi||(Dt[Ds]=-1,Dt.count++),Xt[fa]!==void 0||Os!==Gn&&Os!==Vi||(Xt[fa]=-1,Xt.count++),Tt.push(ml)),ml.measure(1/0,1/0,0,0),!(fa<ja||Ds<ks)){var vl=ml.measuredBounds,Uh=Math.max(vl.width+vg,0),kl=Math.max(vl.height+Il,0);if(ml.rowSpan===1&&(Os===Rn||Os===Oi)){In=a.Fb(fa);var sh=In.Wc();Ra=Math.max(kl-In.actual,0),Ra+sh>Ci&&(Ra=Math.max(Ci-sh,0));var W0=In.oa===0;In.oc=In.oc+Ra,In.actual=In.oa+Ra,Ci=Math.max(Ci-(Ra+(W0?sh:0)),0)}if(ml.columnSpan===1&&(Os===Rn||Os===Vi)){In=a.Eb(Ds);var Gp=In.Wc();Ra=Math.max(Uh-In.actual,0),Ra+Gp>ai&&(Ra=Math.max(ai-Gp,0));var Gy=In.oa===0;In.oc=In.oc+Ra,In.actual=In.oa+Ra,ai=Math.max(ai-(Ra+(Gy?Gp:0)),0)}ah&&ml.Uj()}}}}}pi(vt);var Uc=0,ed=0;z=a.columnCount;for(var Ef=0;Ef<z;Ef++){var lh=Xn[Ef];lh!==void 0&&(Uc+=isNaN(lh.Hc)?lh.oc:lh.Hc,lh.oc!==0&&(Uc+=lh.Wc()))}z=a.rowCount;for(var yg=0;yg<z;yg++){var uh=Ei[yg];uh!==void 0&&(ed+=isNaN(uh.Hc)?uh.oc:uh.Hc,uh.oc!==0&&(ed+=uh.Wc()))}ai=Math.max(y-Uc,0);var Hc=Ci=Math.max(E-ed,0),Ld=ai;z=Tt.length;for(var yl=0;yl<z;yl++){var yc=Tt[yl],V0=a.Fb(yc.row),td=a.Eb(yc.column),Sg=yc.measuredBounds,rc=yc.margin,Hh=rc.right+rc.left,Sc=rc.top+rc.bottom;Dt[yc.column]=td.oc===0&&Dt[yc.column]!==void 0?Math.max(Sg.width+Hh,Dt[yc.column]):null,Xt[yc.row]=V0.oc===0&&Xt[yc.row]!==void 0?Math.max(Sg.height+Sc,Xt[yc.row]):null}var xf=0,Eg=0,Uu;for(Uu in Xt)Uu!=="count"&&(xf+=Xt[Uu]);for(Uu in Dt)Uu!=="count"&&(Eg+=Dt[Uu]);for(var qa=ti.alloc(),Yp=0;Yp<z;Yp++){var Xs=Tt[Yp];if(Xs.visible||Xs===Md){var ga=a.Fb(Xs.row),Js=a.Eb(Xs.column),nd=0;isFinite(Js.width)?nd=Js.width:(isFinite(ai)&&Dt[Xs.column]!==null?Eg===0?nd=Js.actual+ai:nd=Dt[Xs.column]/Eg*Ld:Dt[Xs.column]!==null?nd=ai:nd=Js.actual||ai,nd=Math.max(0,nd-Js.Wc()));var Id=0;switch(isFinite(ga.height)?Id=ga.height:(isFinite(Ci)&&Xt[Xs.row]!==null?xf===0?Id=ga.actual+Ci:Id=Xt[Xs.row]/xf*Hc:Xt[Xs.row]!==null?Id=Ci:Id=ga.actual||Ci,Id=Math.max(0,Id-ga.Wc())),qa.h(Math.max(Js.minimum,Math.min(nd,Js.maximum)),Math.max(ga.minimum,Math.min(Id,ga.maximum))),Os=Ju(Xs,ga,Js,!1),Os){case Oi:qa.height=Math.max(qa.height,ga.actual+Ci);break;case Vi:qa.width=Math.max(qa.width,Js.actual+ai)}var Gh=Xs.margin,Yy=Gh.right+Gh.left,Z0=Gh.top+Gh.bottom;Xs.Uj(),Xs.measure(qa.width,qa.height,Js.minimum,ga.minimum);var xg=Xs.measuredBounds,Yh=Math.max(xg.width+Yy,0),bf=Math.max(xg.height+Z0,0);isFinite(ai)&&(Yh=Math.min(Yh,qa.width)),isFinite(Ci)&&(bf=Math.min(bf,qa.height));var Sl=0;Sl=ga.actual,ga.actual=Math.max(ga.actual,bf),ga.oc=Math.max(ga.oc,bf),Ra=ga.actual-Sl,Ci=Math.max(Ci-Ra,0),Xt[Xs.row]===null&&(Hc=Math.max(Hc-Ra,0)),Sl=Js.actual,Js.actual=Math.max(Js.actual,Yh),Js.oc=Math.max(Js.oc,Yh),Ra=Js.actual-Sl,ai=Math.max(ai-Ra,0),Dt[Xs.column]===null&&(Ld=Math.max(Ld-Ra,0))}}pi(Tt);var id=ti.alloc(),oc=ci(),lu=ci();if(z=St.length,z!==0){for(var ch=0;ch<Wr;ch++)if(We[ch]){vo=We[ch].length;var bg=a.Fb(ch);oc[ch]=bg.actual;for(var dh=0;dh<vo;dh++)if(We[ch][dh]){var Q0=a.Eb(dh);lu[dh]=Q0.actual}}}for(var wg=0;wg<z;wg++){var na=St[wg];if(na.visible||na===Md){var Hu=a.Fb(na.row),wu=a.Eb(na.column);switch(qa.h(Math.max(wu.minimum,Math.min(y,wu.maximum)),Math.max(Hu.minimum,Math.min(E,Hu.maximum))),Os=Ju(na,Hu,wu,!1),Os){case Gn:lu[wu.index]!==0&&(qa.width=Math.min(qa.width,lu[wu.index])),oc[Hu.index]!==0&&(qa.height=Math.min(qa.height,oc[Hu.index]));break;case Oi:lu[wu.index]!==0&&(qa.width=Math.min(qa.width,lu[wu.index]));break;case Vi:oc[Hu.index]!==0&&(qa.height=Math.min(qa.height,oc[Hu.index]))}isFinite(wu.width)&&(qa.width=wu.width),isFinite(Hu.height)&&(qa.height=Hu.height),id.h(0,0);for(var K0=wu.minimum,Dl=Hu.minimum,kd=1;kd<na.rowSpan&&!(na.row+kd>=a.rowCount);kd++)In=a.Fb(na.row+kd),Ra=0,Ra=Os===Gn||Os===Vi?Math.max(In.minimum,oc[na.row+kd]===0?In.maximum:Math.min(oc[na.row+kd],In.maximum)):Math.max(In.minimum,isNaN(In.Hc)?In.maximum:Math.min(In.Hc,In.maximum)),id.height+=Ra,Dl+=In.minimum;for(var Tu=1;Tu<na.columnSpan&&!(na.column+Tu>=a.columnCount);Tu++)In=a.Eb(na.column+Tu),Ra=0,Ra=Os===Gn||Os===Oi?Math.max(In.minimum,lu[na.column+Tu]===0?In.maximum:Math.min(lu[na.column+Tu],In.maximum)):Math.max(In.minimum,isNaN(In.Hc)?In.maximum:Math.min(In.Hc,In.maximum)),id.width+=Ra,K0+=In.minimum;qa.width+=id.width,qa.height+=id.height;var Tg=na.margin,hh=Tg.right+Tg.left,Wp=Tg.top+Tg.bottom;na.measure(qa.width,qa.height,K0,Dl);for(var Ag=na.measuredBounds,Ec=Math.max(Ag.width+hh,0),Wh=Math.max(Ag.height+Wp,0),fh=0,Cg=0;Cg<na.rowSpan&&!(na.row+Cg>=a.rowCount);Cg++)In=a.Fb(na.row+Cg),fh+=In.total||0;if(fh<Wh){var Dd=Wh-fh,Gc=Wh-fh;if(na.spanAllocation!==null)for(var Od=na.spanAllocation,rd=0;rd<na.rowSpan&&!(0>=Dd)&&!(na.row+rd>=a.rowCount);rd++){In=a.Fb(na.row+rd);var Rd=In.oa||0,Vh=Od(na,In,Gc);In.actual=Math.min(In.maximum,Rd+Vh),In.oa!==Rd&&(Dd-=In.oa-Rd)}for(;0<Dd;){var ac=In.oa||0;if(isNaN(In.height)&&In.maximum>ac&&(In.actual=Math.min(In.maximum,ac+Dd),In.oa!==ac&&(Dd-=In.oa-ac)),In.index===0)break;In=a.Fb(In.index-1)}}for(var wf=0,Fd=0;Fd<na.columnSpan&&!(na.column+Fd>=a.columnCount);Fd++)In=a.Eb(na.column+Fd),wf+=In.total||0;if(wf<Ec){var Tf=Ec-wf,Wy=Ec-wf;if(na.spanAllocation!==null)for(var od=na.spanAllocation,Zh=0;Zh<na.columnSpan&&!(0>=Tf)&&!(na.column+Zh>=a.columnCount);Zh++){In=a.Eb(na.column+Zh);var Vp=In.oa||0,Vy=od(na,In,Wy);In.actual=Math.min(In.maximum,Vp+Vy),In.oa!==Vp&&(Tf-=In.oa-Vp)}for(;0<Tf;){var X0=In.oa||0;if(isNaN(In.width)&&In.maximum>X0&&(In.actual=Math.min(In.maximum,X0+Tf),In.oa!==X0&&(Tf-=In.oa-X0)),In.index===0)break;In=a.Eb(In.index-1)}}}}pi(St),ti.free(id),ti.free(qa),oc!==void 0&&pi(oc),lu!==void 0&&pi(lu);var Af=0,Cf=0,J0=a.desiredSize,EE=a.maxSize;Os=rl(a,!0);var Zp=ed=Uc=0,Qp=0;z=a.columnCount;for(var q0=0;q0<z;q0++)Xn[q0]!==void 0&&(In=a.Eb(q0),isFinite(In.width)?(Zp+=In.width,Zp+=In.Wc()):km(In)===op?(Zp+=In.oa,Zp+=In.Wc()):In.oa!==0&&(Uc+=In.oa,Uc+=In.Wc()));isFinite(J0.width)?Af=Math.min(J0.width,EE.width):Af=Os!==Rn&&isFinite(y)?y:Uc,Af=Math.max(Af,a.minSize.width),Af=Math.max(Af-Zp,0);for(var sx=Uc===0?1:Math.max(Af/Uc,1),$0=0;$0<z;$0++)Xn[$0]!==void 0&&(In=a.Eb($0),isFinite(In.width)||km(In)===op||(In.actual=In.oa*sx),In.position=b.width,In.oa!==0&&(b.width+=In.oa,b.width+=In.Wc()));z=a.rowCount;for(var ev=0;ev<z;ev++)Ei[ev]!==void 0&&(In=a.Fb(ev),isFinite(In.height)?(Qp+=In.height,Qp+=In.Wc()):km(In)===op?(Qp+=In.oa,Qp+=In.Wc()):In.oa!==0&&(ed+=In.oa,ed+=In.Wc()));isFinite(J0.height)?Cf=Math.min(J0.height,EE.height):Cf=Os!==Rn&&isFinite(E)?E:ed,Cf=Math.max(Cf,a.minSize.height),Cf=Math.max(Cf-Qp,0);for(var lx=ed===0?1:Math.max(Cf/ed,1),tv=0;tv<z;tv++)Ei[tv]!==void 0&&(In=a.Fb(tv),isFinite(In.height)||km(In)===op||(In.actual=In.oa*lx),In.position=b.height,In.oa!==0&&(b.height+=In.oa,b.height+=In.Wc()));z=re.length;for(var Zy=0;Zy<z;Zy++){var Kp=re[Zy],Qy=0,Ky=0;Kp.type===Wn.TableRow?(Qy=b.width,In=a.Fb(Kp.row),Ky=In.actual):(In=a.Eb(Kp.column),Qy=In.actual,Ky=b.height),Kp.measuredBounds.h(0,0,Qy,Ky),Ea(Kp,!1)}pi(re),a.inRowsCols=We},bm.prototype.arrange=function(a,y,E){var x=y.length,b=a.padding,z=b.left;b=b.top;var ee=a.inRowsCols;if(ee!==null){for(var re,oe,ce=ee.length,fe=0,ye=0;ye<ce;ye++)ee[ye]&&(fe=Math.max(fe,ee[ye].length));oe=a.rowDefs,re=a.colDefs;var Ne=ye=0,Pe=Math.min(a.topIndex,ce-1);if(0<oe.length){for(;Pe!==ce&&(oe[Pe]===void 0||oe[Pe].oa===0);)Pe++;Pe=Math.max(Math.min(Pe,ce-1),0),ye=-oe[Pe].position}var Fe=Math.min(a.leftIndex,fe-1);if(0<re.length){for(;Fe!==fe&&(re[Fe]===void 0||re[Fe].oa===0);)Fe++;Fe=Math.max(Math.min(Fe,fe-1),0),Ne=-re[Fe].position}for(var We=0,gt=0;We!==ce&&oe[We]===void 0;)We++;for(;gt!==ce&&re[gt]===void 0;)gt++;fe=a.part,a.Fb(We),a.Eb(gt);for(var nt=0;nt<y.length;nt++){var vt=y[nt];if(vt instanceof Wn&&vt.visible&&yd(vt)){if(vt.type===Wn.TableRow){re=a.Fb(vt.row);var St=a.Eb(gt)}else re=a.Fb(We),St=a.Eb(vt.column);oe=re.position+ye+b,re.oa!==0&&(oe+=re.Io(Math.max(We,Pe))),re=St.position+Ne+z,St.oa!==0&&(re+=St.Io(Math.max(gt,Fe))),St=vt.measuredBounds,vt.Uk(),vt.actualBounds.ka();var Tt=vt.actualBounds,Dt=pn.allocAt(Tt.x,Tt.y,Tt.width,Tt.height);Tt.x=vt.type===Wn.TableRow?z:re,Tt.y=vt.type===Wn.TableColumn?b:oe,Tt.width=St.width,Tt.height=St.height,vt.actualBounds.freeze(),Lc(vt,!1),$a(Dt,Tt)||fe===null||(fe.oh(),vt.Pn(fe)),pn.free(Dt)}}for(nt=ti.alloc(),vt=0;vt<ce;vt++)if(ee[vt]){for(fe=ee[vt].length,St=a.Fb(vt),oe=St.position+ye+b,St.oa!==0&&(oe+=St.Io(Math.max(We,Pe))),Tt=0;Tt<fe;Tt++)if(ee[vt][Tt]){Dt=a.Eb(Tt),re=Dt.position+Ne+z,Dt.oa!==0&&(re+=Dt.Io(Math.max(gt,Fe)));for(var Xt=ee[vt][Tt],ai=Xt.length,Ci=0;Ci<ai;Ci++){var Ei=Xt[Ci],Xn=Ei.measuredBounds;nt.h(0,0);for(var In=1;In<Ei.rowSpan&&!(vt+In>=a.rowCount);In++){var cr=a.Fb(vt+In);cr.oa!==0&&(nt.height+=cr.total)}for(In=1;In<Ei.columnSpan&&!(Tt+In>=a.columnCount);In++)cr=a.Eb(Tt+In),cr.oa!==0&&(nt.width+=cr.total);var $i=Dt.oa+nt.width,Wr=St.oa+nt.height;In=re,cr=oe;var vo=$i,Oa=Wr,ja=re,ks=oe,Ra=$i,Md=Wr;re+$i>E.width&&(Ra=Math.max(E.width-re,0)),oe+Wr>E.height&&(Md=Math.max(E.height-oe,0));var fa=Ei.alignment;if(fa.Xb()){fa=a.defaultAlignment,fa.sb()||(fa=Xi);var nc=fa.x,Ds=fa.y,Pd=fa.offsetX;fa=fa.offsetY;var Vl=Dt.alignment,bu=St.alignment;Vl.sb()&&(nc=Vl.x,Pd=Vl.offsetX),bu.sb()&&(Ds=bu.y,fa=bu.offsetY)}else nc=fa.x,Ds=fa.y,Pd=fa.offsetX,fa=fa.offsetY;(isNaN(nc)||isNaN(Ds))&&(Ds=nc=.5,fa=Pd=0),Vl=Xn.width,bu=Xn.height;var Ll=Ei.margin,ml=Ll.left+Ll.right,ah=Ll.top+Ll.bottom,ic=Ju(Ei,St,Dt,!1);!isNaN(Ei.desiredSize.width)||ic!==Gn&&ic!==Oi||(Vl=Math.max($i-ml,0)),!isNaN(Ei.desiredSize.height)||ic!==Gn&&ic!==Vi||(bu=Math.max(Wr-ah,0)),$i=Ei.maxSize,Wr=Ei.minSize,Vl=Math.min($i.width,Vl),bu=Math.min($i.height,bu),Vl=Math.max(Wr.width,Vl),bu=Math.max(Wr.height,bu),$i=bu+ah,In+=vo*nc-(Vl+ml)*nc+Pd+Ll.left,cr+=Oa*Ds-$i*Ds+fa+Ll.top,Ei.visible&&(ca(ja,ks,Ra,Md,In,cr,Xn.width,Xn.height)?Ei.arrange(In,cr,Vl,bu):Ei.arrange(In,cr,Vl,bu,new pn(ja,ks,Ra,Md)))}}}for(ti.free(nt),a=0;a<x;a++)E=y[a],z=E instanceof Wn?E:null,z!==null&&yd(z)&&(z=E.actualBounds,E.naturalBounds.ka(),E.naturalBounds.h(0,0,z.width,z.height),E.naturalBounds.freeze())}};function wm(){this.xa="Base"}en(wm,Ca),wm.prototype.measure=function(){},wm.prototype.arrange=function(){};function Tm(){this.xa="Base"}en(Tm,Ca),Tm.prototype.measure=function(){},Tm.prototype.arrange=function(){};function Am(){this.xa="Base"}en(Am,Ca),Am.prototype.measure=function(a,y,E,x,b,z,ee){1<x.length&<("Viewbox Panel cannot contain more than one GraphObject."),x=x[0],x.Ca=1,x.Uj(),x.measure(1/0,1/0,z,ee);var re=x.measuredBounds,oe=x.margin,ce=oe.right+oe.left;if(oe=oe.top+oe.bottom,isFinite(y)||isFinite(E)){var fe=x.scale,ye=re.width;re=re.height;var Ne=Math.max(y-ce,0),Pe=Math.max(E-oe,0),Fe=1;a.viewboxStretch===Mi?ye!==0&&re!==0&&(Fe=Math.min(Ne/ye,Pe/re)):ye!==0&&re!==0&&(Fe=Math.max(Ne/ye,Pe/re)),Fe===0&&(Fe=1e-4),x.Ca*=Fe,fe!==x.scale&&(Ea(x,!0),x.measure(1/0,1/0,z,ee))}re=x.measuredBounds,b.width=isFinite(y)?y:Math.max(re.width+ce,0),b.height=isFinite(E)?E:Math.max(re.height+oe,0)},Am.prototype.arrange=function(a,y,E){y=y[0];var x=y.measuredBounds,b=y.margin,z=Math.max(x.width+(b.right+b.left),0);b=Math.max(x.height+(b.top+b.bottom),0);var ee=y.alignment;ee.Xb()&&(ee=a.defaultAlignment),ee.sb()||(ee=Xi),y.arrange(E.width*ee.x-z*ee.x+ee.offsetX,E.height*ee.y-b*ee.y+ee.offsetY,x.width,x.height)};function np(){this.xa="Base"}en(np,Ca),np.prototype.measure=function(){},np.prototype.arrange=function(){},np.prototype.gc=function(a,y,E){E=a.Df()*E.scale,0>=E&&(E=1);var x=a.gridCellSize,b=x.width;x=x.height;var z=a.naturalBounds,ee=a.actualBounds,re=z.width,oe=z.height,ce=Math.ceil(re/b),fe=Math.ceil(oe/x),ye=a.gridOrigin,Ne=ye.x;ye=ye.y,y.save(),y.beginPath(),y.rect(0,0,re,oe),y.clip(),y.Se();for(var Pe=[],Fe=a.O.s,We=Fe.length,gt=0;gt<We;gt++){var nt=Fe[gt],vt=[];if(Pe.push(vt),nt.visible){var St=nt.interval;if(!(0>St)){nt=yv(nt.figure);for(var Tt=0;Tt<We;Tt++)if(Tt!==gt){var Dt=Fe[Tt];Dt.visible&&yv(Dt.figure)===nt&&(Dt=Dt.interval,Dt>St&&vt.push(Dt))}}}}for(Fe=a.O.s,We=Fe.length,gt=0;gt<We;gt++){var Xt=Fe[gt];if(Xt.visible&&(vt=Xt.interval||1,nt=Math.abs(vt),!(2>b*nt*E))){if(St=Xt.segmentIndex,(!isFinite(St)||isNaN(St))&&(St=0),0>St&&(St=nt-Math.min(-St,nt)),St=Math.round(St%nt),nt=Xt.opacity,Tt=1,nt!==1){if(nt===0)continue;Tt=y.globalAlpha,y.globalAlpha=Tt*nt}Dt=Pe[gt];var ai=!1,Ci=Xt.strokeDashArray;if(Ci!==null&&(ai=!0,y.js(Ci,Xt.strokeDashOffset)),Xt.figure==="LineV"&&Xt.stroke!==null&&0<Xt.strokeWidth){for(y.lineWidth=Xt.strokeWidth,$o(a,y,Xt.stroke,!1,!1,z,ee),y.beginPath(),Ci=Xt=Math.floor((Ne-b)/b);Ci<=Xt+ce;Ci++){var Ei=Ci*b+Ne;0<=Ei&&Ei<=re&&Cm(Ci,vt,St,Dt)&&(y.moveTo(Ei,0),y.lineTo(Ei,oe))}y.stroke(),y.Se()}else if(Xt.figure==="LineH"&&Xt.stroke!==null&&0<Xt.strokeWidth){for(y.lineWidth=Xt.strokeWidth,$o(a,y,Xt.stroke,!1,!1,z,ee),y.beginPath(),Ci=Xt=Math.floor((ye-x)/x);Ci<=Xt+fe;Ci++)Ei=Ci*x+ye,0<=Ei&&Ei<=oe&&Cm(Ci,vt,St,Dt)&&(y.moveTo(0,Ei),y.lineTo(re,Ei));y.stroke(),y.Se()}else if(Xt.figure==="BarV"&&Xt.fill!==null)for($o(a,y,Xt.fill,!0,!1,z,ee),Xt=Xt.width,isNaN(Xt)&&(Xt=b),Ei=Ci=Math.floor((Ne-b)/b);Ei<=Ci+ce;Ei++){var Xn=Ei*b+Ne;0<=Xn+Xt&&Xn<=re&&Cm(Ei,vt,St,Dt)&&y.fillRect(Xn,0,Xt,oe)}else if(Xt.figure==="BarH"&&Xt.fill!==null)for($o(a,y,Xt.fill,!0,!1,z,ee),Xt=Xt.height,isNaN(Xt)&&(Xt=x),Ei=Ci=Math.floor((ye-x)/x);Ei<=Ci+fe;Ei++)Xn=Ei*x+ye,0<=Xn+Xt&&Xn<=oe&&Cm(Ei,vt,St,Dt)&&y.fillRect(0,Xn,re,Xt);ai&&y.fs(),nt!==1&&(y.globalAlpha=Tt)}}y.restore(),y.Vc(!1)};function Cm(a,y,E,x){if(0>y)return a%y===E;if(a%y!==E)return!1;y=x.length;for(var b=0;b<y;b++)if(a%x[b]===E)return!1;return!0}function Nm(){this.xa="Base"}en(Nm,Ca),Nm.prototype.measure=function(a,y,E,x,b){var z=x.length;if(a instanceof Hr||a instanceof Jn){var ee=null,re=null;if(a instanceof Jn&&(ee=a),a instanceof Hr&&(re=a,ee=re.adornedPart,a.j===null&&(a.j=[])),ee instanceof Jn){var oe=ee;if(z===0)wa(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var ce=a instanceof Hr?null:ee.path;y=ee.routeBounds,E=a.jg,E.h(0,0,y.width,y.height);var fe=oe.points,ye=ee.pointsCount;re!==null?re.Ul(!1):ee!==null&&ee.Ul(!1),re=y.width;var Ne=y.height,Pe=a.j;if(Pe.length=0,ce!==null){l1(a,re,Ne,ce);var Fe=ce.measuredBounds;E.ed(Fe),Pe.push(Fe)}Fe=ir.alloc();for(var We=dt.alloc(),gt=dt.alloc(),nt=0;nt<z;nt++){var vt=x[nt];if(vt!==ce)if(vt.isPanelMain&&vt instanceof yr){l1(a,re,Ne,vt);var St=vt.measuredBounds;E.ed(St),Pe.push(St)}else if(2>ye)vt.measure(1/0,1/0,0,0),St=vt.measuredBounds,E.ed(St),Pe.push(St);else{var Tt=vt.segmentIndex,Dt=vt.segmentFraction,Xt=vt.alignmentFocus;Xt.Mc()&&(Xt=Xi);var ai=vt.segmentOrientation,Ci=vt.segmentOffset;if(isNaN(Tt)){var Ei=oe.ua;St=ci(),Ei.Qu(Dt,St);var Xn=dt.allocAt(St[0],St[1]);if(Xn.add(oe.i(0)),Ei.type===Qn.j?Xn.offset(-Ei.startX,-Ei.startY):(Ei=Ei.figures.first(),Ei!==null&&Xn.offset(-Ei.startX,-Ei.startY)),Ei=St[2],ai!==Ws){var In=oe.computeAngle(vt,ai,Ei);vt.Kb=In}In=Xn.x-y.x;var cr=Xn.y-y.y;dt.free(Xn),pi(St)}else if(Tt<-ye||Tt>=ye)St=dt.alloc(),oe.vg(),oe.computeMidPoint(St),Ei=oe.midAngle,ai!==Ws&&(In=oe.computeAngle(vt,ai,Ei),vt.Kb=In),In=St.x-y.x,cr=St.y-y.y,dt.free(St);else{if(In=0,0<=Tt?(cr=fe.M(Tt),St=Tt<ye-1?fe.M(Tt+1):cr):(In=ye+Tt,cr=fe.M(In),St=0<In?fe.M(In-1):cr),cr.Xa(St)){0<=Tt?(Ei=0<Tt?fe.M(Tt-1):cr,In=Tt<ye-2?fe.M(Tt+2):St):(Ei=In<ye-1?fe.M(In+1):cr,In=1<In?fe.M(In-2):St),Xn=Ei.Bf(cr);var $i=St.Bf(In);Ei=Xn>$i+10?0<=Tt?Ei.ab(cr):cr.ab(Ei):$i>Xn+10?0<=Tt?St.ab(In):In.ab(St):0<=Tt?Ei.ab(In):In.ab(Ei)}else Ei=0<=Tt?cr.ab(St):St.ab(cr);ai!==Ws&&(In=oe.computeAngle(vt,ai,Ei),vt.Kb=In),In=cr.x+(St.x-cr.x)*Dt-y.x,cr=cr.y+(St.y-cr.y)*Dt-y.y}vt.measure(1/0,1/0,0,0),St=vt.measuredBounds,Xn=vt.naturalBounds;var Wr=0;vt instanceof yr&&(Wr=vt.strokeWidth),$i=Xn.width+Wr;var vo=Xn.height+Wr;Fe.reset(),Fe.translate(-St.x,-St.y),Fe.scale(vt.scale,vt.scale),Fe.rotate(ai===Ws?vt.angle:Ei,$i/2,vo/2),ai!==pp&&ai!==vp||Fe.rotate(90,$i/2,vo/2),ai!==mp&&ai!==yp||Fe.rotate(-90,$i/2,vo/2),ai===i0&&(45<Ei&&135>Ei||225<Ei&&315>Ei)&&Fe.rotate(-Ei,$i/2,vo/2),Xn=new pn(0,0,$i,vo),We.xi(Xn,Xt),Fe.Ga(We),Xt=-We.x+Wr/2*vt.scale,vt=-We.y+Wr/2*vt.scale,gt.assign(Ci),Wr=isNaN(Ci.x);var Oa=isNaN(Ci.y);if(Wr||Oa){$i=$i/2+3,vo=vo/2+3;var ja=45<=Ei&&135>=Ei,ks=225<=Ei&&315>=Ei;ai===Ws&&(ja||ks)?(gt.x=Oa?$i:Ci.y,gt.y=Wr?vo:Ci.x,ja?0<=Tt||isNaN(Tt)&&.5>Dt||!Wr||(gt.y=-vo):ks&&((0<=Tt||isNaN(Tt)&&.5>Dt)&&Wr&&(gt.y=-vo),Oa&&(gt.x=-$i))):(Wr&&(gt.x=0<=Tt||isNaN(Tt)&&.5>Dt?$i:-$i),Oa&&(gt.y=-vo),gt.rotate(Ei))}else gt.rotate(Ei);In+=gt.x,cr+=gt.y,Xn.set(St),Xn.h(In+Xt,cr+vt,St.width,St.height),Pe.push(Xn),E.ed(Xn)}}if(ee!==null)for(x=ee.labelNodes;x.next();)x.value.measure(1/0,1/0);a.jg=E,a.position.h(y.x+E.x,y.y+E.y),wa(b,E.width||0,E.height||0),ir.free(Fe),dt.free(We),dt.free(gt)}}}},Nm.prototype.arrange=function(a,y){var E=y.length;if(a instanceof Hr||a instanceof Jn){var x=a,b=null;a instanceof Hr&&(b=a,x=b.adornedPart);var z=a instanceof Hr?null:x.path,ee=a.j;if(ee.length!==0){var re=0;if(z!==null&&re<ee.length){var oe=ee[re];re++,z.arrange(oe.x-a.jg.x,oe.y-a.jg.y,oe.width,oe.height)}for(oe=0;oe<E;oe++){var ce=y[oe];if(ce!==z&&re<ee.length){var fe=ee[re];re++,ce.arrange(fe.x-a.jg.x,fe.y-a.jg.y,fe.width,fe.height)}}}if(y=x.points,E=y.count,2<=E&&a instanceof Jn)for(z=a.labelNodes;z.next();){var ye=a;ee=z.value,re=ee.segmentIndex,oe=ee.segmentFraction;var Ne=ee.alignmentFocus;if(ce=ee.segmentOrientation,fe=ee.segmentOffset,isNaN(re)){var Pe=ye.ua,Fe=ci();Pe.Qu(oe,Fe);var We=dt.allocAt(Fe[0],Fe[1]);We.add(ye.i(0)),Pe.type===Qn.j||(Pe=Pe.figures.first()),We.offset(-Pe.startX,-Pe.startY),Pe=Fe[2],ce!==Ws&&(ye=ye.computeAngle(ee,ce,Pe),ee.angle=ye),ye=We.x;var gt=We.y;dt.free(We),pi(Fe)}else if(re<-E||re>=E)Fe=dt.alloc(),Pe=ye,gt=Fe,Pe.vg(),Pe.computeMidPoint(gt),Pe=ye.midAngle,ce!==Ws&&(ye=ye.computeAngle(ee,ce,Pe),ee.angle=ye),ye=Fe.x,gt=Fe.y,dt.free(Fe);else{if(We=0,0<=re?(Fe=y.s[re],gt=re<E-1?y.s[re+1]:Fe):(We=E+re,Fe=y.s[We],gt=0<We?y.s[We-1]:Fe),Fe.Xa(gt)){0<=re?(Pe=0<re?y.s[re-1]:Fe,We=re<E-2?y.s[re+2]:gt):(Pe=We<E-1?y.s[We+1]:Fe,We=1<We?y.s[We-2]:gt);var nt=Pe.Bf(Fe),vt=gt.Bf(We);Pe=nt>vt+10?0<=re?Pe.ab(Fe):Fe.ab(Pe):vt>nt+10?0<=re?gt.ab(We):We.ab(gt):0<=re?Pe.ab(We):We.ab(Pe)}else Pe=0<=re?Fe.ab(gt):gt.ab(Fe);ce!==Ws&&(ye=ye.computeAngle(ee,ce,Pe),ee.angle=ye),ye=Fe.x+(gt.x-Fe.x)*oe,gt=Fe.y+(gt.y-Fe.y)*oe}if(Ne.ys())ee.location=new dt(ye,gt);else{Ne.Mc()&&(Ne=Xi),Fe=ir.alloc(),Fe.reset(),Fe.scale(ee.scale,ee.scale),Fe.rotate(ee.angle,0,0);var St=ee.naturalBounds;We=pn.allocAt(0,0,St.width,St.height),nt=dt.alloc(),nt.xi(We,Ne),Fe.Ga(nt),Ne=-nt.x,vt=-nt.y;var Tt=St.width,Dt=St.height;St=dt.alloc(),St.assign(fe);var Xt=isNaN(fe.x),ai=isNaN(fe.y);if(Xt||ai){Tt=Tt/2+3,Dt=Dt/2+3;var Ci=45<=Pe&&135>=Pe,Ei=225<=Pe&&315>=Pe;ce===Ws&&(Ci||Ei)?(St.x=ai?Tt:fe.y,St.y=Xt?Dt:fe.x,Ci?0<=re||isNaN(re)&&.5>oe||!Xt||(St.y=-Dt):Ei&&((0<=re||isNaN(re)&&.5>oe)&&Xt&&(St.y=-Dt),ai&&(St.x=-Tt))):(Xt&&(St.x=0<=re||isNaN(re)&&.5>oe?Tt:-Tt),ai&&(St.y=-Dt),St.rotate(Pe))}else St.rotate(Pe);ye+=St.x,gt+=St.y,Fe.pp(We),Ne+=We.x,vt+=We.y,re=dt.allocAt(ye+Ne,gt+vt),ee.move(re),dt.free(re),dt.free(St),dt.free(nt),pn.free(We),ir.free(Fe)}}b!==null?b.Ul(!1):x.Ul(!1),x=B1(a),a.location.h(a.position.x+x.x,a.position.y+x.y),dt.free(x)}};function l1(a,y,E,x){if(Hl(x)!==!1){var b=x.strokeWidth;b===0&&a instanceof Hr&&a.type===Wn.Link&&a.adornedObject instanceof yr&&(b=a.adornedObject.strokeWidth),b*=x.Ca,a instanceof Jn&&a.ua!==null?(a=a.geometry.bounds,x.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):a instanceof Hr&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,x.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):x.Ge(-(b/2),-(b/2),y+b,E+b),b=x.desiredSize,b.w()||x.ua===null?x.dc.h(0,0,b.width,b.height):x.dc.assign(x.ua.bounds),Ea(x,!1)}}function ip(){this.xa="Base"}en(ip,Ca),ip.prototype.measure=function(a,y,E,x,b,z,ee){var re=a.Pb();a.graduatedBounds=[];var oe=re.margin,ce=oe.right+oe.left,fe=oe.top+oe.bottom;re.measure(y,E,z,ee);var ye=re.measuredBounds,Ne=new pn(-oe.left,-oe.top,Math.max(ye.width+ce,0),Math.max(ye.height+fe,0));a.graduatedBounds.push(Ne),b.assign(Ne);for(var Pe=re.geometry,Fe=re.strokeWidth,We=Pe.flattenedSegments,gt=Pe.flattenedLengths,nt=Pe.flattenedTotalLength,vt=We.length,St=0,Tt=0,Dt=ci(),Xt=0;Xt<vt;Xt++){var ai=We[Xt],Ci=[];Tt=St=0;for(var Ei=ai.length,Xn=0;Xn<Ei;Xn+=2){var In=ai[Xn],cr=ai[Xn+1];if(Xn!==0){var $i=180*Math.atan2(cr-Tt,In-St)/Math.PI;0>$i&&($i+=360),Ci.push($i)}St=In,Tt=cr}Dt.push(Ci)}if(a.graduatedIntervals===null){for(var Wr=[],vo=a.O.s,Oa=vo.length,ja=0;ja<Oa;ja++){var ks=vo[ja],Ra=[];if(Wr.push(Ra),ks.visible){var Md=ks.interval;if(!(0>Md)){for(var fa=0;fa<Oa;fa++)if(fa!==ja){var nc=vo[fa];if(nc.visible&&ks.constructor===nc.constructor){var Ds=nc.interval;Ds>Md&&Ra.push(Ds)}}}}}a.graduatedIntervals=Wr}var Pd=a.graduatedIntervals,Vl=a.O.s,bu=Vl.length,Ll=0,ml=0,ah=nt;a.graduatedMarks=[];for(var ic,vg=0;vg<bu;vg++){var Il=Vl[vg];if(ic=[],Il.visible&&Il!==re){var Os=Math.abs(Il.interval),Hp=a.graduatedTickUnit;if(!(2>Hp*Os*nt/a.graduatedRange&&Il.graduatedSkip===null)){var Sf=gt[0][0],vc=0,vl=0;ml=nt*Il.graduatedStart-1e-4,ah=nt*Il.graduatedEnd+1e-4;var Uh=Hp*Os,kl=a.graduatedTickBase;if(kl<a.graduatedMin){var sh=(a.graduatedMin-kl)/Uh;sh=sh%1===0?sh:Math.floor(sh+1),kl+=sh*Uh}else kl>a.graduatedMin+Uh&&(kl-=Math.floor((kl-a.graduatedMin)/Uh)*Uh);for(var W0=Pd[vg],Gp=kl,Gy=1e-6*a.graduatedMax,Uc=1;kl<=a.graduatedMax+Gy;Uc++){e:{for(var ed=W0.length,Ef=0;Ef<ed;Ef++){var lh=(kl-a.graduatedTickBase)%(W0[Ef]*a.graduatedTickUnit),yg=1e-6*a.graduatedTickUnit;if(lh<yg&&lh>-yg){var uh=!1;break e}}uh=!0}if(uh&&(kl>a.graduatedMax&&(kl=a.graduatedMax),Il.graduatedSkip===null||Il instanceof Eo&&!Il.graduatedSkip(kl,Il)||Il instanceof yr&&!Il.graduatedSkip(kl,Il))&&(Ll=(kl-a.graduatedMin)*nt/a.graduatedRange,Ll>nt&&(Ll=nt),ml<=Ll&&Ll<=ah)){for(var Hc=Dt[vc][vl],Ld=gt[vc][vl];vc<gt.length;){for(;Ll>Sf&&vl<gt[vc].length-1;)vl++,Hc=Dt[vc][vl],Ld=gt[vc][vl],Sf+=Ld;if(Ll<=Sf)break;vc++,vl=0,Hc=Dt[vc][vl],Ld=gt[vc][vl],Sf+=Ld}var yl=We[vc],yc=yl[2*vl],V0=yl[2*vl+1],td=(Ll-(Sf-Ld))/Ld,Sg=new dt(yc+(yl[2*vl+2]-yc)*td+Fe/2-Pe.bounds.x,V0+(yl[2*vl+3]-V0)*td+Fe/2-Pe.bounds.y);Sg.scale(re.scale,re.scale);e:{var rc=Hc,Hh=Dt[vc];if(!(.5005>td&&.4995<td)){var Sc=rc;if(.5>td?0<vl?Sc=Hh[vl-1]:Ft.$(yl[0],yl[yl.length-2])&&Ft.$(yl[1],yl[yl.length-1])&&(Sc=Hh[Hh.length-1]):.5<td&&(vl+1<Hh.length?Sc=Hh[vl+1]:Ft.$(yl[0],yl[yl.length-2])&&Ft.$(yl[1],yl[yl.length-1])&&(Sc=Hh[0])),rc!==Sc){var xf=Math.abs(rc-Sc);if(180<xf&&(rc<Sc?rc+=360:Sc+=360,xf=Math.abs(rc-Sc)),5e-4>td||.9995<td){Hc=(rc+Sc)/2%360;break e}if(10>xf){var Eg=1-Math.abs(.5-td);Hc=(rc*Eg+Sc*(1-Eg))%360;break e}}}Hc=rc}if(Il instanceof Eo){var Uu="";Il.graduatedFunction!==null?(Uu=Il.graduatedFunction(kl,Il),Uu=Uu!=null?Uu.toString():""):Uu=(+kl.toFixed(2)).toString(),Uu!==""&&ic.push({$l:Sg,angle:Hc,text:Uu})}else ic.push({$l:Sg,angle:Hc})}kl=Gp+Uc*Uh}}}a.graduatedMarks.push(ic)}pi(Dt);var qa=a.graduatedMarks;if(qa!==null)for(var Yp=x.length,Xs=0;Xs<Yp;Xs++){var ga=x[Xs],Js=qa[Xs];if(ga.visible&&ga!==re&&Js.length!==0){if(ga instanceof yr){var nd=a,Id=b,Gh=ga.alignmentFocus;Gh.Mc()&&(Gh=qi);var Yy=ga.angle;ga.Kb=0,ga.measure(1/0,1/0,0,0),ga.Kb=Yy;var Z0=ga.measuredBounds,xg=Z0.width,Yh=Z0.height,bf=pn.allocAt(0,0,xg,Yh),Sl=dt.alloc();Sl.xi(bf,Gh),pn.free(bf);for(var id=-Sl.x,oc=-Sl.y,lu=new pn,ch=Js.length,bg=0;bg<ch;bg++)for(var dh=Js[bg],Q0=dh.$l.x,wg=dh.$l.y,na=dh.angle,Hu=0;4>Hu;Hu++){switch(Hu){case 0:Sl.h(id,oc);break;case 1:Sl.h(id+xg,oc);break;case 2:Sl.h(id,oc+Yh);break;case 3:Sl.h(id+xg,oc+Yh)}Sl.rotate(na+ga.angle),Sl.offset(Q0,wg),bg===0&&Hu===0?lu.h(Sl.x,Sl.y,0,0):lu.Ye(Sl),Sl.offset(-Q0,-wg),Sl.rotate(-na-ga.angle)}dt.free(Sl),nd.graduatedBounds!==null&&nd.graduatedBounds.push(lu),po(Id,lu.x,lu.y,lu.width,lu.height)}else if(ga instanceof Eo){var wu=a,K0=b;wu.temporaryTextBlock===null&&(wu.temporaryTextBlock=new Eo);var Dl=wu.temporaryTextBlock;w1(Dl,ga);var kd=ga.alignmentFocus;kd.Mc()&&(kd=qi);for(var Tu=ga.segmentOrientation,Tg=ga.segmentOffset,hh=new pn,Wp=0,Ag=0,Ec=0,Wh=0,fh=0,Cg=Js.length,Dd=0;Dd<Cg;Dd++){var Gc=Js[Dd];Wp=Gc.$l.x,Ag=Gc.$l.y,Ec=Gc.angle,fh=Wh=ga.angle,Tu!==Ws&&(fh=Tu===gp||Tu===n0?Ec+ga.angle:Ec,Wh=Jn.computeAngle(Tu,fh)),Dl.Kb=Wh,Dl.text=Gc.text||"",Dl.measure(1/0,1/0,0,0);var Od=Dl.measuredBounds,rd=Dl.naturalBounds,Rd=rd.width,Vh=rd.height,ac=ir.alloc();ac.reset(),ac.translate(-Od.x,-Od.y),ac.scale(Dl.scale,Dl.scale),ac.rotate(fh,Rd/2,Vh/2),Tu!==pp&&Tu!==vp||ac.rotate(90,Rd/2,Vh/2),Tu!==mp&&Tu!==yp||ac.rotate(-90,Rd/2,Vh/2),Tu===i0&&(45<Ec&&135>Ec||225<Ec&&315>Ec)&&ac.rotate(-Ec,Rd/2,Vh/2);var wf=pn.allocAt(0,0,Rd,Vh),Fd=dt.alloc();Fd.xi(wf,kd),ac.Ga(Fd);var Tf=-Fd.x,Wy=-Fd.y,od=dt.alloc();od.assign(Tg),isNaN(od.x)&&(od.x=Rd/2+3),isNaN(od.y)&&(od.y=-(Vh/2+3)),od.rotate(Ec),Wp+=od.x+Tf,Ag+=od.y+Wy;var Zh=new pn(Wp,Ag,Od.width,Od.height),Vp=new pn(Od.x,Od.y,Od.width,Od.height),Vy=new pn(rd.x,rd.y,rd.width,rd.height);Gc.Sz=Wh,Gc.lineCount=Dl.lineCount,Gc.lines=[Dl.Cb,Dl.Ih,Dl.df,Dl.Le,Dl.Qc,Dl.Qb,Dl.ze],Gc.actualBounds=Zh,Gc.measuredBounds=Vp,Gc.naturalBounds=Vy,Dd===0?hh.assign(Zh):hh.ed(Zh),dt.free(od),dt.free(Fd),pn.free(wf),ir.free(ac)}wu.graduatedBounds!==null&&wu.graduatedBounds.push(hh),po(K0,hh.x,hh.y,hh.width,hh.height)}Ea(ga,!1)}}},ip.prototype.arrange=function(a,y,E){if(a.graduatedBounds!==null){var x=a.Pb(),b=a.graduatedMarks;if(b!==null){var z=a.graduatedBounds,ee=0,re=z[ee];ee++,x!==null&&x.arrange(re.x-E.x,re.y-E.y,re.width,re.height);for(var oe=y.length,ce=0;ce<oe;ce++){var fe=y[ce];re=b[ce],fe.visible&&fe!==x&&re.length!==0&&(re=z[ee],ee++,fe.arrange(re.x-E.x,re.y-E.y,re.width,re.height))}a.graduatedBounds=null}}},ip.prototype.gc=function(a,y,E){var x=E.$i;E.$i=!0;var b=a.naturalBounds,z=b.width,ee=b.height;b=y instanceof Nl,y.save(),y.beginPath(),y.rect(-1,-1,z+1,ee+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,E),ee=a.Df()*E.scale,0>=ee&&(ee=1);for(var re=z.actualBounds,oe=a.O.s,ce=a.graduatedMarks,fe=oe.length,ye=0;ye<fe;ye++){var Ne=oe[ye],Pe=ce[ye],Fe=Pe.length;if(Ne.visible&&Ne!==z&&Pe.length!==0){if(Ne instanceof yr){if(!(2>a.graduatedTickUnit*Ne.interval*z.geometry.flattenedTotalLength/a.graduatedRange*ee&&Ne.graduatedSkip===null)){var We=Ne.measuredBounds,gt=Ne.strokeWidth*Ne.scale,nt=Ne.alignmentFocus;nt.Mc()&&(nt=qi);for(var vt=0;vt<Fe;vt++){var St=Pe[vt].$l,Tt=Pe[vt].angle,Dt=nt,Xt=Ne.Ab;Xt.reset(),Xt.translate(St.x+re.x,St.y+re.y),Xt.rotate(Tt+Ne.angle,0,0),Xt.translate(-We.width*Dt.x+Dt.offsetX+gt/2,-We.height*Dt.y+Dt.offsetY+gt/2),Xt.scale(Ne.scale,Ne.scale),vu(Ne,!1),Ne.wh.set(Ne.Ab),Ne.Kk=Ne.scale,tu(Ne,!1),Ne.gc(y,E),b&&(a.svg.appendChild(Ne.svg),Ne.svg=null),Ne.Ab.reset()}}}else if(Ne instanceof Eo)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new Eo),We=a.temporaryTextBlock,w1(We,Ne),gt=0;gt<Fe;gt++)nt=Pe[gt],nt.actualBounds&&nt.measuredBounds&&nt.naturalBounds&&(We.ec=nt.text||"",We.Kb=nt.Sz||0,We.Gc=nt.lineCount||0,vt=nt.lines,vt!==void 0&&(We.Cb=vt[0],We.Ih=vt[1],We.df=vt[2],We.Le=vt[3],We.Qc=vt[4],We.Qb=vt[5],We.ze=vt[6]),nt.naturalBounds&&(We.dc=nt.naturalBounds),nt.actualBounds&&(vt=nt.actualBounds,We.arrange(vt.x,vt.y,vt.width,vt.height)),vt=nt.actualBounds,We.arrange(vt.x,vt.y,vt.width,vt.height),St=nt.measuredBounds,nt=nt.naturalBounds,Tt=We.Ab,Tt.reset(),Tt.translate(vt.x+re.x,vt.y+re.y),Tt.translate(-St.x,-St.y),We.no(Tt,nt.x,nt.y,nt.width,nt.height),vu(We,!1),We.wh.set(We.Ab),We.Kk=We.scale,tu(We,!1),We.Ng=Ne.part,We.Me=Ne.panel,We.gc(y,E),We.Me=null,We.Ng=null,b&&(a.svg.appendChild(We.svg),We.svg=null))}}E.$i=x,y.restore(),y.Vc(!0)};function Wn(a,y){if(Rt.call(this),this.na=null,a===void 0)this.na=Wn.Position;else if(typeof a=="string"){var E=Ru.I(a);E!==null&&(this.na=E)}else a instanceof Ca?this.na=a:a&&(this.na=Wn.Position,y=a);this.na===null&<("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Wn.Grid?1048576:0),this.O=new Un,this.yb=ds,this.Tm=Aa,this.Uf=fr,this.$g=null,this.$e="",this.jg=new pn(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Mi,this.jn=Zo,this.kn=ho,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}en(Wn,Rt),Wn.prototype.cloneProtected=function(a){Rt.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},Wn.prototype.Af=function(a){Rt.prototype.Af.call(this,a),a.O=this.O;for(var y=a.O.s,E=y.length,x=0;x<E;x++)y[x].Me=a;a.$g=null},Wn.prototype.copy=function(){var a=Rt.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,E=y.length,x=0;x<E;x++){var b=y[x].copy();b.wi(a),b.Ng=null;var z=a.O,ee=z.count;if(z.Gb(ee,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(Wo,"elements",a,null,b,null,ee)}}return a}return null},ke=Wn.prototype,ke.toString=function(){return"Panel("+this.type.name+")#"+Ir(this)},ke.Pn=function(a){Rt.prototype.Pn.call(this,a);for(var y=this.O.s,E=y.length,x=0;x<E;x++)y[x].Pn(a)},ke.hh=function(a,y){if(this.na===Wn.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===Wn.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===Wn.Table)if(a.yc(),a instanceof Nl){var E=a.yd;a.yd=gm(a,"gojs-ts"),vv(this,a),a.nh.pop(),a.yd=E}else vv(this,a);(E=this.isClipping&&this.na===Wn.Spot)&&a.save();for(var x=this.Pb(),b=this.O.s,z=b.length,ee=0;ee<z;ee++){var re=b[ee];E&&re===x&&(a.clipInsteadOfFill=!0),re.gc(a,y),E&&re===x&&(a.clipInsteadOfFill=!1)}E&&(a.restore(),a.Vc(!0))}};function vv(a,y){y.lineCap="butt";var E=0<a.rowCount?a.rowDefs:null,x=0<a.columnCount?a.colDefs:null;E!==null&&Mm(a,y,!0,E,!0),x!==null&&Mm(a,y,!1,x,!0),E!==null&&u1(a,y,!0,E),x!==null&&u1(a,y,!1,x),E!==null&&Mm(a,y,!0,E,!1),x!==null&&Mm(a,y,!1,x,!1)}function u1(a,y,E,x){for(var b=x.length,z=a.actualBounds,ee=a.naturalBounds,re=!0,oe=0;oe<b;oe++){var ce=x[oe];if(ce!==void 0&&ce.actual!==0)if(re)re=!1;else{if(E){if(ce.position>ee.height)continue}else if(ce.position>ee.width)continue;var fe=ce.separatorStrokeWidth;isNaN(fe)&&(fe=E?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ye=ce.separatorStroke;if(ye===null&&(ye=E?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),fe!==0&&ye!==null){$o(a,y,ye,!1,!1,ee,z),ye=!1;var Ne=ce.separatorDashArray;Ne===null&&(Ne=E?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),Ne!==null&&(ye=!0,y.js(Ne,0)),y.beginPath(),Ne=ce.position+fe,E?Ne>ee.height&&(fe-=Ne-ee.height):Ne>ee.width&&(fe-=Ne-ee.width),ce=ce.position+fe/2,y.lineWidth=fe,fe=a.yb,E?(ce+=fe.top,Ne=ee.width-fe.right,y.moveTo(fe.left,ce),y.lineTo(Ne,ce)):(ce+=fe.left,Ne=ee.height-fe.bottom,y.moveTo(ce,fe.top),y.lineTo(ce,Ne)),y.stroke(),y.Se(),ye&&y.fs()}}}}function Mm(a,y,E,x,b){for(var z=x.length,ee=a.actualBounds,re=a.naturalBounds,oe=c1(a,!0),ce=c1(a,!1),fe=0;fe<z;fe++){var ye=x[fe];if(ye!==void 0&&ye.background!==null&&ye.coversSeparators!==b&&ye.actual!==0){var Ne=E?ee.height:ee.width;if(!(ye.position>Ne)){var Pe=ye.Wc(),Fe=ye.separatorStrokeWidth;isNaN(Fe)&&(Fe=E?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var We=ye.separatorStroke;We===null&&(We=E?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(We===null||ye.index===(E?oe:ce))&&(Fe=0),Pe-=Fe,Fe=ye.position+Fe,Pe+=ye.actual,Fe+Pe>Ne&&(Pe=Ne-Fe),0>=Pe||(Ne=a.yb,$o(a,y,ye.background,!0,!1,re,ee),E?y.fillRect(Ne.left,Fe+Ne.top,ee.width-(Ne.left+Ne.right),Pe):y.fillRect(Fe+Ne.left,Ne.top,Pe,ee.height-(Ne.top+Ne.bottom)))}}}}function c1(a,y){for(var E=y?a.rowCount:a.columnCount,x=0;x<E;x++){var b=y?a.rowDefs[x]:a.colDefs[x];if(b!==void 0)return b.index}return 0}function yv(a){return a==="LineV"||a==="BarV"}ke.lv=function(){for(var a=this.O.s,y=a.length,E=0;E<y;E++)a[E].lv();this.Uc=!0},ke.kk=function(a,y,E){if(!Rt.prototype.kk.call(this,a,y,E))return!1;if(this.type===Wn.Table)E=this.svg.getElementsByClassName("gojs-ts"),E=E.length!==0?E[0]:null,E!==null&&(E.innerHTML=""),a.yd=E,vv(this,a),a.yd=null;else if(this.na===Wn.Grid||this.na===Wn.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;E=this.O.s;for(var x=E.length,b=0;b<x;b++)E[b].gc(a,y);return!0},ke.nk=function(){return!0},ke.$o=function(a,y,E,x){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var b=0,z=0,ee=0;ee<y.length;ee++)if(y[ee].Ed()){var re=y[ee].actualBounds;b=ee===0?re.x:Math.min(re.x,b),z=ee===0?re.y:Math.min(re.y,z)}x.setAttributeNS(null,"clip-path","path('M "+(a.x-E.x-b)+","+(a.y-E.y-z)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else Rt.prototype.$o.call(this,a,y,E,x)},ke.Sj=function(a,y,E,x,b){var z=this.se(),ee=this.transform,re=1/(ee.m11*ee.m22-ee.m12*ee.m21),oe=ee.m22*re,ce=-ee.m12*re,fe=-ee.m21*re,ye=ee.m11*re,Ne=re*(ee.m21*ee.dy-ee.m22*ee.dx),Pe=re*(ee.m12*ee.dx-ee.m11*ee.dy);if(this.areaBackground!==null)return ee=this.actualBounds,Ft.Ff(ee.left,ee.top,ee.right,ee.bottom,a,y,E,x,b);if(this.background!==null)return z=a*oe+y*fe+Ne,re=a*ce+y*ye+Pe,a=E*oe+x*fe+Ne,oe=E*ce+x*ye+Pe,b.h(0,0),E=this.naturalBounds,z=Ft.Ff(0,0,E.width,E.height,z,re,a,oe,b),b.transform(ee),z;z||(oe=1,fe=ce=0,ye=1,Pe=Ne=0),re=a*oe+y*fe+Ne,a=a*ce+y*ye+Pe,oe=E*oe+x*fe+Ne,E=E*ce+x*ye+Pe,b.h(oe,E),x=(oe-re)*(oe-re)+(E-a)*(E-a),ce=!1,ye=this.O.s,Pe=ye.length,fe=dt.alloc(),Ne=null,y=1/0;var Fe=null,We=this.isClipping&&this.na===Wn.Spot;We&&(Fe=dt.alloc(),Ne=this.Pb(),(ce=Ne.Sj(re,a,oe,E,Fe))&&(y=(re-Fe.x)*(re-Fe.x)+(a-Fe.y)*(a-Fe.y)));for(var gt=0;gt<Pe;gt++){var nt=ye[gt];nt.visible&&nt!==Ne&&nt.Sj(re,a,oe,E,fe)&&(ce=!0,nt=(re-fe.x)*(re-fe.x)+(a-fe.y)*(a-fe.y),nt<x&&(x=nt,b.set(fe)))}return We&&(y>x&&b.set(Fe),dt.free(Fe)),dt.free(fe),z&&b.transform(ee),ce},ke.Gj=function(){for(var a=this.O.s,y=a.length,E=0;E<y;E++)a[E].Gj();Rt.prototype.Gj.call(this)},ke.v=function(a){if(!Hl(this)){Rt.prototype.v.call(this,a),a=null,(this.na===Wn.Auto||this.na===Wn.Link)&&(a=this.Pb());for(var y=this.O.s,E=y.length,x=0;x<E;x++){var b=y[x];if((b===a||b.isPanelMain)&&b.v(!0),!b.desiredSize.w()){var z=rl(b,!1);(b instanceof Ys||b instanceof Wn||b instanceof Eo||z!==Rn)&&b.v(!0)}}}},ke.Uj=function(){if(!Hl(this)){Ea(this,!0),Lc(this,!0);for(var a=this.O.s,y=a.length,E=0;E<y;E++)a[E].Uj()}},ke.Uk=function(){if(!(this.l&2048)){vu(this,!0),tu(this,!0);for(var a=this.O.s,y=a.length,E=0;E<y;E++)a[E].Wu()}},ke.Wu=function(){tu(this,!0);for(var a=this.O.s,y=a.length,E=0;E<y;E++)a[E].Wu()},ke.Wl=function(a,y,E,x){var b=this.jg;b.h(0,0,0,0);var z=this.desiredSize,ee=this.minSize;E===void 0&&(E=ee.width,x=ee.height),E=Math.max(E,ee.width),x=Math.max(x,ee.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(E,a),y=Math.max(x,y);var oe=this.yb;a=Math.max(a-oe.left-oe.right,0),y=Math.max(y-oe.top-oe.bottom,0);var ce=this.O.s;ce.length!==0&&this.na.measure(this,a,y,ce,b,E,x),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(ee.width,a),oe=Math.max(ee.height,oe),a=Math.max(E,a),oe=Math.max(x,oe),wa(b,a,oe),wa(this.naturalBounds,a,oe),this.Ge(0,0,a,oe)},ke.Pb=function(){if(this.$g===null){var a=this.O.s,y=a.length;if(y===0)return null;for(var E=0;E<y;E++){var x=a[E];if(x.isPanelMain===!0)return this.$g=x}this.$g=a[0]}return this.$g};function Jc(a){return a.part!==null?a.part.locationObject:null}ke.eh=function(a,y,E,x){var b=this.O.s;if(this.actualBounds.h(a,y,E,x),b.length!==0){if(!this.desiredSize.w()){a=rl(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var ee=this.Kg,re=ee.left+ee.right;switch(ee=ee.top+ee.bottom,y===E&&z===x&&(a=Rn),a){case Rn:(y>E||z>x)&&(this.v(),this.measure(y>E?E:y,z>x?x:z,0,0));break;case Gn:this.v(!0),this.measure(E+re,x+ee,0,0);break;case Oi:this.v(!0),this.measure(E+re,z+ee,0,0);break;case Vi:this.v(!0),this.measure(y+re,x+ee,0,0)}}this.na.arrange(this,b,this.jg)}},ke.gh=function(a){var y=this.naturalBounds,E=Jc(this);if(ca(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var x=y.length,b=dt.allocAt(0,0);x--;){var z=y[x];if((z.visible||z===E)&&(Ji(b.set(a),z.transform),z.ca(b)))return dt.free(b),!0}return dt.free(b),!(this.Ma===null&&this.areaBackground===null)}return!1},ke.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,E=y.length,x=0;x<E;x++){var b=y[x].ks(a);if(b!==null)return b}return null},ke.qm=function(a,y){if(y(this,a),a instanceof Wn){a=a.O.s;for(var E=a.length,x=0;x<E;x++)this.qm(a[x],y)}};function Dh(a,y){d1(a,a,y)}function d1(a,y,E){E(y),y=y.O.s;for(var x=y.length,b=0;b<x;b++){var z=y[b];z instanceof Wn&&d1(a,z,E)}}function NE(a,y){h1(a,a,y)}function h1(a,y,E){if(E(y),y instanceof Wn){y=y.O.s;for(var x=y.length,b=0;b<x;b++)h1(a,y[b],E)}}ke.Nl=function(a){return f1(this,this,a)};function f1(a,y,E){if(E(y))return y;if(y instanceof Wn){y=y.O.s;for(var x=y.length,b=0;b<x;b++){var z=f1(a,y[b],E);if(z!==null)return z}}return null}ke.fb=function(a){if(this.name===a)return this;var y=this.O.s,E=y.length;this.Hh===null&&this.itemTemplateMap===null||(E=rp(this));for(var x=0;x<E;x++){var b=y[x];if(b instanceof Wn){var z=b.fb(a);if(z!==null)return z}if(b.name===a)return b}return null};function g1(a){a=a.O.s;for(var y=a.length,E=0,x=0;x<y;x++){var b=a[x];b instanceof Wn?E=Math.max(E,g1(b)):b instanceof yr&&(E=Math.max(E,b.ig/2*b.strokeMiterLimit*b.Df()))}return E}ke.se=function(){return!(this.type===Wn.TableRow||this.type===Wn.TableColumn)};function yd(a){return a.type===Wn.TableRow||a.type===Wn.TableColumn}ke.ic=function(a,y,E){if(this.pickable===!1||(y===void 0&&(y=null),E===void 0&&(E=null),Hs(this)))return null;var x=this.naturalBounds,b=1/this.Df(),z=this.se(),ee=z?a:Ji(dt.allocAt(a.x,a.y),this.transform),re=this.diagram,oe=10,ce=5;if(re!==null&&(oe=re.Ql("extraTouchArea"),ce=oe/2),ca(-(ce*b),-(ce*b),x.width+oe*b,x.height+oe*b,ee.x,ee.y)){if(!this.isAtomic){b=this.O.s;var fe=b.length;if(re=dt.alloc(),ce=(oe=this.isClipping&&this.na===Wn.Spot)?this.Pb():null,oe&&(ce.se()?Ji(re.set(a),ce.transform):re.set(a),!ce.ca(re)))return dt.free(re),z||dt.free(ee),null;for(var ye=Jc(this);fe--;){var Ne=b[fe];if((Ne.visible||Ne===ye)&&(Ne.se()?Ji(re.set(a),Ne.transform):re.set(a),!oe||Ne!==ce)){var Pe=null;if(Ne instanceof Wn?Pe=Ne.ic(re,y,E):Ne.pickable===!0&&Ne.ca(re)&&(Pe=Ne),Pe!==null&&(y!==null&&(Pe=y(Pe)),Pe!==null&&(E===null||E(Pe))))return dt.free(re),z||dt.free(ee),Pe}}dt.free(re)}return this.background===null&&this.areaBackground===null?(z||dt.free(ee),null):(a=ca(0,0,x.width,x.height,ee.x,ee.y)?this:null,z||dt.free(ee),a)}return z||dt.free(ee),null},ke.ji=function(a,y,E,x){if(this.pickable===!1)return!1;y===void 0&&(y=null),E===void 0&&(E=null);var b=this.naturalBounds,z=this.se(),ee=z?a:Ji(dt.allocAt(a.x,a.y),this.transform);if(b=ca(0,0,b.width,b.height,ee.x,ee.y),yd(this)||b){if(!this.isAtomic){for(var re=this.O.s,oe=re.length,ce=dt.alloc(),fe=Jc(this);oe--;){var ye=re[oe];if(ye.visible||ye===fe){ye.se()?Ji(ce.set(a),ye.transform):ce.set(a);var Ne=ye;ye=ye instanceof Wn?ye:null,(ye!==null?ye.ji(ce,y,E,x):Ne.ca(ce))&&Ne.pickable!==!1&&(y!==null&&(Ne=y(Ne)),Ne===null||E!==null&&!E(Ne)||x.add(Ne))}}dt.free(ce)}return z||dt.free(ee),b&&(this.background!==null||this.areaBackground!==null)}return z||dt.free(ee),!1},ke.Cf=function(a,y,E,x,b,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),E===void 0&&(E=null);var ee=z;if(z===void 0&&(ee=ir.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return Sv(this,y,E,b),z===void 0&&ir.free(ee),!0;if(this.Yc(a,ee)){if(!this.isAtomic)for(var re=Jc(this),oe=this.O.s,ce=oe.length;ce--;){var fe=oe[ce];if(fe.visible||fe===re){var ye=fe.actualBounds,Ne=this.naturalBounds;ye.x>Ne.width||ye.y>Ne.height||0>ye.x+ye.width||0>ye.y+ye.height||(ye=fe,fe=fe instanceof Wn?fe:null,Ne=ir.alloc(),Ne.set(ee),(fe!==null?fe.Cf(a,y,E,x,b,Ne):Da(ye,a,x,Ne))&&(y!==null&&(ye=y(ye)),ye===null||E!==null&&!E(ye)||b.add(ye)),ir.free(Ne))}}return z===void 0&&ir.free(ee),x}return z===void 0&&ir.free(ee),!1};function Sv(a,y,E,x){for(var b=a.O.s,z=b.length;z--;){var ee=b[z];if(ee.visible){var re=ee.actualBounds,oe=a.naturalBounds;re.x>oe.width||re.y>oe.height||0>re.x+re.width||0>re.y+re.height||(ee instanceof Wn&&Sv(ee,y,E,x),y!==null&&(ee=y(ee)),ee===null||E!==null&&!E(ee)||x.add(ee))}}}ke.og=function(a,y,E,x,b,z){if(this.pickable===!1)return!1;E===void 0&&(E=null),x===void 0&&(x=null);var ee=this.naturalBounds,re=this.se(),oe=re?a:Ji(dt.allocAt(a.x,a.y),this.transform),ce=re?y:Ji(dt.allocAt(y.x,y.y),this.transform),fe=oe.Bf(ce),ye=0<oe.x&&oe.x<ee.width&&0<oe.y&&oe.y<ee.height||Cr(oe.x,oe.y,0,0,0,ee.height)<=fe||Cr(oe.x,oe.y,0,ee.height,ee.width,ee.height)<=fe||Cr(oe.x,oe.y,ee.width,ee.height,ee.width,0)<=fe||Cr(oe.x,oe.y,ee.width,0,0,0)<=fe;if(ee=oe.zd(0,0)<=fe&&oe.zd(0,ee.height)<=fe&&oe.zd(ee.width,0)<=fe&&oe.zd(ee.width,ee.height)<=fe,re||(dt.free(oe),dt.free(ce)),ye){if(!this.isAtomic){oe=dt.alloc(),ce=dt.alloc(),fe=Jc(this);for(var Ne=this.O.s,Pe=Ne.length;Pe--;){var Fe=Ne[Pe];if(Fe.visible||Fe===fe){var We=Fe.actualBounds,gt=this.naturalBounds;(!re||!(We.x>gt.width||We.y>gt.height||0>We.x+We.width||0>We.y+We.height))&&(Fe.se()?(We=Fe.transform,Ji(oe.set(a),We),Ji(ce.set(y),We)):(oe.set(a),ce.set(y)),We=Fe,Fe=Fe instanceof Wn?Fe:null,(Fe!==null?Fe.og(oe,ce,E,x,b,z):We.tx(oe,ce,b))&&(E!==null&&(We=E(We)),We===null||x!==null&&!x(We)||z.add(We)))}}dt.free(oe),dt.free(ce)}return b?ye:ee}return!1};function Ev(a){var y=null;return a instanceof yr&&(y=a.spot1,y===Aa&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=_i),y}function xv(a){var y=null;return a instanceof yr&&(y=a.spot2,y===Aa&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=co),y}ke.add=function(a){for(var y=[],E=0;E<arguments.length;++E)y[E]=arguments[E];for(E=0;E<y.length;E++)this.Gb(this.O.count,y[E]);return this},ke.M=function(a){return this.O.M(a)},ke.Gb=function(a,y){y instanceof Bi&<("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 E=y.panel;if(E!==null&&E!==this&<("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+y.toString()+", already contained by "+E.toString()+", cannot be shared by this Panel: "+this.toString()),this.na!==Wn.Grid||y instanceof yr||lt("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Wn.Graduated||y instanceof yr||y instanceof Eo||lt("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var x=y.data;x!==null&&typeof x=="object"&&(this.ge===null&&(this.ge=new vi),this.ge.add(x,y))}var b=this.O;if(x=-1,E===this){for(var z=-1,ee=this.O.s,re=ee.length,oe=0;oe<re;oe++)if(ee[oe]===y){z=oe;break}if(z!==-1){if(z===a||z+1>=b.count&&a>=b.count)return;b.mb(z),x=z}else lt("element "+y.toString()+" has panel "+E.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),Hl(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Wn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Lm(this,y,!1),E=this.part,E!==null&&(E.Rh=null,E.ag=NaN,this.Te&&E instanceof li&&(E.Te=!0),E.Te&&E instanceof li&&(E.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(x!==-1&&E.cb(qo,"elements",this,y,null,x,null),E.cb(Wo,"elements",this,null,y,null,a)))};function bv(a,y){a.l=y?a.l|16777216:a.l&-16777217}ke.remove=function(a){for(var y=this.O.s,E=y.length,x=-1,b=0;b<E;b++)if(y[b]===a){x=b;break}x!==-1&&this.pc(x,!0)},ke.mb=function(a){0<=a&&this.pc(a,!0)},ke.pc=function(a,y){var E=this.O,x=E.M(a);if(x.Ng=null,x.wi(null),this.ge!==null){var b=x.data;typeof b=="object"&&this.ge.remove(b)}E.mb(a),Ea(this,!1),this.v(),this.$g===x&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof li&&(x instanceof Wn?x.qm(x,function(ee,re){Wv(z,re,y)}):Wv(z,x,y)),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||z.cb(qo,"elements",this,x,null,a,null))},ke.Fb=function(a){0>a&&oi(a,">= 0",Wn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var E=new xa;E.wi(this),E.isRow=!0,E.index=a,y[a]=E,this.cb(Wo,"rowdefs",this,null,E,null,a)}return y[a]},ke.oA=function(a){if(0>a&&oi(a,">= 0",Wn,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,E=y[a];if(E){y[a]=void 0;for(var x=y.length-1;0<=x&&y[x--]===void 0;)y.length--;this.cb(qo,"rowdefs",this,E,null,a,null),this.v()}}};function p1(a,y,E){var x=a.rowDefs;if(!(0>y)){if(x[y]=E instanceof xa?E:void 0,!E)for(y=x.length-1;0<=y&&x[y--]===void 0;)x.length--;a.v()}}ke.Eb=function(a){0>a&&oi(a,">= 0",Wn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var E=new xa;E.wi(this),E.isRow=!1,E.index=a,y[a]=E,this.cb(Wo,"coldefs",this,null,E,null,a)}return y[a]},ke.jA=function(a){if(0>a&&oi(a,">= 0",Wn,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,E=y[a];if(E){y[a]=void 0;for(var x=y.length-1;0<=x&&y[x--]===void 0;)y.length--;this.cb(qo,"coldefs",this,E,null,a,null),this.v()}}};function m1(a,y,E){var x=a.colDefs;if(!(0>y)){if(x[y]=E instanceof xa?E:void 0,!E)for(y=x.length-1;0<=y&&x[y--]===void 0;)x.length--;a.v()}}ke.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Im(y,a),this},ke.Hy=function(a,y){return(a=this.Fb(a))&&Im(a,new xa(y)),this},ke.By=function(a,y){return(a=this.Eb(a))&&Im(a,new xa(y)),this},ke.nz=function(a){if(0>a||this.type!==Wn.Table||this.rowCount===0)return-1;for(var y=0,E=this.rowDefs,x=E.length,b=this.topIndex;b<x;b++){var z=E[b];if(z!==void 0&&(y+=z.total,a<y))break}return b},ke.fz=function(a){if(0>a||this.type!==Wn.Table||this.columnCount===0)return-1;for(var y=0,E=this.colDefs,x=E.length,b=this.leftIndex;b<x;b++){var z=E[b];if(z!==void 0&&(y+=z.total,a<y))break}return b},ke.Fz=function(a,y){if(y===void 0&&(y=new dt(NaN,NaN)),this.type!==Wn.Graduated)return y.h(NaN,NaN),y;a=Math.min(Math.max(a,this.graduatedMin),this.graduatedMax);var E=this.Pb();return E.geometry.Pu((a-this.graduatedMin)/this.graduatedRange,y),E.transform.Ga(y)},ke.Gz=function(a){if(this.type!==Wn.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function v1(a){return a=a.allBindings,a!==null&&a._isFrozen}function Su(a){var y=a.allBindings;if(y===null)a.data!==null&<("Template cannot have .data be non-null: "+a),a.allBindings=y=new Un;else if(y._isFrozen)return;var E=new Un;bv(a,!1),a.qm(a,function(ce,fe){fe.th();var ye=fe.localBindings;if(ye!==null)for(rf(fe,!1),ye=ye.iterator;ye.next();){var Ne=ye.value;Ne.mode===Cp&&rf(fe,!0);var Pe=Ne.sourceName;Pe!==null&&(Pe==="/"&&bv(ce,!0),Pe=kS(Ne,ce,fe),Pe!==null&&(E.add(Pe),Pe.srcBindings===null&&(Pe.srcBindings=new Un),Pe.srcBindings.add(Ne))),y.add(Ne)}if(fe instanceof Wn&&fe.type===Wn.Table){if(0<fe.rowCount){for(ce=fe.rowDefs,ye=ce.length,Ne=0;Ne<ye;Ne++)if(Pe=ce[Ne],Pe!==void 0&&Pe.be!==null)for(var Fe=Pe.be.iterator;Fe.next();){var We=Fe.value;We.xd=Pe,We.to=2,We.wl=Pe.index,y.add(We)}}if(0<fe.columnCount){for(fe=fe.colDefs,ce=fe.length,ye=0;ye<ce;ye++)if(Ne=fe[ye],Ne!==void 0&&Ne.be!==null)for(Pe=Ne.be.iterator;Pe.next();)Fe=Pe.value,Fe.xd=Ne,Fe.to=1,Fe.wl=Ne.index,y.add(Fe)}}});for(var x=E.iterator;x.next();){var b=x.value;if(b.srcBindings!==null){rf(b,!0);for(var z=b.srcBindings.iterator;z.next();){var ee=z.value;b.localBindings===null&&(b.localBindings=new Un),b.localBindings.add(ee)}}b.srcBindings=null}for(x=y.iterator;x.next();)if(b=x.value,z=b.xd,z!==null){b.xd=null;var re=b.targetProperty,oe=re.indexOf(".");0<oe&&z instanceof Wn&&(ee=re.substring(0,oe),re=re.substr(oe+1),oe=z.fb(ee),oe!==null?(z=oe,b.targetProperty=re):gi('Warning: unable to find GraphObject named "'+ee+'" for Binding: '+b.toString())),z instanceof xa?(ee=Ir(z.panel),b.Ai=ee===void 0?-1:ee,z.panel.bindingId=b.Ai):z instanceof Rt?(ee=Ir(z),b.Ai=ee===void 0?-1:ee,z.bindingId=b.Ai):lt("Unknown type of binding target: "+z)}y.freeze(),a instanceof Bi&&a.Zc()&&a.Va()}ke.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return NE(y,function(E){E instanceof Wn&&(E.allBindings=null,E.ub=null);var x=E.localBindings;x!==null&&(E.localBindings=null,x.each(function(b){E.bind(b.copy())})),x=E.animationTriggers,x!==null&&(E.animationTriggers=null,x.each(function(b){E.Jv(b.value.copy())}))}),a&&Su(y),y},ke.La=function(a){var y=this.allBindings;if(y!==null)for(a===void 0&&(a=""),y=y.iterator;y.next();){var E=y.value,x=E.sourceProperty;if((a===""||x===""||x===a)&&(x=E.targetProperty,E.converter!==null||x!=="")){x=this.data;var b=E.sourceName;if(b!==null){if(b==="")x=this;else if(b==="/")x=this;else if(b===".")x=this;else if(b==="..")x=this;else if(x=this.fb(b),x===null)continue}else if(E.isToModel)if(x=this.diagram,x!==null)x=x.model.modelData;else continue;var z=this,ee=E.Ai;if(ee!==-1){if(z=this.ks(ee),z===null)continue}else E.xd!==null&&(z=E.xd);if(b==="/"?x=z.part:b==="."?x=z:b===".."&&(x=z.panel),b=E.to,b!==0){if(!(z instanceof Wn))continue;b===1?z=z.Eb(E.wl):b===2&&(z=z.Fb(E.wl))}z!==void 0&&E.Mv(z,x)}}},ke.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function ME(a,y){a=a.O.s;for(var E=a.length,x=y.length,b=0,z=null;b<E&&(z=a[b],!(z instanceof Wn&&z.data!==null));)b++,z=a[b];if(E-b!==x)return!0;if(z===null)return 0<x;for(var ee=0;b<E&&ee<x;){if(z=a[b],!(z instanceof Wn)||z.data!==y[ee])return!0;b++,ee++}return!1}function rp(a){if(a.type===Wn.Spot||a.type===Wn.Auto)return Math.min(a.O.length,1);if(a.type===Wn.Link){a=a.O;for(var y=a.length,E=0;E<y;E++){var x=a.M(E);if(!(x instanceof yr&&x.isPanelMain))break}return E}return a.type===Wn.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof Wn&&yd(a))?1:0}ke.mv=function(){for(var a=rp(this);this.O.length>a;)this.pc(this.O.length-1,!1);y1(this,this.itemArray)};function y1(a,y){var E=rp(a);if(y===null||y.length===0)for(;a.O.length>E;)a.pc(a.O.length-1,!1);else if(a.O.length<=E){E=y.length;for(var x=0;x<E;x++)Pm(a,y[x],x,!0)}else{x=E;for(var b=0;b<y.length;b++,x++){var z=y[b],ee=x<a.O.length?a.O.M(x):null;if(ee instanceof Wn){if(ee.data!==z){var re=Tv(a,ee.data),oe=Tv(a,z),ce=oe!==re;ce||(re=Av(a,re),ce=Av(a,oe)!==re),ce?(a.pc(x,!1),Pm(a,z,b,!1)):ee.data=z}}else Pm(a,z,b,!1)}for(;x<a.O.length;)a.pc(x,!1);a.$g=null,wv(a,E,0),Hl(a)||a.v(),a.graduatedIntervals=null,a.If()||Lm(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 Pm(a,y,E,x){if(!(y==null||0>E)){var b=Tv(a,y);if(b=Av(a,b),b!==null){if(Su(b),b=b.copy(),b.l&16777216){var z=a.ih();z!==null&&bv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new vi),a.ge.add(y,b)),z=E+rp(a),a.Gb(z,b),x&&(b.ub=y,wv(a,z,E),b.ub=null),b.data=y}}}function wv(a,y,E){for(a=a.O;y<a.length;){var x=a.M(y);if(x instanceof Wn){var b=y,z=E;x.type===Wn.TableRow?x.row=b:x.type===Wn.TableColumn&&(x.column=b),x.itemIndex=z}y++,E++}}function Tv(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=la(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 Av(a,y){var E=a.itemTemplateMap,x=null;return E!==null&&(x=E.I(y)),x===null&&(E!==null&&(x=E.I("")),x===null&&(S1||(S1=!0,gi('No item template Panel found for category "'+y+'" on '+a),gi(" Using default item template."),a=new Wn,y=new Eo,y.bind(new ha("text","",Ki)),a.add(y),E1=a),x=E1)),x}function Lm(a,y,E){var x=y.enabledChanged;if(x!==null&&x(y,E),y instanceof Wn){y=y.O.s,x=y.length;for(var b=0;b<x;b++){var z=y[b];E&&z instanceof Wn&&!z.isEnabled||Lm(a,z,E)}}}function pc(a,y){y.name=a,Ru.add(a,y)}zt.Object.defineProperties(Wn.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===Wn.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&&oi(a,">= 0",Wn,"padding"),a=new mr(a)):(0>a.left&&oi(a.left,">= 0",Wn,"padding:value.left"),0>a.right&&oi(a.right,">= 0",Wn,"padding:value.right"),0>a.top&&oi(a.top,">= 0",Wn,"padding:value.top"),0>a.bottom&&oi(a.bottom,">= 0",Wn,"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:ds},set:function(a){typeof a=="number"&&(a=new mr(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new ru),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 Jr)&&(a instanceof Jr&&a.freeze(),this.T===null&&(this.T=new ru),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 ru),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 E=a.length,x=0,b=0;b<E;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."),x+=z}if(x===0){if(y===null)return;a=null}}this.T===null&&(this.T=new ru),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 Jr)&&(a instanceof Jr&&a.freeze(),this.T===null&&(this.T=new ru),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 ru),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 E=a.length,x=0,b=0;b<E;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."),x+=z}if(x===0){if(y===null)return;a=null}}this.T===null&&(this.T=new ru),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 ru),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 E=this.diagram;E!==null&&this===E.grid&&hc(E),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 E=this.diagram;E!==null&&this===E.grid&&hc(E),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 qc),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),is(this)&&(a=this.part,a!==null&&No(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 qc),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),is(this)&&(a=this.part,a!==null&&No(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 qc),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 qc),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 qc,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 qc,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 qc,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 qc,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 ru),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new ru),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Dm},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new ru),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Dm},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new ru),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 ru),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 ru),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 E=this instanceof Bi&&!(this instanceof Hr);Su(this),this.ub=a;var x=this.diagram;x!==null&&(E?(E=x.partManager,this instanceof Jn?(y!==null&&E.bf.remove(y),a!==null&&E.bf.add(a,this)):this instanceof Bi&&(y!==null&&E.cf.remove(y),a!==null&&E.cf.add(a,this))):(E=this.panel,E!==null&&E.ge!==null&&(y!==null&&E.ge.remove(y),a!==null&&E.ge.add(a,this)))),this.g("data",y,a),x!==null&&x.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 of),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&ME(this,a)){var E=this.diagram;y!==a&&(E!==null&&y!==null&&dy(E.partManager,this,E),this.Hh=a,E!==null&&a!==null&&cy(E.partManager,this)),this.g("itemArray",y,a),E!==null&&E.undoManager.isUndoingRedoing||y1(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 vi}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Bi||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 E=a.iterator;E.next(););xr(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&&(xr(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 dr&&(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 E=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||E&&Lm(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))}}}),zt.Object.defineProperties(Wn,{Position:{get:function(){return Ru.I("Position")}},Horizontal:{get:function(){return Ru.I("Horizontal")}},Vertical:{get:function(){return Ru.I("Vertical")}},Spot:{get:function(){return Ru.I("Spot")}},Auto:{get:function(){return Ru.I("Auto")}},Table:{get:function(){return Ru.I("Table")}},Viewbox:{get:function(){return Ru.I("Viewbox")}},TableRow:{get:function(){return Ru.I("TableRow")}},TableColumn:{get:function(){return Ru.I("TableColumn")}},Link:{get:function(){return Ru.I("Link")}},Grid:{get:function(){return Ru.I("Grid")}},Graduated:{get:function(){return Ru.I("Graduated")}}}),Wn.prototype.rebuildItemElements=Wn.prototype.mv,Wn.prototype.findItemPanelForData=Wn.prototype.sx,Wn.prototype.updateTargetBindings=Wn.prototype.La,Wn.prototype.copyTemplate=Wn.prototype.Uy,Wn.prototype.graduatedValueForPoint=Wn.prototype.Gz,Wn.prototype.graduatedPointForValue=Wn.prototype.Fz,Wn.prototype.findColumnForLocalX=Wn.prototype.fz,Wn.prototype.findRowForLocalY=Wn.prototype.nz,Wn.prototype.addColumnDefinition=Wn.prototype.By,Wn.prototype.addRowDefinition=Wn.prototype.Hy,Wn.prototype.addRowColumnDefinition=Wn.prototype.Gy,Wn.prototype.removeColumnDefinition=Wn.prototype.jA,Wn.prototype.getColumnDefinition=Wn.prototype.Eb,Wn.prototype.removeRowDefinition=Wn.prototype.oA,Wn.prototype.getRowDefinition=Wn.prototype.Fb,Wn.prototype.removeAt=Wn.prototype.mb,Wn.prototype.remove=Wn.prototype.remove,Wn.prototype.insertAt=Wn.prototype.Gb,Wn.prototype.elt=Wn.prototype.M,Wn.prototype.add=Wn.prototype.add,Wn.prototype.findObject=Wn.prototype.fb,Wn.prototype.findInVisualTree=Wn.prototype.Nl,Wn.prototype.walkVisualTreeFrom=Wn.prototype.qm,Wn.prototype.findMainElement=Wn.prototype.Pb;var S1=!1,E1=null,Ru=new vi;Wn.className="Panel",Wn.definePanelLayout=pc,pc("Position",new vm),pc("Vertical",new Sm),pc("Auto",new xm),pc("Link",new Nm);function qc(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}qc.prototype.copy=function(){var a=new qc;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},qc.className="GradPanelSettings";function ru(){this.Pc=[],this.Oc=[],this.j=this.ob=Dm,this.hb=this.Hb=0,this.Qp=ds,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}ru.prototype.copy=function(a){for(var y=new ru,E=this.Pc,x=E.length,b=y.Pc,z=0;z<x;z++)if(E[z]!==void 0){var ee=E[z].copy();ee.wi(a),b[z]=ee}for(E=this.Oc,x=E.length,b=y.Oc,z=0;z<x;z++)E[z]!==void 0&&(ee=E[z].copy(),ee.wi(a),b[z]=ee);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},ru.className="TablePanelSettings";function xa(a){Lr(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Aa,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Cv,this.hg=fr,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))}xa.prototype.copy=function(){var a=new xa;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=ni(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Im(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=ni(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}ke=xa.prototype,ke.qb=function(a){a.classType===xa&&(this.sizing=a)},ke.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Ir(this)},ke.wi=function(a){this.Me=a},ke.Io=function(a){var y=0,E=this.Me;if(this.index!==a&&(a=this.separatorStroke,a===null&&E!==null&&(a=this.isRow?E.defaultRowSeparatorStroke:E.defaultColumnSeparatorStroke),a!==null&&(y=this.separatorStrokeWidth,isNaN(y)&&(E!==null?y=this.isRow?E.defaultRowSeparatorStrokeWidth:E.defaultColumnSeparatorStrokeWidth:y=0))),a=this.dg,a===null)if(E!==null)a=E.defaultSeparatorPadding;else return y;return y+(this.isRow?a.top:a.left)},ke.Wc=function(){var a=0,y=this.Me,E=0,x=this.isRow;if(y!==null&&y.type===Wn.Table)for(var b=x?y.rowDefs.length:y.colDefs.length,z=0;z<b;z++){var ee=x?y.rowDefs[z]:y.colDefs[z];if(ee!==void 0&&ee.oa!==0){E=ee.index;break}}if(this.index!==E&&(E=this.separatorStroke,E===null&&y!==null&&(E=x?y.defaultRowSeparatorStroke:y.defaultColumnSeparatorStroke),E!==null&&(a=this.separatorStrokeWidth,isNaN(a)&&(y!==null?a=x?y.defaultRowSeparatorStrokeWidth:y.defaultColumnSeparatorStrokeWidth:a=0))),x=this.dg,x===null)if(y!==null)x=y.defaultSeparatorPadding;else return a;return a+(this.isRow?x.top+x.bottom:x.left+x.right)},ke.Ob=function(a,y,E){var x=this.Me;if(x!==null&&(x.cb(wo,a,this,y,E,void 0,void 0),this.be!==null&&(y=x.diagram,y!==null&&!y.skipsModelSourceBindings&&(x=x.ih(),x!==null&&(y=x.data,y!==null)))))for(E=this.be.iterator;E.next();)E.value.sp(this,y,a,x)};function km(a){if(a.sizing===Cv){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}ke.bind=function(a,y,E,x){var b=null;return typeof a=="string"?b=new ha(a,y,E,x):b=a,b.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&v1(y)&<("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+b+" on "+a)),this.be===null&&(this.be=new Un),this.be.add(b),this},zt.Object.defineProperties(xa.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&&oi(a,">= 0",xa,"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&&oi(a,">= 0",xa,"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))&&oi(a,">= 0",xa,"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&&oi(a,">= 0",xa,"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 mr(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&&sf(a,"RowColumnDefinition.separatorStroke"),a instanceof Jr&&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 E=a.length,x=0,b=0;b<E;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."),x+=z}if(x===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&&sf(a,"RowColumnDefinition.background"),a instanceof Jr&&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}}}),xa.prototype.computeEffectiveSpacing=xa.prototype.Wc,xa.prototype.computeEffectiveSpacingTop=xa.prototype.Io;var Cv=new Mn(xa,"Default",0),op=new Mn(xa,"None",1),Dm=new Mn(xa,"ProportionalExtra",2);xa.className="RowColumnDefinition",xa.Default=Cv,xa.None=op,xa.ProportionalExtra=Dm;function yr(a,y){Rt.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)}en(yr,Rt),yr.prototype.cloneProtected=function(a){Rt.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=ni(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 Oh(a){a.Na===null?a.Na=new Pv:a.Na.nc&&(a.Na=a.Na.copy())}ke=yr.prototype,ke.th=function(){Rt.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},ke.qb=function(a){a===Rn||a===Mi||a===Pr||a===fr?this.geometryStretch=a:Rt.prototype.qb.call(this,a)},ke.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Ir(this)};function Kf(a,y,E,x){var b=E.length;if(!(4>b)){var z=x.measuredBounds,ee=Math.max(1,z.width);z=z.height;for(var re=E[0],oe=E[1],ce,fe,ye,Ne,Pe,Fe,We=0,gt=ci(),nt=2;nt<b;nt+=2)ce=E[nt],fe=E[nt+1],ye=ce-re,re=fe-oe,ye===0&&(ye=.001),Ne=re/ye,Pe=Math.atan2(re,ye),Fe=Math.sqrt(ye*ye+re*re),gt.push([ye,Pe,Ne,Fe]),We+=Fe,re=ce,oe=fe;re=E[0],oe=E[1],ye=x.measuredBounds.width,x instanceof yr&&(ye-=x.strokeWidth),1>ye&&(ye=1),b=E=ye,ce=ee/2,fe=ce!==0,nt=0,Fe=gt[nt],ye=Fe[0],Pe=Fe[1],Ne=Fe[2],Fe=Fe[3];for(var vt=0;.1<=We;){if(vt===0&&(fe?(b=E,b-=ce,We-=ce,fe=!1):b=E,b===0&&(b=1)),b>We){pi(gt);return}b>Fe?(vt=b-Fe,b=Fe):vt=0;var St=Math.sqrt(b*b/(1+Ne*Ne));if(0>ye&&(St=-St),re+=St,oe+=Ne*St,a.translate(re,oe),a.rotate(Pe),a.translate(-(ee/2),-(z/2)),vt===0&&x.hh(a,y),a.translate(ee/2,z/2),a.rotate(-Pe),a.translate(-re,-oe),We-=b,Fe-=b,vt!==0){if(nt++,nt===gt.length){pi(gt);return}Fe=gt[nt],ye=Fe[0],Pe=Fe[1],Ne=Fe[2],Fe=Fe[3],b=vt}}pi(gt)}}ke.hh=function(a,y){var E=this.xc,x=this.Ui;if(E!==null||x!==null){var b=this.ua;if(b!==null){a.yc();var z=this.actualBounds,ee=this.naturalBounds;x!==null&&$o(this,a,x,!0,!1,ee,z);var re=this.part,oe=this.ig;if(E===null||oe!==0||re===null||!this.isPanelMain&&re.Pb()!==this||(oe=re.type===Wn.Link&&re instanceof Hr&&re.category==="Selection"&&re.adornedObject instanceof yr&&re.adornedPart.Pb()===re.adornedObject?re.adornedObject.strokeWidth:0),oe===0&&(E=null),E!==null&&oe!==0&&($o(this,a,E,!1,!1,ee,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,E===null||x!==null&&x!=="transparent"||(re=!1),ee=!1,oe=this.strokeDashArray,oe!==null&&(ee=!0,a.js(oe,this.strokeDashOffset)),b.type===Qn.j)a.beginPath(),a.moveTo(b.startX,b.startY),a.lineTo(b.endX,b.endY),E!==null&&a.jk(),a.Se();else if(b.type===Qn.u){var ce=b.startX;oe=b.startY;var fe=b.endX,ye=b.endY;b=Math.min(ce,fe);var Ne=Math.min(oe,ye);ce=Math.abs(fe-ce),oe=Math.abs(ye-oe),a.beginPath(),a.rect(b,Ne,ce,oe),x!==null&&a.ng(x),E!==null&&(re&&z&&Ic(a),a.jk(),re&&z&&Qc(a)),a.Se()}else if(b.type===Qn.F)ce=b.startX,oe=b.startY,fe=b.endX,ye=b.endY,b=Math.abs(fe-ce)/2,Ne=Math.abs(ye-oe)/2,ce=Math.min(ce,fe)+b,oe=Math.min(oe,ye)+Ne,a.beginPath(),a.moveTo(ce,oe-Ne),a.bezierCurveTo(ce+Ft.wg*b,oe-Ne,ce+b,oe-Ft.wg*Ne,ce+b,oe),a.bezierCurveTo(ce+b,oe+Ft.wg*Ne,ce+Ft.wg*b,oe+Ne,ce,oe+Ne),a.bezierCurveTo(ce-Ft.wg*b,oe+Ne,ce-b,oe+Ft.wg*Ne,ce-b,oe),a.bezierCurveTo(ce-b,oe-Ft.wg*Ne,ce-Ft.wg*b,oe-Ne,ce,oe-Ne),a.closePath(),x!==null&&a.ng(x),E!==null&&(re&&z&&Ic(a),a.jk(),re&&z&&Qc(a)),a.Se();else if(b.type===Qn.o)for(b=b.figures,oe=b.length,Ne=0;Ne<oe;Ne++){ce=b.s[Ne],a.beginPath(),a.moveTo(ce.startX,ce.startY),fe=ce.segments.s,ye=fe.length;for(var Pe=null,Fe=0;Fe<ye;Fe++){var We=fe[Fe];switch(We.type){case Po:a.moveTo(We.endX,We.endY);break;case mo:a.lineTo(We.endX,We.endY);break;case Ba:a.bezierCurveTo(We.point1X,We.point1Y,We.point2X,We.point2Y,We.endX,We.endY);break;case Fs:a.quadraticCurveTo(We.point1X,We.point1Y,We.endX,We.endY);break;case ea:if(We.radiusX===We.radiusY){var gt=Math.PI/180;a.arc(We.point1X,We.point1Y,We.radiusX,We.startAngle*gt,(We.startAngle+We.sweepAngle)*gt,0>We.sweepAngle,Pe!==null?Pe.endX:ce.startX,Pe!==null?Pe.endY:ce.startY)}else if(Pe=as(We,ce),gt=Pe.length,gt===0)a.lineTo(We.centerX,We.centerY);else for(var nt=0;nt<gt;nt++){var vt=Pe[nt];nt===0&&a.lineTo(vt[0],vt[1]),a.bezierCurveTo(vt[2],vt[3],vt[4],vt[5],vt[6],vt[7])}break;case el:if(nt=gt=0,Pe!==null&&Pe.type===ea){if(Pe=as(Pe,ce),vt=Pe.length,vt===0){a.lineTo(We.endX,We.endY);break}Pe=Pe[vt-1]||null,Pe!==null&&(gt=Pe[6],nt=Pe[7])}else gt=Pe!==null?Pe.endX:ce.startX,nt=Pe!==null?Pe.endY:ce.startY;if(Pe=Ns(We,ce,gt,nt),gt=Pe.length,gt===0){a.lineTo(We.endX,We.endY);break}for(nt=0;nt<gt;nt++)vt=Pe[nt],a.bezierCurveTo(vt[2],vt[3],vt[4],vt[5],vt[6],vt[7]);break;default:lt("Segment not of valid type: "+We.type)}We.isClosed&&a.closePath(),Pe=We}fe=ce.isFilled,z?ce.isShadowed?(fe===!0&&x!=="transparent"&&x!==null&&a.ng(x,ce.isEvenOdd),E!==null&&(fe&&re&&Ic(a),a.jk(),fe&&re&&Qc(a))):(Ic(a),fe&&x!=="transparent"&&x!==null&&a.ng(x,ce.isEvenOdd),E!==null&&a.jk(),Qc(a)):(fe&&x!==null&&a.ng(x,ce.isEvenOdd),E!==null&&a.jk()),a.Se(Ne)}if(ee&&a.fs(),this.pathPattern!==null){if(E=this.pathPattern,E.measure(1/0,1/0),x=E.measuredBounds,E.arrange(0,0,x.width,x.height),z=this.geometry,a.save(),a.beginPath(),x=ci(),z.type===Qn.j)x.push(z.startX),x.push(z.startY),x.push(z.endX),x.push(z.endY),Kf(a,y,x,E);else if(z.type===Qn.o)for(z=z.figures.iterator;z.next();){for(re=z.value,x.length=0,x.push(re.startX),x.push(re.startY),ee=re.startX,b=re.startY,oe=ee,Ne=b,ce=re.segments.s,fe=ce.length,ye=0;ye<fe;ye++){switch(Fe=ce[ye],Fe.type){case Po:Kf(a,y,x,E),x.length=0,x.push(Fe.endX),x.push(Fe.endY),ee=Fe.endX,b=Fe.endY,oe=ee,Ne=b;break;case mo:x.push(Fe.endX),x.push(Fe.endY),ee=Fe.endX,b=Fe.endY;break;case Ba:Ft.Qe(ee,b,Fe.point1X,Fe.point1Y,Fe.point2X,Fe.point2Y,Fe.endX,Fe.endY,.5,x),ee=Fe.endX,b=Fe.endY;break;case Fs:Ft.ep(ee,b,Fe.point1X,Fe.point1Y,Fe.endX,Fe.endY,.5,x),ee=Fe.endX,b=Fe.endY;break;case ea:if(We=as(Fe,re),Pe=We.length,Pe===0){x.push(Fe.centerX),x.push(Fe.centerY),ee=Fe.centerX,b=Fe.centerY;break}for(gt=0;gt<Pe;gt++)nt=We[gt],Ft.Qe(ee,b,nt[2],nt[3],nt[4],nt[5],nt[6],nt[7],.5,x),ee=nt[6],b=nt[7];break;case el:if(We=Ns(Fe,re,ee,b),Pe=We.length,Pe===0){x.push(Fe.endX),x.push(Fe.endY),ee=Fe.endX,b=Fe.endY;break}for(gt=0;gt<Pe;gt++)nt=We[gt],Ft.Qe(ee,b,nt[2],nt[3],nt[4],nt[5],nt[6],nt[7],.5,x),ee=nt[6],b=nt[7];break;default:lt("Segment not of valid type: "+Fe.type)}Fe.isClosed&&(x.push(oe),x.push(Ne),Kf(a,y,x,E))}Kf(a,y,x,E)}else if(z.type===Qn.u)x.push(z.startX),x.push(z.startY),x.push(z.endX),x.push(z.startY),x.push(z.endX),x.push(z.endY),x.push(z.startX),x.push(z.endY),x.push(z.startX),x.push(z.startY),Kf(a,y,x,E);else if(z.type===Qn.F){if(b=new pa,b.startX=z.endX,b.startY=(z.startY+z.endY)/2,ee=new jr(ea),ee.startAngle=0,ee.sweepAngle=360,ee.centerX=(z.startX+z.endX)/2,ee.centerY=(z.startY+z.endY)/2,ee.radiusX=Math.abs(z.startX-z.endX)/2,ee.radiusY=Math.abs(z.startY-z.endY)/2,b.add(ee),z=as(ee,b),re=z.length,re===0)x.push(ee.centerX),x.push(ee.centerY);else for(ee=b.startX,b=b.startY,oe=0;oe<re;oe++)Ne=z[oe],Ft.Qe(ee,b,Ne[2],Ne[3],Ne[4],Ne[5],Ne[6],Ne[7],.5,x),ee=Ne[6],b=Ne[7];Kf(a,y,x,E)}pi(x),a.restore(),a.Vc(!1)}}}},ke.kk=function(a,y,E){return!Rt.prototype.kk.call(this,a,y,E)||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)},ke.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:Rt.prototype.nk.call(this,a)},ke.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("path");for(var E=0;E<a.length;E++)a[E].setAttributeNS(null,"filter",y)}},ke.ga=function(a,y){if(y===void 0&&(y=new dt),a instanceof tn){a.Mc()&<("getDocumentPoint Spot must be a real, specific Spot, not: "+a.toString());var E=this.naturalBounds,x=this.strokeWidth;y.h(a.x*(E.width+x)-x/2+E.x+a.offsetX,a.y*(E.height+x)-x/2+E.y+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},ke.mi=function(a){a===void 0&&(a=new pn);var y=this.naturalBounds,E=this.oe;y=pn.allocAt(y.x,y.y,y.width,y.height);var x=this.strokeWidth;return y.Bc(x/2,x/2),x=dt.allocAt(y.x,y.y).transform(E),a.h(x.x,x.y,0,0),x.h(y.right,y.y).transform(E),po(a,x.x,x.y,0,0),x.h(y.right,y.bottom).transform(E),po(a,x.x,x.y,0,0),x.h(y.x,y.bottom).transform(E),po(a,x.x,x.y,0,0),pn.free(y),dt.free(x),a},ke.gh=function(a,y){var E=this.geometry;if(E===null||this.fill===null&&this.stroke===null)return!1;var x=E.bounds,b=this.strokeWidth/2;E.type!==Qn.j||y||(b+=2);var z=pn.alloc();if(z.assign(x),z.Bc(b+2,b+2),!z.ca(a))return pn.free(z),!1;if(x=b+1e-4,E.type===Qn.j)return this.stroke===null||(x=(E.endX-E.startX)*(a.x-E.startX)+(E.endY-E.startY)*(a.y-E.startY),0>(E.startX-E.endX)*(a.x-E.endX)+(E.startY-E.endY)*(a.y-E.endY)||0>x)?!1:(pn.free(z),Ft.Yb(E.startX,E.startY,E.endX,E.endY,b,a.x,a.y));if(E.type===Qn.u){y=E.startX;var ee=E.startY,re=E.endX;if(E=E.endY,z.x=Math.min(y,re),z.y=Math.min(ee,E),z.width=Math.abs(re-y),z.height=Math.abs(E-ee),this.fill===null){if(z.Bc(-x,-x),z.ca(a))return pn.free(z),!1;z.Bc(x,x)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),pn.free(z),a}if(E.type===Qn.F){ee=E.startX,b=E.startY,re=E.endX;var oe=E.endY;if(E=Math.min(ee,re),y=Math.min(b,oe),ee=Math.abs(re-ee)/2,b=Math.abs(oe-b)/2,E=a.x-(E+ee),y=a.y-(y+b),this.fill===null){if(ee-=x,b-=x,0>=ee||0>=b||1>=E*E/(ee*ee)+y*y/(b*b))return pn.free(z),!1;ee+=x,b+=x}return this.stroke!==null&&(ee+=x,b+=x),pn.free(z),0>=ee||0>=b?!1:1>=E*E/(ee*ee)+y*y/(b*b)}if(E.type===Qn.o)return pn.free(z),this.fill===null?Rl(E,a.x,a.y,b):Cs(E,a,b,1<this.strokeWidth,y);lt("Unknown Geometry type: "+E.type)},ke.Wl=function(a,y,E,x){var b=this.desiredSize,z=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var ee=this.geometry.bounds;else{var re=this.figure,oe=Mv[re];if(oe===void 0){var ce=Ft.Ze[re];typeof ce=="string"&&(ce=Ft.Ze[ce]),typeof ce=="function"?(oe=ce(null,100,100),Mv[re]=oe):lt("Unsupported Figure: "+re)}ee=oe.bounds}re=ee.width,oe=ee.height,ce=ee.width;var fe=ee.height;switch(rl(this,!0)){case Rn:x=E=0;break;case Gn:ce=Math.max(a-z,0),fe=Math.max(y-z,0);break;case Oi:ce=Math.max(a-z,0),x=0;break;case Vi:E=0,fe=Math.max(y-z,0)}isFinite(b.width)&&(ce=b.width),isFinite(b.height)&&(fe=b.height);var ye=this.maxSize,Ne=this.minSize;switch(E=Math.max(E-z,Ne.width),x=Math.max(x-z,Ne.height),ce=Math.min(ye.width,ce),fe=Math.min(ye.height,fe),ce=isFinite(ce)?Math.max(E,ce):Math.max(re,E),fe=isFinite(fe)?Math.max(x,fe):Math.max(oe,x),E=Nv(this),E){case Rn:break;case Gn:re=ce,oe=fe;break;case Mi:E=Math.min(ce/re,fe/oe),isFinite(E)||(E=1),re*=E,oe*=E;break;default:lt(E+" is not a valid geometryStretch.")}this.Rd!==null?(re===0&&(re=.001),oe===0&&(oe=.001),E=this.Rd!==null?this.Rd:this.ua,ee=E.bounds,x=re/ee.width,ee=oe/ee.height,isFinite(x)||(x=1),isFinite(ee)||(ee=1),this.ua=x===1&&ee===1?E:E.copy().scale(x,ee)):this.ua!==null&&Ft.$(this.ua.Sk,a-z)&&Ft.$(this.ua.Rk,y-z)||(this.ua=yr.makeGeometry(this,re,oe)),ee=this.ua.bounds,a===1/0||y===1/0?this.Ge(ee.x-z/2,ee.y-z/2,a===0&&re===0?0:ee.width+z,y===0&&oe===0?0:ee.height+z):this.Ge(-(z/2),-(z/2),ce+z,fe+z),b.w()?(ce=b.width,fe=b.height,ce=Math.min(ye.width,ce),fe=Math.min(ye.height,fe),ce=Math.max(Ne.width,ce),fe=Math.max(Ne.height,fe),this.dc.h(0,0,ce,fe)):this.dc.assign(ee)};function Nv(a){var y=a.geometryStretch;return a.Rd!==null?y===fr?Gn:y:y===fr?Mv[a.figure].defaultStretch:y}ke.eh=function(a,y,E,x){Is(this,a,y,E,x)},ke.rs=function(a,y,E){return this.Sj(a.x,a.y,y.x,y.y,E)},ke.Sj=function(a,y,E,x,b){var z=this.transform,ee=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*ee,oe=-z.m12*ee,ce=-z.m21*ee,fe=z.m11*ee,ye=ee*(z.m21*z.dy-z.m22*z.dx),Ne=ee*(z.m12*z.dx-z.m11*z.dy);z=a*re+y*ce+ye,ee=a*oe+y*fe+Ne,re=E*re+x*ce+ye,oe=E*oe+x*fe+Ne,ye=this.ig/2,ce=this.ua,ce===null&&(this.measure(1/0,1/0),ce=this.ua);var Pe=ce.bounds;if(fe=!1,ce.type===Qn.j)if(1.5>=this.strokeWidth)fe=Ft.Ve(ce.startX,ce.startY,ce.endX,ce.endY,z,ee,re,oe,b);else{if(ce.startX===ce.endX?(x=ye,fe=0):(y=(ce.endY-ce.startY)/(ce.endX-ce.startX),fe=ye/Math.sqrt(1+y*y),x=fe*y),y=ci(),a=new dt,Ft.Ve(ce.startX+x,ce.startY+fe,ce.endX+x,ce.endY+fe,z,ee,re,oe,a)&&y.push(a),a=new dt,Ft.Ve(ce.startX-x,ce.startY-fe,ce.endX-x,ce.endY-fe,z,ee,re,oe,a)&&y.push(a),a=new dt,Ft.Ve(ce.startX+x,ce.startY+fe,ce.startX-x,ce.startY-fe,z,ee,re,oe,a)&&y.push(a),a=new dt,Ft.Ve(ce.endX+x,ce.endY+fe,ce.endX-x,ce.endY-fe,z,ee,re,oe,a)&&y.push(a),re=y.length,re===0)return pi(y),!1;for(fe=!0,oe=1/0,x=0;x<re;x++)a=y[x],E=(a.x-z)*(a.x-z)+(a.y-ee)*(a.y-ee),E<oe&&(oe=E,b.x=a.x,b.y=a.y);pi(y)}else if(ce.type===Qn.u)fe=Ft.Ff(Pe.x-ye,Pe.y-ye,Pe.x+Pe.width+ye,Pe.y+Pe.height+ye,z,ee,re,oe,b);else if(ce.type===Qn.F){y=pn.allocAt(Pe.x,Pe.y,Pe.width,Pe.height).Bc(ye,ye);e:if(y.width===0)fe=Ft.Ve(y.x,y.y,y.x,y.y+y.height,z,ee,re,oe,b);else if(y.height===0)fe=Ft.Ve(y.x,y.y,y.x+y.width,y.y,z,ee,re,oe,b);else{if(a=y.width/2,ce=y.height/2,x=y.x+a,fe=y.y+ce,E=9999,z!==re&&(E=(ee-oe)/(z-re)),9999>Math.abs(E)){if(oe=ee-fe-E*(z-x),0>a*a*E*E+ce*ce-oe*oe){b.x=NaN,b.y=NaN,fe=!1;break e}ye=Math.sqrt(a*a*E*E+ce*ce-oe*oe),re=(-(a*a*E*oe)+a*ce*ye)/(ce*ce+a*a*E*E)+x,a=(-(a*a*E*oe)-a*ce*ye)/(ce*ce+a*a*E*E)+x,ce=E*(re-x)+oe+fe,oe=E*(a-x)+oe+fe,Math.abs((z-re)*(z-re))+Math.abs((ee-ce)*(ee-ce))<Math.abs((z-a)*(z-a))+Math.abs((ee-oe)*(ee-oe))?(b.x=re,b.y=ce):(b.x=a,b.y=oe)}else{if(re=ce*ce,oe=z-x,re-=re/(a*a)*oe*oe,0>re){b.x=NaN,b.y=NaN,fe=!1;break e}oe=Math.sqrt(re),re=fe+oe,oe=fe-oe,Math.abs(re-ee)<Math.abs(oe-ee)?(b.x=z,b.y=re):(b.x=z,b.y=oe)}fe=!0}pn.free(y)}else if(ce.type===Qn.o){Ne=dt.alloc();var Fe=re-z,We=oe-ee,gt=Fe*Fe+We*We,nt=z,vt=ee;if(0<gt&&Pe.contains(nt,vt)&&(Ne.x=nt,Ne.y=vt,this.ca(Ne)))for(Fe!==0&&.5>Math.abs(Fe)?(We*=.5/Fe,Fe=.5):We!==0&&.5>Math.abs(We)&&(Fe*=.5/We,We=.5),nt-=Fe,vt-=We;Pe.contains(nt,vt);)nt-=Fe,vt-=We;for(b.x=re,b.y=oe,We=0;We<ce.figures.count;We++){var St=ce.figures.s[We],Tt=St.isFilled?nt:z,Dt=St.isFilled?vt:ee,Xt=St.segments;Pe=St.startX,Fe=St.startY;for(var ai=Pe,Ci=Fe,Ei=0;Ei<Xt.count;Ei++){var Xn=Xt.s[Ei],In=Xn.type,cr=Xn.endX,$i=Xn.endY,Wr=!1;switch(In){case Po:ai=cr,Ci=$i;break;case mo:Wr=Rm(Pe,Fe,cr,$i,Tt,Dt,re,oe,Ne);break;case Ba:Wr=Ft.Eo(Pe,Fe,Xn.point1X,Xn.point1Y,Xn.point2X,Xn.point2Y,cr,$i,Tt,Dt,re,oe,.6,Ne);break;case Fs:Wr=Ft.Eo(Pe,Fe,Pe+2/3*(Xn.point1X-Pe),Fe+2/3*(Xn.point1Y-Fe),cr+2/3*(Xn.point1X-cr),$i+2/3*(Xn.point1Y-$i),cr,$i,Tt,Dt,re,oe,.6,Ne);break;case ea:case el:In=Xn.type===ea?as(Xn,St):Ns(Xn,St,Pe,Fe);var vo=In.length;if(vo===0){Wr=Rm(Pe,Fe,Xn.type===ea?Xn.centerX:Xn.endX,Xn.type===ea?Xn.centerY:Xn.endY,Tt,Dt,re,oe,Ne);break}for($i=null,cr=0;cr<vo;cr++){if($i=In[cr],cr===0&&Rm(Pe,Fe,$i[0],$i[1],Tt,Dt,re,oe,Ne)){var Oa=Om(Tt,Dt,Ne,gt,b);Oa<gt&&(gt=Oa,fe=!0)}Ft.Eo($i[0],$i[1],$i[2],$i[3],$i[4],$i[5],$i[6],$i[7],Tt,Dt,re,oe,.6,Ne)&&(Oa=Om(Tt,Dt,Ne,gt,b),Oa<gt&&(gt=Oa,fe=!0))}cr=$i[6],$i=$i[7];break;default:lt("Unknown Segment type: "+In)}Pe=cr,Fe=$i,Wr&&(Wr=Om(Tt,Dt,Ne,gt,b),Wr<gt&&(gt=Wr,fe=!0)),Xn.isClosed&&(cr=ai,$i=Ci,Rm(Pe,Fe,cr,$i,Tt,Dt,re,oe,Ne)&&(Xn=Om(Tt,Dt,Ne,gt,b),Xn<gt&&(gt=Xn,fe=!0)))}}z=E-a,ee=x-y,re=Math.sqrt(z*z+ee*ee),re!==0&&(z/=re,ee/=re),b.x-=z*ye,b.y-=ee*ye,dt.free(Ne)}else lt("Unknown Geometry type: "+ce.type);return fe?(this.transform.Ga(b),!0):!1};function Om(a,y,E,x,b){return a=E.x-a,y=E.y-y,y=a*a+y*y,y<x?(b.x=E.x,b.y=E.y,y):x}function Rm(a,y,E,x,b,z,ee,re,oe){if(Ft.$(a,E)&&Ft.$(y,x)||Ft.$(b,ee)&&Ft.$(z,re))return!1;var ce=!1,fe=(b-ee)*(y-x)-(z-re)*(a-E);return fe===0?!1:(oe.x=((b*re-z*ee)*(a-E)-(b-ee)*(a*x-y*E))/fe,oe.y=((b*re-z*ee)*(y-x)-(z-re)*(a*x-y*E))/fe,(a>E?a-E:E-a)<(y>x?y-x:x-y)?(a=y<x?y:x,y=y<x?x:y,(oe.y>a||Ft.$(oe.y,a))&&(oe.y<y||Ft.$(oe.y,y))&&(ce=!0)):(y=a<E?a:E,a=a<E?E:a,(oe.x>y||Ft.$(oe.x,y))&&(oe.x<a||Ft.$(oe.x,a))&&(ce=!0)),ce)}ke.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var E=this.ua;E===null&&(this.measure(1/0,1/0),E=this.ua),E=E.bounds;var x=this.strokeWidth/2,b=!1,z=dt.alloc();return z.h(E.x-x,E.y-x),a.ca(y.Ga(z))&&(z.h(E.x-x,E.bottom+x),a.ca(y.Ga(z))&&(z.h(E.right+x,E.bottom+x),a.ca(y.Ga(z))&&(z.h(E.right+x,E.y-x),a.ca(y.Ga(z))&&(b=!0)))),dt.free(z),b},ke.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var E=ir.alloc();E.set(y),E.Vj();var x=a.left,b=a.right,z=a.top;a=a.bottom;var ee=dt.alloc();if(ee.h(x,z),E.Ga(ee),this.gh(ee,!0)||(ee.h(b,z),E.Ga(ee),this.gh(ee,!0))||(ee.h(x,a),E.Ga(ee),this.gh(ee,!0))||(ee.h(b,a),E.Ga(ee),this.gh(ee,!0)))return dt.free(ee),!0;var re=dt.alloc(),oe=dt.alloc();return E.set(y),E.bv(this.transform),E.Vj(),re.x=b,re.y=z,re.transform(E),ee.x=x,ee.y=z,ee.transform(E),y=!1,Rh(this,ee,re,oe)?y=!0:(ee.x=b,ee.y=a,ee.transform(E),Rh(this,ee,re,oe)?y=!0:(re.x=x,re.y=a,re.transform(E),Rh(this,ee,re,oe)?y=!0:(ee.x=x,ee.y=z,ee.transform(E),Rh(this,ee,re,oe)&&(y=!0)))),dt.free(ee),ir.free(E),dt.free(re),dt.free(oe),y};function Rh(a,y,E,x){if(!a.rs(y,E,x))return!1;a=y.x,y=y.y;var b=E.x,z=E.y;return E=x.x,x=x.y,a===b?(y<z?(a=y,y=z):a=z,x>=a&&x<=y):(a<b?(x=a,a=b):x=b,E>=x&&E<=a)}ke.tx=function(a,y,E){function x(gt,nt){for(var vt=gt.length,St=0;St<vt;St+=2)if(nt.zd(gt[St],gt[St+1])>b)return!0;return!1}if(E&&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(!E){var ee=y.bounds,re=ee.x,oe=ee.y,ce=ee.x+ee.width;if(ee=ee.y+ee.height,uo(a.x,a.y,re,oe)<=b&&uo(a.x,a.y,ce,oe)<=b&&uo(a.x,a.y,re,ee)<=b&&uo(a.x,a.y,ce,ee)<=b)return!0}if(re=y.startX,oe=y.startY,ce=y.endX,ee=y.endY,y.type===Qn.j){if(E=(re-ce)*(a.x-ce)+(oe-ee)*(a.y-ee),Cr(a.x,a.y,re,oe,ce,ee)<=(0<=(ce-re)*(a.x-re)+(ee-oe)*(a.y-oe)&&0<=E?b:z))return!0}else{if(y.type===Qn.u)return y=!1,E&&(y=Cr(a.x,a.y,re,oe,re,ee)<=b||Cr(a.x,a.y,re,oe,ce,oe)<=b||Cr(a.x,a.y,ce,oe,ce,ee)<=b||Cr(a.x,a.y,re,ee,ce,ee)<=b),y;if(y.type===Qn.F){y=a.x-(re+ce)/2,z=a.y-(oe+ee)/2;var fe=Math.abs(ce-re)/2,ye=Math.abs(ee-oe)/2;if(fe===0||ye===0)return Cr(a.x,a.y,re,oe,ce,ee)<=b;if(E){if(a=Ft.$y(fe,ye,y,z),a*a<=b)return!0}else return!(uo(y,z,-fe,0)>=b||uo(y,z,0,-ye)>=b||uo(y,z,0,ye)>=b||uo(y,z,fe,0)>=b)}else if(y.type===Qn.o){if(ce=y.bounds,z=ce.x,re=ce.y,oe=ce.x+ce.width,ce=ce.y+ce.height,a.x>oe&&a.x<z&&a.y>ce&&a.y<re&&Cr(a.x,a.y,z,re,z,ce)>b&&Cr(a.x,a.y,z,re,oe,re)>b&&Cr(a.x,a.y,oe,ce,z,ce)>b&&Cr(a.x,a.y,oe,ce,oe,re)>b)return!1;if(z=Math.sqrt(b),E){if(this.fill===null?Rl(y,a.x,a.y,z):Cs(y,a,z,!0,!1))return!0}else{for(E=y.figures,y=0;y<E.count;y++){if(z=E.s[y],ee=z.startX,fe=z.startY,a.zd(ee,fe)>b)return!1;for(re=z.segments.s,oe=re.length,ce=0;ce<oe;ce++)switch(ye=re[ce],ye.type){case Po:case mo:if(ee=ye.endX,fe=ye.endY,a.zd(ee,fe)>b)return!1;break;case Ba:var Ne=ci();if(Ft.Qe(ee,fe,ye.point1X,ye.point1Y,ye.point2X,ye.point2Y,ye.endX,ye.endY,.8,Ne),ee=x(Ne,a),pi(Ne),ee||(ee=ye.endX,fe=ye.endY,a.zd(ee,fe)>b))return!1;break;case Fs:if(Ne=ci(),Ft.ep(ee,fe,ye.point1X,ye.point1Y,ye.endX,ye.endY,.8,Ne),ee=x(Ne,a),pi(Ne),ee||(ee=ye.endX,fe=ye.endY,a.zd(ee,fe)>b))return!1;break;case ea:case el:Ne=ye.type===ea?as(ye,z):Ns(ye,z,ee,fe);var Pe=Ne.length;if(Pe===0){if(ee=ye.type===ea?ye.centerX:ye.endX,fe=ye.type===ea?ye.centerY:ye.endY,a.zd(ee,fe)>b)return!1;break}ye=null;for(var Fe=ci(),We=0;We<Pe;We++)if(ye=Ne[We],Fe.length=0,Ft.Qe(ye[0],ye[1],ye[2],ye[3],ye[4],ye[5],ye[6],ye[7],.8,Fe),x(Fe,a))return pi(Fe),!1;pi(Fe),ye!==null&&(ee=ye[6],fe=ye[7]);break;default:lt("Unknown Segment type: "+ye.type)}}return!0}}}return!1},ke.qc=function(){this.ua=null},ke.kq=function(){return this.ig};function x1(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=gp,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=Ha):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new tn(1-Ha.x,Ha.y)))}yr.makeGeometry=function(a,y,E){if(a.toArrow!=="None")var x=Dc[a.toArrow];else a.fromArrow!=="None"?x=Dc[a.fromArrow]:(x=Ft.Ze[a.figure],typeof x=="string"&&(x=Ft.Ze[x]),x===void 0&<("Unknown Shape.figure: "+a.figure),x=x(a,y,E),x.Sk=y,x.Rk=E);if(x===null){var b=Ft.Ze.Rectangle;typeof b=="function"&&(x=b(a,y,E))}return x};function b1(a){var y=Dc[a];if(y===void 0){var E=a.toLowerCase();if(E==="none")return"None";if(y=Dc[E],y===void 0){var x=null,b;for(b in Ft.um)if(b.toLowerCase()===E){x=b;break}if(x!==null)return a=Qn.parse(Ft.um[x],!1),Dc[x]=a,E!==x&&(Dc[E]=x),x}}return typeof y=="string"?y:y instanceof Qn?a:null}zt.Object.defineProperties(yr.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(a){var y=this.ua,E=this.Rd;if(y!==a){a!==null?this.Rd=this.ua=a.freeze():this.Rd=this.ua=null;var x=this.part;x!==null&&(x.ag=NaN),this.v(),this.g("geometry",y||E,a),is(this)&&(a=this.part,a!==null&&No(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=Qn.parse(a);var y=a.normalize();this.geometry=a,this.position=a=dt.allocAt(-y.x,-y.y),dt.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&&sf(a,"Shape.fill"),a instanceof Jr&&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&&sf(a,"Shape.stroke"),a instanceof Jr&&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 E=this.part;E!==null&&(E.ag=NaN),this.g("strokeWidth",y,a)}else oi(a,"value >= 0",yr,"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"?oi(a,'"butt", "round", or "square"',yr,"strokeCap"):(Oh(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"?oi(a,'"miter", "bevel", or "round"',yr,"strokeJoin"):(Oh(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){Oh(this),this.Na.Jr=a,this.N();var E=this.part;E!==null&&(E.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 E=a.length,x=0,b=0;b<E;b++){var z=a[b];0<=z&&isFinite(z)||lt("strokeDashArray:value "+z+" at index "+b+" must be a positive number or zero."),x+=z}if(x===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&&(Oh(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 E=Ft.Ze[a];typeof E=="function"?E=a:(E=Ft.Ze[a.toLowerCase()])||lt("Unknown Shape.figure: "+a),y!==E&&(a=this.part,a!==null&&(a.ag=NaN),this.an=E,this.Rd=null,this.qc(),this.v(),this.g("figure",y,E))}}},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 E=b1(a);E===null?lt("Unknown Shape.toArrow: "+a):y!==E&&(this.Ua===null&&(this.Ua=new Vd),this.Ua.V=E,this.Rd=null,this.qc(),this.v(),x1(this),this.g("toArrow",y,E))}}},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 E=b1(a);E===null?lt("Unknown Shape.fromArrow: "+a):y!==E&&(this.Ua===null&&(this.Ua=new Vd),this.Ua.j=E,this.Rd=null,this.qc(),this.v(),x1(this),this.g("fromArrow",y,E))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:Aa},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Oh(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:Aa},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Oh(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&&(Oh(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:fr},set:function(a){var y=this.geometryStretch;y!==a&&(Oh(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 Oc),this.fa.Tk=a;var E=this.diagram;E!==null&&this.panel===E.grid&&hc(E),this.v(),E=this.panel,E!==null&&(E.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 Oc),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 Oc),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 Oc),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),yr.prototype.intersectsRect=yr.prototype.Yc,yr.prototype.containedInRect=yr.prototype.fh,yr.prototype.getNearestIntersectionPoint=yr.prototype.rs,yr.prototype.getDocumentBounds=yr.prototype.mi,yr.prototype.getDocumentPoint=yr.prototype.ga;var Dc=new Li,Mv=new Li;yr.className="Shape",yr.getFigureGenerators=function(){var a=new vi,y;for(y in Ft.Ze)y!==y.toLowerCase()&&a.add(y,Ft.Ze[y]);return a.freeze(),a},yr.defineFigureGenerator=function(a,y){var E=a.toLowerCase(),x=Ft.Ze;x[a]=y,x[E]=a},yr.getArrowheadGeometries=function(){var a=new vi;for(x in Ft.um)if(Dc[x]===void 0){var y=Qn.parse(Ft.um[x],!1);Dc[x]=y,y=x.toLowerCase(),y!==x&&(Dc[y]=x)}for(var E in Dc)if(E!==E.toLowerCase()){var x=Dc[E];x instanceof Qn&&a.add(E,x)}return a.freeze(),a},yr.defineArrowheadGeometry=function(a,y){var E=null;typeof y=="string"?E=Qn.parse(y,!1):E=y,y=a.toLowerCase(),y!=="none"&&a!==y||lt("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var x=Dc;x[a]=E,x[y]=a};function Pv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=fr,this.gg=this.fg=Aa}Pv.prototype.copy=function(){var a=new Pv;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 Eo(a,y){return Rt.call(this),zm||(ol=Ko?new yu(null).context:null,zm=!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}en(Eo,Rt),Eo.prototype.cloneProtected=function(a){Rt.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 mc(a){a.da===null?a.da=new Fv:a.da.nc&&(a.da=a.da.copy())}ke=Eo.prototype,ke.th=function(){Rt.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function w1(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}ke.qb=function(a){a.classType===Eo?this.wrap=a:Rt.prototype.qb.call(this,a)},ke.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},ke.v=function(){Rt.prototype.v.call(this)},ke.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var E=this.naturalBounds,x=this.actualBounds,b=E.width,z=E.height,ee=sp(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 ce=this.isStrikethrough;$o(this,a,this.xc,!0,!1,E,x),(oe||ce)&&$o(this,a,this.xc,!1,!1,E,x),x=0,E=!1;var fe=this.oe,ye=fe.dx-(ee*fe.m21+fe.dx);fe=fe.dy-(ee*fe.m22+fe.dy);var Ne=y.scale;switch(8>(ye*ye+fe*fe)*Ne*Ne&&(E=!0),y.ib!==a&&(E=!1),y.ib instanceof Nl&&(E=!1),y.Gf("textGreeking")===!1&&(E=!1),y=this.spacingAbove,ye=this.spacingBelow,this.flip){case _r:a.translate(b,0),a.scale(-1,1);break;case br:a.translate(0,z),a.scale(1,-1);break;case io:a.translate(b,z),a.scale(-1,-1)}if(a.yc(),fe=this.Gc,Ne=(y+ee+ye)*fe,z>Ne&&(x=this.verticalAlignment,x=x.y*z-x.y*Ne+x.offsetY),fe===1&&this.ze!==null)ye=this.Cb,ye>b&&(ye=b),this.Oj(this.ze,a,0,x+y,b,ee,ye,E,re,oe,ce);else if(this.Qc!==null&&this.Qb!==null)for(Ne=0;Ne<fe;Ne++){var Pe=this.Qc[Ne];Pe>b&&(Pe=b),x+=y,this.Oj(this.Qb[Ne],a,0,x,b,ee,Pe,E,re,oe,ce),x+=ee+ye}switch(this.flip){case _r:a.scale(-1,1),a.translate(-b,0);break;case br:a.scale(1,-1),a.translate(0,-z);break;case io:a.scale(-1,-1),a.translate(-b,-z)}}},ke.Oj=function(a,y,E,x,b,z,ee,re,oe,ce,fe){var ye=0;if(re)oe==="left"?ye=0:oe==="right"?ye=b-ee:oe==="center"&&(ye=(b-ee)/2),y.fillRect(E+ye,x+.25*z,ee,1);else{if(oe==="left"?ye=0:oe==="right"?ye=b:oe==="center"&&(ye=b/2),b=Fm!==null?Fm(this,z):.75*z,y.fillText(a,E+ye,x+b),a=z/20|0,a===0&&(a=1),oe==="right"?ye-=ee:oe==="center"&&(ye-=ee/2),ce){re=Bm!==null?Bm(this,z):.8*z,oe=E+ye,ce=x+re,b=E+ye+ee,re=x+re;var Ne=a;y.beginPath(),y.lineWidth=Ne,y.moveTo(oe,ce),y.lineTo(b,re),y.stroke(),y.Se(),y instanceof Nl&&y.ad.classList.add("gojs-td")}fe&&(fe=x+z-z/2.2|0,a%2!==0&&(fe+=.5),x=E+ye,z=fe,E=E+ye+ee,ee=fe,ye=a,y.beginPath(),y.lineWidth=ye,y.moveTo(x,z),y.lineTo(E,ee),y.stroke(),y.Se(),y instanceof Nl&&y.ad.classList.add("gojs-td"))}},ke.kk=function(a,y,E){if(!Rt.prototype.kk.call(this,a,y,E))return!1;if($o(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),E){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),E=0;E<y.length;E++)n1(a,y[E],!1)}else y=this.svg,y.innerHTML=this.text,n1(a,y,!0);return!0},ke.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:Rt.prototype.nk.call(this,a)},ke.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("text");for(var E=0;E<a.length;E++)a[E].setAttributeNS(null,"filter",y)}},ke.Wl=function(a,y,E,x){var b=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;ol!==null&&L1!==z&&(L1=ol.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var ee;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=ee=0,oe=!1;!oe;){var ce=z.indexOf(`
|
|
|
`,re);ce===-1&&(ce=z.length,oe=!0),re=z.substr(re,ce-re),this.formatting===lp&&(re=re.trim()),ee=Math.max(ee,Fu(re)),re=ce+1}z=ee}else ee=z.indexOf(`
|
|
|
`,0),0<=ee&&(z=z.substr(0,ee)),z=Fu(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)),ee=A1(this,z),isNaN(this.desiredSize.height)?ee=Math.min(ee,y/this.scale):ee=this.desiredSize.height,oe=ee,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===_m&&(y=this.Ae,y=this.overflow===_m?T1(y):0,ce=this.spacingAbove+this.spacingBelow,ce=Math.max(0,sp(this)+ce),oe=Math.min(this.maxLines-1,Math.max(Math.floor(oe/ce+.01)-1,0)),!(oe+1>=this.Qb.length))){for(this.l|=16777216,ce=this.Qb[oe],y=Math.max(1,a-y);Fu(ce)>y&&1<ce.length;)ce=ce.substr(0,ce.length-1);ce+=up,y=Fu(ce),this.Qb[oe]=ce,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===C1||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(E,z),ee=Math.max(x,ee),wa(this.dc,z,ee),this.Ge(0,0,z,ee),this.svg!==null&&b!==this.Gc&&(this.Uc=!0)},ke.eh=function(a,y,E,x){Is(this,a,y,E,x)};function ap(a,y,E){a.ze===null?(a.ze=y,a.Cb=E):((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(E),a.Qb.length>a.maxLines&&(a.l|=16777216))}function Lv(a,y,E,x){var b=a.formatting===lp;b&&(y=y.trim());var z=0,ee=a.Ae,re=a.spacingAbove+a.spacingBelow;re=Math.max(0,sp(a)+re);var oe=a.overflow===_m?T1(ee):0;if(a.Gc>=a.maxLines)x!==null&&x.h(0,re);else if(ee=y,a.wrap===Iv){a.Le=1;var ce=Fu(y);if(oe===0||ce<=E)a.Cb=Math.max(a.Cb,ce),ap(a,y,a.Cb),x!==null&&x.h(ce,re);else{for(z=Xf(a,ee),ee=ee.substr(z.length),y=Xf(a,ee),ce=Fu(z+y);0<y.length&&ce<=E;)z+=y,ee=ee.substr(y.length),y=Xf(a,ee),ce=z+y,b&&(ce=ce.trim()),ce=Fu(ce);for(b&&(y=y.trim()),z+=y,E=Math.max(1,E-oe);Fu(z)>E&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=up;var fe=Fu(z);a.Cb=fe,ap(a,z,fe),x!==null&&x.h(fe,re)}}else{for(oe=0,ee.length===0&&(oe=1,ap(a,ee,0));0<ee.length;){for(y=Xf(a,ee),ee=ee.substr(y.length);Fu(y)>E;){var ye=1;for(ce=Fu(y.substr(0,ye)),fe=0;ce<=E;)ye++,fe=ce,ce=Fu(y.substr(0,ye));if(ye===1){var Ne=ce;z=Math.max(z,ce)}else Ne=fe,z=Math.max(z,fe);if(ye--,1>ye&&(ye=1),ap(a,y.substr(0,ye),Ne),oe++,y=y.substr(ye),a.Gc+oe>a.maxLines)break}for(fe=Xf(a,ee),ce=Fu(y+fe);0<fe.length&&ce<=E;)y+=fe,ee=ee.substr(fe.length),fe=Xf(a,ee),ce=y+fe,b&&(ce=ce.trim()),ce=Fu(ce);if(b&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),fe.length===0?(ye=ce,z=Math.max(z,ce)):(ye=fe=Fu(y),z=Math.max(z,fe)),ap(a,y,ye),oe++,a.Gc+oe>a.maxLines))break}a.Le=Math.min(a.maxLines,oe),a.Cb=Math.max(a.Cb,z),x!==null&&x.h(a.Cb,re*a.Le)}}function Xf(a,y){if(a.wrap===N1)return y.substr(0,1);for(var E=y.length,x=0,b=PE;x<E&&!b.test(y.charAt(x));)x++;for(a.formatting===M1&&(E=Math.min(E,x+1));x<E&&b.test(y.charAt(x));)x++;return x>=y.length?y:y.substr(0,x)}function Fu(a){return ol===null?8*a.length:ol.measureText(a).width}function sp(a){if(a.df!==null)return a.df;var y=a.Ae;if(ol===null){var E=16;return a.df=E}return Ov[y]!==void 0&&5e3>P1?E=Ov[y]:(E=1.3*ol.measureText("M").width,Ov[y]=E,P1++),a.df=E}function T1(a){if(ol===null)return 6;if(jm[a]!==void 0&&5e3>Rv)var y=jm[a];else y=ol.measureText(up).width,jm[a]=y,Rv++;return y}function A1(a,y){var E=a.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),x=a.spacingAbove+a.spacingBelow;if(x=Math.max(0,sp(a)+x),E.length===0)return a.Cb=0,a.Gc=1,x;if(!a.isMultiline){var b=E.indexOf(`
|
|
|
`,0);0<=b&&(E=E.substr(0,b))}b=0;for(var z=a.Gc=0,ee,re=!1;!re;){if(ee=E.indexOf(`
|
|
|
`,z),ee===-1&&(ee=E.length,re=!0),z<=ee){if(z=E.substr(z,ee-z),a.wrap!==Iv){a.Le=0;var oe=ti.alloc();Lv(a,z,y,oe),b+=oe.height,ti.free(oe),a.Gc+=a.Le}else Lv(a,z,y,null),b+=x,a.Gc++;a.Gc===a.maxLines&&(re=!0)}z=ee+1}return a.Lq=b}zt.Object.defineProperties(Eo.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"||(mc(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:Rn},set:function(a){var y=this.flip;y!==a&&(mc(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Gu},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),mc(this),this.da.Yr=a,Us(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=ti.alloc();Lv(this,this.ec,999999,a);var y=a.width;ti.free(a),a=A1(this,y);var E=this.desiredSize;isNaN(E.width)||(y=E.width),isNaN(E.height)||(a=E.height),wa(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&&(mc(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Dv},set:function(a){var y=this.overflow;y!==a&&(mc(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&&sf(a,"TextBlock.stroke"),a instanceof Jr&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return sp(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&&(mc(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&&(mc(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 Oc),this.fa.Tk=a,this.v();var E=this.panel;E!==null&&(E.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 Oc),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 Oc),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 Oc),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 Oc),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&&(mc(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&&(mc(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&&(mc(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&&(mc(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:lp},set:function(a){var y=this.formatting;y!==a&&(mc(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&&oi(a,"> 0",Eo,"maxLines"),mc(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 Fm=null,Bm=null,Iv=new Mn(Eo,"None",0),C1=new Mn(Eo,"WrapFit",1),kv=new Mn(Eo,"WrapDesiredSize",2),N1=new Mn(Eo,"WrapBreakAll",3),Dv=new Mn(Eo,"OverflowClip",0),_m=new Mn(Eo,"OverflowEllipsis",1),lp=new Mn(Eo,"FormatTrim",0),M1=new Mn(Eo,"FormatNone",0),PE=/[ \u200b\u00ad]/,Ov=new Li,P1=0,jm=new Li,Rv=0,up="...",L1="",ol=null,zm=!1;Eo.className="TextBlock";function Fv(){this.nc=!1,this.Hd=null,this.Xf=Rn,this.gq=lp,this.Jq=1/0,this.$q=Dv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Gu,this.$r=kv}Fv.prototype.copy=function(){var a=new Fv;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},Eo.getEllipsis=function(){return up},Eo.setEllipsis=function(a){up=a,jm=new Li,Rv=0},Eo.getBaseline=function(){return Fm},Eo.setBaseline=function(a){Fm=a},Eo.getUnderline=function(){return Bm},Eo.setUnderline=function(a){Bm=a},Eo.isValidFont=function(a){if(zm||(ol=Ko?new yu(null).context:null,zm=!0),ol===null)return!0;var y=ol.font;if(a===y||a==="10px sans-serif")return!0;ol.font="10px sans-serif",ol.font=a;var E=ol.font;if(E!=="10px sans-serif")return ol.font=y,!0;ol.font="19px serif";var x=ol.font;return ol.font=a,E=ol.font,ol.font=y,E!==x},Eo.FormatNone=M1,Eo.FormatTrim=lp,Eo.None=Iv,Eo.OverflowClip=Dv,Eo.OverflowEllipsis=_m,Eo.WrapBreakAll=N1,Eo.WrapDesiredSize=kv,Eo.WrapFit=C1;function Oc(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Oc.prototype.copy=function(){var a=new Oc;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Oc.className="GradElementSettings";function al(a,y){Rt.call(this),this.Eg=null,this.qo="",this.Xg=Zl,this.Nk=Gn,this.Zg=this.Hd=null,this.Mk=Xi,this.Xf=Rn,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 Jf;en(al,Rt),al.prototype.cloneProtected=function(a){Rt.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},al.prototype.qb=function(a){a===Rn||a===Mi||a===Pr?this.imageStretch=a:Rt.prototype.qb.call(this,a)},al.prototype.toString=function(){return"Picture("+this.source+")#"+Ir(this)};function qf(a){a===void 0&&(a=""),a!==""?Jf[a]&&(delete Jf[a],Um--):(Jf=new Li,Um=0)}function I1(a,y){y.qy||(y.Fq=function(E){y.sq=!0,y.ln=!1;var x=y.Bg.copy();if(x!=null){for(x=x.iterator;x.next();){var b=x.value;b.N();var z=y.getAttribute("src")||"",ee=b.Og.I(z);if(ee!==null)for(var re=ee.length,oe=0;oe<re;oe++)z=ee[oe],b.Xn.add(z),z.Uc=!0,b.$b(),y.hn&&(y.eu===void 0&&(y.eu=E),z.Zg!==null&&z.Zg(z,E))}y.Bg.clear()}a.desiredSize.w()||(Ea(a,!1),a.v())},y.Yp=function(E){y.ln=E;var x=y.Bg.copy();if(x!=null){for(x=x.iterator;x.next();){var b=x.value,z=y.getAttribute("src")||"",ee=b.Og.I(z);if(ee!==null){b=ee.length,z=ci();for(var re=0;re<b;re++)z.push(ee[re]);if(y.hn)for(re=0;re<b;re++)ee=z[re],ee.Hd!==null&&ee.Hd(ee,E);pi(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}al.prototype.hA=function(){if(this.source!==""){qf(this.source);var a=this.source;this.source="",this.source=a}},al.prototype.redraw=function(){this.N(),this.Uc=!0},al.prototype.hh=function(a,y){var E=this.Eg;if(E!==null){var x=E.getAttribute("src");if(!(E instanceof HTMLImageElement&&(x===null||x==="")||E.ln instanceof Event&&a instanceof kh)){var b=a instanceof Nl;x=this.naturalBounds;var z=0,ee=0,re=this.qn,oe=re?+E.width:E.naturalWidth;if(re=re?+E.height:E.naturalHeight,oe===void 0&&E.videoWidth&&(oe=E.videoWidth),re===void 0&&E.videoHeight&&(re=E.videoHeight),oe=oe||x.width,re=re||x.height,oe!==0&&re!==0){var ce=oe,fe=re;this.sourceRect.w()&&(z=this.Xg.x,ee=this.Xg.y,oe=this.Xg.width,re=this.Xg.height);var ye=oe,Ne=re,Pe=this.Nk,Fe=this.Mk;switch(Pe){case Rn:if(this.sourceRect.w())break;ye>=x.width&&(z=z+Fe.offsetX+(ye*Fe.x-x.width*Fe.x)),Ne>=x.height&&(ee=ee+Fe.offsetY+(Ne*Fe.y-x.height*Fe.y)),oe=Math.min(x.width,ye),re=Math.min(x.height,Ne);break;case Gn:ye=x.width,Ne=x.height;break;case Mi:case Pr:Pe===Mi?(Pe=Math.min(x.height/Ne,x.width/ye),ye*=Pe,Ne*=Pe):Pe===Pr&&(Pe=Math.max(x.height/Ne,x.width/ye),ye*=Pe,Ne*=Pe,ye>=x.width&&(z=(z+Fe.offsetX+(ye*Fe.x-x.width*Fe.x)/ye)*oe),Ne>=x.height&&(ee=(ee+Fe.offsetY+(Ne*Fe.y-x.height*Fe.y)/Ne)*re),oe*=1/(ye/x.width),re*=1/(Ne/x.height),ye=x.width,Ne=x.height)}Pe=this.Df()*y.scale;var We=ye*Pe*Ne*Pe,gt=oe*re/We,nt=E.__goCache;Pe=null;var vt=LE;if(!b){if(E.sq&&nt!==void 0&&4<We&>>vt*vt)for(nt.gi===null&&(D1(nt,4,ce,fe,E),D1(nt,16,ce,fe,E)),b=nt.gi,ce=b.length,fe=0;fe<ce&&b[fe].ratio*b[fe].ratio<gt;fe++)Pe=b[fe];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{b=new yu(null).context;try{b.drawImage(this.Eg,0,0)}catch(St){this.en=!1}try{b.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(St){this.vl=!0}}if(this.vl)return}}switch(b=ye<x.width?Fe.offsetX+(x.width*Fe.x-ye*Fe.x):0,Fe=Ne<x.height?Fe.offsetY+(x.height*Fe.y-Ne*Fe.y):0,this.flip){case _r:a.translate(Math.min(x.width,ye),0),a.scale(-1,1);break;case br:a.translate(0,Math.min(x.height,Ne)),a.scale(1,-1);break;case io:a.translate(Math.min(x.width,ye),Math.min(x.height,Ne)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&nt!==void 0&&Pe!==null&&Pe.ratio!==1){a.save(),y=Pe.ratio;try{a.drawImage(Pe.source,z/y,ee/y,Math.min(Pe.source.width,oe/y),Math.min(Pe.source.height,re/y),b,Fe,Math.min(x.width,ye),Math.min(x.height,Ne)),a instanceof Nl&&(this.bt=[z/y,ee/y,Math.min(Pe.source.width,oe/y),Math.min(Pe.source.height,re/y),b,Fe,Math.min(x.width,ye),Math.min(x.height,Ne)])}catch(St){this.en=!1}a.restore()}else try{a.drawImage(E,z,ee,oe,re,b,Fe,Math.min(x.width,ye),Math.min(x.height,Ne)),a instanceof Nl&&(this.bt=[z,ee,oe,re,b,Fe,Math.min(x.width,ye),Math.min(x.height,Ne)])}catch(St){this.en=!1}switch(this.flip){case _r:a.scale(-1,1),a.translate(-Math.min(x.width,ye),0);break;case br:a.scale(1,-1),a.translate(0,-Math.min(x.height,Ne));break;case io:a.scale(-1,-1),a.translate(-Math.min(x.width,ye),-Math.min(x.height,Ne))}}}}},al.prototype.Wl=function(a,y,E,x){var b=this.desiredSize,z=rl(this,!0),ee=this.Eg,re=this.qn,oe=0,ce=0;(re||!this.al&&ee&&ee.complete)&&(this.al=!0),ee===null?(isFinite(b.width)||(a=0),isFinite(b.height)||(y=0)):(oe=re?+ee.width:ee.naturalWidth,ce=re?+ee.height:ee.naturalHeight),isFinite(b.width)||z===Gn||z===Oi?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:ee!==null&&(a=oe)),E=0):ee!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:oe),isFinite(b.height)||z===Gn||z===Vi?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:ee!==null&&(y=ce)),x=0):ee!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:ce),isFinite(b.width)&&(a=b.width),isFinite(b.height)&&(y=b.height),b=this.maxSize,z=this.minSize,E=Math.max(E||0,z.width),x=Math.max(x||0,z.height),a=Math.min(b.width,a),y=Math.min(b.height,y),a=Math.max(E,a),y=Math.max(x,y),ee===null||ee.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),wa(this.dc,a,y),this.Ge(0,0,a,y)},al.prototype.eh=function(a,y,E,x){Is(this,a,y,E,x)},zt.Object.defineProperties(al.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 E=a instanceof HTMLImageElement;a===null||E||a instanceof HTMLVideoElement||this.qn||lt("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var x=this.diagram;x!==null&&Hg(x,this),this.Eg=a,a!==null&&E&&a.Bg===void 0&&(a.Bg=new Dn),x!==null&&E&&Gd(x,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()||(Ea(this,!1),this.v())):E&&I1(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 E=Jf;if(Ko){var x=null;if(E[a]!==void 0)x=E[a];else if(a!==""){30<Um&&(qf(),E=Jf),x=Yi("img"),x.hn=!0,I1(this,x);var b=this.rl;b!==null&&(x.crossOrigin=b(this)),x.src=a,E[a]=x,Um++}this.element=x,x!==null&&x.__goCache===void 0&&(x.__goCache=new k1),this.v(),this.N()}this.g("source",y,a)}}},sourceCrossOrigin:{get:function(){return this.rl},set:function(a){if(this.rl!==a&&(this.rl=a,this.element!==null)){var y=this.element.getAttribute("src");a===null&&typeof y=="string"?this.element.crossOrigin=null:a!==null&&(this.element.crossOrigin=a(this)),this.element.src=y}}},sourceRect:{get:function(){return this.Xg},set:function(a){var y=this.Xg;y.D(a)||(this.Xg=a=a.J(),this.N(),this.g("sourceRect",y,a))}},imageStretch:{get:function(){return this.Nk},set:function(a){var y=this.Nk;y!==a&&(this.Nk=a,this.N(),this.g("imageStretch",y,a))}},flip:{get:function(){return this.Xf},set:function(a){var y=this.Xf;y!==a&&(this.Xf=a,this.N(),this.g("flip",y,a))}},imageAlignment:{get:function(){return this.Mk},set:function(a){var y=this.Mk;y.D(a)||(this.Mk=a=a.J(),this.N(),this.g("imageAlignment",y,a))}},errorFunction:{get:function(){return this.Hd},set:function(a){var y=this.Hd;y!==a&&(this.Hd=a,this.g("errorFunction",y,a))}},successFunction:{get:function(){return this.Zg},set:function(a){var y=this.Zg;y!==a&&(this.Zg=a,this.g("successFunction",y,a))}},naturalBounds:{get:function(){return this.dc}}}),al.prototype.redraw=al.prototype.redraw,al.prototype.reloadSource=al.prototype.hA;var Um=0,LE=4;al.className="Picture",Jf=new Li,al.clearCache=qf;function k1(){this.gi=null}function D1(a,y,E,x,b){a.gi===null&&(a.gi=[]);var z=new yu(null),ee=z.context,re=1/y;z.width=E/y,z.height=x/y,z.width!==0&&z.height!==0&&(y=new O1(z.Oa,y),E=1,0<a.gi.length&&(E=a.gi[a.gi.length-1],b=E.source,E=E.ratio),ee.setTransform(re*E,0,0,re*E,0,0),ee.yc(),ee.drawImage(b,0,0),a.gi.push(y))}k1.className="PictureCacheArray";function O1(a,y){this.source=a,this.ratio=y}O1.className="PictureCacheInstance";function $f(){this.os=new Qn,this.mc=null}$f.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Qn,this.mc=null};function eg(a,y,E,x,b,z){a.mc=new pa,a.mc.startX=y,a.mc.startY=E,a.mc.isFilled=x,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),b!==void 0&&(a.mc.isShadowed=b)}function IE(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}$f.prototype.moveTo=function(a,y,E){E===void 0&&(E=!1);var x=new jr(Po);x.endX=a,x.endY=y,E&&x.close(),this.mc.segments.add(x)},$f.prototype.lineTo=function(a,y,E){E===void 0&&(E=!1);var x=new jr(mo);x.endX=a,x.endY=y,E&&x.close(),this.mc.segments.add(x)};function Sd(a,y,E,x,b,z,ee){var re;re===void 0&&(re=!1);var oe=new jr(Ba);oe.point1X=y,oe.point1Y=E,oe.point2X=x,oe.point2Y=b,oe.endX=z,oe.endY=ee,re&&oe.close(),a.mc.segments.add(oe)}function Hm(a,y,E,x,b){var z;z===void 0&&(z=!1);var ee=new jr(Fs);ee.point1X=y,ee.point1Y=E,ee.endX=x,ee.endY=b,z&&ee.close(),a.mc.segments.add(ee)}$f.prototype.arcTo=function(a,y,E,x,b,z,ee){z===void 0&&(z=0),ee===void 0&&(ee=!1);var re=new jr(ea);re.startAngle=a,re.sweepAngle=y,re.centerX=E,re.centerY=x,re.radiusX=b,re.radiusY=z!==0?z:b,ee&&re.close(),this.mc.segments.add(re)};function kE(a,y,E,x,b,z,ee,re){var oe;oe===void 0&&(oe=!1),y=new jr(el,ee,re,y,E,x,b,z),oe&&y.close(),a.mc.segments.add(y)}function R1(a){var y=Gm;return y!==null?(Gm=null,y.reset(a),y):(y=new $f,y.reset(a),y)}var Gm=null;$f.className="StreamGeometryContext";function bs(a,y){var E=a.toLowerCase(),x=Ft.Ze;x[a]=y,x[E]=a}bs("Rectangle",function(a,y,E){a="r"+y+","+E;var x=Ft.Mf[a];return x!==void 0||(x=new Qn(Qn.u),x.endX=y,x.endY=E,Ft.Nf<Ft.vm&&(Ft.Mf[a]=x,Ft.Nf++)),x}),bs("Square",function(a,y,E){a="s"+y+","+E;var x=Ft.Mf[a];return x!==void 0||(x=new Qn(Qn.u),x.endX=y,x.endY=E,x.defaultStretch=Mi,Ft.Nf<Ft.vm&&(Ft.Mf[a]=x,Ft.Nf++)),x}),bs("RoundedRectangle",function(a,y,E){a=a?a.parameter1:NaN,(isNaN(a)||0>a)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,E/3);var x="rr"+y+","+E+","+a,b=Ft.Mf[x];if(b!==void 0)return b;var z=a*Ft.wg;return b=new Qn().add(new pa(a,0,!0).add(new jr(mo,y-a,0)).add(new jr(Ba,y,a,y-z,0,y,z)).add(new jr(mo,y,E-a)).add(new jr(Ba,y-a,E,y,E-z,y-z,E)).add(new jr(mo,a,E)).add(new jr(Ba,0,E-a,z,E,0,E-z)).add(new jr(mo,0,a)).add(new jr(Ba,a,0,0,z,z,0).close())),1<z&&(b.spot1=new tn(0,0,z,z),b.spot2=new tn(1,1,-z,-z)),Ft.Nf<Ft.vm&&(Ft.Mf[x]=b,Ft.Nf++),b}),bs("Border","RoundedRectangle"),bs("Ellipse",function(a,y,E){a="e"+y+","+E;var x=Ft.Mf[a];return x!==void 0||(x=new Qn(Qn.F),x.endX=y,x.endY=E,x.spot1=wc,x.spot2=Wu,Ft.Nf<Ft.vm&&(Ft.Mf[a]=x,Ft.Nf++)),x}),bs("Circle",function(a,y,E){a="c"+y+","+E;var x=Ft.Mf[a];return x!==void 0||(x=new Qn(Qn.F),x.endX=y,x.endY=E,x.spot1=wc,x.spot2=Wu,x.defaultStretch=Mi,Ft.Nf<Ft.vm&&(Ft.Mf[a]=x,Ft.Nf++)),x}),bs("TriangleRight",function(a,y,E){return new Qn().add(new pa(0,0).add(new jr(mo,y,.5*E)).add(new jr(mo,0,E).close())).pm(0,.25,.5,.75)}),bs("TriangleDown",function(a,y,E){return new Qn().add(new pa(0,0).add(new jr(mo,y,0)).add(new jr(mo,.5*y,E).close())).pm(.25,0,.75,.5)}),bs("TriangleLeft",function(a,y,E){return new Qn().add(new pa(y,E).add(new jr(mo,0,.5*E)).add(new jr(mo,y,0).close())).pm(.5,.25,1,.75)}),bs("TriangleUp",function(a,y,E){return new Qn().add(new pa(y,E).add(new jr(mo,0,E)).add(new jr(mo,.5*y,0).close())).pm(.25,.5,.75,1)}),bs("Triangle","TriangleUp"),bs("Diamond",function(a,y,E){return new Qn().add(new pa(.5*y,0).add(new jr(mo,0,.5*E)).add(new jr(mo,.5*y,E)).add(new jr(mo,y,.5*E).close())).pm(.25,.25,.75,.75)}),bs("LineH",function(a,y,E){return a=new Qn(Qn.j),a.startX=0,a.startY=E/2,a.endX=y,a.endY=E/2,a}),bs("LineV",function(a,y,E){return a=new Qn(Qn.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=E,a}),bs("None","Rectangle"),bs("BarH","Rectangle"),bs("BarV","Rectangle"),bs("MinusLine","LineH"),bs("PlusLine",function(a,y,E){return new Qn().add(new pa(0,E/2,!1).add(new jr(mo,y,E/2)).add(new jr(Po,y/2,0)).add(new jr(mo,y/2,E)))}),bs("XLine",function(a,y,E){return new Qn().add(new pa(0,E,!1).add(new jr(mo,y,0)).add(new jr(Po,0,0)).add(new jr(mo,y,E)))}),bs("LineRight",function(a,y,E){return new Qn().add(new pa(.25*y,0,!1).add(new jr(mo,.75*y,.5*E)).add(new jr(mo,.25*y,E)))}),bs("LineDown",function(a,y,E){return new Qn().add(new pa(0,.25*E,!1).add(new jr(mo,.5*y,.75*E)).add(new jr(mo,y,.25*E)))}),bs("LineLeft",function(a,y,E){return new Qn().add(new pa(.75*y,0,!1).add(new jr(mo,.25*y,.5*E)).add(new jr(mo,.75*y,E)))}),bs("LineUp",function(a,y,E){return new Qn().add(new pa(0,.75*E,!1).add(new jr(mo,.5*y,.25*E)).add(new jr(mo,y,.75*E)))}),Ft.um={"":"",Standard:"F1 m 0,0 l 8,4 -8,4 2,-4 z",Backward:"F1 m 8,0 l -2,4 2,4 -8,-4 z",Triangle:"F1 m 0,0 l 8,4.62 -8,4.62 z",BackwardTriangle:"F1 m 8,4 l 0,4 -8,-4 8,-4 0,4 z",Boomerang:"F1 m 0,0 l 8,4 -8,4 4,-4 -4,-4 z",BackwardBoomerang:"F1 m 8,0 l -8,4 8,4 -4,-4 4,-4 z",SidewaysV:"m 0,0 l 8,4 -8,4 0,-1 6,-3 -6,-3 0,-1 z",BackwardV:"m 8,0 l -8,4 8,4 0,-1 -6,-3 6,-3 0,-1 z",OpenTriangle:"m 0,0 l 8,4 -8,4",BackwardOpenTriangle:"m 8,0 l -8,4 8,4",OpenTriangleLine:"m 0,0 l 8,4 -8,4 m 8.5,0 l 0,-8",BackwardOpenTriangleLine:"m 8,0 l -8,4 8,4 m -8.5,0 l 0,-8",OpenTriangleTop:"m 0,0 l 8,4 m 0,4",BackwardOpenTriangleTop:"m 8,0 l -8,4 m 0,4",OpenTriangleBottom:"m 0,8 l 8,-4",BackwardOpenTriangleBottom:"m 0,4 l 8,4",HalfTriangleTop:"F1 m 0,0 l 0,4 8,0 z m 0,8",BackwardHalfTriangleTop:"F1 m 8,0 l 0,4 -8,0 z m 0,8",HalfTriangleBottom:"F1 m 0,4 l 0,4 8,-4 z",BackwardHalfTriangleBottom:"F1 m 8,4 l 0,4 -8,-4 z",ForwardSemiCircle:"m 4,0 b 270 180 0 4 4",BackwardSemiCircle:"m 4,8 b 90 180 0 -4 4",Feather:"m 0,0 l 3,4 -3,4",BackwardFeather:"m 3,0 l -3,4 3,4",DoubleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardDoubleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4",TripleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardTripleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4 m 3,-8 l -3,4 3,4",ForwardSlash:"m 0,8 l 5,-8",BackSlash:"m 0,0 l 5,8",DoubleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8",DoubleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8",TripleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8 m -2,8 l 4,-8",TripleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8 m -2,-8 l 4,8",Fork:"m 0,4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4",LineFork:"m 0,0 l 0,8 m 0,-4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardLineFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4 m 8,-8 l 0,8",CircleFork:"F1 m 6,4 b 0 360 -3 0 3 z m 0,0 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 6,0 b 0 360 -3 0 3",CircleLineFork:"F1 m 6,4 b 0 360 -3 0 3 z m 1,-4 l 0,8 m 0,-4 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleLineFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 0,-4 l 0,8 m 7,-4 b 0 360 -3 0 3",Circle:"F1 m 8,4 b 0 360 -4 0 4 z",Block:"F1 m 0,0 l 0,8 8,0 0,-8 z",StretchedDiamond:"F1 m 0,3 l 5,-3 5,3 -5,3 -5,-3 z",Diamond:"F1 m 0,4 l 4,-4 4,4 -4,4 -4,-4 z",Chevron:"F1 m 0,0 l 5,0 3,4 -3,4 -5,0 3,-4 -3,-4 z",StretchedChevron:"F1 m 0,0 l 8,0 3,4 -3,4 -8,0 3,-4 -3,-4 z",NormalArrow:"F1 m 0,2 l 4,0 0,-2 4,4 -4,4 0,-2 -4,0 z",X:"m 0,0 l 8,8 m 0,-8 l -8,8",TailedNormalArrow:"F1 m 0,0 l 2,0 1,2 3,0 0,-2 2,4 -2,4 0,-2 -3,0 -1,2 -2,0 1,-4 -1,-4 z",DoubleTriangle:"F1 m 0,0 l 4,4 -4,4 0,-8 z m 4,0 l 4,4 -4,4 0,-8 z",BigEndArrow:"F1 m 0,0 l 5,2 0,-2 3,4 -3,4 0,-2 -5,2 0,-8 z",ConcaveTailArrow:"F1 m 0,2 h 4 v -2 l 4,4 -4,4 v -2 h -4 l 2,-2 -2,-2 z",RoundedTriangle:"F1 m 0,1 a 1,1 0 0 1 1,-1 l 7,3 a 0.5,1 0 0 1 0,2 l -7,3 a 1,1 0 0 1 -1,-1 l 0,-6 z",SimpleArrow:"F1 m 1,2 l -1,-2 2,0 1,2 -1,2 -2,0 1,-2 5,0 0,-2 2,2 -2,2 0,-2 z",AccelerationArrow:"F1 m 0,0 l 0,8 0.2,0 0,-8 -0.2,0 z m 2,0 l 0,8 1,0 0,-8 -1,0 z m 3,0 l 2,0 2,4 -2,4 -2,0 0,-8 z",BoxArrow:"F1 m 0,0 l 4,0 0,2 2,0 0,-2 2,4 -2,4 0,-2 -2,0 0,2 -4,0 0,-8 z",TriangleLine:"F1 m 8,4 l -8,-4 0,8 8,-4 z m 0.5,4 l 0,-8",CircleEndedArrow:"F1 m 10,4 l -2,-3 0,2 -2,0 0,2 2,0 0,2 2,-3 z m -4,0 b 0 360 -3 0 3 z",DynamicWidthArrow:"F1 m 0,3 l 2,0 2,-1 2,-2 2,4 -2,4 -2,-2 -2,-1 -2,0 0,-2 z",EquilibriumArrow:"m 0,3 l 8,0 -3,-3 m 3,5 l -8,0 3,3",FastForward:"F1 m 0,0 l 3.5,4 0,-4 3.5,4 0,-4 1,0 0,8 -1,0 0,-4 -3.5,4 0,-4 -3.5,4 0,-8 z",Kite:"F1 m 0,4 l 2,-4 6,4 -6,4 -2,-4 z",HalfArrowTop:"F1 m 0,0 l 4,4 4,0 -8,-4 z m 0,8",HalfArrowBottom:"F1 m 0,8 l 4,-4 4,0 -8,4 z",OpposingDirectionDoubleArrow:"F1 m 0,4 l 2,-4 0,2 4,0 0,-2 2,4 -2,4 0,-2 -4,0 0,2 -2,-4 z",PartialDoubleTriangle:"F1 m 0,0 4,3 0,-3 4,4 -4,4 0,-3 -4,3 0,-8 z",LineCircle:"F1 m 0,0 l 0,8 m 7 -4 b 0 360 -3 0 3 z",DoubleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",TripleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",CircleLine:"F1 m 6 4 b 0 360 -3 0 3 z m 1,-4 l 0,8",DiamondCircle:"F1 m 8,4 l -4,4 -4,-4 4,-4 4,4 m 8,0 b 0 360 -4 0 4 z",PlusCircle:"F1 m 8,4 b 0 360 -4 0 4 l -8 0 z m -4 -4 l 0 8",OpenRightTriangleTop:"m 8,0 l 0,4 -8,0 m 0,4",OpenRightTriangleBottom:"m 8,8 l 0,-4 -8,0",Line:"m 0,0 l 0,8",DoubleLine:"m 0,0 l 0,8 m 2,0 l 0,-8",TripleLine:"m 0,0 l 0,8 m 2,0 l 0,-8 m 2,0 l 0,8",PentagonArrow:"F1 m 8,4 l -4,-4 -4,0 0,8 4,0 4,-4 z"};function Bv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=Go,this.ir=null,this.jr="",this.lr=Aa,this.Gq="",this.Hq=_i,this.Pq=yo,this.Kq=ua,this.Up=null,this.Cq=127,this.zr=Vo,this.yr="gray",this.Vg=4}Bv.prototype.copy=function(){var a=new Bv;return a.zq=this.zq,a.Kp=this.Kp,a.tr=this.tr,a.vr=this.vr,a.ur=this.ur,a.oq=this.oq,a.fr=this.fr,a.hr=this.hr,a.gr=this.gr.J(),a.ir=this.ir,a.jr=this.jr,a.lr=this.lr.J(),a.Gq=this.Gq,a.Hq=this.Hq.J(),a.Pq=this.Pq.J(),a.Kq=this.Kq.J(),a.Up=this.Up,a.Cq=this.Cq,a.zr=this.zr.J(),a.yr=this.yr,a.Vg=this.Vg,a};function Bi(a,y){a===void 0||a instanceof Ca||typeof a=="string"?Wn.call(this,a):(Wn.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 dt(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new pn,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}en(Bi,Wn),Bi.prototype.cloneProtected=function(a){Wn.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},ke=Bi.prototype,ke.Af=function(a){Wn.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},ke.toString=function(){var a=bn(this.constructor)+"#"+Ir(this);return this.data!==null&&(a+="("+Ki(this.data)+")"),a};function sl(a){a.P===null?a.P=new Bv:a.P.nc&&(a.P=a.P.copy())}ke.th=function(){Wn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},ke.gk=function(a,y,E,x,b,z,ee){var re=this.diagram;re!==null&&(a===Wo&&y==="elements"?b instanceof Wn?Dh(b,function(oe){cy(re.partManager,oe),Ah(re,oe)}):Gd(re,b):a===qo&&y==="elements"&&(b instanceof Wn?Dh(b,function(oe){dy(re.partManager,oe,re)}):Hg(re,b)),re.cb(a,y,E,x,b,z,ee))},ke.La=function(a){if(Wn.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,E=y.length,x=0;x<E;x++){var b=y[x];b instanceof Wn&&Dh(b,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},Bi.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},Bi.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},Bi.prototype.bh=function(a,y){if(y!==null){var E=null,x=this.Qf;if(x!==null&&(E=x.I(a)),E!==y){if(E!==null){var b=E.diagram;b!==null&&b.remove(E)}x===null&&(this.Qf=x=new vi),y.Tf!==a&&(y.category=a),x.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)))}}},Bi.prototype.Jf=function(a){var y=this.Qf;if(y!==null){var E=y.I(a);if(E!==null){var x=E.diagram;x!==null&&x.remove(E)}y.remove(a),y.count===0&&(this.Qf=null)}},Bi.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=ci();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var E=0;E<a;E++)this.Jf(y[E]);pi(y)}},Bi.prototype.updateAdornments=function(){var a=this.diagram;if(a!==null){for(var y=this.adornments;y.next();){var E=y.value;E.v(),E.placeholder&&E.placeholder.v()}e:{if(this.isSelected&&this.selectionAdorned&&(y=this.selectionObject,y!==null&&this.actualBounds.w()&&this.isVisible()&&y.Ed()&&y.actualBounds.w())){if(E=this.Pj("Selection"),E===null){if(E=this.selectionAdornmentTemplate,E===null&&(E=this.ph()?a.linkSelectionAdornmentTemplate:this instanceof dr?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(E instanceof Hr))break e;Su(E),E=E.copy(),E!==null&&(this.ph()&&this.selectionObject===this.path&&(E.type=Wn.Link),E.adornedObject=y)}if(E!==null){E.type===Wn.Link&&E.v(),this.bh("Selection",E);break e}}this.Jf("Selection")}for(DE(this,a),y=this.adornments;y.next();)y.value.La()}},Bi.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function _v(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function DE(a,y){y.toolManager.mouseDownTools.each(function(E){E.isEnabled&&E.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function Ym(a){if(Zd(a)===!1){zv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function F1(a){if(a.G|=2097152,Zd(a)!==!1){var y=a.position,E=a.location;E.w()&&y.w()||j1(a,y,E),E=a.Ib;var x=pn.alloc().assign(E);E.ka(),E.x=y.x,E.y=y.y,E.freeze(),a.Xl(x,E),pn.free(x),zv(a,!1)}}Bi.prototype.Ge=function(a,y,E,x){var b=this.uc;b.h(a,y,E,x),this.Lb===null&&(this.Lb=new ir);var z=this.Lb;z.reset(),this.no(z,a,y,E,x),this.Lb=z,z.ws()||z.pp(b)},Bi.prototype.no=function(a,y,E,x,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Xi;this.locationSpot.sb()&&(z=this.locationSpot);var ee=dt.alloc();if(this.locationObject!==this)for(y=this.locationObject,E=y.naturalBounds,ee.yi(E.x,E.y,E.width,E.height,z),y.Lb!==null&&y.Lb.Ga(ee),ee.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(ee),ee.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else ee.yi(y,E,x,b,z);a.rotate(this.Kb,ee.x,ee.y),dt.free(ee)}},Bi.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Bi.prototype.moveTo=function(a,y,E){a=dt.allocAt(a,y),this.move(a,E),dt.free(a)},Bi.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())},Bi.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())},Bi.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new vi),y.I(a)!==null)return y.I(a);var E=Wn.prototype.fb.call(this,a);return E!==null?(y.set(a,E),E):(y.set(a,null),null)};function Ed(a,y,E,x){x===void 0&&(x=new dt),E=E.Mc()?Xi:E;var b=y.naturalBounds;if(x.h(b.width*E.x+E.offsetX,b.height*E.y+E.offsetY),y===null||y===a)return x;for(y.transform.Ga(x),y=y.panel;y!==null&&y!==a;)y.transform.Ga(x),y=y.panel;return a.Lb!==null&&a.Lb.Ga(x),x.offset(-a.uc.x,-a.uc.y),x}Bi.prototype.mi=function(a){return a===void 0&&(a=new pn),a.assign(this.actualBounds)},Bi.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function B1(a){var y=dt.alloc(),E=a.locationObject,x=E.naturalBounds,b=E instanceof yr?E.strokeWidth:0;if(y.yi(0,0,x.width+b,x.height+b,a.locationSpot),E!==a)for(y.offset(-b/2,-b/2),E.transform.Ga(y),E=E.panel;E!==null&&E!==a;)E.transform.Ga(y),E=E.panel;return a.Lb!==null&&a.Lb.Ga(y),y.offset(-a.uc.x,-a.uc.y),y}function Fh(a,y){var E=a.py;isNaN(a.ag)&&(a.ag=g1(a));var x=a.ag,b=2*x;if(!a.isShadowed)return E.h(y.x-1-x,y.y-1-x,y.width+2+b,y.height+2+b),E;x=y.x,b=y.y;var z=y.width;y=y.height;var ee=a.shadowBlur;return a=a.shadowOffset,z+=ee,y+=ee,x-=ee/2,b-=ee/2,0<a.x?z+=a.x:(x+=a.x,z-=a.x),0<a.y?y+=a.y:(b+=a.y,y-=a.y),E.h(x-1,b-1,z+2,y+2),E}Bi.prototype.arrange=function(){if(Hs(this)===!1)F1(this);else{Lc(this,!1);var a=this.Ib,y=pn.alloc();y.assign(a);var E=Qd(this);this.eh(0,0,this.uc.width,this.uc.height);var x=this.position;j1(this,x,this.location),a.ka(),a.x=x.x,a.y=x.y,a.freeze(),this.Xl(y,a),y.D(a)?this.Fd(E):!this.Zc()||Ft.B(y.width,a.width)&&Ft.B(y.height,a.height)||0<=this.vw&&this.C(16),pn.free(y),zv(this,!1)}},ke=Bi.prototype,ke.Xl=function(a,y){var E=this.diagram;if(E!==null){var x=!1;if(E.Zi===!1&&a.w()){var b=pn.alloc();b.assign(E.documentBounds),b.Fv(E.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&&(x=!0),pn.free(b)}!(this.G&65536)&&a.D(y)||H1(this,x,E),E.N(),!a.w()&&!y.w()||$a(a,y)||(this instanceof li&&!E.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},ke.zv=function(a,y,E){if(this.ph()||!a.w())return!1;var x=this.diagram;return x!==null&&_1(this,x,a,y,E),this.pa=a,this.G&=-2097153,!this.ke.w()||x!==null&&!x.animationManager.isTicking&&x.undoManager.isUndoingRedoing||(x=this.ke,this.ke=new dt(x.x+(a.x-y),x.y+(a.y-E)),this.g("location",x,this.ke.copy())),Zd(this)===!1&&Hs(this)===!1&&(Ym(this),F1(this)),!0};function _1(a,y,E,x,b){y===null||a instanceof Hr||(y=y.animationManager,y.zb&&gu(y,a,new dt(x,b),E))}ke.mm=function(a,y,E){var x=this.ke,b=this.pa;if(E){if(x.x===a&&x.y===y)return;Zd(this)||Hs(this)?b.h(NaN,NaN):b.h(b.x+a-x.x,b.y+y-x.y),x.h(a,y)}else{if(b.x===a&&b.y===y)return;x.h(x.x+a-b.x,x.y+y-b.y),b.h(a,y)}Ym(this)},ke.Av=function(){this.G&=-2097153,Ym(this)};function j1(a,y,E){var x=B1(a),b=a.diagram,z=E.w(),ee=y.w();z&&ee?a.G&2097152?z1(a,y,E,b,x):U1(a,y,E,b,x):z?z1(a,y,E,b,x):ee&&U1(a,y,E,b,x),a.G|=2097152,dt.free(x),a.Uk()}function z1(a,y,E,x,b){var z=y.x,ee=y.y;y.h(E.x-b.x,E.y-b.y),x!==null&&(E=x.animationManager,(x=E.defaultAnimation.isAnimating)||!E.zb||a instanceof Hr||gu(E,a,new dt(z,ee),y),x||y.x===z&&y.y===ee||a.g("position",new dt(z,ee),y.copy()))}function U1(a,y,E,x,b){var z=E.copy();E.h(y.x+b.x,y.y+b.y),E.D(z)||x===null||a.g("location",z,E.copy())}function H1(a,y,E){Uv(a,!1),a instanceof li&&fd(E,a),a.layer.isTemporary||y||E.Ya(),y=a.Ib;var x=E.viewportBounds;x.w()?Qd(a)?(Nn(y,x)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(x)?(a.Fd(!0),a.updateAdornments()):a.Wb():E.vd=!0}ke.si=function(){return!0},ke.Zc=function(){return!0},ke.ph=function(){return!1},ke.Dd=function(){return!0};function jv(a,y,E,x){y.constructor===a.constructor||W1||(W1=!0,gi('Should not change the class of the Part when changing category from "'+E+'" to "'+x+'"'),gi(" Old class: "+bn(a.constructor)+", new class: "+bn(y.constructor)+", part: "+a.toString())),a.Ej();var b=a.data;E=a.layerName;var z=a.isSelected,ee=a.isHighlighted,re=!0,oe=!0,ce=!1;a instanceof li&&(re=a.isTreeLeaf,oe=a.isTreeExpanded,ce=a.wasTreeExpanded),y.Af(a),y.cloneProtected(a),a.Tf=x,a.svg!==null&&(a.svg.remove(),a.svg=null,a.Uc=!0),a.v(),a.N(),y=a.diagram,x=!0,y!==null&&(x=y.skipsUndoManager,y.skipsUndoManager=!0),a.ub=b,a.G=z?a.G|4096:a.G&-4097,a.G=ee?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=ce?a.U|2:a.U&-3),b!==null&&a.La(),b=a.layerName,b!==E&&(a.Jg=E,a.layerName=b),y!==null&&(y.skipsUndoManager=x),a.Zc()&&a.C(64)}Bi.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},Bi.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},Bi.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},Bi.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},Bi.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},Bi.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},Bi.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},Bi.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},Bi.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 Zd(a){return(a.G&32768)!==0}function zv(a,y){a.G=y?a.G|32768:a.G&-32769}function Uv(a,y){a.G=y?a.G|65536:a.G&-65537}function Qd(a){return(a.G&131072)!==0}ke=Bi.prototype,ke.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function Wm(a,y){a.G=y?a.G|1048576:a.G&-1048577}ke.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},ke.N=function(){var a=this.diagram;a!==null&&!Hs(this)&&!Zd(this)&&this.isVisible()&&this.Ib.w()&&a.N(Fh(this,this.Ib))},ke.v=function(){Wn.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof li&&this.labeledLink!==null&&Us(this.labeledLink),a.$b(!0))},ke.Vo=function(a){a||(a=this.Ah,a!==null&&Zv(a,this))},ke.Wo=function(a){a||(a=this.Ah,a!==null&&Qv(a,this))},ke.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},ke.oz=function(){return Hv(this,this)};function Hv(a,y){var E=y.containingGroup;return E!==null?1+Hv(a,E):y instanceof li&&(y=y.labeledLink,y!==null)?Hv(a,y):0}ke.sz=function(){return G1(this,this)};function G1(a,y){var E=y.containingGroup;return E!==null||y instanceof li&&(E=y.labeledLink,E!==null)?G1(a,E):y}ke.Td=function(a){return a instanceof dr?Gv(this,this,a):!1};function Gv(a,y,E){if(y===E||E===null)return!1;var x=y.containingGroup;return x===null||x!==E&&!Gv(a,x,E)?y instanceof li&&(y=y.labeledLink,y!==null)?Gv(a,y,E):!1:!0}ke.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof dr&&Wm(y,!0),y instanceof li){var E=y.labeledLink;E!==null&&(y=E)}y=y.containingGroup}for(E=null,y=a;y!==null;){if(y.G&1048576){E=y;break}y instanceof li&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof dr&&Wm(y,!1),y instanceof li&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return E},Bi.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof li&&this.isLinkLabel)},Bi.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 E=y.layout;E!==null?E.C():y.C(a)}else a=this.diagram,a!==null&&(a=a.layout,a!==null&&a.C())};function Y1(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function Kd(a,y,E,x,b,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof Hr)){if(a.add(y),y instanceof li){if(E&&y instanceof dr)for(var ee=y.memberParts;ee.next();)Kd(a,ee.value,E,x,b,z);if(b!==!1)for(ee=y.linksConnected;ee.next();){var re=ee.value;if(!a.contains(re)){var oe=re.fromNode,ce=re.toNode;oe=oe===null||a.contains(oe),ce=ce===null||a.contains(ce),(b?oe&&ce:oe||ce)&&Kd(a,re,E,x,b,z)}}if(1<x)for(y=y.Ou();y.next();)Kd(a,y.value,E,x-1,b,z)}else if(y instanceof Jn)for(y=y.labelNodes;y.next();)Kd(a,y.value,E,x,b,z)}}zt.Object.defineProperties(Bi.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?gr: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 E=this.diagram;if((E===null||E.Qj(a)!==null&&!E.partManager.addsToTemporaryLayer)&&(this.Jg=a,E!==null&&E.Ya(),this.g("layerName",y,a),y=this.layer,y!==null&&y.name!==a&&(E=y.diagram,E!==null&&(a=E.Qj(a),a!==null&&a!==y)))){var x=y.pc(-1,this,!0);if(0<=x&&E.cb(qo,"parts",y,this,null,x,!0),x=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=x&&E.cb(Wo,"parts",a,null,this,!0,x),x=this.layerChanged,x!==null){var b=E.aa;E.aa=!0,x(this,y,a),E.aa=b}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(sl(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 E=this.layer;E!==null&&Mf(E,-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 Hr?this.type!==Wn.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:yo},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),sl(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:ua},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),sl(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&&(sl(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:_i},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),sl(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,E=a.y,x=this.ke;if(!(x.x===y||isNaN(x.x)&&isNaN(y))||!(x.y===E||isNaN(x.y)&&isNaN(E))){if(a=a.copy(),y=a,this.ph())y=!1;else{if(this.ke=y,this.G|=2097152,Hs(this)===!1&&(Ym(this),E=this.pa,E.w())){var b=this.diagram;if(b===null||b.animationManager.isTicking||!b.undoManager.isUndoingRedoing){var z=E.copy();E.h(E.x+(y.x-x.x),E.y+(y.y-x.y)),_1(this,b,E,z.x,z.y),this.g("position",z,E.copy())}}y=!0}y&&this.g("location",x,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 E=this.diagram,x=this.data,b=null;if(E!==null&&x!==null&&!(this instanceof Hr)){var z=E.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(b=this.clone(),b.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),E===null||x===null||this instanceof Hr?this instanceof Hr&&(b=this.adornedPart,b!==null&&(a=b.Qf,a!==null&&a.remove(y),b.bh(this.category,this))):(z=E.model,z.undoManager.isUndoingRedoing||(this.ph()?(E.partManager.setLinkCategoryForData(x,a),E=E.partManager.findLinkTemplateForCategory(a),E!==null&&(Su(E),E=E.copy(),E!==null&&jv(this,E,y,a))):(z!==null&&z.jm(x,a),E=mS(E.partManager,x,a),E!==null&&(Su(E),E=E.copy(),E===null||E instanceof Jn||(x=this.location.copy(),jv(this,E,y,a),this.location.w()||(this.location=x)))),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 E=this.diagram;E!==null&&E.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 E=this.diagram;if(!a||this.canSelect()&&!(E!==null&&E.selection.count>=E.maxSelectionCount)){this.G^=4096;var x=!1;if(E!==null){x=E.skipsUndoManager,E.skipsUndoManager=!0;var b=E.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),E!==null&&(E.$b(),E.skipsUndoManager=x)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var E=this.diagram;E!==null&&(E=E.highlighteds,E.ka(),a?E.add(this):E.remove(this),E.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&&(sl(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&&(sl(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&&(sl(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 Jn?(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&&(sl(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&&(sl(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&&(sl(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:Go},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),sl(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&&(sl(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&&(sl(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:Aa},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),sl(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 E=this.diagram;if(y!==null?Qv(y,this):this instanceof dr&&E!==null&&E.ai.remove(this),this.Ah=a,a!==null?Zv(a,this):this instanceof dr&&E!==null&&E.ai.add(this),this.C(1),E!==null&&E.aa){var x=this.data,b=E.model;if(x!==null&&b.Xj()){var z=b.wa(a!==null?a.data:null);b.mp(x,z)}}if(x=this.containingGroupChanged,x!==null&&(b=!0,E!==null&&(b=E.aa,E.aa=!0),x(this,y,a),E!==null&&(E.aa=b)),this instanceof dr){for(E=new Dn,Kd(E,this,!0,0,!0),E=E.iterator;E.next();)if(x=E.value,x instanceof li)for(x=x.linksConnected;x.next();)tg(x.value)}if(this instanceof li){for(E=this.linksConnected;E.next();)tg(E.value);E=this.labeledLink,E!==null&&tg(E)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&Mf(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&&(sl(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&&(sl(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&&(sl(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:Vo},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),sl(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&&(sl(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&&(sl(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Bi.prototype.invalidateLayout=Bi.prototype.C,Bi.prototype.findCommonContainingGroup=Bi.prototype.px,Bi.prototype.isMemberOf=Bi.prototype.Td,Bi.prototype.findTopLevelPart=Bi.prototype.sz,Bi.prototype.findSubGraphLevel=Bi.prototype.oz,Bi.prototype.ensureBounds=Bi.prototype.Va,Bi.prototype.getDocumentBounds=Bi.prototype.mi,Bi.prototype.findObject=Bi.prototype.fb,Bi.prototype.moveTo=Bi.prototype.moveTo,Bi.prototype.invalidateAdornments=Bi.prototype.Wb,Bi.prototype.clearAdornments=Bi.prototype.Ej,Bi.prototype.removeAdornment=Bi.prototype.Jf,Bi.prototype.addAdornment=Bi.prototype.bh,Bi.prototype.findAdornment=Bi.prototype.Pj,Bi.prototype.updateTargetBindings=Bi.prototype.La;var W1=!1;Bi.className="Part",Bi.LayoutNone=0,Bi.LayoutAdded=1,Bi.LayoutRemoved=2,Bi.LayoutShown=4,Bi.LayoutHidden=8,Bi.LayoutNodeSized=16,Bi.LayoutGroupLayout=32,Bi.LayoutNodeReplaced=64,Bi.LayoutStandard=127,Bi.LayoutAll=16777215;function Hr(a,y){a===void 0||a instanceof Ca||typeof a=="string"?Bi.call(this,a):(Bi.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)}en(Hr,Bi),Hr.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Hr.prototype.updateRelationshipsFromData=function(){},Hr.prototype.Ul=function(a){var y=this.adornedObject,E=y==null?void 0:y.part;if(E instanceof Jn&&y instanceof yr){y=E.path,E.Ul(a),a=y.geometry,E=this.O.s,y=E.length;for(var x=0;x<y;x++){var b=E[x];b.isPanelMain&&b instanceof yr&&(b.ua=a)}}},Hr.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Hs(a))},Hr.prototype.Zc=function(){return!1},Hr.prototype.gk=function(a,y,E,x,b,z,ee){if(a===Wo&&y==="elements"){if(b instanceof Ys)this.$a===null&&(this.$a=b);else if(b instanceof Wn){var re=b.Nl(function(oe){return oe instanceof Ys});re instanceof Ys&&this.$a===null&&(this.$a=re)}}else a===qo&&y==="elements"&&this.$a!==null&&(x===this.$a?this.$a=null:x instanceof Wn&&this.$a.rg(x)&&(this.$a=null));Bi.prototype.gk.call(this,a,y,E,x,b,z,ee)},Hr.prototype.updateAdornments=function(){},Hr.prototype.Lj=function(){},zt.Object.defineProperties(Hr.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(a){var y=this.adornedPart,E=null;a!==null&&(E=a.part),y===null||a!==null&&y===E||y.Jf(this.category),this.ue=a,E!==null&&E.bh(this.category,this)}},adornedPart:{get:function(){var a=this.ue;return a!==null?a.part:null}},containingGroup:{get:function(){return null}}}),Hr.className="Adornment";function Yv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Ta,this.er=Qm,this.Kr=this.ij=this.Nq=this.Mq=null}Yv.prototype.copy=function(){var a=new Yv;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 Ca||typeof a=="string"?Bi.call(this,a):(Bi.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new Un,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}en(li,Bi),li.prototype.cloneProtected=function(a){Bi.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},ke=li.prototype,ke.Af=function(a){Bi.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function xd(a){a.Ba===null?a.Ba=new Yv:a.Ba.nc&&(a.Ba=a.Ba.copy())}ke.th=function(){Bi.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function V1(a,y){y!==null&&(a.af===null&&(a.af=new Dn),a.af.add(y))}function Z1(a,y,E,x){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===E&&z.Px===x||z.Ds===y&&z.cv===a&&z.Ox===x&&z.Px===E)return z}return null}ke.Lz=function(a,y,E){y==null&&(y=""),E==null&&(E=""),a=Z1(this,a,y,E),a!==null&&a.Sl()},ke.gk=function(a,y,E,x,b,z,ee){a===Wo&&y==="elements"?this.wc=null:a===qo&&y==="elements"&&(this.wc=null),Bi.prototype.gk.call(this,a,y,E,x,b,z,ee)},ke.Bd=function(a){for(var y=this.linksConnected;y.next();){var E=y.value;a!==void 0&&a.contains(E)||(Ml(E.fromPort),Ml(E.toPort),E.bb())}};function Q1(a,y){for(a=a.linksConnected;a.next();){var E=a.value;(E.fromPort===y||E.toPort===y)&&(Ml(E.fromPort),Ml(E.toPort),E.bb())}}function Ml(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||Ml(y.port)}}ke.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(!Bi.prototype.isVisible.call(this))return!1;var a=!0,y=pd,E=this.diagram;if(E!==null&&(a=E.isTreePathToChildren,y=E.treeCollapsePolicy),y===pd){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===Sa){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(x){return!x.isTreeExpanded}))return!1}else if(y===zf&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(x){return!x.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},li.prototype.Zb=function(a){Bi.prototype.Zb.call(this,a);for(var y=this.linksConnected;y.next();){var E=y.value;if(a&&this.containingGroup!==null){var x=E.To(this);x===null||x.Td(this.containingGroup)||E.bb()}E.Zb(a)}},li.prototype.qx=function(){var a=new Dn,y=new Dn;return K1(this,this,a,y),y.iterator};function K1(a,y,E,x){if(y!==null&&!E.has(y)){E.add(y);var b=!0,z=a.diagram;z!==null&&(b=z.isTreePathToChildren),y.linksConnected.each(function(ee){ee.isTreeLink?(b?ee.fromNode===y:ee.toNode===y)&&K1(a,b?ee.toNode:ee.fromNode,E,x):x.add(ee)})}}li.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new Ar(this.jb),E=this;return y.predicate=function(x){return x.fromNode===E&&x.fromPortId===a||x.toNode===E&&x.toPortId===a},y},ke=li.prototype,ke.Mo=function(a){a===void 0&&(a=null);var y=new Ar(this.jb),E=this;return y.predicate=function(x){return x.fromNode!==E?!1:a===null?!0:x.fromPortId===a},y},ke.Sd=function(a){a===void 0&&(a=null);var y=new Ar(this.jb),E=this;return y.predicate=function(x){return x.toNode!==E?!1:a===null?!0:x.toPortId===a},y},ke.Mu=function(a){a===void 0&&(a=null);for(var y=null,E=null,x=this.jb.iterator;x.next();){var b=x.value;b.fromNode===this?(a===null||b.fromPortId===a)&&(b=b.toNode,y!==null?y.add(b):E!==null&&E!==b?(y=new Dn,y.add(E),y.add(b)):E=b):b.toNode!==this||a!==null&&b.toPortId!==a||(b=b.fromNode,y!==null?y.add(b):E!==null&&E!==b?(y=new Dn,y.add(E),y.add(b)):E=b)}return y!==null?y.iterator:E!==null?new Tr(E):gr},ke.Po=function(a){a===void 0&&(a=null);for(var y=null,E=null,x=this.jb.iterator;x.next();){var b=x.value;b.fromNode!==this||a!==null&&b.fromPortId!==a||(b=b.toNode,y!==null?y.add(b):E!==null&&E!==b?(y=new Dn,y.add(E),y.add(b)):E=b)}return y!==null?y.iterator:E!==null?new Tr(E):gr},ke.Oo=function(a){a===void 0&&(a=null);for(var y=null,E=null,x=this.jb.iterator;x.next();){var b=x.value;b.toNode!==this||a!==null&&b.toPortId!==a||(b=b.fromNode,y!==null?y.add(b):E!==null&&E!==b?(y=new Dn,y.add(E),y.add(b)):E=b)}return y!==null?y.iterator:E!==null?new Tr(E):gr},ke.jz=function(a,y,E){y===void 0&&(y=null),E===void 0&&(E=null);var x=new Ar(this.jb),b=this;return x.predicate=function(z){return!((z.fromNode!==b||z.toNode!==a||y!==null&&z.fromPortId!==y||E!==null&&z.toPortId!==E)&&(z.fromNode!==a||z.toNode!==b||E!==null&&z.fromPortId!==E||y!==null&&z.toPortId!==y))},x},ke.kz=function(a,y,E){y===void 0&&(y=null),E===void 0&&(E=null);var x=new Ar(this.jb),b=this;return x.predicate=function(z){return!(z.fromNode!==b||z.toNode!==a||y!==null&&z.fromPortId!==y||E!==null&&z.toPortId!==E)},x};function Vm(a,y,E){Ml(E);var x=a.jb.contains(y);if(x||a.jb.add(y),!x||y.fromNode===y.toNode){var b=a.linkConnected;if(b!==null){var z=!0,ee=a.diagram;ee!==null&&(z=ee.aa,ee.aa=!0),b(a,y,E),ee!==null&&(ee.aa=z)}}!x&&y.isTreeLink&&(E=y.fromNode,y=y.toNode,E!==null&&y!==null&&E!==y&&(x=!0,a=a.diagram,a!==null&&(x=a.isTreePathToChildren),b=x?y:E,z=x?E:y,b.ci||(b.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(x?E===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function Zm(a,y,E){Ml(E);var x=a.jb.remove(y),b=null;if(x||y.toNode===y.fromNode){var z=a.linkDisconnected;if(b=a.diagram,z!==null){var ee=!0;b!==null&&(ee=b.aa,b.aa=!0),z(a,y,E),b!==null&&(b.aa=ee)}}x&&y.isTreeLink&&(E=!0,b!==null&&(E=b.isTreePathToChildren),a=E?y.toNode:y.fromNode,y=E?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)):cp(y)))}function cp(a){if(a.ci=!1,a.jb.count!==0){var y=!0,E=a.diagram;if(E===null||!E.undoManager.isUndoingRedoing){for(E!==null&&(y=E.isTreePathToChildren),E=a.jb.iterator;E.next();){var x=E.value;if(x.isTreeLink){if(y){if(x.fromNode===a){a.isTreeLeaf=!1;return}}else if(x.toNode===a){a.isTreeLeaf=!1;return}}}a.isTreeLeaf=!0}}}li.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},ke=li.prototype,ke.Vo=function(a){Bi.prototype.Vo.call(this,a),a||(cp(this),a=this.Yk,a!==null&&rS(a,this))},ke.Wo=function(a){Bi.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},ke.Lj=function(){if(0<this.jb.count){var a=this.diagram;if(a!==null)for(var y=a.commandHandler!==null?a.commandHandler.deletesConnectedLinks:!0,E=this.jb.copy().iterator;E.next();){var x=E.value;y?a.remove(x):(x.fromNode===this&&(x.fromNode=null),x.toNode===this&&(x.toNode=null))}}this.labeledLink=null,Bi.prototype.Lj.call(this)},ke.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;X1(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function X1(a){a.wc===null?a.wc=new vi:a.wc.clear(),a.qm(a,function(y,E){J1(y,E)}),a.wc.count===0&&a.wc.add("",a)}function J1(a,y){var E=y.portId;E!==null&&a.wc!==null&&a.wc.add(E,y)}function Wv(a,y,E){var x=y.portId;if(x!==null&&(a.wc!==null&&a.wc.remove(x),y=a.diagram,y!==null&&E)){for(E=null,a=a.findLinksConnected(x);a.next();)x=a.value,E===null&&(E=ci()),E.push(x);if(E!==null){for(a=0;a<E.length;a++)y.remove(E[a]);pi(E)}}}ke.Nz=function(a){if(a===null||a===this)return!1;var y=!0,E=this.diagram;if(E!==null&&(y=E.isTreePathToChildren),E=this,y)for(;E!==a;){y=null;for(var x=E.jb.iterator;x.next();){var b=x.value;if(b.isTreeLink&&(y=b.fromNode,y!==E&&y!==this))break}if(y===this||y===null||y===E)return!1;E=y}else for(;E!==a;){for(y=null,x=E.jb.iterator;x.next()&&(b=x.value,!b.isTreeLink||(y=b.toNode,y===E||y===this)););if(y===this||y===null||y===E)return!1;E=y}return!0},ke.xz=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this,a)for(;;){a=null;for(var E=y.jb.iterator;E.next();){var x=E.value;if(x.isTreeLink&&(a=x.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,E=y.jb.iterator;E.next()&&(x=E.value,!x.isTreeLink||(a=x.toNode,a===y||a===this)););if(a===this)return this;if(a===null||a===y)return y;y=a}},ke.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)Wm(y,!0),y=y.pg();var E=null;for(y=a;y!==null;){if(y.G&1048576){E=y;break}y=y.pg()}for(y=this;y!==null;)Wm(y,!1),y=y.pg();return E},ke.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},ke.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 E=y.value;if(E.isTreeLink&&(E=a?E.fromNode:E.toNode,E!==this))return this.ci=E}return this.ci=null},ke.vz=function(){function a(E,x){x.add(E);var b=E.kh();b!==null&&(x.add(b),E=E.pg(),E!==null&&a(E,x))}var y=new Dn;return a(this,y),y},ke.uz=function(){return q1(this,this)};function q1(a,y){return y=y.pg(),y===null?0:1+q1(a,y)}ke.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new Ar(this.jb);var E=this;return y.predicate=a?function(x){return!!(x.isTreeLink&&x.fromNode===E)}:function(x){return!!(x.isTreeLink&&x.toNode===E)},y},ke.Ou=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren);var E=y=null,x=this.jb.iterator;if(a)for(;x.next();)a=x.value,a.isTreeLink&&a.fromNode===this&&(a=a.toNode,y!==null?y.add(a):E!==null&&E!==a?(y=new Un,y.add(E),y.add(a)):E=a);else for(;x.next();)a=x.value,a.isTreeLink&&a.toNode===this&&(a=a.fromNode,y!==null?y.add(a):E!==null&&E!==a?(y=new Un,y.add(E),y.add(a)):E=a);return y!==null?y.iterator:E!==null?new Tr(E):gr},ke.wz=function(a){a===void 0&&(a=1/0);var y=new Dn;return Kd(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 E=new Dn;E.add(this),$1(this,E,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===pd),y.Ue=!1}};function $1(a,y,E,x,b,z,ee){if(1<x)for(var re=E?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),$1(oe,y,E,x-1,b,z,ee)))}else eS(a,y,E,b,z,ee)}function eS(a,y,E,x,b,z){for(var ee=b===a?!0:a.isTreeExpanded,re=E?a.Mo():a.Sd(),oe={};re.next();){var ce=re.value;if(ce.isTreeLink&&(ce=ce.To(a),ce!==null&&ce!==a)){var fe=y.contains(ce);if(fe||y.add(ce),ee){var ye=E?ce.Oo():ce.Po();oe.uv=a,ye.all(function(Ne){return function(Pe){return Pe===Ne.uv||!Pe.isTreeExpanded}}(oe))&&x.Aj(ce,b),ce.oh(),ce.Zb(!1)}ce.isTreeExpanded&&(ce.wasTreeExpanded=ce.isTreeExpanded,fe||eS(ce,y,E,x,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 E=new Dn;E.add(this),tS(this,E,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===pd),y.Ue=!1}};function tS(a,y,E,x,b,z,ee){for(var re=z===a?!1:a.isTreeExpanded,oe=E?a.Mo():a.Sd(),ce={};oe.next();){var fe=oe.value;if(fe.isTreeLink&&(re||fe.fd||fe.bb(),fe=fe.To(a),fe!==null&&fe!==a&&!y.contains(fe))){if(y.add(fe),!re){fe.Zb(!0),fe.oh();var ye=E?fe.Oo():fe.Po();ce.vv=a,ye.all(function(Ne){return function(Pe){return Pe===Ne.vv||!Pe.isTreeExpanded}}(ce))&&b.Cj(fe,z)}(2<x||fe.wasTreeExpanded)&&(fe.wasTreeExpanded=!1,tS(fe,y,E,x-1,b,z,ee))}ce={vv:ce.vv}}a.isTreeExpanded=!0}zt.Object.defineProperties(li.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Qm},set:function(a){var y=this.portSpreading;y!==a&&(xd(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 E=this.diagram;E!==null&&fd(E,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:Ta},set:function(a){typeof a=="number"&&(a=new mr(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),xd(this),this.Ba.yp=a;var E=this.diagram;E!==null&&fd(E,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&&(xd(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&&(xd(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&&(xd(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 E=this.diagram,x=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),E!==null&&x!==null&&!E.undoManager.isUndoingRedoing){var b=y.data,z=E.model;if(b!==null&&z.ri()){var ee=z.wa(x);ee!==void 0&&z.Qx(b,ee)}}this.containingGroup=null}this.Yk=a,a!==null&&(rS(a,this),E===null||x===null||E.undoManager.isUndoingRedoing||(b=a.data,E=E.model,b!==null&&E.ri()&&(x=E.wa(x),x!==void 0&&E.Bu(b,x))),this.containingGroup=a.containingGroup),Us(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&X1(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 E=this.diagram;if(this.g("isTreeExpanded",y,a),y=this.treeExpandedChanged,y!==null){var x=!0;E!==null&&(x=E.aa,E.aa=!0),y(this),E!==null&&(E.aa=x)}E!==null&&E.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&&(xd(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 OE=new Mn(li,"SpreadingNone",10),Qm=new Mn(li,"SpreadingEvenly",11),Vv=new Mn(li,"SpreadingPacked",12);li.className="Node",li.SpreadingNone=OE,li.SpreadingEvenly=Qm,li.SpreadingPacked=Vv;function dr(a,y){a===void 0||a instanceof Ca||typeof a=="string"?li.call(this,a):(li.call(this),a&&(y=a)),this.U|=4608,this.Gn=new Dn,this.$a=null,this.Sc=new Oo,this.Sc.group=this,this.gl=new Dn,this.tb=this.$p=null,y&&Object.assign(this,y)}en(dr,li),dr.prototype.cloneProtected=function(a){li.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(E){return E instanceof Ys});y instanceof Ys?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())},ke=dr.prototype,ke.Af=function(a){li.prototype.Af.call(this,a);var y=a.Rj();for(a=a.memberParts;a.next();){var E=a.value;if(E.v(),E.C(8),E.Ej(),E instanceof li)E.Bd(y);else if(E instanceof Jn)for(E=E.labelNodes;E.next();)E.value.Bd(y)}},ke.gk=function(a,y,E,x,b,z,ee){if(a===Wo&&y==="elements"){if(b instanceof Ys)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 Wn){var re=b.Nl(function(oe){return oe instanceof Ys});re instanceof Ys&&(this.$a===null?this.$a=re:this.$a!==re&<("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===qo&&y==="elements"&&this.$a!==null&&(x===this.$a?this.$a=null:x instanceof Wn&&this.$a.rg(x)&&(this.$a=null));li.prototype.gk.call(this,a,y,E,x,b,z,ee)},ke.Xl=function(a,y){li.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==Wn.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof Wn&&(a=a.Pb()),this.tb===null&&(this.tb=new pn),a.mi(this.tb),a instanceof yr&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},ke.eh=function(a,y,E,x){this.nf=this.$a,li.prototype.eh.call(this,a,y,E,x)},ke.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof Jn||y.Va()}),li.prototype.Va.call(this)},ke.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()&&Hs(y))return!1}else if(y instanceof Jn&&y.isVisible()&&Hs(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Zv(a,y){if(a.Gn.add(y)){y instanceof dr&&a.gl.add(y);var E=a.memberAdded;if(E!==null){var x=!0,b=a.diagram;b!==null&&(x=b.aa,b.aa=!0),E(a,y),b!==null&&(b.aa=x)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof Jn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Qv(a,y){if(a.Gn.remove(y)){y instanceof dr&&a.gl.remove(y);var E=a.memberRemoved;if(E!==null){var x=!0,b=a.diagram;b!==null&&(x=b.aa,b.aa=!0),E(a,y),b!==null&&(b.aa=x)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof Jn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}ke.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)},dr.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=hn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},dr.prototype.addMembers=function(a,y){var E=this.diagram;if(E===null)return!1;E=E.commandHandler;var x=!0;for(a=hn(a).iterator;a.next();){var b=a.value;!y||E.isValidMember(this,b)?b.containingGroup=this:x=!1}return x},dr.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))},ke=dr.prototype,ke.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 E=y.value;if(a===void 0||!a.contains(E)){var x=E.fromNode;x!==null&&x!==this&&x.Td(this)&&!x.isVisible()?(Ml(E.fromPort),Ml(E.toPort),E.bb()):(x=E.toNode,x!==null&&x!==this&&x.Td(this)&&!x.isVisible()&&(Ml(E.fromPort),Ml(E.toPort),E.bb()))}}},ke.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 E=new Dn,x=y.iterator;x.next();){var b=x.value;if(b instanceof li)for(b=b.linksConnected;b.next();){var z=b.value;y.contains(z)||E.add(z)}}return a&&(this.$p=E),E.iterator},ke.iz=function(){var a=this.Rj();a.add(this);for(var y=new Dn,E=a.iterator;E.next();){var x=E.value;if(x instanceof li)for(x=x.linksConnected;x.next();){var b=x.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},ke.hz=function(){function a(E,x){E!==null&&(x.add(E),a(E.containingGroup,x))}var y=new Dn;return a(this,y),y},ke.Rj=function(){var a=new Dn;return Kd(a,this,!0,0,!0),a.remove(this),a},ke.Zb=function(a){li.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},dr.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();nS(this,y,a,this),a.Ue=!1}};function nS(a,y,E,x){for(var b=a.memberParts;b.next();){var z=b.value;if(z.Zb(!1),z instanceof dr&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,nS(z,y,E,x)),z instanceof li)z.Bd(y),E.Aj(z,x);else if(z instanceof Jn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}dr.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();iS(this,y,a,this),a.Ue=!1}};function iS(a,y,E,x){for(var b=a.memberParts;b.next();){var z=b.value;if(z.Zb(!0),z instanceof dr&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,iS(z,y,E,x)),z instanceof li)z.Bd(y),E.Cj(z,x);else if(z instanceof Jn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}dr.prototype.move=function(a,y){y===void 0&&(y=!1);var E=y?this.location:this.position,x=E.x;E=E.y;var b=a.x,z=a.y;if(!(x===b||isNaN(x)&&isNaN(b))||!(E===z||isNaN(E)&&isNaN(z))){for(x=b-(isNaN(x)?0:x),E=z-(isNaN(E)?0:E),z=dt.alloc(),li.prototype.move.call(this,a,y),a=new Dn,y=this.Rj().iterator;y.next();)b=y.value,b instanceof Jn&&(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 ee=b.position,re=b.location;ee.w()?(z.x=ee.x+x,z.y=ee.y+E,b.position=z):re.w()&&(z.x=re.x+x,z.y=re.y+E,b.location=z)}for(y.reset();y.next();)b=y.value,b instanceof Jn&&(b.suspendsRouting=a.contains(b),b.fd||b.fromNode!==this&&b.toNode!==this)&&(ee=b.position,z.x=ee.x+x,z.y=ee.y+E,z.w()?b.move(z):b.bb(),Xv(b)&&b.bb());dt.free(z)}},zt.Object.defineProperties(dr.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 E=this.diagram;a!==null&&(a.diagram=E,a.group=this),E!==null&&(E.xh=!0),this.g("layout",y,a),E!==null&&E.$b()}}},memberAdded:{get:function(){return this.Ba!==null?this.Ba.Mq:null},set:function(a){var y=this.memberAdded;y!==a&&(xd(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&&(xd(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&&(xd(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 E=this.diagram;if(this.g("isSubGraphExpanded",y,a),y=this.subGraphExpandedChanged,y!==null){var x=!0;E!==null&&(x=E.aa,E.aa=!0),y(this),E!==null&&(E.aa=x)}E!==null&&E.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&&(xd(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)}}}),dr.prototype.expandSubGraph=dr.prototype.expandSubGraph,dr.prototype.collapseSubGraph=dr.prototype.collapseSubGraph,dr.prototype.findSubGraphParts=dr.prototype.Rj,dr.prototype.findContainingGroupChain=dr.prototype.hz,dr.prototype.findExternalNodesConnected=dr.prototype.iz,dr.prototype.findExternalLinksConnected=dr.prototype.Lu,dr.prototype.ensureBounds=dr.prototype.Va,dr.className="Group";function Ys(a){Rt.call(this),this.yb=ds,this.ko=new pn(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}en(Ys,Rt),Ys.prototype.cloneProtected=function(a){Rt.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},Ys.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return ca(0,0,y.width,y.height,a.x,a.y)},Ys.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof dr||a instanceof Hr)||lt("Placeholder is not inside a Group or Adornment."),a instanceof dr){var y=this.computeBorder(this.ko),E=this.minSize,x=this.dc;for(wa(x,(isFinite(E.width)?Math.max(E.width,y.width):y.width)||0,(isFinite(E.height)?Math.max(E.height,y.height):y.height)||0),this.Ge(0,0,x.width,x.height),x=a.memberParts,E=!1;x.next();)if(x.value.isVisible()){E=!0;break}x=a.diagram,!E||x===null||x.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(E=dt.alloc(),E.xi(y,a.locationSpot),E.D(a.location)||(a.location=E),dt.free(E))}else{y=this.dc,E=this.yb,x=E.left+E.right;var b=E.top+E.bottom,z=a.adornedObject;a.angle=z.li();var ee=0;z instanceof yr&&(ee=z.strokeWidth);var re=z.Df(),oe=z.naturalBounds,ce=(oe.width+ee)*re;ee=(oe.height+ee)*re,a.type!==Wn.Link&&(re=z.ga(a.category==="Selection"?_i:a.locationSpot,dt.alloc()),a.location=re,dt.free(re)),isNaN(ce)||isNaN(ee)?(a=z.ga(_i,dt.alloc()),ce=pn.allocAt(a.x,a.y,0,0),ce.Ye(z.ga(co,a)),ce.Ye(z.ga(ur,a)),ce.Ye(z.ga(jo,a)),wa(y,ce.width+x||0,ce.height+b||0),this.Ge(-E.left,-E.top,y.width,y.height),dt.free(a),pn.free(ce)):(wa(y,ce+x||0,ee+b||0),this.Ge(-E.left,-E.top,y.width,y.height))}},Ys.prototype.eh=function(a,y,E,x){this.actualBounds.h(a,y,E,x)},Ys.prototype.computeBorder=function(a){var y=this.part,E=y.diagram,x=E===null||!E.animationManager.isAnimating;if(E!==null&&y instanceof dr&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var b=E.toolManager.findTool("Dragging");if(b===E.currentTool&&(E=b.computeBorder(y,this.ko,a),E!==null))return E}E=pn.alloc(),b=this.computeMemberBounds(E);var z=this.yb;return y instanceof dr&&!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)),pn.free(E),x&&y instanceof dr&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},Ys.prototype.computeMemberBounds=function(a){if(!(this.part instanceof dr))return a.h(0,0,0,0),a;for(var y=this.part,E=1/0,x=1/0,b=-1/0,z=-1/0,ee=y.memberParts;ee.next();){var re=ee.value;if(re.isVisible()){if(re instanceof Jn&&(!y.computesBoundsIncludingLinks||Hl(re)||re.fromNode===y||re.toNode===y))continue;re=re.actualBounds,re.left<E&&(E=re.left),re.top<x&&(x=re.top),re.right>b&&(b=re.right),re.bottom>z&&(z=re.bottom)}}return isFinite(E)&&isFinite(x)?a.h(E,x,b-E,z-x):(y=y.location,a.h(y.x,y.y,0,0)),a},zt.Object.defineProperties(Ys.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new mr(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Ys.className="Placeholder";function Jn(a){Bi.call(this,Wn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Ws,this.Om=0,this.Qm=Ws,this.Rm=NaN,this.qj=$v,this.po=.5,this.wd=null,this.Nb=new Un().freeze(),this.Tg=this.Mg=null,this.ml=new pn,this.ua=new Qn,this.u=this.o=this.Sf=this.Wf=null,this.su=new dt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}en(Jn,Bi),Jn.prototype.cloneProtected=function(a){Bi.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())},ke=Jn.prototype,ke.Af=function(a){Bi.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&&Ml(y),a=a.toPort,a!==null&&Ml(a)},ke.qb=function(a){a.classType===Jn?(a.value&2)===2?this.routing=a:a===Yl||a===wd||a===ig?this.curve=a:a===fp||a===e0||a===t0?this.adjusting=a:a!==$v&&a!==Ws&<("Unknown Link enum value for a Link property: "+a):Bi.prototype.qb.call(this,a)},ke.Xc=function(){this.ba===null&&(this.ba=new $g)},ke.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Hs(a)||Zd(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Hs(a)||Zd(a)))},ke.zv=function(){return!1},ke.Av=function(){},ke.Zc=function(){return!1},Jn.prototype.computeAngle=function(a,y,E){return Jn.computeAngle(y,E)},Jn.computeAngle=function(a,y){switch(a){default:case Ws:a=0;break;case gp:a=y;break;case pp:a=y+90;break;case mp:a=y-90;break;case ey:a=y+180;break;case n0:a=Ft.bp(y),90<a&&270>a&&(a-=180);break;case vp:a=Ft.bp(y+90),90<a&&270>a&&(a-=180);break;case yp:a=Ft.bp(y-90),90<a&&270>a&&(a-=180);break;case i0:if(a=Ft.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return Ft.bp(a)};function tg(a){var y=a.fromNode,E=a.toNode,x=null;if(y!==null?x=E!==null?y.px(E):y.containingGroup:E!==null?x=E.containingGroup:x=null,y=x,E=a.Ah,E!==y){E!==null&&Qv(E,a),a.Ah=y,y!==null&&Zv(y,a);var b=a.containingGroupChanged;if(b!==null){var z=!0,ee=a.diagram;ee!==null&&(z=ee.aa,ee.aa=!0),b(a,E,y),ee!==null&&(ee.aa=z)}!a.fd||a.Lw!==E&&a.Mw!==E||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=x}ke=Jn.prototype,ke.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Bi.prototype.oh.call(this)},ke.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},ke.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function rS(a,y){a.wd===null&&(a.wd=new Dn),a.wd.add(y),a.v()}ke.Vo=function(a){if(Bi.prototype.Vo.call(this,a),Bh(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Vm(a,this,y));var E=this.uf;if(E!==null){var x=this.toPort;E===a&&x===y||Vm(E,this,x)}dp(this)}},ke.Wo=function(a){if(Bi.prototype.Wo.call(this,a),Bh(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Zm(a,this,y));var E=this.uf;if(E!==null){var x=this.toPort;E===a&&x===y||Zm(E,this,x)}hp(this)}},ke.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))},Jn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Jn.prototype.move=function(a,y){var E=y?this.location:this.position,x=E.x;isNaN(x)&&(x=0);var b=E.y;for(isNaN(b)&&(b=0),x=a.x-x,b=a.y-b,y===!0?Bi.prototype.move.call(this,a,!1):(a=dt.allocAt(E.x+x,E.y+b),Bi.prototype.move.call(this,a,!1),dt.free(a)),bd(this,x,b),a=this.labelNodes;a.next();)y=a.value,E=y.position,y.moveTo(E.x+x,E.y+b)},Jn.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},Jn.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},Jn.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Kr),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var E=this.i(0),x=this.i(1);return a.h((E.x+x.x)/2,(E.y+x.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===Yl))return this.ua.Pu(.5,a),a.add(this.i(0)),E=this.ua.figures.first(),a.offset(-E.startX,-E.startY),a;if(this.computeCurve()===Yl){if(y===3){E=this.i(0),x=this.i(1);var b=this.i(2);return Ft.ax(E.x,E.y,x.x,x.y,x.x,x.y,b.x,b.y,a),a}if(x=(y-1)/3|0,E=3*(x/2|0),x%2===1){x=this.i(E),b=this.i(E+1);var z=this.i(E+2);E=this.i(E+3),Ft.ax(x.x,x.y,b.x,b.y,z.x,z.y,E.x,E.y,a)}else a.assign(this.i(E));return a}var ee=this.flattenedLengths;for(E=this.flattenedTotalLength,b=z=x=0;x<E/2&&z<y&&(b=ee[z],!(x+b>E/2));)x+=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-(E/2-x)):a.h(y.x,y.y+(E/2-x)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(E/2-x),y.y):a.h(y.x+(E/2-x),y.y):(E=(E/2-x)/b,a.h(y.x+E*(z.x-y.x),y.y+E*(z.y-y.y))),a},Jn.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()===Yl))return this.ua.wx(.5);if(this.computeCurve()===Yl&&4<=a){var y=(a-1)/3|0,E=3*(y/2|0);if(y%2===1){E=Math.floor(E),a=this.i(E),y=this.i(E+1);var x=this.i(E+2);return E=this.i(E+3),Ft.My(a.x,a.y,y.x,y.y,x.x,x.y,E.x,E.y)}if(0<E&&E+1<a)return this.i(E-1).ab(this.i(E+1))}y=this.flattenedLengths,x=this.flattenedTotalLength;var b=0;E=0;for(var z;b<x/2&&E<a&&(z=y[E],!(b+z>x/2));)b+=z,E++;if(y=this.i(E),x=this.i(E+1),1>Math.abs(y.x-x.x)&&1>Math.abs(y.y-x.y)){if(0<E&&E+2<a)return this.i(E-1).ab(this.i(E+2))}else{if(1>Math.abs(y.x-x.x))return y.y>x.y?270:90;if(1>Math.abs(y.y-x.y))return y.x>x.x?180:0}return y.ab(x)},ke=Jn.prototype,ke.i=function(a){return this.Nb.s[a]},ke.dd=function(a,y){this.Nb.cd(a,y)},ke.L=function(a,y,E){this.Nb.cd(a,new dt(y,E))},ke.Kz=function(a,y){this.Nb.Gb(a,y)},ke.m=function(a,y,E){this.Nb.Gb(a,new dt(y,E))},ke.ne=function(a){this.Nb.add(a)},ke.yf=function(a,y){this.Nb.add(new dt(a,y))},ke.pv=function(a){this.Nb.mb(a)},ke.Fj=function(){this.Nb.clear()};function bd(a,y,E){if(y!==0||E!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,E),a.defaultToPoint&&a.defaultToPoint.offset(y,E);else{for(var x=a.fd,b=new Un,z=a.Nb.iterator;z.next();){var ee=z.value;b.add(new dt(ee.x+y,ee.y+E).freeze())}b.freeze(),z=a.Nb,a.Nb=b,ee=a.diagram,isNaN(y)||isNaN(E)||ee!==null&&ee.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+E),a.pa.h(a.pa.x+y,a.pa.y+E),Us(a)),x?Km(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),ee!==null&&ee.animationManager.zb&&ue(ee.animationManager,a,b),a.g("points",z,b)}}ke.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},ke.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,E=1/0,x=1/0,b=a.s,z=b.length,ee=0;ee<z;ee++){var re=b[ee];E=Math.min(re.x,E),x=Math.min(re.y,x)}re=ee=1/0;for(var oe=y.s,ce=oe.length,fe=0;fe<ce;fe++){var ye=oe[fe];ee=Math.min(ye.x,ee),re=Math.min(ye.y,re),ye.freeze()}if(y.freeze(),ce===z){for(z=0;z<ce;z++)if(fe=b[z],ye=oe[z],fe.x-E!==ye.x-ee||fe.y-x!==ye.y-re){this.qc();break}}else this.qc();this.Mg=null,E=this.diagram,E!==null&&E.animationManager.zb&&ue(E.animationManager,this,y),Km(this),this.g("points",a,y)}},ke.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function Km(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),$m(a,!1))}ke.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())}},ke.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()}}},Jn.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(cf||(cf=new li,cf.desiredSize=lr,cf.Va()),this.defaultFromPoint&&(cf.location=this.defaultFromPoint,cf.Va(),y=a=cf)):y=this.fromPort,y!==null&&!a.isVisible()){var E=a.findVisibleNode();E!==null&&E!==a?(a=E,y=E.port):a=E}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 x=this.toNode,b=null;if(x===null?(df||(df=new li,df.desiredSize=lr,df.Va()),this.defaultToPoint&&(df.location=this.defaultToPoint,df.Va(),b=x=df)):b=this.toPort,b===null||x.isVisible()||(E=x.findVisibleNode(),E!==null&&E!==x?(x=E,b=E.port):x=E),this.Mw=x,x===null||!x.location.w())return!1;for(;!(b===null||b.actualBounds.w()&&b.Ed());)b=b.panel;if(b===null)return!1;var z=this.pointsCount,ee=this.computeSpot(!0,y);E=this.computeSpot(!1,b);var re=ng(ee),oe=ng(E),ce=y===b&&y!==null,fe=this.isOrthogonal,ye=this.curve===Yl;this.Wf=ce&&!fe?ye=!0:!1;var Ne=this.computeAdjusting()===Ws||ce;if(!fe&&!ce&&re&&oe){if(re=!1,!Ne&&3<=z&&(Ne=this.getLinkPoint(a,y,ee,!0,!1,x,b),oe=this.getLinkPoint(x,b,E,!1,!1,a,y),re=this.adjustPoints(0,Ne,z-1,oe))&&(Ne=this.getLinkPoint(a,y,ee,!0,!1,x,b),oe=this.getLinkPoint(x,b,E,!1,!1,a,y),this.adjustPoints(0,Ne,z-1,oe)),!re)if(this.Fj(),ye){z=this.getLinkPoint(a,y,ee,!0,!1,x,b),Ne=this.getLinkPoint(x,b,E,!1,!1,a,y),re=Ne.x-z.x,oe=Ne.y-z.y,ce=this.computeCurviness(),ye=fe=0;var Pe=z.x+re/3,Fe=z.y+oe/3,We=Pe,gt=Fe;Ft.B(oe,0)?gt=0<re?gt-ce:gt+ce:(fe=-re/oe,ye=Math.sqrt(ce*ce/(fe*fe+1)),0>ce&&(ye=-ye),We=(0>oe?-1:1)*ye+Pe,gt=fe*(We-Pe)+Fe),Pe=z.x+2*re/3,Fe=z.y+2*oe/3;var nt=Pe,vt=Fe;Ft.B(oe,0)?vt=0<re?vt-ce:vt+ce:(nt=(0>oe?-1:1)*ye+Pe,vt=fe*(nt-Pe)+Fe),this.Fj(),this.ne(z),this.yf(We,gt),this.yf(nt,vt),this.ne(Ne),this.dd(0,this.getLinkPoint(a,y,ee,!0,!1,x,b)),this.dd(3,this.getLinkPoint(x,b,E,!1,!1,a,y))}else z=x,Ne=b,x=this.getLinkPoint(a,y,ee,!0,!1,z,Ne),b=this.getLinkPoint(z,Ne,E,!1,!1,a,y),this.hasCurviness()?(Ne=b.x-x.x,E=b.y-x.y,ee=this.computeCurviness(),a=x.x+Ne/2,y=x.y+E/2,z=a,re=y,Ft.B(E,0)?re=0<Ne?re-ee:re+ee:(Ne=-Ne/E,z=Math.sqrt(ee*ee/(Ne*Ne+1)),0>ee&&(z=-z),z=(0>E?-1:1)*z+a,re=Ne*(z-a)+y),this.ne(x),this.yf(z,re),this.ne(b)):(this.ne(x),this.ne(b),re=pn.alloc(),y.mi(re),oe=re.ca(b),Ne.mi(re),ce=re.ca(x),(oe||ce)&&(ee=y.ga(Jm(ee),new dt),this.dd(0,this.getLinkPointFromPoint(a,y,ee,b,!0,ee)),E=Ne.ga(Jm(E),new dt),this.dd(1,this.getLinkPointFromPoint(z,Ne,E,x,!1,E))),pn.free(re))}else{ye=this.isAvoiding,Ne&&(fe&&ye||ce)&&this.Fj();var St=ce?this.computeCurviness():0;ye=this.getLinkPoint(a,y,ee,!0,fe,x,b),Pe=We=Fe=0,(fe||!re||ce)&&(gt=this.computeEndSegmentLength(a,y,ee,!0),Pe=this.getLinkDirection(a,y,ye,ee,!0,fe,x,b),ce&&(re||ee.D(E)||!fe&&ee.x+E.x===1&&ee.y+E.y===1)&&(Pe-=fe?90:30,0>St&&(Pe-=180)),0>Pe?Pe+=360:360<=Pe&&(Pe-=360),ce&&(gt+=Math.abs(St)*(fe?1:2)),Pe===0?Fe=gt:Pe===90?We=gt:Pe===180?Fe=-gt:Pe===270?We=-gt:(Fe=gt*Math.cos(Pe*Math.PI/180),We=gt*Math.sin(Pe*Math.PI/180)),ee.Mc()&&ce&&(gt=y.ga(Xi,dt.alloc()),nt=dt.allocAt(gt.x+1e3*Fe,gt.y+1e3*We),this.getLinkPointFromPoint(a,y,gt,nt,!0,ye),dt.free(gt),dt.free(nt))),gt=this.getLinkPoint(x,b,E,!1,fe,a,y);var Tt=vt=nt=0;if(fe||!oe||ce){var Dt=this.computeEndSegmentLength(x,b,E,!1);Tt=this.getLinkDirection(x,b,gt,E,!1,fe,a,y),ce&&(oe||ee.D(E)||!fe&&ee.x+E.x===1&&ee.y+E.y===1)&&(Tt+=fe?0:30,0>St&&(Tt+=180)),0>Tt?Tt+=360:360<=Tt&&(Tt-=360),ce&&(Dt+=Math.abs(St)*(fe?1:2)),Tt===0?nt=Dt:Tt===90?vt=Dt:Tt===180?nt=-Dt:Tt===270?vt=-Dt:(nt=Dt*Math.cos(Tt*Math.PI/180),vt=Dt*Math.sin(Tt*Math.PI/180)),E.Mc()&&ce&&(E=b.ga(Xi,dt.alloc()),ee=dt.allocAt(E.x+1e3*nt,E.y+1e3*vt),this.getLinkPointFromPoint(x,b,E,ee,!1,gt),dt.free(E),dt.free(ee))}E=ye,(fe||!re||ce)&&(E=new dt(ye.x+Fe,ye.y+We)),ee=gt,(fe||!oe||ce)&&(ee=new dt(gt.x+nt,gt.y+vt)),!Ne&&!fe&&re&&3<z&&this.adjustPoints(0,ye,z-2,ee)?this.dd(z-1,gt):!Ne&&!fe&&oe&&3<z&&this.adjustPoints(1,E,z-1,gt)?this.dd(0,ye):!Ne&&(fe?6<=z:4<z)&&this.adjustPoints(1,E,z-2,ee)?(this.dd(0,ye),this.dd(z-1,gt)):(this.Fj(),this.ne(ye),(fe||!re||ce)&&this.ne(E),fe&&this.addOrthoPoints(E,Pe,ee,Tt,a,x),(fe||!oe||ce)&&this.ne(ee),this.ne(gt))}return!0};function Kv(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}Jn.prototype.getLinkPointFromPoint=function(a,y,E,x,b,z){if(z===void 0&&(z=new dt),a===null||y===null)return z.assign(E),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=x.x,x=x.y;var ee=E.x;E=E.y}else{a=b.oe,b=1/(a.m11*a.m22-a.m12*a.m21),ee=a.m22*b;var re=-a.m12*b,oe=-a.m21*b,ce=a.m11*b,fe=b*(a.m21*a.dy-a.m22*a.dx),ye=b*(a.m12*a.dx-a.m11*a.dy);b=x.x*ee+x.y*oe+fe,x=x.x*re+x.y*ce+ye,ee=E.x*ee+E.y*oe+fe,E=E.x*re+E.y*ce+ye}return y.Sj(b,x,ee,E,z),a!==null&&z.transform(a),z};function Xm(a,y){var E=y.Zn;return E===null&&(E=new hf,E.port=y,E.node=y.part,y.Zn=E),hS(E,a)}Jn.prototype.getLinkPoint=function(a,y,E,x,b,z,ee,re){if(re===void 0&&(re=new dt),E.sb()&&!ng(E))return y.ga(E,re),re;if(E.$c()){var oe=Xm(this,y);if(oe!==null){if(re.assign(oe.Zo),b&&this.routing===aS){var ce=Xm(this,ee);if(ce!==null&&oe.Gl<ce.Gl){oe=dt.alloc(),ce=dt.alloc();var fe=new pn(y.ga(_i,oe),y.ga(co,ce)),ye=this.computeSpot(!x,ee);a=this.getLinkPoint(z,ee,ye,!x,b,a,y,ce),(E.Hf(rs)||E.Hf(ia))&&a.y>=fe.y&&a.y<=fe.y+fe.height?re.y=a.y:(E.Hf(zo)||E.Hf(Ma))&&a.x>=fe.x&&a.x<=fe.x+fe.width&&(re.x=a.x),dt.free(oe),dt.free(ce)}}return re}}return E=y.ga(Jm(E),dt.alloc()),this.pointsCount>(b?6:2)?(ee=x?this.i(1):this.i(this.pointsCount-2),b&&(ee=Kv(E,ee.copy()))):(oe=this.computeSpot(!x,ee),z=dt.alloc(),ee=ee.ga(Jm(oe),z),b&&(ee=Kv(E,ee)),dt.free(z)),this.getLinkPointFromPoint(a,y,E,ee,x,re),dt.free(E),re},Jn.prototype.getLinkDirection=function(a,y,E,x,b,z,ee,re){e:if(x.sb())var oe=x.x>x.y?x.x>1-x.y?0:x.x<1-x.y?270:315:x.x<x.y?x.x>1-x.y?90:x.x<1-x.y?180:135:.5>x.x?225:.5<x.x?45:0;else{if(x.$c()&&(oe=Xm(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(Xi,dt.alloc()),this.pointsCount>(z?6:2)?(re=b?this.i(1):this.i(this.pointsCount-2),re=z?Kv(oe,re.copy()):E):(E=dt.alloc(),re=re.ga(Xi,E),dt.free(E)),E=Math.abs(re.x-oe.x)>Math.abs(re.y-oe.y)?re.x>=oe.x?0:180:re.y>=oe.y?90:270,dt.free(oe),oe=E}return x.Mc()&&ee.Td(a)&&(oe+=180,360<=oe&&(oe-=360)),ng(x)||(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},Jn.prototype.computeEndSegmentLength=function(a,y,E,x){return y!==null&&E.$c()&&(a=Xm(this,y),a!==null)?a.Ju:(a=x?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=x?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},Jn.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=Xi:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Aa?Ti:y)):(a=y||this.toPort,a===null?a=Xi:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Aa?Ti:y)),a};function ng(a){return a===Ti||a.x===.5&&a.y===.5}function Jm(a){return a.x===.5&&a.y===.5?a:Xi}Jn.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Ws&&4<this.pointsCount?this.computeMidPoint(new dt):(a=y.Zn,a=a!==null?hS(a,this):null,a!==null?a.Zo:y.ga(Xi))},Jn.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},Jn.prototype.Cf=function(a,y,E,x,b,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),E===void 0&&(E=null);var ee=z;if(z===void 0&&(ee=ir.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return Sv(this,y,E,b),z===void 0&&ir.free(ee),!0;if(this.Yc(a,ee)){var re=!1;if(!this.isAtomic)for(var oe=this.O.s,ce=oe.length;ce--;){var fe=oe[ce];if(fe.visible||fe===this.locationObject){var ye=fe.actualBounds,Ne=this.naturalBounds;if(!(ye.x>Ne.width||ye.y>Ne.height||0>ye.x+ye.width||0>ye.y+ye.height)){if(ye=ir.alloc(),ye.set(ee),fe instanceof Wn)re=fe.Cf(a,y,E,x,b,ye);else if(this.path===fe){if(fe instanceof yr)if(re=a,Ne=x,fe.pickable===!1)re=!1;else if(ye.multiply(fe.transform),Ne)e:{var Pe=re,Fe=ye;if(fe.fh(Pe,Fe))re=!0;else{if(Fe===void 0&&(Fe=fe.transform,Pe.Re(fe.actualBounds))){re=!0;break e}re=Pe.left,Ne=Pe.right;var We=Pe.top;Pe=Pe.bottom;var gt=dt.alloc(),nt=dt.alloc(),vt=dt.alloc(),St=ir.alloc();St.set(Fe),St.bv(fe.transform),St.Vj(),nt.x=Ne,nt.y=We,nt.transform(St),gt.x=re,gt.y=We,gt.transform(St),Fe=!1,Rh(fe,gt,nt,vt)?Fe=!0:(gt.x=Ne,gt.y=Pe,gt.transform(St),Rh(fe,gt,nt,vt)?Fe=!0:(nt.x=re,nt.y=Pe,nt.transform(St),Rh(fe,gt,nt,vt)?Fe=!0:(gt.x=re,gt.y=We,gt.transform(St),Rh(fe,gt,nt,vt)&&(Fe=!0)))),ir.free(St),dt.free(gt),dt.free(nt),dt.free(vt),re=Fe}}else re=fe.fh(re,ye)}else re=Da(fe,a,x,ye);re&&(Ne=fe,y!==null&&(Ne=y(fe)),Ne&&(E===null||E(Ne))&&b.add(Ne)),ir.free(ye)}}}return z===void 0&&ir.free(ee),re||this.background!==null||this.areaBackground!==null}return z===void 0&&ir.free(ee),!1},Jn.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?Yl:this.curve},Jn.prototype.computeCorner=function(){if(this.curve===Yl)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Jn.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,E=y.length,x=0;x<E;x++){var b=y[x];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},Jn.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=lS;a=Math.max(a,this.computeThickness());var y=this.fromPort,E=this.toPort;if(y!==null&&E!==null){var x=this.findMidLabel();if(x!==null){var b=x.naturalBounds,z=x.margin,ee=isNaN(b.width)?30:b.width*x.scale+z.left+z.right;b=isNaN(b.height)?14:b.height*x.scale+z.top+z.bottom,x=x.segmentOrientation,x===gp||x===n0||x===ey?a=Math.max(a,b):x===mp||x===yp||x===pp||x===vp?a=Math.max(a,ee):(y=y.ga(Xi).ab(E.ga(Xi))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*ee)+Math.abs(Math.cos(y)*b)+1)),this.curve===Yl&&(a*=1.333)}}return a},Jn.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var E=a[y];E.computeAdjusting()===Ws&&E.bb()}},Jn.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=sS;var y=this.Sf;if(y!==null){for(var E=ci(),x=0,b=y.links,z=0;z<b.length;z++){var ee=b[z].computeSpacing();E.push(ee),x+=ee}for(x=-x/2,z=0;z<b.length;z++){if(b[z]===this){a=x+E[z]/2;break}x+=E[z]}y.Ds===this.fromNode&&(a=-a),pi(E)}}return a},Jn.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},Jn.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},Jn.prototype.adjustPoints=function(a,y,E,x){var b=this.computeAdjusting();if(this.isOrthogonal){if(b===e0)return!1;b===t0&&(b=fp)}switch(b){case e0:var z=this.i(a),ee=this.i(E);if(!z.Xa(y)||!ee.Xa(x)){b=z.x,z=z.y;var re=ee.x-b,oe=ee.y-z,ce=Math.sqrt(re*re+oe*oe);if(!Ft.$(ce,0)){if(Ft.$(re,0))var fe=0>oe?-Math.PI/2:Math.PI/2;else fe=Math.atan(oe/Math.abs(re)),0>re&&(fe=Math.PI-fe);ee=y.x;var ye=y.y;re=x.x-ee;var Ne=x.y-ye;for(oe=Math.sqrt(re*re+Ne*Ne),Ft.$(re,0)?Ne=0>Ne?-Math.PI/2:Math.PI/2:(Ne=Math.atan(Ne/Math.abs(re)),0>re&&(Ne=Math.PI-Ne)),ce=oe/ce,fe=Ne-fe,this.dd(a,y),a+=1;a<E;a++)y=this.i(a),re=y.x-b,oe=y.y-z,y=Math.sqrt(re*re+oe*oe),Ft.$(y,0)||(Ft.$(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+fe,y*=ce,this.L(a,ee+y*Math.cos(re),ye+y*Math.sin(re)));this.dd(E,x)}}return!0;case t0:if(z=this.i(a),ye=this.i(E),!z.Xa(y)||!ye.Xa(x)){b=z.x,z=z.y,ee=ye.x,ye=ye.y,ce=(ee-b)*(ee-b)+(ye-z)*(ye-z),re=y.x,fe=y.y,oe=x.x,Ne=x.y;var Pe=1;if(oe-re!==0){var Fe=(Ne-fe)/(oe-re);Pe=Math.sqrt(1+1/(Fe*Fe))}else Fe=9e9;for(this.dd(a,y),a+=1;a<E;a++){y=this.i(a);var We=y.x,gt=y.y,nt=.5;ce!==0&&(nt=((b-We)*(b-ee)+(z-gt)*(z-ye))/ce);var vt=b+nt*(ee-b),St=z+nt*(ye-z);y=Math.sqrt((We-vt)*(We-vt)+(gt-St)*(gt-St)),gt<Fe*(We-vt)+St&&(y=-y),0<Fe&&(y=-y),We=re+nt*(oe-re),nt=fe+nt*(Ne-fe),Fe!==0?(y=We+y/Pe,this.L(a,y,nt-(y-We)/Fe)):this.L(a,We,nt+y)}this.dd(E,x)}return!0;case fp:e:{if(this.isOrthogonal&&(b=this.i(a),z=this.i(a+1),ee=this.i(a+2),re=z.x,fe=z.y,ye=re,ce=fe,Ft.B(b.y,z.y)?Ft.B(z.x,ee.x)?fe=y.y:Ft.B(z.y,ee.y)&&(re=y.x):Ft.B(b.x,z.x)&&(Ft.B(z.y,ee.y)?re=y.x:Ft.B(z.x,ee.x)&&(fe=y.y)),this.L(a+1,re,fe),b=this.i(E),z=this.i(E-1),ee=this.i(E-2),re=z.x,fe=z.y,oe=re,Ne=fe,Ft.B(b.y,z.y)?Ft.B(z.x,ee.x)?fe=x.y:Ft.B(z.y,ee.y)&&(re=x.x):Ft.B(b.x,z.x)&&(Ft.B(z.y,ee.y)?re=x.x:Ft.B(z.x,ee.x)&&(fe=x.y)),this.L(E-1,re,fe),Xv(this))){this.L(a+1,ye,ce),this.L(E-1,oe,Ne),E=!1;break e}this.dd(a,y),this.dd(E,x),E=!0}return E;default:return!1}},Jn.prototype.addOrthoPoints=function(a,y,E,x,b,z){0>y?y+=360:360<=y&&(y-=360),0>x?x+=360:360<=x&&(x-=360);var ee=x;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,x=315<=x||45>x?0:45<=x&&135>x?90:135<=x&&225>x?180:270;var re=b.actualBounds.copy(),oe=z.actualBounds.copy();if(re.w()&&oe.w()){re.Bc(Sp,Sp),oe.Bc(Sp,Sp),re.Ye(a),oe.Ye(E);var ce=dt.alloc(),fe=dt.alloc();y===0?E.x>a.x||x===270&&E.y<a.y&&oe.right>a.x||x===90&&E.y>a.y&&oe.right>a.x?(ce.h(E.x,a.y),fe.h(E.x,(a.y+E.y)/2),x===180?(ce.x=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!1),fe.x=ce.x,fe.y=E.y):x===270&&E.y<a.y||x===90&&E.y>a.y?(ce.x=a.x<oe.left?this.computeMidOrthoPosition(a.x,a.y,oe.left,E.y,!1):a.x<oe.right&&(x===270&&a.y<oe.top||x===90&&a.y>oe.bottom)?this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!1):oe.right,fe.x=ce.x,fe.y=E.y):x===0&&a.x<oe.left&&a.y>oe.top&&a.y<oe.bottom&&(ce.x=a.x,ce.y=a.y<E.y?Math.min(E.y,oe.top):Math.max(E.y,oe.bottom),fe.y=ce.y)):(ce.h(a.x,E.y),fe.h((a.x+E.x)/2,E.y),(x===180||x===90&&E.y<re.top||x===270&&E.y>re.bottom)&&(x===180&&(oe.ca(a)||re.ca(E))?ce.y=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!0):E.y<a.y&&(x===180||x===90)?ce.y=this.computeMidOrthoPosition(a.x,re.top,E.x,Math.max(E.y,oe.bottom),!0):E.y>a.y&&(x===180||x===270)&&(ce.y=this.computeMidOrthoPosition(a.x,re.bottom,E.x,Math.min(E.y,oe.top),!0)),fe.x=E.x,fe.y=ce.y),ce.y>re.top&&ce.y<re.bottom&&(E.x>=re.left&&E.x<=a.x||a.x<=oe.right&&a.x>=E.x?(x===90||x===270)&&(ce.h(Math.max((a.x+E.x)/2,a.x),a.y),fe.h(ce.x,E.y)):(ce.y=x===270||(x===0||x===180)&&E.y<a.y?Math.min(E.y,x===0?re.top:Math.min(re.top,oe.top)):Math.max(E.y,x===0?re.bottom:Math.max(re.bottom,oe.bottom)),fe.x=E.x,fe.y=ce.y))):y===180?E.x<a.x||x===270&&E.y<a.y&&oe.left<a.x||x===90&&E.y>a.y&&oe.left<a.x?(ce.h(E.x,a.y),fe.h(E.x,(a.y+E.y)/2),x===0?(ce.x=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!1),fe.x=ce.x,fe.y=E.y):x===270&&E.y<a.y||x===90&&E.y>a.y?(ce.x=a.x>oe.right?this.computeMidOrthoPosition(a.x,a.y,oe.right,E.y,!1):a.x>oe.left&&(x===270&&a.y<oe.top||x===90&&a.y>oe.bottom)?this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!1):oe.left,fe.x=ce.x,fe.y=E.y):x===180&&a.x>oe.right&&a.y>oe.top&&a.y<oe.bottom&&(ce.x=a.x,ce.y=a.y<E.y?Math.min(E.y,oe.top):Math.max(E.y,oe.bottom),fe.y=ce.y)):(ce.h(a.x,E.y),fe.h((a.x+E.x)/2,E.y),(x===0||x===90&&E.y<re.top||x===270&&E.y>re.bottom)&&(x===0&&(oe.ca(a)||re.ca(E))?ce.y=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!0):E.y<a.y&&(x===0||x===90)?ce.y=this.computeMidOrthoPosition(a.x,re.top,E.x,Math.max(E.y,oe.bottom),!0):E.y>a.y&&(x===0||x===270)&&(ce.y=this.computeMidOrthoPosition(a.x,re.bottom,E.x,Math.min(E.y,oe.top),!0)),fe.x=E.x,fe.y=ce.y),ce.y>re.top&&ce.y<re.bottom&&(E.x<=re.right&&E.x>=a.x||a.x>=oe.left&&a.x<=E.x?(x===90||x===270)&&(ce.h(Math.min((a.x+E.x)/2,a.x),a.y),fe.h(ce.x,E.y)):(ce.y=x===270||(x===0||x===180)&&E.y<a.y?Math.min(E.y,x===180?re.top:Math.min(re.top,oe.top)):Math.max(E.y,x===180?re.bottom:Math.max(re.bottom,oe.bottom)),fe.x=E.x,fe.y=ce.y))):y===90?E.y>a.y||x===180&&E.x<a.x&&oe.bottom>a.y||x===0&&E.x>a.x&&oe.bottom>a.y?(ce.h(a.x,E.y),fe.h((a.x+E.x)/2,E.y),x===270?(ce.y=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!0),fe.x=E.x,fe.y=ce.y):x===180&&E.x<a.x||x===0&&E.x>a.x?(ce.y=a.y<oe.top?this.computeMidOrthoPosition(a.x,a.y,E.x,oe.top,!0):a.y<oe.bottom&&(x===180&&a.x<oe.left||x===0&&a.x>oe.right)?this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!0):oe.bottom,fe.x=E.x,fe.y=ce.y):x===90&&a.y<oe.top&&a.x>oe.left&&a.x<oe.right&&(ce.x=a.x<E.x?Math.min(E.x,oe.left):Math.max(E.x,oe.right),ce.y=a.y,fe.x=ce.x)):(ce.h(E.x,a.y),fe.h(E.x,(a.y+E.y)/2),(x===270||x===0&&E.x<re.left||x===180&&E.x>re.right)&&(x===270&&(oe.ca(a)||re.ca(E))?ce.x=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!1):E.x<a.x&&(x===270||x===0)?ce.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(E.x,oe.right),E.y,!1):E.x>a.x&&(x===270||x===180)&&(ce.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(E.x,oe.left),E.y,!1)),fe.x=ce.x,fe.y=E.y),ce.x>re.left&&ce.x<re.right&&(E.y>=re.top&&E.y<=a.y||a.y<=oe.bottom&&a.y>=E.y?(x===0||x===180)&&(ce.h(a.x,Math.max((a.y+E.y)/2,a.y)),fe.h(E.x,ce.y)):(ce.x=x===180||(x===90||x===270)&&E.x<a.x?Math.min(E.x,x===90?re.left:Math.min(re.left,oe.left)):Math.max(E.x,x===90?re.right:Math.max(re.right,oe.right)),fe.x=ce.x,fe.y=E.y))):E.y<a.y||x===180&&E.x<a.x&&oe.top<a.y||x===0&&E.x>a.x&&oe.top<a.y?(ce.h(a.x,E.y),fe.h((a.x+E.x)/2,E.y),x===90?(ce.y=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!0),fe.x=E.x,fe.y=ce.y):x===180&&E.x<a.x||x===0&&E.x>=a.x?(ce.y=a.y>oe.bottom?this.computeMidOrthoPosition(a.x,a.y,E.x,oe.bottom,!0):a.y>oe.top&&(x===180&&a.x<oe.left||x===0&&a.x>oe.right)?this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!0):oe.top,fe.x=E.x,fe.y=ce.y):x===270&&a.y>oe.bottom&&a.x>oe.left&&a.x<oe.right&&(ce.x=a.x<E.x?Math.min(E.x,oe.left):Math.max(E.x,oe.right),ce.y=a.y,fe.x=ce.x)):(ce.h(E.x,a.y),fe.h(E.x,(a.y+E.y)/2),(x===90||x===0&&E.x<re.left||x===180&&E.x>re.right)&&(x===90&&(oe.ca(a)||re.ca(E))?ce.x=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!1):E.x<a.x&&(x===90||x===0)?ce.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(E.x,oe.right),E.y,!1):E.x>a.x&&(x===90||x===180)&&(ce.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(E.x,oe.left),E.y,!1)),fe.x=ce.x,fe.y=E.y),ce.x>re.left&&ce.x<re.right&&(E.y<=re.bottom&&E.y>=a.y||a.y>=oe.top&&a.y<=E.y?(x===0||x===180)&&(ce.h(a.x,Math.min((a.y+E.y)/2,a.y)),fe.h(E.x,ce.y)):(ce.x=x===180||(x===90||x===270)&&E.x<a.x?Math.min(E.x,x===270?re.left:Math.min(re.left,oe.left)):Math.max(E.x,x===270?re.right:Math.max(re.right,oe.right)),fe.x=ce.x,fe.y=E.y)));var ye=E;if(this.isAvoiding){var Ne=this.diagram;if(Ne===null||b===z||this.layer.isTemporary||!Ff(Ne)||re.ca(ye)&&!z.Td(b)||oe.ca(a)&&!b.Td(z))y=!1;else{var Pe=Bf(Ne,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Pe.Yj(Math.min(a.x,ce.x),Math.min(a.y,ce.y),Math.abs(a.x-ce.x),Math.abs(a.y-ce.y))&&Pe.Yj(Math.min(ce.x,fe.x),Math.min(ce.y,fe.y),Math.abs(ce.x-fe.x),Math.abs(ce.y-fe.y))&&Pe.Yj(Math.min(fe.x,ye.x),Math.min(fe.y,ye.y),Math.abs(fe.x-ye.x),Math.abs(fe.y-ye.y)))y=!1;else{b=a,z=ye;var Fe=E=null;if(Ne.isVirtualized){Ne=Pe.bounds.copy(),Ne.Bc(-Pe.Ho,-Pe.Go);var We=dt.alloc();rg(Pe,a.x,a.y)||(Ft.Ff(Ne.x,Ne.y,Ne.x+Ne.width,Ne.y+Ne.height,a.x,a.y,ce.x,ce.y,We)?(E=a=We.copy(),y=We.ab(ce)):Ft.Ff(Ne.x,Ne.y,Ne.x+Ne.width,Ne.y+Ne.height,ce.x,ce.y,fe.x,fe.y,We)?(E=a=We.copy(),y=We.ab(fe)):Ft.Ff(Ne.x,Ne.y,Ne.x+Ne.width,Ne.y+Ne.height,fe.x,fe.y,ye.x,ye.y,We)&&(E=a=We.copy(),y=We.ab(ye))),rg(Pe,ye.x,ye.y)||(Ft.Ff(Ne.x,Ne.y,Ne.x+Ne.width,Ne.y+Ne.height,ye.x,ye.y,fe.x,fe.y,We)?(Fe=ye=We.copy(),x=fe.ab(We)):Ft.Ff(Ne.x,Ne.y,Ne.x+Ne.width,Ne.y+Ne.height,fe.x,fe.y,ce.x,ce.y,We)?(Fe=ye=We.copy(),x=ce.ab(We)):Ft.Ff(Ne.x,Ne.y,Ne.x+Ne.width,Ne.y+Ne.height,ce.x,ce.y,a.x,a.y,We)&&(Fe=ye=We.copy(),x=a.ab(We))),dt.free(We)}re=re.copy().ed(oe),re.Bc(Pe.Ho*Pe.Os,Pe.Go*Pe.Os),cS(Pe,a,y,ye,x,re,!0),oe=Rc(Pe,ye.x,ye.y),!Pe.abort&&oe>=og&&(uS(Pe),re.Bc(Pe.Ho*Pe.Hx,Pe.Go*Pe.Ix),cS(Pe,a,y,ye,x,re,!1),oe=Rc(Pe,ye.x,ye.y)),!Pe.abort&&oe<og&&Rc(Pe,ye.x,ye.y)!==Td?(Jv(this,Pe,ye.x,ye.y,x,!0,ee),re=this.i(2),4>this.pointsCount?(y===0||y===180?(re.x=a.x,re.y=ye.y):(re.x=ye.x,re.y=a.y),this.L(2,re.x,re.y),this.m(3,re.x,re.y)):(ee=this.i(3),y===0||y===180?Ft.B(re.x,ee.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,ee.y)):Ft.B(re.y,ee.y)?(Math.abs(a.y-re.y)<=Pe.Go/2&&(this.L(2,re.x,a.y),this.L(3,ee.x,a.y)),this.m(2,re.x,a.y)):this.L(2,a.x,re.y):(y===90||y===270)&&(Ft.B(re.y,ee.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,ee.x,re)):Ft.B(re.x,ee.x)?(Math.abs(a.x-re.x)<=Pe.Ho/2&&(this.L(2,a.x,re.y),this.L(3,a.x,ee.y)),this.m(2,a.x,re.y)):this.L(2,re.x,a.y))),E!==null&&(a=this.i(1),ee=this.i(2),a.x!==ee.x&&a.y!==ee.y?y===0||y===180?this.m(2,a.x,ee.y):this.m(2,ee.x,a.y):y===0||y===180?this.m(2,b.x,E.y):this.m(2,E.x,b.y)),Fe!==null&&(x===0||x===180?this.yf(z.x,Fe.y):this.yf(Fe.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(ce.copy()),this.ne(fe.copy())),dt.free(ce),dt.free(fe)}},Jn.prototype.computeMidOrthoPosition=function(a,y,E,x,b){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),b?(y+x)/2+z:(a+E)/2+z};function Xv(a){if(a.diagram===null||!a.isAvoiding||!Ff(a.diagram))return!1;var y=a.points.s,E=y.length;if(4>E)return!1;a=Bf(a.diagram,!0,a.containingGroup,null);for(var x=1;x<E-2;x++){var b=y[x],z=y[x+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 Jv(a,y,E,x,b,z,ee){var re=y.Ho,oe=y.Go,ce=Rc(y,E,x),fe=E,ye=x;for(b===0?fe+=re:b===90?ye+=oe:b===180?fe-=re:ye-=oe,b!==ee&&ce>_h&&Rc(y,fe,ye)!==ce-1&&(Rc(y,E-re,x)===ce-1?(b=180,fe=E-re,ye=x):Rc(y,E+re,x)===ce-1?(b=0,fe=E+re,ye=x):Rc(y,E,x-oe)===ce-1?(b=270,fe=E,ye=x-oe):Rc(y,E,x+oe)===ce-1&&(b=90,fe=E,ye=x+oe));ce>_h&&Rc(y,fe,ye)===ce-1;)E=fe,x=ye,b===0?fe+=re:b===90?ye+=oe:b===180?fe-=re:ye-=oe,--ce;z?ce>_h&&(b===180||b===0?E=Math.floor(E/re)*re+re/2:(b===90||b===270)&&(x=Math.floor(x/oe)*oe+oe/2)):(E=Math.floor(E/re)*re+re/2,x=Math.floor(x/oe)*oe+oe/2),ce>_h&&(z=b,ee=E,fe=x,b===0?(z=90,fe+=oe):b===90?(z=180,ee-=re):b===180?(z=270,fe-=oe):b===270&&(z=0,ee+=re),Rc(y,ee,fe)===ce-1?Jv(a,y,ee,fe,z,!1,z):(ee=E,fe=x,b===0?(z=270,fe-=oe):b===90?(z=0,ee+=re):b===180?(z=90,fe+=oe):b===270&&(z=180,ee-=re),Rc(y,ee,fe)===ce-1&&Jv(a,y,ee,fe,z,!1,z))),a.yf(E,x)}Jn.prototype.ez=function(a){var y=a.x;a=a.y;for(var E=this.i(0),x=this.i(1),b=Cr(y,a,E.x,E.y,x.x,x.y),z=0,ee=1;ee<this.pointsCount-1;ee++){E=this.i(ee+1);var re=Cr(y,a,x.x,x.y,E.x,E.y);x=E,re<b&&(z=ee,b=re)}return z},Jn.prototype.qc=function(){this.lk=!1,this.v()},Jn.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,E=y.length,x=0;x<E;x++){var b=y[x];b!==a&&b.isPanelMain&&b instanceof yr&&(b.ua=this.ua)}}},Jn.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,E=!1,x=this.diagram;x!==null&&Bh(this)&&x.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(x.animationManager.isAnimating||x.currentTool!==x.toolManager)&&(E=!0);var b=this.i(0).copy(),z=b.copy();x=this.Nb.s;var ee=this.computeCurve();if(ee===Yl&&3<=y&&!Ft.$(this.smoothness,0))if(y===3){var re=this.i(1);x=Math.min(b.x,re.x);var oe=Math.min(b.y,re.y);re=this.i(2),x=Math.min(x,re.x),oe=Math.min(oe,re.y)}else{if(this.isOrthogonal)for(oe=0;oe<y;oe++)re=x[oe],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);else for(x=3;x<y;x+=3)x+3>=y&&(x=y-1),oe=this.i(x),z.x=Math.min(oe.x,z.x),z.y=Math.min(oe.y,z.y);x=z.x,oe=z.y}else{for(oe=0;oe<y;oe++)re=x[oe],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);x=z.x,oe=z.y}if(x-=this.su.x,oe-=this.su.y,b.x-=x,b.y-=oe,y!==2||Bh(this)){if(a.type=Qn.o,re=R1(a),this.computeShortLength(!0)!==0&&(b=lf(this,b,!0,z)),eg(re,b.x,b.y,!1),ee===Yl&&3<=y&&!Ft.$(this.smoothness,0))if(y===3)E=this.i(1),y=E.x-x,E=E.y-oe,b=this.i(2).copy(),b.x-=x,b.y-=oe,this.computeShortLength(!1)!==0&&(b=lf(this,b,!1,z)),Sd(re,y,E,y,E,b.x,b.y);else if(this.isOrthogonal){y=dt.allocAt(x,oe),E=dt.alloc(),E.assign(this.i(1)),z=dt.allocAt(x,oe),b=dt.allocAt(x,oe),ee=this.i(0);for(var ce,fe=this.smoothness/3,ye=1;ye<this.pointsCount-1;ye++){ce=this.i(ye);var Ne=ee,Pe=ce,Fe=this.i(qv(this,ce,ye,!1));if((!Ft.$(Ne.x,Pe.x)||!Ft.$(Pe.x,Fe.x))&&(!Ft.$(Ne.y,Pe.y)||!Ft.$(Pe.y,Fe.y))){var We=fe;isNaN(We)&&(We=this.smoothness/3);var gt=Ne.x;Ne=Ne.y;var nt=Pe.x;Pe=Pe.y;var vt=Fe.x;Fe=Fe.y;var St=We*qm(gt,Ne,nt,Pe);We*=qm(nt,Pe,vt,Fe),Ft.$(Ne,Pe)&&Ft.$(nt,vt)&&(nt>gt?Fe>Pe?(z.x=nt-St,z.y=Pe-St,b.x=nt+We,b.y=Pe+We):(z.x=nt-St,z.y=Pe+St,b.x=nt+We,b.y=Pe-We):Fe>Pe?(z.x=nt+St,z.y=Pe-St,b.x=nt-We,b.y=Pe+We):(z.x=nt+St,z.y=Pe+St,b.x=nt-We,b.y=Pe-We)),Ft.$(gt,nt)&&Ft.$(Pe,Fe)&&(Pe>Ne?(vt>nt?(z.x=nt-St,z.y=Pe-St,b.x=nt+We):(z.x=nt+St,z.y=Pe-St,b.x=nt-We),b.y=Pe+We):(vt>nt?(z.x=nt-St,z.y=Pe+St,b.x=nt+We):(z.x=nt+St,z.y=Pe+St,b.x=nt-We),b.y=Pe-We)),(Ft.$(gt,nt)&&Ft.$(nt,vt)||Ft.$(Ne,Pe)&&Ft.$(Pe,Fe))&&(gt=.5*(gt+vt),Ne=.5*(Ne+Fe),z.x=gt,z.y=Ne,b.x=gt,b.y=Ne),(ye===1||ye===2&&Ft.$(ee.x,this.i(0).x)&&Ft.$(ee.y,this.i(0).y))&&(E.x=.5*(ee.x+ce.x),E.y=.5*(ee.y+ce.y)),Sd(re,E.x-x,E.y-oe,z.x-x,z.y-oe,ce.x-x,ce.y-oe),y.set(z),E.set(b),ee=ce}}ce=ee.x,ee=ee.y,fe=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(fe=lf(this,fe.copy(),!1,ho)),ce=.5*(ce+fe.x),ee=.5*(ee+fe.y),Sd(re,b.x-x,b.y-oe,ce-x,ee-oe,fe.x-x,fe.y-oe),dt.free(y),dt.free(E),dt.free(z),dt.free(b)}else for(E=3;E<y;E+=3)z=this.i(E-2),E+3>=y&&(E=y-1),b=this.i(E-1),ee=this.i(E),E===y-1&&this.computeShortLength(!1)!==0&&(ee=lf(this,ee.copy(),!1,ho)),Sd(re,z.x-x,z.y-oe,b.x-x,b.y-oe,ee.x-x,ee.y-oe);else{for(z=dt.alloc(),z.assign(this.i(0)),b=dt.alloc(),b.assign(z),ee=this.computeCorner(),ye=1,ce=0;ye<y;){if(ye=qv(this,z,ye,1<ye),fe=this.i(ye),ye>=y-1){if(!z.D(fe))this.computeShortLength(!1)!==0&&(fe=lf(this,fe.copy(),!1,ho)),uf(this,re,-x,-oe,z,fe,E);else if(ce===0)for(ye=1;ye<y;)b.assign(z),fe=this.i(ye++),uf(this,re,-x,-oe,z,fe,E),z.assign(fe);break}if(ce=qv(this,fe,ye+1,ye<y-3),ye=-x,gt=-oe,Ne=fe,nt=this.i(ce),We=E,Ft.B(z.y,Ne.y)&&Ft.B(Ne.x,nt.x))if(Fe=Math.min(ee,Math.abs(Ne.x-b.x)/2),Fe=St=Math.min(Fe,Math.abs(nt.y-Ne.y)/2),Ft.B(Fe,0))uf(this,re,ye,gt,z,Ne,We),z.assign(Ne);else{var Tt=Ne.x,Dt=Ne.y;Pe=Tt,vt=Dt,Ne.x>z.x?Tt=Ne.x-Fe:Tt=Ne.x+Fe,nt.y>Ne.y?vt=Ne.y+St:vt=Ne.y-St,nt=dt.allocAt(Tt,Dt),uf(this,re,ye,gt,z,nt,We),dt.free(nt),Hm(re,Ne.x+ye,Ne.y+gt,Pe+ye,vt+gt),z.h(Pe,vt)}else Ft.B(z.x,Ne.x)&&Ft.B(Ne.y,nt.y)?(Fe=Math.min(ee,Math.abs(Ne.y-b.y)/2),Fe=St=Math.min(Fe,Math.abs(nt.x-Ne.x)/2),Ft.B(St,0)?(uf(this,re,ye,gt,z,Ne,We),z.assign(Ne)):(Tt=Ne.x,Dt=Ne.y,Pe=Tt,vt=Dt,Ne.y>z.y?Dt=Ne.y-Fe:Dt=Ne.y+Fe,nt.x>Ne.x?Pe=Ne.x+St:Pe=Ne.x-St,nt=dt.allocAt(Tt,Dt),uf(this,re,ye,gt,z,nt,We),dt.free(nt),Hm(re,Ne.x+ye,Ne.y+gt,Pe+ye,vt+gt),z.h(Pe,vt))):(uf(this,re,ye,gt,z,Ne,We),z.assign(Ne));b.assign(fe),ye=ce}dt.free(z)}Gm=re}else re=this.i(1).copy(),re.x-=x,re.y-=oe,this.computeShortLength(!0)!==0&&(b=lf(this,b,!0,z)),this.computeShortLength(!1)!==0&&(re=lf(this,re,!1,z)),a.type=Qn.j,a.startX=b.x,a.startY=b.y,a.endX=re.x,a.endY=re.y;return this.lk=!0,a};function qm(a,y,E,x){return a=E-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=x-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),Ft.$(a,0)?y:Ft.$(y,0)?a:Math.sqrt(a*a+y*y)))}function lf(a,y,E,x){var b=a.pointsCount;if(2>b)return y;if(E){var z=a.i(1);if(E=z.x-x.x,z=z.y-x.y,x=qm(y.x,y.y,E,z),x===0)return y;b=b===2?.5*x:x,a=a.computeShortLength(!0),a>b&&(a=b),b=a*(z-y.y)/x,y.x+=a*(E-y.x)/x,y.y+=b}else{if(z=a.i(b-2),E=z.x-x.x,z=z.y-x.y,x=qm(y.x,y.y,E,z),x===0)return y;b=b===2?.5*x:x,a=a.computeShortLength(!1),a>b&&(a=b),b=a*(y.y-z)/x,y.x-=a*(y.x-E)/x,y.y-=b}return y}function qv(a,y,E,x){for(var b=a.pointsCount,z=y;Ft.$(y.x,z.x)&&Ft.$(y.y,z.y);){if(E>=b)return b-1;z=a.i(E++)}if(!Ft.$(y.x,z.x)&&!Ft.$(y.y,z.y))return E-1;for(var ee=z;Ft.$(y.x,z.x)&&Ft.$(z.x,ee.x)&&(!x||(y.y>=z.y?z.y>=ee.y:z.y<=ee.y))||Ft.$(y.y,z.y)&&Ft.$(z.y,ee.y)&&(!x||(y.x>=z.x?z.x>=ee.x:z.x<=ee.x));){if(E>=b)return b-1;ee=a.i(E++)}return E-2}Jn.prototype.computeJumpLength=function(){return 10};function uf(a,y,E,x,b,z,ee){if(!ee&&Bh(a)){ee=a.computeJumpLength();var re=ee/2,oe=[],ce=0;if(a.isVisible()&&(ce=RE(a,b,z,oe)),0<ce){if(Ft.B(b.y,z.y))if(b.x<z.x)for(var fe=0;fe<ce;){var ye=Math.max(b.x,Math.min(oe[fe++]-re,z.x-ee));y.lineTo(ye+E,z.y+x);for(var Ne=ye+E,Pe=Math.min(ye+ee,z.x);fe<ce&&(ye=oe[fe],ye<Pe+ee);)fe++,Pe=Math.min(ye+re,z.x);ye=z.y-ee+x,Pe+=E;var Fe=z.y+x;a.curve===wd?eg(y,Pe,Fe,!1):Sd(y,Ne,ye,Pe,ye,Pe,Fe)}else for(--ce;0<=ce;){for(fe=Math.min(b.x,Math.max(oe[ce--]+re,z.x+ee)),y.lineTo(fe+E,z.y+x),Ne=fe+E,ye=Math.max(fe-ee,z.x);0<=ce&&(fe=oe[ce],fe>ye-ee);)ce--,ye=Math.max(fe-re,z.x);fe=z.y-ee+x,ye+=E,Pe=z.y+x,a.curve===wd?eg(y,ye,Pe,!1):Sd(y,Ne,fe,ye,fe,ye,Pe)}else if(Ft.B(b.x,z.x))if(b.y<z.y)for(fe=0;fe<ce;){for(ye=Math.max(b.y,Math.min(oe[fe++]-re,z.y-ee)),y.lineTo(z.x+E,ye+x),Ne=ye+x,ye=Math.min(ye+ee,z.y);fe<ce&&(Pe=oe[fe],Pe<ye+ee);)fe++,ye=Math.min(Pe+re,z.y);Pe=z.x-ee+E,Fe=z.x+E,ye+=x,a.curve===wd?eg(y,Fe,ye,!1):Sd(y,Pe,Ne,Pe,ye,Fe,ye)}else for(--ce;0<=ce;){for(fe=Math.min(b.y,Math.max(oe[ce--]+re,z.y+ee)),y.lineTo(z.x+E,fe+x),Ne=fe+x,fe=Math.max(fe-ee,z.y);0<=ce&&(ye=oe[ce],ye>fe-ee);)ce--,fe=Math.max(ye-re,z.y);ye=z.x-ee+E,Pe=z.x+E,fe+=x,a.curve===wd?eg(y,Pe,fe,!1):Sd(y,ye,Ne,ye,fe,Pe,fe)}}}y.lineTo(z.x+E,z.y+x)}function RE(a,y,E,x){var b=a.diagram;if(b===null||y.D(E))return 0;for(b=b.layers;b.next();){var z=b.value;if(z!==null&&z.visible){z=z.Pa.s;for(var ee=z.length,re=0;re<ee;re++){var oe=z[re];if(oe instanceof Jn){if(oe===a)return 0<x.length&&x.sort(function(fe,ye){return fe-ye}),x.length;if(oe.isVisible()&&Bh(oe)){var ce=oe.routeBounds;ce.w()&&a.routeBounds.Yc(ce)&&!a.usesSamePort(oe)&&(ce=oe.path,ce!==null&&ce.Ed()&&FE(y,E,x,oe))}}}}}return 0<x.length&&x.sort(function(fe,ye){return fe-ye}),x.length}function FE(a,y,E,x){for(var b=Ft.B(a.y,y.y),z=x.pointsCount,ee=x.i(0),re=dt.alloc(),oe=1;oe<z;oe++){var ce=x.i(oe);if(oe<z-1){var fe=x.i(oe+1);if(ee.y===ce.y&&ce.y===fe.y){if(ce.x>ee.x&&fe.x>=ce.x||ce.x<ee.x&&fe.x<=ce.x)continue}else if(ee.x===ce.x&&ce.x===fe.x&&(ce.y>ee.y&&fe.y>=ce.y||ce.y<ee.y&&fe.y<=ce.y))continue}e:{fe=a.x;var ye=a.y,Ne=y.x,Pe=y.y,Fe=ee.x;ee=ee.y;var We=ce.x,gt=ce.y;if(Ft.B(fe,Ne)){if(!Ft.B(ye,Pe)&&Ft.B(ee,gt)&&Math.min(ye,Pe)<ee&&Math.max(ye,Pe)>ee&&Math.min(Fe,We)<fe&&Math.max(Fe,We)>fe&&!Ft.B(Fe,We)){re.x=fe,re.y=ee,fe=!0;break e}}else if(Ft.B(ye,Pe)&&Ft.B(Fe,We)&&Math.min(fe,Ne)<Fe&&Math.max(fe,Ne)>Fe&&Math.min(ee,gt)<ye&&Math.max(ee,gt)>ye&&!Ft.B(ee,gt)){re.x=Fe,re.y=ye,fe=!0;break e}re.x=0,re.y=0,fe=!1}fe&&(b?E.push(re.x):E.push(re.y)),ee=ce}dt.free(re)}function Bh(a){return a=a.curve,a===ig||a===wd}function $m(a,y){(y||Bh(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()))}Jn.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var E=y.diagram;if(E!==null&&!E.animationManager.isTicking){var x=!1;for(E=E.layers;E.next();){var b=E.value;if(b.visible){if(b===y){x=!0;var z=!1;b=b.Pa.s;for(var ee=b.length,re=0;re<ee;re++){var oe=b[re];oe instanceof Jn&&(oe===this?z=!0:z&&oS(this,oe,a))}}else if(x)for(z=b.Pa.s,b=z.length,ee=0;ee<b;ee++)re=z[ee],re instanceof Jn&&oS(this,re,a)}}}}};function oS(a,y,E){if(y!==null&&y.lk&&y.fd&&Bh(y)){var x=y.routeBounds;x.w()&&(a.routeBounds.Yc(x)||E.Yc(x))&&(a.usesSamePort(y)||y.qc())}}Jn.prototype.usesSamePort=function(a){var y=this.pointsCount,E=a.pointsCount;if(0<y&&0<E){var x=this.i(0),b=a.i(0);if(x.Xa(b)||(y=this.i(y-1),a=a.i(E-1),y.Xa(a)||x.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},Jn.prototype.isVisible=function(){if(!Bi.prototype.isVisible.call(this))return!1;var a=this.containingGroup,y=!0,E=this.diagram;if(E!==null&&(y=E.isTreePathToChildren),E=this.fromNode,E!==null){if(this.isTreeLink&&y&&!E.isTreeExpanded)return!1;if(E===a)return!0;for(var x=E;x!==null;){if(x.labeledLink===this)return!0;x=x.containingGroup}if(E=E.findVisibleNode(),E===null||E===a)return!1}if(E=this.toNode,E!==null){if(this.isTreeLink&&!y&&!E.isTreeExpanded)return!1;if(E===a)return!0;for(y=E;y!==null;){if(y.labeledLink===this)return!0;y=y.containingGroup}if(y=E.findVisibleNode(),y===null||y===a)return!1}return!0},Jn.prototype.Zb=function(a){if(Bi.prototype.Zb.call(this,a),a&&$m(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},Jn.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?fp:this.qk};function dp(a){var y=a.ef;if(y!==null){var E=a.uf;if(E!==null&&isNaN(a.curviness)){for(var x=a.ff,b=a.vf,z=a=null,ee=y.jb.s,re=ee.length,oe=0;oe<re;oe++){var ce=ee[oe];(ce.ef===y&&ce.ff===x&&ce.uf===E&&ce.vf===b||ce.ef===E&&ce.ff===b&&ce.uf===y&&ce.vf===x)&&(z===null?z=ce:(a===null&&(a=[],a.push(z)),a.push(ce)))}if(a!==null){for(z=Z1(y,E,x,b),z===null&&(z=new r0(y,x,E,b),V1(y,z),V1(E,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function hp(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(je(y.links,a),y.Sl()))}Jn.prototype.ph=function(){return!0},zt.Object.defineProperties(Jn.prototype,{fromNode:{get:function(){return this.ef},set:function(a){var y=this.ef;if(y!==a){var E=this.fromPort;y!==null&&(this.uf!==y&&Zm(y,this,E),hp(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var x=this.diagram;x!==null&&x.aa&&x.partManager.setFromNodeForLink(this,a,y);var b=this.fromPort,z=this.fromPortChanged;if(z!==null){var ee=!0;x!==null&&(ee=x.aa,x.aa=!0),z(this,E,b),x!==null&&(x.aa=ee)}a!==null&&(this.uf!==a&&Vm(a,this,b),dp(this),this.C(1)),this.g("fromNode",y,a),tg(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var E=this.fromPort;E!==null&&Ml(E),hp(this),this.ff=a;var x=this.fromPort;x!==null&&Ml(x);var b=this.diagram;if(b!==null){var z=this.data,ee=b.model;z!==null&&ee.ri()&&ee.xv(z,a)}E!==x&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(ee=!0,b!==null&&(ee=b.aa,b.aa=!0),z(this,E,x),b!==null&&(b.aa=ee))),dp(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 E=this.toPort;y!==null&&(this.ef!==y&&Zm(y,this,E),hp(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var x=this.diagram;x!==null&&x.aa&&x.partManager.setToNodeForLink(this,a,y);var b=this.toPort,z=this.toPortChanged;if(z!==null){var ee=!0;x!==null&&(ee=x.aa,x.aa=!0),z(this,E,b),x!==null&&(x.aa=ee)}a!==null&&(this.ef!==a&&Vm(a,this,b),dp(this),this.C(1)),this.g("toNode",y,a),tg(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var E=this.toPort;E!==null&&Ml(E),hp(this),this.vf=a;var x=this.toPort;x!==null&&Ml(x);var b=this.diagram;if(b!==null){var z=this.data,ee=b.model;z!==null&&ee.ri()&&ee.Cv(z,a)}E!==x&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(ee=!0,b!==null&&(ee=b.aa,b.aa=!0),z(this,E,x),b!==null&&(b.aa=ee))),dp(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:Aa},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&&Ml(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&&oi(a,">= 0",Jn,"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:Aa},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&&Ml(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&&oi(a,">= 0",Jn,"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?gr: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&&cp(this.fromNode),this.toNode!==null&&cp(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof yr?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,E=1/0,x=this.pointsCount;if(x===0)a.h(NaN,NaN,0,0);else{if(x===1)x=this.i(0),y=Math.min(x.x,y),E=Math.min(x.y,E),a.h(x.x,x.y,0,0);else if(x===2){x=this.i(0);var b=this.i(1);y=Math.min(x.x,b.x),E=Math.min(x.y,b.y),a.h(x.x,x.y,0,0),a.Ye(b)}else if(this.computeCurve()===Yl&&3<=x&&!this.isOrthogonal)if(b=this.i(0),y=b.x,E=b.y,a.h(y,E,0,0),x===3){x=this.i(1),y=Math.min(x.x,y),E=Math.min(x.y,E);var z=this.i(2);y=Math.min(z.x,y),E=Math.min(z.y,E),Ft.Dl(b.x,b.y,x.x,x.y,x.x,x.y,z.x,z.y,.5,a)}else for(z=3;z<x;z+=3){var ee=this.i(z-2);z+3>=x&&(z=x-1);var re=this.i(z-1),oe=this.i(z);Ft.Dl(b.x,b.y,ee.x,ee.y,re.x,re.y,oe.x,oe.y,.5,a),y=Math.min(oe.x,y),E=Math.min(oe.y,E),b=oe}else for(b=this.i(0),z=this.i(1),y=Math.min(b.x,z.x),E=Math.min(b.y,z.y),a.h(b.x,b.y,0,0),a.Ye(z),b=2;b<x;b++)z=this.i(b),y=Math.min(z.x,y),E=Math.min(z.y,E),a.Ye(z);this.su.h(y-a.x,E-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new dt)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||Km(this);for(var a=this.cq=[],y=this.pointsCount,E=0;E<y-1;E++){var x=this.i(E),b=this.i(E+1);Ft.$(x.x,b.x)?(x=b.y-x.y,0>x&&(x=-x)):Ft.$(x.y,b.y)?(x=b.x-x.x,0>x&&(x=-x)):x=Math.sqrt(x.Bf(b)),a.push(x)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,E=y.length,x=a=0;x<E;x++)a+=y[x];this.vt=a}return a}},points:{get:function(){return this.Nb},set:function(a){var y=this.Nb;if(y!==a){var E=null;if(Array.isArray(a)){var x=a.length%2===0;if(x){for(var b=0;b<a.length;b++)if(typeof a[b]!="number"||isNaN(a[b])){x=!1;break}}if(x)for(E=new Un,x=0;x<a.length/2;x++)b=new dt(a[2*x],a[2*x+1]).freeze(),E.add(b);else{for(x=!0,b=0;b<a.length;b++){var z=a[b];if(!jt(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){x=!1;break}}if(x)for(E=new Un,x=0;x<a.length;x++)b=a[x],E.add(new dt(b.x,b.y).freeze())}}else if(a instanceof Un)for(E=a.copy(),a=E.iterator;a.next();)a.value.freeze();else lt("Link.points value is not an instance of List or Array: "+a);E.freeze(),this.Nb=E,this.qc(),Km(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&ue(a.animationManager,this,E)),this.g("points",y,E)}}},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||!ng(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!ng(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(),$m(this,y===wd||y===ig||a===wd||a===ig),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(),$m(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)}}}),Jn.prototype.invalidateOtherJumpOvers=Jn.prototype.Xo,Jn.prototype.findClosestSegment=Jn.prototype.ez,Jn.prototype.updateRoute=Jn.prototype.vg,Jn.prototype.invalidateRoute=Jn.prototype.bb,Jn.prototype.rollbackRoute=Jn.prototype.rv,Jn.prototype.commitRoute=Jn.prototype.zf,Jn.prototype.startRoute=Jn.prototype.uh,Jn.prototype.clearPoints=Jn.prototype.Fj,Jn.prototype.removePoint=Jn.prototype.pv,Jn.prototype.addPointAt=Jn.prototype.yf,Jn.prototype.addPoint=Jn.prototype.ne,Jn.prototype.insertPointAt=Jn.prototype.m,Jn.prototype.insertPoint=Jn.prototype.Kz,Jn.prototype.setPointAt=Jn.prototype.L,Jn.prototype.setPoint=Jn.prototype.dd,Jn.prototype.getPoint=Jn.prototype.i,Jn.prototype.getOtherPort=Jn.prototype.Cz,Jn.prototype.getOtherNode=Jn.prototype.To;var cf=null,df=null,$v=new Mn(Jn,"Normal",1),BE=new Mn(Jn,"Orthogonal",2),_E=new Mn(Jn,"AvoidsNodes",6),aS=new Mn(Jn,"AvoidsNodesStraight",7),Ws=new Mn(Jn,"None",0),Yl=new Mn(Jn,"Bezier",9),wd=new Mn(Jn,"JumpGap",10),ig=new Mn(Jn,"JumpOver",11),fp=new Mn(Jn,"End",17),e0=new Mn(Jn,"Scale",18),t0=new Mn(Jn,"Stretch",19),gp=new Mn(Jn,"OrientAlong",21),pp=new Mn(Jn,"OrientPlus90",22),mp=new Mn(Jn,"OrientMinus90",23),ey=new Mn(Jn,"OrientOpposite",24),n0=new Mn(Jn,"OrientUpright",25),vp=new Mn(Jn,"OrientPlus90Upright",26),yp=new Mn(Jn,"OrientMinus90Upright",27),i0=new Mn(Jn,"OrientUpright45",28),sS=16,lS=14,Sp=8;Jn.className="Link",Jn.Normal=$v,Jn.Orthogonal=BE,Jn.AvoidsNodes=_E,Jn.AvoidsNodesStraight=aS,Jn.None=Ws,Jn.Bezier=Yl,Jn.JumpGap=wd,Jn.JumpOver=ig,Jn.End=fp,Jn.Scale=e0,Jn.Stretch=t0,Jn.OrientAlong=gp,Jn.OrientPlus90=pp,Jn.OrientMinus90=mp,Jn.OrientOpposite=ey,Jn.OrientUpright=n0,Jn.OrientPlus90Upright=vp,Jn.OrientMinus90Upright=yp,Jn.OrientUpright45=i0,Jn.EndSegmentStep=8,Jn.CurvinessStart=sS,Jn.SpacingMin=lS,Jn.OrthoShortCut=Sp;function r0(a,y,E,x){Lr(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=E,this.Px=x,this.links=[]}r0.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},r0.prototype.Nv=function(){if(this.qq){this.qq=!1;var a=this.links;if(0<a.length){var y=a[0],E=y.diagram;E=E===null||E.pi&&!this.Fe,this.Fe=!1,y.arrangeBundledLinks(a,E),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))}},r0.className="LinkBundle";function Ep(a){Lr(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}Ep.prototype.initialize=function(a){if(!(0>=a.width||0>=a.height)){var y=a.y,E=a.x+a.width,x=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((E+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((x+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(E=[],x=0;x<=a;x++)E[x]=new Uint32Array(y);this.ac=E,this.di=a-1,this.ei=y-1}if(a=ty,this.ac!==null)for(y=0;y<=this.di;y++)if(E=this.ac[y],E.fill)E.fill(a);else for(x=0;x<=this.ei;x++)E[x]=a}};function rg(a,y,E){return a.Nd<=y&&y<=a.En&&a.Od<=E&&E<=a.Fn}function Rc(a,y,E){return rg(a,y,E)?(y-=a.Nd,y/=a.rc,E-=a.Od,E/=a.sc,a.ac[y|0][E|0]):ty}function uS(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var E=a.ac[y],x=0;x<=a.ei;x++)E[x]>=_h&&(E[x]=ty)}Ep.prototype.Yj=function(a,y,E,x){if(a>this.En||a+E<this.Nd||y>this.Fn||y+x<this.Od)return!0;a=(a-this.Nd)/this.rc|0,y=(y-this.Od)/this.sc|0,E=Math.max(0,E)/this.rc+1|0;var b=Math.max(0,x)/this.sc+1|0;if(0>a&&(E+=a,a=0),0>y&&(b+=y,y=0),0>E||0>b)return!0;for(x=Math.min(a+E-1,this.di)|0,E=Math.min(y+b-1,this.ei)|0;a<=x;a++){b=this.ac[a];for(var z=y;z<=E;z++)if(b[z]===Td)return!1}return!0};function Fc(a,y,E,x,b,z,ee,re,oe){if(!(y<z||y>ee||E<re||E>oe)){var ce=y|0,fe=E|0,ye=a.ac[ce][fe];if(ye>=_h&&ye<og)for(b?fe+=x:ce+=x,ye+=1;z<=ce&&ce<=ee&&re<=fe&&fe<=oe&&!(ye>=a.ac[ce][fe]);)a.ac[ce][fe]=ye,ye+=1,b?fe+=x:ce+=x;if(ce=b?fe:ce,b)if(0<x)for(E+=x;E<ce;E+=x)Fc(a,y,E,1,!b,z,ee,re,oe),Fc(a,y,E,-1,!b,z,ee,re,oe);else for(E+=x;E>ce;E+=x)Fc(a,y,E,1,!b,z,ee,re,oe),Fc(a,y,E,-1,!b,z,ee,re,oe);else if(0<x)for(y+=x;y<ce;y+=x)Fc(a,y,E,1,!b,z,ee,re,oe),Fc(a,y,E,-1,!b,z,ee,re,oe);else for(y+=x;y>ce;y+=x)Fc(a,y,E,1,!b,z,ee,re,oe),Fc(a,y,E,-1,!b,z,ee,re,oe)}}function o0(a,y,E,x,b,z,ee,re,oe){y|=0,E|=0;var ce=Td,fe=_h;for(a.ac[y][E]=fe;ce===Td&&y>z&&y<ee&&E>re&&E<oe;)fe+=1,a.ac[y][E]=fe,b?E+=x:y+=x,ce=a.ac[y][E]}function a0(a,y,E,x,b,z,ee,re,oe){y|=0,E|=0;var ce=Td,fe=og;for(a.ac[y][E]=fe;ce===Td&&y>z&&y<ee&&E>re&&E<oe;)a.ac[y][E]=fe,b?E+=x:y+=x,ce=a.ac[y][E]}function cS(a,y,E,x,b,z,ee){if(a.ac!==null){a.abort=!1;var re=y.x,oe=y.y;if(rg(a,re,oe)){re-=a.Nd,re/=a.rc,oe-=a.Od,oe/=a.sc;var ce=x.x,fe=x.y;if(rg(a,ce,fe))if(ce-=a.Nd,ce/=a.rc,fe-=a.Od,fe/=a.sc,1>=Math.abs(re-ce)&&1>=Math.abs(oe-fe))a.abort=!0;else{var ye=z.x;x=z.y,y=z.x+z.width;var Ne=z.y+z.height;ye-=a.Nd,ye/=a.rc,x-=a.Od,x/=a.sc,y-=a.Nd,y/=a.rc,Ne-=a.Od,Ne/=a.sc,z=Math.max(0,Math.min(a.di,ye|0)),y=Math.min(a.di,Math.max(0,y|0)),ye=Math.max(0,Math.min(a.ei,x|0)),Ne=Math.min(a.ei,Math.max(0,Ne|0)),x=a.ac,re|=0,oe|=0,ce|=0,fe|=0;var Pe=E===0||E===90?1:-1;if(E=E===90||E===270,x[re][oe]===Td?(o0(a,re,oe,Pe,E,z,y,ye,Ne),o0(a,re,oe,1,!E,z,y,ye,Ne),o0(a,re,oe,-1,!E,z,y,ye,Ne)):o0(a,re,oe,Pe,E,re,oe,re,oe),x[ce][fe]===Td?(a0(a,ce,fe,b===0||b===90?1:-1,b===90||b===270,z,y,ye,Ne),a0(a,ce,fe,1,!(b===90||b===270),z,y,ye,Ne),a0(a,ce,fe,-1,!(b===90||b===270),z,y,ye,Ne)):a0(a,ce,fe,Pe,E,ce,fe,ce,fe),E=ci(),ee&&dS(a,ce,fe,b,re,oe,E))for((E[0]!==ce||E[1]!==fe)&&(E.unshift(fe),E.unshift(ce)),(E[E.length-2]!==re||E[E.length-1]!==oe)&&(E.push(re),E.push(oe)),a=_h,b=E[E.length-2],ee=E[E.length-1],x[b][ee]=a++,z=E.length-4;0<=z;z-=2)for(b=E[z+2],ee=E[z+3],y=E[z],ce=E[z+1];y>b?b++:y<b?b--:ce>ee?ee++:ce<ee&&ee--,x[b][ee]=a++,b!==y||ee!==ce;);else Fc(a,re,oe,1,!1,z,y,ye,Ne),Fc(a,re,oe,-1,!1,z,y,ye,Ne),Fc(a,re,oe,1,!0,z,y,ye,Ne),Fc(a,re,oe,-1,!0,z,y,ye,Ne);pi(E)}}}}function dS(a,y,E,x,b,z,ee){for(var re=a.ac,oe=y,ce=E;;){if(oe===b&&ce===z)return!0;var fe=oe,ye=ce;if(x===0)if(fe<b)fe++;else break;else if(x===90)if(ye<z)ye++;else break;else if(x===180)if(fe>b)fe--;else break;else if(ye>z)ye--;else break;var Ne=re[fe][ye];if(Ne===0||Ne===ny)break;oe=fe,ce=ye}for(;;){if(fe=x,ye=oe,Ne=ce,x===0?Ne<z?(fe=90,Ne++):Ne>z&&(fe=270,Ne--):x===90?ye<b?(fe=0,ye++):ye>b&&(fe=180,ye--):x===180?Ne<z?(fe=90,Ne++):Ne>z&&(fe=270,Ne--):ye<b?(fe=0,ye++):ye>b&&(fe=180,ye--),ye=re[ye][Ne],fe!==x&&ye!==0&&ye!==ny){if(ee.push(oe),ee.push(ce),dS(a,oe,ce,fe,b,z,ee))return!0;ee.pop(),ee.pop()}if(re[oe][ce]=ny,x===0){if(oe===y)return!1;oe--}else if(x===90){if(ce===E)return!1;ce--}else if(x===180){if(oe===y)return!1;oe++}else{if(ce===E)return!1;ce++}}}zt.Object.defineProperties(Ep.prototype,{bounds:{get:function(){return new pn(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 Td=0,_h=1,og=999999,ty=og+1,ny=og+2;Ep.className="PositionArray";function hf(){Lr(this),this.port=this.node=null,this.pe=[],this.ap=!1}hf.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",E=0;E<a.length;E++){var x=a[E];x!==null&&(y+=`
|
|
|
`+x.toString())}return y};function jE(a,y,E,x){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<E?270:90;case 6:return 90<E&&270>=E?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return E>a&&E<=180+a?180:270;case 5:return E>180-a&&E<=360-a?270:0;case 12:return E>a&&E<=180+a?90:0;case 10:return E>180-a&&E<=360-a?180:90;case 7:return 90<E&&E<=180+a?180:E>180+a&&E<=360-a?270:0;case 13:return 180<E&&E<=360-a?270:E>a&&180>=E?90:0;case 14:return E>a&&E<=180-a?90:E>180-a&&270>=E?180:0;case 11:return E>180-a&&E<=180+a?180:E>180+a?270:90}return x&&y!==15&&(E-=15,0>E&&(E+=360)),E>a&&E<180-a?90:E>=180-a&&E<=180+a?180:E>180+a&&E<360-a?270:0}hf.prototype.Sl=function(){this.pe.length=0};function hS(a,y){var E=a.pe;if(E.length===0){e:if(!a.ap){E=a.ap,a.ap=!0;var x=null,b=a.node,z=b instanceof dr?b:null;if(z===null||z.isSubGraphExpanded)var ee=b.isTreeExpanded?b.findLinksConnected(a.port.portId):b.qx();else{if(!z.actualBounds.w()){a.ap=E;break e}x=z,ee=x.Lu()}z=a.pe.length=0;var re=a.port.ga(_i,dt.alloc()),oe=a.port.ga(co,dt.alloc());for(b=pn.allocAt(re.x,re.y,0,0),b.Ye(oe),dt.free(re),dt.free(oe),re=dt.allocAt(b.x+b.width/2,b.y+b.height/2),oe=a.port.li(),ee=ee.iterator;ee.next();){var ce=ee.value;if(ce.isVisible()&&ce.fromPort!==ce.toPort){var fe=ce.fromPort===a.port||ce.fromNode!==null&&ce.fromNode.Td(x),ye=ce.computeSpot(fe,a.port);if(ye.$c()&&(fe=fe?ce.toPort:ce.fromPort,fe!==null)){var Ne=fe.part;if(Ne!==null){var Pe=Ne.findVisibleNode();Pe!==null&&Pe!==Ne&&(Ne=Pe,fe=Ne.port),fe=ce.computeOtherPoint(Ne,fe),Ne=re.ab(fe),Ne-=oe,0>Ne?Ne+=360:360<=Ne&&(Ne-=360),ye=jE(b,ye,Ne,ce.isOrthogonal),ye===0?(ye=4,180<Ne&&(Ne-=360)):ye===90?(ye=8,270<Ne&&(Ne-=360)):ye===180?ye=2:(ye=1,90>Ne&&(Ne+=360)),Pe=a.pe[z],Pe===void 0?(Pe=new iy(ce,Ne,ye),a.pe[z]=Pe):(Pe.link=ce,Pe.angle=Ne,Pe.Nc=ye),Pe.hv.set(fe),z++}}}}for(dt.free(re),a.pe.sort(hf.prototype.j),oe=a.pe.length,x=-1,z=re=0;z<oe;z++)ee=a.pe[z],ee!==void 0&&(ee.Nc!==x&&(x=ee.Nc,re=0),ee.Uo=re,re++);for(x=-1,re=0,z=oe-1;0<=z;z--)oe=a.pe[z],oe!==void 0&&(oe.Nc!==x&&(x=oe.Nc,re=oe.Uo+1),oe.Gl=re);if(z=a.pe,ye=a.port,x=a.node.portSpreading,re=dt.alloc(),oe=dt.alloc(),ee=dt.alloc(),ce=dt.alloc(),ye.ga(_i,re),ye.ga(ur,oe),ye.ga(co,ee),ye.ga(jo,ce),Pe=Ne=fe=ye=0,x===Vv)for(var Fe=0;Fe<z.length;Fe++){var We=z[Fe];if(We!==null){var gt=We.link.computeThickness();switch(We.Nc){case 8:Ne+=gt;break;case 2:Pe+=gt;break;case 1:ye+=gt;break;default:case 4:fe+=gt}}}var nt=Fe=0,vt=1,St=We=0;for(gt=0;gt<z.length;gt++){var Tt=z[gt];if(Tt!==null){if(Fe!==Tt.Nc){switch(Fe=Tt.Nc,Fe){case 8:var Dt=ee;nt=ce;break;case 2:Dt=ce,nt=re;break;case 1:Dt=re,nt=oe;break;default:case 4:Dt=oe,nt=ee}switch(We=nt.x-Dt.x,St=nt.y-Dt.y,Fe){case 8:Ne>Math.abs(We)?(vt=Math.abs(We)/Ne,Ne=Math.abs(We)):vt=1;break;case 2:Pe>Math.abs(St)?(vt=Math.abs(St)/Pe,Pe=Math.abs(St)):vt=1;break;case 1:ye>Math.abs(We)?(vt=Math.abs(We)/ye,ye=Math.abs(We)):vt=1;break;default:case 4:fe>Math.abs(St)?(vt=Math.abs(St)/fe,fe=Math.abs(St)):vt=1}nt=0}var Xt=Tt.Zo;if(x===Vv){switch(Tt=Tt.link.computeThickness(),Tt*=vt,Xt.set(Dt),Fe){case 8:Xt.x=Dt.x+We/2+Ne/2-nt-Tt/2;break;case 2:Xt.y=Dt.y+St/2+Pe/2-nt-Tt/2;break;case 1:Xt.x=Dt.x+We/2-ye/2+nt+Tt/2;break;default:case 4:Xt.y=Dt.y+St/2-fe/2+nt+Tt/2}nt+=Tt}else{var ai=.5;x===Qm&&(ai=(Tt.Uo+1)/(Tt.Gl+1)),Xt.x=Dt.x+We*ai,Xt.y=Dt.y+St*ai}}}for(dt.free(re),dt.free(oe),dt.free(ee),dt.free(ce),Dt=a.pe,z=0;z<Dt.length;z++)x=Dt[z],x!==null&&(x.Ju=a.computeEndSegmentLength(x));a.ap=E,pn.free(b)}E=a.pe}for(a=0;a<E.length;a++)if(b=E[a],b!==null&&b.link===y)return b;return null}hf.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},hf.prototype.computeEndSegmentLength=function(a){var y=a.link,E=y.computeEndSegmentLength(this.node,this.port,Ti,y.fromPort===this.port),x=a.Uo;if(0>x)return E;var b=a.Gl;if(1>=b||!y.isOrthogonal)return E;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(x=b-1-x),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?E+8*x:(a?y.y===z.y:y.x===z.x)?E:E+8*(b-1-x)},hf.className="Knot";function iy(a,y,E){this.link=a,this.angle=y,this.Nc=E,this.hv=new dt,this.Gl=this.Uo=0,this.Zo=new dt,this.Ju=0}iy.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()},iy.className="LinkInfo";function Oo(a){Lr(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new dt(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Oo.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},Oo.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Oo.prototype.qb=function(){},Oo.prototype.toString=function(){var a=bn(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Oo.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())}}},Oo.prototype.createNetwork=function(){return new xo(this)},Oo.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof Jt?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof dr?y.lg(a.memberParts):y.lg(a.iterator),y},Oo.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 E=y.value.node;if(E!==null&&(a=E.diagram,a!==null))break}try{a!==null&&a.Ea("Layout"),this.commitLayout()}finally{a!==null&&a.eb("Layout")}},Oo.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()}},Oo.prototype.doLayout=function(a){var y=new Dn;a instanceof Jt?(Xd(this,y,a.nodes,!0,this.rh,!0,!1,!0),Xd(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof dr?Xd(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},Oo.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var E=this.arrangementOrigin.x,x=E,b=this.arrangementOrigin.y,z=0,ee=0;for(a=a.iterator;a.next();){var re=a.value;xp(re);var oe=re.measuredBounds,ce=oe.width;oe=oe.height,re.moveTo(x,b),re instanceof dr&&(re.rh=!1),x+=Math.max(ce,50)+20,ee=Math.max(ee,Math.max(oe,50)),z>=y-1?(z=0,x=E,b+=ee+20,ee=0):z++}},Oo.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,E=y,x=this.arrangementOrigin.y,b=0,z=0,ee=this.network.vertexes.iterator;ee.next();){var re=ee.value.node;if(!(re===null||re instanceof Jn)&&(xp(re),this.rh(re))){var oe=re.measuredBounds,ce=oe.width;oe=oe.height,re.moveTo(E,x),re instanceof dr&&(re.rh=!1),E+=Math.max(ce,50)+20,z=Math.max(z,Math.max(oe,50)),b>=a-1?(b=0,E=y,x+=z+20,z=0):b++}}},Oo.prototype.rh=function(a){return!!(!a.location.w()||a instanceof dr&&a.rh)};function Xd(a,y,E,x,b,z,ee,re){for(E=E.iterator;E.next();){var oe=E.value;x&&!oe.isTopLevel||b!==null&&!b(oe)||!oe.canLayout()||(z&&oe instanceof li?oe.isLinkLabel||(oe instanceof dr&&oe.layout===null?Xd(a,y,oe.memberParts,!1,b,z,ee,re):(xp(oe),y.add(oe))):ee&&oe instanceof Jn?y.add(oe):!re||!oe.Zc()||oe instanceof li||(xp(oe),y.add(oe)))}}function xp(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Oo.prototype.ni=function(a,y){var E=this.boundsComputation;return E!==null?(y||(y=new pn),E(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Oo.prototype.ex=function(a){var y=new Dn;return a instanceof Jt?(Xd(this,y,a.nodes,!0,null,!0,!0,!0),Xd(this,y,a.links,!0,null,!0,!0,!0),Xd(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof dr?Xd(this,y,a.memberParts,!1,null,!0,!0,!0):Xd(this,y,a.iterator,!1,null,!0,!0,!0),y},Oo.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var E=y.position.copy();return(isNaN(E.x)||isNaN(E.y))&&E.set(a),y=y.placeholder,y!==null&&(E=y.ga(_i),(isNaN(E.x)||isNaN(E.y))&&E.set(a),a=y.padding,E.x+=a.left,E.y+=a.top),E}return a},zt.Object.defineProperties(Oo.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())}}}),Oo.prototype.collectParts=Oo.prototype.ex,Oo.prototype.getLayoutBounds=Oo.prototype.ni,Oo.prototype.invalidateLayout=Oo.prototype.C,Oo.className="Layout";function xo(a){Lr(this),this.Sc=a,this.wf=new Dn,this.ye=new Dn,this.Es=new vi,this.zs=new vi}xo.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 Dn,this.ye=new Dn,this.Es=new vi,this.zs=new vi},xo.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 E=this.wf.iterator;E.next();)y+=`
|
|
|
`+E.value.toString(a-1);for(E=this.ye.iterator;E.next();)y+=`
|
|
|
`+E.value.toString(a-1)}return y},xo.prototype.createVertex=function(){return new Na(this)},xo.prototype.createEdge=function(){return new Pl(this)},xo.prototype.lg=function(a,y,E){if(a!==null){for(y===void 0&&(y=!1),E===void 0&&(E=null),E===null&&(E=function(ee){if(ee instanceof li)return!ee.isLinkLabel;if(ee instanceof Jn){var re=ee.fromNode;return re===null||re.isLinkLabel?!1:(ee=ee.toNode,!(ee===null||ee.isLinkLabel))}return!1}),a=a.iterator;a.next();){var x=a.value;if(x instanceof li&&(!y||x.isTopLevel)&&x.canLayout()&&E(x)){if(x instanceof dr&&x.layout===null)this.lg(x.memberParts,!1);else if(this.ki(x)===null){var b=this.createVertex();b.node=x,this.dh(b)}}}for(a.reset();a.next();)if(x=a.value,x instanceof Jn&&(!y||x.isTopLevel)&&x.canLayout()&&E(x)&&this.Lo(x)===null){var z=x.fromNode;b=x.toNode,z!==null&&b!==null&&z!==b&&(z=this.findGroupVertex(z),b=this.findGroupVertex(b),z!==null&&b!==null&&this.Zj(z,b,x))}}},xo.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},ke=xo.prototype,ke.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},ke.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},ke.Iu=function(a){if(a!==null&&fS(this,a)){for(var y=a.tg,E=y.count-1;0<=E;E--){var x=y.M(E);this.Mj(x)}for(y=a.mg,a=y.count-1;0<=a;a--)E=y.M(a),this.Mj(E)}};function fS(a,y){if(y===null)return!1;var E=a.wf.remove(y);return E&&(y=y.node,y!==null&&a.Es.remove(y)),E}ke.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},ke.ki=function(a){return a===null?null:this.Es.I(a)},ke.Bo=function(a){if(a!==null){ry(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function ry(a,y){if(y!==null){a.ye.add(y);var E=y.link;E!==null&&a.Lo(E)===null&&a.zs.add(E,y),y.network=a}}ke.Dy=function(a){if(a===null)return null;var y=a.fromNode,E=a.toNode,x=this.Lo(a);return x===null?(x=this.createEdge(),x.link=a,y!==null&&(x.fromVertex=this.Bl(y)),E!==null&&(x.toVertex=this.Bl(E)),this.Bo(x)):(y!==null?x.fromVertex=this.Bl(y):x.fromVertex=null,E!==null?x.toVertex=this.Bl(E):x.toVertex=null),x},ke.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),oy(this,a)}};function oy(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}ke.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},ke.Lo=function(a){return a===null?null:this.zs.I(a)},ke.Zj=function(a,y,E){if(a===null||y===null)return null;if(a.network===this&&y.network===this){var x=this.createEdge();return x.link=E,x.fromVertex=a,x.toVertex=y,this.Bo(x),x}return null},ke.gm=function(a){if(a!==null){var y=a.fromVertex,E=a.toVertex;y!==null&&E!==null&&(y.Jl(a),E.Kl(a),a.gm(),y.Cl(a),E.zl(a))}},ke.Ko=function(){for(var a=ci(),y=this.ye.iterator;y.next();){var E=y.value;E.fromVertex===E.toVertex&&a.push(E)}for(y=a.length,E=0;E<y;E++)this.Mj(a[E]);pi(a)},xo.prototype.deleteArtificialVertexes=function(){for(var a=ci(),y=this.wf.iterator;y.next();){var E=y.value;E.node===null&&E.data===null&&a.push(E)}for(E=a.length,y=0;y<E;y++)this.Iu(a[y]);for(y=ci(),E=this.ye.iterator;E.next();){var x=E.value;x.link===null&&x.data===null&&y.push(x)}for(E=y.length,x=0;x<E;x++)this.Mj(y[x]);pi(a),pi(y)};function zE(a){for(var y=ci(),E=a.ye.iterator;E.next();){var x=E.value;x.fromVertex!==null&&x.toVertex!==null||y.push(x)}for(E=y.length,x=0;x<E;x++)a.Mj(y[x]);pi(y)}xo.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),zE(this),this.Ko()),a=new Un;for(var y=!0;y;){y=!1;for(var E=this.wf.iterator;E.next();){var x=E.value;if(0<x.tg.count||0<x.mg.count){y=this.layout.createNetwork(),a.add(y),ay(this,y,x),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 ay(a,y,E){if(E!==null&&E.network!==y){fS(a,E),y.dh(E);for(var x=E.sourceEdges;x.next();){var b=x.value;b.network!==y&&(oy(a,b),ry(y,b),ay(a,y,b.fromVertex))}for(x=E.destinationEdges;x.next();)E=x.value,E.network!==y&&(oy(a,E),ry(y,E),ay(a,y,E.toVertex))}}xo.prototype.dz=function(){for(var a=new Dn,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},zt.Object.defineProperties(xo.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}}}),xo.prototype.findAllParts=xo.prototype.dz,xo.prototype.splitIntoSubNetworks=xo.prototype.Zx,xo.prototype.deleteSelfEdges=xo.prototype.Ko,xo.prototype.reverseEdge=xo.prototype.gm,xo.prototype.linkVertexes=xo.prototype.Zj,xo.prototype.findEdge=xo.prototype.Lo,xo.prototype.deleteLink=xo.prototype.Yy,xo.prototype.deleteEdge=xo.prototype.Mj,xo.prototype.addLink=xo.prototype.Dy,xo.prototype.addEdge=xo.prototype.Bo,xo.prototype.findVertex=xo.prototype.ki,xo.prototype.deleteNode=xo.prototype.Zy,xo.prototype.deleteVertex=xo.prototype.Iu,xo.prototype.addNode=xo.prototype.Bl,xo.prototype.addVertex=xo.prototype.dh,xo.prototype.addParts=xo.prototype.lg,xo.className="LayoutNetwork";function Na(a){Lr(this),this.ob=a,this.j=new pn(0,0,10,10).freeze(),this.o=new dt(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Un,this.mg=new Un}Na.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Un,this.mg=new Un},Na.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Ir(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var E=!0,x=this.tg.iterator;x.next();){var b=x.value;E?E=!1:a+=",",a+=b.toString(0)}for(b="",E=!0,x=this.mg.iterator;x.next();){var z=x.value;E?E=!1:b+=",",b+=z.toString(0)}y+=" sources: "+a+" destinations: "+b}return y},Na.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,E=a.bounds;jt(E)?(E.x=y.x,E.y=y.y,E.width=y.width,E.height=y.height):a.bounds=y.copy()}else if(a=this.node,a!==null){if(y=this.bounds,!(a instanceof dr)){E=pn.alloc(),a.Va();var x=this.network.layout.ni(a,E),b=a.locationObject.ga(Xi);if(x.w()&&b.w()){a.moveTo(y.x+this.focusX-(b.x-x.x),y.y+this.focusY-(b.y-x.y)),pn.free(E);return}pn.free(E)}a.moveTo(y.x,y.y)}},Na.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},Na.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},Na.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},Na.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function sy(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}zt.Object.defineProperties(Na.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 E=y.y,x=y.width;y=y.height,this.o.h(x/2,y/2),this.j.h(a,E,x,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,E=pn.alloc(),x=y.ni(a,E);y=x.x;var b=x.y,z=x.width;if(x=x.height,isNaN(y)&&(y=0),isNaN(b)&&(b=0),this.j.h(y,b,z,x),pn.free(E),!(a instanceof dr)&&(a=a.locationObject.ga(Xi),a.w())){this.o.h(a.x-y,a.y-b);return}this.o.h(z/2,x/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 Dn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Dn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Dn,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 Un,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}}}),Na.prototype.deleteDestinationEdge=Na.prototype.Jl,Na.prototype.addDestinationEdge=Na.prototype.zl,Na.prototype.deleteSourceEdge=Na.prototype.Kl,Na.prototype.addSourceEdge=Na.prototype.Cl,Na.className="LayoutVertex",Na.standardComparer=sy,Na.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var E=y.Sh;if(a!==null){if(E!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=E.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),E=0;E<y.length;E++)if(a[E]!==""&&a[E]!==void 0){var x=parseFloat(y[E]),b=parseFloat(a[E]);if(isNaN(x))if(isNaN(b)){if(y[E].localeCompare(a[E])!==0)return y[E].localeCompare(a[E])}else return 1;else{if(isNaN(b))return-1;if(x-b!==0)return x-b}}else if(y[E]!=="")return 1;return a[E]!==""&&a[E]!==void 0?-1:0}return 1}return E!==null?-1:0}return 1}return y!==null?-1:0};function Pl(a){Lr(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}Pl.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Pl.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+Ir(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},Pl.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Pl.prototype.commit=function(){},Pl.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},zt.Object.defineProperties(Pl.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)}}}),Pl.prototype.getOtherVertex=Pl.prototype.Ax,Pl.className="LayoutEdge";function Ja(a){Oo.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new ti(NaN,NaN).freeze(),this.tf=new ti(10,10).freeze(),this.Jb=bp,this.Rb=l0,this.nd=wp,this.hd=gS,a&&Object.assign(this,a)}en(Ja,Oo),Ja.prototype.cloneProtected=function(a){Oo.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===wp||a===c0||a===ly||a===u0?this.sorting=a:a===l0||a===qu?this.arrangement=a:a===bp||a===s0?this.alignment=a:lt("Unknown enum value: "+a):Oo.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 E=y.copy().iterator;E.next();){var x=E.value;if(!x.ph()||x.fromNode===null&&x.toNode===null){if(x.Va(),x instanceof dr)for(x=x.memberParts;x.next();)y.remove(x.value)}else y.remove(x)}var b=y.Fa();if(b.length!==0){switch(this.sorting){case u0:b.reverse();break;case wp:b.sort(this.comparer);break;case c0:b.sort(this.comparer),b.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var ee=this.wrappingWidth;switch(isNaN(ee)&&a!==null?(y=a.padding,ee=Math.max(a.viewportBounds.width-y.left-y.right,0)):ee=Math.max(this.wrappingWidth,0),0>=z&&0>=ee&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),E=this.spacing.height,isFinite(E)||(E=0),a!==null&&a.Ea("Layout"),x=[],this.alignment){case s0:var re=y,oe=E,ce=pn.alloc(),fe=Math.max(this.cellSize.width,1);if(!isFinite(fe))for(var ye=fe=0;ye<b.length;ye++){var Ne=this.ni(b[ye],ce);fe=Math.max(fe,Ne.width)}if(fe=Math.max(fe+re,1),ye=Math.max(this.cellSize.height,1),!isFinite(ye))for(Ne=ye=0;Ne<b.length;Ne++){var Pe=this.ni(b[Ne],ce);ye=Math.max(ye,Pe.height)}ye=Math.max(ye+oe,1),Ne=this.arrangement;for(var Fe=Pe=this.arrangementOrigin.x,We=this.arrangementOrigin.y,gt=0,nt=0,vt=0;vt<b.length;vt++){var St=b[vt],Tt=this.ni(St,ce),Dt=Math.ceil((Tt.width+re)/fe)*fe,Xt=Math.ceil((Tt.height+oe)/ye)*ye;switch(Ne){case qu:var ai=Math.abs(Fe-Tt.width);break;default:ai=Fe+Tt.width}switch((0<z&>>z-1||0<ee&&0<gt&&ai-Pe>ee)&&(x.push(new pn(0,We,ee+re,nt)),gt=0,Fe=Pe,We+=nt,nt=0),nt=Math.max(nt,Xt),Ne){case qu:Tt=-Tt.width;break;default:Tt=0}switch(St.moveTo(Fe+Tt,We),Ne){case qu:Fe-=Dt;break;default:Fe+=Dt}gt++}x.push(new pn(0,We,ee+re,nt)),pn.free(ce);break;case bp:for(oe=ee,fe=z,ye=y,Ne=E,ee=pn.alloc(),Pe=Math.max(this.cellSize.width,1),z=We=ce=0,re=dt.alloc(),Fe=0;Fe<b.length;Fe++)nt=b[Fe],gt=this.ni(nt,ee),nt=Ed(nt,nt.locationObject,nt.locationSpot,re),ce=Math.max(ce,nt.x),We=Math.max(We,gt.width-nt.x),z=Math.max(z,nt.y);switch(Fe=this.arrangement,Fe){case qu:ce+=ye;break;default:We+=ye}Pe=isFinite(Pe)?Math.max(Pe+ye,1):Math.max(ce+We,1);var Ci=nt=this.arrangementOrigin.x;for(vt=this.arrangementOrigin.y,We=0,oe>=ce&&(oe-=ce),ce=St=0,Dt=Math.max(this.cellSize.height,1),Tt=z=0,Xt=!0,gt=dt.alloc(),ai=0;ai<b.length;ai++){var Ei=b[ai],Xn=this.ni(Ei,ee),In=Ed(Ei,Ei.locationObject,Ei.locationSpot,re);if(0<We)switch(Fe){case qu:Ci=(Ci-nt-(Xn.width-In.x))/Pe,Ci=Ft.$(Math.round(Ci),Ci)?Math.round(Ci):Math.floor(Ci),Ci=Ci*Pe+nt;break;default:Ci=(Ci-nt+In.x)/Pe,Ci=Ft.$(Math.round(Ci),Ci)?Math.round(Ci):Math.ceil(Ci),Ci=Ci*Pe+nt}else switch(Fe){case qu:St=Ci+In.x+Xn.width;break;default:St=Ci-In.x}switch(Fe){case qu:var cr=-(Ci+In.x)+St;break;default:cr=Ci+Xn.width-In.x-St}if(0<fe&&We>fe-1||0<oe&&0<We&&cr>oe){for(x.push(new pn(0,Xt?vt-z:vt,oe+ye,Tt+z+Ne)),Ci=0;Ci<We&&ai!==We;Ci++){cr=b[ai-We+Ci];var $i=Ed(cr,cr.locationObject,cr.locationSpot,gt);cr.moveTo(cr.position.x,cr.position.y+z-$i.y)}Tt+=Ne,vt=Xt?vt+Tt:vt+(Tt+z),We=Tt=z=0,Ci=nt,Xt=!1}switch(Ci===nt&&(ce=Fe===qu?Math.max(ce,Xn.width-In.x):Math.min(ce,-In.x)),z=Math.max(z,In.y),Tt=Math.max(Tt,Xn.height-In.y),isFinite(Dt)&&(Tt=Math.max(Tt,Math.max(Xn.height,Dt)-In.y)),Xt?Ei.moveTo(Ci-In.x,vt-In.y):Ei.moveTo(Ci-In.x,vt),Fe){case qu:Ci-=In.x+ye;break;default:Ci+=Xn.width-In.x+ye}We++}if(x.push(new pn(0,vt,oe+ye,(Xt?Tt:Tt+z)+Ne)),b.length!==We)for(oe=0;oe<We;oe++)fe=b[b.length-We+oe],ye=Ed(fe,fe.locationObject,fe.locationSpot,re),fe.moveTo(fe.position.x,fe.position.y+z-ye.y);if(dt.free(re),dt.free(gt),Fe===qu)for(b=0;b<x.length;b++)z=x[b],z.width+=ce,z.x-=ce;else for(b=0;b<x.length;b++)z=x[b],z.x>ce&&(z.width+=z.x-ce,z.x=ce);pn.free(ee)}for(re=z=ee=b=0;re<x.length;re++)oe=x[re],b=Math.min(b,oe.x),ee=Math.min(ee,oe.y),z=Math.max(z,oe.x+oe.width);this.arrangement===qu?this.commitLayers(x,new dt(b+y/2-(z+b),ee-E/2)):this.commitLayers(x,new dt(b-y/2,ee-E/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},Ja.prototype.commitLayers=function(){};function gS(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}zt.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!==bp&&a!==s0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==l0&&a!==qu||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==ly&&a!==u0&&a!==wp&&a!==c0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var s0=new Mn(Ja,"Position",0),bp=new Mn(Ja,"Location",1),l0=new Mn(Ja,"LeftToRight",2),qu=new Mn(Ja,"RightToLeft",3),ly=new Mn(Ja,"Forward",4),u0=new Mn(Ja,"Reverse",5),wp=new Mn(Ja,"Ascending",6),c0=new Mn(Ja,"Descending",7);Ja.className="GridLayout",Ja.standardComparer=gS,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 E=0;E<a.length;E++)if(y[E]!==""&&y[E]!==void 0){var x=parseFloat(a[E]),b=parseFloat(y[E]);if(isNaN(x))if(isNaN(b)){if(a[E].localeCompare(y[E])!==0)return a[E].localeCompare(y[E])}else return 1;else{if(isNaN(b))return-1;if(x-b!==0)return x-b}}else if(a[E]!=="")return 1;return y[E]!==""&&y[E]!==void 0?-1:0}return 1}return y!==null?-1:0},Ja.Position=s0,Ja.Location=bp,Ja.LeftToRight=l0,Ja.RightToLeft=qu,Ja.Forward=ly,Ja.Reverse=u0,Ja.Ascending=wp,Ja.Descending=c0;function $r(){this.On=new Dn,this.Dn=new Dn,this.Pa=new Dn,this.cf=new vi,this.bf=new vi,this.aj=new vi,this.H=null,this.tp=!1}ke=$r.prototype,ke.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},ke.Xe=function(a){this.H=a},ke.oi=function(a){if(a instanceof li){if(this.On.add(a),a instanceof dr){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 Jn?this.Dn.add(a):a instanceof Hr||this.Pa.add(a);y=a.data,y===null||a instanceof Hr||(a instanceof Jn?this.bf.add(y,a):this.cf.add(y,a))},ke.pc=function(a){if(a.Ej(),a instanceof li){if(this.On.remove(a),a instanceof dr){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 Jn?this.Dn.remove(a):a instanceof Hr||this.Pa.remove(a);y=a.data,y===null||a instanceof Hr||(a instanceof Jn?this.bf.remove(y):this.cf.remove(y))},ke.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var E=y.value,x=y.key;(!E.Zc()||E instanceof dr)&<('Invalid node template in Diagram.nodeTemplateMap: template for "'+x+'" must be a Node or a simple Part, not a Group or Link: '+E)}for(y=a.groupTemplateMap.iterator;y.next();)E=y.value,x=y.key,E instanceof dr||lt('Invalid group template in Diagram.groupTemplateMap: template for "'+x+'" must be a Group, not a normal Node or Link: '+E);for(y=a.linkTemplateMap.iterator;y.next();)E=y.value,x=y.key,E instanceof Jn||lt('Invalid link template in Diagram.linkTemplateMap: template for "'+x+'" must be a Link, not a normal Node or simple Part: '+E);for(y=ci(),E=a.selection.iterator;E.next();)(x=E.value.data)&&y.push(x);for(E=ci(),a=a.highlighteds.iterator;a.next();)(x=a.value.data)&&E.push(x);for(a=ci(),x=this.nodes.iterator;x.next();){var b=x.value;b.data!==null&&(a.push(b.data),a.push(b.location))}for(x=this.links.iterator;x.next();)b=x.value,b.data!==null&&(a.push(b.data),a.push(b.location));for(x=this.parts.iterator;x.next();)b=x.value,b.data!==null&&(a.push(b.data),a.push(b.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),x=0;x<y.length;x++)b=this.Lc(y[x]),b!==null&&(b.isSelected=!0);for(x=0;x<E.length;x++)b=this.Lc(E[x]),b!==null&&(b.isHighlighted=!0);for(x=0;x<a.length;x+=2)b=this.Lc(a[x]),b!==null&&(b.location=a[x+1]);pi(y),pi(E),pi(a)}},$r.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},$r.prototype.addModeledParts=function(a,y){var E=this,x=this.diagram.model;a.forEach(function(b){x.lb(b)&&pS(E,b,!1)}),a.forEach(function(b){x.lb(b)&&E.resolveReferencesForData(b)}),y!==!1&&Of(this.diagram,!1)};function pS(a,y,E){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){E===void 0&&(E=!0);e:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var x=a.Ro(y),b=mS(a,y,x);if(b!==null&&(Su(b),b=b.copy(),b!==null)){var z=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=x,b.ub=y,a.tp&&(b.Jg="Tool"),a.diagram.add(b),b.ub=null,b.data=y,a.diagram.skipsModelSourceBindings=z,x=b;break e}}x=null}x!==null&&E&&a.resolveReferencesForData(y)}}$r.prototype.insertLink=function(){return null},$r.prototype.resolveReferencesForData=function(){},$r.prototype.Ro=function(a){return this.H.model.Ro(a)};function mS(a,y,E){a=a.H;var x=a.model;return x.Xj()&&x.Yu(y)?(y=a.groupTemplateMap.I(E),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(SS||(SS=!0,gi('No Group template found for category "'+E+'"'),gi(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(E),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(yS||(yS=!0,gi('No Node template found for category "'+E+'"'),gi(" Using default node template")),y=a.ny))),y}$r.prototype.getLinkCategoryForData=function(){return""},$r.prototype.setLinkCategoryForData=function(){},$r.prototype.setFromNodeForLink=function(){},$r.prototype.setToNodeForLink=function(){},$r.prototype.findLinkTemplateForCategory=function(a){var y=this.H,E=y.linkTemplateMap.I(a);return E===null&&(E=y.linkTemplateMap.I(""),E===null&&(ES||(ES=!0,gi('No Link template found for category "'+a+'"'),gi(" Using default link template")),E=y.my)),E},$r.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},$r.prototype.Gs=function(a){var y=this;a.forEach(function(E){y.ip(E)})},$r.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Bg(this.diagram,a,!1),this.unresolveReferencesForPart(a))},$r.prototype.unresolveReferencesForPart=function(){},$r.prototype.removeDataForLink=function(){},$r.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},$r.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)},$r.prototype.findLinkForKey=function(){return null},ke=$r.prototype,ke.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},ke.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof li?a:null)},ke.Kc=function(a){return a===null?null:this.bf.I(a)},ke.ms=function(a){for(var y=0;y<arguments.length;++y);y=new Dn;for(var E=this.On.iterator;E.next();){var x=E.value,b=x.data;if(b!==null)for(var z=0;z<arguments.length;z++){var ee=arguments[z];if(jt(ee)&&uy(this,b,ee)){y.add(x);break}}}return y.iterator},ke.ls=function(a){for(var y=0;y<arguments.length;++y);y=new Dn;for(var E=this.Dn.iterator;E.next();){var x=E.value,b=x.data;if(b!==null)for(var z=0;z<arguments.length;z++){var ee=arguments[z];if(jt(ee)&&uy(this,b,ee)){y.add(x);break}}}return y.iterator};function uy(a,y,E){for(var x in E){var b=y[x],z=E[x];if(Vn(z)){if(!Vn(b)||b.length<z.length)return!1;for(var ee=0;ee<b.length;ee++){var re=z[ee];if(re!==void 0&&!vS(a,b[ee],re))return!1}}else if(!vS(a,b,z))return!1}return!0}function vS(a,y,E){if(typeof E=="function"){if(!E(y))return!1}else if(E instanceof RegExp){if(!y||!E.test(y.toString()))return!1}else if(jt(y)&&jt(E)){if(!uy(a,y,E))return!1}else if(y!==E)return!1;return!0}$r.prototype.doModelChanged=function(a){if(this.H){var y=this.H;if(a.model===y.model){var E=a.change;if(y.doModelChanged(a),y.aa){y.aa=!1;try{var x=a.modelChange;if(x!=="")if(E===wo){if(x==="nodeCategory"){var b=this.Lc(a.object),z=a.newValue;b!==null&&typeof z=="string"&&(b.category=z)}else x==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(E===Wo){var ee=a.newValue;x==="nodeDataArray"&&jt(ee)&&pS(this,ee),y.isModified=!0}else if(E===qo){var re=a.oldValue;x==="nodeDataArray"&&jt(re)&&this.ip(re),y.isModified=!0}else E===vs&&(x==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):x==="ModelDisplaced"&&this.Wd());else if(E===wo){var oe=a.propertyName,ce=a.object;ce===y.model?(oe==="nodeKeyProperty"||oe==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(ce,oe),y.isModified=!0}else if(E===Wo||E===qo){var fe=a.change===Wo,ye=fe?a.newParam:a.oldParam,Ne=fe?a.newValue:a.oldValue,Pe=this.aj.I(a.object);if(Array.isArray(Pe))for(a=0;a<Pe.length;a++){var Fe=Pe[a];if(fe)Pm(Fe,Ne,ye,!0);else if(!(0>ye)){var We=ye+rp(Fe);Fe.pc(We,!0),wv(Fe,We,ye)}}y.isModified=!0}}finally{y.aa=!0}}}}},$r.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)},$r.prototype.rp=function(){for(var a=this.H.model,y=new Dn,E=a.nodeDataArray,x=0;x<E.length;x++)y.add(E[x]);var b=[];for(this.nodes.each(function(ee){ee.data===null||y.contains(ee.data)||b.push(ee.data)}),this.parts.each(function(ee){ee.data===null||y.contains(ee.data)||b.push(ee.data)}),b.forEach(function(ee){LS(a,ee,!1)}),x=0;x<E.length;x++){var z=E[x];this.Lc(z)===null&&PS(a,z,!1)}for(this.refreshDataBoundLinks(),E=this.parts.iterator;E.next();)E.value.updateRelationshipsFromData();for(E=this.nodes.iterator;E.next();)E.value.updateRelationshipsFromData();for(E=this.links.iterator;E.next();)E.value.updateRelationshipsFromData()},$r.prototype.refreshDataBoundLinks=function(){},$r.prototype.updateRelationshipsFromData=function(){},$r.prototype.updateDataBindings=function(a,y){if(typeof y=="string"){var E=this.Lc(a);if(E!==null)E.La(y);else{E=null;for(var x=this.aj.iterator;x.next();){for(var b=x.value,z=0;z<b.length;z++){var ee=b[z].sx(a);ee!==null&&(E===null&&(E=ci()),E.push(ee))}if(E!==null)break}if(E!==null){for(x=0;x<E.length;x++)E[x].La(y);pi(E)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function cy(a,y){var E=y.Hh;if(Vn(E)){var x=a.aj.I(E);if(x===null)x=[],x.push(y),a.aj.add(E,x);else{for(a=0;a<x.length;a++)if(x[a]===y)return;x.push(y)}}}function dy(a,y,E){Dh(y,function(ee){ee=ee.O.s;for(var re=ee.length,oe=0;oe<re;oe++)Hg(E,ee[oe])});var x=y.Hh;if(Vn(x)){var b=a.aj.I(x);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(x);break}}}}$r.prototype.Kj=function(a,y,E){E===void 0&&(E=!1);var x=new vi;if(Vn(a))for(var b=0;b<a.length;b++)d0(this,a[b],y,x,E);else for(a=a.iterator;a.next();)d0(this,a.value,y,x,E);if(y!==null){E=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,b=new Dn;for(var z=new vi,ee=x.iterator;ee.next();){var re=ee.value;if(re instanceof Jn)a||re.fromNode!==null&&re.toNode!==null||b.add(re);else if(re instanceof li&&re.data!==null&&E.Tl()){var oe=re;re=ee.key;var ce=re.pg();ce!==null&&(ce=x.I(ce),ce!==null?(E.qe(oe.data,E.wa(ce.data)),oe=y.Kc(oe.data),re=re.kh(),re!==null&&oe!==null&&z.add(re,oe)):E.qe(oe.data,void 0))}}if(0<b.count&&y.Is(b,!1),0<z.count)for(E=z.iterator;E.next();)x.add(E.key,E.value)}if(y!==null&&this.H!==null&&(y=y.model,E=y.afterCopyFunction,E!==null)){var fe=new vi;x.each(function(ye){ye.key.data!==null&&fe.add(ye.key.data,ye.value.data)}),E(fe,y,this.H.model)}for(y=x.iterator;y.next();)y.value.La();return x};function d0(a,y,E,x,b){if(y===null||b&&!y.canCopy())return null;if(x.contains(y))return x.I(y);var z=a.copyPartData(y,E);if(!(z instanceof Bi))return null;if(z.isSelected=!1,z.isHighlighted=!1,x.add(y,z),y instanceof li){for(var ee=y.linksConnected;ee.next();){var re=ee.value;if(re.fromNode===y){var oe=x.I(re);oe!==null&&(oe.fromNode=z)}re.toNode===y&&(re=x.I(re),re!==null&&(re.toNode=z))}if(y instanceof dr&&z instanceof dr)for(y=y.memberParts;y.next();)ee=d0(a,y.value,E,x,b),ee instanceof Jn||ee===null||(ee.containingGroup=z)}else if(y instanceof Jn&&z instanceof Jn)for(ee=y.fromNode,ee!==null&&(ee=x.I(ee),ee!==null&&(z.fromNode=ee)),ee=y.toNode,ee!==null&&(ee=x.I(ee),ee!==null&&(z.toNode=ee)),y=y.labelNodes;y.next();)ee=d0(a,y.value,E,x,b),ee!==null&&ee instanceof li&&(ee.labeledLink=z);return z}$r.prototype.copyPartData=function(a,y){var E=null,x=a.data;if(x!==null&&y!==null){var b=y.model;a instanceof Jn||(x=b.copyNodeData(x),jt(x)&&(b.xf(x),E=y.Lc(x)))}else Su(a),E=a.copy(),E!==null&&(b=this.H,y!==null?y.add(E):x!==null&&b!==null&&b.commandHandler!==null&&b.commandHandler.copiesClipboardData&&(y=b.model,b=null,E instanceof Jn||(b=y.copyNodeData(x)),jt(b)&&(E.data=b)));return E},zt.Object.defineProperties($r.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}}}),$r.prototype.updateAllRelationshipsFromData=$r.prototype.rp,$r.prototype.findLinksByExample=$r.prototype.ls,$r.prototype.findNodesByExample=$r.prototype.ms,$r.prototype.findLinkForData=$r.prototype.Kc,$r.prototype.findNodeForData=$r.prototype.ii,$r.prototype.findPartForData=$r.prototype.Lc,$r.prototype.findNodeForKey=$r.prototype.Vb,$r.prototype.removeModeledPart=$r.prototype.ip,$r.prototype.removeModeledParts=$r.prototype.Gs,$r.prototype.rebuildParts=$r.prototype.Wd;var yS=!1,SS=!1,ES=!1;$r.className="PartManager";function _a(a){$r.apply(this,arguments)}en(_a,$r),_a.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),xS(this,a.linkDataArray)},_a.prototype.addModeledParts=function(a){for($r.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)tg(a.value);Of(this.diagram,!1)};function xS(a,y){y.forEach(function(E){bS(a,E)}),Of(a.diagram,!1)}function bS(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var E=a.getLinkCategoryForData(y),x=a.findLinkTemplateForCategory(E);if(x!==null){Su(x);var b=x.copy();if(b!==null){x=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,b.Tf=E,b.ub=y,E=a.diagram.model;var z=p0(E,y,!0);z!==""&&(b.fromPortId=z),z=Wl(E,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof li&&(b.fromNode=z)),z=p0(E,y,!1),z!==""&&(b.toPortId=z),z=Wl(E,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof li&&(b.toNode=z)),E=E.Ef(y),Array.isArray(E)&&E.forEach(function(ee){ee=a.Vb(ee),ee!==null&&(ee.labeledLink=b)}),a.tp&&(b.Jg="Tool"),a.diagram.add(b),b.ub=null,b.data=y,a.diagram.skipsModelSourceBindings=x}}}}_a.prototype.removeAllModeledParts=function(){var a=this.diagram.model;wS(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function wS(a,y){y.forEach(function(E){a.ip(E)})}_a.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},_a.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},_a.prototype.setFromNodeForLink=function(a,y){var E=this.diagram.model;E.wv(a.data,E.wa(y!==null?y.data:null))},_a.prototype.setToNodeForLink=function(a,y){var E=this.diagram.model;E.Bv(a.data,E.wa(y!==null?y.data:null))},_a.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},_a.prototype.findPartForKey=function(a){var y=$r.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},_a.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},_a.prototype.doModelChanged=function(a){var y=this;if($r.prototype.doModelChanged.call(this,a),this.diagram){var E=this.diagram;if(a.model===E.model){var x=a.change;if(E.aa){E.aa=!1;try{var b=a.modelChange;if(b!==""){if(x===wo){if(b==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var ee=this.Vb(a.newValue);z.fromNode=ee}}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 ce=this.Kc(a.object);if(ce!==null){var fe=a.newValue;typeof fe=="string"&&(ce.fromPortId=fe)}}else if(b==="linkToPortId"){var ye=this.Kc(a.object);if(ye!==null){var Ne=a.newValue;typeof Ne=="string"&&(ye.toPortId=Ne)}}else if(b==="nodeGroupKey"){var Pe=this.Lc(a.object);if(Pe!==null){var Fe=a.newValue;if(Fe!==void 0){var We=this.Vb(Fe);We instanceof dr?Pe.containingGroup=We:Pe.containingGroup=null}else Pe.containingGroup=null}}else if(b==="linkLabelKeys"){var gt=this.Kc(a.object);if(gt!==null){var nt=a.oldValue,vt=a.newValue;Array.isArray(nt)&&nt.forEach(function(In){0<=vt.indexOf(In)||(In=y.Vb(In),In!==null&&(In.labeledLink=null))}),Array.isArray(vt)&&vt.forEach(function(In){In=y.Vb(In),In!==null&&(In.labeledLink=gt)})}}else if(b==="linkCategory"){var St=this.Kc(a.object),Tt=a.newValue;St!==null&&typeof Tt=="string"&&(St.category=Tt)}else b==="linkDataArray"&&(wS(this,a.oldValue),xS(this,a.newValue));E.isModified=!0}else if(x===Wo){var Dt=a.newValue;if(b==="linkDataArray"&&typeof Dt=="object"&&Dt!==null)bS(this,Dt);else if(b==="linkLabelKeys"&&qd(Dt)){var Xt=this.Kc(a.object),ai=this.Vb(Dt);Xt!==null&&ai!==null&&(ai.labeledLink=Xt)}E.isModified=!0}else if(x===qo){var Ci=a.oldValue;if(b==="linkDataArray"&&typeof Ci=="object"&&Ci!==null)this.ip(Ci);else if(b==="linkLabelKeys"&&qd(Ci)){var Ei=this.Vb(Ci);Ei!==null&&(Ei.labeledLink=null)}E.isModified=!0}}else if(x===wo){var Xn=a.propertyName;a.object!==E.model||Xn!=="linkFromKeyProperty"&&Xn!=="linkToKeyProperty"&&Xn!=="linkFromPortIdProperty"&&Xn!=="linkToPortIdProperty"&&Xn!=="linkLabelKeysProperty"&&Xn!=="nodeIsGroupProperty"&&Xn!=="nodeGroupKeyProperty"&&Xn!=="linkCategoryProperty"||E.undoManager.isUndoingRedoing||this.Wd(),E.isModified=!0}}finally{E.aa=!0}}}}},_a.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,E=new Dn,x=y.linkDataArray;x.forEach(function(z){E.add(z)});var b=[];this.links.each(function(z){z.data===null||E.contains(z.data)||b.push(z.data)}),b.forEach(function(z){FS(y,z,!1)}),x.forEach(function(z){a.Kc(z)===null&&RS(y,z,!1)})},_a.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var E=a.diagram;if(E!==null){var x=E.model;if(a instanceof Jn){var b=Wl(x,y,!0);if(b=E.Vb(b),a.fromNode=b,b=Wl(x,y,!1),b=E.Vb(b),a.toNode=b,y=x.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(x.wa(z.data)===b)return}b=new Dn().addAll(y);var ee=new Dn;a.labelNodes.each(function(re){re.data!==null&&(re=x.wa(re.data),re!==void 0&&ee.add(re))}),y=ee.copy(),y.hp(b),b=b.copy(),b.hp(ee),(0<y.count||0<b.count)&&(y.each(function(re){re=E.Vb(re),re!==null&&re.labeledLink===a&&(re.labeledLink=null)}),b.each(function(re){re=E.Vb(re),re!==null&&re.labeledLink!==a&&(re.labeledLink=a)}))}}else!(a instanceof Hr)&&(y=x.lh(y),y=E.findPartForKey(y),y===null||y instanceof dr)&&(a.containingGroup=y)}}},_a.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,E=y.wa(a);if(E!==void 0){var x=Tp(y,E),b=this.Lc(a);if(x!==null&&b!==null){x=x.iterator;for(var z={};x.next();){var ee=x.value;y.lb(ee)?b instanceof dr&&y.lh(ee)===E&&(ee=this.Lc(ee),ee!==null&&(ee.containingGroup=b)):(z.link=this.Kc(ee),z.link!==null&&b instanceof li&&(Wl(y,ee,!0)===E&&(z.link.fromNode=b),Wl(y,ee,!1)===E&&(z.link.toNode=b),ee=y.Ef(ee),Array.isArray(ee)&&ee.some(function(re){return function(oe){return oe===E?(b.labeledLink=re.link,!0):!1}}(z)))),z={link:z.link}}ec(y,E)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof dr&&(b.containingGroup=a))}},_a.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof li){var E=y.wa(a.data);if(E!==void 0){for(var x=a.linksConnected;x.next();)$u(y,E,x.value.data);if(a.isLinkLabel&&(x=a.labeledLink,x!==null&&$u(y,E,x.data)),a instanceof dr)for(a=a.memberParts;a.next();)x=a.value.data,y.lb(x)&&$u(y,E,x)}}},_a.prototype.copyPartData=function(a,y){var E=$r.prototype.copyPartData.call(this,a,y);if(a instanceof Jn)if(a=a.data,a!==null&&y!==null){var x=y.model;a=x.Jo(a),typeof a=="object"&&a!==null&&(x.fi(a),E=y.Kc(a))}else E!==null&&(y=this.diagram,a!==null&&y!==null&&y.commandHandler!==null&&y.commandHandler.copiesClipboardData&&(y=y.model.Jo(a),typeof y=="object"&&y!==null&&(E.data=y)));return E},_a.prototype.insertLink=function(a,y,E,x){var b=this.diagram,z=b.model,ee=b.toolManager.findTool("Linking"),re="";if(a!==null&&(y===null&&(y=a),re=y.portId,re===null&&(re="")),y="",E!==null&&(x===null&&(x=E),y=x.portId,y===null&&(y="")),x=ee.archetypeLinkData,x instanceof Jn){if(Su(x),z=x.copy(),z!==null)return z.fromNode=a,z.fromPortId=re,z.toNode=E,z.toPortId=y,b.add(z),a=ee.archetypeLabelNodeData,a instanceof li&&(Su(a),a=a.copy(),a!==null&&(a.labeledLink=z,b.add(a))),z}else if(x!==null&&(x=z.Jo(x),typeof x=="object"&&x!==null))return a!==null&&sg(z,x,z.wa(a.data),!0),lg(z,x,re,!0),E!==null&&sg(z,x,z.wa(E.data),!1),lg(z,x,y,!1),z.fi(x),a=ee.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(x,a))),b.Kc(x);return null},_a.prototype.findLinkForKey=_a.prototype.findLinkForKey,_a.prototype.findPartForKey=_a.prototype.findPartForKey,_a.prototype.removeAllModeledParts=_a.prototype.removeAllModeledParts,_a.prototype.addModeledParts=_a.prototype.addModeledParts,_a.prototype.addAllModeledParts=_a.prototype.addAllModeledParts,_a.className="GraphLinksPartManager";function ou(){$r.apply(this,arguments),this.Sg=null}en(ou,$r);function h0(a,y,E){if(y!==null&&E!==null&&E.kh()===null){var x=a.diagram.toolManager.findTool("Linking"),b=y,z=E;if(a.diagram.isTreePathToChildren||(b=E,z=y),(x===null||!ss(x,b,z,null,!0))&&(y=a.getLinkCategoryForData(E.data),x=a.findLinkTemplateForCategory(y),x!==null&&(Su(x),x=x.copy(),x!==null))){var ee=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,x.Tf=y,x.ub=E.data,x.fromNode=b,x.toNode=z,a.diagram.add(x),x.ub=null,x.data=E.data,a.diagram.skipsModelSourceBindings=ee}}}ou.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},ou.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},ou.prototype.setFromNodeForLink=function(a,y,E){var x=this.diagram.model;if(E===void 0&&(E=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)x.qe(a.data,x.wa(y));else{var b=this.Sg;this.Sg=a,E!==null&&x.qe(E.data,void 0),x.qe(y,x.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=b}},ou.prototype.setToNodeForLink=function(a,y,E){var x=this.diagram.model;if(E===void 0&&(E=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var b=this.Sg;this.Sg=a,E!==null&&x.qe(E.data,void 0),x.qe(y,x.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=b}else x.qe(a.data,x.wa(y))},ou.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},ou.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},ou.prototype.doModelChanged=function(a){if($r.prototype.doModelChanged.call(this,a),this.diagram){var y=this.diagram;if(a.model===y.model){var E=a.change;if(y.aa){y.aa=!1;try{var x=a.modelChange;if(x!==""){if(E===wo){if(x==="nodeParentKey"){var b=a.object,z=this.Vb(a.newValue),ee=this.ii(b);if(this.Sg!==null)z!==null&&(this.Sg.data=b,this.Sg.category=this.getLinkCategoryForData(b));else if(ee!==null){var re=ee.kh();re!==null?z===null?y.remove(re):y.isTreePathToChildren?re.fromNode=z:re.toNode=z:h0(this,z,ee)}}else if(x==="parentLinkCategory"){var oe=this.ii(a.object),ce=a.newValue;if(oe!==null&&typeof ce=="string"){var fe=oe.kh();fe!==null&&(fe.category=ce)}}y.isModified=!0}}else if(E===wo){var ye=a.propertyName;a.object===y.model&&ye==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},ou.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var E=a.diagram;if(E!==null){var x=E.model;a instanceof li&&(y=x.mh(y),y=E.Vb(y),x=a.pg(),y!==x&&(x=a.kh(),y!==null?x!==null?E.isTreePathToChildren?x.fromNode=y:x.toNode=y:h0(this,y,a):x!==null&&Bg(E,x,!1)))}}},ou.prototype.updateDataBindings=function(a,y){$r.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},ou.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,E=y.wa(a);if(E!==void 0){var x=Tp(y,E),b=this.Lc(a);if(x!==null&&b!==null){for(x=x.iterator;x.next();){var z=x.value;y.lb(z)&&b instanceof li&&y.mh(z)===E&&h0(this,b,this.ii(z))}ec(y,E)}a=y.mh(a),a!==void 0&&b instanceof li&&(a=this.Vb(a),h0(this,a,b))}},ou.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof li){var E=y.wa(a.data),x=this.Kc(a.data);if(x!==null){x.isSelected=!1,x.isHighlighted=!1;var b=x.layer;if(b!==null){var z=b.pc(-1,x,!1);0<=z&&this.diagram.cb(qo,"parts",b,x,null,z,null),z=x.layerChanged,z!==null&&z(x,b,null)}}for(x=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)b=a.value,b=(x?b.toNode:b.fromNode).data,y.lb(b)&&$u(y,E,b)}},ou.prototype.insertLink=function(a,y,E){y=this.diagram.model;var x=a,b=E;return this.diagram.isTreePathToChildren||(x=E,b=a),x!==null&&b!==null?(y.qe(b.data,y.wa(x.data)),b.kh()):null},ou.prototype.findLinkForKey=ou.prototype.findLinkForKey,ou.className="TreePartManager";function Ii(a,y){this.kl=new Dn,this.il=new Dn,this.Wv=`,
|
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
|
"removedNodeKeys": `,this.vh=null,Lr(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new vi,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 vi,this.Lt=new Un,this.Wg=!1,this.o=null,this.undoManager=new fo,a!==void 0&&(Vn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Ii.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},Ii.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ii.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Ii.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 E=a.length,x=0;x<E;x++){var b=a[x];y+=" "+this.wa(b)+":"+Ki(b)}}return y},Ii.prototype.xA=function(a){a.change!==vs&<("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof ma?(AS(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Ii.prototype.Qv=function(a,y){var E=this,x=!1,b=new Dn,z=new Dn,ee=new Dn,re=this.vh;a.changes.each(function(ye){ye.model===E&&(ye.modelChange==="nodeDataArray"?ye.change===Wo?b.add(ye.newValue):ye.change===qo&&ee.add(ye.oldValue):E.lb(ye.object)?z.add(ye.object):ye.change!==wo||E.modelData!==ye.object&&ye.propertyName!=="modelData"?ye.object!==null&&(re&&re.contains(ye.object)?re.get(ye.object).each(function(Ne){E.lb(Ne)&&z.add(Ne)}):ye.object instanceof Ii||E.ri()&&E.Jc(ye.object)||CS(E,ye.object).each(function(Ne){z.add(Ne)})):x=!0)});var oe=this.il;oe.clear(),b.each(function(ye){oe.add(E.wa(ye)),y||z.add(ye)});var ce=this.kl;ce.clear(),ee.each(function(ye){ce.add(E.wa(ye)),y&&z.add(ye)}),a=E.cloneDeep(z.Fa());var fe=null;return x&&(fe===null&&(fe={}),fe.modelData=this.cloneDeep(this.modelData)),0<oe.count&&(fe===null&&(fe={}),y?fe.removedNodeKeys=oe.Fa():fe.insertedNodeKeys=oe.Fa()),0<a.length&&(fe===null&&(fe={}),fe.modifiedNodeData=a),0<ce.count&&(fe===null&&(fe={}),y?fe.insertedNodeKeys=ce.Fa():fe.removedNodeKeys=ce.Fa()),ce.clear(),oe.clear(),fe},Ii.prototype.cloneDeep=function(a){return ag(this,a,!0)};function ag(a,y,E,x,b,z){function ee(ye,Ne){re?(ye.__gohashid===void 0&&z.push(ye),x.set(ye,Ne)):(ye=Vr++,x.set(ye,Ne),b.set(ye,y))}if(!jt(y))return y;z||(z=[]);var re=Object.isExtensible(y);if(x||(x=new vi),re){var oe=x.get(y);if(oe)return oe}else for(b||(b=new vi),oe=b.iterator;oe.next();){var ce=oe.key;if(oe.value===y&&(ce=x.get(ce)))return ce}if(Array.isArray(y)){oe=[],ee(y,oe);for(var fe=0;fe<y.length;fe++)oe.push(ag(a,y[fe],!1,x,b,z))}else if(y instanceof dt||y instanceof ti||y instanceof pn||y instanceof mr||y instanceof tn)oe=y.copy(),ee(y,oe);else{if(y instanceof Jr||y instanceof Qn||y instanceof Mn)return y;if(y instanceof Un)oe=new Un().addAll(ag(a,y.Fa(),!1,x,b,z)),ee(y,oe);else if(y instanceof Dn)oe=new Dn().addAll(ag(a,y.Fa(),!1,x,b,z)),ee(y,oe);else if(y instanceof vi)oe=new vi().addAll(ag(a,y.Fa(),!1,x,b,z)),ee(y,oe);else if(y instanceof Date)oe=new Date(y.getTime()),ee(y,oe);else if(y instanceof RegExp)oe=new RegExp(y),ee(y,oe),oe.lastIndex=y.lastIndex;else if(typeof y.copy=="function")oe=y.copy(),ee(y,oe);else for(fe in oe={},ee(y,oe),y)fe!=="__gohashid"&&(oe[fe]=ag(a,y[fe],!1,x,b,z))}return E&&z.forEach(function(ye){delete ye.__gohashid}),oe}ke=Ii.prototype,ke.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},ke.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},ke.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 TS(a,y){y=y.modelData,jt(y)&&(a.dm(y),a.modelData=y)}ke.Rv=function(){var a=this.modelData,y=!1,E;for(E in a)if(!MS(E,a[E])){y=!0;break}return a="",y&&(a=`,
|
|
|
"modelData": `+hy(this,this.modelData)),a+`,
|
|
|
"nodeDataArray": `+Jd(this,this.nodeDataArray,!0)},ke.kv=function(a){TS(this,a),a=a.nodeDataArray,Vn(a)&&(this.dm(a),this.nodeDataArray=a)};function AS(a,y){function E(b,z){if((z=z.part)&&(z=z.data,b!==z)){var ee=x.get(b);ee===null?(ee=new Dn,ee.add(z),x.add(b,ee)):ee.add(z)}}var x=a.vh;x===null&&(x=new vi,y.changes.each(function(b){if(b.diagram!==null){var z=b.change;z===wo?(b=b.object.panel)&&(z=b.data)&&E(z,b):(z===Wo||z===qo)&&(b=b.object,(z=b.itemArray)&&E(z,b))}}),a.vh=x)}function CS(a,y){for(var E=new Dn,x=0;x<a.nodeDataArray.length;x++){var b=a.nodeDataArray[x];f0(a,y,b,b,E)}return E}function f0(a,y,E,x,b){if(Array.isArray(E))for(var z=0;z<E.length;z++){var ee=E[z];if(ee===y)return b.add(x),!0;if(f0(a,y,ee,x,b))return!0}else if(jt(E)&&Object.getPrototypeOf(E)===Object.prototype)for(z in E){if(ee=E[z],ee===y)return b.add(x),!0;if(f0(a,y,ee,x,b))return!0}return!1}ke.Pv=function(a,y){var E=this,x=!1,b=new Dn,z=new Dn,ee=new Dn,re=this.vh;a.changes.each(function(fe){fe.model===E&&(fe.modelChange==="nodeDataArray"?fe.change===Wo?b.add(fe.newValue):fe.change===qo&&ee.add(fe.oldValue):E.lb(fe.object)?z.add(fe.object):fe.change!==wo||E.modelData!==fe.object&&fe.propertyName!=="modelData"?fe.object!==null&&(re&&re.contains(fe.object)?re.get(fe.object).each(function(ye){E.lb(ye)&&z.add(ye)}):fe.object instanceof Ii||E.ri()&&E.Jc(fe.object)||CS(E,fe.object).each(function(ye){z.add(ye)})):x=!0)});var oe=this.il;oe.clear(),b.each(function(fe){oe.add(E.wa(fe)),y||z.add(fe)});var ce=this.kl;return ce.clear(),ee.each(function(fe){ce.add(E.wa(fe)),y&&z.add(fe)}),a="",x&&(a+=`,
|
|
|
"modelData": `+hy(this,this.modelData)),0<oe.count&&(a+=(y?this.Yv:this.Wv)+Jd(this,oe.Fa(),!0)),0<z.count&&(a+=this.jy+Jd(this,z.Fa(),!0)),0<ce.count&&(a+=(y?this.Wv:this.Yv)+Jd(this,ce.Fa(),!0)),ce.clear(),oe.clear(),a},ke.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"),TS(this,a);var y=a.insertedNodeKeys,E=a.modifiedNodeData,x=new vi;if(Array.isArray(E))for(var b=0;b<E.length;b++){var z=E[b],ee=this.wa(z);ee!=null&&x.set(ee,z)}if(Array.isArray(y))for(b=y.length,z=0;z<b;z++){ee=y[z];var re=this.hc(ee);re===null&&(re=(re=x.get(ee))?re:this.copyNodeData({}),this.km(re,ee),this.xf(re))}if(Array.isArray(E)){for(y=E.length,x=0;x<y;x++)if(b=E[x],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(E=a.length,oe=0;oe<E;oe++)y=this.hc(a[oe]),y!==null&&this.cm(y)},ke.$x=function(a,y){a.change!==vs&<("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var E=a.object;return a.isTransactionFinished&&E instanceof ma?(y===void 0&&(y=Ap(this,this)),AS(this,E),a=this.Pv(E,a.propertyName==="FinishedUndo"),this.vh=null,y==="2"?'{ "incremental": 2'+a+"}":'{ "class": '+this.quote(y)+', "incremental": 1'+this.rm()+a+"}"):'{ "incremental": 0 }'},ke.yA=function(a,y){return this.$x(a,y)},ke.np=function(a){return a===void 0&&(a=Ap(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},ke.toJSON=function(a){return this.np(a)},ke.Zw=function(a){var y=null;if(typeof a=="string")try{y=Bn.JSON.parse(a)}catch(x){}else typeof a=="object"?y=a:lt("Unable to modify a Model from: "+a);var E=y.incremental;typeof E!="number"&<("Unable to apply non-incremental changes to Model: "+a),E!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},ke.Ky=function(a){return this.Zw(a)},Ii.constructGraphLinksModel=function(){return new Ii},ke=Ii.prototype,ke.dm=function(a){if(Vn(a))for(var y=a.length,E=0;E<y;E++){var x=a[E];if(jt(x)){var b=E;x=this.dm(x),Array.isArray(a)?a[b]=x:lt("Cannot replace an object in an HTMLCollection or NodeList at "+b)}}else if(jt(a)){for(y in a)if(E=a[y],jt(E)&&(E=this.dm(E),a[y]=E,y==="points"&&Array.isArray(E))){for(b=E.length%2===0,x=0;x<E.length;x++)if(typeof E[x]!="number"){b=!1;break}if(b){for(b=new Un,x=0;x<E.length/2;x++)b.add(new dt(E[2*x],E[2*x+1]));b.freeze(),a[y]=b}}return UE(a)}return a},ke.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()):Vn(a)?Jd(this,a):jt(a)?hy(this,a):typeof a=="function"?"null":a.toString()};function Jd(a,y,E){E===void 0&&(E=!1);var x=y.length;if(0>=x)return"[]";var b=new Pi;b.add("["),E&&1<x&&b.add(`
|
|
|
`);for(var z=0;z<x;z++){var ee=y[z];ee!==void 0&&(0<z&&(b.add(","),E&&b.add(`
|
|
|
`)),b.add(a.sm(ee)))}return E&&1<x&&b.add(`
|
|
|
`),b.add("]"),b.toString()}function MS(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function Vs(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function hy(a,y){var E=y;if(E instanceof dt)y={class:"go.Point",x:Vs(E.x),y:Vs(E.y)};else if(E instanceof ti)y={class:"go.Size",width:Vs(E.width),height:Vs(E.height)};else if(E instanceof pn)y={class:"go.Rect",x:Vs(E.x),y:Vs(E.y),width:Vs(E.width),height:Vs(E.height)};else if(E instanceof mr)y={class:"go.Margin",top:Vs(E.top),right:Vs(E.right),bottom:Vs(E.bottom),left:Vs(E.left)};else if(E instanceof tn)E.sb()?y={class:"go.Spot",x:Vs(E.x),y:Vs(E.y),offsetX:Vs(E.offsetX),offsetY:Vs(E.offsetY)}:y={class:"go.Spot",enum:E.toString()};else if(E instanceof Jr){if(y={class:"go.Brush",type:E.type.name},E.type===vd?y.color=E.color:(E.type===Xc||E.type===iu)&&(y.start=E.start,y.end=E.end,E.type===iu&&(E.startRadius!==0&&(y.startRadius=Vs(E.startRadius)),isNaN(E.endRadius)||(y.endRadius=Vs(E.endRadius)))),E.colorStops!==null){var x={};for(E=E.colorStops.iterator;E.next();)x[E.key]=E.value;y.colorStops=x}}else E instanceof Qn?(y={class:"go.Geometry",type:E.type.name},E.startX!==0&&(y.startX=Vs(E.startX)),E.startY!==0&&(y.startY=Vs(E.startY)),E.endX!==0&&(y.endX=Vs(E.endX)),E.endY!==0&&(y.endY=Vs(E.endY)),E.spot1.D(_i)||(y.spot1=E.spot1),E.spot2.D(co)||(y.spot2=E.spot2),E.type===Qn.o&&(y.path=Qn.ia(E))):E instanceof Mn&&(y={class:"go.EnumValue",classType:Ap(a,E.classType),name:E.name});x="{",E=!0;for(var b in y){var z=la(y,b);if(!MS(b,z))if(E?E=!1:x+=",",x+=a.quote(b)+":",b==="points"&&z instanceof Un){var ee="[";for(z=z.iterator;z.next();){var re=z.value;1<ee.length&&(ee+=","),ee+=a.sm(re.x),ee+=",",ee+=a.sm(re.y)}ee+="]",x+=ee}else x+=a.sm(z)}return x+"}"}function Zs(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function UE(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 E=a;if(y==="Point")E=new dt(Zs(a.x),Zs(a.y));else if(y==="Size")E=new ti(Zs(a.width),Zs(a.height));else if(y==="Rect")E=new pn(Zs(a.x),Zs(a.y),Zs(a.width),Zs(a.height));else if(y==="Margin")E=new mr(Zs(a.top),Zs(a.right),Zs(a.bottom),Zs(a.left));else if(y==="Spot")typeof a.enum=="string"?E=Bo(a.enum):E=new tn(Zs(a.x),Zs(a.y),Zs(a.offsetX),Zs(a.offsetY));else if(y==="Brush"){if(E=new Jr,E.type=hi(Jr,a.type),typeof a.color=="string"&&(E.color=a.color),a.start instanceof tn&&(E.start=a.start),a.end instanceof tn&&(E.end=a.end),typeof a.startRadius=="number"&&(E.startRadius=Zs(a.startRadius)),typeof a.endRadius=="number"&&(E.endRadius=Zs(a.endRadius)),a=a.colorStops,jt(a))for(var x in a)E.addColorStop(parseFloat(x),a[x])}else y==="Geometry"?(E=null,typeof a.path=="string"?E=Qn.parse(a.path):E=new Qn,E.type=hi(Qn,a.type),typeof a.startX=="number"&&(E.startX=Zs(a.startX)),typeof a.startY=="number"&&(E.startY=Zs(a.startY)),typeof a.endX=="number"&&(E.endX=Zs(a.endX)),typeof a.endY=="number"&&(E.endY=Zs(a.endY)),a.spot1 instanceof tn&&(E.spot1=a.spot1),a.spot2 instanceof tn&&(E.spot2=a.spot2)):y==="EnumValue"&&(x=a.classType,x.indexOf("go.")===0&&(x=x.substr(3)),x=gy(x),typeof x=="function"&&(E=hi(x,a.name)));return E}ke.Pe=function(a){return this.Lt.add(a),this},ke.ik=function(a){this.Lt.remove(a)},ke.ds=function(a){this.skipsUndoManager||this.undoManager.Tu(a);for(var y=this.Lt,E=y.length,x=0;x<E;x++)y.M(x)(a)},ke.cb=function(a,y,E,x,b,z,ee){ba(this,"",a,y,E,x,b,z,ee)},ke.g=function(a,y,E,x,b){ba(this,"",wo,a,this,y,E,x,b)},ke.Fs=function(a,y,E,x,b,z){ba(this,"",wo,y,a,E,x,b,z)};function ba(a,y,E,x,b,z,ee,re,oe){re===void 0&&(re=null),oe===void 0&&(oe=null);var ce=new Io;ce.model=a,ce.change=E,ce.modelChange=y,ce.propertyName=x,ce.object=b,ce.oldValue=z,ce.oldParam=re,ce.newValue=ee,ce.newParam=oe,a.ds(ce)}Ii.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===wo){var E=a.object,x=a.propertyName,b=a.I(y);x===this.nodeKeyProperty&&this.lb(E)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),b!==void 0&&this.kb.add(b,E)),ko(E,x,b)}else a.change===Wo?(E=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,jt(a)&&typeof E=="number"&&(x=this.wa(a),y?(this.Tc[E]===a&&je(this.Tc,E),x!==void 0&&this.kb.remove(x)):(this.Tc[E]!==a&&Zt(this.Tc,E,a),x!==void 0&&this.kb.add(x,a)))):a.modelChange===""?((x=a.object)&&!Vn(x)&&a.propertyName&&(x=la(a.object,a.propertyName)),Vn(x)&&typeof E=="number"&&(a=a.newValue,y?je(x,E):Zt(x,E,a))):lt("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===qo?(E=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,jt(a)&&typeof E=="number"&&(x=this.wa(a),y?(this.Tc[E]!==a&&Zt(this.Tc,E,a),x!==void 0&&this.kb.add(x,a)):(this.Tc[E]===a&&je(this.Tc,E),x!==void 0&&this.kb.remove(x)))):a.modelChange===""?((x=a.object)&&!Vn(x)&&a.propertyName&&(x=la(a.object,a.propertyName)),Vn(x)&&typeof E=="number"&&(a=a.oldValue,y?Zt(x,E,a):je(x,E))):lt("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==vs&<("unknown ChangedEvent: "+a.toString())},Ii.prototype.Ea=function(a){return this.undoManager.Ea(a)},Ii.prototype.eb=function(a){return this.undoManager.eb(a)},Ii.prototype.Kf=function(){return this.undoManager.Kf()},Ii.prototype.commit=function(a,y){y===void 0&&(y="");var E=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var x=!1;try{a(this),x=!0}finally{x?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=E}},ke=Ii.prototype,ke.La=function(a,y){y===void 0&&(y=""),ba(this,"SourceChanged",vs,y,a,null,null)},ke.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=la(a,y),y!==void 0)){if(qd(y))return y;lt("Key value for node data "+a+" is not a number or a string: "+y)}}},ke.km=function(a,y){if(a!==null){var E=this.Th;if(E!=="")if(this.lb(a)){var x=la(a,E);x!==y&&this.hc(y)===null&&(ko(a,E,y),x!==void 0&&this.kb.remove(x),this.kb.add(y,a),ba(this,"nodeKey",wo,E,a,x,y),typeof E=="string"&&this.La(a,E),this.jp(x,y))}else ko(a,E,y)}};function qd(a){return typeof a=="number"||typeof a=="string"}ke.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},ke.hc=function(a){return a===null&<("Model.findNodeDataForKey:key must not be null"),a!==void 0&&qd(a)?this.kb.I(a):null},ke.$u=function(a){if(a!==null){var y=this.Th;if(y!==""){var E=this.wa(a);if(E===void 0||this.kb.contains(E)){var x=this.bl;if(x!==null&&(E=x(this,a),E!=null&&!this.kb.contains(E))){ko(a,y,E);return}if(typeof E=="string"){for(x=2;this.kb.contains(E+x);)x++;ko(a,y,E+x)}else if(E===void 0||typeof E=="number"){for(E=-this.kb.count-1;this.kb.contains(E);)E--;ko(a,y,E)}}}}},ke.xf=function(a){a!==null&&(ro(a),this.lb(a)||PS(this,a,!0))};function PS(a,y,E){var x=a.wa(y);(x===void 0||a.kb.I(x)!==y)&&(a.$u(y),x=a.wa(y),x===void 0&<("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(x,y),x=null,E&&(x=a.Tc.length,Zt(a.Tc,x,y)),ba(a,"nodeDataArray",Wo,"nodeDataArray",a,null,y,null,x),a.fm(y),a.em(y))}ke.Fy=function(a){if(Vn(a))for(var y=a.length,E=0;E<y;E++)this.xf(a[E]);else for(a=a.iterator;a.next();)this.xf(a.value)},ke.cm=function(a){a!==null&&LS(this,a,!0)};function LS(a,y,E){var x=a.wa(y);if(x!==void 0&&a.kb.remove(x),x=null,E){e:if(E=a.Tc,Array.isArray(E))x=E.indexOf(y);else{x=E.length;for(var b=0;b<x;b++)if(E[b]===y){x=b;break e}x=-1}if(0>x)return;je(a.Tc,x)}ba(a,"nodeDataArray",qo,"nodeDataArray",a,y,null,x,null),a.qp(y)}ke.nA=function(a){if(Vn(a))for(var y=a.length,E=0;E<y;E++)this.cm(a[E]);else for(a=a.iterator;a.next();)this.cm(a.value)},ke.$z=function(a){if(a!==this.nodeDataArray&&Vn(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var E=this.il;E.clear();for(var x=a.length,b=0;b<x;b++){var z=a[b],ee=this.wa(z);if(ee!==void 0){E.add(ee);var re=this.hc(ee);re!==z&&(re!==null?(this.Do(re,z),this.lm(z,re)):(z=this.cloneDeep(z),this.km(z,ee),this.xf(z)))}else ee=this.cloneDeep(z),this.xf(ee),E.add(this.wa(ee))}for(a=y.iterator;a.next();)x=a.value,E.contains(x)||(x=this.hc(x))&&this.cm(x);y.clear(),E.clear()}},ke.jp=function(a,y){y!==void 0&&(a=Tp(this,a),a instanceof Dn&&this.Vf.add(y,a))},ke.Lv=function(){},ke.fm=function(){},ke.em=function(){},ke.qp=function(){};function $u(a,y,E){if(y!==void 0){var x=a.Vf.I(y);x===null&&(x=new Dn,a.Vf.add(y,x)),x.add(E)}}function ec(a,y,E){if(y!==void 0){var x=a.Vf.I(y);x instanceof Dn&&(E==null?a.Vf.remove(y):(x.remove(E),x.count===0&&a.Vf.remove(y)))}}function Tp(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof Dn?a:null)}ke.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Ii.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):g0(this,a,!0),jt(a)&&Lr(a),a};function g0(a,y,E){if(a.copiesArrays&&Array.isArray(y)){var x=[];for(E=0;E<y.length;E++){var b=g0(a,y[E],a.copiesArrayObjects);x.push(b)}return Lr(x),x}if(E&&jt(y)){E=(E=y.constructor)?new E:{},b=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(x in y)if(x==="__gohashid")E.__gohashid=void 0;else if(x===b)E[b]=void 0;else{var z=la(y,x),ee=Ap(a,z);ee==="GraphObject"||ee==="Diagram"||ee==="Layer"||ee==="RowColumnDefinition"||ee==="AnimationManager"||ee==="Tool"||ee==="CommandHandler"||ee==="Layout"||ee==="InputEvent"||ee==="DiagramEvent"||z instanceof Ii||z instanceof fo||z instanceof ma||z instanceof Io||(z=g0(a,z,!1)),ko(E,x,z)}return Lr(E),E}return y instanceof dt||y instanceof ti||y instanceof pn||y instanceof tn||y instanceof mr?y.copy():y}Ii.prototype.setDataProperty=function(a,y,E){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,E);return}if(y===this.nodeCategoryProperty){this.jm(a,E);return}}else!IS&&a instanceof Rt&&(IS=!0,gi('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),gi(" Is that really your intent?"));var x=la(a,y);x!==E&&(ko(a,y,E),this.Fs(a,y,x,E))},ke=Ii.prototype,ke.set=function(a,y,E){this.setDataProperty(a,y,E)},ke.Do=function(a,y){if(y){var E=this.lb(a),x;for(x in y)x==="__gohashid"||E&&x===this.nodeKeyProperty||this.setDataProperty(a,x,y[x])}},ke.Ay=function(a,y){this.ts(a,-1,y)},ke.ts=function(a,y,E){0>y&&(y=a.length),Zt(a,y,E),ba(this,"",Wo,"",a,null,E,null,y)},ke.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 E=a[y];je(a,y),ba(this,"",qo,"",a,E,null,y,null)},ke.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=la(a,y),y===void 0))return"";if(typeof y=="string")return y;lt("getCategoryForNodeData found a non-string category for "+a+": "+y)},ke.jm=function(a,y){if(a!==null){var E=this.lj;if(E!=="")if(this.lb(a)){var x=la(a,E);x===void 0&&(x=""),x!==y&&(ko(a,E,y),ba(this,"nodeCategory",wo,E,a,x,y))}else ko(a,E,y)}},ke.lm=function(a,y){this.jm(y,this.Ro(a))},ke.Tl=function(){return!1},ke.Wj=function(){return!1},ke.ri=function(){return!1},ke.xs=function(){return!1},ke.Xj=function(){return!1};function fy(){return new Ii}function Ap(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return Ap(a,y.constructor);return typeof y}function gy(a){return Bu[a]?Bu[a]:Bn.go!==void 0&&Bn.go[a]?Bn.go[a]:null}function la(a,y){if(!a||!y)return null;try{if(typeof y=="function")var E=y(a);else typeof a.getAttribute=="function"?(E=a.getAttribute(y),E===null&&(E=void 0)):E=a[y]}catch(x){}return E}function ko(a,y,E){if(a&&y)try{typeof y=="function"?y(a,E):typeof a.setAttribute=="function"?a.setAttribute(y,E):a[y]=E}catch(x){}}zt.Object.defineProperties(Ii.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 E=a.length,x=0;x<E;x++){var b=a[x];jt(b)||lt("Model.nodeDataArray must only contain Objects, not: "+b),ro(b)}for(this.Tc=a,x=new Un,b=0;b<E;b++){var z=a[b],ee=this.wa(z);ee===void 0||this.kb.I(ee)!==null?x.add(z):this.kb.add(ee,z)}for(x=x.iterator;x.next();)b=x.value,this.$u(b),z=this.wa(b),z!==void 0&&this.kb.add(z,b);for(ba(this,"nodeDataArray",wo,"nodeDataArray",this,y,a),y=0;y<E;y++)x=a[y],this.fm(x),this.em(x);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"}}}),Ii.prototype.setCategoryForNodeData=Ii.prototype.jm,Ii.prototype.getCategoryForNodeData=Ii.prototype.Ro,Ii.prototype.removeArrayItem=Ii.prototype.ov,Ii.prototype.insertArrayItem=Ii.prototype.ts,Ii.prototype.addArrayItem=Ii.prototype.Ay,Ii.prototype.assignAllDataProperties=Ii.prototype.Do,Ii.prototype.set=Ii.prototype.set,Ii.prototype.clearUnresolvedReferences=Ii.prototype.Qy,Ii.prototype.mergeNodeDataArray=Ii.prototype.$z,Ii.prototype.removeNodeDataCollection=Ii.prototype.nA,Ii.prototype.removeNodeData=Ii.prototype.cm,Ii.prototype.addNodeDataCollection=Ii.prototype.Fy,Ii.prototype.addNodeData=Ii.prototype.xf,Ii.prototype.makeNodeDataKeyUnique=Ii.prototype.$u,Ii.prototype.findNodeDataForKey=Ii.prototype.hc,Ii.prototype.containsNodeData=Ii.prototype.lb,Ii.prototype.setKeyForNodeData=Ii.prototype.km,Ii.prototype.getKeyForNodeData=Ii.prototype.wa,Ii.prototype.updateTargetBindings=Ii.prototype.La,Ii.prototype.commit=Ii.prototype.commit,Ii.prototype.rollbackTransaction=Ii.prototype.Kf,Ii.prototype.commitTransaction=Ii.prototype.eb,Ii.prototype.startTransaction=Ii.prototype.Ea,Ii.prototype.raiseDataChanged=Ii.prototype.Fs,Ii.prototype.raiseChanged=Ii.prototype.g,Ii.prototype.raiseChangedEvent=Ii.prototype.cb,Ii.prototype.removeChangedListener=Ii.prototype.ik,Ii.prototype.addChangedListener=Ii.prototype.Pe,Ii.prototype.writeJsonValue=Ii.prototype.sm,Ii.prototype.replaceJsonObjects=Ii.prototype.dm,Ii.prototype.applyIncrementalJSON=Ii.prototype.Ky,Ii.prototype.applyIncrementalJson=Ii.prototype.Zw,Ii.prototype.toJSON=Ii.prototype.toJSON,Ii.prototype.toJson=Ii.prototype.np,Ii.prototype.toIncrementalJSON=Ii.prototype.yA,Ii.prototype.toIncrementalJson=Ii.prototype.$x,Ii.prototype.toIncrementalData=Ii.prototype.xA,Ii.prototype.clear=Ii.prototype.clear;var IS=!1,Bu={};Ii.className="Model",Ii.fromJSON=Ii.fromJson=function(a,y){y===void 0&&(y=null);var E=null;if(typeof a=="string")try{E=Bn.JSON.parse(a)}catch(z){}else typeof a=="object"?E=a:lt("Unable to construct a Model from: "+a);if(y===null){a=null;var x=E.class;if(typeof x=="string")try{var b=null;x.indexOf("go.")===0?(x=x.substr(3),b=gy(x)):(b=gy(x),b===null&&(b=Bn[x])),typeof b=="function"&&(a=new b)}catch(z){}a===null||a instanceof Ii?y=a:lt("Unable to construct a Model of declared class: "+E.class)}return y===null&&(y=Ii.constructGraphLinksModel()),y.gp(E),y.kv(E),y},Ii.safePropertyValue=la,Ii.safePropertySet=ko,Bu.Brush=Jr,Bu.ChangedEvent=Io,Bu.Geometry=Qn,Bu.Margin=mr,Bu.Panel=Wn,Bu.Point=dt,Bu.Rect=pn,Bu.Size=ti,Bu.Spot=tn,Bu.Transaction=ma,Bu.UndoManager=fo;function ha(a,y,E,x){Lr(this),this._isFrozen=!1,a===void 0&&(a=""),y===void 0&&(y=a),E===void 0&&(E=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=E,x===void 0?(this.el=DS,this.wk=null):(this.el=Cp,this.wk=x),this.st=new Dn}ha.prototype.copy=function(){var a=new ha;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},ke=ha.prototype,ke.qb=function(a){a.classType===ha&&(this.mode=a)},ke.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},ke.freeze=function(){return this._isFrozen=!0,this},ke.ka=function(){return this._isFrozen=!1,this},ke.Kx=function(a){return a===void 0&&(a=null),this.mode=Cp,this.backConverter=a,this},ke.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},ke.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function kS(a,y,E){return a=a.sourceName,a===null||a===""?y:a==="/"?E.part:a==="."?E:a===".."?E.panel:y.fb(a)}ke.Mv=function(a,y,E){var x=this.sl;if(E===void 0||x===""||x===E){E=this.xl;var b=this.Im;if(b===null&&E==="")gi("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(x!==""&&(z=la(y,x)),z!==void 0)if(b===null)E!==""&&ko(a,E,z);else try{if(E!==""){var ee=b(z,a);ko(a,E,ee)}else b(z,a)}catch(re){}}}},ke.sp=function(a,y,E,x){if(this.el===Cp){var b=this.xl;if(E===void 0||b===E){E=this.sl;var z=this.wk,ee=a;if(b!==""&&(ee=la(a,b)),ee!==void 0&&!this.st.contains(a))try{this.st.add(a);var re=x!==null?x.diagram:null,oe=re!==null?re.model:null;if(z===null){if(E!=="")oe!==null?oe.setDataProperty(y,E,ee):ko(y,E,ee);else if(oe!==null&&x!==null&&0<=x.itemIndex&&x.panel!==null&&Array.isArray(x.panel.itemArray)){var ce=x.itemIndex,fe=x.panel.itemArray;oe.ov(fe,ce),oe.ts(fe,ce,ee)}}else try{if(E!==""){var ye=z(ee,y,oe);oe!==null?oe.setDataProperty(y,E,ye):ko(y,E,ye)}else{var Ne=z(ee,y,oe);if(Ne!==void 0&&oe!==null&&x!==null&&0<=x.itemIndex&&x.panel!==null&&Array.isArray(x.panel.itemArray)){var Pe=x.itemIndex,Fe=x.panel.itemArray;oe.ov(Fe,Pe),oe.ts(Fe,Pe,Ne)}}}catch(We){}}finally{this.st.remove(a)}}}},zt.Object.defineProperties(ha.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&Ut(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&Ut(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&Ut(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&Ut(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&Ut(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&Ut(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&Ut(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&Ut(this),this.el=a}}}),ha.prototype.updateSource=ha.prototype.sp,ha.prototype.updateTarget=ha.prototype.Mv,ha.prototype.ofModel=ha.prototype.dA,ha.prototype.ofObject=ha.prototype.cp,ha.prototype.makeTwoWay=ha.prototype.Kx;var HE="Binding",DS=new Mn(ha,"OneWay",1),Cp=new Mn(ha,"TwoWay",2);ha.className="Binding",ha.parseEnum=function(a,y){return function(E){return E=hi(a,E),E===null?y:E}},ha.toString=Ki,ha.OneWay=DS,ha.TwoWay=Cp;function Or(a,y,E){Ii.call(this),this.Vv=`,
|
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
|
"removedLinkKeys": `,this.md=[],this.$f=new Dn,this.wb=new vi,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&&(Vn(a)?this.nodeDataArray=a:E=a),E&&(Object.assign(this,E),a=E.Changed)&&(delete this.Changed,this.Pe(a))}en(Or,Ii),Or.constructGraphLinksModel=Ii.constructGraphLinksModel,Or.prototype.cloneProtected=function(a){Ii.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},ke=Or.prototype,ke.clear=function(){Ii.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},ke.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 E=a.length,x;for(x=0;x<E;x++){var b=a[x];y+=" "+this.wa(b)+":"+Ki(b)}for(y+=`
|
|
|
link data:`,a=this.linkDataArray,E=a.length,x=0;x<E;x++)b=a[x],y+=" "+Wl(this,b,!0)+"-->"+Wl(this,b,!1)}return y},ke.Qv=function(a,y){this.linkKeyProperty===""&<("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var E=Ii.prototype.Qv.call(this,a,y),x=this,b=new Dn,z=new Dn,ee=new Dn,re=this.vh;a.changes.each(function(fe){fe.model===x&&(fe.modelChange==="linkDataArray"?fe.change===Wo?b.add(fe.newValue):fe.change===qo&&ee.add(fe.oldValue):x.Jc(fe.object)?z.add(fe.object):fe.object!==null&&(fe.object!==null&&re&&re.contains(fe.object)?re.get(fe.object).each(function(ye){x.Jc(ye)&&z.add(ye)}):fe.object instanceof Ii||x.lb(fe.object)||OS(x,fe.object).each(function(ye){z.add(ye)})))});var oe=this.il;oe.clear(),b.each(function(fe){oe.add(x.Ac(fe)),y||z.add(fe)});var ce=this.kl;return ce.clear(),ee.each(function(fe){ce.add(x.Ac(fe)),y&&z.add(fe)}),a=x.cloneDeep(z.Fa()),0<oe.count&&(E===null&&(E={}),y?E.removedLinkKeys=oe.Fa():E.insertedLinkKeys=oe.Fa()),0<a.length&&(E===null&&(E={}),E.modifiedLinkData=a),0<ce.count&&(E===null&&(E={}),y?E.insertedLinkKeys=ce.Fa():E.removedLinkKeys=ce.Fa()),ce.clear(),oe.clear(),E},ke.rm=function(){var a=Ii.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},ke.gp=function(a){Ii.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)},ke.Rv=function(){var a=Ii.prototype.Rv.call(this),y=`,
|
|
|
"linkDataArray": `+Jd(this,this.linkDataArray,!0);return a+y},ke.kv=function(a){Ii.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function OS(a,y){for(var E=new Dn,x=0;x<a.linkDataArray.length;x++){var b=a.linkDataArray[x];f0(a,y,b,b,E)}return E}ke.Pv=function(a,y){this.linkKeyProperty===""&<("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var E=Ii.prototype.Pv.call(this,a,y),x=this,b=new Dn,z=new Dn,ee=new Dn,re=this.vh;a.changes.each(function(fe){fe.model===x&&(fe.modelChange==="linkDataArray"?fe.change===Wo?b.add(fe.newValue):fe.change===qo&&ee.add(fe.oldValue):x.Jc(fe.object)?z.add(fe.object):fe.object!==null&&(fe.object!==null&&re&&re.contains(fe.object)?re.get(fe.object).each(function(ye){x.Jc(ye)&&z.add(ye)}):fe.object instanceof Ii||x.lb(fe.object)||OS(x,fe.object).each(function(ye){z.add(ye)})))});var oe=this.il;oe.clear(),b.each(function(fe){oe.add(x.Ac(fe)),y||z.add(fe)});var ce=this.kl;return ce.clear(),ee.each(function(fe){ce.add(x.Ac(fe)),y&&z.add(fe)}),a=E,0<oe.count&&(a+=(y?this.Xv:this.Vv)+Jd(this,oe.Fa(),!0)),0<z.count&&(a+=this.iy+Jd(this,z.Fa(),!0)),0<ce.count&&(a+=(y?this.Vv:this.Xv)+Jd(this,ce.Fa(),!0)),ce.clear(),oe.clear(),a},ke.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"),Ii.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var E=y.length,x=0;x<E;x++){var b=y[x],z=this.jh(b);z===null&&(z=this.Jo({}),this.Ks(z,b),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(E=y.length,x=0;x<E;x++)if(b=y[x],z=this.Ac(b),z=this.jh(z),z!==null){for(var ee in b)ee!=="__gohashid"&&ee!==this.linkKeyProperty&&this.setDataProperty(z,ee,b[ee]);BS(this,b,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(ee=a.length,y=0;y<ee;y++)E=this.jh(a[y]),E!==null&&this.bm(E)},Or.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===wo){var E=a.object,x=a.propertyName;if(x===this.linkKeyProperty&&this.Jc(E)){var b=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),b!==void 0&&this.wb.add(b,E),ko(E,x,b);return}}else if(a.change===Wo){if(E=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,jt(a)&&typeof E=="number"&&(x=this.Ac(a),y?(this.$f.remove(a),this.md[E]===a&&this.md.splice(E,1),x!==void 0&&this.wb.remove(x)):(this.$f.add(a),this.md[E]!==a&&this.md.splice(E,0,a),x!==void 0&&this.wb.add(x,a)));return}if(a.modelChange==="linkLabelKeys"){x=this.Ef(a.object),Array.isArray(x)&&typeof E=="number"&&(y?(E=x.indexOf(a.newValue),0<=E&&x.splice(E,1)):0>x.indexOf(a.newValue)&&x.splice(E,0,a.newValue));return}}else if(a.change===qo){if(E=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,jt(a)&&typeof E=="number"&&(x=this.Ac(a),y?(this.$f.add(a),this.md[E]!==a&&this.md.splice(E,0,a),x!==void 0&&this.wb.add(x,a)):(this.$f.remove(a),this.md[E]===a&&this.md.splice(E,1),x!==void 0&&this.wb.remove(x)));return}if(a.modelChange==="linkLabelKeys"){x=this.Ef(a.object),Array.isArray(x)&&typeof E=="number"&&(y?0>x.indexOf(a.newValue)&&x.splice(E,0,a.newValue):(E=x.indexOf(a.newValue),0<=E&&x.splice(E,1)));return}}Ii.prototype.changeState.call(this,a,y)}},ke=Or.prototype,ke.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var E=this.hc(a);E===null&&(E=this.copyNodeData(y),ko(E,this.nodeKeyProperty,a),this.xf(E))}return a}},ke.yx=function(a){return Wl(this,a,!0)},ke.wv=function(a,y){sg(this,a,y,!0)},ke.Bx=function(a){return Wl(this,a,!1)},ke.Bv=function(a,y){sg(this,a,y,!1)};function Wl(a,y,E){if(y!==null&&(a=E?a.lf:a.mf,a!==""&&(a=la(y,a),a!==void 0))){if(qd(a))return a;lt((E?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function sg(a,y,E,x){if(E===null&&(E=void 0),y!==null){var b=x?a.lf:a.mf;if(b!=="")if(E=a.Vl(E),a.Jc(y)){var z=la(y,b);z!==E&&(ec(a,z,y),ko(y,b,E),a.hc(E)===null&&$u(a,E,y),ba(a,x?"linkFromKey":"linkToKey",wo,b,y,z,E),typeof b=="string"&&a.La(y,b))}else ko(y,b,E)}}ke.zx=function(a){return p0(this,a,!0)},ke.xv=function(a,y){lg(this,a,y,!0)},ke.Cx=function(a){return p0(this,a,!1)},ke.Cv=function(a,y){lg(this,a,y,!1)};function p0(a,y,E){return y===null||(a=E?a.ej:a.fj,a==="")?"":(y=la(y,a),y===void 0?"":y)}function lg(a,y,E,x){if(y!==null){var b=x?a.ej:a.fj;if(b!=="")if(a.Jc(y)){var z=la(y,b);z===void 0&&(z=""),z!==E&&(ko(y,b,E),ba(a,x?"linkFromPortId":"linkToPortId",wo,b,y,z,E),typeof b=="string"&&a.La(y,b))}else ko(y,b,E)}}ke.Ef=function(a){if(a===null)return m0;var y=this.je;return y===""?m0:(a=la(a,y),a===void 0?m0:a)},ke.Ls=function(a,y){if(a!==null){var E=this.je;if(E!=="")if(this.Jc(a)){var x=la(a,E);if(x===void 0&&(x=m0),x!==y){if(Array.isArray(x))for(var b=x.length,z=0;z<b;z++)ec(this,x[z],a);for(ko(a,E,y),b=y.length,z=0;z<b;z++){var ee=y[z];this.hc(ee)===null&&$u(this,ee,a)}ba(this,"linkLabelKeys",wo,E,a,x,y),typeof E=="string"&&this.La(a,E)}}else ko(a,E,y)}},ke.Bu=function(a,y){if(y!=null&&a!==null){var E=this.je;if(E!==""){var x=la(a,E);if(x===void 0)E=[],E.push(y),this.Ls(a,E);else if(Array.isArray(x)){var b=x.indexOf(y);0<=b||(b=x.length,x.push(y),this.Jc(a)&&(this.hc(y)===null&&$u(this,y,a),ba(this,"linkLabelKeys",Wo,E,a,null,y,null,b)))}else lt(E+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},ke.Qx=function(a,y){if(y!=null&&a!==null){var E=this.je;if(E!==""){var x=la(a,E);if(Array.isArray(x)){var b=x.indexOf(y);0>b||(x.splice(b,1),this.Jc(a)&&(ec(this,y,a),ba(this,"linkLabelKeys",qo,E,a,y,null,b,null)))}else x!==void 0&<(E+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},ke.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=la(a,y),y!==void 0)){if(qd(y))return y;lt("Key value for link data "+a+" is not a number or a string: "+y)}}},ke.Ks=function(a,y){if(a!==null){var E=this.Jh;if(E!=="")if(this.Jc(a)){var x=la(a,E);x!==y&&this.jh(y)===null&&(ko(a,E,y),x!==void 0&&this.wb.remove(x),this.wb.add(y,a),ba(this,"linkKey",wo,E,a,x,y),typeof E=="string"&&this.La(a,E))}else ko(a,E,y)}},ke.jh=function(a){return a===null&<("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&qd(a)?this.wb.I(a):null},ke.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var E=this.Ac(a);if(E===void 0||this.wb.contains(E)){var x=this.cl;if(x!==null&&(E=x(this,a),E!=null&&!this.wb.contains(E))){ko(a,y,E);return}if(typeof E=="string"){for(x=2;this.wb.contains(E+x);)x++;ko(a,y,E+x)}else if(E===void 0||typeof E=="number"){for(E=-this.wb.count-1;this.wb.contains(E);)E--;ko(a,y,E)}}}}},ke.Jc=function(a){return a===null?!1:this.$f.contains(a)},ke.fi=function(a){a!==null&&(ro(a),this.Jc(a)||RS(this,a,!0))};function RS(a,y,E){if(a.linkKeyProperty!==""){var x=a.Ac(y);if(x!==void 0&&a.wb.I(x)===y)return;a.Bs(y),x=a.Ac(y),x===void 0&<("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(x,y)}a.$f.add(y),x=null,E&&(x=a.md.length,a.md.splice(x,0,y)),ba(a,"linkDataArray",Wo,"linkDataArray",a,null,y,null,x),py(a,y)}ke.Ey=function(a){if(Array.isArray(a))for(var y=a.length,E=0;E<y;E++)this.fi(a[E]);else for(a=a.iterator;a.next();)this.fi(a.value)},ke.bm=function(a){a!==null&&FS(this,a,!0)};function FS(a,y,E){a.$f.remove(y);var x=a.Ac(y);if(x!==void 0&&a.wb.remove(x),x=null,E){if(x=a.md.indexOf(y),0>x)return;a.md.splice(x,1)}if(ba(a,"linkDataArray",qo,"linkDataArray",a,y,null,x,null),E=Wl(a,y,!0),ec(a,E,y),E=Wl(a,y,!1),ec(a,E,y),x=a.Ef(y),Array.isArray(x))for(var b=x.length,z=0;z<b;z++)E=x[z],ec(a,E,y)}ke.lA=function(a){if(Array.isArray(a))for(var y=a.length,E=0;E<y;E++)this.bm(a[E]);else for(a=a.iterator;a.next();)this.bm(a.value)},ke.Zz=function(a){if(this.linkKeyProperty===""&<("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&Vn(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var E=this.il;E.clear();for(var x=a.length,b=0;b<x;b++){var z=a[b],ee=this.Ac(z);if(ee!==void 0){E.add(ee);var re=this.jh(ee);re!==z&&(re!==null?(this.Do(re,z),BS(this,z,re)):(z=this.cloneDeep(z),this.Ks(z,ee),this.fi(z)))}else ee=this.cloneDeep(z),this.fi(ee),E.add(this.Ac(ee))}for(a=y.iterator;a.next();)x=a.value,E.contains(x)||(x=this.jh(x))&&this.bm(x);y.clear(),E.clear()}};function py(a,y){var E=Wl(a,y,!0);E=a.Vl(E),a.hc(E)===null&&$u(a,E,y),E=Wl(a,y,!1),E=a.Vl(E),a.hc(E)===null&&$u(a,E,y);var x=a.Ef(y);if(Array.isArray(x))for(var b=x.length,z=0;z<b;z++)E=x[z],a.hc(E)===null&&$u(a,E,y)}ke.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):g0(this,a,!0),jt(a)&&(Lr(a),this.lf!==""&&ko(a,this.lf,void 0),this.mf!==""&&ko(a,this.mf,void 0),this.je!==""&&ko(a,this.je,[])),a},ke.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!la(a,y)},ke.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=la(a,y),y!==void 0)){if(qd(y))return y;lt("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},ke.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var E=this.Je;if(E!=="")if(this.lb(a)){var x=la(a,E);x!==y&&(ec(this,x,a),ko(a,E,y),this.hc(y)===null&&$u(this,y,a),ba(this,"nodeGroupKey",wo,E,a,x,y),typeof E=="string"&&this.La(a,E))}else ko(a,E,y)}},Or.prototype.copyNodeData=function(a){return a===null?null:(a=Ii.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||la(a,this.Je)===void 0||ko(a,this.Je,void 0),a)},Or.prototype.setDataProperty=function(a,y,E){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,E);return}if(y===this.nodeCategoryProperty){this.jm(a,E);return}if(y===this.nodeGroupKeyProperty){this.mp(a,E);return}}else if(this.Jc(a)){if(y===this.linkFromKeyProperty){sg(this,a,E,!0);return}if(y===this.linkToKeyProperty){sg(this,a,E,!1);return}if(y===this.linkFromPortIdProperty){lg(this,a,E,!0);return}if(y===this.linkToPortIdProperty){lg(this,a,E,!1);return}if(y===this.linkKeyProperty){this.Ks(a,E);return}if(y===this.linkCategoryProperty){this.lp(a,E);return}if(y===this.linkLabelKeysProperty){this.Ls(a,E);return}}var x=la(a,y);x!==E&&(ko(a,y,E),this.Fs(a,y,x,E))},ke=Or.prototype,ke.Do=function(a,y){if(y){var E=this.lb(a),x=this.Jc(a),b;for(b in y)b==="__gohashid"||E&&b===this.nodeKeyProperty||E&&b===this.nodeIsGroupProperty&&la(a,b)===y[b]||x&&b===this.linkKeyProperty||this.setDataProperty(a,b,y[b])}},ke.jp=function(a,y){Ii.prototype.jp.call(this,a,y);for(var E=this.kb.iterator;E.next();)this.qv(E.value,a,y);for(E=this.$f.iterator;E.next();){var x=E.value,b=a,z=y;if(Wl(this,x,!0)===b){var ee=this.lf;ko(x,ee,z),ba(this,"linkFromKey",wo,ee,x,b,z),typeof ee=="string"&&this.La(x,ee)}if(Wl(this,x,!1)===b&&(ee=this.mf,ko(x,ee,z),ba(this,"linkToKey",wo,ee,x,b,z),typeof ee=="string"&&this.La(x,ee)),ee=this.Ef(x),Array.isArray(ee))for(var re=ee.length,oe=this.je,ce=0;ce<re;ce++)ee[ce]===b&&(ee[ce]=z,ba(this,"linkLabelKeys",Wo,oe,x,b,z,ce,ce))}},ke.qv=function(a,y,E){if(this.lh(a)===y){var x=this.Je;ko(a,x,E),ba(this,"nodeGroupKey",wo,x,a,y,E),typeof x=="string"&&this.La(a,x)}},ke.Lv=function(){Ii.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,E=0;E<y;E++)py(this,a[E])},ke.fm=function(a){Ii.prototype.fm.call(this,a),a=this.wa(a);var y=Tp(this,a);if(y!==null){var E=ci();for(y=y.iterator;y.next();){var x=y.value;if(this.lb(x)){if(this.lh(x)===a){var b=this.Je;ba(this,"nodeGroupKey",wo,b,x,a,a),typeof b=="string"&&this.La(x,b),E.push(x)}}else if(Wl(this,x,!0)===a&&(b=this.lf,ba(this,"linkFromKey",wo,b,x,a,a),typeof b=="string"&&this.La(x,b),E.push(x)),Wl(this,x,!1)===a&&(b=this.mf,ba(this,"linkToKey",wo,b,x,a,a),typeof b=="string"&&this.La(x,b),E.push(x)),b=this.Ef(x),Array.isArray(b))for(var z=b.length,ee=this.je,re=0;re<z;re++)b[re]===a&&(ba(this,"linkLabelKeys",Wo,ee,x,a,a,re,re),E.push(x))}for(y=0;y<E.length;y++)ec(this,a,E[y]);pi(E)}},ke.em=function(a){Ii.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&$u(this,y,a)},ke.qp=function(a){Ii.prototype.qp.call(this,a);var y=this.lh(a);ec(this,y,a)},ke.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=la(a,y),y===void 0))return"";if(typeof y=="string")return y;lt("getCategoryForLinkData found a non-string category for "+a+": "+y)},Or.prototype.getLinkCategoryForData=function(a){return this.ps(a)},Or.prototype.lp=function(a,y){if(a!==null){var E=this.dj;if(E!=="")if(this.Jc(a)){var x=la(a,E);x===void 0&&(x=""),x!==y&&(ko(a,E,y),ba(this,"linkCategory",wo,E,a,x,y),typeof E=="string"&&this.La(a,E))}else ko(a,E,y)}},Or.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},ke=Or.prototype,ke.lm=function(a,y){Ii.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function BS(a,y,E){a.lp(E,a.ps(y)),a.wv(E,a.yx(y)),a.Bv(E,a.Bx(y)),a.Ls(E,a.Ef(y)),a.xv(E,a.zx(y)),a.Cv(E,a.Cx(y))}ke.Wj=function(){return!0},ke.ri=function(){return!0},ke.xs=function(){return!0},ke.Xj=function(){return!0},zt.Object.defineProperties(Or.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 E=a.length,x=0;x<E;x++){var b=a[x];jt(b)||lt("GraphLinksModel.linkDataArray must only contain Objects, not: "+b),ro(b)}if(this.md=a,this.linkKeyProperty!==""){for(x=new Un,b=0;b<E;b++){var z=a[b],ee=this.Ac(z);ee===void 0||this.wb.I(ee)!==null?x.add(z):this.wb.add(ee,z)}for(x=x.iterator;x.next();)b=x.value,this.Bs(b),z=this.Ac(b),z!==void 0&&this.wb.add(z,b)}for(x=new Dn,b=0;b<E;b++)x.add(a[b]);for(this.$f=x,ba(this,"linkDataArray",wo,"linkDataArray",this,y,a),y=0;y<E;y++)py(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 E=this.linkDataArray.length,x=0;x<E;x++){var b=this.linkDataArray[x],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"}}}),Or.prototype.setCategoryForLinkData=Or.prototype.lp,Or.prototype.getCategoryForLinkData=Or.prototype.ps,Or.prototype.assignAllDataProperties=Or.prototype.Do,Or.prototype.setGroupKeyForNodeData=Or.prototype.mp,Or.prototype.getGroupKeyForNodeData=Or.prototype.lh,Or.prototype.isGroupForNodeData=Or.prototype.Yu,Or.prototype.copyLinkData=Or.prototype.Jo,Or.prototype.mergeLinkDataArray=Or.prototype.Zz,Or.prototype.removeLinkDataCollection=Or.prototype.lA,Or.prototype.removeLinkData=Or.prototype.bm,Or.prototype.addLinkDataCollection=Or.prototype.Ey,Or.prototype.addLinkData=Or.prototype.fi,Or.prototype.containsLinkData=Or.prototype.Jc,Or.prototype.makeLinkDataKeyUnique=Or.prototype.Bs,Or.prototype.findLinkDataForKey=Or.prototype.jh,Or.prototype.setKeyForLinkData=Or.prototype.Ks,Or.prototype.getKeyForLinkData=Or.prototype.Ac,Or.prototype.removeLabelKeyForLinkData=Or.prototype.Qx,Or.prototype.addLabelKeyForLinkData=Or.prototype.Bu,Or.prototype.setLabelKeysForLinkData=Or.prototype.Ls,Or.prototype.getLabelKeysForLinkData=Or.prototype.Ef,Or.prototype.setToPortIdForLinkData=Or.prototype.Cv,Or.prototype.getToPortIdForLinkData=Or.prototype.Cx,Or.prototype.setFromPortIdForLinkData=Or.prototype.xv,Or.prototype.getFromPortIdForLinkData=Or.prototype.zx,Or.prototype.setToKeyForLinkData=Or.prototype.Bv,Or.prototype.getToKeyForLinkData=Or.prototype.Bx,Or.prototype.setFromKeyForLinkData=Or.prototype.wv,Or.prototype.getFromKeyForLinkData=Or.prototype.yx,Or.prototype.clear=Or.prototype.clear;var m0=Object.freeze([]);Or.className="GraphLinksModel",Bu.GraphLinksModel=Or,Ii.constructGraphLinksModel=Ii.constructGraphLinksModel=function(){return new Or},Ii.initDiagramModel=fy=function(){return new Or};function Qs(a,y){Ii.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(Vn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}en(Qs,Ii),Qs.constructGraphLinksModel=Ii.constructGraphLinksModel,Qs.prototype.cloneProtected=function(a){Ii.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},ke=Qs.prototype,ke.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 E=a.length,x=0;x<E;x++){var b=a[x];y+=" "+this.wa(b)+":"+Ki(b)}}return y},ke.rm=function(){var a=Ii.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},ke.gp=function(a){Ii.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},ke.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&<("applyIncrementalJson cannot change Model properties"),Ii.prototype.fp.call(this,a)},ke.Vl=function(a){return a},ke.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=la(a,y),y!==void 0)){if(qd(y))return y;lt("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},ke.qe=function(a,y){if(y===null&&(y=void 0),a!==null){var E=this.Ke;if(E!=="")if(y=this.Vl(y),this.lb(a)){var x=la(a,E);x!==y&&(ec(this,x,a),ko(a,E,y),this.hc(y)===null&&$u(this,y,a),ba(this,"nodeParentKey",wo,E,a,x,y),typeof E=="string"&&this.La(a,E))}else ko(a,E,y)}},ke.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=la(a,y),y===void 0)?"":typeof y=="string"?y:(lt("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Qs.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Qs.prototype.Ms=function(a,y){if(a!==null){var E=this.nj;if(E!=="")if(this.lb(a)){var x=la(a,E);x===void 0&&(x=""),x!==y&&(ko(a,E,y),ba(this,"parentLinkCategory",wo,E,a,x,y),typeof E=="string"&&this.La(a,E))}else ko(a,E,y)}},Qs.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Qs.prototype.copyNodeData=function(a){return a===null?null:(a=Ii.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||la(a,this.Ke)===void 0||ko(a,this.Ke,void 0),a)},Qs.prototype.setDataProperty=function(a,y,E){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,E);return}if(y===this.nodeCategoryProperty){this.jm(a,E);return}if(y===this.nodeParentKeyProperty){this.qe(a,E);return}}var x=la(a,y);x!==E&&(ko(a,y,E),this.Fs(a,y,x,E))},ke=Qs.prototype,ke.jp=function(a,y){Ii.prototype.jp.call(this,a,y);for(var E=this.kb.iterator;E.next();)this.qv(E.value,a,y)},ke.qv=function(a,y,E){if(this.mh(a)===y){var x=this.Ke;ko(a,x,E),ba(this,"nodeParentKey",wo,x,a,y,E),typeof x=="string"&&this.La(a,x)}},ke.fm=function(a){Ii.prototype.fm.call(this,a),a=this.wa(a);var y=Tp(this,a);if(y!==null){var E=ci();for(y=y.iterator;y.next();){var x=y.value;if(this.lb(x)&&this.mh(x)===a){var b=this.Ke;ba(this,"nodeParentKey",wo,b,x,a,a),typeof b=="string"&&this.La(x,b),E.push(x)}}for(y=0;y<E.length;y++)ec(this,a,E[y]);pi(E)}},ke.em=function(a){Ii.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&$u(this,y,a)},ke.qp=function(a){Ii.prototype.qp.call(this,a);var y=this.mh(a);ec(this,y,a)},ke.lm=function(a,y){Ii.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},ke.Tl=function(){return!0},ke.xs=function(){return!0},zt.Object.defineProperties(Qs.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"}}}),Qs.prototype.setParentLinkCategoryForNodeData=Qs.prototype.Ms,Qs.prototype.getParentLinkCategoryForNodeData=Qs.prototype.ss,Qs.prototype.setParentKeyForNodeData=Qs.prototype.qe,Qs.prototype.getParentKeyForNodeData=Qs.prototype.mh,Qs.className="TreeModel",Bu.TreeModel=Qs;function Ho(a){Oo.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=_u,this.Ti=0,this.Zv=new dt,this.Jp=this.me=0,this.Xr=new Lp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=_u,this.K=Ks,this.nd=cg,this.hd=sy,this.tf=6,this.Nn=w0,a&&Object.assign(this,a)}en(Ho,Oo),Ho.prototype.cloneProtected=function(a){Oo.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},Ho.prototype.qb=function(a){a.classType===Ho?a===x0||a===b0||a===S0||a===E0||a===cg?this.sorting=a:a===jh||a===ug||a===Ks||a===eh?this.direction=a:a===Ad||a===$d||a===_u||a===ju?this.arrangement=a:(a===ff||a===w0)&&(this.nodeDiameterFormula=a):Oo.prototype.qb.call(this,a)},Ho.prototype.createNetwork=function(){return new dg(this)},Ho.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 Un;y.addAll(a.iterator),a=new Un;var E=new Un,x=this.sort(y),b,z,ee=this.Jp,re=this.arrangement,oe=this.nodeDiameterFormula,ce=this.radius;(!isFinite(ce)||0>=ce)&&(ce=NaN);var fe=this.aspectRatio;(!isFinite(fe)||0>=fe)&&(fe=1);var ye=this.startAngle;isFinite(ye)||(ye=0);var Ne=this.sweepAngle;if((!isFinite(Ne)||360<Ne||1>Ne)&&(Ne=360),y=this.spacing,isFinite(y)||(y=NaN),re===ju&&oe===ff?re=_u:re===ju&&oe!==ff&&(re=this.arrangement),(this.direction===jh||this.direction===ug)&&this.sorting!==cg){for(oe=0;!(oe>=x.length)&&(a.add(x.M(oe)),!(oe+1>=x.length));oe+=2)E.add(x.M(oe+1));this.direction===jh?(this.arrangement===ju&&a.reverse(),x=new Un,x.addAll(a),x.addAll(E)):(this.arrangement===ju&&E.reverse(),x=new Un,x.addAll(E),x.addAll(a))}oe=x.length;for(var Pe=z=b=0;Pe<x.length;Pe++){var Fe=ye+Ne*z*(this.direction===Ks?1:-1)/oe,We=x.M(Pe).diameter;isNaN(We)&&(We=th(x.M(Pe),Fe)),360>Ne&&(Pe===0||Pe===x.length-1)&&(We/=2),b+=We,z++}if(isNaN(ce)||re===ju){if(isNaN(y)&&(y=6),re!==_u&&re!==ju){for(z=-1/0,ee=0;ee<oe;ee++)Pe=x.M(ee),b=x.M(ee===oe-1?0:ee+1),isNaN(Pe.diameter)&&th(Pe,0),isNaN(b.diameter)&&th(b,0),z=Math.max(z,(Pe.diameter+b.diameter)/2);ee=z+y,re===Ad?ce=(z+y)/(2*Math.PI/oe):ce=v0(this,ee*(360<=Ne?oe:oe-1),fe,ye*Math.PI/180,Ne*Math.PI/180)}else ce=v0(this,b+(360<=Ne?oe:oe-1)*(re!==ju?y:1.6*y),fe,ye*Math.PI/180,Ne*Math.PI/180);z=ce*fe}else if(z=ce*fe,Pe=my(this,ce,z,ye*Math.PI/180,Ne*Math.PI/180),isNaN(y))(re===_u||re===ju)&&(y=(Pe-b)/(360<=Ne?oe:oe-1));else if(re===_u||re===ju)Pe=(Pe-b)/(360<=Ne?oe:oe-1),Pe<y?(ce=v0(this,b+y*(360<=Ne?oe:oe-1),fe,ye*Math.PI/180,Ne*Math.PI/180),z=ce*fe):y=Pe;else{for(ee=-1/0,b=0;b<oe;b++)Fe=x.M(b),We=x.M(b===oe-1?0:b+1),isNaN(Fe.diameter)&&th(Fe,0),isNaN(We.diameter)&&th(We,0),ee=Math.max(ee,(Fe.diameter+We.diameter)/2);ee+=y,b=v0(this,ee*(360<=Ne?oe:oe-1),fe,ye*Math.PI/180,Ne*Math.PI/180),b>ce?(ce=b,z=ce*fe):ee=Pe/(360<=Ne?oe:oe-1)}if(this.kw=re,this.lc=ce,this.Zm=fe,this.lw=ye,this.Wp=Ne,this.Ti=y,this.me=z,this.Jp=ee,y=x,x=this.kw,re=this.lc,ce=this.lw,fe=this.Wp,ye=this.Ti,Ne=this.me,oe=this.Jp,this.direction!==jh&&this.direction!==ug||x!==ju)if(this.direction===jh||this.direction===ug){switch(ee=0,x){case $d:ee=180*y0(this,re,Ne,ce,oe)/Math.PI;break;case _u:oe=y=0,ee=a.first(),ee!==null&&(y=th(ee,Math.PI/2)),ee=E.first(),ee!==null&&(oe=th(ee,Math.PI/2)),ee=180*y0(this,re,Ne,ce,ye+(y+oe)/2)/Math.PI;break;case Ad:ee=fe/y.length}if(this.direction===jh){switch(x){case $d:Pp(this,a,ce,eh);break;case _u:Mp(this,a,ce,eh);break;case Ad:Np(this,a,fe/2,ce,eh)}switch(x){case $d:Pp(this,E,ce+ee,Ks);break;case _u:Mp(this,E,ce+ee,Ks);break;case Ad:Np(this,E,fe/2,ce+ee,Ks)}}else{switch(x){case $d:Pp(this,E,ce,eh);break;case _u:Mp(this,E,ce,eh);break;case Ad:Np(this,E,fe/2,ce,eh)}switch(x){case $d:Pp(this,a,ce+ee,Ks);break;case _u:Mp(this,a,ce+ee,Ks);break;case Ad:Np(this,a,fe/2,ce+ee,Ks)}}}else switch(x){case $d:Pp(this,y,ce,this.direction);break;case _u:Mp(this,y,ce,this.direction);break;case Ad:Np(this,y,fe,ce,this.direction);break;case ju:_S(this,y,fe,ce,this.direction)}else _S(this,y,fe,ce-fe/2,Ks)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Np(a,y,E,x,b){var z=a.Wp,ee=a.lc;a=a.me,x=x*Math.PI/180,E=E*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var ce=x+(b===Ks?oe*E/(360<=z?re:re-1):-(oe*E)/re),fe=y.M(oe),ye=ee*Math.tan(ce)/a;ye=Math.sqrt((ee*ee+a*a*ye*ye)/(1+ye*ye)),fe.centerX=ye*Math.cos(ce),fe.centerY=ye*Math.sin(ce),fe.actualAngle=180*ce/Math.PI}}function Mp(a,y,E,x){var b=a.lc,z=a.me,ee=a.Ti;E=E*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var ce=y.M(oe),fe=y.M(oe===re-1?0:oe+1),ye=z*Math.sin(E);ce.centerX=b*Math.cos(E),ce.centerY=ye,ce.actualAngle=180*E/Math.PI,isNaN(ce.diameter)&&th(ce,0),isNaN(fe.diameter)&&th(fe,0),ce=y0(a,b,z,x===Ks?E:-E,(ce.diameter+fe.diameter)/2+ee),E+=x===Ks?ce:-ce}}function Pp(a,y,E,x){var b=a.lc,z=a.me,ee=a.Jp;E=E*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var ce=y.M(oe);ce.centerX=b*Math.cos(E),ce.centerY=z*Math.sin(E),ce.actualAngle=180*E/Math.PI,ce=y0(a,b,z,x===Ks?E:-E,ee),E+=x===Ks?ce:-ce}}function _S(a,y,E,x,b){var z=a.Wp;if(a.mj=0,a.Xr=new Lp,360>E){for(z=x+(b===Ks?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,zS(a,y,E,x,b)}else jS(a,y,E,x,b);a.Xr.commit(y)}function jS(a,y,E,x,b){var z=a.lc,ee=a.Ti,re=a.Zm,oe=z*Math.cos(x*Math.PI/180),ce=a.me*Math.sin(x*Math.PI/180),fe=y.Fa();if(fe.length===3)fe[0].centerX=z,fe[0].centerY=0,fe[1].centerX=fe[0].centerX-fe[0].width/2-fe[1].width/2-ee,fe[1].y=fe[0].y,fe[2].centerX=(fe[0].centerX+fe[1].centerX)/2,fe[2].y=fe[0].y-fe[2].height-ee;else if(fe.length===4)fe[0].centerX=z,fe[0].centerY=0,fe[2].centerX=-fe[0].centerX,fe[2].centerY=fe[0].centerY,fe[1].centerX=0,fe[1].y=Math.min(fe[0].y,fe[2].y)-fe[1].height-ee,fe[3].centerX=0,fe[3].y=Math.max(fe[0].y+fe[0].height+ee,fe[2].y+fe[2].height+ee);else{z=dt.alloc();for(var ye=0;ye<fe.length&&(fe[ye].centerX=oe,fe[ye].centerY=ce,!(ye>=fe.length-1));ye++)US(a,oe,ce,fe,ye,b,z)||HS(a,oe,ce,fe,ye,b,z),oe=z.x,ce=z.y;if(dt.free(z),a.mj++,!(23<a.mj)){oe=fe[0].centerX,ce=fe[0].centerY,z=fe[fe.length-1].centerX,ye=fe[fe.length-1].centerY;var Ne=Math.abs(oe-z)-((fe[0].width+fe[fe.length-1].width)/2+ee),Pe=Math.abs(ce-ye)-((fe[0].height+fe[fe.length-1].height)/2+ee);ee=0,1>Math.abs(Pe)?Math.abs(oe-z)<(fe[0].width+fe[fe.length-1].width)/2&&(ee=0):ee=0<Pe?Pe:1>Math.abs(Ne)?0:Ne,oe=Math.abs(z)>Math.abs(ye)?0<z!=ce>ye:0<ye!=oe<z,(oe=b===Ks?oe:!oe)&&(ee=-Math.abs(ee),ee=Math.min(ee,-fe[fe.length-1].width),ee=Math.min(ee,-fe[fe.length-1].height)),a.Xr.compare(ee,fe),1<Math.abs(ee)&&(a.lc=8>a.mj?a.lc-ee/(2*Math.PI):5>fe.length&&10<ee?a.lc/2:a.lc-(0<ee?1.7:-2.3),a.me=a.lc*re,jS(a,y,E,x,b))}}}function zS(a,y,E,x,b){for(var z=a.lc,ee=a.me,re=a.Zm,oe=z*Math.cos(x*Math.PI/180),ce=ee*Math.sin(x*Math.PI/180),fe=dt.alloc(),ye=y.Fa(),Ne=0;Ne<ye.length&&(ye[Ne].centerX=oe,ye[Ne].centerY=ce,!(Ne>=ye.length-1));Ne++)US(a,oe,ce,ye,Ne,b,fe)||HS(a,oe,ce,ye,Ne,b,fe),oe=fe.x,ce=fe.y;if(dt.free(fe),a.mj++,!(23<a.mj)){if(oe=Math.atan2(ce,oe),oe=b===Ks?a.gt-oe:oe-a.gt,oe=Math.abs(oe)<Math.abs(oe-2*Math.PI)?oe:oe-2*Math.PI,z=oe*(z+ee)/2,ee=a.Xr,Math.abs(z)<Math.abs(ee.Pl))for(ee.Pl=z,ee.mk=[],ee.tm=[],oe=0;oe<ye.length;oe++)ee.mk[oe]=ye[oe].bounds.x,ee.tm[oe]=ye[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,zS(a,y,E,x,b))}}function US(a,y,E,x,b,z,ee){var re=a.lc,oe=a.me,ce=0;a=(x[b].width+x[b+1].width)/2+a.Ti;var fe=!1;if(0<=E!=(z===Ks)){if(z=y+a,z>re){if(z=y-a,z<-re)return ee.x=z,ee.y=ce,!1;fe=!0}}else if(z=y-a,z<-re){if(z=y+a,z>re)return ee.x=z,ee.y=ce,!1;fe=!0}return ce=Math.sqrt(1-Math.min(1,z*z/(re*re)))*oe,0>E!==fe&&(ce=-ce),Math.abs(E-ce)>(x[b].height+x[b+1].height)/2?(ee.x=z,ee.y=ce,!1):(ee.x=z,ee.y=ce,!0)}function HS(a,y,E,x,b,z,ee){var re=a.lc,oe=a.me,ce=0;if(a=(x[b].height+x[b+1].height)/2+a.Ti,x=!1,0<=y!=(z===Ks)){if(z=E-a,z<-oe){if(z=E+a,z>oe){ee.x=ce,ee.y=z;return}x=!0}}else if(z=E+a,z>oe){if(z=E-a,z<-oe){ee.x=ce,ee.y=z;return}x=!0}ce=Math.sqrt(1-Math.min(1,z*z/(oe*oe)))*re,0>y!==x&&(ce=-ce),ee.x=ce,ee.y=z}Ho.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Ho.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,E=this.actualCenter;a?E=new dt(0,0):(E.x=this.arrangementOrigin.x+this.lc,E.y=this.arrangementOrigin.y+this.me);for(var x=this.network.vertexes.iterator;x.next();){var b=x.value;b.x+=E.x,b.y+=E.y,b.commit()}a&&(this.group.Va(),a=this.group.position.copy(),E=this.group.location.copy(),y=y.re(E.re(a)),this.group.move(y),this.Zv=y.re(a))},Ho.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function my(a,y,E,x,b){var z=a.ty;if(.001>Math.abs(a.Zm-1))return x!==void 0&&b!==void 0?b*y:2*Math.PI*y;a=y>E?Math.sqrt(y*y-E*E)/y:Math.sqrt(E*E-y*y)/E;for(var ee=0,re=x!==void 0&&b!==void 0?b/(z+1):Math.PI/(2*(z+1)),oe=0,ce=0;ce<=z;ce++){x!==void 0&&b!==void 0?oe=x+ce*b/z:oe=ce*Math.PI/(2*z);var fe=Math.sin(oe);ee+=Math.sqrt(1-a*a*fe*fe)*re}return x!==void 0&&b!==void 0?(y>E?y:E)*ee:4*(y>E?y:E)*ee}function v0(a,y,E,x,b){return y/(x!==void 0&&b!==void 0?my(a,1,E,x,b):my(a,1,E))}function y0(a,y,E,x,b){if(.001>Math.abs(a.Zm-1))return b/y;var z=y>E?Math.sqrt(y*y-E*E)/y:Math.sqrt(E*E-y*y)/E,ee=0;a=2*Math.PI/(700*a.network.vertexes.count),y>E&&(x+=Math.PI/2);for(var re=0;;re++){var oe=Math.sin(x+re*a);if(ee+=(y>E?y:E)*Math.sqrt(1-z*z*oe*oe)*a,ee>=b)return re*a}}Ho.prototype.sort=function(a){switch(this.sorting){case S0:break;case E0:a.reverse();break;case x0:a.sort(this.comparer);break;case b0:a.sort(this.comparer),a.reverse();break;case cg:return this.ak(GE(a));default:lt("Invalid sorting type.")}return a};function GE(a){for(var y=[],E=0;E<a.length;E++)y.push(0);E=new Un;for(var x=0;x<a.length;x++){var b=-1,z=-1;if(x===0)for(var ee=0;ee<a.length;ee++){var re=a.M(ee).edgesCount;re>b&&(b=re,z=ee)}else for(ee=0;ee<a.length;ee++)re=y[ee],re>b&&(b=re,z=ee);for(E.add(a.M(z)),y[z]=-1,z=a.M(z),ee=z.sourceEdges;ee.next();)b=a.indexOf(ee.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 E}Ho.prototype.ak=function(a){for(var y=[],E=0;E<a.length;E++){var x=a.M(E);y[E]=[];for(var b,z=x.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),b!==E&&0>y[E].indexOf(b)&&y[E].push(b);for(x=x.sourceEdges;x.next();)b=a.indexOf(x.value.fromVertex),b!==E&&0>y[E].indexOf(b)&&y[E].push(b)}for(z=[],E=0;E<y.length;E++)z[E]=0;E=[];var ee=[],re=[];x=[],b=new Un;for(var oe=0,ce=0;ce<y.length;ce++){var fe=y[ce].length;if(fe===1)x.push(ce);else if(fe===0)b.add(a.M(ce));else{if(oe===0)E.push(ce);else{for(var ye=fe=1/0,Ne=-1,Pe=[],Fe=0;Fe<E.length;Fe++)0>y[E[Fe]].indexOf(E[Fe===E.length-1?0:Fe+1])&&Pe.push(Fe===E.length-1?0:Fe+1);if(Pe.length===0)for(Fe=0;Fe<E.length;Fe++)Pe.push(Fe);for(Fe=0;Fe<Pe.length;Fe++){for(var We=Pe[Fe],gt=y[ce],nt=0,vt=0;vt<ee.length;vt++){var St=z[ee[vt]],Tt=z[re[vt]];if(St<Tt){var Dt=St;St=Tt}else Dt=Tt;if(Dt<We&&We<=St)for(Tt=0;Tt<gt.length;Tt++){var Xt=gt[Tt];0>E.indexOf(Xt)||Dt<z[Xt]&&z[Xt]<St||Dt===z[Xt]||St===z[Xt]||nt++}else for(Tt=0;Tt<gt.length;Tt++)Xt=gt[Tt],0>E.indexOf(Xt)||Dt<z[Xt]&&z[Xt]<St&&Dt!==z[Xt]&&St!==z[Xt]&&nt++}for(gt=nt,vt=nt=0;vt<y[ce].length;vt++)Dt=E.indexOf(y[ce][vt]),0<=Dt&&(Dt=Math.abs(We-(Dt>=We?Dt+1:Dt)),nt+=Dt<E.length+1-Dt?Dt:E.length+1-Dt);for(vt=0;vt<ee.length;vt++)Dt=z[ee[vt]],St=z[re[vt]],Dt>=We&&Dt++,St>=We&&St++,Dt>St&&(Tt=St,St=Dt,Dt=Tt),St-Dt<(E.length+2)/2==(Dt<We&&We<=St)&&nt++;(gt<fe||gt===fe&&nt<ye)&&(fe=gt,ye=nt,Ne=We)}for(E.splice(Ne,0,ce),fe=0;fe<E.length;fe++)z[E[fe]]=fe;for(fe=0;fe<y[ce].length;fe++)ye=y[ce][fe],0<=E.indexOf(ye)&&(ee.push(ce),re.push(ye))}oe++}}for(ee=E.length;;){for(z=!0,re=0;re<x.length;re++)if(oe=x[re],ce=y[oe][0],fe=E.indexOf(ce),0<=fe){for(Ne=ye=0;Ne<y[ce].length;Ne++)Pe=E.indexOf(y[ce][Ne]),0>Pe||Pe===fe||(Fe=Pe>fe?Pe-fe:fe-Pe,ye+=Pe<fe!=Fe>ee-Fe?1:-1);E.splice(0>ye?fe:fe+1,0,oe),x.splice(re,1),re--}else z=!1;if(z)break;E.push(x[0]),x.splice(0,1)}for(y=0;y<E.length;y++)b.add(a.M(E[y]));return b},zt.Object.defineProperties(Ho.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!==ju&&a!==_u&&a!==$d&&a!==Ad||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Ks&&a!==eh&&a!==jh&&a!==ug||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==S0&&a!==E0&&a!==x0&&!b0&&a!==cg||(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!==w0&&a!==ff||(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 _u=new Mn(Ho,"ConstantSpacing",0),$d=new Mn(Ho,"ConstantDistance",1),Ad=new Mn(Ho,"ConstantAngle",2),ju=new Mn(Ho,"Packed",3),Ks=new Mn(Ho,"Clockwise",4),eh=new Mn(Ho,"Counterclockwise",5),jh=new Mn(Ho,"BidirectionalLeft",6),ug=new Mn(Ho,"BidirectionalRight",7),S0=new Mn(Ho,"Forwards",8),E0=new Mn(Ho,"Reverse",9),x0=new Mn(Ho,"Ascending",10),b0=new Mn(Ho,"Descending",11),cg=new Mn(Ho,"Optimized",12),w0=new Mn(Ho,"Pythagorean",13),ff=new Mn(Ho,"Circular",14);Ho.className="CircularLayout",Ho.ConstantSpacing=_u,Ho.ConstantDistance=$d,Ho.ConstantAngle=Ad,Ho.Packed=ju,Ho.Clockwise=Ks,Ho.Counterclockwise=eh,Ho.BidirectionalLeft=jh,Ho.BidirectionalRight=ug,Ho.Forwards=S0,Ho.Reverse=E0,Ho.Ascending=x0,Ho.Descending=b0,Ho.Optimized=cg,Ho.Pythagorean=w0,Ho.Circular=ff;function Lp(){this.Pl=-1/0,this.tm=this.mk=null}Lp.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},Lp.prototype.commit=function(a){if(this.mk!==null&&this.tm!==null)for(var y=0;y<this.mk.length;y++){var E=a.M(y);E.x=this.mk[y],E.y=this.tm[y]}},Lp.className="VertexArrangement";function dg(a){xo.call(this,a)}en(dg,xo),dg.prototype.createVertex=function(){return new Ip(this)},dg.prototype.createEdge=function(){return new T0(this)},dg.className="CircularNetwork";function Ip(a){Na.call(this,a),this.u=this.Si=NaN}en(Ip,Na);function th(a,y){var E=a.network;if(E===null)return NaN;if(E=E.layout,E===null)return NaN;if(E.arrangement===ju)if(E.nodeDiameterFormula===ff)a.Si=Math.max(a.width,a.height);else{if(E=Math.abs(Math.sin(y)),y=Math.abs(Math.cos(y)),E===0)return a.width;if(y===0)return a.height;a.Si=Math.min(a.height/E,a.width/y)}else a.Si=E.nodeDiameterFormula===ff?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}zt.Object.defineProperties(Ip.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)}}}),Ip.className="CircularVertex";function T0(a){Pl.call(this,a)}en(T0,Pl),T0.className="CircularEdge";function cs(a){Oo.call(this),this.ah=null,this.An=0,this.$d=new ti(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)}en(cs,Oo),cs.prototype.cloneProtected=function(a){Oo.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},cs.prototype.createNetwork=function(){return new gf(this)},cs.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 E=y.value;E.charge=this.electricalCharge(E),E.mass=this.gravitationalMass(E)}for(y=this.network.edges.iterator;y.next();)E=y.value,E.stiffness=this.springStiffness(E),E.length=this.springLength(E);if(this.Cu(),this.An=0,this.needsClusterLayout()){y=this.network,E=y.Zx();for(var x=E.iterator;x.next();){this.network=x.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}GS(this,0,a)}this.network=y;var ee=x=E.iterator;x=this.arrangementSpacing;var re=ee.count,oe=!0;z=b=0;for(var ce=ci(),fe=0;fe<re+y.vertexes.count+2;fe++)ce[fe]=null;re=0,ee.reset();for(var ye=pn.alloc();ee.next();)if(fe=ee.value,this.computeBounds(fe,ye),oe)oe=!1,b=ye.x+ye.width/2,z=ye.y+ye.height/2,ce[0]=new dt(ye.x+ye.width+x.width,ye.y),ce[1]=new dt(ye.x,ye.y+ye.height+x.height),re=2;else{var Ne=YS(ce,re,b,z,ye.width,ye.height,x),Pe=ce[Ne],Fe=new dt(Pe.x+ye.width+x.width,Pe.y),We=new dt(Pe.x,Pe.y+ye.height+x.height);for(Ne+1<re&&ce.splice(Ne+1,0,null),ce[Ne]=Fe,ce[Ne+1]=We,re++,Ne=Pe.x-ye.x,Pe=Pe.y-ye.y,fe=fe.vertexes.iterator;fe.next();)Fe=fe.value,Fe.centerX+=Ne,Fe.centerY+=Pe}for(pn.free(ye),fe=y.vertexes.iterator;fe.next();)ee=fe.value,Ne=ee.bounds,2>re?(b=Ne.x+Ne.width/2,z=Ne.y+Ne.height/2,ce[0]=new dt(Ne.x+Ne.width+x.width,Ne.y),ce[1]=new dt(Ne.x,Ne.y+Ne.height+x.height),re=2):(oe=YS(ce,re,b,z,Ne.width,Ne.height,x),ye=ce[oe],Pe=new dt(ye.x+Ne.width+x.width,ye.y),Ne=new dt(ye.x,ye.y+Ne.height+x.height),oe+1<re&&ce.splice(oe+1,0,null),ce[oe]=Pe,ce[oe+1]=Ne,re++,ee.centerX=ye.x+ee.width/2,ee.centerY=ye.y+ee.height/2);for(pi(ce),x=E.iterator;x.next();){for(E=x.value,b=E.vertexes.iterator;b.next();)y.dh(b.value);for(E=E.edges.iterator;E.next();)y.Bo(E.value)}}VS(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},cs.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var a=0,y=0,E=this.network.vertexes.first().bounds,x=this.network.vertexes.iterator;x.next();){if(x.value.bounds.Yc(E)&&(a++,2<a))return!0;if(10<y)break;y++}return!1},cs.prototype.computeBounds=function(a,y){var E=!0;for(a=a.vertexes.iterator;a.next();){var x=a.value;E?(E=!1,y.set(x.bounds)):y.ed(x.bounds)}return y};function GS(a,y,E){if(YE(a,y)){var x=a.Zf;a.Zf*=1+1/(y+1);var b=WE(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,E*(y+1)/11),10));for(a.maxIterations+=z,GS(a,y+1,E),VS(a,z),VE(a,b),y=b.vertexes.Fa(),y.sort(function(ee,re){return ee===null||re===null||ee===re?0:re.Vd-ee.Vd}),E=0;E<y.length;E++)ZE(a,y[E]);a.Zf=x}}function YE(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(E,x){return E===null||x===null||E===x?0:x.Vd-E.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1<a.length-y}function WE(a,y){for(var E=a.network,x=new gf(a),b=0;b<a.ah.length;b++){var z=a.ah[b];if(1<z.Vd){x.dh(z);var ee=new ZS;ee.Rs=z.Vd,ee.Ss=z.width,ee.Qs=z.height,ee.Sv=z.focus.x,ee.Tv=z.focus.y,z.We===null&&(z.We=new Un),z.We.add(ee),z.sv=z.We.count-1}else break}for(z=E.edges.iterator;z.next();){var re=z.value;b=re.fromVertex,ee=re.toVertex,b.network===x&&ee.network===x?x.Bo(re):b.network===x?(re=b.Hj,re===null&&(re=new Un,b.Hj=re),re.add(ee),b.Vd--,b.sh+=ee.sh):ee.network===x&&(re=ee.Hj,re===null&&(re=new Un,ee.Hj=re),re.add(b),ee.Vd--,ee.sh+=b.sh)}for(b=x.edges.iterator;b.next();)z=b.value,z.length*=Math.max(1,Ft.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=x.vertexes.iterator;y.next();){b=y.value;var oe=b.Hj;if(oe!==null&&0<oe.count&&(ee=b.We.M(b.We.count-1).Rs-b.Vd,!(0>=ee))){for(var ce=re=0,fe=oe.count-ee;fe<oe.count;fe++){var ye=oe.M(fe),Ne=null;for(z=ye.edges.iterator;z.next();){var Pe=z.value;if(Pe.Ax(ye)===b){Ne=Pe;break}}Ne!==null&&(ce+=Ne.length,re+=ye.width*ye.height)}z=b.centerX,oe=b.centerY,fe=b.width,ye=b.height,Ne=b.focus,Pe=fe*ye,1>Pe&&(Pe=1),re=Ft.sqrt((re+Pe+ce*ce*4/(ee*ee))/Pe),ee=(re-1)*fe/2,re=(re-1)*ye/2,b.bounds=new pn(z-Ne.x-ee,oe-Ne.y-re,fe+2*ee,ye+2*re),b.focus=new dt(Ne.x+ee,Ne.y+re)}}return a.network=x,E}function VE(a,y){for(var E=a.network.vertexes.iterator;E.next();){var x=E.value;if(x.network=y,x.We!==null){var b=x.We.M(x.sv);x.Vd=b.Rs;var z=b.Sv,ee=b.Tv;x.bounds=new pn(x.centerX-z,x.centerY-ee,b.Ss,b.Qs),x.focus=new dt(z,ee),x.sv--}}for(E=a.network.edges.iterator;E.next();)E.value.network=y;a.network=y}function ZE(a,y){var E=y.Hj;if(E!==null&&E.count!==0){var x=y.centerX,b=y.centerY,z=y.width,ee=y.height;y.We!==null&&0<y.We.count&&(ee=y.We.M(0),z=ee.Ss,ee=ee.Qs),z=Ft.sqrt(z*z+ee*ee)/2;for(var re=!1,oe=ee=0,ce=0,fe=y.vertexes.iterator;fe.next();){var ye=fe.value;1>=ye.Vd?oe++:(re=!0,ce++,ee+=Math.atan2(y.centerY-ye.centerY,y.centerX-ye.centerX))}if(oe!==0){for(0<ce&&(ee/=ce),ce=y=0,y=re?2*Math.PI/(oe+1):2*Math.PI/oe,oe%2===0&&(ce=y/2),1<E.count&&E.sort(function(Pe,Fe){return Pe===null||Fe===null||Pe===Fe?0:Fe.width*Fe.height-Pe.width*Pe.height}),re=oe%2===0?0:1,E=E.iterator;E.next();)if(oe=E.value,!(1<oe.Vd||a.isFixed(oe))){for(fe=null,ye=oe.edges.iterator;ye.next();){fe=ye.value;break}ye=oe.width;var Ne=oe.height;ye=Ft.sqrt(ye*ye+Ne*Ne)/2,fe=z+fe.length+ye,ye=ee+(y*(re/2>>1)+ce)*(re%2===0?1:-1),oe.centerX=x+fe*Math.cos(ye),oe.centerY=b+fe*Math.sin(ye),re++}}}}function YS(a,y,E,x,b,z,ee){var re=9e19,oe=-1,ce=0;e:for(;ce<y;ce++){var fe=a[ce],ye=fe.x-E,Ne=fe.y-x;if(ye=ye*ye+Ne*Ne,ye<re){for(Ne=ce-1;0<=Ne;Ne--)if(a[Ne].y>fe.y&&a[Ne].x-fe.x<b+ee.width)continue e;for(Ne=ce+1;Ne<y;Ne++)if(a[Ne].x>fe.x&&a[Ne].y-fe.y<z+ee.height)continue e;oe=ce,re=ye}}return oe}cs.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},cs.prototype.addComments=function(a){var y=a.node;if(y!==null)for(y=y.Mu();y.next();){var E=y.value;if(E.category==="Comment"&&E.isVisible()){var x=this.network.ki(E);x===null&&(x=this.network.Bl(E)),x.charge=this.defaultCommentElectricalCharge,E=null;for(var b=x.destinationEdges;b.next();){var z=b.value;if(z.toVertex===a){E=z;break}}if(E===null){for(b=x.sourceEdges;b.next();)if(z=b.value,z.fromVertex===a){E=z;break}}E===null&&(E=this.network.Zj(a,x,null)),E.length=this.defaultCommentSpringLength}}};function WS(a,y){var E=a.bounds,x=E.x;a=E.y;var b=E.width;E=E.height;var z=y.bounds,ee=z.x;y=z.y;var re=z.width;return z=z.height,x+b<ee?a>y+z?(E=x+b-ee,a=a-y-z,Ft.sqrt(E*E+a*a)):a+E<y?(x=x+b-ee,a=a+E-y,Ft.sqrt(x*x+a*a)):ee-(x+b):x>ee+re?a>y+z?(E=x-ee-re,a=a-y-z,Ft.sqrt(E*E+a*a)):a+E<y?(x=x-ee-re,a=a+E-y,Ft.sqrt(x*x+a*a)):x-(ee+re):a>y+z?a-(y+z):a+E<y?y-(a+E):.1}function VS(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,QE(a)););a.ah=null}function QE(a){a.ah===null&&(a.ah=a.network.vertexes.Fa());var y=a.ah;if(0>=y.length)return!1;var E=y[0];E.forceX=0,E.forceY=0;for(var x=E.centerX,b=x,z=E=E.centerY,ee=1;ee<y.length;ee++){var re=y[ee];re.forceX=0,re.forceY=0;var oe=re.centerX;re=re.centerY,x=Math.min(x,oe),b=Math.max(b,oe),E=Math.min(E,re),z=Math.max(z,re)}(b=b-x>z-E)?y.sort(function(We,gt){return We===null||gt===null||We===gt?0:We.centerX-gt.centerX}):y.sort(function(We,gt){return We===null||gt===null||We===gt?0:We.centerY-gt.centerY}),E=a.Zf;var ce=x=re=0;for(z=0;z<y.length;z++){ee=y[z],x=ee.bounds,re=ee.focus,oe=x.x+re.x;var fe=x.y+re.y;x=ee.charge*a.electricalFieldX(oe,fe),ce=ee.charge*a.electricalFieldY(oe,fe),x+=ee.mass*a.gravitationalFieldX(oe,fe),ce+=ee.mass*a.gravitationalFieldY(oe,fe),ee.forceX+=x,ee.forceY+=ce;for(var ye=z+1;ye<y.length;ye++){var Ne=y[ye];if(Ne!==ee){x=Ne.bounds,re=Ne.focus,ce=x.x+re.x;var Pe=x.y+re.y;if(oe-ce>E||ce-oe>E){if(b)break}else if(fe-Pe>E||Pe-fe>E){if(!b)break}else{var Fe=WS(ee,Ne);1>Fe?(x=a.randomNumberGenerator,x===null&&(a.randomNumberGenerator=x=new A0),Fe=x.random(),re=x.random(),oe>ce?(x=Math.abs(Ne.bounds.right-ee.bounds.x),x=(1+x)*Fe):oe<ce?(x=Math.abs(Ne.bounds.x-ee.bounds.right),x=-(1+x)*Fe):(x=Math.max(Ne.width,ee.width),x=(1+x)*Fe-x/2),fe>Pe?(ce=Math.abs(Ne.bounds.bottom-ee.bounds.y),ce=(1+ce)*re):oe<ce?(ce=Math.abs(Ne.bounds.y-ee.bounds.bottom),ce=-(1+ce)*re):(ce=Math.max(Ne.height,ee.height),ce=(1+ce)*re-ce/2)):(re=-(ee.charge*Ne.charge)/(Fe*Fe),x=(ce-oe)/Fe*re,ce=(Pe-fe)/Fe*re),ee.forceX+=x,ee.forceY+=ce,Ne.forceX-=x,Ne.forceY-=ce}}}}for(b=a.network.edges.iterator;b.next();)re=b.value,E=re.fromVertex,z=re.toVertex,ee=E.bounds,oe=E.focus,x=ee.x+oe.x,ee=ee.y+oe.y,fe=z.bounds,ye=z.focus,oe=fe.x+ye.x,fe=fe.y+ye.y,ye=WS(E,z),1>ye?(ye=a.randomNumberGenerator,ye===null&&(a.randomNumberGenerator=ye=new A0),re=ye.random(),ye=ye.random(),x=(x>oe?1:-1)*(1+(z.width>E.width?z.width:E.width))*re,ce=(ee>fe?1:-1)*(1+(z.height>E.height?z.height:E.height))*ye):(re=re.stiffness*(ye-re.length),x=(oe-x)/ye*re,ce=(fe-ee)/ye*re),E.forceX+=x,E.forceY+=ce,z.forceX-=x,z.forceY-=ce;for(b=x=0;b<y.length;b++)E=y[b],a.isFixed(E)?a.moveFixedVertex(E):x=Math.max(x,a.moveVertex(E)||0);return x>a.epsilonDistance*a.epsilonDistance}cs.prototype.moveVertex=function(a){var y=a.forceX,E=a.forceY,x=this.moveLimit;return y<-x?y=-x:y>x&&(y=x),E<-x?E=-x:E>x&&(E=x),a.centerX+=y,a.centerY+=E,y*y+E*E},cs.prototype.moveFixedVertex=function(){},cs.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},cs.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Aa,y.toSpot=Aa)}},cs.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var E=pn.alloc();this.computeBounds(this.network,E),y=this.arrangementOrigin,a=y.x-E.x,y=y.y-E.y,pn.free(E)}E=pn.alloc();for(var x=this.network.vertexes.iterator;x.next();){var b=x.value;(a!==0||y!==0)&&(E.assign(b.bounds),E.x+=a,E.y+=y,b.bounds=E),b.commit()}pn.free(E)},cs.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},cs.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},cs.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},cs.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},cs.prototype.electricalFieldX=function(){return 0},cs.prototype.electricalFieldY=function(){return 0},cs.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},cs.prototype.gravitationalFieldX=function(){return 0},cs.prototype.gravitationalFieldY=function(){return 0},cs.prototype.isFixed=function(a){return a.isFixed},zt.Object.defineProperties(cs.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())}}}),cs.className="ForceDirectedLayout";function ZS(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}ZS.className="ForceDirectedSubnet";function gf(a){xo.call(this,a)}en(gf,xo),gf.prototype.createVertex=function(){return new kp(this)},gf.prototype.createEdge=function(){return new Dp(this)},gf.className="ForceDirectedNetwork";function kp(a){Na.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}en(kp,Na),zt.Object.defineProperties(kp.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)}}}),kp.className="ForceDirectedVertex";function Dp(a){Pl.call(this,a),this.j=this.o=NaN}en(Dp,Pl),zt.Object.defineProperties(Dp.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)}}}),Dp.className="ForceDirectedEdge";function A0(){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()}A0.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},A0.className="RandomNumberGenerator";function eo(a){Oo.call(this),this.kc=this.ie=25,this.K=0,this.Dk=L0,this.Zk=I0,this.Qk=k0,this.bj=4,this.rk=D0,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 dt,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}en(eo,Oo),eo.prototype.cloneProtected=function(a){Oo.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},eo.prototype.qb=function(a){a.classType===eo?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):Oo.prototype.qb.call(this,a)},eo.prototype.createNetwork=function(){return new fg(this)},eo.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!==Rp&&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===Rp&&this.removeCycles(),a=this.network;for(var y=[],E=a.edges.iterator;E.next();){var x=E.value;x.valid=!1,y.push(x)}for(E=0;E<y.length;E++){x=y[E];var b=x.fromVertex,z=x.toVertex;if(!(x.valid||(b.node===null&&b.data===null||z.node===null&&z.data===null)&&b.layer===z.layer)){var ee=0,re=0,oe=0,ce=0;if(x.link!==null){if(re=x.link,re===null)continue;var fe=b.node;if(ee=z.node,fe===null||ee===null)continue;var ye=re.fromNode;oe=re.toNode;for(var Ne=re.fromPort;Ne!==null&&!Ne.Ed();)Ne=Ne.panel;for(re=re.toPort;re!==null&&!re.Ed();)re=re.panel;if(x.rev){ce=ye;var Pe=Ne;ye=oe,Ne=re,oe=ce,re=Pe}var Fe=b.focus;ce=z.focus;var We=x.rev?z.bounds:b.bounds;Pe=dt.alloc(),fe!==ye?We.w()&&ye.isVisible()?ye.actualBounds.w()?(Ed(ye,Ne,Xi,Pe),Pe.x+=ye.actualBounds.x-We.x,Pe.y+=ye.actualBounds.y-We.y):(Ed(ye,Ne,Xi,Pe),Pe.w()||Pe.assign(Fe)):Pe.assign(Fe):We.w()?(Ed(ye,Ne,Xi,Pe),Pe.w()||Pe.assign(Fe)):Pe.assign(Fe),ye=x.rev?b.bounds:z.bounds,fe=dt.alloc(),ee!==oe?ye.w()&&oe.isVisible()?oe.actualBounds.w()?(Ed(oe,re,Xi,fe),fe.x+=oe.actualBounds.x-ye.x,fe.y+=oe.actualBounds.y-ye.y):(Ed(oe,re,Xi,fe),fe.w()||fe.assign(ce)):fe.assign(ce):ye.w()?(Ed(oe,re,Xi,fe),fe.w()||fe.assign(ce)):fe.assign(ce),this.K===90||this.K===270?(ee=Math.round((Pe.x-Fe.x)/this.kc),oe=Pe.x,re=Math.round((fe.x-ce.x)/this.kc),ce=fe.x):(ee=Math.round((Pe.y-Fe.y)/this.kc),oe=Pe.y,re=Math.round((fe.y-ce.y)/this.kc),ce=fe.y),dt.free(Pe),dt.free(fe),x.portFromColOffset=ee,x.portFromPos=oe,x.portToColOffset=re,x.portToPos=ce}else x.portFromColOffset=0,x.portFromPos=0,x.portToColOffset=0,x.portToPos=0;if(Pe=b.layer,fe=z.layer,ye=0,We=x.link,We!==null){var gt=We.fromPort,nt=We.toPort;if(gt!==null&&nt!==null){var vt=We.fromNode;if(Ne=We.toNode,vt!==null&&Ne!==null){var St=P0(this,!0),Tt=P0(this,!1),Dt=this.setsPortSpots?St:We.computeSpot(!0,gt);Fe=this.setsPortSpots?Tt:We.computeSpot(!1,nt);var Xt=We.isOrthogonal;Dt.$c()&&Dt.Hf(Tt)&&Fe.$c()&&Fe.Hf(St)?ye=0:(St=We.getLinkPoint(vt,gt,Dt,!0,Xt,Ne,nt,dt.alloc()),Tt=We.getLinkDirection(vt,gt,St,Dt,!0,Xt,Ne,nt),dt.free(St),Dt.ys()||Tt!==nE(this,x,!0)?this.setsPortSpots&&vt!==null&&vt.ports.count===1&&x.rev&&(ye+=1):ye+=1,Dt=We.getLinkPoint(Ne,nt,Fe,!1,Xt,vt,gt,dt.alloc()),We=We.getLinkDirection(Ne,nt,Dt,Fe,!1,Xt,vt,gt),dt.free(Dt),Fe.ys()||We!==nE(this,x,!1)?this.setsPortSpots&&Ne!==null&&Ne.ports.count===1&&x.rev&&(ye+=2):ye+=2)}}}if(Ne=ye,ye=Ne===1||Ne===3,(Ne=Ne===2||Ne===3)&&(Fe=a.createVertex(),Fe.node=null,Fe.Dj=1,Fe.layer=Pe,Fe.near=b,a.dh(Fe),b=a.Zj(b,Fe,x.link),b.valid=!1,b.rev=x.rev,b.portFromColOffset=ee,b.portToColOffset=0,b.portFromPos=oe,b.portToPos=0,b=Fe),We=1,ye&&We--,Pe-fe>We&&0<Pe){for(x.valid=!1,Fe=a.createVertex(),Fe.node=null,Fe.Dj=2,Fe.layer=Pe-1,a.dh(Fe),b=a.Zj(b,Fe,x.link),b.valid=!0,b.rev=x.rev,b.portFromColOffset=Ne?0:ee,b.portToColOffset=0,b.portFromPos=Ne?0:oe,b.portToPos=0,b=Fe,Pe--;Pe-fe>We&&0<Pe;)Fe=a.createVertex(),Fe.node=null,Fe.Dj=3,Fe.layer=Pe-1,a.dh(Fe),b=a.Zj(b,Fe,x.link),b.valid=!0,b.rev=x.rev,b.portFromColOffset=0,b.portToColOffset=0,b.portFromPos=0,b.portToPos=0,b=Fe,Pe--;b=a.Zj(Fe,z,x.link),b.valid=!ye,ye&&(Fe.near=z),b.rev=x.rev,b.portFromColOffset=0,b.portToColOffset=re,b.portFromPos=0,b.portToPos=ce}else x.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,E=this.Md=this.Hn=0;E<=this.Ia;E++)a[E]>a[this.Md]&&(this.Iq=a[E]-1,this.Md=E),a[E]<a[this.Hn]&&(this.Hn=E);for(this.fl=[],E=0;E<a.length;E++)this.fl[E]=[];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=nh(this,a),E=0,x=this.tc[a],z=0;z<x;z++)b=y[z],E+=this.nodeMinColumnSpace(b,!0),b.column=E,E+=1,E+=this.nodeMinColumnSpace(b,!1);this.Ra=Math.max(this.Ra,E-1),ih(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},eo.prototype.linkMinLength=function(){return 1};function vy(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}eo.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},eo.prototype.nodeMinColumnSpace=function(a,y){if(a.node===null&&a.data===null)return 0;var E=y?a.ev:a.dv;return E!==null?E:(E=this.K,E===90||E===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 ll(a){a.kj===null&&(a.kj=[]);for(var y=0,E=a.network.vertexes.iterator;E.next();){var x=E.value;a.kj[y]=x.layer,y++,a.kj[y]=x.column,y++,a.kj[y]=x.index,y++}return a.kj}function au(a,y){var E=0;for(a=a.network.vertexes.iterator;a.next();){var x=a.value;x.layer=y[E],E++,x.column=y[E],E++,x.index=y[E],E++}}function QS(a,y,E){var x=nh(a,y),b=a.tc[y];(a.Jn===null||a.Jn.length<b*b)&&(a.Jn=[]);for(var z=a.Jn,ee=0;ee<b;ee++){var re=0,oe=x[ee],ce=oe.near;if(ce!==null&&ce.layer===oe.layer)if(oe=ce.index,oe>ee)for(var fe=ee+1;fe<oe;fe++){var ye=x[fe];ye.near===ce&&ye.Dj===ce.Dj||re++}else for(fe=ee-1;fe>oe;fe--)ye=x[fe],ye.near===ce&&ye.Dj===ce.Dj||re++;var Ne;if(0<=E)for(oe=x[ee].sourceEdgesArrayAccess,ce=0;ce<oe.length;ce++){var Pe=oe[ce];if(Pe.valid&&Pe.fromVertex.layer!==y)for(ye=Pe.fromVertex.index,fe=Pe.portToPos,Pe=Pe.portFromPos,Ne=ce+1;Ne<oe.length;Ne++){var Fe=oe[Ne];if(Fe.valid&&Fe.fromVertex.layer!==y){var We=Fe.fromVertex.index,gt=Fe.portToPos;Fe=Fe.portFromPos,fe<gt&&(ye>We||ye===We&&Pe>Fe)&&re++,gt<fe&&(We>ye||We===ye&&Fe>Pe)&&re++}}}if(0>=E){for(oe=x[ee].destinationEdgesArrayAccess,ce=0;ce<oe.length;ce++)if(Pe=oe[ce],Pe.valid&&Pe.toVertex.layer!==y)for(ye=Pe.toVertex.index,fe=Pe.portToPos,Pe=Pe.portFromPos,Ne=ce+1;Ne<oe.length;Ne++)Fe=oe[Ne],Fe.valid&&Fe.toVertex.layer!==y&&(We=Fe.toVertex.index,gt=Fe.portToPos,Fe=Fe.portFromPos,Pe<Fe&&(ye>We||ye===We&&fe>gt)&&re++,Fe<Pe&&(We>ye||We===ye&>>fe)&&re++)}for(z[ee*b+ee]=re,oe=ee+1;oe<b;oe++){var nt=0,vt=0;if(0<=E){re=x[ee].sourceEdgesArrayAccess;var St=x[oe].sourceEdgesArrayAccess;for(ce=0;ce<re.length;ce++)if(Pe=re[ce],Pe.valid&&Pe.fromVertex.layer!==y)for(ye=Pe.fromVertex.index,Pe=Pe.portFromPos,Ne=0;Ne<St.length;Ne++)Fe=St[Ne],Fe.valid&&Fe.fromVertex.layer!==y&&(We=Fe.fromVertex.index,Fe=Fe.portFromPos,(ye<We||ye===We&&Pe<Fe)&&vt++,(We<ye||We===ye&&Fe<Pe)&&nt++)}if(0>=E){for(re=x[ee].destinationEdgesArrayAccess,St=x[oe].destinationEdgesArrayAccess,ce=0;ce<re.length;ce++)if(Pe=re[ce],Pe.valid&&Pe.toVertex.layer!==y)for(ye=Pe.toVertex.index,fe=Pe.portToPos,Ne=0;Ne<St.length;Ne++)Fe=St[Ne],Fe.valid&&Fe.toVertex.layer!==y&&(We=Fe.toVertex.index,gt=Fe.portToPos,(ye<We||ye===We&&fe<gt)&&vt++,(We<ye||We===ye&><fe)&&nt++)}z[ee*b+oe]=nt,z[oe*b+ee]=vt}}return ih(a,y,x),z}eo.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var E=QS(this,y,1),x=this.tc[y],b=0;b<x;b++)for(var z=b;z<x;z++)a+=E[b*x+z];return a};function C0(a){for(var y=0,E=0;E<=a.Ia;E++){for(var x=a,b=E,z=nh(x,b),ee=x.tc[b],re=0,oe=0;oe<ee;oe++){var ce=z[oe].destinationEdgesArrayAccess;if(ce!==null)for(var fe=0;fe<ce.length;fe++){var ye=ce[fe];if(ye.valid&&ye.toVertex.layer!==b){var Ne=ye.fromVertex.column+ye.portFromColOffset,Pe=ye.toVertex.column+ye.portToColOffset;re+=(Math.abs(Ne-Pe)+1)*vy(ye)}}}ih(x,b,z),y+=re}return y}eo.prototype.normalize=function(){var a=1/0;this.Ra=-1;for(var y=this.network.vertexes.iterator;y.next();){var E=y.value;a=Math.min(a,E.column-this.nodeMinColumnSpace(E,!0)),this.Ra=Math.max(this.Ra,E.column+this.nodeMinColumnSpace(E,!1))}for(y.reset();y.next();)y.value.column-=a;this.Ra-=a};function yy(a,y,E){for(var x=nh(a,y),b=a.tc[y],z=[],ee=0;ee<b;ee++){var re=x[ee],oe=null;0>=E&&(oe=re.sourceEdgesArrayAccess);var ce=null;0<=E&&(ce=re.destinationEdgesArrayAccess);var fe=0,ye=0,Ne=re.near;if(Ne!==null&&Ne.layer===re.layer&&(fe+=Ne.column-1,ye++),oe!==null)for(Ne=0;Ne<oe.length;Ne++){re=oe[Ne];var Pe=re.fromVertex;re.valid&&!re.rev&&Pe.layer!==y&&(fe+=Pe.column,ye++)}if(ce!==null)for(oe=0;oe<ce.length;oe++)re=ce[oe],Ne=re.toVertex,re.valid&&!re.rev&&Ne.layer!==y&&(fe+=Ne.column,ye++);z[ee]=ye===0?-1:fe/ye}return ih(a,y,x),z}function KS(a,y,E){for(var x=nh(a,y),b=a.tc[y],z=[],ee=0;ee<b;ee++){var re=x[ee],oe=null;0>=E&&(oe=re.sourceEdgesArrayAccess);var ce=null;0<=E&&(ce=re.destinationEdgesArrayAccess);var fe=0,ye=[],Ne=re.near;if(Ne!==null&&Ne.layer===re.layer&&(ye[fe]=Ne.column-1,fe++),re=void 0,oe!==null)for(Ne=0;Ne<oe.length;Ne++){re=oe[Ne];var Pe=re.fromVertex;re.valid&&!re.rev&&Pe.layer!==y&&(ye[fe]=Pe.column+re.portFromColOffset,fe++)}if(ce!==null)for(oe=0;oe<ce.length;oe++)re=ce[oe],Ne=re.toVertex,re.valid&&!re.rev&&Ne.layer!==y&&(ye[fe]=Ne.column+re.portToColOffset,fe++);fe===0?z[ee]=-1:(ye.sort(function(Fe,We){return Fe-We}),ce=fe>>1,z[ee]=fe&1?ye[ce]:ye[ce-1]+ye[ce]>>1)}return ih(a,y,x),z}function Op(a,y,E,x,b,z){if(y.component===x){if(y.component=E,b)for(var ee=y.destinationEdges;ee.next();){var re=ee.value,oe=re.toVertex,ce=y.layer-oe.layer;re=a.linkMinLength(re),ce===re&&Op(a,oe,E,x,b,z)}if(z)for(ee=y.sourceEdges;ee.next();)re=ee.value,oe=re.fromVertex,ce=oe.layer-y.layer,re=a.linkMinLength(re),ce===re&&Op(a,oe,E,x,b,z)}}function Sy(a,y,E,x,b,z){if(y.component===x){if(y.component=E,b)for(var ee=y.destinationEdges;ee.next();)Sy(a,ee.value.toVertex,E,x,b,z);if(z)for(y=y.sourceEdges;y.next();)Sy(a,y.value.fromVertex,E,x,b,z)}}eo.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case by:a=this.network;var y=0,E=a.vertexes.count-1,x=[];x.length=E+1;for(var b=a.vertexes.iterator;b.next();)b.value.valid=!0;for(;KE(a)!==null;){for(b=XS(a);b!==null;)x[E]=b,E--,b.valid=!1,b=XS(a);for(b=JS(a);b!==null;)x[y]=b,y++,b.valid=!1,b=JS(a);b=null;for(var z=0,ee=this.network.vertexes.iterator;ee.next();){var re=ee.value;if(re.valid){for(var oe=0,ce=re.destinationEdges;ce.next();)ce.value.toVertex.valid&&oe++;ce=0;for(var fe=re.sourceEdges;fe.next();)fe.value.fromVertex.valid&&ce++;(b===null||z<oe-ce)&&(b=re,z=oe-ce)}}b!==null&&(x[y]=b,y++,b.valid=!1)}for(y=0;y<a.vertexes.count;y++)x[y].index=y;for(x=a.edges.iterator;x.next();)y=x.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case L0:for(x=this.network.vertexes.iterator;x.next();)a=x.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,x.reset();x.next();)y=x.value,y.sourceEdges.count===0&&Ey(this,y);for(x.reset();x.next();)y=x.value,y.Ll===-1&&Ey(this,y);for(a.reset();a.next();)x=a.value,x.forest||(y=x.fromVertex,E=y.finish,b=x.toVertex,z=b.finish,b.Ll<y.Ll&&E<z&&(this.network.gm(x),x.rev=!0));break;case Rp:for(a=this.network,y=a.vertexes.iterator,x=1/0;y.next();)x=Math.min(x,y.value.layer);if(1/0>x){if(0>x)for(y.reset();y.next();)y.value.layer-=x;for(x=[],y.reset();y.next();)E=y.value,b=x[E.layer],b===void 0?x[E.layer]=[E]:b.push(E);for(E=y=0;E<x.length;E++)if(b=x[E],!b||b.length===0)y++;else if(0<E)for(z=0;z<b.length;z++)b[z].layer-=y;for(x=a.edges.iterator;x.next();)y=x.value,y.fromVertex.layer<y.toVertex.layer&&(a.gm(y),y.rev=!0)}}};function KE(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function XS(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var E=!0,x=y.destinationEdges;x.next();)if(x.value.toVertex.valid){E=!1;break}if(E)return y}}return null}function JS(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var E=!0,x=y.sourceEdges;x.next();)if(x.value.fromVertex.valid){E=!1;break}if(E)return y}}return null}function Ey(a,y){y.Ll=a.Kn,a.Kn++;for(var E=y.destinationEdges;E.next();){var x=E.value,b=x.toVertex;b.Ll===-1&&(x.forest=!0,Ey(a,b))}y.finish=a.Kn,a.Kn++}eo.prototype.assignLayers=function(){switch(this.Zk){case wy:qS(this);break;case Ty:for(var a,y=this.network.vertexes.iterator;y.next();)a=eE(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 I0:for(qS(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&tE(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 E=y.value;E.layer-=a,this.Ia=Math.max(this.Ia,E.layer)}}};function qS(a){for(var y=a.network.vertexes.iterator;y.next();){var E=$S(a,y.value);a.Ia=Math.max(E,a.Ia)}}function $S(a,y){var E=0;if(y.layer===-1){for(var x=y.destinationEdges;x.next();){var b=x.value,z=b.toVertex;b=a.linkMinLength(b),E=Math.max(E,$S(a,z)+b)}y.layer=E}else E=y.layer;return E}function eE(a,y){var E=0;if(y.layer===-1){for(var x=y.sourceEdges;x.next();){var b=x.value,z=b.fromVertex;b=a.linkMinLength(b),E=Math.max(E,eE(a,z)+b)}y.layer=E}else E=y.layer;return E}function tE(a,y){if(!y.valid){y.valid=!0;for(var E=y.destinationEdges;E.next();)tE(a,E.value.toVertex);for(E=a.network.vertexes.iterator;E.next();)E.value.component=-1;for(var x=y.sourceEdgesArrayAccess,b=x.length,z=0;z<b;z++){var ee=x[z],re=ee.fromVertex,oe=ee.toVertex;ee=a.linkMinLength(ee),re.layer-oe.layer>ee&&Op(a,re,0,-1,!0,!1)}for(Op(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,x=1/0,re=0,oe=null,ee=a.network.vertexes.iterator;ee.next();){var ce=ee.value;if(ce.component===1){var fe=0,ye=!1,Ne=ce.sourceEdgesArrayAccess;b=Ne.length;for(var Pe=0;Pe<b;Pe++){var Fe=Ne[Pe],We=Fe.fromVertex;fe+=1,We.component!==1&&(z+=1,We=We.layer-ce.layer,Fe=a.linkMinLength(Fe),x=Math.min(x,We-Fe))}for(Ne=ce.destinationEdgesArrayAccess,b=Ne.length,Pe=0;Pe<b;Pe++)Fe=Ne[Pe].toVertex,--fe,Fe.component!==1?--z:ye=!0;(oe===null||fe<re)&&!ye&&(oe=ce,re=fe)}}if(0<z){for(E.reset();E.next();)b=E.value,b.component===1&&(b.layer+=x);y.component=0}else oe.component=0}for(E=a.network.vertexes.iterator;E.next();)E.value.component=-1;for(Op(a,y,1,-1,!0,!1);y.component!==0;){for(x=0,b=1/0,z=0,re=null,oe=a.network.vertexes.iterator;oe.next();)if(ee=oe.value,ee.component===1){for(ce=0,fe=!1,Ne=ee.sourceEdgesArrayAccess,ye=Ne.length,Pe=0;Pe<ye;Pe++)Fe=Ne[Pe].fromVertex,ce+=1,Fe.component!==1?x+=1:fe=!0;for(Ne=ee.destinationEdgesArrayAccess,ye=Ne.length,Pe=0;Pe<ye;Pe++)Fe=Ne[Pe],We=Fe.toVertex,--ce,We.component!==1&&(--x,We=ee.layer-We.layer,Fe=a.linkMinLength(Fe),b=Math.min(b,We-Fe));(re===null||ce>z)&&!fe&&(re=ee,z=ce)}if(0>x){for(E.reset();E.next();)x=E.value,x.component===1&&(x.layer-=b);y.component=0}else re.component=0}}}function nE(a,y,E){return a.K===90?E&&!y.rev||!E&&y.rev?270:90:a.K===180?E&&!y.rev||!E&&y.rev?0:180:a.K===270?E&&!y.rev||!E&&y.rev?90:270:E&&!y.rev||!E&&y.rev?180:0}eo.prototype.initializeIndices=function(){switch(this.Qk){default:case Cy:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,E=y.layer;y.index=this.tc[E],this.tc[E]++}break;case k0:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)E=a.value,E.layer===y&&E.index===-1&&iE(this,E);break;case Ay:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)E=a.value,E.layer===y&&E.index===-1&&rE(this,E)}};function iE(a,y){var E=y.layer;for(y.index=a.tc[E],a.tc[E]++,y=y.destinationEdgesArrayAccess,E=!0;E;){E=!1;for(var x=0;x<y.length-1;x++){var b=y[x],z=y[x+1];b.portFromColOffset>z.portFromColOffset&&(E=!0,y[x]=z,y[x+1]=b)}}for(E=0;E<y.length;E++)x=y[E],x.valid&&(x=x.toVertex,x.index===-1&&iE(a,x))}function rE(a,y){var E=y.layer;y.index=a.tc[E],a.tc[E]++,y=y.sourceEdgesArrayAccess;for(var x=!0;x;)for(x=!1,E=0;E<y.length-1;E++){var b=y[E],z=y[E+1];b.portToColOffset>z.portToColOffset&&(x=!0,y[E]=z,y[E+1]=b)}for(E=0;E<y.length;E++)x=y[E],x.valid&&(x=x.fromVertex,x.index===-1&&rE(a,x))}eo.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=ll(this),E,x;for(E=0;E<this.bj;E++){for(x=0;x<=this.Ia;x++)N0(this,x,1),Eu(this,x,1);var b=this.countCrossings();for(b<a&&(a=b,y=ll(this)),x=this.Ia;0<=x;x--)N0(this,x,-1),Eu(this,x,-1);b=this.countCrossings(),b<a&&(a=b,y=ll(this))}for(au(this,y),E=0;E<this.bj;E++){for(x=0;x<=this.Ia;x++)N0(this,x,0),Eu(this,x,0);for(b=this.countCrossings(),b<a&&(a=b,y=ll(this)),x=this.Ia;0<=x;x--)N0(this,x,0),Eu(this,x,0);b=this.countCrossings(),b<a&&(a=b,y=ll(this))}au(this,y);var z,ee,re;switch(this.rk){case Ny:break;case My:for(re=a+1;(x=this.countCrossings())<re;)for(re=x,E=this.Ia;0<=E;E--)for(ee=0;ee<=E;ee++){for(z=!0;z;)for(z=!1,x=E;x>=ee;x--)z=Eu(this,x,-1)||z;for(b=this.countCrossings(),b>=a?au(this,y):(a=b,y=ll(this)),z=!0;z;)for(z=!1,x=E;x>=ee;x--)z=Eu(this,x,1)||z;for(b=this.countCrossings(),b>=a?au(this,y):(a=b,y=ll(this)),z=!0;z;)for(z=!1,x=ee;x<=E;x++)z=Eu(this,x,1)||z;for(b>=a?au(this,y):(a=b,y=ll(this)),z=!0;z;)for(z=!1,x=ee;x<=E;x++)z=Eu(this,x,-1)||z;for(b>=a?au(this,y):(a=b,y=ll(this)),z=!0;z;)for(z=!1,x=E;x>=ee;x--)z=Eu(this,x,0)||z;for(b>=a?au(this,y):(a=b,y=ll(this)),z=!0;z;)for(z=!1,x=ee;x<=E;x++)z=Eu(this,x,0)||z;b>=a?au(this,y):(a=b,y=ll(this))}break;default:case D0:for(E=this.Ia,ee=0,re=a+1;(x=this.countCrossings())<re;){for(re=x,z=!0;z;)for(z=!1,x=E;x>=ee;x--)z=Eu(this,x,-1)||z;for(b=this.countCrossings(),b>=a?au(this,y):(a=b,y=ll(this)),z=!0;z;)for(z=!1,x=E;x>=ee;x--)z=Eu(this,x,1)||z;for(b=this.countCrossings(),b>=a?au(this,y):(a=b,y=ll(this)),z=!0;z;)for(z=!1,x=ee;x<=E;x++)z=Eu(this,x,1)||z;for(b>=a?au(this,y):(a=b,y=ll(this)),z=!0;z;)for(z=!1,x=ee;x<=E;x++)z=Eu(this,x,-1)||z;for(b>=a?au(this,y):(a=b,y=ll(this)),z=!0;z;)for(z=!1,x=E;x>=ee;x--)z=Eu(this,x,0)||z;for(b>=a?au(this,y):(a=b,y=ll(this)),z=!0;z;)for(z=!1,x=ee;x<=E;x++)z=Eu(this,x,0)||z;b>=a?au(this,y):(a=b,y=ll(this))}}au(this,y)};function N0(a,y,E){var x=nh(a,y),b=a.tc[y],z=KS(a,y,E),ee=yy(a,y,E);for(E=0;E<b;E++)ee[E]===-1&&(ee[E]=x[E].column),z[E]===-1&&(z[E]=x[E].column);for(var re=!0,oe;re;)for(re=!1,E=0;E<b-1;E++)(z[E+1]<z[E]||z[E+1]===z[E]&&ee[E+1]<ee[E])&&(re=!0,oe=z[E],z[E]=z[E+1],z[E+1]=oe,oe=ee[E],ee[E]=ee[E+1],ee[E+1]=oe,oe=x[E],x[E]=x[E+1],x[E+1]=oe);for(E=z=0;E<b;E++)oe=x[E],oe.index=E,z+=a.nodeMinColumnSpace(oe,!0),oe.column=z,z+=1,z+=a.nodeMinColumnSpace(oe,!1);ih(a,y,x)}function Eu(a,y,E){var x=nh(a,y),b=a.tc[y];E=QS(a,y,E);var z,ee=[];for(z=0;z<b;z++)ee[z]=-1;var re=[];for(z=0;z<b;z++)re[z]=-1;for(var oe=!1,ce=!0;ce;)for(ce=!1,z=0;z<b-1;z++){var fe=E[x[z].index*b+x[z+1].index],ye=E[x[z+1].index*b+x[z].index],Ne=0,Pe=0,Fe=x[z].column,We=x[z+1].column,gt=a.nodeMinColumnSpace(x[z],!0),nt=a.nodeMinColumnSpace(x[z],!1),vt=a.nodeMinColumnSpace(x[z+1],!0),St=a.nodeMinColumnSpace(x[z+1],!1);gt=Fe-gt+vt,nt=We-nt+St;var Tt=x[z].sourceEdges.iterator;for(Tt.reset();Tt.next();)if(vt=Tt.value,St=vt.fromVertex,vt.valid&&St.layer===y){for(vt=0;x[vt]!==St;)vt++;vt<z&&(Ne+=2*(z-vt),Pe+=2*(z+1-vt)),vt===z+1&&(Ne+=1),vt>z+1&&(Ne+=4*(vt-z),Pe+=4*(vt-(z+1)))}for(Tt=x[z].destinationEdges.iterator,Tt.reset();Tt.next();)if(vt=Tt.value,St=vt.toVertex,vt.valid&&St.layer===y){for(vt=0;x[vt]!==St;)vt++;vt===z+1&&(Pe+=1)}for(Tt=x[z+1].sourceEdges.iterator,Tt.reset();Tt.next();)if(vt=Tt.value,St=vt.fromVertex,vt.valid&&St.layer===y){for(vt=0;x[vt]!==St;)vt++;vt<z&&(Ne+=2*(z+1-vt),Pe+=2*(z-vt)),vt===z&&(Pe+=1),vt>z+1&&(Ne+=4*(vt-(z+1)),Pe+=4*(vt-z))}for(Tt=x[z+1].destinationEdges.iterator,Tt.reset();Tt.next();)if(vt=Tt.value,St=vt.toVertex,vt.valid&&St.layer===y){for(vt=0;x[vt]!==St;)vt++;vt===z&&(Ne+=1)}vt=St=0,Tt=ee[x[z].index];var Dt=re[x[z].index],Xt=ee[x[z+1].index],ai=re[x[z+1].index];Tt!==-1&&(St+=Math.abs(Tt-Fe),vt+=Math.abs(Tt-nt)),Dt!==-1&&(St+=Math.abs(Dt-Fe),vt+=Math.abs(Dt-nt)),Xt!==-1&&(St+=Math.abs(Xt-We),vt+=Math.abs(Xt-gt)),ai!==-1&&(St+=Math.abs(ai-We),vt+=Math.abs(ai-gt)),(Pe<Ne-.5||Pe===Ne&&ye<fe-.5||Pe===Ne&&ye===fe&&vt<St-.5)&&(ce=oe=!0,x[z].column=nt,x[z+1].column=gt,fe=x[z],x[z]=x[z+1],x[z+1]=fe)}for(z=0;z<b;z++)x[z].index=z;return ih(a,y,x),oe}eo.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&ix)!==0;if(1e3<this.network.edges.count&&y&&(a=!1),a){var E=[];for(y=0;y<=this.Ia;y++)E[y]=0;for(var x,b=this.network.vertexes.iterator;b.next();){var z=b.value;y=z.layer,x=z.column,z=this.nodeMinColumnSpace(z,!1),E[y]=Math.max(E[y],x+z)}for(b.reset();b.next();)z=b.value,y=z.layer,x=z.column,z.column=(8*(this.Ra-E[y])>>1)+8*x;this.Ra*=8}if(this.bg&2)for(E=!0;E;){for(E=!1,y=this.Md+1;y<=this.Ia;y++)E=hg(this,y,1)||E;for(y=this.Md-1;0<=y;y--)E=hg(this,y,-1)||E;E=hg(this,this.Md,0)||E}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&&(oE(this,-1),oE(this,1)),this.bg&2)for(E=!0;E;){for(E=!1,E=hg(this,this.Md,0)||E,y=this.Md+1;y<=this.Ia;y++)E=hg(this,y,0)||E;for(y=this.Md-1;0<=y;y--)E=hg(this,y,0)||E}}else $E(this)};function hg(a,y,E){for(var x=!1;XE(a,y,E);)x=!0;return x}function XE(a,y,E){var x,b=nh(a,y),z=a.tc[y],ee=yy(a,y,-1);if(0<E)for(x=0;x<z;x++)ee[x]=-1;var re=yy(a,y,1);if(0>E)for(x=0;x<z;x++)re[x]=-1;for(var oe=!1,ce=!0;ce;)for(ce=!1,x=0;x<z;x++){var fe=b[x].column,ye=a.nodeMinColumnSpace(b[x],!0),Ne=a.nodeMinColumnSpace(b[x],!1),Pe=0;0>x-1||fe-b[x-1].column-1>ye+a.nodeMinColumnSpace(b[x-1],!1)?Pe=fe-1:Pe=fe,ye=x+1>=z||b[x+1].column-fe-1>Ne+a.nodeMinColumnSpace(b[x+1],!0)?fe+1:fe;var Fe=Ne=0,We=0;if(0>=E)for(var gt=b[x].sourceEdges.iterator;gt.next();){var nt=gt.value,vt=nt.fromVertex;if(nt.valid&&vt.layer!==y){var St=vy(nt),Tt=nt.portFromColOffset;nt=nt.portToColOffset,vt=vt.column,Ne+=(Math.abs(fe+nt-(vt+Tt))+1)*St,Fe+=(Math.abs(Pe+nt-(vt+Tt))+1)*St,We+=(Math.abs(ye+nt-(vt+Tt))+1)*St}}if(0<=E)for(gt=b[x].destinationEdges.iterator;gt.next();)nt=gt.value,vt=nt.toVertex,nt.valid&&vt.layer!==y&&(St=vy(nt),Tt=nt.portFromColOffset,nt=nt.portToColOffset,vt=vt.column,Ne+=(Math.abs(fe+Tt-(vt+nt))+1)*St,Fe+=(Math.abs(Pe+Tt-(vt+nt))+1)*St,We+=(Math.abs(ye+Tt-(vt+nt))+1)*St);nt=Tt=St=0,gt=ee[b[x].index],vt=re[b[x].index],gt!==-1&&(St+=Math.abs(gt-fe),Tt+=Math.abs(gt-Pe),nt+=Math.abs(gt-ye)),vt!==-1&&(St+=Math.abs(vt-fe),Tt+=Math.abs(vt-Pe),nt+=Math.abs(vt-ye)),Fe<Ne||Fe===Ne&&Tt<St?(ce=oe=!0,b[x].column=Pe):(We<Ne||We===Ne&&nt<St)&&(ce=oe=!0,b[x].column=ye)}return ih(a,y,b),a.normalize(),oe}function xy(a,y,E){var x=nh(a,y),b=a.tc[y],z=KS(a,y,E),ee=[];for(E=0;E<b;E++)ee[E]=z[E];for(z=!0;z;)for(z=!1,E=0;E<b;E++){var re=x[E].column,oe=a.nodeMinColumnSpace(x[E],!0),ce=a.nodeMinColumnSpace(x[E],!1),fe=0;if(ee[E]===-1)if(E===0&&E===b-1)fe=re;else if(E===0){var ye=x[E+1].column;ye-re===ce+a.nodeMinColumnSpace(x[E+1],!0)?fe=re-1:fe=re}else E===b-1?(ye=x[E-1].column,fe=re-ye===oe+a.nodeMinColumnSpace(x[E-1],!1)?re+1:re):(ye=x[E-1].column,oe=ye+a.nodeMinColumnSpace(x[E-1],!1)+oe+1,ye=x[E+1].column,ce=ye-a.nodeMinColumnSpace(x[E+1],!0)-ce-1,fe=(oe+ce)/2|0);else E===0&&E===b-1?fe=ee[E]:E===0?(ye=x[E+1].column,ce=ye-a.nodeMinColumnSpace(x[E+1],!0)-ce-1,fe=Math.min(ee[E],ce)):E===b-1?(ye=x[E-1].column,oe=ye+a.nodeMinColumnSpace(x[E-1],!1)+oe+1,fe=Math.max(ee[E],oe)):(ye=x[E-1].column,oe=ye+a.nodeMinColumnSpace(x[E-1],!1)+oe+1,ye=x[E+1].column,ce=ye-a.nodeMinColumnSpace(x[E+1],!0)-ce-1,oe<ee[E]&&ee[E]<ce?fe=ee[E]:oe>=ee[E]?fe=oe:ce<=ee[E]&&(fe=ce));fe!==re&&(z=!0,x[E].column=fe)}ih(a,y,x),a.normalize()}function JE(a,y){for(var E=!0,x=a.network.vertexes.iterator;x.next();){var b=x.value,z=a.nodeMinColumnSpace(b,!0),ee=a.nodeMinColumnSpace(b,!1);if(b.column-z<=y&&b.column+ee>=y){E=!1;break}}if(a=!1,E)for(x.reset();x.next();)E=x.value,E.column>y&&(--E.column,a=!0);return a}function qE(a,y){var E=y+1,x,b=[],z=[];for(x=0;x<=a.Ia;x++)b[x]=!1,z[x]=!1;for(var ee=a.network.vertexes.iterator;ee.next();){x=ee.value;var re=x.column-a.nodeMinColumnSpace(x,!0),oe=x.column+a.nodeMinColumnSpace(x,!1);re<=y&&oe>=y&&(b[x.layer]=!0),re<=E&&oe>=E&&(z[x.layer]=!0)}for(re=!0,E=!1,x=0;x<=a.Ia;x++)re=re&&!(b[x]&&z[x]);if(re)for(ee.reset();ee.next();)a=ee.value,a.column>y&&(--a.column,E=!0);return E}function oE(a,y){for(var E=0;E<=a.Ra;E++)for(;JE(a,E););for(a.normalize(),E=0;E<a.Ra;E++)for(;qE(a,E););a.normalize();var x;if(0<y)for(E=0;E<=a.Ra;E++){var b=ll(a),z=C0(a);for(x=z+1;z<x;){x=z,aE(a,E,1);var ee=C0(a);ee>z?au(a,b):ee<z&&(z=ee,b=ll(a))}}if(0>y)for(E=a.Ra;0<=E;E--)for(b=ll(a),z=C0(a),x=z+1;z<x;)x=z,aE(a,E,-1),ee=C0(a),ee>z?au(a,b):ee<z&&(z=ee,b=ll(a));a.normalize()}function aE(a,y,E){a.le=0;for(var x=a.network.vertexes.iterator;x.next();)x.value.component=-1;if(0<E)for(x.reset();x.next();){var b=x.value;b.column-a.nodeMinColumnSpace(b,!0)<=y&&(b.component=a.le)}if(0>E)for(x.reset();x.next();)b=x.value,b.column+a.nodeMinColumnSpace(b,!1)>=y&&(b.component=a.le);for(a.le++,x.reset();x.next();)y=x.value,y.component===-1&&(Sy(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(x.reset();x.next();){z=x.value;for(var ee=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[ee*(a.Ra+1)+re]=z.component}for(z=0;z<=a.Ia;z++){if(0<E)for(ee=0;ee<a.Ra;ee++)b[z*(a.Ra+1)+ee]!==-1&&b[z*(a.Ra+1)+ee+1]!==-1&&b[z*(a.Ra+1)+ee]!==b[z*(a.Ra+1)+ee+1]&&(y[b[z*(a.Ra+1)+ee]*a.le+b[z*(a.Ra+1)+ee+1]]=!0);if(0>E)for(ee=a.Ra;0<ee;ee--)b[z*(a.Ra+1)+ee]!==-1&&b[z*(a.Ra+1)+ee-1]!==-1&&b[z*(a.Ra+1)+ee]!==b[z*(a.Ra+1)+ee-1]&&(y[b[z*(a.Ra+1)+ee]*a.le+b[z*(a.Ra+1)+ee-1]]=!0)}for(b=[],z=0;z<a.le;z++)b[z]=!0;for(ee=[],ee.push(0);ee.length!==0;)if(oe=ee[ee.length-1],ee.pop(),b[oe])for(b[oe]=!1,z=0;z<a.le;z++)y[oe*a.le+z]&&ee.splice(0,0,z);if(0<E)for(x.reset();x.next();)a=x.value,b[a.component]&&--a.column;if(0>E)for(x.reset();x.next();)E=x.value,b[E.component]&&(E.column+=1)}function $E(a){for(var y=ci(),E=a.fl.length,x=0;x<=E;x++)y[x]=[];for(x=a.network.vertexes.iterator;x.next();){var b=x.value;y[E-b.layer][b.index]=b}E=new Dn,ex(y,E);var z=null,ee=null,re=null,oe=null,ce=(a.ve&1)!==0,fe=(a.ve&2)!==0,ye=(a.ve&4)!==0,Ne=(a.ve&8)!==0;for(ce&&(a.verticalAlignment(y,E,!0),z=M0(a,y,!0,!1)),y.reverse(),ye&&(a.verticalAlignment(y,E,!1),re=M0(a,y,!1,!1)),x=ki(y),b=x.next();!b.done;b=x.next())b.value.reverse();Ne&&(a.verticalAlignment(y,E,!1),oe=M0(a,y,!1,!0)),y.reverse(),fe&&(a.verticalAlignment(y,E,!0),ee=M0(a,y,!0,!0)),pi(y),a.u(z,ee,re,oe),a.network.vertexes.each(function(Pe){var Fe=ci();ce&&Fe.push(z.get(Pe)),fe&&Fe.push(ee.get(Pe)),ye&&Fe.push(re.get(Pe)),Ne&&Fe.push(oe.get(Pe)),Fe.sort(function(gt,nt){return gt-nt});var We=Fe.length;We=(Fe[Math.floor((We-1)/2)]+Fe[Math.ceil((We-1)/2)])/2,pi(Fe),Pe.zc=We})}function ex(a,y){for(var E=a.length,x=1;x<E-1;x++)for(var b=0,z=0,ee=a[x],re=a[x+1],oe=0;z<re.length;oe++){var ce=re[oe];e:{if(ce.node===null){var fe=Py(ce);if(0<fe.length){fe=fe[0].node===null;break e}}fe=!1}var ye=fe;if(oe===re.length-1||ye){for(fe=ee.length-1,ye&&(fe=Py(ce)[0].index);z<=oe;){if(ce=re[z],!ce.bo){ye=[];for(var Ne=ki(ce.sourceEdgesArrayAccess),Pe=Ne.next();!Pe.done;Pe=Ne.next())Pe=Pe.value,Pe.valid&&ye.push(Pe);ce.bo=ye}for(ce=ki(ce.bo),ye=ce.next();!ye.done;ye=ce.next())ye=ye.value,Ne=ye.fromVertex.index,(Ne<b||Ne>fe)&&y.add(ye);z++}b=fe}}}eo.prototype.verticalAlignment=function(a,y,E){tx(a),a=ki(a);for(var x=a.next();!x.done;x=a.next()){var b=-1;x=ki(x.value);for(var z=x.next();!z.done;z=x.next()){z=z.value;var ee=E?Py(z):rx(z),re=ee.length;if(0<re){ee.sort(function(ye,Ne){return ye.vi-Ne.vi});var oe=(re-1)/2;for(re=Math.floor(oe),oe=Math.ceil(oe);re<=oe;re++)if(z.align===z){var ce=ee[re],fe=void 0;fe=E?O0(ce,z):O0(z,ce),!y.contains(fe)&&b<ce.vi&&(ce.align=z,z.root=ce.root,z.align=ce.root,b=ce.vi)}}}}};function tx(a){for(var y=0;y<a.length;y++)for(var E=a[y],x=0;x<E.length;x++){var b=E[x];b.root=b,b.align=b,b.Tz=y,b.vi=x}}function M0(a,y,E,x){for(var b=a.K===90||a.K===270,z=ki(y),ee=z.next();!ee.done;ee=z.next()){var re=ki(ee.value);for(ee=re.next();!ee.done;ee=re.next())ee=ee.value,ee.sd=ee,ee.shift=1/0,ee.zc=NaN,ee.qg=0}for(ee=a.K===90||a.K===270,z=ki(y),re=z.next();!re.done;re=z.next()){re=ki(re.value);for(var oe=re.next();!oe.done;oe=re.next())if(oe=oe.value,oe.root===oe){for(var ce=0,fe=oe;fe.align!==oe;){var ye=fe.align,Ne=ee?fe.width:fe.height,Pe=ee?ye.width:ye.height;if(E){var Fe=O0(fe,ye),We=Fe.portFromPos,gt=Fe.portToPos;Fe.link!==null&&(fe.node&&fe.node!==Fe.link.fromNode&&(We=ee?fe.focusX:fe.focusY),ye.node&&ye.node!==Fe.link.toNode&&(gt=ee?ye.focusX:ye.focusY))}else Fe=O0(ye,fe),We=Fe.portToPos,gt=Fe.portFromPos,Fe.link!==null&&(fe.node&&fe.node!==Fe.link.toNode&&(We=ee?fe.focusX:fe.focusY),ye.node&&ye.node!==Fe.link.fromNode&&(gt=ee?ye.focusX:ye.focusY));Ne=x?fe.qg+(Ne-We)-(Pe-gt):fe.qg+We-gt,ye.qg=Ne,ce=Math.min(ce,Ne),fe=fe.align}fe=oe;do fe.qg=fe.qg-ce,fe=fe.align;while(fe!==oe)}}for(E=ki(y),ee=E.next();!ee.done;ee=E.next())for(z=ki(ee.value),ee=z.next();!ee.done;ee=z.next())ee=ee.value,ee.root===ee&&sE(a,ee,y);for(E=0;E<y.length;E++)if(!(0>=y[E].length)&&(ee=y[E][0],ee.sd===ee)){ee.sd.shift===1/0&&(ee.sd.shift=0),ee=E,re=0;do{for(z=y[ee][re];z.align!==z.root;)z=z.align,ee++,0<z.vi&&(re=lE(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(ee<y.length&&re<y[ee].length&&z.sd===y[ee][re].sd)}for(a=new vi,y=ki(y),ee=y.next();!ee.done;ee=y.next())for(E=ki(ee.value),ee=E.next();!ee.done;ee=E.next())ee=ee.value,ee.zc=ee.zc+ee.sd.shift+ee.qg,z=b?ee.width:ee.height,a.add(ee,x?-ee.zc-z:ee.zc);return a}function sE(a,y,E){if(isNaN(y.zc)){y.zc=0;var x=y;do{if(0<x.vi){var b=lE(x,E),z=b.root;sE(a,z,E),y.sd===y&&(y.sd=z.sd);var ee=a.K===90||a.K===270?b.width:b.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+b.qg+ee-x.qg+a.columnSpacing))}x=x.align}while(x!==y);for(;x.align!==y;)x=x.align,x.zc=y.zc,x.sd=y.sd}}function lE(a,y){var E=a.Tz;return a=a.vi,1>a&<("Could not determine previous vertex in layer"),y[E][a-1]}eo.prototype.u=function(a){for(var y=[],E=0;E<arguments.length;++E)y[E]=arguments[E];E=-1;for(var x=ci(),b=ci(),z=1/0,ee=0;4>ee;ee++)if(y[ee]){var re=nx(this,y[ee],x,b,ee);re<z&&(E=ee,z=re)}for(z={},ee=0;4>ee;z={delta:z.delta},ee++)y[ee]&&(z.delta=ee===0||ee===2?x[E]-x[ee]:b[E]-b[ee],z.delta!==0&&y[ee].each(function(oe){return function(ce){ce.value+=oe.delta}}(z)));pi(x),pi(b)};function nx(a,y,E,x,b){if(!y||y.count===0)return E[b]=0,x[b]=0,1/0;var z=1/0,ee=-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>ee&&(ee=re+oe)}),E[b]=z,x[b]=ee,ee-z}eo.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=P0(this,!0),y=P0(this,!1),E=this.network.edges.iterator;E.next();){var x=E.value.link;x!==null&&(x.fromSpot=a,x.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function P0(a,y){return a.K===270?y?es:ts:a.K===90?y?ts:es:a.K===180?y?hs:Ha:y?Ha:hs}eo.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,E=y.layer;this.he[E]=Math.max(this.he[E],this.nodeMinLayerSpace(y,!0)),this.Ld[E]=Math.max(this.Ld[E],this.nodeMinLayerSpace(y,!1))}y=0,E=this.ie;for(var x=0;x<=this.Ia;x++){var b=E;0>=this.he[x]+this.Ld[x]&&(b=0),0<x&&(y+=b/2),this.K===90||this.K===0?(y+=this.Ld[x],this.Kd[x]=y,y+=this.he[x]):(y+=this.he[x],this.Kd[x]=y,y+=this.Ld[x]),x<this.Ia&&(y+=b/2),this.Ta[x]=y}for(E=y,y=this.arrangementOrigin,x=0;x<=this.Ia;x++)this.K===270?this.Kd[x]=y.y+this.Kd[x]:this.K===90?(this.Kd[x]=y.y+E-this.Kd[x],this.Ta[x]=E-this.Ta[x]):this.K===180?this.Kd[x]=y.x+this.Kd[x]:(this.Kd[x]=y.x+E-this.Kd[x],this.Ta[x]=E-this.Ta[x]);E=this.ve!==0,a.reset(),x=this.K===270||this.K===90;for(var z=1/0,ee=b=1/0,re=-1/0;a.next();){var oe=a.value,ce=oe.layer,fe=oe.column|0;x?(ee=y.x+this.kc*fe,ce=this.Kd[ce]):(ee=this.Kd[ce],ce=y.y+this.kc*fe),oe.centerX=ee,oe.centerY=ce,E&&isFinite(oe.zc)&&(x?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),x?(ee=z,re=Math.max(re,oe.bounds.right)):(ee=b,re=Math.max(re,oe.bounds.bottom))}for(this.xw=re-ee,z=y.x-z,y=y.y-b,this.Rf=new dt(E&&x?0:z,E&&!x?0:y),a.reset();a.next();)E=a.value,E.x+=z,E.y+=y,E.commit()},eo.prototype.Gu=function(){for(var a=0,y=this.ie,E=0;E<=this.Ia;E++)a+=this.he[E],a+=this.Ld[E];a+=this.Ia*y,y=[],E=this.ve!==0?this.xw:this.kc*this.Ra;for(var x=this.maxLayer;0<=x;x--)this.K===270?x===0?y.push(new pn(0,0,E,Math.abs(this.Ta[0]))):y.push(new pn(0,this.Ta[x-1],E,Math.abs(this.Ta[x-1]-this.Ta[x]))):this.K===90?x===0?y.push(new pn(0,this.Ta[0],E,Math.abs(this.Ta[0]-a))):y.push(new pn(0,this.Ta[x],E,Math.abs(this.Ta[x-1]-this.Ta[x]))):this.K===180?x===0?y.push(new pn(0,0,Math.abs(this.Ta[0]),E)):y.push(new pn(this.Ta[x-1],0,Math.abs(this.Ta[x-1]-this.Ta[x]),E)):x===0?y.push(new pn(this.Ta[0],0,Math.abs(this.Ta[0]-a),E)):y.push(new pn(this.Ta[x],0,Math.abs(this.Ta[x-1]-this.Ta[x]),E));this.commitLayers(y,this.Rf)},eo.prototype.commitLayers=function(){},eo.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 E=a.value;if(y=E.link,y!==null){y.uh();var x=y,b=x.fromNode,z=x.toNode,ee=x.fromPort,re=x.toPort;if(b!==null){var oe=b.findVisibleNode();oe!==null&&oe!==b&&(b=oe,ee=oe.port)}z!==null&&(oe=z.findVisibleNode(),oe!==null&&oe!==z&&(z=oe,re=oe.port));var ce=y.computeSpot(!0,ee);oe=y.computeSpot(!1,re);var fe=E.fromVertex,ye=E.toVertex;if(E.valid)y.curve===Yl&&y.pointsCount===4&&(fe.column===ye.column&&this.alignOption===0?(E=y.getLinkPoint(b,ee,ce,!0,!1,z,re),re=y.getLinkPoint(z,re,oe,!1,!1,b,ee),E.w()||E.set(b.actualBounds.center),re.w()||re.set(z.actualBounds.center),y.Fj(),y.yf(E.x,E.y),y.yf((2*E.x+re.x)/3,(2*E.y+re.y)/3),y.yf((E.x+2*re.x)/3,(E.y+2*re.y)/3),y.yf(re.x,re.y)):(E=x=!1,ee!==null&&ce===Ti&&(x=!0),re!==null&&oe===Ti&&(E=!0),(x||E)&&(oe=null,x&&(oe=y.getLinkPointFromPoint(b,ee,ee.ga(Xi),y.i(3),!0),oe.w()||oe.set(b.actualBounds.center),y.L(0,oe.x,oe.y)),b=null,E&&(b=y.getLinkPointFromPoint(z,re,re.ga(Xi),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(fe.layer===ye.layer)y.zf();else{var Ne=!1,Pe=!1,Fe=this.ie,We=y.firstPickIndex+1;if(y.isOrthogonal){Pe=!0;var gt=y.pointsCount;4<gt&&y.points.removeRange(2,gt-3)}else if(y.curve===Yl)Ne=!0,gt=y.pointsCount,4<gt&&y.points.removeRange(2,gt-3),gt===4&&(We=2);else{gt=y.pointsCount;var nt=ce===Ti,vt=oe===Ti;2<gt&&nt&&vt?y.points.removeRange(1,gt-2):3<gt&&nt&&!vt?y.points.removeRange(1,gt-3):3<gt&&!nt&&vt?y.points.removeRange(2,gt-2):4<gt&&!nt&&!vt&&y.points.removeRange(2,gt-3)}if(E.rev){for(;ye!==null&&fe!==ye;){var St=gt=null;for(nt=ye.sourceEdges.iterator;nt.next()&&(vt=nt.value,vt.link!==E.link||(gt=vt.fromVertex,St=vt.toVertex,gt.node!==null)););if(gt===null)break;if(gt!==fe){nt=y.i(We-1).x,vt=y.i(We-1).y;var Tt=gt.centerX,Dt=gt.centerY;if(Pe)this.K===180||this.K===0?We===y.firstPickIndex+1?(y.m(We++,nt,vt),y.m(We++,nt,Dt)):(St!==null?St.centerY:vt)!==Dt&&(St=this.Ta[gt.layer-1]+this.Rf.x,y.m(We++,St,vt),y.m(We++,St,Dt)):We===y.firstPickIndex+1?(y.m(We++,nt,vt),y.m(We++,Tt,vt)):(St!==null?St.centerX:nt)!==Tt&&(St=this.Ta[gt.layer-1]+this.Rf.y,y.m(We++,nt,St),y.m(We++,Tt,St));else if(We===y.firstPickIndex+1){St=Math.max(10,this.he[ye.layer]);var Xt=Math.max(10,this.Ld[ye.layer]);if(Ne)this.K===180?Tt<=ye.bounds.x?(ye=ye.bounds.x,y.m(We++,ye-St,Dt),y.m(We++,ye,Dt),y.m(We++,ye+Xt,Dt)):(y.m(We++,Tt-St,Dt),y.m(We++,Tt,Dt),y.m(We++,Tt+Xt,Dt)):this.K===90?Dt>=ye.bounds.bottom?(ye=ye.bounds.y+ye.bounds.height,y.m(We++,Tt,ye+Xt),y.m(We++,Tt,ye),y.m(We++,Tt,ye-St)):(y.m(We++,Tt,Dt+Xt),y.m(We++,Tt,Dt),y.m(We++,Tt,Dt-St)):this.K===270?Dt<=ye.bounds.y?(ye=ye.bounds.y,y.m(We++,Tt,ye-St),y.m(We++,Tt,ye),y.m(We++,Tt,ye+Xt)):(y.m(We++,Tt,Dt-St),y.m(We++,Tt,Dt),y.m(We++,Tt,Dt+Xt)):this.K===0&&(Tt>=ye.bounds.right?(ye=ye.bounds.x+ye.bounds.width,y.m(We++,ye+Xt,Dt),y.m(We++,ye,Dt),y.m(We++,ye-St,Dt)):(y.m(We++,Tt+Xt,Dt),y.m(We++,Tt,Dt),y.m(We++,Tt-St,Dt)));else{y.m(We++,nt,vt);var ai=0;this.K===180||this.K===0?((this.K===180?Tt>=ye.bounds.right:Tt<=ye.bounds.x)&&(ai=(this.K===0?-St:Xt)/2),y.m(We++,nt+ai,Dt)):((this.K===270?Dt>=ye.bounds.bottom:Dt<=ye.bounds.y)&&(ai=(this.K===90?-St:Xt)/2),y.m(We++,Tt,vt+ai)),y.m(We++,Tt,Dt)}}else St=Math.max(10,this.he[gt.layer]),Xt=Math.max(10,this.Ld[gt.layer]),Ne?this.K===180?(y.m(We++,Tt-St-Fe,Dt),y.m(We++,Math.min(Tt-St+Fe/2,Tt),Dt),y.m(We++,Tt,Dt),y.m(We++,Tt,Dt),y.m(We++,Math.max(Tt+Xt-Fe/2,Tt),Dt),y.m(We++,Tt+Xt+Fe,Dt)):this.K===90?(y.m(We++,Tt,Dt+Xt+Fe),y.m(We++,Tt,Math.max(Dt+Xt-Fe/2,Dt)),y.m(We++,Tt,Dt),y.m(We++,Tt,Dt),y.m(We++,Tt,Math.min(Dt-St+Fe/2,Dt)),y.m(We++,Tt,Dt-St-Fe)):this.K===270?(y.m(We++,Tt,Dt-St-Fe),y.m(We++,Tt,Math.min(Dt-St+Fe/2,Dt)),y.m(We++,Tt,Dt),y.m(We++,Tt,Dt),y.m(We++,Tt,Math.max(Dt+Xt-Fe/2,Dt)),y.m(We++,Tt,Dt+Xt+Fe)):(y.m(We++,Tt+Xt+Fe,Dt),y.m(We++,Math.max(Tt+Xt-Fe/2,Tt),Dt),y.m(We++,Tt,Dt),y.m(We++,Tt,Dt),y.m(We++,Math.min(Tt-St+Fe/2,Tt),Dt),y.m(We++,Tt-St-Fe,Dt)):y.m(We++,Tt,Dt)}ye=gt}(re===null||ce!==Ti||Pe)&&(nt=y.i(We-1).x,vt=y.i(We-1).y,Tt=y.i(We).x,Dt=y.i(We).y,Pe?(Fe=this.Ld[fe.layer],this.K===180||this.K===0?(Pe=vt,Pe>=fe.bounds.y&&Pe<=fe.bounds.bottom&&(this.K===180?Tt>=fe.bounds.x:Tt<=fe.bounds.right)&&(ye=fe.centerX+(this.K===180?-Fe:Fe),Pe<fe.bounds.y+fe.bounds.height/2?Pe=fe.bounds.y-this.kc/2:Pe=fe.bounds.bottom+this.kc/2,y.m(We++,ye,vt),y.m(We++,ye,Pe)),y.m(We++,Tt,Pe)):(Pe=nt,Pe>=fe.bounds.x&&Pe<=fe.bounds.right&&(this.K===270?Dt>=fe.bounds.y:Dt<=fe.bounds.bottom)&&(ye=fe.centerY+(this.K===270?-Fe:Fe),Pe<fe.bounds.x+fe.bounds.width/2?Pe=fe.bounds.x-this.kc/2:Pe=fe.bounds.right+this.kc/2,y.m(We++,nt,ye),y.m(We++,Pe,ye)),y.m(We++,Pe,Dt)),y.m(We++,Tt,Dt)):Ne?(St=Math.max(10,this.he[fe.layer]),Xt=Math.max(10,this.Ld[fe.layer]),this.K===180&&Tt>=fe.bounds.x?(ye=fe.bounds.x+fe.bounds.width,y.L(We-2,ye,vt),y.L(We-1,ye+Xt,vt)):this.K===90&&Dt<=fe.bounds.bottom?(ye=fe.bounds.y,y.L(We-2,nt,ye),y.L(We-1,nt,ye-St)):this.K===270&&Dt>=fe.bounds.y?(ye=fe.bounds.y+fe.bounds.height,y.L(We-2,nt,ye),y.L(We-1,nt,ye+Xt)):this.K===0&&Tt<=fe.bounds.right&&(ye=fe.bounds.x,y.L(We-2,ye,vt),y.L(We-1,ye-St,vt))):(St=Math.max(10,this.he[fe.layer]),Xt=Math.max(10,this.Ld[fe.layer]),Pe=0,this.K===180||this.K===0?((this.K===180?Tt<=fe.bounds.x:Tt>=fe.bounds.right)&&(Pe=(this.K===0?Xt:-St)/2),y.m(We++,Tt+Pe,vt)):((this.K===270?Dt<=fe.bounds.y:Dt>=fe.bounds.bottom)&&(Pe=(this.K===90?Xt:-St)/2),y.m(We++,nt,Dt+Pe)),y.m(We++,Tt,Dt)))}else{for(;fe!==null&&fe!==ye;){for(St=gt=null,fe=fe.destinationEdges.iterator;fe.next()&&(nt=fe.value,nt.link!==E.link||(gt=nt.toVertex,St=nt.fromVertex,St.node!==null&&(St=null),gt.node!==null)););if(gt===null)break;gt!==ye&&(nt=y.i(We-1).x,vt=y.i(We-1).y,Tt=gt.centerX,Dt=gt.centerY,Pe?this.K===180||this.K===0?(St!==null?St.centerY:vt)!==Dt&&(St=this.Ta[gt.layer]+this.Rf.x,We===y.firstPickIndex+1&&(St=this.K===0?Math.max(St,nt):Math.min(St,nt)),y.m(We++,St,vt),y.m(We++,St,Dt)):(St!==null?St.centerX:nt)!==Tt&&(St=this.Ta[gt.layer]+this.Rf.y,We===y.firstPickIndex+1&&(St=this.K===90?Math.max(St,vt):Math.min(St,vt)),y.m(We++,nt,St),y.m(We++,Tt,St)):(St=Math.max(10,this.he[gt.layer]),Xt=Math.max(10,this.Ld[gt.layer]),Ne?this.K===180?(y.m(We++,Tt+Xt+Fe,Dt),y.m(We++,Math.max(Tt+Xt-Fe/2,Tt),Dt),y.m(We++,Tt,Dt),y.m(We++,Tt,Dt),y.m(We++,Math.min(Tt-St+Fe/2,Tt),Dt),y.m(We++,Tt-St-Fe,Dt)):this.K===90?(y.m(We++,Tt,Dt-St-Fe),y.m(We++,Tt,Math.min(Dt-St+Fe/2,Dt)),y.m(We++,Tt,Dt),y.m(We++,Tt,Dt),y.m(We++,Tt,Math.max(Dt+Xt-Fe/2,Dt)),y.m(We++,Tt,Dt+Xt+Fe)):this.K===270?(y.m(We++,Tt,Dt+Xt+Fe),y.m(We++,Tt,Math.max(Dt+Xt-Fe/2,Dt)),y.m(We++,Tt,Dt),y.m(We++,Tt,Dt),y.m(We++,Tt,Math.min(Dt-St+Fe/2,Dt)),y.m(We++,Tt,Dt-St-Fe)):(y.m(We++,Tt-St-Fe,Dt),y.m(We++,Math.min(Tt-St+Fe/2,Tt),Dt),y.m(We++,Tt,Dt),y.m(We++,Tt,Dt),y.m(We++,Math.max(Tt+Xt-Fe/2,Tt),Dt),y.m(We++,Tt+Xt+Fe,Dt)):this.K===180?(y.m(We++,Tt+Xt,Dt),y.m(We++,Tt-St,Dt)):this.K===90?(y.m(We++,Tt,Dt-St),y.m(We++,Tt,Dt+Xt)):this.K===270?(y.m(We++,Tt,Dt+Xt),y.m(We++,Tt,Dt-St)):(y.m(We++,Tt-St,Dt),y.m(We++,Tt+Xt,Dt)))),fe=gt}Pe&&(nt=y.i(We-1).x,vt=y.i(We-1).y,Tt=y.i(We).x,Dt=y.i(We).y,this.K===180||this.K===0?vt!==Dt&&(St=this.K===0?Math.min(Math.max((Tt+nt)/2,this.Ta[ye.layer]+this.Rf.x),Tt):Math.max(Math.min((Tt+nt)/2,this.Ta[ye.layer]+this.Rf.x),Tt),y.m(We++,St,vt),y.m(We++,St,Dt)):nt!==Tt&&(St=this.K===90?Math.min(Math.max((Dt+vt)/2,this.Ta[ye.layer]+this.Rf.y),Dt):Math.max(Math.min((Dt+vt)/2,this.Ta[ye.layer]+this.Rf.y),Dt),y.m(We++,nt,St),y.m(We++,Tt,St)))}x!==null&&Ne&&4<=y.pointsCount&&(ee!==null&&(ee=ce===Ti?y.getLinkPointFromPoint(b,ee,ee.ga(Xi),y.i(3),!0):y.i(0),ce===Ti&&(ce=y.i(2),x=y.i(3),this.direction===90||this.direction===270?(y.L(1,(ee.x+ce.x)/2,ce.y),y.L(2,x.x,(ce.y+x.y)/2)):(y.L(1,ce.x,(ee.y+ce.y)/2),y.L(2,(ce.x+x.x)/2,x.y))),ee.w()||ee.set(b.actualBounds.center),y.L(0,ee.x,ee.y)),re!==null&&(b=oe===Ti?y.getLinkPointFromPoint(z,re,re.ga(Xi),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),oe===Ti&&(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(),E.commit()}}}this.avoidOrthogonalOverlaps()},eo.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Un,y=this.network.edges.iterator;y.next();){var E=y.value.link;E!==null&&E.isOrthogonal&&!a.contains(E)&&a.add(E)}if(0<a.count)if(this.K===90||this.K===270){for(y=0,E=[],a=a.iterator;a.next();){var x=a.value;if(x!==null&&x.isOrthogonal)for(var b=2;b<x.pointsCount-3;b++){var z=x.i(b),ee=x.i(b+1);if(this.B(z.y,ee.y)&&!this.B(z.x,ee.x)){var re=new rh;re.layer=Math.floor(z.y/2);var oe=x.i(0),ce=x.i(x.pointsCount-1);if(re.first=oe.x*oe.x+oe.y,re.jc=ce.x*ce.x+ce.y,re.rd=Math.min(z.x,ee.x),re.Ic=Math.max(z.x,ee.x),re.index=b,re.link=x,b+2<x.pointsCount){oe=x.i(b-1),ce=x.i(b+2);var fe=0;oe.y<z.y?fe=ce.y<z.y?3:z.x<ee.x?2:1:oe.y>z.y&&(fe=ce.y>z.y?0:ee.x<z.x?2:1),re.j=fe}E.push(re)}}}if(1<E.length)for(E.sort(this.Vx),a=0;a<E.length;){for(z=E[a].layer,x=a+1;x<E.length&&E[x].layer===z;)x++;if(1<x-a)for(z=a;z<x;){for(ee=E[z].Ic,b=a+1;b<x&&E[b].rd<ee;)ee=Math.max(ee,E[b].Ic),b++;if(ee=b-z,1<ee){for(this.zi(E,this.Js,z,z+ee),fe=1,re=E[z].jc,oe=z;oe<b;oe++)ce=E[oe],ce.jc!==re&&(fe++,re=ce.jc);this.zi(E,this.Ux,z,z+ee);var ye=1;for(re=E[z].first,oe=z;oe<b;oe++)ce=E[oe],ce.first!==re&&(ye++,re=ce.first);for(oe=!0,ce=ye,fe<ye?(oe=!1,ce=fe,re=E[z].jc,this.zi(E,this.Js,z,z+ee)):re=E[z].first,fe=0,ye=z;ye<b;ye++){var Ne=E[ye];(oe?Ne.first:Ne.jc)!==re&&(fe++,re=oe?Ne.first:Ne.jc);var Pe=Ne.link;z=Pe.i(Ne.index),ee=Pe.i(Ne.index+1);var Fe=this.linkSpacing*(fe-(ce-1)/2);y++,Pe.uh(),Pe.L(Ne.index,z.x,z.y+Fe),Pe.L(Ne.index+1,ee.x,ee.y+Fe),Pe.zf()}}z=b}a=x}}else{for(y=0,E=[],a=a.iterator;a.next();)if(x=a.value,x!==null&&x.isOrthogonal)for(b=2;b<x.pointsCount-3;b++)z=x.i(b),ee=x.i(b+1),this.B(z.x,ee.x)&&!this.B(z.y,ee.y)&&(re=new rh,re.layer=Math.floor(z.x/2),oe=x.i(0),ce=x.i(x.pointsCount-1),re.first=oe.x+oe.y*oe.y,re.jc=ce.x+ce.y*ce.y,re.rd=Math.min(z.y,ee.y),re.Ic=Math.max(z.y,ee.y),re.index=b,re.link=x,b+2<x.pointsCount&&(oe=x.i(b-1),ce=x.i(b+2),fe=0,oe.x<z.x?fe=ce.x<z.x?3:z.y<ee.y?2:1:oe.x>z.x&&(fe=ce.x>z.x?0:ee.y<z.y?2:1),re.j=fe),E.push(re));if(1<E.length)for(E.sort(this.Vx),a=0;a<E.length;){for(z=E[a].layer,x=a+1;x<E.length&&E[x].layer===z;)x++;if(1<x-a)for(z=a;z<x;){for(ee=E[z].Ic,b=a+1;b<x&&E[b].rd<ee;)ee=Math.max(ee,E[b].Ic),b++;if(ee=b-z,1<ee){for(this.zi(E,this.Js,z,z+ee),fe=1,re=E[z].jc,oe=z;oe<b;oe++)ce=E[oe],ce.jc!==re&&(fe++,re=ce.jc);for(this.zi(E,this.Ux,z,z+ee),ye=1,re=E[z].first,oe=z;oe<b;oe++)ce=E[oe],ce.first!==re&&(ye++,re=ce.first);for(oe=!0,ce=ye,fe<ye?(oe=!1,ce=fe,re=E[z].jc,this.zi(E,this.Js,z,z+ee)):re=E[z].first,fe=0,ye=z;ye<b;ye++)Ne=E[ye],(oe?Ne.first:Ne.jc)!==re&&(fe++,re=oe?Ne.first:Ne.jc),Pe=Ne.link,z=Pe.i(Ne.index),ee=Pe.i(Ne.index+1),Fe=this.linkSpacing*(fe-(ce-1)/2),y++,Pe.uh(),Pe.L(Ne.index,z.x+Fe,z.y),Pe.L(Ne.index+1,ee.x+Fe,ee.y),Pe.zf()}z=b}a=x}}}},ke=eo.prototype,ke.Vx=function(a,y){return a instanceof rh&&y instanceof rh&&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},ke.Ux=function(a,y){return a instanceof rh&&y instanceof rh&&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},ke.Js=function(a,y){return a instanceof rh&&y instanceof rh&&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},ke.B=function(a,y){return a-=y,-1<a&&1>a},ke.zi=function(a,y,E,x){var b=a.length,z=x-E;if(!(1>=z))if((0>E||E>=b-1)&<("not in range 0 <= from < length: "+E),z===2)x=a[E],b=a[E+1],0<y(x,b)&&(a[E]=b,a[E+1]=x);else if(E===0)if(x>=b)a.sort(y);else for(E=a.slice(0,x),E.sort(y),y=0;y<x;y++)a[y]=E[y];else if(x>=b)for(x=a.slice(E),x.sort(y),y=E;y<b;y++)a[y]=x[y-E];else for(b=a.slice(E,x),b.sort(y),y=E;y<x;y++)a[y]=b[y-E]};function nh(a,y){var E=a.tc[y];if(E>=a.He.length){for(var x=[],b=0;b<a.He.length;b++)x[b]=a.He[b];a.He=x}for(a.He[E]===void 0||a.He[E]===null?x=[]:(x=a.He[E],a.He[E]=null),a=a.fl[y],y=0;y<a.length;y++)E=a[y],x[E.index]=E;return x}function ih(a,y,E){a.He[a.tc[y]]=E}zt.Object.defineProperties(eo.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!==by&&a!==L0&&a!==Rp||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==I0&&a!==wy&&a!==Ty||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==k0&&a!==Ay&&a!==Cy||(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!==Ny&&a!==D0&&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 L0=new Mn(eo,"CycleDepthFirst",0),by=new Mn(eo,"CycleGreedy",1),Rp=new Mn(eo,"CycleFromLayers",2),I0=new Mn(eo,"LayerOptimalLinkLength",0),wy=new Mn(eo,"LayerLongestPathSink",1),Ty=new Mn(eo,"LayerLongestPathSource",2),k0=new Mn(eo,"InitDepthFirstOut",0),Ay=new Mn(eo,"InitDepthFirstIn",1),Cy=new Mn(eo,"InitNaive",2),Ny=new Mn(eo,"AggressiveNone",0),D0=new Mn(eo,"AggressiveLess",1),My=new Mn(eo,"AggressiveMore",2),ix=8;eo.className="LayeredDigraphLayout",eo.CycleDepthFirst=L0,eo.CycleGreedy=by,eo.CycleFromLayers=Rp,eo.LayerOptimalLinkLength=I0,eo.LayerLongestPathSink=wy,eo.LayerLongestPathSource=Ty,eo.InitDepthFirstOut=k0,eo.InitDepthFirstIn=Ay,eo.InitNaive=Cy,eo.AggressiveNone=Ny,eo.AggressiveLess=D0,eo.AggressiveMore=My,eo.PackNone=0,eo.PackExpand=1,eo.PackStraighten=2,eo.PackMedian=4,eo.PackAll=15,eo.AlignNone=0,eo.AlignUpperLeft=1,eo.AlignUpperRight=2,eo.AlignLowerLeft=4,eo.AlignLowerRight=8,eo.AlignAll=15;function rh(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}rh.className="SegInfo";function fg(a){xo.call(this,a)}en(fg,xo),fg.prototype.createVertex=function(){return new su(this)},fg.prototype.createEdge=function(){return new Fp(this)},fg.className="LayeredDigraphNetwork";function su(a){Na.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}en(su,Na);function uE(a,y){return a.index-y.index}function O0(a,y){if(!a.$n){for(var E=[],x=ki(a.destinationEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&E.push(b);a.$n=E}for(a=ki(a.$n),E=a.next();!E.done;E=a.next())if(E=E.value,E.toVertex===y)return E;lt("Unable to find destination edge to given vertex")}function Py(a){if(!a.co){for(var y=[],E=ki(a.sourceEdgesArrayAccess),x=E.next();!x.done;x=E.next())x=x.value,x.valid&&y.push(x.fromVertex);y.sort(uE),a.co=y}return a.co}function rx(a){if(!a.ao){for(var y=[],E=ki(a.destinationEdgesArrayAccess),x=E.next();!x.done;x=E.next())x=x.value,x.valid&&y.push(x.toVertex);y.sort(uE),a.ao=y}return a.ao}su.prototype.Cl=function(a){Na.prototype.Cl.call(this,a),this.bo=this.co=null},su.prototype.Kl=function(a){Na.prototype.Kl.call(this,a),this.bo=this.co=null},su.prototype.zl=function(a){Na.prototype.zl.call(this,a),this.$n=this.ao=null},su.prototype.Jl=function(a){Na.prototype.Jl.call(this,a),this.$n=this.ao=null},zt.Object.defineProperties(su.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)}}}),su.prototype.deleteDestinationEdge=su.prototype.Jl,su.prototype.addDestinationEdge=su.prototype.zl,su.prototype.deleteSourceEdge=su.prototype.Kl,su.prototype.addSourceEdge=su.prototype.Cl,su.className="LayeredDigraphVertex";function Fp(a){Pl.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}en(Fp,Pl),zt.Object.defineProperties(Fp.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)}}}),Fp.className="LayeredDigraphEdge";function Nr(a){Oo.call(this),this.Ub=new Dn,this.Wn=_0,this.ud=Bc,this.vo=z0,this.Bq=zy,this.$v=[],this.td=!0,this.Rb=U0,this.$d=new ti(10,10).freeze();var y=new yf(this);this.W=new xu(y),this.Y=new xu(y),this.ru=[],a&&Object.assign(this,a)}en(Nr,Oo),Nr.prototype.cloneProtected=function(a){Oo.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)},Nr.prototype.qb=function(a){a.classType===Nr?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):Oo.prototype.qb.call(this,a)},Nr.prototype.createNetwork=function(){return new yf(this)},Nr.prototype.makeNetwork=function(a){function y(x){if(x instanceof li)return!x.isLinkLabel&&x.category!=="Comment";if(x instanceof Jn){var b=x.fromNode;return b===null||b.isLinkLabel||b.category==="Comment"?!1:(x=x.toNode,!(x===null||x.isLinkLabel||x.category==="Comment"))}return!1}var E=this.createNetwork();return a instanceof Jt?(E.lg(a.nodes,!0,y),E.lg(a.links,!0,y)):a instanceof dr?E.lg(a.memberParts,!1,y):E.lg(a.iterator,!1,y),E},Nr.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==H0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof Jt&&(y=a),this.path===_0&&y!==null?this.ud=y.isTreePathToChildren?Bc:mf:this.ud=this.path===_0?Bc: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 Dn,y=this.Ub.iterator;y.next();){var E=y.value;E instanceof li?(E=this.network.ki(E),E!==null&&a.add(E)):E instanceof xu&&a.add(E)}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,Ly(this,y));for(y=this.network.vertexes,a=null;a=ox(y),0<a.count;)y=cE(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,Ly(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof xu&&hE(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof xu&&fE(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof xu&&gE(this,y);if(this.Cu(),this.layerStyle===G0){for(a=[],y=this.network.vertexes.iterator;y.next();){E=y.value;var x=E.parent;x===null&&(x=E),x=x.angle===0||x.angle===180;var b=a[E.level];b===void 0&&(b=0),a[E.level]=Math.max(b,x?E.width:E.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();)E=y.value,x=E.parent,x===null&&(x=E),x.angle===0||x.angle===180?(x.angle===180&&(E.focusX+=a[E.level]-E.width),E.width=a[E.level]):(x.angle===270&&(E.focusY+=a[E.level]-E.height),E.height=a[E.level])}else if(this.layerStyle===Uy)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,E=y.angle===0||y.angle===180,x=-1,b=0;b<y.children.length;b++){var z=y.children[b];x=Math.max(x,E?z.width:z.height)}if(0<=x)for(b=0;b<y.children.length;b++)z=y.children[b],E?(y.angle===180&&(z.focusX+=x-z.width),z.width=x):(y.angle===270&&(z.focusY+=x-z.height),z.height=x)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof xu&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new Dn,this.isValidLayout=!0};function ox(a){var y=new Dn;for(a=a.iterator;a.next();){var E=a.value;E.initialized||y.add(E)}return y}Nr.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var E=y.value;switch(this.ud){case Bc:E.sourceEdges.count===0&&this.Ub.add(E);break;case mf:E.destinationEdges.count===0&&this.Ub.add(E);break;default:lt("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=cE(this,a),a!==null&&this.Ub.add(a))};function cE(a,y){var E=999999,x=null;for(y=y.iterator;y.next();){var b=y.value;switch(a.ud){case Bc:b.sourceEdges.count<E&&(E=b.sourceEdges.count,x=b);break;case mf:b.destinationEdges.count<E&&(E=b.destinationEdges.count,x=b);break;default:lt("Unhandled path value "+a.ud.toString())}}return x}function Ly(a,y){if(y!==null){switch(a.ud){case Bc:if(0<y.destinationEdges.count){for(var E=new Un,x=y.destinationVertexes;x.next();){var b=x.value;dE(a,y,b)&&E.add(b)}0<E.count&&(y.children=E.Fa())}break;case mf:if(0<y.sourceEdges.count){for(E=new Un,x=y.sourceVertexes;x.next();)b=x.value,dE(a,y,b)&&E.add(b);0<E.count&&(y.children=E.Fa())}break;default:lt("Unhandled path value"+a.ud.toString())}for(E=y.children,x=E.length,b=0;b<x;b++){var z=E[b];z.initialized=!0,z.level=y.level+1,z.parent=y,a.Ub.remove(z)}for(y=0;y<x;y++)Ly(a,E[y])}}function dE(a,y,E){if(E.initialized){if(y===null)var x=!1;else{for(x=y.parent;x!==null&&x!==E;)x=x.parent;x=x===E}if(x||E.level>y.level)return!1;a.removeChild(E.parent,E)}return!0}Nr.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var E=a.children,x=0,b=0;b<E.length;b++)E[b]===y&&x++;if(0<x){x=Array(E.length-x);for(var z=b=0;z<E.length;z++)E[z]!==y&&(x[b++]=E[z]);a.children=x}}};function hE(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===zc&&a.sortTreeVertexChildren(y);for(var E=0,x=y.childrenCount,b=0,z=y.children,ee=z.length,re=0;re<ee;re++){var oe=z[re];hE(a,oe),E+=oe.descendantCount+1,x=Math.max(x,oe.maxChildrenCount),b=Math.max(b,oe.maxGenerationCount)}y.descendantCount=E,y.maxChildrenCount=x,y.maxGenerationCount=0<x?b+1:0}}function ax(a,y){switch(a.vo){default:case z0:return y.parent!==null?y.parent:a.W;case _y:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case By:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Fy:var E=!0;if(y.childrenCount===0)E=!1;else for(var x=y.children,b=x.length,z=0;z<b;z++)if(0<x[z].childrenCount){E=!1;break}return E&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}Nr.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(ax(this,a)),a.parent!==null&&a.parent.alignment===zc){for(var y=a.angle,E=a.parent.children,x=0;x<E.length&&a!==E[x];)x++;x%2===0?x!==E.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 fE(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var E=y.length,x=0;x<E;x++)fE(a,y[x])}}Nr.prototype.assignTreeVertexValues=function(){};function gE(a,y){if(y!==null){y.alignment!==zc&&a.sortTreeVertexChildren(y),y=y.children;for(var E=y.length,x=0;x<E;x++)gE(a,y[x])}}Nr.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case gg:break;case _p:a.children.reverse();break;case jp:a.children.sort(a.comparer);break;case zp:a.children.sort(a.comparer),a.children.reverse();break;default:lt("Unhandled sorting value "+a.sorting.toString())}},Nr.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Nr.prototype.addComments=function(a){var y=a.angle,E=a.parent,x=0,b=!1;E!==null&&(x=E.angle,b=E.alignment,b=oh(b)),y=y===90||y===270,x=x===90||x===270,E=a.childrenCount===0;var z=0,ee=0,re=0,oe=a.commentSpacing;if(a.node!==null)for(var ce=a.node.Mu();ce.next();){var fe=ce.value;fe.category==="Comment"&&fe.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(fe),fe.Va(),fe=fe.measuredBounds,y&&!E||!b&&!x&&E||b&&x&&E?(z=Math.max(z,fe.width),ee+=fe.height+Math.abs(re)):(z+=fe.width+Math.abs(re),ee=Math.max(ee,fe.height)),re=oe)}a.comments!==null&&(y&&!E||!b&&!x&&E||b&&x&&E?(z+=Math.abs(a.commentMargin),ee=Math.max(0,ee-a.height)):(ee+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),b=pn.allocAt(0,0,a.bounds.width+z,a.bounds.height+ee),a.bounds=b,pn.free(b))};function oh(a){return a===Cd||a===zc||a===Nd||a===$c}function Bp(a){return a===Cd||a===zc}function Iy(a){var y=a.parent;if(y!==null){var E=y.alignment;if(oh(E)){if(Bp(E)){for(y=y.children,E=0;E<y.length&&a!==y[E];)E++;return E%2===0}if(E===Nd)return!0}}return!1}Nr.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,E=a.parent,x=a.angle,b=0,z=!1;E!==null&&(b=E.angle,z=E.alignment,z=oh(z)),x=x===90||x===270,E=b===90||b===270;for(var ee=a.childrenCount===0,re=Iy(a),oe=0,ce=a.comments,fe=ce.length,ye=dt.alloc(),Ne=0;Ne<fe;Ne++){var Pe=ce[Ne],Fe=Pe.measuredBounds;if(x&&!ee||!z&&!E&&ee||z&&E&&ee){if(135<b&&!z||E&&re)if(0<=a.commentMargin)for(ye.h(a.bounds.x-a.commentMargin-Fe.width,a.bounds.y+oe),Pe.move(ye),Pe=Pe.Sd();Pe.next();){var We=Pe.value;We.fromSpot=hs,We.toSpot=Ha}else for(ye.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+oe),Pe.move(ye),Pe=Pe.Sd();Pe.next();)We=Pe.value,We.fromSpot=Ha,We.toSpot=hs;else if(0<=a.commentMargin)for(ye.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+oe),Pe.move(ye),Pe=Pe.Sd();Pe.next();)We=Pe.value,We.fromSpot=Ha,We.toSpot=hs;else for(ye.h(a.bounds.x+a.commentMargin-Fe.width,a.bounds.y+oe),Pe.move(ye),Pe=Pe.Sd();Pe.next();)We=Pe.value,We.fromSpot=hs,We.toSpot=Ha;oe=0<=a.commentSpacing?oe+(Fe.height+a.commentSpacing):oe+(a.commentSpacing-Fe.height)}else{if(135<b&&!z||!E&&re)if(0<=a.commentMargin)for(ye.h(a.bounds.x+oe,a.bounds.y-a.commentMargin-Fe.height),Pe.move(ye),Pe=Pe.Sd();Pe.next();)We=Pe.value,We.fromSpot=es,We.toSpot=ts;else for(ye.h(a.bounds.x+oe,a.bounds.y+2*a.focus.y-a.commentMargin),Pe.move(ye),Pe=Pe.Sd();Pe.next();)We=Pe.value,We.fromSpot=ts,We.toSpot=es;else if(0<=a.commentMargin)for(ye.h(a.bounds.x+oe,a.bounds.y+2*a.focus.y+a.commentMargin),Pe.move(ye),Pe=Pe.Sd();Pe.next();)We=Pe.value,We.fromSpot=ts,We.toSpot=es;else for(ye.h(a.bounds.x+oe,a.bounds.y+a.commentMargin-Fe.height),Pe.move(ye),Pe=Pe.Sd();Pe.next();)We=Pe.value,We.fromSpot=es,We.toSpot=ts;oe=0<=a.commentSpacing?oe+(Fe.width+a.commentSpacing):oe+(a.commentSpacing-Fe.width)}}if(dt.free(ye),y=oe-a.commentSpacing-(x?y.height:y.width),this.ud===Bc)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)}},Nr.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,E=y.length,x=0;x<E;x++)this.layoutTree(y[x]);switch(a.compaction){case j0:pE(this,a);break;case Up:if(a.alignment===zc)pE(this,a);else if(a.childrenCount===0)x=a.parent,E=!1,y=0,x!==null&&(y=x.angle,E=x.alignment,E=oh(E)),x=Iy(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||E)&&!x?a.la.h(0,0):y===180&&!E||(y===90||y===270)&&x?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=zu(a);y=b===90||b===270;var z=0,ee=a.children,re=ee.length;for(E=0;E<re;E++)x=ee[E],z=Math.max(z,y?x.Da.width:x.Da.height);var oe=a.alignment;x=oe===_c;var ce=oe===jc,fe=oh(oe),ye=Math.max(0,a.breadthLimit);E=this.computeLayerSpacing(a);var Ne=a.nodeSpacing,Pe=this.computeNodeIndent(a),Fe=a.rowSpacing,We=0;(x||ce||a.hm||a.im&&a.maxGenerationCount===1)&&(We=Math.max(0,a.rowIndent)),x=a.width;var gt=a.height,nt=0,vt=0,St=0,Tt=null,Dt=null,Xt=0,ai=0,Ci=0,Ei=0,Xn=0,In=0,cr=0,$i=0;if(fe&&!Bp(oe)&&135<b&&ee.reverse(),Bp(oe))if(1<re)for(var Wr=0;Wr<re;Wr++)Wr%2===0&&Wr!==re-1&&($i=Math.max($i,y?ee[Wr].Da.width:ee[Wr].Da.height));else re===1&&($i=y?ee[0].Da.width:ee[0].Da.height);if(fe){switch(oe){case Cd:vt=135>b?mE(this,a,ee,$i,nt,vt):vE(this,a,ee,$i,nt,vt),$i=vt.x,nt=vt.width,vt=vt.height;break;case Nd:for(Tt=0;Tt<re;Tt++)Dt=ee[Tt],ye=Dt.Da,St=In===0?0:Fe,y?(Dt.S.h(z-ye.width,Ei+St),nt=Math.max(nt,ye.width),vt=Math.max(vt,Ei+St+ye.height),Ei+=St+ye.height):(Dt.S.h(Ci+St,z-ye.height),nt=Math.max(nt,Ci+St+ye.width),vt=Math.max(vt,ye.height),Ci+=St+ye.width),In++;break;case $c:for(Tt=0;Tt<re;Tt++)Dt=ee[Tt],z=Dt.Da,ye=In===0?0:Fe,y?(Dt.S.h(Ne/2+a.focus.x,Ei+ye),nt=Math.max(nt,z.width),vt=Math.max(vt,Ei+ye+z.height),Ei+=ye+z.height):(Dt.S.h(Ci+ye,Ne/2+a.focus.y),nt=Math.max(nt,Ci+ye+z.width),vt=Math.max(vt,z.height),Ci+=ye+z.width),In++}Tt=pl(this,2),Dt=pl(this,2),y?(Tt[0].h(0,0),Tt[1].h(0,vt),Dt[0].h(nt,0)):(Tt[0].h(0,0),Tt[1].h(nt,0),Dt[0].h(0,vt)),Dt[1].h(nt,vt)}else for(Wr=0;Wr<re;Wr++){var vo=ee[Wr],Oa=vo.Da;if(y){0<ye&&0<In&&Ci+Ne+Oa.width>ye&&(Ci<z&&zh(a,oe,z-Ci,0,cr,Wr-1),Xn++,In=0,cr=Wr,St=vt,Ci=0,Ei=135<b?-vt-Fe:vt+Fe),F0(this,vo,0,Ei);var ja=0;if(In===0)Tt=vo.Yo,Dt=vo.kp,Xt=Oa.width,ai=Oa.height,(Tt===null||Dt===null||b!==zu(vo))&&(Tt=pl(this,2),Dt=pl(this,2),Tt[0].h(0,0),Tt[1].h(0,ai),Dt[0].h(Xt,0),Dt[1].h(Xt,ai));else{var ks=ci();ai=yE(this,a,vo,Tt,Dt,Xt,ai,ks),ja=ai.x,Tt=ks[0],Dt=ks[1],Xt=ai.width,ai=ai.height,pi(ks),Ci<Oa.width&&0>ja&&(pf(a,-ja,0,cr,Wr-1),B0(Tt,-ja,0),B0(Dt,-ja,0),ja=0)}vo.S.h(ja,Ei),nt=Math.max(nt,Xt),vt=Math.max(vt,St+(Xn===0?0:Fe)+Oa.height),Ci=Xt}else 0<ye&&0<In&&Ei+Ne+Oa.height>ye&&(Ei<z&&zh(a,oe,0,z-Ei,cr,Wr-1),Xn++,In=0,cr=Wr,St=nt,Ei=0,Ci=135<b?-nt-Fe:nt+Fe),F0(this,vo,Ci,0),ja=0,In===0?(Tt=vo.Yo,Dt=vo.kp,Xt=Oa.width,ai=Oa.height,(Tt===null||Dt===null||b!==zu(vo))&&(Tt=pl(this,2),Dt=pl(this,2),Tt[0].h(0,0),Tt[1].h(Xt,0),Dt[0].h(0,ai),Dt[1].h(Xt,ai))):(ks=ci(),ai=yE(this,a,vo,Tt,Dt,Xt,ai,ks),ja=ai.x,Tt=ks[0],Dt=ks[1],Xt=ai.width,ai=ai.height,pi(ks),Ei<Oa.height&&0>ja&&(pf(a,0,-ja,cr,Wr-1),B0(Tt,0,-ja),B0(Dt,0,-ja),ja=0)),vo.S.h(Ci,ja),vt=Math.max(vt,ai),nt=Math.max(nt,St+(Xn===0?0:Fe)+Oa.width),Ei=ai;In++}switch(0<Xn&&(y?(vt+=Math.max(0,E),Ci<nt&&zh(a,oe,nt-Ci,0,cr,re-1),0<We&&(ce||pf(a,We,0,0,re-1),nt+=We)):(nt+=Math.max(0,E),Ei<vt&&zh(a,oe,0,vt-Ei,cr,re-1),0<We&&(ce||pf(a,0,We,0,re-1),vt+=We))),We=ce=0,oe){case pg:y?ce+=nt/2-a.focus.x-Pe/2:We+=vt/2-a.focus.y-Pe/2;break;case vf:0<Xn?y?ce+=nt/2-a.focus.x-Pe/2:We+=vt/2-a.focus.y-Pe/2:y?($i=ee[0].S.x+ee[0].la.x,ce+=$i+(ee[re-1].S.x+ee[re-1].la.x+2*ee[re-1].focus.x-$i)/2-a.focus.x-Pe/2):($i=ee[0].S.y+ee[0].la.y,We+=$i+(ee[re-1].S.y+ee[re-1].la.y+2*ee[re-1].focus.y-$i)/2-a.focus.y-Pe/2);break;case _c:y?(ce-=Pe,nt+=Pe):(We-=Pe,vt+=Pe);break;case jc:y?(ce+=nt-a.width+Pe,nt+=Pe):(We+=vt-a.height+Pe,vt+=Pe);break;case Cd:y?1<re?ce+=$i+Ne/2-a.focus.x:ce+=ee[0].focus.x-a.focus.x+ee[0].la.x:1<re?We+=$i+Ne/2-a.focus.y:We+=ee[0].focus.y-a.focus.y+ee[0].la.y;break;case Nd:y?ce+=nt+Ne/2-a.focus.x:We+=vt+Ne/2-a.focus.y;break;case $c:break;default:vt=this.customAlignment(a,ce,We,nt,vt),ce=vt[0],We=vt[1],nt=vt[2],vt=vt[3]}for(Pe=0;Pe<re;Pe++)$i=ee[Pe],y?$i.S.h($i.S.x+$i.la.x-ce,$i.S.y+(135<b?(fe?-vt:-$i.Da.height)+$i.la.y-E:gt+E+$i.la.y)):$i.S.h($i.S.x+(135<b?(fe?-nt:-$i.Da.width)+$i.la.x-E:x+E+$i.la.x),$i.S.y+$i.la.y-We);if(re=ee=0,fe?y?(nt=ky(a,nt,ce),0>ce&&(ce=0),135<b&&(We+=vt+E),vt+=gt+E,oe===$c&&(ee+=Ne/2+a.focus.x),re+=gt+E):(135<b&&(ce+=nt+E),nt+=x+E,vt=Dy(a,vt,We),0>We&&(We=0),oe===$c&&(re+=Ne/2+a.focus.y),ee+=x+E):y?(a.comments===null?x>nt&&(nt=Oy(oe,x-nt,0),ee=nt.x,re=nt.y,nt=x,ce=0):nt=ky(a,nt,ce),0>ce&&(ee-=ce,ce=0),135<b&&(We+=vt+E),vt=Math.max(Math.max(vt,gt),vt+gt+E),re+=gt+E):(135<b&&(ce+=nt+E),nt=Math.max(Math.max(nt,x),nt+x+E),a.comments===null?gt>vt&&(vt=Oy(oe,0,gt-vt),ee=vt.x,re=vt.y,vt=gt,We=0):vt=Dy(a,vt,We),0>We&&(re-=We,We=0),ee+=x+E),0<Xn)b=pl(this,4),Xn=pl(this,4),y?(b[2].h(0,gt+E),b[3].h(b[2].x,vt),Xn[2].h(nt,b[2].y),Xn[3].h(Xn[2].x,b[3].y)):(b[2].h(x+E,0),b[3].h(nt,b[2].y),Xn[2].h(b[2].x,vt),Xn[3].h(b[3].x,Xn[2].y));else{for(b=pl(this,Tt.length+2),Xn=pl(this,Dt.length+2),oe=0;oe<Tt.length;oe++)fe=Tt[oe],b[oe+2].h(fe.x+ee,fe.y+re);for(oe=0;oe<Dt.length;oe++)fe=Dt[oe],Xn[oe+2].h(fe.x+ee,fe.y+re)}y?(b[0].h(ce,0),b[1].h(b[0].x,gt),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])),Xn[0].h(ce+x,0),Xn[1].h(Xn[0].x,gt),Xn[2].y<Xn[1].y&&(Xn[2].x<Xn[0].x?Xn[2].assign(Xn[1]):Xn[1].assign(Xn[2])),Xn[3].y<Xn[2].y&&(Xn[3].x<Xn[0].x?Xn[3].assign(Xn[2]):Xn[2].assign(Xn[3])),b[2].y-=E/2,Xn[2].y-=E/2):(b[0].h(0,We),b[1].h(x,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])),Xn[0].h(0,We+gt),Xn[1].h(x,Xn[0].y),Xn[2].x<Xn[1].x&&(Xn[2].y<Xn[0].y?Xn[2].assign(Xn[1]):Xn[1].assign(Xn[2])),Xn[3].x<Xn[2].x&&(Xn[3].y<Xn[0].y?Xn[3].assign(Xn[2]):Xn[2].assign(Xn[3])),b[2].x-=E/2,Xn[2].x-=E/2),tc(this,Tt),tc(this,Dt),a.Yo=b,a.kp=Xn,a.la.h(ce,We),a.Da.h(nt,vt)}break;default:lt("Unhandled compaction value "+a.compaction.toString())}}};function pE(a,y){if(y.childrenCount===0){var E=!1,x=0;y.parent!==null&&(x=y.parent.angle,E=y.parent.alignment,E=oh(E));var b=Iy(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(x!==180&&x!==270||E)&&!b?y.la.h(0,0):x===180&&!E||(x===90||x===270)&&b?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{x=zu(y),E=x===90||x===270;var z=0;b=y.children;for(var ee=b.length,re=0;re<ee;re++){var oe=b[re];z=Math.max(z,E?oe.Da.width:oe.Da.height)}var ce=y.alignment,fe=ce===_c,ye=ce===jc;re=oh(ce);var Ne=Math.max(0,y.breadthLimit);oe=a.computeLayerSpacing(y);var Pe=y.nodeSpacing,Fe=a.computeNodeIndent(y),We=fe||ye?0:Fe/2,gt=y.rowSpacing,nt=0;(fe||ye||y.hm||y.im&&y.maxGenerationCount===1)&&(nt=Math.max(0,y.rowIndent)),fe=y.width;var vt=y.height,St=0,Tt=0,Dt=0,Xt=0,ai=0,Ci=0,Ei=0,Xn=0,In=0,cr=0;if(re&&!Bp(ce)&&135<x&&b.reverse(),Bp(ce))if(1<ee)for(var $i=0;$i<ee;$i++){var Wr=b[$i],vo=Wr.Da;$i%2===0&&$i!==ee-1?In=Math.max(In,(E?vo.width:vo.height)+a.computeBusNodeSpacing(Wr)-Pe):$i%2!==0&&(cr=Math.max(cr,(E?vo.width:vo.height)+a.computeBusNodeSpacing(Wr)-Pe))}else ee===1&&(In=E?b[0].Da.width:b[0].Da.height);if(re)switch(ce){case Cd:case zc:Tt=135>x?mE(a,y,b,In,St,Tt):vE(a,y,b,In,St,Tt),In=Tt.x,St=Tt.width,Tt=Tt.height;break;case Nd:for(Ne=0;Ne<ee;Ne++)We=b[Ne],Dt=We.Da,cr=Ei===0?0:gt,E?(We.S.h(z-Dt.width,ai+cr),St=Math.max(St,Dt.width),Tt=Math.max(Tt,ai+cr+Dt.height),ai+=cr+Dt.height):(We.S.h(Xt+cr,z-Dt.height),St=Math.max(St,Xt+cr+Dt.width),Tt=Math.max(Tt,Dt.height),Xt+=cr+Dt.width),Ei++;break;case $c:for(z=0;z<ee;z++)Ne=b[z],We=Ne.Da,Dt=Ei===0?0:gt,E?(Ne.S.h(Pe/2+y.focus.x,ai+Dt),St=Math.max(St,We.width),Tt=Math.max(Tt,ai+Dt+We.height),ai+=Dt+We.height):(Ne.S.h(Xt+Dt,Pe/2+y.focus.y),St=Math.max(St,Xt+Dt+We.width),Tt=Math.max(Tt,We.height),Xt+=Dt+We.width),Ei++}else for(cr=0;cr<ee;cr++)$i=b[cr],Wr=$i.Da,E?(0<Ne&&0<Ei&&Xt+Pe+Wr.width>Ne&&(Xt<z&&zh(y,ce,z-Xt,0,Xn,cr-1),Ci++,Ei=0,Xn=cr,Dt=Tt,Xt=0,ai=135<x?-Tt-gt:Tt+gt),vo=Ei===0?We:Pe,F0(a,$i,0,ai),$i.S.h(Xt+vo,ai),St=Math.max(St,Xt+vo+Wr.width),Tt=Math.max(Tt,Dt+(Ci===0?0:gt)+Wr.height),Xt+=vo+Wr.width):(0<Ne&&0<Ei&&ai+Pe+Wr.height>Ne&&(ai<z&&zh(y,ce,0,z-ai,Xn,cr-1),Ci++,Ei=0,Xn=cr,Dt=St,ai=0,Xt=135<x?-St-gt:St+gt),vo=Ei===0?We:Pe,F0(a,$i,Xt,0),$i.S.h(Xt,ai+vo),Tt=Math.max(Tt,ai+vo+Wr.height),St=Math.max(St,Dt+(Ci===0?0:gt)+Wr.width),ai+=vo+Wr.height),Ei++;switch(0<Ci&&(E?(Tt+=Math.max(0,oe),Xt<St&&zh(y,ce,St-Xt,0,Xn,ee-1),0<nt&&(ye||pf(y,nt,0,0,ee-1),St+=nt)):(St+=Math.max(0,oe),ai<Tt&&zh(y,ce,0,Tt-ai,Xn,ee-1),0<nt&&(ye||pf(y,0,nt,0,ee-1),Tt+=nt))),nt=ye=0,ce){case pg:E?ye+=St/2-y.focus.x-Fe/2:nt+=Tt/2-y.focus.y-Fe/2;break;case vf:0<Ci?E?ye+=St/2-y.focus.x-Fe/2:nt+=Tt/2-y.focus.y-Fe/2:E?(a=b[0].S.x+b[0].la.x,ye+=a+(b[ee-1].S.x+b[ee-1].la.x+2*b[ee-1].focus.x-a)/2-y.focus.x-Fe/2):(a=b[0].S.y+b[0].la.y,nt+=a+(b[ee-1].S.y+b[ee-1].la.y+2*b[ee-1].focus.y-a)/2-y.focus.y-Fe/2);break;case _c:E?(ye-=Fe,St+=Fe):(nt-=Fe,Tt+=Fe);break;case jc:E?(ye+=St-y.width+Fe,St+=Fe):(nt+=Tt-y.height+Fe,Tt+=Fe);break;case Cd:case zc:E?1<ee?ye+=In+Pe/2-y.focus.x:ye+=b[0].focus.x-y.focus.x+b[0].la.x:1<ee?nt+=In+Pe/2-y.focus.y:nt+=b[0].focus.y-y.focus.y+b[0].la.y;break;case Nd:E?ye+=St+Pe/2-y.focus.x:nt+=Tt+Pe/2-y.focus.y;break;case $c:break;default:a=a.customAlignment(y,ye,nt,St,Tt),ye=a[0],nt=a[1],St=a[2],Tt=a[3]}for(a=0;a<ee;a++)Fe=b[a],E?Fe.S.h(Fe.S.x+Fe.la.x-ye,Fe.S.y+(135<x?(re?-Tt:-Fe.Da.height)+Fe.la.y-oe:vt+oe+Fe.la.y)):Fe.S.h(Fe.S.x+(135<x?(re?-St:-Fe.Da.width)+Fe.la.x-oe:fe+oe+Fe.la.x),Fe.S.y+Fe.la.y-nt);E?(St=ky(y,St,ye),0>ye&&(ye=0),135<x&&(nt+=Tt+oe),Tt=Math.max(Math.max(Tt,vt),Tt+vt+oe)):(135<x&&(ye+=St+oe),St=Math.max(Math.max(St,fe),St+fe+oe),Tt=Dy(y,Tt,nt),0>nt&&(nt=0)),y.la.h(ye,nt),y.Da.h(St,Tt)}}Nr.prototype.customAlignment=function(a,y,E,x,b){return[y,E,x,b]};function mE(a,y,E,x,b,z){var ee=E.length;if(ee===0)return new pn(x,0,b,z);if(ee===1)return y=E[0],b=y.Da.width,z=y.Da.height,new pn(x,0,b,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,ce=zu(y)===90,fe=0,ye=0,Ne=0,Pe=0;Pe<ee;Pe++)if(!(Pe%2!==0||1<ee&&Pe===ee-1)){var Fe=E[Pe],We=Fe.Da,gt=fe===0?0:oe;if(ce){var nt=a.computeBusNodeSpacing(Fe)-re;Fe.S.h(x-(We.width+nt),Ne+gt),b=Math.max(b,We.width+nt),z=Math.max(z,Ne+gt+We.height),Ne+=gt+We.height}else nt=a.computeBusNodeSpacing(Fe)-re,Fe.S.h(ye+gt,x-(We.height+nt)),z=Math.max(z,We.height+nt),b=Math.max(b,ye+gt+We.width),ye+=gt+We.width;fe++}for(fe=0,Fe=ye,Pe=Ne,ce?(ye=x+re,Ne=0):(ye=0,Ne=x+re),We=0;We<ee;We++)if(We%2!==0){gt=E[We],nt=gt.Da;var vt=fe===0?0:oe;if(ce){var St=a.computeBusNodeSpacing(gt)-re;gt.S.h(ye+St,Ne+vt),b=Math.max(b,ye+nt.width+St),z=Math.max(z,Ne+vt+nt.height),Ne+=vt+nt.height}else St=a.computeBusNodeSpacing(gt)-re,gt.S.h(ye+vt,Ne+St),b=Math.max(b,ye+vt+nt.width),z=Math.max(z,Ne+nt.height+St),ye+=vt+nt.width;fe++}return 1<ee&&ee%2===1&&(E=E[ee-1],ee=E.Da,a=a.computeBusLastRowSpacing(E,ce?Math.max(Math.abs(Pe),Math.abs(Ne)):Math.max(Math.abs(Fe),Math.abs(ye))),ce?(E.S.h(x+re/2-E.focus.x-E.la.x,z+a),ce=x+re/2-E.focus.x-E.la.x,b=Math.max(b,ce+ee.width),0>ce&&(b-=ce),z=Math.max(z,Math.max(Pe,Ne)+a+ee.height),0>E.S.x&&(x=R0(y,E.S.x,!1,x,re))):(E.S.h(b+a,x+re/2-E.focus.y-E.la.y),b=Math.max(b,Math.max(Fe,ye)+a+ee.width),Ne=x+re/2-E.focus.y-E.la.y,z=Math.max(z,Ne+ee.height),0>Ne&&(z-=Ne),0>E.S.y&&(x=R0(y,E.S.y,!0,x,re)))),new pn(x,0,b,z)}function vE(a,y,E,x,b,z){var ee=E.length;if(ee===0)return new pn(x,0,b,z);if(ee===1)return E=E[0],b=E.Da.width,z=E.Da.height,new pn(x,0,b,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,ce=zu(y)===270,fe=0,ye=0,Ne=0,Pe=0;Pe<ee;Pe++)if(!(Pe%2!==0||1<ee&&Pe===ee-1)){var Fe=E[Pe],We=Fe.Da,gt=fe===0?0:oe;if(ce){var nt=a.computeBusNodeSpacing(Fe)-re;Ne-=gt+We.height,Fe.S.h(x-(We.width+nt),Ne),b=Math.max(b,We.width+nt),z=Math.max(z,Math.abs(Ne))}else nt=a.computeBusNodeSpacing(Fe)-re,ye-=gt+We.width,Fe.S.h(ye,x-(We.height+nt)),z=Math.max(z,We.height+nt),b=Math.max(b,Math.abs(ye));fe++}for(fe=0,Fe=ye,Pe=Ne,ce?(ye=x+re,Ne=0):(ye=0,Ne=x+re),We=0;We<ee;We++)if(We%2!==0){gt=E[We],nt=gt.Da;var vt=fe===0?0:oe;if(ce){var St=a.computeBusNodeSpacing(gt)-re;Ne-=vt+nt.height,gt.S.h(ye+St,Ne),b=Math.max(b,ye+nt.width+St),z=Math.max(z,Math.abs(Ne))}else St=a.computeBusNodeSpacing(gt)-re,ye-=vt+nt.width,gt.S.h(ye,Ne+St),z=Math.max(z,Ne+nt.height+St),b=Math.max(b,Math.abs(ye));fe++}for(1<ee&&ee%2===1&&(oe=E[ee-1],fe=oe.Da,a=a.computeBusLastRowSpacing(oe,ce?Math.max(Math.abs(Pe),Math.abs(Ne)):Math.max(Math.abs(Fe),Math.abs(ye))),ce?(oe.S.h(x+re/2-oe.focus.x-oe.la.x,-z-fe.height-a),ye=x+re/2-oe.focus.x-oe.la.x,b=Math.max(b,ye+fe.width),0>ye&&(b-=ye),z=Math.max(z,Math.abs(Math.min(Pe,Ne))+a+fe.height),0>oe.S.x&&(x=R0(y,oe.S.x,!1,x,re))):(oe.S.h(-b-fe.width-a,x+re/2-oe.focus.y-oe.la.y),b=Math.max(b,Math.abs(Math.min(Fe,ye))+a+fe.width),Ne=x+re/2-oe.focus.y-oe.la.y,z=Math.max(z,Ne+fe.height),0>Ne&&(z-=Ne),0>oe.S.y&&(x=R0(y,oe.S.y,!0,x,re)))),y=0;y<ee;y++)re=E[y],ce?re.S.h(re.S.x,re.S.y+z):re.S.h(re.S.x+b,re.S.y);return new pn(x,0,b,z)}Nr.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},Nr.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function R0(a,y,E,x,b){a=a.children;for(var z=a.length,ee=0;ee<z;ee++)E?a[ee].S.h(a[ee].S.x,a[ee].S.y-y):a[ee].S.h(a[ee].S.x-y,a[ee].S.y);return y=a[z-1],Math.max(x,E?y.la.y+y.focus.y-b/2:y.la.x+y.focus.x-b/2)}function ky(a,y,E){switch(a.alignment){case vf:case pg:return E+a.width>y&&(y=E+a.width),0>E&&(y-=E),y;case _c:return a.width>y?a.width:y;case jc:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Cd:case zc:return Math.max(a.width,Math.max(y,E+a.width)-Math.min(0,E));case Nd:return a.width-a.focus.x+a.nodeSpacing/2+y;case $c:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Dy(a,y,E){switch(a.alignment){case vf:case pg:return E+a.height>y&&(y=E+a.height),0>E&&(y-=E),y;case _c:return a.height>y?a.height:y;case jc:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Cd:case zc:return Math.max(a.height,Math.max(y,E+a.height)-Math.min(0,E));case Nd:return a.height-a.focus.y+a.nodeSpacing/2+y;case $c:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Oy(a,y,E){switch(a){case pg:y/=2,E/=2;break;case vf:y/=2,E/=2;break;case _c:E=y=0;break;case jc:break;default:lt("Unhandled alignment value "+a.toString())}return new dt(y,E)}function zh(a,y,E,x,b,z){y=Oy(y,E,x),pf(a,y.x,y.y,b,z)}function pf(a,y,E,x,b){if(y!==0||E!==0)for(a=a.children;x<=b;x++){var z=a[x].S;z.x+=y,z.y+=E}}function F0(a,y,E,x){var b=y.parent;switch(a.ud){case Bc:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===b&&y.relativePoint.h(E,x);break;case mf:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===b&&y.relativePoint.h(E,x);break;default:lt("Unhandled path value "+a.ud.toString())}}function B0(a,y,E){for(var x=0;x<a.length;x++){var b=a[x];b.x+=y,b.y+=E}}function yE(a,y,E,x,b,z,ee,re){var oe=zu(y),ce=oe===90||oe===270,fe=y.nodeSpacing;y=x;var ye=b;x=z;var Ne=ee,Pe=E.Yo,Fe=E.kp;ee=E.Da;var We=ce?Math.max(Ne,ee.height):Math.max(x,ee.width);if((Pe===null||oe!==zu(E))&&(Pe=pl(a,2),Fe=pl(a,2),ce?(Pe[0].h(0,0),Pe[1].h(0,ee.height),Fe[0].h(ee.width,0),Fe[1].h(Fe[0].x,Pe[1].y)):(Pe[0].h(0,0),Pe[1].h(ee.width,0),Fe[0].h(0,ee.height),Fe[1].h(Pe[1].x,Fe[0].y))),ce){if(Ne=9999999,!(ye===null||2>ye.length||Pe===null||2>Pe.length))for(b=E=0;E<ye.length&&b<Pe.length;){z=ye[E];var gt=Pe[b];oe=gt.x,ce=gt.y,oe+=x;var nt=z;E+1<ye.length&&(nt=ye[E+1]);var vt=gt;gt=vt.x,vt=vt.y,b+1<Pe.length&&(vt=Pe[b+1],gt=vt.x,vt=vt.y,gt+=x);var St=Ne;z.y===ce?St=oe-z.x:z.y>ce&&z.y<vt?St=oe+(z.y-ce)/(vt-ce)*(gt-oe)-z.x:ce>z.y&&ce<nt.y&&(St=oe-(z.x+(ce-z.y)/(nt.y-z.y)*(nt.x-z.x))),St<Ne&&(Ne=St),nt.y<=z.y?E++:vt<=ce?b++:(nt.y<=vt&&E++,vt<=nt.y&&b++)}if(Ne=x-Ne,Ne+=fe,E=Pe,b=Ne,y===null||2>y.length||E===null||2>E.length)x=null;else{for(fe=pl(a,y.length+E.length),x=z=oe=0;z<E.length&&E[z].y<y[0].y;)ce=E[z++],fe[x++].h(ce.x+b,ce.y);for(;oe<y.length;)ce=y[oe++],fe[x++].h(ce.x,ce.y);for(oe=y[y.length-1].y;z<E.length&&E[z].y<=oe;)z++;for(;z<E.length&&E[z].y>oe;)ce=E[z++],fe[x++].h(ce.x+b,ce.y);for(E=pl(a,x),oe=0;oe<x;oe++)E[oe].assign(fe[oe]);tc(a,fe),x=E}if(z=Fe,oe=Ne,ye===null||2>ye.length||z===null||2>z.length)b=null;else{for(fe=pl(a,ye.length+z.length),b=ce=E=0;E<ye.length&&ye[E].y<z[0].y;)nt=ye[E++],fe[b++].h(nt.x,nt.y);for(;ce<z.length;)nt=z[ce++],fe[b++].h(nt.x+oe,nt.y);for(z=z[z.length-1].y;E<ye.length&&ye[E].y<=z;)E++;for(;E<ye.length&&ye[E].y>z;)oe=ye[E++],fe[b++].h(oe.x,oe.y);for(z=pl(a,b),E=0;E<b;E++)z[E].assign(fe[E]);tc(a,fe),b=z}return z=Math.max(0,Ne)+ee.width,ee=We,tc(a,y),tc(a,Pe),tc(a,ye),tc(a,Fe),re[0]=x,re[1]=b,new pn(Ne,0,z,ee)}if(x=9999999,!(ye===null||2>ye.length||Pe===null||2>Pe.length))for(b=E=0;E<ye.length&&b<Pe.length;)z=ye[E],gt=Pe[b],oe=gt.x,ce=gt.y,ce+=Ne,nt=z,E+1<ye.length&&(nt=ye[E+1]),vt=gt,gt=vt.x,vt=vt.y,b+1<Pe.length&&(vt=Pe[b+1],gt=vt.x,vt=vt.y,vt+=Ne),St=x,z.x===oe?St=ce-z.y:z.x>oe&&z.x<gt?St=ce+(z.x-oe)/(gt-oe)*(vt-ce)-z.y:oe>z.x&&oe<nt.x&&(St=ce-(z.y+(oe-z.x)/(nt.x-z.x)*(nt.y-z.y))),St<x&&(x=St),nt.x<=z.x?E++:gt<=oe?b++:(nt.x<=gt&&E++,gt<=nt.x&&b++);if(Ne-=x,Ne+=fe,E=Pe,b=Ne,y===null||2>y.length||E===null||2>E.length)x=null;else{for(fe=pl(a,y.length+E.length),x=z=oe=0;z<E.length&&E[z].x<y[0].x;)ce=E[z++],fe[x++].h(ce.x,ce.y+b);for(;oe<y.length;)ce=y[oe++],fe[x++].h(ce.x,ce.y);for(oe=y[y.length-1].x;z<E.length&&E[z].x<=oe;)z++;for(;z<E.length&&E[z].x>oe;)ce=E[z++],fe[x++].h(ce.x,ce.y+b);for(E=pl(a,x),oe=0;oe<x;oe++)E[oe].assign(fe[oe]);tc(a,fe),x=E}if(z=Fe,oe=Ne,ye===null||2>ye.length||z===null||2>z.length)b=null;else{for(fe=pl(a,ye.length+z.length),b=ce=E=0;E<ye.length&&ye[E].x<z[0].x;)nt=ye[E++],fe[b++].h(nt.x,nt.y);for(;ce<z.length;)nt=z[ce++],fe[b++].h(nt.x,nt.y+oe);for(z=z[z.length-1].x;E<ye.length&&ye[E].x<=z;)E++;for(;E<ye.length&&ye[E].x>z;)oe=ye[E++],fe[b++].h(oe.x,oe.y);for(z=pl(a,b),E=0;E<b;E++)z[E].assign(fe[E]);tc(a,fe),b=z}return z=We,ee=Math.max(0,Ne)+ee.height,tc(a,y),tc(a,Pe),tc(a,ye),tc(a,Fe),re[0]=x,re[1]=b,new pn(Ne,0,z,ee)}function pl(a,y){if(a=a.ru[y],a!==void 0&&(a=a.pop(),a!==void 0))return a;a=[];for(var E=0;E<y;E++)a[E]=new dt;return a}function tc(a,y){var E=y.length,x=a.ru[E];x===void 0&&(x=[],a.ru[E]=x),x.push(y)}Nr.prototype.arrangeTrees=function(){if(this.Rb===H0)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof xu){var E=y.node;if(E!==null){var x=E.position;E=x.x,x=x.y,isFinite(E)||(E=0),isFinite(x)||(x=0),Ry(this,y,E,x)}}}else{for(a=[],y=this.Ub.iterator;y.next();)E=y.value,E instanceof xu&&a.push(E);switch(this.sorting){case gg:break;case _p:a.reverse();break;case jp:a.sort(this.comparer);break;case zp:a.sort(this.comparer),a.reverse();break;default:lt("Unhandled sorting value "+this.sorting.toString())}for(E=this.arrangementOrigin,y=E.x,E=E.y,x=0;x<a.length;x++){var b=a[x];switch(Ry(this,b,y+b.la.x,E+b.la.y),this.Rb){case U0:E+=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 Ry(a,y,E,x){if(y!==null){y.x=E,y.y=x,y=y.children;for(var b=y.length,z=0;z<b;z++){var ee=y[z];Ry(a,ee,E+ee.S.x,x+ee.S.y)}}}Nr.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},Nr.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},Nr.prototype.Gu=function(){if(this.layerStyle===G0){for(var a=this.$v,y=[],E=null,x=this.network.vertexes.iterator;x.next();){var b=x.value;E===null?E=b.bounds.copy():E.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(x=0;x<y.length;x++)y[x]===void 0&&(y[x]=0);if(this.angle===90||this.angle===270?(E.Bc(this.nodeSpacing/2,this.layerSpacing),x=new dt(-this.nodeSpacing/2,-this.layerSpacing/2)):(E.Bc(this.layerSpacing,this.nodeSpacing/2),x=new dt(-this.layerSpacing/2,-this.nodeSpacing/2)),b=[],E=this.angle===90||this.angle===270?E.width:E.height,z=0,this.angle===180||this.angle===270)for(var ee=0;ee<a.length;ee++)z+=a[ee]+y[ee];for(ee=0;ee<a.length;ee++){var re=a[ee]+y[ee];this.angle===270?(z-=re,b.push(new pn(0,z,E,re))):this.angle===90?(b.push(new pn(0,z,E,re)),z+=re):this.angle===180?(z-=re,b.push(new pn(z,0,re,E))):(b.push(new pn(z,0,re,E)),z+=re)}this.commitLayers(b,x)}},Nr.prototype.commitLayers=function(){},Nr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Nr.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof xu&&SE(this,y)}};function SE(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var E=y.length,x=0;x<E;x++)SE(a,y[x])}}Nr.prototype.setPortSpots=function(a){var y=a.alignment;if(oh(y)){var E=this.ud===Bc,x=zu(a);switch(x){case 0:var b=Ha;break;case 90:b=ts;break;case 180:b=hs;break;default:b=es}var z=a.children,ee=z.length;switch(y){case Cd:case zc:for(y=0;y<ee;y++){var re=z[y];if(re=(E?re.sourceEdges:re.destinationEdges).first(),re!==null&&(re=re.link,re!==null)){var oe=x===90||x===270?hs:es;if(ee===1||y===ee-1&&ee%2===1)switch(x){case 0:oe=hs;break;case 90:oe=es;break;case 180:oe=Ha;break;default:oe=ts}else y%2===0&&(oe=x===90||x===270?Ha:ts);E?(a.setsPortSpot&&(re.fromSpot=b),a.setsChildPortSpot&&(re.toSpot=oe)):(a.setsPortSpot&&(re.fromSpot=oe),a.setsChildPortSpot&&(re.toSpot=b))}}break;case Nd:for(x=x===90||x===270?Ha:ts,z=E?a.destinationEdges:a.sourceEdges;z.next();)ee=z.value.link,ee!==null&&(E?(a.setsPortSpot&&(ee.fromSpot=b),a.setsChildPortSpot&&(ee.toSpot=x)):(a.setsPortSpot&&(ee.fromSpot=x),a.setsChildPortSpot&&(ee.toSpot=b)));break;case $c:for(x=x===90||x===270?hs:es,z=E?a.destinationEdges:a.sourceEdges;z.next();)ee=z.value.link,ee!==null&&(E?(a.setsPortSpot&&(ee.fromSpot=b),a.setsChildPortSpot&&(ee.toSpot=x)):(a.setsPortSpot&&(ee.fromSpot=x),a.setsChildPortSpot&&(ee.toSpot=b)))}}else if(E=zu(a),this.ud===Bc){for(b=a.destinationEdges;b.next();)if(x=b.value.link,x!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(E){case 0:x.fromSpot=Ha;break;case 90:x.fromSpot=ts;break;case 180:x.fromSpot=hs;break;default:x.fromSpot=es}else x.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(E){case 0:x.toSpot=hs;break;case 90:x.toSpot=es;break;case 180:x.toSpot=Ha;break;default:x.toSpot=ts}else x.toSpot=a.childPortSpot}}else for(b=a.sourceEdges;b.next();)if(x=b.value.link,x!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(E){case 0:x.toSpot=Ha;break;case 90:x.toSpot=ts;break;case 180:x.toSpot=hs;break;default:x.toSpot=es}else x.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(E){case 0:x.fromSpot=hs;break;case 90:x.fromSpot=es;break;case 180:x.fromSpot=Ha;break;default:x.fromSpot=ts}else x.fromSpot=a.childPortSpot}};function zu(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}Nr.prototype.computeLayerSpacing=function(a){var y=zu(a);y=y===90||y===270;var E=a.layerSpacing;if(0<a.layerSpacingParentOverlap){var x=Math.min(1,a.layerSpacingParentOverlap);E-=y?a.height*x:a.width*x}return E<(y?-a.height:-a.width)&&(E=y?-a.height:-a.width),E},Nr.prototype.computeNodeIndent=function(a){var y=zu(a),E=a.nodeIndent;if(0<a.nodeIndentPastParent){var x=Math.min(1,a.nodeIndentPastParent);E+=y===90||y===270?a.width*x:a.height*x}return E=Math.max(0,E)},zt.Object.defineProperties(Nr.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!==z0&&a!==By&&a!==Fy&&a!==_y||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==zy&&a!==Uy&&a!==G0||(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!==U0&&a!==jy&&a!==H0||(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!==gg&&a!==_p&&a!==jp&&!zp||(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!==j0&&a!==Up||(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!==gg&&a!==_p&&a!==jp&&!zp||(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!==j0&&a!==Up||(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 _0=new Mn(Nr,"PathDefault",-1),Bc=new Mn(Nr,"PathDestination",0),mf=new Mn(Nr,"PathSource",1),gg=new Mn(Nr,"SortingForwards",10),_p=new Mn(Nr,"SortingReverse",11),jp=new Mn(Nr,"SortingAscending",12),zp=new Mn(Nr,"SortingDescending",13),pg=new Mn(Nr,"AlignmentCenterSubtrees",20),vf=new Mn(Nr,"AlignmentCenterChildren",21),_c=new Mn(Nr,"AlignmentStart",22),jc=new Mn(Nr,"AlignmentEnd",23),Cd=new Mn(Nr,"AlignmentBus",24),zc=new Mn(Nr,"AlignmentBusBranching",25),Nd=new Mn(Nr,"AlignmentTopLeftBus",26),$c=new Mn(Nr,"AlignmentBottomRightBus",27),j0=new Mn(Nr,"CompactionNone",30),Up=new Mn(Nr,"CompactionBlock",31),z0=new Mn(Nr,"StyleLayered",40),Fy=new Mn(Nr,"StyleLastParents",41),By=new Mn(Nr,"StyleAlternating",42),_y=new Mn(Nr,"StyleRootOnly",43),U0=new Mn(Nr,"ArrangementVertical",50),jy=new Mn(Nr,"ArrangementHorizontal",51),H0=new Mn(Nr,"ArrangementFixedRoots",52),zy=new Mn(Nr,"LayerIndividual",60),Uy=new Mn(Nr,"LayerSiblings",61),G0=new Mn(Nr,"LayerUniform",62);Nr.className="TreeLayout",Nr.PathDefault=_0,Nr.PathDestination=Bc,Nr.PathSource=mf,Nr.SortingForwards=gg,Nr.SortingReverse=_p,Nr.SortingAscending=jp,Nr.SortingDescending=zp,Nr.AlignmentCenterSubtrees=pg,Nr.AlignmentCenterChildren=vf,Nr.AlignmentStart=_c,Nr.AlignmentEnd=jc,Nr.AlignmentBus=Cd,Nr.AlignmentBusBranching=zc,Nr.AlignmentTopLeftBus=Nd,Nr.AlignmentBottomRightBus=$c,Nr.CompactionNone=j0,Nr.CompactionBlock=Up,Nr.StyleLayered=z0,Nr.StyleLastParents=Fy,Nr.StyleAlternating=By,Nr.StyleRootOnly=_y,Nr.ArrangementVertical=U0,Nr.ArrangementHorizontal=jy,Nr.ArrangementFixedRoots=H0,Nr.LayerIndividual=zy,Nr.LayerSiblings=Uy,Nr.LayerUniform=G0;function yf(a){xo.call(this,a)}en(yf,xo),yf.prototype.createVertex=function(){return new xu(this)},yf.prototype.createEdge=function(){return new mg(this)},yf.className="TreeNetwork";function xu(a){Na.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 dt(0,0),this.Da=new ti(0,0),this.la=new dt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=gg,this.hd=sy,this.Kb=0,this.Jb=vf,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Up,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Aa,this.wr=!0,this.Dp=Aa}en(xu,Na),xu.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)},zt.Object.defineProperties(xu.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,E=0;E<y;E++);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,E=0;E<y;E++);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)}}}),xu.className="TreeVertex";function mg(a){Pl.call(this,a),this.$t=new dt(0,0)}en(mg,Pl),mg.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,E=null,x=null;switch(y.ud){case Bc:E=this.fromVertex,x=this.toVertex;break;case mf:E=this.toVertex,x=this.fromVertex;break;default:lt("Unhandled path value "+y.ud.toString())}if(E!==null&&x!==null){var b=this.$t;if(b.x!==0||b.y!==0||E.qA){x=E.bounds;var z=zu(E),ee=y.computeLayerSpacing(E),re=E.rowSpacing;a.vg();var oe=a.curve===Yl,ce=a.isOrthogonal,fe;if(a.uh(),ce||oe){for(fe=2;4<a.pointsCount;)a.pv(2);var ye=a.i(1),Ne=a.i(2)}else{for(fe=1;3<a.pointsCount;)a.pv(1);ye=a.i(0),Ne=a.i(a.pointsCount-1)}var Pe=a.i(a.pointsCount-1);z===0?(E.alignment===jc?(z=x.bottom+b.y,b.y===0&&ye.y>Pe.y+E.rowIndent&&(z=Math.min(z,Math.max(ye.y,z-y.computeNodeIndent(E))))):E.alignment===_c?(z=x.top+b.y,b.y===0&&ye.y<Pe.y-E.rowIndent&&(z=Math.max(z,Math.min(ye.y,z+y.computeNodeIndent(E))))):z=E.hm||E.im&&E.maxGenerationCount===1?x.top-E.la.y+b.y:x.y+x.height/2+b.y,oe?(a.m(fe,ye.x,z),fe++,a.m(fe,x.right+ee,z),fe++,a.m(fe,x.right+ee+(b.x-re)/3,z),fe++,a.m(fe,x.right+ee+2*(b.x-re)/3,z),fe++,a.m(fe,x.right+ee+(b.x-re),z),fe++,a.m(fe,Ne.x,z)):(ce&&(a.m(fe,x.right+ee/2,ye.y),fe++),a.m(fe,x.right+ee/2,z),fe++,a.m(fe,x.right+ee+b.x-(ce?re/2:re),z),fe++,ce&&a.m(fe,a.i(fe-1).x,Ne.y))):z===90?(E.alignment===jc?(z=x.right+b.x,b.x===0&&ye.x>Pe.x+E.rowIndent&&(z=Math.min(z,Math.max(ye.x,z-y.computeNodeIndent(E))))):E.alignment===_c?(z=x.left+b.x,b.x===0&&ye.x<Pe.x-E.rowIndent&&(z=Math.max(z,Math.min(ye.x,z+y.computeNodeIndent(E))))):z=E.hm||E.im&&E.maxGenerationCount===1?x.left-E.la.x+b.x:x.x+x.width/2+b.x,oe?(a.m(fe,z,ye.y),fe++,a.m(fe,z,x.bottom+ee),fe++,a.m(fe,z,x.bottom+ee+(b.y-re)/3),fe++,a.m(fe,z,x.bottom+ee+2*(b.y-re)/3),fe++,a.m(fe,z,x.bottom+ee+(b.y-re)),fe++,a.m(fe,z,Ne.y)):(ce&&(a.m(fe,ye.x,x.bottom+ee/2),fe++),a.m(fe,z,x.bottom+ee/2),fe++,a.m(fe,z,x.bottom+ee+b.y-(ce?re/2:re)),fe++,ce&&a.m(fe,Ne.x,a.i(fe-1).y))):z===180?(E.alignment===jc?(z=x.bottom+b.y,b.y===0&&ye.y>Pe.y+E.rowIndent&&(z=Math.min(z,Math.max(ye.y,z-y.computeNodeIndent(E))))):E.alignment===_c?(z=x.top+b.y,b.y===0&&ye.y<Pe.y-E.rowIndent&&(z=Math.max(z,Math.min(ye.y,z+y.computeNodeIndent(E))))):z=E.hm||E.im&&E.maxGenerationCount===1?x.top-E.la.y+b.y:x.y+x.height/2+b.y,oe?(a.m(fe,ye.x,z),fe++,a.m(fe,x.left-ee,z),fe++,a.m(fe,x.left-ee+(b.x+re)/3,z),fe++,a.m(fe,x.left-ee+2*(b.x+re)/3,z),fe++,a.m(fe,x.left-ee+(b.x+re),z),fe++,a.m(fe,Ne.x,z)):(ce&&(a.m(fe,x.left-ee/2,ye.y),fe++),a.m(fe,x.left-ee/2,z),fe++,a.m(fe,x.left-ee+b.x+(ce?re/2:re),z),fe++,ce&&a.m(fe,a.i(fe-1).x,Ne.y))):z===270?(E.alignment===jc?(z=x.right+b.x,b.x===0&&ye.x>Pe.x+E.rowIndent&&(z=Math.min(z,Math.max(ye.x,z-y.computeNodeIndent(E))))):E.alignment===_c?(z=x.left+b.x,b.x===0&&ye.x<Pe.x-E.rowIndent&&(z=Math.max(z,Math.min(ye.x,z+y.computeNodeIndent(E))))):z=E.hm||E.im&&E.maxGenerationCount===1?x.left-E.la.x+b.x:x.x+x.width/2+b.x,oe?(a.m(fe,z,ye.y),fe++,a.m(fe,z,x.top-ee),fe++,a.m(fe,z,x.top-ee+(b.y+re)/3),fe++,a.m(fe,z,x.top-ee+2*(b.y+re)/3),fe++,a.m(fe,z,x.top-ee+(b.y+re)),fe++,a.m(fe,z,Ne.y)):(ce&&(a.m(fe,ye.x,x.top-ee/2),fe++),a.m(fe,z,x.top-ee/2),fe++,a.m(fe,z,x.top-ee+b.y+(ce?re/2:re)),fe++,ce&&a.m(fe,Ne.x,a.i(fe-1).y))):lt("Invalid angle "+z),a.zf()}else b=x,a=this.link,x=this.network.layout,y=zu(E),y!==zu(b)&&(ee=x.computeLayerSpacing(E),re=E.bounds,E=b.bounds,y===0&&E.left-re.right<ee+1||y===90&&E.top-re.bottom<ee+1||y===180&&re.left-E.right<ee+1||y===270&&re.top-E.bottom<ee+1||(a.vg(),E=a.curve===Yl,b=a.isOrthogonal,x=oh(this.fromVertex.alignment),a.uh(),y===0?(y=re.right+ee/2,E?a.pointsCount===4&&(E=a.i(3).y,a.L(1,y-20,a.i(1).y),a.m(2,y-20,E),a.m(3,y,E),a.m(4,y+20,E),a.L(5,a.i(5).x,E)):b?x?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+ee/2,E?a.pointsCount===4&&(E=a.i(3).x,a.L(1,a.i(1).x,y-20),a.m(2,E,y-20),a.m(3,E,y),a.m(4,E,y+20),a.L(5,E,a.i(5).y)):b?x?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-ee/2,E?a.pointsCount===4&&(E=a.i(3).y,a.L(1,y+20,a.i(1).y),a.m(2,y+20,E),a.m(3,y,E),a.m(4,y-20,E),a.L(5,a.i(5).x,E)):b?x?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-ee/2,E?a.pointsCount===4&&(E=a.i(3).x,a.L(1,a.i(1).x,y+20),a.m(2,E,y+20),a.m(3,E,y),a.m(4,E,y-20),a.L(5,E,a.i(5).y)):b?x?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()))}}},zt.Object.defineProperties(mg.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)}}}),mg.className="TreeEdge",Co.prototype.initializeStandardTools=function(){this.gb("Action",new xn,this.mouseDownTools),this.gb("Relinking",new _s,this.mouseDownTools),this.gb("LinkReshaping",new He,this.mouseDownTools),this.gb("Rotating",new _n,this.mouseDownTools),this.gb("Resizing",new Qt,this.mouseDownTools),this.gb("Linking",new gs,this.mouseMoveTools),this.gb("Dragging",new To,this.mouseMoveTools),this.gb("DragSelecting",new $n,this.mouseMoveTools),this.gb("Panning",new Pn,this.mouseMoveTools),this.gb("ContextMenu",new so,this.mouseUpTools),this.gb("TextEditing",new Fr,this.mouseUpTools),this.gb("ClickCreating",new ri,this.mouseUpTools),this.gb("ClickSelecting",new Hn,this.mouseUpTools)},pc("Horizontal",new ym),pc("Spot",new Em),pc("Table",new bm),pc("Viewbox",new Am),pc("TableRow",new wm),pc("TableColumn",new Tm),pc("Graduated",new ip),pc("Grid",new np),jf.add("GraphLinksModel",_a),jf.add("TreeModel",ou);var Y0=Bn.go,Hy={get licenseKey(){return Jt.licenseKey},set licenseKey(a){Jt.licenseKey=a},get version(){return Jt.version},Group:dr,EnumValue:Mn,List:Un,Set:Dn,Map:vi,Point:dt,Size:ti,Rect:pn,Margin:mr,Spot:tn,Geometry:Qn,PathFigure:pa,PathSegment:jr,InputEvent:Qa,DiagramEvent:Au,ChangedEvent:Io,Model:Ii,GraphLinksModel:Or,TreeModel:Qs,Binding:ha,Transaction:ma,UndoManager:fo,CommandHandler:ft,Tool:Dr,DraggingTool:To,DraggingInfo:Zc,DraggingOptions:ae,LinkingBaseTool:Uo,LinkingTool:gs,RelinkingTool:_s,LinkReshapingTool:He,ResizingTool:Qt,RotatingTool:_n,ClickSelectingTool:Hn,ActionTool:xn,ClickCreatingTool:ri,HTMLInfo:Br,ContextMenuTool:so,DragSelectingTool:$n,PanningTool:Pn,TextEditingTool:Fr,ToolManager:Co,Animation:Si,AnimationManager:ls,AnimationTrigger:tl,Layer:Ya,Diagram:Jt,Palette:ve,Overview:Ee,Brush:Jr,GraphObject:Rt,Panel:Wn,RowColumnDefinition:xa,Shape:yr,TextBlock:Eo,Picture:al,Part:Bi,Adornment:Hr,Node:li,Link:Jn,Placeholder:Ys,Layout:Oo,LayoutNetwork:xo,LayoutVertex:Na,LayoutEdge:Pl,GridLayout:Ja,PanelLayout:Ca,CircularLayout:Ho,CircularNetwork:dg,CircularVertex:Ip,CircularEdge:T0,ForceDirectedLayout:cs,ForceDirectedNetwork:gf,ForceDirectedVertex:kp,ForceDirectedEdge:Dp,LayeredDigraphLayout:eo,LayeredDigraphNetwork:fg,LayeredDigraphVertex:su,LayeredDigraphEdge:Fp,TreeLayout:Nr,TreeNetwork:yf,TreeVertex:xu,TreeEdge:mg};typeof Y0=="object"&&Y0.version&&gi("WARNING: a `go` object on the root object is already defined. "+("Debug"in Y0?"debug ":"")+"version: "+Y0.version+", replaced with version: "+Hy.version),Jt.prototype.go=Hy,Bn.go=Hy,typeof Ge.exports=="object"&&(Ge.exports=typeof de.g!="undefined"?de.g.go:self.go)}();var le=typeof de.g!="undefined"?de.g.go:self.go;const Ie=typeof de.g!="undefined"?de.g.go:self.go,De=Ie.Group,Le=Ie.EnumValue,Ye=Ie.List,Re=Ie.Set,Ve=Ie.Map,Je=Ie.Point,Xe=Ie.Size,qe=Ie.Rect,mt=Ie.Margin,st=Ie.Spot,Nt=Ie.Geometry,_e=Ie.PathFigure,te=Ie.PathSegment,ne=Ie.InputEvent,he=Ie.DiagramEvent,se=Ie.ChangedEvent,ge=Ie.Model,Se=Ie.GraphLinksModel,Ae=Ie.TreeModel,Oe=Ie.Binding,Be=Ie.Transaction,Ke=Ie.UndoManager,rt=Ie.CommandHandler,ot=Ie.Tool,ht=Ie.DraggingTool,bt=Ie.DraggingInfo,at=Ie.LinkingBaseTool,At=Ie.LinkingTool,It=Ie.RelinkingTool,$t=Ie.LinkReshapingTool,Tn=Ie.ResizingTool,yn=Ie.RotatingTool,un=Ie.ClickSelectingTool,On=Ie.ActionTool,xt=Ie.ClickCreatingTool,ct=Ie.HTMLInfo,it=Ie.ContextMenuTool,cn=Ie.DragSelectingTool,An=Ie.PanningTool,Pt=Ie.TextEditingTool,an=Ie.ToolManager,ln=Ie.Animation,zn=Ie.AnimationManager,En=Ie.AnimationTrigger,ii=Ie.Layer,kt=Ie.Diagram,Kn=Ie.Palette,yi=Ie.Overview,et=Ie.Brush,ze=Ie.GraphObject,xe=Ie.Panel,Te=Ie.RowColumnDefinition,Me=Ie.Shape,Ce=Ie.TextBlock,ut=Ie.TextBlockMetrics,Lt=Ie.Picture,Mt=Ie.Part,Yt=Ie.Adornment,Vt=Ie.Node,Gt=Ie.Link,gn=Ie.Placeholder,qt=Ie.Layout,fn=Ie.LayoutNetwork,sn=Ie.LayoutVertex,_t=Ie.LayoutEdge,wn=Ie.GridLayout,dn=Ie.PanelLayout,Sn=Ie.CircularLayout,nn=Ie.CircularNetwork,si=Ie.CircularVertex,Fn=Ie.CircularEdge,yt=Ie.ForceDirectedLayout,kn=Ie.ForceDirectedNetwork,Cn=Ie.ForceDirectedVertex,Ht=Ie.ForceDirectedEdge,di=Ie.LayeredDigraphLayout,zi=Ie.LayeredDigraphNetwork,Ni=Ie.LayeredDigraphVertex,Ln=Ie.LayeredDigraphEdge,rr=Ie.TreeLayout,Hi=Ie.TreeNetwork,ui=Ie.TreeVertex,wi=Ie.TreeEdge,Di=Ie.version},46963:function(Ge){"use strict";Ge.exports=de;var be=/[#.]/g;function de(le,Ie){for(var De=le||"",Le=Ie||"div",Ye={},Re=0,Ve,Je,Xe;Re<De.length;)be.lastIndex=Re,Xe=be.exec(De),Ve=De.slice(Re,Xe?Xe.index:De.length),Ve&&(Je?Je==="#"?Ye.id=Ve:Ye.className?Ye.className.push(Ve):Ye.className=[Ve]:Le=Ve,Re+=Ve.length),Xe&&(Je=Xe[0],Re++);return{type:"element",tagName:Le,properties:Ye,children:[]}}},5641:function(Ge,be,de){"use strict";var le=de(88914),Ie=de(47178),De=de(46963),Le=de(92848).Q,Ye=de(58951).Q;Ge.exports=Ve;var Re={}.hasOwnProperty;function Ve(te,ne,he){var se=he?_e(he):null;return ge;function ge(Ae,Oe){var Be=De(Ae,ne),Ke=Array.prototype.slice.call(arguments,2),rt=Be.tagName.toLowerCase(),ot;if(Be.tagName=se&&Re.call(se,rt)?se[rt]:rt,Oe&&Je(Oe,Be)&&(Ke.unshift(Oe),Oe=null),Oe)for(ot in Oe)Se(Be.properties,ot,Oe[ot]);return qe(Be.children,Ke),Be.tagName==="template"&&(Be.content={type:"root",children:Be.children},Be.children=[]),Be}function Se(Ae,Oe,Be){var Ke,rt,ot;Be==null||Be!==Be||(Ke=le(te,Oe),rt=Ke.property,ot=Be,typeof ot=="string"&&(Ke.spaceSeparated?ot=Le(ot):Ke.commaSeparated?ot=Ye(ot):Ke.commaOrSpaceSeparated&&(ot=Le(Ye(ot).join(" ")))),rt==="style"&&typeof Be!="string"&&(ot=Nt(ot)),rt==="className"&&Ae.className&&(ot=Ae.className.concat(ot)),Ae[rt]=mt(Ke,rt,ot))}}function Je(te,ne){return typeof te=="string"||"length"in te||Xe(ne.tagName,te)}function Xe(te,ne){var he=ne.type;return te==="input"||!he||typeof he!="string"?!1:typeof ne.children=="object"&&"length"in ne.children?!0:(he=he.toLowerCase(),te==="button"?he!=="menu"&&he!=="submit"&&he!=="reset"&&he!=="button":"value"in ne)}function qe(te,ne){var he,se;if(typeof ne=="string"||typeof ne=="number"){te.push({type:"text",value:String(ne)});return}if(typeof ne=="object"&&"length"in ne){for(he=-1,se=ne.length;++he<se;)qe(te,ne[he]);return}if(typeof ne!="object"||!("type"in ne))throw new Error("Expected node, nodes, or string, got `"+ne+"`");te.push(ne)}function mt(te,ne,he){var se,ge,Se;if(typeof he!="object"||!("length"in he))return st(te,ne,he);for(ge=he.length,se=-1,Se=[];++se<ge;)Se[se]=st(te,ne,he[se]);return Se}function st(te,ne,he){var se=he;return te.number||te.positiveNumber?!isNaN(se)&&se!==""&&(se=Number(se)):(te.boolean||te.overloadedBoolean)&&typeof se=="string"&&(se===""||Ie(he)===Ie(ne))&&(se=!0),se}function Nt(te){var ne=[],he;for(he in te)ne.push([he,te[he]].join(": "));return ne.join("; ")}function _e(te){for(var ne=te.length,he=-1,se={},ge;++he<ne;)ge=te[he],se[ge.toLowerCase()]=ge;return se}},82073:function(Ge,be,de){"use strict";var le=de(18795),Ie=de(5641),De=Ie(le,"div");De.displayName="html",Ge.exports=De},43621:function(Ge,be,de){"use strict";Ge.exports=de(82073)},67467:function(Ge,be){be.read=function(de,le,Ie,De,Le){var Ye,Re,Ve=Le*8-De-1,Je=(1<<Ve)-1,Xe=Je>>1,qe=-7,mt=Ie?Le-1:0,st=Ie?-1:1,Nt=de[le+mt];for(mt+=st,Ye=Nt&(1<<-qe)-1,Nt>>=-qe,qe+=Ve;qe>0;Ye=Ye*256+de[le+mt],mt+=st,qe-=8);for(Re=Ye&(1<<-qe)-1,Ye>>=-qe,qe+=De;qe>0;Re=Re*256+de[le+mt],mt+=st,qe-=8);if(Ye===0)Ye=1-Xe;else{if(Ye===Je)return Re?NaN:(Nt?-1:1)*(1/0);Re=Re+Math.pow(2,De),Ye=Ye-Xe}return(Nt?-1:1)*Re*Math.pow(2,Ye-De)},be.write=function(de,le,Ie,De,Le,Ye){var Re,Ve,Je,Xe=Ye*8-Le-1,qe=(1<<Xe)-1,mt=qe>>1,st=Le===23?Math.pow(2,-24)-Math.pow(2,-77):0,Nt=De?0:Ye-1,_e=De?1:-1,te=le<0||le===0&&1/le<0?1:0;for(le=Math.abs(le),isNaN(le)||le===1/0?(Ve=isNaN(le)?1:0,Re=qe):(Re=Math.floor(Math.log(le)/Math.LN2),le*(Je=Math.pow(2,-Re))<1&&(Re--,Je*=2),Re+mt>=1?le+=st/Je:le+=st*Math.pow(2,1-mt),le*Je>=2&&(Re++,Je/=2),Re+mt>=qe?(Ve=0,Re=qe):Re+mt>=1?(Ve=(le*Je-1)*Math.pow(2,Le),Re=Re+mt):(Ve=le*Math.pow(2,mt-1)*Math.pow(2,Le),Re=0));Le>=8;de[Ie+Nt]=Ve&255,Nt+=_e,Ve/=256,Le-=8);for(Re=Re<<Le|Ve,Xe+=Le;Xe>0;de[Ie+Nt]=Re&255,Nt+=_e,Re/=256,Xe-=8);de[Ie+Nt-_e]|=te*128}},93193:function(Ge){var be=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,de=/\n/g,le=/^\s*/,Ie=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,De=/^:\s*/,Le=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ye=/^[;\s]*/,Re=/^\s+|\s+$/g,Ve=`
|
|
|
`,Je="/",Xe="*",qe="",mt="comment",st="declaration";Ge.exports=function(_e,te){if(typeof _e!="string")throw new TypeError("First argument must be a string");if(!_e)return[];te=te||{};var ne=1,he=1;function se(at){var At=at.match(de);At&&(ne+=At.length);var It=at.lastIndexOf(Ve);he=~It?at.length-It:he+at.length}function ge(){var at={line:ne,column:he};return function(At){return At.position=new Se(at),Ke(),At}}function Se(at){this.start=at,this.end={line:ne,column:he},this.source=te.source}Se.prototype.content=_e;var Ae=[];function Oe(at){var At=new Error(te.source+":"+ne+":"+he+": "+at);if(At.reason=at,At.filename=te.source,At.line=ne,At.column=he,At.source=_e,te.silent)Ae.push(At);else throw At}function Be(at){var At=at.exec(_e);if(At){var It=At[0];return se(It),_e=_e.slice(It.length),At}}function Ke(){Be(le)}function rt(at){var At;for(at=at||[];At=ot();)At!==!1&&at.push(At);return at}function ot(){var at=ge();if(!(Je!=_e.charAt(0)||Xe!=_e.charAt(1))){for(var At=2;qe!=_e.charAt(At)&&(Xe!=_e.charAt(At)||Je!=_e.charAt(At+1));)++At;if(At+=2,qe===_e.charAt(At-1))return Oe("End of comment missing");var It=_e.slice(2,At-2);return he+=2,se(It),_e=_e.slice(At),he+=2,at({type:mt,comment:It})}}function ht(){var at=ge(),At=Be(Ie);if(At){if(ot(),!Be(De))return Oe("property missing ':'");var It=Be(Le),$t=at({type:st,property:Nt(At[0].replace(be,qe)),value:It?Nt(It[0].replace(be,qe)):qe});return Be(Ye),$t}}function bt(){var at=[];rt(at);for(var At;At=ht();)At!==!1&&(at.push(At),rt(at));return at}return Ke(),bt()};function Nt(_e){return _e?_e.replace(Re,qe):qe}},91241:function(Ge){"use strict";Ge.exports=be;function be(de){var le=typeof de=="string"?de.charCodeAt(0):de;return le>=97&&le<=122||le>=65&&le<=90}},21127:function(Ge,be,de){"use strict";var le=de(91241),Ie=de(22347);Ge.exports=De;function De(Le){return le(Le)||Ie(Le)}},22347:function(Ge){"use strict";Ge.exports=be;function be(de){var le=typeof de=="string"?de.charCodeAt(0):de;return le>=48&&le<=57}},65207:function(Ge){"use strict";Ge.exports=be;function be(de){var le=typeof de=="string"?de.charCodeAt(0):de;return le>=97&&le<=102||le>=65&&le<=70||le>=48&&le<=57}},2859:function(Ge,be,de){"use strict";de.d(be,{hP:function(){return yi}});var le=function(et,ze){return(le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xe,Te){xe.__proto__=Te}||function(xe,Te){for(var Me in Te)Object.prototype.hasOwnProperty.call(Te,Me)&&(xe[Me]=Te[Me])})(et,ze)};function Ie(et,ze){function xe(){this.constructor=et}le(et,ze),et.prototype=ze===null?Object.create(ze):(xe.prototype=ze.prototype,new xe)}function De(et,ze,xe,Te){return new(xe||(xe=Promise))(function(Me,Ce){function ut(Yt){try{Mt(Te.next(Yt))}catch(Vt){Ce(Vt)}}function Lt(Yt){try{Mt(Te.throw(Yt))}catch(Vt){Ce(Vt)}}function Mt(Yt){var Vt;Yt.done?Me(Yt.value):(Vt=Yt.value,Vt instanceof xe?Vt:new xe(function(Gt){Gt(Vt)})).then(ut,Lt)}Mt((Te=Te.apply(et,ze||[])).next())})}function Le(et,ze){var xe,Te,Me,Ce,ut={label:0,sent:function(){if(1&Me[0])throw Me[1];return Me[1]},trys:[],ops:[]};return Ce={next:Lt(0),throw:Lt(1),return:Lt(2)},typeof Symbol=="function"&&(Ce[Symbol.iterator]=function(){return this}),Ce;function Lt(Mt){return function(Yt){return function(Vt){if(xe)throw new TypeError("Generator is already executing.");for(;ut;)try{if(xe=1,Te&&(Me=2&Vt[0]?Te.return:Vt[0]?Te.throw||((Me=Te.return)&&Me.call(Te),0):Te.next)&&!(Me=Me.call(Te,Vt[1])).done)return Me;switch(Te=0,Me&&(Vt=[2&Vt[0],Me.value]),Vt[0]){case 0:case 1:Me=Vt;break;case 4:return ut.label++,{value:Vt[1],done:!1};case 5:ut.label++,Te=Vt[1],Vt=[0];continue;case 7:Vt=ut.ops.pop(),ut.trys.pop();continue;default:if(Me=ut.trys,!((Me=Me.length>0&&Me[Me.length-1])||Vt[0]!==6&&Vt[0]!==2)){ut=0;continue}if(Vt[0]===3&&(!Me||Vt[1]>Me[0]&&Vt[1]<Me[3])){ut.label=Vt[1];break}if(Vt[0]===6&&ut.label<Me[1]){ut.label=Me[1],Me=Vt;break}if(Me&&ut.label<Me[2]){ut.label=Me[2],ut.ops.push(Vt);break}Me[2]&&ut.ops.pop(),ut.trys.pop();continue}Vt=ze.call(et,ut)}catch(Gt){Vt=[6,Gt],Te=0}finally{xe=Me=0}if(5&Vt[0])throw Vt[1];return{value:Vt[0]?Vt[1]:void 0,done:!0}}([Mt,Yt])}}}function Ye(){for(var et=0,ze=0,xe=arguments.length;ze<xe;ze++)et+=arguments[ze].length;var Te=Array(et),Me=0;for(ze=0;ze<xe;ze++)for(var Ce=arguments[ze],ut=0,Lt=Ce.length;ut<Lt;ut++,Me++)Te[Me]=Ce[ut];return Te}var Re=function(){function et(){}return et.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},et.setAttributes=function(ze,xe){for(var Te=0,Me=xe;Te<Me.length;Te++){var Ce=Me[Te],ut=Ce[0],Lt=Ce[1];ze.setAttribute(ut,Lt)}},et.createRect=function(ze,xe,Te){var Me=document.createElementNS("http://www.w3.org/2000/svg","rect");return Me.setAttribute("width",ze.toString()),Me.setAttribute("height",xe.toString()),Te&&et.setAttributes(Me,Te),Me},et.createLine=function(ze,xe,Te,Me,Ce){var ut=document.createElementNS("http://www.w3.org/2000/svg","line");return ut.setAttribute("x1",ze.toString()),ut.setAttribute("y1",xe.toString()),ut.setAttribute("x2",Te.toString()),ut.setAttribute("y2",Me.toString()),Ce&&et.setAttributes(ut,Ce),ut},et.createPolygon=function(ze,xe){var Te=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Te.setAttribute("points",ze),xe&&et.setAttributes(Te,xe),Te},et.createCircle=function(ze,xe){var Te=document.createElementNS("http://www.w3.org/2000/svg","circle");return Te.setAttribute("cx",(ze/2).toString()),Te.setAttribute("cy",(ze/2).toString()),Te.setAttribute("r",ze.toString()),xe&&et.setAttributes(Te,xe),Te},et.createEllipse=function(ze,xe,Te){var Me=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Me.setAttribute("cx",(ze/2).toString()),Me.setAttribute("cy",(xe/2).toString()),Me.setAttribute("rx",(ze/2).toString()),Me.setAttribute("ry",(xe/2).toString()),Te&&et.setAttributes(Me,Te),Me},et.createGroup=function(ze){var xe=document.createElementNS("http://www.w3.org/2000/svg","g");return ze&&et.setAttributes(xe,ze),xe},et.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},et.createMarker=function(ze,xe,Te,Me,Ce,ut,Lt){var Mt=document.createElementNS("http://www.w3.org/2000/svg","marker");return et.setAttributes(Mt,[["id",ze],["orient",xe],["markerWidth",Te.toString()],["markerHeight",Me.toString()],["refX",Ce.toString()],["refY",ut.toString()]]),Mt.appendChild(Lt),Mt},et.createText=function(ze){var xe=document.createElementNS("http://www.w3.org/2000/svg","text");return xe.setAttribute("x","0"),xe.setAttribute("y","0"),ze&&et.setAttributes(xe,ze),xe},et.createTSpan=function(ze,xe){var Te=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Te.textContent=ze,xe&&et.setAttributes(Te,xe),Te},et.createImage=function(ze){var xe=document.createElementNS("http://www.w3.org/2000/svg","image");return ze&&et.setAttributes(xe,ze),xe},et.createPoint=function(ze,xe){var Te=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Te.x=ze,Te.y=xe,Te},et.createPath=function(ze,xe){var Te=document.createElementNS("http://www.w3.org/2000/svg","path");return Te.setAttribute("d",ze),xe&&et.setAttributes(Te,xe),Te},et}(),Ve=function(){function et(){}return et.addKey=function(ze){et.key=ze},Object.defineProperty(et,"isLicensed",{get:function(){return!!et.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(et.key)},enumerable:!1,configurable:!0}),et}(),Je=function(){function et(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return et.prototype.rasterize=function(ze,xe,Te){var Me=this;return new Promise(function(Ce){var ut=Te!==void 0?Te:document.createElement("canvas");ze===null&&(Me.markersOnly=!0,Me.naturalSize=!1);var Lt=document.createElementNS("http://www.w3.org/2000/svg","svg");Lt.setAttribute("xmlns","http://www.w3.org/2000/svg"),Lt.setAttribute("width",xe.width.baseVal.valueAsString),Lt.setAttribute("height",xe.height.baseVal.valueAsString),Lt.setAttribute("viewBox","0 0 "+xe.viewBox.baseVal.width.toString()+" "+xe.viewBox.baseVal.height.toString()),Lt.innerHTML=xe.innerHTML,Me.naturalSize===!0?(Lt.width.baseVal.value=ze.naturalWidth,Lt.height.baseVal.value=ze.naturalHeight):Me.width!==void 0&&Me.height!==void 0&&(Lt.width.baseVal.value=Me.width,Lt.height.baseVal.value=Me.height),ut.width=Lt.width.baseVal.value,ut.height=Lt.height.baseVal.value;var Mt=Lt.outerHTML,Yt=ut.getContext("2d");Me.markersOnly!==!0&&Yt.drawImage(ze,0,0,ut.width,ut.height);var Vt=window.URL,Gt=new Image(ut.width,ut.height);Gt.setAttribute("crossOrigin","anonymous");var gn=new Blob([Mt],{type:"image/svg+xml"}),qt=Vt.createObjectURL(gn);Gt.onload=function(){Yt.drawImage(Gt,0,0),Vt.revokeObjectURL(qt);var fn=ut.toDataURL(Me.imageType,Me.imageQuality);Ce(fn)},Gt.src=qt})},et}(),Xe=function(){},qe=function(){function et(ze){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+ze+"_"}return Object.defineProperty(et.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(et.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(et.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),et.prototype.addClass=function(ze){return this.styleSheet===void 0&&this.addStyleSheet(),ze.name=""+this.classNamePrefix+ze.localName,this.classes.push(ze),this.styleSheet.sheet.insertRule("."+ze.name+" {"+ze.style+"}",this.styleSheet.sheet.cssRules.length),ze},et.prototype.addRule=function(ze){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(ze),this.styleSheet.sheet.insertRule(ze.selector+" {"+ze.style+"}",this.styleSheet.sheet.cssRules.length)},et.prototype.addStyleSheet=function(){var ze;this.styleSheet=document.createElement("style"),((ze=this.styleSheetRoot)!==null&&ze!==void 0?ze:document.head).appendChild(this.styleSheet),this.addRule(new mt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new mt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new mt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new st("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new st("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},et.prototype.removeStyleSheet=function(){var ze;this.styleSheet&&(((ze=this.styleSheetRoot)!==null&&ze!==void 0?ze:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},et}(),mt=function(et,ze){this.selector=et,this.style=ze},st=function(et,ze){this.localName=et,this.style=ze},Nt=function(){function et(ze,xe,Te,Me,Ce){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=ze,this.displayMode=xe,this.markerItems=Te,this.uiStyleSettings=Me,this.styles=Ce,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return et.prototype.show=function(ze){var xe=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ze,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(Ce){var ut=document.createElement("div");ut.className=""+xe.toolbarButtonStyleClass.name,ut.setAttribute("data-type-name",Ce.typeName),ut.innerHTML=Ce.icon,ut.addEventListener("click",function(){xe.markerToolbarButtonClicked(ut,Ce)}),xe.buttons.push(ut),xe.markerButtons.push(ut)}),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 Me=document.createElement("div");Me.className=this.toolbarBlockStyleClass.name,Me.style.whiteSpace="nowrap",Me.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Me),this.addActionButton(Me,'<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(Me,'<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()},et.prototype.addButtonClickListener=function(ze){this.buttonClickListeners.push(ze)},et.prototype.removeButtonClickListener=function(ze){this.buttonClickListeners.indexOf(ze)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(ze),1)},et.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},et.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var ze=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<ze||xe===ze&&this.markerButtons.length-1===ze?this.markerButtonBlock.appendChild(this.markerButtons[xe]):(xe===ze&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[xe]))}},et.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")},et.prototype.resetButtonStyles=function(){var ze=this;this.buttons.forEach(function(xe){xe.className=xe.className.replace(ze.uiStyleSettings.toolbarButtonStyleColorsClassName?ze.uiStyleSettings.toolbarButtonStyleColorsClassName:ze.toolbarButtonStyleColorsClass.name,"").trim(),xe.className=xe.className.replace(ze.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?ze.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:ze.toolbarActiveButtonStyleColorsClass.name,"").trim(),xe.className+=" "+(ze.uiStyleSettings.toolbarButtonStyleColorsClassName?ze.uiStyleSettings.toolbarButtonStyleColorsClassName:ze.toolbarButtonStyleColorsClass.name)})},et.prototype.addActionButton=function(ze,xe,Te){var Me=this,Ce=document.createElement("div");switch(Ce.className=""+this.toolbarButtonStyleClass.name,Ce.innerHTML=xe,Ce.setAttribute("data-action",Te),Ce.addEventListener("click",function(){Me.actionToolbarButtonClicked(Ce,Te)}),Te){case"select":Ce.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Ce.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Ce.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Ce.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Ce.style.fill=this.uiStyleSettings.closeButtonColor}ze.appendChild(Ce),this.buttons.push(Ce)},et.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new st("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 st("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new st("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new st("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 st("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var ze=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new st("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*ze)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*ze)+`px;
|
|
|
padding: `+ze+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new st("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new st("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new mt("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new mt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},et.prototype.markerToolbarButtonClicked=function(ze,xe){this.setActiveButton(ze),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Te){return Te("marker",xe)}),this.markerButtonOverflowBlock.style.display="none"},et.prototype.actionToolbarButtonClicked=function(ze,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])},et.prototype.setActiveButton=function(ze){this.resetButtonStyles(),ze.className=ze.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),ze.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},et.prototype.setActiveMarkerButton=function(ze){var xe=this.markerButtons.find(function(Te){return Te.getAttribute("data-type-name")===ze});xe&&this.setActiveButton(xe)},et.prototype.setCurrentMarker=function(ze){var xe=this;this.currentMarker=ze,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")})},et}(),_e=function(){function et(ze,xe,Te,Me){this.panels=[],this.panelButtons=[],this.markerjsContainer=ze,this.displayMode=xe,this.uiStyleSettings=Te,this.styles=Me,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return et.prototype.addStyles=function(){var ze;this.toolboxStyleClass=this.styles.addClass(new st("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 st("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var xe=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new st("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new st("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new st("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 st("toolbox-panel-row_colors",`
|
|
|
background-color: `+((ze=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ze!==void 0?ze:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new st("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 st("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new st("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new mt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new mt("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},et.prototype.show=function(ze){var xe;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ze,this.uiContainer.className=this.toolboxStyleClass.name+" "+((xe=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&xe!==void 0?xe:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},et.prototype.setPanelButtons=function(ze){var xe,Te,Me=this;this.panels=ze,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(Ce){var ut;Ce.uiStyleSettings=Me.uiStyleSettings;var Lt=document.createElement("div");Lt.className=Me.toolboxButtonStyleClass.name+" "+((ut=Me.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ut!==void 0?ut:Me.toolboxButtonStyleColorsClass.name),Lt.innerHTML=Ce.icon,Lt.title=Ce.title,Lt.addEventListener("click",function(){Me.panelButtonClick(Ce)}),Me.panelButtons.push(Lt),Me.buttonRow.appendChild(Lt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},et.prototype.panelButtonClick=function(ze){var xe=this,Te=-1;if(ze!==this.activePanel){Te=this.panels.indexOf(ze),this.panelRow.innerHTML="";var Me=ze.getUi();Me.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Me),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=ze}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(Ce,ut){var Lt,Mt;Ce.className=xe.toolboxButtonStyleClass.name+" "+(ut===Te?""+((Lt=xe.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Lt!==void 0?Lt:xe.toolboxActiveButtonStyleColorsClass.name):""+((Mt=xe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Mt!==void 0?Mt:xe.toolboxButtonStyleColorsClass.name))})},et}(),te=function(et,ze){this.title=et,this.icon=ze},ne=function(et){function ze(xe,Te,Me,Ce){var ut=et.call(this,xe,Ce||'<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 ut.colors=[],ut.addTransparent=!1,ut.colorBoxes=[],ut.colors=Te,ut.currentColor=Me,ut.setCurrentColor=ut.setCurrentColor.bind(ut),ut.getColorBox=ut.getColorBox.bind(ut),ut}return Ie(ze,et),ze.prototype.getUi=function(){var xe=this,Te=document.createElement("div");return Te.style.overflow="hidden",Te.style.whiteSpace="nowrap",this.colors.forEach(function(Me){var Ce=xe.getColorBox(Me);Te.appendChild(Ce),xe.colorBoxes.push(Ce)}),Te},ze.prototype.getColorBox=function(xe){var Te=this,Me=this.uiStyleSettings.toolbarHeight/4,Ce=this.uiStyleSettings.toolbarHeight-Me,ut=document.createElement("div");ut.style.display="inline-block",ut.style.boxSizing="content-box",ut.style.width=Ce-2+"px",ut.style.height=Ce-2+"px",ut.style.padding="1px",ut.style.marginRight="2px",ut.style.marginBottom="2px",ut.style.borderWidth="2px",ut.style.borderStyle="solid",ut.style.borderRadius=(Ce+2)/2+"px",ut.style.borderColor=xe===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ut.addEventListener("click",function(){Te.setCurrentColor(xe,ut)});var Lt=document.createElement("div");return Lt.style.display="inline-block",Lt.style.width=Ce-2+"px",Lt.style.height=Ce-2+"px",Lt.style.backgroundColor=xe,Lt.style.borderRadius=Ce/2+"px",xe==="transparent"&&(Lt.style.fill=this.uiStyleSettings.toolboxAccentColor,Lt.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>`),ut.appendChild(Lt),ut},ze.prototype.setCurrentColor=function(xe,Te){var Me=this;this.currentColor=xe,this.colorBoxes.forEach(function(Ce){Ce.style.borderColor=Ce===Te?Me.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(xe)},ze}(te),he=function(){function et(ze,xe,Te){this._state="new",this._isSelected=!1,this._container=ze,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(et.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),et.prototype.ownsTarget=function(ze){return!1},Object.defineProperty(et.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),et.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},et.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},et.prototype.pointerDown=function(ze,xe){},et.prototype.dblClick=function(ze,xe){},et.prototype.manipulate=function(ze){},et.prototype.pointerUp=function(ze){this.stateChanged()},et.prototype.dispose=function(){},et.prototype.addMarkerVisualToContainer=function(ze){this.container.childNodes.length>0?this.container.insertBefore(ze,this.container.childNodes[0]):this.container.appendChild(ze)},et.prototype.getState=function(){return{typeName:et.typeName,state:this.state,notes:this.notes}},et.prototype.restoreState=function(ze){this._state=ze.state,this.notes=ze.notes},et.prototype.scale=function(ze,xe){},et.prototype.colorChanged=function(ze){this.onColorChanged&&this.onColorChanged(ze),this.stateChanged()},et.prototype.fillColorChanged=function(ze){this.onFillColorChanged&&this.onFillColorChanged(ze),this.stateChanged()},et.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var ze=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),ze.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(ze)&&this.onStateChanged(this)}},et.typeName="MarkerBase",et}(),se=function(){function et(){this.findGripByVisual=this.findGripByVisual.bind(this)}return et.prototype.findGripByVisual=function(ze){return this.topLeft.ownsTarget(ze)?this.topLeft:this.topCenter.ownsTarget(ze)?this.topCenter:this.topRight.ownsTarget(ze)?this.topRight:this.centerLeft.ownsTarget(ze)?this.centerLeft:this.centerRight.ownsTarget(ze)?this.centerRight:this.bottomLeft.ownsTarget(ze)?this.bottomLeft:this.bottomCenter.ownsTarget(ze)?this.bottomCenter:this.bottomRight.ownsTarget(ze)?this.bottomRight:void 0},et}(),ge=function(){function et(){this.GRIP_SIZE=10,this.visual=Re.createGroup(),this.visual.appendChild(Re.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Re.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return et.prototype.ownsTarget=function(ze){return ze===this.visual||ze===this.visual.childNodes[0]||ze===this.visual.childNodes[1]},et}(),Se=function(){function et(){}return et.toITransformMatrix=function(ze){return{a:ze.a,b:ze.b,c:ze.c,d:ze.d,e:ze.e,f:ze.f}},et.toSVGMatrix=function(ze,xe){return ze.a=xe.a,ze.b=xe.b,ze.c=xe.c,ze.d=xe.d,ze.e=xe.e,ze.f=xe.f,ze},et}(),Ae=function(et){function ze(xe,Te,Me){var Ce=et.call(this,xe,Te,Me)||this;return Ce.left=0,Ce.top=0,Ce.width=0,Ce.height=0,Ce.defaultSize={x:50,y:20},Ce.offsetX=0,Ce.offsetY=0,Ce.rotationAngle=0,Ce.CB_DISTANCE=10,Ce._suppressMarkerCreateEvent=!1,Ce.container.transform.baseVal.appendItem(Re.createTransform()),Ce.setupControlBox(),Ce}return Ie(ze,et),Object.defineProperty(ze.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"visual",{get:function(){return this._visual},set:function(xe){this._visual=xe;var Te=Re.createTransform();this._visual.transform.baseVal.appendItem(Te)},enumerable:!1,configurable:!0}),ze.prototype.ownsTarget=function(xe){return!!et.prototype.ownsTarget.call(this,xe)||!!(this.controlGrips.findGripByVisual(xe)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(xe))},ze.prototype.pointerDown=function(xe,Te){et.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 Me=this.unrotatePoint(xe);if(this.manipulationStartX=Me.x,this.manipulationStartY=Me.y,this.offsetX=Me.x-this.left,this.offsetY=Me.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 Ce=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Ce.x-this.width/2,this.top=Ce.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ut=this.container.transform.baseVal.getItem(0);ut.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ut,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},ze.prototype.pointerUp=function(xe){var Te=this.state;et.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)},ze.prototype.moveVisual=function(xe){this.visual.style.transform="translate("+xe.x+"px, "+xe.y+"px)"},ze.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)},ze.prototype.resize=function(xe){var Te=this.manipulationStartLeft,Me=this.manipulationStartWidth,Ce=this.manipulationStartTop,ut=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Te=this.manipulationStartLeft+xe.x-this.manipulationStartX,Me=this.manipulationStartWidth+this.manipulationStartLeft-Te;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Me=this.manipulationStartWidth+xe.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Ce=this.manipulationStartTop+xe.y-this.manipulationStartY,ut=this.manipulationStartHeight+this.manipulationStartTop-Ce;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ut=this.manipulationStartHeight+xe.y-this.manipulationStartY}Me>=0?(this.left=Te,this.width=Me):(this.left=Te+Me,this.width=-Me),ut>=0?(this.top=Ce,this.height=ut):(this.top=Ce+ut,this.height=-ut),this.setSize()},ze.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},ze.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()}},ze.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)},ze.prototype.rotatePoint=function(xe){if(this.rotationAngle===0)return xe;var Te=this.container.getCTM(),Me=Re.createPoint(xe.x,xe.y);return{x:(Me=Me.matrixTransform(Te)).x,y:Me.y}},ze.prototype.unrotatePoint=function(xe){if(this.rotationAngle===0)return xe;var Te=this.container.getCTM();Te=Te.inverse();var Me=Re.createPoint(xe.x,xe.y);return{x:(Me=Me.matrixTransform(Te)).x,y:Me.y}},ze.prototype.select=function(){et.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ze.prototype.deselect=function(){et.prototype.deselect.call(this),this.controlBox.style.display="none"},ze.prototype.setupControlBox=function(){this.controlBox=Re.createGroup();var xe=Re.createTransform();xe.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(xe),this.container.appendChild(this.controlBox),this.controlRect=Re.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=Re.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"},ze.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()},ze.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()},ze.prototype.createGrip=function(){var xe=new ge;return xe.visual.transform.baseVal.appendItem(Re.createTransform()),this.controlBox.appendChild(xe.visual),xe},ze.prototype.positionGrips=function(){var xe=this.controlGrips.topLeft.GRIP_SIZE,Te=-xe/2,Me=Te,Ce=(this.width+this.CB_DISTANCE)/2-xe/2,ut=(this.height+this.CB_DISTANCE)/2-xe/2,Lt=this.height+this.CB_DISTANCE-xe/2,Mt=this.width+this.CB_DISTANCE-xe/2;this.positionGrip(this.controlGrips.topLeft.visual,Te,Me),this.positionGrip(this.controlGrips.topCenter.visual,Ce,Me),this.positionGrip(this.controlGrips.topRight.visual,Mt,Me),this.positionGrip(this.controlGrips.centerLeft.visual,Te,ut),this.positionGrip(this.controlGrips.centerRight.visual,Mt,ut),this.positionGrip(this.controlGrips.bottomLeft.visual,Te,Lt),this.positionGrip(this.controlGrips.bottomCenter.visual,Ce,Lt),this.positionGrip(this.controlGrips.bottomRight.visual,Mt,Lt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Ce,Me-3*this.CB_DISTANCE)},ze.prototype.positionGrip=function(xe,Te,Me){var Ce=xe.transform.baseVal.getItem(0);Ce.setTranslate(Te,Me),xe.transform.baseVal.replaceItem(Ce,0)},ze.prototype.hideControlBox=function(){this.controlBox.style.display="none"},ze.prototype.showControlBox=function(){this.controlBox.style.display=""},ze.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Se.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Se.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},et.prototype.getState.call(this))},ze.prototype.restoreState=function(xe){et.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(Se.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Te.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Se.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Te.containerTransformMatrix))},ze.prototype.scale=function(xe,Te){et.prototype.scale.call(this,xe,Te);var Me=this.rotatePoint({x:this.left,y:this.top}),Ce=this.unrotatePoint({x:Me.x*xe,y:Me.y*Te});this.left=Ce.x,this.top=Ce.y,this.width=this.width*xe,this.height=this.height*Te,this.adjustControlBox()},ze}(he),Oe=function(et){function ze(xe,Te,Me){var Ce=et.call(this,xe,Te,Me)||this;return Ce.fillColor="transparent",Ce.strokeColor="transparent",Ce.strokeWidth=0,Ce.strokeDasharray="",Ce.opacity=1,Ce.setStrokeColor=Ce.setStrokeColor.bind(Ce),Ce.setFillColor=Ce.setFillColor.bind(Ce),Ce.setStrokeWidth=Ce.setStrokeWidth.bind(Ce),Ce.setStrokeDasharray=Ce.setStrokeDasharray.bind(Ce),Ce.createVisual=Ce.createVisual.bind(Ce),Ce}return Ie(ze,et),ze.prototype.ownsTarget=function(xe){return!(!et.prototype.ownsTarget.call(this,xe)&&xe!==this.visual)},ze.prototype.createVisual=function(){this.visual=Re.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)},ze.prototype.pointerDown=function(xe,Te){et.prototype.pointerDown.call(this,xe,Te),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},ze.prototype.manipulate=function(xe){et.prototype.manipulate.call(this,xe)},ze.prototype.resize=function(xe){et.prototype.resize.call(this,xe),this.setSize()},ze.prototype.setSize=function(){et.prototype.setSize.call(this),Re.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},ze.prototype.pointerUp=function(xe){et.prototype.pointerUp.call(this,xe),this.setSize()},ze.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.visual&&Re.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(xe),this.stateChanged()},ze.prototype.setFillColor=function(xe){this.fillColor=xe,this.visual&&Re.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ze.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.visual&&Re.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ze.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.visual&&Re.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ze.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},et.prototype.getState.call(this))},ze.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(),et.prototype.restoreState.call(this,xe),this.setSize()},ze.prototype.scale=function(xe,Te){et.prototype.scale.call(this,xe,Te),this.setSize()},ze.title="Rectangle marker",ze}(Ae),Be=function(et){function ze(xe,Te,Me,Ce){var ut=et.call(this,xe,Ce||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return ut.widths=[],ut.widthBoxes=[],ut.widths=Te,ut.currentWidth=Me,ut.setCurrentWidth=ut.setCurrentWidth.bind(ut),ut}return Ie(ze,et),ze.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(Me){var Ce=document.createElement("div");Ce.style.display="flex",Ce.style.flexGrow="2",Ce.style.alignItems="center",Ce.style.justifyContent="space-between",Ce.style.padding="5px",Ce.style.borderWidth="2px",Ce.style.borderStyle="solid",Ce.style.borderColor=Me===xe.currentWidth?xe.uiStyleSettings.toolboxAccentColor:"transparent",Ce.addEventListener("click",function(){xe.setCurrentWidth(Me,Ce)}),Te.appendChild(Ce);var ut=document.createElement("div");ut.innerText=Me.toString(),ut.style.marginRight="5px",Ce.appendChild(ut);var Lt=document.createElement("div");Lt.style.minHeight="20px",Lt.style.flexGrow="2",Lt.style.display="flex",Lt.style.alignItems="center";var Mt=document.createElement("hr");Mt.style.minWidth="20px",Mt.style.border="0px",Mt.style.borderTop=Me+"px solid "+xe.uiStyleSettings.toolboxColor,Mt.style.flexGrow="2",Lt.appendChild(Mt),Ce.appendChild(Lt),xe.widthBoxes.push(Ce)}),Te},ze.prototype.setCurrentWidth=function(xe,Te){var Me=this;this.currentWidth=xe,this.widthBoxes.forEach(function(Ce){Ce.style.borderColor=Ce===Te?Me.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ze}(te),Ke=function(et){function ze(xe,Te,Me,Ce){var ut=et.call(this,xe,Ce||'<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 ut.styles=[],ut.styleBoxes=[],ut.styles=Te,ut.currentStyle=Me,ut.setCurrentStyle=ut.setCurrentStyle.bind(ut),ut}return Ie(ze,et),ze.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(Me){var Ce=document.createElement("div");Ce.style.display="flex",Ce.style.alignItems="center",Ce.style.justifyContent="space-between",Ce.style.padding="5px",Ce.style.borderWidth="2px",Ce.style.borderStyle="solid",Ce.style.overflow="hidden",Ce.style.maxWidth=100/xe.styles.length-5+"%",Ce.style.borderColor=Me===xe.currentStyle?xe.uiStyleSettings.toolboxAccentColor:"transparent",Ce.addEventListener("click",function(){xe.setCurrentStyle(Me,Ce)}),Te.appendChild(Ce);var ut=document.createElement("div");ut.style.minHeight="20px",ut.style.flexGrow="2",ut.style.overflow="hidden";var Lt=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+xe.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Me!==""?'stroke-dasharray="'+Me+'"':"")+` />
|
|
|
</svg>`;ut.innerHTML=Lt,Ce.appendChild(ut),xe.styleBoxes.push(Ce)}),Te},ze.prototype.setCurrentStyle=function(xe,Te){var Me=this;this.currentStyle=xe,this.styleBoxes.forEach(function(Ce){Ce.style.borderColor=Ce===Te?Me.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ze}(te),rt=function(et){function ze(xe,Te,Me){var Ce=et.call(this,xe,Te,Me)||this;return Ce.strokeColor=Me.defaultColor,Ce.strokeWidth=Me.defaultStrokeWidth,Ce.strokeDasharray=Me.defaultStrokeDasharray,Ce.strokePanel=new ne("Line color",Me.defaultColorSet,Me.defaultColor),Ce.strokePanel.onColorChanged=Ce.setStrokeColor,Ce.strokeWidthPanel=new Be("Line width",Me.defaultStrokeWidths,Me.defaultStrokeWidth),Ce.strokeWidthPanel.onWidthChanged=Ce.setStrokeWidth,Ce.strokeStylePanel=new Ke("Line style",Me.defaultStrokeDasharrays,Me.defaultStrokeDasharray),Ce.strokeStylePanel.onStyleChanged=Ce.setStrokeDasharray,Ce}return Ie(ze,et),Object.defineProperty(ze.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ze.prototype.getState=function(){var xe=et.prototype.getState.call(this);return xe.typeName=ze.typeName,xe},ze.typeName="FrameMarker",ze.title="Frame marker",ze.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',ze}(Oe),ot=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},ht=function(et){function ze(xe,Te,Me){var Ce=et.call(this,xe,Te,Me)||this;return Ce.x1=0,Ce.y1=0,Ce.x2=0,Ce.y2=0,Ce.defaultLength=50,Ce.manipulationStartX=0,Ce.manipulationStartY=0,Ce.manipulationStartX1=0,Ce.manipulationStartY1=0,Ce.manipulationStartX2=0,Ce.manipulationStartY2=0,Ce.setupControlBox(),Ce}return Ie(ze,et),ze.prototype.ownsTarget=function(xe){return!!et.prototype.ownsTarget.call(this,xe)||!(!this.grip1.ownsTarget(xe)&&!this.grip2.ownsTarget(xe))},ze.prototype.pointerDown=function(xe,Te){et.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")},ze.prototype.pointerUp=function(xe){var Te=this.state;et.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)},ze.prototype.adjustVisual=function(){},ze.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)},ze.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()},ze.prototype.select=function(){et.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ze.prototype.deselect=function(){et.prototype.deselect.call(this),this.controlBox.style.display="none"},ze.prototype.setupControlBox=function(){this.controlBox=Re.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},ze.prototype.adjustControlBox=function(){this.positionGrips()},ze.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},ze.prototype.createGrip=function(){var xe=new ge;return xe.visual.transform.baseVal.appendItem(Re.createTransform()),this.controlBox.appendChild(xe.visual),xe},ze.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)},ze.prototype.positionGrip=function(xe,Te,Me){var Ce=xe.transform.baseVal.getItem(0);Ce.setTranslate(Te,Me),xe.transform.baseVal.replaceItem(Ce,0)},ze.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},et.prototype.getState.call(this))},ze.prototype.restoreState=function(xe){et.prototype.restoreState.call(this,xe);var Te=xe;this.x1=Te.x1,this.y1=Te.y1,this.x2=Te.x2,this.y2=Te.y2},ze.prototype.scale=function(xe,Te){et.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()},ze}(he),bt=function(et){function ze(xe,Te,Me){var Ce=et.call(this,xe,Te,Me)||this;return Ce.strokeColor="transparent",Ce.strokeWidth=0,Ce.strokeDasharray="",Ce.setStrokeColor=Ce.setStrokeColor.bind(Ce),Ce.setStrokeWidth=Ce.setStrokeWidth.bind(Ce),Ce.setStrokeDasharray=Ce.setStrokeDasharray.bind(Ce),Ce.strokeColor=Me.defaultColor,Ce.strokeWidth=Me.defaultStrokeWidth,Ce.strokeDasharray=Me.defaultStrokeDasharray,Ce.strokePanel=new ne("Line color",Me.defaultColorSet,Me.defaultColor),Ce.strokePanel.onColorChanged=Ce.setStrokeColor,Ce.strokeWidthPanel=new Be("Line width",Me.defaultStrokeWidths,Me.defaultStrokeWidth),Ce.strokeWidthPanel.onWidthChanged=Ce.setStrokeWidth,Ce.strokeStylePanel=new Ke("Line style",Me.defaultStrokeDasharrays,Me.defaultStrokeDasharray),Ce.strokeStylePanel.onStyleChanged=Ce.setStrokeDasharray,Ce}return Ie(ze,et),ze.prototype.ownsTarget=function(xe){return!(!et.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.selectorLine&&xe!==this.visibleLine)},ze.prototype.createVisual=function(){this.visual=Re.createGroup(),this.selectorLine=Re.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Re.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)},ze.prototype.pointerDown=function(xe,Te){et.prototype.pointerDown.call(this,xe,Te),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},ze.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()),Re.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Re.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Re.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ze.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.adjustVisual(),this.colorChanged(xe)},ze.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.adjustVisual()},ze.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ze.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ze.prototype.getState=function(){var xe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},et.prototype.getState.call(this));return xe.typeName=ze.typeName,xe},ze.prototype.restoreState=function(xe){et.prototype.restoreState.call(this,xe);var Te=xe;this.strokeColor=Te.strokeColor,this.strokeWidth=Te.strokeWidth,this.strokeDasharray=Te.strokeDasharray,this.createVisual(),this.adjustVisual()},ze.typeName="LineMarker",ze.title="Line marker",ze.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',ze}(ht),at=function(et){function ze(xe,Te,Me,Ce){var ut=et.call(this,xe,Ce||'<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 ut.fonts=[],ut.fontBoxes=[],ut.fonts=Te,ut.currentFont=Me,ut.setCurrentFont=ut.setCurrentFont.bind(ut),ut}return Ie(ze,et),ze.prototype.getUi=function(){var xe=this,Te=document.createElement("div");return Te.style.overflow="hidden",Te.style.flexGrow="2",this.fonts.forEach(function(Me){var Ce=document.createElement("div");Ce.style.display="inline-block",Ce.style.alignItems="center",Ce.style.justifyContent="space-between",Ce.style.padding="5px",Ce.style.borderWidth="2px",Ce.style.borderStyle="solid",Ce.style.overflow="hidden",Ce.style.maxWidth=100/xe.fonts.length-5+"%",Ce.style.borderColor=Me===xe.currentFont?xe.uiStyleSettings.toolboxAccentColor:"transparent",Ce.addEventListener("click",function(){xe.setCurrentFont(Me,Ce)}),Te.appendChild(Ce);var ut=document.createElement("div");ut.style.display="flex",ut.style.minHeight="20px",ut.style.flexGrow="2",ut.style.fontFamily=Me,ut.style.overflow="hidden";var Lt=document.createElement("div");Lt.style.whiteSpace="nowrap",Lt.style.overflow="hidden",Lt.style.textOverflow="ellipsis",Lt.innerHTML="The quick brown fox jumps over the lazy dog",ut.appendChild(Lt),Ce.appendChild(ut),xe.fontBoxes.push(Ce)}),Te},ze.prototype.setCurrentFont=function(xe,Te){var Me=this;this.currentFont=xe,this.fontBoxes.forEach(function(Ce){Ce.style.borderColor=Ce===Te?Me.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ze}(te),At=function(et){function ze(xe,Te,Me){var Ce=et.call(this,xe,Te,Me)||this;return Ce.color="transparent",Ce.padding=5,Ce.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Ce.text=Ce.DEFAULT_TEXT,Ce.isMoved=!1,Ce.color=Me.defaultColor,Ce.fontFamily=Me.defaultFontFamily,Ce.defaultSize={x:100,y:30},Ce.setColor=Ce.setColor.bind(Ce),Ce.setFont=Ce.setFont.bind(Ce),Ce.renderText=Ce.renderText.bind(Ce),Ce.sizeText=Ce.sizeText.bind(Ce),Ce.textEditDivClicked=Ce.textEditDivClicked.bind(Ce),Ce.showTextEditor=Ce.showTextEditor.bind(Ce),Ce.setSize=Ce.setSize.bind(Ce),Ce.positionTextEditor=Ce.positionTextEditor.bind(Ce),Ce.colorPanel=new ne("Color",Me.defaultColorSet,Me.defaultColor),Ce.colorPanel.onColorChanged=Ce.setColor,Ce.fontFamilyPanel=new at("Font",Me.defaultFontFamilies,Me.defaultFontFamily),Ce.fontFamilyPanel.onFontChanged=Ce.setFont,Ce}return Ie(ze,et),ze.prototype.ownsTarget=function(xe){if(et.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(Me){Me===xe&&(Te=!0)}),Te},ze.prototype.createVisual=function(){this.visual=Re.createGroup(),this.bgRectangle=Re.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Re.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Re.createTransform()),this.textElement.transform.baseVal.appendItem(Re.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},ze.prototype.pointerDown=function(xe,Te){et.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")},ze.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(Re.createTSpan(Te.trim()===""?" ":Te.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ze.prototype.getTextScale=function(){var xe=this.textElement.getBBox(),Te=1;if(xe.width>0&&xe.height>0){var Me=(1*this.width-this.width*this.padding*2/100)/xe.width,Ce=(1*this.height-this.height*this.padding*2/100)/xe.height;Te=Math.min(Me,Ce)}return Te},ze.prototype.getTextPosition=function(xe){var Te=this.textElement.getBBox(),Me=0,Ce=0;return Te.width>0&&Te.height>0&&(Me=(this.width-Te.width*xe)/2,Ce=this.height/2-Te.height*xe/2),{x:Me,y:Ce}},ze.prototype.sizeText=function(){var xe=this.textElement.getBBox(),Te=this.getTextScale(),Me=this.getTextPosition(Te);Me.y-=xe.y*Te,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Me.x+"px, "+Me.y+"px) scale("+Te+", "+Te+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Me.x,Me.y),this.textElement.transform.baseVal.getItem(1).setScale(Te,Te))},ze.prototype.manipulate=function(xe){et.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)},ze.prototype.resize=function(xe){et.prototype.resize.call(this,xe),this.isMoved=!0,this.setSize(),this.sizeText()},ze.prototype.setSize=function(){et.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Re.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Re.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},ze.prototype.pointerUp=function(xe){var Te=this.state;Te==="creating"&&(this._suppressMarkerCreateEvent=!0),et.prototype.pointerUp.call(this,xe),this.setSize(),(Te==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},ze.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 Me=Te.clipboardData.getData("text"),Ce=window.getSelection();if(!Ce.rangeCount)return!1;Ce.deleteFromDocument(),Ce.getRangeAt(0).insertNode(document.createTextNode(Me)),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")},ze.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}),Me=this.textElement.getBBox(),Ce={x:Me.width*xe,y:Me.height*xe};Te.x-=Ce.x/2,Te.y-=Ce.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"}},ze.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()},ze.prototype.select=function(){et.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},ze.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),et.prototype.deselect.call(this)},ze.prototype.dblClick=function(xe,Te){et.prototype.dblClick.call(this,xe,Te),this.showTextEditor()},ze.prototype.setColor=function(xe){this.textElement&&Re.setAttributes(this.textElement,[["fill",xe]]),this.color=xe,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(xe)},ze.prototype.setFont=function(xe){this.textElement&&Re.setAttributes(this.textElement,[["font-family",xe]]),this.fontFamily=xe,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},ze.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},ze.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(ze.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ze.prototype.getState=function(){var xe=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},et.prototype.getState.call(this));return xe.typeName=ze.typeName,xe},ze.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(),et.prototype.restoreState.call(this,xe),this.setSize()},ze.prototype.scale=function(xe,Te){et.prototype.scale.call(this,xe,Te),this.setSize(),this.sizeText(),this.positionTextEditor()},ze.typeName="TextMarker",ze.title="Text marker",ze.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>',ze}(Ae),It=function(et){function ze(xe,Te,Me){var Ce=et.call(this,xe,Te,Me)||this;return Ce.color="transparent",Ce.lineWidth=3,Ce.drawing=!1,Ce.pixelRatio=1,Ce.color=Me.defaultColor,Ce.lineWidth=Me.defaultStrokeWidth,Ce.pixelRatio=Me.freehandPixelRatio,Ce.setColor=Ce.setColor.bind(Ce),Ce.addCanvas=Ce.addCanvas.bind(Ce),Ce.finishCreation=Ce.finishCreation.bind(Ce),Ce.setLineWidth=Ce.setLineWidth.bind(Ce),Ce.colorPanel=new ne("Color",Me.defaultColorSet,Me.defaultColor),Ce.colorPanel.onColorChanged=Ce.setColor,Ce.lineWidthPanel=new Be("Line width",Me.defaultStrokeWidths,Me.defaultStrokeWidth),Ce.lineWidthPanel.onWidthChanged=Ce.setLineWidth,Ce}return Ie(ze,et),ze.prototype.ownsTarget=function(xe){return!(!et.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.drawingImage)},ze.prototype.createVisual=function(){this.visual=Re.createGroup(),this.drawingImage=Re.createImage(),this.visual.appendChild(this.drawingImage);var xe=Re.createTransform();this.visual.transform.baseVal.appendItem(xe),this.addMarkerVisualToContainer(this.visual)},ze.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):et.prototype.pointerDown.call(this,xe,Te)},ze.prototype.manipulate=function(xe){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(xe.x,xe.y),this.canvasContext.stroke()):et.prototype.manipulate.call(this,xe)},ze.prototype.resize=function(xe){et.prototype.resize.call(this,xe),Re.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Re.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},ze.prototype.pointerUp=function(xe){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):et.prototype.pointerUp.call(this,xe)},ze.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)},ze.prototype.select=function(){this.state==="creating"&&this.finishCreation(),et.prototype.select.call(this)},ze.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),et.prototype.deselect.call(this)},ze.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],Me=Te[0],Ce=Te[1],ut=Te[2],Lt=Te[3],Mt=!1,Yt=0;Yt<this.canvasElement.height;Yt++)for(var Vt=0;Vt<this.canvasElement.width;Vt++)xe.data[Yt*this.canvasElement.width*4+4*Vt+3]>0&&(Mt=!0,Yt<Ce&&(Ce=Yt),Vt<Me&&(Me=Vt),Yt>Lt&&(Lt=Yt),Vt>ut&&(ut=Vt));if(Mt){this.left=Me/this.pixelRatio,this.top=Ce/this.pixelRatio,this.width=(ut-Me)/this.pixelRatio,this.height=(Lt-Ce)/this.pixelRatio;var Gt=document.createElement("canvas");Gt.width=ut-Me,Gt.height=Lt-Ce,Gt.getContext("2d").putImageData(this.canvasContext.getImageData(Me,Ce,ut-Me,Lt-Ce),0,0),this.drawingImgUrl=Gt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ze.prototype.setDrawingImage=function(){Re.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Re.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},ze.prototype.setColor=function(xe){this.color=xe,this.colorChanged(xe)},ze.prototype.setLineWidth=function(xe){this.lineWidth=xe},Object.defineProperty(ze.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),ze.prototype.getState=function(){var xe=Object.assign({drawingImgUrl:this.drawingImgUrl},et.prototype.getState.call(this));return xe.typeName=ze.typeName,xe},ze.prototype.restoreState=function(xe){this.createVisual(),et.prototype.restoreState.call(this,xe),this.drawingImgUrl=xe.drawingImgUrl,this.setDrawingImage()},ze.prototype.scale=function(xe,Te){et.prototype.scale.call(this,xe,Te),this.setDrawingImage()},ze.typeName="FreehandMarker",ze.title="Freehand marker",ze.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>',ze}(Ae),$t=function(et){function ze(xe,Te,Me){var Ce=et.call(this,xe,Me||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Ce.typeBoxes=[],Ce.currentType=Te,Ce.setCurrentType=Ce.setCurrentType.bind(Ce),Ce}return Ie(ze,et),ze.prototype.getUi=function(){var xe=this,Te=document.createElement("div");Te.style.display="flex",Te.style.overflow="hidden",Te.style.flexGrow="2";for(var Me=function(Lt){var Mt="both";switch(Lt){case 0:Mt="both";break;case 1:Mt="start";break;case 2:Mt="end";break;case 3:Mt="none"}var Yt=document.createElement("div");if(Yt.style.display="flex",Yt.style.flexGrow="2",Yt.style.alignItems="center",Yt.style.justifyContent="space-between",Yt.style.padding="5px",Yt.style.borderWidth="2px",Yt.style.borderStyle="solid",Yt.style.borderColor=Mt===Ce.currentType?Ce.uiStyleSettings.toolboxAccentColor:"transparent",Yt.addEventListener("click",function(){xe.setCurrentType(Mt,Yt)}),Te.appendChild(Yt),Mt==="both"||Mt==="start"){var Vt=document.createElement("div");Vt.style.display="flex",Vt.style.alignItems="center",Vt.style.minHeight="20px",Vt.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="`+(Ce.uiStyleSettings!==void 0?Ce.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Vt.style.marginLeft="5px",Yt.appendChild(Vt)}var Gt=document.createElement("div");Gt.style.display="flex",Gt.style.alignItems="center",Gt.style.minHeight="20px",Gt.style.flexGrow="2";var gn=document.createElement("hr");if(gn.style.minWidth="20px",gn.style.border="0px",gn.style.borderTop="3px solid "+(Ce.uiStyleSettings!==void 0?Ce.uiStyleSettings.toolboxColor:"#eeeeee"),gn.style.flexGrow="2",Gt.appendChild(gn),Yt.appendChild(Gt),Mt==="both"||Mt==="end"){var qt=document.createElement("div");qt.style.display="flex",qt.style.alignItems="center",qt.style.minHeight="20px",qt.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="`+(Ce.uiStyleSettings!==void 0?Ce.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,qt.style.marginRight="5px",Yt.appendChild(qt)}Ce.typeBoxes.push(Yt)},Ce=this,ut=0;ut<4;ut++)Me(ut);return Te},ze.prototype.setCurrentType=function(xe,Te){var Me=this;this.currentType=xe,this.typeBoxes.forEach(function(Ce){Ce.style.borderColor=Ce===Te?Me.uiStyleSettings!==void 0?Me.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ze}(te),Tn=function(et){function ze(xe,Te,Me){var Ce=et.call(this,xe,Te,Me)||this;return Ce.arrowType="end",Ce.arrowBaseHeight=10,Ce.arrowBaseWidth=10,Ce.getArrowPoints=Ce.getArrowPoints.bind(Ce),Ce.setArrowType=Ce.setArrowType.bind(Ce),Ce.arrowTypePanel=new $t("Arrow type","end"),Ce.arrowTypePanel.onArrowTypeChanged=Ce.setArrowType,Ce}return Ie(ze,et),ze.prototype.ownsTarget=function(xe){return!(!et.prototype.ownsTarget.call(this,xe)&&xe!==this.arrow1&&xe!==this.arrow2)},ze.prototype.getArrowPoints=function(xe,Te){var Me=this.arrowBaseWidth+2*this.strokeWidth,Ce=this.arrowBaseHeight+2*this.strokeWidth;return xe-Me/2+","+(Te+Ce/2)+" "+xe+","+(Te-Ce/2)+" "+(xe+Me/2)+","+(Te+Ce/2)},ze.prototype.createTips=function(){this.arrow1=Re.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Re.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Re.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Re.createTransform()),this.visual.appendChild(this.arrow2)},ze.prototype.pointerDown=function(xe,Te){et.prototype.pointerDown.call(this,xe,Te),this.state==="creating"&&this.createTips()},ze.prototype.adjustVisual=function(){if(et.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",Re.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Re.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 Me=this.arrow2.transform.baseVal.getItem(0);Me.setRotate(xe+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Me,0)}},ze.prototype.setArrowType=function(xe){this.arrowType=xe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ze.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),ze.prototype.getState=function(){var xe=Object.assign({arrowType:this.arrowType},et.prototype.getState.call(this));return xe.typeName=ze.typeName,xe},ze.prototype.restoreState=function(xe){et.prototype.restoreState.call(this,xe);var Te=xe;this.arrowType=Te.arrowType,this.createTips(),this.adjustVisual()},ze.typeName="ArrowMarker",ze.title="Arrow marker",ze.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',ze}(bt),yn=function(et){function ze(xe,Te,Me){var Ce=et.call(this,xe,Te,Me)||this;return Ce.fillColor=Me.defaultFillColor,Ce.strokeWidth=0,Ce.fillPanel=new ne("Color",Me.defaultColorSet,Me.defaultFillColor),Ce.fillPanel.onColorChanged=Ce.setFillColor,Ce}return Ie(ze,et),Object.defineProperty(ze.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),ze.prototype.getState=function(){var xe=et.prototype.getState.call(this);return xe.typeName=ze.typeName,xe},ze.typeName="CoverMarker",ze.title="Cover marker",ze.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',ze}(Oe),un=function(et){function ze(xe,Te,Me,Ce){var ut=et.call(this,xe,Ce||'<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 ut.opacities=[],ut.opacityBoxes=[],ut.opacities=Te,ut.currentOpacity=Me,ut.setCurrentOpacity=ut.setCurrentOpacity.bind(ut),ut}return Ie(ze,et),ze.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(Me){var Ce=document.createElement("div");Ce.style.display="flex",Ce.style.alignItems="center",Ce.style.justifyContent="center",Ce.style.padding="5px",Ce.style.borderWidth="2px",Ce.style.borderStyle="solid",Ce.style.borderColor=Me===xe.currentOpacity?xe.uiStyleSettings.toolboxAccentColor:"transparent",Ce.addEventListener("click",function(){xe.setCurrentOpacity(Me,Ce)}),Te.appendChild(Ce);var ut=document.createElement("div");ut.innerText=100*Me+"%",Ce.appendChild(ut),xe.opacityBoxes.push(Ce)}),Te},ze.prototype.setCurrentOpacity=function(xe,Te){var Me=this;this.currentOpacity=xe,this.opacityBoxes.forEach(function(Ce){Ce.style.borderColor=Ce===Te?Me.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ze}(te),On=function(et){function ze(xe,Te,Me){var Ce=et.call(this,xe,Te,Me)||this;return Ce.setOpacity=Ce.setOpacity.bind(Ce),Ce.fillColor=Me.defaultHighlightColor,Ce.strokeWidth=0,Ce.opacity=Me.defaultHighlightOpacity,Ce.fillPanel=new ne("Color",Me.defaultColorSet,Ce.fillColor),Ce.fillPanel.onColorChanged=Ce.setFillColor,Ce.opacityPanel=new un("Opacity",Me.defaultOpacitySteps,Ce.opacity),Ce.opacityPanel.onOpacityChanged=Ce.setOpacity,Ce}return Ie(ze,et),ze.prototype.setOpacity=function(xe){this.opacity=xe,this.visual&&Re.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ze.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ze.prototype.getState=function(){var xe=et.prototype.getState.call(this);return xe.typeName=ze.typeName,xe},ze.typeName="HighlightMarker",ze.title="Highlight marker",ze.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>',ze}(yn),xt='<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>',ct='<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>',it=function(et){function ze(xe,Te,Me){var Ce=et.call(this,xe,Te,Me)||this;return Ce.bgColor="transparent",Ce.tipPosition={x:0,y:0},Ce.tipBase1Position={x:0,y:0},Ce.tipBase2Position={x:0,y:0},Ce.tipMoving=!1,Ce.color=Me.defaultStrokeColor,Ce.bgColor=Me.defaultFillColor,Ce.fontFamily=Me.defaultFontFamily,Ce.defaultSize={x:100,y:30},Ce.setBgColor=Ce.setBgColor.bind(Ce),Ce.getTipPoints=Ce.getTipPoints.bind(Ce),Ce.positionTip=Ce.positionTip.bind(Ce),Ce.setTipPoints=Ce.setTipPoints.bind(Ce),Ce.colorPanel=new ne("Text color",Me.defaultColorSet,Ce.color,xt),Ce.colorPanel.onColorChanged=Ce.setColor,Ce.bgColorPanel=new ne("Fill color",Me.defaultColorSet,Ce.bgColor,ct),Ce.bgColorPanel.onColorChanged=Ce.setBgColor,Ce.fontFamilyPanel=new at("Font",Me.defaultFontFamilies,Me.defaultFontFamily),Ce.fontFamilyPanel.onFontChanged=Ce.setFont,Ce.tipGrip=new ge,Ce.tipGrip.visual.transform.baseVal.appendItem(Re.createTransform()),Ce.controlBox.appendChild(Ce.tipGrip.visual),Ce}return Ie(ze,et),ze.prototype.ownsTarget=function(xe){return et.prototype.ownsTarget.call(this,xe)||this.tipGrip.ownsTarget(xe)||this.tip===xe},ze.prototype.createTip=function(){Re.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Re.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},ze.prototype.pointerDown=function(xe,Te){this.state==="new"&&et.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):et.prototype.pointerDown.call(this,xe,Te)},ze.prototype.pointerUp=function(xe){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,et.prototype.pointerUp.call(this,xe);else{var Te=this.state==="creating";et.prototype.pointerUp.call(this,xe),this.setTipPoints(Te),this.positionTip()}},ze.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 et.prototype.manipulate.call(this,xe)},ze.prototype.setBgColor=function(xe){this.bgRectangle&&this.tip&&(Re.setAttributes(this.bgRectangle,[["fill",xe]]),Re.setAttributes(this.tip,[["fill",xe]])),this.bgColor=xe,this.fillColorChanged(xe)},ze.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},ze.prototype.setTipPoints=function(xe){xe===void 0&&(xe=!1);var Te=Math.min(this.height/2,15),Me=this.height/5;xe&&(this.tipPosition={x:Te+Me/2,y:this.height+20});var Ce=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Ce<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Me=this.width/5,Te=Math.min(this.width/2,15),this.tipBase1Position={x:Te,y:0},this.tipBase2Position={x:Te+Me,y:0}):(this.tipBase1Position={x:0,y:Te},this.tipBase2Position={x:0,y:Te+Me}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Ce<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Me=this.width/5,Te=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Te-Me,y:0},this.tipBase2Position={x:this.width-Te,y:0}):(this.tipBase1Position={x:this.width,y:Te},this.tipBase2Position={x:this.width,y:Te+Me}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Ce<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Me=this.width/5,Te=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Te-Me,y:this.height},this.tipBase2Position={x:this.width-Te,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Te-Me},this.tipBase2Position={x:this.width,y:this.height-Te}):Ce<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Me=this.width/5,Te=Math.min(this.width/2,15),this.tipBase1Position={x:Te,y:this.height},this.tipBase2Position={x:Te+Me,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Te},this.tipBase2Position={x:0,y:this.height-Te-Me})},ze.prototype.resize=function(xe){et.prototype.resize.call(this,xe),this.positionTip()},ze.prototype.positionTip=function(){Re.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(ze.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ze.prototype.select=function(){this.positionTip(),et.prototype.select.call(this)},ze.prototype.getState=function(){var xe=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},et.prototype.getState.call(this));return xe.typeName=ze.typeName,xe},ze.prototype.restoreState=function(xe){var Te=xe;this.bgColor=Te.bgColor,this.tipPosition=Te.tipPosition,et.prototype.restoreState.call(this,xe),this.createTip(),this.setTipPoints()},ze.prototype.scale=function(xe,Te){et.prototype.scale.call(this,xe,Te),this.tipPosition={x:this.tipPosition.x*xe,y:this.tipPosition.y*Te},this.positionTip()},ze.typeName="CalloutMarker",ze.title="Callout marker",ze.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>',ze}(At),cn=function(et){function ze(xe,Te,Me){var Ce=et.call(this,xe,Te,Me)||this;return Ce.fillColor="transparent",Ce.strokeColor="transparent",Ce.strokeWidth=0,Ce.strokeDasharray="",Ce.opacity=1,Ce.strokeColor=Me.defaultColor,Ce.strokeWidth=Me.defaultStrokeWidth,Ce.strokeDasharray=Me.defaultStrokeDasharray,Ce.fillColor=Me.defaultFillColor,Ce.setStrokeColor=Ce.setStrokeColor.bind(Ce),Ce.setFillColor=Ce.setFillColor.bind(Ce),Ce.setStrokeWidth=Ce.setStrokeWidth.bind(Ce),Ce.setStrokeDasharray=Ce.setStrokeDasharray.bind(Ce),Ce.setOpacity=Ce.setOpacity.bind(Ce),Ce.createVisual=Ce.createVisual.bind(Ce),Ce.strokePanel=new ne("Line color",Ye(Me.defaultColorSet,["transparent"]),Me.defaultColor),Ce.strokePanel.onColorChanged=Ce.setStrokeColor,Ce.fillPanel=new ne("Fill color",Ye(Me.defaultColorSet,["transparent"]),Ce.fillColor,ct),Ce.fillPanel.onColorChanged=Ce.setFillColor,Ce.strokeWidthPanel=new Be("Line width",Me.defaultStrokeWidths,Me.defaultStrokeWidth),Ce.strokeWidthPanel.onWidthChanged=Ce.setStrokeWidth,Ce.strokeStylePanel=new Ke("Line style",Me.defaultStrokeDasharrays,Me.defaultStrokeDasharray),Ce.strokeStylePanel.onStyleChanged=Ce.setStrokeDasharray,Ce.opacityPanel=new un("Opacity",Me.defaultOpacitySteps,Ce.opacity),Ce.opacityPanel.onOpacityChanged=Ce.setOpacity,Ce}return Ie(ze,et),ze.prototype.ownsTarget=function(xe){return!(!et.prototype.ownsTarget.call(this,xe)&&xe!==this.visual)},ze.prototype.createVisual=function(){this.visual=Re.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)},ze.prototype.pointerDown=function(xe,Te){et.prototype.pointerDown.call(this,xe,Te),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},ze.prototype.manipulate=function(xe){et.prototype.manipulate.call(this,xe)},ze.prototype.resize=function(xe){et.prototype.resize.call(this,xe),this.setSize()},ze.prototype.setSize=function(){et.prototype.setSize.call(this),Re.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},ze.prototype.pointerUp=function(xe){et.prototype.pointerUp.call(this,xe),this.setSize()},ze.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.visual&&Re.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(xe),this.stateChanged()},ze.prototype.setFillColor=function(xe){this.fillColor=xe,this.visual&&Re.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(xe),this.stateChanged()},ze.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.visual&&Re.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ze.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.visual&&Re.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ze.prototype.setOpacity=function(xe){this.opacity=xe,this.visual&&Re.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ze.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ze.prototype.getState=function(){var xe=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},et.prototype.getState.call(this));return xe.typeName=ze.typeName,xe},ze.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(),et.prototype.restoreState.call(this,xe),this.setSize()},ze.prototype.scale=function(xe,Te){et.prototype.scale.call(this,xe,Te),this.setSize()},ze.typeName="EllipseMarker",ze.title="Ellipse marker",ze.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>',ze}(Ae),An=function(et){function ze(xe,Te,Me){return et.call(this,xe,Te,Me)||this}return Ie(ze,et),Object.defineProperty(ze.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),ze.prototype.ownsTarget=function(xe){return!(!et.prototype.ownsTarget.call(this,xe)&&xe!==this.tip1&&xe!==this.tip2)},ze.prototype.createTips=function(){this.tip1=Re.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(Re.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Re.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(Re.createTransform()),this.visual.appendChild(this.tip2)},ze.prototype.pointerDown=function(xe,Te){et.prototype.pointerDown.call(this,xe,Te),this.state==="creating"&&this.createTips()},ze.prototype.adjustVisual=function(){if(et.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Re.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()]]),Re.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 Me=this.tip2.transform.baseVal.getItem(0);Me.setRotate(xe+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Me,0)}},Object.defineProperty(ze.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ze.prototype.getState=function(){var xe=et.prototype.getState.call(this);return xe.typeName=ze.typeName,xe},ze.prototype.restoreState=function(xe){et.prototype.restoreState.call(this,xe),this.createTips(),this.adjustVisual()},ze.typeName="MeasurementMarker",ze.title="Measurement marker",ze.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>',ze}(bt),Pt=function(et){function ze(xe,Te,Me){var Ce=et.call(this,xe,Te,Me)||this;return Ce.strokePanel.colors=Me.defaultColorSet,Ce.fillColor="transparent",Ce}return Ie(ze,et),Object.defineProperty(ze.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ze.prototype.getState=function(){var xe=et.prototype.getState.call(this);return xe.typeName=ze.typeName,xe},ze.typeName="EllipseFrameMarker",ze.title="Ellipse frame marker",ze.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>',ze}(cn),an=function(){function et(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(et.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),et.prototype.addUndoStep=function(ze){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(ze)||(this.undoStack.push(ze),JSON.stringify(this.lastRedoStep)!==JSON.stringify(ze)&&this.redoStack.splice(0,this.redoStack.length))},et.prototype.replaceLastUndoStep=function(ze){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ze)},et.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},et.prototype.undo=function(){if(this.undoStack.length>1){var ze=this.undoStack.pop();return ze!==void 0&&this.redoStack.push(ze),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},et.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},et}(),ln=function(et){function ze(xe,Te,Me){var Ce=et.call(this,xe,Te,Me)||this;return Ce.strokeColor="transparent",Ce.strokeWidth=0,Ce.strokeDasharray="",Ce.curveX=0,Ce.curveY=0,Ce.manipulationStartCurveX=0,Ce.manipulationStartCurveY=0,Ce.setStrokeColor=Ce.setStrokeColor.bind(Ce),Ce.setStrokeWidth=Ce.setStrokeWidth.bind(Ce),Ce.setStrokeDasharray=Ce.setStrokeDasharray.bind(Ce),Ce.positionGrips=Ce.positionGrips.bind(Ce),Ce.addControlGrips=Ce.addControlGrips.bind(Ce),Ce.adjustVisual=Ce.adjustVisual.bind(Ce),Ce.setupControlBox=Ce.setupControlBox.bind(Ce),Ce.resize=Ce.resize.bind(Ce),Ce.strokeColor=Me.defaultColor,Ce.strokeWidth=Me.defaultStrokeWidth,Ce.strokeDasharray=Me.defaultStrokeDasharray,Ce.strokePanel=new ne("Line color",Me.defaultColorSet,Me.defaultColor),Ce.strokePanel.onColorChanged=Ce.setStrokeColor,Ce.strokeWidthPanel=new Be("Line width",Me.defaultStrokeWidths,Me.defaultStrokeWidth),Ce.strokeWidthPanel.onWidthChanged=Ce.setStrokeWidth,Ce.strokeStylePanel=new Ke("Line style",Me.defaultStrokeDasharrays,Me.defaultStrokeDasharray),Ce.strokeStylePanel.onStyleChanged=Ce.setStrokeDasharray,Ce}return Ie(ze,et),ze.prototype.ownsTarget=function(xe){return!(!et.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.selectorCurve&&xe!==this.visibleCurve&&!this.curveGrip.ownsTarget(xe))},ze.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},ze.prototype.createVisual=function(){this.visual=Re.createGroup(),this.selectorCurve=Re.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Re.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)},ze.prototype.pointerDown=function(xe,Te){et.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")},ze.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Re.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Re.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Re.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ze.prototype.setupControlBox=function(){et.prototype.setupControlBox.call(this),this.curveControlLine1=Re.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Re.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)},ze.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,et.prototype.addControlGrips.call(this)},ze.prototype.positionGrips=function(){et.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()))},ze.prototype.manipulate=function(xe){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+xe.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+xe.y-this.manipulationStartY),et.prototype.manipulate.call(this,xe)},ze.prototype.resize=function(xe){this.activeGrip===this.curveGrip&&(this.curveX=xe.x,this.curveY=xe.y),et.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)},ze.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.adjustVisual(),this.colorChanged(xe)},ze.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.adjustVisual()},ze.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.adjustVisual()},ze.prototype.scale=function(xe,Te){this.curveX=this.curveX*xe,this.curveY=this.curveY*Te,et.prototype.scale.call(this,xe,Te)},Object.defineProperty(ze.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ze.prototype.getState=function(){var xe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},et.prototype.getState.call(this));return xe.typeName=ze.typeName,xe},ze.prototype.restoreState=function(xe){et.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()},ze.typeName="CurveMarker",ze.title="Curve marker",ze.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>',ze}(ht),zn=function(et){function ze(xe,Te,Me){var Ce=et.call(this,xe,Te,Me)||this;return Ce.fillColor="transparent",Ce.strokeColor="transparent",Ce.strokeWidth=0,Ce.strokeDasharray="",Ce.textColor="transparent",Ce.fontSize="1rem",Ce.isMoved=!1,Ce.captionText="Caption",Ce.PADDING=5,Ce.captionBoxWidth=0,Ce.captionBoxHeight=0,Ce.strokeColor=Me.defaultColor,Ce.strokeWidth=Me.defaultStrokeWidth,Ce.strokeDasharray=Me.defaultStrokeDasharray,Ce.fillColor=Me.defaultFillColor,Ce.textColor=Me.defaultStrokeColor,Ce.fontFamily=Me.defaultFontFamily,Ce.fontSize=Me.defaultCaptionFontSize,Ce.captionText=Me.defaultCaptionText,Ce.setStrokeColor=Ce.setStrokeColor.bind(Ce),Ce.setFillColor=Ce.setFillColor.bind(Ce),Ce.setStrokeWidth=Ce.setStrokeWidth.bind(Ce),Ce.setStrokeDasharray=Ce.setStrokeDasharray.bind(Ce),Ce.createVisual=Ce.createVisual.bind(Ce),Ce.sizeCaption=Ce.sizeCaption.bind(Ce),Ce.setCaptionText=Ce.setCaptionText.bind(Ce),Ce.showTextEditor=Ce.showTextEditor.bind(Ce),Ce.positionTextEditor=Ce.positionTextEditor.bind(Ce),Ce.finishTextEditing=Ce.finishTextEditing.bind(Ce),Ce.setFont=Ce.setFont.bind(Ce),Ce.setTextColor=Ce.setTextColor.bind(Ce),Ce.strokePanel=new ne("Line color",Ye(Me.defaultColorSet,["transparent"]),Ce.strokeColor),Ce.strokePanel.onColorChanged=Ce.setStrokeColor,Ce.fillPanel=new ne("Fill color",Ye(Me.defaultColorSet,["transparent"]),Ce.fillColor,ct),Ce.fillPanel.onColorChanged=Ce.setFillColor,Ce.strokeWidthPanel=new Be("Line width",Me.defaultStrokeWidths,Me.defaultStrokeWidth),Ce.strokeWidthPanel.onWidthChanged=Ce.setStrokeWidth,Ce.strokeStylePanel=new Ke("Line style",Me.defaultStrokeDasharrays,Me.defaultStrokeDasharray),Ce.strokeStylePanel.onStyleChanged=Ce.setStrokeDasharray,Ce.fontFamilyPanel=new at("Font",Me.defaultFontFamilies,Me.defaultFontFamily),Ce.fontFamilyPanel.onFontChanged=Ce.setFont,Ce.textColorPanel=new ne("Text color",Me.defaultColorSet,Ce.textColor,xt),Ce.textColorPanel.onColorChanged=Ce.setTextColor,Ce}return Ie(ze,et),ze.prototype.ownsTarget=function(xe){return!(!et.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.frame&&xe!==this.captionBg&&xe!==this.captionElement)},ze.prototype.createVisual=function(){this.visual=Re.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Re.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Re.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=Re.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()},ze.prototype.setCaptionText=function(xe){this.captionText=xe,this.captionElement.textContent=this.captionText,this.sizeCaption()},ze.prototype.pointerDown=function(xe,Te){et.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")},ze.prototype.manipulate=function(xe){et.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)},ze.prototype.resize=function(xe){et.prototype.resize.call(this,xe),this.setSize()},ze.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),Re.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')"]]),Re.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')"]])},ze.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()},ze.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"))},ze.prototype.finishTextEditing=function(xe){this.setCaptionText(xe.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},ze.prototype.setFont=function(xe){this.captionElement&&Re.setAttributes(this.captionElement,[["font-family",xe]]),this.fontFamily=xe,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},ze.prototype.setTextColor=function(xe){this.captionElement&&Re.setAttributes(this.captionElement,[["fill",xe]]),this.textColor=xe,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},ze.prototype.setSize=function(){et.prototype.setSize.call(this),Re.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},ze.prototype.pointerUp=function(xe){et.prototype.pointerUp.call(this,xe),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},ze.prototype.dblClick=function(xe,Te){et.prototype.dblClick.call(this,xe,Te),this.showTextEditor()},ze.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.frame&&Re.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(xe),this.stateChanged()},ze.prototype.setFillColor=function(xe){this.fillColor=xe,this.captionBg&&Re.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(xe),this.stateChanged()},ze.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.frame&&Re.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ze.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.frame&&Re.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(ze.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),ze.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},et.prototype.getState.call(this));return xe.typeName=this.typeName,xe},ze.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(),et.prototype.restoreState.call(this,xe),this.setSize()},ze.prototype.scale=function(xe,Te){et.prototype.scale.call(this,xe,Te),this.setSize()},ze.typeName="CaptionFrameMarker",ze.title="Caption frame marker",ze.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>',ze}(Ae),En=function(){function et(ze,xe){xe===void 0&&(xe=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=ze,this.cancelable=xe}return Object.defineProperty(et.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),et.prototype.preventDefault=function(){this._defaultPrevented=!0},et}(),ii=function(et){function ze(xe,Te,Me){var Ce=et.call(this,xe,!1)||this;return Ce.dataUrl=Te,Ce.state=Me,Ce}return Ie(ze,et),ze}(En),kt=function(et){function ze(xe,Te,Me){Me===void 0&&(Me=!1);var Ce=et.call(this,xe,Me)||this;return Ce.marker=Te,Ce}return Ie(ze,et),ze}(En),Kn=function(){function et(){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 et.prototype.addEventListener=function(ze,xe){this[ze].push(xe)},et.prototype.removeEventListener=function(ze,xe){var Te=this[ze].indexOf(xe);Te>-1&&this[ze].splice(Te,1)},et}(),yi=function(){function et(ze){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new ot,this._isOpen=!1,this.undoRedoManager=new an,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 Kn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=et.instanceCounter++,this.styles=new qe(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=ze,this.targetRoot=document.body,this.width=ze.clientWidth,this.height=ze.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(et.prototype,"ALL_MARKER_TYPES",{get:function(){return[rt,It,Tn,At,Pt,cn,On,it,An,yn,bt,ln,zn]},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[rt,It,Tn,At,cn,On,it]},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"BASIC_MARKER_TYPES",{get:function(){return[rt,It,Tn,At,On]},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(ze){var xe=this;this._availableMarkerTypes.splice(0),ze.forEach(function(Te){if(typeof Te=="string"){var Me=xe.ALL_MARKER_TYPES.find(function(Ce){return Ce.typeName===Te});Me!==void 0&&xe._availableMarkerTypes.push(Me)}else xe._availableMarkerTypes.push(Te)})},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(ze){this._zoomLevel=ze,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(et.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),et.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ve.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},et.prototype.show=function(){var ze=this;this.styles.styleSheetRoot===void 0&&Xe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Xe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(xe){return xe(new En(ze))})},et.prototype.render=function(){return De(this,void 0,void 0,function(){var ze;return Le(this,function(xe){switch(xe.label){case 0:return this.setCurrentMarker(),(ze=new Je).naturalSize=this.renderAtNaturalSize,ze.imageType=this.renderImageType,ze.imageQuality=this.renderImageQuality,ze.markersOnly=this.renderMarkersOnly,ze.width=this.renderWidth,ze.height=this.renderHeight,[4,ze.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return xe.sent(),[4,ze.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,xe.sent()]}})})},et.prototype.close=function(ze){var xe=this;if(ze===void 0&&(ze=!1),this.isOpen){var Te=!1;ze||this.eventListeners.beforeclose.forEach(function(Me){var Ce=new En(xe,!0);Me(Ce),Ce.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(Me){return Me(new En(xe))}),this.detachEvents(),this._isOpen=!1)}},et.prototype.addMarkersToToolbar=function(){for(var ze,xe=[],Te=0;Te<arguments.length;Te++)xe[Te]=arguments[Te];(ze=this._availableMarkerTypes).push.apply(ze,xe)},et.prototype.addRenderEventListener=function(ze){this.addEventListener("render",function(xe){ze(xe.dataUrl,xe.state)})},et.prototype.removeRenderEventListener=function(ze){},et.prototype.addCloseEventListener=function(ze){this.addEventListener("close",function(){ze()})},et.prototype.removeCloseEventListener=function(ze){},et.prototype.setupResizeObserver=function(){var ze=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){ze.resize(ze.target.clientWidth,ze.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return ze.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},et.prototype.onPopupTargetResize=function(){var ze=1*this.target.clientWidth/this.target.clientHeight,xe=this.editorCanvas.clientWidth/ze>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*ze:this.editorCanvas.clientWidth,Te=xe<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/ze;this.resize(xe,Te)},et.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},et.prototype.resize=function(ze,xe){this._isResizing=!0;var Te=ze/this.imageWidth,Me=xe/this.imageHeight;this.imageWidth=Math.round(ze),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,Me),this._isResizing=!1},et.prototype.scaleMarkers=function(ze,xe){var Te,Me=this;this._currentMarker&&this._currentMarker instanceof At?this._currentMarker.scale(ze,xe):(Te=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Ce){Ce!==Me._currentMarker&&Ce.scale(ze,xe)}),Te!==void 0&&this.setCurrentMarker(Te)},et.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"},et.prototype.setTopLeft=function(){var ze=this.editingTarget.getBoundingClientRect(),xe=this.editorCanvas.getBoundingClientRect();this.left=ze.left-xe.left,this.top=ze.top-xe.top},et.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)},et.prototype.addDefs=function(){for(var ze,xe=[],Te=0;Te<arguments.length;Te++)xe[Te]=arguments[Te];this.defs=Re.createDefs(),this.addDefsToImage(),(ze=this.defs).append.apply(ze,xe)},et.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},et.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)},et.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},et.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},et.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)},et.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},et.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)},et.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 ze=document.createElement("a");ze.href="https://markerjs.com/",ze.target="_blank",ze.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>',ze.title="Powered by marker.js",ze.style.display="grid",ze.style.alignItems="center",ze.style.justifyItems="center",ze.style.padding="3px",ze.style.width="20px",ze.style.height="20px",this.logoUI.appendChild(ze),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},et.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")},et.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"},et.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},et.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 ze=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=ze+"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 Nt(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 _e(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},et.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},et.prototype.removeMarker=function(ze){this.markerImage.removeChild(ze.container),this.markers.indexOf(ze)>-1&&this.markers.splice(this.markers.indexOf(ze),1),ze.dispose()},et.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())},et.prototype.toolbarButtonClicked=function(ze,xe){if(ze==="marker"&&xe!==void 0)this.createNewMarker(xe);else if(ze==="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()}},et.prototype.deleteSelectedMarker=function(){var ze=this;if(this._currentMarker!==void 0){var xe=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Me){var Ce=new kt(ze,ze._currentMarker,!0);Me(Ce),Ce.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(Me){return Me(new kt(ze,Te))})}}},et.prototype.clear=function(){var ze=this,xe=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ut){var Lt=new kt(ze,void 0,!0);ut(Lt),Lt.defaultPrevented&&(xe=!0)}),!xe)){this.setCurrentMarker();for(var Te=function(ut){var Lt=Me.markers[ut];Me.setCurrentMarker(Me.markers[ut]),Me._currentMarker.dispose(),Me.markerImage.removeChild(Me._currentMarker.container),Me.markers.splice(Me.markers.indexOf(Me._currentMarker),1),Me.eventListeners.markerdelete.forEach(function(Mt){return Mt(new kt(ze,Lt))})},Me=this,Ce=this.markers.length-1;Ce>=0;Ce--)Te(Ce);this.addUndoStep()}},Object.defineProperty(et.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),et.prototype.showNotesEditor=function(){var ze;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=(ze=this._currentMarker.notes)!==null&&ze!==void 0?ze:"",this.overlayContainer.appendChild(this.notesArea))},et.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)},et.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},et.prototype.addUndoStep=function(){var ze=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 Me=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(xe),Me<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Ce){return Ce(new En(ze))})}else this.undoRedoManager.replaceLastUndoStep(xe),this.eventListeners.statechange.forEach(function(Ce){return Ce(new En(ze))})}},et.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},et.prototype.undoStep=function(){var ze=this,xe=this.undoRedoManager.undo();xe!==void 0&&(this.restoreState(xe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Te){return Te(new En(ze))}))},et.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},et.prototype.redoStep=function(){var ze=this,xe=this.undoRedoManager.redo();xe!==void 0&&(this.restoreState(xe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Te){return Te(new En(ze))}))},et.prototype.stepZoom=function(){var ze=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=ze<this.zoomSteps.length-1?this.zoomSteps[ze+1]:this.zoomSteps[0]},et.prototype.panTo=function(ze){this.contentDiv.scrollBy({left:this.prevPanPoint.x-ze.x,top:this.prevPanPoint.y-ze.y}),this.prevPanPoint=ze},et.prototype.startRenderAndClose=function(){return De(this,void 0,void 0,function(){var ze,xe,Te=this;return Le(this,function(Me){switch(Me.label){case 0:return[4,this.render()];case 1:return ze=Me.sent(),xe=this.getState(),this.eventListeners.render.forEach(function(Ce){return Ce(new ii(Te,ze,xe))}),this.close(!0),[2]}})})},et.prototype.getState=function(ze){ze===!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},et.prototype.restoreState=function(ze){var xe=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);ze.markers.forEach(function(Te){var Me=xe._availableMarkerTypes.find(function(ut){return ut.typeName===Te.typeName});if(Me!==void 0){var Ce=xe.addNewMarker(Me);Ce.restoreState(Te),xe.markers.push(Ce)}}),ze.width&&ze.height&&(ze.width!==this.imageWidth||ze.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/ze.width,this.imageHeight/ze.height),this.eventListeners.restorestate.forEach(function(Te){return Te(new En(xe))})},et.prototype.addNewMarker=function(ze){var xe=Re.createGroup();return this.markerImage.appendChild(xe),new ze(xe,this.overlayContainer,this.settings)},et.prototype.createNewMarker=function(ze){var xe,Te=this;(xe=typeof ze=="string"?this._availableMarkerTypes.find(function(Me){return Me.typeName===ze}):ze)&&(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(Me){return Me(new kt(Te,Te._currentMarker))}))},et.prototype.markerCreated=function(ze){var xe=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(ze),this.setCurrentMarker(ze),ze instanceof It&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(It):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Te){return Te(new kt(xe,xe._currentMarker))})},et.prototype.colorChanged=function(ze){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=ze,this.settings.defaultStrokeColor=ze)},et.prototype.fillColorChanged=function(ze){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=ze)},et.prototype.markerStateChanged=function(ze){var xe=this;this.eventListeners.markerchange.forEach(function(Te){return Te(new kt(xe,ze))})},et.prototype.setCurrentMarker=function(ze){var xe=this;this._currentMarker!==ze&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Te){return Te(new kt(xe,xe._currentMarker))})),this._currentMarker=ze,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 kt(xe,xe._currentMarker))}))},et.prototype.onPointerDown=function(ze){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||ze.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(ze.target)});xe!==void 0?(this.setCurrentMarker(xe),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ze.clientX,ze.clientY),ze.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:ze.clientX,y:ze.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ze.clientX,ze.clientY))},et.prototype.onDblClick=function(ze){if(this._isFocused||this.focus(),this.mode==="select"){var xe=this.markers.find(function(Te){return Te.ownsTarget(ze.target)});xe!==void 0&&xe!==this._currentMarker&&this.setCurrentMarker(xe),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(ze.clientX,ze.clientY),ze.target):this.setCurrentMarker()}},et.prototype.onPointerMove=function(ze){this.touchPoints!==1&&ze.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||ze.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(ze.clientX,ze.clientY)):this.zoomLevel>1&&this.panTo({x:ze.clientX,y:ze.clientY}))},et.prototype.onPointerUp=function(ze){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(ze.clientX,ze.clientY)),this.isDragging=!1,this.addUndoStep()},et.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},et.prototype.onKeyUp=function(ze){this._currentMarker===void 0||this.notesArea!==void 0||ze.key!=="Delete"&&ze.key!=="Backspace"||this.deleteSelectedMarker()},et.prototype.clientToLocalCoordinates=function(ze,xe){var Te=this.markerImage.getBoundingClientRect();return{x:(ze-Te.left)/this.zoomLevel,y:(xe-Te.top)/this.zoomLevel}},et.prototype.onWindowResize=function(){this.positionUI()},et.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var ze=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ze+"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()},et.prototype.addLicenseKey=function(ze){Ve.addKey(ze)},et.prototype.addEventListener=function(ze,xe){this.eventListeners.addEventListener(ze,xe)},et.prototype.removeEventListener=function(ze,xe){this.eventListeners.removeEventListener(ze,xe)},et.prototype.renderState=function(ze){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(ze),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(et.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),et.prototype.focus=function(){var ze=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 En(ze))}))},et.prototype.blur=function(){var ze=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(xe){return xe(new En(ze))}))},et.instanceCounter=0,et}()},67842:function(Ge){"use strict";var be,de=59;Ge.exports=le;function le(Ie){var De="&"+Ie+";",Le;return be=be||document.createElement("i"),be.innerHTML=De,Le=be.textContent,Le.charCodeAt(Le.length-1)===de&&Ie!=="semi"||Le===De?!1:Le}},12256:function(Ge,be,de){"use strict";var le=de(47854),Ie=de(80501),De=de(22347),Le=de(65207),Ye=de(21127),Re=de(67842);Ge.exports=On;var Ve={}.hasOwnProperty,Je=String.fromCharCode,Xe=Function.prototype,qe={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},mt=9,st=10,Nt=12,_e=32,te=38,ne=59,he=60,se=61,ge=35,Se=88,Ae=120,Oe=65533,Be="named",Ke="hexadecimal",rt="decimal",ot={};ot[Ke]=16,ot[rt]=10;var ht={};ht[Be]=Ye,ht[rt]=De,ht[Ke]=Le;var bt=1,at=2,At=3,It=4,$t=5,Tn=6,yn=7,un={};un[bt]="Named character references must be terminated by a semicolon",un[at]="Numeric character references must be terminated by a semicolon",un[At]="Named character references cannot be empty",un[It]="Numeric character references cannot be empty",un[$t]="Named character references must be known",un[Tn]="Numeric character references cannot be disallowed",un[yn]="Numeric character references cannot be outside the permissible Unicode range";function On(cn,An){var Pt={},an,ln;An||(An={});for(ln in qe)an=An[ln],Pt[ln]=an==null?qe[ln]:an;return(Pt.position.indent||Pt.position.start)&&(Pt.indent=Pt.position.indent||[],Pt.position=Pt.position.start),xt(cn,Pt)}function xt(cn,An){var Pt=An.additional,an=An.nonTerminated,ln=An.text,zn=An.reference,En=An.warning,ii=An.textContext,kt=An.referenceContext,Kn=An.warningContext,yi=An.position,et=An.indent||[],ze=cn.length,xe=0,Te=-1,Me=yi.column||1,Ce=yi.line||1,ut="",Lt=[],Mt,Yt,Vt,Gt,gn,qt,fn,sn,_t,wn,dn,Sn,nn,si,Fn,yt,kn,Cn,Ht;for(typeof Pt=="string"&&(Pt=Pt.charCodeAt(0)),yt=di(),sn=En?zi:Xe,xe--,ze++;++xe<ze;)if(gn===st&&(Me=et[Te]||1),gn=cn.charCodeAt(xe),gn===te){if(fn=cn.charCodeAt(xe+1),fn===mt||fn===st||fn===Nt||fn===_e||fn===te||fn===he||fn!==fn||Pt&&fn===Pt){ut+=Je(gn),Me++;continue}for(nn=xe+1,Sn=nn,Ht=nn,fn===ge?(Ht=++Sn,fn=cn.charCodeAt(Ht),fn===Se||fn===Ae?(si=Ke,Ht=++Sn):si=rt):si=Be,Mt="",dn="",Gt="",Fn=ht[si],Ht--;++Ht<ze&&(fn=cn.charCodeAt(Ht),!!Fn(fn));)Gt+=Je(fn),si===Be&&Ve.call(le,Gt)&&(Mt=Gt,dn=le[Gt]);Vt=cn.charCodeAt(Ht)===ne,Vt&&(Ht++,Yt=si===Be?Re(Gt):!1,Yt&&(Mt=Gt,dn=Yt)),Cn=1+Ht-nn,!Vt&&!an||(Gt?si===Be?(Vt&&!dn?sn($t,1):(Mt!==Gt&&(Ht=Sn+Mt.length,Cn=1+Ht-Sn,Vt=!1),Vt||(_t=Mt?bt:At,An.attribute?(fn=cn.charCodeAt(Ht),fn===se?(sn(_t,Cn),dn=null):Ye(fn)?dn=null:sn(_t,Cn)):sn(_t,Cn))),qt=dn):(Vt||sn(at,Cn),qt=parseInt(Gt,ot[si]),ct(qt)?(sn(yn,Cn),qt=Je(Oe)):qt in Ie?(sn(Tn,Cn),qt=Ie[qt]):(wn="",it(qt)&&sn(Tn,Cn),qt>65535&&(qt-=65536,wn+=Je(qt>>>10|55296),qt=56320|qt&1023),qt=wn+Je(qt))):si!==Be&&sn(It,Cn)),qt?(Ni(),yt=di(),xe=Ht-1,Me+=Ht-nn+1,Lt.push(qt),kn=di(),kn.offset++,zn&&zn.call(kt,qt,{start:yt,end:kn},cn.slice(nn-1,Ht)),yt=kn):(Gt=cn.slice(nn-1,Ht),ut+=Gt,Me+=Gt.length,xe=Ht-1)}else gn===10&&(Ce++,Te++,Me=0),gn===gn?(ut+=Je(gn),Me++):Ni();return Lt.join("");function di(){return{line:Ce,column:Me,offset:xe+(yi.offset||0)}}function zi(Ln,rr){var Hi=di();Hi.column+=rr,Hi.offset+=rr,En.call(Kn,un[Ln],Hi,Ln)}function Ni(){ut&&(Lt.push(ut),ln&&ln.call(ii,ut,{start:yt,end:di()}),ut="")}}function ct(cn){return cn>=55296&&cn<=57343||cn>1114111}function it(cn){return cn>=1&&cn<=8||cn===11||cn>=13&&cn<=31||cn>=127&&cn<=159||cn>=64976&&cn<=65007||(cn&65535)===65535||(cn&65535)===65534}},68398:function(Ge,be,de){var le=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{};var Ie=function(De){var Le=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,Ye=0,Re={},Ve={manual:De.Prism&&De.Prism.manual,disableWorkerMessageHandler:De.Prism&&De.Prism.disableWorkerMessageHandler,util:{encode:function se(ge){return ge instanceof Je?new Je(ge.type,se(ge.content),ge.alias):Array.isArray(ge)?ge.map(se):ge.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(se){return Object.prototype.toString.call(se).slice(8,-1)},objId:function(se){return se.__id||Object.defineProperty(se,"__id",{value:++Ye}),se.__id},clone:function se(ge,Se){Se=Se||{};var Ae,Oe;switch(Ve.util.type(ge)){case"Object":if(Oe=Ve.util.objId(ge),Se[Oe])return Se[Oe];Ae={},Se[Oe]=Ae;for(var Be in ge)ge.hasOwnProperty(Be)&&(Ae[Be]=se(ge[Be],Se));return Ae;case"Array":return Oe=Ve.util.objId(ge),Se[Oe]?Se[Oe]:(Ae=[],Se[Oe]=Ae,ge.forEach(function(Ke,rt){Ae[rt]=se(Ke,Se)}),Ae);default:return ge}},getLanguage:function(se){for(;se;){var ge=Le.exec(se.className);if(ge)return ge[1].toLowerCase();se=se.parentElement}return"none"},setLanguage:function(se,ge){se.className=se.className.replace(RegExp(Le,"gi"),""),se.classList.add("language-"+ge)},currentScript:function(){if(typeof document=="undefined")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(Ae){var se=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(Ae.stack)||[])[1];if(se){var ge=document.getElementsByTagName("script");for(var Se in ge)if(ge[Se].src==se)return ge[Se]}return null}},isActive:function(se,ge,Se){for(var Ae="no-"+ge;se;){var Oe=se.classList;if(Oe.contains(ge))return!0;if(Oe.contains(Ae))return!1;se=se.parentElement}return!!Se}},languages:{plain:Re,plaintext:Re,text:Re,txt:Re,extend:function(se,ge){var Se=Ve.util.clone(Ve.languages[se]);for(var Ae in ge)Se[Ae]=ge[Ae];return Se},insertBefore:function(se,ge,Se,Ae){Ae=Ae||Ve.languages;var Oe=Ae[se],Be={};for(var Ke in Oe)if(Oe.hasOwnProperty(Ke)){if(Ke==ge)for(var rt in Se)Se.hasOwnProperty(rt)&&(Be[rt]=Se[rt]);Se.hasOwnProperty(Ke)||(Be[Ke]=Oe[Ke])}var ot=Ae[se];return Ae[se]=Be,Ve.languages.DFS(Ve.languages,function(ht,bt){bt===ot&&ht!=se&&(this[ht]=Be)}),Be},DFS:function se(ge,Se,Ae,Oe){Oe=Oe||{};var Be=Ve.util.objId;for(var Ke in ge)if(ge.hasOwnProperty(Ke)){Se.call(ge,Ke,ge[Ke],Ae||Ke);var rt=ge[Ke],ot=Ve.util.type(rt);ot==="Object"&&!Oe[Be(rt)]?(Oe[Be(rt)]=!0,se(rt,Se,null,Oe)):ot==="Array"&&!Oe[Be(rt)]&&(Oe[Be(rt)]=!0,se(rt,Se,Ke,Oe))}}},plugins:{},highlightAll:function(se,ge){Ve.highlightAllUnder(document,se,ge)},highlightAllUnder:function(se,ge,Se){var Ae={callback:Se,container:se,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};Ve.hooks.run("before-highlightall",Ae),Ae.elements=Array.prototype.slice.apply(Ae.container.querySelectorAll(Ae.selector)),Ve.hooks.run("before-all-elements-highlight",Ae);for(var Oe=0,Be;Be=Ae.elements[Oe++];)Ve.highlightElement(Be,ge===!0,Ae.callback)},highlightElement:function(se,ge,Se){var Ae=Ve.util.getLanguage(se),Oe=Ve.languages[Ae];Ve.util.setLanguage(se,Ae);var Be=se.parentElement;Be&&Be.nodeName.toLowerCase()==="pre"&&Ve.util.setLanguage(Be,Ae);var Ke=se.textContent,rt={element:se,language:Ae,grammar:Oe,code:Ke};function ot(bt){rt.highlightedCode=bt,Ve.hooks.run("before-insert",rt),rt.element.innerHTML=rt.highlightedCode,Ve.hooks.run("after-highlight",rt),Ve.hooks.run("complete",rt),Se&&Se.call(rt.element)}if(Ve.hooks.run("before-sanity-check",rt),Be=rt.element.parentElement,Be&&Be.nodeName.toLowerCase()==="pre"&&!Be.hasAttribute("tabindex")&&Be.setAttribute("tabindex","0"),!rt.code){Ve.hooks.run("complete",rt),Se&&Se.call(rt.element);return}if(Ve.hooks.run("before-highlight",rt),!rt.grammar){ot(Ve.util.encode(rt.code));return}if(ge&&De.Worker){var ht=new Worker(Ve.filename);ht.onmessage=function(bt){ot(bt.data)},ht.postMessage(JSON.stringify({language:rt.language,code:rt.code,immediateClose:!0}))}else ot(Ve.highlight(rt.code,rt.grammar,rt.language))},highlight:function(se,ge,Se){var Ae={code:se,grammar:ge,language:Se};if(Ve.hooks.run("before-tokenize",Ae),!Ae.grammar)throw new Error('The language "'+Ae.language+'" has no grammar.');return Ae.tokens=Ve.tokenize(Ae.code,Ae.grammar),Ve.hooks.run("after-tokenize",Ae),Je.stringify(Ve.util.encode(Ae.tokens),Ae.language)},tokenize:function(se,ge){var Se=ge.rest;if(Se){for(var Ae in Se)ge[Ae]=Se[Ae];delete ge.rest}var Oe=new mt;return st(Oe,Oe.head,se),qe(se,Oe,ge,Oe.head,0),_e(Oe)},hooks:{all:{},add:function(se,ge){var Se=Ve.hooks.all;Se[se]=Se[se]||[],Se[se].push(ge)},run:function(se,ge){var Se=Ve.hooks.all[se];if(!(!Se||!Se.length))for(var Ae=0,Oe;Oe=Se[Ae++];)Oe(ge)}},Token:Je};De.Prism=Ve;function Je(se,ge,Se,Ae){this.type=se,this.content=ge,this.alias=Se,this.length=(Ae||"").length|0}Je.stringify=function se(ge,Se){if(typeof ge=="string")return ge;if(Array.isArray(ge)){var Ae="";return ge.forEach(function(ot){Ae+=se(ot,Se)}),Ae}var Oe={type:ge.type,content:se(ge.content,Se),tag:"span",classes:["token",ge.type],attributes:{},language:Se},Be=ge.alias;Be&&(Array.isArray(Be)?Array.prototype.push.apply(Oe.classes,Be):Oe.classes.push(Be)),Ve.hooks.run("wrap",Oe);var Ke="";for(var rt in Oe.attributes)Ke+=" "+rt+'="'+(Oe.attributes[rt]||"").replace(/"/g,""")+'"';return"<"+Oe.tag+' class="'+Oe.classes.join(" ")+'"'+Ke+">"+Oe.content+"</"+Oe.tag+">"};function Xe(se,ge,Se,Ae){se.lastIndex=ge;var Oe=se.exec(Se);if(Oe&&Ae&&Oe[1]){var Be=Oe[1].length;Oe.index+=Be,Oe[0]=Oe[0].slice(Be)}return Oe}function qe(se,ge,Se,Ae,Oe,Be){for(var Ke in Se)if(!(!Se.hasOwnProperty(Ke)||!Se[Ke])){var rt=Se[Ke];rt=Array.isArray(rt)?rt:[rt];for(var ot=0;ot<rt.length;++ot){if(Be&&Be.cause==Ke+","+ot)return;var ht=rt[ot],bt=ht.inside,at=!!ht.lookbehind,At=!!ht.greedy,It=ht.alias;if(At&&!ht.pattern.global){var $t=ht.pattern.toString().match(/[imsuy]*$/)[0];ht.pattern=RegExp(ht.pattern.source,$t+"g")}for(var Tn=ht.pattern||ht,yn=Ae.next,un=Oe;yn!==ge.tail&&!(Be&&un>=Be.reach);un+=yn.value.length,yn=yn.next){var On=yn.value;if(ge.length>se.length)return;if(!(On instanceof Je)){var xt=1,ct;if(At){if(ct=Xe(Tn,un,se,at),!ct||ct.index>=se.length)break;var Pt=ct.index,it=ct.index+ct[0].length,cn=un;for(cn+=yn.value.length;Pt>=cn;)yn=yn.next,cn+=yn.value.length;if(cn-=yn.value.length,un=cn,yn.value instanceof Je)continue;for(var An=yn;An!==ge.tail&&(cn<it||typeof An.value=="string");An=An.next)xt++,cn+=An.value.length;xt--,On=se.slice(un,cn),ct.index-=un}else if(ct=Xe(Tn,0,On,at),!ct)continue;var Pt=ct.index,an=ct[0],ln=On.slice(0,Pt),zn=On.slice(Pt+an.length),En=un+On.length;Be&&En>Be.reach&&(Be.reach=En);var ii=yn.prev;ln&&(ii=st(ge,ii,ln),un+=ln.length),Nt(ge,ii,xt);var kt=new Je(Ke,bt?Ve.tokenize(an,bt):an,It,an);if(yn=st(ge,ii,kt),zn&&st(ge,yn,zn),xt>1){var Kn={cause:Ke+","+ot,reach:En};qe(se,ge,Se,yn.prev,un,Kn),Be&&Kn.reach>Be.reach&&(Be.reach=Kn.reach)}}}}}}function mt(){var se={value:null,prev:null,next:null},ge={value:null,prev:se,next:null};se.next=ge,this.head=se,this.tail=ge,this.length=0}function st(se,ge,Se){var Ae=ge.next,Oe={value:Se,prev:ge,next:Ae};return ge.next=Oe,Ae.prev=Oe,se.length++,Oe}function Nt(se,ge,Se){for(var Ae=ge.next,Oe=0;Oe<Se&&Ae!==se.tail;Oe++)Ae=Ae.next;ge.next=Ae,Ae.prev=ge,se.length-=Oe}function _e(se){for(var ge=[],Se=se.head.next;Se!==se.tail;)ge.push(Se.value),Se=Se.next;return ge}if(!De.document)return De.addEventListener&&(Ve.disableWorkerMessageHandler||De.addEventListener("message",function(se){var ge=JSON.parse(se.data),Se=ge.language,Ae=ge.code,Oe=ge.immediateClose;De.postMessage(Ve.highlight(Ae,Ve.languages[Se],Se)),Oe&&De.close()},!1)),Ve;var te=Ve.util.currentScript();te&&(Ve.filename=te.src,te.hasAttribute("data-manual")&&(Ve.manual=!0));function ne(){Ve.manual||Ve.highlightAll()}if(!Ve.manual){var he=document.readyState;he==="loading"||he==="interactive"&&te&&te.defer?document.addEventListener("DOMContentLoaded",ne):window.requestAnimationFrame?window.requestAnimationFrame(ne):window.setTimeout(ne,16)}return Ve}(le);Ge.exports&&(Ge.exports=Ie),typeof de.g!="undefined"&&(de.g.Prism=Ie)},88914:function(Ge,be,de){"use strict";var le=de(47178),Ie=de(19095),De=de(1969),Le="data";Ge.exports=Je;var Ye=/^data[-\w.:]+$/i,Re=/-[a-z]/g,Ve=/[A-Z]/g;function Je(Nt,_e){var te=le(_e),ne=_e,he=De;return te in Nt.normal?Nt.property[Nt.normal[te]]:(te.length>4&&te.slice(0,4)===Le&&Ye.test(_e)&&(_e.charAt(4)==="-"?ne=Xe(_e):_e=qe(_e),he=Ie),new he(ne,_e))}function Xe(Nt){var _e=Nt.slice(5).replace(Re,st);return Le+_e.charAt(0).toUpperCase()+_e.slice(1)}function qe(Nt){var _e=Nt.slice(4);return Re.test(_e)?Nt:(_e=_e.replace(Ve,mt),_e.charAt(0)!=="-"&&(_e="-"+_e),Le+_e)}function mt(Nt){return"-"+Nt.toLowerCase()}function st(Nt){return Nt.charAt(1).toUpperCase()}},18795:function(Ge,be,de){"use strict";var le=de(83576),Ie=de(8179),De=de(59780),Le=de(68244),Ye=de(20019),Re=de(38567);Ge.exports=le([De,Ie,Le,Ye,Re])},20019:function(Ge,be,de){"use strict";var le=de(70167),Ie=de(79318),De=le.booleanish,Le=le.number,Ye=le.spaceSeparated;Ge.exports=Ie({transform:Re,properties:{ariaActiveDescendant:null,ariaAtomic:De,ariaAutoComplete:null,ariaBusy:De,ariaChecked:De,ariaColCount:Le,ariaColIndex:Le,ariaColSpan:Le,ariaControls:Ye,ariaCurrent:null,ariaDescribedBy:Ye,ariaDetails:null,ariaDisabled:De,ariaDropEffect:Ye,ariaErrorMessage:null,ariaExpanded:De,ariaFlowTo:Ye,ariaGrabbed:De,ariaHasPopup:null,ariaHidden:De,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ye,ariaLevel:Le,ariaLive:null,ariaModal:De,ariaMultiLine:De,ariaMultiSelectable:De,ariaOrientation:null,ariaOwns:Ye,ariaPlaceholder:null,ariaPosInSet:Le,ariaPressed:De,ariaReadOnly:De,ariaRelevant:null,ariaRequired:De,ariaRoleDescription:Ye,ariaRowCount:Le,ariaRowIndex:Le,ariaRowSpan:Le,ariaSelected:De,ariaSetSize:Le,ariaSort:null,ariaValueMax:Le,ariaValueMin:Le,ariaValueNow:Le,ariaValueText:null,role:null}});function Re(Ve,Je){return Je==="role"?Je:"aria-"+Je.slice(4).toLowerCase()}},38567:function(Ge,be,de){"use strict";var le=de(70167),Ie=de(79318),De=de(85804),Le=le.boolean,Ye=le.overloadedBoolean,Re=le.booleanish,Ve=le.number,Je=le.spaceSeparated,Xe=le.commaSeparated;Ge.exports=Ie({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:De,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Xe,acceptCharset:Je,accessKey:Je,action:null,allow:null,allowFullScreen:Le,allowPaymentRequest:Le,allowUserMedia:Le,alt:null,as:null,async:Le,autoCapitalize:null,autoComplete:Je,autoFocus:Le,autoPlay:Le,capture:Le,charSet:null,checked:Le,cite:null,className:Je,cols:Ve,colSpan:null,content:null,contentEditable:Re,controls:Le,controlsList:Je,coords:Ve|Xe,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Le,defer:Le,dir:null,dirName:null,disabled:Le,download:Ye,draggable:Re,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Le,formTarget:null,headers:Je,height:Ve,hidden:Le,high:Ve,href:null,hrefLang:null,htmlFor:Je,httpEquiv:Je,id:null,imageSizes:null,imageSrcSet:Xe,inputMode:null,integrity:null,is:null,isMap:Le,itemId:null,itemProp:Je,itemRef:Je,itemScope:Le,itemType:Je,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Le,low:Ve,manifest:null,max:null,maxLength:Ve,media:null,method:null,min:null,minLength:Ve,multiple:Le,muted:Le,name:null,nonce:null,noModule:Le,noValidate:Le,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Le,optimum:Ve,pattern:null,ping:Je,placeholder:null,playsInline:Le,poster:null,preload:null,readOnly:Le,referrerPolicy:null,rel:Je,required:Le,reversed:Le,rows:Ve,rowSpan:Ve,sandbox:Je,scope:null,scoped:Le,seamless:Le,selected:Le,shape:null,size:Ve,sizes:null,slot:null,span:Ve,spellCheck:Re,src:null,srcDoc:null,srcLang:null,srcSet:Xe,start:Ve,step:null,style:null,tabIndex:Ve,target:null,title:null,translate:null,type:null,typeMustMatch:Le,useMap:null,value:Re,width:Ve,wrap:null,align:null,aLink:null,archive:Je,axis:null,background:null,bgColor:null,border:Ve,borderColor:null,bottomMargin:Ve,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Le,declare:Le,event:null,face:null,frame:null,frameBorder:null,hSpace:Ve,leftMargin:Ve,link:null,longDesc:null,lowSrc:null,marginHeight:Ve,marginWidth:Ve,noResize:Le,noHref:Le,noShade:Le,noWrap:Le,object:null,profile:null,prompt:null,rev:null,rightMargin:Ve,rules:null,scheme:null,scrolling:Re,standby:null,summary:null,text:null,topMargin:Ve,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ve,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Le,disableRemotePlayback:Le,prefix:null,property:null,results:Ve,security:null,unselectable:null}})},85804:function(Ge,be,de){"use strict";var le=de(56432);Ge.exports=Ie;function Ie(De,Le){return le(De,Le.toLowerCase())}},56432:function(Ge){"use strict";Ge.exports=be;function be(de,le){return le in de?de[le]:le}},79318:function(Ge,be,de){"use strict";var le=de(47178),Ie=de(44347),De=de(19095);Ge.exports=Le;function Le(Ye){var Re=Ye.space,Ve=Ye.mustUseProperty||[],Je=Ye.attributes||{},Xe=Ye.properties,qe=Ye.transform,mt={},st={},Nt,_e;for(Nt in Xe)_e=new De(Nt,qe(Je,Nt),Xe[Nt],Re),Ve.indexOf(Nt)!==-1&&(_e.mustUseProperty=!0),mt[Nt]=_e,st[le(Nt)]=Nt,st[le(_e.attribute)]=Nt;return new Ie(mt,st,Re)}},19095:function(Ge,be,de){"use strict";var le=de(1969),Ie=de(70167);Ge.exports=Ye,Ye.prototype=new le,Ye.prototype.defined=!0;var De=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],Le=De.length;function Ye(Ve,Je,Xe,qe){var mt=-1,st;for(Re(this,"space",qe),le.call(this,Ve,Je);++mt<Le;)st=De[mt],Re(this,st,(Xe&Ie[st])===Ie[st])}function Re(Ve,Je,Xe){Xe&&(Ve[Je]=Xe)}},1969:function(Ge){"use strict";Ge.exports=de;var be=de.prototype;be.space=null,be.attribute=null,be.property=null,be.boolean=!1,be.booleanish=!1,be.overloadedBoolean=!1,be.number=!1,be.commaSeparated=!1,be.spaceSeparated=!1,be.commaOrSpaceSeparated=!1,be.mustUseProperty=!1,be.defined=!1;function de(le,Ie){this.property=le,this.attribute=Ie}},83576:function(Ge,be,de){"use strict";var le=de(97270),Ie=de(44347);Ge.exports=De;function De(Le){for(var Ye=Le.length,Re=[],Ve=[],Je=-1,Xe,qe;++Je<Ye;)Xe=Le[Je],Re.push(Xe.property),Ve.push(Xe.normal),qe=Xe.space;return new Ie(le.apply(null,Re),le.apply(null,Ve),qe)}},44347:function(Ge){"use strict";Ge.exports=de;var be=de.prototype;be.space=null,be.normal={},be.property={};function de(le,Ie,De){this.property=le,this.normal=Ie,De&&(this.space=De)}},70167:function(Ge,be){"use strict";var de=0;be.boolean=le(),be.booleanish=le(),be.overloadedBoolean=le(),be.number=le(),be.spaceSeparated=le(),be.commaSeparated=le(),be.commaOrSpaceSeparated=le();function le(){return Math.pow(2,++de)}},8179:function(Ge,be,de){"use strict";var le=de(79318);Ge.exports=le({space:"xlink",transform:Ie,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function Ie(De,Le){return"xlink:"+Le.slice(5).toLowerCase()}},59780:function(Ge,be,de){"use strict";var le=de(79318);Ge.exports=le({space:"xml",transform:Ie,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Ie(De,Le){return"xml:"+Le.slice(3).toLowerCase()}},68244:function(Ge,be,de){"use strict";var le=de(79318),Ie=de(85804);Ge.exports=le({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Ie,properties:{xmlns:null,xmlnsXLink:null}})},47178:function(Ge){"use strict";Ge.exports=be;function be(de){return de.toLowerCase()}},66042:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return At}});var le=de(20049),Ie=de(52456),De=de(43403),Le=de(34280),Ye=de(59301),Re=Ye.createContext(null),Ve=Ye.createContext({}),Je=Re,Xe=de(18082),qe=de(5016),mt=de(92310),st=de.n(mt),Nt=de(77900),_e=de(10228),te=de(26112),ne=de(5883),he=de(8654),se=["prefixCls","className","containerRef"],ge=function($t){var Tn=$t.prefixCls,yn=$t.className,un=$t.containerRef,On=(0,ne.Z)($t,se),xt=Ye.useContext(Ve),ct=xt.panel,it=(0,he.x1)(ct,un);return Ye.createElement("div",(0,qe.Z)({className:st()("".concat(Tn,"-content"),yn),role:"dialog",ref:it},(0,te.Z)($t,{aria:!0}),{"aria-modal":"true"},On))},Se=ge,Ae=de(48736);function Oe(It){return typeof It=="string"&&String(Number(It))===It?((0,Ae.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(It)):It}function Be(It){warning(!("wrapperClassName"in It),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!It.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ke={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function rt(It,$t){var Tn,yn,un,On=It.prefixCls,xt=It.open,ct=It.placement,it=It.inline,cn=It.push,An=It.forceRender,Pt=It.autoFocus,an=It.keyboard,ln=It.classNames,zn=It.rootClassName,En=It.rootStyle,ii=It.zIndex,kt=It.className,Kn=It.id,yi=It.style,et=It.motion,ze=It.width,xe=It.height,Te=It.children,Me=It.mask,Ce=It.maskClosable,ut=It.maskMotion,Lt=It.maskClassName,Mt=It.maskStyle,Yt=It.afterOpenChange,Vt=It.onClose,Gt=It.onMouseEnter,gn=It.onMouseOver,qt=It.onMouseLeave,fn=It.onClick,sn=It.onKeyDown,_t=It.onKeyUp,wn=It.styles,dn=It.drawerRender,Sn=Ye.useRef(),nn=Ye.useRef(),si=Ye.useRef();Ye.useImperativeHandle($t,function(){return Sn.current});var Fn=function(ki){var Yn=ki.keyCode,fi=ki.shiftKey;switch(Yn){case _e.Z.TAB:{if(Yn===_e.Z.TAB){if(!fi&&document.activeElement===si.current){var Ai;(Ai=nn.current)===null||Ai===void 0||Ai.focus({preventScroll:!0})}else if(fi&&document.activeElement===nn.current){var xi;(xi=si.current)===null||xi===void 0||xi.focus({preventScroll:!0})}}break}case _e.Z.ESC:{Vt&&an&&(ki.stopPropagation(),Vt(ki));break}}};Ye.useEffect(function(){if(xt&&Pt){var mi;(mi=Sn.current)===null||mi===void 0||mi.focus({preventScroll:!0})}},[xt]);var yt=Ye.useState(!1),kn=(0,Ie.Z)(yt,2),Cn=kn[0],Ht=kn[1],di=Ye.useContext(Je),zi;typeof cn=="boolean"?zi=cn?{}:{distance:0}:zi=cn||{};var Ni=(Tn=(yn=(un=zi)===null||un===void 0?void 0:un.distance)!==null&&yn!==void 0?yn:di==null?void 0:di.pushDistance)!==null&&Tn!==void 0?Tn:180,Ln=Ye.useMemo(function(){return{pushDistance:Ni,push:function(){Ht(!0)},pull:function(){Ht(!1)}}},[Ni]);Ye.useEffect(function(){if(xt){var mi;di==null||(mi=di.push)===null||mi===void 0||mi.call(di)}else{var ki;di==null||(ki=di.pull)===null||ki===void 0||ki.call(di)}},[xt]),Ye.useEffect(function(){return function(){var mi;di==null||(mi=di.pull)===null||mi===void 0||mi.call(di)}},[]);var rr=Me&&Ye.createElement(Nt.default,(0,qe.Z)({key:"mask"},ut,{visible:xt}),function(mi,ki){var Yn=mi.className,fi=mi.style;return Ye.createElement("div",{className:st()("".concat(On,"-mask"),Yn,ln==null?void 0:ln.mask,Lt),style:(0,le.Z)((0,le.Z)((0,le.Z)({},fi),Mt),wn==null?void 0:wn.mask),onClick:Ce&&xt?Vt:void 0,ref:ki})}),Hi=typeof et=="function"?et(ct):et,ui={};if(Cn&&Ni)switch(ct){case"top":ui.transform="translateY(".concat(Ni,"px)");break;case"bottom":ui.transform="translateY(".concat(-Ni,"px)");break;case"left":ui.transform="translateX(".concat(Ni,"px)");break;default:ui.transform="translateX(".concat(-Ni,"px)");break}ct==="left"||ct==="right"?ui.width=Oe(ze):ui.height=Oe(xe);var wi={onMouseEnter:Gt,onMouseOver:gn,onMouseLeave:qt,onClick:fn,onKeyDown:sn,onKeyUp:_t},Di=Ye.createElement(Nt.default,(0,qe.Z)({key:"panel"},Hi,{visible:xt,forceRender:An,onVisibleChanged:function(ki){Yt==null||Yt(ki)},removeOnLeave:!1,leavedClassName:"".concat(On,"-content-wrapper-hidden")}),function(mi,ki){var Yn=mi.className,fi=mi.style,Ai=Ye.createElement(Se,(0,qe.Z)({id:Kn,containerRef:ki,prefixCls:On,className:st()(kt,ln==null?void 0:ln.content),style:(0,le.Z)((0,le.Z)({},yi),wn==null?void 0:wn.content)},(0,te.Z)(It,{aria:!0}),wi),Te);return Ye.createElement("div",(0,qe.Z)({className:st()("".concat(On,"-content-wrapper"),ln==null?void 0:ln.wrapper,Yn),style:(0,le.Z)((0,le.Z)((0,le.Z)({},ui),fi),wn==null?void 0:wn.wrapper)},(0,te.Z)(It,{data:!0})),dn?dn(Ai):Ai)}),ke=(0,le.Z)({},En);return ii&&(ke.zIndex=ii),Ye.createElement(Je.Provider,{value:Ln},Ye.createElement("div",{className:st()(On,"".concat(On,"-").concat(ct),zn,(0,Xe.Z)((0,Xe.Z)({},"".concat(On,"-open"),xt),"".concat(On,"-inline"),it)),style:ke,tabIndex:-1,ref:Sn,onKeyDown:Fn},rr,Ye.createElement("div",{tabIndex:0,ref:nn,style:Ke,"aria-hidden":"true","data-sentinel":"start"}),Di,Ye.createElement("div",{tabIndex:0,ref:si,style:Ke,"aria-hidden":"true","data-sentinel":"end"})))}var ot=Ye.forwardRef(rt),ht=ot,bt=function($t){var Tn=$t.open,yn=Tn===void 0?!1:Tn,un=$t.prefixCls,On=un===void 0?"rc-drawer":un,xt=$t.placement,ct=xt===void 0?"right":xt,it=$t.autoFocus,cn=it===void 0?!0:it,An=$t.keyboard,Pt=An===void 0?!0:An,an=$t.width,ln=an===void 0?378:an,zn=$t.mask,En=zn===void 0?!0:zn,ii=$t.maskClosable,kt=ii===void 0?!0:ii,Kn=$t.getContainer,yi=$t.forceRender,et=$t.afterOpenChange,ze=$t.destroyOnClose,xe=$t.onMouseEnter,Te=$t.onMouseOver,Me=$t.onMouseLeave,Ce=$t.onClick,ut=$t.onKeyDown,Lt=$t.onKeyUp,Mt=$t.panelRef,Yt=Ye.useState(!1),Vt=(0,Ie.Z)(Yt,2),Gt=Vt[0],gn=Vt[1],qt=Ye.useState(!1),fn=(0,Ie.Z)(qt,2),sn=fn[0],_t=fn[1];(0,Le.Z)(function(){_t(!0)},[]);var wn=sn?yn:!1,dn=Ye.useRef(),Sn=Ye.useRef();(0,Le.Z)(function(){wn&&(Sn.current=document.activeElement)},[wn]);var nn=function(Cn){var Ht;if(gn(Cn),et==null||et(Cn),!Cn&&Sn.current&&!((Ht=dn.current)!==null&&Ht!==void 0&&Ht.contains(Sn.current))){var di;(di=Sn.current)===null||di===void 0||di.focus({preventScroll:!0})}},si=Ye.useMemo(function(){return{panel:Mt}},[Mt]);if(!yi&&!Gt&&!wn&&ze)return null;var Fn={onMouseEnter:xe,onMouseOver:Te,onMouseLeave:Me,onClick:Ce,onKeyDown:ut,onKeyUp:Lt},yt=(0,le.Z)((0,le.Z)({},$t),{},{open:wn,prefixCls:On,placement:ct,autoFocus:cn,keyboard:Pt,width:ln,mask:En,maskClosable:kt,inline:Kn===!1,afterOpenChange:nn,ref:dn},Fn);return Ye.createElement(Ve.Provider,{value:si},Ye.createElement(De.Z,{open:wn||yi||Gt,autoDestroy:!1,getContainer:Kn,autoLock:En&&(wn||Gt)},Ye.createElement(ht,yt)))},at=bt,At=at},91574:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return fn}});var le=de(5016),Ie=de(20049),De=de(18082),Le=de(52456),Ye=de(10928),Re=de(5883),Ve=de(92310),Je=de.n(Ve),Xe=/margin|padding|width|height|max|min|offset/,qe={left:!0,top:!0},mt={cssFloat:1,styleFloat:1,float:1};function st(sn){return sn.nodeType===1?sn.ownerDocument.defaultView.getComputedStyle(sn,null):{}}function Nt(sn,_t,wn){if(_t=_t.toLowerCase(),wn==="auto"){if(_t==="height")return sn.offsetHeight;if(_t==="width")return sn.offsetWidth}return _t in qe||(qe[_t]=Xe.test(_t)),qe[_t]?parseFloat(wn)||0:wn}function _e(sn,_t){var wn=arguments.length,dn=st(sn);return _t=mt[_t]?"cssFloat"in sn.style?"cssFloat":"styleFloat":_t,wn===1?dn:Nt(sn,_t,dn[_t]||sn.style[_t])}function te(sn,_t,wn){var dn=arguments.length;if(_t=mt[_t]?"cssFloat"in sn.style?"cssFloat":"styleFloat":_t,dn===3)return typeof wn=="number"&&Xe.test(_t)&&(wn="".concat(wn,"px")),sn.style[_t]=wn,wn;for(var Sn in _t)_t.hasOwnProperty(Sn)&&te(sn,Sn,_t[Sn]);return st(sn)}function ne(sn){return sn===document.body?document.documentElement.clientWidth:sn.offsetWidth}function he(sn){return sn===document.body?window.innerHeight||document.documentElement.clientHeight:sn.offsetHeight}function se(){var sn=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),_t=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:sn,height:_t}}function ge(){var sn=document.documentElement.clientWidth,_t=window.innerHeight||document.documentElement.clientHeight;return{width:sn,height:_t}}function Se(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Ae(sn){var _t=sn.getBoundingClientRect(),wn=document.documentElement;return{left:_t.left+(window.pageXOffset||wn.scrollLeft)-(wn.clientLeft||document.body.clientLeft||0),top:_t.top+(window.pageYOffset||wn.scrollTop)-(wn.clientTop||document.body.clientTop||0)}}var Oe=de(18929),Be=de(59301),Ke=de(55311),rt=de(8224),ot=de(10228),ht=de(43403),bt=de(77900),at=Be.createContext(null),At=function(_t){var wn=_t.visible,dn=_t.maskTransitionName,Sn=_t.getContainer,nn=_t.prefixCls,si=_t.rootClassName,Fn=_t.icons,yt=_t.countRender,kn=_t.showSwitch,Cn=_t.showProgress,Ht=_t.current,di=_t.transform,zi=_t.count,Ni=_t.scale,Ln=_t.minScale,rr=_t.maxScale,Hi=_t.closeIcon,ui=_t.onActive,wi=_t.onClose,Di=_t.onZoomIn,ke=_t.onZoomOut,mi=_t.onRotateRight,ki=_t.onRotateLeft,Yn=_t.onFlipX,fi=_t.onFlipY,Ai=_t.onReset,xi=_t.toolbarRender,hr=_t.zIndex,er=_t.image,Kt=(0,Be.useContext)(at),en=Fn.rotateLeft,zt=Fn.rotateRight,on=Fn.zoomIn,rn=Fn.zoomOut,mn=Fn.close,Bn=Fn.left,ei=Fn.right,ji=Fn.flipX,Fi=Fn.flipY,Yi="".concat(nn,"-operations-operation");Be.useEffect(function(){var bn=function(Ui){Ui.keyCode===ot.Z.ESC&&wi()};return wn&&window.addEventListener("keydown",bn),function(){window.removeEventListener("keydown",bn)}},[wn]);var lt=function(Ki,Ui){Ki.preventDefault(),Ki.stopPropagation(),ui(Ui)},Ut=Be.useCallback(function(bn){var Ki=bn.type,Ui=bn.disabled,Wi=bn.onClick,vn=bn.icon;return Be.createElement("div",{key:Ki,className:Je()(Yi,"".concat(nn,"-operations-operation-").concat(Ki),(0,De.Z)({},"".concat(nn,"-operations-operation-disabled"),!!Ui)),onClick:Wi},vn)},[Yi,nn]),oi=kn?Ut({icon:Bn,onClick:function(Ki){return lt(Ki,-1)},type:"prev",disabled:Ht===0}):void 0,gi=kn?Ut({icon:ei,onClick:function(Ki){return lt(Ki,1)},type:"next",disabled:Ht===zi-1}):void 0,jt=Ut({icon:Fi,onClick:fi,type:"flipY"}),Vn=Ut({icon:ji,onClick:Yn,type:"flipX"}),ni=Ut({icon:en,onClick:ki,type:"rotateLeft"}),Zt=Ut({icon:zt,onClick:mi,type:"rotateRight"}),je=Ut({icon:rn,onClick:ke,type:"zoomOut",disabled:Ni<=Ln}),ci=Ut({icon:on,onClick:Di,type:"zoomIn",disabled:Ni===rr}),pi=Be.createElement("div",{className:"".concat(nn,"-operations")},jt,Vn,ni,Zt,je,ci);return Be.createElement(bt.default,{visible:wn,motionName:dn},function(bn){var Ki=bn.className,Ui=bn.style;return Be.createElement(ht.Z,{open:!0,getContainer:Sn!=null?Sn:document.body},Be.createElement("div",{className:Je()("".concat(nn,"-operations-wrapper"),Ki,si),style:(0,Ie.Z)((0,Ie.Z)({},Ui),{},{zIndex:hr})},Hi===null?null:Be.createElement("button",{className:"".concat(nn,"-close"),onClick:wi},Hi||mn),kn&&Be.createElement(Be.Fragment,null,Be.createElement("div",{className:Je()("".concat(nn,"-switch-left"),(0,De.Z)({},"".concat(nn,"-switch-left-disabled"),Ht===0)),onClick:function(vn){return lt(vn,-1)}},Bn),Be.createElement("div",{className:Je()("".concat(nn,"-switch-right"),(0,De.Z)({},"".concat(nn,"-switch-right-disabled"),Ht===zi-1)),onClick:function(vn){return lt(vn,1)}},ei)),Be.createElement("div",{className:"".concat(nn,"-footer")},Cn&&Be.createElement("div",{className:"".concat(nn,"-progress")},yt?yt(Ht+1,zi):"".concat(Ht+1," / ").concat(zi)),xi?xi(pi,(0,Ie.Z)((0,Ie.Z)({icons:{prevIcon:oi,nextIcon:gi,flipYIcon:jt,flipXIcon:Vn,rotateLeftIcon:ni,rotateRightIcon:Zt,zoomOutIcon:je,zoomInIcon:ci},actions:{onActive:ui,onFlipY:fi,onFlipX:Yn,onRotateLeft:ki,onRotateRight:mi,onZoomOut:ke,onZoomIn:Di,onReset:Ai,onClose:wi},transform:di},Kt?{current:Ht,total:zi}:{}),{},{image:er})):pi)))})},It=At,$t=de(13697),Tn=de(16089),yn={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function un(sn,_t,wn,dn){var Sn=(0,Be.useRef)(null),nn=(0,Be.useRef)([]),si=(0,Be.useState)(yn),Fn=(0,Le.Z)(si,2),yt=Fn[0],kn=Fn[1],Cn=function(Ni){kn(yn),(0,$t.Z)(yn,yt)||dn==null||dn({transform:yn,action:Ni})},Ht=function(Ni,Ln){Sn.current===null&&(nn.current=[],Sn.current=(0,Tn.Z)(function(){kn(function(rr){var Hi=rr;return nn.current.forEach(function(ui){Hi=(0,Ie.Z)((0,Ie.Z)({},Hi),ui)}),Sn.current=null,dn==null||dn({transform:Hi,action:Ln}),Hi})})),nn.current.push((0,Ie.Z)((0,Ie.Z)({},yt),Ni))},di=function(Ni,Ln,rr,Hi,ui){var wi=sn.current,Di=wi.width,ke=wi.height,mi=wi.offsetWidth,ki=wi.offsetHeight,Yn=wi.offsetLeft,fi=wi.offsetTop,Ai=Ni,xi=yt.scale*Ni;xi>wn?(xi=wn,Ai=wn/yt.scale):xi<_t&&(xi=ui?xi:_t,Ai=xi/yt.scale);var hr=rr!=null?rr:innerWidth/2,er=Hi!=null?Hi:innerHeight/2,Kt=Ai-1,en=Kt*Di*.5,zt=Kt*ke*.5,on=Kt*(hr-yt.x-Yn),rn=Kt*(er-yt.y-fi),mn=yt.x-(on-en),Bn=yt.y-(rn-zt);if(Ni<1&&xi===1){var ei=mi*xi,ji=ki*xi,Fi=ge(),Yi=Fi.width,lt=Fi.height;ei<=Yi&&ji<=lt&&(mn=0,Bn=0)}Ht({x:mn,y:Bn,scale:xi},Ln)};return{transform:yt,resetTransform:Cn,updateTransform:Ht,dispatchZoomChange:di}}var On=de(48736);function xt(sn,_t,wn,dn){var Sn=_t+wn,nn=(wn-dn)/2;if(wn>dn){if(_t>0)return(0,De.Z)({},sn,nn);if(_t<0&&Sn<dn)return(0,De.Z)({},sn,-nn)}else if(_t<0||Sn>dn)return(0,De.Z)({},sn,_t<0?nn:-nn);return{}}function ct(sn,_t,wn,dn){var Sn=ge(),nn=Sn.width,si=Sn.height,Fn=null;return sn<=nn&&_t<=si?Fn={x:0,y:0}:(sn>nn||_t>si)&&(Fn=(0,Ie.Z)((0,Ie.Z)({},xt("x",wn,sn,nn)),xt("y",dn,_t,si))),Fn}var it=1,cn=1;function An(sn,_t,wn,dn,Sn,nn,si){var Fn=Sn.rotate,yt=Sn.scale,kn=Sn.x,Cn=Sn.y,Ht=(0,Be.useState)(!1),di=(0,Le.Z)(Ht,2),zi=di[0],Ni=di[1],Ln=(0,Be.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),rr=function(ke){!_t||ke.button!==0||(ke.preventDefault(),ke.stopPropagation(),Ln.current={diffX:ke.pageX-kn,diffY:ke.pageY-Cn,transformX:kn,transformY:Cn},Ni(!0))},Hi=function(ke){wn&&zi&&nn({x:ke.pageX-Ln.current.diffX,y:ke.pageY-Ln.current.diffY},"move")},ui=function(){if(wn&&zi){Ni(!1);var ke=Ln.current,mi=ke.transformX,ki=ke.transformY,Yn=kn!==mi&&Cn!==ki;if(!Yn)return;var fi=sn.current.offsetWidth*yt,Ai=sn.current.offsetHeight*yt,xi=sn.current.getBoundingClientRect(),hr=xi.left,er=xi.top,Kt=Fn%180!==0,en=ct(Kt?Ai:fi,Kt?fi:Ai,hr,er);en&&nn((0,Ie.Z)({},en),"dragRebound")}},wi=function(ke){if(!(!wn||ke.deltaY==0)){var mi=Math.abs(ke.deltaY/100),ki=Math.min(mi,cn),Yn=it+ki*dn;ke.deltaY>0&&(Yn=it/Yn),si(Yn,"wheel",ke.clientX,ke.clientY)}};return(0,Be.useEffect)(function(){var Di,ke,mi,ki;if(_t){mi=(0,rt.Z)(window,"mouseup",ui,!1),ki=(0,rt.Z)(window,"mousemove",Hi,!1);try{window.top!==window.self&&(Di=(0,rt.Z)(window.top,"mouseup",ui,!1),ke=(0,rt.Z)(window.top,"mousemove",Hi,!1))}catch(Yn){(0,On.Kp)(!1,"[rc-image] ".concat(Yn))}}return function(){var Yn,fi,Ai,xi;(Yn=mi)===null||Yn===void 0||Yn.remove(),(fi=ki)===null||fi===void 0||fi.remove(),(Ai=Di)===null||Ai===void 0||Ai.remove(),(xi=ke)===null||xi===void 0||xi.remove()}},[wn,zi,kn,Cn,Fn,_t]),{isMoving:zi,onMouseDown:rr,onMouseMove:Hi,onMouseUp:ui,onWheel:wi}}function Pt(sn){return new Promise(function(_t){if(!sn){_t(!1);return}var wn=document.createElement("img");wn.onerror=function(){return _t(!1)},wn.onload=function(){return _t(!0)},wn.src=sn})}function an(sn){var _t=sn.src,wn=sn.isCustomPlaceholder,dn=sn.fallback,Sn=(0,Be.useState)(wn?"loading":"normal"),nn=(0,Le.Z)(Sn,2),si=nn[0],Fn=nn[1],yt=(0,Be.useRef)(!1),kn=si==="error";(0,Be.useEffect)(function(){var zi=!0;return Pt(_t).then(function(Ni){!Ni&&zi&&Fn("error")}),function(){zi=!1}},[_t]),(0,Be.useEffect)(function(){wn&&!yt.current?Fn("loading"):kn&&Fn("normal")},[_t]);var Cn=function(){Fn("normal")},Ht=function(Ni){yt.current=!1,si==="loading"&&Ni!==null&&Ni!==void 0&&Ni.complete&&(Ni.naturalWidth||Ni.naturalHeight)&&(yt.current=!0,Cn())},di=kn&&dn?{src:dn}:{onLoad:Cn,src:_t};return[Ht,di,si]}function ln(sn,_t){var wn=sn.x-_t.x,dn=sn.y-_t.y;return Math.hypot(wn,dn)}function zn(sn,_t,wn,dn){var Sn=ln(sn,wn),nn=ln(_t,dn);if(Sn===0&&nn===0)return[sn.x,sn.y];var si=Sn/(Sn+nn),Fn=sn.x+si*(_t.x-sn.x),yt=sn.y+si*(_t.y-sn.y);return[Fn,yt]}function En(sn,_t,wn,dn,Sn,nn,si){var Fn=Sn.rotate,yt=Sn.scale,kn=Sn.x,Cn=Sn.y,Ht=(0,Be.useState)(!1),di=(0,Le.Z)(Ht,2),zi=di[0],Ni=di[1],Ln=(0,Be.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),rr=function(ke){Ln.current=(0,Ie.Z)((0,Ie.Z)({},Ln.current),ke)},Hi=function(ke){if(_t){ke.stopPropagation(),Ni(!0);var mi=ke.touches,ki=mi===void 0?[]:mi;ki.length>1?rr({point1:{x:ki[0].clientX,y:ki[0].clientY},point2:{x:ki[1].clientX,y:ki[1].clientY},eventType:"touchZoom"}):rr({point1:{x:ki[0].clientX-kn,y:ki[0].clientY-Cn},eventType:"move"})}},ui=function(ke){var mi=ke.touches,ki=mi===void 0?[]:mi,Yn=Ln.current,fi=Yn.point1,Ai=Yn.point2,xi=Yn.eventType;if(ki.length>1&&xi==="touchZoom"){var hr={x:ki[0].clientX,y:ki[0].clientY},er={x:ki[1].clientX,y:ki[1].clientY},Kt=zn(fi,Ai,hr,er),en=(0,Le.Z)(Kt,2),zt=en[0],on=en[1],rn=ln(hr,er)/ln(fi,Ai);si(rn,"touchZoom",zt,on,!0),rr({point1:hr,point2:er,eventType:"touchZoom"})}else xi==="move"&&(nn({x:ki[0].clientX-fi.x,y:ki[0].clientY-fi.y},"move"),rr({eventType:"move"}))},wi=function(){if(wn){if(zi&&Ni(!1),rr({eventType:"none"}),dn>yt)return nn({x:0,y:0,scale:dn},"touchZoom");var ke=sn.current.offsetWidth*yt,mi=sn.current.offsetHeight*yt,ki=sn.current.getBoundingClientRect(),Yn=ki.left,fi=ki.top,Ai=Fn%180!==0,xi=ct(Ai?mi:ke,Ai?ke:mi,Yn,fi);xi&&nn((0,Ie.Z)({},xi),"dragRebound")}};return(0,Be.useEffect)(function(){var Di;return wn&&_t&&(Di=(0,rt.Z)(window,"touchmove",function(ke){return ke.preventDefault()},{passive:!1})),function(){var ke;(ke=Di)===null||ke===void 0||ke.remove()}},[wn,_t]),{isTouching:zi,onTouchStart:Hi,onTouchMove:ui,onTouchEnd:wi}}var ii=["fallback","src","imgRef"],kt=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Kn=function(_t){var wn=_t.fallback,dn=_t.src,Sn=_t.imgRef,nn=(0,Re.Z)(_t,ii),si=an({src:dn,fallback:wn}),Fn=(0,Le.Z)(si,2),yt=Fn[0],kn=Fn[1];return Be.createElement("img",(0,le.Z)({ref:function(Ht){Sn.current=Ht,yt(Ht)}},nn,kn))},yi=function(_t){var wn=_t.prefixCls,dn=_t.src,Sn=_t.alt,nn=_t.imageInfo,si=_t.fallback,Fn=_t.movable,yt=Fn===void 0?!0:Fn,kn=_t.onClose,Cn=_t.visible,Ht=_t.icons,di=Ht===void 0?{}:Ht,zi=_t.rootClassName,Ni=_t.closeIcon,Ln=_t.getContainer,rr=_t.current,Hi=rr===void 0?0:rr,ui=_t.count,wi=ui===void 0?1:ui,Di=_t.countRender,ke=_t.scaleStep,mi=ke===void 0?.5:ke,ki=_t.minScale,Yn=ki===void 0?1:ki,fi=_t.maxScale,Ai=fi===void 0?50:fi,xi=_t.transitionName,hr=xi===void 0?"zoom":xi,er=_t.maskTransitionName,Kt=er===void 0?"fade":er,en=_t.imageRender,zt=_t.imgCommonProps,on=_t.toolbarRender,rn=_t.onTransform,mn=_t.onChange,Bn=(0,Re.Z)(_t,kt),ei=(0,Be.useRef)(),ji=(0,Be.useContext)(at),Fi=ji&&wi>1,Yi=ji&&wi>=1,lt=(0,Be.useState)(!0),Ut=(0,Le.Z)(lt,2),oi=Ut[0],gi=Ut[1],jt=un(ei,Yn,Ai,rn),Vn=jt.transform,ni=jt.resetTransform,Zt=jt.updateTransform,je=jt.dispatchZoomChange,ci=An(ei,yt,Cn,mi,Vn,Zt,je),pi=ci.isMoving,bn=ci.onMouseDown,Ki=ci.onWheel,Ui=En(ei,yt,Cn,Yn,Vn,Zt,je),Wi=Ui.isTouching,vn=Ui.onTouchStart,Wt=Ui.onTouchMove,ar=Ui.onTouchEnd,Zr=Vn.rotate,Mn=Vn.scale,hi=Je()((0,De.Z)({},"".concat(wn,"-moving"),pi));(0,Be.useEffect)(function(){oi||gi(!0)},[oi]);var Pi=function(){ni("close")},Li=function(){je(it+mi,"zoomIn")},Ri=function(){je(it/(it+mi),"zoomOut")},sr=function(){Zt({rotate:Zr+90},"rotateRight")},gr=function(){Zt({rotate:Zr-90},"rotateLeft")},Tr=function(){Zt({flipX:!Vn.flipX},"flipX")},Ar=function(){Zt({flipY:!Vn.flipY},"flipY")},Rr=function(){ni("reset")},Un=function(Vr){var Mr=Hi+Vr;!Number.isInteger(Mr)||Mr<0||Mr>wi-1||(gi(!1),ni(Vr<0?"prev":"next"),mn==null||mn(Mr,Hi))},pr=function(Vr){!Cn||!Fi||(Vr.keyCode===ot.Z.LEFT?Un(-1):Vr.keyCode===ot.Z.RIGHT&&Un(1))},Dn=function(Vr){Cn&&(Mn!==1?Zt({x:0,y:0,scale:1},"doubleClick"):je(it+mi,"doubleClick",Vr.clientX,Vr.clientY))};(0,Be.useEffect)(function(){var Ir=(0,rt.Z)(window,"keydown",pr,!1);return function(){Ir.remove()}},[Cn,Fi,Hi]);var Lr=Be.createElement(Kn,(0,le.Z)({},zt,{width:_t.width,height:_t.height,imgRef:ei,className:"".concat(wn,"-img"),alt:Sn,style:{transform:"translate3d(".concat(Vn.x,"px, ").concat(Vn.y,"px, 0) scale3d(").concat(Vn.flipX?"-":"").concat(Mn,", ").concat(Vn.flipY?"-":"").concat(Mn,", 1) rotate(").concat(Zr,"deg)"),transitionDuration:(!oi||Wi)&&"0s"},fallback:si,src:dn,onWheel:Ki,onMouseDown:bn,onDoubleClick:Dn,onTouchStart:vn,onTouchMove:Wt,onTouchEnd:ar,onTouchCancel:ar})),ro=(0,Ie.Z)({url:dn,alt:Sn},nn);return Be.createElement(Be.Fragment,null,Be.createElement(Ke.Z,(0,le.Z)({transitionName:hr,maskTransitionName:Kt,closable:!1,keyboard:!0,prefixCls:wn,onClose:kn,visible:Cn,classNames:{wrapper:hi},rootClassName:zi,getContainer:Ln},Bn,{afterClose:Pi}),Be.createElement("div",{className:"".concat(wn,"-img-wrapper")},en?en(Lr,(0,Ie.Z)({transform:Vn,image:ro},ji?{current:Hi}:{})):Lr)),Be.createElement(It,{visible:Cn,transform:Vn,maskTransitionName:Kt,closeIcon:Ni,getContainer:Ln,prefixCls:wn,rootClassName:zi,icons:di,countRender:Di,showSwitch:Fi,showProgress:Yi,current:Hi,count:wi,scale:Mn,minScale:Yn,maxScale:Ai,toolbarRender:on,onActive:Un,onZoomIn:Li,onZoomOut:Ri,onRotateRight:sr,onRotateLeft:gr,onFlipX:Tr,onFlipY:Ar,onClose:kn,onReset:Rr,zIndex:Bn.zIndex!==void 0?Bn.zIndex+1:void 0,image:ro}))},et=yi,ze=de(92393),xe=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function Te(sn){var _t=Be.useState({}),wn=(0,Le.Z)(_t,2),dn=wn[0],Sn=wn[1],nn=Be.useCallback(function(Fn,yt){return Sn(function(kn){return(0,Ie.Z)((0,Ie.Z)({},kn),{},(0,De.Z)({},Fn,yt))}),function(){Sn(function(kn){var Cn=(0,Ie.Z)({},kn);return delete Cn[Fn],Cn})}},[]),si=Be.useMemo(function(){return sn?sn.map(function(Fn){if(typeof Fn=="string")return{data:{src:Fn}};var yt={};return Object.keys(Fn).forEach(function(kn){["src"].concat((0,ze.Z)(xe)).includes(kn)&&(yt[kn]=Fn[kn])}),{data:yt}}):Object.keys(dn).reduce(function(Fn,yt){var kn=dn[yt],Cn=kn.canPreview,Ht=kn.data;return Cn&&Fn.push({data:Ht,id:yt}),Fn},[])},[sn,dn]);return[si,nn,!!sn]}var Me=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Ce=["src"],ut=function(_t){var wn,dn=_t.previewPrefixCls,Sn=dn===void 0?"rc-image-preview":dn,nn=_t.children,si=_t.icons,Fn=si===void 0?{}:si,yt=_t.items,kn=_t.preview,Cn=_t.fallback,Ht=(0,Ye.Z)(kn)==="object"?kn:{},di=Ht.visible,zi=Ht.onVisibleChange,Ni=Ht.getContainer,Ln=Ht.current,rr=Ht.movable,Hi=Ht.minScale,ui=Ht.maxScale,wi=Ht.countRender,Di=Ht.closeIcon,ke=Ht.onChange,mi=Ht.onTransform,ki=Ht.toolbarRender,Yn=Ht.imageRender,fi=(0,Re.Z)(Ht,Me),Ai=Te(yt),xi=(0,Le.Z)(Ai,3),hr=xi[0],er=xi[1],Kt=xi[2],en=(0,Oe.Z)(0,{value:Ln}),zt=(0,Le.Z)(en,2),on=zt[0],rn=zt[1],mn=(0,Be.useState)(!1),Bn=(0,Le.Z)(mn,2),ei=Bn[0],ji=Bn[1],Fi=((wn=hr[on])===null||wn===void 0?void 0:wn.data)||{},Yi=Fi.src,lt=(0,Re.Z)(Fi,Ce),Ut=(0,Oe.Z)(!!di,{value:di,onChange:function(Wi,vn){zi==null||zi(Wi,vn,on)}}),oi=(0,Le.Z)(Ut,2),gi=oi[0],jt=oi[1],Vn=(0,Be.useState)(null),ni=(0,Le.Z)(Vn,2),Zt=ni[0],je=ni[1],ci=Be.useCallback(function(Ui,Wi,vn,Wt){var ar=Kt?hr.findIndex(function(Zr){return Zr.data.src===Wi}):hr.findIndex(function(Zr){return Zr.id===Ui});rn(ar<0?0:ar),jt(!0),je({x:vn,y:Wt}),ji(!0)},[hr,Kt]);Be.useEffect(function(){gi?ei||rn(0):ji(!1)},[gi]);var pi=function(Wi,vn){rn(Wi),ke==null||ke(Wi,vn)},bn=function(){jt(!1),je(null)},Ki=Be.useMemo(function(){return{register:er,onPreview:ci}},[er,ci]);return Be.createElement(at.Provider,{value:Ki},nn,Be.createElement(et,(0,le.Z)({"aria-hidden":!gi,movable:rr,visible:gi,prefixCls:Sn,closeIcon:Di,onClose:bn,mousePosition:Zt,imgCommonProps:lt,src:Yi,fallback:Cn,icons:Fn,minScale:Hi,maxScale:ui,getContainer:Ni,current:on,count:hr.length,countRender:wi,onTransform:mi,toolbarRender:ki,imageRender:Yn,onChange:pi},fi)))},Lt=ut,Mt=0;function Yt(sn,_t){var wn=Be.useState(function(){return Mt+=1,String(Mt)}),dn=(0,Le.Z)(wn,1),Sn=dn[0],nn=Be.useContext(at),si={data:_t,canPreview:sn};return Be.useEffect(function(){if(nn)return nn.register(Sn,si)},[]),Be.useEffect(function(){nn&&nn.register(Sn,si)},[sn,_t]),Sn}var Vt=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Gt=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],gn=function(_t){var wn=_t.src,dn=_t.alt,Sn=_t.onPreviewClose,nn=_t.prefixCls,si=nn===void 0?"rc-image":nn,Fn=_t.previewPrefixCls,yt=Fn===void 0?"".concat(si,"-preview"):Fn,kn=_t.placeholder,Cn=_t.fallback,Ht=_t.width,di=_t.height,zi=_t.style,Ni=_t.preview,Ln=Ni===void 0?!0:Ni,rr=_t.className,Hi=_t.onClick,ui=_t.onError,wi=_t.wrapperClassName,Di=_t.wrapperStyle,ke=_t.rootClassName,mi=(0,Re.Z)(_t,Vt),ki=kn&&kn!==!0,Yn=(0,Ye.Z)(Ln)==="object"?Ln:{},fi=Yn.src,Ai=Yn.visible,xi=Ai===void 0?void 0:Ai,hr=Yn.onVisibleChange,er=hr===void 0?Sn:hr,Kt=Yn.getContainer,en=Kt===void 0?void 0:Kt,zt=Yn.mask,on=Yn.maskClassName,rn=Yn.movable,mn=Yn.icons,Bn=Yn.scaleStep,ei=Yn.minScale,ji=Yn.maxScale,Fi=Yn.imageRender,Yi=Yn.toolbarRender,lt=(0,Re.Z)(Yn,Gt),Ut=fi!=null?fi:wn,oi=(0,Oe.Z)(!!xi,{value:xi,onChange:er}),gi=(0,Le.Z)(oi,2),jt=gi[0],Vn=gi[1],ni=an({src:wn,isCustomPlaceholder:ki,fallback:Cn}),Zt=(0,Le.Z)(ni,3),je=Zt[0],ci=Zt[1],pi=Zt[2],bn=(0,Be.useState)(null),Ki=(0,Le.Z)(bn,2),Ui=Ki[0],Wi=Ki[1],vn=(0,Be.useContext)(at),Wt=!!Ln,ar=function(){Vn(!1),Wi(null)},Zr=Je()(si,wi,ke,(0,De.Z)({},"".concat(si,"-error"),pi==="error")),Mn=(0,Be.useMemo)(function(){var Ri={};return xe.forEach(function(sr){_t[sr]!==void 0&&(Ri[sr]=_t[sr])}),Ri},xe.map(function(Ri){return _t[Ri]})),hi=(0,Be.useMemo)(function(){return(0,Ie.Z)((0,Ie.Z)({},Mn),{},{src:Ut})},[Ut,Mn]),Pi=Yt(Wt,hi),Li=function(sr){var gr=Ae(sr.target),Tr=gr.left,Ar=gr.top;vn?vn.onPreview(Pi,Ut,Tr,Ar):(Wi({x:Tr,y:Ar}),Vn(!0)),Hi==null||Hi(sr)};return Be.createElement(Be.Fragment,null,Be.createElement("div",(0,le.Z)({},mi,{className:Zr,onClick:Wt?Li:Hi,style:(0,Ie.Z)({width:Ht,height:di},Di)}),Be.createElement("img",(0,le.Z)({},Mn,{className:Je()("".concat(si,"-img"),(0,De.Z)({},"".concat(si,"-img-placeholder"),kn===!0),rr),style:(0,Ie.Z)({height:di},zi),ref:je},ci,{width:Ht,height:di,onError:ui})),pi==="loading"&&Be.createElement("div",{"aria-hidden":"true",className:"".concat(si,"-placeholder")},kn),zt&&Wt&&Be.createElement("div",{className:Je()("".concat(si,"-mask"),on),style:{display:(zi==null?void 0:zi.display)==="none"?"none":void 0}},zt)),!vn&&Wt&&Be.createElement(et,(0,le.Z)({"aria-hidden":!jt,visible:jt,prefixCls:yt,onClose:ar,mousePosition:Ui,src:Ut,alt:dn,imageInfo:{width:Ht,height:di},fallback:Cn,getContainer:en,icons:mn,movable:rn,scaleStep:Bn,minScale:ei,maxScale:ji,rootClassName:ke,imageRender:Fi,imgCommonProps:Mn,toolbarRender:Yi},lt)))};gn.PreviewGroup=Lt;var qt=gn,fn=qt},25930:function(Ge,be,de){"use strict";de.d(be,{Cd:function(){return bt}});var le=de(5016),Ie=de(20049),De=de(5883),Le=de(59301),Ye=de(92310),Re=de.n(Ye),Ve={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Je=function(){var It=(0,Le.useRef)([]),$t=(0,Le.useRef)(null);return(0,Le.useEffect)(function(){var Tn=Date.now(),yn=!1;It.current.forEach(function(un){if(un){yn=!0;var On=un.style;On.transitionDuration=".3s, .3s, .3s, .06s",$t.current&&Tn-$t.current<100&&(On.transitionDuration="0s, 0s")}}),yn&&($t.current=Date.now())}),It.current},Xe=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],qe=function(It){var $t=(0,Ie.Z)((0,Ie.Z)({},Ve),It),Tn=$t.className,yn=$t.percent,un=$t.prefixCls,On=$t.strokeColor,xt=$t.strokeLinecap,ct=$t.strokeWidth,it=$t.style,cn=$t.trailColor,An=$t.trailWidth,Pt=$t.transition,an=(0,De.Z)($t,Xe);delete an.gapPosition;var ln=Array.isArray(yn)?yn:[yn],zn=Array.isArray(On)?On:[On],En=Je(),ii=ct/2,kt=100-ct/2,Kn="M ".concat(xt==="round"?ii:0,",").concat(ii,`
|
|
|
L `).concat(xt==="round"?kt:100,",").concat(ii),yi="0 0 100 ".concat(ct),et=0;return Le.createElement("svg",(0,le.Z)({className:Re()("".concat(un,"-line"),Tn),viewBox:yi,preserveAspectRatio:"none",style:it},an),Le.createElement("path",{className:"".concat(un,"-line-trail"),d:Kn,strokeLinecap:xt,stroke:cn,strokeWidth:An||ct,fillOpacity:"0"}),ln.map(function(ze,xe){var Te=1;switch(xt){case"round":Te=1-ct/100;break;case"square":Te=1-ct/2/100;break;default:Te=1;break}var Me={strokeDasharray:"".concat(ze*Te,"px, 100px"),strokeDashoffset:"-".concat(et,"px"),transition:Pt||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ce=zn[xe]||zn[zn.length-1];return et+=ze,Le.createElement("path",{key:xe,className:"".concat(un,"-line-path"),d:Kn,strokeLinecap:xt,stroke:Ce,strokeWidth:ct,fillOpacity:"0",ref:function(Lt){En[xe]=Lt},style:Me})}))},mt=qe,st=de(10928),Nt=de(52456),_e=de(47273),te=0,ne=(0,_e.Z)();function he(){var At;return ne?(At=te,te+=1):At="TEST_OR_SSR",At}var se=function(At){var It=Le.useState(),$t=(0,Nt.Z)(It,2),Tn=$t[0],yn=$t[1];return Le.useEffect(function(){yn("rc_progress_".concat(he()))},[]),At||Tn},ge=function(It){var $t=It.bg,Tn=It.children;return Le.createElement("div",{style:{width:"100%",height:"100%",background:$t}},Tn)};function Se(At,It){return Object.keys(At).map(function($t){var Tn=parseFloat($t),yn="".concat(Math.floor(Tn*It),"%");return"".concat(At[$t]," ").concat(yn)})}var Ae=Le.forwardRef(function(At,It){var $t=At.prefixCls,Tn=At.color,yn=At.gradientId,un=At.radius,On=At.style,xt=At.ptg,ct=At.strokeLinecap,it=At.strokeWidth,cn=At.size,An=At.gapDegree,Pt=Tn&&(0,st.Z)(Tn)==="object",an=Pt?"#FFF":void 0,ln=cn/2,zn=Le.createElement("circle",{className:"".concat($t,"-circle-path"),r:un,cx:ln,cy:ln,stroke:an,strokeLinecap:ct,strokeWidth:it,opacity:xt===0?0:1,style:On,ref:It});if(!Pt)return zn;var En="".concat(yn,"-conic"),ii=An?"".concat(180+An/2,"deg"):"0deg",kt=Se(Tn,(360-An)/360),Kn=Se(Tn,1),yi="conic-gradient(from ".concat(ii,", ").concat(kt.join(", "),")"),et="linear-gradient(to ".concat(An?"bottom":"top",", ").concat(Kn.join(", "),")");return Le.createElement(Le.Fragment,null,Le.createElement("mask",{id:En},zn),Le.createElement("foreignObject",{x:0,y:0,width:cn,height:cn,mask:"url(#".concat(En,")")},Le.createElement(ge,{bg:et},Le.createElement(ge,{bg:yi}))))}),Oe=Ae,Be=100,Ke=function(It,$t,Tn,yn,un,On,xt,ct,it,cn){var An=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Pt=Tn/100*360*((360-On)/360),an=On===0?0:{bottom:0,top:180,left:90,right:-90}[xt],ln=(100-yn)/100*$t;it==="round"&&yn!==100&&(ln+=cn/2,ln>=$t&&(ln=$t-.01));var zn=Be/2;return{stroke:typeof ct=="string"?ct:void 0,strokeDasharray:"".concat($t,"px ").concat(It),strokeDashoffset:ln+An,transform:"rotate(".concat(un+Pt+an,"deg)"),transformOrigin:"".concat(zn,"px ").concat(zn,"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}},rt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ot(At){var It=At!=null?At:[];return Array.isArray(It)?It:[It]}var ht=function(It){var $t=(0,Ie.Z)((0,Ie.Z)({},Ve),It),Tn=$t.id,yn=$t.prefixCls,un=$t.steps,On=$t.strokeWidth,xt=$t.trailWidth,ct=$t.gapDegree,it=ct===void 0?0:ct,cn=$t.gapPosition,An=$t.trailColor,Pt=$t.strokeLinecap,an=$t.style,ln=$t.className,zn=$t.strokeColor,En=$t.percent,ii=(0,De.Z)($t,rt),kt=Be/2,Kn=se(Tn),yi="".concat(Kn,"-gradient"),et=kt-On/2,ze=Math.PI*2*et,xe=it>0?90+it/2:-90,Te=ze*((360-it)/360),Me=(0,st.Z)(un)==="object"?un:{count:un,gap:2},Ce=Me.count,ut=Me.gap,Lt=ot(En),Mt=ot(zn),Yt=Mt.find(function(_t){return _t&&(0,st.Z)(_t)==="object"}),Vt=Yt&&(0,st.Z)(Yt)==="object",Gt=Vt?"butt":Pt,gn=Ke(ze,Te,0,100,xe,it,cn,An,Gt,On),qt=Je(),fn=function(){var wn=0;return Lt.map(function(dn,Sn){var nn=Mt[Sn]||Mt[Mt.length-1],si=Ke(ze,Te,wn,dn,xe,it,cn,nn,Gt,On);return wn+=dn,Le.createElement(Oe,{key:Sn,color:nn,ptg:dn,radius:et,prefixCls:yn,gradientId:yi,style:si,strokeLinecap:Gt,strokeWidth:On,gapDegree:it,ref:function(yt){qt[Sn]=yt},size:Be})}).reverse()},sn=function(){var wn=Math.round(Ce*(Lt[0]/100)),dn=100/Ce,Sn=0;return new Array(Ce).fill(null).map(function(nn,si){var Fn=si<=wn-1?Mt[0]:An,yt=Fn&&(0,st.Z)(Fn)==="object"?"url(#".concat(yi,")"):void 0,kn=Ke(ze,Te,Sn,dn,xe,it,cn,Fn,"butt",On,ut);return Sn+=(Te-kn.strokeDashoffset+ut)*100/Te,Le.createElement("circle",{key:si,className:"".concat(yn,"-circle-path"),r:et,cx:kt,cy:kt,stroke:yt,strokeWidth:On,opacity:1,style:kn,ref:function(Ht){qt[si]=Ht}})})};return Le.createElement("svg",(0,le.Z)({className:Re()("".concat(yn,"-circle"),ln),viewBox:"0 0 ".concat(Be," ").concat(Be),style:an,id:Tn,role:"presentation"},ii),!Ce&&Le.createElement("circle",{className:"".concat(yn,"-circle-trail"),r:et,cx:kt,cy:kt,stroke:An,strokeLinecap:Gt,strokeWidth:xt||On,style:gn}),Ce?sn():fn())},bt=ht,at={Line:mt,Circle:bt}},738:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return Se}});var le=de(5016),Ie=de(18082),De=de(52456),Le=de(5883),Ye=de(92310),Re=de.n(Ye),Ve=de(18929),Je=de(10228),Xe=de(26112),qe=de(59301);function mt(Ae,Oe){var Be=Ae.disabled,Ke=Ae.prefixCls,rt=Ae.character,ot=Ae.characterRender,ht=Ae.index,bt=Ae.count,at=Ae.value,At=Ae.allowHalf,It=Ae.focused,$t=Ae.onHover,Tn=Ae.onClick,yn=function(Pt){$t(Pt,ht)},un=function(Pt){Tn(Pt,ht)},On=function(Pt){Pt.keyCode===Je.Z.ENTER&&Tn(Pt,ht)},xt=ht+1,ct=new Set([Ke]);at===0&&ht===0&&It?ct.add("".concat(Ke,"-focused")):At&&at+.5>=xt&&at<xt?(ct.add("".concat(Ke,"-half")),ct.add("".concat(Ke,"-active")),It&&ct.add("".concat(Ke,"-focused"))):(xt<=at?ct.add("".concat(Ke,"-full")):ct.add("".concat(Ke,"-zero")),xt===at&&It&&ct.add("".concat(Ke,"-focused")));var it=typeof rt=="function"?rt(Ae):rt,cn=qe.createElement("li",{className:Re()(Array.from(ct)),ref:Oe},qe.createElement("div",{onClick:Be?null:un,onKeyDown:Be?null:On,onMouseMove:Be?null:yn,role:"radio","aria-checked":at>ht?"true":"false","aria-posinset":ht+1,"aria-setsize":bt,tabIndex:Be?-1:0},qe.createElement("div",{className:"".concat(Ke,"-first")},it),qe.createElement("div",{className:"".concat(Ke,"-second")},it)));return ot&&(cn=ot(cn,Ae)),cn}var st=qe.forwardRef(mt);function Nt(){var Ae=qe.useRef({});function Oe(Ke){return Ae.current[Ke]}function Be(Ke){return function(rt){Ae.current[Ke]=rt}}return[Oe,Be]}function _e(Ae){var Oe=Ae.pageXOffset,Be="scrollLeft";if(typeof Oe!="number"){var Ke=Ae.document;Oe=Ke.documentElement[Be],typeof Oe!="number"&&(Oe=Ke.body[Be])}return Oe}function te(Ae){var Oe,Be,Ke=Ae.ownerDocument,rt=Ke.body,ot=Ke&&Ke.documentElement,ht=Ae.getBoundingClientRect();return Oe=ht.left,Be=ht.top,Oe-=ot.clientLeft||rt.clientLeft||0,Be-=ot.clientTop||rt.clientTop||0,{left:Oe,top:Be}}function ne(Ae){var Oe=te(Ae),Be=Ae.ownerDocument,Ke=Be.defaultView||Be.parentWindow;return Oe.left+=_e(Ke),Oe.left}var he=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function se(Ae,Oe){var Be=Ae.prefixCls,Ke=Be===void 0?"rc-rate":Be,rt=Ae.className,ot=Ae.defaultValue,ht=Ae.value,bt=Ae.count,at=bt===void 0?5:bt,At=Ae.allowHalf,It=At===void 0?!1:At,$t=Ae.allowClear,Tn=$t===void 0?!0:$t,yn=Ae.keyboard,un=yn===void 0?!0:yn,On=Ae.character,xt=On===void 0?"\u2605":On,ct=Ae.characterRender,it=Ae.disabled,cn=Ae.direction,An=cn===void 0?"ltr":cn,Pt=Ae.tabIndex,an=Pt===void 0?0:Pt,ln=Ae.autoFocus,zn=Ae.onHoverChange,En=Ae.onChange,ii=Ae.onFocus,kt=Ae.onBlur,Kn=Ae.onKeyDown,yi=Ae.onMouseLeave,et=(0,Le.Z)(Ae,he),ze=Nt(),xe=(0,De.Z)(ze,2),Te=xe[0],Me=xe[1],Ce=qe.useRef(null),ut=function(){if(!it){var wi;(wi=Ce.current)===null||wi===void 0||wi.focus()}};qe.useImperativeHandle(Oe,function(){return{focus:ut,blur:function(){if(!it){var wi;(wi=Ce.current)===null||wi===void 0||wi.blur()}}}});var Lt=(0,Ve.Z)(ot||0,{value:ht}),Mt=(0,De.Z)(Lt,2),Yt=Mt[0],Vt=Mt[1],Gt=(0,Ve.Z)(null),gn=(0,De.Z)(Gt,2),qt=gn[0],fn=gn[1],sn=function(wi,Di){var ke=An==="rtl",mi=wi+1;if(It){var ki=Te(wi),Yn=ne(ki),fi=ki.clientWidth;(ke&&Di-Yn>fi/2||!ke&&Di-Yn<fi/2)&&(mi-=.5)}return mi},_t=function(wi){Vt(wi),En==null||En(wi)},wn=qe.useState(!1),dn=(0,De.Z)(wn,2),Sn=dn[0],nn=dn[1],si=function(){nn(!0),ii==null||ii()},Fn=function(){nn(!1),kt==null||kt()},yt=qe.useState(null),kn=(0,De.Z)(yt,2),Cn=kn[0],Ht=kn[1],di=function(wi,Di){var ke=sn(Di,wi.pageX);ke!==qt&&(Ht(ke),fn(null)),zn==null||zn(ke)},zi=function(wi){it||(Ht(null),fn(null),zn==null||zn(void 0)),wi&&(yi==null||yi(wi))},Ni=function(wi,Di){var ke=sn(Di,wi.pageX),mi=!1;Tn&&(mi=ke===Yt),zi(),_t(mi?0:ke),fn(mi?ke:null)},Ln=function(wi){var Di=wi.keyCode,ke=An==="rtl",mi=It?.5:1;un&&(Di===Je.Z.RIGHT&&Yt<at&&!ke?(_t(Yt+mi),wi.preventDefault()):Di===Je.Z.LEFT&&Yt>0&&!ke||Di===Je.Z.RIGHT&&Yt>0&&ke?(_t(Yt-mi),wi.preventDefault()):Di===Je.Z.LEFT&&Yt<at&&ke&&(_t(Yt+mi),wi.preventDefault())),Kn==null||Kn(wi)};qe.useEffect(function(){ln&&!it&&ut()},[]);var rr=new Array(at).fill(0).map(function(ui,wi){return qe.createElement(st,{ref:Me(wi),index:wi,count:at,disabled:it,prefixCls:"".concat(Ke,"-star"),allowHalf:It,value:Cn===null?Yt:Cn,onClick:Ni,onHover:di,key:ui||wi,character:xt,characterRender:ct,focused:Sn})}),Hi=Re()(Ke,rt,(0,Ie.Z)((0,Ie.Z)({},"".concat(Ke,"-disabled"),it),"".concat(Ke,"-rtl"),An==="rtl"));return qe.createElement("ul",(0,le.Z)({className:Hi,onMouseLeave:zi,tabIndex:it?-1:an,onFocus:it?null:si,onBlur:it?null:Fn,onKeyDown:it?null:Ln,ref:Ce},(0,Xe.Z)(et,{aria:!0,data:!0,attr:!0})),rr)}var ge=qe.forwardRef(se),Se=ge},6551:function(Ge,be,de){"use strict";de.d(be,{ZP:function(){return Ve}});var le=de(52456),Ie=de(59301),De=de(47273),Le=0,Ye=(0,De.Z)();function Re(){var Je;return Ye?(Je=Le,Le+=1):Je="TEST_OR_SSR",Je}function Ve(Je){var Xe=Ie.useState(),qe=(0,le.Z)(Xe,2),mt=qe[0],st=qe[1];return Ie.useEffect(function(){st("rc_select_".concat(Re()))},[]),Je||mt}},37463:function(Ge,be,de){"use strict";de.d(be,{Ac:function(){return nn},Xo:function(){return Fn},Wx:function(){return kn},ZP:function(){return Yi},lk:function(){return Se}});var le=de(5016),Ie=de(92393),De=de(18082),Le=de(20049),Ye=de(52456),Re=de(5883),Ve=de(10928),Je=de(18929),Xe=de(48736),qe=de(59301),mt=de(92310),st=de.n(mt),Nt=de(34280),_e=de(49658),te=de(8654),ne=function(Ut){var oi=Ut.className,gi=Ut.customizeIcon,jt=Ut.customizeIconProps,Vn=Ut.children,ni=Ut.onMouseDown,Zt=Ut.onClick,je=typeof gi=="function"?gi(jt):gi;return qe.createElement("span",{className:oi,onMouseDown:function(pi){pi.preventDefault(),ni==null||ni(pi)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Zt,"aria-hidden":!0},je!==void 0?je:qe.createElement("span",{className:st()(oi.split(/\s+/).map(function(ci){return"".concat(ci,"-icon")}))},Vn))},he=ne,se=function(Ut,oi,gi,jt,Vn){var ni=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Zt=arguments.length>6?arguments[6]:void 0,je=arguments.length>7?arguments[7]:void 0,ci=qe.useMemo(function(){if((0,Ve.Z)(jt)==="object")return jt.clearIcon;if(Vn)return Vn},[jt,Vn]),pi=qe.useMemo(function(){return!!(!ni&&jt&&(gi.length||Zt)&&!(je==="combobox"&&Zt===""))},[jt,ni,gi.length,Zt,je]);return{allowClear:pi,clearIcon:qe.createElement(he,{className:"".concat(Ut,"-clear"),onMouseDown:oi,customizeIcon:ci},"\xD7")}},ge=qe.createContext(null);function Se(){return qe.useContext(ge)}function Ae(){var lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ut=qe.useState(!1),oi=(0,Ye.Z)(Ut,2),gi=oi[0],jt=oi[1],Vn=qe.useRef(null),ni=function(){window.clearTimeout(Vn.current)};qe.useEffect(function(){return ni},[]);var Zt=function(ci,pi){ni(),Vn.current=window.setTimeout(function(){jt(ci),pi&&pi()},lt)};return[gi,Zt,ni]}function Oe(){var lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ut=qe.useRef(null),oi=qe.useRef(null);qe.useEffect(function(){return function(){window.clearTimeout(oi.current)}},[]);function gi(jt){(jt||Ut.current===null)&&(Ut.current=jt),window.clearTimeout(oi.current),oi.current=window.setTimeout(function(){Ut.current=null},lt)}return[function(){return Ut.current},gi]}function Be(lt,Ut,oi,gi){var jt=qe.useRef(null);jt.current={open:Ut,triggerOpen:oi,customizedTrigger:gi},qe.useEffect(function(){function Vn(ni){var Zt;if(!((Zt=jt.current)!==null&&Zt!==void 0&&Zt.customizedTrigger)){var je=ni.target;je.shadowRoot&&ni.composed&&(je=ni.composedPath()[0]||je),jt.current.open&<().filter(function(ci){return ci}).every(function(ci){return!ci.contains(je)&&ci!==je})&&jt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Vn),function(){return window.removeEventListener("mousedown",Vn)}},[])}var Ke=de(10228);function rt(lt){return lt&&![Ke.Z.ESC,Ke.Z.SHIFT,Ke.Z.BACKSPACE,Ke.Z.TAB,Ke.Z.WIN_KEY,Ke.Z.ALT,Ke.Z.META,Ke.Z.WIN_KEY_RIGHT,Ke.Z.CTRL,Ke.Z.SEMICOLON,Ke.Z.EQUALS,Ke.Z.CAPS_LOCK,Ke.Z.CONTEXT_MENU,Ke.Z.F1,Ke.Z.F2,Ke.Z.F3,Ke.Z.F4,Ke.Z.F5,Ke.Z.F6,Ke.Z.F7,Ke.Z.F8,Ke.Z.F9,Ke.Z.F10,Ke.Z.F11,Ke.Z.F12].includes(lt)}var ot=de(26112),ht=de(11780);function bt(lt,Ut,oi){var gi=(0,Le.Z)((0,Le.Z)({},lt),oi?Ut:{});return Object.keys(Ut).forEach(function(jt){var Vn=Ut[jt];typeof Vn=="function"&&(gi[jt]=function(){for(var ni,Zt=arguments.length,je=new Array(Zt),ci=0;ci<Zt;ci++)je[ci]=arguments[ci];return Vn.apply(void 0,je),(ni=lt[jt])===null||ni===void 0?void 0:ni.call.apply(ni,[lt].concat(je))})}),gi}var at=bt,At=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],It=function(Ut,oi){var gi=Ut.prefixCls,jt=Ut.id,Vn=Ut.inputElement,ni=Ut.autoFocus,Zt=Ut.autoComplete,je=Ut.editable,ci=Ut.activeDescendantId,pi=Ut.value,bn=Ut.open,Ki=Ut.attrs,Ui=(0,Re.Z)(Ut,At),Wi=Vn||qe.createElement("input",null),vn=Wi,Wt=vn.ref,ar=vn.props;return(0,Xe.Kp)(!("maxLength"in Wi.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Wi=qe.cloneElement(Wi,(0,Le.Z)((0,Le.Z)((0,Le.Z)({type:"search"},at(Ui,ar,!0)),{},{id:jt,ref:(0,te.sQ)(oi,Wt),autoComplete:Zt||"off",autoFocus:ni,className:st()("".concat(gi,"-selection-search-input"),ar==null?void 0:ar.className),role:"combobox","aria-expanded":bn||!1,"aria-haspopup":"listbox","aria-owns":"".concat(jt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(jt,"_list"),"aria-activedescendant":bn?ci:void 0},Ki),{},{value:je?pi:"",readOnly:!je,unselectable:je?null:"on",style:(0,Le.Z)((0,Le.Z)({},ar.style),{},{opacity:je?null:0})})),Wi},$t=qe.forwardRef(It),Tn=$t;function yn(lt){return Array.isArray(lt)?lt:lt!==void 0?[lt]:[]}var un=typeof window!="undefined"&&window.document&&window.document.documentElement,On=un;function xt(lt){return lt!=null}function ct(lt){return!lt&<!==0}function it(lt){return["string","number"].includes((0,Ve.Z)(lt))}function cn(lt){var Ut=void 0;return lt&&(it(lt.title)?Ut=lt.title.toString():it(lt.label)&&(Ut=lt.label.toString())),Ut}function An(lt,Ut){On?qe.useLayoutEffect(lt,Ut):qe.useEffect(lt,Ut)}function Pt(lt){var Ut;return(Ut=lt.key)!==null&&Ut!==void 0?Ut:lt.value}var an=function(Ut){Ut.preventDefault(),Ut.stopPropagation()},ln=function(Ut){var oi=Ut.id,gi=Ut.prefixCls,jt=Ut.values,Vn=Ut.open,ni=Ut.searchValue,Zt=Ut.autoClearSearchValue,je=Ut.inputRef,ci=Ut.placeholder,pi=Ut.disabled,bn=Ut.mode,Ki=Ut.showSearch,Ui=Ut.autoFocus,Wi=Ut.autoComplete,vn=Ut.activeDescendantId,Wt=Ut.tabIndex,ar=Ut.removeIcon,Zr=Ut.maxTagCount,Mn=Ut.maxTagTextLength,hi=Ut.maxTagPlaceholder,Pi=hi===void 0?function(kr){return"+ ".concat(kr.length," ...")}:hi,Li=Ut.tagRender,Ri=Ut.onToggleOpen,sr=Ut.onRemove,gr=Ut.onInputChange,Tr=Ut.onInputPaste,Ar=Ut.onInputKeyDown,Rr=Ut.onInputMouseDown,Un=Ut.onInputCompositionStart,pr=Ut.onInputCompositionEnd,Dn=Ut.onInputBlur,Lr=qe.useRef(null),ro=(0,qe.useState)(0),Ir=(0,Ye.Z)(ro,2),Vr=Ir[0],Mr=Ir[1],Sr=(0,qe.useState)(!1),Qr=(0,Ye.Z)(Sr,2),Ro=Qr[0],qr=Qr[1],vi="".concat(gi,"-selection"),dt=Vn||bn==="multiple"&&Zt===!1||bn==="tags"?ni:"",ho=bn==="tags"||bn==="multiple"&&Zt===!1||Ki&&(Vn||Ro);An(function(){Mr(Lr.current.scrollWidth)},[dt]);var yo=function(Ji,Cr,uo,nr,Qi){return qe.createElement("span",{title:cn(Ji),className:st()("".concat(vi,"-item"),(0,De.Z)({},"".concat(vi,"-item-disabled"),uo))},qe.createElement("span",{className:"".concat(vi,"-item-content")},Cr),nr&&qe.createElement(he,{className:"".concat(vi,"-item-remove"),onMouseDown:an,onClick:Qi,customizeIcon:ar},"\xD7"))},ua=function(Ji,Cr,uo,nr,Qi,ti){var lr=function(Lo){an(Lo),Ri(!Vn)};return qe.createElement("span",{onMouseDown:lr},Li({label:Cr,value:Ji,disabled:uo,closable:nr,onClose:Qi,isMaxTag:!!ti}))},Vo=function(Ji){var Cr=Ji.disabled,uo=Ji.label,nr=Ji.value,Qi=!pi&&!Cr,ti=uo;if(typeof Mn=="number"&&(typeof uo=="string"||typeof uo=="number")){var lr=String(ti);lr.length>Mn&&(ti="".concat(lr.slice(0,Mn),"..."))}var Gr=function(ao){ao&&ao.stopPropagation(),sr(Ji)};return typeof Li=="function"?ua(nr,ti,Cr,Qi,Gr):yo(Ji,ti,Cr,Qi,Gr)},Kr=function(Ji){if(!jt.length)return null;var Cr=typeof Pi=="function"?Pi(Ji):Pi;return typeof Li=="function"?ua(void 0,Cr,!1,!1,void 0,!0):yo({title:Cr},Cr,!1)},Zi=qe.createElement("div",{className:"".concat(vi,"-search"),style:{width:Vr},onFocus:function(){qr(!0)},onBlur:function(){qr(!1)}},qe.createElement(Tn,{ref:je,open:Vn,prefixCls:gi,id:oi,inputElement:null,disabled:pi,autoFocus:Ui,autoComplete:Wi,editable:ho,activeDescendantId:vn,value:dt,onKeyDown:Ar,onMouseDown:Rr,onChange:gr,onPaste:Tr,onCompositionStart:Un,onCompositionEnd:pr,onBlur:Dn,tabIndex:Wt,attrs:(0,ot.Z)(Ut,!0)}),qe.createElement("span",{ref:Lr,className:"".concat(vi,"-search-mirror"),"aria-hidden":!0},dt,"\xA0")),tr=qe.createElement(ht.Z,{prefixCls:"".concat(vi,"-overflow"),data:jt,renderItem:Vo,renderRest:Kr,suffix:Zi,itemKey:Pt,maxCount:Zr});return qe.createElement("span",{className:"".concat(vi,"-wrap")},tr,!jt.length&&!dt&&qe.createElement("span",{className:"".concat(vi,"-placeholder")},ci))},zn=ln,En=function(Ut){var oi=Ut.inputElement,gi=Ut.prefixCls,jt=Ut.id,Vn=Ut.inputRef,ni=Ut.disabled,Zt=Ut.autoFocus,je=Ut.autoComplete,ci=Ut.activeDescendantId,pi=Ut.mode,bn=Ut.open,Ki=Ut.values,Ui=Ut.placeholder,Wi=Ut.tabIndex,vn=Ut.showSearch,Wt=Ut.searchValue,ar=Ut.activeValue,Zr=Ut.maxLength,Mn=Ut.onInputKeyDown,hi=Ut.onInputMouseDown,Pi=Ut.onInputChange,Li=Ut.onInputPaste,Ri=Ut.onInputCompositionStart,sr=Ut.onInputCompositionEnd,gr=Ut.onInputBlur,Tr=Ut.title,Ar=qe.useState(!1),Rr=(0,Ye.Z)(Ar,2),Un=Rr[0],pr=Rr[1],Dn=pi==="combobox",Lr=Dn||vn,ro=Ki[0],Ir=Wt||"";Dn&&ar&&!Un&&(Ir=ar),qe.useEffect(function(){Dn&&pr(!1)},[Dn,ar]);var Vr=pi!=="combobox"&&!bn&&!vn?!1:!!Ir,Mr=Tr===void 0?cn(ro):Tr,Sr=qe.useMemo(function(){return ro?null:qe.createElement("span",{className:"".concat(gi,"-selection-placeholder"),style:Vr?{visibility:"hidden"}:void 0},Ui)},[ro,Vr,Ui,gi]);return qe.createElement("span",{className:"".concat(gi,"-selection-wrap")},qe.createElement("span",{className:"".concat(gi,"-selection-search")},qe.createElement(Tn,{ref:Vn,prefixCls:gi,id:jt,open:bn,inputElement:oi,disabled:ni,autoFocus:Zt,autoComplete:je,editable:Lr,activeDescendantId:ci,value:Ir,onKeyDown:Mn,onMouseDown:hi,onChange:function(Ro){pr(!0),Pi(Ro)},onPaste:Li,onCompositionStart:Ri,onCompositionEnd:sr,onBlur:gr,tabIndex:Wi,attrs:(0,ot.Z)(Ut,!0),maxLength:Dn?Zr:void 0})),!Dn&&ro?qe.createElement("span",{className:"".concat(gi,"-selection-item"),title:Mr,style:Vr?{visibility:"hidden"}:void 0},ro.label):null,Sr)},ii=En,kt=function(Ut,oi){var gi=(0,qe.useRef)(null),jt=(0,qe.useRef)(!1),Vn=Ut.prefixCls,ni=Ut.open,Zt=Ut.mode,je=Ut.showSearch,ci=Ut.tokenWithEnter,pi=Ut.disabled,bn=Ut.prefix,Ki=Ut.autoClearSearchValue,Ui=Ut.onSearch,Wi=Ut.onSearchSubmit,vn=Ut.onToggleOpen,Wt=Ut.onInputKeyDown,ar=Ut.onInputBlur,Zr=Ut.domRef;qe.useImperativeHandle(oi,function(){return{focus:function(Mr){gi.current.focus(Mr)},blur:function(){gi.current.blur()}}});var Mn=Oe(0),hi=(0,Ye.Z)(Mn,2),Pi=hi[0],Li=hi[1],Ri=function(Mr){var Sr=Mr.which,Qr=gi.current instanceof HTMLTextAreaElement;!Qr&&ni&&(Sr===Ke.Z.UP||Sr===Ke.Z.DOWN)&&Mr.preventDefault(),Wt&&Wt(Mr),Sr===Ke.Z.ENTER&&Zt==="tags"&&!jt.current&&!ni&&(Wi==null||Wi(Mr.target.value)),!(Qr&&!ni&&~[Ke.Z.UP,Ke.Z.DOWN,Ke.Z.LEFT,Ke.Z.RIGHT].indexOf(Sr))&&rt(Sr)&&vn(!0)},sr=function(){Li(!0)},gr=(0,qe.useRef)(null),Tr=function(Mr){Ui(Mr,!0,jt.current)!==!1&&vn(!0)},Ar=function(){jt.current=!0},Rr=function(Mr){jt.current=!1,Zt!=="combobox"&&Tr(Mr.target.value)},Un=function(Mr){var Sr=Mr.target.value;if(ci&&gr.current&&/[\r\n]/.test(gr.current)){var Qr=gr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Sr=Sr.replace(Qr,gr.current)}gr.current=null,Tr(Sr)},pr=function(Mr){var Sr=Mr.clipboardData,Qr=Sr==null?void 0:Sr.getData("text");gr.current=Qr||""},Dn=function(Mr){var Sr=Mr.target;if(Sr!==gi.current){var Qr=document.body.style.msTouchAction!==void 0;Qr?setTimeout(function(){gi.current.focus()}):gi.current.focus()}},Lr=function(Mr){var Sr=Pi();Mr.target!==gi.current&&!Sr&&!(Zt==="combobox"&&pi)&&Mr.preventDefault(),(Zt!=="combobox"&&(!je||!Sr)||!ni)&&(ni&&Ki!==!1&&Ui("",!0,!1),vn())},ro={inputRef:gi,onInputKeyDown:Ri,onInputMouseDown:sr,onInputChange:Un,onInputPaste:pr,onInputCompositionStart:Ar,onInputCompositionEnd:Rr,onInputBlur:ar},Ir=Zt==="multiple"||Zt==="tags"?qe.createElement(zn,(0,le.Z)({},Ut,ro)):qe.createElement(ii,(0,le.Z)({},Ut,ro));return qe.createElement("div",{ref:Zr,className:"".concat(Vn,"-selector"),onClick:Dn,onMouseDown:Lr},bn&&qe.createElement("div",{className:"".concat(Vn,"-prefix")},bn),Ir)},Kn=qe.forwardRef(kt),yi=Kn,et=de(65352),ze=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],xe=function(Ut){var oi=Ut===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:oi,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:oi,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:oi,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:oi,adjustY:1},htmlRegion:"scroll"}}},Te=function(Ut,oi){var gi=Ut.prefixCls,jt=Ut.disabled,Vn=Ut.visible,ni=Ut.children,Zt=Ut.popupElement,je=Ut.animation,ci=Ut.transitionName,pi=Ut.dropdownStyle,bn=Ut.dropdownClassName,Ki=Ut.direction,Ui=Ki===void 0?"ltr":Ki,Wi=Ut.placement,vn=Ut.builtinPlacements,Wt=Ut.dropdownMatchSelectWidth,ar=Ut.dropdownRender,Zr=Ut.dropdownAlign,Mn=Ut.getPopupContainer,hi=Ut.empty,Pi=Ut.getTriggerDOMNode,Li=Ut.onPopupVisibleChange,Ri=Ut.onPopupMouseEnter,sr=(0,Re.Z)(Ut,ze),gr="".concat(gi,"-dropdown"),Tr=Zt;ar&&(Tr=ar(Zt));var Ar=qe.useMemo(function(){return vn||xe(Wt)},[vn,Wt]),Rr=je?"".concat(gr,"-").concat(je):ci,Un=typeof Wt=="number",pr=qe.useMemo(function(){return Un?null:Wt===!1?"minWidth":"width"},[Wt,Un]),Dn=pi;Un&&(Dn=(0,Le.Z)((0,Le.Z)({},Dn),{},{width:Wt}));var Lr=qe.useRef(null);return qe.useImperativeHandle(oi,function(){return{getPopupElement:function(){var Ir;return(Ir=Lr.current)===null||Ir===void 0?void 0:Ir.popupElement}}}),qe.createElement(et.Z,(0,le.Z)({},sr,{showAction:Li?["click"]:[],hideAction:Li?["click"]:[],popupPlacement:Wi||(Ui==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ar,prefixCls:gr,popupTransitionName:Rr,popup:qe.createElement("div",{onMouseEnter:Ri},Tr),ref:Lr,stretch:pr,popupAlign:Zr,popupVisible:Vn,getPopupContainer:Mn,popupClassName:st()(bn,(0,De.Z)({},"".concat(gr,"-empty"),hi)),popupStyle:Dn,getTriggerDOMNode:Pi,onPopupVisibleChange:Li}),ni)},Me=qe.forwardRef(Te),Ce=Me,ut=de(74604);function Lt(lt,Ut){var oi=lt.key,gi;return"value"in lt&&(gi=lt.value),oi!=null?oi:gi!==void 0?gi:"rc-index-key-".concat(Ut)}function Mt(lt){return typeof lt!="undefined"&&!Number.isNaN(lt)}function Yt(lt,Ut){var oi=lt||{},gi=oi.label,jt=oi.value,Vn=oi.options,ni=oi.groupLabel,Zt=gi||(Ut?"children":"label");return{label:Zt,value:jt||"value",options:Vn||"options",groupLabel:ni||Zt}}function Vt(lt){var Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},oi=Ut.fieldNames,gi=Ut.childrenAsData,jt=[],Vn=Yt(oi,!1),ni=Vn.label,Zt=Vn.value,je=Vn.options,ci=Vn.groupLabel;function pi(bn,Ki){Array.isArray(bn)&&bn.forEach(function(Ui){if(Ki||!(je in Ui)){var Wi=Ui[Zt];jt.push({key:Lt(Ui,jt.length),groupOption:Ki,data:Ui,label:Ui[ni],value:Wi})}else{var vn=Ui[ci];vn===void 0&&gi&&(vn=Ui.label),jt.push({key:Lt(Ui,jt.length),group:!0,data:Ui,label:vn}),pi(Ui[je],!0)}})}return pi(lt,!1),jt}function Gt(lt){var Ut=(0,Le.Z)({},lt);return"props"in Ut||Object.defineProperty(Ut,"props",{get:function(){return(0,Xe.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ut}}),Ut}var gn=function(Ut,oi,gi){if(!oi||!oi.length)return null;var jt=!1,Vn=function Zt(je,ci){var pi=(0,ut.Z)(ci),bn=pi[0],Ki=pi.slice(1);if(!bn)return[je];var Ui=je.split(bn);return jt=jt||Ui.length>1,Ui.reduce(function(Wi,vn){return[].concat((0,Ie.Z)(Wi),(0,Ie.Z)(Zt(vn,Ki)))},[]).filter(Boolean)},ni=Vn(Ut,oi);return jt?typeof gi!="undefined"?ni.slice(0,gi):ni:null},qt=qe.createContext(null),fn=qt;function sn(lt){var Ut=lt.visible,oi=lt.values;if(!Ut)return null;var gi=50;return qe.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(oi.slice(0,gi).map(function(jt){var Vn=jt.label,ni=jt.value;return["number","string"].includes((0,Ve.Z)(Vn))?Vn:ni}).join(", ")),oi.length>gi?", ...":null)}var _t=["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"],wn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],dn=function(Ut){return Ut==="tags"||Ut==="multiple"},Sn=qe.forwardRef(function(lt,Ut){var oi,gi=lt.id,jt=lt.prefixCls,Vn=lt.className,ni=lt.showSearch,Zt=lt.tagRender,je=lt.direction,ci=lt.omitDomProps,pi=lt.displayValues,bn=lt.onDisplayValuesChange,Ki=lt.emptyOptions,Ui=lt.notFoundContent,Wi=Ui===void 0?"Not Found":Ui,vn=lt.onClear,Wt=lt.mode,ar=lt.disabled,Zr=lt.loading,Mn=lt.getInputElement,hi=lt.getRawInputElement,Pi=lt.open,Li=lt.defaultOpen,Ri=lt.onDropdownVisibleChange,sr=lt.activeValue,gr=lt.onActiveValueChange,Tr=lt.activeDescendantId,Ar=lt.searchValue,Rr=lt.autoClearSearchValue,Un=lt.onSearch,pr=lt.onSearchSplit,Dn=lt.tokenSeparators,Lr=lt.allowClear,ro=lt.prefix,Ir=lt.suffixIcon,Vr=lt.clearIcon,Mr=lt.OptionList,Sr=lt.animation,Qr=lt.transitionName,Ro=lt.dropdownStyle,qr=lt.dropdownClassName,vi=lt.dropdownMatchSelectWidth,dt=lt.dropdownRender,ho=lt.dropdownAlign,yo=lt.placement,ua=lt.builtinPlacements,Vo=lt.getPopupContainer,Kr=lt.showAction,Zi=Kr===void 0?[]:Kr,tr=lt.onFocus,kr=lt.onBlur,Ji=lt.onKeyUp,Cr=lt.onKeyDown,uo=lt.onMouseDown,nr=(0,Re.Z)(lt,_t),Qi=dn(Wt),ti=(ni!==void 0?ni:Qi)||Wt==="combobox",lr=(0,Le.Z)({},nr);wn.forEach(function(Bo){delete lr[Bo]}),ci==null||ci.forEach(function(Bo){delete lr[Bo]});var Gr=qe.useState(!1),Lo=(0,Ye.Z)(Gr,2),ao=Lo[0],Zo=Lo[1];qe.useEffect(function(){Zo((0,_e.Z)())},[]);var Xo=qe.useRef(null),Go=qe.useRef(null),Jo=qe.useRef(null),Yo=qe.useRef(null),ra=qe.useRef(null),pn=qe.useRef(!1),wa=Ae(),qs=(0,Ye.Z)(wa,3),za=qs[0],$a=qs[1],Qo=qs[2];qe.useImperativeHandle(Ut,function(){var Bo,So;return{focus:(Bo=Yo.current)===null||Bo===void 0?void 0:Bo.focus,blur:(So=Yo.current)===null||So===void 0?void 0:So.blur,scrollTo:function(ir){var Ga;return(Ga=ra.current)===null||Ga===void 0?void 0:Ga.scrollTo(ir)},nativeElement:Xo.current||Go.current}});var ms=qe.useMemo(function(){var Bo;if(Wt!=="combobox")return Ar;var So=(Bo=pi[0])===null||Bo===void 0?void 0:Bo.value;return typeof So=="string"||typeof So=="number"?String(So):""},[Ar,Wt,pi]),Nn=Wt==="combobox"&&typeof Mn=="function"&&Mn()||null,po=typeof hi=="function"&&hi(),ca=(0,te.x1)(Go,po==null||(oi=po.props)===null||oi===void 0?void 0:oi.ref),ul=qe.useState(!1),Ua=(0,Ye.Z)(ul,2),Zl=Ua[0],ws=Ua[1];(0,Nt.Z)(function(){ws(!0)},[]);var mr=(0,Je.Z)(!1,{defaultValue:Li,value:Pi}),cl=(0,Ye.Z)(mr,2),El=cl[0],ds=cl[1],Ta=Zl?El:!1,dl=!Wi&&Ki;(ar||dl&&Ta&&Wt==="combobox")&&(Ta=!1);var tn=dl?!1:Ta,Ti=qe.useCallback(function(Bo){var So=Bo!==void 0?Bo:!Ta;ar||(ds(So),Ta!==So&&(Ri==null||Ri(So)))},[ar,Ta,ds,Ri]),_i=qe.useMemo(function(){return(Dn||[]).some(function(Bo){return[`
|
|
|
`,`\r
|
|
|
`].includes(Bo)})},[Dn]),qi=qe.useContext(fn)||{},ur=qi.maxCount,wr=qi.rawValues,Xi=function(So,os,ir){if(!(Qi&&Mt(ur)&&(wr==null?void 0:wr.size)>=ur)){var Ga=!0,Ft=So;gr==null||gr(null);var Qn=gn(So,Dn,Mt(ur)?ur-wr.size:void 0),xl=ir?null:Qn;return Wt!=="combobox"&&xl&&(Ft="",pr==null||pr(xl),Ti(!1),Ga=!1),Un&&ms!==Ft&&Un(Ft,{source:os?"typing":"effect"}),Ga}},Fo=function(So){!So||!So.trim()||Un(So,{source:"submit"})};qe.useEffect(function(){!Ta&&!Qi&&Wt!=="combobox"&&Xi("",!1,!1)},[Ta]),qe.useEffect(function(){El&&ar&&ds(!1),ar&&!pn.current&&$a(!1)},[ar]);var jo=Oe(),Ao=(0,Ye.Z)(jo,2),co=Ao[0],zo=Ao[1],rs=qe.useRef(!1),ia=function(So){var os=co(),ir=So.key,Ga=ir==="Enter";if(Ga&&(Wt!=="combobox"&&So.preventDefault(),Ta||Ti(!0)),zo(!!ms),ir==="Backspace"&&!os&&Qi&&!ms&&pi.length){for(var Ft=(0,Ie.Z)(pi),Qn=null,xl=Ft.length-1;xl>=0;xl-=1){var uu=Ft[xl];if(!uu.disabled){Ft.splice(xl,1),Qn=uu;break}}Qn&&bn(Ft,{type:"remove",values:[Qn]})}for(var Cs=arguments.length,fs=new Array(Cs>1?Cs-1:0),Rl=1;Rl<Cs;Rl++)fs[Rl-1]=arguments[Rl];if(Ta&&(!Ga||!rs.current)){var cu;Ga&&(rs.current=!0),(cu=ra.current)===null||cu===void 0||cu.onKeyDown.apply(cu,[So].concat(fs))}Cr==null||Cr.apply(void 0,[So].concat(fs))},Ma=function(So){for(var os=arguments.length,ir=new Array(os>1?os-1:0),Ga=1;Ga<os;Ga++)ir[Ga-1]=arguments[Ga];if(Ta){var Ft;(Ft=ra.current)===null||Ft===void 0||Ft.onKeyUp.apply(Ft,[So].concat(ir))}So.key==="Enter"&&(rs.current=!1),Ji==null||Ji.apply(void 0,[So].concat(ir))},Ts=function(So){var os=pi.filter(function(ir){return ir!==So});bn(os,{type:"remove",values:[So]})},Za=function(){rs.current=!1},$s=qe.useRef(!1),hl=function(){$a(!0),ar||(tr&&!$s.current&&tr.apply(void 0,arguments),Zi.includes("focus")&&Ti(!0)),$s.current=!0},Ol=function(){pn.current=!0,$a(!1,function(){$s.current=!1,pn.current=!1,Ti(!1)}),!ar&&(ms&&(Wt==="tags"?Un(ms,{source:"submit"}):Wt==="multiple"&&Un("",{source:"blur"})),kr&&kr.apply(void 0,arguments))},Fa=[];qe.useEffect(function(){return function(){Fa.forEach(function(Bo){return clearTimeout(Bo)}),Fa.splice(0,Fa.length)}},[]);var As=function(So){var os,ir=So.target,Ga=(os=Jo.current)===null||os===void 0?void 0:os.getPopupElement();if(Ga&&Ga.contains(ir)){var Ft=setTimeout(function(){var Cs=Fa.indexOf(Ft);if(Cs!==-1&&Fa.splice(Cs,1),Qo(),!ao&&!Ga.contains(document.activeElement)){var fs;(fs=Yo.current)===null||fs===void 0||fs.focus()}});Fa.push(Ft)}for(var Qn=arguments.length,xl=new Array(Qn>1?Qn-1:0),uu=1;uu<Qn;uu++)xl[uu-1]=arguments[uu];uo==null||uo.apply(void 0,[So].concat(xl))},Rs=qe.useState({}),sc=(0,Ye.Z)(Rs,2),xc=sc[1];function Yc(){xc({})}var Aa;po&&(Aa=function(So){Ti(So)}),Be(function(){var Bo;return[Xo.current,(Bo=Jo.current)===null||Bo===void 0?void 0:Bo.getPopupElement()]},tn,Ti,!!po);var ad=qe.useMemo(function(){return(0,Le.Z)((0,Le.Z)({},lt),{},{notFoundContent:Wi,open:Ta,triggerOpen:tn,id:gi,showSearch:ti,multiple:Qi,toggleOpen:Ti})},[lt,Wi,tn,Ta,gi,ti,Qi,Ti]),bc=!!Ir||Zr,Gu;bc&&(Gu=qe.createElement(he,{className:st()("".concat(jt,"-arrow"),(0,De.Z)({},"".concat(jt,"-arrow-loading"),Zr)),customizeIcon:Ir,customizeIconProps:{loading:Zr,searchValue:ms,open:Ta,focused:za,showSearch:ti}}));var Yu=function(){var So;vn==null||vn(),(So=Yo.current)===null||So===void 0||So.focus(),bn([],{type:"clear",values:pi}),Xi("",!1,!1)},es=se(jt,Yu,pi,Lr,Vr,ar,ms,Wt),hs=es.allowClear,Ha=es.clearIcon,ts=qe.createElement(Mr,{ref:ra}),wc=st()(jt,Vn,(0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)({},"".concat(jt,"-focused"),za),"".concat(jt,"-multiple"),Qi),"".concat(jt,"-single"),!Qi),"".concat(jt,"-allow-clear"),Lr),"".concat(jt,"-show-arrow"),bc),"".concat(jt,"-disabled"),ar),"".concat(jt,"-loading"),Zr),"".concat(jt,"-open"),Ta),"".concat(jt,"-customize-input"),Nn),"".concat(jt,"-show-search"),ti)),Wu=qe.createElement(Ce,{ref:Jo,disabled:ar,prefixCls:jt,visible:tn,popupElement:ts,animation:Sr,transitionName:Qr,dropdownStyle:Ro,dropdownClassName:qr,direction:je,dropdownMatchSelectWidth:vi,dropdownRender:dt,dropdownAlign:ho,placement:yo,builtinPlacements:ua,getPopupContainer:Vo,empty:Ki,getTriggerDOMNode:function(So){return Go.current||So},onPopupVisibleChange:Aa,onPopupMouseEnter:Yc},po?qe.cloneElement(po,{ref:ca}):qe.createElement(yi,(0,le.Z)({},lt,{domRef:Go,prefixCls:jt,inputElement:Nn,ref:Yo,id:gi,prefix:ro,showSearch:ti,autoClearSearchValue:Rr,mode:Wt,activeDescendantId:Tr,tagRender:Zt,values:pi,open:Ta,onToggleOpen:Ti,activeValue:sr,searchValue:ms,onSearch:Xi,onSearchSubmit:Fo,onRemove:Ts,tokenWithEnter:_i,onInputBlur:Za}))),oa;return po?oa=Wu:oa=qe.createElement("div",(0,le.Z)({className:wc},lr,{ref:Xo,onMouseDown:As,onKeyDown:ia,onKeyUp:Ma,onFocus:hl,onBlur:Ol}),qe.createElement(sn,{visible:za&&!Ta,values:pi}),Wu,Gu,hs&&Ha),qe.createElement(ge.Provider,{value:ad},oa)}),nn=Sn,si=function(){return null};si.isSelectOptGroup=!0;var Fn=si,yt=function(){return null};yt.isSelectOption=!0;var kn=yt,Cn=de(80547),Ht=de(2738),di=de(65283);function zi(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Ni=["disabled","title","children","style","className"];function Ln(lt){return typeof lt=="string"||typeof lt=="number"}var rr=function(Ut,oi){var gi=Se(),jt=gi.prefixCls,Vn=gi.id,ni=gi.open,Zt=gi.multiple,je=gi.mode,ci=gi.searchValue,pi=gi.toggleOpen,bn=gi.notFoundContent,Ki=gi.onPopupScroll,Ui=qe.useContext(fn),Wi=Ui.maxCount,vn=Ui.flattenOptions,Wt=Ui.onActiveValue,ar=Ui.defaultActiveFirstOption,Zr=Ui.onSelect,Mn=Ui.menuItemSelectedIcon,hi=Ui.rawValues,Pi=Ui.fieldNames,Li=Ui.virtual,Ri=Ui.direction,sr=Ui.listHeight,gr=Ui.listItemHeight,Tr=Ui.optionRender,Ar="".concat(jt,"-item"),Rr=(0,Cn.Z)(function(){return vn},[ni,vn],function(Kr,Zi){return Zi[0]&&Kr[1]!==Zi[1]}),Un=qe.useRef(null),pr=qe.useMemo(function(){return Zt&&Mt(Wi)&&(hi==null?void 0:hi.size)>=Wi},[Zt,Wi,hi==null?void 0:hi.size]),Dn=function(Zi){Zi.preventDefault()},Lr=function(Zi){var tr;(tr=Un.current)===null||tr===void 0||tr.scrollTo(typeof Zi=="number"?{index:Zi}:Zi)},ro=qe.useCallback(function(Kr){return je==="combobox"?!1:hi.has(Kr)},[je,(0,Ie.Z)(hi).toString(),hi.size]),Ir=function(Zi){for(var tr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,kr=Rr.length,Ji=0;Ji<kr;Ji+=1){var Cr=(Zi+Ji*tr+kr)%kr,uo=Rr[Cr]||{},nr=uo.group,Qi=uo.data;if(!nr&&!(Qi!=null&&Qi.disabled)&&(ro(Qi.value)||!pr))return Cr}return-1},Vr=qe.useState(function(){return Ir(0)}),Mr=(0,Ye.Z)(Vr,2),Sr=Mr[0],Qr=Mr[1],Ro=function(Zi){var tr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Qr(Zi);var kr={source:tr?"keyboard":"mouse"},Ji=Rr[Zi];if(!Ji){Wt(null,-1,kr);return}Wt(Ji.value,Zi,kr)};(0,qe.useEffect)(function(){Ro(ar!==!1?Ir(0):-1)},[Rr.length,ci]);var qr=qe.useCallback(function(Kr){return je==="combobox"?String(Kr).toLowerCase()===ci.toLowerCase():hi.has(Kr)},[je,ci,(0,Ie.Z)(hi).toString(),hi.size]);(0,qe.useEffect)(function(){var Kr=setTimeout(function(){if(!Zt&&ni&&hi.size===1){var tr=Array.from(hi)[0],kr=Rr.findIndex(function(Ji){var Cr=Ji.data;return ci?String(Cr.value).startsWith(ci):Cr.value===tr});kr!==-1&&(Ro(kr),Lr(kr))}});if(ni){var Zi;(Zi=Un.current)===null||Zi===void 0||Zi.scrollTo(void 0)}return function(){return clearTimeout(Kr)}},[ni,ci]);var vi=function(Zi){Zi!==void 0&&Zr(Zi,{selected:!hi.has(Zi)}),Zt||pi(!1)};if(qe.useImperativeHandle(oi,function(){return{onKeyDown:function(Zi){var tr=Zi.which,kr=Zi.ctrlKey;switch(tr){case Ke.Z.N:case Ke.Z.P:case Ke.Z.UP:case Ke.Z.DOWN:{var Ji=0;if(tr===Ke.Z.UP?Ji=-1:tr===Ke.Z.DOWN?Ji=1:zi()&&kr&&(tr===Ke.Z.N?Ji=1:tr===Ke.Z.P&&(Ji=-1)),Ji!==0){var Cr=Ir(Sr+Ji,Ji);Lr(Cr),Ro(Cr,!0)}break}case Ke.Z.TAB:case Ke.Z.ENTER:{var uo,nr=Rr[Sr];nr&&!(nr!=null&&(uo=nr.data)!==null&&uo!==void 0&&uo.disabled)&&!pr?vi(nr.value):vi(void 0),ni&&Zi.preventDefault();break}case Ke.Z.ESC:pi(!1),ni&&Zi.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Zi){Lr(Zi)}}}),Rr.length===0)return qe.createElement("div",{role:"listbox",id:"".concat(Vn,"_list"),className:"".concat(Ar,"-empty"),onMouseDown:Dn},bn);var dt=Object.keys(Pi).map(function(Kr){return Pi[Kr]}),ho=function(Zi){return Zi.label};function yo(Kr,Zi){var tr=Kr.group;return{role:tr?"presentation":"option",id:"".concat(Vn,"_list_").concat(Zi)}}var ua=function(Zi){var tr=Rr[Zi];if(!tr)return null;var kr=tr.data||{},Ji=kr.value,Cr=tr.group,uo=(0,ot.Z)(kr,!0),nr=ho(tr);return tr?qe.createElement("div",(0,le.Z)({"aria-label":typeof nr=="string"&&!Cr?nr:null},uo,{key:Zi},yo(tr,Zi),{"aria-selected":qr(Ji)}),Ji):null},Vo={role:"listbox",id:"".concat(Vn,"_list")};return qe.createElement(qe.Fragment,null,Li&&qe.createElement("div",(0,le.Z)({},Vo,{style:{height:0,width:0,overflow:"hidden"}}),ua(Sr-1),ua(Sr),ua(Sr+1)),qe.createElement(di.Z,{itemKey:"key",ref:Un,data:Rr,height:sr,itemHeight:gr,fullHeight:!1,onMouseDown:Dn,onScroll:Ki,virtual:Li,direction:Ri,innerProps:Li?null:Vo},function(Kr,Zi){var tr=Kr.group,kr=Kr.groupOption,Ji=Kr.data,Cr=Kr.label,uo=Kr.value,nr=Ji.key;if(tr){var Qi,ti=(Qi=Ji.title)!==null&&Qi!==void 0?Qi:Ln(Cr)?Cr.toString():void 0;return qe.createElement("div",{className:st()(Ar,"".concat(Ar,"-group"),Ji.className),title:ti},Cr!==void 0?Cr:nr)}var lr=Ji.disabled,Gr=Ji.title,Lo=Ji.children,ao=Ji.style,Zo=Ji.className,Xo=(0,Re.Z)(Ji,Ni),Go=(0,Ht.Z)(Xo,dt),Jo=ro(uo),Yo=lr||!Jo&&pr,ra="".concat(Ar,"-option"),pn=st()(Ar,ra,Zo,(0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)({},"".concat(ra,"-grouped"),kr),"".concat(ra,"-active"),Sr===Zi&&!Yo),"".concat(ra,"-disabled"),Yo),"".concat(ra,"-selected"),Jo)),wa=ho(Kr),qs=!Mn||typeof Mn=="function"||Jo,za=typeof wa=="number"?wa:wa||uo,$a=Ln(za)?za.toString():void 0;return Gr!==void 0&&($a=Gr),qe.createElement("div",(0,le.Z)({},(0,ot.Z)(Go),Li?{}:yo(Kr,Zi),{"aria-selected":qr(uo),className:pn,title:$a,onMouseMove:function(){Sr===Zi||Yo||Ro(Zi)},onClick:function(){Yo||vi(uo)},style:ao}),qe.createElement("div",{className:"".concat(ra,"-content")},typeof Tr=="function"?Tr(Kr,{index:Zi}):za),qe.isValidElement(Mn)||Jo,qs&&qe.createElement(he,{className:"".concat(Ar,"-option-state"),customizeIcon:Mn,customizeIconProps:{value:uo,disabled:Yo,isSelected:Jo}},Jo?"\u2713":null))}))},Hi=qe.forwardRef(rr),ui=Hi,wi=function(lt,Ut){var oi=qe.useRef({values:new Map,options:new Map}),gi=qe.useMemo(function(){var Vn=oi.current,ni=Vn.values,Zt=Vn.options,je=lt.map(function(bn){if(bn.label===void 0){var Ki;return(0,Le.Z)((0,Le.Z)({},bn),{},{label:(Ki=ni.get(bn.value))===null||Ki===void 0?void 0:Ki.label})}return bn}),ci=new Map,pi=new Map;return je.forEach(function(bn){ci.set(bn.value,bn),pi.set(bn.value,Ut.get(bn.value)||Zt.get(bn.value))}),oi.current.values=ci,oi.current.options=pi,je},[lt,Ut]),jt=qe.useCallback(function(Vn){return Ut.get(Vn)||oi.current.options.get(Vn)},[Ut]);return[gi,jt]};function Di(lt,Ut){return yn(lt).join("").toUpperCase().includes(Ut)}var ke=function(lt,Ut,oi,gi,jt){return qe.useMemo(function(){if(!oi||gi===!1)return lt;var Vn=Ut.options,ni=Ut.label,Zt=Ut.value,je=[],ci=typeof gi=="function",pi=oi.toUpperCase(),bn=ci?gi:function(Ui,Wi){return jt?Di(Wi[jt],pi):Wi[Vn]?Di(Wi[ni!=="children"?ni:"label"],pi):Di(Wi[Zt],pi)},Ki=ci?function(Ui){return Gt(Ui)}:function(Ui){return Ui};return lt.forEach(function(Ui){if(Ui[Vn]){var Wi=bn(oi,Ki(Ui));if(Wi)je.push(Ui);else{var vn=Ui[Vn].filter(function(Wt){return bn(oi,Ki(Wt))});vn.length&&je.push((0,Le.Z)((0,Le.Z)({},Ui),{},(0,De.Z)({},Vn,vn)))}return}bn(oi,Ki(Ui))&&je.push(Ui)}),je},[lt,gi,jt,oi,Ut])},mi=de(6551),ki=de(11592),Yn=["children","value"],fi=["children"];function Ai(lt){var Ut=lt,oi=Ut.key,gi=Ut.props,jt=gi.children,Vn=gi.value,ni=(0,Re.Z)(gi,Yn);return(0,Le.Z)({key:oi,value:Vn!==void 0?Vn:oi,children:jt},ni)}function xi(lt){var Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,ki.Z)(lt).map(function(oi,gi){if(!qe.isValidElement(oi)||!oi.type)return null;var jt=oi,Vn=jt.type.isSelectOptGroup,ni=jt.key,Zt=jt.props,je=Zt.children,ci=(0,Re.Z)(Zt,fi);return Ut||!Vn?Ai(oi):(0,Le.Z)((0,Le.Z)({key:"__RC_SELECT_GRP__".concat(ni===null?gi:ni,"__"),label:ni},ci),{},{options:xi(je)})}).filter(function(oi){return oi})}var hr=function(Ut,oi,gi,jt,Vn){return qe.useMemo(function(){var ni=Ut,Zt=!Ut;Zt&&(ni=xi(oi));var je=new Map,ci=new Map,pi=function(Ui,Wi,vn){vn&&typeof vn=="string"&&Ui.set(Wi[vn],Wi)},bn=function Ki(Ui){for(var Wi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,vn=0;vn<Ui.length;vn+=1){var Wt=Ui[vn];!Wt[gi.options]||Wi?(je.set(Wt[gi.value],Wt),pi(ci,Wt,gi.label),pi(ci,Wt,jt),pi(ci,Wt,Vn)):Ki(Wt[gi.options],!0)}};return bn(ni),{options:ni,valueOptions:je,labelOptions:ci}},[Ut,oi,gi,jt,Vn])},er=hr;function Kt(lt){var Ut=qe.useRef();Ut.current=lt;var oi=qe.useCallback(function(){return Ut.current.apply(Ut,arguments)},[]);return oi}function en(lt){var Ut=lt.mode,oi=lt.options,gi=lt.children,jt=lt.backfill,Vn=lt.allowClear,ni=lt.placeholder,Zt=lt.getInputElement,je=lt.showSearch,ci=lt.onSearch,pi=lt.defaultOpen,bn=lt.autoFocus,Ki=lt.labelInValue,Ui=lt.value,Wi=lt.inputValue,vn=lt.optionLabelProp,Wt=isMultiple(Ut),ar=je!==void 0?je:Wt||Ut==="combobox",Zr=oi||convertChildrenToData(gi);if(warning(Ut!=="tags"||Zr.every(function(Li){return!Li.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ut==="tags"||Ut==="combobox"){var Mn=Zr.some(function(Li){return Li.options?Li.options.some(function(Ri){return typeof("value"in Ri?Ri.value:Ri.key)=="number"}):typeof("value"in Li?Li.value:Li.key)=="number"});warning(!Mn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ut!=="combobox"||!vn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ut==="combobox"||!jt,"`backfill` only works with `combobox` mode."),warning(Ut==="combobox"||!Zt,"`getInputElement` only work with `combobox` mode."),noteOnce(Ut!=="combobox"||!Zt||!Vn||!ni,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ci&&!ar&&Ut!=="combobox"&&Ut!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!pi||bn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ui!=null){var hi=toArray(Ui);warning(!Ki||hi.every(function(Li){return _typeof(Li)==="object"&&("key"in Li||"value"in Li)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Wt||Array.isArray(Ui),"`value` should be array when `mode` is `multiple` or `tags`")}if(gi){var Pi=null;toNodeArray(gi).some(function(Li){if(!React.isValidElement(Li)||!Li.type)return!1;var Ri=Li,sr=Ri.type;if(sr.isSelectOption)return!1;if(sr.isSelectOptGroup){var gr=toNodeArray(Li.props.children).every(function(Tr){return!React.isValidElement(Tr)||!Li.type||Tr.type.isSelectOption?!0:(Pi=Tr.type,!1)});return!gr}return Pi=sr,!0}),Pi&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Pi.displayName||Pi.name||Pi,"`.")),warning(Wi===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function zt(lt,Ut){if(lt){var oi=function gi(jt){for(var Vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ni=0;ni<jt.length;ni++){var Zt=jt[ni];if(Zt[Ut==null?void 0:Ut.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Vn&&Array.isArray(Zt[Ut==null?void 0:Ut.options])&&gi(Zt[Ut==null?void 0:Ut.options],!0))break}};oi(lt)}}var on=null,rn=["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"],mn=["inputValue"];function Bn(lt){return!lt||(0,Ve.Z)(lt)!=="object"}var ei=qe.forwardRef(function(lt,Ut){var oi=lt.id,gi=lt.mode,jt=lt.prefixCls,Vn=jt===void 0?"rc-select":jt,ni=lt.backfill,Zt=lt.fieldNames,je=lt.inputValue,ci=lt.searchValue,pi=lt.onSearch,bn=lt.autoClearSearchValue,Ki=bn===void 0?!0:bn,Ui=lt.onSelect,Wi=lt.onDeselect,vn=lt.dropdownMatchSelectWidth,Wt=vn===void 0?!0:vn,ar=lt.filterOption,Zr=lt.filterSort,Mn=lt.optionFilterProp,hi=lt.optionLabelProp,Pi=lt.options,Li=lt.optionRender,Ri=lt.children,sr=lt.defaultActiveFirstOption,gr=lt.menuItemSelectedIcon,Tr=lt.virtual,Ar=lt.direction,Rr=lt.listHeight,Un=Rr===void 0?200:Rr,pr=lt.listItemHeight,Dn=pr===void 0?20:pr,Lr=lt.labelRender,ro=lt.value,Ir=lt.defaultValue,Vr=lt.labelInValue,Mr=lt.onChange,Sr=lt.maxCount,Qr=(0,Re.Z)(lt,rn),Ro=(0,mi.ZP)(oi),qr=dn(gi),vi=!!(!Pi&&Ri),dt=qe.useMemo(function(){return ar===void 0&&gi==="combobox"?!1:ar},[ar,gi]),ho=qe.useMemo(function(){return Yt(Zt,vi)},[JSON.stringify(Zt),vi]),yo=(0,Je.Z)("",{value:ci!==void 0?ci:je,postState:function(_i){return _i||""}}),ua=(0,Ye.Z)(yo,2),Vo=ua[0],Kr=ua[1],Zi=er(Pi,Ri,ho,Mn,hi),tr=Zi.valueOptions,kr=Zi.labelOptions,Ji=Zi.options,Cr=qe.useCallback(function(Ti){var _i=yn(Ti);return _i.map(function(qi){var ur,wr,Xi,Fo,jo;if(Bn(qi))ur=qi;else{var Ao;Xi=qi.key,wr=qi.label,ur=(Ao=qi.value)!==null&&Ao!==void 0?Ao:Xi}var co=tr.get(ur);if(co){var zo;if(wr===void 0&&(wr=co==null?void 0:co[hi||ho.label]),Xi===void 0&&(Xi=(zo=co==null?void 0:co.key)!==null&&zo!==void 0?zo:ur),Fo=co==null?void 0:co.disabled,jo=co==null?void 0:co.title,0)var rs}return{label:wr,value:ur,key:Xi,disabled:Fo,title:jo}})},[ho,hi,tr]),uo=(0,Je.Z)(Ir,{value:ro}),nr=(0,Ye.Z)(uo,2),Qi=nr[0],ti=nr[1],lr=qe.useMemo(function(){var Ti,_i=qr&&Qi===null?[]:Qi,qi=Cr(_i);return gi==="combobox"&&ct((Ti=qi[0])===null||Ti===void 0?void 0:Ti.value)?[]:qi},[Qi,Cr,gi,qr]),Gr=wi(lr,tr),Lo=(0,Ye.Z)(Gr,2),ao=Lo[0],Zo=Lo[1],Xo=qe.useMemo(function(){if(!gi&&ao.length===1){var Ti=ao[0];if(Ti.value===null&&(Ti.label===null||Ti.label===void 0))return[]}return ao.map(function(_i){var qi;return(0,Le.Z)((0,Le.Z)({},_i),{},{label:(qi=typeof Lr=="function"?Lr(_i):_i.label)!==null&&qi!==void 0?qi:_i.value})})},[gi,ao,Lr]),Go=qe.useMemo(function(){return new Set(ao.map(function(Ti){return Ti.value}))},[ao]);qe.useEffect(function(){if(gi==="combobox"){var Ti,_i=(Ti=ao[0])===null||Ti===void 0?void 0:Ti.value;Kr(xt(_i)?String(_i):"")}},[ao]);var Jo=Kt(function(Ti,_i){var qi=_i!=null?_i:Ti;return(0,De.Z)((0,De.Z)({},ho.value,Ti),ho.label,qi)}),Yo=qe.useMemo(function(){if(gi!=="tags")return Ji;var Ti=(0,Ie.Z)(Ji),_i=function(ur){return tr.has(ur)};return(0,Ie.Z)(ao).sort(function(qi,ur){return qi.value<ur.value?-1:1}).forEach(function(qi){var ur=qi.value;_i(ur)||Ti.push(Jo(ur,qi.label))}),Ti},[Jo,Ji,tr,ao,gi]),ra=ke(Yo,ho,Vo,dt,Mn),pn=qe.useMemo(function(){return gi!=="tags"||!Vo||ra.some(function(Ti){return Ti[Mn||"value"]===Vo})||ra.some(function(Ti){return Ti[ho.value]===Vo})?ra:[Jo(Vo)].concat((0,Ie.Z)(ra))},[Jo,Mn,gi,ra,Vo,ho]),wa=function Ti(_i){var qi=(0,Ie.Z)(_i).sort(function(ur,wr){return Zr(ur,wr,{searchValue:Vo})});return qi.map(function(ur){return Array.isArray(ur.options)?(0,Le.Z)((0,Le.Z)({},ur),{},{options:ur.options.length>0?Ti(ur.options):ur.options}):ur})},qs=qe.useMemo(function(){return Zr?wa(pn):pn},[pn,Zr,Vo]),za=qe.useMemo(function(){return Vt(qs,{fieldNames:ho,childrenAsData:vi})},[qs,ho,vi]),$a=function(_i){var qi=Cr(_i);if(ti(qi),Mr&&(qi.length!==ao.length||qi.some(function(Xi,Fo){var jo;return((jo=ao[Fo])===null||jo===void 0?void 0:jo.value)!==(Xi==null?void 0:Xi.value)}))){var ur=Vr?qi:qi.map(function(Xi){return Xi.value}),wr=qi.map(function(Xi){return Gt(Zo(Xi.value))});Mr(qr?ur:ur[0],qr?wr:wr[0])}},Qo=qe.useState(null),ms=(0,Ye.Z)(Qo,2),Nn=ms[0],po=ms[1],ca=qe.useState(0),ul=(0,Ye.Z)(ca,2),Ua=ul[0],Zl=ul[1],ws=sr!==void 0?sr:gi!=="combobox",mr=qe.useCallback(function(Ti,_i){var qi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ur=qi.source,wr=ur===void 0?"keyboard":ur;Zl(_i),ni&&gi==="combobox"&&Ti!==null&&wr==="keyboard"&&po(String(Ti))},[ni,gi]),cl=function(_i,qi,ur){var wr=function(){var Ts,Za=Zo(_i);return[Vr?{label:Za==null?void 0:Za[ho.label],value:_i,key:(Ts=Za==null?void 0:Za.key)!==null&&Ts!==void 0?Ts:_i}:_i,Gt(Za)]};if(qi&&Ui){var Xi=wr(),Fo=(0,Ye.Z)(Xi,2),jo=Fo[0],Ao=Fo[1];Ui(jo,Ao)}else if(!qi&&Wi&&ur!=="clear"){var co=wr(),zo=(0,Ye.Z)(co,2),rs=zo[0],ia=zo[1];Wi(rs,ia)}},El=Kt(function(Ti,_i){var qi,ur=qr?_i.selected:!0;ur?qi=qr?[].concat((0,Ie.Z)(ao),[Ti]):[Ti]:qi=ao.filter(function(wr){return wr.value!==Ti}),$a(qi),cl(Ti,ur),gi==="combobox"?po(""):(!dn||Ki)&&(Kr(""),po(""))}),ds=function(_i,qi){$a(_i);var ur=qi.type,wr=qi.values;(ur==="remove"||ur==="clear")&&wr.forEach(function(Xi){cl(Xi.value,!1,ur)})},Ta=function(_i,qi){if(Kr(_i),po(null),qi.source==="submit"){var ur=(_i||"").trim();if(ur){var wr=Array.from(new Set([].concat((0,Ie.Z)(Go),[ur])));$a(wr),cl(ur,!0),Kr("")}return}qi.source!=="blur"&&(gi==="combobox"&&$a(_i),pi==null||pi(_i))},dl=function(_i){var qi=_i;gi!=="tags"&&(qi=_i.map(function(wr){var Xi=kr.get(wr);return Xi==null?void 0:Xi.value}).filter(function(wr){return wr!==void 0}));var ur=Array.from(new Set([].concat((0,Ie.Z)(Go),(0,Ie.Z)(qi))));$a(ur),ur.forEach(function(wr){cl(wr,!0)})},tn=qe.useMemo(function(){var Ti=Tr!==!1&&Wt!==!1;return(0,Le.Z)((0,Le.Z)({},Zi),{},{flattenOptions:za,onActiveValue:mr,defaultActiveFirstOption:ws,onSelect:El,menuItemSelectedIcon:gr,rawValues:Go,fieldNames:ho,virtual:Ti,direction:Ar,listHeight:Un,listItemHeight:Dn,childrenAsData:vi,maxCount:Sr,optionRender:Li})},[Sr,Zi,za,mr,ws,El,gr,Go,ho,Tr,Wt,Ar,Un,Dn,vi,Li]);return qe.createElement(fn.Provider,{value:tn},qe.createElement(nn,(0,le.Z)({},Qr,{id:Ro,prefixCls:Vn,ref:Ut,omitDomProps:mn,mode:gi,displayValues:Xo,onDisplayValuesChange:ds,direction:Ar,searchValue:Vo,onSearch:Ta,autoClearSearchValue:Ki,onSearchSplit:dl,dropdownMatchSelectWidth:Wt,OptionList:ui,emptyOptions:!za.length,activeValue:Nn,activeDescendantId:"".concat(Ro,"_list_").concat(Ua)})))}),ji=ei;ji.Option=kn,ji.OptGroup=Fn;var Fi=ji,Yi=Fi},63158:function(Ge,be,de){"use strict";var le=de(5016),Ie=de(18082),De=de(52456),Le=de(5883),Ye=de(59301),Re=de(92310),Ve=de.n(Re),Je=de(18929),Xe=de(10228),qe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],mt=Ye.forwardRef(function(st,Nt){var _e,te=st.prefixCls,ne=te===void 0?"rc-switch":te,he=st.className,se=st.checked,ge=st.defaultChecked,Se=st.disabled,Ae=st.loadingIcon,Oe=st.checkedChildren,Be=st.unCheckedChildren,Ke=st.onClick,rt=st.onChange,ot=st.onKeyDown,ht=(0,Le.Z)(st,qe),bt=(0,Je.Z)(!1,{value:se,defaultValue:ge}),at=(0,De.Z)(bt,2),At=at[0],It=at[1];function $t(On,xt){var ct=At;return Se||(ct=On,It(ct),rt==null||rt(ct,xt)),ct}function Tn(On){On.which===Xe.Z.LEFT?$t(!1,On):On.which===Xe.Z.RIGHT&&$t(!0,On),ot==null||ot(On)}function yn(On){var xt=$t(!At,On);Ke==null||Ke(xt,On)}var un=Ve()(ne,he,(_e={},(0,Ie.Z)(_e,"".concat(ne,"-checked"),At),(0,Ie.Z)(_e,"".concat(ne,"-disabled"),Se),_e));return Ye.createElement("button",(0,le.Z)({},ht,{type:"button",role:"switch","aria-checked":At,disabled:Se,className:un,ref:Nt,onKeyDown:Tn,onClick:yn}),Ae,Ye.createElement("span",{className:"".concat(ne,"-inner")},Ye.createElement("span",{className:"".concat(ne,"-inner-checked")},Oe),Ye.createElement("span",{className:"".concat(ne,"-inner-unchecked")},Be)))});mt.displayName="Switch",be.Z=mt},22711:function(Ge,be,de){"use strict";de.r(be),de.d(be,{ResizableTextArea:function(){return at},default:function(){return Tn}});var le=de(5016),Ie=de(18082),De=de(20049),Le=de(92393),Ye=de(52456),Re=de(5883),Ve=de(92310),Je=de.n(Ve),Xe=de(36901),qe=de(66003),mt=de(30292),st=de(18929),Nt=de(59301),_e=de(10928),te=de(29301),ne=de(34280),he=de(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;
|
|
|
`,ge=["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"],Se={},Ae;function Oe(yn){var un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,On=yn.getAttribute("id")||yn.getAttribute("data-reactid")||yn.getAttribute("name");if(un&&Se[On])return Se[On];var xt=window.getComputedStyle(yn),ct=xt.getPropertyValue("box-sizing")||xt.getPropertyValue("-moz-box-sizing")||xt.getPropertyValue("-webkit-box-sizing"),it=parseFloat(xt.getPropertyValue("padding-bottom"))+parseFloat(xt.getPropertyValue("padding-top")),cn=parseFloat(xt.getPropertyValue("border-bottom-width"))+parseFloat(xt.getPropertyValue("border-top-width")),An=ge.map(function(an){return"".concat(an,":").concat(xt.getPropertyValue(an))}).join(";"),Pt={sizingStyle:An,paddingSize:it,borderSize:cn,boxSizing:ct};return un&&On&&(Se[On]=Pt),Pt}function Be(yn){var un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,On=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,xt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Ae||(Ae=document.createElement("textarea"),Ae.setAttribute("tab-index","-1"),Ae.setAttribute("aria-hidden","true"),Ae.setAttribute("name","hiddenTextarea"),document.body.appendChild(Ae)),yn.getAttribute("wrap")?Ae.setAttribute("wrap",yn.getAttribute("wrap")):Ae.removeAttribute("wrap");var ct=Oe(yn,un),it=ct.paddingSize,cn=ct.borderSize,An=ct.boxSizing,Pt=ct.sizingStyle;Ae.setAttribute("style","".concat(Pt,";").concat(se)),Ae.value=yn.value||yn.placeholder||"";var an=void 0,ln=void 0,zn,En=Ae.scrollHeight;if(An==="border-box"?En+=cn:An==="content-box"&&(En-=it),On!==null||xt!==null){Ae.value=" ";var ii=Ae.scrollHeight-it;On!==null&&(an=ii*On,An==="border-box"&&(an=an+it+cn),En=Math.max(an,En)),xt!==null&&(ln=ii*xt,An==="border-box"&&(ln=ln+it+cn),zn=En>ln?"":"hidden",En=Math.min(ln,En))}var kt={height:En,overflowY:zn,resize:"none"};return an&&(kt.minHeight=an),ln&&(kt.maxHeight=ln),kt}var Ke=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],rt=0,ot=1,ht=2,bt=Nt.forwardRef(function(yn,un){var On=yn,xt=On.prefixCls,ct=On.defaultValue,it=On.value,cn=On.autoSize,An=On.onResize,Pt=On.className,an=On.style,ln=On.disabled,zn=On.onChange,En=On.onInternalAutoSize,ii=(0,Re.Z)(On,Ke),kt=(0,st.Z)(ct,{value:it,postState:function(kn){return kn!=null?kn:""}}),Kn=(0,Ye.Z)(kt,2),yi=Kn[0],et=Kn[1],ze=function(kn){et(kn.target.value),zn==null||zn(kn)},xe=Nt.useRef();Nt.useImperativeHandle(un,function(){return{textArea:xe.current}});var Te=Nt.useMemo(function(){return cn&&(0,_e.Z)(cn)==="object"?[cn.minRows,cn.maxRows]:[]},[cn]),Me=(0,Ye.Z)(Te,2),Ce=Me[0],ut=Me[1],Lt=!!cn,Mt=function(){try{if(document.activeElement===xe.current){var kn=xe.current,Cn=kn.selectionStart,Ht=kn.selectionEnd,di=kn.scrollTop;xe.current.setSelectionRange(Cn,Ht),xe.current.scrollTop=di}}catch(zi){}},Yt=Nt.useState(ht),Vt=(0,Ye.Z)(Yt,2),Gt=Vt[0],gn=Vt[1],qt=Nt.useState(),fn=(0,Ye.Z)(qt,2),sn=fn[0],_t=fn[1],wn=function(){gn(rt)};(0,ne.Z)(function(){Lt&&wn()},[it,Ce,ut,Lt]),(0,ne.Z)(function(){if(Gt===rt)gn(ot);else if(Gt===ot){var yt=Be(xe.current,!1,Ce,ut);gn(ht),_t(yt)}else Mt()},[Gt]);var dn=Nt.useRef(),Sn=function(){he.Z.cancel(dn.current)},nn=function(kn){Gt===ht&&(An==null||An(kn),cn&&(Sn(),dn.current=(0,he.Z)(function(){wn()})))};Nt.useEffect(function(){return Sn},[]);var si=Lt?sn:null,Fn=(0,De.Z)((0,De.Z)({},an),si);return(Gt===rt||Gt===ot)&&(Fn.overflowY="hidden",Fn.overflowX="hidden"),Nt.createElement(te.Z,{onResize:nn,disabled:!(cn||An)},Nt.createElement("textarea",(0,le.Z)({},ii,{ref:xe,style:Fn,className:Je()(xt,Pt,(0,Ie.Z)({},"".concat(xt,"-disabled"),ln)),disabled:ln,value:yi,onChange:ze})))}),at=bt,At=["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"],It=Nt.forwardRef(function(yn,un){var On,xt=yn.defaultValue,ct=yn.value,it=yn.onFocus,cn=yn.onBlur,An=yn.onChange,Pt=yn.allowClear,an=yn.maxLength,ln=yn.onCompositionStart,zn=yn.onCompositionEnd,En=yn.suffix,ii=yn.prefixCls,kt=ii===void 0?"rc-textarea":ii,Kn=yn.showCount,yi=yn.count,et=yn.className,ze=yn.style,xe=yn.disabled,Te=yn.hidden,Me=yn.classNames,Ce=yn.styles,ut=yn.onResize,Lt=yn.onClear,Mt=yn.onPressEnter,Yt=yn.readOnly,Vt=yn.autoSize,Gt=yn.onKeyDown,gn=(0,Re.Z)(yn,At),qt=(0,st.Z)(xt,{value:ct,defaultValue:xt}),fn=(0,Ye.Z)(qt,2),sn=fn[0],_t=fn[1],wn=sn==null?"":String(sn),dn=Nt.useState(!1),Sn=(0,Ye.Z)(dn,2),nn=Sn[0],si=Sn[1],Fn=Nt.useRef(!1),yt=Nt.useState(null),kn=(0,Ye.Z)(yt,2),Cn=kn[0],Ht=kn[1],di=(0,Nt.useRef)(null),zi=(0,Nt.useRef)(null),Ni=function(){var ji;return(ji=zi.current)===null||ji===void 0?void 0:ji.textArea},Ln=function(){Ni().focus()};(0,Nt.useImperativeHandle)(un,function(){var ei;return{resizableTextArea:zi.current,focus:Ln,blur:function(){Ni().blur()},nativeElement:((ei=di.current)===null||ei===void 0?void 0:ei.nativeElement)||Ni()}}),(0,Nt.useEffect)(function(){si(function(ei){return!xe&&ei})},[xe]);var rr=Nt.useState(null),Hi=(0,Ye.Z)(rr,2),ui=Hi[0],wi=Hi[1];Nt.useEffect(function(){if(ui){var ei;(ei=Ni()).setSelectionRange.apply(ei,(0,Le.Z)(ui))}},[ui]);var Di=(0,qe.Z)(yi,Kn),ke=(On=Di.max)!==null&&On!==void 0?On:an,mi=Number(ke)>0,ki=Di.strategy(wn),Yn=!!ke&&ki>ke,fi=function(ji,Fi){var Yi=Fi;!Fn.current&&Di.exceedFormatter&&Di.max&&Di.strategy(Fi)>Di.max&&(Yi=Di.exceedFormatter(Fi,{max:Di.max}),Fi!==Yi&&wi([Ni().selectionStart||0,Ni().selectionEnd||0])),_t(Yi),(0,mt.rJ)(ji.currentTarget,ji,An,Yi)},Ai=function(ji){Fn.current=!0,ln==null||ln(ji)},xi=function(ji){Fn.current=!1,fi(ji,ji.currentTarget.value),zn==null||zn(ji)},hr=function(ji){fi(ji,ji.target.value)},er=function(ji){ji.key==="Enter"&&Mt&&Mt(ji),Gt==null||Gt(ji)},Kt=function(ji){si(!0),it==null||it(ji)},en=function(ji){si(!1),cn==null||cn(ji)},zt=function(ji){_t(""),Ln(),(0,mt.rJ)(Ni(),ji,An)},on=En,rn;Di.show&&(Di.showFormatter?rn=Di.showFormatter({value:wn,count:ki,maxLength:ke}):rn="".concat(ki).concat(mi?" / ".concat(ke):""),on=Nt.createElement(Nt.Fragment,null,on,Nt.createElement("span",{className:Je()("".concat(kt,"-data-count"),Me==null?void 0:Me.count),style:Ce==null?void 0:Ce.count},rn)));var mn=function(ji){var Fi;ut==null||ut(ji),(Fi=Ni())!==null&&Fi!==void 0&&Fi.style.height&&Ht(!0)},Bn=!Vt&&!Kn&&!Pt;return Nt.createElement(Xe.BaseInput,{ref:di,value:wn,allowClear:Pt,handleReset:zt,suffix:on,prefixCls:kt,classNames:(0,De.Z)((0,De.Z)({},Me),{},{affixWrapper:Je()(Me==null?void 0:Me.affixWrapper,(0,Ie.Z)((0,Ie.Z)({},"".concat(kt,"-show-count"),Kn),"".concat(kt,"-textarea-allow-clear"),Pt))}),disabled:xe,focused:nn,className:Je()(et,Yn&&"".concat(kt,"-out-of-range")),style:(0,De.Z)((0,De.Z)({},ze),Cn&&!Bn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof rn=="string"?rn:void 0}},hidden:Te,readOnly:Yt,onClear:Lt},Nt.createElement(at,(0,le.Z)({},gn,{autoSize:Vt,maxLength:an,onKeyDown:er,onChange:hr,onFocus:Kt,onBlur:en,onCompositionStart:Ai,onCompositionEnd:xi,className:Je()(Me==null?void 0:Me.textarea),style:(0,De.Z)((0,De.Z)({},Ce==null?void 0:Ce.textarea),{},{resize:ze==null?void 0:ze.resize}),disabled:xe,prefixCls:kt,onResize:mn,ref:zi,readOnly:Yt})))}),$t=It,Tn=$t},90472:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return yn}});var le=de(5016),Ie=de(6487),De=de(56789),Le=de(41281),Ye=de(7942),Re=de(76773),Ve=de(18082),Je=de(59301),Xe=de(20049),qe=de(5883),mt=de(10928),st=de(85444),Nt=de(21566),_e=de(92393),te=de(92310),ne=de.n(te),he=de(26112),se=de(48736),ge=function(un,On){if(un&&On){var xt=Array.isArray(On)?On:On.split(","),ct=un.name||"",it=un.type||"",cn=it.replace(/\/.*$/,"");return xt.some(function(An){var Pt=An.trim();if(/^\*(\/\*)?$/.test(An))return!0;if(Pt.charAt(0)==="."){var an=ct.toLowerCase(),ln=Pt.toLowerCase(),zn=[ln];return(ln===".jpg"||ln===".jpeg")&&(zn=[".jpg",".jpeg"]),zn.some(function(En){return an.endsWith(En)})}return/\/\*$/.test(Pt)?cn===Pt.replace(/\/.*$/,""):it===Pt?!0:/^\w+$/.test(Pt)?((0,se.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Pt,"'.Skip for check.")),!0):!1})}return!0};function Se(un,On){var xt="cannot ".concat(un.method," ").concat(un.action," ").concat(On.status,"'"),ct=new Error(xt);return ct.status=On.status,ct.method=un.method,ct.url=un.action,ct}function Ae(un){var On=un.responseText||un.response;if(!On)return On;try{return JSON.parse(On)}catch(xt){return On}}function Oe(un){var On=new XMLHttpRequest;un.onProgress&&On.upload&&(On.upload.onprogress=function(cn){cn.total>0&&(cn.percent=cn.loaded/cn.total*100),un.onProgress(cn)});var xt=new FormData;un.data&&Object.keys(un.data).forEach(function(it){var cn=un.data[it];if(Array.isArray(cn)){cn.forEach(function(An){xt.append("".concat(it,"[]"),An)});return}xt.append(it,cn)}),un.file instanceof Blob?xt.append(un.filename,un.file,un.file.name):xt.append(un.filename,un.file),On.onerror=function(cn){un.onError(cn)},On.onload=function(){return On.status<200||On.status>=300?un.onError(Se(un,On),Ae(On)):un.onSuccess(Ae(On),On)},On.open(un.method,un.action,!0),un.withCredentials&&"withCredentials"in On&&(On.withCredentials=!0);var ct=un.headers||{};return ct["X-Requested-With"]!==null&&On.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(ct).forEach(function(it){ct[it]!==null&&On.setRequestHeader(it,ct[it])}),On.send(xt),{abort:function(){On.abort()}}}var Be=function(){var un=(0,Nt.Z)((0,st.Z)().mark(function On(xt,ct){var it,cn,An,Pt,an,ln,zn,En;return(0,st.Z)().wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:ln=function(){return ln=(0,Nt.Z)((0,st.Z)().mark(function yi(et){return(0,st.Z)().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return xe.abrupt("return",new Promise(function(Te){et.file(function(Me){ct(Me)?(et.fullPath&&!Me.webkitRelativePath&&(Object.defineProperties(Me,{webkitRelativePath:{writable:!0}}),Me.webkitRelativePath=et.fullPath.replace(/^\//,""),Object.defineProperties(Me,{webkitRelativePath:{writable:!1}})),Te(Me)):Te(null)})}));case 1:case"end":return xe.stop()}},yi)})),ln.apply(this,arguments)},an=function(yi){return ln.apply(this,arguments)},Pt=function(){return Pt=(0,Nt.Z)((0,st.Z)().mark(function yi(et){var ze,xe,Te,Me,Ce;return(0,st.Z)().wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:ze=et.createReader(),xe=[];case 2:return Lt.next=5,new Promise(function(Mt){ze.readEntries(Mt,function(){return Mt([])})});case 5:if(Te=Lt.sent,Me=Te.length,Me){Lt.next=9;break}return Lt.abrupt("break",12);case 9:for(Ce=0;Ce<Me;Ce++)xe.push(Te[Ce]);Lt.next=2;break;case 12:return Lt.abrupt("return",xe);case 13:case"end":return Lt.stop()}},yi)})),Pt.apply(this,arguments)},An=function(yi){return Pt.apply(this,arguments)},it=[],cn=[],xt.forEach(function(Kn){return cn.push(Kn.webkitGetAsEntry())}),zn=function(){var Kn=(0,Nt.Z)((0,st.Z)().mark(function yi(et,ze){var xe,Te;return(0,st.Z)().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(et){Ce.next=2;break}return Ce.abrupt("return");case 2:if(et.path=ze||"",!et.isFile){Ce.next=10;break}return Ce.next=6,an(et);case 6:xe=Ce.sent,xe&&it.push(xe),Ce.next=15;break;case 10:if(!et.isDirectory){Ce.next=15;break}return Ce.next=13,An(et);case 13:Te=Ce.sent,cn.push.apply(cn,(0,_e.Z)(Te));case 15:case"end":return Ce.stop()}},yi)}));return function(et,ze){return Kn.apply(this,arguments)}}(),En=0;case 9:if(!(En<cn.length)){kt.next=15;break}return kt.next=12,zn(cn[En]);case 12:En++,kt.next=9;break;case 15:return kt.abrupt("return",it);case 16:case"end":return kt.stop()}},On)}));return function(xt,ct){return un.apply(this,arguments)}}(),Ke=Be,rt=+new Date,ot=0;function ht(){return"rc-upload-".concat(rt,"-").concat(++ot)}var bt=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],at=function(un){(0,Ye.Z)(xt,un);var On=(0,Re.Z)(xt);function xt(){var ct;(0,Ie.Z)(this,xt);for(var it=arguments.length,cn=new Array(it),An=0;An<it;An++)cn[An]=arguments[An];return ct=On.call.apply(On,[this].concat(cn)),(0,Ve.Z)((0,Le.Z)(ct),"state",{uid:ht()}),(0,Ve.Z)((0,Le.Z)(ct),"reqs",{}),(0,Ve.Z)((0,Le.Z)(ct),"fileInput",void 0),(0,Ve.Z)((0,Le.Z)(ct),"_isMounted",void 0),(0,Ve.Z)((0,Le.Z)(ct),"onChange",function(Pt){var an=ct.props,ln=an.accept,zn=an.directory,En=Pt.target.files,ii=(0,_e.Z)(En).filter(function(kt){return!zn||ge(kt,ln)});ct.uploadFiles(ii),ct.reset()}),(0,Ve.Z)((0,Le.Z)(ct),"onClick",function(Pt){var an=ct.fileInput;if(an){var ln=Pt.target,zn=ct.props.onClick;if(ln&&ln.tagName==="BUTTON"){var En=an.parentNode;En.focus(),ln.blur()}an.click(),zn&&zn(Pt)}}),(0,Ve.Z)((0,Le.Z)(ct),"onKeyDown",function(Pt){Pt.key==="Enter"&&ct.onClick(Pt)}),(0,Ve.Z)((0,Le.Z)(ct),"onFileDrop",function(){var Pt=(0,Nt.Z)((0,st.Z)().mark(function an(ln){var zn,En,ii;return(0,st.Z)().wrap(function(Kn){for(;;)switch(Kn.prev=Kn.next){case 0:if(zn=ct.props.multiple,ln.preventDefault(),ln.type!=="dragover"){Kn.next=4;break}return Kn.abrupt("return");case 4:if(!ct.props.directory){Kn.next=11;break}return Kn.next=7,Ke(Array.prototype.slice.call(ln.dataTransfer.items),function(yi){return ge(yi,ct.props.accept)});case 7:En=Kn.sent,ct.uploadFiles(En),Kn.next=14;break;case 11:ii=(0,_e.Z)(ln.dataTransfer.files).filter(function(yi){return ge(yi,ct.props.accept)}),zn===!1&&(ii=ii.slice(0,1)),ct.uploadFiles(ii);case 14:case"end":return Kn.stop()}},an)}));return function(an){return Pt.apply(this,arguments)}}()),(0,Ve.Z)((0,Le.Z)(ct),"uploadFiles",function(Pt){var an=(0,_e.Z)(Pt),ln=an.map(function(zn){return zn.uid=ht(),ct.processFile(zn,an)});Promise.all(ln).then(function(zn){var En=ct.props.onBatchStart;En==null||En(zn.map(function(ii){var kt=ii.origin,Kn=ii.parsedFile;return{file:kt,parsedFile:Kn}})),zn.filter(function(ii){return ii.parsedFile!==null}).forEach(function(ii){ct.post(ii)})})}),(0,Ve.Z)((0,Le.Z)(ct),"processFile",function(){var Pt=(0,Nt.Z)((0,st.Z)().mark(function an(ln,zn){var En,ii,kt,Kn,yi,et,ze,xe,Te;return(0,st.Z)().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(En=ct.props.beforeUpload,ii=ln,!En){Ce.next=14;break}return Ce.prev=3,Ce.next=6,En(ln,zn);case 6:ii=Ce.sent,Ce.next=12;break;case 9:Ce.prev=9,Ce.t0=Ce.catch(3),ii=!1;case 12:if(ii!==!1){Ce.next=14;break}return Ce.abrupt("return",{origin:ln,parsedFile:null,action:null,data:null});case 14:if(kt=ct.props.action,typeof kt!="function"){Ce.next=21;break}return Ce.next=18,kt(ln);case 18:Kn=Ce.sent,Ce.next=22;break;case 21:Kn=kt;case 22:if(yi=ct.props.data,typeof yi!="function"){Ce.next=29;break}return Ce.next=26,yi(ln);case 26:et=Ce.sent,Ce.next=30;break;case 29:et=yi;case 30:return ze=((0,mt.Z)(ii)==="object"||typeof ii=="string")&&ii?ii:ln,ze instanceof File?xe=ze:xe=new File([ze],ln.name,{type:ln.type}),Te=xe,Te.uid=ln.uid,Ce.abrupt("return",{origin:ln,data:et,parsedFile:Te,action:Kn});case 35:case"end":return Ce.stop()}},an,null,[[3,9]])}));return function(an,ln){return Pt.apply(this,arguments)}}()),(0,Ve.Z)((0,Le.Z)(ct),"saveFileInput",function(Pt){ct.fileInput=Pt}),ct}return(0,De.Z)(xt,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(it){var cn=this,An=it.data,Pt=it.origin,an=it.action,ln=it.parsedFile;if(this._isMounted){var zn=this.props,En=zn.onStart,ii=zn.customRequest,kt=zn.name,Kn=zn.headers,yi=zn.withCredentials,et=zn.method,ze=Pt.uid,xe=ii||Oe,Te={action:an,filename:kt,data:An,file:ln,headers:Kn,withCredentials:yi,method:et||"post",onProgress:function(Ce){var ut=cn.props.onProgress;ut==null||ut(Ce,ln)},onSuccess:function(Ce,ut){var Lt=cn.props.onSuccess;Lt==null||Lt(Ce,ln,ut),delete cn.reqs[ze]},onError:function(Ce,ut){var Lt=cn.props.onError;Lt==null||Lt(Ce,ut,ln),delete cn.reqs[ze]}};En(Pt),this.reqs[ze]=xe(Te)}}},{key:"reset",value:function(){this.setState({uid:ht()})}},{key:"abort",value:function(it){var cn=this.reqs;if(it){var An=it.uid?it.uid:it;cn[An]&&cn[An].abort&&cn[An].abort(),delete cn[An]}else Object.keys(cn).forEach(function(Pt){cn[Pt]&&cn[Pt].abort&&cn[Pt].abort(),delete cn[Pt]})}},{key:"render",value:function(){var it=this.props,cn=it.component,An=it.prefixCls,Pt=it.className,an=it.classNames,ln=an===void 0?{}:an,zn=it.disabled,En=it.id,ii=it.name,kt=it.style,Kn=it.styles,yi=Kn===void 0?{}:Kn,et=it.multiple,ze=it.accept,xe=it.capture,Te=it.children,Me=it.directory,Ce=it.openFileDialogOnClick,ut=it.onMouseEnter,Lt=it.onMouseLeave,Mt=it.hasControlInside,Yt=(0,qe.Z)(it,bt),Vt=ne()((0,Ve.Z)((0,Ve.Z)((0,Ve.Z)({},An,!0),"".concat(An,"-disabled"),zn),Pt,Pt)),Gt=Me?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},gn=zn?{}:{onClick:Ce?this.onClick:function(){},onKeyDown:Ce?this.onKeyDown:function(){},onMouseEnter:ut,onMouseLeave:Lt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:Mt?void 0:"0"};return Je.createElement(cn,(0,le.Z)({},gn,{className:Vt,role:Mt?void 0:"button",style:kt}),Je.createElement("input",(0,le.Z)({},(0,he.Z)(Yt,{aria:!0,data:!0}),{id:En,name:ii,disabled:zn,type:"file",ref:this.saveFileInput,onClick:function(fn){return fn.stopPropagation()},key:this.state.uid,style:(0,Xe.Z)({display:"none"},yi.input),className:ln.input,accept:ze},Gt,{multiple:et,onChange:this.onChange},xe!=null?{capture:xe}:{})),Te)}}]),xt}(Je.Component),At=at;function It(){}var $t=function(un){(0,Ye.Z)(xt,un);var On=(0,Re.Z)(xt);function xt(){var ct;(0,Ie.Z)(this,xt);for(var it=arguments.length,cn=new Array(it),An=0;An<it;An++)cn[An]=arguments[An];return ct=On.call.apply(On,[this].concat(cn)),(0,Ve.Z)((0,Le.Z)(ct),"uploader",void 0),(0,Ve.Z)((0,Le.Z)(ct),"saveUploader",function(Pt){ct.uploader=Pt}),ct}return(0,De.Z)(xt,[{key:"abort",value:function(it){this.uploader.abort(it)}},{key:"render",value:function(){return Je.createElement(At,(0,le.Z)({},this.props,{ref:this.saveUploader}))}}]),xt}(Je.Component);(0,Ve.Z)($t,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:It,onError:It,onSuccess:It,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var Tn=$t,yn=Tn},8224:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return Ie}});var le=de(4676);function Ie(De,Le,Ye,Re){var Ve=le.unstable_batchedUpdates?function(Xe){le.unstable_batchedUpdates(Ye,Xe)}:Ye;return De!=null&&De.addEventListener&&De.addEventListener(Le,Ve,Re),{remove:function(){De!=null&&De.removeEventListener&&De.removeEventListener(Le,Ve,Re)}}}},65283:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return yi}});var le=de(5016),Ie=de(10928),De=de(20049),Le=de(18082),Ye=de(52456),Re=de(5883),Ve=de(92310),Je=de.n(Ve),Xe=de(29301),qe=de(70425),mt=de(34280),st=de(59301),Nt=de(4676),_e=st.forwardRef(function(et,ze){var xe=et.height,Te=et.offsetY,Me=et.offsetX,Ce=et.children,ut=et.prefixCls,Lt=et.onInnerResize,Mt=et.innerProps,Yt=et.rtl,Vt=et.extra,Gt={},gn={display:"flex",flexDirection:"column"};return Te!==void 0&&(Gt={height:xe,position:"relative",overflow:"hidden"},gn=(0,De.Z)((0,De.Z)({},gn),{},(0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)({transform:"translateY(".concat(Te,"px)")},Yt?"marginRight":"marginLeft",-Me),"position","absolute"),"left",0),"right",0),"top",0))),st.createElement("div",{style:Gt},st.createElement(Xe.Z,{onResize:function(fn){var sn=fn.offsetHeight;sn&&Lt&&Lt()}},st.createElement("div",(0,le.Z)({style:gn,className:Je()((0,Le.Z)({},"".concat(ut,"-holder-inner"),ut)),ref:ze},Mt),Ce,Vt)))});_e.displayName="Filler";var te=_e;function ne(et){var ze=et.children,xe=et.setRef,Te=st.useCallback(function(Me){xe(Me)},[]);return st.cloneElement(ze,{ref:Te})}function he(et,ze,xe,Te,Me,Ce,ut,Lt){var Mt=Lt.getKey;return et.slice(ze,xe+1).map(function(Yt,Vt){var Gt=ze+Vt,gn=ut(Yt,Gt,{style:{width:Te},offsetX:Me}),qt=Mt(Yt);return st.createElement(ne,{key:qt,setRef:function(sn){return Ce(Yt,sn)}},gn)})}function se(et,ze,xe,Te){var Me=xe-et,Ce=ze-xe,ut=Math.min(Me,Ce)*2;if(Te<=ut){var Lt=Math.floor(Te/2);return Te%2?xe+Lt+1:xe-Lt}return Me>Ce?xe-(Te-Ce):xe+(Te-Me)}function ge(et,ze,xe){var Te=et.length,Me=ze.length,Ce,ut;if(Te===0&&Me===0)return null;Te<Me?(Ce=et,ut=ze):(Ce=ze,ut=et);var Lt={__EMPTY_ITEM__:!0};function Mt(fn){return fn!==void 0?xe(fn):Lt}for(var Yt=null,Vt=Math.abs(Te-Me)!==1,Gt=0;Gt<ut.length;Gt+=1){var gn=Mt(Ce[Gt]),qt=Mt(ut[Gt]);if(gn!==qt){Yt=Gt,Vt=Vt||gn!==Mt(ut[Gt+1]);break}}return Yt===null?null:{index:Yt,multiple:Vt}}function Se(et,ze,xe){var Te=st.useState(et),Me=(0,Ye.Z)(Te,2),Ce=Me[0],ut=Me[1],Lt=st.useState(null),Mt=(0,Ye.Z)(Lt,2),Yt=Mt[0],Vt=Mt[1];return st.useEffect(function(){var Gt=ge(Ce||[],et||[],ze);(Gt==null?void 0:Gt.index)!==void 0&&(xe==null||xe(Gt.index),Vt(et[Gt.index])),ut(et)},[et]),[Yt]}var Ae=de(16089),Oe=(typeof navigator=="undefined"?"undefined":(0,Ie.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Be=Oe,Ke=function(et,ze,xe,Te){var Me=(0,st.useRef)(!1),Ce=(0,st.useRef)(null);function ut(){clearTimeout(Ce.current),Me.current=!0,Ce.current=setTimeout(function(){Me.current=!1},50)}var Lt=(0,st.useRef)({top:et,bottom:ze,left:xe,right:Te});return Lt.current.top=et,Lt.current.bottom=ze,Lt.current.left=xe,Lt.current.right=Te,function(Mt,Yt){var Vt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Gt=Mt?Yt<0&&Lt.current.left||Yt>0&&Lt.current.right:Yt<0&&Lt.current.top||Yt>0&&Lt.current.bottom;return Vt&&Gt?(clearTimeout(Ce.current),Me.current=!1):(!Gt||Me.current)&&ut(),!Me.current&&Gt}};function rt(et,ze,xe,Te,Me,Ce,ut){var Lt=(0,st.useRef)(0),Mt=(0,st.useRef)(null),Yt=(0,st.useRef)(null),Vt=(0,st.useRef)(!1),Gt=Ke(ze,xe,Te,Me);function gn(dn,Sn){if(Ae.Z.cancel(Mt.current),!Gt(!1,Sn)){var nn=dn;if(!nn._virtualHandled)nn._virtualHandled=!0;else return;Lt.current+=Sn,Yt.current=Sn,Be||nn.preventDefault(),Mt.current=(0,Ae.Z)(function(){var si=Vt.current?10:1;ut(Lt.current*si,!1),Lt.current=0})}}function qt(dn,Sn){ut(Sn,!0),Be||dn.preventDefault()}var fn=(0,st.useRef)(null),sn=(0,st.useRef)(null);function _t(dn){if(et){Ae.Z.cancel(sn.current),sn.current=(0,Ae.Z)(function(){fn.current=null},2);var Sn=dn.deltaX,nn=dn.deltaY,si=dn.shiftKey,Fn=Sn,yt=nn;(fn.current==="sx"||!fn.current&&si&&nn&&!Sn)&&(Fn=nn,yt=0,fn.current="sx");var kn=Math.abs(Fn),Cn=Math.abs(yt);fn.current===null&&(fn.current=Ce&&kn>Cn?"x":"y"),fn.current==="y"?gn(dn,yt):qt(dn,Fn)}}function wn(dn){et&&(Vt.current=dn.detail===Yt.current)}return[_t,wn]}function ot(et,ze,xe,Te){var Me=st.useMemo(function(){return[new Map,[]]},[et,xe.id,Te]),Ce=(0,Ye.Z)(Me,2),ut=Ce[0],Lt=Ce[1],Mt=function(Vt){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Vt,gn=ut.get(Vt),qt=ut.get(Gt);if(gn===void 0||qt===void 0)for(var fn=et.length,sn=Lt.length;sn<fn;sn+=1){var _t,wn=et[sn],dn=ze(wn);ut.set(dn,sn);var Sn=(_t=xe.get(dn))!==null&&_t!==void 0?_t:Te;if(Lt[sn]=(Lt[sn-1]||0)+Sn,dn===Vt&&(gn=sn),dn===Gt&&(qt=sn),gn!==void 0&&qt!==void 0)break}return{top:Lt[gn-1]||0,bottom:Lt[qt]}};return Mt}var ht=de(6487),bt=de(56789),at=function(){function et(){(0,ht.Z)(this,et),(0,Le.Z)(this,"maps",void 0),(0,Le.Z)(this,"id",0),(0,Le.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,bt.Z)(et,[{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}}]),et}(),At=at;function It(et){var ze=parseFloat(et);return isNaN(ze)?0:ze}function $t(et,ze,xe){var Te=st.useState(0),Me=(0,Ye.Z)(Te,2),Ce=Me[0],ut=Me[1],Lt=(0,st.useRef)(new Map),Mt=(0,st.useRef)(new At),Yt=(0,st.useRef)(0);function Vt(){Yt.current+=1}function Gt(){var qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Vt();var fn=function(){var wn=!1;Lt.current.forEach(function(dn,Sn){if(dn&&dn.offsetParent){var nn=dn.offsetHeight,si=getComputedStyle(dn),Fn=si.marginTop,yt=si.marginBottom,kn=It(Fn),Cn=It(yt),Ht=nn+kn+Cn;Mt.current.get(Sn)!==Ht&&(Mt.current.set(Sn,Ht),wn=!0)}}),wn&&ut(function(dn){return dn+1})};if(qt)fn();else{Yt.current+=1;var sn=Yt.current;Promise.resolve().then(function(){sn===Yt.current&&fn()})}}function gn(qt,fn){var sn=et(qt),_t=Lt.current.get(sn);fn?(Lt.current.set(sn,fn),Gt()):Lt.current.delete(sn),!_t!=!fn&&(fn?ze==null||ze(qt):xe==null||xe(qt))}return(0,st.useEffect)(function(){return Vt},[]),[gn,Gt,Mt.current,Ce]}var Tn=14/15;function yn(et,ze,xe){var Te=(0,st.useRef)(!1),Me=(0,st.useRef)(0),Ce=(0,st.useRef)(0),ut=(0,st.useRef)(null),Lt=(0,st.useRef)(null),Mt,Yt=function(qt){if(Te.current){var fn=Math.ceil(qt.touches[0].pageX),sn=Math.ceil(qt.touches[0].pageY),_t=Me.current-fn,wn=Ce.current-sn,dn=Math.abs(_t)>Math.abs(wn);dn?Me.current=fn:Ce.current=sn;var Sn=xe(dn,dn?_t:wn,!1,qt);Sn&&qt.preventDefault(),clearInterval(Lt.current),Sn&&(Lt.current=setInterval(function(){dn?_t*=Tn:wn*=Tn;var nn=Math.floor(dn?_t:wn);(!xe(dn,nn,!0)||Math.abs(nn)<=.1)&&clearInterval(Lt.current)},16))}},Vt=function(){Te.current=!1,Mt()},Gt=function(qt){Mt(),qt.touches.length===1&&!Te.current&&(Te.current=!0,Me.current=Math.ceil(qt.touches[0].pageX),Ce.current=Math.ceil(qt.touches[0].pageY),ut.current=qt.target,ut.current.addEventListener("touchmove",Yt,{passive:!1}),ut.current.addEventListener("touchend",Vt,{passive:!0}))};Mt=function(){ut.current&&(ut.current.removeEventListener("touchmove",Yt),ut.current.removeEventListener("touchend",Vt))},(0,mt.Z)(function(){return et&&ze.current.addEventListener("touchstart",Gt,{passive:!0}),function(){var gn;(gn=ze.current)===null||gn===void 0||gn.removeEventListener("touchstart",Gt),Mt(),clearInterval(Lt.current)}},[et])}function un(et){return Math.floor(Math.pow(et,.5))}function On(et,ze){var xe="touches"in et?et.touches[0]:et;return xe[ze?"pageX":"pageY"]-window[ze?"scrollX":"scrollY"]}function xt(et,ze,xe){st.useEffect(function(){var Te=ze.current;if(et&&Te){var Me=!1,Ce,ut,Lt=function(){Ae.Z.cancel(Ce)},Mt=function gn(){Lt(),Ce=(0,Ae.Z)(function(){xe(ut),gn()})},Yt=function(qt){if(!(qt.target.draggable||qt.button!==0)){var fn=qt;fn._virtualHandled||(fn._virtualHandled=!0,Me=!0)}},Vt=function(){Me=!1,Lt()},Gt=function(qt){if(Me){var fn=On(qt,!1),sn=Te.getBoundingClientRect(),_t=sn.top,wn=sn.bottom;if(fn<=_t){var dn=_t-fn;ut=-un(dn),Mt()}else if(fn>=wn){var Sn=fn-wn;ut=un(Sn),Mt()}else Lt()}};return Te.addEventListener("mousedown",Yt),Te.ownerDocument.addEventListener("mouseup",Vt),Te.ownerDocument.addEventListener("mousemove",Gt),function(){Te.removeEventListener("mousedown",Yt),Te.ownerDocument.removeEventListener("mouseup",Vt),Te.ownerDocument.removeEventListener("mousemove",Gt),Lt()}}},[et])}var ct=10;function it(et,ze,xe,Te,Me,Ce,ut,Lt){var Mt=st.useRef(),Yt=st.useState(null),Vt=(0,Ye.Z)(Yt,2),Gt=Vt[0],gn=Vt[1];return(0,mt.Z)(function(){if(Gt&&Gt.times<ct){if(!et.current){gn(function(Di){return(0,De.Z)({},Di)});return}Ce();var qt=Gt.targetAlign,fn=Gt.originAlign,sn=Gt.index,_t=Gt.offset,wn=et.current.clientHeight,dn=!1,Sn=qt,nn=null;if(wn){for(var si=qt||fn,Fn=0,yt=0,kn=0,Cn=Math.min(ze.length-1,sn),Ht=0;Ht<=Cn;Ht+=1){var di=Me(ze[Ht]);yt=Fn;var zi=xe.get(di);kn=yt+(zi===void 0?Te:zi),Fn=kn}for(var Ni=si==="top"?_t:wn-_t,Ln=Cn;Ln>=0;Ln-=1){var rr=Me(ze[Ln]),Hi=xe.get(rr);if(Hi===void 0){dn=!0;break}if(Ni-=Hi,Ni<=0)break}switch(si){case"top":nn=yt-_t;break;case"bottom":nn=kn-wn+_t;break;default:{var ui=et.current.scrollTop,wi=ui+wn;yt<ui?Sn="top":kn>wi&&(Sn="bottom")}}nn!==null&&ut(nn),nn!==Gt.lastTop&&(dn=!0)}dn&&gn((0,De.Z)((0,De.Z)({},Gt),{},{times:Gt.times+1,targetAlign:Sn,lastTop:nn}))}},[Gt,et.current]),function(qt){if(qt==null){Lt();return}if(Ae.Z.cancel(Mt.current),typeof qt=="number")ut(qt);else if(qt&&(0,Ie.Z)(qt)==="object"){var fn,sn=qt.align;"index"in qt?fn=qt.index:fn=ze.findIndex(function(dn){return Me(dn)===qt.key});var _t=qt.offset,wn=_t===void 0?0:_t;gn({times:0,index:fn,offset:wn,originAlign:sn})}}}var cn=st.forwardRef(function(et,ze){var xe=et.prefixCls,Te=et.rtl,Me=et.scrollOffset,Ce=et.scrollRange,ut=et.onStartMove,Lt=et.onStopMove,Mt=et.onScroll,Yt=et.horizontal,Vt=et.spinSize,Gt=et.containerSize,gn=et.style,qt=et.thumbStyle,fn=et.showScrollBar,sn=st.useState(!1),_t=(0,Ye.Z)(sn,2),wn=_t[0],dn=_t[1],Sn=st.useState(null),nn=(0,Ye.Z)(Sn,2),si=nn[0],Fn=nn[1],yt=st.useState(null),kn=(0,Ye.Z)(yt,2),Cn=kn[0],Ht=kn[1],di=!Te,zi=st.useRef(),Ni=st.useRef(),Ln=st.useState(fn),rr=(0,Ye.Z)(Ln,2),Hi=rr[0],ui=rr[1],wi=st.useRef(),Di=function(){fn===!0||fn===!1||(clearTimeout(wi.current),ui(!0),wi.current=setTimeout(function(){ui(!1)},3e3))},ke=Ce-Gt||0,mi=Gt-Vt||0,ki=st.useMemo(function(){if(Me===0||ke===0)return 0;var zt=Me/ke;return zt*mi},[Me,ke,mi]),Yn=function(on){on.stopPropagation(),on.preventDefault()},fi=st.useRef({top:ki,dragging:wn,pageY:si,startTop:Cn});fi.current={top:ki,dragging:wn,pageY:si,startTop:Cn};var Ai=function(on){dn(!0),Fn(On(on,Yt)),Ht(fi.current.top),ut(),on.stopPropagation(),on.preventDefault()};st.useEffect(function(){var zt=function(Bn){Bn.preventDefault()},on=zi.current,rn=Ni.current;return on.addEventListener("touchstart",zt,{passive:!1}),rn.addEventListener("touchstart",Ai,{passive:!1}),function(){on.removeEventListener("touchstart",zt),rn.removeEventListener("touchstart",Ai)}},[]);var xi=st.useRef();xi.current=ke;var hr=st.useRef();hr.current=mi,st.useEffect(function(){if(wn){var zt,on=function(Bn){var ei=fi.current,ji=ei.dragging,Fi=ei.pageY,Yi=ei.startTop;Ae.Z.cancel(zt);var lt=zi.current.getBoundingClientRect(),Ut=Gt/(Yt?lt.width:lt.height);if(ji){var oi=(On(Bn,Yt)-Fi)*Ut,gi=Yi;!di&&Yt?gi-=oi:gi+=oi;var jt=xi.current,Vn=hr.current,ni=Vn?gi/Vn:0,Zt=Math.ceil(ni*jt);Zt=Math.max(Zt,0),Zt=Math.min(Zt,jt),zt=(0,Ae.Z)(function(){Mt(Zt,Yt)})}},rn=function(){dn(!1),Lt()};return window.addEventListener("mousemove",on,{passive:!0}),window.addEventListener("touchmove",on,{passive:!0}),window.addEventListener("mouseup",rn,{passive:!0}),window.addEventListener("touchend",rn,{passive:!0}),function(){window.removeEventListener("mousemove",on),window.removeEventListener("touchmove",on),window.removeEventListener("mouseup",rn),window.removeEventListener("touchend",rn),Ae.Z.cancel(zt)}}},[wn]),st.useEffect(function(){return Di(),function(){clearTimeout(wi.current)}},[Me]),st.useImperativeHandle(ze,function(){return{delayHidden:Di}});var er="".concat(xe,"-scrollbar"),Kt={position:"absolute",visibility:Hi?null:"hidden"},en={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Yt?(Kt.height=8,Kt.left=0,Kt.right=0,Kt.bottom=0,en.height="100%",en.width=Vt,di?en.left=ki:en.right=ki):(Kt.width=8,Kt.top=0,Kt.bottom=0,di?Kt.right=0:Kt.left=0,en.width="100%",en.height=Vt,en.top=ki),st.createElement("div",{ref:zi,className:Je()(er,(0,Le.Z)((0,Le.Z)((0,Le.Z)({},"".concat(er,"-horizontal"),Yt),"".concat(er,"-vertical"),!Yt),"".concat(er,"-visible"),Hi)),style:(0,De.Z)((0,De.Z)({},Kt),gn),onMouseDown:Yn,onMouseMove:Di},st.createElement("div",{ref:Ni,className:Je()("".concat(er,"-thumb"),(0,Le.Z)({},"".concat(er,"-thumb-moving"),wn)),style:(0,De.Z)((0,De.Z)({},en),qt),onMouseDown:Ai}))}),An=cn,Pt=20;function an(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,xe=et/ze*et;return isNaN(xe)&&(xe=0),xe=Math.max(xe,Pt),Math.floor(xe)}var ln=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],zn=[],En={overflowY:"auto",overflowAnchor:"none"};function ii(et,ze){var xe=et.prefixCls,Te=xe===void 0?"rc-virtual-list":xe,Me=et.className,Ce=et.height,ut=et.itemHeight,Lt=et.fullHeight,Mt=Lt===void 0?!0:Lt,Yt=et.style,Vt=et.data,Gt=et.children,gn=et.itemKey,qt=et.virtual,fn=et.direction,sn=et.scrollWidth,_t=et.component,wn=_t===void 0?"div":_t,dn=et.onScroll,Sn=et.onVirtualScroll,nn=et.onVisibleChange,si=et.innerProps,Fn=et.extraRender,yt=et.styles,kn=et.showScrollBar,Cn=kn===void 0?"optional":kn,Ht=(0,Re.Z)(et,ln),di=st.useCallback(function(Zi){return typeof gn=="function"?gn(Zi):Zi==null?void 0:Zi[gn]},[gn]),zi=$t(di,null,null),Ni=(0,Ye.Z)(zi,4),Ln=Ni[0],rr=Ni[1],Hi=Ni[2],ui=Ni[3],wi=!!(qt!==!1&&Ce&&ut),Di=st.useMemo(function(){return Object.values(Hi.maps).reduce(function(Zi,tr){return Zi+tr},0)},[Hi.id,Hi.maps]),ke=wi&&Vt&&(Math.max(ut*Vt.length,Di)>Ce||!!sn),mi=fn==="rtl",ki=Je()(Te,(0,Le.Z)({},"".concat(Te,"-rtl"),mi),Me),Yn=Vt||zn,fi=(0,st.useRef)(),Ai=(0,st.useRef)(),xi=(0,st.useRef)(),hr=(0,st.useState)(0),er=(0,Ye.Z)(hr,2),Kt=er[0],en=er[1],zt=(0,st.useState)(0),on=(0,Ye.Z)(zt,2),rn=on[0],mn=on[1],Bn=(0,st.useState)(!1),ei=(0,Ye.Z)(Bn,2),ji=ei[0],Fi=ei[1],Yi=function(){Fi(!0)},lt=function(){Fi(!1)},Ut={getKey:di};function oi(Zi){en(function(tr){var kr;typeof Zi=="function"?kr=Zi(tr):kr=Zi;var Ji=sr(kr);return fi.current.scrollTop=Ji,Ji})}var gi=(0,st.useRef)({start:0,end:Yn.length}),jt=(0,st.useRef)(),Vn=Se(Yn,di),ni=(0,Ye.Z)(Vn,1),Zt=ni[0];jt.current=Zt;var je=st.useMemo(function(){if(!wi)return{scrollHeight:void 0,start:0,end:Yn.length-1,offset:void 0};if(!ke){var Zi;return{scrollHeight:((Zi=Ai.current)===null||Zi===void 0?void 0:Zi.offsetHeight)||0,start:0,end:Yn.length-1,offset:void 0}}for(var tr=0,kr,Ji,Cr,uo=Yn.length,nr=0;nr<uo;nr+=1){var Qi=Yn[nr],ti=di(Qi),lr=Hi.get(ti),Gr=tr+(lr===void 0?ut:lr);Gr>=Kt&&kr===void 0&&(kr=nr,Ji=tr),Gr>Kt+Ce&&Cr===void 0&&(Cr=nr),tr=Gr}return kr===void 0&&(kr=0,Ji=0,Cr=Math.ceil(Ce/ut)),Cr===void 0&&(Cr=Yn.length-1),Cr=Math.min(Cr+1,Yn.length-1),{scrollHeight:tr,start:kr,end:Cr,offset:Ji}},[ke,wi,Kt,Yn,ui,Ce]),ci=je.scrollHeight,pi=je.start,bn=je.end,Ki=je.offset;gi.current.start=pi,gi.current.end=bn,st.useLayoutEffect(function(){var Zi=Hi.getRecord();if(Zi.size===1){var tr=Array.from(Zi.keys())[0],kr=Zi.get(tr),Ji=Yn[pi];if(Ji&&kr===void 0){var Cr=di(Ji);if(Cr===tr){var uo=Hi.get(tr),nr=uo-ut;oi(function(Qi){return Qi+nr})}}}Hi.resetRecord()},[ci]);var Ui=st.useState({width:0,height:Ce}),Wi=(0,Ye.Z)(Ui,2),vn=Wi[0],Wt=Wi[1],ar=function(tr){Wt({width:tr.offsetWidth,height:tr.offsetHeight})},Zr=(0,st.useRef)(),Mn=(0,st.useRef)(),hi=st.useMemo(function(){return an(vn.width,sn)},[vn.width,sn]),Pi=st.useMemo(function(){return an(vn.height,ci)},[vn.height,ci]),Li=ci-Ce,Ri=(0,st.useRef)(Li);Ri.current=Li;function sr(Zi){var tr=Zi;return Number.isNaN(Ri.current)||(tr=Math.min(tr,Ri.current)),tr=Math.max(tr,0),tr}var gr=Kt<=0,Tr=Kt>=Li,Ar=rn<=0,Rr=rn>=sn,Un=Ke(gr,Tr,Ar,Rr),pr=function(){return{x:mi?-rn:rn,y:Kt}},Dn=(0,st.useRef)(pr()),Lr=(0,qe.zX)(function(Zi){if(Sn){var tr=(0,De.Z)((0,De.Z)({},pr()),Zi);(Dn.current.x!==tr.x||Dn.current.y!==tr.y)&&(Sn(tr),Dn.current=tr)}});function ro(Zi,tr){var kr=Zi;tr?((0,Nt.flushSync)(function(){mn(kr)}),Lr()):oi(kr)}function Ir(Zi){var tr=Zi.currentTarget.scrollTop;tr!==Kt&&oi(tr),dn==null||dn(Zi),Lr()}var Vr=function(tr){var kr=tr,Ji=sn?sn-vn.width:0;return kr=Math.max(kr,0),kr=Math.min(kr,Ji),kr},Mr=(0,qe.zX)(function(Zi,tr){tr?((0,Nt.flushSync)(function(){mn(function(kr){var Ji=kr+(mi?-Zi:Zi);return Vr(Ji)})}),Lr()):oi(function(kr){var Ji=kr+Zi;return Ji})}),Sr=rt(wi,gr,Tr,Ar,Rr,!!sn,Mr),Qr=(0,Ye.Z)(Sr,2),Ro=Qr[0],qr=Qr[1];yn(wi,fi,function(Zi,tr,kr,Ji){var Cr=Ji;return Un(Zi,tr,kr)?!1:!Cr||!Cr._virtualHandled?(Cr&&(Cr._virtualHandled=!0),Ro({preventDefault:function(){},deltaX:Zi?tr:0,deltaY:Zi?0:tr}),!0):!1}),xt(ke,fi,function(Zi){oi(function(tr){return tr+Zi})}),(0,mt.Z)(function(){function Zi(kr){var Ji=gr&&kr.detail<0,Cr=Tr&&kr.detail>0;wi&&!Ji&&!Cr&&kr.preventDefault()}var tr=fi.current;return tr.addEventListener("wheel",Ro,{passive:!1}),tr.addEventListener("DOMMouseScroll",qr,{passive:!0}),tr.addEventListener("MozMousePixelScroll",Zi,{passive:!1}),function(){tr.removeEventListener("wheel",Ro),tr.removeEventListener("DOMMouseScroll",qr),tr.removeEventListener("MozMousePixelScroll",Zi)}},[wi,gr,Tr]),(0,mt.Z)(function(){if(sn){var Zi=Vr(rn);mn(Zi),Lr({x:Zi})}},[vn.width,sn]);var vi=function(){var tr,kr;(tr=Zr.current)===null||tr===void 0||tr.delayHidden(),(kr=Mn.current)===null||kr===void 0||kr.delayHidden()},dt=it(fi,Yn,Hi,ut,di,function(){return rr(!0)},oi,vi);st.useImperativeHandle(ze,function(){return{nativeElement:xi.current,getScrollInfo:pr,scrollTo:function(tr){function kr(Ji){return Ji&&(0,Ie.Z)(Ji)==="object"&&("left"in Ji||"top"in Ji)}kr(tr)?(tr.left!==void 0&&mn(Vr(tr.left)),dt(tr.top)):dt(tr)}}}),(0,mt.Z)(function(){if(nn){var Zi=Yn.slice(pi,bn+1);nn(Zi,Yn)}},[pi,bn,Yn]);var ho=ot(Yn,di,Hi,ut),yo=Fn==null?void 0:Fn({start:pi,end:bn,virtual:ke,offsetX:rn,offsetY:Ki,rtl:mi,getSize:ho}),ua=he(Yn,pi,bn,sn,rn,Ln,Gt,Ut),Vo=null;Ce&&(Vo=(0,De.Z)((0,Le.Z)({},Mt?"height":"maxHeight",Ce),En),wi&&(Vo.overflowY="hidden",sn&&(Vo.overflowX="hidden"),ji&&(Vo.pointerEvents="none")));var Kr={};return mi&&(Kr.dir="rtl"),st.createElement("div",(0,le.Z)({ref:xi,style:(0,De.Z)((0,De.Z)({},Yt),{},{position:"relative"}),className:ki},Kr,Ht),st.createElement(Xe.Z,{onResize:ar},st.createElement(wn,{className:"".concat(Te,"-holder"),style:Vo,ref:fi,onScroll:Ir,onMouseEnter:vi},st.createElement(te,{prefixCls:Te,height:ci,offsetX:rn,offsetY:Ki,scrollWidth:sn,onInnerResize:rr,ref:Ai,innerProps:si,rtl:mi,extra:yo},ua))),ke&&ci>Ce&&st.createElement(An,{ref:Zr,prefixCls:Te,scrollOffset:Kt,scrollRange:ci,rtl:mi,onScroll:ro,onStartMove:Yi,onStopMove:lt,spinSize:Pi,containerSize:vn.height,style:yt==null?void 0:yt.verticalScrollBar,thumbStyle:yt==null?void 0:yt.verticalScrollBarThumb,showScrollBar:Cn}),ke&&sn>vn.width&&st.createElement(An,{ref:Mn,prefixCls:Te,scrollOffset:rn,scrollRange:sn,rtl:mi,onScroll:ro,onStartMove:Yi,onStopMove:lt,spinSize:hi,containerSize:vn.width,horizontal:!0,style:yt==null?void 0:yt.horizontalScrollBar,thumbStyle:yt==null?void 0:yt.horizontalScrollBarThumb,showScrollBar:Cn}))}var kt=st.forwardRef(ii);kt.displayName="List";var Kn=kt,yi=Kn},77596:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return ct}});var le=de(5883),Ie=de(92393),De=de(18082),Le=de(59301),Ye=de(5016);function Re(it,cn){var An=Object.keys(it);if(Object.getOwnPropertySymbols){var Pt=Object.getOwnPropertySymbols(it);cn&&(Pt=Pt.filter(function(an){return Object.getOwnPropertyDescriptor(it,an).enumerable})),An.push.apply(An,Pt)}return An}function Ve(it){for(var cn=1;cn<arguments.length;cn++){var An=arguments[cn]!=null?arguments[cn]:{};cn%2?Re(Object(An),!0).forEach(function(Pt){(0,De.Z)(it,Pt,An[Pt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(it,Object.getOwnPropertyDescriptors(An)):Re(Object(An)).forEach(function(Pt){Object.defineProperty(it,Pt,Object.getOwnPropertyDescriptor(An,Pt))})}return it}function Je(it){var cn=it.length;if(cn===0||cn===1)return it;if(cn===2)return[it[0],it[1],"".concat(it[0],".").concat(it[1]),"".concat(it[1],".").concat(it[0])];if(cn===3)return[it[0],it[1],it[2],"".concat(it[0],".").concat(it[1]),"".concat(it[0],".").concat(it[2]),"".concat(it[1],".").concat(it[0]),"".concat(it[1],".").concat(it[2]),"".concat(it[2],".").concat(it[0]),"".concat(it[2],".").concat(it[1]),"".concat(it[0],".").concat(it[1],".").concat(it[2]),"".concat(it[0],".").concat(it[2],".").concat(it[1]),"".concat(it[1],".").concat(it[0],".").concat(it[2]),"".concat(it[1],".").concat(it[2],".").concat(it[0]),"".concat(it[2],".").concat(it[0],".").concat(it[1]),"".concat(it[2],".").concat(it[1],".").concat(it[0])];if(cn>=4)return[it[0],it[1],it[2],it[3],"".concat(it[0],".").concat(it[1]),"".concat(it[0],".").concat(it[2]),"".concat(it[0],".").concat(it[3]),"".concat(it[1],".").concat(it[0]),"".concat(it[1],".").concat(it[2]),"".concat(it[1],".").concat(it[3]),"".concat(it[2],".").concat(it[0]),"".concat(it[2],".").concat(it[1]),"".concat(it[2],".").concat(it[3]),"".concat(it[3],".").concat(it[0]),"".concat(it[3],".").concat(it[1]),"".concat(it[3],".").concat(it[2]),"".concat(it[0],".").concat(it[1],".").concat(it[2]),"".concat(it[0],".").concat(it[1],".").concat(it[3]),"".concat(it[0],".").concat(it[2],".").concat(it[1]),"".concat(it[0],".").concat(it[2],".").concat(it[3]),"".concat(it[0],".").concat(it[3],".").concat(it[1]),"".concat(it[0],".").concat(it[3],".").concat(it[2]),"".concat(it[1],".").concat(it[0],".").concat(it[2]),"".concat(it[1],".").concat(it[0],".").concat(it[3]),"".concat(it[1],".").concat(it[2],".").concat(it[0]),"".concat(it[1],".").concat(it[2],".").concat(it[3]),"".concat(it[1],".").concat(it[3],".").concat(it[0]),"".concat(it[1],".").concat(it[3],".").concat(it[2]),"".concat(it[2],".").concat(it[0],".").concat(it[1]),"".concat(it[2],".").concat(it[0],".").concat(it[3]),"".concat(it[2],".").concat(it[1],".").concat(it[0]),"".concat(it[2],".").concat(it[1],".").concat(it[3]),"".concat(it[2],".").concat(it[3],".").concat(it[0]),"".concat(it[2],".").concat(it[3],".").concat(it[1]),"".concat(it[3],".").concat(it[0],".").concat(it[1]),"".concat(it[3],".").concat(it[0],".").concat(it[2]),"".concat(it[3],".").concat(it[1],".").concat(it[0]),"".concat(it[3],".").concat(it[1],".").concat(it[2]),"".concat(it[3],".").concat(it[2],".").concat(it[0]),"".concat(it[3],".").concat(it[2],".").concat(it[1]),"".concat(it[0],".").concat(it[1],".").concat(it[2],".").concat(it[3]),"".concat(it[0],".").concat(it[1],".").concat(it[3],".").concat(it[2]),"".concat(it[0],".").concat(it[2],".").concat(it[1],".").concat(it[3]),"".concat(it[0],".").concat(it[2],".").concat(it[3],".").concat(it[1]),"".concat(it[0],".").concat(it[3],".").concat(it[1],".").concat(it[2]),"".concat(it[0],".").concat(it[3],".").concat(it[2],".").concat(it[1]),"".concat(it[1],".").concat(it[0],".").concat(it[2],".").concat(it[3]),"".concat(it[1],".").concat(it[0],".").concat(it[3],".").concat(it[2]),"".concat(it[1],".").concat(it[2],".").concat(it[0],".").concat(it[3]),"".concat(it[1],".").concat(it[2],".").concat(it[3],".").concat(it[0]),"".concat(it[1],".").concat(it[3],".").concat(it[0],".").concat(it[2]),"".concat(it[1],".").concat(it[3],".").concat(it[2],".").concat(it[0]),"".concat(it[2],".").concat(it[0],".").concat(it[1],".").concat(it[3]),"".concat(it[2],".").concat(it[0],".").concat(it[3],".").concat(it[1]),"".concat(it[2],".").concat(it[1],".").concat(it[0],".").concat(it[3]),"".concat(it[2],".").concat(it[1],".").concat(it[3],".").concat(it[0]),"".concat(it[2],".").concat(it[3],".").concat(it[0],".").concat(it[1]),"".concat(it[2],".").concat(it[3],".").concat(it[1],".").concat(it[0]),"".concat(it[3],".").concat(it[0],".").concat(it[1],".").concat(it[2]),"".concat(it[3],".").concat(it[0],".").concat(it[2],".").concat(it[1]),"".concat(it[3],".").concat(it[1],".").concat(it[0],".").concat(it[2]),"".concat(it[3],".").concat(it[1],".").concat(it[2],".").concat(it[0]),"".concat(it[3],".").concat(it[2],".").concat(it[0],".").concat(it[1]),"".concat(it[3],".").concat(it[2],".").concat(it[1],".").concat(it[0])]}var Xe={};function qe(it){if(it.length===0||it.length===1)return it;var cn=it.join(".");return Xe[cn]||(Xe[cn]=Je(it)),Xe[cn]}function mt(it){var cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},An=arguments.length>2?arguments[2]:void 0,Pt=it.filter(function(ln){return ln!=="token"}),an=qe(Pt);return an.reduce(function(ln,zn){return Ve(Ve({},ln),An[zn])},cn)}function st(it){return it.join(" ")}function Nt(it,cn){var An=0;return function(Pt){return An+=1,Pt.map(function(an,ln){return _e({node:an,stylesheet:it,useInlineStyles:cn,key:"code-segment-".concat(An,"-").concat(ln)})})}}function _e(it){var cn=it.node,An=it.stylesheet,Pt=it.style,an=Pt===void 0?{}:Pt,ln=it.useInlineStyles,zn=it.key,En=cn.properties,ii=cn.type,kt=cn.tagName,Kn=cn.value;if(ii==="text")return Kn;if(kt){var yi=Nt(An,ln),et;if(!ln)et=Ve(Ve({},En),{},{className:st(En.className)});else{var ze=Object.keys(An).reduce(function(Ce,ut){return ut.split(".").forEach(function(Lt){Ce.includes(Lt)||Ce.push(Lt)}),Ce},[]),xe=En.className&&En.className.includes("token")?["token"]:[],Te=En.className&&xe.concat(En.className.filter(function(Ce){return!ze.includes(Ce)}));et=Ve(Ve({},En),{},{className:st(Te)||void 0,style:mt(En.className,Object.assign({},En.style,an),An)})}var Me=yi(cn.children);return Le.createElement(kt,(0,Ye.Z)({key:zn},et),Me)}}var te=function(it,cn){var An=it.listLanguages();return An.indexOf(cn)!==-1},ne=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function he(it,cn){var An=Object.keys(it);if(Object.getOwnPropertySymbols){var Pt=Object.getOwnPropertySymbols(it);cn&&(Pt=Pt.filter(function(an){return Object.getOwnPropertyDescriptor(it,an).enumerable})),An.push.apply(An,Pt)}return An}function se(it){for(var cn=1;cn<arguments.length;cn++){var An=arguments[cn]!=null?arguments[cn]:{};cn%2?he(Object(An),!0).forEach(function(Pt){(0,De.Z)(it,Pt,An[Pt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(it,Object.getOwnPropertyDescriptors(An)):he(Object(An)).forEach(function(Pt){Object.defineProperty(it,Pt,Object.getOwnPropertyDescriptor(An,Pt))})}return it}var ge=/\n/g;function Se(it){return it.match(ge)}function Ae(it){var cn=it.lines,An=it.startingLineNumber,Pt=it.style;return cn.map(function(an,ln){var zn=ln+An;return Le.createElement("span",{key:"line-".concat(ln),className:"react-syntax-highlighter-line-number",style:typeof Pt=="function"?Pt(zn):Pt},"".concat(zn,`
|
|
|
`))})}function Oe(it){var cn=it.codeString,An=it.codeStyle,Pt=it.containerStyle,an=Pt===void 0?{float:"left",paddingRight:"10px"}:Pt,ln=it.numberStyle,zn=ln===void 0?{}:ln,En=it.startingLineNumber;return Le.createElement("code",{style:Object.assign({},An,an)},Ae({lines:cn.replace(/\n$/,"").split(`
|
|
|
`),style:zn,startingLineNumber:En}))}function Be(it){return"".concat(it.toString().length,".25em")}function Ke(it,cn){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(it),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:cn},children:[{type:"text",value:it}]}}function rt(it,cn,An){var Pt={display:"inline-block",minWidth:Be(An),paddingRight:"1em",textAlign:"right",userSelect:"none"},an=typeof it=="function"?it(cn):it,ln=se(se({},Pt),an);return ln}function ot(it){var cn=it.children,An=it.lineNumber,Pt=it.lineNumberStyle,an=it.largestLineNumber,ln=it.showInlineLineNumbers,zn=it.lineProps,En=zn===void 0?{}:zn,ii=it.className,kt=ii===void 0?[]:ii,Kn=it.showLineNumbers,yi=it.wrapLongLines,et=it.wrapLines,ze=et===void 0?!1:et,xe=ze?se({},typeof En=="function"?En(An):En):{};if(xe.className=xe.className?[].concat((0,Ie.Z)(xe.className.trim().split(/\s+/)),(0,Ie.Z)(kt)):kt,An&&ln){var Te=rt(Pt,An,an);cn.unshift(Ke(An,Te))}return yi&Kn&&(xe.style=se({display:"flex"},xe.style)),{type:"element",tagName:"span",properties:xe,children:cn}}function ht(it){for(var cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],An=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Pt=0;Pt<it.length;Pt++){var an=it[Pt];if(an.type==="text")An.push(ot({children:[an],className:(0,Ie.Z)(new Set(cn))}));else if(an.children){var ln=cn.concat(an.properties.className);ht(an.children,ln).forEach(function(zn){return An.push(zn)})}}return An}function bt(it,cn,An,Pt,an,ln,zn,En,ii){var kt,Kn=ht(it.value),yi=[],et=-1,ze=0;function xe(Yt,Vt){var Gt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return ot({children:Yt,lineNumber:Vt,lineNumberStyle:En,largestLineNumber:zn,showInlineLineNumbers:an,lineProps:An,className:Gt,showLineNumbers:Pt,wrapLongLines:ii,wrapLines:cn})}function Te(Yt,Vt){if(Pt&&Vt&&an){var Gt=rt(En,Vt,zn);Yt.unshift(Ke(Vt,Gt))}return Yt}function Me(Yt,Vt){var Gt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return cn||Gt.length>0?xe(Yt,Vt,Gt):Te(Yt,Vt)}for(var Ce=function(){var Vt=Kn[ze],Gt=Vt.children[0].value,gn=Se(Gt);if(gn){var qt=Gt.split(`
|
|
|
`);qt.forEach(function(fn,sn){var _t=Pt&&yi.length+ln,wn={type:"text",value:"".concat(fn,`
|
|
|
`)};if(sn===0){var dn=Kn.slice(et+1,ze).concat(ot({children:[wn],className:Vt.properties.className})),Sn=Me(dn,_t);yi.push(Sn)}else if(sn===qt.length-1){var nn=Kn[ze+1]&&Kn[ze+1].children&&Kn[ze+1].children[0],si={type:"text",value:"".concat(fn)};if(nn){var Fn=ot({children:[si],className:Vt.properties.className});Kn.splice(ze+1,0,Fn)}else{var yt=[si],kn=Me(yt,_t,Vt.properties.className);yi.push(kn)}}else{var Cn=[wn],Ht=Me(Cn,_t,Vt.properties.className);yi.push(Ht)}}),et=ze}ze++};ze<Kn.length;)Ce();if(et!==Kn.length-1){var ut=Kn.slice(et+1,Kn.length);if(ut&&ut.length){var Lt=Pt&&yi.length+ln,Mt=Me(ut,Lt);yi.push(Mt)}}return cn?yi:(kt=[]).concat.apply(kt,yi)}function at(it){var cn=it.rows,An=it.stylesheet,Pt=it.useInlineStyles;return cn.map(function(an,ln){return _e({node:an,stylesheet:An,useInlineStyles:Pt,key:"code-segement".concat(ln)})})}function At(it){return it&&typeof it.highlightAuto!="undefined"}function It(it){var cn=it.astGenerator,An=it.language,Pt=it.code,an=it.defaultCodeValue;if(At(cn)){var ln=te(cn,An);return An==="text"?{value:an,language:"text"}:ln?cn.highlight(An,Pt):cn.highlightAuto(Pt)}try{return An&&An!=="text"?{value:cn.highlight(Pt,An)}:{value:an}}catch(zn){return{value:an}}}function $t(it,cn){return function(Pt){var an=Pt.language,ln=Pt.children,zn=Pt.style,En=zn===void 0?cn:zn,ii=Pt.customStyle,kt=ii===void 0?{}:ii,Kn=Pt.codeTagProps,yi=Kn===void 0?{className:an?"language-".concat(an):void 0,style:se(se({},En['code[class*="language-"]']),En['code[class*="language-'.concat(an,'"]')])}:Kn,et=Pt.useInlineStyles,ze=et===void 0?!0:et,xe=Pt.showLineNumbers,Te=xe===void 0?!1:xe,Me=Pt.showInlineLineNumbers,Ce=Me===void 0?!0:Me,ut=Pt.startingLineNumber,Lt=ut===void 0?1:ut,Mt=Pt.lineNumberContainerStyle,Yt=Pt.lineNumberStyle,Vt=Yt===void 0?{}:Yt,Gt=Pt.wrapLines,gn=Pt.wrapLongLines,qt=gn===void 0?!1:gn,fn=Pt.lineProps,sn=fn===void 0?{}:fn,_t=Pt.renderer,wn=Pt.PreTag,dn=wn===void 0?"pre":wn,Sn=Pt.CodeTag,nn=Sn===void 0?"code":Sn,si=Pt.code,Fn=si===void 0?(Array.isArray(ln)?ln[0]:ln)||"":si,yt=Pt.astGenerator,kn=(0,le.Z)(Pt,ne);yt=yt||it;var Cn=Te?Le.createElement(Oe,{containerStyle:Mt,codeStyle:yi.style||{},numberStyle:Vt,startingLineNumber:Lt,codeString:Fn}):null,Ht=En.hljs||En['pre[class*="language-"]']||{backgroundColor:"#fff"},di=At(yt)?"hljs":"prismjs",zi=ze?Object.assign({},kn,{style:Object.assign({},Ht,kt)}):Object.assign({},kn,{className:kn.className?"".concat(di," ").concat(kn.className):di,style:Object.assign({},kt)});if(qt?yi.style=se({whiteSpace:"pre-wrap"},yi.style):yi.style=se({whiteSpace:"pre"},yi.style),!yt)return Le.createElement(dn,zi,Cn,Le.createElement(nn,yi,Fn));(Gt===void 0&&_t||qt)&&(Gt=!0),_t=_t||at;var Ni=[{type:"text",value:Fn}],Ln=It({astGenerator:yt,language:an,code:Fn,defaultCodeValue:Ni});Ln.language===null&&(Ln.value=Ni);var rr=Ln.value.length;rr===1&&Ln.value[0].type==="text"&&(rr=Ln.value[0].value.split(`
|
|
|
`).length);var Hi=rr+Lt,ui=bt(Ln,Gt,sn,Te,Ce,Lt,Hi,Vt,qt);return Le.createElement(dn,zi,Le.createElement(nn,yi,!Ce&&Cn,_t({rows:ui,stylesheet:En,useInlineStyles:ze})))}}var Tn={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}},yn=de(11594),un=de.n(yn),On=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"],xt=$t(un(),Tn);xt.supportedLanguages=On;var ct=xt},14179:function(Ge,be){"use strict";be.Z={'pre[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",background:"#1e1e1e"},'code[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'pre[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},':not(pre) > code[class*="language-"]':{padding:".1em .3em",borderRadius:".3em",color:"#db4c69",background:"#1e1e1e"},".namespace":{Opacity:".7"},"doctype.doctype-tag":{color:"#569CD6"},"doctype.name":{color:"#9cdcfe"},comment:{color:"#6a9955"},prolog:{color:"#6a9955"},punctuation:{color:"#d4d4d4"},".language-html .language-css .token.punctuation":{color:"#d4d4d4"},".language-html .language-javascript .token.punctuation":{color:"#d4d4d4"},property:{color:"#9cdcfe"},tag:{color:"#569cd6"},boolean:{color:"#569cd6"},number:{color:"#b5cea8"},constant:{color:"#9cdcfe"},symbol:{color:"#b5cea8"},inserted:{color:"#b5cea8"},unit:{color:"#b5cea8"},selector:{color:"#d7ba7d"},"attr-name":{color:"#9cdcfe"},string:{color:"#ce9178"},char:{color:"#ce9178"},builtin:{color:"#ce9178"},deleted:{color:"#ce9178"},".language-css .token.string.url":{textDecoration:"underline"},operator:{color:"#d4d4d4"},entity:{color:"#569cd6"},"operator.arrow":{color:"#569CD6"},atrule:{color:"#ce9178"},"atrule.rule":{color:"#c586c0"},"atrule.url":{color:"#9cdcfe"},"atrule.url.function":{color:"#dcdcaa"},"atrule.url.punctuation":{color:"#d4d4d4"},keyword:{color:"#569CD6"},"keyword.module":{color:"#c586c0"},"keyword.control-flow":{color:"#c586c0"},function:{color:"#dcdcaa"},"function.maybe-class-name":{color:"#dcdcaa"},regex:{color:"#d16969"},important:{color:"#569cd6"},italic:{fontStyle:"italic"},"class-name":{color:"#4ec9b0"},"maybe-class-name":{color:"#4ec9b0"},console:{color:"#9cdcfe"},parameter:{color:"#9cdcfe"},interpolation:{color:"#9cdcfe"},"punctuation.interpolation-punctuation":{color:"#569cd6"},variable:{color:"#9cdcfe"},"imports.maybe-class-name":{color:"#9cdcfe"},"exports.maybe-class-name":{color:"#9cdcfe"},escape:{color:"#d7ba7d"},"tag.punctuation":{color:"#808080"},cdata:{color:"#808080"},"attr-value":{color:"#ce9178"},"attr-value.punctuation":{color:"#ce9178"},"attr-value.punctuation.attr-equals":{color:"#d4d4d4"},namespace:{color:"#4ec9b0"},'pre[class*="language-javascript"]':{color:"#9cdcfe"},'code[class*="language-javascript"]':{color:"#9cdcfe"},'pre[class*="language-jsx"]':{color:"#9cdcfe"},'code[class*="language-jsx"]':{color:"#9cdcfe"},'pre[class*="language-typescript"]':{color:"#9cdcfe"},'code[class*="language-typescript"]':{color:"#9cdcfe"},'pre[class*="language-tsx"]':{color:"#9cdcfe"},'code[class*="language-tsx"]':{color:"#9cdcfe"},'pre[class*="language-css"]':{color:"#ce9178"},'code[class*="language-css"]':{color:"#ce9178"},'pre[class*="language-html"]':{color:"#d4d4d4"},'code[class*="language-html"]':{color:"#d4d4d4"},".language-regex .token.anchor":{color:"#dcdcaa"},".language-html .token.punctuation":{color:"#808080"},'pre[class*="language-"] > code[class*="language-"]':{position:"relative",zIndex:"1"},".line-highlight.line-highlight":{background:"#f7ebc6",boxShadow:"inset 5px 0 0 #f7d87c",zIndex:"0"}}},19524:function(Ge,be,de){"use strict";de(84126);var le=de(59301),Ie=60103;if(be.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var De=Symbol.for;Ie=De("react.element"),be.Fragment=De("react.fragment")}var Le=le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ye=Object.prototype.hasOwnProperty,Re={key:!0,ref:!0,__self:!0,__source:!0};function Ve(Je,Xe,qe){var mt,st={},Nt=null,_e=null;qe!==void 0&&(Nt=""+qe),Xe.key!==void 0&&(Nt=""+Xe.key),Xe.ref!==void 0&&(_e=Xe.ref);for(mt in Xe)Ye.call(Xe,mt)&&!Re.hasOwnProperty(mt)&&(st[mt]=Xe[mt]);if(Je&&Je.defaultProps)for(mt in Xe=Je.defaultProps,Xe)st[mt]===void 0&&(st[mt]=Xe[mt]);return{$$typeof:Ie,type:Je,key:Nt,ref:_e,props:st,_owner:Le.current}}be.jsx=Ve,be.jsxs=Ve},37712:function(Ge,be,de){"use strict";Ge.exports=de(19524)},95489:function(Ge,be,de){"use strict";var le=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof de.g=="object"?de.g:{},Ie=Oe();le.Prism={manual:!0,disableWorkerMessageHandler:!0};var De=de(43621),Le=de(12256),Ye=de(68398),Re=de(70614),Ve=de(54212),Je=de(9720),Xe=de(88786);Ie();var qe={}.hasOwnProperty;function mt(){}mt.prototype=Ye;var st=new mt;Ge.exports=st,st.highlight=te,st.register=Nt,st.alias=_e,st.registered=ne,st.listLanguages=he,Nt(Re),Nt(Ve),Nt(Je),Nt(Xe),st.util.encode=Se,st.Token.stringify=se;function Nt(Be){if(typeof Be!="function"||!Be.displayName)throw new Error("Expected `function` for `grammar`, got `"+Be+"`");st.languages[Be.displayName]===void 0&&Be(st)}function _e(Be,Ke){var rt=st.languages,ot=Be,ht,bt,at,At;Ke&&(ot={},ot[Be]=Ke);for(ht in ot)for(bt=ot[ht],bt=typeof bt=="string"?[bt]:bt,at=bt.length,At=-1;++At<at;)rt[bt[At]]=rt[ht]}function te(Be,Ke){var rt=Ye.highlight,ot;if(typeof Be!="string")throw new Error("Expected `string` for `value`, got `"+Be+"`");if(st.util.type(Ke)==="Object")ot=Ke,Ke=null;else{if(typeof Ke!="string")throw new Error("Expected `string` for `name`, got `"+Ke+"`");if(qe.call(st.languages,Ke))ot=st.languages[Ke];else throw new Error("Unknown language: `"+Ke+"` is not registered")}return rt.call(this,Be,ot,Ke)}function ne(Be){if(typeof Be!="string")throw new Error("Expected `string` for `language`, got `"+Be+"`");return qe.call(st.languages,Be)}function he(){var Be=st.languages,Ke=[],rt;for(rt in Be)qe.call(Be,rt)&&typeof Be[rt]=="object"&&Ke.push(rt);return Ke}function se(Be,Ke,rt){var ot;return typeof Be=="string"?{type:"text",value:Be}:st.util.type(Be)==="Array"?ge(Be,Ke):(ot={type:Be.type,content:st.Token.stringify(Be.content,Ke,rt),tag:"span",classes:["token",Be.type],attributes:{},language:Ke,parent:rt},Be.alias&&(ot.classes=ot.classes.concat(Be.alias)),st.hooks.run("wrap",ot),De(ot.tag+"."+ot.classes.join("."),Ae(ot.attributes),ot.content))}function ge(Be,Ke){for(var rt=[],ot=Be.length,ht=-1,bt;++ht<ot;)bt=Be[ht],bt!==""&&bt!==null&&bt!==void 0&&rt.push(bt);for(ht=-1,ot=rt.length;++ht<ot;)bt=rt[ht],rt[ht]=st.Token.stringify(bt,Ke,rt);return rt}function Se(Be){return Be}function Ae(Be){var Ke;for(Ke in Be)Be[Ke]=Le(Be[Ke]);return Be}function Oe(){var Be="Prism"in le,Ke=Be?le.Prism:void 0;return rt;function rt(){Be?le.Prism=Ke:delete le.Prism,Be=void 0,Ke=void 0}}},11594:function(Ge,be,de){"use strict";var le=de(95489);Ge.exports=le,le.register(de(79007)),le.register(de(15465)),le.register(de(42746)),le.register(de(93281)),le.register(de(95143)),le.register(de(65924)),le.register(de(65043)),le.register(de(43556)),le.register(de(14901)),le.register(de(4248)),le.register(de(17758)),le.register(de(33335)),le.register(de(17427)),le.register(de(22956)),le.register(de(56007)),le.register(de(45652)),le.register(de(33819)),le.register(de(84230)),le.register(de(20803)),le.register(de(65235)),le.register(de(52406)),le.register(de(79571)),le.register(de(3058)),le.register(de(51422)),le.register(de(1618)),le.register(de(2505)),le.register(de(51274)),le.register(de(23796)),le.register(de(13979)),le.register(de(87994)),le.register(de(47035)),le.register(de(36142)),le.register(de(85290)),le.register(de(7407)),le.register(de(79440)),le.register(de(7110)),le.register(de(73435)),le.register(de(91372)),le.register(de(63663)),le.register(de(92987)),le.register(de(91657)),le.register(de(34367)),le.register(de(35348)),le.register(de(26841)),le.register(de(87071)),le.register(de(13652)),le.register(de(87648)),le.register(de(10617)),le.register(de(5348)),le.register(de(71053)),le.register(de(69820)),le.register(de(41929)),le.register(de(51837)),le.register(de(4182)),le.register(de(22117)),le.register(de(95627)),le.register(de(34265)),le.register(de(50618)),le.register(de(32126)),le.register(de(26737)),le.register(de(90134)),le.register(de(51348)),le.register(de(60841)),le.register(de(42857)),le.register(de(81269)),le.register(de(31134)),le.register(de(83125)),le.register(de(9438)),le.register(de(27771)),le.register(de(86549)),le.register(de(37079)),le.register(de(59250)),le.register(de(81226)),le.register(de(65245)),le.register(de(25040)),le.register(de(40284)),le.register(de(39187)),le.register(de(34302)),le.register(de(90515)),le.register(de(33534)),le.register(de(9885)),le.register(de(76364)),le.register(de(56452)),le.register(de(8477)),le.register(de(58230)),le.register(de(66192)),le.register(de(81084)),le.register(de(50318)),le.register(de(95769)),le.register(de(14155)),le.register(de(92823)),le.register(de(63092)),le.register(de(21550)),le.register(de(29710)),le.register(de(2050)),le.register(de(67967)),le.register(de(29138)),le.register(de(67915)),le.register(de(54853)),le.register(de(68330)),le.register(de(76823)),le.register(de(86712)),le.register(de(72252)),le.register(de(78634)),le.register(de(43583)),le.register(de(23328)),le.register(de(74494)),le.register(de(46745)),le.register(de(22152)),le.register(de(83698)),le.register(de(26619)),le.register(de(53990)),le.register(de(7093)),le.register(de(4005)),le.register(de(53510)),le.register(de(24799)),le.register(de(97443)),le.register(de(80746)),le.register(de(17015)),le.register(de(89246)),le.register(de(487)),le.register(de(79539)),le.register(de(15628)),le.register(de(14320)),le.register(de(73222)),le.register(de(92486)),le.register(de(24103)),le.register(de(40604)),le.register(de(23109)),le.register(de(32082)),le.register(de(77674)),le.register(de(37524)),le.register(de(6658)),le.register(de(24824)),le.register(de(22776)),le.register(de(89700)),le.register(de(99296)),le.register(de(39940)),le.register(de(34973)),le.register(de(98135)),le.register(de(36907)),le.register(de(3567)),le.register(de(23763)),le.register(de(33978)),le.register(de(40472)),le.register(de(44695)),le.register(de(53885)),le.register(de(51478)),le.register(de(16928)),le.register(de(13586)),le.register(de(37164)),le.register(de(25153)),le.register(de(33245)),le.register(de(32218)),le.register(de(65626)),le.register(de(60090)),le.register(de(40722)),le.register(de(37783)),le.register(de(41224)),le.register(de(71365)),le.register(de(42846)),le.register(de(32964)),le.register(de(78830)),le.register(de(88799)),le.register(de(66791)),le.register(de(41735)),le.register(de(13490)),le.register(de(7383)),le.register(de(66894)),le.register(de(45779)),le.register(de(27734)),le.register(de(91889)),le.register(de(55965)),le.register(de(37326)),le.register(de(92949)),le.register(de(5681)),le.register(de(70696)),le.register(de(35790)),le.register(de(25777)),le.register(de(65889)),le.register(de(53852)),le.register(de(97719)),le.register(de(63839)),le.register(de(67623)),le.register(de(32530)),le.register(de(8938)),le.register(de(55259)),le.register(de(67411)),le.register(de(15375)),le.register(de(12093)),le.register(de(83588)),le.register(de(94127)),le.register(de(21294)),le.register(de(38709)),le.register(de(15008)),le.register(de(96549)),le.register(de(5221)),le.register(de(27447)),le.register(de(73191)),le.register(de(75542)),le.register(de(50323)),le.register(de(44298)),le.register(de(9634)),le.register(de(75266)),le.register(de(48139)),le.register(de(97534)),le.register(de(90826)),le.register(de(63919)),le.register(de(68862)),le.register(de(39523)),le.register(de(31207)),le.register(de(75308)),le.register(de(45315)),le.register(de(13794)),le.register(de(41299)),le.register(de(98177)),le.register(de(48780)),le.register(de(79793)),le.register(de(52085)),le.register(de(65411)),le.register(de(84750)),le.register(de(88216)),le.register(de(66433)),le.register(de(34855)),le.register(de(12998)),le.register(de(10202)),le.register(de(41186)),le.register(de(68963)),le.register(de(5569)),le.register(de(69435)),le.register(de(42766)),le.register(de(46449)),le.register(de(89032)),le.register(de(40241)),le.register(de(24812)),le.register(de(16747)),le.register(de(73584)),le.register(de(79243)),le.register(de(31788)),le.register(de(60871)),le.register(de(21023)),le.register(de(14693)),le.register(de(8743)),le.register(de(1689)),le.register(de(69210)),le.register(de(58710)),le.register(de(60452)),le.register(de(92784)),le.register(de(36489)),le.register(de(78380)),le.register(de(10409)),le.register(de(6539)),le.register(de(82028)),le.register(de(62282)),le.register(de(55686)),le.register(de(70889)),le.register(de(37116)),le.register(de(66963)),le.register(de(21078)),le.register(de(96198)),le.register(de(17723)),le.register(de(67771)),le.register(de(30307)),le.register(de(8921)),le.register(de(13429)),le.register(de(65197)),le.register(de(88904)),le.register(de(35)),le.register(de(86095)),le.register(de(76998)),le.register(de(14409)),le.register(de(33460)),le.register(de(28108))},79007:function(Ge){"use strict";Ge.exports=be,be.displayName="abap",be.aliases=[];function be(de){de.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}},15465:function(Ge){"use strict";Ge.exports=be,be.displayName="abnf",be.aliases=[];function be(de){(function(le){var Ie="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";le.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+Ie+"|<"+Ie+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(de)}},42746:function(Ge){"use strict";Ge.exports=be,be.displayName="actionscript",be.aliases=[];function be(de){de.languages.actionscript=de.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),de.languages.actionscript["class-name"].alias="function",delete de.languages.actionscript.parameter,delete de.languages.actionscript["literal-property"],de.languages.markup&&de.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:de.languages.markup}})}},93281:function(Ge){"use strict";Ge.exports=be,be.displayName="ada",be.aliases=[];function be(de){de.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}},95143:function(Ge){"use strict";Ge.exports=be,be.displayName="agda",be.aliases=[];function be(de){(function(le){le.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(de)}},65924:function(Ge){"use strict";Ge.exports=be,be.displayName="al",be.aliases=[];function be(de){de.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}},65043:function(Ge){"use strict";Ge.exports=be,be.displayName="antlr4",be.aliases=["g4"];function be(de){de.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},de.languages.g4=de.languages.antlr4}},43556:function(Ge){"use strict";Ge.exports=be,be.displayName="apacheconf",be.aliases=[];function be(de){de.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}},14901:function(Ge,be,de){"use strict";var le=de(69435);Ge.exports=Ie,Ie.displayName="apex",Ie.aliases=[];function Ie(De){De.register(le),function(Le){var Ye=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,Re=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return Ye.source});function Ve(Xe){return RegExp(Xe.replace(/<CLASS-NAME>/g,function(){return Re}),"i")}var Je={keyword:Ye,punctuation:/[()\[\]{};,:.<>]/};Le.languages.apex={comment:Le.languages.clike.comment,string:Le.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:Le.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:Ve(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:Je},{pattern:Ve(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:Je},{pattern:Ve(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:Je}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:Ye,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<<?=?|>{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(De)}},4248:function(Ge){"use strict";Ge.exports=be,be.displayName="apl",be.aliases=[];function be(de){de.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}},17758:function(Ge){"use strict";Ge.exports=be,be.displayName="applescript",be.aliases=[];function be(de){de.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}},33335:function(Ge){"use strict";Ge.exports=be,be.displayName="aql",be.aliases=[];function be(de){de.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}},17427:function(Ge,be,de){"use strict";var le=de(87071);Ge.exports=Ie,Ie.displayName="arduino",Ie.aliases=["ino"];function Ie(De){De.register(le),De.languages.arduino=De.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),De.languages.ino=De.languages.arduino}},22956:function(Ge){"use strict";Ge.exports=be,be.displayName="arff",be.aliases=[];function be(de){de.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}},56007:function(Ge){"use strict";Ge.exports=be,be.displayName="asciidoc",be.aliases=["adoc"];function be(de){(function(le){var Ie={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},De=le.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:Ie,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)<?\d*>/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:Ie.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:Ie,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function Le(Ye){Ye=Ye.split(" ");for(var Re={},Ve=0,Je=Ye.length;Ve<Je;Ve++)Re[Ye[Ve]]=De[Ye[Ve]];return Re}Ie.inside.interpreted.inside.rest=Le("macro inline replacement entity"),De["passthrough-block"].inside.rest=Le("macro"),De["literal-block"].inside.rest=Le("callout"),De.table.inside.rest=Le("comment-block passthrough-block literal-block other-block list-punctuation indented-block comment title attribute-entry attributes hr page-break admonition list-label callout macro inline replacement entity line-continuation"),De["other-block"].inside.rest=Le("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),De.title.inside.rest=Le("macro inline replacement entity"),le.hooks.add("wrap",function(Ye){Ye.type==="entity"&&(Ye.attributes.title=Ye.content.value.replace(/&/,"&"))}),le.languages.adoc=le.languages.asciidoc})(de)}},45652:function(Ge){"use strict";Ge.exports=be,be.displayName="asm6502",be.aliases=[];function be(de){de.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}},33819:function(Ge){"use strict";Ge.exports=be,be.displayName="asmatmel",be.aliases=[];function be(de){de.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}},84230:function(Ge,be,de){"use strict";var le=de(87648);Ge.exports=Ie,Ie.displayName="aspnet",Ie.aliases=[];function Ie(De){De.register(le),De.languages.aspnet=De.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:De.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:De.languages.csharp}}}),De.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,De.languages.insertBefore("inside","punctuation",{directive:De.languages.aspnet.directive},De.languages.aspnet.tag.inside["attr-value"]),De.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),De.languages.insertBefore("aspnet",De.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:De.languages.csharp||{}}})}},20803:function(Ge){"use strict";Ge.exports=be,be.displayName="autohotkey",be.aliases=[];function be(de){de.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}},65235:function(Ge){"use strict";Ge.exports=be,be.displayName="autoit",be.aliases=[];function be(de){de.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}},52406:function(Ge){"use strict";Ge.exports=be,be.displayName="avisynth",be.aliases=["avs"];function be(de){(function(le){function Ie(Xe,qe){return Xe.replace(/<<(\d+)>>/g,function(mt,st){return qe[+st]})}function De(Xe,qe,mt){return RegExp(Ie(Xe,qe),mt||"")}var Le=/bool|clip|float|int|string|val/.source,Ye=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),Re=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),Ve=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),Je=[Ye,Re,Ve].join("|");le.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:De(/\b(?:<<0>>)\s+("?)\w+\1/.source,[Le],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:De(/\b(?:<<0>>)\b/.source,[Je],"i"),alias:"function"},"type-cast":{pattern:De(/\b(?:<<0>>)(?=\s*\()/.source,[Le],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},le.languages.avs=le.languages.avisynth})(de)}},79571:function(Ge){"use strict";Ge.exports=be,be.displayName="avroIdl",be.aliases=[];function be(de){de.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},de.languages.avdl=de.languages["avro-idl"]}},3058:function(Ge){"use strict";Ge.exports=be,be.displayName="bash",be.aliases=["shell"];function be(de){(function(le){var Ie="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",De={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},Le={bash:De,environment:{pattern:RegExp("\\$"+Ie),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+Ie),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};le.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+Ie),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:Le},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:De}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:Le},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:Le.entity}}],environment:{pattern:RegExp("\\$?"+Ie),alias:"constant"},variable:Le.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},De.inside=le.languages.bash;for(var Ye=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],Re=Le.variable[1].inside,Ve=0;Ve<Ye.length;Ve++)Re[Ye[Ve]]=le.languages.bash[Ye[Ve]];le.languages.shell=le.languages.bash})(de)}},51422:function(Ge){"use strict";Ge.exports=be,be.displayName="basic",be.aliases=[];function be(de){de.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}},1618:function(Ge){"use strict";Ge.exports=be,be.displayName="batch",be.aliases=[];function be(de){(function(le){var Ie=/%%?[~:\w]+%?|!\S+!/,De={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},Le=/"(?:[\\"]"|[^"])*"(?!")/,Ye=/(?:\b|-)\d+\b/;le.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:Le,parameter:De,variable:Ie,number:Ye,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:Le,parameter:De,variable:Ie,number:Ye,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:Le,parameter:De,variable:[Ie,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:Ye,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:Le,parameter:De,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:Ie,number:Ye,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(de)}},2505:function(Ge){"use strict";Ge.exports=be,be.displayName="bbcode",be.aliases=["shortcode"];function be(de){de.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},de.languages.shortcode=de.languages.bbcode}},51274:function(Ge){"use strict";Ge.exports=be,be.displayName="bicep",be.aliases=[];function be(de){de.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},de.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=de.languages.bicep}},23796:function(Ge){"use strict";Ge.exports=be,be.displayName="birb",be.aliases=[];function be(de){de.languages.birb=de.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),de.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}},13979:function(Ge,be,de){"use strict";var le=de(79440);Ge.exports=Ie,Ie.displayName="bison",Ie.aliases=[];function Ie(De){De.register(le),De.languages.bison=De.languages.extend("c",{}),De.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:De.languages.c}},comment:De.languages.c.comment,string:De.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}},87994:function(Ge){"use strict";Ge.exports=be,be.displayName="bnf",be.aliases=["rbnf"];function be(de){de.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},de.languages.rbnf=de.languages.bnf}},47035:function(Ge){"use strict";Ge.exports=be,be.displayName="brainfuck",be.aliases=[];function be(de){de.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}},36142:function(Ge){"use strict";Ge.exports=be,be.displayName="brightscript",be.aliases=[];function be(de){de.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},de.languages.brightscript["directive-statement"].inside.expression.inside=de.languages.brightscript}},85290:function(Ge){"use strict";Ge.exports=be,be.displayName="bro",be.aliases=[];function be(de){de.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}},7407:function(Ge){"use strict";Ge.exports=be,be.displayName="bsl",be.aliases=[];function be(de){de.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},de.languages.oscript=de.languages.bsl}},79440:function(Ge){"use strict";Ge.exports=be,be.displayName="c",be.aliases=[];function be(de){de.languages.c=de.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),de.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),de.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},de.languages.c.string],char:de.languages.c.char,comment:de.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:de.languages.c}}}}),de.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete de.languages.c.boolean}},7110:function(Ge){"use strict";Ge.exports=be,be.displayName="cfscript",be.aliases=[];function be(de){de.languages.cfscript=de.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),de.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete de.languages.cfscript["class-name"],de.languages.cfc=de.languages.cfscript}},73435:function(Ge,be,de){"use strict";var le=de(87071);Ge.exports=Ie,Ie.displayName="chaiscript",Ie.aliases=[];function Ie(De){De.register(le),De.languages.chaiscript=De.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[De.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),De.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),De.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:De.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}},91372:function(Ge){"use strict";Ge.exports=be,be.displayName="cil",be.aliases=[];function be(de){de.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}},9720:function(Ge){"use strict";Ge.exports=be,be.displayName="clike",be.aliases=[];function be(de){de.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}},63663:function(Ge){"use strict";Ge.exports=be,be.displayName="clojure",be.aliases=[];function be(de){de.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}},92987:function(Ge){"use strict";Ge.exports=be,be.displayName="cmake",be.aliases=[];function be(de){de.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}},91657:function(Ge){"use strict";Ge.exports=be,be.displayName="cobol",be.aliases=[];function be(de){de.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}},34367:function(Ge){"use strict";Ge.exports=be,be.displayName="coffeescript",be.aliases=["coffee"];function be(de){(function(le){var Ie=/#(?!\{).+/,De={pattern:/#\{[^}]+\}/,alias:"variable"};le.languages.coffeescript=le.languages.extend("javascript",{comment:Ie,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:De}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),le.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:Ie,interpolation:De}}}),le.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:le.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:De}}]}),le.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete le.languages.coffeescript["template-string"],le.languages.coffee=le.languages.coffeescript})(de)}},35348:function(Ge){"use strict";Ge.exports=be,be.displayName="concurnas",be.aliases=["conc"];function be(de){de.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},de.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:de.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:de.languages.concurnas},string:/[\s\S]+/}}}),de.languages.conc=de.languages.concurnas}},26841:function(Ge){"use strict";Ge.exports=be,be.displayName="coq",be.aliases=[];function be(de){(function(le){for(var Ie=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,De=0;De<2;De++)Ie=Ie.replace(/<self>/g,function(){return Ie});Ie=Ie.replace(/<self>/g,"[]"),le.languages.coq={comment:RegExp(Ie),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return Ie})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(Ie),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(de)}},87071:function(Ge,be,de){"use strict";var le=de(79440);Ge.exports=Ie,Ie.displayName="cpp",Ie.aliases=[];function Ie(De){De.register(le),function(Le){var Ye=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,Re=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return Ye.source});Le.languages.cpp=Le.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return Ye.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:Ye,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),Le.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return Re})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),Le.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:Le.languages.cpp}}}}),Le.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),Le.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:Le.languages.extend("cpp",{})}}),Le.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},Le.languages.cpp["base-clause"])}(De)}},13652:function(Ge,be,de){"use strict";var le=de(75308);Ge.exports=Ie,Ie.displayName="crystal",Ie.aliases=[];function Ie(De){De.register(le),function(Le){Le.languages.crystal=Le.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,Le.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),Le.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:Le.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:Le.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(De)}},87648:function(Ge){"use strict";Ge.exports=be,be.displayName="csharp",be.aliases=["dotnet","cs"];function be(de){(function(le){function Ie(On,xt){return On.replace(/<<(\d+)>>/g,function(ct,it){return"(?:"+xt[+it]+")"})}function De(On,xt,ct){return RegExp(Ie(On,xt),ct||"")}function Le(On,xt){for(var ct=0;ct<xt;ct++)On=On.replace(/<<self>>/g,function(){return"(?:"+On+")"});return On.replace(/<<self>>/g,"[^\\s\\S]")}var Ye={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function Re(On){return"\\b(?:"+On.trim().replace(/ /g,"|")+")\\b"}var Ve=Re(Ye.typeDeclaration),Je=RegExp(Re(Ye.type+" "+Ye.typeDeclaration+" "+Ye.contextual+" "+Ye.other)),Xe=Re(Ye.typeDeclaration+" "+Ye.contextual+" "+Ye.other),qe=Re(Ye.type+" "+Ye.typeDeclaration+" "+Ye.other),mt=Le(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),st=Le(/\((?:[^()]|<<self>>)*\)/.source,2),Nt=/@?\b[A-Za-z_]\w*\b/.source,_e=Ie(/<<0>>(?:\s*<<1>>)?/.source,[Nt,mt]),te=Ie(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[Xe,_e]),ne=/\[\s*(?:,\s*)*\]/.source,he=Ie(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[te,ne]),se=Ie(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[mt,st,ne]),ge=Ie(/\(<<0>>+(?:,<<0>>+)+\)/.source,[se]),Se=Ie(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[ge,te,ne]),Ae={keyword:Je,punctuation:/[<>()?,.:[\]]/},Oe=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,Be=/"(?:\\.|[^\\"\r\n])*"/.source,Ke=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;le.languages.csharp=le.languages.extend("clike",{string:[{pattern:De(/(^|[^$\\])<<0>>/.source,[Ke]),lookbehind:!0,greedy:!0},{pattern:De(/(^|[^@$\\])<<0>>/.source,[Be]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:De(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[te]),lookbehind:!0,inside:Ae},{pattern:De(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[Nt,Se]),lookbehind:!0,inside:Ae},{pattern:De(/(\busing\s+)<<0>>(?=\s*=)/.source,[Nt]),lookbehind:!0},{pattern:De(/(\b<<0>>\s+)<<1>>/.source,[Ve,_e]),lookbehind:!0,inside:Ae},{pattern:De(/(\bcatch\s*\(\s*)<<0>>/.source,[te]),lookbehind:!0,inside:Ae},{pattern:De(/(\bwhere\s+)<<0>>/.source,[Nt]),lookbehind:!0},{pattern:De(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[he]),lookbehind:!0,inside:Ae},{pattern:De(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[Se,qe,Nt]),inside:Ae}],keyword:Je,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),le.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),le.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:De(/([(,]\s*)<<0>>(?=\s*:)/.source,[Nt]),lookbehind:!0,alias:"punctuation"}}),le.languages.insertBefore("csharp","class-name",{namespace:{pattern:De(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[Nt]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:De(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[st]),lookbehind:!0,alias:"class-name",inside:Ae},"return-type":{pattern:De(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[Se,te]),inside:Ae,alias:"class-name"},"constructor-invocation":{pattern:De(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[Se]),lookbehind:!0,inside:Ae,alias:"class-name"},"generic-method":{pattern:De(/<<0>>\s*<<1>>(?=\s*\()/.source,[Nt,mt]),inside:{function:De(/^<<0>>/.source,[Nt]),generic:{pattern:RegExp(mt),alias:"class-name",inside:Ae}}},"type-list":{pattern:De(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[Ve,_e,Nt,Se,Je.source,st,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:De(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[_e,st]),lookbehind:!0,greedy:!0,inside:le.languages.csharp},keyword:Je,"class-name":{pattern:RegExp(Se),greedy:!0,inside:Ae},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var rt=Be+"|"+Oe,ot=Ie(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[rt]),ht=Le(Ie(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[ot]),2),bt=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,at=Ie(/<<0>>(?:\s*\(<<1>>*\))?/.source,[te,ht]);le.languages.insertBefore("csharp","class-name",{attribute:{pattern:De(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[bt,at]),lookbehind:!0,greedy:!0,inside:{target:{pattern:De(/^<<0>>(?=\s*:)/.source,[bt]),alias:"keyword"},"attribute-arguments":{pattern:De(/\(<<0>>*\)/.source,[ht]),inside:le.languages.csharp},"class-name":{pattern:RegExp(te),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var At=/:[^}\r\n]+/.source,It=Le(Ie(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[ot]),2),$t=Ie(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[It,At]),Tn=Le(Ie(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[rt]),2),yn=Ie(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Tn,At]);function un(On,xt){return{interpolation:{pattern:De(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[On]),lookbehind:!0,inside:{"format-string":{pattern:De(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[xt,At]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:le.languages.csharp}}},string:/[\s\S]+/}}le.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:De(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[$t]),lookbehind:!0,greedy:!0,inside:un($t,It)},{pattern:De(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[yn]),lookbehind:!0,greedy:!0,inside:un(yn,Tn)}],char:{pattern:RegExp(Oe),greedy:!0}}),le.languages.dotnet=le.languages.cs=le.languages.csharp})(de)}},10617:function(Ge,be,de){"use strict";var le=de(87648);Ge.exports=Ie,Ie.displayName="cshtml",Ie.aliases=["razor"];function Ie(De){De.register(le),function(Le){var Ye=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,Re=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function Ve(he,se){for(var ge=0;ge<se;ge++)he=he.replace(/<self>/g,function(){return"(?:"+he+")"});return he.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+Re+")").replace(/<comment>/g,"(?:"+Ye+")")}var Je=Ve(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),Xe=Ve(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),qe=Ve(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),mt=Ve(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),st=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,Nt=/(?!\d)[^\s>\/=$<%]+/.source+st+/\s*\/?>/.source,_e=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+st+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+Nt+"|"+Ve(/<\1/.source+st+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+Nt+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+Nt+")";Le.languages.cshtml=Le.languages.extend("markup",{});var te=Le.languages.insertBefore("csharp","string",{html:{pattern:RegExp(_e),greedy:!0,inside:Le.languages.cshtml}},{csharp:Le.languages.extend("csharp",{})}),ne={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:te};Le.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[qe,/(?:code|functions)\s*/.source+qe,/(?:for|foreach|lock|switch|using|while)\s*/.source+Je+/\s*/.source+qe,/do\s*/.source+qe+/\s*while\s*/.source+Je+/(?:\s*;)?/.source,/try\s*/.source+qe+/\s*catch\s*/.source+Je+/\s*/.source+qe+/\s*finally\s*/.source+qe,/if\s*/.source+Je+/\s*/.source+qe+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+Je+")?"+/\s*/.source+qe+")*"].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:ne}},directive:{pattern:/^([ \t]*)@(?:addTagHelper|attribute|implements|inherits|inject|layout|model|namespace|page|preservewhitespace|removeTagHelper|section|tagHelperPrefix|using)(?=\s).*/m,lookbehind:!0,greedy:!0,inside:{keyword:/^@\w+/,csharp:ne}},value:{pattern:RegExp(/(^|[^@])@/.source+/(?:await\b\s*)?/.source+"(?:"+/\w+\b/.source+"|"+Je+")(?:"+/[?!]?\.\w+\b/.source+"|"+Je+"|"+Xe+"|"+mt+Je+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:ne}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),Le.languages.razor=Le.languages.cshtml}(De)}},5348:function(Ge){"use strict";Ge.exports=be,be.displayName="csp",be.aliases=[];function be(de){(function(le){function Ie(De){return RegExp(/([ \t])/.source+"(?:"+De+")"+/(?=[\s;]|$)/.source,"i")}le.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:Ie(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:Ie(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:Ie(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:Ie(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:Ie(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:Ie(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:Ie(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(de)}},71053:function(Ge){"use strict";Ge.exports=be,be.displayName="cssExtras",be.aliases=[];function be(de){(function(le){var Ie=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,De;le.languages.css.selector={pattern:le.languages.css.selector.pattern,lookbehind:!0,inside:De={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+Ie.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[Ie,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},le.languages.css.atrule.inside["selector-function-argument"].inside=De,le.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var Le={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},Ye={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};le.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:Le,number:Ye,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:Le,number:Ye})})(de)}},54212:function(Ge){"use strict";Ge.exports=be,be.displayName="css",be.aliases=[];function be(de){(function(le){var Ie=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;le.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+Ie.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+Ie.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+Ie.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:Ie,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},le.languages.css.atrule.inside.rest=le.languages.css;var De=le.languages.markup;De&&(De.tag.addInlined("style","css"),De.tag.addAttribute("style","css"))})(de)}},69820:function(Ge){"use strict";Ge.exports=be,be.displayName="csv",be.aliases=[];function be(de){de.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}},41929:function(Ge){"use strict";Ge.exports=be,be.displayName="cypher",be.aliases=[];function be(de){de.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}},51837:function(Ge){"use strict";Ge.exports=be,be.displayName="d",be.aliases=[];function be(de){de.languages.d=de.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),de.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),de.languages.insertBefore("d","keyword",{property:/\B@\w*/}),de.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}},4182:function(Ge){"use strict";Ge.exports=be,be.displayName="dart",be.aliases=[];function be(de){(function(le){var Ie=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],De=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,Le={pattern:RegExp(De+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};le.languages.dart=le.languages.extend("clike",{"class-name":[Le,{pattern:RegExp(De+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:Le.inside}],keyword:Ie,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),le.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:le.languages.dart}}},string:/[\s\S]+/}},string:void 0}),le.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),le.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":Le,keyword:Ie,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(de)}},22117:function(Ge){"use strict";Ge.exports=be,be.displayName="dataweave",be.aliases=[];function be(de){(function(le){le.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(de)}},95627:function(Ge){"use strict";Ge.exports=be,be.displayName="dax",be.aliases=[];function be(de){de.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}},34265:function(Ge){"use strict";Ge.exports=be,be.displayName="dhall",be.aliases=[];function be(de){de.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},de.languages.dhall.string.inside.interpolation.inside.expression.inside=de.languages.dhall}},50618:function(Ge){"use strict";Ge.exports=be,be.displayName="diff",be.aliases=[];function be(de){(function(le){le.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var Ie={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(Ie).forEach(function(De){var Le=Ie[De],Ye=[];/^\w+$/.test(De)||Ye.push(/\w+/.exec(De)[0]),De==="diff"&&Ye.push("bold"),le.languages.diff[De]={pattern:RegExp("^(?:["+Le+`].*(?:\r
|
|
|
?|
|
|
|
|(?![\\s\\S])))+`,"m"),alias:Ye,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(De)[0]}}}}),Object.defineProperty(le.languages.diff,"PREFIXES",{value:Ie})})(de)}},32126:function(Ge,be,de){"use strict";var le=de(51478);Ge.exports=Ie,Ie.displayName="django",Ie.aliases=["jinja2"];function Ie(De){De.register(le),function(Le){Le.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var Ye=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,Re=Le.languages["markup-templating"];Le.hooks.add("before-tokenize",function(Ve){Re.buildPlaceholders(Ve,"django",Ye)}),Le.hooks.add("after-tokenize",function(Ve){Re.tokenizePlaceholders(Ve,"django")}),Le.languages.jinja2=Le.languages.django,Le.hooks.add("before-tokenize",function(Ve){Re.buildPlaceholders(Ve,"jinja2",Ye)}),Le.hooks.add("after-tokenize",function(Ve){Re.tokenizePlaceholders(Ve,"jinja2")})}(De)}},26737:function(Ge){"use strict";Ge.exports=be,be.displayName="dnsZoneFile",be.aliases=[];function be(de){de.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},de.languages["dns-zone"]=de.languages["dns-zone-file"]}},90134:function(Ge){"use strict";Ge.exports=be,be.displayName="docker",be.aliases=["dockerfile"];function be(de){(function(le){var Ie=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,De=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return Ie}),Le=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,Ye=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return Le}),Re={pattern:RegExp(Le),greedy:!0},Ve={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function Je(Xe,qe){return Xe=Xe.replace(/<OPT>/g,function(){return Ye}).replace(/<SP>/g,function(){return De}),RegExp(Xe,qe)}le.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:Je(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[Re,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:Je(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:Je(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:Je(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:Ve,string:Re,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:Ve},le.languages.dockerfile=le.languages.docker})(de)}},51348:function(Ge){"use strict";Ge.exports=be,be.displayName="dot",be.aliases=["gv"];function be(de){(function(le){var Ie="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",De={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:le.languages.markup}};function Le(Ye,Re){return RegExp(Ye.replace(/<ID>/g,function(){return Ie}),Re)}le.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:Le(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:De},"attr-value":{pattern:Le(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:De},"attr-name":{pattern:Le(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:De},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:Le(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:De},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},le.languages.gv=le.languages.dot})(de)}},60841:function(Ge){"use strict";Ge.exports=be,be.displayName="ebnf",be.aliases=[];function be(de){de.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}},42857:function(Ge){"use strict";Ge.exports=be,be.displayName="editorconfig",be.aliases=[];function be(de){de.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}},81269:function(Ge){"use strict";Ge.exports=be,be.displayName="eiffel",be.aliases=[];function be(de){de.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}},31134:function(Ge,be,de){"use strict";var le=de(51478);Ge.exports=Ie,Ie.displayName="ejs",Ie.aliases=["eta"];function Ie(De){De.register(le),function(Le){Le.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:Le.languages.javascript}},Le.hooks.add("before-tokenize",function(Ye){var Re=/<%(?!%)[\s\S]+?%>/g;Le.languages["markup-templating"].buildPlaceholders(Ye,"ejs",Re)}),Le.hooks.add("after-tokenize",function(Ye){Le.languages["markup-templating"].tokenizePlaceholders(Ye,"ejs")}),Le.languages.eta=Le.languages.ejs}(De)}},83125:function(Ge){"use strict";Ge.exports=be,be.displayName="elixir",be.aliases=[];function be(de){de.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},de.languages.elixir.string.forEach(function(le){le.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:de.languages.elixir}}}})}},9438:function(Ge){"use strict";Ge.exports=be,be.displayName="elm",be.aliases=[];function be(de){de.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}},27771:function(Ge,be,de){"use strict";var le=de(75308),Ie=de(51478);Ge.exports=De,De.displayName="erb",De.aliases=[];function De(Le){Le.register(le),Le.register(Ie),function(Ye){Ye.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:Ye.languages.ruby}},Ye.hooks.add("before-tokenize",function(Re){var Ve=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;Ye.languages["markup-templating"].buildPlaceholders(Re,"erb",Ve)}),Ye.hooks.add("after-tokenize",function(Re){Ye.languages["markup-templating"].tokenizePlaceholders(Re,"erb")})}(Le)}},86549:function(Ge){"use strict";Ge.exports=be,be.displayName="erlang",be.aliases=[];function be(de){de.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}},37079:function(Ge,be,de){"use strict";var le=de(33978),Ie=de(51478);Ge.exports=De,De.displayName="etlua",De.aliases=[];function De(Le){Le.register(le),Le.register(Ie),function(Ye){Ye.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:Ye.languages.lua}},Ye.hooks.add("before-tokenize",function(Re){var Ve=/<%[\s\S]+?%>/g;Ye.languages["markup-templating"].buildPlaceholders(Re,"etlua",Ve)}),Ye.hooks.add("after-tokenize",function(Re){Ye.languages["markup-templating"].tokenizePlaceholders(Re,"etlua")})}(Le)}},59250:function(Ge){"use strict";Ge.exports=be,be.displayName="excelFormula",be.aliases=[];function be(de){de.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},de.languages.xlsx=de.languages.xls=de.languages["excel-formula"]}},81226:function(Ge){"use strict";Ge.exports=be,be.displayName="factor",be.aliases=[];function be(de){(function(le){var Ie={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},De={number:/\\[^\s']|%\w/},Le={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:Ie},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:Ie},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:Ie}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:De.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:De},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:De}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:De}},Ye=function(Xe){return(Xe+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},Re=function(Xe){return new RegExp("(^|\\s)(?:"+Xe.map(Ye).join("|")+")(?=\\s|$)")},Ve={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","<wrapper>","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated","<PRIVATE",">>>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","<slice>","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","<iota>","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","<reversed>","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","<repetition>","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","<fp-nan>","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(Ve).forEach(function(Xe){Le[Xe].pattern=Re(Ve[Xe])});var Je=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","input<sequence","append-outputs","drop-inputs","inputs","smart-2reduce","drop-outputs","smart-reduce","preserving","smart-when","outputs","append-outputs-as","smart-unless","smart-if*","sum-outputs","input<sequence-unsafe","output>sequence"];Le.combinators.pattern=Re(Je),le.languages.factor=Le})(de)}},65245:function(Ge){"use strict";Ge.exports=be,be.displayName="$false",be.aliases=[];function be(de){(function(le){le.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()<BDO®]/,alias:"bold"}}})(de)}},25040:function(Ge){"use strict";Ge.exports=be,be.displayName="firestoreSecurityRules",be.aliases=[];function be(de){de.languages["firestore-security-rules"]=de.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete de.languages["firestore-security-rules"]["class-name"],de.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}},40284:function(Ge){"use strict";Ge.exports=be,be.displayName="flow",be.aliases=[];function be(de){(function(le){le.languages.flow=le.languages.extend("javascript",{}),le.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),le.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete le.languages.flow.parameter,le.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(le.languages.flow.keyword)||(le.languages.flow.keyword=[le.languages.flow.keyword]),le.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(de)}},39187:function(Ge){"use strict";Ge.exports=be,be.displayName="fortran",be.aliases=[];function be(de){de.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}},34302:function(Ge){"use strict";Ge.exports=be,be.displayName="fsharp",be.aliases=[];function be(de){de.languages.fsharp=de.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|<?\|{1,3}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),de.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),de.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),de.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:de.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}},90515:function(Ge,be,de){"use strict";var le=de(51478);Ge.exports=Ie,Ie.displayName="ftl",Ie.aliases=[];function Ie(De){De.register(le),function(Le){for(var Ye=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,Re=0;Re<2;Re++)Ye=Ye.replace(/<expr>/g,function(){return Ye});Ye=Ye.replace(/<expr>/g,/[^\s\S]/.source);var Ve={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return Ye})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return Ye})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};Ve.string[1].inside.interpolation.inside.rest=Ve,Le.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:Ve}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:Ve}}}},Le.hooks.add("before-tokenize",function(Je){var Xe=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return Ye}),"gi");Le.languages["markup-templating"].buildPlaceholders(Je,"ftl",Xe)}),Le.hooks.add("after-tokenize",function(Je){Le.languages["markup-templating"].tokenizePlaceholders(Je,"ftl")})}(De)}},33534:function(Ge){"use strict";Ge.exports=be,be.displayName="gap",be.aliases=[];function be(de){de.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},de.languages.gap.shell.inside.gap.inside=de.languages.gap}},9885:function(Ge){"use strict";Ge.exports=be,be.displayName="gcode",be.aliases=[];function be(de){de.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}},76364:function(Ge){"use strict";Ge.exports=be,be.displayName="gdscript",be.aliases=[];function be(de){de.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}},56452:function(Ge){"use strict";Ge.exports=be,be.displayName="gedcom",be.aliases=[];function be(de){de.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}},8477:function(Ge){"use strict";Ge.exports=be,be.displayName="gherkin",be.aliases=[];function be(de){(function(le){var Ie=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;le.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+Ie+")(?:"+Ie+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(Ie),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(de)}},58230:function(Ge){"use strict";Ge.exports=be,be.displayName="git",be.aliases=[];function be(de){de.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}},66192:function(Ge,be,de){"use strict";var le=de(79440);Ge.exports=Ie,Ie.displayName="glsl",Ie.aliases=[];function Ie(De){De.register(le),De.languages.glsl=De.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}},81084:function(Ge){"use strict";Ge.exports=be,be.displayName="gml",be.aliases=[];function be(de){de.languages.gamemakerlanguage=de.languages.gml=de.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}},50318:function(Ge){"use strict";Ge.exports=be,be.displayName="gn",be.aliases=["gni"];function be(de){de.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},de.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=de.languages.gn,de.languages.gni=de.languages.gn}},95769:function(Ge){"use strict";Ge.exports=be,be.displayName="goModule",be.aliases=[];function be(de){de.languages["go-mod"]=de.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}},14155:function(Ge){"use strict";Ge.exports=be,be.displayName="go",be.aliases=[];function be(de){de.languages.go=de.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),de.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete de.languages.go["class-name"]}},92823:function(Ge){"use strict";Ge.exports=be,be.displayName="graphql",be.aliases=[];function be(de){de.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:de.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},de.hooks.add("after-tokenize",function(Ie){if(Ie.language!=="graphql")return;var De=Ie.tokens.filter(function(ne){return typeof ne!="string"&&ne.type!=="comment"&&ne.type!=="scalar"}),Le=0;function Ye(ne){return De[Le+ne]}function Re(ne,he){he=he||0;for(var se=0;se<ne.length;se++){var ge=Ye(se+he);if(!ge||ge.type!==ne[se])return!1}return!0}function Ve(ne,he){for(var se=1,ge=Le;ge<De.length;ge++){var Se=De[ge],Ae=Se.content;if(Se.type==="punctuation"&&typeof Ae=="string"){if(ne.test(Ae))se++;else if(he.test(Ae)&&(se--,se===0))return ge}}return-1}function Je(ne,he){var se=ne.alias;se?Array.isArray(se)||(ne.alias=se=[se]):ne.alias=se=[],se.push(he)}for(;Le<De.length;){var Xe=De[Le++];if(Xe.type==="keyword"&&Xe.content==="mutation"){var qe=[];if(Re(["definition-mutation","punctuation"])&&Ye(1).content==="("){Le+=2;var mt=Ve(/^\($/,/^\)$/);if(mt===-1)continue;for(;Le<mt;Le++){var st=Ye(0);st.type==="variable"&&(Je(st,"variable-input"),qe.push(st.content))}Le=mt+1}if(Re(["punctuation","property-query"])&&Ye(0).content==="{"&&(Le++,Je(Ye(0),"property-mutation"),qe.length>0)){var Nt=Ve(/^\{$/,/^\}$/);if(Nt===-1)continue;for(var _e=Le;_e<Nt;_e++){var te=De[_e];te.type==="variable"&&qe.indexOf(te.content)>=0&&Je(te,"variable-input")}}}}})}},63092:function(Ge){"use strict";Ge.exports=be,be.displayName="groovy",be.aliases=[];function be(de){de.languages.groovy=de.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),de.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),de.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),de.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),de.hooks.add("wrap",function(le){if(le.language==="groovy"&&le.type==="string"){var Ie=le.content.value[0];if(Ie!="'"){var De=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;Ie==="$"&&(De=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),le.content.value=le.content.value.replace(/</g,"<").replace(/&/g,"&"),le.content=de.highlight(le.content.value,{expression:{pattern:De,lookbehind:!0,inside:de.languages.groovy}}),le.classes.push(Ie==="/"?"regex":"gstring")}}})}},21550:function(Ge,be,de){"use strict";var le=de(75308);Ge.exports=Ie,Ie.displayName="haml",Ie.aliases=[];function Ie(De){De.register(le),function(Le){Le.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:Le.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:Le.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:Le.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:Le.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:Le.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:Le.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:Le.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var Ye="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",Re=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],Ve={},Je=0,Xe=Re.length;Je<Xe;Je++){var qe=Re[Je];qe=typeof qe=="string"?{filter:qe,language:qe}:qe,Le.languages[qe.language]&&(Ve["filter-"+qe.filter]={pattern:RegExp(Ye.replace("{{filter_name}}",function(){return qe.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[qe.language,"language-"+qe.language],inside:Le.languages[qe.language]}}})}Le.languages.insertBefore("haml","filter",Ve)}(De)}},29710:function(Ge,be,de){"use strict";var le=de(51478);Ge.exports=Ie,Ie.displayName="handlebars",Ie.aliases=["hbs"];function Ie(De){De.register(le),function(Le){Le.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},Le.hooks.add("before-tokenize",function(Ye){var Re=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;Le.languages["markup-templating"].buildPlaceholders(Ye,"handlebars",Re)}),Le.hooks.add("after-tokenize",function(Ye){Le.languages["markup-templating"].tokenizePlaceholders(Ye,"handlebars")}),Le.languages.hbs=Le.languages.handlebars}(De)}},2050:function(Ge){"use strict";Ge.exports=be,be.displayName="haskell",be.aliases=["hs"];function be(de){de.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},de.languages.hs=de.languages.haskell}},67967:function(Ge){"use strict";Ge.exports=be,be.displayName="haxe",be.aliases=[];function be(de){de.languages.haxe=de.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<<?|>{1,3}|[-+*/%!=&|^])=?|[?:~]/}),de.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:de.languages.haxe}}},string:/[\s\S]+/}}}),de.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:de.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),de.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}},29138:function(Ge){"use strict";Ge.exports=be,be.displayName="hcl",be.aliases=[];function be(de){de.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}},67915:function(Ge,be,de){"use strict";var le=de(79440);Ge.exports=Ie,Ie.displayName="hlsl",Ie.aliases=[];function Ie(De){De.register(le),De.languages.hlsl=De.languages.extend("c",{"class-name":[De.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}},54853:function(Ge){"use strict";Ge.exports=be,be.displayName="hoon",be.aliases=[];function be(de){de.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}},68330:function(Ge){"use strict";Ge.exports=be,be.displayName="hpkp",be.aliases=[];function be(de){de.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},76823:function(Ge){"use strict";Ge.exports=be,be.displayName="hsts",be.aliases=[];function be(de){de.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},86712:function(Ge){"use strict";Ge.exports=be,be.displayName="http",be.aliases=[];function be(de){(function(le){function Ie(qe){return RegExp("(^(?:"+qe+"):[ ]*(?![ ]))[^]+","i")}le.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:le.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:Ie(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:le.languages.csp},{pattern:Ie(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:le.languages.hpkp},{pattern:Ie(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:le.languages.hsts},{pattern:Ie(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var De=le.languages,Le={"application/javascript":De.javascript,"application/json":De.json||De.javascript,"application/xml":De.xml,"text/xml":De.xml,"text/html":De.html,"text/css":De.css,"text/plain":De.plain},Ye={"application/json":!0,"application/xml":!0};function Re(qe){var mt=qe.replace(/^[a-z]+\//,""),st="\\w+/(?:[\\w.-]+\\+)+"+mt+"(?![+\\w.-])";return"(?:"+qe+"|"+st+")"}var Ve;for(var Je in Le)if(Le[Je]){Ve=Ve||{};var Xe=Ye[Je]?Re(Je):Je;Ve[Je.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+Xe+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:Le[Je]}}Ve&&le.languages.insertBefore("http","header",Ve)})(de)}},72252:function(Ge){"use strict";Ge.exports=be,be.displayName="ichigojam",be.aliases=[];function be(de){de.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}},78634:function(Ge){"use strict";Ge.exports=be,be.displayName="icon",be.aliases=[];function be(de){de.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|<?=?)|>>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}},43583:function(Ge){"use strict";Ge.exports=be,be.displayName="icuMessageFormat",be.aliases=[];function be(de){(function(le){function Ie(Je,Xe){return Xe<=0?/[]/.source:Je.replace(/<SELF>/g,function(){return Ie(Je,Xe-1)})}var De=/'[{}:=,](?:[^']|'')*'(?!')/,Le={pattern:/''/,greedy:!0,alias:"operator"},Ye={pattern:De,greedy:!0,inside:{escape:Le}},Re=Ie(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return De.source}),8),Ve={pattern:RegExp(Re),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};le.languages["icu-message-format"]={argument:{pattern:RegExp(Re),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":Ve,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":Ve,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+Ie(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:Le,string:Ye},Ve.inside.message.inside=le.languages["icu-message-format"],le.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=le.languages["icu-message-format"]})(de)}},23328:function(Ge,be,de){"use strict";var le=de(2050);Ge.exports=Ie,Ie.displayName="idris",Ie.aliases=["idr"];function Ie(De){De.register(le),De.languages.idris=De.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),De.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),De.languages.idr=De.languages.idris}},74494:function(Ge){"use strict";Ge.exports=be,be.displayName="iecst",be.aliases=[];function be(de){de.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}},46745:function(Ge){"use strict";Ge.exports=be,be.displayName="ignore",be.aliases=["gitignore","hgignore","npmignore"];function be(de){(function(le){le.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},le.languages.gitignore=le.languages.ignore,le.languages.hgignore=le.languages.ignore,le.languages.npmignore=le.languages.ignore})(de)}},22152:function(Ge){"use strict";Ge.exports=be,be.displayName="inform7",be.aliases=[];function be(de){de.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},de.languages.inform7.string.inside.substitution.inside.rest=de.languages.inform7,de.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}},83698:function(Ge){"use strict";Ge.exports=be,be.displayName="ini",be.aliases=[];function be(de){de.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}},26619:function(Ge){"use strict";Ge.exports=be,be.displayName="io",be.aliases=[];function be(de){de.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<<?=?|:?:?=|\+\+?|--?|\*\*?|\/\/?|%|\|\|?|&&?|\b(?:and|not|or|return)\b|@@?|\?\??|\.\./,punctuation:/[{}[\];(),.:]/}}},53990:function(Ge){"use strict";Ge.exports=be,be.displayName="j",be.aliases=[];function be(de){de.languages.j={comment:{pattern:/\bNB\..*/,greedy:!0},string:{pattern:/'(?:''|[^'\r\n])*'/,greedy:!0},keyword:/\b(?:(?:CR|LF|adverb|conjunction|def|define|dyad|monad|noun|verb)\b|(?:assert|break|case|catch[dt]?|continue|do|else|elseif|end|fcase|for|for_\w+|goto_\w+|if|label_\w+|return|select|throw|try|while|whilst)\.)/,verb:{pattern:/(?!\^:|;\.|[=!][.:])(?:\{(?:\.|::?)?|p(?:\.\.?|:)|[=!\]]|[<>+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}},7093:function(Ge){"use strict";Ge.exports=be,be.displayName="java",be.aliases=[];function be(de){(function(le){var Ie=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,De=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,Le={pattern:RegExp(De+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};le.languages.java=le.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[Le,{pattern:RegExp(De+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:Le.inside}],keyword:Ie,function:[le.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),le.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),le.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":Le,keyword:Ie,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return Ie.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(de)}},4005:function(Ge,be,de){"use strict";var le=de(7093),Ie=de(53510);Ge.exports=De,De.displayName="javadoc",De.aliases=[];function De(Le){Le.register(le),Le.register(Ie),function(Ye){var Re=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,Ve=/#\s*\w+(?:\s*\([^()]*\))?/.source,Je=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return Ve});Ye.languages.javadoc=Ye.languages.extend("javadoclike",{}),Ye.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+Je+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:Ye.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:Re,lookbehind:!0,inside:Ye.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:Re,lookbehind:!0,inside:{tag:Ye.languages.markup.tag,entity:Ye.languages.markup.entity,code:{pattern:/.+/,inside:Ye.languages.java,alias:"language-java"}}}}}],tag:Ye.languages.markup.tag,entity:Ye.languages.markup.entity}),Ye.languages.javadoclike.addSupport("java",Ye.languages.javadoc)}(Le)}},53510:function(Ge){"use strict";Ge.exports=be,be.displayName="javadoclike",be.aliases=[];function be(de){(function(le){var Ie=le.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function De(Ye,Re){var Ve="doc-comment",Je=le.languages[Ye];if(Je){var Xe=Je[Ve];if(!Xe){var qe={};qe[Ve]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},Je=le.languages.insertBefore(Ye,"comment",qe),Xe=Je[Ve]}if(Xe instanceof RegExp&&(Xe=Je[Ve]={pattern:Xe}),Array.isArray(Xe))for(var mt=0,st=Xe.length;mt<st;mt++)Xe[mt]instanceof RegExp&&(Xe[mt]={pattern:Xe[mt]}),Re(Xe[mt]);else Re(Xe)}}function Le(Ye,Re){typeof Ye=="string"&&(Ye=[Ye]),Ye.forEach(function(Ve){De(Ve,function(Je){Je.inside||(Je.inside={}),Je.inside.rest=Re})})}Object.defineProperty(Ie,"addSupport",{value:Le}),Ie.addSupport(["java","javascript","php"],Ie)})(de)}},88786:function(Ge){"use strict";Ge.exports=be,be.displayName="javascript",be.aliases=["js"];function be(de){de.languages.javascript=de.languages.extend("clike",{"class-name":[de.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),de.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,de.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:de.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:de.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:de.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:de.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:de.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),de.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:de.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),de.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),de.languages.markup&&(de.languages.markup.tag.addInlined("script","javascript"),de.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),de.languages.js=de.languages.javascript}},24799:function(Ge){"use strict";Ge.exports=be,be.displayName="javastacktrace",be.aliases=[];function be(de){de.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:<init>)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:<init>|[\w$]+)\()/,function:/(?:<init>|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}},97443:function(Ge){"use strict";Ge.exports=be,be.displayName="jexl",be.aliases=[];function be(de){de.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}},80746:function(Ge){"use strict";Ge.exports=be,be.displayName="jolie",be.aliases=[];function be(de){de.languages.jolie=de.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),de.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}},17015:function(Ge){"use strict";Ge.exports=be,be.displayName="jq",be.aliases=[];function be(de){(function(le){var Ie=/\\\((?:[^()]|\([^()]*\))*\)/.source,De=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return Ie})),Le={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+Ie),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},Ye=le.languages.jq={comment:/#.*/,property:{pattern:RegExp(De.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:Le},string:{pattern:De,lookbehind:!0,greedy:!0,inside:Le},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};Le.interpolation.inside.content.inside=Ye})(de)}},89246:function(Ge){"use strict";Ge.exports=be,be.displayName="jsExtras",be.aliases=[];function be(de){(function(le){le.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+le.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),le.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+le.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),le.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function Ie(Je,Xe){return RegExp(Je.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),Xe)}le.languages.insertBefore("javascript","keyword",{imports:{pattern:Ie(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:le.languages.javascript},exports:{pattern:Ie(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:le.languages.javascript}}),le.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),le.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),le.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:Ie(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var De=["function","function-variable","method","method-variable","property-access"],Le=0;Le<De.length;Le++){var Ye=De[Le],Re=le.languages.javascript[Ye];le.util.type(Re)==="RegExp"&&(Re=le.languages.javascript[Ye]={pattern:Re});var Ve=Re.inside||{};Re.inside=Ve,Ve["maybe-class-name"]=/^[A-Z][\s\S]*/}})(de)}},487:function(Ge){"use strict";Ge.exports=be,be.displayName="jsTemplates",be.aliases=[];function be(de){(function(le){var Ie=le.languages.javascript["template-string"],De=Ie.pattern.source,Le=Ie.inside.interpolation,Ye=Le.inside["interpolation-punctuation"],Re=Le.pattern.source;function Ve(_e,te){if(le.languages[_e])return{pattern:RegExp("((?:"+te+")\\s*)"+De),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:_e}}}}le.languages.javascript["template-string"]=[Ve("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),Ve("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),Ve("svg",/\bsvg/.source),Ve("markdown",/\b(?:markdown|md)/.source),Ve("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),Ve("sql",/\bsql/.source),Ie].filter(Boolean);function Je(_e,te){return"___"+te.toUpperCase()+"_"+_e+"___"}function Xe(_e,te,ne){var he={code:_e,grammar:te,language:ne};return le.hooks.run("before-tokenize",he),he.tokens=le.tokenize(he.code,he.grammar),le.hooks.run("after-tokenize",he),he.tokens}function qe(_e){var te={};te["interpolation-punctuation"]=Ye;var ne=le.tokenize(_e,te);if(ne.length===3){var he=[1,1];he.push.apply(he,Xe(ne[1],le.languages.javascript,"javascript")),ne.splice.apply(ne,he)}return new le.Token("interpolation",ne,Le.alias,_e)}function mt(_e,te,ne){var he=le.tokenize(_e,{interpolation:{pattern:RegExp(Re),lookbehind:!0}}),se=0,ge={},Se=he.map(function(Ke){if(typeof Ke=="string")return Ke;for(var rt=Ke.content,ot;_e.indexOf(ot=Je(se++,ne))!==-1;);return ge[ot]=rt,ot}).join(""),Ae=Xe(Se,te,ne),Oe=Object.keys(ge);se=0;function Be(Ke){for(var rt=0;rt<Ke.length;rt++){if(se>=Oe.length)return;var ot=Ke[rt];if(typeof ot=="string"||typeof ot.content=="string"){var ht=Oe[se],bt=typeof ot=="string"?ot:ot.content,at=bt.indexOf(ht);if(at!==-1){++se;var At=bt.substring(0,at),It=qe(ge[ht]),$t=bt.substring(at+ht.length),Tn=[];if(At&&Tn.push(At),Tn.push(It),$t){var yn=[$t];Be(yn),Tn.push.apply(Tn,yn)}typeof ot=="string"?(Ke.splice.apply(Ke,[rt,1].concat(Tn)),rt+=Tn.length-1):ot.content=Tn}}else{var un=ot.content;Array.isArray(un)?Be(un):Be([un])}}}return Be(Ae),new le.Token(ne,Ae,"language-"+ne,_e)}var st={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};le.hooks.add("after-tokenize",function(_e){if(!(_e.language in st))return;function te(ne){for(var he=0,se=ne.length;he<se;he++){var ge=ne[he];if(typeof ge!="string"){var Se=ge.content;if(!Array.isArray(Se)){typeof Se!="string"&&te([Se]);continue}if(ge.type==="template-string"){var Ae=Se[1];if(Se.length===3&&typeof Ae!="string"&&Ae.type==="embedded-code"){var Oe=Nt(Ae),Be=Ae.alias,Ke=Array.isArray(Be)?Be[0]:Be,rt=le.languages[Ke];if(!rt)continue;Se[1]=mt(Oe,rt,Ke)}}else te(Se)}}}te(_e.tokens)});function Nt(_e){return typeof _e=="string"?_e:Array.isArray(_e)?_e.map(Nt).join(""):Nt(_e.content)}})(de)}},79539:function(Ge,be,de){"use strict";var le=de(53510),Ie=de(92784);Ge.exports=De,De.displayName="jsdoc",De.aliases=[];function De(Le){Le.register(le),Le.register(Ie),function(Ye){var Re=Ye.languages.javascript,Ve=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,Je="(@(?:arg|argument|param|property)\\s+(?:"+Ve+"\\s+)?)";Ye.languages.jsdoc=Ye.languages.extend("javadoclike",{parameter:{pattern:RegExp(Je+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),Ye.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(Je+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:Re,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return Ve})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+Ve),lookbehind:!0,inside:{string:Re.string,number:Re.number,boolean:Re.boolean,keyword:Ye.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:Re,alias:"language-javascript"}}}}),Ye.languages.javadoclike.addSupport("javascript",Ye.languages.jsdoc)}(Le)}},15628:function(Ge){"use strict";Ge.exports=be,be.displayName="json",be.aliases=["webmanifest"];function be(de){de.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},de.languages.webmanifest=de.languages.json}},14320:function(Ge,be,de){"use strict";var le=de(15628);Ge.exports=Ie,Ie.displayName="json5",Ie.aliases=[];function Ie(De){De.register(le),function(Le){var Ye=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;Le.languages.json5=Le.languages.extend("json",{property:[{pattern:RegExp(Ye.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:Ye,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(De)}},73222:function(Ge,be,de){"use strict";var le=de(15628);Ge.exports=Ie,Ie.displayName="jsonp",Ie.aliases=[];function Ie(De){De.register(le),De.languages.jsonp=De.languages.extend("json",{punctuation:/[{}[\]();,.]/}),De.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}},92486:function(Ge){"use strict";Ge.exports=be,be.displayName="jsstacktrace",be.aliases=[];function be(de){de.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js|<unknown>|.*(?:node_modules|\(<anonymous>\)|\(<unknown>|<anonymous>$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}},24103:function(Ge){"use strict";Ge.exports=be,be.displayName="jsx",be.aliases=[];function be(de){(function(le){var Ie=le.util.clone(le.languages.javascript),De=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,Le=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,Ye=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function Re(Xe,qe){return Xe=Xe.replace(/<S>/g,function(){return De}).replace(/<BRACES>/g,function(){return Le}).replace(/<SPREAD>/g,function(){return Ye}),RegExp(Xe,qe)}Ye=Re(Ye).source,le.languages.jsx=le.languages.extend("markup",Ie),le.languages.jsx.tag.pattern=Re(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),le.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,le.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,le.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,le.languages.jsx.tag.inside.comment=Ie.comment,le.languages.insertBefore("inside","attr-name",{spread:{pattern:Re(/<SPREAD>/.source),inside:le.languages.jsx}},le.languages.jsx.tag),le.languages.insertBefore("inside","special-attr",{script:{pattern:Re(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:le.languages.jsx}}},le.languages.jsx.tag);var Ve=function(Xe){return Xe?typeof Xe=="string"?Xe:typeof Xe.content=="string"?Xe.content:Xe.content.map(Ve).join(""):""},Je=function(Xe){for(var qe=[],mt=0;mt<Xe.length;mt++){var st=Xe[mt],Nt=!1;if(typeof st!="string"&&(st.type==="tag"&&st.content[0]&&st.content[0].type==="tag"?st.content[0].content[0].content==="</"?qe.length>0&&qe[qe.length-1].tagName===Ve(st.content[0].content[1])&&qe.pop():st.content[st.content.length-1].content==="/>"||qe.push({tagName:Ve(st.content[0].content[1]),openedBraces:0}):qe.length>0&&st.type==="punctuation"&&st.content==="{"?qe[qe.length-1].openedBraces++:qe.length>0&&qe[qe.length-1].openedBraces>0&&st.type==="punctuation"&&st.content==="}"?qe[qe.length-1].openedBraces--:Nt=!0),(Nt||typeof st=="string")&&qe.length>0&&qe[qe.length-1].openedBraces===0){var _e=Ve(st);mt<Xe.length-1&&(typeof Xe[mt+1]=="string"||Xe[mt+1].type==="plain-text")&&(_e+=Ve(Xe[mt+1]),Xe.splice(mt+1,1)),mt>0&&(typeof Xe[mt-1]=="string"||Xe[mt-1].type==="plain-text")&&(_e=Ve(Xe[mt-1])+_e,Xe.splice(mt-1,1),mt--),Xe[mt]=new le.Token("plain-text",_e,null,_e)}st.content&&typeof st.content!="string"&&Je(st.content)}};le.hooks.add("after-tokenize",function(Xe){Xe.language!=="jsx"&&Xe.language!=="tsx"||Je(Xe.tokens)})})(de)}},40604:function(Ge){"use strict";Ge.exports=be,be.displayName="julia",be.aliases=[];function be(de){de.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}},23109:function(Ge){"use strict";Ge.exports=be,be.displayName="keepalived",be.aliases=[];function be(de){de.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}<ipv4>|(?:[\da-f]{1,4}:){0,5}:<ipv4>|::(?:[\da-f]{1,4}:){0,5}<ipv4>|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|<ipv4>(?:\/\d{1,2})?)\b/.source.replace(/<ipv4>/g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}},32082:function(Ge){"use strict";Ge.exports=be,be.displayName="keyman",be.aliases=[];function be(de){de.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}},77674:function(Ge){"use strict";Ge.exports=be,be.displayName="kotlin",be.aliases=["kt","kts"];function be(de){(function(le){le.languages.kotlin=le.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete le.languages.kotlin["class-name"];var Ie={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:le.languages.kotlin}};le.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:Ie},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:Ie},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete le.languages.kotlin.string,le.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),le.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),le.languages.kt=le.languages.kotlin,le.languages.kts=le.languages.kotlin})(de)}},37524:function(Ge){"use strict";Ge.exports=be,be.displayName="kumir",be.aliases=["kum"];function be(de){(function(le){var Ie=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function De(Le,Ye){return RegExp(Le.replace(/<nonId>/g,Ie),Ye)}le.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:De(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:De(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:De(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:De(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:De(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:De(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:De(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:De(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},le.languages.kum=le.languages.kumir})(de)}},6658:function(Ge){"use strict";Ge.exports=be,be.displayName="kusto",be.aliases=[];function be(de){de.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}},24824:function(Ge){"use strict";Ge.exports=be,be.displayName="latex",be.aliases=["tex","context"];function be(de){(function(le){var Ie=/\\(?:[^a-z()[\]]|[a-z*]+)/i,De={"equation-command":{pattern:Ie,alias:"regex"}};le.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:De,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:De,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:Ie,alias:"selector"},punctuation:/[[\]{}&]/},le.languages.tex=le.languages.latex,le.languages.context=le.languages.latex})(de)}},22776:function(Ge,be,de){"use strict";var le=de(51478),Ie=de(53852);Ge.exports=De,De.displayName="latte",De.aliases=[];function De(Le){Le.register(le),Le.register(Ie),function(Ye){Ye.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:Ye.languages.php}};var Re=Ye.languages.extend("markup",{});Ye.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:Ye.languages.php}}}}}},Re.tag),Ye.hooks.add("before-tokenize",function(Ve){if(Ve.language==="latte"){var Je=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;Ye.languages["markup-templating"].buildPlaceholders(Ve,"latte",Je),Ve.grammar=Re}}),Ye.hooks.add("after-tokenize",function(Ve){Ye.languages["markup-templating"].tokenizePlaceholders(Ve,"latte")})}(Le)}},89700:function(Ge){"use strict";Ge.exports=be,be.displayName="less",be.aliases=[];function be(de){de.languages.less=de.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),de.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}},99296:function(Ge,be,de){"use strict";var le=de(48780);Ge.exports=Ie,Ie.displayName="lilypond",Ie.aliases=[];function Ie(De){De.register(le),function(Le){for(var Ye=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,Re=5,Ve=0;Ve<Re;Ve++)Ye=Ye.replace(/<expr>/g,function(){return Ye});Ye=Ye.replace(/<expr>/g,/[^\s\S]/.source);var Je=Le.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return Ye}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:Le.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};Je["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=Je,Le.languages.ly=Je}(De)}},39940:function(Ge,be,de){"use strict";var le=de(51478);Ge.exports=Ie,Ie.displayName="liquid",Ie.aliases=[];function Ie(De){De.register(le),De.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},De.hooks.add("before-tokenize",function(Le){var Ye=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,Re=!1;De.languages["markup-templating"].buildPlaceholders(Le,"liquid",Ye,function(Ve){var Je=/^\{%-?\s*(\w+)/.exec(Ve);if(Je){var Xe=Je[1];if(Xe==="raw"&&!Re)return Re=!0,!0;if(Xe==="endraw")return Re=!1,!0}return!Re})}),De.hooks.add("after-tokenize",function(Le){De.languages["markup-templating"].tokenizePlaceholders(Le,"liquid")})}},34973:function(Ge){"use strict";Ge.exports=be,be.displayName="lisp",be.aliases=[];function be(de){(function(le){function Ie(_e){return RegExp(/(\()/.source+"(?:"+_e+")"+/(?=[\s\)])/.source)}function De(_e){return RegExp(/([\s([])/.source+"(?:"+_e+")"+/(?=[\s)])/.source)}var Le=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,Ye="&"+Le,Re="(\\()",Ve="(?=\\))",Je="(?=\\s)",Xe=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,qe={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+Le+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+Le),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+Le),alias:"property"},splice:{pattern:RegExp(",@?"+Le),alias:["symbol","variable"]},keyword:[{pattern:RegExp(Re+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+Je),lookbehind:!0},{pattern:RegExp(Re+"(?:append|by|collect|concat|do|finally|for|in|return)"+Je),lookbehind:!0}],declare:{pattern:Ie(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:Ie(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:De(/nil|t/.source),lookbehind:!0},number:{pattern:De(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(Re+"def(?:const|custom|group|var)\\s+"+Le),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(Le)}},defun:{pattern:RegExp(Re+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+Le+/\s+\(/.source+Xe+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+Le),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(Re+"lambda\\s+\\(\\s*(?:&?"+Le+"(?:\\s+&?"+Le+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(Re+Le),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},mt={"lisp-marker":RegExp(Ye),varform:{pattern:RegExp(/\(/.source+Le+/\s+(?=\S)/.source+Xe+/\)/.source),inside:qe},argument:{pattern:RegExp(/(^|[\s(])/.source+Le),lookbehind:!0,alias:"variable"},rest:qe},st="\\S+(?:\\s+\\S+)*",Nt={pattern:RegExp(Re+Xe+Ve),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+st),inside:mt},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+st),inside:mt},keys:{pattern:RegExp("&key\\s+"+st+"(?:\\s+&allow-other-keys)?"),inside:mt},argument:{pattern:RegExp(Le),alias:"variable"},punctuation:/[()]/}};qe.lambda.inside.arguments=Nt,qe.defun.inside.arguments=le.util.clone(Nt),qe.defun.inside.arguments.inside.sublist=Nt,le.languages.lisp=qe,le.languages.elisp=qe,le.languages.emacs=qe,le.languages["emacs-lisp"]=qe})(de)}},98135:function(Ge){"use strict";Ge.exports=be,be.displayName="livescript",be.aliases=[];function be(de){de.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<<?<?|--?!?|~~?!?|[|=?])?|>[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},de.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=de.languages.livescript}},36907:function(Ge){"use strict";Ge.exports=be,be.displayName="llvm",be.aliases=[];function be(de){(function(le){le.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(de)}},3567:function(Ge){"use strict";Ge.exports=be,be.displayName="log",be.aliases=[];function be(de){de.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:de.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}},23763:function(Ge){"use strict";Ge.exports=be,be.displayName="lolcode",be.aliases=[];function be(de){de.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}},33978:function(Ge){"use strict";Ge.exports=be,be.displayName="lua",be.aliases=[];function be(de){de.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}},40472:function(Ge){"use strict";Ge.exports=be,be.displayName="magma",be.aliases=[];function be(de){de.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}},44695:function(Ge){"use strict";Ge.exports=be,be.displayName="makefile",be.aliases=[];function be(de){de.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}},53885:function(Ge){"use strict";Ge.exports=be,be.displayName="markdown",be.aliases=["md"];function be(de){(function(le){var Ie=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function De(mt){return mt=mt.replace(/<inner>/g,function(){return Ie}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+mt+")")}var Le=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,Ye=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return Le}),Re=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;le.languages.markdown=le.languages.extend("markup",{}),le.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:le.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+Ye+Re+"(?:"+Ye+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+Ye+Re+")(?:"+Ye+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(Le),inside:le.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+Ye+")"+Re+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+Ye+"$"),inside:{"table-header":{pattern:RegExp(Le),alias:"important",inside:le.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:De(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:De(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:De(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:De(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(mt){["url","bold","italic","strike","code-snippet"].forEach(function(st){mt!==st&&(le.languages.markdown[mt].inside.content.inside[st]=le.languages.markdown[st])})}),le.hooks.add("after-tokenize",function(mt){if(mt.language!=="markdown"&&mt.language!=="md")return;function st(Nt){if(!(!Nt||typeof Nt=="string"))for(var _e=0,te=Nt.length;_e<te;_e++){var ne=Nt[_e];if(ne.type!=="code"){st(ne.content);continue}var he=ne.content[1],se=ne.content[3];if(he&&se&&he.type==="code-language"&&se.type==="code-block"&&typeof he.content=="string"){var ge=he.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");ge=(/[a-z][\w-]*/i.exec(ge)||[""])[0].toLowerCase();var Se="language-"+ge;se.alias?typeof se.alias=="string"?se.alias=[se.alias,Se]:se.alias.push(Se):se.alias=[Se]}}}st(mt.tokens)}),le.hooks.add("wrap",function(mt){if(mt.type==="code-block"){for(var st="",Nt=0,_e=mt.classes.length;Nt<_e;Nt++){var te=mt.classes[Nt],ne=/language-(.+)/.exec(te);if(ne){st=ne[1];break}}var he=le.languages[st];if(he)mt.content=le.highlight(qe(mt.content.value),he,st);else if(st&&st!=="none"&&le.plugins.autoloader){var se="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);mt.attributes.id=se,le.plugins.autoloader.loadLanguages(st,function(){var ge=document.getElementById(se);ge&&(ge.innerHTML=le.highlight(ge.textContent,le.languages[st],st))})}}});var Ve=RegExp(le.languages.markup.tag.pattern.source,"gi"),Je={amp:"&",lt:"<",gt:">",quot:'"'},Xe=String.fromCodePoint||String.fromCharCode;function qe(mt){var st=mt.replace(Ve,"");return st=st.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(Nt,_e){if(_e=_e.toLowerCase(),_e[0]==="#"){var te;return _e[1]==="x"?te=parseInt(_e.slice(2),16):te=Number(_e.slice(1)),Xe(te)}else{var ne=Je[_e];return ne||Nt}}),st}le.languages.md=le.languages.markdown})(de)}},51478:function(Ge){"use strict";Ge.exports=be,be.displayName="markupTemplating",be.aliases=[];function be(de){(function(le){function Ie(De,Le){return"___"+De.toUpperCase()+Le+"___"}Object.defineProperties(le.languages["markup-templating"]={},{buildPlaceholders:{value:function(De,Le,Ye,Re){if(De.language===Le){var Ve=De.tokenStack=[];De.code=De.code.replace(Ye,function(Je){if(typeof Re=="function"&&!Re(Je))return Je;for(var Xe=Ve.length,qe;De.code.indexOf(qe=Ie(Le,Xe))!==-1;)++Xe;return Ve[Xe]=Je,qe}),De.grammar=le.languages.markup}}},tokenizePlaceholders:{value:function(De,Le){if(De.language!==Le||!De.tokenStack)return;De.grammar=le.languages[Le];var Ye=0,Re=Object.keys(De.tokenStack);function Ve(Je){for(var Xe=0;Xe<Je.length&&!(Ye>=Re.length);Xe++){var qe=Je[Xe];if(typeof qe=="string"||qe.content&&typeof qe.content=="string"){var mt=Re[Ye],st=De.tokenStack[mt],Nt=typeof qe=="string"?qe:qe.content,_e=Ie(Le,mt),te=Nt.indexOf(_e);if(te>-1){++Ye;var ne=Nt.substring(0,te),he=new le.Token(Le,le.tokenize(st,De.grammar),"language-"+Le,st),se=Nt.substring(te+_e.length),ge=[];ne&&ge.push.apply(ge,Ve([ne])),ge.push(he),se&&ge.push.apply(ge,Ve([se])),typeof qe=="string"?Je.splice.apply(Je,[Xe,1].concat(ge)):qe.content=ge}}else qe.content&&Ve(qe.content)}return Je}Ve(De.tokens)}}})})(de)}},70614:function(Ge){"use strict";Ge.exports=be,be.displayName="markup",be.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function be(de){de.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},de.languages.markup.tag.inside["attr-value"].inside.entity=de.languages.markup.entity,de.languages.markup.doctype.inside["internal-subset"].inside=de.languages.markup,de.hooks.add("wrap",function(le){le.type==="entity"&&(le.attributes.title=le.content.value.replace(/&/,"&"))}),Object.defineProperty(de.languages.markup.tag,"addInlined",{value:function(Ie,De){var Le={};Le["language-"+De]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:de.languages[De]},Le.cdata=/^<!\[CDATA\[|\]\]>$/i;var Ye={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:Le}};Ye["language-"+De]={pattern:/[\s\S]+/,inside:de.languages[De]};var Re={};Re[Ie]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return Ie}),"i"),lookbehind:!0,greedy:!0,inside:Ye},de.languages.insertBefore("markup","cdata",Re)}}),Object.defineProperty(de.languages.markup.tag,"addAttribute",{value:function(le,Ie){de.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+le+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[Ie,"language-"+Ie],inside:de.languages[Ie]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),de.languages.html=de.languages.markup,de.languages.mathml=de.languages.markup,de.languages.svg=de.languages.markup,de.languages.xml=de.languages.extend("markup",{}),de.languages.ssml=de.languages.xml,de.languages.atom=de.languages.xml,de.languages.rss=de.languages.xml}},16928:function(Ge){"use strict";Ge.exports=be,be.displayName="matlab",be.aliases=[];function be(de){de.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}},13586:function(Ge){"use strict";Ge.exports=be,be.displayName="maxscript",be.aliases=[];function be(de){(function(le){var Ie=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;le.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+Ie.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+Ie.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:Ie,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(de)}},37164:function(Ge){"use strict";Ge.exports=be,be.displayName="mel",be.aliases=[];function be(de){de.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},de.languages.mel.code.inside.rest=de.languages.mel}},25153:function(Ge){"use strict";Ge.exports=be,be.displayName="mermaid",be.aliases=[];function be(de){de.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[<ox](?:==+|--+|-\.*-)[>ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}},33245:function(Ge){"use strict";Ge.exports=be,be.displayName="mizar",be.aliases=[];function be(de){de.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}},32218:function(Ge){"use strict";Ge.exports=be,be.displayName="mongodb",be.aliases=[];function be(de){(function(le){var Ie=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],De=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];Ie=Ie.map(function(Ye){return Ye.replace("$","\\$")});var Le="(?:"+Ie.join("|")+")\\b";le.languages.mongodb=le.languages.extend("javascript",{}),le.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+Le+"(?:\\1)?$")}}}),le.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},le.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+De.join("|")+")\\b"),alias:"keyword"}})})(de)}},65626:function(Ge){"use strict";Ge.exports=be,be.displayName="monkey",be.aliases=[];function be(de){de.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}},60090:function(Ge){"use strict";Ge.exports=be,be.displayName="moonscript",be.aliases=["moon"];function be(de){de.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},de.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=de.languages.moonscript,de.languages.moon=de.languages.moonscript}},40722:function(Ge){"use strict";Ge.exports=be,be.displayName="n1ql",be.aliases=[];function be(de){de.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}},37783:function(Ge){"use strict";Ge.exports=be,be.displayName="n4js",be.aliases=["n4jsd"];function be(de){de.languages.n4js=de.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),de.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),de.languages.n4jsd=de.languages.n4js}},41224:function(Ge){"use strict";Ge.exports=be,be.displayName="nand2tetrisHdl",be.aliases=[];function be(de){de.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}},71365:function(Ge){"use strict";Ge.exports=be,be.displayName="naniscript",be.aliases=[];function be(de){(function(le){var Ie=/\{[^\r\n\[\]{}]*\}/,De={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:Ie,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};le.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:Ie,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:De}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:Ie,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:De},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},le.languages.nani=le.languages.naniscript,le.hooks.add("after-tokenize",function(Re){var Ve=Re.tokens;Ve.forEach(function(Je){if(typeof Je!="string"&&Je.type==="generic-text"){var Xe=Ye(Je);Le(Xe)||(Je.type="bad-line",Je.content=Xe)}})});function Le(Re){for(var Ve="[]{}",Je=[],Xe=0;Xe<Re.length;Xe++){var qe=Re[Xe],mt=Ve.indexOf(qe);if(mt!==-1){if(mt%2===0)Je.push(mt+1);else if(Je.pop()!==mt)return!1}}return Je.length===0}function Ye(Re){return typeof Re=="string"?Re:Array.isArray(Re)?Re.map(Ye).join(""):Ye(Re.content)}})(de)}},42846:function(Ge){"use strict";Ge.exports=be,be.displayName="nasm",be.aliases=[];function be(de){de.languages.nasm={comment:/;.*$/m,string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,label:{pattern:/(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,lookbehind:!0,alias:"function"},keyword:[/\[?BITS (?:16|32|64)\]?/,{pattern:/(^\s*)section\s*[a-z.]+:?/im,lookbehind:!0},/(?:extern|global)[^;\r\n]*/i,/(?:CPU|DEFAULT|FLOAT).*$/m],register:{pattern:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s)\b/i,alias:"variable"},number:/(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-\/%<>=&|$!]/}}},32964:function(Ge){"use strict";Ge.exports=be,be.displayName="neon",be.aliases=[];function be(de){de.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}},78830:function(Ge){"use strict";Ge.exports=be,be.displayName="nevod",be.aliases=[];function be(de){de.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}},88799:function(Ge){"use strict";Ge.exports=be,be.displayName="nginx",be.aliases=[];function be(de){(function(le){var Ie=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;le.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:Ie}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:Ie}},punctuation:/[{};]/}})(de)}},66791:function(Ge){"use strict";Ge.exports=be,be.displayName="nim",be.aliases=[];function be(de){de.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}},41735:function(Ge){"use strict";Ge.exports=be,be.displayName="nix",be.aliases=[];function be(de){de.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},de.languages.nix.string.inside.interpolation.inside=de.languages.nix}},13490:function(Ge){"use strict";Ge.exports=be,be.displayName="nsis",be.aliases=[];function be(de){de.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}},7383:function(Ge,be,de){"use strict";var le=de(79440);Ge.exports=Ie,Ie.displayName="objectivec",Ie.aliases=["objc"];function Ie(De){De.register(le),De.languages.objectivec=De.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete De.languages.objectivec["class-name"],De.languages.objc=De.languages.objectivec}},66894:function(Ge){"use strict";Ge.exports=be,be.displayName="ocaml",be.aliases=[];function be(de){de.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}},45779:function(Ge,be,de){"use strict";var le=de(79440);Ge.exports=Ie,Ie.displayName="opencl",Ie.aliases=[];function Ie(De){De.register(le),function(Le){Le.languages.opencl=Le.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),Le.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var Ye={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};Le.languages.insertBefore("c","keyword",Ye),Le.languages.cpp&&(Ye["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},Le.languages.insertBefore("cpp","keyword",Ye))}(De)}},27734:function(Ge){"use strict";Ge.exports=be,be.displayName="openqasm",be.aliases=["qasm"];function be(de){de.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},de.languages.qasm=de.languages.openqasm}},91889:function(Ge){"use strict";Ge.exports=be,be.displayName="oz",be.aliases=[];function be(de){de.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|<?:?)|>=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}},55965:function(Ge){"use strict";Ge.exports=be,be.displayName="parigp",be.aliases=[];function be(de){de.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var le=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return le=le.map(function(Ie){return Ie.split("").join(" *")}).join("|"),RegExp("\\b(?:"+le+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}},37326:function(Ge){"use strict";Ge.exports=be,be.displayName="parser",be.aliases=[];function be(de){(function(le){var Ie=le.languages.parser=le.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});Ie=le.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:Ie.keyword,variable:Ie.variable,function:Ie.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:Ie.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:Ie.punctuation}}}),le.languages.insertBefore("inside","punctuation",{expression:Ie.expression,keyword:Ie.keyword,variable:Ie.variable,function:Ie.function,escape:Ie.escape,"parser-punctuation":{pattern:Ie.punctuation,alias:"punctuation"}},Ie.tag.inside["attr-value"])})(de)}},92949:function(Ge){"use strict";Ge.exports=be,be.displayName="pascal",be.aliases=["objectpascal"];function be(de){de.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},de.languages.pascal.asm.inside=de.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),de.languages.objectpascal=de.languages.pascal}},5681:function(Ge){"use strict";Ge.exports=be,be.displayName="pascaligo",be.aliases=[];function be(de){(function(le){var Ie=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,De=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return Ie}),Le=le.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)<type>/.source.replace(/<type>/g,function(){return De}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return De}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return De})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},Ye=["comment","keyword","builtin","operator","punctuation"].reduce(function(Re,Ve){return Re[Ve]=Le[Ve],Re},{});Le["class-name"].forEach(function(Re){Re.inside=Ye})})(de)}},70696:function(Ge){"use strict";Ge.exports=be,be.displayName="pcaxis",be.aliases=["px"];function be(de){de.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},de.languages.px=de.languages.pcaxis}},35790:function(Ge){"use strict";Ge.exports=be,be.displayName="peoplecode",be.aliases=["pcode"];function be(de){de.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},de.languages.pcode=de.languages.peoplecode}},25777:function(Ge){"use strict";Ge.exports=be,be.displayName="perl",be.aliases=[];function be(de){(function(le){var Ie=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;le.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,Ie].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,Ie].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,Ie+/\s*/.source+Ie].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(de)}},65889:function(Ge,be,de){"use strict";var le=de(53852);Ge.exports=Ie,Ie.displayName="phpExtras",Ie.aliases=[];function Ie(De){De.register(le),De.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}},53852:function(Ge,be,de){"use strict";var le=de(51478);Ge.exports=Ie,Ie.displayName="php",Ie.aliases=[];function Ie(De){De.register(le),function(Le){var Ye=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,Re=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],Ve=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,Je=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,Xe=/[{}\[\](),:;]/;Le.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:Ye,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:Re,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:Ve,operator:Je,punctuation:Xe};var qe={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:Le.languages.php},mt=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:qe}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:qe}}];Le.languages.insertBefore("php","variable",{string:mt,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:Ye,string:mt,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:Re,number:Ve,operator:Je,punctuation:Xe}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),Le.hooks.add("before-tokenize",function(st){if(/<\?/.test(st.code)){var Nt=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;Le.languages["markup-templating"].buildPlaceholders(st,"php",Nt)}}),Le.hooks.add("after-tokenize",function(st){Le.languages["markup-templating"].tokenizePlaceholders(st,"php")})}(De)}},97719:function(Ge,be,de){"use strict";var le=de(53852),Ie=de(53510);Ge.exports=De,De.displayName="phpdoc",De.aliases=[];function De(Le){Le.register(le),Le.register(Ie),function(Ye){var Re=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;Ye.languages.phpdoc=Ye.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+Re+"\\s+)?)\\$\\w+"),lookbehind:!0}}),Ye.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+Re),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),Ye.languages.javadoclike.addSupport("php",Ye.languages.phpdoc)}(Le)}},63839:function(Ge,be,de){"use strict";var le=de(69435);Ge.exports=Ie,Ie.displayName="plsql",Ie.aliases=[];function Ie(De){De.register(le),De.languages.plsql=De.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),De.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}},67623:function(Ge){"use strict";Ge.exports=be,be.displayName="powerquery",be.aliases=[];function be(de){de.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},de.languages.pq=de.languages.powerquery,de.languages.mscript=de.languages.powerquery}},32530:function(Ge){"use strict";Ge.exports=be,be.displayName="powershell",be.aliases=[];function be(de){(function(le){var Ie=le.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};Ie.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:Ie},boolean:Ie.boolean,variable:Ie.variable}})(de)}},8938:function(Ge){"use strict";Ge.exports=be,be.displayName="processing",be.aliases=[];function be(de){de.languages.processing=de.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),de.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}},55259:function(Ge){"use strict";Ge.exports=be,be.displayName="prolog",be.aliases=[];function be(de){de.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}},67411:function(Ge){"use strict";Ge.exports=be,be.displayName="promql",be.aliases=[];function be(de){(function(le){var Ie=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],De=["on","ignoring","group_right","group_left","by","without"],Le=["offset"],Ye=Ie.concat(De,Le);le.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+De.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+Ye.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(de)}},15375:function(Ge){"use strict";Ge.exports=be,be.displayName="properties",be.aliases=[];function be(de){de.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}},12093:function(Ge){"use strict";Ge.exports=be,be.displayName="protobuf",be.aliases=[];function be(de){(function(le){var Ie=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;le.languages.protobuf=le.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),le.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:Ie}},builtin:Ie,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(de)}},83588:function(Ge){"use strict";Ge.exports=be,be.displayName="psl",be.aliases=[];function be(de){de.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}},94127:function(Ge){"use strict";Ge.exports=be,be.displayName="pug",be.aliases=[];function be(de){(function(le){le.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:le.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:le.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:le.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:le.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:le.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:le.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:le.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:le.languages.javascript}],punctuation:/[.\-!=|]+/};for(var Ie=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,De=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],Le={},Ye=0,Re=De.length;Ye<Re;Ye++){var Ve=De[Ye];Ve=typeof Ve=="string"?{filter:Ve,language:Ve}:Ve,le.languages[Ve.language]&&(Le["filter-"+Ve.filter]={pattern:RegExp(Ie.replace("<filter_name>",function(){return Ve.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[Ve.language,"language-"+Ve.language],inside:le.languages[Ve.language]}}})}le.languages.insertBefore("pug","filter",Le)})(de)}},21294:function(Ge){"use strict";Ge.exports=be,be.displayName="puppet",be.aliases=[];function be(de){(function(le){le.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var Ie=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:le.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];le.languages.puppet.heredoc[0].inside.interpolation=Ie,le.languages.puppet.string.inside["double-quoted"].inside.interpolation=Ie})(de)}},38709:function(Ge){"use strict";Ge.exports=be,be.displayName="pure",be.aliases=[];function be(de){(function(le){le.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var Ie=["c",{lang:"c++",alias:"cpp"},"fortran"],De=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;Ie.forEach(function(Le){var Ye=Le;if(typeof Le!="string"&&(Ye=Le.alias,Le=Le.lang),le.languages[Ye]){var Re={};Re["inline-lang-"+Ye]={pattern:RegExp(De.replace("<lang>",Le.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:le.util.clone(le.languages.pure["inline-lang"].inside)},Re["inline-lang-"+Ye].inside.rest=le.util.clone(le.languages[Ye]),le.languages.insertBefore("pure","inline-lang",Re)}}),le.languages.c&&(le.languages.pure["inline-lang"].inside.rest=le.util.clone(le.languages.c))})(de)}},15008:function(Ge){"use strict";Ge.exports=be,be.displayName="purebasic",be.aliases=[];function be(de){de.languages.purebasic=de.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),de.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete de.languages.purebasic["class-name"],delete de.languages.purebasic.boolean,de.languages.pbfasm=de.languages.purebasic}},96549:function(Ge,be,de){"use strict";var le=de(2050);Ge.exports=Ie,Ie.displayName="purescript",Ie.aliases=["purs"];function Ie(De){De.register(le),De.languages.purescript=De.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[De.languages.haskell.operator[0],De.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),De.languages.purs=De.languages.purescript}},5221:function(Ge){"use strict";Ge.exports=be,be.displayName="python",be.aliases=["py"];function be(de){de.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},de.languages.python["string-interpolation"].inside.interpolation.inside.rest=de.languages.python,de.languages.py=de.languages.python}},27447:function(Ge){"use strict";Ge.exports=be,be.displayName="q",be.aliases=[];function be(de){de.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}},73191:function(Ge){"use strict";Ge.exports=be,be.displayName="qml",be.aliases=[];function be(de){(function(le){for(var Ie=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,De=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,Le=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return Ie}).replace(/<comment>/g,function(){return De}),Ye=0;Ye<2;Ye++)Le=Le.replace(/<expr>/g,function(){return Le});Le=Le.replace(/<expr>/g,"[^\\s\\S]"),le.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(<js>*\)\s*\{<js>*\}/.source.replace(/<js>/g,function(){return Le}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:le.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}])<js>)+/.source.replace(/<js>/g,function(){return Le}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:le.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(de)}},75542:function(Ge){"use strict";Ge.exports=be,be.displayName="qore",be.aliases=[];function be(de){de.languages.qore=de.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}},50323:function(Ge){"use strict";Ge.exports=be,be.displayName="qsharp",be.aliases=["qs"];function be(de){(function(le){function Ie(Nt,_e){return Nt.replace(/<<(\d+)>>/g,function(te,ne){return"(?:"+_e[+ne]+")"})}function De(Nt,_e,te){return RegExp(Ie(Nt,_e),te||"")}function Le(Nt,_e){for(var te=0;te<_e;te++)Nt=Nt.replace(/<<self>>/g,function(){return"(?:"+Nt+")"});return Nt.replace(/<<self>>/g,"[^\\s\\S]")}var Ye={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function Re(Nt){return"\\b(?:"+Nt.trim().replace(/ /g,"|")+")\\b"}var Ve=RegExp(Re(Ye.type+" "+Ye.other)),Je=/\b[A-Za-z_]\w*\b/.source,Xe=Ie(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[Je]),qe={keyword:Ve,punctuation:/[<>()?,.:[\]]/},mt=/"(?:\\.|[^\\"])*"/.source;le.languages.qsharp=le.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:De(/(^|[^$\\])<<0>>/.source,[mt]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:De(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[Xe]),lookbehind:!0,inside:qe},{pattern:De(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[Xe]),lookbehind:!0,inside:qe}],keyword:Ve,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),le.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var st=Le(Ie(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[mt]),2);le.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:De(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[st]),greedy:!0,inside:{interpolation:{pattern:De(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[st]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:le.languages.qsharp}}},string:/[\s\S]+/}}})})(de),de.languages.qs=de.languages.qsharp}},44298:function(Ge){"use strict";Ge.exports=be,be.displayName="r",be.aliases=[];function be(de){de.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}},9634:function(Ge,be,de){"use strict";var le=de(48780);Ge.exports=Ie,Ie.displayName="racket",Ie.aliases=["rkt"];function Ie(De){De.register(le),De.languages.racket=De.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),De.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),De.languages.rkt=De.languages.racket}},75266:function(Ge){"use strict";Ge.exports=be,be.displayName="reason",be.aliases=[];function be(de){de.languages.reason=de.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),de.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete de.languages.reason.function}},48139:function(Ge){"use strict";Ge.exports=be,be.displayName="regex",be.aliases=[];function be(de){(function(le){var Ie={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},De=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,Le={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},Ye={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},Re="(?:[^\\\\-]|"+De.source+")",Ve=RegExp(Re+"-"+Re),Je={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};le.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:Ve,inside:{escape:De,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":Ie,"char-set":Ye,escape:De}},"special-escape":Ie,"char-set":Le,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":Je}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:De,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":Je}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(de)}},97534:function(Ge){"use strict";Ge.exports=be,be.displayName="rego",be.aliases=[];function be(de){de.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}},90826:function(Ge){"use strict";Ge.exports=be,be.displayName="renpy",be.aliases=["rpy"];function be(de){de.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},de.languages.rpy=de.languages.renpy}},63919:function(Ge){"use strict";Ge.exports=be,be.displayName="rest",be.aliases=[];function be(de){de.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}},68862:function(Ge){"use strict";Ge.exports=be,be.displayName="rip",be.aliases=[];function be(de){de.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}},39523:function(Ge){"use strict";Ge.exports=be,be.displayName="roboconf",be.aliases=[];function be(de){de.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}},31207:function(Ge){"use strict";Ge.exports=be,be.displayName="robotframework",be.aliases=[];function be(de){(function(le){var Ie={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},De={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function Le(Je,Xe){var qe={};qe["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var mt in Xe)qe[mt]=Xe[mt];return qe.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},qe.variable=De,qe.comment=Ie,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return Je}),"im"),alias:"section",inside:qe}}var Ye={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},Re={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:De}},Ve={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:De}};le.languages.robotframework={settings:Le("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:Le("Variables"),"test-cases":Le("Test Cases",{"test-name":Re,documentation:Ye,property:Ve}),keywords:Le("Keywords",{"keyword-name":Re,documentation:Ye,property:Ve}),tasks:Le("Tasks",{"task-name":Re,documentation:Ye,property:Ve}),comment:Ie},le.languages.robot=le.languages.robotframework})(de)}},75308:function(Ge){"use strict";Ge.exports=be,be.displayName="ruby",be.aliases=["rb"];function be(de){(function(le){le.languages.ruby=le.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),le.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var Ie={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:le.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete le.languages.ruby.function;var De="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",Le=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;le.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+De+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:Ie,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:Ie,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+Le),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+Le+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),le.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+De),greedy:!0,inside:{interpolation:Ie,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:Ie,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:Ie,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+De),greedy:!0,inside:{interpolation:Ie,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:Ie,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete le.languages.ruby.string,le.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),le.languages.rb=le.languages.ruby})(de)}},45315:function(Ge){"use strict";Ge.exports=be,be.displayName="rust",be.aliases=[];function be(de){(function(le){for(var Ie=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,De=0;De<2;De++)Ie=Ie.replace(/<self>/g,function(){return Ie});Ie=Ie.replace(/<self>/g,function(){return/[^\s\S]/.source}),le.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+Ie),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},le.languages.rust["closure-params"].inside.rest=le.languages.rust,le.languages.rust.attribute.inside.string=le.languages.rust.string})(de)}},13794:function(Ge){"use strict";Ge.exports=be,be.displayName="sas",be.aliases=[];function be(de){(function(le){var Ie=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,De=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,Le={pattern:RegExp(Ie+"[bx]"),alias:"number"},Ye={pattern:/&[a-z_]\w*/i},Re={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},Ve={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},Je=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],Xe={pattern:RegExp(Ie),greedy:!0},qe=/[$%@.(){}\[\];,\\]/,mt={pattern:/%?\b\w+(?=\()/,alias:"keyword"},st={function:mt,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":Ye,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:De,"numeric-constant":Le,punctuation:qe,string:Xe},Nt={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},_e={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},te={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},ne={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},he=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,se={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return he}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return he}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:Je,function:mt,"arg-value":st["arg-value"],operator:st.operator,argument:st.arg,number:De,"numeric-constant":Le,punctuation:qe,string:Xe}},ge={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};le.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:<str>|[^;"'])+;/.source.replace(/<str>/g,function(){return Ie}),"im"),alias:"language-sql",inside:le.languages.sql},"global-statements":te,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:De,"numeric-constant":Le,punctuation:qe,string:Xe}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:Je,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return Ie}),"im"),lookbehind:!0,alias:"language-groovy",inside:le.languages.groovy},keyword:ge,"submit-statement":ne,"global-statements":te,number:De,"numeric-constant":Le,punctuation:qe,string:Xe}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:Je,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return Ie}),"im"),lookbehind:!0,alias:"language-lua",inside:le.languages.lua},keyword:ge,"submit-statement":ne,"global-statements":te,number:De,"numeric-constant":Le,punctuation:qe,string:Xe}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:Je,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:st}},"cas-actions":se,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:st},step:Ve,keyword:ge,function:mt,format:Nt,altformat:_e,"global-statements":te,number:De,"numeric-constant":Le,punctuation:qe,string:Xe}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return Ie}),"im"),lookbehind:!0,inside:st},"macro-keyword":Re,"macro-variable":Ye,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":Re,"macro-variable":Ye,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:qe}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:Je,number:De,"numeric-constant":Le}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:st},"cas-actions":se,comment:Je,function:mt,format:Nt,altformat:_e,"numeric-constant":Le,datetime:{pattern:RegExp(Ie+"(?:dt?|t)"),alias:"number"},string:Xe,step:Ve,keyword:ge,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:De,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:qe}})(de)}},41299:function(Ge){"use strict";Ge.exports=be,be.displayName="sass",be.aliases=[];function be(de){(function(le){le.languages.sass=le.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),le.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete le.languages.sass.atrule;var Ie=/\$[-\w]+|#\{\$[-\w]+\}/,De=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];le.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:Ie,operator:De}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:Ie,operator:De,important:le.languages.sass.important}}}),delete le.languages.sass.property,delete le.languages.sass.important,le.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(de)}},98177:function(Ge,be,de){"use strict";var le=de(7093);Ge.exports=Ie,Ie.displayName="scala",Ie.aliases=[];function Ie(De){De.register(le),De.languages.scala=De.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),De.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:De.languages.scala}}},string:/[\s\S]+/}}}),delete De.languages.scala["class-name"],delete De.languages.scala.function}},48780:function(Ge){"use strict";Ge.exports=be,be.displayName="scheme",be.aliases=[];function be(de){(function(le){le.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(Ie({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function Ie(De){for(var Le in De)De[Le]=De[Le].replace(/<[\w\s]+>/g,function(Ye){return"(?:"+De[Ye].trim()+")"});return De[Le]}})(de)}},79793:function(Ge){"use strict";Ge.exports=be,be.displayName="scss",be.aliases=[];function be(de){de.languages.scss=de.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),de.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),de.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),de.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),de.languages.scss.atrule.inside.rest=de.languages.scss}},52085:function(Ge,be,de){"use strict";var le=de(3058);Ge.exports=Ie,Ie.displayName="shellSession",Ie.aliases=[];function Ie(De){De.register(le),function(Le){var Ye=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");Le.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,function(){return Ye}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:Le.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},Le.languages["sh-session"]=Le.languages.shellsession=Le.languages["shell-session"]}(De)}},65411:function(Ge){"use strict";Ge.exports=be,be.displayName="smali",be.aliases=[];function be(de){de.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}},84750:function(Ge){"use strict";Ge.exports=be,be.displayName="smalltalk",be.aliases=[];function be(de){de.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}},88216:function(Ge,be,de){"use strict";var le=de(51478);Ge.exports=Ie,Ie.displayName="smarty",Ie.aliases=[];function Ie(De){De.register(le),function(Le){Le.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:Le.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},Le.languages.smarty["embedded-php"].inside.smarty.inside=Le.languages.smarty,Le.languages.smarty.string[0].inside.interpolation.inside.expression.inside=Le.languages.smarty;var Ye=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,Re=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return Ye.source}),"g");Le.hooks.add("before-tokenize",function(Ve){var Je="{literal}",Xe="{/literal}",qe=!1;Le.languages["markup-templating"].buildPlaceholders(Ve,"smarty",Re,function(mt){return mt===Xe&&(qe=!1),qe?!1:(mt===Je&&(qe=!0),!0)})}),Le.hooks.add("after-tokenize",function(Ve){Le.languages["markup-templating"].tokenizePlaceholders(Ve,"smarty")})}(De)}},66433:function(Ge){"use strict";Ge.exports=be,be.displayName="sml",be.aliases=["smlnj"];function be(de){(function(le){var Ie=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;le.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)<TERMINAL>(?:\s*(?:(?:\*|->)\s*<TERMINAL>|,\s*<TERMINAL>(?:(?=<NOT-LAST>)|(?!<NOT-LAST>)\s+<LONG-ID>)))*/.source.replace(/<NOT-LAST>/g,function(){return/\s*(?:[*,]|->)/.source}).replace(/<TERMINAL>/g,function(){return/(?:'[\w']*|<LONG-ID>|\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+<LONG-ID>)*/.source}).replace(/<LONG-ID>/g,function(){return/(?!<KEYWORD>)[a-z\d_][\w'.]*/.source}).replace(/<KEYWORD>/g,function(){return Ie.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:Ie,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},le.languages.sml["class-name"][0].inside=le.languages.sml,le.languages.smlnj=le.languages.sml})(de)}},34855:function(Ge){"use strict";Ge.exports=be,be.displayName="solidity",be.aliases=["sol"];function be(de){de.languages.solidity=de.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),de.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),de.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),de.languages.sol=de.languages.solidity}},12998:function(Ge){"use strict";Ge.exports=be,be.displayName="solutionFile",be.aliases=[];function be(de){(function(le){var Ie={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};le.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:Ie}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:Ie}},guid:Ie,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},le.languages.sln=le.languages["solution-file"]})(de)}},10202:function(Ge,be,de){"use strict";var le=de(51478);Ge.exports=Ie,Ie.displayName="soy",Ie.aliases=[];function Ie(De){De.register(le),function(Le){var Ye=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,Re=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;Le.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:Ye,greedy:!0},number:Re,punctuation:/[\[\].?]/}},string:{pattern:Ye,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:Re,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},Le.hooks.add("before-tokenize",function(Ve){var Je=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,Xe="{literal}",qe="{/literal}",mt=!1;Le.languages["markup-templating"].buildPlaceholders(Ve,"soy",Je,function(st){return st===qe&&(mt=!1),mt?!1:(st===Xe&&(mt=!0),!0)})}),Le.hooks.add("after-tokenize",function(Ve){Le.languages["markup-templating"].tokenizePlaceholders(Ve,"soy")})}(De)}},41186:function(Ge,be,de){"use strict";var le=de(58710);Ge.exports=Ie,Ie.displayName="sparql",Ie.aliases=["rq"];function Ie(De){De.register(le),De.languages.sparql=De.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),De.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),De.languages.rq=De.languages.sparql}},68963:function(Ge){"use strict";Ge.exports=be,be.displayName="splunkSpl",be.aliases=[];function be(de){de.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}},5569:function(Ge){"use strict";Ge.exports=be,be.displayName="sqf",be.aliases=[];function be(de){de.languages.sqf=de.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),de.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:de.languages.sqf.comment}}}),delete de.languages.sqf["class-name"]}},69435:function(Ge){"use strict";Ge.exports=be,be.displayName="sql",be.aliases=[];function be(de){de.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}},42766:function(Ge){"use strict";Ge.exports=be,be.displayName="squirrel",be.aliases=[];function be(de){de.languages.squirrel=de.languages.extend("clike",{comment:[de.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),de.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),de.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}},46449:function(Ge){"use strict";Ge.exports=be,be.displayName="stan",be.aliases=[];function be(de){(function(le){var Ie=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;le.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+Ie.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,Ie],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},le.languages.stan.constraint.inside.expression.inside=le.languages.stan})(de)}},89032:function(Ge){"use strict";Ge.exports=be,be.displayName="stylus",be.aliases=[];function be(de){(function(le){var Ie={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},De={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},Le={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:Ie,number:De,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:Ie,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:De,punctuation:/[{}()\[\];:,]/};Le.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:Le}},Le.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:Le}},le.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:Le}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:Le}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:Le}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:Le.interpolation}},rest:Le}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:Le.interpolation,comment:Le.comment,punctuation:/[{},]/}},func:Le.func,string:Le.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:Le.interpolation,punctuation:/[{}()\[\];:.]/}})(de)}},40241:function(Ge){"use strict";Ge.exports=be,be.displayName="swift",be.aliases=[];function be(de){de.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},de.languages.swift["string-literal"].forEach(function(le){le.inside.interpolation.inside=de.languages.swift})}},24812:function(Ge){"use strict";Ge.exports=be,be.displayName="systemd",be.aliases=[];function be(de){(function(le){var Ie={pattern:/^[;#].*/m,greedy:!0},De=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;le.languages.systemd={comment:Ie,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+De+`|(?=[^"\r
|
|
|
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+De+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:Ie,quoted:{pattern:RegExp(/(^|\s)/.source+De),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(de)}},16747:function(Ge,be,de){"use strict";var le=de(73584),Ie=de(87648);Ge.exports=De,De.displayName="t4Cs",De.aliases=[];function De(Le){Le.register(le),Le.register(Ie),Le.languages.t4=Le.languages["t4-cs"]=Le.languages["t4-templating"].createT4("csharp")}},73584:function(Ge){"use strict";Ge.exports=be,be.displayName="t4Templating",be.aliases=[];function be(de){(function(le){function Ie(Le,Ye,Re){return{pattern:RegExp("<#"+Le+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+Le+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:Ye,alias:Re}}}}function De(Le){var Ye=le.languages[Le],Re="language-"+Le;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:Ie("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:Ie("=",Ye,Re),"class-feature":Ie("\\+",Ye,Re),standard:Ie("",Ye,Re)}}}}le.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:De})})(de)}},79243:function(Ge,be,de){"use strict";var le=de(73584),Ie=de(55686);Ge.exports=De,De.displayName="t4Vb",De.aliases=[];function De(Le){Le.register(le),Le.register(Ie),Le.languages["t4-vb"]=Le.languages["t4-templating"].createT4("vbnet")}},31788:function(Ge,be,de){"use strict";var le=de(14409);Ge.exports=Ie,Ie.displayName="tap",Ie.aliases=[];function Ie(De){De.register(le),De.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:De.languages.yaml,alias:"language-yaml"}}}},60871:function(Ge){"use strict";Ge.exports=be,be.displayName="tcl",be.aliases=[];function be(de){de.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}},21023:function(Ge){"use strict";Ge.exports=be,be.displayName="textile",be.aliases=[];function be(de){(function(le){var Ie=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,De=/\)|\((?![^|()\n]+\))/.source;function Le(mt,st){return RegExp(mt.replace(/<MOD>/g,function(){return"(?:"+Ie+")"}).replace(/<PAR>/g,function(){return"(?:"+De+")"}),st||"")}var Ye={css:{pattern:/\{[^{}]+\}/,inside:{rest:le.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},Re=le.languages.textile=le.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:Le(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:Le(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:Ye},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:Le(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:Le(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:Ye},punctuation:/^[*#]+/}},table:{pattern:Le(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:Le(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:Ye},punctuation:/\||^\./}},inline:{pattern:Le(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:Le(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:Le(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:Le(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:Le(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:Le(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:Le(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:Le(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:Le(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:Ye},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:Le(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:Le(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:Le(/(^")<MOD>+/.source),lookbehind:!0,inside:Ye},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:Le(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:Le(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:Le(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:Ye},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),Ve=Re.phrase.inside,Je={inline:Ve.inline,link:Ve.link,image:Ve.image,footnote:Ve.footnote,acronym:Ve.acronym,mark:Ve.mark};Re.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var Xe=Ve.inline.inside;Xe.bold.inside=Je,Xe.italic.inside=Je,Xe.inserted.inside=Je,Xe.deleted.inside=Je,Xe.span.inside=Je;var qe=Ve.table.inside;qe.inline=Je.inline,qe.link=Je.link,qe.image=Je.image,qe.footnote=Je.footnote,qe.acronym=Je.acronym,qe.mark=Je.mark})(de)}},14693:function(Ge){"use strict";Ge.exports=be,be.displayName="toml",be.aliases=[];function be(de){(function(le){var Ie=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function De(Le){return Le.replace(/__/g,function(){return Ie})}le.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(De(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(De(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(de)}},8743:function(Ge){"use strict";Ge.exports=be,be.displayName="tremor",be.aliases=[];function be(de){(function(le){le.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var Ie=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;le.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+Ie+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+Ie+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(Ie),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:le.languages.tremor}}},string:/[\s\S]+/}},le.languages.troy=le.languages.tremor,le.languages.trickle=le.languages.tremor})(de)}},1689:function(Ge,be,de){"use strict";var le=de(24103),Ie=de(92784);Ge.exports=De,De.displayName="tsx",De.aliases=[];function De(Le){Le.register(le),Le.register(Ie),function(Ye){var Re=Ye.util.clone(Ye.languages.typescript);Ye.languages.tsx=Ye.languages.extend("jsx",Re),delete Ye.languages.tsx.parameter,delete Ye.languages.tsx["literal-property"];var Ve=Ye.languages.tsx.tag;Ve.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+Ve.pattern.source+")",Ve.pattern.flags),Ve.lookbehind=!0}(Le)}},69210:function(Ge,be,de){"use strict";var le=de(51478);Ge.exports=Ie,Ie.displayName="tt2",Ie.aliases=[];function Ie(De){De.register(le),function(Le){Le.languages.tt2=Le.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),Le.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),Le.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),Le.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete Le.languages.tt2.string,Le.hooks.add("before-tokenize",function(Ye){var Re=/\[%[\s\S]+?%\]/g;Le.languages["markup-templating"].buildPlaceholders(Ye,"tt2",Re)}),Le.hooks.add("after-tokenize",function(Ye){Le.languages["markup-templating"].tokenizePlaceholders(Ye,"tt2")})}(De)}},58710:function(Ge){"use strict";Ge.exports=be,be.displayName="turtle",be.aliases=[];function be(de){de.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},de.languages.trig=de.languages.turtle}},60452:function(Ge,be,de){"use strict";var le=de(51478);Ge.exports=Ie,Ie.displayName="twig",Ie.aliases=[];function Ie(De){De.register(le),De.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},De.hooks.add("before-tokenize",function(Le){if(Le.language==="twig"){var Ye=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;De.languages["markup-templating"].buildPlaceholders(Le,"twig",Ye)}}),De.hooks.add("after-tokenize",function(Le){De.languages["markup-templating"].tokenizePlaceholders(Le,"twig")})}},92784:function(Ge){"use strict";Ge.exports=be,be.displayName="typescript",be.aliases=["ts"];function be(de){(function(le){le.languages.typescript=le.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),le.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete le.languages.typescript.parameter,delete le.languages.typescript["literal-property"];var Ie=le.languages.extend("typescript",{});delete Ie["class-name"],le.languages.typescript["class-name"].inside=Ie,le.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:Ie}}}}),le.languages.ts=le.languages.typescript})(de)}},36489:function(Ge){"use strict";Ge.exports=be,be.displayName="typoscript",be.aliases=["tsconfig"];function be(de){(function(le){var Ie=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;le.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern:/<INCLUDE_TYPOSCRIPT:\s*source\s*=\s*(?:"[^"\r\n]*"|'[^'\r\n]*')\s*>/,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:Ie}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:Ie,number:/^\d+$/,punctuation:/[,|:]/}},keyword:Ie,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},le.languages.tsconfig=le.languages.typoscript})(de)}},78380:function(Ge){"use strict";Ge.exports=be,be.displayName="unrealscript",be.aliases=["uc","uscript"];function be(de){de.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},de.languages.uc=de.languages.uscript=de.languages.unrealscript}},10409:function(Ge){"use strict";Ge.exports=be,be.displayName="uorazor",be.aliases=[];function be(de){de.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}},6539:function(Ge){"use strict";Ge.exports=be,be.displayName="uri",be.aliases=["url"];function be(de){de.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},de.languages.url=de.languages.uri}},82028:function(Ge){"use strict";Ge.exports=be,be.displayName="v",be.aliases=[];function be(de){(function(le){var Ie={pattern:/[\s\S]+/,inside:null};le.languages.v=le.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":Ie}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),Ie.inside=le.languages.v,le.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),le.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),le.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:le.languages.v.generic.inside}}}})})(de)}},62282:function(Ge){"use strict";Ge.exports=be,be.displayName="vala",be.aliases=[];function be(de){de.languages.vala=de.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),de.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:de.languages.vala}},string:/[\s\S]+/}}}),de.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:de.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}},55686:function(Ge,be,de){"use strict";var le=de(51422);Ge.exports=Ie,Ie.displayName="vbnet",Ie.aliases=[];function Ie(De){De.register(le),De.languages.vbnet=De.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}},70889:function(Ge){"use strict";Ge.exports=be,be.displayName="velocity",be.aliases=[];function be(de){(function(le){le.languages.velocity=le.languages.extend("markup",{});var Ie={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};Ie.variable.inside={string:Ie.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:Ie.number,boolean:Ie.boolean,punctuation:Ie.punctuation},le.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:Ie}},variable:Ie.variable}),le.languages.velocity.tag.inside["attr-value"].inside.rest=le.languages.velocity})(de)}},37116:function(Ge){"use strict";Ge.exports=be,be.displayName="verilog",be.aliases=[];function be(de){de.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}},66963:function(Ge){"use strict";Ge.exports=be,be.displayName="vhdl",be.aliases=[];function be(de){de.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}},21078:function(Ge){"use strict";Ge.exports=be,be.displayName="vim",be.aliases=[];function be(de){de.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}},96198:function(Ge){"use strict";Ge.exports=be,be.displayName="visualBasic",be.aliases=[];function be(de){de.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},de.languages.vb=de.languages["visual-basic"],de.languages.vba=de.languages["visual-basic"]}},17723:function(Ge){"use strict";Ge.exports=be,be.displayName="warpscript",be.aliases=[];function be(de){de.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}},67771:function(Ge){"use strict";Ge.exports=be,be.displayName="wasm",be.aliases=[];function be(de){de.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}},30307:function(Ge){"use strict";Ge.exports=be,be.displayName="webIdl",be.aliases=[];function be(de){(function(le){var Ie=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,De="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+Ie+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,Le={};le.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+Ie),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:Le},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+De),lookbehind:!0,inside:Le},{pattern:RegExp("("+/\bcallback\s+/.source+Ie+/\s*=\s*/.source+")"+De),lookbehind:!0,inside:Le},{pattern:RegExp(/(\btypedef\b\s*)/.source+De),lookbehind:!0,inside:Le},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+Ie),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+Ie),lookbehind:!0},RegExp(Ie+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+Ie),lookbehind:!0},{pattern:RegExp(De+"(?="+/\s*(?:\.{3}\s*)?/.source+Ie+/\s*[(),;=]/.source+")"),inside:Le}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var Ye in le.languages["web-idl"])Ye!=="class-name"&&(Le[Ye]=le.languages["web-idl"][Ye]);le.languages.webidl=le.languages["web-idl"]})(de)}},8921:function(Ge){"use strict";Ge.exports=be,be.displayName="wiki",be.aliases=[];function be(de){de.languages.wiki=de.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:de.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),de.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:de.languages.markup.tag.inside}}}})}},13429:function(Ge){"use strict";Ge.exports=be,be.displayName="wolfram",be.aliases=["mathematica","wl","nb"];function be(de){de.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},de.languages.mathematica=de.languages.wolfram,de.languages.wl=de.languages.wolfram,de.languages.nb=de.languages.wolfram}},65197:function(Ge){"use strict";Ge.exports=be,be.displayName="wren",be.aliases=[];function be(de){de.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},de.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:de.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}},88904:function(Ge){"use strict";Ge.exports=be,be.displayName="xeora",be.aliases=["xeoracube"];function be(de){(function(le){le.languages.xeora=le.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),le.languages.insertBefore("inside","punctuation",{variable:le.languages.xeora["function-inline"].inside.variable},le.languages.xeora["function-block"]),le.languages.xeoracube=le.languages.xeora})(de)}},35:function(Ge){"use strict";Ge.exports=be,be.displayName="xmlDoc",be.aliases=[];function be(de){(function(le){function Ie(Re,Ve){le.languages[Re]&&le.languages.insertBefore(Re,"comment",{"doc-comment":Ve})}var De=le.languages.markup.tag,Le={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:De}},Ye={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:De}};Ie("csharp",Le),Ie("fsharp",Le),Ie("vbnet",Ye)})(de)}},86095:function(Ge){"use strict";Ge.exports=be,be.displayName="xojo",be.aliases=[];function be(de){de.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}},76998:function(Ge){"use strict";Ge.exports=be,be.displayName="xquery",be.aliases=[];function be(de){(function(le){le.languages.xquery=le.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),le.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,le.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,le.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,le.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:le.languages.xquery,alias:"language-xquery"};var Ie=function(Le){return typeof Le=="string"?Le:typeof Le.content=="string"?Le.content:Le.content.map(Ie).join("")},De=function(Le){for(var Ye=[],Re=0;Re<Le.length;Re++){var Ve=Le[Re],Je=!1;if(typeof Ve!="string"&&(Ve.type==="tag"&&Ve.content[0]&&Ve.content[0].type==="tag"?Ve.content[0].content[0].content==="</"?Ye.length>0&&Ye[Ye.length-1].tagName===Ie(Ve.content[0].content[1])&&Ye.pop():Ve.content[Ve.content.length-1].content==="/>"||Ye.push({tagName:Ie(Ve.content[0].content[1]),openedBraces:0}):Ye.length>0&&Ve.type==="punctuation"&&Ve.content==="{"&&(!Le[Re+1]||Le[Re+1].type!=="punctuation"||Le[Re+1].content!=="{")&&(!Le[Re-1]||Le[Re-1].type!=="plain-text"||Le[Re-1].content!=="{")?Ye[Ye.length-1].openedBraces++:Ye.length>0&&Ye[Ye.length-1].openedBraces>0&&Ve.type==="punctuation"&&Ve.content==="}"?Ye[Ye.length-1].openedBraces--:Ve.type!=="comment"&&(Je=!0)),(Je||typeof Ve=="string")&&Ye.length>0&&Ye[Ye.length-1].openedBraces===0){var Xe=Ie(Ve);Re<Le.length-1&&(typeof Le[Re+1]=="string"||Le[Re+1].type==="plain-text")&&(Xe+=Ie(Le[Re+1]),Le.splice(Re+1,1)),Re>0&&(typeof Le[Re-1]=="string"||Le[Re-1].type==="plain-text")&&(Xe=Ie(Le[Re-1])+Xe,Le.splice(Re-1,1),Re--),/^\s+$/.test(Xe)?Le[Re]=Xe:Le[Re]=new le.Token("plain-text",Xe,null,Xe)}Ve.content&&typeof Ve.content!="string"&&De(Ve.content)}};le.hooks.add("after-tokenize",function(Le){Le.language==="xquery"&&De(Le.tokens)})})(de)}},14409:function(Ge){"use strict";Ge.exports=be,be.displayName="yaml",be.aliases=["yml"];function be(de){(function(le){var Ie=/[*&][^\s[\]{},]+/,De=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,Le="(?:"+De.source+"(?:[ ]+"+Ie.source+")?|"+Ie.source+"(?:[ ]+"+De.source+")?)",Ye=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),Re=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function Ve(Je,Xe){Xe=(Xe||"").replace(/m/g,"")+"m";var qe=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return Le}).replace(/<<value>>/g,function(){return Je});return RegExp(qe,Xe)}le.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return Le})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return Le}).replace(/<<key>>/g,function(){return"(?:"+Ye+"|"+Re+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:Ve(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:Ve(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:Ve(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:Ve(Re),lookbehind:!0,greedy:!0},number:{pattern:Ve(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:De,important:Ie,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},le.languages.yml=le.languages.yaml})(de)}},33460:function(Ge){"use strict";Ge.exports=be,be.displayName="yang",be.aliases=[];function be(de){de.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}},28108:function(Ge){"use strict";Ge.exports=be,be.displayName="zig",be.aliases=[];function be(de){(function(le){function Ie(Xe){return function(){return Xe}}var De=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,Le="\\b(?!"+De.source+")(?!\\d)\\w+\\b",Ye=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,Re=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,Ie(Ye)),Ve=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,Ie(Le)),Je="(?!\\s)(?:!?\\s*(?:"+Re+"\\s*)*"+Ve+")+";le.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?[=;,)])|<TYPE>(?=\s*(?:<ALIGN>\s*)?\{)/.source.replace(/<TYPE>/g,Ie(Je)).replace(/<ALIGN>/g,Ie(Ye))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,Ie(Je)).replace(/<ALIGN>/g,Ie(Ye))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:De,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},le.languages.zig["class-name"].forEach(function(Xe){Xe.inside===null&&(Xe.inside=le.languages.zig)})})(de)}},92848:function(Ge,be){"use strict";var de;be.Q=Le,de=Ye;var le="",Ie=" ",De=/[ \t\n\r\f]+/g;function Le(Re){var Ve=String(Re||le).trim();return Ve===le?[]:Ve.split(De)}function Ye(Re){return Re.join(Ie).trim()}},77179:function(Ge,be,de){"use strict";var le=this&&this.__importDefault||function(Ye){return Ye&&Ye.__esModule?Ye:{default:Ye}},Ie=le(de(58970)),De=de(39159);function Le(Ye,Re){var Ve={};return!Ye||typeof Ye!="string"||(0,Ie.default)(Ye,function(Je,Xe){Je&&Xe&&(Ve[(0,De.camelCase)(Je,Re)]=Xe)}),Ve}Le.default=Le,Ge.exports=Le},39159:function(Ge,be){"use strict";Object.defineProperty(be,"__esModule",{value:!0}),be.camelCase=void 0;var de=/^--[a-zA-Z0-9_-]+$/,le=/-([a-z])/g,Ie=/^[^-]+$/,De=/^-(webkit|moz|ms|o|khtml)-/,Le=/^-(ms)-/,Ye=function(Xe){return!Xe||Ie.test(Xe)||de.test(Xe)},Re=function(Xe,qe){return qe.toUpperCase()},Ve=function(Xe,qe){return"".concat(qe,"-")},Je=function(Xe,qe){return qe===void 0&&(qe={}),Ye(Xe)?Xe:(Xe=Xe.toLowerCase(),qe.reactCompat?Xe=Xe.replace(Le,Ve):Xe=Xe.replace(De,Ve),Xe.replace(le,Re))};be.camelCase=Je},58970:function(Ge,be,de){"use strict";var le=this&&this.__importDefault||function(Le){return Le&&Le.__esModule?Le:{default:Le}};Object.defineProperty(be,"__esModule",{value:!0}),be.default=De;var Ie=le(de(93193));function De(Le,Ye){var Re=null;if(!Le||typeof Le!="string")return Re;var Ve=(0,Ie.default)(Le),Je=typeof Ye=="function";return Ve.forEach(function(Xe){if(Xe.type==="declaration"){var qe=Xe.property,mt=Xe.value;Je?Ye(qe,mt,Xe):mt&&(Re=Re||{},Re[qe]=mt)}}),Re}},97270:function(Ge){Ge.exports=de;var be=Object.prototype.hasOwnProperty;function de(){for(var le={},Ie=0;Ie<arguments.length;Ie++){var De=arguments[Ie];for(var Le in De)be.call(De,Le)&&(le[Le]=De[Le])}return le}},90034:function(Ge,be,de){var le={"./doc.png":63604,"./docx.png":30045,"./jpg.png":13740,"./md.png":58881,"./pdf.png":28982,"./png.png":2487,"./txt.png":3164,"./xls.png":88745,"./xlsx.png":49321};function Ie(Le){var Ye=De(Le);return de(Ye)}function De(Le){if(!de.o(le,Le)){var Ye=new Error("Cannot find module '"+Le+"'");throw Ye.code="MODULE_NOT_FOUND",Ye}return le[Le]}Ie.keys=function(){return Object.keys(le)},Ie.resolve=De,Ge.exports=Ie,Ie.id=90034},93314:function(Ge){"use strict";Ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},96058:function(Ge){"use strict";Ge.exports="data:image/png;base64,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"},19773:function(Ge){"use strict";Ge.exports="data:image/png;base64,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"},71986:function(Ge){"use strict";Ge.exports="data:image/png;base64,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"},37166:function(Ge){"use strict";Ge.exports="data:image/png;base64,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"},28984:function(Ge){"use strict";Ge.exports="data:image/png;base64,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"},63604:function(Ge){"use strict";Ge.exports="data:image/png;base64,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"},30045:function(Ge){"use strict";Ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAARiUlEQVR4nO3dW2wdxR0G8BluBRWIQ/tAgyoMLa3agjBIUNSq2JF6eUBVTF+4SC0O4gkqxSkSPABKEPAAEo2RCk8Ih1bi8tI4Qjz0IsVJ1aotEjiCtiIQJSkkhKbxJQm5EXv7/w4+9MTs/md2z87ezveTxt5jJXtmZ+ebmd1z7GNNRc0ciQbMvBlcMGbARqbfWDNkqBB7P9h/4PMXnnvd5SuW75GHPc1KqYyZY1H/wkmzRgIxLDXrN1SK3XveM6dOzR/74sV93+j1kFgppVsMxjqpzIih0iEgR48eM+ecc07Ph8RKKdXMXLQuMma9ocpoBwR6PSRWSikwa0QnzCapwYA8pArpDAj0ckislMLhAjw6ZbbIs/fJQ6qYpQGBXg2JlVKomUPRcLRgxuWZGY6KigsI9GJIrJTCcOaoh6SAQK+FxEopxEwU9UVzZpc8I8NRcVpAoJdCYqUUYno22iLPNmSo8lwBgV4JiZUSnNzKHZVbuRtkk2rAJyDQCyGxUoLi0qp+fAMCTQ+JlRLUwblovTzJOtmkmkgTEGhySKyUYDh71FPagEBTQ2KlBCOveYxEkbzmQbWSJSDQxJBYKcFMz0UT8m2VFKqRrAGBpoXESglGAhLJN6qZbgICTQqJlRLEzOFoKFqQV82pdroNCDQlJFZKELx7VV95BASaEBIrJQgJyJjsfI1sUs3kFRCoe0islCCmZ6NJ2fugbFLN5BkQqHNIrJQgGJD6yjsgUNeQWClBMCD1FSIgUMeQWClBMCD1tX//f8z0zKxs5a9uIbFSgmBA6uvAgYPmwH8PylYYdQqJlRIEA1JfB6dnzIcfHpCtcOoSEislCAakvj766KjZ8+/3ZSusOoTESgmCAam3f/5rh3wNr+ohsVKCYEDqLdSdrDhVDomVEgQDUm9FXId0qmpIrJQgGJB6m5+fN2/v2ClbxaliSKyUIBiQ+tu7b7+ZmzskW8WpWkislCAYkPo7efJj8+7OXbJVrCqFxEoJggFphpCvqmuqEhIrJQgGpBlwLfLOu7vMwsKCPCpWFUJipQTBgDRHUS8cxik7JFZKEAxIs8zOzpl9H3woW8UrMyRWShAMSPOUcVerrayQWClBMCDNVNZFO5QREislCAakuXppuWWlBMGANNvx48fNe+/vMx9/fEoeFavIkFgpQTAgvQG/XIX3bRV9G7iokFgpQTAgvQOvlUxPz5rZublCZ5QiQmKlBMGA9KZDh4+Yo/K6yUdHj5kTJ07IT8IKHRIrJQgGhAAvMsJxCcvCfJhl2Nlnnf23y/uX3SCbuWNAqP4is/WiPjtkAmBAqP4YECIFA0KkYECIFAwIkYIBIVIwIEQKBoRIwYAQKRgQIgUDQqRgQIgUDAiRggEhUjAgRAoGhEjBgBApGBAiBQNCpGBAiBQMCJGCASFSMCBECgaESMGAECkYECJF7QLS/52BLS88t+Xqb329Tx4RBbX9H2/Prrz9zpVm91+m5GGu8g+IhMPMmy2vjP+q77vXXSM/IArrz6+9YX68+uez5kyTe0jyDchiOEwU9b2y8WnDgFARWgEZuUd6s809JPkFpCMc8sgwIFSUTwMCOYckn4AsCQcwIFSU0wICOYak+4DEhAMYECrKZwICOYWku4AkhAMYECpKbEAgh5BkD4gSDmBAqCiJAYEuQ5ItII5wAANCRVEDAl2EJH1APMIBDAgVxRkQyBiSdAHxDAcwIFQUr4BAhpD4ByRFOIABoaJ4BwRShsQvICnDAQwIFSVVQCBFSNwByRAOYECoKKkDAp4h0QOSMRzAgFBRMgUEPEKSHJAuwgEMCBUlc0DAEZL4gHQZDmBAqChdBQSUkHw2IDmEAxgQKkrXAYGEkJwekJzCAQwIFSWXgEBMSP4fkBzDAQwIFSW3gMCSkHwSkJzDAQwIFSXXgEBHSGyIcAADQkXJPSCwGBJrvnnLMWMWzpUf5er24ZvMl1dcLFtEYb23b795YeJV2crbGcet+fbaSLaIKAYDQqRgQIgUDAiRggEhUjAgRAoGhEjBgBApGBAiBQNCpGBAutB3wXnm6itWyJYxQ9d+1cwePmam3tkrj4zZ/s6+1uMyDF77FflqzMAVl7TqCJOvvytfy61XHZUWkIGvXWI2jK6SrWxwkqfkZO/+YNps3vZW63ER+r90kVl145Vm5KbrWsegmdqx12x89bVW/VDPkNp1Gh68Sh7pstQLxz3+0K2ylQzn4Ob7x2UrvfV3/ejTYCd56uVtZmLrW7JVnNICghF3yzN3y1Y+Jra+aSbkhD8vJz4EjMQI9MhN18uj9Da++nezdmxzqxPlCe2IjosOnAXq9fCzv/cKysQTd7aCqFn9yIuyz3TnAHXftelB2Uo2d+SY6b/50dzbz6UxAWnDUgInHN/zgpF5w+hwKyTdwMldOzaRugPFQV3GH7zVa8ZwQb1WP/qiDDL66OzTkRG0y6Qjp7HxodvMHdLGmoef/Z1ZL6VojQtI29hLW6Uzbpat7mDWGL11ULby023dEI4tT9/tXOKl5VMvn86cZhbxCd0eCR1mjzI0NiCA5cPqR16SrWywdMm6pHLppm5v/Pre3MPR5urcCOdu6dDLzk+eTdPMInkHLm+NDghk7Yijt94os8ewbIWD5dbYS9tkyx8uZtdJCemanz3ZupBP4lOHlXc/41zm+swe2+Wu4MBPn5StclQ2ILgom9qxT7ZO13fBuXJrNd3ombYj4sRhlMZo6YI7QehMuL3bJ6Mq/i+OzXVHBrD2X3nPM63/7wOzBurlgiUJbligg84ePi4/wf9dYYZvvMqrXvh/6OBJ0C5TUo9L5ViTuPYBeQUtpMoGZOvrO83Q3U/LVjycJFw8j95yo3qi2lyjYid0QnRGDeo38siLreVEHARl4onVzjCjTqibD596uS5m0e4bZenoajNXx0Tbj8vySKPtA+dv128fbH1PgjbW+kARahuQNjTwmCyFXOtYnCicMJfhwSvNpsfvlK1kuJWMcPjIa43tUy+f/QDazDUDYGYcvu852UqGaxFtH1qb+8weuI5JGoCKUvuAtPl0RJwsnDQN6oS6JUlbL5j6zb3qTOIzi7jq5dOhO2Ff2GcSLP+W/+AB2Urm2gfEtTkC6po90gxCITUmINDNiAauOkGWUc1nv6gX6hcHyzXXxWyWernaC6FFeDWTz9yjXtfEBdc1e+D6ExfmaY8nhEYFxLVP0E762Nphs0auaZJ0M6q5Zjht3647anGd0Iero/rc3PBp887wYtZwzR6u66giNSog4FrOaCfddRF88/3POV9tTuK6hkAHQkeK43qLh++1x1KuOvl21DThd4USswdeFMQSrwoaFxDX3ZWk0RYj2swfHpOteDhxfd9/QLaycy1pEBAEZSksr7DMSpL0/1xc58A3IKgb6qhp1xFtjLZOog1gZWhcQFwnCyNT3MVnqPp0cq3Xk65Dor/+Ur7G6ya4aCsMKEkm5Zjj6hPHNTNgFsG+tMELr99g9qiSxgUEZv/4mPpWCHvDL+Tr6Vz18R1NNa5OlLRU0gLSTTvlCbMCZkit3TGDIJRJulnChtLIgLhG6riAYCTVRrciAhL3HOhQ2ozYTTvlzXV8miodR6eeDEjcUsZ1cuM6b1pZniNkO4WAWUS7zkoSd06qgAFZlKXzppXlOUK2UwiumThO0o2TKmBAFmXpvGlleY6Q7RSK61b7Uu07XFXEgCzK0nnTyvIcIdspFFedO+HuVvs1kipiQBZl6bxpZXmOkO0Uku8sUuXZAxiQRVk6b1pZniNkO4XiuvPWKe6Yq4QBWZSl86aV5TlCtlMoqC/q7QMv3OL9cVWdRRiQRVk6b1pZniNkO4Xgqm+cKl+HMCCLsnTetLI8R8h2CsH1hs8kceekCnoyIJjSl77lPUvnTSvLc4Rsp7xleQ2kDeFASKqmkQFxjWJxbzVx1Seu86aVJSB4jxPeAZukm3bKGy7McYGeVdJ70crUyIBob+6DLAHJY53s+oUsjKAYSZfSjgczIWbEsrnCj3fqovNr/wYX6jgWXLhXReMC4tovTlTcW6ox42DmSZJHR3Qt/bIEBOIC78PVVnEzWhzMcq7fEsTsgD9FhPdqae/49X3OojQuIK7fbsNfCB/dMCFbn+V6m3w3L2qh82hLJUjq6FmD5eI6B76d1TUzdg5KrpkGswcGoqztnLdGBQSd0DWSab9z4PrV1m5+2811Aasdr6sDaqHXuDqrz/HimgPXHhrMHlheAc6NaxbJYzmbl0YFxHXC8dt3GMkwSsVx/XEEjGqYRbJAJ0JnSqJ1RtfvjuN4LvtJ8nElcc22PjPTpsdXS/2ukq14nbNHm+s8AWYRLGvL1piAuK4hwDXS+oxunaOhL9fsAQgeApjEtfzzXQ614VhdSz78arIWOtc5hLj2wnO72hnBREDL1oiAoMFdSytwdUJwjaroMGn/ni4+qkCrm8+SwjXqpq2Xa9nm80ejcf5wHpPEzR5truMBbTlclNoHBMuP8QdvUzsguGaPNiyDsBzSIGT4qDFXZ0Q4sATBPjU+wcXxuUZ87MOnXmgzbckGrhnJZ1aMmz3acDyuWQTHg7YpU2UDgpM8KuvyOOhwA1eskBN9VWvbBaPhkEzXGGV9+IxugA+ceerlP7VOZCfUac0t35NrmkF5pPMNLvjUC8c4JvvEfrHdCfVad9cPpXNfL4+Sua7VAIMI9pdEmz3afI7HFdTQKhuQvOBkIxwIXBq+v88A6Ej4+APo/GRZFwTXtYxZKk29cMyzcvyAzoziw9UpXTczwLUPQDu5ZhG0bZYbEHlpfEC0aV6DzoTOqJ28bmQNLpZtk9JuoerlCi06tet6D8eG2cOnU7uu+cDnGi2UxgYEJylLB+wUqjN2Wze0HT57JES9EI6lS8ZOeS+LMBBhueZS1m3fRgYEF/i4fsmjQXEC0Rl9lzUuGKGH7xtXO6GPvMOLeo088pLaZmgLV2dGyHxnjzafWaSs276NCgguDDFyZVlSabCcwCdZYe2dtUOi4+CFQFxAp+k8GnRY3K7VXv33gT+7gyWMq14+HTnN7NGG43AFD8q47Vv7gKDjodEmtr3Z+h4SgoJPs8JtUt+gtOuHTtPtrJEEbTm2dlXqWQ4zLeqF0dkFz+E6XzjWtLNHm0/40H5F3/YtLSDobLjj0w2fExsKOgyC0j6G9psJ0ekAd7VQP4SjKBiJUSd8WCfggzvbQUbnxYei4q7WxNY3pW47Wx3OF/aNosG+tSWaxrc/oF2zBDCr0gJCVAcMCJGCASFSMCBECgaESMGAECkYECIFA0KkYECIFAwIkYIBIVJYKUFMz0aTsvdB2SQKKzJbL+qzQyYABoTqjwEhUjAgRAoGhEjBgBApGBAiBQNCpGBAiBQMCJGCASFSMCBECgaESMGAECkYECIFA0KkYECIFAwIkYIBIVLUMSAH56Ix2fka2SQKKjLmqS8ss6OymTvpw2FIQNbLztfJJlFQkTEPS0DWmwCkD4cxczgaihbMFtkkCsqeYVYuv8BOmgCCBQSm56JIvhEFddEyG6wfB9sxSEAm5NsqKUShbJaADMv3IIIGZOZQNCJzyLhsEgUhc8fq5RfajSaQsAGJor5ozuyWZ1kmD4nyFZk5u8z0L7d2Vh4FETQgwLtZFEoU8O5Vm/TdsDiLUBAFzB4QPCAwMxeNSto3yCZRLqTjrl2+zI7JZlDyPMXgW08oNwHfWrJUYQHhUotyUdDSqq2wgMDMkWggOmUm5VkZEkoP4TjLDC0/307Jo0IUGhBovQVl3kzIMzMk5K+EcEDhAQHOJJRKSeGAUgICM8ei/uhEaya5Wh4SxYvMdvs5M7z8PLvblKC0gLS1XkiMzKjUZJk8JPqEzBqRNWOhXwh0KT0ggNlk4aRZL5W5Qx5Sj4uMef6Mc8z6smaNTtInq2MxKCMyo4xIzS6VH1GviMwemTE2SjA2ViEYbZUKSCdcyJt5M7RgzIAEpl9qOig/piaQ5ZN8nYqs2X2GfDdnmskyLsB9/A+krB6cv+qtogAAAABJRU5ErkJggg=="},13740:function(Ge){"use strict";Ge.exports="data:image/png;base64,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"},58881:function(Ge){"use strict";Ge.exports="data:image/png;base64,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"},28982:function(Ge){"use strict";Ge.exports="data:image/png;base64,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"},2487:function(Ge){"use strict";Ge.exports="data:image/png;base64,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"},3164:function(Ge){"use strict";Ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAANM0lEQVR4nO3cfWxddR3H8e/t07buoZ1YBTalG497CNwqYiqadhL8Rw1V/1LRNVH/AhOJmsjAAFHQRIxLhP802QSj/+CaKP9IcJ0CC5h4S8QNw4SOdA+khd6WsYe29x6/Hw533J2d8+t9OL9z7/ndzyu59HdKe+/W/N77/e45Z8tIA8zOzmaXltp2SsbL6uGwUCwOvTIpHR3tS10dHdNdnZ1P3rD9qu/op6kOiQaiYfQuFtp+lRFvVCh2CKQcYlnb3f3w9duuvFsPqQaJBaJxZJcKmf067NUHWRAMpGRNd3fu4zdc8zEdUpUSCUTj6Nc4cjpkHBZFBQKrV606cmP22qt1SFVIJJDpmTxWjmEhq0yBACOpnvVAZmZmRzzJ7NMhWbZcIMBIqmM9kOmZ2TF9mdt0SJZVEggwksolEEje0w+UgEoDAUZSGauB6JtznLnK6ZASUE0gwEiWZzWQ6enZYcm8e2qXElBtIMBIzBiIQ2oJBBhJNAbikFoDAUYSjoE4pJ5AgJFcjIE4pN5AgJFciIE4JI5AgJG8j4E4JK5AgJH4GIhD4gwEGIkwEJfEHQi0eiQMxCE2AoFWjoSBOMRWINCqkTAQh9gMBFoxEgbiENuBQKtFwkAckkQg0EqRMBCHJBUItEokDMQhSQYCrRAJA3FI0oGA65EwEIc0IhBwORIG4pBGBQKuRsJAHNLIQMDFSBiIQxodCLgWCQNxSDMEAi5FwkAc0iyBgCuRMBCHNFMg4EIkDMQhzRYIpD0SBuKQZgwE0hwJA3FIswYCaY2EgTikmQOBNEbCQBzS7IFA2iJhIA5JQyCQpkgYiEPSEgikJRIG4pA0BQJpiISBOCRtgUCzR8JAHJLGQKCZI2EgDklrINCskTAQh6Q5EGjGSBiIQ9IeCDRbJAzEIS4EAs0UCQNxiCuBQLNEwkAc4lIg0AyRMBCHuBYINDoSBuIQFwOBRkbCQBziaiDQqEgYiENcDgQaEQkDccj/Xj8u584t6MhdSUfCQBwyOXVSTp85qyO3rV614tCN2S3bdGgdA3HIm7Pz8sbMWzpy37rV3X8YuP6ar+nQKgbikIXFJTkyOaUj97W1tXkb+j64afPmy4/qoTUZfVjDQJJ37OSMzL19SkfuW7du9djAtqu/pENrGIhjCoWivKKrSLFY1CO3dXV2nhm8cVu3Dq1hIA46q2ey8Ia9FSIZGsxancNWn5yBNA4iOfbGjPOnfT/y4Q/123wfktGHNQyk8fLzp+TN/LyzoVzSs/au7Vuv3K1DKxhIi8AZrkU8lvShH13R1dX51as2bfijDq1gIJRunrejr2/9uFjCQCjdGAiRAQMhMmAgRAYMhMiAgRAZMBAiAwZCZMBAiAwYCJEBAyEyYCBEBgyEyICBEBkwECIDBkJkwECIDBgIkQEDITJgIEQGDITIIM2B7J+Y/sL2jZ1/1iGRFS9NLX5xR7bvLzq0wlog/aP/yfb2eI889eONN+shkRW3/mTq2fxc5s7JPdsm9DB2VgJBHEuytL9ndfvk+AMbs/opIiuG75uamHun0N8hHTtsRBJ7IKU4PJHe3tXtEwyEbEIg+XcK+Bes8zYi0eeNT3kceigMhGwrBaJD0ckceyT6nPEIxgEMhGwrDwR0QscaiT5f/cLiAAZCtgUDAZ3UsUWiz1WfqDiAgZBtYYGATuxYItHnqZ0pDmAgZFtUIKCTu+5I9Dlqs1wcwEDINlMgoBO8rkj0+6tXSRzAQMi25QIBneQ1R6LfW51K4wAGQrZVEgjoRK8pEv2+ylUTBzAQsq3SQEAne9WR6PdUpto4gIGQbdUEAjrhq4pEv355tcQBDIRsqzYQ0ElfcST6tWa1xgEMhGyrJRDQiV9RJPp10eqJAxgI2VZrIKCTf9lI9GvC1RsHMBCyrZ5AQAMwRqL//2JxxAEMhGyrNxDQCCIj0f93oS3fP37FqXz+cU+8NXpYl8vWd809dPulQzoksmLX4ycPnJhd6NFhXTKSObWmt/f2w7+8/KgenpfRxwW23+sNF4qyX4dELaW9TXa89NPMuJRhIETvYSBEBgyEyICBEBkwECIDBkJkwECIDBgIkQEDITJwOpB1K0WuvUwHDfDfEyLzZ0U+sUkPIhzPixyb1UGdKnmN6/TnsFZ/Hkl7W38GL+vPIq2cDuSmTSJ7vq2DBhj9jcgLr4nccYs+PqufCIGJ+5VH/JBq9c1Pifzo8zoIgcl56y/859+rPwdTSLb8U38GO/VnkVYMxJJSIPCnO/0/wcM89pzIz57UQQ02rBd54g5dKVfpQYjyXwMDqQ0DsaR8cmIiI5KoLU7511Zjz7f097hZByGC4TGQ2jAQS4KT3rQVqmWrZXo+7Pnx+uXPx0Bqw0AswQQtDwRMkzT4J74JViTT1urLGhsiKWd6bZsYiGMOPaj/CbH1Hv1PnXBW7akf1r/VMm2tHv2bPp7WQZ2iTi7E9fxpwUACbAYCt2wV+fXXdRCikq2WaWsV55/WDMTHQAJsBwIIBKGEMW21TFsrnNLF1gqRxYGB+BhIQBKBYKuFs1qX64QPE7XVMm2t7nlCZN+/dBATBuJjIAFJBAKmEwhYBYJbLdPW6ulDIt/9vQ5ixEB8DCQgqUDgbp3w39CJH6Z8q7Xc1qp0tTxODMTHQAKSDARbLawiUVfZS1st09YKKwdWkLgxEB8DCUgyEEAceD8SBlutsVz4RIXyVSZuDMTHQAKSDgSiJqPJ8Vn/rFXcW6uSqF8TA2EgoWwGAlhFsJpUCnEEr5bHiYH4GEhAowLBG3FEEnWVvVwSk5SB+BhIQKMCAdOp3BKsGlg9bGMgPgYS0MhAYLmbCm992H/zbhsD8TGQgEYGgtO+f/2Bfgy53lFi67RuEAPxMZCARgZiukerZP6MXmV/1P4qwkB8DCSgUYEgDARSiRde1YuIv9WBRQzEx0ACGhEIzmBF3UoS5edPivxOLxTawkB8DCSgEYGYbiXBBcGou35xNgtntWxgID4GEpB0IKZTu3gzjgmJ6yNhDp/Q9yMaiQ0MxMdAApIMBFfOsXqEba3K79KNmqxg636sqNdkIAwklI1AntCVYYtGEiZ4OherCIIKU7rrN04MxMdAApIKJGoCAsJAIOUQByIJg1O+2GphtYlL1K+PgTCQUHEGYprs5VuroKhJC/jrtvhrt3GJei0GwkBCxRUIrpZja4VTu2GwcmAFiYKwEFiY5b63GgzEx0ACbAdi+mu2mNyY5CaIA5GEwVX2zz2sH0NWn2oxEB8DCbAZiOkfajBtrYKiJi/EdZU96jUYCAMJVW8g2FqZbkTEyoEVpFJYRbCahInjKjsD8TGQAFuB4D4r3G8VBmEgkGogDkQSBlutem9oZCA+BhJgIxCEgUDCVLO1CoqaxFDvVfao52YgDCRUrYHEvbUKwiqC1SRMPZOZgfgYSEDcgeBWkqgbEREGAqkH4kAkUWq9oZGB+BhIQJyBmG5ErGdrFRQ1mQHvQ7DVqvZ1op6TgbR4IETlDj+UuaiHiz4BW3Z5nn4gaiVzGkivfrxAaCBbd3ljWshtOiRqDRnZe/jBzKgEhAay5V5vRIqyT4dELSHs/QeEBgK6zRoXkSF9ELktYvWAyECy93u95xZkUkR69EHkJH1b/mJXpwxP3J/J6+FFIgOBbbu8bFFkTIdX6IPIKe/FMaJxTEoEYyDw7kqyKLvFk516SOQEnfgPdHXJbo0jr4eR9Osqo6H0aygjGsqIHsKQPojS4oBO9ryXkfEVnTKmYUxKBfR77Jmenh3WdWy/Dons8LwdfX3rx8USBkLpxkCIDBgIkQEDITJgIEQGDITIgIEQGTAQIgMGQmTAQIgMGAiRAQMhMmAgRAYMhMiAgRAZMBAiAwZCZMBAiAwYCFG0l195bcdnBgfGxRKrgfzjYG74uqs3MRCyJvWBbO7f+FhXZ+dGPSSK1alTpyemTrxxV6oDWbt2zX0bLu0bFqKYvX785IHT75y5P9WBFCUzdt2VH5W2tjb+E6YUm4XFxakjk8fWtok3kvZA9q/s6nxm8xUbPq2fIorFkcmp5xcWlz6pgaT7PQgC0aH0XbL+mb4P9DASqtvkMd1anT47pENxJhDo7l55oH/DpUM6JKrJq0ePPXN2YfH8H7ROBfKujEz1faB3Uh/nf5NEJsVice7N/Py/p9/K94snG/VT57kXyPvm2tvbX1uxonOuo63d02OiCywsLHQsFoprCoVCVg9DdbR7AzffNDChQyusBvLsC7nsUiGT0yGRFUODWatz2OqTw4GDE1wdyApPvKPDgwP9YpH9QJ7LjUkmc5sOiWLm7R0aHBgVi6wH8vfncyNeMbNPh0Sxsv0GHawHAgcO5sb1pYaEKDb2Vw9IJJCDB3P950QmMpLp0UOiuuh7jxd7VsrwwMBAXg+tSiQQwBmtxYKMMxKqB+LobJdRm6d2yyUWCORyud75s7JbX3anHhJVydu7bqV8L4mVoyTRQEqwmiwtyai+elb43oQi6GoxpxN0QofjXSJ7BgcHJiVh/wemziNQhWOwlgAAAABJRU5ErkJggg=="},88745:function(Ge){"use strict";Ge.exports="data:image/png;base64,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"},49321:function(Ge){"use strict";Ge.exports="data:image/png;base64,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"},96908:function(Ge){"use strict";Ge.exports="data:image/png;base64,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"},57177:function(Ge){"use strict";Ge.exports="data:image/png;base64,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"},81378:function(Ge){"use strict";Ge.exports="data:image/png;base64,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"},90302:function(Ge,be,de){"use strict";de.d(be,{ZP:function(){return Ae}});const le=-1,Ie=0,De=1,Le=2,Ye=3,Re=4,Ve=5,Je=6,Xe=7,qe=8,mt=typeof self=="object"?self:globalThis,st=(Oe,Be)=>{const Ke=(ot,ht)=>(Oe.set(ht,ot),ot),rt=ot=>{if(Oe.has(ot))return Oe.get(ot);const[ht,bt]=Be[ot];switch(ht){case Ie:case le:return Ke(bt,ot);case De:{const at=Ke([],ot);for(const At of bt)at.push(rt(At));return at}case Le:{const at=Ke({},ot);for(const[At,It]of bt)at[rt(At)]=rt(It);return at}case Ye:return Ke(new Date(bt),ot);case Re:{const{source:at,flags:At}=bt;return Ke(new RegExp(at,At),ot)}case Ve:{const at=Ke(new Map,ot);for(const[At,It]of bt)at.set(rt(At),rt(It));return at}case Je:{const at=Ke(new Set,ot);for(const At of bt)at.add(rt(At));return at}case Xe:{const{name:at,message:At}=bt;return Ke(new mt[at](At),ot)}case qe:return Ke(BigInt(bt),ot);case"BigInt":return Ke(Object(BigInt(bt)),ot);case"ArrayBuffer":return Ke(new Uint8Array(bt).buffer,bt);case"DataView":{const{buffer:at}=new Uint8Array(bt);return Ke(new DataView(at),bt)}}return Ke(new mt[ht](bt),ot)};return rt},Nt=Oe=>st(new Map,Oe)(0),_e="",{toString:te}={},{keys:ne}=Object,he=Oe=>{const Be=typeof Oe;if(Be!=="object"||!Oe)return[Ie,Be];const Ke=te.call(Oe).slice(8,-1);switch(Ke){case"Array":return[De,_e];case"Object":return[Le,_e];case"Date":return[Ye,_e];case"RegExp":return[Re,_e];case"Map":return[Ve,_e];case"Set":return[Je,_e];case"DataView":return[De,Ke]}return Ke.includes("Array")?[De,Ke]:Ke.includes("Error")?[Xe,Ke]:[Le,Ke]},se=([Oe,Be])=>Oe===Ie&&(Be==="function"||Be==="symbol"),ge=(Oe,Be,Ke,rt)=>{const ot=(bt,at)=>{const At=rt.push(bt)-1;return Ke.set(at,At),At},ht=bt=>{if(Ke.has(bt))return Ke.get(bt);let[at,At]=he(bt);switch(at){case Ie:{let $t=bt;switch(At){case"bigint":at=qe,$t=bt.toString();break;case"function":case"symbol":if(Oe)throw new TypeError("unable to serialize "+At);$t=null;break;case"undefined":return ot([le],bt)}return ot([at,$t],bt)}case De:{if(At){let yn=bt;return At==="DataView"?yn=new Uint8Array(bt.buffer):At==="ArrayBuffer"&&(yn=new Uint8Array(bt)),ot([At,[...yn]],bt)}const $t=[],Tn=ot([at,$t],bt);for(const yn of bt)$t.push(ht(yn));return Tn}case Le:{if(At)switch(At){case"BigInt":return ot([At,bt.toString()],bt);case"Boolean":case"Number":case"String":return ot([At,bt.valueOf()],bt)}if(Be&&"toJSON"in bt)return ht(bt.toJSON());const $t=[],Tn=ot([at,$t],bt);for(const yn of ne(bt))(Oe||!se(he(bt[yn])))&&$t.push([ht(yn),ht(bt[yn])]);return Tn}case Ye:return ot([at,bt.toISOString()],bt);case Re:{const{source:$t,flags:Tn}=bt;return ot([at,{source:$t,flags:Tn}],bt)}case Ve:{const $t=[],Tn=ot([at,$t],bt);for(const[yn,un]of bt)(Oe||!(se(he(yn))||se(he(un))))&&$t.push([ht(yn),ht(un)]);return Tn}case Je:{const $t=[],Tn=ot([at,$t],bt);for(const yn of bt)(Oe||!se(he(yn)))&&$t.push(ht(yn));return Tn}}const{message:It}=bt;return ot([at,{name:At,message:It}],bt)};return ht},Se=(Oe,{json:Be,lossy:Ke}={})=>{const rt=[];return ge(!(Be||Ke),!!Be,new Map,rt)(Oe),rt};var Ae=typeof structuredClone=="function"?(Oe,Be)=>Be&&("json"in Be||"lossy"in Be)?Nt(Se(Oe,Be)):structuredClone(Oe):(Oe,Be)=>Nt(Se(Oe,Be))},11630:function(Ge,be,de){"use strict";de.d(be,{P:function(){return Ie},Q:function(){return le}});function le(De){const Le=[],Ye=String(De||"");let Re=Ye.indexOf(","),Ve=0,Je=!1;for(;!Je;){Re===-1&&(Re=Ye.length,Je=!0);const Xe=Ye.slice(Ve,Re).trim();(Xe||!Je)&&Le.push(Xe),Ve=Re+1,Re=Ye.indexOf(",",Ve)}return Le}function Ie(De,Le){const Ye=Le||{};return(De[De.length-1]===""?[...De,""]:De).join((Ye.padRight?" ":"")+","+(Ye.padLeft===!1?"":" ")).trim()}},87342:function(Ge,be,de){"use strict";de.d(be,{ok:function(){return De},t1:function(){return Le}});function le(Ye){return Ye}function Ie(){}function De(){}function Le(){}},40797:function(Ge,be,de){"use strict";de.d(be,{N:function(){return Nt}});var le=de(81994),Ie=de(43309);function De(te,ne){return Le(te,ne||{})||{type:"root",children:[]}}function Le(te,ne){const he=Ye(te,ne);return he&&ne.afterTransform&&ne.afterTransform(te,he),he}function Ye(te,ne){switch(te.nodeType){case 1:return qe(te,ne);case 3:return Je(te);case 8:return Xe(te);case 9:return Re(te,ne);case 10:return Ve();case 11:return Re(te,ne);default:return}}function Re(te,ne){return{type:"root",children:mt(te,ne)}}function Ve(){return{type:"doctype"}}function Je(te){return{type:"text",value:te.nodeValue||""}}function Xe(te){return{type:"comment",value:te.nodeValue||""}}function qe(te,ne){const he=te.namespaceURI,se=he===Ie.t.svg?le.s:le.h,ge=he===Ie.t.html?te.tagName.toLowerCase():te.tagName,Se=he===Ie.t.html&&ge==="template"?te.content:te,Ae=te.getAttributeNames(),Oe={};let Be=-1;for(;++Be<Ae.length;)Oe[Ae[Be]]=te.getAttribute(Ae[Be])||"";return se(ge,Oe,mt(Se,ne))}function mt(te,ne){const he=te.childNodes,se=[];let ge=-1;for(;++ge<he.length;){const Se=Le(he[ge],ne);Se!==void 0&&se.push(Se)}return se}const st=new DOMParser;function Nt(te,ne){const he=ne!=null&&ne.fragment?_e(te):st.parseFromString(te,"text/html");return De(he)}function _e(te){const ne=document.createElement("template");return ne.innerHTML=te,ne.content}},91378:function(Ge,be,de){"use strict";de.d(be,{l:function(){return se}});var le=de(10502);const Ie=function(bt,at,At){const It=(0,le.O)(At);if(!bt||!bt.type||!bt.children)throw new Error("Expected parent node");if(typeof at=="number"){if(at<0||at===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(at=bt.children.indexOf(at),at<0)throw new Error("Expected child node or index");for(;++at<bt.children.length;)if(It(bt.children[at],at,bt))return bt.children[at]},De=function(bt,at,At,It,$t){const Tn=Le(at);if(At!=null&&(typeof At!="number"||At<0||At===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite `index`");if(It!=null&&(!It.type||!It.children))throw new Error("Expected valid `parent`");if(At==null!=(It==null))throw new Error("Expected both `index` and `parent`");return Xe(bt)?Tn.call($t,bt,At,It):!1},Le=function(bt){if(bt==null)return Je;if(typeof bt=="string")return Re(bt);if(typeof bt=="object")return Ye(bt);if(typeof bt=="function")return Ve(bt);throw new Error("Expected function, string, or array as `test`")};function Ye(bt){const at=[];let At=-1;for(;++At<bt.length;)at[At]=Le(bt[At]);return Ve(It);function It(...$t){let Tn=-1;for(;++Tn<at.length;)if(at[Tn].apply(this,$t))return!0;return!1}}function Re(bt){return Ve(at);function at(At){return At.tagName===bt}}function Ve(bt){return at;function at(At,It,$t){return!!(Xe(At)&&bt.call(this,At,typeof It=="number"?It:void 0,$t||void 0))}}function Je(bt){return!!(bt&&typeof bt=="object"&&"type"in bt&&bt.type==="element"&&"tagName"in bt&&typeof bt.tagName=="string")}function Xe(bt){return bt!==null&&typeof bt=="object"&&"type"in bt&&"tagName"in bt}const qe=/\n/g,mt=/[\t ]+/g,st=Le("br"),Nt=Le(ot),_e=Le("p"),te=Le("tr"),ne=Le(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",rt,ht]),he=Le(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function se(bt,at){const At=at||{},It="children"in bt?bt.children:[],$t=he(bt),Tn=Ke(bt,{whitespace:At.whitespace||"normal",breakBefore:!1,breakAfter:!1}),yn=[];(bt.type==="text"||bt.type==="comment")&&yn.push(...Ae(bt,{whitespace:Tn,breakBefore:!0,breakAfter:!0}));let un=-1;for(;++un<It.length;)yn.push(...ge(It[un],bt,{whitespace:Tn,breakBefore:un?void 0:$t,breakAfter:un<It.length-1?st(It[un+1]):$t}));const On=[];let xt;for(un=-1;++un<yn.length;){const ct=yn[un];typeof ct=="number"?xt!==void 0&&ct>xt&&(xt=ct):ct&&(xt!==void 0&&xt>-1&&On.push(`
|
|
|
`.repeat(xt)||" "),xt=-1,On.push(ct))}return On.join("")}function ge(bt,at,At){return bt.type==="element"?Se(bt,at,At):bt.type==="text"?At.whitespace==="normal"?Ae(bt,At):Oe(bt):[]}function Se(bt,at,At){const It=Ke(bt,At),$t=bt.children||[];let Tn=-1,yn=[];if(ne(bt))return yn;let un,On;for(st(bt)||te(bt)&&Ie(at,bt,te)?On=`
|
|
|
`:_e(bt)?(un=2,On=2):he(bt)&&(un=1,On=1);++Tn<$t.length;)yn=yn.concat(ge($t[Tn],bt,{whitespace:It,breakBefore:Tn?void 0:un,breakAfter:Tn<$t.length-1?st($t[Tn+1]):On}));return Nt(bt)&&Ie(at,bt,Nt)&&yn.push(" "),un&&yn.unshift(un),On&&yn.push(On),yn}function Ae(bt,at){const At=String(bt.value),It=[],$t=[];let Tn=0;for(;Tn<=At.length;){qe.lastIndex=Tn;const On=qe.exec(At),xt=On&&"index"in On?On.index:At.length;It.push(Be(At.slice(Tn,xt).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),Tn===0?at.breakBefore:!0,xt===At.length?at.breakAfter:!0)),Tn=xt+1}let yn=-1,un;for(;++yn<It.length;)It[yn].charCodeAt(It[yn].length-1)===8203||yn<It.length-1&&It[yn+1].charCodeAt(0)===8203?($t.push(It[yn]),un=void 0):It[yn]?(typeof un=="number"&&$t.push(un),$t.push(It[yn]),un=0):(yn===0||yn===It.length-1)&&$t.push(0);return $t}function Oe(bt){return[String(bt.value)]}function Be(bt,at,At){const It=[];let $t=0,Tn;for(;$t<bt.length;){mt.lastIndex=$t;const yn=mt.exec(bt);Tn=yn?yn.index:bt.length,!$t&&!Tn&&yn&&!at&&It.push(""),$t!==Tn&&It.push(bt.slice($t,Tn)),$t=yn?Tn+yn[0].length:Tn}return $t!==Tn&&!At&&It.push(""),It.join(" ")}function Ke(bt,at){if(bt.type==="element"){const At=bt.properties||{};switch(bt.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return At.wrap?"pre-wrap":"pre";case"td":case"th":return At.noWrap?"nowrap":at.whitespace;case"textarea":return"pre-wrap";default:}}return at.whitespace}function rt(bt){return!!(bt.properties||{}).hidden}function ot(bt){return bt.tagName==="td"||bt.tagName==="th"}function ht(bt){return bt.tagName==="dialog"&&!(bt.properties||{}).open}},81994:function(Ge,be,de){"use strict";de.d(be,{h:function(){return ne},s:function(){return he}});var le=de(14470),Ie=de(11630);const De=/[#.]/g;function Le(se,ge){const Se=se||"",Ae={};let Oe=0,Be,Ke;for(;Oe<Se.length;){De.lastIndex=Oe;const rt=De.exec(Se),ot=Se.slice(Oe,rt?rt.index:Se.length);ot&&(Be?Be==="#"?Ae.id=ot:Array.isArray(Ae.className)?Ae.className.push(ot):Ae.className=[ot]:Ke=ot,Oe+=ot.length),rt&&(Be=rt[0],Oe++)}return{type:"element",tagName:Ke||ge||"div",properties:Ae,children:[]}}var Ye=de(86825),Re=de(13830),Ve=de(71523);function Je(se,ge,Se){const Ae=Se?_e(Se):void 0;function Oe(Be,Ke,...rt){let ot;if(Be==null){ot={type:"root",children:[]};const ht=Ke;rt.unshift(ht)}else{ot=Le(Be,ge);const ht=ot.tagName.toLowerCase(),bt=Ae?Ae.get(ht):void 0;if(ot.tagName=bt||ht,Xe(Ke))rt.unshift(Ke);else for(const[at,At]of Object.entries(Ke))qe(se,ot.properties,at,At)}for(const ht of rt)mt(ot.children,ht);return ot.type==="element"&&ot.tagName==="template"&&(ot.content={type:"root",children:ot.children},ot.children=[]),ot}return Oe}function Xe(se){if(se===null||typeof se!="object"||Array.isArray(se))return!0;if(typeof se.type!="string")return!1;const ge=se,Se=Object.keys(se);for(const Ae of Se){const Oe=ge[Ae];if(Oe&&typeof Oe=="object"){if(!Array.isArray(Oe))return!0;const Be=Oe;for(const Ke of Be)if(typeof Ke!="number"&&typeof Ke!="string")return!0}}return!!("children"in se&&Array.isArray(se.children))}function qe(se,ge,Se,Ae){const Oe=(0,Ye.s)(se,Se);let Be;if(Ae!=null){if(typeof Ae=="number"){if(Number.isNaN(Ae))return;Be=Ae}else typeof Ae=="boolean"?Be=Ae:typeof Ae=="string"?Oe.spaceSeparated?Be=(0,Ve.Q)(Ae):Oe.commaSeparated?Be=(0,Ie.Q)(Ae):Oe.commaOrSpaceSeparated?Be=(0,Ve.Q)((0,Ie.Q)(Ae).join(" ")):Be=st(Oe,Oe.property,Ae):Array.isArray(Ae)?Be=[...Ae]:Be=Oe.property==="style"?Nt(Ae):String(Ae);if(Array.isArray(Be)){const Ke=[];for(const rt of Be)Ke.push(st(Oe,Oe.property,rt));Be=Ke}Oe.property==="className"&&Array.isArray(ge.className)&&(Be=ge.className.concat(Be)),ge[Oe.property]=Be}}function mt(se,ge){if(ge!=null)if(typeof ge=="number"||typeof ge=="string")se.push({type:"text",value:String(ge)});else if(Array.isArray(ge))for(const Se of ge)mt(se,Se);else if(typeof ge=="object"&&"type"in ge)ge.type==="root"?mt(se,ge.children):se.push(ge);else throw new Error("Expected node, nodes, or string, got `"+ge+"`")}function st(se,ge,Se){if(typeof Se=="string"){if(se.number&&Se&&!Number.isNaN(Number(Se)))return Number(Se);if((se.boolean||se.overloadedBoolean)&&(Se===""||(0,Re.F)(Se)===(0,Re.F)(ge)))return!0}return Se}function Nt(se){const ge=[];for(const[Se,Ae]of Object.entries(se))ge.push([Se,Ae].join(": "));return ge.join("; ")}function _e(se){const ge=new Map;for(const Se of se)ge.set(Se.toLowerCase(),Se);return ge}const te=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],ne=Je(le.dy,"div"),he=Je(le.YP,"g",te)},26735:function(Ge,be,de){"use strict";de.d(be,{f:function(){return Ie}});var le=de(80722);function Ie(De,Le,Ye,Re){const Ve=Re?Re-1:Number.POSITIVE_INFINITY;let Je=0;return Xe;function Xe(mt){return(0,le.xz)(mt)?(De.enter(Ye),qe(mt)):Le(mt)}function qe(mt){return(0,le.xz)(mt)&&Je++<Ve?(De.consume(mt),qe):(De.exit(Ye),Le(mt))}}},80722:function(Ge,be,de){"use strict";de.d(be,{AF:function(){return Re},Av:function(){return Le},B8:function(){return st},Ch:function(){return Je},H$:function(){return Ie},Xh:function(){return mt},jv:function(){return le},n9:function(){return De},pY:function(){return Ye},sR:function(){return Ve},xz:function(){return qe},z3:function(){return Xe}});const le=Nt(/[A-Za-z]/),Ie=Nt(/[\dA-Za-z]/),De=Nt(/[#-'*+\--9=?A-Z^-~]/);function Le(_e){return _e!==null&&(_e<32||_e===127)}const Ye=Nt(/\d/),Re=Nt(/[\dA-Fa-f]/),Ve=Nt(/[!-/:-@[-`{-~]/);function Je(_e){return _e!==null&&_e<-2}function Xe(_e){return _e!==null&&(_e<0||_e===32)}function qe(_e){return _e===-2||_e===-1||_e===32}const mt=Nt(new RegExp("\\p{P}|\\p{S}","u")),st=Nt(/\s/);function Nt(_e){return te;function te(ne){return ne!==null&&ne>-1&&_e.test(String.fromCharCode(ne))}}},14470:function(Ge,be,de){"use strict";de.d(be,{dy:function(){return te},YP:function(){return ne}});class le{constructor(se,ge,Se){this.normal=ge,this.property=se,Se&&(this.space=Se)}}le.prototype.normal={},le.prototype.property={},le.prototype.space=void 0;function Ie(he,se){const ge={},Se={};for(const Ae of he)Object.assign(ge,Ae.property),Object.assign(Se,Ae.normal);return new le(ge,Se,se)}var De=de(13830),Le=de(53538);function Ye(he){const se={},ge={};for(const[Se,Ae]of Object.entries(he.properties)){const Oe=new Le.I(Se,he.transform(he.attributes||{},Se),Ae,he.space);he.mustUseProperty&&he.mustUseProperty.includes(Se)&&(Oe.mustUseProperty=!0),se[Se]=Oe,ge[(0,De.F)(Se)]=Se,ge[(0,De.F)(Oe.attribute)]=Se}return new le(se,ge,he.space)}var Re=de(71337);const Ve=Ye({properties:{ariaActiveDescendant:null,ariaAtomic:Re.booleanish,ariaAutoComplete:null,ariaBusy:Re.booleanish,ariaChecked:Re.booleanish,ariaColCount:Re.number,ariaColIndex:Re.number,ariaColSpan:Re.number,ariaControls:Re.spaceSeparated,ariaCurrent:null,ariaDescribedBy:Re.spaceSeparated,ariaDetails:null,ariaDisabled:Re.booleanish,ariaDropEffect:Re.spaceSeparated,ariaErrorMessage:null,ariaExpanded:Re.booleanish,ariaFlowTo:Re.spaceSeparated,ariaGrabbed:Re.booleanish,ariaHasPopup:null,ariaHidden:Re.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Re.spaceSeparated,ariaLevel:Re.number,ariaLive:null,ariaModal:Re.booleanish,ariaMultiLine:Re.booleanish,ariaMultiSelectable:Re.booleanish,ariaOrientation:null,ariaOwns:Re.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:Re.number,ariaPressed:Re.booleanish,ariaReadOnly:Re.booleanish,ariaRelevant:null,ariaRequired:Re.booleanish,ariaRoleDescription:Re.spaceSeparated,ariaRowCount:Re.number,ariaRowIndex:Re.number,ariaRowSpan:Re.number,ariaSelected:Re.booleanish,ariaSetSize:Re.number,ariaSort:null,ariaValueMax:Re.number,ariaValueMin:Re.number,ariaValueNow:Re.number,ariaValueText:null,role:null},transform(he,se){return se==="role"?se:"aria-"+se.slice(4).toLowerCase()}});function Je(he,se){return se in he?he[se]:se}function Xe(he,se){return Je(he,se.toLowerCase())}const qe=Ye({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Re.commaSeparated,acceptCharset:Re.spaceSeparated,accessKey:Re.spaceSeparated,action:null,allow:null,allowFullScreen:Re.boolean,allowPaymentRequest:Re.boolean,allowUserMedia:Re.boolean,alt:null,as:null,async:Re.boolean,autoCapitalize:null,autoComplete:Re.spaceSeparated,autoFocus:Re.boolean,autoPlay:Re.boolean,blocking:Re.spaceSeparated,capture:null,charSet:null,checked:Re.boolean,cite:null,className:Re.spaceSeparated,cols:Re.number,colSpan:null,content:null,contentEditable:Re.booleanish,controls:Re.boolean,controlsList:Re.spaceSeparated,coords:Re.number|Re.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Re.boolean,defer:Re.boolean,dir:null,dirName:null,disabled:Re.boolean,download:Re.overloadedBoolean,draggable:Re.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Re.boolean,formTarget:null,headers:Re.spaceSeparated,height:Re.number,hidden:Re.overloadedBoolean,high:Re.number,href:null,hrefLang:null,htmlFor:Re.spaceSeparated,httpEquiv:Re.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:Re.boolean,inputMode:null,integrity:null,is:null,isMap:Re.boolean,itemId:null,itemProp:Re.spaceSeparated,itemRef:Re.spaceSeparated,itemScope:Re.boolean,itemType:Re.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Re.boolean,low:Re.number,manifest:null,max:null,maxLength:Re.number,media:null,method:null,min:null,minLength:Re.number,multiple:Re.boolean,muted:Re.boolean,name:null,nonce:null,noModule:Re.boolean,noValidate:Re.boolean,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Re.boolean,optimum:Re.number,pattern:null,ping:Re.spaceSeparated,placeholder:null,playsInline:Re.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Re.boolean,referrerPolicy:null,rel:Re.spaceSeparated,required:Re.boolean,reversed:Re.boolean,rows:Re.number,rowSpan:Re.number,sandbox:Re.spaceSeparated,scope:null,scoped:Re.boolean,seamless:Re.boolean,selected:Re.boolean,shadowRootClonable:Re.boolean,shadowRootDelegatesFocus:Re.boolean,shadowRootMode:null,shape:null,size:Re.number,sizes:null,slot:null,span:Re.number,spellCheck:Re.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Re.number,step:null,style:null,tabIndex:Re.number,target:null,title:null,translate:null,type:null,typeMustMatch:Re.boolean,useMap:null,value:Re.booleanish,width:Re.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Re.spaceSeparated,axis:null,background:null,bgColor:null,border:Re.number,borderColor:null,bottomMargin:Re.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Re.boolean,declare:Re.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:Re.number,leftMargin:Re.number,link:null,longDesc:null,lowSrc:null,marginHeight:Re.number,marginWidth:Re.number,noResize:Re.boolean,noHref:Re.boolean,noShade:Re.boolean,noWrap:Re.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:Re.number,rules:null,scheme:null,scrolling:Re.booleanish,standby:null,summary:null,text:null,topMargin:Re.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Re.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Re.boolean,disableRemotePlayback:Re.boolean,prefix:null,property:null,results:Re.number,security:null,unselectable:null},space:"html",transform:Xe}),mt=Ye({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Re.commaOrSpaceSeparated,accentHeight:Re.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Re.number,amplitude:Re.number,arabicForm:null,ascent:Re.number,attributeName:null,attributeType:null,azimuth:Re.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Re.number,by:null,calcMode:null,capHeight:Re.number,className:Re.spaceSeparated,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Re.number,diffuseConstant:Re.number,direction:null,display:null,dur:null,divisor:Re.number,dominantBaseline:null,download:Re.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:Re.number,enableBackground:null,end:null,event:null,exponent:Re.number,externalResourcesRequired:null,fill:null,fillOpacity:Re.number,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Re.commaSeparated,g2:Re.commaSeparated,glyphName:Re.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Re.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Re.number,horizOriginX:Re.number,horizOriginY:Re.number,id:null,ideographic:Re.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Re.number,k:Re.number,k1:Re.number,k2:Re.number,k3:Re.number,k4:Re.number,kernelMatrix:Re.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Re.number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Re.number,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Re.number,overlineThickness:Re.number,paintOrder:null,panose1:null,path:null,pathLength:Re.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Re.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Re.number,pointsAtY:Re.number,pointsAtZ:Re.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Re.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Re.commaOrSpaceSeparated,rev:Re.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Re.commaOrSpaceSeparated,requiredFeatures:Re.commaOrSpaceSeparated,requiredFonts:Re.commaOrSpaceSeparated,requiredFormats:Re.commaOrSpaceSeparated,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Re.number,specularExponent:Re.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Re.number,strikethroughThickness:Re.number,string:null,stroke:null,strokeDashArray:Re.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Re.number,strokeOpacity:Re.number,strokeWidth:null,style:null,surfaceScale:Re.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Re.commaOrSpaceSeparated,tabIndex:Re.number,tableValues:null,target:null,targetX:Re.number,targetY:Re.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Re.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Re.number,underlineThickness:Re.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Re.number,values:null,vAlphabetic:Re.number,vMathematical:Re.number,vectorEffect:null,vHanging:Re.number,vIdeographic:Re.number,version:null,vertAdvY:Re.number,vertOriginX:Re.number,vertOriginY:Re.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Re.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Je}),st=Ye({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(he,se){return"xlink:"+se.slice(5).toLowerCase()}}),Nt=Ye({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Xe}),_e=Ye({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(he,se){return"xml:"+se.slice(3).toLowerCase()}}),te=Ie([Ve,qe,st,Nt,_e],"html"),ne=Ie([Ve,mt,st,Nt,_e],"svg")},86825:function(Ge,be,de){"use strict";de.d(be,{s:function(){return Ve}});var le=de(53538),Ie=de(25629),De=de(13830);const Le=/[A-Z]/g,Ye=/-[a-z]/g,Re=/^data[-\w.:]+$/i;function Ve(qe,mt){const st=(0,De.F)(mt);let Nt=mt,_e=Ie.k;if(st in qe.normal)return qe.property[qe.normal[st]];if(st.length>4&&st.slice(0,4)==="data"&&Re.test(mt)){if(mt.charAt(4)==="-"){const te=mt.slice(5).replace(Ye,Xe);Nt="data"+te.charAt(0).toUpperCase()+te.slice(1)}else{const te=mt.slice(4);if(!Ye.test(te)){let ne=te.replace(Le,Je);ne.charAt(0)!=="-"&&(ne="-"+ne),mt="data"+ne}}_e=le.I}return new _e(Nt,mt)}function Je(qe){return"-"+qe.toLowerCase()}function Xe(qe){return qe.charAt(1).toUpperCase()}},13830:function(Ge,be,de){"use strict";de.d(be,{F:function(){return le}});function le(Ie){return Ie.toLowerCase()}},53538:function(Ge,be,de){"use strict";de.d(be,{I:function(){return Le}});var le=de(25629),Ie=de(71337);const De=Object.keys(Ie);class Le extends le.k{constructor(Ve,Je,Xe,qe){let mt=-1;if(super(Ve,Je),Ye(this,"space",qe),typeof Xe=="number")for(;++mt<De.length;){const st=De[mt];Ye(this,De[mt],(Xe&Ie[st])===Ie[st])}}}Le.prototype.defined=!0;function Ye(Re,Ve,Je){Je&&(Re[Ve]=Je)}},25629:function(Ge,be,de){"use strict";de.d(be,{k:function(){return le}});class le{constructor(De,Le){this.attribute=Le,this.property=De}}le.prototype.attribute="",le.prototype.booleanish=!1,le.prototype.boolean=!1,le.prototype.commaOrSpaceSeparated=!1,le.prototype.commaSeparated=!1,le.prototype.defined=!1,le.prototype.mustUseProperty=!1,le.prototype.number=!1,le.prototype.overloadedBoolean=!1,le.prototype.property="",le.prototype.spaceSeparated=!1,le.prototype.space=void 0},71337:function(Ge,be,de){"use strict";de.r(be),de.d(be,{boolean:function(){return Ie},booleanish:function(){return De},commaOrSpaceSeparated:function(){return Je},commaSeparated:function(){return Ve},number:function(){return Ye},overloadedBoolean:function(){return Le},spaceSeparated:function(){return Re}});let le=0;const Ie=Xe(),De=Xe(),Le=Xe(),Ye=Xe(),Re=Xe(),Ve=Xe(),Je=Xe();function Xe(){return Xy(2,++le)}},74439:function(Ge,be,de){"use strict";de.d(be,{UG:function(){return ns}});var le={};de.r(le),de.d(le,{attentionMarkers:function(){return El},contentInitial:function(){return ul},disable:function(){return ds},document:function(){return ca},flow:function(){return Zl},flowInitial:function(){return Ua},insideSpan:function(){return cl},string:function(){return ws},text:function(){return mr}});var Ie=de(87342),De=de(11630);const Le=/[$_\p{ID_Start}]/u,Ye=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,Re=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,Ve=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Je=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Xe={};function qe(we){return we?Le.test(String.fromCodePoint(we)):!1}function mt(we,He){const tt=(He||Xe).jsx?Re:Ye;return we?tt.test(String.fromCodePoint(we)):!1}function st(we,He){return((He||Xe).jsx?Je:Ve).test(we)}const Nt=/[ \t\n\f\r]/g;function _e(we){return typeof we=="object"?we.type==="text"?te(we.value):!1:te(we)}function te(we){return we.replace(Nt,"")===""}var ne=de(14470),he=de(86825);const se={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var ge=de(71523),Se=de(77179),Ae=de(17970);function Oe(we){return!we||typeof we!="object"?"":"position"in we||"type"in we?Ke(we.position):"start"in we||"end"in we?Ke(we):"line"in we||"column"in we?Be(we):""}function Be(we){return rt(we&&we.line)+":"+rt(we&&we.column)}function Ke(we){return Be(we&&we.start)+"-"+Be(we&&we.end)}function rt(we){return we&&typeof we=="number"?we:1}class ot extends Error{constructor(He,Qe,tt){super(),typeof Qe=="string"&&(tt=Qe,Qe=void 0);let Et="",wt={},Bt=!1;if(Qe&&("line"in Qe&&"column"in Qe?wt={place:Qe}:"start"in Qe&&"end"in Qe?wt={place:Qe}:"type"in Qe?wt={ancestors:[Qe],place:Qe.position}:wt=Mo({},Qe)),typeof He=="string"?Et=He:!wt.cause&&He&&(Bt=!0,Et=He.message,wt.cause=He),!wt.ruleId&&!wt.source&&typeof tt=="string"){const _n=tt.indexOf(":");_n===-1?wt.ruleId=tt:(wt.source=tt.slice(0,_n),wt.ruleId=tt.slice(_n+1))}if(!wt.place&&wt.ancestors&&wt.ancestors){const _n=wt.ancestors[wt.ancestors.length-1];_n&&(wt.place=_n.position)}const Qt=wt.place&&"start"in wt.place?wt.place.start:wt.place;this.ancestors=wt.ancestors||void 0,this.cause=wt.cause||void 0,this.column=Qt?Qt.column:void 0,this.fatal=void 0,this.file,this.message=Et,this.line=Qt?Qt.line:void 0,this.name=Oe(wt.place)||"1:1",this.place=wt.place||void 0,this.reason=this.message,this.ruleId=wt.ruleId||void 0,this.source=wt.source||void 0,this.stack=Bt&&wt.cause&&typeof wt.cause.stack=="string"?wt.cause.stack:"",this.actual,this.expected,this.note,this.url}}ot.prototype.file="",ot.prototype.name="",ot.prototype.reason="",ot.prototype.message="",ot.prototype.stack="",ot.prototype.column=void 0,ot.prototype.line=void 0,ot.prototype.ancestors=void 0,ot.prototype.cause=void 0,ot.prototype.fatal=void 0,ot.prototype.place=void 0,ot.prototype.ruleId=void 0,ot.prototype.source=void 0;const ht={}.hasOwnProperty,bt=new Map,at=/[A-Z]/g,At=new Set(["table","tbody","thead","tfoot","tr"]),It=new Set(["td","th"]),$t="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Tn(we,He){if(!He||He.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const Qe=He.filePath||void 0;let tt;if(He.development){if(typeof He.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");tt=ln(Qe,He.jsxDEV)}else{if(typeof He.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof He.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");tt=an(Qe,He.jsx,He.jsxs)}const Et={Fragment:He.Fragment,ancestors:[],components:He.components||{},create:tt,elementAttributeNameCase:He.elementAttributeNameCase||"react",evaluater:He.createEvaluater?He.createEvaluater():void 0,filePath:Qe,ignoreInvalidStyle:He.ignoreInvalidStyle||!1,passKeys:He.passKeys!==!1,passNode:He.passNode||!1,schema:He.space==="svg"?ne.YP:ne.dy,stylePropertyNameCase:He.stylePropertyNameCase||"dom",tableCellAlignToStyle:He.tableCellAlignToStyle!==!1},wt=yn(Et,we,void 0);return wt&&typeof wt!="string"?wt:Et.create(we,Et.Fragment,{children:wt||void 0},void 0)}function yn(we,He,Qe){if(He.type==="element")return un(we,He,Qe);if(He.type==="mdxFlowExpression"||He.type==="mdxTextExpression")return On(we,He);if(He.type==="mdxJsxFlowElement"||He.type==="mdxJsxTextElement")return ct(we,He,Qe);if(He.type==="mdxjsEsm")return xt(we,He);if(He.type==="root")return it(we,He,Qe);if(He.type==="text")return cn(we,He)}function un(we,He,Qe){const tt=we.schema;let Et=tt;He.tagName.toLowerCase()==="svg"&&tt.space==="html"&&(Et=ne.YP,we.schema=Et),we.ancestors.push(He);const wt=yi(we,He.tagName,!1),Bt=zn(we,He);let Qt=ii(we,He);return At.has(He.tagName)&&(Qt=Qt.filter(function(_n){return typeof _n=="string"?!_e(_n):!0})),An(we,Bt,wt,He),Pt(Bt,Qt),we.ancestors.pop(),we.schema=tt,we.create(He,wt,Bt,Qe)}function On(we,He){if(He.data&&He.data.estree&&we.evaluater){const tt=He.data.estree.body[0];return(0,Ie.ok)(tt.type==="ExpressionStatement"),we.evaluater.evaluateExpression(tt.expression)}et(we,He.position)}function xt(we,He){if(He.data&&He.data.estree&&we.evaluater)return we.evaluater.evaluateProgram(He.data.estree);et(we,He.position)}function ct(we,He,Qe){const tt=we.schema;let Et=tt;He.name==="svg"&&tt.space==="html"&&(Et=ne.YP,we.schema=Et),we.ancestors.push(He);const wt=He.name===null?we.Fragment:yi(we,He.name,!0),Bt=En(we,He),Qt=ii(we,He);return An(we,Bt,wt,He),Pt(Bt,Qt),we.ancestors.pop(),we.schema=tt,we.create(He,wt,Bt,Qe)}function it(we,He,Qe){const tt={};return Pt(tt,ii(we,He)),we.create(He,we.Fragment,tt,Qe)}function cn(we,He){return He.value}function An(we,He,Qe,tt){typeof Qe!="string"&&Qe!==we.Fragment&&we.passNode&&(He.node=tt)}function Pt(we,He){if(He.length>0){const Qe=He.length>1?He:He[0];Qe&&(we.children=Qe)}}function an(we,He,Qe){return tt;function tt(Et,wt,Bt,Qt){const Hn=Array.isArray(Bt.children)?Qe:He;return Qt?Hn(wt,Bt,Qt):Hn(wt,Bt)}}function ln(we,He){return Qe;function Qe(tt,Et,wt,Bt){const Qt=Array.isArray(wt.children),_n=(0,Ae.Pk)(tt);return He(Et,wt,Bt,Qt,{columnNumber:_n?_n.column-1:void 0,fileName:we,lineNumber:_n?_n.line:void 0},void 0)}}function zn(we,He){const Qe={};let tt,Et;for(Et in He.properties)if(Et!=="children"&&ht.call(He.properties,Et)){const wt=kt(we,Et,He.properties[Et]);if(wt){const[Bt,Qt]=wt;we.tableCellAlignToStyle&&Bt==="align"&&typeof Qt=="string"&&It.has(He.tagName)?tt=Qt:Qe[Bt]=Qt}}if(tt){const wt=Qe.style||(Qe.style={});wt[we.stylePropertyNameCase==="css"?"text-align":"textAlign"]=tt}return Qe}function En(we,He){const Qe={};for(const tt of He.attributes)if(tt.type==="mdxJsxExpressionAttribute")if(tt.data&&tt.data.estree&&we.evaluater){const wt=tt.data.estree.body[0];(0,Ie.ok)(wt.type==="ExpressionStatement");const Bt=wt.expression;(0,Ie.ok)(Bt.type==="ObjectExpression");const Qt=Bt.properties[0];(0,Ie.ok)(Qt.type==="SpreadElement"),Object.assign(Qe,we.evaluater.evaluateExpression(Qt.argument))}else et(we,He.position);else{const Et=tt.name;let wt;if(tt.value&&typeof tt.value=="object")if(tt.value.data&&tt.value.data.estree&&we.evaluater){const Qt=tt.value.data.estree.body[0];(0,Ie.ok)(Qt.type==="ExpressionStatement"),wt=we.evaluater.evaluateExpression(Qt.expression)}else et(we,He.position);else wt=tt.value===null?!0:tt.value;Qe[Et]=wt}return Qe}function ii(we,He){const Qe=[];let tt=-1;const Et=we.passKeys?new Map:bt;for(;++tt<He.children.length;){const wt=He.children[tt];let Bt;if(we.passKeys){const _n=wt.type==="element"?wt.tagName:wt.type==="mdxJsxFlowElement"||wt.type==="mdxJsxTextElement"?wt.name:void 0;if(_n){const Hn=Et.get(_n)||0;Bt=_n+"-"+Hn,Et.set(_n,Hn+1)}}const Qt=yn(we,wt,Bt);Qt!==void 0&&Qe.push(Qt)}return Qe}function kt(we,He,Qe){const tt=(0,he.s)(we.schema,He);if(!(Qe==null||typeof Qe=="number"&&Number.isNaN(Qe))){if(Array.isArray(Qe)&&(Qe=tt.commaSeparated?(0,De.P)(Qe):(0,ge.P)(Qe)),tt.property==="style"){let Et=typeof Qe=="object"?Qe:Kn(we,String(Qe));return we.stylePropertyNameCase==="css"&&(Et=ze(Et)),["style",Et]}return[we.elementAttributeNameCase==="react"&&tt.space?se[tt.property]||tt.property:tt.attribute,Qe]}}function Kn(we,He){try{return Se(He,{reactCompat:!0})}catch(Qe){if(we.ignoreInvalidStyle)return{};const tt=Qe,Et=new ot("Cannot parse `style` attribute",{ancestors:we.ancestors,cause:tt,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw Et.file=we.filePath||void 0,Et.url=$t+"#cannot-parse-style-attribute",Et}}function yi(we,He,Qe){let tt;if(!Qe)tt={type:"Literal",value:He};else if(He.includes(".")){const Et=He.split(".");let wt=-1,Bt;for(;++wt<Et.length;){const Qt=st(Et[wt])?{type:"Identifier",name:Et[wt]}:{type:"Literal",value:Et[wt]};Bt=Bt?{type:"MemberExpression",object:Bt,property:Qt,computed:!!(wt&&Qt.type==="Literal"),optional:!1}:Qt}(0,Ie.ok)(Bt,"always a result"),tt=Bt}else tt=st(He)&&!/^[a-z]/.test(He)?{type:"Identifier",name:He}:{type:"Literal",value:He};if(tt.type==="Literal"){const Et=tt.value;return ht.call(we.components,Et)?we.components[Et]:Et}if(we.evaluater)return we.evaluater.evaluateExpression(tt);et(we)}function et(we,He){const Qe=new ot("Cannot handle MDX estrees without `createEvaluater`",{ancestors:we.ancestors,place:He,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw Qe.file=we.filePath||void 0,Qe.url=$t+"#cannot-handle-mdx-estrees-without-createevaluater",Qe}function ze(we){const He={};let Qe;for(Qe in we)ht.call(we,Qe)&&(He[xe(Qe)]=we[Qe]);return He}function xe(we){let He=we.replace(at,Te);return He.slice(0,3)==="ms-"&&(He="-"+He),He}function Te(we){return"-"+we.toLowerCase()}const Me={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var Ce=de(37712),ut=de(59301);const Lt={};function Mt(we,He){const Qe=He||Lt,tt=typeof Qe.includeImageAlt=="boolean"?Qe.includeImageAlt:!0,Et=typeof Qe.includeHtml=="boolean"?Qe.includeHtml:!0;return Yt(we,tt,Et)}function Yt(we,He,Qe){if(Gt(we)){if("value"in we)return we.type==="html"&&!Qe?"":we.value;if(He&&"alt"in we&&we.alt)return we.alt;if("children"in we)return Vt(we.children,He,Qe)}return Array.isArray(we)?Vt(we,He,Qe):""}function Vt(we,He,Qe){const tt=[];let Et=-1;for(;++Et<we.length;)tt[Et]=Yt(we[Et],He,Qe);return tt.join("")}function Gt(we){return!!(we&&typeof we=="object")}function gn(we,He,Qe,tt){const Et=we.length;let wt=0,Bt;if(He<0?He=-He>Et?0:Et+He:He=He>Et?Et:He,Qe=Qe>0?Qe:0,tt.length<1e4)Bt=Array.from(tt),Bt.unshift(He,Qe),we.splice(...Bt);else for(Qe&&we.splice(He,Qe);wt<tt.length;)Bt=tt.slice(wt,wt+1e4),Bt.unshift(He,0),we.splice(...Bt),wt+=1e4,He+=1e4}function qt(we,He){return we.length>0?(gn(we,we.length,0,He),we):He}class fn{constructor(He){this.left=He?[...He]:[],this.right=[]}get(He){if(He<0||He>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+He+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return He<this.left.length?this.left[He]:this.right[this.right.length-He+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(He,Qe){const tt=Qe==null?Number.POSITIVE_INFINITY:Qe;return tt<this.left.length?this.left.slice(He,tt):He>this.left.length?this.right.slice(this.right.length-tt+this.left.length,this.right.length-He+this.left.length).reverse():this.left.slice(He).concat(this.right.slice(this.right.length-tt+this.left.length).reverse())}splice(He,Qe,tt){const Et=Qe||0;this.setCursor(Math.trunc(He));const wt=this.right.splice(this.right.length-Et,Number.POSITIVE_INFINITY);return tt&&sn(this.left,tt),wt.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(He){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(He)}pushMany(He){this.setCursor(Number.POSITIVE_INFINITY),sn(this.left,He)}unshift(He){this.setCursor(0),this.right.push(He)}unshiftMany(He){this.setCursor(0),sn(this.right,He.reverse())}setCursor(He){if(!(He===this.left.length||He>this.left.length&&this.right.length===0||He<0&&this.left.length===0))if(He<this.left.length){const Qe=this.left.splice(He,Number.POSITIVE_INFINITY);sn(this.right,Qe.reverse())}else{const Qe=this.right.splice(this.left.length+this.right.length-He,Number.POSITIVE_INFINITY);sn(this.left,Qe.reverse())}}}function sn(we,He){let Qe=0;if(He.length<1e4)we.push(...He);else for(;Qe<He.length;)we.push(...He.slice(Qe,Qe+1e4)),Qe+=1e4}function _t(we){const He={};let Qe=-1,tt,Et,wt,Bt,Qt,_n,Hn;const xn=new fn(we);for(;++Qe<xn.length;){for(;Qe in He;)Qe=He[Qe];if(tt=xn.get(Qe),Qe&&tt[1].type==="chunkFlow"&&xn.get(Qe-1)[1].type==="listItemPrefix"&&(_n=tt[1]._tokenizer.events,wt=0,wt<_n.length&&_n[wt][1].type==="lineEndingBlank"&&(wt+=2),wt<_n.length&&_n[wt][1].type==="content"))for(;++wt<_n.length&&_n[wt][1].type!=="content";)_n[wt][1].type==="chunkText"&&(_n[wt][1]._isInFirstContentOfListItem=!0,wt++);if(tt[0]==="enter")tt[1].contentType&&(Object.assign(He,wn(xn,Qe)),Qe=He[Qe],Hn=!0);else if(tt[1]._container){for(wt=Qe,Et=void 0;wt--;)if(Bt=xn.get(wt),Bt[1].type==="lineEnding"||Bt[1].type==="lineEndingBlank")Bt[0]==="enter"&&(Et&&(xn.get(Et)[1].type="lineEndingBlank"),Bt[1].type="lineEnding",Et=wt);else if(!(Bt[1].type==="linePrefix"||Bt[1].type==="listItemIndent"))break;Et&&(tt[1].end=Mo({},xn.get(Et)[1].start),Qt=xn.slice(Et,Qe),Qt.unshift(tt),xn.splice(Et,Qe-Et+1,Qt))}}return gn(we,0,Number.POSITIVE_INFINITY,xn.slice(0)),!Hn}function wn(we,He){const Qe=we.get(He)[1],tt=we.get(He)[2];let Et=He-1;const wt=[];let Bt=Qe._tokenizer;Bt||(Bt=tt.parser[Qe.contentType](Qe.start),Qe._contentTypeTextTrailing&&(Bt._contentTypeTextTrailing=!0));const Qt=Bt.events,_n=[],Hn={};let xn,ri,$n=-1,Pn=Qe,Br=0,Xr=0;const so=[Xr];for(;Pn;){for(;we.get(++Et)[1]!==Pn;);wt.push(Et),Pn._tokenizer||(xn=tt.sliceStream(Pn),Pn.next||xn.push(null),ri&&Bt.defineSkip(Pn.start),Pn._isInFirstContentOfListItem&&(Bt._gfmTasklistFirstContentOfListItem=!0),Bt.write(xn),Pn._isInFirstContentOfListItem&&(Bt._gfmTasklistFirstContentOfListItem=void 0)),ri=Pn,Pn=Pn.next}for(Pn=Qe;++$n<Qt.length;)Qt[$n][0]==="exit"&&Qt[$n-1][0]==="enter"&&Qt[$n][1].type===Qt[$n-1][1].type&&Qt[$n][1].start.line!==Qt[$n][1].end.line&&(Xr=$n+1,so.push(Xr),Pn._tokenizer=void 0,Pn.previous=void 0,Pn=Pn.next);for(Bt.events=[],Pn?(Pn._tokenizer=void 0,Pn.previous=void 0):so.pop(),$n=so.length;$n--;){const Er=Qt.slice(so[$n],so[$n+1]),zr=wt.pop();_n.push([zr,zr+Er.length-1]),we.splice(zr,2,Er)}for(_n.reverse(),$n=-1;++$n<_n.length;)Hn[Br+_n[$n][0]]=Br+_n[$n][1],Br+=_n[$n][1]-_n[$n][0]-1;return Hn}function dn(we){for(;!_t(we););return we}const Sn={}.hasOwnProperty;function nn(we){const He={};let Qe=-1;for(;++Qe<we.length;)si(He,we[Qe]);return He}function si(we,He){let Qe;for(Qe in He){const Et=(Sn.call(we,Qe)?we[Qe]:void 0)||(we[Qe]={}),wt=He[Qe];let Bt;if(wt)for(Bt in wt){Sn.call(Et,Bt)||(Et[Bt]=[]);const Qt=wt[Bt];Fn(Et[Bt],Array.isArray(Qt)?Qt:Qt?[Qt]:[])}}}function Fn(we,He){let Qe=-1;const tt=[];for(;++Qe<He.length;)(He[Qe].add==="after"?we:tt).push(He[Qe]);gn(we,0,0,tt)}function yt(we){const He={};let Qe=-1;for(;++Qe<we.length;)kn(He,we[Qe]);return He}function kn(we,He){let Qe;for(Qe in He){const Et=(Sn.call(we,Qe)?we[Qe]:void 0)||(we[Qe]={}),wt=He[Qe];let Bt;if(wt)for(Bt in wt)Et[Bt]=wt[Bt]}}var Cn=de(26735),Ht=de(80722);const di={tokenize:zi};function zi(we){const He=we.attempt(this.parser.constructs.contentInitial,tt,Et);let Qe;return He;function tt(Qt){if(Qt===null){we.consume(Qt);return}return we.enter("lineEnding"),we.consume(Qt),we.exit("lineEnding"),(0,Cn.f)(we,He,"linePrefix")}function Et(Qt){return we.enter("paragraph"),wt(Qt)}function wt(Qt){const _n=we.enter("chunkText",{contentType:"text",previous:Qe});return Qe&&(Qe.next=_n),Qe=_n,Bt(Qt)}function Bt(Qt){if(Qt===null){we.exit("chunkText"),we.exit("paragraph"),we.consume(Qt);return}return(0,Ht.Ch)(Qt)?(we.consume(Qt),we.exit("chunkText"),wt):(we.consume(Qt),Bt)}}const Ni={tokenize:rr},Ln={tokenize:Hi};function rr(we){const He=this,Qe=[];let tt=0,Et,wt,Bt;return Qt;function Qt(Yr){if(tt<Qe.length){const aa=Qe[tt];return He.containerState=aa[1],we.attempt(aa[0].continuation,_n,Hn)(Yr)}return Hn(Yr)}function _n(Yr){if(tt++,He.containerState._closeFlow){He.containerState._closeFlow=void 0,Et&&zr();const aa=He.events.length;let sa=aa,or;for(;sa--;)if(He.events[sa][0]==="exit"&&He.events[sa][1].type==="chunkFlow"){or=He.events[sa][1].end;break}Er(tt);let da=aa;for(;da<He.events.length;)He.events[da][1].end=Mo({},or),da++;return gn(He.events,sa+1,0,He.events.slice(aa)),He.events.length=da,Hn(Yr)}return Qt(Yr)}function Hn(Yr){if(tt===Qe.length){if(!Et)return $n(Yr);if(Et.currentConstruct&&Et.currentConstruct.concrete)return Br(Yr);He.interrupt=!!(Et.currentConstruct&&!Et._gfmTableDynamicInterruptHack)}return He.containerState={},we.check(Ln,xn,ri)(Yr)}function xn(Yr){return Et&&zr(),Er(tt),$n(Yr)}function ri(Yr){return He.parser.lazy[He.now().line]=tt!==Qe.length,Bt=He.now().offset,Br(Yr)}function $n(Yr){return He.containerState={},we.attempt(Ln,Pn,Br)(Yr)}function Pn(Yr){return tt++,Qe.push([He.currentConstruct,He.containerState]),$n(Yr)}function Br(Yr){if(Yr===null){Et&&zr(),Er(0),we.consume(Yr);return}return Et=Et||He.parser.flow(He.now()),we.enter("chunkFlow",{_tokenizer:Et,contentType:"flow",previous:wt}),Xr(Yr)}function Xr(Yr){if(Yr===null){so(we.exit("chunkFlow"),!0),Er(0),we.consume(Yr);return}return(0,Ht.Ch)(Yr)?(we.consume(Yr),so(we.exit("chunkFlow")),tt=0,He.interrupt=void 0,Qt):(we.consume(Yr),Xr)}function so(Yr,aa){const sa=He.sliceStream(Yr);if(aa&&sa.push(null),Yr.previous=wt,wt&&(wt.next=Yr),wt=Yr,Et.defineSkip(Yr.start),Et.write(sa),He.parser.lazy[Yr.start.line]){let or=Et.events.length;for(;or--;)if(Et.events[or][1].start.offset<Bt&&(!Et.events[or][1].end||Et.events[or][1].end.offset>Bt))return;const da=He.events.length;let ka=da,ta,Fr;for(;ka--;)if(He.events[ka][0]==="exit"&&He.events[ka][1].type==="chunkFlow"){if(ta){Fr=He.events[ka][1].end;break}ta=!0}for(Er(tt),or=da;or<He.events.length;)He.events[or][1].end=Mo({},Fr),or++;gn(He.events,ka+1,0,He.events.slice(da)),He.events.length=or}}function Er(Yr){let aa=Qe.length;for(;aa-- >Yr;){const sa=Qe[aa];He.containerState=sa[1],sa[0].exit.call(He,we)}Qe.length=Yr}function zr(){Et.write([null]),wt=void 0,Et=void 0,He.containerState._closeFlow=void 0}}function Hi(we,He,Qe){return(0,Cn.f)(we,we.attempt(this.parser.constructs.document,He,Qe),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const ui={partial:!0,tokenize:wi};function wi(we,He,Qe){return tt;function tt(wt){return(0,Ht.xz)(wt)?(0,Cn.f)(we,Et,"linePrefix")(wt):Et(wt)}function Et(wt){return wt===null||(0,Ht.Ch)(wt)?He(wt):Qe(wt)}}const Di={resolve:mi,tokenize:ki},ke={partial:!0,tokenize:Yn};function mi(we){return _t(we),we}function ki(we,He){let Qe;return tt;function tt(Qt){return we.enter("content"),Qe=we.enter("chunkContent",{contentType:"content"}),Et(Qt)}function Et(Qt){return Qt===null?wt(Qt):(0,Ht.Ch)(Qt)?we.check(ke,Bt,wt)(Qt):(we.consume(Qt),Et)}function wt(Qt){return we.exit("chunkContent"),we.exit("content"),He(Qt)}function Bt(Qt){return we.consume(Qt),we.exit("chunkContent"),Qe.next=we.enter("chunkContent",{contentType:"content",previous:Qe}),Qe=Qe.next,Et}}function Yn(we,He,Qe){const tt=this;return Et;function Et(Bt){return we.exit("chunkContent"),we.enter("lineEnding"),we.consume(Bt),we.exit("lineEnding"),(0,Cn.f)(we,wt,"linePrefix")}function wt(Bt){if(Bt===null||(0,Ht.Ch)(Bt))return Qe(Bt);const Qt=tt.events[tt.events.length-1];return!tt.parser.constructs.disable.null.includes("codeIndented")&&Qt&&Qt[1].type==="linePrefix"&&Qt[2].sliceSerialize(Qt[1],!0).length>=4?He(Bt):we.interrupt(tt.parser.constructs.flow,Qe,He)(Bt)}}const fi={tokenize:Ai};function Ai(we){const He=this,Qe=we.attempt(ui,tt,we.attempt(this.parser.constructs.flowInitial,Et,(0,Cn.f)(we,we.attempt(this.parser.constructs.flow,Et,we.attempt(Di,Et)),"linePrefix")));return Qe;function tt(wt){if(wt===null){we.consume(wt);return}return we.enter("lineEndingBlank"),we.consume(wt),we.exit("lineEndingBlank"),He.currentConstruct=void 0,Qe}function Et(wt){if(wt===null){we.consume(wt);return}return we.enter("lineEnding"),we.consume(wt),we.exit("lineEnding"),He.currentConstruct=void 0,Qe}}const xi={resolveAll:en()},hr=Kt("string"),er=Kt("text");function Kt(we){return{resolveAll:en(we==="text"?zt:void 0),tokenize:He};function He(Qe){const tt=this,Et=this.parser.constructs[we],wt=Qe.attempt(Et,Bt,Qt);return Bt;function Bt(xn){return Hn(xn)?wt(xn):Qt(xn)}function Qt(xn){if(xn===null){Qe.consume(xn);return}return Qe.enter("data"),Qe.consume(xn),_n}function _n(xn){return Hn(xn)?(Qe.exit("data"),wt(xn)):(Qe.consume(xn),_n)}function Hn(xn){if(xn===null)return!0;const ri=Et[xn];let $n=-1;if(ri)for(;++$n<ri.length;){const Pn=ri[$n];if(!Pn.previous||Pn.previous.call(tt,tt.previous))return!0}return!1}}}function en(we){return He;function He(Qe,tt){let Et=-1,wt;for(;++Et<=Qe.length;)wt===void 0?Qe[Et]&&Qe[Et][1].type==="data"&&(wt=Et,Et++):(!Qe[Et]||Qe[Et][1].type!=="data")&&(Et!==wt+2&&(Qe[wt][1].end=Qe[Et-1][1].end,Qe.splice(wt+2,Et-wt-2),Et=wt+2),wt=void 0);return we?we(Qe,tt):Qe}}function zt(we,He){let Qe=0;for(;++Qe<=we.length;)if((Qe===we.length||we[Qe][1].type==="lineEnding")&&we[Qe-1][1].type==="data"){const tt=we[Qe-1][1],Et=He.sliceStream(tt);let wt=Et.length,Bt=-1,Qt=0,_n;for(;wt--;){const Hn=Et[wt];if(typeof Hn=="string"){for(Bt=Hn.length;Hn.charCodeAt(Bt-1)===32;)Qt++,Bt--;if(Bt)break;Bt=-1}else if(Hn===-2)_n=!0,Qt++;else if(Hn!==-1){wt++;break}}if(He._contentTypeTextTrailing&&Qe===we.length&&(Qt=0),Qt){const Hn={type:Qe===we.length||_n||Qt<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:wt?Bt:tt.start._bufferIndex+Bt,_index:tt.start._index+wt,line:tt.end.line,column:tt.end.column-Qt,offset:tt.end.offset-Qt},end:Mo({},tt.end)};tt.end=Mo({},Hn.start),tt.start.offset===tt.end.offset?Object.assign(tt,Hn):(we.splice(Qe,0,["enter",Hn,He],["exit",Hn,He]),Qe+=2)}Qe++}return we}const on={name:"thematicBreak",tokenize:rn};function rn(we,He,Qe){let tt=0,Et;return wt;function wt(Hn){return we.enter("thematicBreak"),Bt(Hn)}function Bt(Hn){return Et=Hn,Qt(Hn)}function Qt(Hn){return Hn===Et?(we.enter("thematicBreakSequence"),_n(Hn)):tt>=3&&(Hn===null||(0,Ht.Ch)(Hn))?(we.exit("thematicBreak"),He(Hn)):Qe(Hn)}function _n(Hn){return Hn===Et?(we.consume(Hn),tt++,_n):(we.exit("thematicBreakSequence"),(0,Ht.xz)(Hn)?(0,Cn.f)(we,Qt,"whitespace")(Hn):Qt(Hn))}}const mn={continuation:{tokenize:Fi},exit:lt,name:"list",tokenize:ji},Bn={partial:!0,tokenize:Ut},ei={partial:!0,tokenize:Yi};function ji(we,He,Qe){const tt=this,Et=tt.events[tt.events.length-1];let wt=Et&&Et[1].type==="linePrefix"?Et[2].sliceSerialize(Et[1],!0).length:0,Bt=0;return Qt;function Qt(Pn){const Br=tt.containerState.type||(Pn===42||Pn===43||Pn===45?"listUnordered":"listOrdered");if(Br==="listUnordered"?!tt.containerState.marker||Pn===tt.containerState.marker:(0,Ht.pY)(Pn)){if(tt.containerState.type||(tt.containerState.type=Br,we.enter(Br,{_container:!0})),Br==="listUnordered")return we.enter("listItemPrefix"),Pn===42||Pn===45?we.check(on,Qe,Hn)(Pn):Hn(Pn);if(!tt.interrupt||Pn===49)return we.enter("listItemPrefix"),we.enter("listItemValue"),_n(Pn)}return Qe(Pn)}function _n(Pn){return(0,Ht.pY)(Pn)&&++Bt<10?(we.consume(Pn),_n):(!tt.interrupt||Bt<2)&&(tt.containerState.marker?Pn===tt.containerState.marker:Pn===41||Pn===46)?(we.exit("listItemValue"),Hn(Pn)):Qe(Pn)}function Hn(Pn){return we.enter("listItemMarker"),we.consume(Pn),we.exit("listItemMarker"),tt.containerState.marker=tt.containerState.marker||Pn,we.check(ui,tt.interrupt?Qe:xn,we.attempt(Bn,$n,ri))}function xn(Pn){return tt.containerState.initialBlankLine=!0,wt++,$n(Pn)}function ri(Pn){return(0,Ht.xz)(Pn)?(we.enter("listItemPrefixWhitespace"),we.consume(Pn),we.exit("listItemPrefixWhitespace"),$n):Qe(Pn)}function $n(Pn){return tt.containerState.size=wt+tt.sliceSerialize(we.exit("listItemPrefix"),!0).length,He(Pn)}}function Fi(we,He,Qe){const tt=this;return tt.containerState._closeFlow=void 0,we.check(ui,Et,wt);function Et(Qt){return tt.containerState.furtherBlankLines=tt.containerState.furtherBlankLines||tt.containerState.initialBlankLine,(0,Cn.f)(we,He,"listItemIndent",tt.containerState.size+1)(Qt)}function wt(Qt){return tt.containerState.furtherBlankLines||!(0,Ht.xz)(Qt)?(tt.containerState.furtherBlankLines=void 0,tt.containerState.initialBlankLine=void 0,Bt(Qt)):(tt.containerState.furtherBlankLines=void 0,tt.containerState.initialBlankLine=void 0,we.attempt(ei,He,Bt)(Qt))}function Bt(Qt){return tt.containerState._closeFlow=!0,tt.interrupt=void 0,(0,Cn.f)(we,we.attempt(mn,He,Qe),"linePrefix",tt.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Qt)}}function Yi(we,He,Qe){const tt=this;return(0,Cn.f)(we,Et,"listItemIndent",tt.containerState.size+1);function Et(wt){const Bt=tt.events[tt.events.length-1];return Bt&&Bt[1].type==="listItemIndent"&&Bt[2].sliceSerialize(Bt[1],!0).length===tt.containerState.size?He(wt):Qe(wt)}}function lt(we){we.exit(this.containerState.type)}function Ut(we,He,Qe){const tt=this;return(0,Cn.f)(we,Et,"listItemPrefixWhitespace",tt.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function Et(wt){const Bt=tt.events[tt.events.length-1];return!(0,Ht.xz)(wt)&&Bt&&Bt[1].type==="listItemPrefixWhitespace"?He(wt):Qe(wt)}}const oi={continuation:{tokenize:jt},exit:Vn,name:"blockQuote",tokenize:gi};function gi(we,He,Qe){const tt=this;return Et;function Et(Bt){if(Bt===62){const Qt=tt.containerState;return Qt.open||(we.enter("blockQuote",{_container:!0}),Qt.open=!0),we.enter("blockQuotePrefix"),we.enter("blockQuoteMarker"),we.consume(Bt),we.exit("blockQuoteMarker"),wt}return Qe(Bt)}function wt(Bt){return(0,Ht.xz)(Bt)?(we.enter("blockQuotePrefixWhitespace"),we.consume(Bt),we.exit("blockQuotePrefixWhitespace"),we.exit("blockQuotePrefix"),He):(we.exit("blockQuotePrefix"),He(Bt))}}function jt(we,He,Qe){const tt=this;return Et;function Et(Bt){return(0,Ht.xz)(Bt)?(0,Cn.f)(we,wt,"linePrefix",tt.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Bt):wt(Bt)}function wt(Bt){return we.attempt(oi,He,Qe)(Bt)}}function Vn(we){we.exit("blockQuote")}function ni(we,He,Qe,tt,Et,wt,Bt,Qt,_n){const Hn=_n||Number.POSITIVE_INFINITY;let xn=0;return ri;function ri(Er){return Er===60?(we.enter(tt),we.enter(Et),we.enter(wt),we.consume(Er),we.exit(wt),$n):Er===null||Er===32||Er===41||(0,Ht.Av)(Er)?Qe(Er):(we.enter(tt),we.enter(Bt),we.enter(Qt),we.enter("chunkString",{contentType:"string"}),Xr(Er))}function $n(Er){return Er===62?(we.enter(wt),we.consume(Er),we.exit(wt),we.exit(Et),we.exit(tt),He):(we.enter(Qt),we.enter("chunkString",{contentType:"string"}),Pn(Er))}function Pn(Er){return Er===62?(we.exit("chunkString"),we.exit(Qt),$n(Er)):Er===null||Er===60||(0,Ht.Ch)(Er)?Qe(Er):(we.consume(Er),Er===92?Br:Pn)}function Br(Er){return Er===60||Er===62||Er===92?(we.consume(Er),Pn):Pn(Er)}function Xr(Er){return!xn&&(Er===null||Er===41||(0,Ht.z3)(Er))?(we.exit("chunkString"),we.exit(Qt),we.exit(Bt),we.exit(tt),He(Er)):xn<Hn&&Er===40?(we.consume(Er),xn++,Xr):Er===41?(we.consume(Er),xn--,Xr):Er===null||Er===32||Er===40||(0,Ht.Av)(Er)?Qe(Er):(we.consume(Er),Er===92?so:Xr)}function so(Er){return Er===40||Er===41||Er===92?(we.consume(Er),Xr):Xr(Er)}}function Zt(we,He,Qe,tt,Et,wt){const Bt=this;let Qt=0,_n;return Hn;function Hn(Pn){return we.enter(tt),we.enter(Et),we.consume(Pn),we.exit(Et),we.enter(wt),xn}function xn(Pn){return Qt>999||Pn===null||Pn===91||Pn===93&&!_n||Pn===94&&!Qt&&"_hiddenFootnoteSupport"in Bt.parser.constructs?Qe(Pn):Pn===93?(we.exit(wt),we.enter(Et),we.consume(Pn),we.exit(Et),we.exit(tt),He):(0,Ht.Ch)(Pn)?(we.enter("lineEnding"),we.consume(Pn),we.exit("lineEnding"),xn):(we.enter("chunkString",{contentType:"string"}),ri(Pn))}function ri(Pn){return Pn===null||Pn===91||Pn===93||(0,Ht.Ch)(Pn)||Qt++>999?(we.exit("chunkString"),xn(Pn)):(we.consume(Pn),_n||(_n=!(0,Ht.xz)(Pn)),Pn===92?$n:ri)}function $n(Pn){return Pn===91||Pn===92||Pn===93?(we.consume(Pn),Qt++,ri):ri(Pn)}}function je(we,He,Qe,tt,Et,wt){let Bt;return Qt;function Qt($n){return $n===34||$n===39||$n===40?(we.enter(tt),we.enter(Et),we.consume($n),we.exit(Et),Bt=$n===40?41:$n,_n):Qe($n)}function _n($n){return $n===Bt?(we.enter(Et),we.consume($n),we.exit(Et),we.exit(tt),He):(we.enter(wt),Hn($n))}function Hn($n){return $n===Bt?(we.exit(wt),_n(Bt)):$n===null?Qe($n):(0,Ht.Ch)($n)?(we.enter("lineEnding"),we.consume($n),we.exit("lineEnding"),(0,Cn.f)(we,Hn,"linePrefix")):(we.enter("chunkString",{contentType:"string"}),xn($n))}function xn($n){return $n===Bt||$n===null||(0,Ht.Ch)($n)?(we.exit("chunkString"),Hn($n)):(we.consume($n),$n===92?ri:xn)}function ri($n){return $n===Bt||$n===92?(we.consume($n),xn):xn($n)}}function ci(we,He){let Qe;return tt;function tt(Et){return(0,Ht.Ch)(Et)?(we.enter("lineEnding"),we.consume(Et),we.exit("lineEnding"),Qe=!0,tt):(0,Ht.xz)(Et)?(0,Cn.f)(we,tt,Qe?"linePrefix":"lineSuffix")(Et):He(Et)}}function pi(we){return we.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const bn={name:"definition",tokenize:Ui},Ki={partial:!0,tokenize:Wi};function Ui(we,He,Qe){const tt=this;let Et;return wt;function wt(Pn){return we.enter("definition"),Bt(Pn)}function Bt(Pn){return Zt.call(tt,we,Qt,Qe,"definitionLabel","definitionLabelMarker","definitionLabelString")(Pn)}function Qt(Pn){return Et=pi(tt.sliceSerialize(tt.events[tt.events.length-1][1]).slice(1,-1)),Pn===58?(we.enter("definitionMarker"),we.consume(Pn),we.exit("definitionMarker"),_n):Qe(Pn)}function _n(Pn){return(0,Ht.z3)(Pn)?ci(we,Hn)(Pn):Hn(Pn)}function Hn(Pn){return ni(we,xn,Qe,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(Pn)}function xn(Pn){return we.attempt(Ki,ri,ri)(Pn)}function ri(Pn){return(0,Ht.xz)(Pn)?(0,Cn.f)(we,$n,"whitespace")(Pn):$n(Pn)}function $n(Pn){return Pn===null||(0,Ht.Ch)(Pn)?(we.exit("definition"),tt.parser.defined.push(Et),He(Pn)):Qe(Pn)}}function Wi(we,He,Qe){return tt;function tt(Qt){return(0,Ht.z3)(Qt)?ci(we,Et)(Qt):Qe(Qt)}function Et(Qt){return je(we,wt,Qe,"definitionTitle","definitionTitleMarker","definitionTitleString")(Qt)}function wt(Qt){return(0,Ht.xz)(Qt)?(0,Cn.f)(we,Bt,"whitespace")(Qt):Bt(Qt)}function Bt(Qt){return Qt===null||(0,Ht.Ch)(Qt)?He(Qt):Qe(Qt)}}const vn={name:"codeIndented",tokenize:ar},Wt={partial:!0,tokenize:Zr};function ar(we,He,Qe){const tt=this;return Et;function Et(Hn){return we.enter("codeIndented"),(0,Cn.f)(we,wt,"linePrefix",5)(Hn)}function wt(Hn){const xn=tt.events[tt.events.length-1];return xn&&xn[1].type==="linePrefix"&&xn[2].sliceSerialize(xn[1],!0).length>=4?Bt(Hn):Qe(Hn)}function Bt(Hn){return Hn===null?_n(Hn):(0,Ht.Ch)(Hn)?we.attempt(Wt,Bt,_n)(Hn):(we.enter("codeFlowValue"),Qt(Hn))}function Qt(Hn){return Hn===null||(0,Ht.Ch)(Hn)?(we.exit("codeFlowValue"),Bt(Hn)):(we.consume(Hn),Qt)}function _n(Hn){return we.exit("codeIndented"),He(Hn)}}function Zr(we,He,Qe){const tt=this;return Et;function Et(Bt){return tt.parser.lazy[tt.now().line]?Qe(Bt):(0,Ht.Ch)(Bt)?(we.enter("lineEnding"),we.consume(Bt),we.exit("lineEnding"),Et):(0,Cn.f)(we,wt,"linePrefix",5)(Bt)}function wt(Bt){const Qt=tt.events[tt.events.length-1];return Qt&&Qt[1].type==="linePrefix"&&Qt[2].sliceSerialize(Qt[1],!0).length>=4?He(Bt):(0,Ht.Ch)(Bt)?Et(Bt):Qe(Bt)}}const Mn={name:"headingAtx",resolve:hi,tokenize:Pi};function hi(we,He){let Qe=we.length-2,tt=3,Et,wt;return we[tt][1].type==="whitespace"&&(tt+=2),Qe-2>tt&&we[Qe][1].type==="whitespace"&&(Qe-=2),we[Qe][1].type==="atxHeadingSequence"&&(tt===Qe-1||Qe-4>tt&&we[Qe-2][1].type==="whitespace")&&(Qe-=tt+1===Qe?2:4),Qe>tt&&(Et={type:"atxHeadingText",start:we[tt][1].start,end:we[Qe][1].end},wt={type:"chunkText",start:we[tt][1].start,end:we[Qe][1].end,contentType:"text"},gn(we,tt,Qe-tt+1,[["enter",Et,He],["enter",wt,He],["exit",wt,He],["exit",Et,He]])),we}function Pi(we,He,Qe){let tt=0;return Et;function Et(xn){return we.enter("atxHeading"),wt(xn)}function wt(xn){return we.enter("atxHeadingSequence"),Bt(xn)}function Bt(xn){return xn===35&&tt++<6?(we.consume(xn),Bt):xn===null||(0,Ht.z3)(xn)?(we.exit("atxHeadingSequence"),Qt(xn)):Qe(xn)}function Qt(xn){return xn===35?(we.enter("atxHeadingSequence"),_n(xn)):xn===null||(0,Ht.Ch)(xn)?(we.exit("atxHeading"),He(xn)):(0,Ht.xz)(xn)?(0,Cn.f)(we,Qt,"whitespace")(xn):(we.enter("atxHeadingText"),Hn(xn))}function _n(xn){return xn===35?(we.consume(xn),_n):(we.exit("atxHeadingSequence"),Qt(xn))}function Hn(xn){return xn===null||xn===35||(0,Ht.z3)(xn)?(we.exit("atxHeadingText"),Qt(xn)):(we.consume(xn),Hn)}}const Li={name:"setextUnderline",resolveTo:Ri,tokenize:sr};function Ri(we,He){let Qe=we.length,tt,Et,wt;for(;Qe--;)if(we[Qe][0]==="enter"){if(we[Qe][1].type==="content"){tt=Qe;break}we[Qe][1].type==="paragraph"&&(Et=Qe)}else we[Qe][1].type==="content"&&we.splice(Qe,1),!wt&&we[Qe][1].type==="definition"&&(wt=Qe);const Bt={type:"setextHeading",start:Mo({},we[tt][1].start),end:Mo({},we[we.length-1][1].end)};return we[Et][1].type="setextHeadingText",wt?(we.splice(Et,0,["enter",Bt,He]),we.splice(wt+1,0,["exit",we[tt][1],He]),we[tt][1].end=Mo({},we[wt][1].end)):we[tt][1]=Bt,we.push(["exit",Bt,He]),we}function sr(we,He,Qe){const tt=this;let Et;return wt;function wt(Hn){let xn=tt.events.length,ri;for(;xn--;)if(tt.events[xn][1].type!=="lineEnding"&&tt.events[xn][1].type!=="linePrefix"&&tt.events[xn][1].type!=="content"){ri=tt.events[xn][1].type==="paragraph";break}return!tt.parser.lazy[tt.now().line]&&(tt.interrupt||ri)?(we.enter("setextHeadingLine"),Et=Hn,Bt(Hn)):Qe(Hn)}function Bt(Hn){return we.enter("setextHeadingLineSequence"),Qt(Hn)}function Qt(Hn){return Hn===Et?(we.consume(Hn),Qt):(we.exit("setextHeadingLineSequence"),(0,Ht.xz)(Hn)?(0,Cn.f)(we,_n,"lineSuffix")(Hn):_n(Hn))}function _n(Hn){return Hn===null||(0,Ht.Ch)(Hn)?(we.exit("setextHeadingLine"),He(Hn)):Qe(Hn)}}const gr=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Tr=["pre","script","style","textarea"],Ar={concrete:!0,name:"htmlFlow",resolveTo:pr,tokenize:Dn},Rr={partial:!0,tokenize:ro},Un={partial:!0,tokenize:Lr};function pr(we){let He=we.length;for(;He--&&!(we[He][0]==="enter"&&we[He][1].type==="htmlFlow"););return He>1&&we[He-2][1].type==="linePrefix"&&(we[He][1].start=we[He-2][1].start,we[He+1][1].start=we[He-2][1].start,we.splice(He-2,2)),we}function Dn(we,He,Qe){const tt=this;let Et,wt,Bt,Qt,_n;return Hn;function Hn(qn){return xn(qn)}function xn(qn){return we.enter("htmlFlow"),we.enter("htmlFlowData"),we.consume(qn),ri}function ri(qn){return qn===33?(we.consume(qn),$n):qn===47?(we.consume(qn),wt=!0,Xr):qn===63?(we.consume(qn),Et=3,tt.interrupt?He:Zn):(0,Ht.jv)(qn)?(we.consume(qn),Bt=String.fromCharCode(qn),so):Qe(qn)}function $n(qn){return qn===45?(we.consume(qn),Et=2,Pn):qn===91?(we.consume(qn),Et=5,Qt=0,Br):(0,Ht.jv)(qn)?(we.consume(qn),Et=4,tt.interrupt?He:Zn):Qe(qn)}function Pn(qn){return qn===45?(we.consume(qn),tt.interrupt?He:Zn):Qe(qn)}function Br(qn){const Ps="CDATA[";return qn===Ps.charCodeAt(Qt++)?(we.consume(qn),Qt===Ps.length?tt.interrupt?He:ya:Br):Qe(qn)}function Xr(qn){return(0,Ht.jv)(qn)?(we.consume(qn),Bt=String.fromCharCode(qn),so):Qe(qn)}function so(qn){if(qn===null||qn===47||qn===62||(0,Ht.z3)(qn)){const Ps=qn===47,Bl=Bt.toLowerCase();return!Ps&&!wt&&Tr.includes(Bl)?(Et=1,tt.interrupt?He(qn):ya(qn)):gr.includes(Bt.toLowerCase())?(Et=6,Ps?(we.consume(qn),Er):tt.interrupt?He(qn):ya(qn)):(Et=7,tt.interrupt&&!tt.parser.lazy[tt.now().line]?Qe(qn):wt?zr(qn):Yr(qn))}return qn===45||(0,Ht.H$)(qn)?(we.consume(qn),Bt+=String.fromCharCode(qn),so):Qe(qn)}function Er(qn){return qn===62?(we.consume(qn),tt.interrupt?He:ya):Qe(qn)}function zr(qn){return(0,Ht.xz)(qn)?(we.consume(qn),zr):Fr(qn)}function Yr(qn){return qn===47?(we.consume(qn),Fr):qn===58||qn===95||(0,Ht.jv)(qn)?(we.consume(qn),aa):(0,Ht.xz)(qn)?(we.consume(qn),Yr):Fr(qn)}function aa(qn){return qn===45||qn===46||qn===58||qn===95||(0,Ht.H$)(qn)?(we.consume(qn),aa):sa(qn)}function sa(qn){return qn===61?(we.consume(qn),or):(0,Ht.xz)(qn)?(we.consume(qn),sa):Yr(qn)}function or(qn){return qn===null||qn===60||qn===61||qn===62||qn===96?Qe(qn):qn===34||qn===39?(we.consume(qn),_n=qn,da):(0,Ht.xz)(qn)?(we.consume(qn),or):ka(qn)}function da(qn){return qn===_n?(we.consume(qn),_n=null,ta):qn===null||(0,Ht.Ch)(qn)?Qe(qn):(we.consume(qn),da)}function ka(qn){return qn===null||qn===34||qn===39||qn===47||qn===60||qn===61||qn===62||qn===96||(0,Ht.z3)(qn)?sa(qn):(we.consume(qn),ka)}function ta(qn){return qn===47||qn===62||(0,Ht.xz)(qn)?Yr(qn):Qe(qn)}function Fr(qn){return qn===62?(we.consume(qn),js):Qe(qn)}function js(qn){return qn===null||(0,Ht.Ch)(qn)?ya(qn):(0,Ht.xz)(qn)?(we.consume(qn),js):Qe(qn)}function ya(qn){return qn===45&&Et===2?(we.consume(qn),La):qn===60&&Et===1?(we.consume(qn),ps):qn===62&&Et===4?(we.consume(qn),zs):qn===63&&Et===3?(we.consume(qn),Zn):qn===93&&Et===5?(we.consume(qn),fl):(0,Ht.Ch)(qn)&&(Et===6||Et===7)?(we.exit("htmlFlowData"),we.check(Rr,Tl,oo)(qn)):qn===null||(0,Ht.Ch)(qn)?(we.exit("htmlFlowData"),oo(qn)):(we.consume(qn),ya)}function oo(qn){return we.check(Un,to,Tl)(qn)}function to(qn){return we.enter("lineEnding"),we.consume(qn),we.exit("lineEnding"),Do}function Do(qn){return qn===null||(0,Ht.Ch)(qn)?oo(qn):(we.enter("htmlFlowData"),ya(qn))}function La(qn){return qn===45?(we.consume(qn),Zn):ya(qn)}function ps(qn){return qn===47?(we.consume(qn),Bt="",Ms):ya(qn)}function Ms(qn){if(qn===62){const Ps=Bt.toLowerCase();return Tr.includes(Ps)?(we.consume(qn),zs):ya(qn)}return(0,Ht.jv)(qn)&&Bt.length<8?(we.consume(qn),Bt+=String.fromCharCode(qn),Ms):ya(qn)}function fl(qn){return qn===93?(we.consume(qn),Zn):ya(qn)}function Zn(qn){return qn===62?(we.consume(qn),zs):qn===45&&Et===2?(we.consume(qn),Zn):ya(qn)}function zs(qn){return qn===null||(0,Ht.Ch)(qn)?(we.exit("htmlFlowData"),Tl(qn)):(we.consume(qn),zs)}function Tl(qn){return we.exit("htmlFlow"),He(qn)}}function Lr(we,He,Qe){const tt=this;return Et;function Et(Bt){return(0,Ht.Ch)(Bt)?(we.enter("lineEnding"),we.consume(Bt),we.exit("lineEnding"),wt):Qe(Bt)}function wt(Bt){return tt.parser.lazy[tt.now().line]?Qe(Bt):He(Bt)}}function ro(we,He,Qe){return tt;function tt(Et){return we.enter("lineEnding"),we.consume(Et),we.exit("lineEnding"),we.attempt(ui,He,Qe)}}const Ir={partial:!0,tokenize:Sr},Vr={concrete:!0,name:"codeFenced",tokenize:Mr};function Mr(we,He,Qe){const tt=this,Et={partial:!0,tokenize:sa};let wt=0,Bt=0,Qt;return _n;function _n(or){return Hn(or)}function Hn(or){const da=tt.events[tt.events.length-1];return wt=da&&da[1].type==="linePrefix"?da[2].sliceSerialize(da[1],!0).length:0,Qt=or,we.enter("codeFenced"),we.enter("codeFencedFence"),we.enter("codeFencedFenceSequence"),xn(or)}function xn(or){return or===Qt?(Bt++,we.consume(or),xn):Bt<3?Qe(or):(we.exit("codeFencedFenceSequence"),(0,Ht.xz)(or)?(0,Cn.f)(we,ri,"whitespace")(or):ri(or))}function ri(or){return or===null||(0,Ht.Ch)(or)?(we.exit("codeFencedFence"),tt.interrupt?He(or):we.check(Ir,Xr,aa)(or)):(we.enter("codeFencedFenceInfo"),we.enter("chunkString",{contentType:"string"}),$n(or))}function $n(or){return or===null||(0,Ht.Ch)(or)?(we.exit("chunkString"),we.exit("codeFencedFenceInfo"),ri(or)):(0,Ht.xz)(or)?(we.exit("chunkString"),we.exit("codeFencedFenceInfo"),(0,Cn.f)(we,Pn,"whitespace")(or)):or===96&&or===Qt?Qe(or):(we.consume(or),$n)}function Pn(or){return or===null||(0,Ht.Ch)(or)?ri(or):(we.enter("codeFencedFenceMeta"),we.enter("chunkString",{contentType:"string"}),Br(or))}function Br(or){return or===null||(0,Ht.Ch)(or)?(we.exit("chunkString"),we.exit("codeFencedFenceMeta"),ri(or)):or===96&&or===Qt?Qe(or):(we.consume(or),Br)}function Xr(or){return we.attempt(Et,aa,so)(or)}function so(or){return we.enter("lineEnding"),we.consume(or),we.exit("lineEnding"),Er}function Er(or){return wt>0&&(0,Ht.xz)(or)?(0,Cn.f)(we,zr,"linePrefix",wt+1)(or):zr(or)}function zr(or){return or===null||(0,Ht.Ch)(or)?we.check(Ir,Xr,aa)(or):(we.enter("codeFlowValue"),Yr(or))}function Yr(or){return or===null||(0,Ht.Ch)(or)?(we.exit("codeFlowValue"),zr(or)):(we.consume(or),Yr)}function aa(or){return we.exit("codeFenced"),He(or)}function sa(or,da,ka){let ta=0;return Fr;function Fr(Do){return or.enter("lineEnding"),or.consume(Do),or.exit("lineEnding"),js}function js(Do){return or.enter("codeFencedFence"),(0,Ht.xz)(Do)?(0,Cn.f)(or,ya,"linePrefix",tt.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Do):ya(Do)}function ya(Do){return Do===Qt?(or.enter("codeFencedFenceSequence"),oo(Do)):ka(Do)}function oo(Do){return Do===Qt?(ta++,or.consume(Do),oo):ta>=Bt?(or.exit("codeFencedFenceSequence"),(0,Ht.xz)(Do)?(0,Cn.f)(or,to,"whitespace")(Do):to(Do)):ka(Do)}function to(Do){return Do===null||(0,Ht.Ch)(Do)?(or.exit("codeFencedFence"),da(Do)):ka(Do)}}}function Sr(we,He,Qe){const tt=this;return Et;function Et(Bt){return Bt===null?Qe(Bt):(we.enter("lineEnding"),we.consume(Bt),we.exit("lineEnding"),wt)}function wt(Bt){return tt.parser.lazy[tt.now().line]?Qe(Bt):He(Bt)}}const Qr=document.createElement("i");function Ro(we){const He="&"+we+";";Qr.innerHTML=He;const Qe=Qr.textContent;return Qe.charCodeAt(Qe.length-1)===59&&we!=="semi"||Qe===He?!1:Qe}const qr={name:"characterReference",tokenize:vi};function vi(we,He,Qe){const tt=this;let Et=0,wt,Bt;return Qt;function Qt(ri){return we.enter("characterReference"),we.enter("characterReferenceMarker"),we.consume(ri),we.exit("characterReferenceMarker"),_n}function _n(ri){return ri===35?(we.enter("characterReferenceMarkerNumeric"),we.consume(ri),we.exit("characterReferenceMarkerNumeric"),Hn):(we.enter("characterReferenceValue"),wt=31,Bt=Ht.H$,xn(ri))}function Hn(ri){return ri===88||ri===120?(we.enter("characterReferenceMarkerHexadecimal"),we.consume(ri),we.exit("characterReferenceMarkerHexadecimal"),we.enter("characterReferenceValue"),wt=6,Bt=Ht.AF,xn):(we.enter("characterReferenceValue"),wt=7,Bt=Ht.pY,xn(ri))}function xn(ri){if(ri===59&&Et){const $n=we.exit("characterReferenceValue");return Bt===Ht.H$&&!Ro(tt.sliceSerialize($n))?Qe(ri):(we.enter("characterReferenceMarker"),we.consume(ri),we.exit("characterReferenceMarker"),we.exit("characterReference"),He)}return Bt(ri)&&Et++<wt?(we.consume(ri),xn):Qe(ri)}}const dt={name:"characterEscape",tokenize:ho};function ho(we,He,Qe){return tt;function tt(wt){return we.enter("characterEscape"),we.enter("escapeMarker"),we.consume(wt),we.exit("escapeMarker"),Et}function Et(wt){return(0,Ht.sR)(wt)?(we.enter("characterEscapeValue"),we.consume(wt),we.exit("characterEscapeValue"),we.exit("characterEscape"),He):Qe(wt)}}const yo={name:"lineEnding",tokenize:ua};function ua(we,He){return Qe;function Qe(tt){return we.enter("lineEnding"),we.consume(tt),we.exit("lineEnding"),(0,Cn.f)(we,He,"linePrefix")}}function Vo(we,He,Qe){const tt=[];let Et=-1;for(;++Et<we.length;){const wt=we[Et].resolveAll;wt&&!tt.includes(wt)&&(He=wt(He,Qe),tt.push(wt))}return He}const Kr={name:"labelEnd",resolveAll:Ji,resolveTo:Cr,tokenize:uo},Zi={tokenize:nr},tr={tokenize:Qi},kr={tokenize:ti};function Ji(we){let He=-1;const Qe=[];for(;++He<we.length;){const tt=we[He][1];if(Qe.push(we[He]),tt.type==="labelImage"||tt.type==="labelLink"||tt.type==="labelEnd"){const Et=tt.type==="labelImage"?4:2;tt.type="data",He+=Et}}return we.length!==Qe.length&&gn(we,0,we.length,Qe),we}function Cr(we,He){let Qe=we.length,tt=0,Et,wt,Bt,Qt;for(;Qe--;)if(Et=we[Qe][1],wt){if(Et.type==="link"||Et.type==="labelLink"&&Et._inactive)break;we[Qe][0]==="enter"&&Et.type==="labelLink"&&(Et._inactive=!0)}else if(Bt){if(we[Qe][0]==="enter"&&(Et.type==="labelImage"||Et.type==="labelLink")&&!Et._balanced&&(wt=Qe,Et.type!=="labelLink")){tt=2;break}}else Et.type==="labelEnd"&&(Bt=Qe);const _n={type:we[wt][1].type==="labelLink"?"link":"image",start:Mo({},we[wt][1].start),end:Mo({},we[we.length-1][1].end)},Hn={type:"label",start:Mo({},we[wt][1].start),end:Mo({},we[Bt][1].end)},xn={type:"labelText",start:Mo({},we[wt+tt+2][1].end),end:Mo({},we[Bt-2][1].start)};return Qt=[["enter",_n,He],["enter",Hn,He]],Qt=qt(Qt,we.slice(wt+1,wt+tt+3)),Qt=qt(Qt,[["enter",xn,He]]),Qt=qt(Qt,Vo(He.parser.constructs.insideSpan.null,we.slice(wt+tt+4,Bt-3),He)),Qt=qt(Qt,[["exit",xn,He],we[Bt-2],we[Bt-1],["exit",Hn,He]]),Qt=qt(Qt,we.slice(Bt+1)),Qt=qt(Qt,[["exit",_n,He]]),gn(we,wt,we.length,Qt),we}function uo(we,He,Qe){const tt=this;let Et=tt.events.length,wt,Bt;for(;Et--;)if((tt.events[Et][1].type==="labelImage"||tt.events[Et][1].type==="labelLink")&&!tt.events[Et][1]._balanced){wt=tt.events[Et][1];break}return Qt;function Qt($n){return wt?wt._inactive?ri($n):(Bt=tt.parser.defined.includes(pi(tt.sliceSerialize({start:wt.end,end:tt.now()}))),we.enter("labelEnd"),we.enter("labelMarker"),we.consume($n),we.exit("labelMarker"),we.exit("labelEnd"),_n):Qe($n)}function _n($n){return $n===40?we.attempt(Zi,xn,Bt?xn:ri)($n):$n===91?we.attempt(tr,xn,Bt?Hn:ri)($n):Bt?xn($n):ri($n)}function Hn($n){return we.attempt(kr,xn,ri)($n)}function xn($n){return He($n)}function ri($n){return wt._balanced=!0,Qe($n)}}function nr(we,He,Qe){return tt;function tt(ri){return we.enter("resource"),we.enter("resourceMarker"),we.consume(ri),we.exit("resourceMarker"),Et}function Et(ri){return(0,Ht.z3)(ri)?ci(we,wt)(ri):wt(ri)}function wt(ri){return ri===41?xn(ri):ni(we,Bt,Qt,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(ri)}function Bt(ri){return(0,Ht.z3)(ri)?ci(we,_n)(ri):xn(ri)}function Qt(ri){return Qe(ri)}function _n(ri){return ri===34||ri===39||ri===40?je(we,Hn,Qe,"resourceTitle","resourceTitleMarker","resourceTitleString")(ri):xn(ri)}function Hn(ri){return(0,Ht.z3)(ri)?ci(we,xn)(ri):xn(ri)}function xn(ri){return ri===41?(we.enter("resourceMarker"),we.consume(ri),we.exit("resourceMarker"),we.exit("resource"),He):Qe(ri)}}function Qi(we,He,Qe){const tt=this;return Et;function Et(Qt){return Zt.call(tt,we,wt,Bt,"reference","referenceMarker","referenceString")(Qt)}function wt(Qt){return tt.parser.defined.includes(pi(tt.sliceSerialize(tt.events[tt.events.length-1][1]).slice(1,-1)))?He(Qt):Qe(Qt)}function Bt(Qt){return Qe(Qt)}}function ti(we,He,Qe){return tt;function tt(wt){return we.enter("reference"),we.enter("referenceMarker"),we.consume(wt),we.exit("referenceMarker"),Et}function Et(wt){return wt===93?(we.enter("referenceMarker"),we.consume(wt),we.exit("referenceMarker"),we.exit("reference"),He):Qe(wt)}}const lr={name:"labelStartImage",resolveAll:Kr.resolveAll,tokenize:Gr};function Gr(we,He,Qe){const tt=this;return Et;function Et(Qt){return we.enter("labelImage"),we.enter("labelImageMarker"),we.consume(Qt),we.exit("labelImageMarker"),wt}function wt(Qt){return Qt===91?(we.enter("labelMarker"),we.consume(Qt),we.exit("labelMarker"),we.exit("labelImage"),Bt):Qe(Qt)}function Bt(Qt){return Qt===94&&"_hiddenFootnoteSupport"in tt.parser.constructs?Qe(Qt):He(Qt)}}function Lo(we){if(we===null||(0,Ht.z3)(we)||(0,Ht.B8)(we))return 1;if((0,Ht.Xh)(we))return 2}const ao={name:"attention",resolveAll:Zo,tokenize:Xo};function Zo(we,He){let Qe=-1,tt,Et,wt,Bt,Qt,_n,Hn,xn;for(;++Qe<we.length;)if(we[Qe][0]==="enter"&&we[Qe][1].type==="attentionSequence"&&we[Qe][1]._close){for(tt=Qe;tt--;)if(we[tt][0]==="exit"&&we[tt][1].type==="attentionSequence"&&we[tt][1]._open&&He.sliceSerialize(we[tt][1]).charCodeAt(0)===He.sliceSerialize(we[Qe][1]).charCodeAt(0)){if((we[tt][1]._close||we[Qe][1]._open)&&(we[Qe][1].end.offset-we[Qe][1].start.offset)%3&&!((we[tt][1].end.offset-we[tt][1].start.offset+we[Qe][1].end.offset-we[Qe][1].start.offset)%3))continue;_n=we[tt][1].end.offset-we[tt][1].start.offset>1&&we[Qe][1].end.offset-we[Qe][1].start.offset>1?2:1;const ri=Mo({},we[tt][1].end),$n=Mo({},we[Qe][1].start);Go(ri,-_n),Go($n,_n),Bt={type:_n>1?"strongSequence":"emphasisSequence",start:ri,end:Mo({},we[tt][1].end)},Qt={type:_n>1?"strongSequence":"emphasisSequence",start:Mo({},we[Qe][1].start),end:$n},wt={type:_n>1?"strongText":"emphasisText",start:Mo({},we[tt][1].end),end:Mo({},we[Qe][1].start)},Et={type:_n>1?"strong":"emphasis",start:Mo({},Bt.start),end:Mo({},Qt.end)},we[tt][1].end=Mo({},Bt.start),we[Qe][1].start=Mo({},Qt.end),Hn=[],we[tt][1].end.offset-we[tt][1].start.offset&&(Hn=qt(Hn,[["enter",we[tt][1],He],["exit",we[tt][1],He]])),Hn=qt(Hn,[["enter",Et,He],["enter",Bt,He],["exit",Bt,He],["enter",wt,He]]),Hn=qt(Hn,Vo(He.parser.constructs.insideSpan.null,we.slice(tt+1,Qe),He)),Hn=qt(Hn,[["exit",wt,He],["enter",Qt,He],["exit",Qt,He],["exit",Et,He]]),we[Qe][1].end.offset-we[Qe][1].start.offset?(xn=2,Hn=qt(Hn,[["enter",we[Qe][1],He],["exit",we[Qe][1],He]])):xn=0,gn(we,tt-1,Qe-tt+3,Hn),Qe=tt+Hn.length-xn-2;break}}for(Qe=-1;++Qe<we.length;)we[Qe][1].type==="attentionSequence"&&(we[Qe][1].type="data");return we}function Xo(we,He){const Qe=this.parser.constructs.attentionMarkers.null,tt=this.previous,Et=Lo(tt);let wt;return Bt;function Bt(_n){return wt=_n,we.enter("attentionSequence"),Qt(_n)}function Qt(_n){if(_n===wt)return we.consume(_n),Qt;const Hn=we.exit("attentionSequence"),xn=Lo(_n),ri=!xn||xn===2&&Et||Qe.includes(_n),$n=!Et||Et===2&&xn||Qe.includes(tt);return Hn._open=!!(wt===42?ri:ri&&(Et||!$n)),Hn._close=!!(wt===42?$n:$n&&(xn||!ri)),He(_n)}}function Go(we,He){we.column+=He,we.offset+=He,we._bufferIndex+=He}const Jo={name:"autolink",tokenize:Yo};function Yo(we,He,Qe){let tt=0;return Et;function Et(Pn){return we.enter("autolink"),we.enter("autolinkMarker"),we.consume(Pn),we.exit("autolinkMarker"),we.enter("autolinkProtocol"),wt}function wt(Pn){return(0,Ht.jv)(Pn)?(we.consume(Pn),Bt):Pn===64?Qe(Pn):Hn(Pn)}function Bt(Pn){return Pn===43||Pn===45||Pn===46||(0,Ht.H$)(Pn)?(tt=1,Qt(Pn)):Hn(Pn)}function Qt(Pn){return Pn===58?(we.consume(Pn),tt=0,_n):(Pn===43||Pn===45||Pn===46||(0,Ht.H$)(Pn))&&tt++<32?(we.consume(Pn),Qt):(tt=0,Hn(Pn))}function _n(Pn){return Pn===62?(we.exit("autolinkProtocol"),we.enter("autolinkMarker"),we.consume(Pn),we.exit("autolinkMarker"),we.exit("autolink"),He):Pn===null||Pn===32||Pn===60||(0,Ht.Av)(Pn)?Qe(Pn):(we.consume(Pn),_n)}function Hn(Pn){return Pn===64?(we.consume(Pn),xn):(0,Ht.n9)(Pn)?(we.consume(Pn),Hn):Qe(Pn)}function xn(Pn){return(0,Ht.H$)(Pn)?ri(Pn):Qe(Pn)}function ri(Pn){return Pn===46?(we.consume(Pn),tt=0,xn):Pn===62?(we.exit("autolinkProtocol").type="autolinkEmail",we.enter("autolinkMarker"),we.consume(Pn),we.exit("autolinkMarker"),we.exit("autolink"),He):$n(Pn)}function $n(Pn){if((Pn===45||(0,Ht.H$)(Pn))&&tt++<63){const Br=Pn===45?$n:ri;return we.consume(Pn),Br}return Qe(Pn)}}const ra={name:"htmlText",tokenize:pn};function pn(we,He,Qe){const tt=this;let Et,wt,Bt;return Qt;function Qt(Zn){return we.enter("htmlText"),we.enter("htmlTextData"),we.consume(Zn),_n}function _n(Zn){return Zn===33?(we.consume(Zn),Hn):Zn===47?(we.consume(Zn),sa):Zn===63?(we.consume(Zn),Yr):(0,Ht.jv)(Zn)?(we.consume(Zn),ka):Qe(Zn)}function Hn(Zn){return Zn===45?(we.consume(Zn),xn):Zn===91?(we.consume(Zn),wt=0,Br):(0,Ht.jv)(Zn)?(we.consume(Zn),zr):Qe(Zn)}function xn(Zn){return Zn===45?(we.consume(Zn),Pn):Qe(Zn)}function ri(Zn){return Zn===null?Qe(Zn):Zn===45?(we.consume(Zn),$n):(0,Ht.Ch)(Zn)?(Bt=ri,ps(Zn)):(we.consume(Zn),ri)}function $n(Zn){return Zn===45?(we.consume(Zn),Pn):ri(Zn)}function Pn(Zn){return Zn===62?La(Zn):Zn===45?$n(Zn):ri(Zn)}function Br(Zn){const zs="CDATA[";return Zn===zs.charCodeAt(wt++)?(we.consume(Zn),wt===zs.length?Xr:Br):Qe(Zn)}function Xr(Zn){return Zn===null?Qe(Zn):Zn===93?(we.consume(Zn),so):(0,Ht.Ch)(Zn)?(Bt=Xr,ps(Zn)):(we.consume(Zn),Xr)}function so(Zn){return Zn===93?(we.consume(Zn),Er):Xr(Zn)}function Er(Zn){return Zn===62?La(Zn):Zn===93?(we.consume(Zn),Er):Xr(Zn)}function zr(Zn){return Zn===null||Zn===62?La(Zn):(0,Ht.Ch)(Zn)?(Bt=zr,ps(Zn)):(we.consume(Zn),zr)}function Yr(Zn){return Zn===null?Qe(Zn):Zn===63?(we.consume(Zn),aa):(0,Ht.Ch)(Zn)?(Bt=Yr,ps(Zn)):(we.consume(Zn),Yr)}function aa(Zn){return Zn===62?La(Zn):Yr(Zn)}function sa(Zn){return(0,Ht.jv)(Zn)?(we.consume(Zn),or):Qe(Zn)}function or(Zn){return Zn===45||(0,Ht.H$)(Zn)?(we.consume(Zn),or):da(Zn)}function da(Zn){return(0,Ht.Ch)(Zn)?(Bt=da,ps(Zn)):(0,Ht.xz)(Zn)?(we.consume(Zn),da):La(Zn)}function ka(Zn){return Zn===45||(0,Ht.H$)(Zn)?(we.consume(Zn),ka):Zn===47||Zn===62||(0,Ht.z3)(Zn)?ta(Zn):Qe(Zn)}function ta(Zn){return Zn===47?(we.consume(Zn),La):Zn===58||Zn===95||(0,Ht.jv)(Zn)?(we.consume(Zn),Fr):(0,Ht.Ch)(Zn)?(Bt=ta,ps(Zn)):(0,Ht.xz)(Zn)?(we.consume(Zn),ta):La(Zn)}function Fr(Zn){return Zn===45||Zn===46||Zn===58||Zn===95||(0,Ht.H$)(Zn)?(we.consume(Zn),Fr):js(Zn)}function js(Zn){return Zn===61?(we.consume(Zn),ya):(0,Ht.Ch)(Zn)?(Bt=js,ps(Zn)):(0,Ht.xz)(Zn)?(we.consume(Zn),js):ta(Zn)}function ya(Zn){return Zn===null||Zn===60||Zn===61||Zn===62||Zn===96?Qe(Zn):Zn===34||Zn===39?(we.consume(Zn),Et=Zn,oo):(0,Ht.Ch)(Zn)?(Bt=ya,ps(Zn)):(0,Ht.xz)(Zn)?(we.consume(Zn),ya):(we.consume(Zn),to)}function oo(Zn){return Zn===Et?(we.consume(Zn),Et=void 0,Do):Zn===null?Qe(Zn):(0,Ht.Ch)(Zn)?(Bt=oo,ps(Zn)):(we.consume(Zn),oo)}function to(Zn){return Zn===null||Zn===34||Zn===39||Zn===60||Zn===61||Zn===96?Qe(Zn):Zn===47||Zn===62||(0,Ht.z3)(Zn)?ta(Zn):(we.consume(Zn),to)}function Do(Zn){return Zn===47||Zn===62||(0,Ht.z3)(Zn)?ta(Zn):Qe(Zn)}function La(Zn){return Zn===62?(we.consume(Zn),we.exit("htmlTextData"),we.exit("htmlText"),He):Qe(Zn)}function ps(Zn){return we.exit("htmlTextData"),we.enter("lineEnding"),we.consume(Zn),we.exit("lineEnding"),Ms}function Ms(Zn){return(0,Ht.xz)(Zn)?(0,Cn.f)(we,fl,"linePrefix",tt.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Zn):fl(Zn)}function fl(Zn){return we.enter("htmlTextData"),Bt(Zn)}}const wa={name:"labelStartLink",resolveAll:Kr.resolveAll,tokenize:qs};function qs(we,He,Qe){const tt=this;return Et;function Et(Bt){return we.enter("labelLink"),we.enter("labelMarker"),we.consume(Bt),we.exit("labelMarker"),we.exit("labelLink"),wt}function wt(Bt){return Bt===94&&"_hiddenFootnoteSupport"in tt.parser.constructs?Qe(Bt):He(Bt)}}const za={name:"hardBreakEscape",tokenize:$a};function $a(we,He,Qe){return tt;function tt(wt){return we.enter("hardBreakEscape"),we.consume(wt),Et}function Et(wt){return(0,Ht.Ch)(wt)?(we.exit("hardBreakEscape"),He(wt)):Qe(wt)}}const Qo={name:"codeText",previous:Nn,resolve:ms,tokenize:po};function ms(we){let He=we.length-4,Qe=3,tt,Et;if((we[Qe][1].type==="lineEnding"||we[Qe][1].type==="space")&&(we[He][1].type==="lineEnding"||we[He][1].type==="space")){for(tt=Qe;++tt<He;)if(we[tt][1].type==="codeTextData"){we[Qe][1].type="codeTextPadding",we[He][1].type="codeTextPadding",Qe+=2,He-=2;break}}for(tt=Qe-1,He++;++tt<=He;)Et===void 0?tt!==He&&we[tt][1].type!=="lineEnding"&&(Et=tt):(tt===He||we[tt][1].type==="lineEnding")&&(we[Et][1].type="codeTextData",tt!==Et+2&&(we[Et][1].end=we[tt-1][1].end,we.splice(Et+2,tt-Et-2),He-=tt-Et-2,tt=Et+2),Et=void 0);return we}function Nn(we){return we!==96||this.events[this.events.length-1][1].type==="characterEscape"}function po(we,He,Qe){const tt=this;let Et=0,wt,Bt;return Qt;function Qt($n){return we.enter("codeText"),we.enter("codeTextSequence"),_n($n)}function _n($n){return $n===96?(we.consume($n),Et++,_n):(we.exit("codeTextSequence"),Hn($n))}function Hn($n){return $n===null?Qe($n):$n===32?(we.enter("space"),we.consume($n),we.exit("space"),Hn):$n===96?(Bt=we.enter("codeTextSequence"),wt=0,ri($n)):(0,Ht.Ch)($n)?(we.enter("lineEnding"),we.consume($n),we.exit("lineEnding"),Hn):(we.enter("codeTextData"),xn($n))}function xn($n){return $n===null||$n===32||$n===96||(0,Ht.Ch)($n)?(we.exit("codeTextData"),Hn($n)):(we.consume($n),xn)}function ri($n){return $n===96?(we.consume($n),wt++,ri):wt===Et?(we.exit("codeTextSequence"),we.exit("codeText"),He($n)):(Bt.type="codeTextData",xn($n))}}const ca={42:mn,43:mn,45:mn,48:mn,49:mn,50:mn,51:mn,52:mn,53:mn,54:mn,55:mn,56:mn,57:mn,62:oi},ul={91:bn},Ua={[-2]:vn,[-1]:vn,32:vn},Zl={35:Mn,42:on,45:[Li,on],60:Ar,61:Li,95:on,96:Vr,126:Vr},ws={38:qr,92:dt},mr={[-5]:yo,[-4]:yo,[-3]:yo,33:lr,38:qr,42:ao,60:[Jo,ra],91:wa,92:[za,dt],93:Kr,95:ao,96:Qo},cl={null:[ao,xi]},El={null:[42,95]},ds={null:[]};function Ta(we,He,Qe){let tt={_bufferIndex:-1,_index:0,line:Qe&&Qe.line||1,column:Qe&&Qe.column||1,offset:Qe&&Qe.offset||0};const Et={},wt=[];let Bt=[],Qt=[],_n=!0;const Hn={attempt:ta(da),check:ta(ka),consume:aa,enter:sa,exit:or,interrupt:ta(ka,{interrupt:!0})},xn={code:null,containerState:{},defineSkip:Er,events:[],now:so,parser:we,previous:null,sliceSerialize:Br,sliceStream:Xr,write:Pn};let ri=He.tokenize.call(xn,Hn),$n;return He.resolveAll&&wt.push(He),xn;function Pn(oo){return Bt=qt(Bt,oo),zr(),Bt[Bt.length-1]!==null?[]:(Fr(He,0),xn.events=Vo(wt,xn.events,xn),xn.events)}function Br(oo,to){return tn(Xr(oo),to)}function Xr(oo){return dl(Bt,oo)}function so(){const{_bufferIndex:oo,_index:to,line:Do,column:La,offset:ps}=tt;return{_bufferIndex:oo,_index:to,line:Do,column:La,offset:ps}}function Er(oo){Et[oo.line]=oo.column,ya()}function zr(){let oo;for(;tt._index<Bt.length;){const to=Bt[tt._index];if(typeof to=="string")for(oo=tt._index,tt._bufferIndex<0&&(tt._bufferIndex=0);tt._index===oo&&tt._bufferIndex<to.length;)Yr(to.charCodeAt(tt._bufferIndex));else Yr(to)}}function Yr(oo){_n=void 0,$n=oo,ri=ri(oo)}function aa(oo){(0,Ht.Ch)(oo)?(tt.line++,tt.column=1,tt.offset+=oo===-3?2:1,ya()):oo!==-1&&(tt.column++,tt.offset++),tt._bufferIndex<0?tt._index++:(tt._bufferIndex++,tt._bufferIndex===Bt[tt._index].length&&(tt._bufferIndex=-1,tt._index++)),xn.previous=oo,_n=!0}function sa(oo,to){const Do=to||{};return Do.type=oo,Do.start=so(),xn.events.push(["enter",Do,xn]),Qt.push(Do),Do}function or(oo){const to=Qt.pop();return to.end=so(),xn.events.push(["exit",to,xn]),to}function da(oo,to){Fr(oo,to.from)}function ka(oo,to){to.restore()}function ta(oo,to){return Do;function Do(La,ps,Ms){let fl,Zn,zs,Tl;return Array.isArray(La)?Ps(La):"tokenize"in La?Ps([La]):qn(La);function qn(Ia){return Al;function Al(ys){const gu=ys!==null&&Ia[ys],Iu=ys!==null&&Ia.null,dd=[...Array.isArray(gu)?gu:gu?[gu]:[],...Array.isArray(Iu)?Iu:Iu?[Iu]:[]];return Ps(dd)(ys)}}function Ps(Ia){return fl=Ia,Zn=0,Ia.length===0?Ms:Bl(Ia[Zn])}function Bl(Ia){return Al;function Al(ys){return Tl=js(),zs=Ia,Ia.partial||(xn.currentConstruct=Ia),Ia.name&&xn.parser.constructs.disable.null.includes(Ia.name)?ls(ys):Ia.tokenize.call(to?Object.assign(Object.create(xn),to):xn,Hn,Xl,ls)(ys)}}function Xl(Ia){return _n=!0,oo(zs,Tl),ps}function ls(Ia){return _n=!0,Tl.restore(),++Zn<fl.length?Bl(fl[Zn]):Ms}}}function Fr(oo,to){oo.resolveAll&&!wt.includes(oo)&&wt.push(oo),oo.resolve&&gn(xn.events,to,xn.events.length-to,oo.resolve(xn.events.slice(to),xn)),oo.resolveTo&&(xn.events=oo.resolveTo(xn.events,xn))}function js(){const oo=so(),to=xn.previous,Do=xn.currentConstruct,La=xn.events.length,ps=Array.from(Qt);return{from:La,restore:Ms};function Ms(){tt=oo,xn.previous=to,xn.currentConstruct=Do,xn.events.length=La,Qt=ps,ya()}}function ya(){tt.line in Et&&tt.column<2&&(tt.column=Et[tt.line],tt.offset+=Et[tt.line]-1)}}function dl(we,He){const Qe=He.start._index,tt=He.start._bufferIndex,Et=He.end._index,wt=He.end._bufferIndex;let Bt;if(Qe===Et)Bt=[we[Qe].slice(tt,wt)];else{if(Bt=we.slice(Qe,Et),tt>-1){const Qt=Bt[0];typeof Qt=="string"?Bt[0]=Qt.slice(tt):Bt.shift()}wt>0&&Bt.push(we[Et].slice(0,wt))}return Bt}function tn(we,He){let Qe=-1;const tt=[];let Et;for(;++Qe<we.length;){const wt=we[Qe];let Bt;if(typeof wt=="string")Bt=wt;else switch(wt){case-5:{Bt="\r";break}case-4:{Bt=`
|
|
|
`;break}case-3:{Bt=`\r
|
|
|
`;break}case-2:{Bt=He?" ":" ";break}case-1:{if(!He&&Et)continue;Bt=" ";break}default:Bt=String.fromCharCode(wt)}Et=wt===-2,tt.push(Bt)}return tt.join("")}function Ti(we){const tt={constructs:nn([le,...(we||{}).extensions||[]]),content:Et(di),defined:[],document:Et(Ni),flow:Et(fi),lazy:{},string:Et(hr),text:Et(er)};return tt;function Et(wt){return Bt;function Bt(Qt){return Ta(tt,wt,Qt)}}}const _i=/[\0\t\n\r]/g;function qi(){let we=1,He="",Qe=!0,tt;return Et;function Et(wt,Bt,Qt){const _n=[];let Hn,xn,ri,$n,Pn;for(wt=He+(typeof wt=="string"?wt.toString():new TextDecoder(Bt||void 0).decode(wt)),ri=0,He="",Qe&&(wt.charCodeAt(0)===65279&&ri++,Qe=void 0);ri<wt.length;){if(_i.lastIndex=ri,Hn=_i.exec(wt),$n=Hn&&Hn.index!==void 0?Hn.index:wt.length,Pn=wt.charCodeAt($n),!Hn){He=wt.slice(ri);break}if(Pn===10&&ri===$n&&tt)_n.push(-3),tt=void 0;else switch(tt&&(_n.push(-5),tt=void 0),ri<$n&&(_n.push(wt.slice(ri,$n)),we+=$n-ri),Pn){case 0:{_n.push(65533),we++;break}case 9:{for(xn=Math.ceil(we/4)*4,_n.push(-2);we++<xn;)_n.push(-1);break}case 10:{_n.push(-4),we=1;break}default:tt=!0,we=1}ri=$n+1}return Qt&&(tt&&_n.push(-5),He&&_n.push(He),_n.push(null)),_n}}function ur(we,He){const Qe=Number.parseInt(we,He);return Qe<9||Qe===11||Qe>13&&Qe<32||Qe>126&&Qe<160||Qe>55295&&Qe<57344||Qe>64975&&Qe<65008||(Qe&65535)===65535||(Qe&65535)===65534||Qe>1114111?"\uFFFD":String.fromCodePoint(Qe)}const wr=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Xi(we){return we.replace(wr,Fo)}function Fo(we,He,Qe){if(He)return He;if(Qe.charCodeAt(0)===35){const Et=Qe.charCodeAt(1),wt=Et===120||Et===88;return ur(Qe.slice(wt?2:1),wt?16:10)}return Ro(Qe)||we}const jo={}.hasOwnProperty;function Ao(we,He,Qe){return typeof He!="string"&&(Qe=He,He=void 0),co(Qe)(dn(Ti(Qe).document().write(qi()(we,He,!0))))}function co(we){const He={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:wt(Ze),autolinkProtocol:ta,autolinkEmail:ta,atxHeading:wt(Ku),blockQuote:wt(ys),characterEscape:ta,characterReference:ta,codeFenced:wt(gu),codeFencedFenceInfo:Bt,codeFencedFenceMeta:Bt,codeIndented:wt(gu,Bt),codeText:wt(Iu,Bt),codeTextData:ta,data:ta,codeFlowValue:ta,definition:wt(dd),definitionDestinationString:Bt,definitionLabelString:Bt,definitionTitleString:Bt,emphasis:wt(_l),hardBreakEscape:wt(_d),hardBreakTrailing:wt(_d),htmlFlow:wt(ue,Bt),htmlFlowData:ta,htmlText:wt(ue,Bt),htmlTextData:ta,image:wt(pe),label:Bt,link:wt(Ze),listItem:wt(jn),listItemValue:$n,listOrdered:wt(Ot,ri),listUnordered:wt(Ot),paragraph:wt(bi),reference:qn,referenceString:Bt,resourceDestinationString:Bt,resourceTitleString:Bt,setextHeading:wt(Ku),strong:wt(Gi),thematicBreak:wt(no)},exit:{atxHeading:_n(),atxHeadingSequence:sa,autolink:_n(),autolinkEmail:Al,autolinkProtocol:Ia,blockQuote:_n(),characterEscapeValue:Fr,characterReferenceMarkerHexadecimal:Bl,characterReferenceMarkerNumeric:Bl,characterReferenceValue:Xl,characterReference:ls,codeFenced:_n(so),codeFencedFence:Xr,codeFencedFenceInfo:Pn,codeFencedFenceMeta:Br,codeFlowValue:Fr,codeIndented:_n(Er),codeText:_n(Do),codeTextData:Fr,data:Fr,definition:_n(),definitionDestinationString:aa,definitionLabelString:zr,definitionTitleString:Yr,emphasis:_n(),hardBreakEscape:_n(ya),hardBreakTrailing:_n(ya),htmlFlow:_n(oo),htmlFlowData:Fr,htmlText:_n(to),htmlTextData:Fr,image:_n(ps),label:fl,labelText:Ms,lineEnding:js,link:_n(La),listItem:_n(),listOrdered:_n(),listUnordered:_n(),paragraph:_n(),referenceString:Ps,resourceDestinationString:Zn,resourceTitleString:zs,resource:Tl,setextHeading:_n(ka),setextHeadingLineSequence:da,setextHeadingText:or,strong:_n(),thematicBreak:_n()}};rs(He,(we||{}).mdastExtensions||[]);const Qe={};return tt;function tt(Si){let vr={type:"root",children:[]};const lo={stack:[vr],tokenStack:[],config:He,enter:Qt,exit:Hn,buffer:Bt,resume:xn,data:Qe},_o=[];let va=-1;for(;++va<Si.length;)if(Si[va][1].type==="listOrdered"||Si[va][1].type==="listUnordered")if(Si[va][0]==="enter")_o.push(va);else{const Jl=_o.pop();va=Et(Si,Jl,va)}for(va=-1;++va<Si.length;){const Jl=He[Si[va][0]];jo.call(Jl,Si[va][1].type)&&Jl[Si[va][1].type].call(Object.assign({sliceSerialize:Si[va][2].sliceSerialize},lo),Si[va][1])}if(lo.tokenStack.length>0){const Jl=lo.tokenStack[lo.tokenStack.length-1];(Jl[1]||Ma).call(lo,void 0,Jl[0])}for(vr.position={start:zo(Si.length>0?Si[0][1].start:{line:1,column:1,offset:0}),end:zo(Si.length>0?Si[Si.length-2][1].end:{line:1,column:1,offset:0})},va=-1;++va<He.transforms.length;)vr=He.transforms[va](vr)||vr;return vr}function Et(Si,vr,lo){let _o=vr-1,va=-1,Jl=!1,pu,Xu,ku,tl;for(;++_o<=lo;){const jl=Si[_o];switch(jl[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{jl[0]==="enter"?va++:va--,tl=void 0;break}case"lineEndingBlank":{jl[0]==="enter"&&(pu&&!tl&&!va&&!ku&&(ku=_o),tl=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:tl=void 0}if(!va&&jl[0]==="enter"&&jl[1].type==="listItemPrefix"||va===-1&&jl[0]==="exit"&&(jl[1].type==="listUnordered"||jl[1].type==="listOrdered")){if(pu){let Cc=_o;for(Xu=void 0;Cc--;){const Cl=Si[Cc];if(Cl[1].type==="lineEnding"||Cl[1].type==="lineEndingBlank"){if(Cl[0]==="exit")continue;Xu&&(Si[Xu][1].type="lineEndingBlank",Jl=!0),Cl[1].type="lineEnding",Xu=Cc}else if(!(Cl[1].type==="linePrefix"||Cl[1].type==="blockQuotePrefix"||Cl[1].type==="blockQuotePrefixWhitespace"||Cl[1].type==="blockQuoteMarker"||Cl[1].type==="listItemIndent"))break}ku&&(!Xu||ku<Xu)&&(pu._spread=!0),pu.end=Object.assign({},Xu?Si[Xu][1].start:jl[1].end),Si.splice(Xu||_o,0,["exit",pu,jl[2]]),_o++,lo++}if(jl[1].type==="listItemPrefix"){const Cc={type:"listItem",_spread:!1,start:Object.assign({},jl[1].start),end:void 0};pu=Cc,Si.splice(_o,0,["enter",Cc,jl[2]]),_o++,lo++,ku=void 0,tl=!0}}}return Si[vr][1]._spread=Jl,lo}function wt(Si,vr){return lo;function lo(_o){Qt.call(this,Si(_o),_o),vr&&vr.call(this,_o)}}function Bt(){this.stack.push({type:"fragment",children:[]})}function Qt(Si,vr,lo){this.stack[this.stack.length-1].children.push(Si),this.stack.push(Si),this.tokenStack.push([vr,lo||void 0]),Si.position={start:zo(vr.start),end:void 0}}function _n(Si){return vr;function vr(lo){Si&&Si.call(this,lo),Hn.call(this,lo)}}function Hn(Si,vr){const lo=this.stack.pop(),_o=this.tokenStack.pop();if(_o)_o[0].type!==Si.type&&(vr?vr.call(this,Si,_o[0]):(_o[1]||Ma).call(this,Si,_o[0]));else throw new Error("Cannot close `"+Si.type+"` ("+Oe({start:Si.start,end:Si.end})+"): it\u2019s not open");lo.position.end=zo(Si.end)}function xn(){return Mt(this.stack.pop())}function ri(){this.data.expectingFirstListItemValue=!0}function $n(Si){if(this.data.expectingFirstListItemValue){const vr=this.stack[this.stack.length-2];vr.start=Number.parseInt(this.sliceSerialize(Si),10),this.data.expectingFirstListItemValue=void 0}}function Pn(){const Si=this.resume(),vr=this.stack[this.stack.length-1];vr.lang=Si}function Br(){const Si=this.resume(),vr=this.stack[this.stack.length-1];vr.meta=Si}function Xr(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function so(){const Si=this.resume(),vr=this.stack[this.stack.length-1];vr.value=Si.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function Er(){const Si=this.resume(),vr=this.stack[this.stack.length-1];vr.value=Si.replace(/(\r?\n|\r)$/g,"")}function zr(Si){const vr=this.resume(),lo=this.stack[this.stack.length-1];lo.label=vr,lo.identifier=pi(this.sliceSerialize(Si)).toLowerCase()}function Yr(){const Si=this.resume(),vr=this.stack[this.stack.length-1];vr.title=Si}function aa(){const Si=this.resume(),vr=this.stack[this.stack.length-1];vr.url=Si}function sa(Si){const vr=this.stack[this.stack.length-1];if(!vr.depth){const lo=this.sliceSerialize(Si).length;vr.depth=lo}}function or(){this.data.setextHeadingSlurpLineEnding=!0}function da(Si){const vr=this.stack[this.stack.length-1];vr.depth=this.sliceSerialize(Si).codePointAt(0)===61?1:2}function ka(){this.data.setextHeadingSlurpLineEnding=void 0}function ta(Si){const lo=this.stack[this.stack.length-1].children;let _o=lo[lo.length-1];(!_o||_o.type!=="text")&&(_o=Ur(),_o.position={start:zo(Si.start),end:void 0},lo.push(_o)),this.stack.push(_o)}function Fr(Si){const vr=this.stack.pop();vr.value+=this.sliceSerialize(Si),vr.position.end=zo(Si.end)}function js(Si){const vr=this.stack[this.stack.length-1];if(this.data.atHardBreak){const lo=vr.children[vr.children.length-1];lo.position.end=zo(Si.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&He.canContainEols.includes(vr.type)&&(ta.call(this,Si),Fr.call(this,Si))}function ya(){this.data.atHardBreak=!0}function oo(){const Si=this.resume(),vr=this.stack[this.stack.length-1];vr.value=Si}function to(){const Si=this.resume(),vr=this.stack[this.stack.length-1];vr.value=Si}function Do(){const Si=this.resume(),vr=this.stack[this.stack.length-1];vr.value=Si}function La(){const Si=this.stack[this.stack.length-1];if(this.data.inReference){const vr=this.data.referenceType||"shortcut";Si.type+="Reference",Si.referenceType=vr,delete Si.url,delete Si.title}else delete Si.identifier,delete Si.label;this.data.referenceType=void 0}function ps(){const Si=this.stack[this.stack.length-1];if(this.data.inReference){const vr=this.data.referenceType||"shortcut";Si.type+="Reference",Si.referenceType=vr,delete Si.url,delete Si.title}else delete Si.identifier,delete Si.label;this.data.referenceType=void 0}function Ms(Si){const vr=this.sliceSerialize(Si),lo=this.stack[this.stack.length-2];lo.label=Xi(vr),lo.identifier=pi(vr).toLowerCase()}function fl(){const Si=this.stack[this.stack.length-1],vr=this.resume(),lo=this.stack[this.stack.length-1];if(this.data.inReference=!0,lo.type==="link"){const _o=Si.children;lo.children=_o}else lo.alt=vr}function Zn(){const Si=this.resume(),vr=this.stack[this.stack.length-1];vr.url=Si}function zs(){const Si=this.resume(),vr=this.stack[this.stack.length-1];vr.title=Si}function Tl(){this.data.inReference=void 0}function qn(){this.data.referenceType="collapsed"}function Ps(Si){const vr=this.resume(),lo=this.stack[this.stack.length-1];lo.label=vr,lo.identifier=pi(this.sliceSerialize(Si)).toLowerCase(),this.data.referenceType="full"}function Bl(Si){this.data.characterReferenceType=Si.type}function Xl(Si){const vr=this.sliceSerialize(Si),lo=this.data.characterReferenceType;let _o;lo?(_o=ur(vr,lo==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):_o=Ro(vr);const va=this.stack[this.stack.length-1];va.value+=_o}function ls(Si){const vr=this.stack.pop();vr.position.end=zo(Si.end)}function Ia(Si){Fr.call(this,Si);const vr=this.stack[this.stack.length-1];vr.url=this.sliceSerialize(Si)}function Al(Si){Fr.call(this,Si);const vr=this.stack[this.stack.length-1];vr.url="mailto:"+this.sliceSerialize(Si)}function ys(){return{type:"blockquote",children:[]}}function gu(){return{type:"code",lang:null,meta:null,value:""}}function Iu(){return{type:"inlineCode",value:""}}function dd(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function _l(){return{type:"emphasis",children:[]}}function Ku(){return{type:"heading",depth:0,children:[]}}function _d(){return{type:"break"}}function ue(){return{type:"html",value:""}}function pe(){return{type:"image",title:null,url:"",alt:null}}function Ze(){return{type:"link",title:null,url:"",children:[]}}function Ot(Si){return{type:"list",ordered:Si.type==="listOrdered",start:null,spread:Si._spread,children:[]}}function jn(Si){return{type:"listItem",spread:Si._spread,checked:null,children:[]}}function bi(){return{type:"paragraph",children:[]}}function Gi(){return{type:"strong",children:[]}}function Ur(){return{type:"text",value:""}}function no(){return{type:"thematicBreak"}}}function zo(we){return{line:we.line,column:we.column,offset:we.offset}}function rs(we,He){let Qe=-1;for(;++Qe<He.length;){const tt=He[Qe];Array.isArray(tt)?rs(we,tt):ia(we,tt)}}function ia(we,He){let Qe;for(Qe in He)if(jo.call(He,Qe))switch(Qe){case"canContainEols":{const tt=He[Qe];tt&&we[Qe].push(...tt);break}case"transforms":{const tt=He[Qe];tt&&we[Qe].push(...tt);break}case"enter":case"exit":{const tt=He[Qe];tt&&Object.assign(we[Qe],tt);break}}}function Ma(we,He){throw we?new Error("Cannot close `"+we.type+"` ("+Oe({start:we.start,end:we.end})+"): a different token (`"+He.type+"`, "+Oe({start:He.start,end:He.end})+") is open"):new Error("Cannot close document, a token (`"+He.type+"`, "+Oe({start:He.start,end:He.end})+") is still open")}function Ts(we){const He=this;He.parser=Qe;function Qe(tt){return Ao(tt,Nf(Mo(Mo({},He.data("settings")),we),{extensions:He.data("micromarkExtensions")||[],mdastExtensions:He.data("fromMarkdownExtensions")||[]}))}}var Za=de(90302);function $s(we,He){const Qe=encode(hl(we||""));if(!He)return Qe;const tt=Qe.indexOf(":"),Et=Qe.indexOf("?"),wt=Qe.indexOf("#"),Bt=Qe.indexOf("/");return tt<0||Bt>-1&&tt>Bt||Et>-1&&tt>Et||wt>-1&&tt>wt||He.test(Qe.slice(0,tt))?Qe:""}function hl(we){const He=[];let Qe=-1,tt=0,Et=0;for(;++Qe<we.length;){const wt=we.charCodeAt(Qe);let Bt="";if(wt===37&&(0,Ht.H$)(we.charCodeAt(Qe+1))&&(0,Ht.H$)(we.charCodeAt(Qe+2)))Et=2;else if(wt<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(wt))||(Bt=String.fromCharCode(wt));else if(wt>55295&&wt<57344){const Qt=we.charCodeAt(Qe+1);wt<56320&&Qt>56319&&Qt<57344?(Bt=String.fromCharCode(wt,Qt),Et=1):Bt="\uFFFD"}else Bt=String.fromCharCode(wt);Bt&&(He.push(we.slice(tt,Qe),encodeURIComponent(Bt)),tt=Qe+Et+1,Bt=""),Et&&(Qe+=Et,Et=0)}return He.join("")+we.slice(tt)}function Ol(we,He){const Qe=[{type:"text",value:"\u21A9"}];return He>1&&Qe.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(He)}]}),Qe}function Fa(we,He){return"Back to reference "+(we+1)+(He>1?"-"+He:"")}function As(we){const He=typeof we.options.clobberPrefix=="string"?we.options.clobberPrefix:"user-content-",Qe=we.options.footnoteBackContent||Ol,tt=we.options.footnoteBackLabel||Fa,Et=we.options.footnoteLabel||"Footnotes",wt=we.options.footnoteLabelTagName||"h2",Bt=we.options.footnoteLabelProperties||{className:["sr-only"]},Qt=[];let _n=-1;for(;++_n<we.footnoteOrder.length;){const Hn=we.footnoteById.get(we.footnoteOrder[_n]);if(!Hn)continue;const xn=we.all(Hn),ri=String(Hn.identifier).toUpperCase(),$n=hl(ri.toLowerCase());let Pn=0;const Br=[],Xr=we.footnoteCounts.get(ri);for(;Xr!==void 0&&++Pn<=Xr;){Br.length>0&&Br.push({type:"text",value:" "});let zr=typeof Qe=="string"?Qe:Qe(_n,Pn);typeof zr=="string"&&(zr={type:"text",value:zr}),Br.push({type:"element",tagName:"a",properties:{href:"#"+He+"fnref-"+$n+(Pn>1?"-"+Pn:""),dataFootnoteBackref:"",ariaLabel:typeof tt=="string"?tt:tt(_n,Pn),className:["data-footnote-backref"]},children:Array.isArray(zr)?zr:[zr]})}const so=xn[xn.length-1];if(so&&so.type==="element"&&so.tagName==="p"){const zr=so.children[so.children.length-1];zr&&zr.type==="text"?zr.value+=" ":so.children.push({type:"text",value:" "}),so.children.push(...Br)}else xn.push(...Br);const Er={type:"element",tagName:"li",properties:{id:He+"fn-"+$n},children:we.wrap(xn,!0)};we.patch(Hn,Er),Qt.push(Er)}if(Qt.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:wt,properties:Nf(Mo({},(0,Za.ZP)(Bt)),{id:"footnote-label"}),children:[{type:"text",value:Et}]},{type:"text",value:`
|
|
|
`},{type:"element",tagName:"ol",properties:{},children:we.wrap(Qt,!0)},{type:"text",value:`
|
|
|
`}]}}var Rs=de(10528);function sc(we,He){const Qe={type:"element",tagName:"blockquote",properties:{},children:we.wrap(we.all(He),!0)};return we.patch(He,Qe),we.applyData(He,Qe)}function xc(we,He){const Qe={type:"element",tagName:"br",properties:{},children:[]};return we.patch(He,Qe),[we.applyData(He,Qe),{type:"text",value:`
|
|
|
`}]}function Yc(we,He){const Qe=He.value?He.value+`
|
|
|
`:"",tt={};He.lang&&(tt.className=["language-"+He.lang]);let Et={type:"element",tagName:"code",properties:tt,children:[{type:"text",value:Qe}]};return He.meta&&(Et.data={meta:He.meta}),we.patch(He,Et),Et=we.applyData(He,Et),Et={type:"element",tagName:"pre",properties:{},children:[Et]},we.patch(He,Et),Et}function Aa(we,He){const Qe={type:"element",tagName:"del",properties:{},children:we.all(He)};return we.patch(He,Qe),we.applyData(He,Qe)}function ad(we,He){const Qe={type:"element",tagName:"em",properties:{},children:we.all(He)};return we.patch(He,Qe),we.applyData(He,Qe)}function bc(we,He){const Qe=typeof we.options.clobberPrefix=="string"?we.options.clobberPrefix:"user-content-",tt=String(He.identifier).toUpperCase(),Et=hl(tt.toLowerCase()),wt=we.footnoteOrder.indexOf(tt);let Bt,Qt=we.footnoteCounts.get(tt);Qt===void 0?(Qt=0,we.footnoteOrder.push(tt),Bt=we.footnoteOrder.length):Bt=wt+1,Qt+=1,we.footnoteCounts.set(tt,Qt);const _n={type:"element",tagName:"a",properties:{href:"#"+Qe+"fn-"+Et,id:Qe+"fnref-"+Et+(Qt>1?"-"+Qt:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(Bt)}]};we.patch(He,_n);const Hn={type:"element",tagName:"sup",properties:{},children:[_n]};return we.patch(He,Hn),we.applyData(He,Hn)}function Gu(we,He){const Qe={type:"element",tagName:"h"+He.depth,properties:{},children:we.all(He)};return we.patch(He,Qe),we.applyData(He,Qe)}function Yu(we,He){if(we.options.allowDangerousHtml){const Qe={type:"raw",value:He.value};return we.patch(He,Qe),we.applyData(He,Qe)}}function es(we,He){const Qe=He.referenceType;let tt="]";if(Qe==="collapsed"?tt+="[]":Qe==="full"&&(tt+="["+(He.label||He.identifier)+"]"),He.type==="imageReference")return[{type:"text",value:"!["+He.alt+tt}];const Et=we.all(He),wt=Et[0];wt&&wt.type==="text"?wt.value="["+wt.value:Et.unshift({type:"text",value:"["});const Bt=Et[Et.length-1];return Bt&&Bt.type==="text"?Bt.value+=tt:Et.push({type:"text",value:tt}),Et}function hs(we,He){const Qe=String(He.identifier).toUpperCase(),tt=we.definitionById.get(Qe);if(!tt)return es(we,He);const Et={src:hl(tt.url||""),alt:He.alt};tt.title!==null&&tt.title!==void 0&&(Et.title=tt.title);const wt={type:"element",tagName:"img",properties:Et,children:[]};return we.patch(He,wt),we.applyData(He,wt)}function Ha(we,He){const Qe={src:hl(He.url)};He.alt!==null&&He.alt!==void 0&&(Qe.alt=He.alt),He.title!==null&&He.title!==void 0&&(Qe.title=He.title);const tt={type:"element",tagName:"img",properties:Qe,children:[]};return we.patch(He,tt),we.applyData(He,tt)}function ts(we,He){const Qe={type:"text",value:He.value.replace(/\r?\n|\r/g," ")};we.patch(He,Qe);const tt={type:"element",tagName:"code",properties:{},children:[Qe]};return we.patch(He,tt),we.applyData(He,tt)}function wc(we,He){const Qe=String(He.identifier).toUpperCase(),tt=we.definitionById.get(Qe);if(!tt)return es(we,He);const Et={href:hl(tt.url||"")};tt.title!==null&&tt.title!==void 0&&(Et.title=tt.title);const wt={type:"element",tagName:"a",properties:Et,children:we.all(He)};return we.patch(He,wt),we.applyData(He,wt)}function Wu(we,He){const Qe={href:hl(He.url)};He.title!==null&&He.title!==void 0&&(Qe.title=He.title);const tt={type:"element",tagName:"a",properties:Qe,children:we.all(He)};return we.patch(He,tt),we.applyData(He,tt)}function oa(we,He,Qe){const tt=we.all(He),Et=Qe?Bo(Qe):So(He),wt={},Bt=[];if(typeof He.checked=="boolean"){const xn=tt[0];let ri;xn&&xn.type==="element"&&xn.tagName==="p"?ri=xn:(ri={type:"element",tagName:"p",properties:{},children:[]},tt.unshift(ri)),ri.children.length>0&&ri.children.unshift({type:"text",value:" "}),ri.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:He.checked,disabled:!0},children:[]}),wt.className=["task-list-item"]}let Qt=-1;for(;++Qt<tt.length;){const xn=tt[Qt];(Et||Qt!==0||xn.type!=="element"||xn.tagName!=="p")&&Bt.push({type:"text",value:`
|
|
|
`}),xn.type==="element"&&xn.tagName==="p"&&!Et?Bt.push(...xn.children):Bt.push(xn)}const _n=tt[tt.length-1];_n&&(Et||_n.type!=="element"||_n.tagName!=="p")&&Bt.push({type:"text",value:`
|
|
|
`});const Hn={type:"element",tagName:"li",properties:wt,children:Bt};return we.patch(He,Hn),we.applyData(He,Hn)}function Bo(we){let He=!1;if(we.type==="list"){He=we.spread||!1;const Qe=we.children;let tt=-1;for(;!He&&++tt<Qe.length;)He=So(Qe[tt])}return He}function So(we){const He=we.spread;return He==null?we.children.length>1:He}function os(we,He){const Qe={},tt=we.all(He);let Et=-1;for(typeof He.start=="number"&&He.start!==1&&(Qe.start=He.start);++Et<tt.length;){const Bt=tt[Et];if(Bt.type==="element"&&Bt.tagName==="li"&&Bt.properties&&Array.isArray(Bt.properties.className)&&Bt.properties.className.includes("task-list-item")){Qe.className=["contains-task-list"];break}}const wt={type:"element",tagName:He.ordered?"ol":"ul",properties:Qe,children:we.wrap(tt,!0)};return we.patch(He,wt),we.applyData(He,wt)}function ir(we,He){const Qe={type:"element",tagName:"p",properties:{},children:we.all(He)};return we.patch(He,Qe),we.applyData(He,Qe)}function Ga(we,He){const Qe={type:"root",children:we.wrap(we.all(He))};return we.patch(He,Qe),we.applyData(He,Qe)}function Ft(we,He){const Qe={type:"element",tagName:"strong",properties:{},children:we.all(He)};return we.patch(He,Qe),we.applyData(He,Qe)}function Qn(we,He){const Qe=we.all(He),tt=Qe.shift(),Et=[];if(tt){const Bt={type:"element",tagName:"thead",properties:{},children:we.wrap([tt],!0)};we.patch(He.children[0],Bt),Et.push(Bt)}if(Qe.length>0){const Bt={type:"element",tagName:"tbody",properties:{},children:we.wrap(Qe,!0)},Qt=(0,Ae.Pk)(He.children[1]),_n=(0,Ae.rb)(He.children[He.children.length-1]);Qt&&_n&&(Bt.position={start:Qt,end:_n}),Et.push(Bt)}const wt={type:"element",tagName:"table",properties:{},children:we.wrap(Et,!0)};return we.patch(He,wt),we.applyData(He,wt)}function xl(we,He,Qe){const tt=Qe?Qe.children:void 0,wt=(tt?tt.indexOf(He):1)===0?"th":"td",Bt=Qe&&Qe.type==="table"?Qe.align:void 0,Qt=Bt?Bt.length:He.children.length;let _n=-1;const Hn=[];for(;++_n<Qt;){const ri=He.children[_n],$n={},Pn=Bt?Bt[_n]:void 0;Pn&&($n.align=Pn);let Br={type:"element",tagName:wt,properties:$n,children:[]};ri&&(Br.children=we.all(ri),we.patch(ri,Br),Br=we.applyData(ri,Br)),Hn.push(Br)}const xn={type:"element",tagName:"tr",properties:{},children:we.wrap(Hn,!0)};return we.patch(He,xn),we.applyData(He,xn)}function uu(we,He){const Qe={type:"element",tagName:"td",properties:{},children:we.all(He)};return we.patch(He,Qe),we.applyData(He,Qe)}const Cs=9,fs=32;function Rl(we){const He=String(we),Qe=/\r?\n|\r/g;let tt=Qe.exec(He),Et=0;const wt=[];for(;tt;)wt.push(cu(He.slice(Et,tt.index),Et>0,!0),tt[0]),Et=tt.index+tt[0].length,tt=Qe.exec(He);return wt.push(cu(He.slice(Et),Et>0,!1)),wt.join("")}function cu(we,He,Qe){let tt=0,Et=we.length;if(He){let wt=we.codePointAt(tt);for(;wt===Cs||wt===fs;)tt++,wt=we.codePointAt(tt)}if(Qe){let wt=we.codePointAt(Et-1);for(;wt===Cs||wt===fs;)Et--,wt=we.codePointAt(Et-1)}return Et>tt?we.slice(tt,Et):""}function Wc(we,He){const Qe={type:"text",value:Rl(String(He.value))};return we.patch(He,Qe),we.applyData(He,Qe)}function pa(we,He){const Qe={type:"element",tagName:"hr",properties:{},children:[]};return we.patch(He,Qe),we.applyData(He,Qe)}const jr={blockquote:sc,break:xc,code:Yc,delete:Aa,emphasis:ad,footnoteReference:bc,heading:Gu,html:Yu,imageReference:hs,image:Ha,inlineCode:ts,linkReference:wc,link:Wu,listItem:oa,list:os,paragraph:ir,root:Ga,strong:Ft,table:Qn,tableCell:uu,tableRow:xl,text:Wc,thematicBreak:pa,toml:as,yaml:as,definition:as,footnoteDefinition:as};function as(){}const Ns={}.hasOwnProperty,Po={};function mo(we,He){const Qe=He||Po,tt=new Map,Et=new Map,wt=new Map,Bt=Mo(Mo({},jr),Qe.handlers),Qt={all:Hn,applyData:Fs,definitionById:tt,footnoteById:Et,footnoteCounts:wt,footnoteOrder:[],handlers:Bt,one:_n,options:Qe,patch:Ba,wrap:el};return(0,Rs.Vn)(we,function(xn){if(xn.type==="definition"||xn.type==="footnoteDefinition"){const ri=xn.type==="definition"?tt:Et,$n=String(xn.identifier).toUpperCase();ri.has($n)||ri.set($n,xn)}}),Qt;function _n(xn,ri){const $n=xn.type,Pn=Qt.handlers[$n];if(Ns.call(Qt.handlers,$n)&&Pn)return Pn(Qt,xn,ri);if(Qt.options.passThrough&&Qt.options.passThrough.includes($n)){if("children"in xn){const Xr=xn,{children:so}=Xr,Er=TE(Xr,["children"]),zr=(0,Za.ZP)(Er);return zr.children=Qt.all(xn),zr}return(0,Za.ZP)(xn)}return(Qt.options.unknownHandler||ea)(Qt,xn,ri)}function Hn(xn){const ri=[];if("children"in xn){const $n=xn.children;let Pn=-1;for(;++Pn<$n.length;){const Br=Qt.one($n[Pn],xn);if(Br){if(Pn&&$n[Pn-1].type==="break"&&(!Array.isArray(Br)&&Br.type==="text"&&(Br.value=Qa(Br.value)),!Array.isArray(Br)&&Br.type==="element")){const Xr=Br.children[0];Xr&&Xr.type==="text"&&(Xr.value=Qa(Xr.value))}Array.isArray(Br)?ri.push(...Br):ri.push(Br)}}}return ri}}function Ba(we,He){we.position&&(He.position=(0,Ae.FK)(we))}function Fs(we,He){let Qe=He;if(we&&we.data){const tt=we.data.hName,Et=we.data.hChildren,wt=we.data.hProperties;if(typeof tt=="string")if(Qe.type==="element")Qe.tagName=tt;else{const Bt="children"in Qe?Qe.children:[Qe];Qe={type:"element",tagName:tt,properties:{},children:Bt}}Qe.type==="element"&&wt&&Object.assign(Qe.properties,(0,Za.ZP)(wt)),"children"in Qe&&Qe.children&&Et!==null&&Et!==void 0&&(Qe.children=Et)}return Qe}function ea(we,He){const Qe=He.data||{},tt="value"in He&&!(Ns.call(Qe,"hProperties")||Ns.call(Qe,"hChildren"))?{type:"text",value:He.value}:{type:"element",tagName:"div",properties:{},children:we.all(He)};return we.patch(He,tt),we.applyData(He,tt)}function el(we,He){const Qe=[];let tt=-1;for(He&&Qe.push({type:"text",value:`
|
|
|
`});++tt<we.length;)tt&&Qe.push({type:"text",value:`
|
|
|
`}),Qe.push(we[tt]);return He&&we.length>0&&Qe.push({type:"text",value:`
|
|
|
`}),Qe}function Qa(we){let He=0,Qe=we.charCodeAt(He);for(;Qe===9||Qe===32;)He++,Qe=we.charCodeAt(He);return we.slice(He)}function Au(we,He){const Qe=mo(we,He),tt=Qe.one(we,void 0),Et=As(Qe),wt=Array.isArray(tt)?{type:"root",children:tt}:tt||{type:"root",children:[]};return Et&&((0,Ie.ok)("children"in wt),wt.children.push({type:"text",value:`
|
|
|
`},Et)),wt}function Io(we,He){return we&&"run"in we?function(Qe,tt){return Jy(this,null,function*(){const Et=Au(Qe,Mo({file:tt},He));yield we.run(Et,tt)})}:function(Qe,tt){return Au(Qe,Mo({file:tt},we||He))}}function vs(we){if(we)throw we}var wo=de(58847);function Wo(we){if(typeof we!="object"||we===null)return!1;const He=Object.getPrototypeOf(we);return(He===null||He===Object.prototype||Object.getPrototypeOf(He)===null)&&!(Symbol.toStringTag in we)&&!(Symbol.iterator in we)}function qo(){const we=[],He={run:Qe,use:tt};return He;function Qe(...Et){let wt=-1;const Bt=Et.pop();if(typeof Bt!="function")throw new TypeError("Expected function as last argument, not "+Bt);Qt(null,...Et);function Qt(_n,...Hn){const xn=we[++wt];let ri=-1;if(_n){Bt(_n);return}for(;++ri<Et.length;)(Hn[ri]===null||Hn[ri]===void 0)&&(Hn[ri]=Et[ri]);Et=Hn,xn?ma(xn,Qt)(...Hn):Bt(null,...Hn)}}function tt(Et){if(typeof Et!="function")throw new TypeError("Expected `middelware` to be a function, not "+Et);return we.push(Et),He}}function ma(we,He){let Qe;return tt;function tt(...Bt){const Qt=we.length>Bt.length;let _n;Qt&&Bt.push(Et);try{_n=we.apply(this,Bt)}catch(Hn){const xn=Hn;if(Qt&&Qe)throw xn;return Et(xn)}Qt||(_n&&_n.then&&typeof _n.then=="function"?_n.then(wt,Et):_n instanceof Error?Et(_n):wt(_n))}function Et(Bt,...Qt){Qe||(Qe=!0,He(Bt,...Qt))}function wt(Bt){Et(null,Bt)}}const fo={basename:lc,dirname:Dr,extname:gh,join:Co,sep:"/"};function lc(we,He){if(He!==void 0&&typeof He!="string")throw new TypeError('"ext" argument must be a string');Cu(we);let Qe=0,tt=-1,Et=we.length,wt;if(He===void 0||He.length===0||He.length>we.length){for(;Et--;)if(we.codePointAt(Et)===47){if(wt){Qe=Et+1;break}}else tt<0&&(wt=!0,tt=Et+1);return tt<0?"":we.slice(Qe,tt)}if(He===we)return"";let Bt=-1,Qt=He.length-1;for(;Et--;)if(we.codePointAt(Et)===47){if(wt){Qe=Et+1;break}}else Bt<0&&(wt=!0,Bt=Et+1),Qt>-1&&(we.codePointAt(Et)===He.codePointAt(Qt--)?Qt<0&&(tt=Et):(Qt=-1,tt=Bt));return Qe===tt?tt=Bt:tt<0&&(tt=we.length),we.slice(Qe,tt)}function Dr(we){if(Cu(we),we.length===0)return".";let He=-1,Qe=we.length,tt;for(;--Qe;)if(we.codePointAt(Qe)===47){if(tt){He=Qe;break}}else tt||(tt=!0);return He<0?we.codePointAt(0)===47?"/":".":He===1&&we.codePointAt(0)===47?"//":we.slice(0,He)}function gh(we){Cu(we);let He=we.length,Qe=-1,tt=0,Et=-1,wt=0,Bt;for(;He--;){const Qt=we.codePointAt(He);if(Qt===47){if(Bt){tt=He+1;break}continue}Qe<0&&(Bt=!0,Qe=He+1),Qt===46?Et<0?Et=He:wt!==1&&(wt=1):Et>-1&&(wt=-1)}return Et<0||Qe<0||wt===0||wt===1&&Et===Qe-1&&Et===tt+1?"":we.slice(Et,Qe)}function Co(...we){let He=-1,Qe;for(;++He<we.length;)Cu(we[He]),we[He]&&(Qe=Qe===void 0?we[He]:Qe+"/"+we[He]);return Qe===void 0?".":ph(Qe)}function ph(we){Cu(we);const He=we.codePointAt(0)===47;let Qe=Tc(we,!He);return Qe.length===0&&!He&&(Qe="."),Qe.length>0&&we.codePointAt(we.length-1)===47&&(Qe+="/"),He?"/"+Qe:Qe}function Tc(we,He){let Qe="",tt=0,Et=-1,wt=0,Bt=-1,Qt,_n;for(;++Bt<=we.length;){if(Bt<we.length)Qt=we.codePointAt(Bt);else{if(Qt===47)break;Qt=47}if(Qt===47){if(!(Et===Bt-1||wt===1))if(Et!==Bt-1&&wt===2){if(Qe.length<2||tt!==2||Qe.codePointAt(Qe.length-1)!==46||Qe.codePointAt(Qe.length-2)!==46){if(Qe.length>2){if(_n=Qe.lastIndexOf("/"),_n!==Qe.length-1){_n<0?(Qe="",tt=0):(Qe=Qe.slice(0,_n),tt=Qe.length-1-Qe.lastIndexOf("/")),Et=Bt,wt=0;continue}}else if(Qe.length>0){Qe="",tt=0,Et=Bt,wt=0;continue}}He&&(Qe=Qe.length>0?Qe+"/..":"..",tt=2)}else Qe.length>0?Qe+="/"+we.slice(Et+1,Bt):Qe=we.slice(Et+1,Bt),tt=Bt-Et-1;Et=Bt,wt=0}else Qt===46&&wt>-1?wt++:wt=-1}return Qe}function Cu(we){if(typeof we!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(we))}const Bd={cwd:sd};function sd(){return"/"}function Ql(we){return!!(we!==null&&typeof we=="object"&&"href"in we&&we.href&&"protocol"in we&&we.protocol&&we.auth===void 0)}function Fl(we){if(typeof we=="string")we=new URL(we);else if(!Ql(we)){const He=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+we+"`");throw He.code="ERR_INVALID_ARG_TYPE",He}if(we.protocol!=="file:"){const He=new TypeError("The URL must be of scheme file");throw He.code="ERR_INVALID_URL_SCHEME",He}return To(we)}function To(we){if(we.hostname!==""){const tt=new TypeError('File URL host must be "localhost" or empty on darwin');throw tt.code="ERR_INVALID_FILE_URL_HOST",tt}const He=we.pathname;let Qe=-1;for(;++Qe<He.length;)if(He.codePointAt(Qe)===37&&He.codePointAt(Qe+1)===50){const tt=He.codePointAt(Qe+2);if(tt===70||tt===102){const Et=new TypeError("File URL path must not include encoded / characters");throw Et.code="ERR_INVALID_FILE_URL_PATH",Et}}return decodeURIComponent(He)}const Bs=["history","path","basename","stem","extname","dirname"];class Ac{constructor(He){let Qe;He?Ql(He)?Qe={path:He}:typeof He=="string"||bl(He)?Qe={value:He}:Qe=He:Qe={},this.cwd="cwd"in Qe?"":Bd.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let tt=-1;for(;++tt<Bs.length;){const wt=Bs[tt];wt in Qe&&Qe[wt]!==void 0&&Qe[wt]!==null&&(this[wt]=wt==="history"?[...Qe[wt]]:Qe[wt])}let Et;for(Et in Qe)Bs.includes(Et)||(this[Et]=Qe[Et])}get basename(){return typeof this.path=="string"?fo.basename(this.path):void 0}set basename(He){Nu(He,"basename"),du(He,"basename"),this.path=fo.join(this.dirname||"",He)}get dirname(){return typeof this.path=="string"?fo.dirname(this.path):void 0}set dirname(He){Kl(this.basename,"dirname"),this.path=fo.join(He||"",this.basename)}get extname(){return typeof this.path=="string"?fo.extname(this.path):void 0}set extname(He){if(du(He,"extname"),Kl(this.dirname,"extname"),He){if(He.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(He.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=fo.join(this.dirname,this.stem+(He||""))}get path(){return this.history[this.history.length-1]}set path(He){Ql(He)&&(He=Fl(He)),Nu(He,"path"),this.path!==He&&this.history.push(He)}get stem(){return typeof this.path=="string"?fo.basename(this.path,this.extname):void 0}set stem(He){Nu(He,"stem"),du(He,"stem"),this.path=fo.join(this.dirname||"",He+(this.extname||""))}fail(He,Qe,tt){const Et=this.message(He,Qe,tt);throw Et.fatal=!0,Et}info(He,Qe,tt){const Et=this.message(He,Qe,tt);return Et.fatal=void 0,Et}message(He,Qe,tt){const Et=new ot(He,Qe,tt);return this.path&&(Et.name=this.path+":"+Et.name,Et.file=this.path),Et.fatal=!1,this.messages.push(Et),Et}toString(He){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(He||void 0).decode(this.value)}}function du(we,He){if(we&&we.includes(fo.sep))throw new Error("`"+He+"` cannot be a path: did not expect `"+fo.sep+"`")}function Nu(we,He){if(!we)throw new Error("`"+He+"` cannot be empty")}function Kl(we,He){if(!we)throw new Error("Setting `"+He+"` requires `path` to be set too")}function bl(we){return!!(we&&typeof we=="object"&&"byteLength"in we&&"byteOffset"in we)}const Vu=function(we){const tt=this.constructor.prototype,Et=tt[we],wt=function(){return Et.apply(wt,arguments)};return Object.setPrototypeOf(wt,tt),wt},wl={}.hasOwnProperty;class hu extends Vu{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=qo()}copy(){const He=new hu;let Qe=-1;for(;++Qe<this.attachers.length;){const tt=this.attachers[Qe];He.use(...tt)}return He.data(wo(!0,{},this.namespace)),He}data(He,Qe){return typeof He=="string"?arguments.length===2?(dc("data",this.frozen),this.namespace[He]=Qe,this):wl.call(this.namespace,He)&&this.namespace[He]||void 0:He?(dc("data",this.frozen),this.namespace=He,this):this.namespace}freeze(){if(this.frozen)return this;const He=this;for(;++this.freezeIndex<this.attachers.length;){const[Qe,...tt]=this.attachers[this.freezeIndex];if(tt[0]===!1)continue;tt[0]===!0&&(tt[0]=void 0);const Et=Qe.call(He,...tt);typeof Et=="function"&&this.transformers.use(Et)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(He){this.freeze();const Qe=ld(He),tt=this.parser||this.Parser;return Zu("parse",tt),tt(String(Qe),Qe)}process(He,Qe){const tt=this;return this.freeze(),Zu("process",this.parser||this.Parser),cc("process",this.compiler||this.Compiler),Qe?Et(void 0,Qe):new Promise(Et);function Et(wt,Bt){const Qt=ld(He),_n=tt.parse(Qt);tt.run(_n,Qt,function(xn,ri,$n){if(xn||!ri||!$n)return Hn(xn);const Pn=ri,Br=tt.stringify(Pn,$n);vh(Br)?$n.value=Br:$n.result=Br,Hn(xn,$n)});function Hn(xn,ri){xn||!ri?Bt(xn):wt?wt(ri):((0,Ie.ok)(Qe,"`done` is defined if `resolve` is not"),Qe(void 0,ri))}}}processSync(He){let Qe=!1,tt;return this.freeze(),Zu("processSync",this.parser||this.Parser),cc("processSync",this.compiler||this.Compiler),this.process(He,Et),Mu("processSync","process",Qe),(0,Ie.ok)(tt,"we either bailed on an error or have a tree"),tt;function Et(wt,Bt){Qe=!0,vs(wt),tt=Bt}}run(He,Qe,tt){fu(He),this.freeze();const Et=this.transformers;return!tt&&typeof Qe=="function"&&(tt=Qe,Qe=void 0),tt?wt(void 0,tt):new Promise(wt);function wt(Bt,Qt){(0,Ie.ok)(typeof Qe!="function","`file` can\u2019t be a `done` anymore, we checked");const _n=ld(Qe);Et.run(He,_n,Hn);function Hn(xn,ri,$n){const Pn=ri||He;xn?Qt(xn):Bt?Bt(Pn):((0,Ie.ok)(tt,"`done` is defined if `resolve` is not"),tt(void 0,Pn,$n))}}}runSync(He,Qe){let tt=!1,Et;return this.run(He,Qe,wt),Mu("runSync","run",tt),(0,Ie.ok)(Et,"we either bailed on an error or have a tree"),Et;function wt(Bt,Qt){vs(Bt),Et=Qt,tt=!0}}stringify(He,Qe){this.freeze();const tt=ld(Qe),Et=this.compiler||this.Compiler;return cc("stringify",Et),fu(He),Et(He,tt)}use(He,...Qe){const tt=this.attachers,Et=this.namespace;if(dc("use",this.frozen),He!=null)if(typeof He=="function")_n(He,Qe);else if(typeof He=="object")Array.isArray(He)?Qt(He):Bt(He);else throw new TypeError("Expected usable value, not `"+He+"`");return this;function wt(Hn){if(typeof Hn=="function")_n(Hn,[]);else if(typeof Hn=="object")if(Array.isArray(Hn)){const[xn,...ri]=Hn;_n(xn,ri)}else Bt(Hn);else throw new TypeError("Expected usable value, not `"+Hn+"`")}function Bt(Hn){if(!("plugins"in Hn)&&!("settings"in Hn))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");Qt(Hn.plugins),Hn.settings&&(Et.settings=wo(!0,Et.settings,Hn.settings))}function Qt(Hn){let xn=-1;if(Hn!=null)if(Array.isArray(Hn))for(;++xn<Hn.length;){const ri=Hn[xn];wt(ri)}else throw new TypeError("Expected a list of plugins, not `"+Hn+"`")}function _n(Hn,xn){let ri=-1,$n=-1;for(;++ri<tt.length;)if(tt[ri][0]===Hn){$n=ri;break}if($n===-1)tt.push([Hn,...xn]);else if(xn.length>0){let[Pn,...Br]=xn;const Xr=tt[$n][1];Wo(Xr)&&Wo(Pn)&&(Pn=wo(!0,Xr,Pn)),tt[$n]=[Hn,Pn,...Br]}}}}const uc=new hu().freeze();function Zu(we,He){if(typeof He!="function")throw new TypeError("Cannot `"+we+"` without `parser`")}function cc(we,He){if(typeof He!="function")throw new TypeError("Cannot `"+we+"` without `compiler`")}function dc(we,He){if(He)throw new Error("Cannot call `"+we+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function fu(we){if(!Wo(we)||typeof we.type!="string")throw new TypeError("Expected node, got `"+we+"`")}function Mu(we,He,Qe){if(!Qe)throw new Error("`"+we+"` finished async. Use `"+He+"` instead")}function ld(we){return mh(we)?we:new Ac(we)}function mh(we){return!!(we&&typeof we=="object"&&"message"in we&&"messages"in we)}function vh(we){return typeof we=="string"||yh(we)}function yh(we){return!!(we&&typeof we=="object"&&"byteLength"in we&&"byteOffset"in we)}const Pa="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Pu=[],Uo={allowDangerousHtml:!0},Ka=/^(https?|ircs?|mailto|xmpp)$/i,ss=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ns(we){const He=Lu(we),Qe=ud(we);return cd(He.runSync(He.parse(Qe),Qe),we)}function Qu(we){return Jy(this,null,function*(){const He=Lu(we),Qe=ud(we),tt=yield He.run(He.parse(Qe),Qe);return cd(tt,we)})}function gs(we){const He=Lu(we),[Qe,tt]=useState(void 0),[Et,wt]=useState(void 0);if(useEffect(function(){const Bt=ud(we);He.run(He.parse(Bt),Bt,function(Qt,_n){tt(Qt),wt(_n)})},[we.children,we.rehypePlugins,we.remarkPlugins,we.remarkRehypeOptions]),Qe)throw Qe;return Et?cd(Et,we):createElement(Fragment)}function Lu(we){const He=we.rehypePlugins||Pu,Qe=we.remarkPlugins||Pu,tt=we.remarkRehypeOptions?Mo(Mo({},we.remarkRehypeOptions),Uo):Uo;return uc().use(Ts).use(Qe).use(Io,tt).use(He)}function ud(we){const He=we.children||"",Qe=new Ac;return typeof He=="string"?Qe.value=He:(0,Ie.t1)("Unexpected value `"+He+"` for `children` prop, expected `string`"),Qe}function cd(we,He){const Qe=He.allowedElements,tt=He.allowElement,Et=He.components,wt=He.disallowedElements,Bt=He.skipHtml,Qt=He.unwrapDisallowed,_n=He.urlTransform||_s;for(const xn of ss)Object.hasOwn(He,xn.from)&&(0,Ie.t1)("Unexpected `"+xn.from+"` prop, "+(xn.to?"use `"+xn.to+"` instead":"remove it")+" (see <"+Pa+"#"+xn.id+"> for more info)");return Qe&&wt&&(0,Ie.t1)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),He.className&&(we={type:"element",tagName:"div",properties:{className:He.className},children:we.type==="root"?we.children:[we]}),(0,Rs.Vn)(we,Hn),Tn(we,{Fragment:Ce.Fragment,components:Et,ignoreInvalidStyle:!0,jsx:Ce.jsx,jsxs:Ce.jsxs,passKeys:!0,passNode:!0});function Hn(xn,ri,$n){if(xn.type==="raw"&&$n&&typeof ri=="number")return Bt?$n.children.splice(ri,1):$n.children[ri]={type:"text",value:xn.value},ri;if(xn.type==="element"){let Pn;for(Pn in Me)if(Object.hasOwn(Me,Pn)&&Object.hasOwn(xn.properties,Pn)){const Br=xn.properties[Pn],Xr=Me[Pn];(Xr===null||Xr.includes(xn.tagName))&&(xn.properties[Pn]=_n(String(Br||""),Pn,xn))}}if(xn.type==="element"){let Pn=Qe?!Qe.includes(xn.tagName):wt?wt.includes(xn.tagName):!1;if(!Pn&&tt&&typeof ri=="number"&&(Pn=!tt(xn,ri,$n)),Pn&&$n&&typeof ri=="number")return Qt&&xn.children?$n.children.splice(ri,1,...xn.children):$n.children.splice(ri,1),ri}}}function _s(we){const He=we.indexOf(":"),Qe=we.indexOf("?"),tt=we.indexOf("#"),Et=we.indexOf("/");return He===-1||Et!==-1&&He>Et||Qe!==-1&&He>Qe||tt!==-1&&He>tt||Ka.test(we.slice(0,He))?we:""}},3310:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return _d}});var le={};de.r(le),de.d(le,{boolean:function(){return ot},booleanish:function(){return ht},commaOrSpaceSeparated:function(){return $t},commaSeparated:function(){return It},number:function(){return at},overloadedBoolean:function(){return bt},spaceSeparated:function(){return At}});var Ie=de(90302),De=de(87342),Le=de(81994),Ye=de(14470),Re=de(86825);function Ve(ue){const pe=String(ue),Ze=[];return{toOffset:jn,toPoint:Ot};function Ot(bi){if(typeof bi=="number"&&bi>-1&&bi<=pe.length){let Gi=0;for(;;){let Ur=Ze[Gi];if(Ur===void 0){const no=Je(pe,Ze[Gi-1]);Ur=no===-1?pe.length+1:no+1,Ze[Gi]=Ur}if(Ur>bi)return{line:Gi+1,column:bi-(Gi>0?Ze[Gi-1]:0)+1,offset:bi};Gi++}}}function jn(bi){if(bi&&typeof bi.line=="number"&&typeof bi.column=="number"&&!Number.isNaN(bi.line)&&!Number.isNaN(bi.column)){for(;Ze.length<bi.line;){const Ur=Ze[Ze.length-1],no=Je(pe,Ur),Si=no===-1?pe.length+1:no+1;if(Ur===Si)break;Ze.push(Si)}const Gi=(bi.line>1?Ze[bi.line-2]:0)+bi.column-1;if(Gi<Ze[bi.line-1])return Gi}}}function Je(ue,pe){const Ze=ue.indexOf("\r",pe),Ot=ue.indexOf(`
|
|
|
`,pe);return Ot===-1?Ze:Ze===-1||Ze+1===Ot?Ot:Ze<Ot?Ze:Ot}var Xe=de(43309);const qe={}.hasOwnProperty,mt=Object.prototype;function st(ue,pe){const Ze=pe||{};return Nt({file:Ze.file||void 0,location:!1,schema:Ze.space==="svg"?Ye.YP:Ye.dy,verbose:Ze.verbose||!1},ue)}function Nt(ue,pe){let Ze;switch(pe.nodeName){case"#comment":{const Ot=pe;return Ze={type:"comment",value:Ot.data},ne(ue,Ot,Ze),Ze}case"#document":case"#document-fragment":{const Ot=pe,jn="mode"in Ot?Ot.mode==="quirks"||Ot.mode==="limited-quirks":!1;if(Ze={type:"root",children:_e(ue,pe.childNodes),data:{quirksMode:jn}},ue.file&&ue.location){const bi=String(ue.file),Gi=Ve(bi),Ur=Gi.toPoint(0),no=Gi.toPoint(bi.length);(0,De.ok)(Ur,"expected `start`"),(0,De.ok)(no,"expected `end`"),Ze.position={start:Ur,end:no}}return Ze}case"#documentType":{const Ot=pe;return Ze={type:"doctype"},ne(ue,Ot,Ze),Ze}case"#text":{const Ot=pe;return Ze={type:"text",value:Ot.value},ne(ue,Ot,Ze),Ze}default:return Ze=te(ue,pe),Ze}}function _e(ue,pe){let Ze=-1;const Ot=[];for(;++Ze<pe.length;){const jn=Nt(ue,pe[Ze]);Ot.push(jn)}return Ot}function te(ue,pe){const Ze=ue.schema;ue.schema=pe.namespaceURI===Xe.t.svg?Ye.YP:Ye.dy;let Ot=-1;const jn={};for(;++Ot<pe.attrs.length;){const Ur=pe.attrs[Ot],no=(Ur.prefix?Ur.prefix+":":"")+Ur.name;qe.call(mt,no)||(jn[no]=Ur.value)}const Gi=(ue.schema.space==="svg"?Le.s:Le.h)(pe.tagName,jn,_e(ue,pe.childNodes));if(ne(ue,pe,Gi),Gi.tagName==="template"){const Ur=pe,no=Ur.sourceCodeLocation,Si=no&&no.startTag&&se(no.startTag),vr=no&&no.endTag&&se(no.endTag),lo=Nt(ue,Ur.content);Si&&vr&&ue.file&&(lo.position={start:Si.end,end:vr.start}),Gi.content=lo}return ue.schema=Ze,Gi}function ne(ue,pe,Ze){if("sourceCodeLocation"in pe&&pe.sourceCodeLocation&&ue.file){const Ot=he(ue,Ze,pe.sourceCodeLocation);Ot&&(ue.location=!0,Ze.position=Ot)}}function he(ue,pe,Ze){const Ot=se(Ze);if(pe.type==="element"){const jn=pe.children[pe.children.length-1];if(Ot&&!Ze.endTag&&jn&&jn.position&&jn.position.end&&(Ot.end=Object.assign({},jn.position.end)),ue.verbose){const bi={};let Gi;if(Ze.attrs)for(Gi in Ze.attrs)qe.call(Ze.attrs,Gi)&&(bi[(0,Re.s)(ue.schema,Gi).property]=se(Ze.attrs[Gi]));(0,De.ok)(Ze.startTag,"a start tag should exist");const Ur=se(Ze.startTag),no=Ze.endTag?se(Ze.endTag):void 0,Si={opening:Ur};no&&(Si.closing=no),Si.properties=bi,pe.data={position:Si}}}return Ot}function se(ue){const pe=ge({line:ue.startLine,column:ue.startCol,offset:ue.startOffset}),Ze=ge({line:ue.endLine,column:ue.endCol,offset:ue.endOffset});return pe||Ze?{start:pe,end:Ze}:void 0}function ge(ue){return ue.line&&ue.column?ue:void 0}var Se=de(11630);class Ae{constructor(pe,Ze,Ot){this.property=pe,this.normal=Ze,Ot&&(this.space=Ot)}}Ae.prototype.property={},Ae.prototype.normal={},Ae.prototype.space=null;function Oe(ue,pe){const Ze={},Ot={};let jn=-1;for(;++jn<ue.length;)Object.assign(Ze,ue[jn].property),Object.assign(Ot,ue[jn].normal);return new Ae(Ze,Ot,pe)}function Be(ue){return ue.toLowerCase()}class Ke{constructor(pe,Ze){this.property=pe,this.attribute=Ze}}Ke.prototype.space=null,Ke.prototype.boolean=!1,Ke.prototype.booleanish=!1,Ke.prototype.overloadedBoolean=!1,Ke.prototype.number=!1,Ke.prototype.commaSeparated=!1,Ke.prototype.spaceSeparated=!1,Ke.prototype.commaOrSpaceSeparated=!1,Ke.prototype.mustUseProperty=!1,Ke.prototype.defined=!1;let rt=0;const ot=Tn(),ht=Tn(),bt=Tn(),at=Tn(),At=Tn(),It=Tn(),$t=Tn();function Tn(){return Xy(2,++rt)}const yn=Object.keys(le);class un extends Ke{constructor(pe,Ze,Ot,jn){let bi=-1;if(super(pe,Ze),On(this,"space",jn),typeof Ot=="number")for(;++bi<yn.length;){const Gi=yn[bi];On(this,yn[bi],(Ot&le[Gi])===le[Gi])}}}un.prototype.defined=!0;function On(ue,pe,Ze){Ze&&(ue[pe]=Ze)}const xt={}.hasOwnProperty;function ct(ue){const pe={},Ze={};let Ot;for(Ot in ue.properties)if(xt.call(ue.properties,Ot)){const jn=ue.properties[Ot],bi=new un(Ot,ue.transform(ue.attributes||{},Ot),jn,ue.space);ue.mustUseProperty&&ue.mustUseProperty.includes(Ot)&&(bi.mustUseProperty=!0),pe[Ot]=bi,Ze[Be(Ot)]=Ot,Ze[Be(bi.attribute)]=Ot}return new Ae(pe,Ze,ue.space)}const it=ct({space:"xlink",transform(ue,pe){return"xlink:"+pe.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),cn=ct({space:"xml",transform(ue,pe){return"xml:"+pe.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function An(ue,pe){return pe in ue?ue[pe]:pe}function Pt(ue,pe){return An(ue,pe.toLowerCase())}const an=ct({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Pt,properties:{xmlns:null,xmlnsXLink:null}}),ln=ct({transform(ue,pe){return pe==="role"?pe:"aria-"+pe.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:ht,ariaAutoComplete:null,ariaBusy:ht,ariaChecked:ht,ariaColCount:at,ariaColIndex:at,ariaColSpan:at,ariaControls:At,ariaCurrent:null,ariaDescribedBy:At,ariaDetails:null,ariaDisabled:ht,ariaDropEffect:At,ariaErrorMessage:null,ariaExpanded:ht,ariaFlowTo:At,ariaGrabbed:ht,ariaHasPopup:null,ariaHidden:ht,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:At,ariaLevel:at,ariaLive:null,ariaModal:ht,ariaMultiLine:ht,ariaMultiSelectable:ht,ariaOrientation:null,ariaOwns:At,ariaPlaceholder:null,ariaPosInSet:at,ariaPressed:ht,ariaReadOnly:ht,ariaRelevant:null,ariaRequired:ht,ariaRoleDescription:At,ariaRowCount:at,ariaRowIndex:at,ariaRowSpan:at,ariaSelected:ht,ariaSetSize:at,ariaSort:null,ariaValueMax:at,ariaValueMin:at,ariaValueNow:at,ariaValueText:null,role:null}}),zn=ct({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Pt,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:It,acceptCharset:At,accessKey:At,action:null,allow:null,allowFullScreen:ot,allowPaymentRequest:ot,allowUserMedia:ot,alt:null,as:null,async:ot,autoCapitalize:null,autoComplete:At,autoFocus:ot,autoPlay:ot,blocking:At,capture:null,charSet:null,checked:ot,cite:null,className:At,cols:at,colSpan:null,content:null,contentEditable:ht,controls:ot,controlsList:At,coords:at|It,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ot,defer:ot,dir:null,dirName:null,disabled:ot,download:bt,draggable:ht,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ot,formTarget:null,headers:At,height:at,hidden:ot,high:at,href:null,hrefLang:null,htmlFor:At,httpEquiv:At,id:null,imageSizes:null,imageSrcSet:null,inert:ot,inputMode:null,integrity:null,is:null,isMap:ot,itemId:null,itemProp:At,itemRef:At,itemScope:ot,itemType:At,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ot,low:at,manifest:null,max:null,maxLength:at,media:null,method:null,min:null,minLength:at,multiple:ot,muted:ot,name:null,nonce:null,noModule:ot,noValidate:ot,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ot,optimum:at,pattern:null,ping:At,placeholder:null,playsInline:ot,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ot,referrerPolicy:null,rel:At,required:ot,reversed:ot,rows:at,rowSpan:at,sandbox:At,scope:null,scoped:ot,seamless:ot,selected:ot,shadowRootClonable:ot,shadowRootDelegatesFocus:ot,shadowRootMode:null,shape:null,size:at,sizes:null,slot:null,span:at,spellCheck:ht,src:null,srcDoc:null,srcLang:null,srcSet:null,start:at,step:null,style:null,tabIndex:at,target:null,title:null,translate:null,type:null,typeMustMatch:ot,useMap:null,value:ht,width:at,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:At,axis:null,background:null,bgColor:null,border:at,borderColor:null,bottomMargin:at,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ot,declare:ot,event:null,face:null,frame:null,frameBorder:null,hSpace:at,leftMargin:at,link:null,longDesc:null,lowSrc:null,marginHeight:at,marginWidth:at,noResize:ot,noHref:ot,noShade:ot,noWrap:ot,object:null,profile:null,prompt:null,rev:null,rightMargin:at,rules:null,scheme:null,scrolling:ht,standby:null,summary:null,text:null,topMargin:at,valueType:null,version:null,vAlign:null,vLink:null,vSpace:at,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ot,disableRemotePlayback:ot,prefix:null,property:null,results:at,security:null,unselectable:null}}),En=ct({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:An,properties:{about:$t,accentHeight:at,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:at,amplitude:at,arabicForm:null,ascent:at,attributeName:null,attributeType:null,azimuth:at,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:at,by:null,calcMode:null,capHeight:at,className:At,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:at,diffuseConstant:at,direction:null,display:null,dur:null,divisor:at,dominantBaseline:null,download:ot,dx:null,dy:null,edgeMode:null,editable:null,elevation:at,enableBackground:null,end:null,event:null,exponent:at,externalResourcesRequired:null,fill:null,fillOpacity:at,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:It,g2:It,glyphName:It,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:at,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:at,horizOriginX:at,horizOriginY:at,id:null,ideographic:at,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:at,k:at,k1:at,k2:at,k3:at,k4:at,kernelMatrix:$t,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:at,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:at,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:at,overlineThickness:at,paintOrder:null,panose1:null,path:null,pathLength:at,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:At,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:at,pointsAtY:at,pointsAtZ:at,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:$t,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:$t,rev:$t,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:$t,requiredFeatures:$t,requiredFonts:$t,requiredFormats:$t,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:at,specularExponent:at,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:at,strikethroughThickness:at,string:null,stroke:null,strokeDashArray:$t,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:at,strokeOpacity:at,strokeWidth:null,style:null,surfaceScale:at,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:$t,tabIndex:at,tableValues:null,target:null,targetX:at,targetY:at,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:$t,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:at,underlineThickness:at,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:at,values:null,vAlphabetic:at,vMathematical:at,vectorEffect:null,vHanging:at,vIdeographic:at,version:null,vertAdvY:at,vertOriginX:at,vertOriginY:at,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:at,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),ii=Oe([cn,it,an,ln,zn],"html"),kt=Oe([cn,it,an,ln,En],"svg"),Kn=/^data[-\w.:]+$/i,yi=/-[a-z]/g,et=/[A-Z]/g;function ze(ue,pe){const Ze=Be(pe);let Ot=pe,jn=Ke;if(Ze in ue.normal)return ue.property[ue.normal[Ze]];if(Ze.length>4&&Ze.slice(0,4)==="data"&&Kn.test(pe)){if(pe.charAt(4)==="-"){const bi=pe.slice(5).replace(yi,Te);Ot="data"+bi.charAt(0).toUpperCase()+bi.slice(1)}else{const bi=pe.slice(4);if(!yi.test(bi)){let Gi=bi.replace(et,xe);Gi.charAt(0)!=="-"&&(Gi="-"+Gi),pe="data"+Gi}}jn=un}return new jn(Ot,pe)}function xe(ue){return"-"+ue.toLowerCase()}function Te(ue){return ue.charAt(1).toUpperCase()}var Me=de(71523);const Ce={}.hasOwnProperty;function ut(ue,pe){const Ze=pe||{};function Ot(jn,...bi){let Gi=Ot.invalid;const Ur=Ot.handlers;if(jn&&Ce.call(jn,ue)){const no=String(jn[ue]);Gi=Ce.call(Ur,no)?Ur[no]:Ot.unknown}if(Gi)return Gi.call(this,jn,...bi)}return Ot.handlers=Ze.handlers||{},Ot.invalid=Ze.invalid,Ot.unknown=Ze.unknown,Ot}const Lt={},Mt={}.hasOwnProperty,Yt=ut("type",{handlers:{root:Gt,element:_t,text:fn,comment:sn,doctype:qt}});function Vt(ue,pe){const Ot=(pe||Lt).space;return Yt(ue,Ot==="svg"?kt:ii)}function Gt(ue,pe){const Ze={nodeName:"#document",mode:(ue.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return Ze.childNodes=dn(ue.children,Ze,pe),Sn(ue,Ze),Ze}function gn(ue,pe){const Ze={nodeName:"#document-fragment",childNodes:[]};return Ze.childNodes=dn(ue.children,Ze,pe),Sn(ue,Ze),Ze}function qt(ue){const pe={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Sn(ue,pe),pe}function fn(ue){const pe={nodeName:"#text",value:ue.value,parentNode:null};return Sn(ue,pe),pe}function sn(ue){const pe={nodeName:"#comment",data:ue.value,parentNode:null};return Sn(ue,pe),pe}function _t(ue,pe){const Ze=pe;let Ot=Ze;ue.type==="element"&&ue.tagName.toLowerCase()==="svg"&&Ze.space==="html"&&(Ot=kt);const jn=[];let bi;if(ue.properties){for(bi in ue.properties)if(bi!=="children"&&Mt.call(ue.properties,bi)){const no=wn(Ot,bi,ue.properties[bi]);no&&jn.push(no)}}const Gi=Ot.space;(0,De.ok)(Gi);const Ur={nodeName:ue.tagName,tagName:ue.tagName,attrs:jn,namespaceURI:Xe.t[Gi],childNodes:[],parentNode:null};return Ur.childNodes=dn(ue.children,Ur,Ot),Sn(ue,Ur),ue.tagName==="template"&&ue.content&&(Ur.content=gn(ue.content,Ot)),Ur}function wn(ue,pe,Ze){const Ot=ze(ue,pe);if(Ze===!1||Ze===null||Ze===void 0||typeof Ze=="number"&&Number.isNaN(Ze)||!Ze&&Ot.boolean)return;Array.isArray(Ze)&&(Ze=Ot.commaSeparated?(0,Se.P)(Ze):(0,Me.P)(Ze));const jn={name:Ot.attribute,value:Ze===!0?"":String(Ze)};if(Ot.space&&Ot.space!=="html"&&Ot.space!=="svg"){const bi=jn.name.indexOf(":");bi<0?jn.prefix="":(jn.name=jn.name.slice(bi+1),jn.prefix=Ot.attribute.slice(0,bi)),jn.namespace=Xe.t[Ot.space]}return jn}function dn(ue,pe,Ze){let Ot=-1;const jn=[];if(ue)for(;++Ot<ue.length;){const bi=Yt(ue[Ot],Ze);bi.parentNode=pe,jn.push(bi)}return jn}function Sn(ue,pe){const Ze=ue.position;Ze&&Ze.start&&Ze.end&&((0,De.ok)(typeof Ze.start.offset=="number"),(0,De.ok)(typeof Ze.end.offset=="number"),pe.sourceCodeLocation={startLine:Ze.start.line,startCol:Ze.start.column,startOffset:Ze.start.offset,endLine:Ze.end.line,endCol:Ze.end.column,endOffset:Ze.end.offset})}const nn=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],si=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Fn="\uFFFD";var yt;(function(ue){ue[ue.EOF=-1]="EOF",ue[ue.NULL=0]="NULL",ue[ue.TABULATION=9]="TABULATION",ue[ue.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",ue[ue.LINE_FEED=10]="LINE_FEED",ue[ue.FORM_FEED=12]="FORM_FEED",ue[ue.SPACE=32]="SPACE",ue[ue.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",ue[ue.QUOTATION_MARK=34]="QUOTATION_MARK",ue[ue.AMPERSAND=38]="AMPERSAND",ue[ue.APOSTROPHE=39]="APOSTROPHE",ue[ue.HYPHEN_MINUS=45]="HYPHEN_MINUS",ue[ue.SOLIDUS=47]="SOLIDUS",ue[ue.DIGIT_0=48]="DIGIT_0",ue[ue.DIGIT_9=57]="DIGIT_9",ue[ue.SEMICOLON=59]="SEMICOLON",ue[ue.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",ue[ue.EQUALS_SIGN=61]="EQUALS_SIGN",ue[ue.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",ue[ue.QUESTION_MARK=63]="QUESTION_MARK",ue[ue.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",ue[ue.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",ue[ue.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",ue[ue.GRAVE_ACCENT=96]="GRAVE_ACCENT",ue[ue.LATIN_SMALL_A=97]="LATIN_SMALL_A",ue[ue.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(yt||(yt={}));const kn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Cn(ue){return ue>=55296&&ue<=57343}function Ht(ue){return ue>=56320&&ue<=57343}function di(ue,pe){return(ue-55296)*1024+9216+pe}function zi(ue){return ue!==32&&ue!==10&&ue!==13&&ue!==9&&ue!==12&&ue>=1&&ue<=31||ue>=127&&ue<=159}function Ni(ue){return ue>=64976&&ue<=65007||si.has(ue)}var Ln;(function(ue){ue.controlCharacterInInputStream="control-character-in-input-stream",ue.noncharacterInInputStream="noncharacter-in-input-stream",ue.surrogateInInputStream="surrogate-in-input-stream",ue.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",ue.endTagWithAttributes="end-tag-with-attributes",ue.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",ue.unexpectedSolidusInTag="unexpected-solidus-in-tag",ue.unexpectedNullCharacter="unexpected-null-character",ue.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",ue.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",ue.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",ue.missingEndTagName="missing-end-tag-name",ue.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",ue.unknownNamedCharacterReference="unknown-named-character-reference",ue.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",ue.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",ue.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",ue.eofBeforeTagName="eof-before-tag-name",ue.eofInTag="eof-in-tag",ue.missingAttributeValue="missing-attribute-value",ue.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",ue.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",ue.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",ue.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",ue.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",ue.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",ue.missingDoctypePublicIdentifier="missing-doctype-public-identifier",ue.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",ue.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",ue.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",ue.cdataInHtmlContent="cdata-in-html-content",ue.incorrectlyOpenedComment="incorrectly-opened-comment",ue.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",ue.eofInDoctype="eof-in-doctype",ue.nestedComment="nested-comment",ue.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",ue.eofInComment="eof-in-comment",ue.incorrectlyClosedComment="incorrectly-closed-comment",ue.eofInCdata="eof-in-cdata",ue.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",ue.nullCharacterReference="null-character-reference",ue.surrogateCharacterReference="surrogate-character-reference",ue.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",ue.controlCharacterReference="control-character-reference",ue.noncharacterCharacterReference="noncharacter-character-reference",ue.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",ue.missingDoctypeName="missing-doctype-name",ue.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",ue.duplicateAttribute="duplicate-attribute",ue.nonConformingDoctype="non-conforming-doctype",ue.missingDoctype="missing-doctype",ue.misplacedDoctype="misplaced-doctype",ue.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",ue.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",ue.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",ue.openElementsLeftAfterEof="open-elements-left-after-eof",ue.abandonedHeadElementChild="abandoned-head-element-child",ue.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",ue.nestedNoscriptInHead="nested-noscript-in-head",ue.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(Ln||(Ln={}));const rr=65536;class Hi{constructor(pe){this.handler=pe,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=rr,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(pe,Ze){const{line:Ot,col:jn,offset:bi}=this,Gi=jn+Ze,Ur=bi+Ze;return{code:pe,startLine:Ot,endLine:Ot,startCol:Gi,endCol:Gi,startOffset:Ur,endOffset:Ur}}_err(pe){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(pe,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(pe){if(this.pos!==this.html.length-1){const Ze=this.html.charCodeAt(this.pos+1);if(Ht(Ze))return this.pos++,this._addGap(),di(pe,Ze)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,yt.EOF;return this._err(Ln.surrogateInInputStream),pe}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(pe,Ze){this.html.length>0?this.html+=pe:this.html=pe,this.endOfChunkHit=!1,this.lastChunkWritten=Ze}insertHtmlAtCurrentPos(pe){this.html=this.html.substring(0,this.pos+1)+pe+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(pe,Ze){if(this.pos+pe.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(Ze)return this.html.startsWith(pe,this.pos);for(let Ot=0;Ot<pe.length;Ot++)if((this.html.charCodeAt(this.pos+Ot)|32)!==pe.charCodeAt(Ot))return!1;return!0}peek(pe){const Ze=this.pos+pe;if(Ze>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,yt.EOF;const Ot=this.html.charCodeAt(Ze);return Ot===yt.CARRIAGE_RETURN?yt.LINE_FEED:Ot}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,yt.EOF;let pe=this.html.charCodeAt(this.pos);return pe===yt.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,yt.LINE_FEED):pe===yt.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Cn(pe)&&(pe=this._processSurrogate(pe)),this.handler.onParseError===null||pe>31&&pe<127||pe===yt.LINE_FEED||pe===yt.CARRIAGE_RETURN||pe>159&&pe<64976||this._checkForProblematicCharacters(pe),pe)}_checkForProblematicCharacters(pe){zi(pe)?this._err(Ln.controlCharacterInInputStream):Ni(pe)&&this._err(Ln.noncharacterInInputStream)}retreat(pe){for(this.pos-=pe;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var ui;(function(ue){ue[ue.CHARACTER=0]="CHARACTER",ue[ue.NULL_CHARACTER=1]="NULL_CHARACTER",ue[ue.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",ue[ue.START_TAG=3]="START_TAG",ue[ue.END_TAG=4]="END_TAG",ue[ue.COMMENT=5]="COMMENT",ue[ue.DOCTYPE=6]="DOCTYPE",ue[ue.EOF=7]="EOF",ue[ue.HIBERNATION=8]="HIBERNATION"})(ui||(ui={}));function wi(ue,pe){for(let Ze=ue.attrs.length-1;Ze>=0;Ze--)if(ue.attrs[Ze].name===pe)return ue.attrs[Ze].value;return null}const Di=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(ue=>ue.charCodeAt(0))),ke=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(ue=>ue.charCodeAt(0)));var mi;const ki=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Yn=(mi=String.fromCodePoint)!==null&&mi!==void 0?mi:function(ue){let pe="";return ue>65535&&(ue-=65536,pe+=String.fromCharCode(ue>>>10&1023|55296),ue=56320|ue&1023),pe+=String.fromCharCode(ue),pe};function fi(ue){var pe;return ue>=55296&&ue<=57343||ue>1114111?65533:(pe=ki.get(ue))!==null&&pe!==void 0?pe:ue}function Ai(ue){return Yn(fi(ue))}var xi;(function(ue){ue[ue.NUM=35]="NUM",ue[ue.SEMI=59]="SEMI",ue[ue.EQUALS=61]="EQUALS",ue[ue.ZERO=48]="ZERO",ue[ue.NINE=57]="NINE",ue[ue.LOWER_A=97]="LOWER_A",ue[ue.LOWER_F=102]="LOWER_F",ue[ue.LOWER_X=120]="LOWER_X",ue[ue.LOWER_Z=122]="LOWER_Z",ue[ue.UPPER_A=65]="UPPER_A",ue[ue.UPPER_F=70]="UPPER_F",ue[ue.UPPER_Z=90]="UPPER_Z"})(xi||(xi={}));const hr=32;var er;(function(ue){ue[ue.VALUE_LENGTH=49152]="VALUE_LENGTH",ue[ue.BRANCH_LENGTH=16256]="BRANCH_LENGTH",ue[ue.JUMP_TABLE=127]="JUMP_TABLE"})(er||(er={}));function Kt(ue){return ue>=xi.ZERO&&ue<=xi.NINE}function en(ue){return ue>=xi.UPPER_A&&ue<=xi.UPPER_F||ue>=xi.LOWER_A&&ue<=xi.LOWER_F}function zt(ue){return ue>=xi.UPPER_A&&ue<=xi.UPPER_Z||ue>=xi.LOWER_A&&ue<=xi.LOWER_Z||Kt(ue)}function on(ue){return ue===xi.EQUALS||zt(ue)}var rn;(function(ue){ue[ue.EntityStart=0]="EntityStart",ue[ue.NumericStart=1]="NumericStart",ue[ue.NumericDecimal=2]="NumericDecimal",ue[ue.NumericHex=3]="NumericHex",ue[ue.NamedEntity=4]="NamedEntity"})(rn||(rn={}));var mn;(function(ue){ue[ue.Legacy=0]="Legacy",ue[ue.Strict=1]="Strict",ue[ue.Attribute=2]="Attribute"})(mn||(mn={}));class Bn{constructor(pe,Ze,Ot){this.decodeTree=pe,this.emitCodePoint=Ze,this.errors=Ot,this.state=rn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=mn.Strict}startEntity(pe){this.decodeMode=pe,this.state=rn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(pe,Ze){switch(this.state){case rn.EntityStart:return pe.charCodeAt(Ze)===xi.NUM?(this.state=rn.NumericStart,this.consumed+=1,this.stateNumericStart(pe,Ze+1)):(this.state=rn.NamedEntity,this.stateNamedEntity(pe,Ze));case rn.NumericStart:return this.stateNumericStart(pe,Ze);case rn.NumericDecimal:return this.stateNumericDecimal(pe,Ze);case rn.NumericHex:return this.stateNumericHex(pe,Ze);case rn.NamedEntity:return this.stateNamedEntity(pe,Ze)}}stateNumericStart(pe,Ze){return Ze>=pe.length?-1:(pe.charCodeAt(Ze)|hr)===xi.LOWER_X?(this.state=rn.NumericHex,this.consumed+=1,this.stateNumericHex(pe,Ze+1)):(this.state=rn.NumericDecimal,this.stateNumericDecimal(pe,Ze))}addToNumericResult(pe,Ze,Ot,jn){if(Ze!==Ot){const bi=Ot-Ze;this.result=this.result*Math.pow(jn,bi)+Number.parseInt(pe.substr(Ze,bi),jn),this.consumed+=bi}}stateNumericHex(pe,Ze){const Ot=Ze;for(;Ze<pe.length;){const jn=pe.charCodeAt(Ze);if(Kt(jn)||en(jn))Ze+=1;else return this.addToNumericResult(pe,Ot,Ze,16),this.emitNumericEntity(jn,3)}return this.addToNumericResult(pe,Ot,Ze,16),-1}stateNumericDecimal(pe,Ze){const Ot=Ze;for(;Ze<pe.length;){const jn=pe.charCodeAt(Ze);if(Kt(jn))Ze+=1;else return this.addToNumericResult(pe,Ot,Ze,10),this.emitNumericEntity(jn,2)}return this.addToNumericResult(pe,Ot,Ze,10),-1}emitNumericEntity(pe,Ze){var Ot;if(this.consumed<=Ze)return(Ot=this.errors)===null||Ot===void 0||Ot.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(pe===xi.SEMI)this.consumed+=1;else if(this.decodeMode===mn.Strict)return 0;return this.emitCodePoint(fi(this.result),this.consumed),this.errors&&(pe!==xi.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(pe,Ze){const{decodeTree:Ot}=this;let jn=Ot[this.treeIndex],bi=(jn&er.VALUE_LENGTH)>>14;for(;Ze<pe.length;Ze++,this.excess++){const Gi=pe.charCodeAt(Ze);if(this.treeIndex=ji(Ot,jn,this.treeIndex+Math.max(1,bi),Gi),this.treeIndex<0)return this.result===0||this.decodeMode===mn.Attribute&&(bi===0||on(Gi))?0:this.emitNotTerminatedNamedEntity();if(jn=Ot[this.treeIndex],bi=(jn&er.VALUE_LENGTH)>>14,bi!==0){if(Gi===xi.SEMI)return this.emitNamedEntityData(this.treeIndex,bi,this.consumed+this.excess);this.decodeMode!==mn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var pe;const{result:Ze,decodeTree:Ot}=this,jn=(Ot[Ze]&er.VALUE_LENGTH)>>14;return this.emitNamedEntityData(Ze,jn,this.consumed),(pe=this.errors)===null||pe===void 0||pe.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(pe,Ze,Ot){const{decodeTree:jn}=this;return this.emitCodePoint(Ze===1?jn[pe]&~er.VALUE_LENGTH:jn[pe+1],Ot),Ze===3&&this.emitCodePoint(jn[pe+2],Ot),Ot}end(){var pe;switch(this.state){case rn.NamedEntity:return this.result!==0&&(this.decodeMode!==mn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case rn.NumericDecimal:return this.emitNumericEntity(0,2);case rn.NumericHex:return this.emitNumericEntity(0,3);case rn.NumericStart:return(pe=this.errors)===null||pe===void 0||pe.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case rn.EntityStart:return 0}}}function ei(ue){let pe="";const Ze=new Bn(ue,Ot=>pe+=fromCodePoint(Ot));return function(jn,bi){let Gi=0,Ur=0;for(;(Ur=jn.indexOf("&",Ur))>=0;){pe+=jn.slice(Gi,Ur),Ze.startEntity(bi);const Si=Ze.write(jn,Ur+1);if(Si<0){Gi=Ur+Ze.end();break}Gi=Ur+Si,Ur=Si===0?Gi+1:Gi}const no=pe+jn.slice(Gi);return pe="",no}}function ji(ue,pe,Ze,Ot){const jn=(pe&er.BRANCH_LENGTH)>>7,bi=pe&er.JUMP_TABLE;if(jn===0)return bi!==0&&Ot===bi?Ze:-1;if(bi){const no=Ot-bi;return no<0||no>=jn?-1:ue[Ze+no]-1}let Gi=Ze,Ur=Gi+jn-1;for(;Gi<=Ur;){const no=Gi+Ur>>>1,Si=ue[no];if(Si<Ot)Gi=no+1;else if(Si>Ot)Ur=no-1;else return ue[no+jn]}return-1}const Fi=null,Yi=null;function lt(ue,pe=mn.Legacy){return Fi(ue,pe)}function Ut(ue){return Fi(ue,mn.Attribute)}function oi(ue){return Fi(ue,mn.Strict)}function gi(ue){return Yi(ue,mn.Strict)}var jt;(function(ue){ue.HTML="http://www.w3.org/1999/xhtml",ue.MATHML="http://www.w3.org/1998/Math/MathML",ue.SVG="http://www.w3.org/2000/svg",ue.XLINK="http://www.w3.org/1999/xlink",ue.XML="http://www.w3.org/XML/1998/namespace",ue.XMLNS="http://www.w3.org/2000/xmlns/"})(jt||(jt={}));var Vn;(function(ue){ue.TYPE="type",ue.ACTION="action",ue.ENCODING="encoding",ue.PROMPT="prompt",ue.NAME="name",ue.COLOR="color",ue.FACE="face",ue.SIZE="size"})(Vn||(Vn={}));var ni;(function(ue){ue.NO_QUIRKS="no-quirks",ue.QUIRKS="quirks",ue.LIMITED_QUIRKS="limited-quirks"})(ni||(ni={}));var Zt;(function(ue){ue.A="a",ue.ADDRESS="address",ue.ANNOTATION_XML="annotation-xml",ue.APPLET="applet",ue.AREA="area",ue.ARTICLE="article",ue.ASIDE="aside",ue.B="b",ue.BASE="base",ue.BASEFONT="basefont",ue.BGSOUND="bgsound",ue.BIG="big",ue.BLOCKQUOTE="blockquote",ue.BODY="body",ue.BR="br",ue.BUTTON="button",ue.CAPTION="caption",ue.CENTER="center",ue.CODE="code",ue.COL="col",ue.COLGROUP="colgroup",ue.DD="dd",ue.DESC="desc",ue.DETAILS="details",ue.DIALOG="dialog",ue.DIR="dir",ue.DIV="div",ue.DL="dl",ue.DT="dt",ue.EM="em",ue.EMBED="embed",ue.FIELDSET="fieldset",ue.FIGCAPTION="figcaption",ue.FIGURE="figure",ue.FONT="font",ue.FOOTER="footer",ue.FOREIGN_OBJECT="foreignObject",ue.FORM="form",ue.FRAME="frame",ue.FRAMESET="frameset",ue.H1="h1",ue.H2="h2",ue.H3="h3",ue.H4="h4",ue.H5="h5",ue.H6="h6",ue.HEAD="head",ue.HEADER="header",ue.HGROUP="hgroup",ue.HR="hr",ue.HTML="html",ue.I="i",ue.IMG="img",ue.IMAGE="image",ue.INPUT="input",ue.IFRAME="iframe",ue.KEYGEN="keygen",ue.LABEL="label",ue.LI="li",ue.LINK="link",ue.LISTING="listing",ue.MAIN="main",ue.MALIGNMARK="malignmark",ue.MARQUEE="marquee",ue.MATH="math",ue.MENU="menu",ue.META="meta",ue.MGLYPH="mglyph",ue.MI="mi",ue.MO="mo",ue.MN="mn",ue.MS="ms",ue.MTEXT="mtext",ue.NAV="nav",ue.NOBR="nobr",ue.NOFRAMES="noframes",ue.NOEMBED="noembed",ue.NOSCRIPT="noscript",ue.OBJECT="object",ue.OL="ol",ue.OPTGROUP="optgroup",ue.OPTION="option",ue.P="p",ue.PARAM="param",ue.PLAINTEXT="plaintext",ue.PRE="pre",ue.RB="rb",ue.RP="rp",ue.RT="rt",ue.RTC="rtc",ue.RUBY="ruby",ue.S="s",ue.SCRIPT="script",ue.SEARCH="search",ue.SECTION="section",ue.SELECT="select",ue.SOURCE="source",ue.SMALL="small",ue.SPAN="span",ue.STRIKE="strike",ue.STRONG="strong",ue.STYLE="style",ue.SUB="sub",ue.SUMMARY="summary",ue.SUP="sup",ue.TABLE="table",ue.TBODY="tbody",ue.TEMPLATE="template",ue.TEXTAREA="textarea",ue.TFOOT="tfoot",ue.TD="td",ue.TH="th",ue.THEAD="thead",ue.TITLE="title",ue.TR="tr",ue.TRACK="track",ue.TT="tt",ue.U="u",ue.UL="ul",ue.SVG="svg",ue.VAR="var",ue.WBR="wbr",ue.XMP="xmp"})(Zt||(Zt={}));var je;(function(ue){ue[ue.UNKNOWN=0]="UNKNOWN",ue[ue.A=1]="A",ue[ue.ADDRESS=2]="ADDRESS",ue[ue.ANNOTATION_XML=3]="ANNOTATION_XML",ue[ue.APPLET=4]="APPLET",ue[ue.AREA=5]="AREA",ue[ue.ARTICLE=6]="ARTICLE",ue[ue.ASIDE=7]="ASIDE",ue[ue.B=8]="B",ue[ue.BASE=9]="BASE",ue[ue.BASEFONT=10]="BASEFONT",ue[ue.BGSOUND=11]="BGSOUND",ue[ue.BIG=12]="BIG",ue[ue.BLOCKQUOTE=13]="BLOCKQUOTE",ue[ue.BODY=14]="BODY",ue[ue.BR=15]="BR",ue[ue.BUTTON=16]="BUTTON",ue[ue.CAPTION=17]="CAPTION",ue[ue.CENTER=18]="CENTER",ue[ue.CODE=19]="CODE",ue[ue.COL=20]="COL",ue[ue.COLGROUP=21]="COLGROUP",ue[ue.DD=22]="DD",ue[ue.DESC=23]="DESC",ue[ue.DETAILS=24]="DETAILS",ue[ue.DIALOG=25]="DIALOG",ue[ue.DIR=26]="DIR",ue[ue.DIV=27]="DIV",ue[ue.DL=28]="DL",ue[ue.DT=29]="DT",ue[ue.EM=30]="EM",ue[ue.EMBED=31]="EMBED",ue[ue.FIELDSET=32]="FIELDSET",ue[ue.FIGCAPTION=33]="FIGCAPTION",ue[ue.FIGURE=34]="FIGURE",ue[ue.FONT=35]="FONT",ue[ue.FOOTER=36]="FOOTER",ue[ue.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",ue[ue.FORM=38]="FORM",ue[ue.FRAME=39]="FRAME",ue[ue.FRAMESET=40]="FRAMESET",ue[ue.H1=41]="H1",ue[ue.H2=42]="H2",ue[ue.H3=43]="H3",ue[ue.H4=44]="H4",ue[ue.H5=45]="H5",ue[ue.H6=46]="H6",ue[ue.HEAD=47]="HEAD",ue[ue.HEADER=48]="HEADER",ue[ue.HGROUP=49]="HGROUP",ue[ue.HR=50]="HR",ue[ue.HTML=51]="HTML",ue[ue.I=52]="I",ue[ue.IMG=53]="IMG",ue[ue.IMAGE=54]="IMAGE",ue[ue.INPUT=55]="INPUT",ue[ue.IFRAME=56]="IFRAME",ue[ue.KEYGEN=57]="KEYGEN",ue[ue.LABEL=58]="LABEL",ue[ue.LI=59]="LI",ue[ue.LINK=60]="LINK",ue[ue.LISTING=61]="LISTING",ue[ue.MAIN=62]="MAIN",ue[ue.MALIGNMARK=63]="MALIGNMARK",ue[ue.MARQUEE=64]="MARQUEE",ue[ue.MATH=65]="MATH",ue[ue.MENU=66]="MENU",ue[ue.META=67]="META",ue[ue.MGLYPH=68]="MGLYPH",ue[ue.MI=69]="MI",ue[ue.MO=70]="MO",ue[ue.MN=71]="MN",ue[ue.MS=72]="MS",ue[ue.MTEXT=73]="MTEXT",ue[ue.NAV=74]="NAV",ue[ue.NOBR=75]="NOBR",ue[ue.NOFRAMES=76]="NOFRAMES",ue[ue.NOEMBED=77]="NOEMBED",ue[ue.NOSCRIPT=78]="NOSCRIPT",ue[ue.OBJECT=79]="OBJECT",ue[ue.OL=80]="OL",ue[ue.OPTGROUP=81]="OPTGROUP",ue[ue.OPTION=82]="OPTION",ue[ue.P=83]="P",ue[ue.PARAM=84]="PARAM",ue[ue.PLAINTEXT=85]="PLAINTEXT",ue[ue.PRE=86]="PRE",ue[ue.RB=87]="RB",ue[ue.RP=88]="RP",ue[ue.RT=89]="RT",ue[ue.RTC=90]="RTC",ue[ue.RUBY=91]="RUBY",ue[ue.S=92]="S",ue[ue.SCRIPT=93]="SCRIPT",ue[ue.SEARCH=94]="SEARCH",ue[ue.SECTION=95]="SECTION",ue[ue.SELECT=96]="SELECT",ue[ue.SOURCE=97]="SOURCE",ue[ue.SMALL=98]="SMALL",ue[ue.SPAN=99]="SPAN",ue[ue.STRIKE=100]="STRIKE",ue[ue.STRONG=101]="STRONG",ue[ue.STYLE=102]="STYLE",ue[ue.SUB=103]="SUB",ue[ue.SUMMARY=104]="SUMMARY",ue[ue.SUP=105]="SUP",ue[ue.TABLE=106]="TABLE",ue[ue.TBODY=107]="TBODY",ue[ue.TEMPLATE=108]="TEMPLATE",ue[ue.TEXTAREA=109]="TEXTAREA",ue[ue.TFOOT=110]="TFOOT",ue[ue.TD=111]="TD",ue[ue.TH=112]="TH",ue[ue.THEAD=113]="THEAD",ue[ue.TITLE=114]="TITLE",ue[ue.TR=115]="TR",ue[ue.TRACK=116]="TRACK",ue[ue.TT=117]="TT",ue[ue.U=118]="U",ue[ue.UL=119]="UL",ue[ue.SVG=120]="SVG",ue[ue.VAR=121]="VAR",ue[ue.WBR=122]="WBR",ue[ue.XMP=123]="XMP"})(je||(je={}));const ci=new Map([[Zt.A,je.A],[Zt.ADDRESS,je.ADDRESS],[Zt.ANNOTATION_XML,je.ANNOTATION_XML],[Zt.APPLET,je.APPLET],[Zt.AREA,je.AREA],[Zt.ARTICLE,je.ARTICLE],[Zt.ASIDE,je.ASIDE],[Zt.B,je.B],[Zt.BASE,je.BASE],[Zt.BASEFONT,je.BASEFONT],[Zt.BGSOUND,je.BGSOUND],[Zt.BIG,je.BIG],[Zt.BLOCKQUOTE,je.BLOCKQUOTE],[Zt.BODY,je.BODY],[Zt.BR,je.BR],[Zt.BUTTON,je.BUTTON],[Zt.CAPTION,je.CAPTION],[Zt.CENTER,je.CENTER],[Zt.CODE,je.CODE],[Zt.COL,je.COL],[Zt.COLGROUP,je.COLGROUP],[Zt.DD,je.DD],[Zt.DESC,je.DESC],[Zt.DETAILS,je.DETAILS],[Zt.DIALOG,je.DIALOG],[Zt.DIR,je.DIR],[Zt.DIV,je.DIV],[Zt.DL,je.DL],[Zt.DT,je.DT],[Zt.EM,je.EM],[Zt.EMBED,je.EMBED],[Zt.FIELDSET,je.FIELDSET],[Zt.FIGCAPTION,je.FIGCAPTION],[Zt.FIGURE,je.FIGURE],[Zt.FONT,je.FONT],[Zt.FOOTER,je.FOOTER],[Zt.FOREIGN_OBJECT,je.FOREIGN_OBJECT],[Zt.FORM,je.FORM],[Zt.FRAME,je.FRAME],[Zt.FRAMESET,je.FRAMESET],[Zt.H1,je.H1],[Zt.H2,je.H2],[Zt.H3,je.H3],[Zt.H4,je.H4],[Zt.H5,je.H5],[Zt.H6,je.H6],[Zt.HEAD,je.HEAD],[Zt.HEADER,je.HEADER],[Zt.HGROUP,je.HGROUP],[Zt.HR,je.HR],[Zt.HTML,je.HTML],[Zt.I,je.I],[Zt.IMG,je.IMG],[Zt.IMAGE,je.IMAGE],[Zt.INPUT,je.INPUT],[Zt.IFRAME,je.IFRAME],[Zt.KEYGEN,je.KEYGEN],[Zt.LABEL,je.LABEL],[Zt.LI,je.LI],[Zt.LINK,je.LINK],[Zt.LISTING,je.LISTING],[Zt.MAIN,je.MAIN],[Zt.MALIGNMARK,je.MALIGNMARK],[Zt.MARQUEE,je.MARQUEE],[Zt.MATH,je.MATH],[Zt.MENU,je.MENU],[Zt.META,je.META],[Zt.MGLYPH,je.MGLYPH],[Zt.MI,je.MI],[Zt.MO,je.MO],[Zt.MN,je.MN],[Zt.MS,je.MS],[Zt.MTEXT,je.MTEXT],[Zt.NAV,je.NAV],[Zt.NOBR,je.NOBR],[Zt.NOFRAMES,je.NOFRAMES],[Zt.NOEMBED,je.NOEMBED],[Zt.NOSCRIPT,je.NOSCRIPT],[Zt.OBJECT,je.OBJECT],[Zt.OL,je.OL],[Zt.OPTGROUP,je.OPTGROUP],[Zt.OPTION,je.OPTION],[Zt.P,je.P],[Zt.PARAM,je.PARAM],[Zt.PLAINTEXT,je.PLAINTEXT],[Zt.PRE,je.PRE],[Zt.RB,je.RB],[Zt.RP,je.RP],[Zt.RT,je.RT],[Zt.RTC,je.RTC],[Zt.RUBY,je.RUBY],[Zt.S,je.S],[Zt.SCRIPT,je.SCRIPT],[Zt.SEARCH,je.SEARCH],[Zt.SECTION,je.SECTION],[Zt.SELECT,je.SELECT],[Zt.SOURCE,je.SOURCE],[Zt.SMALL,je.SMALL],[Zt.SPAN,je.SPAN],[Zt.STRIKE,je.STRIKE],[Zt.STRONG,je.STRONG],[Zt.STYLE,je.STYLE],[Zt.SUB,je.SUB],[Zt.SUMMARY,je.SUMMARY],[Zt.SUP,je.SUP],[Zt.TABLE,je.TABLE],[Zt.TBODY,je.TBODY],[Zt.TEMPLATE,je.TEMPLATE],[Zt.TEXTAREA,je.TEXTAREA],[Zt.TFOOT,je.TFOOT],[Zt.TD,je.TD],[Zt.TH,je.TH],[Zt.THEAD,je.THEAD],[Zt.TITLE,je.TITLE],[Zt.TR,je.TR],[Zt.TRACK,je.TRACK],[Zt.TT,je.TT],[Zt.U,je.U],[Zt.UL,je.UL],[Zt.SVG,je.SVG],[Zt.VAR,je.VAR],[Zt.WBR,je.WBR],[Zt.XMP,je.XMP]]);function pi(ue){var pe;return(pe=ci.get(ue))!==null&&pe!==void 0?pe:je.UNKNOWN}const bn=je,Ki={[jt.HTML]:new Set([bn.ADDRESS,bn.APPLET,bn.AREA,bn.ARTICLE,bn.ASIDE,bn.BASE,bn.BASEFONT,bn.BGSOUND,bn.BLOCKQUOTE,bn.BODY,bn.BR,bn.BUTTON,bn.CAPTION,bn.CENTER,bn.COL,bn.COLGROUP,bn.DD,bn.DETAILS,bn.DIR,bn.DIV,bn.DL,bn.DT,bn.EMBED,bn.FIELDSET,bn.FIGCAPTION,bn.FIGURE,bn.FOOTER,bn.FORM,bn.FRAME,bn.FRAMESET,bn.H1,bn.H2,bn.H3,bn.H4,bn.H5,bn.H6,bn.HEAD,bn.HEADER,bn.HGROUP,bn.HR,bn.HTML,bn.IFRAME,bn.IMG,bn.INPUT,bn.LI,bn.LINK,bn.LISTING,bn.MAIN,bn.MARQUEE,bn.MENU,bn.META,bn.NAV,bn.NOEMBED,bn.NOFRAMES,bn.NOSCRIPT,bn.OBJECT,bn.OL,bn.P,bn.PARAM,bn.PLAINTEXT,bn.PRE,bn.SCRIPT,bn.SECTION,bn.SELECT,bn.SOURCE,bn.STYLE,bn.SUMMARY,bn.TABLE,bn.TBODY,bn.TD,bn.TEMPLATE,bn.TEXTAREA,bn.TFOOT,bn.TH,bn.THEAD,bn.TITLE,bn.TR,bn.TRACK,bn.UL,bn.WBR,bn.XMP]),[jt.MATHML]:new Set([bn.MI,bn.MO,bn.MN,bn.MS,bn.MTEXT,bn.ANNOTATION_XML]),[jt.SVG]:new Set([bn.TITLE,bn.FOREIGN_OBJECT,bn.DESC]),[jt.XLINK]:new Set,[jt.XML]:new Set,[jt.XMLNS]:new Set},Ui=new Set([bn.H1,bn.H2,bn.H3,bn.H4,bn.H5,bn.H6]),Wi=new Set([Zt.STYLE,Zt.SCRIPT,Zt.XMP,Zt.IFRAME,Zt.NOEMBED,Zt.NOFRAMES,Zt.PLAINTEXT]);function vn(ue,pe){return Wi.has(ue)||pe&&ue===Zt.NOSCRIPT}var Wt;(function(ue){ue[ue.DATA=0]="DATA",ue[ue.RCDATA=1]="RCDATA",ue[ue.RAWTEXT=2]="RAWTEXT",ue[ue.SCRIPT_DATA=3]="SCRIPT_DATA",ue[ue.PLAINTEXT=4]="PLAINTEXT",ue[ue.TAG_OPEN=5]="TAG_OPEN",ue[ue.END_TAG_OPEN=6]="END_TAG_OPEN",ue[ue.TAG_NAME=7]="TAG_NAME",ue[ue.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",ue[ue.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",ue[ue.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",ue[ue.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",ue[ue.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",ue[ue.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",ue[ue.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",ue[ue.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",ue[ue.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",ue[ue.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",ue[ue.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",ue[ue.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",ue[ue.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",ue[ue.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",ue[ue.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",ue[ue.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",ue[ue.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",ue[ue.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",ue[ue.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",ue[ue.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",ue[ue.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",ue[ue.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",ue[ue.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",ue[ue.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",ue[ue.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",ue[ue.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",ue[ue.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",ue[ue.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",ue[ue.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",ue[ue.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",ue[ue.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",ue[ue.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",ue[ue.BOGUS_COMMENT=40]="BOGUS_COMMENT",ue[ue.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",ue[ue.COMMENT_START=42]="COMMENT_START",ue[ue.COMMENT_START_DASH=43]="COMMENT_START_DASH",ue[ue.COMMENT=44]="COMMENT",ue[ue.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",ue[ue.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",ue[ue.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",ue[ue.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",ue[ue.COMMENT_END_DASH=49]="COMMENT_END_DASH",ue[ue.COMMENT_END=50]="COMMENT_END",ue[ue.COMMENT_END_BANG=51]="COMMENT_END_BANG",ue[ue.DOCTYPE=52]="DOCTYPE",ue[ue.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",ue[ue.DOCTYPE_NAME=54]="DOCTYPE_NAME",ue[ue.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",ue[ue.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",ue[ue.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",ue[ue.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",ue[ue.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",ue[ue.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",ue[ue.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",ue[ue.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",ue[ue.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",ue[ue.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",ue[ue.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",ue[ue.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",ue[ue.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",ue[ue.CDATA_SECTION=68]="CDATA_SECTION",ue[ue.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",ue[ue.CDATA_SECTION_END=70]="CDATA_SECTION_END",ue[ue.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",ue[ue.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(Wt||(Wt={}));const ar={DATA:Wt.DATA,RCDATA:Wt.RCDATA,RAWTEXT:Wt.RAWTEXT,SCRIPT_DATA:Wt.SCRIPT_DATA,PLAINTEXT:Wt.PLAINTEXT,CDATA_SECTION:Wt.CDATA_SECTION};function Zr(ue){return ue>=yt.DIGIT_0&&ue<=yt.DIGIT_9}function Mn(ue){return ue>=yt.LATIN_CAPITAL_A&&ue<=yt.LATIN_CAPITAL_Z}function hi(ue){return ue>=yt.LATIN_SMALL_A&&ue<=yt.LATIN_SMALL_Z}function Pi(ue){return hi(ue)||Mn(ue)}function Li(ue){return Pi(ue)||Zr(ue)}function Ri(ue){return ue+32}function sr(ue){return ue===yt.SPACE||ue===yt.LINE_FEED||ue===yt.TABULATION||ue===yt.FORM_FEED}function gr(ue){return sr(ue)||ue===yt.SOLIDUS||ue===yt.GREATER_THAN_SIGN}function Tr(ue){return ue===yt.NULL?Ln.nullCharacterReference:ue>1114111?Ln.characterReferenceOutsideUnicodeRange:Cn(ue)?Ln.surrogateCharacterReference:Ni(ue)?Ln.noncharacterCharacterReference:zi(ue)||ue===yt.CARRIAGE_RETURN?Ln.controlCharacterReference:null}class Ar{constructor(pe,Ze){this.options=pe,this.handler=Ze,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=Wt.DATA,this.returnState=Wt.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Hi(Ze),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Bn(Di,(Ot,jn)=>{this.preprocessor.pos=this.entityStartPos+jn-1,this._flushCodePointConsumedAsCharacterReference(Ot)},Ze.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Ln.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:Ot=>{this._err(Ln.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+Ot)},validateNumericCharacterReference:Ot=>{const jn=Tr(Ot);jn&&this._err(jn,1)}}:void 0)}_err(pe,Ze=0){var Ot,jn;(jn=(Ot=this.handler).onParseError)===null||jn===void 0||jn.call(Ot,this.preprocessor.getError(pe,Ze))}getCurrentLocation(pe){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-pe,startOffset:this.preprocessor.offset-pe,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const pe=this._consume();this._ensureHibernation()||this._callState(pe)}this.inLoop=!1}}pause(){this.paused=!0}resume(pe){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||pe==null||pe())}write(pe,Ze,Ot){this.active=!0,this.preprocessor.write(pe,Ze),this._runParsingLoop(),this.paused||Ot==null||Ot()}insertHtmlAtCurrentPos(pe){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(pe),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(pe){this.consumedAfterSnapshot+=pe;for(let Ze=0;Ze<pe;Ze++)this.preprocessor.advance()}_consumeSequenceIfMatch(pe,Ze){return this.preprocessor.startsWith(pe,Ze)?(this._advanceBy(pe.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:ui.START_TAG,tagName:"",tagID:je.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:ui.END_TAG,tagName:"",tagID:je.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(pe){this.currentToken={type:ui.COMMENT,data:"",location:this.getCurrentLocation(pe)}}_createDoctypeToken(pe){this.currentToken={type:ui.DOCTYPE,name:pe,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(pe,Ze){this.currentCharacterToken={type:pe,chars:Ze,location:this.currentLocation}}_createAttr(pe){this.currentAttr={name:pe,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var pe,Ze;const Ot=this.currentToken;if(wi(Ot,this.currentAttr.name)===null){if(Ot.attrs.push(this.currentAttr),Ot.location&&this.currentLocation){const jn=(pe=(Ze=Ot.location).attrs)!==null&&pe!==void 0?pe:Ze.attrs=Object.create(null);jn[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(Ln.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(pe){this._emitCurrentCharacterToken(pe.location),this.currentToken=null,pe.location&&(pe.location.endLine=this.preprocessor.line,pe.location.endCol=this.preprocessor.col+1,pe.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const pe=this.currentToken;this.prepareToken(pe),pe.tagID=pi(pe.tagName),pe.type===ui.START_TAG?(this.lastStartTagName=pe.tagName,this.handler.onStartTag(pe)):(pe.attrs.length>0&&this._err(Ln.endTagWithAttributes),pe.selfClosing&&this._err(Ln.endTagWithTrailingSolidus),this.handler.onEndTag(pe)),this.preprocessor.dropParsedChunk()}emitCurrentComment(pe){this.prepareToken(pe),this.handler.onComment(pe),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(pe){this.prepareToken(pe),this.handler.onDoctype(pe),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(pe){if(this.currentCharacterToken){switch(pe&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=pe.startLine,this.currentCharacterToken.location.endCol=pe.startCol,this.currentCharacterToken.location.endOffset=pe.startOffset),this.currentCharacterToken.type){case ui.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case ui.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case ui.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const pe=this.getCurrentLocation(0);pe&&(pe.endLine=pe.startLine,pe.endCol=pe.startCol,pe.endOffset=pe.startOffset),this._emitCurrentCharacterToken(pe),this.handler.onEof({type:ui.EOF,location:pe}),this.active=!1}_appendCharToCurrentCharacterToken(pe,Ze){if(this.currentCharacterToken)if(this.currentCharacterToken.type===pe){this.currentCharacterToken.chars+=Ze;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(pe,Ze)}_emitCodePoint(pe){const Ze=sr(pe)?ui.WHITESPACE_CHARACTER:pe===yt.NULL?ui.NULL_CHARACTER:ui.CHARACTER;this._appendCharToCurrentCharacterToken(Ze,String.fromCodePoint(pe))}_emitChars(pe){this._appendCharToCurrentCharacterToken(ui.CHARACTER,pe)}_startCharacterReference(){this.returnState=this.state,this.state=Wt.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?mn.Attribute:mn.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===Wt.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Wt.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Wt.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(pe){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(pe):this._emitCodePoint(pe)}_callState(pe){switch(this.state){case Wt.DATA:{this._stateData(pe);break}case Wt.RCDATA:{this._stateRcdata(pe);break}case Wt.RAWTEXT:{this._stateRawtext(pe);break}case Wt.SCRIPT_DATA:{this._stateScriptData(pe);break}case Wt.PLAINTEXT:{this._statePlaintext(pe);break}case Wt.TAG_OPEN:{this._stateTagOpen(pe);break}case Wt.END_TAG_OPEN:{this._stateEndTagOpen(pe);break}case Wt.TAG_NAME:{this._stateTagName(pe);break}case Wt.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(pe);break}case Wt.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(pe);break}case Wt.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(pe);break}case Wt.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(pe);break}case Wt.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(pe);break}case Wt.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(pe);break}case Wt.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(pe);break}case Wt.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(pe);break}case Wt.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(pe);break}case Wt.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(pe);break}case Wt.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(pe);break}case Wt.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(pe);break}case Wt.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(pe);break}case Wt.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(pe);break}case Wt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(pe);break}case Wt.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(pe);break}case Wt.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(pe);break}case Wt.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(pe);break}case Wt.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(pe);break}case Wt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(pe);break}case Wt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(pe);break}case Wt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(pe);break}case Wt.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(pe);break}case Wt.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(pe);break}case Wt.ATTRIBUTE_NAME:{this._stateAttributeName(pe);break}case Wt.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(pe);break}case Wt.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(pe);break}case Wt.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(pe);break}case Wt.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(pe);break}case Wt.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(pe);break}case Wt.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(pe);break}case Wt.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(pe);break}case Wt.BOGUS_COMMENT:{this._stateBogusComment(pe);break}case Wt.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(pe);break}case Wt.COMMENT_START:{this._stateCommentStart(pe);break}case Wt.COMMENT_START_DASH:{this._stateCommentStartDash(pe);break}case Wt.COMMENT:{this._stateComment(pe);break}case Wt.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(pe);break}case Wt.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(pe);break}case Wt.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(pe);break}case Wt.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(pe);break}case Wt.COMMENT_END_DASH:{this._stateCommentEndDash(pe);break}case Wt.COMMENT_END:{this._stateCommentEnd(pe);break}case Wt.COMMENT_END_BANG:{this._stateCommentEndBang(pe);break}case Wt.DOCTYPE:{this._stateDoctype(pe);break}case Wt.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(pe);break}case Wt.DOCTYPE_NAME:{this._stateDoctypeName(pe);break}case Wt.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(pe);break}case Wt.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(pe);break}case Wt.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(pe);break}case Wt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(pe);break}case Wt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(pe);break}case Wt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(pe);break}case Wt.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(pe);break}case Wt.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(pe);break}case Wt.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(pe);break}case Wt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(pe);break}case Wt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(pe);break}case Wt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(pe);break}case Wt.BOGUS_DOCTYPE:{this._stateBogusDoctype(pe);break}case Wt.CDATA_SECTION:{this._stateCdataSection(pe);break}case Wt.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(pe);break}case Wt.CDATA_SECTION_END:{this._stateCdataSectionEnd(pe);break}case Wt.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case Wt.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(pe);break}default:throw new Error("Unknown state")}}_stateData(pe){switch(pe){case yt.LESS_THAN_SIGN:{this.state=Wt.TAG_OPEN;break}case yt.AMPERSAND:{this._startCharacterReference();break}case yt.NULL:{this._err(Ln.unexpectedNullCharacter),this._emitCodePoint(pe);break}case yt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(pe)}}_stateRcdata(pe){switch(pe){case yt.AMPERSAND:{this._startCharacterReference();break}case yt.LESS_THAN_SIGN:{this.state=Wt.RCDATA_LESS_THAN_SIGN;break}case yt.NULL:{this._err(Ln.unexpectedNullCharacter),this._emitChars(Fn);break}case yt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(pe)}}_stateRawtext(pe){switch(pe){case yt.LESS_THAN_SIGN:{this.state=Wt.RAWTEXT_LESS_THAN_SIGN;break}case yt.NULL:{this._err(Ln.unexpectedNullCharacter),this._emitChars(Fn);break}case yt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(pe)}}_stateScriptData(pe){switch(pe){case yt.LESS_THAN_SIGN:{this.state=Wt.SCRIPT_DATA_LESS_THAN_SIGN;break}case yt.NULL:{this._err(Ln.unexpectedNullCharacter),this._emitChars(Fn);break}case yt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(pe)}}_statePlaintext(pe){switch(pe){case yt.NULL:{this._err(Ln.unexpectedNullCharacter),this._emitChars(Fn);break}case yt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(pe)}}_stateTagOpen(pe){if(Pi(pe))this._createStartTagToken(),this.state=Wt.TAG_NAME,this._stateTagName(pe);else switch(pe){case yt.EXCLAMATION_MARK:{this.state=Wt.MARKUP_DECLARATION_OPEN;break}case yt.SOLIDUS:{this.state=Wt.END_TAG_OPEN;break}case yt.QUESTION_MARK:{this._err(Ln.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Wt.BOGUS_COMMENT,this._stateBogusComment(pe);break}case yt.EOF:{this._err(Ln.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Ln.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=Wt.DATA,this._stateData(pe)}}_stateEndTagOpen(pe){if(Pi(pe))this._createEndTagToken(),this.state=Wt.TAG_NAME,this._stateTagName(pe);else switch(pe){case yt.GREATER_THAN_SIGN:{this._err(Ln.missingEndTagName),this.state=Wt.DATA;break}case yt.EOF:{this._err(Ln.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Ln.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=Wt.BOGUS_COMMENT,this._stateBogusComment(pe)}}_stateTagName(pe){const Ze=this.currentToken;switch(pe){case yt.SPACE:case yt.LINE_FEED:case yt.TABULATION:case yt.FORM_FEED:{this.state=Wt.BEFORE_ATTRIBUTE_NAME;break}case yt.SOLIDUS:{this.state=Wt.SELF_CLOSING_START_TAG;break}case yt.GREATER_THAN_SIGN:{this.state=Wt.DATA,this.emitCurrentTagToken();break}case yt.NULL:{this._err(Ln.unexpectedNullCharacter),Ze.tagName+=Fn;break}case yt.EOF:{this._err(Ln.eofInTag),this._emitEOFToken();break}default:Ze.tagName+=String.fromCodePoint(Mn(pe)?Ri(pe):pe)}}_stateRcdataLessThanSign(pe){pe===yt.SOLIDUS?this.state=Wt.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=Wt.RCDATA,this._stateRcdata(pe))}_stateRcdataEndTagOpen(pe){Pi(pe)?(this.state=Wt.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(pe)):(this._emitChars("</"),this.state=Wt.RCDATA,this._stateRcdata(pe))}handleSpecialEndTag(pe){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const Ze=this.currentToken;switch(Ze.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case yt.SPACE:case yt.LINE_FEED:case yt.TABULATION:case yt.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=Wt.BEFORE_ATTRIBUTE_NAME,!1;case yt.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=Wt.SELF_CLOSING_START_TAG,!1;case yt.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=Wt.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(pe){this.handleSpecialEndTag(pe)&&(this._emitChars("</"),this.state=Wt.RCDATA,this._stateRcdata(pe))}_stateRawtextLessThanSign(pe){pe===yt.SOLIDUS?this.state=Wt.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=Wt.RAWTEXT,this._stateRawtext(pe))}_stateRawtextEndTagOpen(pe){Pi(pe)?(this.state=Wt.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(pe)):(this._emitChars("</"),this.state=Wt.RAWTEXT,this._stateRawtext(pe))}_stateRawtextEndTagName(pe){this.handleSpecialEndTag(pe)&&(this._emitChars("</"),this.state=Wt.RAWTEXT,this._stateRawtext(pe))}_stateScriptDataLessThanSign(pe){switch(pe){case yt.SOLIDUS:{this.state=Wt.SCRIPT_DATA_END_TAG_OPEN;break}case yt.EXCLAMATION_MARK:{this.state=Wt.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=Wt.SCRIPT_DATA,this._stateScriptData(pe)}}_stateScriptDataEndTagOpen(pe){Pi(pe)?(this.state=Wt.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(pe)):(this._emitChars("</"),this.state=Wt.SCRIPT_DATA,this._stateScriptData(pe))}_stateScriptDataEndTagName(pe){this.handleSpecialEndTag(pe)&&(this._emitChars("</"),this.state=Wt.SCRIPT_DATA,this._stateScriptData(pe))}_stateScriptDataEscapeStart(pe){pe===yt.HYPHEN_MINUS?(this.state=Wt.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=Wt.SCRIPT_DATA,this._stateScriptData(pe))}_stateScriptDataEscapeStartDash(pe){pe===yt.HYPHEN_MINUS?(this.state=Wt.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=Wt.SCRIPT_DATA,this._stateScriptData(pe))}_stateScriptDataEscaped(pe){switch(pe){case yt.HYPHEN_MINUS:{this.state=Wt.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case yt.LESS_THAN_SIGN:{this.state=Wt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case yt.NULL:{this._err(Ln.unexpectedNullCharacter),this._emitChars(Fn);break}case yt.EOF:{this._err(Ln.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(pe)}}_stateScriptDataEscapedDash(pe){switch(pe){case yt.HYPHEN_MINUS:{this.state=Wt.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case yt.LESS_THAN_SIGN:{this.state=Wt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case yt.NULL:{this._err(Ln.unexpectedNullCharacter),this.state=Wt.SCRIPT_DATA_ESCAPED,this._emitChars(Fn);break}case yt.EOF:{this._err(Ln.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Wt.SCRIPT_DATA_ESCAPED,this._emitCodePoint(pe)}}_stateScriptDataEscapedDashDash(pe){switch(pe){case yt.HYPHEN_MINUS:{this._emitChars("-");break}case yt.LESS_THAN_SIGN:{this.state=Wt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case yt.GREATER_THAN_SIGN:{this.state=Wt.SCRIPT_DATA,this._emitChars(">");break}case yt.NULL:{this._err(Ln.unexpectedNullCharacter),this.state=Wt.SCRIPT_DATA_ESCAPED,this._emitChars(Fn);break}case yt.EOF:{this._err(Ln.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Wt.SCRIPT_DATA_ESCAPED,this._emitCodePoint(pe)}}_stateScriptDataEscapedLessThanSign(pe){pe===yt.SOLIDUS?this.state=Wt.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Pi(pe)?(this._emitChars("<"),this.state=Wt.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(pe)):(this._emitChars("<"),this.state=Wt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(pe))}_stateScriptDataEscapedEndTagOpen(pe){Pi(pe)?(this.state=Wt.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(pe)):(this._emitChars("</"),this.state=Wt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(pe))}_stateScriptDataEscapedEndTagName(pe){this.handleSpecialEndTag(pe)&&(this._emitChars("</"),this.state=Wt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(pe))}_stateScriptDataDoubleEscapeStart(pe){if(this.preprocessor.startsWith(kn.SCRIPT,!1)&&gr(this.preprocessor.peek(kn.SCRIPT.length))){this._emitCodePoint(pe);for(let Ze=0;Ze<kn.SCRIPT.length;Ze++)this._emitCodePoint(this._consume());this.state=Wt.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=Wt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(pe))}_stateScriptDataDoubleEscaped(pe){switch(pe){case yt.HYPHEN_MINUS:{this.state=Wt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case yt.LESS_THAN_SIGN:{this.state=Wt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case yt.NULL:{this._err(Ln.unexpectedNullCharacter),this._emitChars(Fn);break}case yt.EOF:{this._err(Ln.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(pe)}}_stateScriptDataDoubleEscapedDash(pe){switch(pe){case yt.HYPHEN_MINUS:{this.state=Wt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case yt.LESS_THAN_SIGN:{this.state=Wt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case yt.NULL:{this._err(Ln.unexpectedNullCharacter),this.state=Wt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Fn);break}case yt.EOF:{this._err(Ln.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Wt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(pe)}}_stateScriptDataDoubleEscapedDashDash(pe){switch(pe){case yt.HYPHEN_MINUS:{this._emitChars("-");break}case yt.LESS_THAN_SIGN:{this.state=Wt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case yt.GREATER_THAN_SIGN:{this.state=Wt.SCRIPT_DATA,this._emitChars(">");break}case yt.NULL:{this._err(Ln.unexpectedNullCharacter),this.state=Wt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Fn);break}case yt.EOF:{this._err(Ln.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Wt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(pe)}}_stateScriptDataDoubleEscapedLessThanSign(pe){pe===yt.SOLIDUS?(this.state=Wt.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=Wt.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(pe))}_stateScriptDataDoubleEscapeEnd(pe){if(this.preprocessor.startsWith(kn.SCRIPT,!1)&&gr(this.preprocessor.peek(kn.SCRIPT.length))){this._emitCodePoint(pe);for(let Ze=0;Ze<kn.SCRIPT.length;Ze++)this._emitCodePoint(this._consume());this.state=Wt.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=Wt.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(pe))}_stateBeforeAttributeName(pe){switch(pe){case yt.SPACE:case yt.LINE_FEED:case yt.TABULATION:case yt.FORM_FEED:break;case yt.SOLIDUS:case yt.GREATER_THAN_SIGN:case yt.EOF:{this.state=Wt.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(pe);break}case yt.EQUALS_SIGN:{this._err(Ln.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=Wt.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=Wt.ATTRIBUTE_NAME,this._stateAttributeName(pe)}}_stateAttributeName(pe){switch(pe){case yt.SPACE:case yt.LINE_FEED:case yt.TABULATION:case yt.FORM_FEED:case yt.SOLIDUS:case yt.GREATER_THAN_SIGN:case yt.EOF:{this._leaveAttrName(),this.state=Wt.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(pe);break}case yt.EQUALS_SIGN:{this._leaveAttrName(),this.state=Wt.BEFORE_ATTRIBUTE_VALUE;break}case yt.QUOTATION_MARK:case yt.APOSTROPHE:case yt.LESS_THAN_SIGN:{this._err(Ln.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(pe);break}case yt.NULL:{this._err(Ln.unexpectedNullCharacter),this.currentAttr.name+=Fn;break}default:this.currentAttr.name+=String.fromCodePoint(Mn(pe)?Ri(pe):pe)}}_stateAfterAttributeName(pe){switch(pe){case yt.SPACE:case yt.LINE_FEED:case yt.TABULATION:case yt.FORM_FEED:break;case yt.SOLIDUS:{this.state=Wt.SELF_CLOSING_START_TAG;break}case yt.EQUALS_SIGN:{this.state=Wt.BEFORE_ATTRIBUTE_VALUE;break}case yt.GREATER_THAN_SIGN:{this.state=Wt.DATA,this.emitCurrentTagToken();break}case yt.EOF:{this._err(Ln.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=Wt.ATTRIBUTE_NAME,this._stateAttributeName(pe)}}_stateBeforeAttributeValue(pe){switch(pe){case yt.SPACE:case yt.LINE_FEED:case yt.TABULATION:case yt.FORM_FEED:break;case yt.QUOTATION_MARK:{this.state=Wt.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case yt.APOSTROPHE:{this.state=Wt.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case yt.GREATER_THAN_SIGN:{this._err(Ln.missingAttributeValue),this.state=Wt.DATA,this.emitCurrentTagToken();break}default:this.state=Wt.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(pe)}}_stateAttributeValueDoubleQuoted(pe){switch(pe){case yt.QUOTATION_MARK:{this.state=Wt.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case yt.AMPERSAND:{this._startCharacterReference();break}case yt.NULL:{this._err(Ln.unexpectedNullCharacter),this.currentAttr.value+=Fn;break}case yt.EOF:{this._err(Ln.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(pe)}}_stateAttributeValueSingleQuoted(pe){switch(pe){case yt.APOSTROPHE:{this.state=Wt.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case yt.AMPERSAND:{this._startCharacterReference();break}case yt.NULL:{this._err(Ln.unexpectedNullCharacter),this.currentAttr.value+=Fn;break}case yt.EOF:{this._err(Ln.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(pe)}}_stateAttributeValueUnquoted(pe){switch(pe){case yt.SPACE:case yt.LINE_FEED:case yt.TABULATION:case yt.FORM_FEED:{this._leaveAttrValue(),this.state=Wt.BEFORE_ATTRIBUTE_NAME;break}case yt.AMPERSAND:{this._startCharacterReference();break}case yt.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=Wt.DATA,this.emitCurrentTagToken();break}case yt.NULL:{this._err(Ln.unexpectedNullCharacter),this.currentAttr.value+=Fn;break}case yt.QUOTATION_MARK:case yt.APOSTROPHE:case yt.LESS_THAN_SIGN:case yt.EQUALS_SIGN:case yt.GRAVE_ACCENT:{this._err(Ln.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(pe);break}case yt.EOF:{this._err(Ln.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(pe)}}_stateAfterAttributeValueQuoted(pe){switch(pe){case yt.SPACE:case yt.LINE_FEED:case yt.TABULATION:case yt.FORM_FEED:{this._leaveAttrValue(),this.state=Wt.BEFORE_ATTRIBUTE_NAME;break}case yt.SOLIDUS:{this._leaveAttrValue(),this.state=Wt.SELF_CLOSING_START_TAG;break}case yt.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=Wt.DATA,this.emitCurrentTagToken();break}case yt.EOF:{this._err(Ln.eofInTag),this._emitEOFToken();break}default:this._err(Ln.missingWhitespaceBetweenAttributes),this.state=Wt.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(pe)}}_stateSelfClosingStartTag(pe){switch(pe){case yt.GREATER_THAN_SIGN:{const Ze=this.currentToken;Ze.selfClosing=!0,this.state=Wt.DATA,this.emitCurrentTagToken();break}case yt.EOF:{this._err(Ln.eofInTag),this._emitEOFToken();break}default:this._err(Ln.unexpectedSolidusInTag),this.state=Wt.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(pe)}}_stateBogusComment(pe){const Ze=this.currentToken;switch(pe){case yt.GREATER_THAN_SIGN:{this.state=Wt.DATA,this.emitCurrentComment(Ze);break}case yt.EOF:{this.emitCurrentComment(Ze),this._emitEOFToken();break}case yt.NULL:{this._err(Ln.unexpectedNullCharacter),Ze.data+=Fn;break}default:Ze.data+=String.fromCodePoint(pe)}}_stateMarkupDeclarationOpen(pe){this._consumeSequenceIfMatch(kn.DASH_DASH,!0)?(this._createCommentToken(kn.DASH_DASH.length+1),this.state=Wt.COMMENT_START):this._consumeSequenceIfMatch(kn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(kn.DOCTYPE.length+1),this.state=Wt.DOCTYPE):this._consumeSequenceIfMatch(kn.CDATA_START,!0)?this.inForeignNode?this.state=Wt.CDATA_SECTION:(this._err(Ln.cdataInHtmlContent),this._createCommentToken(kn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=Wt.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Ln.incorrectlyOpenedComment),this._createCommentToken(2),this.state=Wt.BOGUS_COMMENT,this._stateBogusComment(pe))}_stateCommentStart(pe){switch(pe){case yt.HYPHEN_MINUS:{this.state=Wt.COMMENT_START_DASH;break}case yt.GREATER_THAN_SIGN:{this._err(Ln.abruptClosingOfEmptyComment),this.state=Wt.DATA;const Ze=this.currentToken;this.emitCurrentComment(Ze);break}default:this.state=Wt.COMMENT,this._stateComment(pe)}}_stateCommentStartDash(pe){const Ze=this.currentToken;switch(pe){case yt.HYPHEN_MINUS:{this.state=Wt.COMMENT_END;break}case yt.GREATER_THAN_SIGN:{this._err(Ln.abruptClosingOfEmptyComment),this.state=Wt.DATA,this.emitCurrentComment(Ze);break}case yt.EOF:{this._err(Ln.eofInComment),this.emitCurrentComment(Ze),this._emitEOFToken();break}default:Ze.data+="-",this.state=Wt.COMMENT,this._stateComment(pe)}}_stateComment(pe){const Ze=this.currentToken;switch(pe){case yt.HYPHEN_MINUS:{this.state=Wt.COMMENT_END_DASH;break}case yt.LESS_THAN_SIGN:{Ze.data+="<",this.state=Wt.COMMENT_LESS_THAN_SIGN;break}case yt.NULL:{this._err(Ln.unexpectedNullCharacter),Ze.data+=Fn;break}case yt.EOF:{this._err(Ln.eofInComment),this.emitCurrentComment(Ze),this._emitEOFToken();break}default:Ze.data+=String.fromCodePoint(pe)}}_stateCommentLessThanSign(pe){const Ze=this.currentToken;switch(pe){case yt.EXCLAMATION_MARK:{Ze.data+="!",this.state=Wt.COMMENT_LESS_THAN_SIGN_BANG;break}case yt.LESS_THAN_SIGN:{Ze.data+="<";break}default:this.state=Wt.COMMENT,this._stateComment(pe)}}_stateCommentLessThanSignBang(pe){pe===yt.HYPHEN_MINUS?this.state=Wt.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=Wt.COMMENT,this._stateComment(pe))}_stateCommentLessThanSignBangDash(pe){pe===yt.HYPHEN_MINUS?this.state=Wt.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=Wt.COMMENT_END_DASH,this._stateCommentEndDash(pe))}_stateCommentLessThanSignBangDashDash(pe){pe!==yt.GREATER_THAN_SIGN&&pe!==yt.EOF&&this._err(Ln.nestedComment),this.state=Wt.COMMENT_END,this._stateCommentEnd(pe)}_stateCommentEndDash(pe){const Ze=this.currentToken;switch(pe){case yt.HYPHEN_MINUS:{this.state=Wt.COMMENT_END;break}case yt.EOF:{this._err(Ln.eofInComment),this.emitCurrentComment(Ze),this._emitEOFToken();break}default:Ze.data+="-",this.state=Wt.COMMENT,this._stateComment(pe)}}_stateCommentEnd(pe){const Ze=this.currentToken;switch(pe){case yt.GREATER_THAN_SIGN:{this.state=Wt.DATA,this.emitCurrentComment(Ze);break}case yt.EXCLAMATION_MARK:{this.state=Wt.COMMENT_END_BANG;break}case yt.HYPHEN_MINUS:{Ze.data+="-";break}case yt.EOF:{this._err(Ln.eofInComment),this.emitCurrentComment(Ze),this._emitEOFToken();break}default:Ze.data+="--",this.state=Wt.COMMENT,this._stateComment(pe)}}_stateCommentEndBang(pe){const Ze=this.currentToken;switch(pe){case yt.HYPHEN_MINUS:{Ze.data+="--!",this.state=Wt.COMMENT_END_DASH;break}case yt.GREATER_THAN_SIGN:{this._err(Ln.incorrectlyClosedComment),this.state=Wt.DATA,this.emitCurrentComment(Ze);break}case yt.EOF:{this._err(Ln.eofInComment),this.emitCurrentComment(Ze),this._emitEOFToken();break}default:Ze.data+="--!",this.state=Wt.COMMENT,this._stateComment(pe)}}_stateDoctype(pe){switch(pe){case yt.SPACE:case yt.LINE_FEED:case yt.TABULATION:case yt.FORM_FEED:{this.state=Wt.BEFORE_DOCTYPE_NAME;break}case yt.GREATER_THAN_SIGN:{this.state=Wt.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(pe);break}case yt.EOF:{this._err(Ln.eofInDoctype),this._createDoctypeToken(null);const Ze=this.currentToken;Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:this._err(Ln.missingWhitespaceBeforeDoctypeName),this.state=Wt.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(pe)}}_stateBeforeDoctypeName(pe){if(Mn(pe))this._createDoctypeToken(String.fromCharCode(Ri(pe))),this.state=Wt.DOCTYPE_NAME;else switch(pe){case yt.SPACE:case yt.LINE_FEED:case yt.TABULATION:case yt.FORM_FEED:break;case yt.NULL:{this._err(Ln.unexpectedNullCharacter),this._createDoctypeToken(Fn),this.state=Wt.DOCTYPE_NAME;break}case yt.GREATER_THAN_SIGN:{this._err(Ln.missingDoctypeName),this._createDoctypeToken(null);const Ze=this.currentToken;Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this.state=Wt.DATA;break}case yt.EOF:{this._err(Ln.eofInDoctype),this._createDoctypeToken(null);const Ze=this.currentToken;Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(pe)),this.state=Wt.DOCTYPE_NAME}}_stateDoctypeName(pe){const Ze=this.currentToken;switch(pe){case yt.SPACE:case yt.LINE_FEED:case yt.TABULATION:case yt.FORM_FEED:{this.state=Wt.AFTER_DOCTYPE_NAME;break}case yt.GREATER_THAN_SIGN:{this.state=Wt.DATA,this.emitCurrentDoctype(Ze);break}case yt.NULL:{this._err(Ln.unexpectedNullCharacter),Ze.name+=Fn;break}case yt.EOF:{this._err(Ln.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:Ze.name+=String.fromCodePoint(Mn(pe)?Ri(pe):pe)}}_stateAfterDoctypeName(pe){const Ze=this.currentToken;switch(pe){case yt.SPACE:case yt.LINE_FEED:case yt.TABULATION:case yt.FORM_FEED:break;case yt.GREATER_THAN_SIGN:{this.state=Wt.DATA,this.emitCurrentDoctype(Ze);break}case yt.EOF:{this._err(Ln.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(kn.PUBLIC,!1)?this.state=Wt.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(kn.SYSTEM,!1)?this.state=Wt.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Ln.invalidCharacterSequenceAfterDoctypeName),Ze.forceQuirks=!0,this.state=Wt.BOGUS_DOCTYPE,this._stateBogusDoctype(pe))}}_stateAfterDoctypePublicKeyword(pe){const Ze=this.currentToken;switch(pe){case yt.SPACE:case yt.LINE_FEED:case yt.TABULATION:case yt.FORM_FEED:{this.state=Wt.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case yt.QUOTATION_MARK:{this._err(Ln.missingWhitespaceAfterDoctypePublicKeyword),Ze.publicId="",this.state=Wt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case yt.APOSTROPHE:{this._err(Ln.missingWhitespaceAfterDoctypePublicKeyword),Ze.publicId="",this.state=Wt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case yt.GREATER_THAN_SIGN:{this._err(Ln.missingDoctypePublicIdentifier),Ze.forceQuirks=!0,this.state=Wt.DATA,this.emitCurrentDoctype(Ze);break}case yt.EOF:{this._err(Ln.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:this._err(Ln.missingQuoteBeforeDoctypePublicIdentifier),Ze.forceQuirks=!0,this.state=Wt.BOGUS_DOCTYPE,this._stateBogusDoctype(pe)}}_stateBeforeDoctypePublicIdentifier(pe){const Ze=this.currentToken;switch(pe){case yt.SPACE:case yt.LINE_FEED:case yt.TABULATION:case yt.FORM_FEED:break;case yt.QUOTATION_MARK:{Ze.publicId="",this.state=Wt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case yt.APOSTROPHE:{Ze.publicId="",this.state=Wt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case yt.GREATER_THAN_SIGN:{this._err(Ln.missingDoctypePublicIdentifier),Ze.forceQuirks=!0,this.state=Wt.DATA,this.emitCurrentDoctype(Ze);break}case yt.EOF:{this._err(Ln.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:this._err(Ln.missingQuoteBeforeDoctypePublicIdentifier),Ze.forceQuirks=!0,this.state=Wt.BOGUS_DOCTYPE,this._stateBogusDoctype(pe)}}_stateDoctypePublicIdentifierDoubleQuoted(pe){const Ze=this.currentToken;switch(pe){case yt.QUOTATION_MARK:{this.state=Wt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case yt.NULL:{this._err(Ln.unexpectedNullCharacter),Ze.publicId+=Fn;break}case yt.GREATER_THAN_SIGN:{this._err(Ln.abruptDoctypePublicIdentifier),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this.state=Wt.DATA;break}case yt.EOF:{this._err(Ln.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:Ze.publicId+=String.fromCodePoint(pe)}}_stateDoctypePublicIdentifierSingleQuoted(pe){const Ze=this.currentToken;switch(pe){case yt.APOSTROPHE:{this.state=Wt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case yt.NULL:{this._err(Ln.unexpectedNullCharacter),Ze.publicId+=Fn;break}case yt.GREATER_THAN_SIGN:{this._err(Ln.abruptDoctypePublicIdentifier),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this.state=Wt.DATA;break}case yt.EOF:{this._err(Ln.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:Ze.publicId+=String.fromCodePoint(pe)}}_stateAfterDoctypePublicIdentifier(pe){const Ze=this.currentToken;switch(pe){case yt.SPACE:case yt.LINE_FEED:case yt.TABULATION:case yt.FORM_FEED:{this.state=Wt.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case yt.GREATER_THAN_SIGN:{this.state=Wt.DATA,this.emitCurrentDoctype(Ze);break}case yt.QUOTATION_MARK:{this._err(Ln.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),Ze.systemId="",this.state=Wt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case yt.APOSTROPHE:{this._err(Ln.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),Ze.systemId="",this.state=Wt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case yt.EOF:{this._err(Ln.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:this._err(Ln.missingQuoteBeforeDoctypeSystemIdentifier),Ze.forceQuirks=!0,this.state=Wt.BOGUS_DOCTYPE,this._stateBogusDoctype(pe)}}_stateBetweenDoctypePublicAndSystemIdentifiers(pe){const Ze=this.currentToken;switch(pe){case yt.SPACE:case yt.LINE_FEED:case yt.TABULATION:case yt.FORM_FEED:break;case yt.GREATER_THAN_SIGN:{this.emitCurrentDoctype(Ze),this.state=Wt.DATA;break}case yt.QUOTATION_MARK:{Ze.systemId="",this.state=Wt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case yt.APOSTROPHE:{Ze.systemId="",this.state=Wt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case yt.EOF:{this._err(Ln.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:this._err(Ln.missingQuoteBeforeDoctypeSystemIdentifier),Ze.forceQuirks=!0,this.state=Wt.BOGUS_DOCTYPE,this._stateBogusDoctype(pe)}}_stateAfterDoctypeSystemKeyword(pe){const Ze=this.currentToken;switch(pe){case yt.SPACE:case yt.LINE_FEED:case yt.TABULATION:case yt.FORM_FEED:{this.state=Wt.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case yt.QUOTATION_MARK:{this._err(Ln.missingWhitespaceAfterDoctypeSystemKeyword),Ze.systemId="",this.state=Wt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case yt.APOSTROPHE:{this._err(Ln.missingWhitespaceAfterDoctypeSystemKeyword),Ze.systemId="",this.state=Wt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case yt.GREATER_THAN_SIGN:{this._err(Ln.missingDoctypeSystemIdentifier),Ze.forceQuirks=!0,this.state=Wt.DATA,this.emitCurrentDoctype(Ze);break}case yt.EOF:{this._err(Ln.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:this._err(Ln.missingQuoteBeforeDoctypeSystemIdentifier),Ze.forceQuirks=!0,this.state=Wt.BOGUS_DOCTYPE,this._stateBogusDoctype(pe)}}_stateBeforeDoctypeSystemIdentifier(pe){const Ze=this.currentToken;switch(pe){case yt.SPACE:case yt.LINE_FEED:case yt.TABULATION:case yt.FORM_FEED:break;case yt.QUOTATION_MARK:{Ze.systemId="",this.state=Wt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case yt.APOSTROPHE:{Ze.systemId="",this.state=Wt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case yt.GREATER_THAN_SIGN:{this._err(Ln.missingDoctypeSystemIdentifier),Ze.forceQuirks=!0,this.state=Wt.DATA,this.emitCurrentDoctype(Ze);break}case yt.EOF:{this._err(Ln.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:this._err(Ln.missingQuoteBeforeDoctypeSystemIdentifier),Ze.forceQuirks=!0,this.state=Wt.BOGUS_DOCTYPE,this._stateBogusDoctype(pe)}}_stateDoctypeSystemIdentifierDoubleQuoted(pe){const Ze=this.currentToken;switch(pe){case yt.QUOTATION_MARK:{this.state=Wt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case yt.NULL:{this._err(Ln.unexpectedNullCharacter),Ze.systemId+=Fn;break}case yt.GREATER_THAN_SIGN:{this._err(Ln.abruptDoctypeSystemIdentifier),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this.state=Wt.DATA;break}case yt.EOF:{this._err(Ln.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:Ze.systemId+=String.fromCodePoint(pe)}}_stateDoctypeSystemIdentifierSingleQuoted(pe){const Ze=this.currentToken;switch(pe){case yt.APOSTROPHE:{this.state=Wt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case yt.NULL:{this._err(Ln.unexpectedNullCharacter),Ze.systemId+=Fn;break}case yt.GREATER_THAN_SIGN:{this._err(Ln.abruptDoctypeSystemIdentifier),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this.state=Wt.DATA;break}case yt.EOF:{this._err(Ln.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:Ze.systemId+=String.fromCodePoint(pe)}}_stateAfterDoctypeSystemIdentifier(pe){const Ze=this.currentToken;switch(pe){case yt.SPACE:case yt.LINE_FEED:case yt.TABULATION:case yt.FORM_FEED:break;case yt.GREATER_THAN_SIGN:{this.emitCurrentDoctype(Ze),this.state=Wt.DATA;break}case yt.EOF:{this._err(Ln.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:this._err(Ln.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=Wt.BOGUS_DOCTYPE,this._stateBogusDoctype(pe)}}_stateBogusDoctype(pe){const Ze=this.currentToken;switch(pe){case yt.GREATER_THAN_SIGN:{this.emitCurrentDoctype(Ze),this.state=Wt.DATA;break}case yt.NULL:{this._err(Ln.unexpectedNullCharacter);break}case yt.EOF:{this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:}}_stateCdataSection(pe){switch(pe){case yt.RIGHT_SQUARE_BRACKET:{this.state=Wt.CDATA_SECTION_BRACKET;break}case yt.EOF:{this._err(Ln.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(pe)}}_stateCdataSectionBracket(pe){pe===yt.RIGHT_SQUARE_BRACKET?this.state=Wt.CDATA_SECTION_END:(this._emitChars("]"),this.state=Wt.CDATA_SECTION,this._stateCdataSection(pe))}_stateCdataSectionEnd(pe){switch(pe){case yt.GREATER_THAN_SIGN:{this.state=Wt.DATA;break}case yt.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=Wt.CDATA_SECTION,this._stateCdataSection(pe)}}_stateCharacterReference(){let pe=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(pe<0)if(this.preprocessor.lastChunkWritten)pe=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}pe===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(yt.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Li(this.preprocessor.peek(1))?Wt.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(pe){Li(pe)?this._flushCodePointConsumedAsCharacterReference(pe):(pe===yt.SEMICOLON&&this._err(Ln.unknownNamedCharacterReference),this.state=this.returnState,this._callState(pe))}}const Rr=new Set([je.DD,je.DT,je.LI,je.OPTGROUP,je.OPTION,je.P,je.RB,je.RP,je.RT,je.RTC]),Un=new Set([...Rr,je.CAPTION,je.COLGROUP,je.TBODY,je.TD,je.TFOOT,je.TH,je.THEAD,je.TR]),pr=new Set([je.APPLET,je.CAPTION,je.HTML,je.MARQUEE,je.OBJECT,je.TABLE,je.TD,je.TEMPLATE,je.TH]),Dn=new Set([...pr,je.OL,je.UL]),Lr=new Set([...pr,je.BUTTON]),ro=new Set([je.ANNOTATION_XML,je.MI,je.MN,je.MO,je.MS,je.MTEXT]),Ir=new Set([je.DESC,je.FOREIGN_OBJECT,je.TITLE]),Vr=new Set([je.TR,je.TEMPLATE,je.HTML]),Mr=new Set([je.TBODY,je.TFOOT,je.THEAD,je.TEMPLATE,je.HTML]),Sr=new Set([je.TABLE,je.TEMPLATE,je.HTML]),Qr=new Set([je.TD,je.TH]);class Ro{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(pe,Ze,Ot){this.treeAdapter=Ze,this.handler=Ot,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=je.UNKNOWN,this.current=pe}_indexOf(pe){return this.items.lastIndexOf(pe,this.stackTop)}_isInTemplate(){return this.currentTagId===je.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===jt.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(pe,Ze){this.stackTop++,this.items[this.stackTop]=pe,this.current=pe,this.tagIDs[this.stackTop]=Ze,this.currentTagId=Ze,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(pe,Ze,!0)}pop(){const pe=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(pe,!0)}replace(pe,Ze){const Ot=this._indexOf(pe);this.items[Ot]=Ze,Ot===this.stackTop&&(this.current=Ze)}insertAfter(pe,Ze,Ot){const jn=this._indexOf(pe)+1;this.items.splice(jn,0,Ze),this.tagIDs.splice(jn,0,Ot),this.stackTop++,jn===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,jn===this.stackTop)}popUntilTagNamePopped(pe){let Ze=this.stackTop+1;do Ze=this.tagIDs.lastIndexOf(pe,Ze-1);while(Ze>0&&this.treeAdapter.getNamespaceURI(this.items[Ze])!==jt.HTML);this.shortenToLength(Math.max(Ze,0))}shortenToLength(pe){for(;this.stackTop>=pe;){const Ze=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(Ze,this.stackTop<pe)}}popUntilElementPopped(pe){const Ze=this._indexOf(pe);this.shortenToLength(Math.max(Ze,0))}popUntilPopped(pe,Ze){const Ot=this._indexOfTagNames(pe,Ze);this.shortenToLength(Math.max(Ot,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Ui,jt.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Qr,jt.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(pe,Ze){for(let Ot=this.stackTop;Ot>=0;Ot--)if(pe.has(this.tagIDs[Ot])&&this.treeAdapter.getNamespaceURI(this.items[Ot])===Ze)return Ot;return-1}clearBackTo(pe,Ze){const Ot=this._indexOfTagNames(pe,Ze);this.shortenToLength(Ot+1)}clearBackToTableContext(){this.clearBackTo(Sr,jt.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Mr,jt.HTML)}clearBackToTableRowContext(){this.clearBackTo(Vr,jt.HTML)}remove(pe){const Ze=this._indexOf(pe);Ze>=0&&(Ze===this.stackTop?this.pop():(this.items.splice(Ze,1),this.tagIDs.splice(Ze,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(pe,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===je.BODY?this.items[1]:null}contains(pe){return this._indexOf(pe)>-1}getCommonAncestor(pe){const Ze=this._indexOf(pe)-1;return Ze>=0?this.items[Ze]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===je.HTML}hasInDynamicScope(pe,Ze){for(let Ot=this.stackTop;Ot>=0;Ot--){const jn=this.tagIDs[Ot];switch(this.treeAdapter.getNamespaceURI(this.items[Ot])){case jt.HTML:{if(jn===pe)return!0;if(Ze.has(jn))return!1;break}case jt.SVG:{if(Ir.has(jn))return!1;break}case jt.MATHML:{if(ro.has(jn))return!1;break}}}return!0}hasInScope(pe){return this.hasInDynamicScope(pe,pr)}hasInListItemScope(pe){return this.hasInDynamicScope(pe,Dn)}hasInButtonScope(pe){return this.hasInDynamicScope(pe,Lr)}hasNumberedHeaderInScope(){for(let pe=this.stackTop;pe>=0;pe--){const Ze=this.tagIDs[pe];switch(this.treeAdapter.getNamespaceURI(this.items[pe])){case jt.HTML:{if(Ui.has(Ze))return!0;if(pr.has(Ze))return!1;break}case jt.SVG:{if(Ir.has(Ze))return!1;break}case jt.MATHML:{if(ro.has(Ze))return!1;break}}}return!0}hasInTableScope(pe){for(let Ze=this.stackTop;Ze>=0;Ze--)if(this.treeAdapter.getNamespaceURI(this.items[Ze])===jt.HTML)switch(this.tagIDs[Ze]){case pe:return!0;case je.TABLE:case je.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let pe=this.stackTop;pe>=0;pe--)if(this.treeAdapter.getNamespaceURI(this.items[pe])===jt.HTML)switch(this.tagIDs[pe]){case je.TBODY:case je.THEAD:case je.TFOOT:return!0;case je.TABLE:case je.HTML:return!1}return!0}hasInSelectScope(pe){for(let Ze=this.stackTop;Ze>=0;Ze--)if(this.treeAdapter.getNamespaceURI(this.items[Ze])===jt.HTML)switch(this.tagIDs[Ze]){case pe:return!0;case je.OPTION:case je.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&Rr.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Un.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(pe){for(;this.currentTagId!==void 0&&this.currentTagId!==pe&&Un.has(this.currentTagId);)this.pop()}}const qr=3;var vi;(function(ue){ue[ue.Marker=0]="Marker",ue[ue.Element=1]="Element"})(vi||(vi={}));const dt={type:vi.Marker};class ho{constructor(pe){this.treeAdapter=pe,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(pe,Ze){const Ot=[],jn=Ze.length,bi=this.treeAdapter.getTagName(pe),Gi=this.treeAdapter.getNamespaceURI(pe);for(let Ur=0;Ur<this.entries.length;Ur++){const no=this.entries[Ur];if(no.type===vi.Marker)break;const{element:Si}=no;if(this.treeAdapter.getTagName(Si)===bi&&this.treeAdapter.getNamespaceURI(Si)===Gi){const vr=this.treeAdapter.getAttrList(Si);vr.length===jn&&Ot.push({idx:Ur,attrs:vr})}}return Ot}_ensureNoahArkCondition(pe){if(this.entries.length<qr)return;const Ze=this.treeAdapter.getAttrList(pe),Ot=this._getNoahArkConditionCandidates(pe,Ze);if(Ot.length<qr)return;const jn=new Map(Ze.map(Gi=>[Gi.name,Gi.value]));let bi=0;for(let Gi=0;Gi<Ot.length;Gi++){const Ur=Ot[Gi];Ur.attrs.every(no=>jn.get(no.name)===no.value)&&(bi+=1,bi>=qr&&this.entries.splice(Ur.idx,1))}}insertMarker(){this.entries.unshift(dt)}pushElement(pe,Ze){this._ensureNoahArkCondition(pe),this.entries.unshift({type:vi.Element,element:pe,token:Ze})}insertElementAfterBookmark(pe,Ze){const Ot=this.entries.indexOf(this.bookmark);this.entries.splice(Ot,0,{type:vi.Element,element:pe,token:Ze})}removeEntry(pe){const Ze=this.entries.indexOf(pe);Ze!==-1&&this.entries.splice(Ze,1)}clearToLastMarker(){const pe=this.entries.indexOf(dt);pe===-1?this.entries.length=0:this.entries.splice(0,pe+1)}getElementEntryInScopeWithTagName(pe){const Ze=this.entries.find(Ot=>Ot.type===vi.Marker||this.treeAdapter.getTagName(Ot.element)===pe);return Ze&&Ze.type===vi.Element?Ze:null}getElementEntry(pe){return this.entries.find(Ze=>Ze.type===vi.Element&&Ze.element===pe)}}const yo={createDocument(){return{nodeName:"#document",mode:ni.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(ue,pe,Ze){return{nodeName:ue,tagName:ue,attrs:Ze,namespaceURI:pe,childNodes:[],parentNode:null}},createCommentNode(ue){return{nodeName:"#comment",data:ue,parentNode:null}},createTextNode(ue){return{nodeName:"#text",value:ue,parentNode:null}},appendChild(ue,pe){ue.childNodes.push(pe),pe.parentNode=ue},insertBefore(ue,pe,Ze){const Ot=ue.childNodes.indexOf(Ze);ue.childNodes.splice(Ot,0,pe),pe.parentNode=ue},setTemplateContent(ue,pe){ue.content=pe},getTemplateContent(ue){return ue.content},setDocumentType(ue,pe,Ze,Ot){const jn=ue.childNodes.find(bi=>bi.nodeName==="#documentType");if(jn)jn.name=pe,jn.publicId=Ze,jn.systemId=Ot;else{const bi={nodeName:"#documentType",name:pe,publicId:Ze,systemId:Ot,parentNode:null};yo.appendChild(ue,bi)}},setDocumentMode(ue,pe){ue.mode=pe},getDocumentMode(ue){return ue.mode},detachNode(ue){if(ue.parentNode){const pe=ue.parentNode.childNodes.indexOf(ue);ue.parentNode.childNodes.splice(pe,1),ue.parentNode=null}},insertText(ue,pe){if(ue.childNodes.length>0){const Ze=ue.childNodes[ue.childNodes.length-1];if(yo.isTextNode(Ze)){Ze.value+=pe;return}}yo.appendChild(ue,yo.createTextNode(pe))},insertTextBefore(ue,pe,Ze){const Ot=ue.childNodes[ue.childNodes.indexOf(Ze)-1];Ot&&yo.isTextNode(Ot)?Ot.value+=pe:yo.insertBefore(ue,yo.createTextNode(pe),Ze)},adoptAttributes(ue,pe){const Ze=new Set(ue.attrs.map(Ot=>Ot.name));for(let Ot=0;Ot<pe.length;Ot++)Ze.has(pe[Ot].name)||ue.attrs.push(pe[Ot])},getFirstChild(ue){return ue.childNodes[0]},getChildNodes(ue){return ue.childNodes},getParentNode(ue){return ue.parentNode},getAttrList(ue){return ue.attrs},getTagName(ue){return ue.tagName},getNamespaceURI(ue){return ue.namespaceURI},getTextNodeContent(ue){return ue.value},getCommentNodeContent(ue){return ue.data},getDocumentTypeNodeName(ue){return ue.name},getDocumentTypeNodePublicId(ue){return ue.publicId},getDocumentTypeNodeSystemId(ue){return ue.systemId},isTextNode(ue){return ue.nodeName==="#text"},isCommentNode(ue){return ue.nodeName==="#comment"},isDocumentTypeNode(ue){return ue.nodeName==="#documentType"},isElementNode(ue){return Object.prototype.hasOwnProperty.call(ue,"tagName")},setNodeSourceCodeLocation(ue,pe){ue.sourceCodeLocation=pe},getNodeSourceCodeLocation(ue){return ue.sourceCodeLocation},updateNodeSourceCodeLocation(ue,pe){ue.sourceCodeLocation=Mo(Mo({},ue.sourceCodeLocation),pe)}},ua="html",Vo="about:legacy-compat",Kr="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Zi=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],tr=[...Zi,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],kr=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Ji=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Cr=[...Ji,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function uo(ue,pe){return pe.some(Ze=>ue.startsWith(Ze))}function nr(ue){return ue.name===ua&&ue.publicId===null&&(ue.systemId===null||ue.systemId===Vo)}function Qi(ue){if(ue.name!==ua)return ni.QUIRKS;const{systemId:pe}=ue;if(pe&&pe.toLowerCase()===Kr)return ni.QUIRKS;let{publicId:Ze}=ue;if(Ze!==null){if(Ze=Ze.toLowerCase(),kr.has(Ze))return ni.QUIRKS;let Ot=pe===null?tr:Zi;if(uo(Ze,Ot))return ni.QUIRKS;if(Ot=pe===null?Ji:Cr,uo(Ze,Ot))return ni.LIMITED_QUIRKS}return ni.NO_QUIRKS}const ti={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},lr="definitionurl",Gr="definitionURL",Lo=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(ue=>[ue.toLowerCase(),ue])),ao=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:jt.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:jt.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:jt.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:jt.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:jt.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:jt.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:jt.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:jt.XML}],["xml:space",{prefix:"xml",name:"space",namespace:jt.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:jt.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:jt.XMLNS}]]),Zo=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(ue=>[ue.toLowerCase(),ue])),Xo=new Set([je.B,je.BIG,je.BLOCKQUOTE,je.BODY,je.BR,je.CENTER,je.CODE,je.DD,je.DIV,je.DL,je.DT,je.EM,je.EMBED,je.H1,je.H2,je.H3,je.H4,je.H5,je.H6,je.HEAD,je.HR,je.I,je.IMG,je.LI,je.LISTING,je.MENU,je.META,je.NOBR,je.OL,je.P,je.PRE,je.RUBY,je.S,je.SMALL,je.SPAN,je.STRONG,je.STRIKE,je.SUB,je.SUP,je.TABLE,je.TT,je.U,je.UL,je.VAR]);function Go(ue){const pe=ue.tagID;return pe===je.FONT&&ue.attrs.some(({name:Ot})=>Ot===Vn.COLOR||Ot===Vn.SIZE||Ot===Vn.FACE)||Xo.has(pe)}function Jo(ue){for(let pe=0;pe<ue.attrs.length;pe++)if(ue.attrs[pe].name===lr){ue.attrs[pe].name=Gr;break}}function Yo(ue){for(let pe=0;pe<ue.attrs.length;pe++){const Ze=Lo.get(ue.attrs[pe].name);Ze!=null&&(ue.attrs[pe].name=Ze)}}function ra(ue){for(let pe=0;pe<ue.attrs.length;pe++){const Ze=ao.get(ue.attrs[pe].name);Ze&&(ue.attrs[pe].prefix=Ze.prefix,ue.attrs[pe].name=Ze.name,ue.attrs[pe].namespace=Ze.namespace)}}function pn(ue){const pe=Zo.get(ue.tagName);pe!=null&&(ue.tagName=pe,ue.tagID=pi(ue.tagName))}function wa(ue,pe){return pe===jt.MATHML&&(ue===je.MI||ue===je.MO||ue===je.MN||ue===je.MS||ue===je.MTEXT)}function qs(ue,pe,Ze){if(pe===jt.MATHML&&ue===je.ANNOTATION_XML){for(let Ot=0;Ot<Ze.length;Ot++)if(Ze[Ot].name===Vn.ENCODING){const jn=Ze[Ot].value.toLowerCase();return jn===ti.TEXT_HTML||jn===ti.APPLICATION_XML}}return pe===jt.SVG&&(ue===je.FOREIGN_OBJECT||ue===je.DESC||ue===je.TITLE)}function za(ue,pe,Ze,Ot){return(!Ot||Ot===jt.HTML)&&qs(ue,pe,Ze)||(!Ot||Ot===jt.MATHML)&&wa(ue,pe)}const $a="hidden",Qo=8,ms=3;var Nn;(function(ue){ue[ue.INITIAL=0]="INITIAL",ue[ue.BEFORE_HTML=1]="BEFORE_HTML",ue[ue.BEFORE_HEAD=2]="BEFORE_HEAD",ue[ue.IN_HEAD=3]="IN_HEAD",ue[ue.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",ue[ue.AFTER_HEAD=5]="AFTER_HEAD",ue[ue.IN_BODY=6]="IN_BODY",ue[ue.TEXT=7]="TEXT",ue[ue.IN_TABLE=8]="IN_TABLE",ue[ue.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",ue[ue.IN_CAPTION=10]="IN_CAPTION",ue[ue.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",ue[ue.IN_TABLE_BODY=12]="IN_TABLE_BODY",ue[ue.IN_ROW=13]="IN_ROW",ue[ue.IN_CELL=14]="IN_CELL",ue[ue.IN_SELECT=15]="IN_SELECT",ue[ue.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",ue[ue.IN_TEMPLATE=17]="IN_TEMPLATE",ue[ue.AFTER_BODY=18]="AFTER_BODY",ue[ue.IN_FRAMESET=19]="IN_FRAMESET",ue[ue.AFTER_FRAMESET=20]="AFTER_FRAMESET",ue[ue.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",ue[ue.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(Nn||(Nn={}));const po={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},ca=new Set([je.TABLE,je.TBODY,je.TFOOT,je.THEAD,je.TR]),ul={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:yo,onParseError:null};class Ua{constructor(pe,Ze,Ot=null,jn=null){this.fragmentContext=Ot,this.scriptHandler=jn,this.currentToken=null,this.stopped=!1,this.insertionMode=Nn.INITIAL,this.originalInsertionMode=Nn.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options=Mo(Mo({},ul),pe),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=Ze!=null?Ze:this.treeAdapter.createDocument(),this.tokenizer=new Ar(this.options,this),this.activeFormattingElements=new ho(this.treeAdapter),this.fragmentContextID=Ot?pi(this.treeAdapter.getTagName(Ot)):je.UNKNOWN,this._setContextModes(Ot!=null?Ot:this.document,this.fragmentContextID),this.openElements=new Ro(this.document,this.treeAdapter,this)}static parse(pe,Ze){const Ot=new this(Ze);return Ot.tokenizer.write(pe,!0),Ot.document}static getFragmentParser(pe,Ze){const Ot=Mo(Mo({},ul),Ze);pe!=null||(pe=Ot.treeAdapter.createElement(Zt.TEMPLATE,jt.HTML,[]));const jn=Ot.treeAdapter.createElement("documentmock",jt.HTML,[]),bi=new this(Ot,jn,pe);return bi.fragmentContextID===je.TEMPLATE&&bi.tmplInsertionModeStack.unshift(Nn.IN_TEMPLATE),bi._initTokenizerForFragmentParsing(),bi._insertFakeRootElement(),bi._resetInsertionMode(),bi._findFormInFragmentContext(),bi}getFragment(){const pe=this.treeAdapter.getFirstChild(this.document),Ze=this.treeAdapter.createDocumentFragment();return this._adoptNodes(pe,Ze),Ze}_err(pe,Ze,Ot){var jn;if(!this.onParseError)return;const bi=(jn=pe.location)!==null&&jn!==void 0?jn:po,Gi={code:Ze,startLine:bi.startLine,startCol:bi.startCol,startOffset:bi.startOffset,endLine:Ot?bi.startLine:bi.endLine,endCol:Ot?bi.startCol:bi.endCol,endOffset:Ot?bi.startOffset:bi.endOffset};this.onParseError(Gi)}onItemPush(pe,Ze,Ot){var jn,bi;(bi=(jn=this.treeAdapter).onItemPush)===null||bi===void 0||bi.call(jn,pe),Ot&&this.openElements.stackTop>0&&this._setContextModes(pe,Ze)}onItemPop(pe,Ze){var Ot,jn;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(pe,this.currentToken),(jn=(Ot=this.treeAdapter).onItemPop)===null||jn===void 0||jn.call(Ot,pe,this.openElements.current),Ze){let bi,Gi;this.openElements.stackTop===0&&this.fragmentContext?(bi=this.fragmentContext,Gi=this.fragmentContextID):{current:bi,currentTagId:Gi}=this.openElements,this._setContextModes(bi,Gi)}}_setContextModes(pe,Ze){const Ot=pe===this.document||pe&&this.treeAdapter.getNamespaceURI(pe)===jt.HTML;this.currentNotInHTML=!Ot,this.tokenizer.inForeignNode=!Ot&&pe!==void 0&&Ze!==void 0&&!this._isIntegrationPoint(Ze,pe)}_switchToTextParsing(pe,Ze){this._insertElement(pe,jt.HTML),this.tokenizer.state=Ze,this.originalInsertionMode=this.insertionMode,this.insertionMode=Nn.TEXT}switchToPlaintextParsing(){this.insertionMode=Nn.TEXT,this.originalInsertionMode=Nn.IN_BODY,this.tokenizer.state=ar.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let pe=this.fragmentContext;for(;pe;){if(this.treeAdapter.getTagName(pe)===Zt.FORM){this.formElement=pe;break}pe=this.treeAdapter.getParentNode(pe)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==jt.HTML))switch(this.fragmentContextID){case je.TITLE:case je.TEXTAREA:{this.tokenizer.state=ar.RCDATA;break}case je.STYLE:case je.XMP:case je.IFRAME:case je.NOEMBED:case je.NOFRAMES:case je.NOSCRIPT:{this.tokenizer.state=ar.RAWTEXT;break}case je.SCRIPT:{this.tokenizer.state=ar.SCRIPT_DATA;break}case je.PLAINTEXT:{this.tokenizer.state=ar.PLAINTEXT;break}default:}}_setDocumentType(pe){const Ze=pe.name||"",Ot=pe.publicId||"",jn=pe.systemId||"";if(this.treeAdapter.setDocumentType(this.document,Ze,Ot,jn),pe.location){const Gi=this.treeAdapter.getChildNodes(this.document).find(Ur=>this.treeAdapter.isDocumentTypeNode(Ur));Gi&&this.treeAdapter.setNodeSourceCodeLocation(Gi,pe.location)}}_attachElementToTree(pe,Ze){if(this.options.sourceCodeLocationInfo){const Ot=Ze&&Nf(Mo({},Ze),{startTag:Ze});this.treeAdapter.setNodeSourceCodeLocation(pe,Ot)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(pe);else{const Ot=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(Ot!=null?Ot:this.document,pe)}}_appendElement(pe,Ze){const Ot=this.treeAdapter.createElement(pe.tagName,Ze,pe.attrs);this._attachElementToTree(Ot,pe.location)}_insertElement(pe,Ze){const Ot=this.treeAdapter.createElement(pe.tagName,Ze,pe.attrs);this._attachElementToTree(Ot,pe.location),this.openElements.push(Ot,pe.tagID)}_insertFakeElement(pe,Ze){const Ot=this.treeAdapter.createElement(pe,jt.HTML,[]);this._attachElementToTree(Ot,null),this.openElements.push(Ot,Ze)}_insertTemplate(pe){const Ze=this.treeAdapter.createElement(pe.tagName,jt.HTML,pe.attrs),Ot=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(Ze,Ot),this._attachElementToTree(Ze,pe.location),this.openElements.push(Ze,pe.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(Ot,null)}_insertFakeRootElement(){const pe=this.treeAdapter.createElement(Zt.HTML,jt.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(pe,null),this.treeAdapter.appendChild(this.openElements.current,pe),this.openElements.push(pe,je.HTML)}_appendCommentNode(pe,Ze){const Ot=this.treeAdapter.createCommentNode(pe.data);this.treeAdapter.appendChild(Ze,Ot),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(Ot,pe.location)}_insertCharacters(pe){let Ze,Ot;if(this._shouldFosterParentOnInsertion()?({parent:Ze,beforeElement:Ot}=this._findFosterParentingLocation(),Ot?this.treeAdapter.insertTextBefore(Ze,pe.chars,Ot):this.treeAdapter.insertText(Ze,pe.chars)):(Ze=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(Ze,pe.chars)),!pe.location)return;const jn=this.treeAdapter.getChildNodes(Ze),bi=Ot?jn.lastIndexOf(Ot):jn.length,Gi=jn[bi-1];if(this.treeAdapter.getNodeSourceCodeLocation(Gi)){const{endLine:no,endCol:Si,endOffset:vr}=pe.location;this.treeAdapter.updateNodeSourceCodeLocation(Gi,{endLine:no,endCol:Si,endOffset:vr})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(Gi,pe.location)}_adoptNodes(pe,Ze){for(let Ot=this.treeAdapter.getFirstChild(pe);Ot;Ot=this.treeAdapter.getFirstChild(pe))this.treeAdapter.detachNode(Ot),this.treeAdapter.appendChild(Ze,Ot)}_setEndLocation(pe,Ze){if(this.treeAdapter.getNodeSourceCodeLocation(pe)&&Ze.location){const Ot=Ze.location,jn=this.treeAdapter.getTagName(pe),bi=Ze.type===ui.END_TAG&&jn===Ze.tagName?{endTag:Mo({},Ot),endLine:Ot.endLine,endCol:Ot.endCol,endOffset:Ot.endOffset}:{endLine:Ot.startLine,endCol:Ot.startCol,endOffset:Ot.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(pe,bi)}}shouldProcessStartTagTokenInForeignContent(pe){if(!this.currentNotInHTML)return!1;let Ze,Ot;return this.openElements.stackTop===0&&this.fragmentContext?(Ze=this.fragmentContext,Ot=this.fragmentContextID):{current:Ze,currentTagId:Ot}=this.openElements,pe.tagID===je.SVG&&this.treeAdapter.getTagName(Ze)===Zt.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(Ze)===jt.MATHML?!1:this.tokenizer.inForeignNode||(pe.tagID===je.MGLYPH||pe.tagID===je.MALIGNMARK)&&Ot!==void 0&&!this._isIntegrationPoint(Ot,Ze,jt.HTML)}_processToken(pe){switch(pe.type){case ui.CHARACTER:{this.onCharacter(pe);break}case ui.NULL_CHARACTER:{this.onNullCharacter(pe);break}case ui.COMMENT:{this.onComment(pe);break}case ui.DOCTYPE:{this.onDoctype(pe);break}case ui.START_TAG:{this._processStartTag(pe);break}case ui.END_TAG:{this.onEndTag(pe);break}case ui.EOF:{this.onEof(pe);break}case ui.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(pe);break}}}_isIntegrationPoint(pe,Ze,Ot){const jn=this.treeAdapter.getNamespaceURI(Ze),bi=this.treeAdapter.getAttrList(Ze);return za(pe,jn,bi,Ot)}_reconstructActiveFormattingElements(){const pe=this.activeFormattingElements.entries.length;if(pe){const Ze=this.activeFormattingElements.entries.findIndex(jn=>jn.type===vi.Marker||this.openElements.contains(jn.element)),Ot=Ze===-1?pe-1:Ze-1;for(let jn=Ot;jn>=0;jn--){const bi=this.activeFormattingElements.entries[jn];this._insertElement(bi.token,this.treeAdapter.getNamespaceURI(bi.element)),bi.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Nn.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(je.P),this.openElements.popUntilTagNamePopped(je.P)}_resetInsertionMode(){for(let pe=this.openElements.stackTop;pe>=0;pe--)switch(pe===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[pe]){case je.TR:{this.insertionMode=Nn.IN_ROW;return}case je.TBODY:case je.THEAD:case je.TFOOT:{this.insertionMode=Nn.IN_TABLE_BODY;return}case je.CAPTION:{this.insertionMode=Nn.IN_CAPTION;return}case je.COLGROUP:{this.insertionMode=Nn.IN_COLUMN_GROUP;return}case je.TABLE:{this.insertionMode=Nn.IN_TABLE;return}case je.BODY:{this.insertionMode=Nn.IN_BODY;return}case je.FRAMESET:{this.insertionMode=Nn.IN_FRAMESET;return}case je.SELECT:{this._resetInsertionModeForSelect(pe);return}case je.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case je.HTML:{this.insertionMode=this.headElement?Nn.AFTER_HEAD:Nn.BEFORE_HEAD;return}case je.TD:case je.TH:{if(pe>0){this.insertionMode=Nn.IN_CELL;return}break}case je.HEAD:{if(pe>0){this.insertionMode=Nn.IN_HEAD;return}break}}this.insertionMode=Nn.IN_BODY}_resetInsertionModeForSelect(pe){if(pe>0)for(let Ze=pe-1;Ze>0;Ze--){const Ot=this.openElements.tagIDs[Ze];if(Ot===je.TEMPLATE)break;if(Ot===je.TABLE){this.insertionMode=Nn.IN_SELECT_IN_TABLE;return}}this.insertionMode=Nn.IN_SELECT}_isElementCausesFosterParenting(pe){return ca.has(pe)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let pe=this.openElements.stackTop;pe>=0;pe--){const Ze=this.openElements.items[pe];switch(this.openElements.tagIDs[pe]){case je.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(Ze)===jt.HTML)return{parent:this.treeAdapter.getTemplateContent(Ze),beforeElement:null};break}case je.TABLE:{const Ot=this.treeAdapter.getParentNode(Ze);return Ot?{parent:Ot,beforeElement:Ze}:{parent:this.openElements.items[pe-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(pe){const Ze=this._findFosterParentingLocation();Ze.beforeElement?this.treeAdapter.insertBefore(Ze.parent,pe,Ze.beforeElement):this.treeAdapter.appendChild(Ze.parent,pe)}_isSpecialElement(pe,Ze){const Ot=this.treeAdapter.getNamespaceURI(pe);return Ki[Ot].has(Ze)}onCharacter(pe){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){tt(this,pe);return}switch(this.insertionMode){case Nn.INITIAL:{ur(this,pe);break}case Nn.BEFORE_HTML:{Fo(this,pe);break}case Nn.BEFORE_HEAD:{co(this,pe);break}case Nn.IN_HEAD:{Ma(this,pe);break}case Nn.IN_HEAD_NO_SCRIPT:{$s(this,pe);break}case Nn.AFTER_HEAD:{Fa(this,pe);break}case Nn.IN_BODY:case Nn.IN_CAPTION:case Nn.IN_CELL:case Nn.IN_TEMPLATE:{sc(this,pe);break}case Nn.TEXT:case Nn.IN_SELECT:case Nn.IN_SELECT_IN_TABLE:{this._insertCharacters(pe);break}case Nn.IN_TABLE:case Nn.IN_TABLE_BODY:case Nn.IN_ROW:{Dr(this,pe);break}case Nn.IN_TABLE_TEXT:{du(this,pe);break}case Nn.IN_COLUMN_GROUP:{uc(this,pe);break}case Nn.AFTER_BODY:{Qu(this,pe);break}case Nn.AFTER_AFTER_BODY:{we(this,pe);break}default:}}onNullCharacter(pe){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Qe(this,pe);return}switch(this.insertionMode){case Nn.INITIAL:{ur(this,pe);break}case Nn.BEFORE_HTML:{Fo(this,pe);break}case Nn.BEFORE_HEAD:{co(this,pe);break}case Nn.IN_HEAD:{Ma(this,pe);break}case Nn.IN_HEAD_NO_SCRIPT:{$s(this,pe);break}case Nn.AFTER_HEAD:{Fa(this,pe);break}case Nn.TEXT:{this._insertCharacters(pe);break}case Nn.IN_TABLE:case Nn.IN_TABLE_BODY:case Nn.IN_ROW:{Dr(this,pe);break}case Nn.IN_COLUMN_GROUP:{uc(this,pe);break}case Nn.AFTER_BODY:{Qu(this,pe);break}case Nn.AFTER_AFTER_BODY:{we(this,pe);break}default:}}onComment(pe){if(this.skipNextNewLine=!1,this.currentNotInHTML){dl(this,pe);return}switch(this.insertionMode){case Nn.INITIAL:case Nn.BEFORE_HTML:case Nn.BEFORE_HEAD:case Nn.IN_HEAD:case Nn.IN_HEAD_NO_SCRIPT:case Nn.AFTER_HEAD:case Nn.IN_BODY:case Nn.IN_TABLE:case Nn.IN_CAPTION:case Nn.IN_COLUMN_GROUP:case Nn.IN_TABLE_BODY:case Nn.IN_ROW:case Nn.IN_CELL:case Nn.IN_SELECT:case Nn.IN_SELECT_IN_TABLE:case Nn.IN_TEMPLATE:case Nn.IN_FRAMESET:case Nn.AFTER_FRAMESET:{dl(this,pe);break}case Nn.IN_TABLE_TEXT:{Nu(this,pe);break}case Nn.AFTER_BODY:{tn(this,pe);break}case Nn.AFTER_AFTER_BODY:case Nn.AFTER_AFTER_FRAMESET:{Ti(this,pe);break}default:}}onDoctype(pe){switch(this.skipNextNewLine=!1,this.insertionMode){case Nn.INITIAL:{qi(this,pe);break}case Nn.BEFORE_HEAD:case Nn.IN_HEAD:case Nn.IN_HEAD_NO_SCRIPT:case Nn.AFTER_HEAD:{this._err(pe,Ln.misplacedDoctype);break}case Nn.IN_TABLE_TEXT:{Nu(this,pe);break}default:}}onStartTag(pe){this.skipNextNewLine=!1,this.currentToken=pe,this._processStartTag(pe),pe.selfClosing&&!pe.ackSelfClosing&&this._err(pe,Ln.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(pe){this.shouldProcessStartTagTokenInForeignContent(pe)?wt(this,pe):this._startTagOutsideForeignContent(pe)}_startTagOutsideForeignContent(pe){switch(this.insertionMode){case Nn.INITIAL:{ur(this,pe);break}case Nn.BEFORE_HTML:{wr(this,pe);break}case Nn.BEFORE_HEAD:{jo(this,pe);break}case Nn.IN_HEAD:{zo(this,pe);break}case Nn.IN_HEAD_NO_SCRIPT:{Ts(this,pe);break}case Nn.AFTER_HEAD:{hl(this,pe);break}case Nn.IN_BODY:{Po(this,pe);break}case Nn.IN_TABLE:{Fl(this,pe);break}case Nn.IN_TABLE_TEXT:{Nu(this,pe);break}case Nn.IN_CAPTION:{bl(this,pe);break}case Nn.IN_COLUMN_GROUP:{wl(this,pe);break}case Nn.IN_TABLE_BODY:{Zu(this,pe);break}case Nn.IN_ROW:{dc(this,pe);break}case Nn.IN_CELL:{Mu(this,pe);break}case Nn.IN_SELECT:{mh(this,pe);break}case Nn.IN_SELECT_IN_TABLE:{yh(this,pe);break}case Nn.IN_TEMPLATE:{Pu(this,pe);break}case Nn.AFTER_BODY:{ss(this,pe);break}case Nn.IN_FRAMESET:{gs(this,pe);break}case Nn.AFTER_FRAMESET:{ud(this,pe);break}case Nn.AFTER_AFTER_BODY:{_s(this,pe);break}case Nn.AFTER_AFTER_FRAMESET:{He(this,pe);break}default:}}onEndTag(pe){this.skipNextNewLine=!1,this.currentToken=pe,this.currentNotInHTML?Bt(this,pe):this._endTagOutsideForeignContent(pe)}_endTagOutsideForeignContent(pe){switch(this.insertionMode){case Nn.INITIAL:{ur(this,pe);break}case Nn.BEFORE_HTML:{Xi(this,pe);break}case Nn.BEFORE_HEAD:{Ao(this,pe);break}case Nn.IN_HEAD:{rs(this,pe);break}case Nn.IN_HEAD_NO_SCRIPT:{Za(this,pe);break}case Nn.AFTER_HEAD:{Ol(this,pe);break}case Nn.IN_BODY:{qo(this,pe);break}case Nn.TEXT:{fo(this,pe);break}case Nn.IN_TABLE:{To(this,pe);break}case Nn.IN_TABLE_TEXT:{Nu(this,pe);break}case Nn.IN_CAPTION:{Vu(this,pe);break}case Nn.IN_COLUMN_GROUP:{hu(this,pe);break}case Nn.IN_TABLE_BODY:{cc(this,pe);break}case Nn.IN_ROW:{fu(this,pe);break}case Nn.IN_CELL:{ld(this,pe);break}case Nn.IN_SELECT:{vh(this,pe);break}case Nn.IN_SELECT_IN_TABLE:{Pa(this,pe);break}case Nn.IN_TEMPLATE:{Uo(this,pe);break}case Nn.AFTER_BODY:{ns(this,pe);break}case Nn.IN_FRAMESET:{Lu(this,pe);break}case Nn.AFTER_FRAMESET:{cd(this,pe);break}case Nn.AFTER_AFTER_BODY:{we(this,pe);break}default:}}onEof(pe){switch(this.insertionMode){case Nn.INITIAL:{ur(this,pe);break}case Nn.BEFORE_HTML:{Fo(this,pe);break}case Nn.BEFORE_HEAD:{co(this,pe);break}case Nn.IN_HEAD:{Ma(this,pe);break}case Nn.IN_HEAD_NO_SCRIPT:{$s(this,pe);break}case Nn.AFTER_HEAD:{Fa(this,pe);break}case Nn.IN_BODY:case Nn.IN_TABLE:case Nn.IN_CAPTION:case Nn.IN_COLUMN_GROUP:case Nn.IN_TABLE_BODY:case Nn.IN_ROW:case Nn.IN_CELL:case Nn.IN_SELECT:case Nn.IN_SELECT_IN_TABLE:{ma(this,pe);break}case Nn.TEXT:{lc(this,pe);break}case Nn.IN_TABLE_TEXT:{Nu(this,pe);break}case Nn.IN_TEMPLATE:{Ka(this,pe);break}case Nn.AFTER_BODY:case Nn.IN_FRAMESET:case Nn.AFTER_FRAMESET:case Nn.AFTER_AFTER_BODY:case Nn.AFTER_AFTER_FRAMESET:{_i(this,pe);break}default:}}onWhitespaceCharacter(pe){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,pe.chars.charCodeAt(0)===yt.LINE_FEED)){if(pe.chars.length===1)return;pe.chars=pe.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(pe);return}switch(this.insertionMode){case Nn.IN_HEAD:case Nn.IN_HEAD_NO_SCRIPT:case Nn.AFTER_HEAD:case Nn.TEXT:case Nn.IN_COLUMN_GROUP:case Nn.IN_SELECT:case Nn.IN_SELECT_IN_TABLE:case Nn.IN_FRAMESET:case Nn.AFTER_FRAMESET:{this._insertCharacters(pe);break}case Nn.IN_BODY:case Nn.IN_CAPTION:case Nn.IN_CELL:case Nn.IN_TEMPLATE:case Nn.AFTER_BODY:case Nn.AFTER_AFTER_BODY:case Nn.AFTER_AFTER_FRAMESET:{Rs(this,pe);break}case Nn.IN_TABLE:case Nn.IN_TABLE_BODY:case Nn.IN_ROW:{Dr(this,pe);break}case Nn.IN_TABLE_TEXT:{Ac(this,pe);break}default:}}}function Zl(ue,pe){let Ze=ue.activeFormattingElements.getElementEntryInScopeWithTagName(pe.tagName);return Ze?ue.openElements.contains(Ze.element)?ue.openElements.hasInScope(pe.tagID)||(Ze=null):(ue.activeFormattingElements.removeEntry(Ze),Ze=null):Wo(ue,pe),Ze}function ws(ue,pe){let Ze=null,Ot=ue.openElements.stackTop;for(;Ot>=0;Ot--){const jn=ue.openElements.items[Ot];if(jn===pe.element)break;ue._isSpecialElement(jn,ue.openElements.tagIDs[Ot])&&(Ze=jn)}return Ze||(ue.openElements.shortenToLength(Math.max(Ot,0)),ue.activeFormattingElements.removeEntry(pe)),Ze}function mr(ue,pe,Ze){let Ot=pe,jn=ue.openElements.getCommonAncestor(pe);for(let bi=0,Gi=jn;Gi!==Ze;bi++,Gi=jn){jn=ue.openElements.getCommonAncestor(Gi);const Ur=ue.activeFormattingElements.getElementEntry(Gi),no=Ur&&bi>=ms;!Ur||no?(no&&ue.activeFormattingElements.removeEntry(Ur),ue.openElements.remove(Gi)):(Gi=cl(ue,Ur),Ot===pe&&(ue.activeFormattingElements.bookmark=Ur),ue.treeAdapter.detachNode(Ot),ue.treeAdapter.appendChild(Gi,Ot),Ot=Gi)}return Ot}function cl(ue,pe){const Ze=ue.treeAdapter.getNamespaceURI(pe.element),Ot=ue.treeAdapter.createElement(pe.token.tagName,Ze,pe.token.attrs);return ue.openElements.replace(pe.element,Ot),pe.element=Ot,Ot}function El(ue,pe,Ze){const Ot=ue.treeAdapter.getTagName(pe),jn=pi(Ot);if(ue._isElementCausesFosterParenting(jn))ue._fosterParentElement(Ze);else{const bi=ue.treeAdapter.getNamespaceURI(pe);jn===je.TEMPLATE&&bi===jt.HTML&&(pe=ue.treeAdapter.getTemplateContent(pe)),ue.treeAdapter.appendChild(pe,Ze)}}function ds(ue,pe,Ze){const Ot=ue.treeAdapter.getNamespaceURI(Ze.element),{token:jn}=Ze,bi=ue.treeAdapter.createElement(jn.tagName,Ot,jn.attrs);ue._adoptNodes(pe,bi),ue.treeAdapter.appendChild(pe,bi),ue.activeFormattingElements.insertElementAfterBookmark(bi,jn),ue.activeFormattingElements.removeEntry(Ze),ue.openElements.remove(Ze.element),ue.openElements.insertAfter(pe,bi,jn.tagID)}function Ta(ue,pe){for(let Ze=0;Ze<Qo;Ze++){const Ot=Zl(ue,pe);if(!Ot)break;const jn=ws(ue,Ot);if(!jn)break;ue.activeFormattingElements.bookmark=Ot;const bi=mr(ue,jn,Ot.element),Gi=ue.openElements.getCommonAncestor(Ot.element);ue.treeAdapter.detachNode(bi),Gi&&El(ue,Gi,bi),ds(ue,jn,Ot)}}function dl(ue,pe){ue._appendCommentNode(pe,ue.openElements.currentTmplContentOrNode)}function tn(ue,pe){ue._appendCommentNode(pe,ue.openElements.items[0])}function Ti(ue,pe){ue._appendCommentNode(pe,ue.document)}function _i(ue,pe){if(ue.stopped=!0,pe.location){const Ze=ue.fragmentContext?0:2;for(let Ot=ue.openElements.stackTop;Ot>=Ze;Ot--)ue._setEndLocation(ue.openElements.items[Ot],pe);if(!ue.fragmentContext&&ue.openElements.stackTop>=0){const Ot=ue.openElements.items[0],jn=ue.treeAdapter.getNodeSourceCodeLocation(Ot);if(jn&&!jn.endTag&&(ue._setEndLocation(Ot,pe),ue.openElements.stackTop>=1)){const bi=ue.openElements.items[1],Gi=ue.treeAdapter.getNodeSourceCodeLocation(bi);Gi&&!Gi.endTag&&ue._setEndLocation(bi,pe)}}}}function qi(ue,pe){ue._setDocumentType(pe);const Ze=pe.forceQuirks?ni.QUIRKS:Qi(pe);nr(pe)||ue._err(pe,Ln.nonConformingDoctype),ue.treeAdapter.setDocumentMode(ue.document,Ze),ue.insertionMode=Nn.BEFORE_HTML}function ur(ue,pe){ue._err(pe,Ln.missingDoctype,!0),ue.treeAdapter.setDocumentMode(ue.document,ni.QUIRKS),ue.insertionMode=Nn.BEFORE_HTML,ue._processToken(pe)}function wr(ue,pe){pe.tagID===je.HTML?(ue._insertElement(pe,jt.HTML),ue.insertionMode=Nn.BEFORE_HEAD):Fo(ue,pe)}function Xi(ue,pe){const Ze=pe.tagID;(Ze===je.HTML||Ze===je.HEAD||Ze===je.BODY||Ze===je.BR)&&Fo(ue,pe)}function Fo(ue,pe){ue._insertFakeRootElement(),ue.insertionMode=Nn.BEFORE_HEAD,ue._processToken(pe)}function jo(ue,pe){switch(pe.tagID){case je.HTML:{Po(ue,pe);break}case je.HEAD:{ue._insertElement(pe,jt.HTML),ue.headElement=ue.openElements.current,ue.insertionMode=Nn.IN_HEAD;break}default:co(ue,pe)}}function Ao(ue,pe){const Ze=pe.tagID;Ze===je.HEAD||Ze===je.BODY||Ze===je.HTML||Ze===je.BR?co(ue,pe):ue._err(pe,Ln.endTagWithoutMatchingOpenElement)}function co(ue,pe){ue._insertFakeElement(Zt.HEAD,je.HEAD),ue.headElement=ue.openElements.current,ue.insertionMode=Nn.IN_HEAD,ue._processToken(pe)}function zo(ue,pe){switch(pe.tagID){case je.HTML:{Po(ue,pe);break}case je.BASE:case je.BASEFONT:case je.BGSOUND:case je.LINK:case je.META:{ue._appendElement(pe,jt.HTML),pe.ackSelfClosing=!0;break}case je.TITLE:{ue._switchToTextParsing(pe,ar.RCDATA);break}case je.NOSCRIPT:{ue.options.scriptingEnabled?ue._switchToTextParsing(pe,ar.RAWTEXT):(ue._insertElement(pe,jt.HTML),ue.insertionMode=Nn.IN_HEAD_NO_SCRIPT);break}case je.NOFRAMES:case je.STYLE:{ue._switchToTextParsing(pe,ar.RAWTEXT);break}case je.SCRIPT:{ue._switchToTextParsing(pe,ar.SCRIPT_DATA);break}case je.TEMPLATE:{ue._insertTemplate(pe),ue.activeFormattingElements.insertMarker(),ue.framesetOk=!1,ue.insertionMode=Nn.IN_TEMPLATE,ue.tmplInsertionModeStack.unshift(Nn.IN_TEMPLATE);break}case je.HEAD:{ue._err(pe,Ln.misplacedStartTagForHeadElement);break}default:Ma(ue,pe)}}function rs(ue,pe){switch(pe.tagID){case je.HEAD:{ue.openElements.pop(),ue.insertionMode=Nn.AFTER_HEAD;break}case je.BODY:case je.BR:case je.HTML:{Ma(ue,pe);break}case je.TEMPLATE:{ia(ue,pe);break}default:ue._err(pe,Ln.endTagWithoutMatchingOpenElement)}}function ia(ue,pe){ue.openElements.tmplCount>0?(ue.openElements.generateImpliedEndTagsThoroughly(),ue.openElements.currentTagId!==je.TEMPLATE&&ue._err(pe,Ln.closingOfElementWithOpenChildElements),ue.openElements.popUntilTagNamePopped(je.TEMPLATE),ue.activeFormattingElements.clearToLastMarker(),ue.tmplInsertionModeStack.shift(),ue._resetInsertionMode()):ue._err(pe,Ln.endTagWithoutMatchingOpenElement)}function Ma(ue,pe){ue.openElements.pop(),ue.insertionMode=Nn.AFTER_HEAD,ue._processToken(pe)}function Ts(ue,pe){switch(pe.tagID){case je.HTML:{Po(ue,pe);break}case je.BASEFONT:case je.BGSOUND:case je.HEAD:case je.LINK:case je.META:case je.NOFRAMES:case je.STYLE:{zo(ue,pe);break}case je.NOSCRIPT:{ue._err(pe,Ln.nestedNoscriptInHead);break}default:$s(ue,pe)}}function Za(ue,pe){switch(pe.tagID){case je.NOSCRIPT:{ue.openElements.pop(),ue.insertionMode=Nn.IN_HEAD;break}case je.BR:{$s(ue,pe);break}default:ue._err(pe,Ln.endTagWithoutMatchingOpenElement)}}function $s(ue,pe){const Ze=pe.type===ui.EOF?Ln.openElementsLeftAfterEof:Ln.disallowedContentInNoscriptInHead;ue._err(pe,Ze),ue.openElements.pop(),ue.insertionMode=Nn.IN_HEAD,ue._processToken(pe)}function hl(ue,pe){switch(pe.tagID){case je.HTML:{Po(ue,pe);break}case je.BODY:{ue._insertElement(pe,jt.HTML),ue.framesetOk=!1,ue.insertionMode=Nn.IN_BODY;break}case je.FRAMESET:{ue._insertElement(pe,jt.HTML),ue.insertionMode=Nn.IN_FRAMESET;break}case je.BASE:case je.BASEFONT:case je.BGSOUND:case je.LINK:case je.META:case je.NOFRAMES:case je.SCRIPT:case je.STYLE:case je.TEMPLATE:case je.TITLE:{ue._err(pe,Ln.abandonedHeadElementChild),ue.openElements.push(ue.headElement,je.HEAD),zo(ue,pe),ue.openElements.remove(ue.headElement);break}case je.HEAD:{ue._err(pe,Ln.misplacedStartTagForHeadElement);break}default:Fa(ue,pe)}}function Ol(ue,pe){switch(pe.tagID){case je.BODY:case je.HTML:case je.BR:{Fa(ue,pe);break}case je.TEMPLATE:{ia(ue,pe);break}default:ue._err(pe,Ln.endTagWithoutMatchingOpenElement)}}function Fa(ue,pe){ue._insertFakeElement(Zt.BODY,je.BODY),ue.insertionMode=Nn.IN_BODY,As(ue,pe)}function As(ue,pe){switch(pe.type){case ui.CHARACTER:{sc(ue,pe);break}case ui.WHITESPACE_CHARACTER:{Rs(ue,pe);break}case ui.COMMENT:{dl(ue,pe);break}case ui.START_TAG:{Po(ue,pe);break}case ui.END_TAG:{qo(ue,pe);break}case ui.EOF:{ma(ue,pe);break}default:}}function Rs(ue,pe){ue._reconstructActiveFormattingElements(),ue._insertCharacters(pe)}function sc(ue,pe){ue._reconstructActiveFormattingElements(),ue._insertCharacters(pe),ue.framesetOk=!1}function xc(ue,pe){ue.openElements.tmplCount===0&&ue.treeAdapter.adoptAttributes(ue.openElements.items[0],pe.attrs)}function Yc(ue,pe){const Ze=ue.openElements.tryPeekProperlyNestedBodyElement();Ze&&ue.openElements.tmplCount===0&&(ue.framesetOk=!1,ue.treeAdapter.adoptAttributes(Ze,pe.attrs))}function Aa(ue,pe){const Ze=ue.openElements.tryPeekProperlyNestedBodyElement();ue.framesetOk&&Ze&&(ue.treeAdapter.detachNode(Ze),ue.openElements.popAllUpToHtmlElement(),ue._insertElement(pe,jt.HTML),ue.insertionMode=Nn.IN_FRAMESET)}function ad(ue,pe){ue.openElements.hasInButtonScope(je.P)&&ue._closePElement(),ue._insertElement(pe,jt.HTML)}function bc(ue,pe){ue.openElements.hasInButtonScope(je.P)&&ue._closePElement(),ue.openElements.currentTagId!==void 0&&Ui.has(ue.openElements.currentTagId)&&ue.openElements.pop(),ue._insertElement(pe,jt.HTML)}function Gu(ue,pe){ue.openElements.hasInButtonScope(je.P)&&ue._closePElement(),ue._insertElement(pe,jt.HTML),ue.skipNextNewLine=!0,ue.framesetOk=!1}function Yu(ue,pe){const Ze=ue.openElements.tmplCount>0;(!ue.formElement||Ze)&&(ue.openElements.hasInButtonScope(je.P)&&ue._closePElement(),ue._insertElement(pe,jt.HTML),Ze||(ue.formElement=ue.openElements.current))}function es(ue,pe){ue.framesetOk=!1;const Ze=pe.tagID;for(let Ot=ue.openElements.stackTop;Ot>=0;Ot--){const jn=ue.openElements.tagIDs[Ot];if(Ze===je.LI&&jn===je.LI||(Ze===je.DD||Ze===je.DT)&&(jn===je.DD||jn===je.DT)){ue.openElements.generateImpliedEndTagsWithExclusion(jn),ue.openElements.popUntilTagNamePopped(jn);break}if(jn!==je.ADDRESS&&jn!==je.DIV&&jn!==je.P&&ue._isSpecialElement(ue.openElements.items[Ot],jn))break}ue.openElements.hasInButtonScope(je.P)&&ue._closePElement(),ue._insertElement(pe,jt.HTML)}function hs(ue,pe){ue.openElements.hasInButtonScope(je.P)&&ue._closePElement(),ue._insertElement(pe,jt.HTML),ue.tokenizer.state=ar.PLAINTEXT}function Ha(ue,pe){ue.openElements.hasInScope(je.BUTTON)&&(ue.openElements.generateImpliedEndTags(),ue.openElements.popUntilTagNamePopped(je.BUTTON)),ue._reconstructActiveFormattingElements(),ue._insertElement(pe,jt.HTML),ue.framesetOk=!1}function ts(ue,pe){const Ze=ue.activeFormattingElements.getElementEntryInScopeWithTagName(Zt.A);Ze&&(Ta(ue,pe),ue.openElements.remove(Ze.element),ue.activeFormattingElements.removeEntry(Ze)),ue._reconstructActiveFormattingElements(),ue._insertElement(pe,jt.HTML),ue.activeFormattingElements.pushElement(ue.openElements.current,pe)}function wc(ue,pe){ue._reconstructActiveFormattingElements(),ue._insertElement(pe,jt.HTML),ue.activeFormattingElements.pushElement(ue.openElements.current,pe)}function Wu(ue,pe){ue._reconstructActiveFormattingElements(),ue.openElements.hasInScope(je.NOBR)&&(Ta(ue,pe),ue._reconstructActiveFormattingElements()),ue._insertElement(pe,jt.HTML),ue.activeFormattingElements.pushElement(ue.openElements.current,pe)}function oa(ue,pe){ue._reconstructActiveFormattingElements(),ue._insertElement(pe,jt.HTML),ue.activeFormattingElements.insertMarker(),ue.framesetOk=!1}function Bo(ue,pe){ue.treeAdapter.getDocumentMode(ue.document)!==ni.QUIRKS&&ue.openElements.hasInButtonScope(je.P)&&ue._closePElement(),ue._insertElement(pe,jt.HTML),ue.framesetOk=!1,ue.insertionMode=Nn.IN_TABLE}function So(ue,pe){ue._reconstructActiveFormattingElements(),ue._appendElement(pe,jt.HTML),ue.framesetOk=!1,pe.ackSelfClosing=!0}function os(ue){const pe=wi(ue,Vn.TYPE);return pe!=null&&pe.toLowerCase()===$a}function ir(ue,pe){ue._reconstructActiveFormattingElements(),ue._appendElement(pe,jt.HTML),os(pe)||(ue.framesetOk=!1),pe.ackSelfClosing=!0}function Ga(ue,pe){ue._appendElement(pe,jt.HTML),pe.ackSelfClosing=!0}function Ft(ue,pe){ue.openElements.hasInButtonScope(je.P)&&ue._closePElement(),ue._appendElement(pe,jt.HTML),ue.framesetOk=!1,pe.ackSelfClosing=!0}function Qn(ue,pe){pe.tagName=Zt.IMG,pe.tagID=je.IMG,So(ue,pe)}function xl(ue,pe){ue._insertElement(pe,jt.HTML),ue.skipNextNewLine=!0,ue.tokenizer.state=ar.RCDATA,ue.originalInsertionMode=ue.insertionMode,ue.framesetOk=!1,ue.insertionMode=Nn.TEXT}function uu(ue,pe){ue.openElements.hasInButtonScope(je.P)&&ue._closePElement(),ue._reconstructActiveFormattingElements(),ue.framesetOk=!1,ue._switchToTextParsing(pe,ar.RAWTEXT)}function Cs(ue,pe){ue.framesetOk=!1,ue._switchToTextParsing(pe,ar.RAWTEXT)}function fs(ue,pe){ue._switchToTextParsing(pe,ar.RAWTEXT)}function Rl(ue,pe){ue._reconstructActiveFormattingElements(),ue._insertElement(pe,jt.HTML),ue.framesetOk=!1,ue.insertionMode=ue.insertionMode===Nn.IN_TABLE||ue.insertionMode===Nn.IN_CAPTION||ue.insertionMode===Nn.IN_TABLE_BODY||ue.insertionMode===Nn.IN_ROW||ue.insertionMode===Nn.IN_CELL?Nn.IN_SELECT_IN_TABLE:Nn.IN_SELECT}function cu(ue,pe){ue.openElements.currentTagId===je.OPTION&&ue.openElements.pop(),ue._reconstructActiveFormattingElements(),ue._insertElement(pe,jt.HTML)}function Wc(ue,pe){ue.openElements.hasInScope(je.RUBY)&&ue.openElements.generateImpliedEndTags(),ue._insertElement(pe,jt.HTML)}function pa(ue,pe){ue.openElements.hasInScope(je.RUBY)&&ue.openElements.generateImpliedEndTagsWithExclusion(je.RTC),ue._insertElement(pe,jt.HTML)}function jr(ue,pe){ue._reconstructActiveFormattingElements(),Jo(pe),ra(pe),pe.selfClosing?ue._appendElement(pe,jt.MATHML):ue._insertElement(pe,jt.MATHML),pe.ackSelfClosing=!0}function as(ue,pe){ue._reconstructActiveFormattingElements(),Yo(pe),ra(pe),pe.selfClosing?ue._appendElement(pe,jt.SVG):ue._insertElement(pe,jt.SVG),pe.ackSelfClosing=!0}function Ns(ue,pe){ue._reconstructActiveFormattingElements(),ue._insertElement(pe,jt.HTML)}function Po(ue,pe){switch(pe.tagID){case je.I:case je.S:case je.B:case je.U:case je.EM:case je.TT:case je.BIG:case je.CODE:case je.FONT:case je.SMALL:case je.STRIKE:case je.STRONG:{wc(ue,pe);break}case je.A:{ts(ue,pe);break}case je.H1:case je.H2:case je.H3:case je.H4:case je.H5:case je.H6:{bc(ue,pe);break}case je.P:case je.DL:case je.OL:case je.UL:case je.DIV:case je.DIR:case je.NAV:case je.MAIN:case je.MENU:case je.ASIDE:case je.CENTER:case je.FIGURE:case je.FOOTER:case je.HEADER:case je.HGROUP:case je.DIALOG:case je.DETAILS:case je.ADDRESS:case je.ARTICLE:case je.SEARCH:case je.SECTION:case je.SUMMARY:case je.FIELDSET:case je.BLOCKQUOTE:case je.FIGCAPTION:{ad(ue,pe);break}case je.LI:case je.DD:case je.DT:{es(ue,pe);break}case je.BR:case je.IMG:case je.WBR:case je.AREA:case je.EMBED:case je.KEYGEN:{So(ue,pe);break}case je.HR:{Ft(ue,pe);break}case je.RB:case je.RTC:{Wc(ue,pe);break}case je.RT:case je.RP:{pa(ue,pe);break}case je.PRE:case je.LISTING:{Gu(ue,pe);break}case je.XMP:{uu(ue,pe);break}case je.SVG:{as(ue,pe);break}case je.HTML:{xc(ue,pe);break}case je.BASE:case je.LINK:case je.META:case je.STYLE:case je.TITLE:case je.SCRIPT:case je.BGSOUND:case je.BASEFONT:case je.TEMPLATE:{zo(ue,pe);break}case je.BODY:{Yc(ue,pe);break}case je.FORM:{Yu(ue,pe);break}case je.NOBR:{Wu(ue,pe);break}case je.MATH:{jr(ue,pe);break}case je.TABLE:{Bo(ue,pe);break}case je.INPUT:{ir(ue,pe);break}case je.PARAM:case je.TRACK:case je.SOURCE:{Ga(ue,pe);break}case je.IMAGE:{Qn(ue,pe);break}case je.BUTTON:{Ha(ue,pe);break}case je.APPLET:case je.OBJECT:case je.MARQUEE:{oa(ue,pe);break}case je.IFRAME:{Cs(ue,pe);break}case je.SELECT:{Rl(ue,pe);break}case je.OPTION:case je.OPTGROUP:{cu(ue,pe);break}case je.NOEMBED:case je.NOFRAMES:{fs(ue,pe);break}case je.FRAMESET:{Aa(ue,pe);break}case je.TEXTAREA:{xl(ue,pe);break}case je.NOSCRIPT:{ue.options.scriptingEnabled?fs(ue,pe):Ns(ue,pe);break}case je.PLAINTEXT:{hs(ue,pe);break}case je.COL:case je.TH:case je.TD:case je.TR:case je.HEAD:case je.FRAME:case je.TBODY:case je.TFOOT:case je.THEAD:case je.CAPTION:case je.COLGROUP:break;default:Ns(ue,pe)}}function mo(ue,pe){if(ue.openElements.hasInScope(je.BODY)&&(ue.insertionMode=Nn.AFTER_BODY,ue.options.sourceCodeLocationInfo)){const Ze=ue.openElements.tryPeekProperlyNestedBodyElement();Ze&&ue._setEndLocation(Ze,pe)}}function Ba(ue,pe){ue.openElements.hasInScope(je.BODY)&&(ue.insertionMode=Nn.AFTER_BODY,ns(ue,pe))}function Fs(ue,pe){const Ze=pe.tagID;ue.openElements.hasInScope(Ze)&&(ue.openElements.generateImpliedEndTags(),ue.openElements.popUntilTagNamePopped(Ze))}function ea(ue){const pe=ue.openElements.tmplCount>0,{formElement:Ze}=ue;pe||(ue.formElement=null),(Ze||pe)&&ue.openElements.hasInScope(je.FORM)&&(ue.openElements.generateImpliedEndTags(),pe?ue.openElements.popUntilTagNamePopped(je.FORM):Ze&&ue.openElements.remove(Ze))}function el(ue){ue.openElements.hasInButtonScope(je.P)||ue._insertFakeElement(Zt.P,je.P),ue._closePElement()}function Qa(ue){ue.openElements.hasInListItemScope(je.LI)&&(ue.openElements.generateImpliedEndTagsWithExclusion(je.LI),ue.openElements.popUntilTagNamePopped(je.LI))}function Au(ue,pe){const Ze=pe.tagID;ue.openElements.hasInScope(Ze)&&(ue.openElements.generateImpliedEndTagsWithExclusion(Ze),ue.openElements.popUntilTagNamePopped(Ze))}function Io(ue){ue.openElements.hasNumberedHeaderInScope()&&(ue.openElements.generateImpliedEndTags(),ue.openElements.popUntilNumberedHeaderPopped())}function vs(ue,pe){const Ze=pe.tagID;ue.openElements.hasInScope(Ze)&&(ue.openElements.generateImpliedEndTags(),ue.openElements.popUntilTagNamePopped(Ze),ue.activeFormattingElements.clearToLastMarker())}function wo(ue){ue._reconstructActiveFormattingElements(),ue._insertFakeElement(Zt.BR,je.BR),ue.openElements.pop(),ue.framesetOk=!1}function Wo(ue,pe){const Ze=pe.tagName,Ot=pe.tagID;for(let jn=ue.openElements.stackTop;jn>0;jn--){const bi=ue.openElements.items[jn],Gi=ue.openElements.tagIDs[jn];if(Ot===Gi&&(Ot!==je.UNKNOWN||ue.treeAdapter.getTagName(bi)===Ze)){ue.openElements.generateImpliedEndTagsWithExclusion(Ot),ue.openElements.stackTop>=jn&&ue.openElements.shortenToLength(jn);break}if(ue._isSpecialElement(bi,Gi))break}}function qo(ue,pe){switch(pe.tagID){case je.A:case je.B:case je.I:case je.S:case je.U:case je.EM:case je.TT:case je.BIG:case je.CODE:case je.FONT:case je.NOBR:case je.SMALL:case je.STRIKE:case je.STRONG:{Ta(ue,pe);break}case je.P:{el(ue);break}case je.DL:case je.UL:case je.OL:case je.DIR:case je.DIV:case je.NAV:case je.PRE:case je.MAIN:case je.MENU:case je.ASIDE:case je.BUTTON:case je.CENTER:case je.FIGURE:case je.FOOTER:case je.HEADER:case je.HGROUP:case je.DIALOG:case je.ADDRESS:case je.ARTICLE:case je.DETAILS:case je.SEARCH:case je.SECTION:case je.SUMMARY:case je.LISTING:case je.FIELDSET:case je.BLOCKQUOTE:case je.FIGCAPTION:{Fs(ue,pe);break}case je.LI:{Qa(ue);break}case je.DD:case je.DT:{Au(ue,pe);break}case je.H1:case je.H2:case je.H3:case je.H4:case je.H5:case je.H6:{Io(ue);break}case je.BR:{wo(ue);break}case je.BODY:{mo(ue,pe);break}case je.HTML:{Ba(ue,pe);break}case je.FORM:{ea(ue);break}case je.APPLET:case je.OBJECT:case je.MARQUEE:{vs(ue,pe);break}case je.TEMPLATE:{ia(ue,pe);break}default:Wo(ue,pe)}}function ma(ue,pe){ue.tmplInsertionModeStack.length>0?Ka(ue,pe):_i(ue,pe)}function fo(ue,pe){var Ze;pe.tagID===je.SCRIPT&&((Ze=ue.scriptHandler)===null||Ze===void 0||Ze.call(ue,ue.openElements.current)),ue.openElements.pop(),ue.insertionMode=ue.originalInsertionMode}function lc(ue,pe){ue._err(pe,Ln.eofInElementThatCanContainOnlyText),ue.openElements.pop(),ue.insertionMode=ue.originalInsertionMode,ue.onEof(pe)}function Dr(ue,pe){if(ue.openElements.currentTagId!==void 0&&ca.has(ue.openElements.currentTagId))switch(ue.pendingCharacterTokens.length=0,ue.hasNonWhitespacePendingCharacterToken=!1,ue.originalInsertionMode=ue.insertionMode,ue.insertionMode=Nn.IN_TABLE_TEXT,pe.type){case ui.CHARACTER:{du(ue,pe);break}case ui.WHITESPACE_CHARACTER:{Ac(ue,pe);break}}else Bs(ue,pe)}function gh(ue,pe){ue.openElements.clearBackToTableContext(),ue.activeFormattingElements.insertMarker(),ue._insertElement(pe,jt.HTML),ue.insertionMode=Nn.IN_CAPTION}function Co(ue,pe){ue.openElements.clearBackToTableContext(),ue._insertElement(pe,jt.HTML),ue.insertionMode=Nn.IN_COLUMN_GROUP}function ph(ue,pe){ue.openElements.clearBackToTableContext(),ue._insertFakeElement(Zt.COLGROUP,je.COLGROUP),ue.insertionMode=Nn.IN_COLUMN_GROUP,wl(ue,pe)}function Tc(ue,pe){ue.openElements.clearBackToTableContext(),ue._insertElement(pe,jt.HTML),ue.insertionMode=Nn.IN_TABLE_BODY}function Cu(ue,pe){ue.openElements.clearBackToTableContext(),ue._insertFakeElement(Zt.TBODY,je.TBODY),ue.insertionMode=Nn.IN_TABLE_BODY,Zu(ue,pe)}function Bd(ue,pe){ue.openElements.hasInTableScope(je.TABLE)&&(ue.openElements.popUntilTagNamePopped(je.TABLE),ue._resetInsertionMode(),ue._processStartTag(pe))}function sd(ue,pe){os(pe)?ue._appendElement(pe,jt.HTML):Bs(ue,pe),pe.ackSelfClosing=!0}function Ql(ue,pe){!ue.formElement&&ue.openElements.tmplCount===0&&(ue._insertElement(pe,jt.HTML),ue.formElement=ue.openElements.current,ue.openElements.pop())}function Fl(ue,pe){switch(pe.tagID){case je.TD:case je.TH:case je.TR:{Cu(ue,pe);break}case je.STYLE:case je.SCRIPT:case je.TEMPLATE:{zo(ue,pe);break}case je.COL:{ph(ue,pe);break}case je.FORM:{Ql(ue,pe);break}case je.TABLE:{Bd(ue,pe);break}case je.TBODY:case je.TFOOT:case je.THEAD:{Tc(ue,pe);break}case je.INPUT:{sd(ue,pe);break}case je.CAPTION:{gh(ue,pe);break}case je.COLGROUP:{Co(ue,pe);break}default:Bs(ue,pe)}}function To(ue,pe){switch(pe.tagID){case je.TABLE:{ue.openElements.hasInTableScope(je.TABLE)&&(ue.openElements.popUntilTagNamePopped(je.TABLE),ue._resetInsertionMode());break}case je.TEMPLATE:{ia(ue,pe);break}case je.BODY:case je.CAPTION:case je.COL:case je.COLGROUP:case je.HTML:case je.TBODY:case je.TD:case je.TFOOT:case je.TH:case je.THEAD:case je.TR:break;default:Bs(ue,pe)}}function Bs(ue,pe){const Ze=ue.fosterParentingEnabled;ue.fosterParentingEnabled=!0,As(ue,pe),ue.fosterParentingEnabled=Ze}function Ac(ue,pe){ue.pendingCharacterTokens.push(pe)}function du(ue,pe){ue.pendingCharacterTokens.push(pe),ue.hasNonWhitespacePendingCharacterToken=!0}function Nu(ue,pe){let Ze=0;if(ue.hasNonWhitespacePendingCharacterToken)for(;Ze<ue.pendingCharacterTokens.length;Ze++)Bs(ue,ue.pendingCharacterTokens[Ze]);else for(;Ze<ue.pendingCharacterTokens.length;Ze++)ue._insertCharacters(ue.pendingCharacterTokens[Ze]);ue.insertionMode=ue.originalInsertionMode,ue._processToken(pe)}const Kl=new Set([je.CAPTION,je.COL,je.COLGROUP,je.TBODY,je.TD,je.TFOOT,je.TH,je.THEAD,je.TR]);function bl(ue,pe){const Ze=pe.tagID;Kl.has(Ze)?ue.openElements.hasInTableScope(je.CAPTION)&&(ue.openElements.generateImpliedEndTags(),ue.openElements.popUntilTagNamePopped(je.CAPTION),ue.activeFormattingElements.clearToLastMarker(),ue.insertionMode=Nn.IN_TABLE,Fl(ue,pe)):Po(ue,pe)}function Vu(ue,pe){const Ze=pe.tagID;switch(Ze){case je.CAPTION:case je.TABLE:{ue.openElements.hasInTableScope(je.CAPTION)&&(ue.openElements.generateImpliedEndTags(),ue.openElements.popUntilTagNamePopped(je.CAPTION),ue.activeFormattingElements.clearToLastMarker(),ue.insertionMode=Nn.IN_TABLE,Ze===je.TABLE&&To(ue,pe));break}case je.BODY:case je.COL:case je.COLGROUP:case je.HTML:case je.TBODY:case je.TD:case je.TFOOT:case je.TH:case je.THEAD:case je.TR:break;default:qo(ue,pe)}}function wl(ue,pe){switch(pe.tagID){case je.HTML:{Po(ue,pe);break}case je.COL:{ue._appendElement(pe,jt.HTML),pe.ackSelfClosing=!0;break}case je.TEMPLATE:{zo(ue,pe);break}default:uc(ue,pe)}}function hu(ue,pe){switch(pe.tagID){case je.COLGROUP:{ue.openElements.currentTagId===je.COLGROUP&&(ue.openElements.pop(),ue.insertionMode=Nn.IN_TABLE);break}case je.TEMPLATE:{ia(ue,pe);break}case je.COL:break;default:uc(ue,pe)}}function uc(ue,pe){ue.openElements.currentTagId===je.COLGROUP&&(ue.openElements.pop(),ue.insertionMode=Nn.IN_TABLE,ue._processToken(pe))}function Zu(ue,pe){switch(pe.tagID){case je.TR:{ue.openElements.clearBackToTableBodyContext(),ue._insertElement(pe,jt.HTML),ue.insertionMode=Nn.IN_ROW;break}case je.TH:case je.TD:{ue.openElements.clearBackToTableBodyContext(),ue._insertFakeElement(Zt.TR,je.TR),ue.insertionMode=Nn.IN_ROW,dc(ue,pe);break}case je.CAPTION:case je.COL:case je.COLGROUP:case je.TBODY:case je.TFOOT:case je.THEAD:{ue.openElements.hasTableBodyContextInTableScope()&&(ue.openElements.clearBackToTableBodyContext(),ue.openElements.pop(),ue.insertionMode=Nn.IN_TABLE,Fl(ue,pe));break}default:Fl(ue,pe)}}function cc(ue,pe){const Ze=pe.tagID;switch(pe.tagID){case je.TBODY:case je.TFOOT:case je.THEAD:{ue.openElements.hasInTableScope(Ze)&&(ue.openElements.clearBackToTableBodyContext(),ue.openElements.pop(),ue.insertionMode=Nn.IN_TABLE);break}case je.TABLE:{ue.openElements.hasTableBodyContextInTableScope()&&(ue.openElements.clearBackToTableBodyContext(),ue.openElements.pop(),ue.insertionMode=Nn.IN_TABLE,To(ue,pe));break}case je.BODY:case je.CAPTION:case je.COL:case je.COLGROUP:case je.HTML:case je.TD:case je.TH:case je.TR:break;default:To(ue,pe)}}function dc(ue,pe){switch(pe.tagID){case je.TH:case je.TD:{ue.openElements.clearBackToTableRowContext(),ue._insertElement(pe,jt.HTML),ue.insertionMode=Nn.IN_CELL,ue.activeFormattingElements.insertMarker();break}case je.CAPTION:case je.COL:case je.COLGROUP:case je.TBODY:case je.TFOOT:case je.THEAD:case je.TR:{ue.openElements.hasInTableScope(je.TR)&&(ue.openElements.clearBackToTableRowContext(),ue.openElements.pop(),ue.insertionMode=Nn.IN_TABLE_BODY,Zu(ue,pe));break}default:Fl(ue,pe)}}function fu(ue,pe){switch(pe.tagID){case je.TR:{ue.openElements.hasInTableScope(je.TR)&&(ue.openElements.clearBackToTableRowContext(),ue.openElements.pop(),ue.insertionMode=Nn.IN_TABLE_BODY);break}case je.TABLE:{ue.openElements.hasInTableScope(je.TR)&&(ue.openElements.clearBackToTableRowContext(),ue.openElements.pop(),ue.insertionMode=Nn.IN_TABLE_BODY,cc(ue,pe));break}case je.TBODY:case je.TFOOT:case je.THEAD:{(ue.openElements.hasInTableScope(pe.tagID)||ue.openElements.hasInTableScope(je.TR))&&(ue.openElements.clearBackToTableRowContext(),ue.openElements.pop(),ue.insertionMode=Nn.IN_TABLE_BODY,cc(ue,pe));break}case je.BODY:case je.CAPTION:case je.COL:case je.COLGROUP:case je.HTML:case je.TD:case je.TH:break;default:To(ue,pe)}}function Mu(ue,pe){const Ze=pe.tagID;Kl.has(Ze)?(ue.openElements.hasInTableScope(je.TD)||ue.openElements.hasInTableScope(je.TH))&&(ue._closeTableCell(),dc(ue,pe)):Po(ue,pe)}function ld(ue,pe){const Ze=pe.tagID;switch(Ze){case je.TD:case je.TH:{ue.openElements.hasInTableScope(Ze)&&(ue.openElements.generateImpliedEndTags(),ue.openElements.popUntilTagNamePopped(Ze),ue.activeFormattingElements.clearToLastMarker(),ue.insertionMode=Nn.IN_ROW);break}case je.TABLE:case je.TBODY:case je.TFOOT:case je.THEAD:case je.TR:{ue.openElements.hasInTableScope(Ze)&&(ue._closeTableCell(),fu(ue,pe));break}case je.BODY:case je.CAPTION:case je.COL:case je.COLGROUP:case je.HTML:break;default:qo(ue,pe)}}function mh(ue,pe){switch(pe.tagID){case je.HTML:{Po(ue,pe);break}case je.OPTION:{ue.openElements.currentTagId===je.OPTION&&ue.openElements.pop(),ue._insertElement(pe,jt.HTML);break}case je.OPTGROUP:{ue.openElements.currentTagId===je.OPTION&&ue.openElements.pop(),ue.openElements.currentTagId===je.OPTGROUP&&ue.openElements.pop(),ue._insertElement(pe,jt.HTML);break}case je.HR:{ue.openElements.currentTagId===je.OPTION&&ue.openElements.pop(),ue.openElements.currentTagId===je.OPTGROUP&&ue.openElements.pop(),ue._appendElement(pe,jt.HTML),pe.ackSelfClosing=!0;break}case je.INPUT:case je.KEYGEN:case je.TEXTAREA:case je.SELECT:{ue.openElements.hasInSelectScope(je.SELECT)&&(ue.openElements.popUntilTagNamePopped(je.SELECT),ue._resetInsertionMode(),pe.tagID!==je.SELECT&&ue._processStartTag(pe));break}case je.SCRIPT:case je.TEMPLATE:{zo(ue,pe);break}default:}}function vh(ue,pe){switch(pe.tagID){case je.OPTGROUP:{ue.openElements.stackTop>0&&ue.openElements.currentTagId===je.OPTION&&ue.openElements.tagIDs[ue.openElements.stackTop-1]===je.OPTGROUP&&ue.openElements.pop(),ue.openElements.currentTagId===je.OPTGROUP&&ue.openElements.pop();break}case je.OPTION:{ue.openElements.currentTagId===je.OPTION&&ue.openElements.pop();break}case je.SELECT:{ue.openElements.hasInSelectScope(je.SELECT)&&(ue.openElements.popUntilTagNamePopped(je.SELECT),ue._resetInsertionMode());break}case je.TEMPLATE:{ia(ue,pe);break}default:}}function yh(ue,pe){const Ze=pe.tagID;Ze===je.CAPTION||Ze===je.TABLE||Ze===je.TBODY||Ze===je.TFOOT||Ze===je.THEAD||Ze===je.TR||Ze===je.TD||Ze===je.TH?(ue.openElements.popUntilTagNamePopped(je.SELECT),ue._resetInsertionMode(),ue._processStartTag(pe)):mh(ue,pe)}function Pa(ue,pe){const Ze=pe.tagID;Ze===je.CAPTION||Ze===je.TABLE||Ze===je.TBODY||Ze===je.TFOOT||Ze===je.THEAD||Ze===je.TR||Ze===je.TD||Ze===je.TH?ue.openElements.hasInTableScope(Ze)&&(ue.openElements.popUntilTagNamePopped(je.SELECT),ue._resetInsertionMode(),ue.onEndTag(pe)):vh(ue,pe)}function Pu(ue,pe){switch(pe.tagID){case je.BASE:case je.BASEFONT:case je.BGSOUND:case je.LINK:case je.META:case je.NOFRAMES:case je.SCRIPT:case je.STYLE:case je.TEMPLATE:case je.TITLE:{zo(ue,pe);break}case je.CAPTION:case je.COLGROUP:case je.TBODY:case je.TFOOT:case je.THEAD:{ue.tmplInsertionModeStack[0]=Nn.IN_TABLE,ue.insertionMode=Nn.IN_TABLE,Fl(ue,pe);break}case je.COL:{ue.tmplInsertionModeStack[0]=Nn.IN_COLUMN_GROUP,ue.insertionMode=Nn.IN_COLUMN_GROUP,wl(ue,pe);break}case je.TR:{ue.tmplInsertionModeStack[0]=Nn.IN_TABLE_BODY,ue.insertionMode=Nn.IN_TABLE_BODY,Zu(ue,pe);break}case je.TD:case je.TH:{ue.tmplInsertionModeStack[0]=Nn.IN_ROW,ue.insertionMode=Nn.IN_ROW,dc(ue,pe);break}default:ue.tmplInsertionModeStack[0]=Nn.IN_BODY,ue.insertionMode=Nn.IN_BODY,Po(ue,pe)}}function Uo(ue,pe){pe.tagID===je.TEMPLATE&&ia(ue,pe)}function Ka(ue,pe){ue.openElements.tmplCount>0?(ue.openElements.popUntilTagNamePopped(je.TEMPLATE),ue.activeFormattingElements.clearToLastMarker(),ue.tmplInsertionModeStack.shift(),ue._resetInsertionMode(),ue.onEof(pe)):_i(ue,pe)}function ss(ue,pe){pe.tagID===je.HTML?Po(ue,pe):Qu(ue,pe)}function ns(ue,pe){var Ze;if(pe.tagID===je.HTML){if(ue.fragmentContext||(ue.insertionMode=Nn.AFTER_AFTER_BODY),ue.options.sourceCodeLocationInfo&&ue.openElements.tagIDs[0]===je.HTML){ue._setEndLocation(ue.openElements.items[0],pe);const Ot=ue.openElements.items[1];Ot&&!(!((Ze=ue.treeAdapter.getNodeSourceCodeLocation(Ot))===null||Ze===void 0)&&Ze.endTag)&&ue._setEndLocation(Ot,pe)}}else Qu(ue,pe)}function Qu(ue,pe){ue.insertionMode=Nn.IN_BODY,As(ue,pe)}function gs(ue,pe){switch(pe.tagID){case je.HTML:{Po(ue,pe);break}case je.FRAMESET:{ue._insertElement(pe,jt.HTML);break}case je.FRAME:{ue._appendElement(pe,jt.HTML),pe.ackSelfClosing=!0;break}case je.NOFRAMES:{zo(ue,pe);break}default:}}function Lu(ue,pe){pe.tagID===je.FRAMESET&&!ue.openElements.isRootHtmlElementCurrent()&&(ue.openElements.pop(),!ue.fragmentContext&&ue.openElements.currentTagId!==je.FRAMESET&&(ue.insertionMode=Nn.AFTER_FRAMESET))}function ud(ue,pe){switch(pe.tagID){case je.HTML:{Po(ue,pe);break}case je.NOFRAMES:{zo(ue,pe);break}default:}}function cd(ue,pe){pe.tagID===je.HTML&&(ue.insertionMode=Nn.AFTER_AFTER_FRAMESET)}function _s(ue,pe){pe.tagID===je.HTML?Po(ue,pe):we(ue,pe)}function we(ue,pe){ue.insertionMode=Nn.IN_BODY,As(ue,pe)}function He(ue,pe){switch(pe.tagID){case je.HTML:{Po(ue,pe);break}case je.NOFRAMES:{zo(ue,pe);break}default:}}function Qe(ue,pe){pe.chars=Fn,ue._insertCharacters(pe)}function tt(ue,pe){ue._insertCharacters(pe),ue.framesetOk=!1}function Et(ue){for(;ue.treeAdapter.getNamespaceURI(ue.openElements.current)!==jt.HTML&&ue.openElements.currentTagId!==void 0&&!ue._isIntegrationPoint(ue.openElements.currentTagId,ue.openElements.current);)ue.openElements.pop()}function wt(ue,pe){if(Go(pe))Et(ue),ue._startTagOutsideForeignContent(pe);else{const Ze=ue._getAdjustedCurrentElement(),Ot=ue.treeAdapter.getNamespaceURI(Ze);Ot===jt.MATHML?Jo(pe):Ot===jt.SVG&&(pn(pe),Yo(pe)),ra(pe),pe.selfClosing?ue._appendElement(pe,Ot):ue._insertElement(pe,Ot),pe.ackSelfClosing=!0}}function Bt(ue,pe){if(pe.tagID===je.P||pe.tagID===je.BR){Et(ue),ue._endTagOutsideForeignContent(pe);return}for(let Ze=ue.openElements.stackTop;Ze>0;Ze--){const Ot=ue.openElements.items[Ze];if(ue.treeAdapter.getNamespaceURI(Ot)===jt.HTML){ue._endTagOutsideForeignContent(pe);break}const jn=ue.treeAdapter.getTagName(Ot);if(jn.toLowerCase()===pe.tagName){pe.tagName=jn,ue.openElements.shortenToLength(Ze);break}}}const Qt=/["$&'<>\u0080-\uFFFF]/g,_n=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),Hn=String.prototype.codePointAt==null?(ue,pe)=>(ue.charCodeAt(pe)&64512)===55296?(ue.charCodeAt(pe)-55296)*1024+ue.charCodeAt(pe+1)-56320+65536:ue.charCodeAt(pe):(ue,pe)=>ue.codePointAt(pe);function xn(ue){let pe="",Ze=0,Ot;for(;(Ot=Qt.exec(ue))!==null;){const{index:jn}=Ot,bi=ue.charCodeAt(jn),Gi=_n.get(bi);Gi===void 0?(pe+=`${ue.substring(Ze,jn)}&#x${Hn(ue,jn).toString(16)};`,Ze=Qt.lastIndex+=+((bi&64512)===55296)):(pe+=ue.substring(Ze,jn)+Gi,Ze=jn+1)}return pe+ue.substr(Ze)}const ri=null;function $n(ue,pe){return function(Ot){let jn,bi=0,Gi="";for(;jn=ue.exec(Ot);)bi!==jn.index&&(Gi+=Ot.substring(bi,jn.index)),Gi+=pe.get(jn[0].charCodeAt(0)),bi=jn.index+1;return Gi+Ot.substring(bi)}}const Pn=null,Br=$n(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),Xr=$n(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),so=new Set([Zt.AREA,Zt.BASE,Zt.BASEFONT,Zt.BGSOUND,Zt.BR,Zt.COL,Zt.EMBED,Zt.FRAME,Zt.HR,Zt.IMG,Zt.INPUT,Zt.KEYGEN,Zt.LINK,Zt.META,Zt.PARAM,Zt.SOURCE,Zt.TRACK,Zt.WBR]);function Er(ue,pe){return pe.treeAdapter.isElementNode(ue)&&pe.treeAdapter.getNamespaceURI(ue)===NS.HTML&&so.has(pe.treeAdapter.getTagName(ue))}const zr={treeAdapter:yo,scriptingEnabled:!0};function Yr(ue,pe){const Ze=Mo(Mo({},zr),pe);return Er(ue,Ze)?"":sa(ue,Ze)}function aa(ue,pe){const Ze=Mo(Mo({},zr),pe);return or(ue,Ze)}function sa(ue,pe){let Ze="";const Ot=pe.treeAdapter.isElementNode(ue)&&pe.treeAdapter.getTagName(ue)===$.TEMPLATE&&pe.treeAdapter.getNamespaceURI(ue)===NS.HTML?pe.treeAdapter.getTemplateContent(ue):ue,jn=pe.treeAdapter.getChildNodes(Ot);if(jn)for(const bi of jn)Ze+=or(bi,pe);return Ze}function or(ue,pe){return pe.treeAdapter.isElementNode(ue)?da(ue,pe):pe.treeAdapter.isTextNode(ue)?ta(ue,pe):pe.treeAdapter.isCommentNode(ue)?Fr(ue,pe):pe.treeAdapter.isDocumentTypeNode(ue)?js(ue,pe):""}function da(ue,pe){const Ze=pe.treeAdapter.getTagName(ue);return`<${Ze}${ka(ue,pe)}>${Er(ue,pe)?"":`${sa(ue,pe)}</${Ze}>`}`}function ka(ue,{treeAdapter:pe}){let Ze="";for(const Ot of pe.getAttrList(ue)){if(Ze+=" ",Ot.namespace)switch(Ot.namespace){case NS.XML:{Ze+=`xml:${Ot.name}`;break}case NS.XMLNS:{Ot.name!=="xmlns"&&(Ze+="xmlns:"),Ze+=Ot.name;break}case NS.XLINK:{Ze+=`xlink:${Ot.name}`;break}default:Ze+=`${Ot.prefix}:${Ot.name}`}else Ze+=Ot.name;Ze+=`="${escapeAttribute(Ot.value)}"`}return Ze}function ta(ue,pe){const{treeAdapter:Ze}=pe,Ot=Ze.getTextNodeContent(ue),jn=Ze.getParentNode(ue),bi=jn&&Ze.isElementNode(jn)&&Ze.getTagName(jn);return bi&&Ze.getNamespaceURI(jn)===NS.HTML&&hasUnescapedText(bi,pe.scriptingEnabled)?Ot:escapeText(Ot)}function Fr(ue,{treeAdapter:pe}){return`<!--${pe.getCommentNodeContent(ue)}-->`}function js(ue,{treeAdapter:pe}){return`<!DOCTYPE ${pe.getDocumentTypeNodeName(ue)}>`}function ya(ue,pe){return Parser.parse(ue,pe)}function oo(ue,pe,Ze){typeof ue=="string"&&(Ze=pe,pe=ue,ue=null);const Ot=Parser.getFragmentParser(ue,Ze);return Ot.tokenizer.write(pe,!0),Ot.getFragment()}var to=de(17970),Do=de(10528);const La=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,ps=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Ms={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function fl(ue,pe){const Ze=dd(ue),Ot=ut("type",{handlers:{root:zs,element:Tl,text:qn,comment:Xl,doctype:Ps,raw:ls},unknown:Ia}),jn={parser:Ze?new Ua(Ms):Ua.getFragmentParser(void 0,Ms),handle(Ur){Ot(Ur,jn)},stitches:!1,options:pe||{}};Ot(ue,jn),Al(jn,(0,to.Pk)());const bi=Ze?jn.parser.document:jn.parser.getFragment(),Gi=st(bi,{file:jn.options.file});return jn.stitches&&(0,Do.Vn)(Gi,"comment",function(Ur,no,Si){const vr=Ur;if(vr.value.stitch&&Si&&no!==void 0){const lo=Si.children;return lo[no]=vr.value.stitch,no}}),Gi.type==="root"&&Gi.children.length===1&&Gi.children[0].type===ue.type?Gi.children[0]:Gi}function Zn(ue,pe){let Ze=-1;if(ue)for(;++Ze<ue.length;)pe.handle(ue[Ze])}function zs(ue,pe){Zn(ue.children,pe)}function Tl(ue,pe){gu(ue,pe),Zn(ue.children,pe),Iu(ue,pe)}function qn(ue,pe){pe.parser.tokenizer.state>4&&(pe.parser.tokenizer.state=0);const Ze={type:ui.CHARACTER,chars:ue.value,location:_l(ue)};Al(pe,(0,to.Pk)(ue)),pe.parser.currentToken=Ze,pe.parser._processToken(pe.parser.currentToken)}function Ps(ue,pe){const Ze={type:ui.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:_l(ue)};Al(pe,(0,to.Pk)(ue)),pe.parser.currentToken=Ze,pe.parser._processToken(pe.parser.currentToken)}function Bl(ue,pe){pe.stitches=!0;const Ze=Ku(ue);if("children"in ue&&"children"in Ze){const Ot=fl({type:"root",children:ue.children},pe.options);Ze.children=Ot.children}Xl({type:"comment",value:{stitch:Ze}},pe)}function Xl(ue,pe){const Ze=ue.value,Ot={type:ui.COMMENT,data:Ze,location:_l(ue)};Al(pe,(0,to.Pk)(ue)),pe.parser.currentToken=Ot,pe.parser._processToken(pe.parser.currentToken)}function ls(ue,pe){if(pe.parser.tokenizer.preprocessor.html="",pe.parser.tokenizer.preprocessor.pos=-1,pe.parser.tokenizer.preprocessor.lastGapPos=-2,pe.parser.tokenizer.preprocessor.gapStack=[],pe.parser.tokenizer.preprocessor.skipNextNewLine=!1,pe.parser.tokenizer.preprocessor.lastChunkWritten=!1,pe.parser.tokenizer.preprocessor.endOfChunkHit=!1,pe.parser.tokenizer.preprocessor.isEol=!1,ys(pe,(0,to.Pk)(ue)),pe.parser.tokenizer.write(pe.options.tagfilter?ue.value.replace(La,"<$1$2"):ue.value,!1),pe.parser.tokenizer._runParsingLoop(),pe.parser.tokenizer.state===72||pe.parser.tokenizer.state===78){pe.parser.tokenizer.preprocessor.lastChunkWritten=!0;const Ze=pe.parser.tokenizer._consume();pe.parser.tokenizer._callState(Ze)}}function Ia(ue,pe){const Ze=ue;if(pe.options.passThrough&&pe.options.passThrough.includes(Ze.type))Bl(Ze,pe);else{let Ot="";throw ps.has(Ze.type)&&(Ot=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+Ze.type+"` node"+Ot)}}function Al(ue,pe){ys(ue,pe);const Ze=ue.parser.tokenizer.currentCharacterToken;Ze&&Ze.location&&(Ze.location.endLine=ue.parser.tokenizer.preprocessor.line,Ze.location.endCol=ue.parser.tokenizer.preprocessor.col+1,Ze.location.endOffset=ue.parser.tokenizer.preprocessor.offset+1,ue.parser.currentToken=Ze,ue.parser._processToken(ue.parser.currentToken)),ue.parser.tokenizer.paused=!1,ue.parser.tokenizer.inLoop=!1,ue.parser.tokenizer.active=!1,ue.parser.tokenizer.returnState=ar.DATA,ue.parser.tokenizer.charRefCode=-1,ue.parser.tokenizer.consumedAfterSnapshot=-1,ue.parser.tokenizer.currentLocation=null,ue.parser.tokenizer.currentCharacterToken=null,ue.parser.tokenizer.currentToken=null,ue.parser.tokenizer.currentAttr={name:"",value:""}}function ys(ue,pe){if(pe&&pe.offset!==void 0){const Ze={startLine:pe.line,startCol:pe.column,startOffset:pe.offset,endLine:-1,endCol:-1,endOffset:-1};ue.parser.tokenizer.preprocessor.lineStartPos=-pe.column+1,ue.parser.tokenizer.preprocessor.droppedBufferSize=pe.offset,ue.parser.tokenizer.preprocessor.line=pe.line,ue.parser.tokenizer.currentLocation=Ze}}function gu(ue,pe){const Ze=ue.tagName.toLowerCase();if(pe.parser.tokenizer.state===ar.PLAINTEXT)return;Al(pe,(0,to.Pk)(ue));const Ot=pe.parser.openElements.current;let jn="namespaceURI"in Ot?Ot.namespaceURI:Xe.t.html;jn===Xe.t.html&&Ze==="svg"&&(jn=Xe.t.svg);const bi=Vt(Nf(Mo({},ue),{children:[]}),{space:jn===Xe.t.svg?"svg":"html"}),Gi={type:ui.START_TAG,tagName:Ze,tagID:pi(Ze),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in bi?bi.attrs:[],location:_l(ue)};pe.parser.currentToken=Gi,pe.parser._processToken(pe.parser.currentToken),pe.parser.tokenizer.lastStartTagName=Ze}function Iu(ue,pe){const Ze=ue.tagName.toLowerCase();if(!pe.parser.tokenizer.inForeignNode&&nn.includes(Ze)||pe.parser.tokenizer.state===ar.PLAINTEXT)return;Al(pe,(0,to.rb)(ue));const Ot={type:ui.END_TAG,tagName:Ze,tagID:pi(Ze),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:_l(ue)};pe.parser.currentToken=Ot,pe.parser._processToken(pe.parser.currentToken),Ze===pe.parser.tokenizer.lastStartTagName&&(pe.parser.tokenizer.state===ar.RCDATA||pe.parser.tokenizer.state===ar.RAWTEXT||pe.parser.tokenizer.state===ar.SCRIPT_DATA)&&(pe.parser.tokenizer.state=ar.DATA)}function dd(ue){const pe=ue.type==="root"?ue.children[0]:ue;return!!(pe&&(pe.type==="doctype"||pe.type==="element"&&pe.tagName.toLowerCase()==="html"))}function _l(ue){const pe=(0,to.Pk)(ue)||{line:void 0,column:void 0,offset:void 0},Ze=(0,to.rb)(ue)||{line:void 0,column:void 0,offset:void 0};return{startLine:pe.line,startCol:pe.column,startOffset:pe.offset,endLine:Ze.line,endCol:Ze.column,endOffset:Ze.offset}}function Ku(ue){return"children"in ue?(0,Ie.ZP)(Nf(Mo({},ue),{children:[]})):(0,Ie.ZP)(ue)}function _d(ue){return function(pe,Ze){return fl(pe,Nf(Mo({},ue),{file:Ze}))}}},10787:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return qe}});function le(mt){if(typeof mt!="string")throw new TypeError("Expected a string");return mt.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Ie=de(2348),De=de(10502);function Le(mt,st,Nt){const _e=Nt||{},te=(0,De.O)(_e.ignore||[]),ne=Ye(st);let he=-1;for(;++he<ne.length;)(0,Ie.S4)(mt,"text",se);function se(Se,Ae){let Oe=-1,Be;for(;++Oe<Ae.length;){const Ke=Ae[Oe],rt=Be?Be.children:void 0;if(te(Ke,rt?rt.indexOf(Ke):void 0,Be))return;Be=Ke}if(Be)return ge(Se,Ae)}function ge(Se,Ae){const Oe=Ae[Ae.length-1],Be=ne[he][0],Ke=ne[he][1];let rt=0;const ht=Oe.children.indexOf(Se);let bt=!1,at=[];Be.lastIndex=0;let At=Be.exec(Se.value);for(;At;){const It=At.index,$t={index:At.index,input:At.input,stack:[...Ae,Se]};let Tn=Ke(...At,$t);if(typeof Tn=="string"&&(Tn=Tn.length>0?{type:"text",value:Tn}:void 0),Tn===!1?Be.lastIndex=It+1:(rt!==It&&at.push({type:"text",value:Se.value.slice(rt,It)}),Array.isArray(Tn)?at.push(...Tn):Tn&&at.push(Tn),rt=It+At[0].length,bt=!0),!Be.global)break;At=Be.exec(Se.value)}return bt?(rt<Se.value.length&&at.push({type:"text",value:Se.value.slice(rt)}),Oe.children.splice(ht,1,...at)):at=[Se],ht+at.length}}function Ye(mt){const st=[];if(!Array.isArray(mt))throw new TypeError("Expected find and replace tuple or list of tuples");const Nt=!mt[0]||Array.isArray(mt[0])?mt:[mt];let _e=-1;for(;++_e<Nt.length;){const te=Nt[_e];st.push([Re(te[0]),Ve(te[1])])}return st}function Re(mt){return typeof mt=="string"?new RegExp(le(mt),"g"):mt}function Ve(mt){return typeof mt=="function"?mt:function(){return mt}}function Je(mt){Le(mt,[/\r?\n|\r/g,Xe])}function Xe(){return{type:"break"}}function qe(){return function(mt){Je(mt)}}},30084:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return ne}});var le=de(87342);function Ie(he,se){const ge=String(he);let Se=ge.indexOf(se),Ae=Se,Oe=0,Be=0;if(typeof se!="string")throw new TypeError("Expected substring");for(;Se!==-1;)Se===Ae?++Oe>Be&&(Be=Oe):Oe=1,Ae=Se+se.length,Se=ge.indexOf(se,Ae);return Be}function De(){return{enter:{mathFlow:he,mathFlowFenceMeta:se,mathText:Oe},exit:{mathFlow:Ae,mathFlowFence:Se,mathFlowFenceMeta:ge,mathFlowValue:Ke,mathText:Be,mathTextData:Ke}};function he(rt){const ot={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[ot]}},rt)}function se(){this.buffer()}function ge(){const rt=this.resume(),ot=this.stack[this.stack.length-1];(0,le.ok)(ot.type==="math"),ot.meta=rt}function Se(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function Ae(rt){const ot=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),ht=this.stack[this.stack.length-1];(0,le.ok)(ht.type==="math"),this.exit(rt),ht.value=ot;const bt=ht.data.hChildren[0];(0,le.ok)(bt.type==="element"),(0,le.ok)(bt.tagName==="code"),bt.children.push({type:"text",value:ot}),this.data.mathFlowInside=void 0}function Oe(rt){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},rt),this.buffer()}function Be(rt){const ot=this.resume(),ht=this.stack[this.stack.length-1];(0,le.ok)(ht.type==="inlineMath"),this.exit(rt),ht.value=ot,ht.data.hChildren.push({type:"text",value:ot})}function Ke(rt){this.config.enter.data.call(this,rt),this.config.exit.data.call(this,rt)}}function Le(he){let se=(he||{}).singleDollarTextMath;return se==null&&(se=!0),Se.peek=Ae,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
|
|
|
`,inConstruct:"mathFlowMeta"},{character:"$",after:se?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:ge,inlineMath:Se}};function ge(Oe,Be,Ke,rt){const ot=Oe.value||"",ht=Ke.createTracker(rt),bt="$".repeat(Math.max(Ie(ot,"$")+1,2)),at=Ke.enter("mathFlow");let At=ht.move(bt);if(Oe.meta){const It=Ke.enter("mathFlowMeta");At+=ht.move(Ke.safe(Oe.meta,Mo({after:`
|
|
|
`,before:At,encode:["$"]},ht.current()))),It()}return At+=ht.move(`
|
|
|
`),ot&&(At+=ht.move(ot+`
|
|
|
`)),At+=ht.move(bt),at(),At}function Se(Oe,Be,Ke){let rt=Oe.value||"",ot=1;for(se||ot++;new RegExp("(^|[^$])"+"\\$".repeat(ot)+"([^$]|$)").test(rt);)ot++;const ht="$".repeat(ot);/[^ \r\n]/.test(rt)&&(/^[ \r\n]/.test(rt)&&/[ \r\n]$/.test(rt)||/^\$|\$$/.test(rt))&&(rt=" "+rt+" ");let bt=-1;for(;++bt<Ke.unsafe.length;){const at=Ke.unsafe[bt];if(!at.atBreak)continue;const At=Ke.compilePattern(at);let It;for(;It=At.exec(rt);){let $t=It.index;rt.codePointAt($t)===10&&rt.codePointAt($t-1)===13&&$t--,rt=rt.slice(0,$t)+" "+rt.slice(It.index+1)}}return ht+rt+ht}function Ae(){return"$"}}var Ye=de(26735),Re=de(80722);const Ve={tokenize:Xe,concrete:!0,name:"mathFlow"},Je={tokenize:qe,partial:!0};function Xe(he,se,ge){const Se=this,Ae=Se.events[Se.events.length-1],Oe=Ae&&Ae[1].type==="linePrefix"?Ae[2].sliceSerialize(Ae[1],!0).length:0;let Be=0;return Ke;function Ke(un){return he.enter("mathFlow"),he.enter("mathFlowFence"),he.enter("mathFlowFenceSequence"),rt(un)}function rt(un){return un===36?(he.consume(un),Be++,rt):Be<2?ge(un):(he.exit("mathFlowFenceSequence"),(0,Ye.f)(he,ot,"whitespace")(un))}function ot(un){return un===null||(0,Re.Ch)(un)?bt(un):(he.enter("mathFlowFenceMeta"),he.enter("chunkString",{contentType:"string"}),ht(un))}function ht(un){return un===null||(0,Re.Ch)(un)?(he.exit("chunkString"),he.exit("mathFlowFenceMeta"),bt(un)):un===36?ge(un):(he.consume(un),ht)}function bt(un){return he.exit("mathFlowFence"),Se.interrupt?se(un):he.attempt(Je,at,Tn)(un)}function at(un){return he.attempt({tokenize:yn,partial:!0},Tn,At)(un)}function At(un){return(Oe?(0,Ye.f)(he,It,"linePrefix",Oe+1):It)(un)}function It(un){return un===null?Tn(un):(0,Re.Ch)(un)?he.attempt(Je,at,Tn)(un):(he.enter("mathFlowValue"),$t(un))}function $t(un){return un===null||(0,Re.Ch)(un)?(he.exit("mathFlowValue"),It(un)):(he.consume(un),$t)}function Tn(un){return he.exit("mathFlow"),se(un)}function yn(un,On,xt){let ct=0;return(0,Ye.f)(un,it,"linePrefix",Se.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function it(Pt){return un.enter("mathFlowFence"),un.enter("mathFlowFenceSequence"),cn(Pt)}function cn(Pt){return Pt===36?(ct++,un.consume(Pt),cn):ct<Be?xt(Pt):(un.exit("mathFlowFenceSequence"),(0,Ye.f)(un,An,"whitespace")(Pt))}function An(Pt){return Pt===null||(0,Re.Ch)(Pt)?(un.exit("mathFlowFence"),On(Pt)):xt(Pt)}}}function qe(he,se,ge){const Se=this;return Ae;function Ae(Be){return Be===null?se(Be):(he.enter("lineEnding"),he.consume(Be),he.exit("lineEnding"),Oe)}function Oe(Be){return Se.parser.lazy[Se.now().line]?ge(Be):se(Be)}}function mt(he){let ge=(he||{}).singleDollarTextMath;return ge==null&&(ge=!0),{tokenize:Se,resolve:st,previous:Nt,name:"mathText"};function Se(Ae,Oe,Be){const Ke=this;let rt=0,ot,ht;return bt;function bt(Tn){return Ae.enter("mathText"),Ae.enter("mathTextSequence"),at(Tn)}function at(Tn){return Tn===36?(Ae.consume(Tn),rt++,at):rt<2&&!ge?Be(Tn):(Ae.exit("mathTextSequence"),At(Tn))}function At(Tn){return Tn===null?Be(Tn):Tn===36?(ht=Ae.enter("mathTextSequence"),ot=0,$t(Tn)):Tn===32?(Ae.enter("space"),Ae.consume(Tn),Ae.exit("space"),At):(0,Re.Ch)(Tn)?(Ae.enter("lineEnding"),Ae.consume(Tn),Ae.exit("lineEnding"),At):(Ae.enter("mathTextData"),It(Tn))}function It(Tn){return Tn===null||Tn===32||Tn===36||(0,Re.Ch)(Tn)?(Ae.exit("mathTextData"),At(Tn)):(Ae.consume(Tn),It)}function $t(Tn){return Tn===36?(Ae.consume(Tn),ot++,$t):ot===rt?(Ae.exit("mathTextSequence"),Ae.exit("mathText"),Oe(Tn)):(ht.type="mathTextData",It(Tn))}}}function st(he){let se=he.length-4,ge=3,Se,Ae;if((he[ge][1].type==="lineEnding"||he[ge][1].type==="space")&&(he[se][1].type==="lineEnding"||he[se][1].type==="space")){for(Se=ge;++Se<se;)if(he[Se][1].type==="mathTextData"){he[se][1].type="mathTextPadding",he[ge][1].type="mathTextPadding",ge+=2,se-=2;break}}for(Se=ge-1,se++;++Se<=se;)Ae===void 0?Se!==se&&he[Se][1].type!=="lineEnding"&&(Ae=Se):(Se===se||he[Se][1].type==="lineEnding")&&(he[Ae][1].type="mathTextData",Se!==Ae+2&&(he[Ae][1].end=he[Se-1][1].end,he.splice(Ae+2,Se-Ae-2),se-=Se-Ae-2,Se=Ae+2),Ae=void 0);return he}function Nt(he){return he!==36||this.events[this.events.length-1][1].type==="characterEscape"}function _e(he){return{flow:{36:Ve},text:{36:mt(he)}}}const te={};function ne(he){const se=this,ge=he||te,Se=se.data(),Ae=Se.micromarkExtensions||(Se.micromarkExtensions=[]),Oe=Se.fromMarkdownExtensions||(Se.fromMarkdownExtensions=[]),Be=Se.toMarkdownExtensions||(Se.toMarkdownExtensions=[]);Ae.push(_e(ge)),Oe.push(De()),Be.push(Le(ge))}},16722:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return Je}});const le=Xe=>typeof Xe=="object"&&Xe!=null&&Xe.nodeType===1,Ie=(Xe,qe)=>(!qe||Xe!=="hidden")&&Xe!=="visible"&&Xe!=="clip",De=(Xe,qe)=>{if(Xe.clientHeight<Xe.scrollHeight||Xe.clientWidth<Xe.scrollWidth){const mt=getComputedStyle(Xe,null);return Ie(mt.overflowY,qe)||Ie(mt.overflowX,qe)||(st=>{const Nt=(_e=>{if(!_e.ownerDocument||!_e.ownerDocument.defaultView)return null;try{return _e.ownerDocument.defaultView.frameElement}catch(te){return null}})(st);return!!Nt&&(Nt.clientHeight<st.scrollHeight||Nt.clientWidth<st.scrollWidth)})(Xe)}return!1},Le=(Xe,qe,mt,st,Nt,_e,te,ne)=>_e<Xe&&te>qe||_e>Xe&&te<qe?0:_e<=Xe&&ne<=mt||te>=qe&&ne>=mt?_e-Xe-st:te>qe&&ne<mt||_e<Xe&&ne>mt?te-qe+Nt:0,Ye=Xe=>{const qe=Xe.parentElement;return qe==null?Xe.getRootNode().host||null:qe},Re=(Xe,qe)=>{var mt,st,Nt,_e;if(typeof document=="undefined")return[];const{scrollMode:te,block:ne,inline:he,boundary:se,skipOverflowHiddenElements:ge}=qe,Se=typeof se=="function"?se:An=>An!==se;if(!le(Xe))throw new TypeError("Invalid target");const Ae=document.scrollingElement||document.documentElement,Oe=[];let Be=Xe;for(;le(Be)&&Se(Be);){if(Be=Ye(Be),Be===Ae){Oe.push(Be);break}Be!=null&&Be===document.body&&De(Be)&&!De(document.documentElement)||Be!=null&&De(Be,ge)&&Oe.push(Be)}const Ke=(st=(mt=window.visualViewport)==null?void 0:mt.width)!=null?st:innerWidth,rt=(_e=(Nt=window.visualViewport)==null?void 0:Nt.height)!=null?_e:innerHeight,{scrollX:ot,scrollY:ht}=window,{height:bt,width:at,top:At,right:It,bottom:$t,left:Tn}=Xe.getBoundingClientRect(),{top:yn,right:un,bottom:On,left:xt}=(An=>{const Pt=window.getComputedStyle(An);return{top:parseFloat(Pt.scrollMarginTop)||0,right:parseFloat(Pt.scrollMarginRight)||0,bottom:parseFloat(Pt.scrollMarginBottom)||0,left:parseFloat(Pt.scrollMarginLeft)||0}})(Xe);let ct=ne==="start"||ne==="nearest"?At-yn:ne==="end"?$t+On:At+bt/2-yn+On,it=he==="center"?Tn+at/2-xt+un:he==="end"?It+un:Tn-xt;const cn=[];for(let An=0;An<Oe.length;An++){const Pt=Oe[An],{height:an,width:ln,top:zn,right:En,bottom:ii,left:kt}=Pt.getBoundingClientRect();if(te==="if-needed"&&At>=0&&Tn>=0&&$t<=rt&&It<=Ke&&(Pt===Ae&&!De(Pt)||At>=zn&&$t<=ii&&Tn>=kt&&It<=En))return cn;const Kn=getComputedStyle(Pt),yi=parseInt(Kn.borderLeftWidth,10),et=parseInt(Kn.borderTopWidth,10),ze=parseInt(Kn.borderRightWidth,10),xe=parseInt(Kn.borderBottomWidth,10);let Te=0,Me=0;const Ce="offsetWidth"in Pt?Pt.offsetWidth-Pt.clientWidth-yi-ze:0,ut="offsetHeight"in Pt?Pt.offsetHeight-Pt.clientHeight-et-xe:0,Lt="offsetWidth"in Pt?Pt.offsetWidth===0?0:ln/Pt.offsetWidth:0,Mt="offsetHeight"in Pt?Pt.offsetHeight===0?0:an/Pt.offsetHeight:0;if(Ae===Pt)Te=ne==="start"?ct:ne==="end"?ct-rt:ne==="nearest"?Le(ht,ht+rt,rt,et,xe,ht+ct,ht+ct+bt,bt):ct-rt/2,Me=he==="start"?it:he==="center"?it-Ke/2:he==="end"?it-Ke:Le(ot,ot+Ke,Ke,yi,ze,ot+it,ot+it+at,at),Te=Math.max(0,Te+ht),Me=Math.max(0,Me+ot);else{Te=ne==="start"?ct-zn-et:ne==="end"?ct-ii+xe+ut:ne==="nearest"?Le(zn,ii,an,et,xe+ut,ct,ct+bt,bt):ct-(zn+an/2)+ut/2,Me=he==="start"?it-kt-yi:he==="center"?it-(kt+ln/2)+Ce/2:he==="end"?it-En+ze+Ce:Le(kt,En,ln,yi,ze+Ce,it,it+at,at);const{scrollLeft:Yt,scrollTop:Vt}=Pt;Te=Mt===0?0:Math.max(0,Math.min(Vt+Te/Mt,Pt.scrollHeight-an/Mt+ut)),Me=Lt===0?0:Math.max(0,Math.min(Yt+Me/Lt,Pt.scrollWidth-ln/Lt+Ce)),ct+=Vt-Te,it+=Yt-Me}cn.push({el:Pt,top:Te,left:Me})}return cn},Ve=Xe=>Xe===!1?{block:"end",inline:"nearest"}:(qe=>qe===Object(qe)&&Object.keys(qe).length!==0)(Xe)?Xe:{block:"start",inline:"nearest"};function Je(Xe,qe){if(!Xe.isConnected||!(Nt=>{let _e=Nt;for(;_e&&_e.parentNode;){if(_e.parentNode===document)return!0;_e=_e.parentNode instanceof ShadowRoot?_e.parentNode.host:_e.parentNode}return!1})(Xe))return;const mt=(Nt=>{const _e=window.getComputedStyle(Nt);return{top:parseFloat(_e.scrollMarginTop)||0,right:parseFloat(_e.scrollMarginRight)||0,bottom:parseFloat(_e.scrollMarginBottom)||0,left:parseFloat(_e.scrollMarginLeft)||0}})(Xe);if((Nt=>typeof Nt=="object"&&typeof Nt.behavior=="function")(qe))return qe.behavior(Re(Xe,qe));const st=typeof qe=="boolean"||qe==null?void 0:qe.behavior;for(const{el:Nt,top:_e,left:te}of Re(Xe,Ve(qe))){const ne=_e-mt.top+mt.bottom,he=te-mt.left+mt.right;Nt.scroll({top:ne,left:he,behavior:st})}}},71523:function(Ge,be,de){"use strict";de.d(be,{P:function(){return Ie},Q:function(){return le}});function le(De){const Le=String(De||"").trim();return Le?Le.split(/[ \t\n\r\f]+/g):[]}function Ie(De){return De.join(" ").trim()}},10502:function(Ge,be,de){"use strict";de.d(be,{O:function(){return Ie}});const le=function(Xe,qe,mt,st,Nt){const _e=Ie(qe);if(mt!=null&&(typeof mt!="number"||mt<0||mt===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(st!=null&&(!le(st)||!st.children))throw new Error("Expected parent node");if(st==null!=(mt==null))throw new Error("Expected both parent and index");return Je(Xe)?_e.call(Nt,Xe,mt,st):!1},Ie=function(Xe){if(Xe==null)return Ve;if(typeof Xe=="function")return Re(Xe);if(typeof Xe=="object")return Array.isArray(Xe)?De(Xe):Le(Xe);if(typeof Xe=="string")return Ye(Xe);throw new Error("Expected function, string, or object as test")};function De(Xe){const qe=[];let mt=-1;for(;++mt<Xe.length;)qe[mt]=Ie(Xe[mt]);return Re(st);function st(...Nt){let _e=-1;for(;++_e<qe.length;)if(qe[_e].apply(this,Nt))return!0;return!1}}function Le(Xe){const qe=Xe;return Re(mt);function mt(st){const Nt=st;let _e;for(_e in Xe)if(Nt[_e]!==qe[_e])return!1;return!0}}function Ye(Xe){return Re(qe);function qe(mt){return mt&&mt.type===Xe}}function Re(Xe){return qe;function qe(mt,st,Nt){return!!(Je(mt)&&Xe.call(this,mt,typeof st=="number"?st:void 0,Nt||void 0))}}function Ve(){return!0}function Je(Xe){return Xe!==null&&typeof Xe=="object"&&"type"in Xe}},17970:function(Ge,be,de){"use strict";de.d(be,{FK:function(){return Le},Pk:function(){return Ie},rb:function(){return le}});const le=De("end"),Ie=De("start");function De(Ye){return Re;function Re(Ve){const Je=Ve&&Ve.position&&Ve.position[Ye]||{};if(typeof Je.line=="number"&&Je.line>0&&typeof Je.column=="number"&&Je.column>0)return{line:Je.line,column:Je.column,offset:typeof Je.offset=="number"&&Je.offset>-1?Je.offset:void 0}}}function Le(Ye){const Re=Ie(Ye),Ve=le(Ye);if(Re&&Ve)return{start:Re,end:Ve}}},2348:function(Ge,be,de){"use strict";de.d(be,{AM:function(){return Re},S4:function(){return Ve}});var le=de(10502);function Ie(Xe){return Xe}const De=[],Le=!0,Ye=!1,Re="skip";function Ve(Xe,qe,mt,st){let Nt;typeof qe=="function"&&typeof mt!="function"?(st=mt,mt=qe):Nt=qe;const _e=(0,le.O)(Nt),te=st?-1:1;ne(Xe,void 0,[])();function ne(he,se,ge){const Se=he&&typeof he=="object"?he:{};if(typeof Se.type=="string"){const Oe=typeof Se.tagName=="string"?Se.tagName:typeof Se.name=="string"?Se.name:void 0;Object.defineProperty(Ae,"name",{value:"node ("+(he.type+(Oe?"<"+Oe+">":""))+")"})}return Ae;function Ae(){let Oe=De,Be,Ke,rt;if((!qe||_e(he,se,ge[ge.length-1]||void 0))&&(Oe=Je(mt(he,ge)),Oe[0]===Ye))return Oe;if("children"in he&&he.children){const ot=he;if(ot.children&&Oe[0]!==Re)for(Ke=(st?ot.children.length:-1)+te,rt=ge.concat(ot);Ke>-1&&Ke<ot.children.length;){const ht=ot.children[Ke];if(Be=ne(ht,Ke,rt)(),Be[0]===Ye)return Be;Ke=typeof Be[1]=="number"?Be[1]:Ke+te}}return Oe}}}function Je(Xe){return Array.isArray(Xe)?Xe:typeof Xe=="number"?[Le,Xe]:Xe==null?De:[Xe]}},10528:function(Ge,be,de){"use strict";de.d(be,{Vn:function(){return Ie}});var le=de(2348);function Ie(De,Le,Ye,Re){let Ve,Je,Xe;typeof Le=="function"&&typeof Ye!="function"?(Je=void 0,Xe=Le,Ve=Ye):(Je=Le,Xe=Ye,Ve=Re),(0,le.S4)(De,Je,qe,Ve);function qe(mt,st){const Nt=st[st.length-1],_e=Nt?Nt.children.indexOf(mt):void 0;return Xe(mt,_e,Nt)}}},43309:function(Ge,be,de){"use strict";de.d(be,{t:function(){return le}});const le={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},47854:function(Ge){"use strict";Ge.exports=JSON.parse('{"AElig":"\xC6","AMP":"&","Aacute":"\xC1","Acirc":"\xC2","Agrave":"\xC0","Aring":"\xC5","Atilde":"\xC3","Auml":"\xC4","COPY":"\xA9","Ccedil":"\xC7","ETH":"\xD0","Eacute":"\xC9","Ecirc":"\xCA","Egrave":"\xC8","Euml":"\xCB","GT":">","Iacute":"\xCD","Icirc":"\xCE","Igrave":"\xCC","Iuml":"\xCF","LT":"<","Ntilde":"\xD1","Oacute":"\xD3","Ocirc":"\xD4","Ograve":"\xD2","Oslash":"\xD8","Otilde":"\xD5","Ouml":"\xD6","QUOT":"\\"","REG":"\xAE","THORN":"\xDE","Uacute":"\xDA","Ucirc":"\xDB","Ugrave":"\xD9","Uuml":"\xDC","Yacute":"\xDD","aacute":"\xE1","acirc":"\xE2","acute":"\xB4","aelig":"\xE6","agrave":"\xE0","amp":"&","aring":"\xE5","atilde":"\xE3","auml":"\xE4","brvbar":"\xA6","ccedil":"\xE7","cedil":"\xB8","cent":"\xA2","copy":"\xA9","curren":"\xA4","deg":"\xB0","divide":"\xF7","eacute":"\xE9","ecirc":"\xEA","egrave":"\xE8","eth":"\xF0","euml":"\xEB","frac12":"\xBD","frac14":"\xBC","frac34":"\xBE","gt":">","iacute":"\xED","icirc":"\xEE","iexcl":"\xA1","igrave":"\xEC","iquest":"\xBF","iuml":"\xEF","laquo":"\xAB","lt":"<","macr":"\xAF","micro":"\xB5","middot":"\xB7","nbsp":"\xA0","not":"\xAC","ntilde":"\xF1","oacute":"\xF3","ocirc":"\xF4","ograve":"\xF2","ordf":"\xAA","ordm":"\xBA","oslash":"\xF8","otilde":"\xF5","ouml":"\xF6","para":"\xB6","plusmn":"\xB1","pound":"\xA3","quot":"\\"","raquo":"\xBB","reg":"\xAE","sect":"\xA7","shy":"\xAD","sup1":"\xB9","sup2":"\xB2","sup3":"\xB3","szlig":"\xDF","thorn":"\xFE","times":"\xD7","uacute":"\xFA","ucirc":"\xFB","ugrave":"\xF9","uml":"\xA8","uuml":"\xFC","yacute":"\xFD","yen":"\xA5","yuml":"\xFF"}')},80501:function(Ge){"use strict";Ge.exports=JSON.parse('{"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}')}}]);
|
|
|
}()); |