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

1358 lines
3.1 MiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

!(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,Po=(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,Le)=>{var De=Fe=>{try{Ye(de.next(Fe))}catch(Ve){Le(Ve)}},Ie=Fe=>{try{Ye(de.throw(Fe))}catch(Ve){Le(Ve)}},Ye=Fe=>Fe.done?le(Fe.value):Promise.resolve(Fe.value).then(De,Ie);Ye((de=de.apply(Ge,be)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[3897],{39060:function(){"use strict"},76596:function(){"use strict"},25346: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"}},74042:function(){"use strict";function Ge(je,te,ne,he){ne===void 0&&(ne=0),he===void 0&&(he=1/0),this._name=je,this._defaultValue=te,this._minimum=ne,this._maximum=he}Object.defineProperty(Ge.prototype,"name",{get:function(){return this._name},set:function(je){if(typeof je!="string"||je==="")throw new Error("Shape name must be a valid string.");this._name=je}}),Object.defineProperty(Ge.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(je){if(typeof je!="number"||isNaN(je))throw new Error("The default value must be a real number, not: "+je);this._defaultValue=je}}),Object.defineProperty(Ge.prototype,"minimum",{get:function(){return this._minimum},set:function(je){if(typeof je!="number"||isNaN(je))throw new Error("Minimum must be a real number, not: "+je);this._minimum=je}}),Object.defineProperty(Ge.prototype,"maximum",{get:function(){return this._maximum},set:function(je){if(typeof je!="number"||isNaN(je))throw new Error("Maximum must be a real number, not: "+je);this._maximum=je}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(je,te){var ne=go.Shape._FigureParameters[je];return ne?ne[te]:null},go.Shape.setFigureParameter=function(je,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[je];he||(he=[],go.Shape._FigureParameters[je]=he),he[te]=ne};var be=[];function de(je,te){var ne=be.pop();return ne===void 0?new go.Point(je,te):(ne.x=je,ne.y=te,ne)}function le(){var je=be.pop();return je===void 0?new go.Point:je}function Le(je){be.push(je)}function De(je,te,ne,he,se,ge,Se,Ce,Oe){Oe||(Oe=new go.Point);var Be=je-ne,Qe=se-Se,ot=NaN,rt=NaN;if(Be===0)if(Qe===0)je===ne&&(ot=je,rt=te);else{var ft=(ge-Ce)/Qe,bt=ge-ft*se;ot=je,rt=ft*ot+bt}else if(Qe===0){var ut=(te-he)/Be,Tt=te-ut*je;ot=se,rt=ut*ot+Tt}else{var ut=(te-he)/Be,ft=(ge-Ce)/Qe,Tt=te-ut*je,bt=ge-ft*se;ot=(bt-Tt)/(ut-ft),rt=ut*ot+Tt}return Oe.x=ot,Oe.y=rt,Oe}function Ie(je,te,ne,he,se,ge,Se,Ce,Oe,Be,Qe,ot,rt,ft){var bt=1-Oe,ut=Oe,Tt=je*bt+ne*ut,Dt=te*bt+he*ut,en=ne*bt+se*ut,Cn=he*bt+ge*ut,vn=se*bt+Se*ut,pn=ge*bt+Ce*ut,mn=Tt*bt+en*ut,Mt=Dt*bt+Cn*ut,ct=en*bt+vn*ut,nt=Cn*bt+pn*ut,dn=mn*bt+ct*ut,En=Mt*bt+nt*ut;Be.x=Tt,Be.y=Dt,Qe.x=mn,Qe.y=Mt,ot.x=dn,ot.y=En,rt.x=ct,rt.y=nt,ft.x=vn,ft.y=pn}var Ye=new go.Spot(.156,.156),Fe=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(je,te,ne){var he=je?je.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(je,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(je,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(je,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(je,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(je,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(je,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(je,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(je,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(je,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(je,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(je,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(je,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(je,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(je,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(je,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=Fe,se.defaultStretch=go.GraphObject.Uniform,se}),go.Shape.defineFigureGenerator("Line1",function(je,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(je,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(je,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(je,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(je,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(je,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(je,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(je,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(je,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(je,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(je,te,ne){var he=je?je.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(je,te,ne){var he=je?je.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(je,te,ne){var he=je?je.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(je,te,ne){var he=je?je.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(je,te,ne){var he=je?je.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 Xe=[];function qe(){var je=Xe.pop();return je===void 0?[]:je}function Je(je){je.length=0,Xe.push(je)}function mt(je){for(var te=qe(),ne=.5,he=.5,se=Math.PI*1.5,ge=0,Se=0;Se<je;Se++)ge=2*Math.PI/je*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(je){var te=Ct(je),ne=qe();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 Je(te),ne}function Ct(je){for(var te=mt(je),ne=qe(),he=Math.floor(te.length/2),se=te.length-1,ge=je%2===0?2:1,Se=0;Se<se;Se++){var Ce=te[Se],Oe=te[Se+1],Be=te[(he+Se-1)%se],Qe=te[(he+Se+ge)%se];ne[Se*2]=Ce,ne[Se*2+1]=De(Ce.x,Ce.y,Be.x,Be.y,Oe.x,Oe.y,Qe.x,Qe.y,new go.Point)}return ne[ne.length]=ne[0],Je(te),ne}go.Shape.defineFigureGenerator("Pentagon",function(je,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()),Je(he),se.spot1=new go.Spot(.2,.22),se.spot2=new go.Spot(.8,.9),se}),go.Shape.defineFigureGenerator("Hexagon",function(je,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()),Je(he),se.spot1=new go.Spot(.07,.25),se.spot2=new go.Spot(.93,.75),se}),go.Shape.defineFigureGenerator("Heptagon",function(je,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()),Je(he),se.spot1=new go.Spot(.2,.15),se.spot2=new go.Spot(.8,.85),se}),go.Shape.defineFigureGenerator("Octagon",function(je,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()),Je(he),se.spot1=new go.Spot(.15,.15),se.spot2=new go.Spot(.85,.85),se}),go.Shape.defineFigureGenerator("Nonagon",function(je,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()),Je(he),se.spot1=new go.Spot(.17,.13),se.spot2=new go.Spot(.82,.82),se}),go.Shape.defineFigureGenerator("Decagon",function(je,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()),Je(he),se.spot1=new go.Spot(.16,.16),se.spot2=new go.Spot(.84,.84),se}),go.Shape.defineFigureGenerator("Dodecagon",function(je,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()),Je(he),se.spot1=new go.Spot(.16,.16),se.spot2=new go.Spot(.84,.84),se}),go.Shape.defineFigureGenerator("FivePointedStar",function(je,te,ne){var he=Ct(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()),Je(he),se.spot1=new go.Spot(.266,.333),se.spot2=new go.Spot(.733,.733),se}),go.Shape.defineFigureGenerator("SixPointedStar",function(je,te,ne){var he=Ct(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()),Je(he),se.spot1=new go.Spot(.17,.25),se.spot2=new go.Spot(.83,.75),se}),go.Shape.defineFigureGenerator("SevenPointedStar",function(je,te,ne){var he=Ct(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()),Je(he),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.666),se}),go.Shape.defineFigureGenerator("EightPointedStar",function(je,te,ne){var he=Ct(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()),Je(he),se.spot1=new go.Spot(.25,.25),se.spot2=new go.Spot(.75,.75),se}),go.Shape.defineFigureGenerator("NinePointedStar",function(je,te,ne){var he=Ct(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()),Je(he),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.666),se}),go.Shape.defineFigureGenerator("TenPointedStar",function(je,te,ne){var he=Ct(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()),Je(he),se.spot1=new go.Spot(.281,.261),se.spot2=new go.Spot(.723,.748),se}),go.Shape.defineFigureGenerator("FivePointedBurst",function(je,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(),Je(he),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("SixPointedBurst",function(je,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(),Je(he),se.spot1=new go.Spot(.17,.222),se.spot2=new go.Spot(.833,.777),se}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(je,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(),Je(he),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("EightPointedBurst",function(je,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(),Je(he),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("NinePointedBurst",function(je,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(),Je(he),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("TenPointedBurst",function(je,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(),Je(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(je,te,ne){var he=je?je.parameter1:NaN,se=je?je.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(je,te,ne){var he=je?je.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 Ce=Math.max(se-he,0);return Ce>0&&(Se.add(new go.PathSegment(go.PathSegment.Move,te/2+Ce,te/2)),Se.add(new go.PathSegment(go.PathSegment.Arc,0,-360,se,se,Ce,Ce).close())),ge.spot1=Ye,ge.spot2=Fe,ge.defaultStretch=go.GraphObject.Uniform,ge}),go.Shape.defineFigureGenerator("Cloud",function(je,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(je,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(je,te,ne){var he=je?je.parameter1:NaN,se=je?je.parameter2:NaN;isNaN(he)&&(he=0),isNaN(se)&&(se=315);var ge=he%360;ge<0&&(ge+=360);var Se=se%360,Ce=Math.min(te,ne)/2;return new go.Geometry().add(new go.PathFigure(Ce,Ce).add(new go.PathSegment(go.PathSegment.Arc,ge,Se,Ce,Ce,Ce,Ce).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(je,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(je,te,ne){var he=je?je.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(je,te,ne){var he=je?je.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(je,te,ne){var he=je?je.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,Ce=Math.atan2(ne,te),Oe=he-Math.min(Math.cos(Ce)*he/2,ge),Be=he-Math.min(Math.sin(Ce)*he/2,Se),se=new go.Geometry,Qe=new go.PathFigure(Oe,0,!0);return se.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Line,ge,.2*ne)),Qe.add(new go.PathSegment(go.PathSegment.Line,te-Oe,0)),Qe.add(new go.PathSegment(go.PathSegment.Line,te,Be)),Qe.add(new go.PathSegment(go.PathSegment.Line,.8*te,Se)),Qe.add(new go.PathSegment(go.PathSegment.Line,te,ne-Be)),Qe.add(new go.PathSegment(go.PathSegment.Line,te-Oe,ne)),Qe.add(new go.PathSegment(go.PathSegment.Line,ge,.8*ne)),Qe.add(new go.PathSegment(go.PathSegment.Line,Oe,ne)),Qe.add(new go.PathSegment(go.PathSegment.Line,0,ne-Be)),Qe.add(new go.PathSegment(go.PathSegment.Line,.2*te,Se)),Qe.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(je,te,ne){var he=je?je.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(je,te,ne){var he=je?je.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(je,te,ne){var he=je?je.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(je,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(je,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(je,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(je,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(je,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,Ce=0,Oe=ge*Ve;return se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*te,(.5+ge+Ce)*ne,(.5-ge+Se)*te,(.5+Oe+Ce)*ne,(.5-Oe+Se)*te,(.5+ge+Ce)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ge+Se)*te,(.5+Ce)*ne,(.5+Oe+Se)*te,(.5+ge+Ce)*ne,(.5+ge+Se)*te,(.5+Oe+Ce)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*te,(.5-ge+Ce)*ne,(1-.5+ge+Se)*te,(.5-Oe+Ce)*ne,(.5+Oe+Se)*te,(.5-ge+Ce)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.65*te,.36771243*ne,(.5-Oe+Se)*te,(.5-ge+Ce)*ne,(.5-ge+Se+.05)*te,(.5-Oe+Ce-.02)*ne)),ge=.2,Se=0,Ce=-.3,Oe=ge*Ve,se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ge+Se)*te,(.5+Ce)*ne,(.5+Oe+Se)*te,(.5+ge+Ce)*ne,(.5+ge+Se)*te,(.5+Oe+Ce)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*te,(.5-ge+Ce)*ne,(1-.5+ge+Se)*te,(.5-Oe+Ce)*ne,(.5+Oe+Se)*te,(.5-ge+Ce)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ge+Se)*te,(.5+Ce)*ne,(.5-Oe+Se)*te,(.5-ge+Ce)*ne,(.5-ge+Se)*te,(.5-Oe+Ce)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Oe+Se)*te,(.5+ge+Ce)*ne,(.5-ge+Se)*te,(.5+Oe+Ce)*ne,(.5-Oe+Se)*te,(.5+ge+Ce)*ne)),ge=.2,Se=-.3,Ce=0,Oe=ge*Ve,se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*te,(.5-ge+Ce)*ne,(1-.5+ge+Se-.05)*te,(.5-Oe+Ce-.02)*ne,(.5+Oe+Se)*te,(.5-ge+Ce)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ge+Se)*te,(.5+Ce)*ne,(.5-Oe+Se)*te,(.5-ge+Ce)*ne,(.5-ge+Se)*te,(.5-Oe+Ce)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*te,(.5+ge+Ce)*ne,(.5-ge+Se)*te,(.5+Oe+Ce)*ne,(.5-Oe+Se)*te,(.5+ge+Ce)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.6*ne,(.5+Oe+Se)*te,(.5+ge+Ce)*ne,(.5+ge+Se)*te,(.5+Oe+Ce)*ne).close()),he.setSpots(.06,.33,.93,.68),he}),go.Shape.defineFigureGenerator("YinYang",function(je,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,Ce=.25;return se.add(new go.PathSegment(go.PathSegment.Move,(Se+ge)*te,Ce*ne)),se.add(new go.PathSegment(go.PathSegment.Arc,0,-360,te*Se,ne*Ce,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)),Ce=.75,se=new go.PathFigure((Se+ge)*te,Ce*ne,!0),he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,0,360,te*Se,ne*Ce,ge*te,ge*te).close()),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("Peace",function(je,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(je,te,ne){var he=new go.Geometry,se=Ve*.5,ge=.5,Se=.5,Ce=.5,Oe=new go.PathFigure(Se*te,(Ce-ge)*ne);he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*te,Ce*ne,(Se-se)*te,(Ce-ge)*ne,(Se-ge)*te,(Ce-se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ce+ge)*ne,(Se-ge)*te,(Ce+se)*ne,(Se-se)*te,(Ce+ge)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*te,Ce*ne,(Se+se)*te,(Ce+ge)*ne,(Se+ge)*te,(Ce+se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ce-ge)*ne,(Se+ge)*te,(Ce-se)*ne,(Se+se)*te,(Ce-ge)*ne)),ge=.4,se=Ve*.4;var Be=le(),Qe=le(),ot=le(),rt=le();Ie(Se,Ce-ge,Se+se,Ce-ge,Se+ge,Ce-se,Se+ge,Ce,.42,Be,Qe,ot,rt,rt);var ft=le(),bt=le(),ut=le();Ie(Se,Ce-ge,Se+se,Ce-ge,Se+ge,Ce-se,Se+ge,Ce,.58,rt,rt,ut,ft,bt);var Tt=le(),Dt=le(),en=le();Ie(Se,Ce+ge,Se-se,Ce+ge,Se-ge,Ce+se,Se-ge,Ce,.42,Tt,Dt,en,rt,rt);var Cn=le(),vn=le(),pn=le();return Ie(Se,Ce+ge,Se-se,Ce+ge,Se-ge,Ce+se,Se-ge,Ce,.58,rt,rt,pn,Cn,vn),Oe.add(new go.PathSegment(go.PathSegment.Move,pn.x*te,pn.y*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*te,Ce*ne,Cn.x*te,Cn.y*ne,vn.x*te,vn.y*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ce-ge)*ne,(Se-ge)*te,(Ce-se)*ne,(Se-se)*te,(Ce-ge)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,ot.x*te,ot.y*ne,Be.x*te,Be.y*ne,Qe.x*te,Qe.y*ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,pn.x*te,pn.y*ne).close()),Oe.add(new go.PathSegment(go.PathSegment.Move,en.x*te,en.y*ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,ut.x*te,ut.y*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*te,Ce*ne,ft.x*te,ft.y*ne,bt.x*te,bt.y*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ce+ge)*ne,(Se+ge)*te,(Ce+se)*ne,(Se+se)*te,(Ce+ge)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,en.x*te,en.y*ne,Tt.x*te,Tt.y*ne,Dt.x*te,Dt.y*ne).close()),Le(Be),Le(Qe),Le(ot),Le(rt),Le(ft),Le(bt),Le(ut),Le(Tt),Le(Dt),Le(en),Le(Cn),Le(vn),Le(pn),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("Fragile",function(je,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(je,te,ne){var he=je?je.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(je,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(je,te,ne){var he=new go.Geometry,se=Ve*.4,ge=.4,Se=.5,Ce=.5,Oe=le(),Be=le(),Qe=le(),ot=le(),rt=new go.PathFigure((Se-ge)*te,Ce*ne,!1);he.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ce-ge)*ne,(Se-ge)*te,(Ce-se)*ne,(Se-se)*te,(Ce-ge)*ne)),Ie(Se,Ce-ge,Se+se,Ce-ge,Se+ge,Ce-se,Se+ge,Ce,.44,Qe,ot,Be,Oe,Oe),rt.add(new go.PathSegment(go.PathSegment.Bezier,Be.x*te,Be.y*ne,Qe.x*te,Qe.y*ne,ot.x*te,ot.y*ne));var ft=de(Be.x,Be.y);Ie(Se,Ce-ge,Se+se,Ce-ge,Se+ge,Ce-se,Se+ge,Ce,.56,Oe,Oe,Be,Qe,ot);var bt=de(Be.x,Be.y);rt.add(new go.PathSegment(go.PathSegment.Line,(ft.x*.1+.95*.9)*te,ft.y*.1*ne)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*te,ft.y*.1*ne)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*te,0)),rt.add(new go.PathSegment(go.PathSegment.Line,te,0)),rt.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),rt.add(new go.PathSegment(go.PathSegment.Line,(bt.x*.1+.9)*te,.15*ne)),rt.add(new go.PathSegment(go.PathSegment.Line,(bt.x*.1+.9)*te,(bt.y*.1+.05*.9)*ne)),rt.add(new go.PathSegment(go.PathSegment.Line,bt.x*te,bt.y*ne)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*te,Ce*ne,Qe.x*te,Qe.y*ne,ot.x*te,ot.y*ne)),rt.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ce+ge)*ne,(Se+ge)*te,(Ce+se)*ne,(Se+se)*te,(Ce+ge)*ne)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*te,Ce*ne,(Se-se)*te,(Ce+ge)*ne,(Se-ge)*te,(Ce+se)*ne)),ge=.35,se=Ve*.35;var ut=new go.PathFigure(Se*te,(Ce-ge)*ne,!1);he.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*te,Ce*ne,(Se-se)*te,(Ce-ge)*ne,(Se-ge)*te,(Ce-se)*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ce+ge)*ne,(Se-ge)*te,(Ce+se)*ne,(Se-se)*te,(Ce+ge)*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*te,Ce*ne,(Se+se)*te,(Ce+ge)*ne,(Se+ge)*te,(Ce+se)*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ce-ge)*ne,(Se+ge)*te,(Ce-se)*ne,(Se+se)*te,(Ce-ge)*ne));var Tt=new go.PathFigure((Se-ge)*te,Ce*ne,!1);return he.add(Tt),Le(Oe),Le(Be),Le(Qe),Le(ot),Le(ft),Le(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(je,te,ne){var he=new go.Geometry,se=.375,ge=0,Se=-.125,Ce=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+Ce+ge)*te,(.5+se+Se)*ne,(.5+se+ge)*te,(.5+Ce+Se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*te,(.5-se+Se)*ne,(1-.5+se+ge)*te,(.5-Ce+Se)*ne,(.5+Ce+ge)*te,(.5-se+Se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*te,(.5+Se)*ne,(.5-Ce+ge)*te,(.5-se+Se)*ne,(.5-se+ge)*te,(.5-Ce+Se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(.475+ge)*te,(.5+se+Se)*ne,(.5-se+ge)*te,(.5+Ce+Se)*ne,(.5-Ce+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,Ce=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+Ce+Se)*ne,(.5+Ce+ge)*te,(.5+se+Se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*te,(.5+Se)*ne,(.5-Ce+ge)*te,(.5+se+Se)*ne,(.5-se+ge)*te,(.5+Ce+Se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*te,(.5-se+Se)*ne,(.5-se+ge)*te,(.5-Ce+Se)*ne,(.5-Ce+ge)*te,(.5-se+Se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+ge)*te,(.5+Se)*ne,(.5+Ce+ge)*te,(.5-se+Se)*ne,(1-.5+se+ge)*te,(.5-Ce+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(je,te,ne){var he=je?je.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(je,te,ne){var he=je?je.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(je,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(je,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(je,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(je,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(je,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(je,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(je,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(je,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(je,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(je,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(je,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(je,te,ne){var he=je?je.parameter1:NaN;isNaN(he)&&(he=.3);var se=je?je.parameter2:NaN;isNaN(se)&&(se=.3);var ge=(1-he)*te,Se=(.5-se/2)*ne,Ce=(.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,Ce)),Be.add(new go.PathSegment(go.PathSegment.Line,0,Ce).close()),Oe.spot1=new go.Spot(0,Se/ne);var Qe=De(0,Ce/ne,1,Ce/ne,ge/te,1,1,.5,le());return Oe.spot2=new go.Spot(Qe.x,Qe.y),Le(Qe),Oe}),go.Shape.setFigureParameter("Arrow2",0,new Ge("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ge("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(je,te,ne){var he=je?je.parameter1:NaN;isNaN(he)&&(he=30),he>te&&(he=te);var se=je?je.parameter2:NaN;isNaN(se)&&(se=30),se=Math.min(se,ne/2);var ge=te-he,Se=(ne-se)/2,Ce=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,Ce)),Be.add(new go.PathSegment(go.PathSegment.Line,0,Ce).close()),Oe.spot1=new go.Spot(0,Se/ne);var Qe=De(0,Ce/ne,1,Ce/ne,ge/te,1,1,.5,le());return Oe.spot2=new go.Spot(Qe.x,Qe.y),Le(Qe),Oe}),go.Shape.defineFigureGenerator("Chevron",function(je,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(je,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(je,te,ne){var he=je?je.parameter1:NaN;isNaN(he)&&(he=.3);var se=(.5-he/2)*ne,ge=(.5+he/2)*ne,Se=new go.Geometry,Ce=new go.PathFigure(te,.5*ne,!0);Se.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,.3*te,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,.3*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),Ce.add(new go.PathSegment(go.PathSegment.Line,.3*te,se)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),Ce.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),Le(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(je,te,ne){var he=je?je.parameter1:NaN;isNaN(he)&&(he=40);var se=je?je.parameter2:NaN;isNaN(se)&&(se=100);var ge=(ne-he)/2,Se=ge+he,Ce=(ne-se)/2,Oe=Ce+se;(he>ne||se>ne)&&(se>he?(he=he*ne/se,ge=(ne-he)/2,Se=ge+he,Ce=0,Oe=ne):(ge=0,Se=ne,Ce=0,Oe=ne));var Be=new go.Geometry,Qe=new go.PathFigure(te,.5*ne,!0);Be.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Line,.7*te,Oe)),Qe.add(new go.PathSegment(go.PathSegment.Line,.7*te,Se)),Qe.add(new go.PathSegment(go.PathSegment.Line,.3*te,Se)),Qe.add(new go.PathSegment(go.PathSegment.Line,.3*te,Oe)),Qe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),Qe.add(new go.PathSegment(go.PathSegment.Line,.3*te,Ce)),Qe.add(new go.PathSegment(go.PathSegment.Line,.3*te,ge)),Qe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Qe.add(new go.PathSegment(go.PathSegment.Line,.7*te,Ce).close());var ot=De(0,.5,.3,Ce/ne,0,ge/ne,1,ge/ne,le());return Be.spot1=new go.Spot(ot.x,ot.y),ot=De(.7,Oe/ne,1,.5,0,Se/ne,1,Se/ne,ot),Be.spot2=new go.Spot(ot.x,ot.y),Le(ot),Be}),go.Shape.setFigureParameter("IBeamArrow",0,new Ge("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(je,te,ne){var he=je?je.parameter1:NaN;isNaN(he)&&(he=.3);var se=(.5-he/2)*ne,ge=(.5+he/2)*ne,Se=new go.Geometry,Ce=new go.PathFigure(te,.5*ne,!0);Se.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*te,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*te,se)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),Ce.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),Le(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(je,te,ne){var he=je?je.parameter1:NaN;isNaN(he)&&(he=40);var se=je?je.parameter2:NaN;isNaN(se)&&(se=100);var ge=(ne-he)/2,Se=ge+he,Ce=(ne-se)/2,Oe=Ce+se;(he>ne||se>ne)&&(se>he?(he=he*ne/se,ge=(ne-he)/2,Se=ge+he,Ce=0,Oe=ne):(ge=0,Se=ne,Ce=0,Oe=ne));var Be=new go.Geometry,Qe=new go.PathFigure(te,.5*ne,!0);Be.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Line,.7*te,Oe)),Qe.add(new go.PathSegment(go.PathSegment.Line,.7*te,Se)),Qe.add(new go.PathSegment(go.PathSegment.Line,.2*te,Se)),Qe.add(new go.PathSegment(go.PathSegment.Line,.2*te,Oe)),Qe.add(new go.PathSegment(go.PathSegment.Line,0,Oe)),Qe.add(new go.PathSegment(go.PathSegment.Line,0,Ce)),Qe.add(new go.PathSegment(go.PathSegment.Line,.2*te,Ce)),Qe.add(new go.PathSegment(go.PathSegment.Line,.2*te,ge)),Qe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Qe.add(new go.PathSegment(go.PathSegment.Line,.7*te,Ce).close()),Be.spot1=new go.Spot(0,ge/ne);var ot=De(.7,Oe/ne,1,.5,0,Se/ne,1,Se/ne,le());return Be.spot2=new go.Spot(ot.x,ot.y),Le(ot),Be}),go.Shape.setFigureParameter("Pointer",0,new Ge("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(je,te,ne){var he=je?je.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),Le(Se),se}),go.Shape.setFigureParameter("RoundedPointer",0,new Ge("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(je,te,ne){var he=je?je.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),Le(Se),se}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ge("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(je,te,ne){var he=je?je.parameter1:NaN;isNaN(he)&&(he=.4);var se=(.5-he/2)*ne,ge=(.5+he/2)*ne,Se=new go.Geometry,Ce=new go.PathFigure(te,.5*ne,!0);Se.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,se)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),Ce.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),Le(Oe),Se}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ge("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(je,te,ne){var he=je?je.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,Ce=new go.PathFigure(te,.5*ne,!0);Se.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,se)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),Ce.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),Le(Oe),Se}),go.Shape.setFigureParameter("SquareArrow",0,new Ge("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(je,te,ne){var he=je?je.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(je,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(je,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(je,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(je,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(je,te,ne){var he=je?je.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 Ce=new go.PathFigure(te,he,!1);return se.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,2*he,1*te,2*he-Ve*he,(.5+ge)*te,2*he)),Ce.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(je,te,ne){var he=je?je.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 Ce=new go.PathFigure(0,ne-he,!1);return se.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne-2*he,0,ne-he-Ve*he,(.5-ge)*te,ne-2*he)),Ce.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(je,te,ne){var he=je?je.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 Ce=new go.PathFigure(he,0,!1);return se.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,2*he,.5*ne,he+Ve*he,0,2*he,(.5-ge)*ne)),Ce.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(je,te,ne){var he=je?je.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 Ce=new go.PathFigure(te-he,0,!1);return se.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te-2*he,.5*ne,te-he-Ve*he,0,te-2*he,(.5-ge)*ne)),Ce.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(je,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(je,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(je,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(je,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(je,te,ne){var he=new go.Geometry,se=.2,ge=.1,Se=Ve*se,Ce=Ve*ge,Oe=.5,Be=.1,Qe=new go.PathFigure(Oe*te,(Be+ge)*ne,!0);he.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-se)*te,Be*ne,(Oe-Se)*te,(Be+ge)*ne,(Oe-se)*te,(Be+Ce)*ne)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Be-ge)*ne,(Oe-se)*te,(Be-Ce)*ne,(Oe-Se)*te,(Be-ge)*ne)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+se)*te,Be*ne,(Oe+Se)*te,(Be-ge)*ne,(Oe+se)*te,(Be-Ce)*ne)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Be+ge)*ne,(Oe+se)*te,(Be+Ce)*ne,(Oe+Se)*te,(Be+ge)*ne));var ot=.05,rt=Ve*ot;Oe=.05,Be=.25;var ft=new go.PathFigure(.5*te,.2*ne,!0);return he.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.95*te,.2*ne)),Oe=.95,Be=.25,ft.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+ot)*te,Be*ne,(Oe+rt)*te,(Be-ot)*ne,(Oe+ot)*te,(Be-rt)*ne)),ft.add(new go.PathSegment(go.PathSegment.Line,te,.6*ne)),ft.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ne)),ft.add(new go.PathSegment(go.PathSegment.Line,.85*te,.35*ne)),ot=.025,rt=Ve*ot,Oe=.825,Be=.35,ft.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Be-ot)*ne,(Oe+ot)*te,(Be-rt)*ne,(Oe+rt)*te,(Be-ot)*ne)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-ot)*te,Be*ne,(Oe-rt)*te,(Be-ot)*ne,(Oe-ot)*te,(Be-rt)*ne)),ft.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),ft.add(new go.PathSegment(go.PathSegment.Line,.55*te,ne)),ft.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ne)),ot=.05,rt=Ve*ot,Oe=.5,Be=.7,ft.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Be-ot)*ne,(Oe+ot)*te,(Be-rt)*ne,(Oe+rt)*te,(Be-ot)*ne)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-ot)*te,Be*ne,(Oe-rt)*te,(Be-ot)*ne,(Oe-ot)*te,(Be-rt)*ne)),ft.add(new go.PathSegment(go.PathSegment.Line,.45*te,ne)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*te,.35*ne)),ot=.025,rt=Ve*ot,Oe=.175,Be=.35,ft.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Be-ot)*ne,(Oe+ot)*te,(Be-rt)*ne,(Oe+rt)*te,(Be-ot)*ne)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-ot)*te,Be*ne,(Oe-rt)*te,(Be-ot)*ne,(Oe-ot)*te,(Be-rt)*ne)),ft.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ne)),ft.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne)),ft.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),ot=.05,rt=Ve*ot,Oe=.05,Be=.25,ft.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Be-ot)*ne,(Oe-ot)*te,(Be-rt)*ne,(Oe-rt)*te,(Be-ot)*ne)),ft.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(je,te,ne){var he=je?je.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(je,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(je,te,ne){var he=new go.Geometry,se=je?je.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(je,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 Ce=new go.PathFigure(te,.1*ne,!1);return he.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,te,(.1+ge)*ne,(.5+se)*te,.2*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ne,(.5-se)*te,.2*ne,0,(.1+ge)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,te,.2*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ne,te,(.2+ge)*ne,(.5+se)*te,.3*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ne,(.5-se)*te,.3*ne,0,(.2+ge)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,te,.3*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.4*ne,te,(.3+ge)*ne,(.5+se)*te,.4*ne)),Ce.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(je,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(je,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 Ce=new go.PathFigure(te,.1*ne,!1);return he.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,te,(.1+ge)*ne,(.5+se)*te,.2*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ne,(.5-se)*te,.2*ne,0,(.1+ge)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,te,.2*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ne,te,(.2+ge)*ne,(.5+se)*te,.3*ne)),Ce.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(je,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(je,te,ne){var he=new go.Geometry,se=je?je.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 Ce=new go.PathFigure(0,se*ne,!1);return he.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,te,se*ne)),he}),go.Shape.defineFigureGenerator("DividedProcess",function(je,te,ne){var he=new go.Geometry,se=je?je.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(je,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(je,te,ne){var he=new go.Geometry,se=je?je.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(je,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(je,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(je,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(je,te,ne){var he=new go.Geometry,se=je?je.parameter1:NaN,ge=je?je.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 Ce=new go.PathFigure(se*te,0,!1);return he.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,0,ge*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,te,ge*ne)),he}),go.Shape.defineFigureGenerator("Junction",function(je,te,ne){var he=new go.Geometry,se=1/Math.SQRT2,ge=(1-1/Math.SQRT2)/2,Se=Ve*.5,Ce=.5,Oe=new go.PathFigure(te,Ce*ne,!0);he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ce*te,ne,te,(Ce+Se)*ne,(Ce+Se)*te,ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,0,Ce*ne,(Ce-Se)*te,ne,0,(Ce+Se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ce*te,0,0,(Ce-Se)*ne,(Ce-Se)*te,0)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,te,Ce*ne,(Ce+Se)*te,0,te,(Ce-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(je,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(je,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(je,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(je,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(je,te,ne){var he=new go.Geometry,se=je?je.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(je,te,ne){var he=new go.Geometry,se=je?je.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(je,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(je,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(je,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(je,te,ne){var he=new go.Geometry,se=je?je.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 Ce=new go.PathFigure(.5*se*te,se*ne,!1);return he.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,(1-.5*se)*te,se*ne)),he}),go.Shape.defineFigureGenerator("OffPageConnector",function(je,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(je,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 Ce=new go.PathFigure(te,.5*ne,!1);return he.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,.5*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),he}),go.Shape.defineFigureGenerator("PaperTape",function(je,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(je,te,ne){var he=new go.Geometry,se=je?je.parameter1:NaN,ge=je?je.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(je,te,ne){var he=new go.Geometry,se=je?je.parameter1:NaN,ge=je?je.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(je,te,ne){var he=new go.Geometry,se=je?je.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(je,te,ne){var he=new go.Geometry,se=je?je.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(je,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(je,te,ne){var he=new go.Geometry,se=je?je.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(je,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(je,te,ne){var he=new go.Geometry,se=je?je.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(je,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(je,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(je,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 Ce=new go.PathFigure(te,ge*ne,!1);he.add(Ce),Ce.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(je,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(je,te,ne){var he=new go.Geometry,se=Ve*.1,ge=.1,Se=.9,Ce=.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,Ce*ne,!0);return he.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ce+ge)*ne,(Se+ge)*te,(Ce+se)*ne,(Se+se)*te,(Ce+ge)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*te,Ce*ne,(Se-se)*te,(Ce+ge)*ne,(Se-ge)*te,(Ce+se)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ce-ge)*ne,(Se-ge)*te,(Ce-se)*ne,(Se-se)*te,(Ce-ge)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*te,Ce*ne,(Se+se)*te,(Ce-ge)*ne,(Se+ge)*te,(Ce-se)*ne)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.4,.75),he}),go.Shape.defineFigureGenerator("NandGate",function(je,te,ne){var he=new go.Geometry,se=Ve*.5,ge=Ve*.4,Se=Ve*.1,Ce=.1,Oe=.9,Be=.5,Qe=new go.PathFigure(.8*te,.5*ne,!0);he.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,ne,.8*te,(.5+ge)*ne,(.4+se)*te,ne)),Qe.add(new go.PathSegment(go.PathSegment.Line,0,ne)),Qe.add(new go.PathSegment(go.PathSegment.Line,0,0)),Qe.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ne,(.4+se)*te,0,.8*te,(.5-ge)*ne));var ot=new go.PathFigure((Oe+Ce)*te,Be*ne,!0);return he.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Be+Ce)*ne,(Oe+Ce)*te,(Be+Se)*ne,(Oe+Se)*te,(Be+Ce)*ne)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-Ce)*te,Be*ne,(Oe-Se)*te,(Be+Ce)*ne,(Oe-Ce)*te,(Be+Se)*ne)),ot.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Be-Ce)*ne,(Oe-Ce)*te,(Be-Se)*ne,(Oe-Se)*te,(Be-Ce)*ne)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+Ce)*te,Be*ne,(Oe+Se)*te,(Be-Ce)*ne,(Oe+Ce)*te,(Be-Se)*ne)),he.spot1=new go.Spot(0,.05),he.spot2=new go.Spot(.55,.95),he}),go.Shape.defineFigureGenerator("NorGate",function(je,te,ne){var he=new go.Geometry,se=.5,ge=Ve*se,Se=0,Ce=.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,(Ce+ge)*ne,(Se+ge)*te,(Ce+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,(Ce-se)*ne,.7*te,(Ce-ge)*ne)),se=.1,ge=Ve*.1,Se=.9,Ce=.5;var Be=new go.PathFigure((Se-se)*te,Ce*ne,!0);return he.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ce-se)*ne,(Se-se)*te,(Ce-ge)*ne,(Se-ge)*te,(Ce-se)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*te,Ce*ne,(Se+ge)*te,(Ce-se)*ne,(Se+se)*te,(Ce-ge)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ce+se)*ne,(Se+se)*te,(Ce+ge)*ne,(Se+ge)*te,(Ce+se)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*te,Ce*ne,(Se-ge)*te,(Ce+se)*ne,(Se-se)*te,(Ce+ge)*ne)),he.spot1=new go.Spot(.2,.25),he.spot2=new go.Spot(.6,.75),he}),go.Shape.defineFigureGenerator("OrGate",function(je,te,ne){var he=new go.Geometry,se=.5,ge=Ve*se,Se=0,Ce=.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,(Ce-se)*ne,.8*te,(Ce-ge)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.8*te,(Ce+ge)*ne,(Se+ge+ge)*te,(Ce+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(je,te,ne){var he=new go.Geometry,se=.5,ge=Ve*se,Se=.2,Ce=.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,(Ce+ge)*ne,(Se+ge)*te,(Ce+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,(Ce-se)*ne,.7*te,(Ce-ge)*ne)),se=.1,ge=Ve*.1,Se=.9,Ce=.5;var Qe=new go.PathFigure((Se-se)*te,Ce*ne,!0);return he.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ce-se)*ne,(Se-se)*te,(Ce-ge)*ne,(Se-ge)*te,(Ce-se)*ne)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*te,Ce*ne,(Se+ge)*te,(Ce-se)*ne,(Se+se)*te,(Ce-ge)*ne)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ce+se)*ne,(Se+se)*te,(Ce+ge)*ne,(Se+ge)*te,(Ce+se)*ne)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*te,Ce*ne,(Se-ge)*te,(Ce+se)*ne,(Se-se)*te,(Ce+ge)*ne)),he.spot1=new go.Spot(.4,.25),he.spot2=new go.Spot(.65,.75),he}),go.Shape.defineFigureGenerator("XorGate",function(je,te,ne){var he=new go.Geometry,se=.5,ge=Ve*se,Se=.2,Ce=.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,(Ce-se)*ne,.9*te,(Ce-ge)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ne,.9*te,(Ce+ge)*ne,(Se+ge)*te,(Ce+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(je,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(je,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(je,te,ne){var he=new go.Geometry,se=Ve*.1,ge=.1,Se=.1,Ce=.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(je,te,ne){var he=new go.Geometry,se=Ve*.5,ge=.5,Se=.5,Ce=.5,Oe=new go.PathFigure((Se-ge)*te,Ce*ne,!1);return he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ce-ge)*ne,(Se-ge)*te,(Ce-se)*ne,(Se-se)*te,(Ce-ge)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*te,Ce*ne,(Se+se)*te,(Ce-ge)*ne,(Se+ge)*te,(Ce-se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ce+ge)*ne,(Se+ge)*te,(Ce+se)*ne,(Se+se)*te,(Ce+ge)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*te,Ce*ne,(Se-se)*te,(Ce+ge)*ne,(Se-ge)*te,(Ce+se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Move,(Se-ge+.1)*te,Ce*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge-.1)*te,Ce*ne,Se*te,(Ce-ge)*ne,Se*te,(Ce+ge)*ne)),he}),go.Shape.defineFigureGenerator("DCvoltageSource",function(je,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(je,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(je,te,ne){var he=new go.Geometry,se=te,ge=ne;te=te*.38,ne=ne*.6;var Se=Ve*.8,Ce=.8,Oe=0,Be=.5,Qe=(se-te)/2,ot=(ge-ne)/2,rt=new go.PathFigure(Oe*te+Qe,(Be+Ce)*ne+ot,!0);he.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-Ce)*te+Qe,Be*ne+ot,(Oe-Se)*te+Qe,(Be+Ce)*ne+ot,(Oe-Ce)*te+Qe,(Be+Se)*ne+ot)),rt.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te+Qe,(Be-Ce)*ne+ot,(Oe-Ce)*te+Qe,(Be-Se)*ne+ot,(Oe-Se)*te+Qe,(Be-Ce)*ne+ot)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-Ce+Se*.5)*te+Qe,Be*ne+ot,Oe*te+Qe,(Be-Ce)*ne+ot,(Oe-Ce+Se*.5)*te+Qe,(Be-Se)*ne+ot)),rt.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te+Qe,(Be+Ce)*ne+ot,(Oe-Ce+Se*.5)*te+Qe,(Be+Se)*ne+ot,Oe*te+Qe,(Be+Ce)*ne+ot).close()),Se=Ve*.4,Ce=.4,Oe=.2,Be=.5;var ft=new go.PathFigure(Oe*te+Qe,(Be+Ce)*ne+ot,!0);he.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-Ce)*te+Qe,Be*ne+ot,(Oe-Se)*te+Qe,(Be+Ce)*ne+ot,(Oe-Ce)*te+Qe,(Be+Se)*ne+ot)),ft.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te+Qe,(Be-Ce)*ne+ot,(Oe-Ce)*te+Qe,(Be-Se)*ne+ot,(Oe-Se)*te+Qe,(Be-Ce)*ne+ot)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-Ce+Se*.5)*te+Qe,Be*ne+ot,Oe*te+Qe,(Be-Ce)*ne+ot,(Oe-Ce+Se*.5)*te+Qe,(Be-Se)*ne+ot)),ft.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te+Qe,(Be+Ce)*ne+ot,(Oe-Ce+Se*.5)*te+Qe,(Be+Se)*ne+ot,Oe*te+Qe,(Be+Ce)*ne+ot).close()),Se=Ve*.2,Ce=.2,Oe=.5,Be=.5;var bt=new go.PathFigure((Oe-Ce)*te+Qe,Be*ne+ot,!0);he.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te+Qe,(Be-Ce)*ne+ot,(Oe-Ce)*te+Qe,(Be-Se)*ne+ot,(Oe-Se)*te+Qe,(Be-Ce)*ne+ot)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+Ce)*te+Qe,Be*ne+ot,(Oe+Se)*te+Qe,(Be-Ce)*ne+ot,(Oe+Ce)*te+Qe,(Be-Se)*ne+ot)),bt.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te+Qe,(Be+Ce)*ne+ot,(Oe+Ce)*te+Qe,(Be+Se)*ne+ot,(Oe+Se)*te+Qe,(Be+Ce)*ne+ot)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-Ce)*te+Qe,Be*ne+ot,(Oe-Se)*te+Qe,(Be+Ce)*ne+ot,(Oe-Ce)*te+Qe,(Be+Se)*ne+ot)),Se=Ve*.4,Ce=.4,Oe=.8,Be=.5;var ut=new go.PathFigure(Oe*te+Qe,(Be-Ce)*ne+ot,!0);he.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+Ce)*te+Qe,Be*ne+ot,(Oe+Se)*te+Qe,(Be-Ce)*ne+ot,(Oe+Ce)*te+Qe,(Be-Se)*ne+ot)),ut.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te+Qe,(Be+Ce)*ne+ot,(Oe+Ce)*te+Qe,(Be+Se)*ne+ot,(Oe+Se)*te+Qe,(Be+Ce)*ne+ot)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+Ce-Se*.5)*te+Qe,Be*ne+ot,Oe*te+Qe,(Be+Ce)*ne+ot,(Oe+Ce-Se*.5)*te+Qe,(Be+Se)*ne+ot)),ut.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te+Qe,(Be-Ce)*ne+ot,(Oe+Ce-Se*.5)*te+Qe,(Be-Se)*ne+ot,Oe*te+Qe,(Be-Ce)*ne+ot).close()),Se=Ve*.8,Ce=.8,Oe=1,Be=.5;var Tt=new go.PathFigure(Oe*te+Qe,(Be-Ce)*ne+ot,!0);return he.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+Ce)*te+Qe,Be*ne+ot,(Oe+Se)*te+Qe,(Be-Ce)*ne+ot,(Oe+Ce)*te+Qe,(Be-Se)*ne+ot)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te+Qe,(Be+Ce)*ne+ot,(Oe+Ce)*te+Qe,(Be+Se)*ne+ot,(Oe+Se)*te+Qe,(Be+Ce)*ne+ot)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+Ce-Se*.5)*te+Qe,Be*ne+ot,Oe*te+Qe,(Be+Ce)*ne+ot,(Oe+Ce-Se*.5)*te+Qe,(Be+Se)*ne+ot)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te+Qe,(Be-Ce)*ne+ot,(Oe+Ce-Se*.5)*te+Qe,(Be-Se)*ne+ot,Oe*te+Qe,(Be-Ce)*ne+ot).close()),he}),go.Shape.defineFigureGenerator("Email",function(je,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(je,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 Ce=new go.PathFigure(0,.5*ne,!1);return he.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,.75*te,.5*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.75*te,.6*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,.25*te,.5*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.25*te,.6*ne)),he}),go.Shape.defineFigureGenerator("Power",function(je,te,ne){var he=new go.Geometry,se=Ve*.4,ge=.4,Se=.5,Ce=.5,Oe=le(),Be=le(),Qe=le(),ot=le();Ie(Se,Ce-ge,Se+se,Ce-ge,Se+ge,Ce-se,Se+ge,Ce,.5,Oe,Oe,Be,Qe,ot);var rt=de(Be.x,Be.y),ft=new go.PathFigure(Be.x*te,Be.y*ne,!0);he.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*te,Ce*ne,Qe.x*te,Qe.y*ne,ot.x*te,ot.y*ne)),ft.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ce+ge)*ne,(Se+ge)*te,(Ce+se)*ne,(Se+se)*te,(Ce+ge)*ne)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*te,Ce*ne,(Se-se)*te,(Ce+ge)*ne,(Se-ge)*te,(Ce+se)*ne)),Ie(Se-ge,Ce,Se-ge,Ce-se,Se-se,Ce-ge,Se,Ce-ge,.5,Qe,ot,Be,Oe,Oe),ft.add(new go.PathSegment(go.PathSegment.Bezier,Be.x*te,Be.y*ne,Qe.x*te,Qe.y*ne,ot.x*te,ot.y*ne)),se=Ve*.3,ge=.3,Ie(Se-ge,Ce,Se-ge,Ce-se,Se-se,Ce-ge,Se,Ce-ge,.5,Qe,ot,Be,Oe,Oe),ft.add(new go.PathSegment(go.PathSegment.Line,Be.x*te,Be.y*ne)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*te,Ce*ne,ot.x*te,ot.y*ne,Qe.x*te,Qe.y*ne)),ft.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ce+ge)*ne,(Se-ge)*te,(Ce+se)*ne,(Se-se)*te,(Ce+ge)*ne)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*te,Ce*ne,(Se+se)*te,(Ce+ge)*ne,(Se+ge)*te,(Ce+se)*ne)),Ie(Se,Ce-ge,Se+se,Ce-ge,Se+ge,Ce-se,Se+ge,Ce,.5,Oe,Oe,Be,Qe,ot),ft.add(new go.PathSegment(go.PathSegment.Bezier,Be.x*te,Be.y*ne,ot.x*te,ot.y*ne,Qe.x*te,Qe.y*ne).close());var ft=new go.PathFigure(.45*te,0,!0);return he.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ne)),ft.add(new go.PathSegment(go.PathSegment.Line,.55*te,.5*ne)),ft.add(new go.PathSegment(go.PathSegment.Line,.55*te,0).close()),Le(Oe),Le(Be),Le(Qe),Le(ot),Le(rt),he.spot1=new go.Spot(.25,.45),he.spot2=new go.Spot(.75,.8),he}),go.Shape.defineFigureGenerator("Fallout",function(je,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,Ce,Oe){Se.add(new go.PathSegment(go.PathSegment.Move,(.3+Ce)*te,(.8+Oe)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,(.5+Ce)*te,(.5+Oe)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,(.1+Ce)*te,(.5+Oe)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,(.3+Ce)*te,(.8+Oe)*ne).close())}return ge(se,0,0),ge(se,.4,0),ge(se,.2,-.3),he}),go.Shape.defineFigureGenerator("IrritationHazard",function(je,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(je,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(je,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(je,te,ne){var he=new go.Geometry,se=.5,ge=0,Se=0,Ce=se*Ve,Oe=.4*Math.SQRT2/2+.5,Be=.5-.5*Math.SQRT2/2,Qe=1,ot=.5,rt=.5,ft=0,bt=new go.PathFigure(Oe*te,(1-Be)*ne,!1);return he.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,Qe*te,ot*ne,Qe*te,.7*ne,Qe*te,ot*ne)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(rt+ge)*te,(ft+ge)*ne,(.5+se+ge)*te,(.5-Ce+ge)*ne,(.5+Ce+ge)*te,(.5-se+ge)*ne)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*te,(.5+Se)*ne,(.5-Ce+ge)*te,(.5-se+Se)*ne,(.5-se+ge)*te,(.5-Ce+Se)*ne)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(.35+ge)*te,.9*ne,(.5-se+ge)*te,(.5+Ce+Se)*ne,(.5-Ce+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(je,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(je,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(je,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(je,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(je,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(je,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(je,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,Ce=.5,Oe=Se,Be=Math.PI/4,Qe=4*(1-Math.cos(Be))/(3*Math.sin(Be)),ot=Qe*.5,rt=Se,ft=Se,bt=Qe*rt,ut=Qe*ft;ge.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-rt)*te,Oe*ne,(Ce-(bt+rt)/2)*te,(Oe+(ft+ut)/2)*ne,(Ce-rt)*te,(Oe+ut)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,Ce*te,(Oe-ft)*ne,(Ce-rt)*te,(Oe-ut)*ne,(Ce-bt)*te,(Oe-ft)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+rt)*te,Oe*ne,(Ce+bt)*te,(Oe-ft)*ne,(Ce+rt)*te,(Oe-ut)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*te,(1-.595)*ne,(Ce+rt)*te,(Oe+ut)*ne,(Ce+(bt+rt)/2)*te,(Oe+(ft+ut)/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 Tt=new go.PathFigure(.2*te,ne,!1);he.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Line,.2*te,.8*ne));var Dt=new go.PathFigure(.8*te,ne,!1);return he.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,.8*te,.8*ne)),he}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(je,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(je,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(je,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(je,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(je,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(je,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 Ce=new go.PathFigure(se*te,0,!1);return he.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,se*te,.15*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,se*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,se*te,.85*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,0,se*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.15*te,se*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,te,se*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.85*te,se*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,se*te,se*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.58*te,.1*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,se*te,se*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.78*te,.54*ne)),he}),go.Shape.defineFigureGenerator("Package",function(je,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(je,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(je,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(je,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(je,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(je,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(je,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(je,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,Ce=Ve*.1,Oe=.2,Be=.9,Qe=new go.PathFigure((Oe-Se)*te,Be*ne,!0);he.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Be-Se)*ne,(Oe-Se)*te,(Be-Ce)*ne,(Oe-Ce)*te,(Be-Se)*ne)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+Se)*te,Be*ne,(Oe+Ce)*te,(Be-Se)*ne,(Oe+Se)*te,(Be-Ce)*ne)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Be+Se)*ne,(Oe+Se)*te,(Be+Ce)*ne,(Oe+Ce)*te,(Be+Se)*ne)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-Se)*te,Be*ne,(Oe-Ce)*te,(Be+Se)*ne,(Oe-Se)*te,(Be+Ce)*ne).close()),Se=.1,Ce=Ve*.1,Oe=.8,Be=.9;var ot=new go.PathFigure((Oe-Se)*te,Be*ne,!0);return he.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Be-Se)*ne,(Oe-Se)*te,(Be-Ce)*ne,(Oe-Ce)*te,(Be-Se)*ne)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+Se)*te,Be*ne,(Oe+Ce)*te,(Be-Se)*ne,(Oe+Se)*te,(Be-Ce)*ne)),ot.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Be+Se)*ne,(Oe+Se)*te,(Be+Ce)*ne,(Oe+Ce)*te,(Be+Se)*ne)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-Se)*te,Be*ne,(Oe-Ce)*te,(Be+Se)*ne,(Oe-Se)*te,(Be+Ce)*ne).close()),he}),go.Shape.defineFigureGenerator("KanbanPost",function(je,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(je,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 Ce=new go.PathFigure(.5*te,.7*ne,!1);he.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne));var Oe=.1,Be=Ve*.1,Qe=.1,ot=.9,rt=new go.PathFigure((Qe-Oe)*te,ot*ne,!0);he.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,Qe*te,(ot-Oe)*ne,(Qe-Oe)*te,(ot-Be)*ne,(Qe-Be)*te,(ot-Oe)*ne)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Qe+Oe)*te,ot*ne,(Qe+Be)*te,(ot-Oe)*ne,(Qe+Oe)*te,(ot-Be)*ne)),rt.add(new go.PathSegment(go.PathSegment.Bezier,Qe*te,(ot+Oe)*ne,(Qe+Oe)*te,(ot+Be)*ne,(Qe+Be)*te,(ot+Oe)*ne)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Qe-Oe)*te,ot*ne,(Qe-Be)*te,(ot+Oe)*ne,(Qe-Oe)*te,(ot+Be)*ne)),Oe=.1,Be=Ve*.1,Qe=.4,ot=.9;var ft=new go.PathFigure((Qe-Oe)*te,ot*ne,!0);return he.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,Qe*te,(ot-Oe)*ne,(Qe-Oe)*te,(ot-Be)*ne,(Qe-Be)*te,(ot-Oe)*ne)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Qe+Oe)*te,ot*ne,(Qe+Be)*te,(ot-Oe)*ne,(Qe+Oe)*te,(ot-Be)*ne)),ft.add(new go.PathSegment(go.PathSegment.Bezier,Qe*te,(ot+Oe)*ne,(Qe+Oe)*te,(ot+Be)*ne,(Qe+Be)*te,(ot+Oe)*ne)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Qe-Oe)*te,ot*ne,(Qe-Be)*te,(ot+Oe)*ne,(Qe-Oe)*te,(ot+Be)*ne)),he}),go.Shape.defineFigureGenerator("RailShipment",function(je,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 Qe=.05,ot=Ve*.05,rt=.175,ft=.95,Ce=new go.PathFigure((rt-Qe)*te,ft*ne,!0);he.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,rt*te,(ft-Qe)*ne,(rt-Qe)*te,(ft-ot)*ne,(rt-ot)*te,(ft-Qe)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(rt+Qe)*te,ft*ne,(rt+ot)*te,(ft-Qe)*ne,(rt+Qe)*te,(ft-ot)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,rt*te,(ft+Qe)*ne,(rt+Qe)*te,(ft+ot)*ne,(rt+ot)*te,(ft+Qe)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(rt-Qe)*te,ft*ne,(rt-ot)*te,(ft+Qe)*ne,(rt-Qe)*te,(ft+ot)*ne));var Qe=.05,ot=Ve*.05,rt=.375,ft=.95,Oe=new go.PathFigure((rt-Qe)*te,ft*ne,!0);he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,rt*te,(ft-Qe)*ne,(rt-Qe)*te,(ft-ot)*ne,(rt-ot)*te,(ft-Qe)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(rt+Qe)*te,ft*ne,(rt+ot)*te,(ft-Qe)*ne,(rt+Qe)*te,(ft-ot)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,rt*te,(ft+Qe)*ne,(rt+Qe)*te,(ft+ot)*ne,(rt+ot)*te,(ft+Qe)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(rt-Qe)*te,ft*ne,(rt-ot)*te,(ft+Qe)*ne,(rt-Qe)*te,(ft+ot)*ne));var Qe=.05,ot=Ve*.05,rt=.625,ft=.95,Be=new go.PathFigure((rt-Qe)*te,ft*ne,!0);he.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,rt*te,(ft-Qe)*ne,(rt-Qe)*te,(ft-ot)*ne,(rt-ot)*te,(ft-Qe)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(rt+Qe)*te,ft*ne,(rt+ot)*te,(ft-Qe)*ne,(rt+Qe)*te,(ft-ot)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,rt*te,(ft+Qe)*ne,(rt+Qe)*te,(ft+ot)*ne,(rt+ot)*te,(ft+Qe)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(rt-Qe)*te,ft*ne,(rt-ot)*te,(ft+Qe)*ne,(rt-Qe)*te,(ft+ot)*ne));var Qe=.05,ot=Ve*.05,rt=.825,ft=.95,bt=new go.PathFigure((rt-Qe)*te,ft*ne,!0);he.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,rt*te,(ft-Qe)*ne,(rt-Qe)*te,(ft-ot)*ne,(rt-ot)*te,(ft-Qe)*ne)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(rt+Qe)*te,ft*ne,(rt+ot)*te,(ft-Qe)*ne,(rt+Qe)*te,(ft-ot)*ne)),bt.add(new go.PathSegment(go.PathSegment.Bezier,rt*te,(ft+Qe)*ne,(rt+Qe)*te,(ft+ot)*ne,(rt+ot)*te,(ft+Qe)*ne)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(rt-Qe)*te,ft*ne,(rt-ot)*te,(ft+Qe)*ne,(rt-Qe)*te,(ft+ot)*ne).close());var ut=new go.PathFigure(0,ne,!1);return he.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,te,ne).close()),he}),go.Shape.defineFigureGenerator("Warehouse",function(je,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 Ce=.05,Oe=Ve*.05,Be=.35,Qe=.775,ot=new go.PathFigure((Be-Ce)*te,Qe*ne,!0);return he.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,Be*te,(Qe-Ce)*ne,(Be-Ce)*te,(Qe-Oe)*ne,(Be-Oe)*te,(Qe-Ce)*ne)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Be+Ce)*te,Qe*ne,(Be+Oe)*te,(Qe-Ce)*ne,(Be+Ce)*te,(Qe-Oe)*ne)),ot.add(new go.PathSegment(go.PathSegment.Bezier,Be*te,(Qe+Ce)*ne,(Be+Ce)*te,(Qe+Oe)*ne,(Be+Oe)*te,(Qe+Ce)*ne)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Be-Ce)*te,Qe*ne,(Be-Oe)*te,(Qe+Ce)*ne,(Be-Ce)*te,(Qe+Oe)*ne).close()),he}),go.Shape.defineFigureGenerator("ControlCenter",function(je,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(je,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(je,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(je,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(je,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(je,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(je,te,ne){var he=new go.Geometry,se=.3,ge=Ve*.3,Se=.5,Ce=.7,Oe=new go.PathFigure((Se-se)*te,Ce*ne,!0);he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ce-se)*ne,(Se-se)*te,(Ce-ge)*ne,(Se-ge)*te,(Ce-se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*te,Ce*ne,(Se+ge)*te,(Ce-se)*ne,(Se+se)*te,(Ce-ge)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ce+se)*ne,(Se+se)*te,(Ce+ge)*ne,(Se+ge)*te,(Ce+se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*te,Ce*ne,(Se-ge)*te,(Ce+se)*ne,(Se-se)*te,(Ce+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(je,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(je,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(je,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(je,te,ne){var he=new go.Geometry,se=.5,ge=Ve*.5,Se=.5,Ce=.5,Oe=new go.PathFigure((Se-se)*te,Ce*ne,!0);he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ce-se)*ne,(Se-se)*te,(Ce-ge)*ne,(Se-ge)*te,(Ce-se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*te,Ce*ne,(Se+ge)*te,(Ce-se)*ne,(Se+se)*te,(Ce-ge)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ce+se)*ne,(Se+se)*te,(Ce+ge)*ne,(Se+ge)*te,(Ce+se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*te,Ce*ne,(Se-ge)*te,(Ce+se)*ne,(Se-se)*te,(Ce+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(je,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(je,te,ne){var he=new go.Geometry,se=.5,ge=Ve*.5,Se=.5,Ce=.5,Oe=new go.PathFigure((Se-se)*te,Ce*ne,!1);he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ce-se)*ne,(Se-se)*te,(Ce-ge)*ne,(Se-ge)*te,(Ce-se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*te,Ce*ne,(Se+ge)*te,(Ce-se)*ne,(Se+se)*te,(Ce-ge)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ce+se)*ne,(Se+se)*te,(Ce+ge)*ne,(Se+ge)*te,(Ce+se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*te,Ce*ne,(Se-ge)*te,(Ce+se)*ne,(Se-se)*te,(Ce+ge)*ne).close()),se=.05,ge=Ve*.05,Se=.5,Ce=.8;var Be=new go.PathFigure((Se-se)*te,Ce*ne,!1);return he.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ce-se)*ne,(Se-se)*te,(Ce-ge)*ne,(Se-ge)*te,(Ce-se)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*te,Ce*ne,(Se+ge)*te,(Ce-se)*ne,(Se+se)*te,(Ce-ge)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ce+se)*ne,(Se+se)*te,(Ce+ge)*ne,(Se+ge)*te,(Ce+se)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*te,Ce*ne,(Se-ge)*te,(Ce+se)*ne,(Se-se)*te,(Ce+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(je,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(je,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(je,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(je,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(je,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(je,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(je,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(je,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(je,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 Ce=new go.PathFigure(.678*te,.85*ne,!1);he.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.678*te,.45*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.874*te,.45*ne)),Ce.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(je,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(je,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 Ce=new go.PathFigure(te*.612,ne,!0);he.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.612,ne*(1-.184*3))),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.796,ne*(1-.184*4))),Ce.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(je,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 Ce=new go.PathFigure(te*.055,.18*ne,!0);he.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.18)),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.21)),Ce.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(je,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(je,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(je,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 Ce=new go.PathFigure(te*(.11+.24133333*1+.028*1),ne*.1,!1);he.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ne*.1)),Ce.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ne*.8)),Ce.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(je,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 Ce=new go.PathFigure(te*.83,0,!1);he.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.83,ne*.3)),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*.3)),Ce.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(je,te,ne){var he=je?je.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,Ce=new go.PathFigure(he,0,!0);return Se.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,te-he,0)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te,he,te-se,0,te,se)),Ce.add(new go.PathSegment(go.PathSegment.Line,te,ge-he)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te-he,ge,te,ge-se,te-se,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.7,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.55,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,he,ge)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,ge-he,se,ge,0,ge-se)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,he)),Ce.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(je,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(je,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(je,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(je,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(je,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(je,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(je,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(je,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(je,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(je,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")},84072: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,Le=!1,De=!1,Ie=null,Ye=!1,Fe=null,Ve=null,Xe=0;Xe<arguments.length;Xe++){var qe=arguments[Xe];if(qe!==null)switch(typeof qe){case"number":be=qe.toFixed(1);break;case"string":qe.match(new RegExp("^[0-9]\\.[0-9]+$"))?be=qe:Ie=qe;break;case"object":typeof qe.is3D!="undefined"?le=qe:de=qe;break;case"boolean":Le=qe,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&&(Le=!0)),Ie!==null&&de.id===void 0&&(de.id=Ie);var Je="",mt="",st=!1,Ct=null,je=null,te=null,ne=!1,he=null,se=null,ge=null,Se=null,Ce=null;de.height!==void 0&&(de.height=Math.round(de.height)),de.width!==void 0&&(de.width=Math.round(de.width));var Oe=function(Nt){return parseFloat(Nt)>4?parseFloat(Nt):5};Ge.setHTML5Codebase=function(Nt,cn){Ve=Nt,nt(Nt,cn)},Ge.setJavaCodebase=Ge.setJavaCodebaseVersion=Ge.isCompiledInstalled=Ge.setPreCompiledScriptPath=Ge.setPreCompiledResourcePath=function(){},Ge.setHTML5CodebaseVersion=function(Nt,cn){var ln=parseFloat(Nt);if(ln!==NaN&&ln<5){console.log("The GeoGebra HTML5 codebase version "+ln+" is deprecated. Using version latest instead.");return}Fe=Nt,ct(Nt,cn)},Ge.getHTML5CodebaseVersion=function(){return je},Ge.getParameters=function(){return de},Ge.setFontsCSSURL=function(Nt){Se=Nt},Ge.setGiacJSURL=function(Nt){},Ge.setJNLPFile=function(Nt){Je=Nt},Ge.setJNLPBaseDir=function(Nt){},Ge.inject=function(){function Nt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var cn="auto",ln=de.id,_n,kn=!1,si=0;si<arguments.length;si++){var kt=arguments[si];typeof kt=="string"?(kt=kt.toLowerCase(),kt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?cn=kt:ln=arguments[si]):typeof kt=="boolean"?kn=kt:kt instanceof HTMLElement&&(_n=kt)}Kn();function Kn(){if(!Ye){setTimeout(Kn,200);return}cn=mn(cn);var hi=_n||document.getElementById(ln);if(!hi){console.log("possibly bug on ajax loading? ");return}if(Ge.removeExistingApplet(hi,!1),de.width===void 0&&hi.clientWidth&&(de.width=hi.clientWidth),de.height===void 0&&hi.clientHeight&&(de.height=hi.clientHeight),!(de.width&&de.height)&&cn==="html5"&&(delete de.width,delete de.height),Ct=cn,cn==="screenshot")Dt(hi,de);else{var et=!1;de.hasOwnProperty("playButton")&&de.playButton||de.hasOwnProperty("clickToLoad")&&de.clickToLoad?et=!0:de.hasOwnProperty("playButtonAutoDecide")&&de.playButtonAutoDecide&&(et=(!Be()||Nt())&&Qe()),et?(Ct="screenshot",Cn(hi,de,kn,cn)):Tt(hi,de,kn)}}};function Be(){try{return window.self!==window.top}catch(Nt){return!0}}function Qe(){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 ot=function(Nt){var cn=function(si){var kt=JSON.parse(si),Kn=function(_e){return _e.type=="G"||_e.type=="E"},hi=kt.elements?kt.elements.filter(Kn)[0]:kt;if(!hi||!hi.url){ln();return}de.fileName=hi.url,rt(hi.settings||{}),le.is3D=!0;var et="https://www.geogebra.org/images/";Ge.setPreviewImage(he||hi.previewUrl,et+"GeoGebra_loading.png",et+"applet_play.png"),Nt()},ln=function(){de.onError&&de.onError(),dn("Error: Fetching material (id "+de.material_id+") failed.",de)},_n=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",kn="/materials/"+de.material_id+"?scope=basic";ft("https://"+_n+"/api/proxy.php?path="+encodeURIComponent(kn),cn,ln)};function rt(Nt){var cn=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(ln){Nt[ln]=!!Nt[ln]}),cn.forEach(function(ln){de[ln]===void 0&&Nt[ln]!==void 0&&(de[ln]=Nt[ln])}),de.showToolBarHelp===void 0&&(de.showToolBarHelp=de.showToolBar)}function ft(Nt,cn,ln){var _n=new XMLHttpRequest;_n.open("GET",Nt),_n.onload=function(){cn(_n.responseText)},_n.onerror=ln,_n.send()}Ge.isHTML5Installed=function(){return!0},Ge.getLoadedAppletType=function(){return Ct},Ge.setPreviewImage=function(Nt,cn,ln){he=Nt,se=cn,ge=ln},Ge.removeExistingApplet=function(Nt,cn){var ln;typeof Nt=="string"&&(Nt=document.getElementById(Nt)),Ct=null;var _n=null;for(ln=0;ln<Nt.childNodes.length;ln++){var kn=Nt.childNodes[ln],si=kn.className;si==="applet_screenshot"?cn?(kn.style.display="block",Ct="screenshot"):kn.style.display="none":si!=="applet_scaler prerender"&&(Nt.removeChild(kn),_n=si&&si.indexOf("appletParameters")!=-1?kn.id:null,ln--)}var kt=de.id!==void 0?de.id:_n,Kn=window[kt];Kn&&typeof Kn.getBase64=="function"&&(Kn.remove(),window[kt]=null)},Ge.refreshHitPoints=function(){if(Oe(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Nt=Ge.getAppletObject();return Nt&&typeof Nt.recalculateEnvironments=="function"?(Nt.recalculateEnvironments(),!0):!1},Ge.startAnimation=function(){var Nt=Ge.getAppletObject();return Nt&&typeof Nt.startAnimation=="function"?(Nt.startAnimation(),!0):!1},Ge.stopAnimation=function(){var Nt=Ge.getAppletObject();return Nt&&typeof Nt.stopAnimation=="function"?(Nt.stopAnimation(),!0):!1},Ge.getAppletObject=function(){var Nt=de.id!==void 0?de.id:"ggbApplet";return window[Nt]},Ge.resize=function(){};var bt=function(Nt,cn,ln){var _n=document.createElement("param");_n.setAttribute("name",cn),_n.setAttribute("value",ln),Nt.appendChild(_n)},ut=function(Nt){return Nt&&Nt!=="false"},Tt=function(Nt,cn,ln){Oe(je)<=4.2&&(ln=!0);var _n=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==je||ggbHTML5LoadedCodebaseIsWebSimple&&!ne)&&(_n=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var kn=document.createElement("div");kn.classList.add("appletParameters","notranslate");var si=cn.width,kt=cn.height;if(cn.disableAutoScale=cn.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():cn.disableAutoScale,cn.width!==void 0)if(Oe(je)<=4.4)ut(cn.showToolBar)&&(cn.height-=7),ut(cn.showAlgebraInput)&&(cn.height-=37),cn.width<605&&ut(cn.showToolBar)&&(cn.width=605,si=605);else{var Kn=100;(ut(cn.showToolBar)||ut(cn.showMenuBar))&&(cn.hasOwnProperty("customToolBar")&&(cn.customToolbar=cn.customToolBar),Kn=ut(cn.showMenuBar)?245:155),si<Kn&&(cn.width=Kn,si=Kn)}kn.style.border="none",kn.style.display="inline-block";for(var hi in cn)cn.hasOwnProperty(hi)&&hi!=="appletOnLoad"&&kn.setAttribute("data-param-"+hi,cn[hi]);Se&&kn.setAttribute("data-param-fontscssurl",Se),Ge.resize=function(){GGBAppletUtils.responsiveResize(Nt,cn)},window.addEventListener("resize",function(sn){Ge.resize()});var et=typeof cn.appletOnLoad=="function"?cn.appletOnLoad:function(){};if(!ln&&cn.width!==void 0){cn.hasOwnProperty("showSplash")||kn.setAttribute("data-param-showSplash","false");var _e=Nt.querySelector(".applet_scaler.prerender"),xe=_e!==null;if(xe)var Te=_e.querySelector(".ggb_preview");else{var Te=pn(si,kt,cn.borderColor,!1);_e=document.createElement("div"),_e.className="applet_scaler",_e.style.position="relative",_e.style.display="block",_e.style.width=si+"px",_e.style.height=kt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(_e,"66%"),Oe(je)>=5?(cn.appletOnLoad=function(sn){var on=Nt.querySelector(".ggb_preview");on&&on.parentNode.removeChild(on),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(_e),window.GGBT_wsf_view&&$(window).trigger("resize"),et(sn)},xe||_e.appendChild(Te)):kn.appendChild(Te),_e.appendChild(kn),xe||Nt.appendChild(_e),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(kn),Nt.appendChild(Me),cn.appletOnLoad=function(sn){Ge.resize(),et(sn)}}function Ae(sn,on){on&&typeof on.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(sn,on.appletOnLoad):renderGGBElement(sn),dn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",on)}function at(sn,on){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:sn,params:on}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(bn){Ae(bn.article,bn.params)}),html5AppletsToProcess=null)},Oe(je)<5&&(sn.className+=" geogebraweb")):Ae(sn,on)}if(_n){scriptLoadStarted=!0;for(var Lt=0;Lt<kn.childNodes.length;Lt++){var Pt=kn.childNodes[Lt].tagName;Pt==="TABLE"&&(kn.removeChild(kn.childNodes[Lt]),Lt--)}if(ggbHTML5LoadedScript!==null){var Vt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Vt!=null&&Vt.parentNode.removeChild(Vt)}var It=document.createElement("script"),an=function(){at(kn,cn)};It.src=mt+te,ggbHTML5LoadedCodebaseIsWebSimple=ne,ggbHTML5LoadedCodebaseVersion=je,ggbHTML5LoadedScript=It.src,dn("GeoGebra HTML5 codebase loaded: '"+mt+"'.",cn),!Ve&&(!Fe||Fe=="5.0")?(ne?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),an()):mt.requirejs?__webpack_require__.e(822).then(function(){var sn=[__webpack_require__(20822)];an.apply(null,sn)}.bind(this)).catch(__webpack_require__.oe):(It.onload=an,Nt.appendChild(It))}else at(kn,cn);cn.height=kt,cn.width=si},Dt=function(Nt,cn,ln){var _n=pn(cn.width,cn.height,cn.borderColor,ln),kn=document.createElement("div");kn.style.position="relative",kn.style.display="block",kn.style.width=cn.width+"px",kn.style.height=cn.height+"px",kn.className="applet_screenshot applet_scaler"+(ln?" applet_screenshot_play":""),kn.appendChild(_n);var si=GGBAppletUtils.getScale(cn,Nt,ln);ln?(Nt.appendChild(vn()),window.GGBT_wsf_view||(Nt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(kn,"66%"),Nt.appendChild(kn),si!==1&&!isNaN(si)&&(GGBAppletUtils.scaleElement(kn,si),kn.style.width=cn.width+"px",kn.style.height=cn.height+"px",kn.parentNode.style.width=cn.width*si+"px",kn.parentNode.style.height=cn.height*si+"px"),Ge.resize=function(){en(Nt,_n,kn,ln)},window.addEventListener("resize",function(kt){Ge.resize()}),Ge.resize()};function en(Nt,cn,ln,_n){if(Nt.contains(cn)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Nt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Nt)}var kn=GGBAppletUtils.getScale(de,Nt,_n);ln.parentNode!==null&&(!isNaN(kn)&&kn!==1?(GGBAppletUtils.scaleElement(ln,kn),ln.parentNode.style.width=de.width*kn+"px",ln.parentNode.style.height=de.height*kn+"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(Nt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ge.onExitFullscreen=function(Nt,cn){cn.appendChild(Nt)};var Cn=function(Nt,cn,ln,_n){Dt(Nt,cn,!0);for(var kn=function(){var Kn=[];for(kt=0;kt<Nt.childNodes.length;kt++)Kn.push(Nt.childNodes[kt]);if(window.GGBT_wsf_view){var hi=window.GGBT_wsf_view.renderFullScreen(Nt,cn.id),et=document.getElementById("fullscreencontainer"),_e=jQuery(Nt).find(".fullscreencontent");_e.length>0?(hi.remove(),_e.attr("id","fullscreencontent").show(),jQuery(et).append(_e),window.dispatchEvent(new Event("resize"))):Tt(hi,cn,!1),window.GGBT_wsf_view.launchFullScreen(et)}else Ct=_n,Tt(Nt,cn,!1);if(!window.GGBT_wsf_view)for(kt=0;kt<Kn.length;kt++)Nt.removeChild(Kn[kt])},si=Nt.getElementsByClassName("ggb_preview_play"),kt=0;kt<si.length;kt++)si[kt].addEventListener("click",kn,!1),si[kt].addEventListener("ontouchstart",kn,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Nt),Qe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},vn=function(){var Nt=document.createElement("div");if(Nt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var cn='.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=cn:ln.appendChild(document.createTextNode(cn)),document.getElementsByTagName("head")[0].appendChild(ln)}return Nt},pn=function(Nt,cn,ln,_n){var kn=document.createElement("div");kn.className="ggb_preview",kn.style.position="absolute",kn.style.zIndex="90",kn.style.width=Nt-2+"px",kn.style.height=cn-2+"px",kn.style.top="0px",kn.style.left="0px",kn.style.overflow="hidden",kn.style.backgroundColor="white";var si="lightgrey";ln!==void 0&&(ln==="none"?si="transparent":si=ln),kn.style.border="1px solid "+si;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,hi,et;if(!_n){Kn=document.createElement("img"),Kn.style.position="absolute",Kn.style.zIndex="1001",Kn.style.opacity=1,kt.style.opacity=.3,hi=360,hi>Nt/4*3&&(hi=Nt/4*3),et=hi/5.8,Kn.setAttribute("src",se),Kn.setAttribute("width",hi),Kn.setAttribute("height",et);var _e=(Nt-hi)/2,xe=(cn-et)/2;Kn.style.left=_e+"px",Kn.style.top=xe+"px",kn.appendChild(Kn)}}return kn.appendChild(kt),kn},mn=function(Nt){return Nt=Nt.toLowerCase(),Nt==="html5"||Nt==="screenshot"?Nt:"html5"},Mt=["web","webSimple","web3d","tablet","tablet3d","phone"],ct=function(Nt,cn){if(je=Nt,cn){nt(je,!0);return}var ln=!Le;if(ln){var _n=Oe(je);!isNaN(_n)&&_n<4.4&&(ln=!1)}var kn,si;window.location.protocol.substr(0,4)==="http"?kn=window.location.protocol:kn="http:";var kt=je.indexOf("//");kt>0?si=je:kt===0?si=kn+je:si="https://www.geogebra.org/apps/5.2.814.0/";for(var Kn in Mt)if(je.slice(Mt[Kn].length*-1)===Mt[Kn]||je.slice((Mt[Kn].length+1)*-1)===Mt[Kn]+"/"){nt(si,!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&&!ut(de.showToolBar)&&!ut(de.showMenuBar)&&!ut(de.showAlgebraInput)&&!ut(de.enableRightClick)&&(!de.appName||de.appName=="classic")?si+="webSimple/":si+="web3d/",nt(si,!1)},nt=function(Nt,cn){if(Nt.requirejs){mt=Nt;return}Nt.slice(-1)!=="/"&&(Nt+="/"),mt=Nt,cn===null&&(cn=Nt.indexOf("http")===-1),st=cn,te="web.nocache.js",ne=!1;var ln=mt.split("/");ln.length>1&&(!cn&&ln[ln.length-2]==="webSimple"?(te="webSimple.nocache.js",ne=!0):Mt.indexOf(ln[ln.length-2])>=0&&(te=ln[ln.length-2]+".nocache.js")),ln=Nt.split("/"),je=ln[ln.length-3],je.substr(0,4)==="test"?je=je.substr(4,1)+"."+je.substr(5,1):(je.substr(0,3)==="war"||je.substr(0,4)==="beta")&&(je="5.0");var _n=parseFloat(je);_n!==NaN&&_n<5&&Nt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+_n+" is deprecated. Using version latest instead."),ct("5.0",cn))},dn=function(Nt,cn){window.console&&window.console.log&&(!cn||typeof cn.showLogging=="undefined"||cn.showLogging&&cn.showLogging!=="false")&&console.log(Nt)};de.material_id!==void 0?ot(En):En();function En(){var Nt=be;Fe!==null?Nt=Fe:parseFloat(Nt)<5&&(Nt="5.0"),ct(Nt,!1),Ve!==null&&nt(Ve,st),Ye=!0}return Ge},GGBAppletUtils=function(){"use strict";function Ge(){return window.GGBT_wsf_edit!==void 0}function be(Ye,Fe){Fe!=1?(Ye.style.transformOrigin="0% 0% 0px",Ye.style.webkitTransformOrigin="0% 0% 0px",Ye.style.transform="scale("+Fe+","+Fe+")",Ye.style.webkitTransform="scale("+Fe+","+Fe+")",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,Fe,Ve,Xe,qe,Je){var mt=null;if(Je!=null&&Je!="")for(var st=Ye.parentNode;st!=null;)if((" "+st.className+" ").indexOf(" "+Je+" ")>-1){mt=st;break}else st=st.parentNode;var Ct=0,je=0,te=0,ne=0,he=0,se=0,ge=0;if(mt)Ct=mt.offsetWidth,je=Math.max(Xe?mt.offsetWidth:0,mt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ct=Math.min(window.innerWidth,document.documentElement.clientWidth),je=Math.min(window.innerHeight,document.documentElement.clientHeight),te=Ct):(Ct=window.innerWidth,je=window.innerHeight,te=window.innerWidth),Ye){var Se=Ye.getBoundingClientRect();Se.left>0&&Se.left<=Ct&&(qe===void 0||!qe)&&(document.dir==="rtl"?(he=Ct-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 Ce=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)&&Fe>0&&Fe+ne<Ct?Ct=Fe:Ct-=ne,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ve===void 0||!Ve)&&(je-=ge)),{width:Ct,height:je}}function le(Ye,Fe,Ve,Xe,qe){if(Ye.isScreenshoGenerator)return 1;var Je=Xe!==void 0&&Xe,mt=Ye.noScaleMargin!=null&&Ye.noScaleMargin,st=function(Ce){return Ce&&Ce!=="false"},Ct=st(Ye.autoHeight),je=de(Fe,Ye.width,Ve,Ct,Je&&window.GGBT_wsf_view||mt,qe),te=parseInt(je.width),ne=Ye.width,he=Ye.height;if(ne===void 0){var se=Fe.querySelector(".appletParameters");se&&(ne=se.offsetWidth,he=se.offsetHeight)}var ge=te/ne,Se=Je?1:je.height/he;return Ve!==void 0&&!Ve&&(ge=Math.min(1,ge),Se=Math.min(1,Se)),Math.min(ge,Se)}function Le(Ye,Fe,Ve){var Xe=1,qe,Je=!1;if(Ye.hasOwnProperty("allowUpscale")&&(Je=Ye.allowUpscale),Ye.hasOwnProperty("scale")&&(Xe=parseFloat(Ye.scale),(isNaN(Xe)||Xe===null||Xe===0)&&(Xe=1),Xe>1&&(Je=!0)),Fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Je=!0),!(Ye.hasOwnProperty("disableAutoScale")&&Ye.disableAutoScale))qe=le(Ye,Fe,Je,Ve,Ye.scaleContainerClass);else return Xe;return Je&&(!Ye.hasOwnProperty("scale")||Xe===1)?qe:Math.min(Xe,qe)}function De(Ye){var Fe=Math.min(window.innerWidth,document.documentElement.clientWidth),Ve=Math.min(window.innerHeight,document.documentElement.clientHeight),Xe=Ye.getBoundingClientRect(),qe=(Fe-Xe.width)/2,Je=(Ve-Xe.height)/2;Je<0&&(Je=0),Ye.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(qe<40?Ye.style.left="40px":Ye.style.left=qe+"px",Ye.style.top=Je+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Je<40?Ye.style.top="40px":Ye.style.top=Je+"px",Ye.style.left=qe+"px")}function Ie(Ye,Fe){var Ve=Ye.querySelector(".appletParameters");if(Ve){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Fe.id!==Ve.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ye)}if(Ve.parentElement&&/fullscreen/.test(Ve.parentElement.className))return;var Xe=Le(Fe,Ye);Ge()&&Ve.setAttribute("data-param-scale",Xe);for(var qe=null,Je=0;Je<Ye.childNodes.length;Je++)if(Ye.childNodes[Je].className!==void 0&&Ye.childNodes[Je].className.match(/^applet_scaler/)){qe=Ye.childNodes[Je];break}if(qe!==null&&qe.querySelector(".noscale")!==null)return;var mt=Fe.id!==void 0?Fe.id:"ggbApplet",st=window[mt];(st==null||!st.recalculateEnvironments)&&qe!==null&&!qe.className.match(/fullscreen/)&&(qe.parentNode.style.transform="",!isNaN(Xe)&&Xe!==1?(qe.parentNode.style.width=Fe.width*Xe+"px",qe.parentNode.style.height=Fe.height*Xe+"px",be(qe,Xe)):(be(qe,1),qe.parentNode.style.width=Fe.width+"px",qe.parentNode.style.height=Fe.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:Ie,isFlexibleWorksheetEditor:Ge,positionCenter:De,getScale:Le,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],Le=O;Le<le.length;Le++){var De=le[Le];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 Le(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var De=Le();if(De){le();return}function Ie(){if(!De){if(!Le())return;De=!0,le(),o.removeEventListener&&o.removeEventListener(Z,Ie,!1),Ye&&clearInterval(Ye)}}o.addEventListener&&o.addEventListener(Z,Ie,!1);var Ye=setInterval(function(){Ie()},$)}function de(le){var Le=u(),De=Le.body,Ie=Le.createElement(_);Ie.language=ab,Ie.crossOrigin=W,Ie.src=le,webModule.__errFn&&(Ie.onerror=function(){webModule.__errFn(L,new Error(bb+le))}),De.appendChild(Ie)}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 Fe=Ye.lastIndexOf(rb);Fe==-1&&(Fe=Ye.length);var Ve=Ye.indexOf(sb);Ve==-1&&(Ve=Ye.length);var Xe=Ye.lastIndexOf(tb,Math.min(Ve,Fe));return Xe>=O?Ye.substring(O,Xe+P):W}function be(Ye){if(!Ye.match(/^\w+:\/\//)){var Fe=o.createElement(ub);Fe.src=Ye+vb,Ye=Ge(Fe.src)}return Ye}function de(){var Ye=__gwt_getMetaProperty(wb);return Ye!=null?Ye:W}function le(){for(var Ye=o.getElementsByTagName(_),Fe=O;Fe<Ye.length;++Fe)if(Ye[Fe].src.indexOf(xb)!=-1)return Ge(Ye[Fe].src);return W}function Le(){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 Ie=de();return Ie==W&&(Ie=le()),Ie==W&&(Ie=Le()),Ie==W&&De()&&(Ie=Ge(o.location.href)),Ie=be(Ie),Ie}function C(Ge){return Ge.match(/^\//)||Ge.match(/^[a-zA-Z]+:\/\//)?Ge:webModule.__moduleBase+Ge}function D(){var Ge=[],be=O,de=[],le=[];function Le(Ye){var Fe=le[Ye](),Ve=de[Ye];if(Fe in Ve)return Fe;var Xe=[];for(var qe in Ve)Xe[Ve[qe]]=qe;throw r&&r(Ye,Xe,Fe),null}if(__gwt_isKnownPropertyValue=function(Ye,Fe){return Fe in de[Ye]},webModule.__getPropMap=function(){var Ye={};for(var Fe in de)de.hasOwnProperty(Fe)&&(Ye[Fe]=Le(Fe));return Ye},webModule.__computePropValue=Le,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var De;try{De=Cb;var Ie=De.indexOf(Db);Ie!=-1&&(be=parseInt(De.substring(Ie+P),$),De=De.substring(O,Ie))}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})()},49341:function(Ge,be){(function(de,le){le(be)})(this,function(de){"use strict";var le=function(){return(le=Object.assign||function(Me){for(var Ae,at=1,Lt=arguments.length;at<Lt;at++)for(var Pt in Ae=arguments[at])Object.prototype.hasOwnProperty.call(Ae,Pt)&&(Me[Pt]=Ae[Pt]);return Me}).apply(this,arguments)};function Le(Me,Ae,at,Lt){return new(at||(at=Promise))(function(Pt,Vt){function It(on){try{sn(Lt.next(on))}catch(bn){Vt(bn)}}function an(on){try{sn(Lt.throw(on))}catch(bn){Vt(bn)}}function sn(on){var bn;on.done?Pt(on.value):(bn=on.value,bn instanceof at?bn:new at(function(un){un(bn)})).then(It,an)}sn((Lt=Lt.apply(Me,Ae||[])).next())})}function De(Me,Ae){var at,Lt,Pt,Vt,It={label:0,sent:function(){if(1&Pt[0])throw Pt[1];return Pt[1]},trys:[],ops:[]};return Vt={next:an(0),throw:an(1),return:an(2)},typeof Symbol=="function"&&(Vt[Symbol.iterator]=function(){return this}),Vt;function an(sn){return function(on){return function(bn){if(at)throw new TypeError("Generator is already executing.");for(;It;)try{if(at=1,Lt&&(Pt=2&bn[0]?Lt.return:bn[0]?Lt.throw||((Pt=Lt.return)&&Pt.call(Lt),0):Lt.next)&&!(Pt=Pt.call(Lt,bn[1])).done)return Pt;switch(Lt=0,Pt&&(bn=[2&bn[0],Pt.value]),bn[0]){case 0:case 1:Pt=bn;break;case 4:return It.label++,{value:bn[1],done:!1};case 5:It.label++,Lt=bn[1],bn=[0];continue;case 7:bn=It.ops.pop(),It.trys.pop();continue;default:if(!(Pt=(Pt=It.trys).length>0&&Pt[Pt.length-1])&&(bn[0]===6||bn[0]===2)){It=0;continue}if(bn[0]===3&&(!Pt||bn[1]>Pt[0]&&bn[1]<Pt[3])){It.label=bn[1];break}if(bn[0]===6&&It.label<Pt[1]){It.label=Pt[1],Pt=bn;break}if(Pt&&It.label<Pt[2]){It.label=Pt[2],It.ops.push(bn);break}Pt[2]&&It.ops.pop(),It.trys.pop();continue}bn=Ae.call(Me,It)}catch(un){bn=[6,un],Lt=0}finally{at=Pt=0}if(5&bn[0])throw bn[1];return{value:bn[0]?bn[1]:void 0,done:!0}}([sn,on])}}}var Ie=function(){function Me(){}return Me.add=function(Ae){Me.HANDLE_LIST.push(Ae),window.addEventListener("message",Ae,!1)},Me.remove=function(Ae){var at=Me.HANDLE_LIST.indexOf(Ae);at>=0&&Me.HANDLE_LIST.splice(at,1),window.removeEventListener("message",Ae,!1)},Me.empty=function(){for(;Me.HANDLE_LIST.length;)window.removeEventListener("message",Me.HANDLE_LIST.shift(),!1)},Me.parse=function(Ae){try{return typeof Ae=="object"?Ae:Ae&&JSON.parse(Ae)}catch(at){return console.log("Message.parse Error:",at),Ae}},Me.HANDLE_LIST=[],Me}();function Ye(Me){return{}.toString.call(Me)==="[object Function]"}var Fe,Ve,Xe,qe,Je={origin:""};function mt(Me,Ae){Je[Me]=Ae}function st(Me){return Je[Me]}function Ct(Me){var Ae=st("origin");return!!function(at,Lt){return at!==Lt&&(at.replace(/www\./i,"").toLowerCase()!==Lt.replace(/www\./i,"").toLowerCase()||(at.match("www.")?void 0:(mt("origin",Lt),!1)))}(Ae,Me.origin)&&(console.warn("postMessage \u57DF\u540D\u68C0\u67E5\u4E0D\u901A\u8FC7",{safeOrigin:Ae,eventOrigin:Me.origin}),!0)}(function(Me){Me.unknown="unknown",Me.spreadsheet="s",Me.writer="w",Me.presentation="p",Me.pdf="f"})(Fe||(Fe={})),function(Me){Me.wps="w",Me.et="s",Me.presentation="p",Me.pdf="f"}(Ve||(Ve={})),function(Me){Me.nomal="nomal",Me.simple="simple"}(Xe||(Xe={})),function(Me){Me[Me.requestFullscreen=1]="requestFullscreen",Me[Me.exitFullscreen=0]="exitFullscreen"}(qe||(qe={}));var je,te,ne,he=(je=0,function(){return je+=1}),se=function(Me,Ae,at){at===void 0&&(at=!0);var Lt=Ae;if(!te){var Pt=function an(sn){var on=sn.clientHeight,bn=sn.clientWidth;on!==0||bn!==0||ne?on===0&&bn===0||!ne||(ne.disconnect(),ne=null):window.ResizeObserver&&(ne=new ResizeObserver(function(un){an(sn)})).observe(sn),te.style.cssText+="height: "+on+"px; width: "+bn+"px"}.bind(null,Lt);(te=document.createElement("iframe")).classList.add("web-office-iframe");var Vt={id:"office-iframe",src:Me,scrolling:"no",frameborder:"0",allowfullscreen:"allowfullscreen",webkitallowfullscreen:"true",mozallowfullscreen:"true",allow:"clipboard-read; clipboard-write"};for(var It in Lt?(Vt.style="width: "+Lt.clientWidth+"px; height: "+Lt.clientHeight+"px;",at&&window.addEventListener("resize",Pt)):((Lt=document.createElement("div")).classList.add("web-office-default-container"),function(an){var sn=document.createElement("style");document.head.appendChild(sn);var on=sn.sheet;on.insertRule(an,on.cssRules.length)}(".web-office-default-container {position: absolute; padding: 0; margin: 0; width: 100%; height: 100%; left: 0; top: 0;}"),document.body.appendChild(Lt),Vt.style="position: fixed; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%;"),Vt)te.setAttribute(It,Vt[It]);Lt.appendChild(te),te.destroy=function(){te.parentNode.removeChild(te),te=null,window.removeEventListener("resize",Pt),ne&&(ne.disconnect(),ne=null)}}return te},ge=function(Me){se().contentWindow&&se().contentWindow.postMessage(JSON.stringify(Me),st("origin"))};function Se(Me,Ae,at){return new Promise(function(Lt){var Pt=he(),Vt=function(It){if(!Ct(It)){var an=Ie.parse(It.data);an.eventName===at&&an.msgId===Pt&&(Lt(an.data),Ie.remove(Vt))}};Ie.add(Vt),ge({data:Me,msgId:Pt,eventName:Ae})})}var Ce=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 Qe(Me){return Le(this,void 0,void 0,function(){var Ae,at,Lt,Pt,Vt,It,an,sn,on,bn;return De(this,function(un){switch(un.label){case 0:return Ct(Me)?[2]:(Ae=Ie.parse(Me.data),at=Ae.eventName,Lt=Ae.callbackId,Pt=Ae.data,Lt&&(Vt=Be.idMap[Lt])?(It=Vt.split(":"),an=It[0],sn=It[1],at==="api.callback"&&Be[an]&&Be[an][sn]?[4,(bn=Be[an][sn]).callback.apply(bn,Pt.args)]:[3,2]):[3,2]);case 1:on=un.sent(),ge({result:on,callbackId:Lt,eventName:"api.callback.reply"}),un.label=2;case 2:return[2]}})})}var ot=function(Me){return Le(void 0,void 0,void 0,function(){function Ae(){return Object.keys(Be.idMap).find(function(un){return Be.idMap[un]===Lt+":"+at})}var at,Lt,Pt,Vt,It,an,sn,on,bn;return De(this,function(un){switch(un.label){case 0:return at=Me.prop,Lt=Me.parentObjId,[4,ft([Pt=Me.value])];case 1:return Vt=un.sent(),It=Vt[0],an=Vt[1],Me.value=It[0],sn=Object.keys(an)[0],on=Be[Lt],Pt===null&&on&&on[at]&&((bn=Ae())&&delete Be.idMap[bn],delete on[at],Object.keys(on).length||delete Be[Lt],Object.keys(Be.idMap).length||Ie.remove(Qe)),sn&&(Object.keys(Be.idMap).length||Ie.add(Qe),Be[Lt]||(Be[Lt]={}),Be[Lt][at]={callbackId:sn,callback:an[sn]},(bn=Ae())&&delete Be.idMap[bn],Be.idMap[sn]=Lt+":"+at),[2]}})})},rt=function(Me,Ae,at,Lt){return Le(void 0,void 0,void 0,function(){var Pt,Vt,It,an,sn,on,bn,un;return De(this,function(zt){switch(zt.label){case 0:return Pt=he(),an=new Promise(function(xn,fn){Vt=xn,It=fn}),sn={},Ae.args?[4,ft(Ae.args)]:[3,2];case 1:on=zt.sent(),bn=on[0],un=on[1],Ae.args=bn,sn=un,zt.label=2;case 2:return Me!=="api.setter"?[3,4]:[4,ot(Ae)];case 3:zt.sent(),zt.label=4;case 4:return function(xn){var fn=xn[0],An=xn[1];typeof(fn=le({},fn)).data=="function"&&(fn.data=fn.data()),An(),ge(fn)}([{eventName:Me,data:Ae,msgId:Pt},function(){var xn=this,fn=function(An){return Le(xn,void 0,void 0,function(){var nn,ci,zn;return De(this,function(yt){switch(yt.label){case 0:return Ct(An)?[2]:(nn=Ie.parse(An.data)).eventName==="api.callback"&&nn.callbackId&&sn[nn.callbackId]?[4,sn[nn.callbackId].apply(sn,nn.data.args)]:[3,2];case 1:ci=yt.sent(),ge({result:ci,eventName:"api.callback.reply",callbackId:nn.callbackId}),yt.label=2;case 2:return nn.eventName===Me+".reply"&&nn.msgId===Pt&&(nn.error?((zn=new Error("")).stack=nn.error+`
`+at,Lt&&Lt(),It(zn)):Vt(nn.result),Ie.remove(fn)),[2]}})})};return Ie.add(fn),an}]),[2,an]}})})};function ft(Me){return Le(this,void 0,void 0,function(){var Ae,at,Lt,Pt,Vt,It,an,sn,on,bn,un;return De(this,function(zt){switch(zt.label){case 0:Ae={},at=[],Lt=Me.slice(0),zt.label=1;case 1:return Lt.length?(Pt=void 0,[4,Lt.shift()]):[3,13];case 2:return(Vt=zt.sent())&&Vt.done?[4,Vt.done()]:[3,4];case 3:zt.sent(),zt.label=4;case 4:if(!function(xn){if(!xn)return!1;for(var fn=xn;Object.getPrototypeOf(fn)!==null;)fn=Object.getPrototypeOf(fn);return Object.getPrototypeOf(xn)===fn}(Pt))return[3,11];for(an in Pt={},It=[],Vt)It.push(an);sn=0,zt.label=5;case 5:return sn<It.length?(on=It[sn],bn=Vt[on],/^[A-Z]/.test(on)?bn&&bn.done?[4,bn.done()]:[3,7]:[3,8]):[3,10];case 6:zt.sent(),zt.label=7;case 7:bn&&bn.objId?bn={objId:bn.objId}:typeof bn=="function"&&(un=he(),Ae[un]=bn,bn={callbackId:un}),zt.label=8;case 8:Pt[on]=bn,zt.label=9;case 9:return sn++,[3,5];case 10:return[3,12];case 11:Vt&&Vt.objId?Pt={objId:Vt.objId}:typeof Vt=="function"&&Vt.objId===void 0?(un=he(),Ae[un]=Vt,Pt={callbackId:un}):Pt=Vt,zt.label=12;case 12:return at.push(Pt),[3,1];case 13:return[2,[at,Ae]]}})})}var bt=function(Me,Ae){Ae===void 0&&(Ae=!0);var at=le({},Me),Lt=at.headers,Pt=Lt===void 0?{}:Lt,Vt=at.subscriptions,It=Vt===void 0?{}:Vt,an=at.mode,sn=an===void 0?Xe.nomal:an,on=at.commonOptions,bn=Pt.backBtn,un=bn===void 0?{}:bn,zt=Pt.shareBtn,xn=zt===void 0?{}:zt,fn=Pt.otherMenuBtn,An=fn===void 0?{}:fn,nn=function(Fn,Pn){Fn.subscribe&&typeof Fn.subscribe=="function"&&(Fn.callback=Pn,It[Pn]=Fn.subscribe,Ae&&delete Fn.subscribe)};if(nn(un,"wpsconfig_back_btn"),nn(xn,"wpsconfig_share_btn"),nn(An,"wpsconfig_other_menu_btn"),An.items&&Array.isArray(An.items)){var ci=[];An.items.forEach(function(Fn,Pn){switch(Fn===void 0&&(Fn={}),Fn.type){case"export_img":Fn.type=1,Fn.callback="export_img";break;case"export_pdf":Fn.type=1,Fn.callback="export_pdf";break;case"save_version":Fn.type=1,Fn.callback="save_version";break;case"about_wps":Fn.type=1,Fn.callback="about_wps";break;case"split_line":Fn.type=2;break;case"custom":Fn.type=3,nn(Fn,"wpsconfig_other_menu_btn_"+Pn),ci.push(Fn)}}),ci.length&&(en||Cn)&&(An.items=ci)}at.url=at.url||at.wpsUrl;var zn=[];if((sn===Xe.simple||on&&on.isShowTopArea===!1)&&zn.push("simple","hidecmb"),at.debug&&zn.push("debugger"),at.url&&zn.length&&(at.url=at.url+(at.url.indexOf("?")>=0?"&":"?")+zn.join("&")),on&&(on.isParentFullscreen||on.isBrowserViewFullscreen)&&(document.addEventListener("fullscreenchange",vn),document.addEventListener("webkitfullscreenchange",vn),document.addEventListener("mozfullscreenchange",vn)),at.wordOptions&&(at.wpsOptions=at.wordOptions),at.excelOptions&&(at.etOptions=at.excelOptions),at.pptOptions&&(at.wppOptions=at.pptOptions),typeof It.print=="object"){var yt="wpsconfig_print";typeof It.print.subscribe=="function"&&(It[yt]=It.print.subscribe,at.print={callback:yt},It.print.custom!==void 0&&(at.print.custom=It.print.custom)),delete It.print}return typeof It.exportPdf=="function"&&(It[yt="wpsconfig_export_pdf"]=It.exportPdf,at.exportPdf={callback:yt},delete It.exportPdf),at.commandBars&&Tt(at.commandBars,!1),le(le({},at),{subscriptions:It})},ut=function(Me){Me===void 0&&(Me="");var Ae="";if(!Ae&&Me){var at=Me.toLowerCase();at.indexOf("/office/s/")!==-1&&(Ae=Fe.spreadsheet),at.indexOf("/office/w/")!==-1&&(Ae=Fe.writer),at.indexOf("/office/p/")!==-1&&(Ae=Fe.presentation),at.indexOf("/office/f/")!==-1&&(Ae=Fe.pdf)}if(!Ae){var Lt=Me.match(/[\?&]type=([a-z]+)/)||[];Ae=Ve[Lt[1]]||""}return Ae};function Tt(Me,Ae){Ae===void 0&&(Ae=!0);var at=Me.map(function(Lt){var Pt=Lt.attributes;if(!Array.isArray(Pt)){var Vt=[];for(var It in Pt)if(Pt.hasOwnProperty(It)){var an={name:It,value:Pt[It]};Vt.push(an)}Lt.attributes=Vt}return Lt});return Ae&&ge({data:at,eventName:"setCommandBars"}),at}var Dt=window.navigator.userAgent.toLowerCase(),en=/Android|webOS|iPhone|iPod|BlackBerry|iPad/i.test(Dt),Cn=function(){try{return window._parent.location.search.indexOf("from=wxminiprogram")!==-1}catch(Me){return!1}}();function vn(){var Me={status:qe.requestFullscreen},Ae=document,at=Ae.fullscreenElement||Ae.webkitFullscreenElement||Ae.mozFullScreenElement;Me.status=at?qe.requestFullscreen:qe.exitFullscreen,ge({data:Me,eventName:"fullscreenchange"})}var pn=function(){Be.idMap={}};function mn(){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 Mt=0,ct=new Set;function nt(Me){return Mt+=1,!Me&&function(Ae){ct.forEach(function(at){return at(Ae)})}(Mt),Mt}function dn(){var Me=new Error("");return(Me.stack||Me.message||"").split(`
`).slice(2).join(`
`)}function En(Me,Ae){var at,Lt=this,Pt=Ae.Events,Vt=Ae.Enum,It=Ae.Props,an=It[0],sn=It[1],on={objId:Mt};switch(function xn(fn,An,nn){for(var ci=An.slice(0),zn=function(){var yt=ci.shift();!yt.alias&&~Nt.indexOf(yt.prop)&&ci.push(le(le({},yt),{alias:yt.prop+"Async"})),Object.defineProperty(fn,yt.alias||yt.prop,{get:function(){var Fn=this,Pn=yt.cache===1,Ht=Pn&&this["__"+yt.prop+"CacheValue"];if(!Ht){var fi=dn(),zi=nt(Pn),Li=function(){for(var Dn,qi=[],Ui=0;Ui<arguments.length;Ui++)qi[Ui]=arguments[Ui];return yt.caller!==void 0?function ui(bi,Ri,ke){for(var gi=Ri.slice(0),Ii=function(){var ki=gi.shift();!ki.alias&&~Nt.indexOf(ki.prop)&&gi.push(le(le({},ki),{alias:ki.prop+"Async"})),Object.defineProperty(bi,ki.alias||ki.prop,{get:function(){var ar=this,Nr=ki.cache===1,sr=Nr&&this["__"+ki.prop+"CacheValue"];if(!sr){var Di=dn(),Ei=nt(Nr),Zt=function(){for(var Wt,Rt=[],rn=0;rn<arguments.length;rn++)Rt[rn]=arguments[rn];return ki.caller!==void 0?ui(Wt={objId:nt()},ke[ki.caller],ke):Wt={},ln(Zt,Wt,"api.caller",{obj:Zt,args:Rt,parentObjId:bi.objId,objId:Wt.objId,prop:ki.prop},Di),Wt};return Zt.objId=-1,ki.getter!==void 0&&(Zt.objId=Ei,ui(Zt,ke[ki.getter],ke)),ln(bi,Zt,"api.getter",{parentObjId:bi.objId,objId:Zt.objId,prop:ki.prop},Di,function(){delete ar["__"+ki.prop+"CacheValue"]}),Nr&&(this["__"+ki.prop+"CacheValue"]=Zt),Zt}return sr},set:function(ar){var Nr=dn();return ln(bi,{},"api.setter",{value:ar,parentObjId:bi.objId,objId:-1,prop:ki.prop},Nr)}})};gi.length;)Ii()}(Dn={objId:nt()},nn[yt.caller],nn):Dn={},ln(Li,Dn,"api.caller",{obj:Li,args:qi,parentObjId:fn.objId,objId:Dn.objId,prop:yt.prop},fi),Dn};return Li.objId=-1,yt.getter!==void 0&&(Li.objId=zi,xn(Li,nn[yt.getter],nn)),ln(fn,Li,"api.getter",{parentObjId:fn.objId,objId:Li.objId,prop:yt.prop},fi,function(){delete Fn["__"+yt.prop+"CacheValue"]}),Pn&&(this["__"+yt.prop+"CacheValue"]=Li),Li}return Ht},set:function(Fn){var Pn=dn();return ln(fn,{},"api.setter",{value:Fn,parentObjId:fn.objId,objId:-1,prop:yt.prop},Pn)}})};ci.length;)zn()}(on,an,sn),on.Events=Pt,on.Enum=Vt,Me.Enum=on.Enum,Me.Events=on.Events,Me.Props=It,ut(Me.url)){case Fe.writer:Me.WordApplication=Me.WpsApplication=function(){return on};break;case Fe.spreadsheet:Me.ExcelApplication=Me.EtApplication=function(){return on};break;case Fe.presentation:Me.PPTApplication=Me.WppApplication=function(){return on};break;case Fe.pdf:Me.PDFApplication=function(){return on}}Me.Application=on,Me.Free=function(xn){return rt("api.free",{objId:xn},"")},Me.Stack=on.Stack=(at=function(xn){Me&&Me.Free(xn)},function(){var xn=[],fn=function(An){xn.push(An)};return ct.add(fn),{End:function(){at(xn),ct.delete(fn)}}});var bn={};Ie.add(function(xn){return Le(Lt,void 0,void 0,function(){var fn,An,nn,ci,zn;return De(this,function(yt){switch(yt.label){case 0:return Ct(xn)?[2]:(fn=Ie.parse(xn.data)).eventName==="api.event"&&fn.data?(An=fn.data,nn=An.eventName,ci=An.data,(zn=bn[nn])?[4,zn(ci)]:[3,2]):[3,2];case 1:yt.sent(),yt.label=2;case 2:return[2]}})})}),on.Sub={};var un=function(xn){var fn=Pt[xn];Object.defineProperty(on.Sub,fn,{set:function(An){mn(),bn[fn]=An,ge({eventName:"api.event.register",data:{eventName:fn,register:!!An,objId:Mt+=1}})}})};for(var zt in Pt)un(zt)}var Nt=["ExportAsFixedFormat","GetOperatorsInfo","ImportDataIntoFields","ReplaceText","ReplaceBookmark","GetBookmarkText","GetComments"];function cn(Me,Ae,at){for(var Lt=Ae.slice(0),Pt=function(){var Vt=Lt.shift();!Vt.alias&&~Nt.indexOf(Vt.prop)&&Lt.push(le(le({},Vt),{alias:Vt.prop+"Async"})),Object.defineProperty(Me,Vt.alias||Vt.prop,{get:function(){var It=this,an=Vt.cache===1,sn=an&&this["__"+Vt.prop+"CacheValue"];if(!sn){var on=dn(),bn=nt(an),un=function(){for(var xn=[],fn=0,An;fn<arguments.length;fn++)xn[fn]=arguments[fn];return Vt.caller!==void 0?(An={objId:nt()},cn(An,at[Vt.caller],at)):An={},ln(zt,An,"api.caller",{obj:zt,args:xn,parentObjId:Me.objId,objId:An.objId,prop:Vt.prop},on),An},zt=un;return zt.objId=-1,Vt.getter!==void 0&&(zt.objId=bn,cn(zt,at[Vt.getter],at)),ln(Me,zt,"api.getter",{parentObjId:Me.objId,objId:zt.objId,prop:Vt.prop},on,function(){delete It["__"+Vt.prop+"CacheValue"]}),an&&(this["__"+Vt.prop+"CacheValue"]=zt),zt}return sn},set:function(It){var an=dn();return ln(Me,{},"api.setter",{value:It,parentObjId:Me.objId,objId:-1,prop:Vt.prop},an)}})};Lt.length;)Pt()}function ln(Me,Ae,at,Lt,Pt,Vt){var It,an=(Me.done?Me.done():Promise.resolve()).then(function(){return It||(It=rt(at,Lt,Pt,Vt)),It});Ae.done=function(){return an},Ae.then=function(sn,on){return Lt.objId>=0?(Ae.then=null,Ae.catch=null,an.then(function(){sn(Ae)}).catch(function(bn){return on(bn)})):an.then(sn,on)},Ae.catch=function(sn){return an.catch(sn)},Ae.Destroy=function(){return rt("api.free",{objId:Ae.objId},"")}}var _n={},kn=null,si={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,Ae,at,Lt,Pt,Vt,It){var an=this;at===void 0&&(at={}),Ie.add(function(sn){return Le(an,void 0,void 0,function(){var on,bn,un,zt,xn,fn,An,nn,ci,zn,yt,Fn,Pn,Ht,fi,zi,Li,Dn,qi;return De(this,function(Ui){switch(Ui.label){case 0:return Ct(sn)?[2]:(on=Ie.parse(sn.data),bn=on.eventName,un=bn===void 0?"":bn,zt=on.data,xn=zt===void 0?null:zt,fn=on.url,An=fn===void 0?null:fn,["wps.jssdk.api"].indexOf(un)!==-1?[2]:un!=="ready"?[3,1]:(Pt.apiReadySended&&function(ui){var bi=[];Object.keys(_n).forEach(function(Ri){_n[Ri].forEach(function(ke){var gi=Ri;ui.off(gi,ke),bi.push({handle:ke,eventName:gi})}),delete _n[Ri]}),bi.forEach(function(Ri){var ke=Ri.eventName,gi=Ri.handle;kn==null||kn.ApiEvent.AddApiEventListener(ke,gi)})}(Ae),ge({eventName:"setConfig",data:le(le({},at),{version:Me.version})}),Me.tokenData&&Me.setToken(le(le({},Me.tokenData),{hasRefreshTokenConfig:!!at.refreshToken})),Me.iframeReady=!0,[3,15]));case 1:return un!=="error"?[3,2]:(Ae.emit(si.error,xn),[3,15]);case 2:return un!=="open.result"?[3,3]:(((Li=xn==null?void 0:xn.fileInfo)===null||Li===void 0?void 0:Li.officeVersion)!==void 0&&(Me.mainVersion=xn.fileInfo.officeVersion,console.log("aliyun Main Version: V"+Me.mainVersion)),Ae.emit(si.fileOpen,xn),[3,15]);case 3:return un!=="api.scroll"?[3,4]:(window.scrollTo(xn.x,xn.y),[3,15]);case 4:if(un!==kt.getToken)return[3,9];nn={token:!1},Ui.label=5;case 5:return Ui.trys.push([5,7,,8]),[4,Pt.refreshToken()];case 6:return nn=Ui.sent(),[3,8];case 7:return ci=Ui.sent(),console.error("refreshToken: "+(ci||"fail to get")),[3,8];case 8:return ge({eventName:kt.getToken+".reply",data:nn}),[3,15];case 9:if(un!==kt.getClipboardData)return[3,14];zn={text:"",html:""},Ui.label=10;case 10:return Ui.trys.push([10,12,,13]),[4,Pt.getClipboardData()];case 11:return zn=Ui.sent(),[3,13];case 12:return yt=Ui.sent(),console.error("getClipboardData: "+(yt||"fail to get")),[3,13];case 13:return ge({eventName:kt.getClipboardData+".reply",data:zn}),[3,15];case 14:un===kt.onToast?Pt.onToast(xn):un===kt.onHyperLinkOpen?Pt.onHyperLinkOpen(xn):un==="stage"?Ae.emit(si.stage,xn):un==="event.callback"?(Fn=xn.eventName,Pn=xn.data,Ht=Fn,Fn==="fullScreenChange"&&(Ht=si.fullscreenChange),Fn==="file.saved"&&(Ht=si.fileStatus),(!((Dn=at.commonOptions)===null||Dn===void 0)&&Dn.isBrowserViewFullscreen||!((qi=at.commonOptions)===null||qi===void 0)&&qi.isParentFullscreen)&&Ht==="fullscreenchange"&&(fi=Pn.status,zi=Pn.isDispatchEvent,at.commonOptions.isBrowserViewFullscreen?function(ui,bi,Ri,ke){ui===0?bi.style="position: static; width: "+Ri.width+"; height: "+Ri.height:ui===1&&(bi.style="position: absolute; width: 100%; height: 100%"),ke&&function(gi){["fullscreen","fullscreenElement"].forEach(function(ki){Object.defineProperty(document,ki,{get:function(){return!!gi.status},configurable:!0})});var Ii=new CustomEvent("fullscreenchange");document.dispatchEvent(Ii)}({status:ui})}(fi,Vt,It,zi):at.commonOptions.isParentFullscreen&&function(ui,bi,Ri){var ke=document.querySelector(Ri),gi=ke&&ke.nodeType===1?ke:bi;if(ui===0){var Ii=document,ki=Ii.exitFullscreen||Ii.mozCancelFullScreen||Ii.msExitFullscreen||Ii.webkitCancelFullScreen||Ii.webkitExitFullscreen;ki.call(document)}else if(ui===1){var ar=gi.requestFullscreen||gi.mozRequestFullScreen||gi.msRequestFullscreen||gi.webkitRequestFullscreen;ar.call(gi)}}(fi,Vt,at.commonOptions.isParentFullscreen)),Ae.emit(Ht,Pn)):un==="api.ready"&&En(Me,xn),Ui.label=15;case 15:return typeof Lt[un]=="function"&&Lt[un](Me,An||xn),[2]}})})})}function hi(Me){return new Promise(function(Ae){var at=function(Lt){Ct(Lt)||Ie.parse(Lt.data).eventName===Me&&(Ae(),Ie.remove(at))};Ie.add(at)})}function et(Me){var Ae,at=this;Me===void 0&&(Me={}),kn&&kn.destroy();try{var Lt=bt(Me),Pt=Lt.subscriptions,Vt=Pt===void 0?{}:Pt,It=Lt.mount,an=It===void 0?null:It,sn=Lt.url,on=Lt.refreshToken,bn=Lt.onToast,un=Lt.onHyperLinkOpen,zt=Lt.getClipboardData;mt("origin",(sn.match(/https*:\/\/[^\/]+/g)||[])[0]);var xn=se(sn,an),fn=hi("ready"),An=hi("open.result"),nn=hi("api.ready"),ci=an?{width:an.clientWidth+"px",height:an.clientHeight+"px"}:{width:"100vw",height:"100vh"};delete Lt.mount,sn&&delete Lt.url,delete Lt.subscriptions;var zn=(Ae=Ae||Object.create(null),{on:function(Pn,Ht){(Ae[Pn]||(Ae[Pn]=[])).push(Ht)},off:function(Pn,Ht){Ae[Pn]&&Ae[Pn].splice(Ae[Pn].indexOf(Ht)>>>0,1)},emit:function(Pn,Ht){(Ae[Pn]||[]).slice().map(function(fi){fi(Ht)}),(Ae["*"]||[]).slice().map(function(fi){fi(Pn,Ht)})}}),yt={apiReadySended:!1},Fn=function(Pn,Ht,fi){return Le(at,void 0,void 0,function(){return De(this,function(zi){switch(zi.label){case 0:return function(Li,Dn,qi){if(_n[Li]){var Ui=!!_n[Li].find(function(ui){return ui===Dn});return Ui&&qi==="off"?(zn.off(Li,Dn),_n[Li]=_n[Li].filter(function(ui){return ui!==Dn}),!!_n[Li].length||(_n[Li]=void 0,!1)):(Ui||qi!=="on"||(_n[Li].push(Dn),zn.on(Li,Dn)),!0)}return qi==="on"?(_n[Li]=[],_n[Li].push(Dn),!1):qi==="off"||void 0}(Pn,Ht,fi)?[3,2]:[4,fn];case 1:zi.sent(),function(Li,Dn){var qi=Li.eventName,Ui=Li.type,ui=Li.handle;Dn==="on"?zn.on(qi,ui):zn.off(qi,ui),Ui==="base.event"&&ge({eventName:"basic.event",data:{eventName:qi,action:Dn}}),mn()}(function(Li,Dn){var qi=Li,Ui="base.event";switch(qi){case si.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"),qi="fileStatus";break;case si.fullscreenChange:qi="fullscreenchange";break;case"error":case"fileOpen":Ui="callback.event"}return{eventName:qi,type:Ui,handle:Dn}}(Pn,Ht),fi),zi.label=2;case 2:return[2]}})})};return kn={url:sn,iframe:xn,version:"1.1.19",iframeReady:!1,tokenData:null,commandBars:null,tabs:{getTabs:function(){return Le(this,void 0,void 0,function(){return De(this,function(Pn){switch(Pn.label){case 0:return[4,fn];case 1:return Pn.sent(),[2,Oe({api:"tab.getTabs"})]}})})},switchTab:function(Pn){return Le(this,void 0,void 0,function(){return De(this,function(Ht){switch(Ht.label){case 0:return[4,fn];case 1:return Ht.sent(),[2,Oe({api:"tab.switchTab",args:{tabKey:Pn}})]}})})}},setCooperUserColor:function(Pn){return Le(this,void 0,void 0,function(){return De(this,function(Ht){switch(Ht.label){case 0:return[4,fn];case 1:return Ht.sent(),[2,Oe({api:"setCooperUserColor",args:Pn})]}})})},setToken:function(Pn){return Le(this,void 0,void 0,function(){return De(this,function(Ht){switch(Ht.label){case 0:return[4,fn];case 1:return Ht.sent(),kn.tokenData=Pn,ge({eventName:"setToken",data:Pn}),[2]}})})},ready:function(){return Le(this,void 0,void 0,function(){return De(this,function(Pn){switch(Pn.label){case 0:return yt.apiReadySended?[3,2]:[4,An];case 1:Pn.sent(),yt.apiReadySended=!0,ge({eventName:"api.ready"}),Pn.label=2;case 2:return[4,nn];case 3:return Pn.sent(),[2,new Promise(function(Ht){return setTimeout(function(){return Ht(kn==null?void 0:kn.Application)},0)})]}})})},destroy:function(){_n={},xn.destroy(),Ie.empty(),kn=null,ct=new Set,Mt=0,document.removeEventListener("fullscreenchange",vn),pn()},save:function(){return Le(this,void 0,void 0,function(){return De(this,function(Pn){switch(Pn.label){case 0:return[4,fn];case 1:return Pn.sent(),[2,Ce({api:"save"})]}})})},setCommandBars:function(Pn){return Le(this,void 0,void 0,function(){return De(this,function(Ht){switch(Ht.label){case 0:return[4,fn];case 1:return Ht.sent(),Tt(Pn),[2]}})})},updateConfig:function(Pn){return Pn===void 0&&(Pn={}),Le(this,void 0,void 0,function(){return De(this,function(Ht){switch(Ht.label){case 0:return[4,fn];case 1:return Ht.sent(),Pn.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,Tt(Pn.commandBars)]):[3,3];case 2:Ht.sent(),Ht.label=3;case 3:return[2]}})})},executeCommandBar:function(Pn){return Le(this,void 0,void 0,function(){return De(this,function(Ht){switch(Ht.label){case 0:return[4,fn];case 1:return Ht.sent(),Tt([{cmbId:Pn,attributes:[{name:"click",value:!0}]}]),[2]}})})},on:function(Pn,Ht){return Le(this,void 0,void 0,function(){return De(this,function(fi){return[2,this.ApiEvent.AddApiEventListener(Pn,Ht)]})})},off:function(Pn,Ht){return Le(this,void 0,void 0,function(){return De(this,function(fi){return[2,this.ApiEvent.RemoveApiEventListener(Pn,Ht)]})})},ApiEvent:{AddApiEventListener:function(Pn,Ht){return Le(this,void 0,void 0,function(){return De(this,function(fi){switch(fi.label){case 0:return[4,Fn(Pn,Ht,"on")];case 1:return[2,fi.sent()]}})})},RemoveApiEventListener:function(Pn,Ht){return Le(this,void 0,void 0,function(){return De(this,function(fi){switch(fi.label){case 0:return[4,Fn(Pn,Ht,"off")];case 1:return[2,fi.sent()]}})})}}},function(Pn,Ht,fi,zi,Li,Dn){Ht&&Ye(Ht)&&(Li.refreshToken=Ht,Pn.refreshToken={eventName:kt.getToken}),Dn&&Ye(Dn)&&(Li.getClipboardData=Dn,Pn.getClipboardData={eventName:kt.getClipboardData}),fi&&Ye(fi)&&(Li.onToast=fi,Pn.onToast={eventName:kt.onToast}),zi&&Ye(zi)&&(Li.onHyperLinkOpen=zi,Pn.onHyperLinkOpen={eventName:kt.onHyperLinkOpen})}(Lt,on,bn,un,yt,zt),Kn(kn,zn,Lt,Vt,yt,xn,ci),kn}catch(Pn){console.error(Pn)}}console.log("aliyun JS-SDK V1.1.19");var _e=Object.freeze({__proto__:null,listener:Kn,config:et});window.WPS=_e;var xe=et,Te={config:xe};de.config=xe,de.default=Te,Object.defineProperty(de,"__esModule",{value:!0})})},77665:function(Ge,be,de){"use strict";de.d(be,{Ax:function(){return Ie},Ds:function(){return Ye},KI:function(){return Ve},SI:function(){return De},f1:function(){return Le}});var le=de(13952);function Le(Xe){let qe=!0;if(Xe.length>0){for(let Je=0;Je<Xe.length;Je++)if(Xe[Je].compile_success==0||!Xe[Je].compile_success){qe=!1;break}}else qe=!1;return qe}function De(Xe,qe=""){let Je=[];for(let mt=0;mt<Xe.length;mt++){let st=Xe[mt],Ct=qe?`${qe}/${st.name}`:`${st.name}`;Je.push({title:st.name,type:st.type,isLeaf:st.type!=="tree",key:Ct})}return Je}function Ie(Xe,qe,Je){for(let mt=0;mt<Xe.length;mt++){let st=Xe[mt];if(st.key===qe){st.children=Je;break}st.children&&Ie(st.children,qe,Je)}return Xe}function Ye(Xe,qe,Je){let mt;return function(){let st=this,Ct=arguments,je=function(){mt=null,Je||Xe.apply(st,Ct)},te=Je&&!mt;clearTimeout(mt),mt=setTimeout(je,qe),te&&Xe.apply(st,Ct)}}const Fe=!0,Ve=le.Z.API_SERVER},27051:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return je}});var le=de(99571),Le=de(59301),De=Object.defineProperty,Ie=Object.defineProperties,Ye=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,qe=(te,ne,he)=>ne in te?De(te,ne,{enumerable:!0,configurable:!0,writable:!0,value:he}):te[ne]=he,Je=(te,ne)=>{for(var he in ne||(ne={}))Ve.call(ne,he)&&qe(te,he,ne[he]);if(Fe)for(var he of Fe(ne))Xe.call(ne,he)&&qe(te,he,ne[he]);return te},mt=(te,ne)=>Ie(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&&Fe)for(var se of Fe(te))ne.indexOf(se)<0&&Xe.call(te,se)&&(he[se]=te[se]);return he},Ct=(te,ne,he)=>new Promise((se,ge)=>{var Se=Be=>{try{Oe(he.next(Be))}catch(Qe){ge(Qe)}},Ce=Be=>{try{Oe(he.throw(Be))}catch(Qe){ge(Qe)}},Oe=Be=>Be.done?se(Be.value):Promise.resolve(Be.value).then(Se,Ce);Oe((he=he.apply(te,ne)).next())});const je=te=>{var ne=te,{children:he}=ne,se=st(ne,["children"]);const[ge,Se]=(0,Le.useState)(!1);return Le.createElement(le.ZP,mt(Je({},se),{loading:ge,onClick:Ce=>Ct(void 0,null,function*(){try{Se(!0),yield se.onClick(Ce),Se(!1)}catch(Oe){console.error(Oe),Se(!1)}})}),he)}},48102:function(Ge,be,de){"use strict";var le=de(86204),Le=de.n(le),De=Object.defineProperty,Ie=(Xe,qe,Je)=>qe in Xe?De(Xe,qe,{enumerable:!0,configurable:!0,writable:!0,value:Je}):Xe[qe]=Je,Ye=(Xe,qe,Je)=>Ie(Xe,typeof qe!="symbol"?qe+"":qe,Je),Fe=(Xe,qe,Je)=>new Promise((mt,st)=>{var Ct=ne=>{try{te(Je.next(ne))}catch(he){st(he)}},je=ne=>{try{te(Je.throw(ne))}catch(he){st(he)}},te=ne=>ne.done?mt(ne.value):Promise.resolve(ne.value).then(Ct,je);te((Je=Je.apply(Xe,qe)).next())});class Ve extends le.EventEmitter{constructor(qe,Je){super(),Ye(this,"url"),Ye(this,"body"),Ye(this,"fullContent",""),Ye(this,"controller",null),Ye(this,"buffer",""),this.url=qe,this.body=Je}startStream(){return Fe(this,null,function*(){this.controller=new AbortController;const{signal:qe}=this.controller;try{const Je=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:qe});if(!Je.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${Je.status}`);const mt=Je.headers.get("content-type");if(!mt)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(mt.includes("application/json")){const je=yield Je.json();this.emit("error",je);return}if(!mt.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const st=Je.body.getReader(),Ct=new TextDecoder("utf-8");for(;;){const{done:je,value:te}=yield st.read();if(je)break;const ne=Ct.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(Je){Je.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",Je.message)}})}handleData(qe){qe.content&&(this.fullContent+=qe.content,this.emit("data",{chunk:qe,full:this.fullContent}))}cancelRequest(){var qe;(qe=this.controller)==null||qe.abort()}}be.Z=Ve},32456:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return Ct}});var le=de(59301),Le=de(30641),De=de(77019),Ie=de(5269),Ye={smartWrp:"smartWrp___NjRcB"},Fe=de(58531),Ve=de(38776),Xe=de(27051),qe=de(59301),Je=(je,te,ne)=>new Promise((he,se)=>{var ge=Oe=>{try{Ce(ne.next(Oe))}catch(Be){se(Be)}},Se=Oe=>{try{Ce(ne.throw(Oe))}catch(Be){se(Be)}},Ce=Oe=>Oe.done?he(Oe.value):Promise.resolve(Oe.value).then(ge,Se);Ce((ne=ne.apply(je,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:je=!0,onChange:te,defaultValue:ne,placement:he,width:se,height:ge,extra:Se,onDynamic:Ce,showExtra:Oe=!0}){const Be=(0,le.useRef)(null),Qe=(0,le.useRef)(null),[ot,rt]=(0,le.useState)(ne||""),[ft,bt]=(0,le.useState)(ne||""),[ut,Tt]=(0,le.useState)(!!je),[Dt,en]=(0,le.useState)(1),Cn={selectOnLineNumbers:!0};(0,le.useEffect)(()=>{je&&(rt(ne),bt(ne),Tt(!0))},[je,ne]),(0,le.useEffect)(()=>{ot!==""&&(clearTimeout(Qe.current),Qe.current=setTimeout(()=>{const pn=document.createElement("iframe");if(pn.style.width="100%",pn.style.height="100%",pn.style.border="0",Be.current){Be.current.innerHTML="",Be.current.appendChild(pn);const mn=pn.contentDocument||pn.contentWindow.document;mn.open(),mn.write(ot),mn.close()}},1e3))},[je,ot]);const vn=pn=>{rt(pn),te==null||te(pn,ft)};return qe.createElement(Le.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:ut,width:Oe?700:"100%",height:ge||"100vh",rootClassName:Ye.smartWrp,destroyOnClose:!0,onClose:()=>Tt(!1),extra:Oe&&qe.createElement("div",null,qe.createElement(Ve.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Dt,onChange:pn=>en(pn)}),qe.createElement(Xe.Z,{type:"primary",className:"ml20",onClick:()=>Je(this,null,function*(){yield Ce(ot,()=>{Tt(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},qe.createElement(De.Z,{className:"h100"},qe.createElement(Ie.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Dt===1?"block":"none"}},qe.createElement("div",{className:"h100",ref:Be})),qe.createElement(Ie.Z,{flex:"1",style:{display:Dt===2?"block":"none"}},qe.createElement(Fe.ZP,{height:"90vh",value:ne,language:"html",theme:"vs",showMiniMap:!1,options:Cn,onChange:vn}))))}var Ct=st},24615:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return rt}});var le=de(59301),Le=de(96536),De=de(77596),Ie=de(3310),Ye=de(14179),Fe=de(56102),Ve={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Xe=de(6767),qe=de(90083),Je=de(95827),mt=de(30084),st=de(10787),Ct=de(14752),je=de(32456),te=Object.defineProperty,ne=Object.defineProperties,he=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Ce=(ft,bt,ut)=>bt in ft?te(ft,bt,{enumerable:!0,configurable:!0,writable:!0,value:ut}):ft[bt]=ut,Oe=(ft,bt)=>{for(var ut in bt||(bt={}))ge.call(bt,ut)&&Ce(ft,ut,bt[ut]);if(se)for(var ut of se(bt))Se.call(bt,ut)&&Ce(ft,ut,bt[ut]);return ft},Be=(ft,bt)=>ne(ft,he(bt)),Qe=(ft,bt)=>{var ut={};for(var Tt in ft)ge.call(ft,Tt)&&bt.indexOf(Tt)<0&&(ut[Tt]=ft[Tt]);if(ft!=null&&se)for(var Tt of se(ft))bt.indexOf(Tt)<0&&Se.call(ft,Tt)&&(ut[Tt]=ft[Tt]);return ut},rt=({onFinish:ft,value:bt,streamingStatus:ut,cancelIndex:Tt,loadImage:Dt,onDynamic:en})=>{const[Cn,vn]=(0,le.useState)(""),[pn,mn]=(0,le.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Mt,ct]=(0,le.useState)(0),[nt,dn]=(0,le.useState)(!1),En=ln=>ln.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(_n,kn)=>`<mathx data-text="${kn.trim()}">$$${kn.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,"`$&`"),Nt=()=>{dn(!0),ft==null||ft()};(0,le.useEffect)(()=>{const ln=Dt?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${bt}`:bt,_n=En(ln);if(!nt)if(Dt||!ut||Tt>0){vn(_n),ct(_n.length),(!ut||Tt>0)&&!Dt&&Nt();return}else if((_n==null?void 0:_n.length)<4)vn(_n),ct(_n.length);else if(Mt<_n.length){const kn=_n.length-Mt,si=setInterval(()=>{vn(_n.slice(0,Mt+2)),ct(kt=>kt+2)},kn>10?Math.max(500/(kn/2),20):50);return()=>clearInterval(si)}else ut||Nt()},[bt,ut,Tt,Dt,Mt]);const cn=(0,le.useMemo)(()=>le.createElement("section",{className:`${Ve.answer} fadeIn animated edu_md`},le.createElement(Le.UG,{remarkPlugins:[mt.Z,st.Z],rehypePlugins:[Je.Z,Ie.Z],components:{code(ln){var _n=ln,{node:kn,inline:si,className:kt,children:Kn}=_n,hi=Qe(_n,["node","inline","className","children"]);const et=/language-(\w+)/.exec(kt||""),_e=String(Kn).trim();return si||!et?le.createElement("code",Oe({className:kt},hi),Kn):le.createElement("code",{className:Ve.codeCopy,"data-text":`\`\`\`${et?et[1]:""}
${Kn}
\`\`\``},le.createElement(Fe.CopyToClipboard,{text:_e,onCopy:()=>Xe.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},le.createElement("button",null,"\u590D\u5236")),et[1]==="html"&&nt&&le.createElement("button",{className:Ve.runCode,onClick:()=>{mn(Oe({},Be(Oe({},pn),{open:++pn.open,defaultValue:_e,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"}},hi),_e))},img({node:ln}){var _n;const kn=(_n=ln.properties)==null?void 0:_n.src;return le.createElement(qe.Z,{src:kn,width:320,"data-text":kn,onLoad:()=>Dt&&setTimeout(()=>Nt(),500)})}}},nt?Cn:`${Cn}__`)),[Cn]);return le.createElement(le.Fragment,null,le.createElement(je.Z,{defaultValue:pn.defaultValue,open:pn.open,language:pn.language,height:pn.height,onChange:(ln,_n)=>{vn(Cn.replaceAll(_n,ln))},onDynamic:en}),cn)}},83297:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return Ye}});var le=de(59301),Le=de(89299),De={draggableImage:"draggableImage___vcTso",img:"img___xAyno",close:"close___WUtfj",extraNode:"extraNode___tnBrt"},Ye=({src:Fe,onClick:Ve,topPercentage:Xe=.62,draggableExtraNode:qe})=>{const Je=(0,le.useRef)(null),mt=(0,le.useRef)(!1),st=(0,le.useRef)(!1),[Ct,je]=(0,le.useState)(window.innerHeight*Xe),[te,ne]=(0,le.useState)(!1),he=10;return(0,le.useEffect)(()=>{if(Je.current){let se=function(Be){var Qe;mt.current=!0,Oe=Be.pageY,Ce=Be.pageY-(((Qe=Je.current)==null?void 0:Qe.getBoundingClientRect().top)||0),(0,Le.kk)("none"),document.onselectstart=function(){return!1}},ge=function(){mt.current&&!st.current&&Ve&&Ve(),mt.current=!1,st.current=!1,(0,Le.kk)("auto"),document.onselectstart=null},Se=function(Be){var Qe;if(mt.current){const rt=Be.pageY-Ce,ft=window.innerHeight-(((Qe=Je.current)==null?void 0:Qe.offsetHeight)||0)-50,bt=50;if(!st.current&&Math.abs(Oe-Be.pageY)>he&&(st.current=!0),st.current){let ut=Math.max(bt,Math.min(rt,ft));je(ut)}}},Ce=0,Oe=0;return Je.current.addEventListener("mousedown",se),document.addEventListener("mousemove",Se),document.addEventListener("mouseup",ge),()=>{var Be,Qe;(Qe=(Be=Je==null?void 0:Je.current)==null?void 0:Be.removeEventListener)==null||Qe.call(Be,"mousedown",se),document.removeEventListener("mousemove",Se),document.removeEventListener("mouseup",ge)}}},[Ve]),(0,le.useEffect)(()=>{const se=()=>{je(window.innerHeight*Xe)};return window.addEventListener("resize",se),()=>{window.removeEventListener("resize",se)}},[Xe]),le.createElement("div",{className:De.draggableImage,style:{top:`${Ct}px`,display:te?"none":"block",cursor:mt.current?"grabbing":"grab"},ref:Je},qe&&le.createElement("div",{className:De.extraNode,onMouseUp:se=>se.stopPropagation(),onMouseDownCapture:se=>se.stopPropagation()},qe),le.createElement("img",{className:De.img,src:Fe,width:60,draggable:"false"}),le.createElement("i",{className:`iconfont icon-tupianguanbi ${De.close}`,onMouseUp:se=>{se.stopPropagation(),ne(!0)}}))}},50252:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return Oe}});var le=de(59301),Le={select:"select___Kt_GE",box:"box___S5_ly",text:"text___dtZDv",itemWrap:"itemWrap___xmw7x",item:"item___io6Bx",active:"active___nHRTI"},De=de(77736),Ie=Object.defineProperty,Ye=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,Xe=(Be,Qe,ot)=>Qe in Be?Ie(Be,Qe,{enumerable:!0,configurable:!0,writable:!0,value:ot}):Be[Qe]=ot,qe=(Be,Qe)=>{for(var ot in Qe||(Qe={}))Fe.call(Qe,ot)&&Xe(Be,ot,Qe[ot]);if(Ye)for(var ot of Ye(Qe))Ve.call(Qe,ot)&&Xe(Be,ot,Qe[ot]);return Be};const Je=Be=>React.createElement("svg",qe({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,Ct=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ne=(Be,Qe,ot)=>Qe in Be?st(Be,Qe,{enumerable:!0,configurable:!0,writable:!0,value:ot}):Be[Qe]=ot,he=(Be,Qe)=>{for(var ot in Qe||(Qe={}))je.call(Qe,ot)&&ne(Be,ot,Qe[ot]);if(Ct)for(var ot of Ct(Qe))te.call(Qe,ot)&&ne(Be,ot,Qe[ot]);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:Qe})=>{const[ot,rt]=(0,le.useState)(!1),ft=[{name:"\u901A\u4E49\u5343\u95EE",key:"qwen-max",img:mt},{name:"DeepSeek R1-671B",key:"deepseek-r1",img:ge}],bt=ft.find(ut=>ut.key===Be);return Se.createElement("div",{className:Le.select},Se.createElement(De.Z,{size:10},Se.createElement("span",{className:"c-grey-333 font16"},"\u6A21\u578B"),Se.createElement("div",{className:Le.box,onMouseLeave:()=>rt(!1)},Se.createElement("div",{className:Le.text,onClick:()=>rt(!0)},Se.createElement("img",{src:bt.img,width:20}),Se.createElement("span",null,bt.name),Se.createElement("b",{className:"iconfont icon-zhankai6"})),ot&&Se.createElement("div",{className:Le.itemWrap},Se.createElement("aside",null,ft.map(ut=>Se.createElement("div",{key:ut.key,className:`${Le.item} ${ut.key===Be?Le.active:""}`,onClick:Tt=>{Tt.stopPropagation(),Qe(ut.key),rt(!1)}},Se.createElement("img",{src:ut.img,width:20}),Se.createElement("span",null,ut.name))))))))}},52338:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return bt}});var le=de(59301),Le=de(62957),De=de(6767),Ie=de(29787),Ye=de(77019),Fe=de(25399),Ve=de(37568),Xe=de(75727),qe=de(82326),Je={judgment:"judgment___cE7n1",active:"active___VwnES",selectMore:"selectMore___x1UrU"},mt=de(52430),st=de(4213),Ct="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==",je="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAADxJREFUKFNjZEADBkkX5oOELswzSESWYhxAhTA3wZ3wn8EGzGZkOILiRrjCf1Bhxv82IFUYCgfQM8RaDQDYKCkNszfCOwAAAABJRU5ErkJggg==",te=de(38776),ne=Object.defineProperty,he=Object.defineProperties,se=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,Oe=(ut,Tt,Dt)=>Tt in ut?ne(ut,Tt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):ut[Tt]=Dt,Be=(ut,Tt)=>{for(var Dt in Tt||(Tt={}))Se.call(Tt,Dt)&&Oe(ut,Dt,Tt[Dt]);if(ge)for(var Dt of ge(Tt))Ce.call(Tt,Dt)&&Oe(ut,Dt,Tt[Dt]);return ut},Qe=(ut,Tt)=>he(ut,se(Tt)),ot=(ut,Tt,Dt)=>new Promise((en,Cn)=>{var vn=Mt=>{try{mn(Dt.next(Mt))}catch(ct){Cn(ct)}},pn=Mt=>{try{mn(Dt.throw(Mt))}catch(ct){Cn(ct)}},mn=Mt=>Mt.done?en(Mt.value):Promise.resolve(Mt.value).then(vn,pn);mn((Dt=Dt.apply(ut,Tt)).next())});const rt=({value:ut,onChange:Tt})=>{const Dt=["\u6B63\u786E","\u9519\u8BEF"];return le.createElement("div",{className:Je.judgment},Dt.map(en=>le.createElement("div",{className:en===ut?Je.active:"",key:en},le.createElement("b",{onClick:()=>Tt(en)},en==="\u6B63\u786E"?"T":"F"),le.createElement("span",null,en))))};var bt=({isEdit:ut=!1,visible:Tt,data:Dt,onClose:en,onOk:Cn,changePage:vn})=>{const pn=[{type:0,question:"",answer:""},{type:1,question:"",answer:"\u6B63\u786E"},{type:2,question:"",answer:""}],[mn,Mt]=(0,le.useState)(!1),[ct,nt]=(0,le.useState)(""),[dn,En]=(0,le.useState)(!1),[Nt,cn]=(0,le.useState)([]),[ln,_n]=(0,le.useState)([]),[kn,si]=(0,le.useState)([]);(0,le.useEffect)(()=>{var xe,Te;Tt&&(ut?(nt(((xe=Dt==null?void 0:Dt.page)==null?void 0:xe.page_info)||""),cn(((Te=Dt==null?void 0:Dt.page)==null?void 0:Te.smart_plan_page_knowledges)||[])):cn([pn[0]]),kt())},[Tt]);const kt=()=>ot(void 0,null,function*(){let xe=yield(0,mt.ZP)(`/api/courses/${Dt==null?void 0:Dt.coursesId}/smart_plans/${Dt==null?void 0:Dt.id}/page_list.json`,{method:"get",params:{position:Dt==null?void 0:Dt.position}});(xe==null?void 0:xe.status)==0&&(si(xe==null?void 0:xe.data),vn(Dt==null?void 0:Dt.relation_positions),_n(Dt==null?void 0:Dt.relation_positions))}),Kn=(xe,Te,Me)=>{Nt[Te][xe]=Me,cn([...Nt])},hi=()=>ot(void 0,null,function*(){var xe,Te,Me,Ae;Mt(!0);const Lt=(0,mt.ZP)(`/api/courses/${Dt==null?void 0:Dt.coursesId}/smart_plans/${Dt==null?void 0:Dt.id}/get_questions.json`,{method:"post",body:{url:(xe=Dt==null?void 0:Dt.url)==null?void 0:xe.map(an=>an==null?void 0:an.url),count:3,type:0}}),Pt=(0,mt.ZP)(`/api/courses/${Dt==null?void 0:Dt.coursesId}/smart_plans/${Dt==null?void 0:Dt.id}/get_page_info.json`,{method:"post",body:{url:(Te=Dt==null?void 0:Dt.url)==null?void 0:Te.map(an=>an==null?void 0:an.url)}}),[Vt,It]=yield Promise.all([Lt,Pt]);(Vt==null?void 0:Vt.status)===0&&cn([...(Ae=(Me=Vt==null?void 0:Vt.data)==null?void 0:Me.questions)==null?void 0:Ae.map(an=>(an.type=0,an))]),(It==null?void 0:It.status)===0&&nt(It==null?void 0:It.data),Mt(!1)}),et=xe=>ot(void 0,null,function*(){var Te,Me,Ae;Mt(!0);const at=Nt[xe].type,Lt=yield(0,mt.ZP)(`/api/courses/${Dt==null?void 0:Dt.coursesId}/smart_plans/${Dt==null?void 0:Dt.id}/get_questions.json`,{method:"post",body:{url:(Te=Dt==null?void 0:Dt.url)==null?void 0:Te.map(Pt=>Pt==null?void 0:Pt.url),count:1,type:at}});if((Lt==null?void 0:Lt.status)===0){const Pt=(Ae=(Me=Lt==null?void 0:Lt.data)==null?void 0:Me.questions)==null?void 0:Ae[0];Pt&&(Nt[xe]=Qe(Be({},Pt),{type:at}),at===0&&(Nt[xe].answer=""),cn([...Nt]))}Mt(!1)}),_e=[{key:"1",label:"\u5224\u65AD\u9898"},{key:"2",label:"\u5173\u952E\u8BCD\u4F5C\u7B54"}];return le.createElement(Le.default,{centered:!0,destroyOnClose:!0,onCancel:en,open:Tt,title:"\u667A\u80FD\u4E92\u52A8\u8BBE\u7F6E",okText:"\u786E\u8BA4",confirmLoading:dn,afterClose:()=>{nt(""),cn([])},onOk:()=>ot(void 0,null,function*(){var xe,Te,Me;const Ae=[],at=[];Nt.forEach((It,an)=>{var sn;(!It.question||((sn=It.question)==null?void 0:sn.length)>200)&&Ae.push(an+1),It.type!==0&&!It.answer&&at.push(an+1)});let Lt=[];if(Ae.length&&Lt.push(`\u7B2C${Ae.join("\u3001")}\u9053\u95EE\u7B54\uFF0C\u672A\u8BBE\u7F6E\u95EE\u9898\u6216\u95EE\u9898\u8D85\u51FA200\u4E2A\u5B57\u7B26`),at.length&&Lt.push(`\u7B2C${at.join("\u3001")}\u9053\u95EE\u7B54\uFF0C\u672A\u8BBE\u7F6E\u56DE\u7B54`),Lt.length){De.ZP.warning(Lt.join("\uFF1B"),4);return}let Pt=!1;const Vt=yield(0,mt.ZP)(`/api/courses/${Dt==null?void 0:Dt.coursesId}/smart_plans/${Dt==null?void 0:Dt.id}/exist_data.json`,{method:"post",body:{is_item_bank:!1,position:ln,page_num:(xe=Dt==null?void 0:Dt.page)==null?void 0:xe.position}});if((Vt==null?void 0:Vt.status)==0&&(((Te=Vt==null?void 0:Vt.data)==null?void 0:Te.length)>0?Pt=yield new Promise(an=>{var sn;Le.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"}},(sn=Vt==null?void 0:Vt.data)==null?void 0:sn.map((on,bn,un)=>`\u7B2C${on}\u9875${bn<un.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:()=>an(!0),onCancel:()=>an(!1)})}):Pt=!0),Pt){En(!0);const It=yield(0,mt.ZP)(`/api/smart_plan_item_banks/${(Me=Dt==null?void 0:Dt.page)==null?void 0:Me.id}/${ut?"smart_plan_page_knowledges/update_knowledge":"smart_plan_page_knowledges"}.json`,{method:ut?"put":"post",body:{questions:Nt,page_info:ct,page_list:ln}});(It==null?void 0:It.status)===0&&Cn(),En(!1)}}),wrapClassName:"QASetting-modal",bodyStyle:{paddingBottom:10,maxHeight:650},width:1e3},le.createElement(Ie.Z,{spinning:mn},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(Fe.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:Ct,onClick:()=>{hi()},className:"iconfont icon-shuaxin4 font14 c-light-primary current"}))),le.createElement(st.Z,{height:200,defaultValue:ct,onChange:xe=>nt(xe)})),le.createElement(te.op,{className:"mt20",onClick:()=>{Nt.push(pn[0]),cn([...Nt]),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:je}))},"\u65B0\u589E\u95EE\u9898"),Nt.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(Fe.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:Ct,onClick:()=>et(Te),className:"iconfont icon-shuaxin4 font14 c-light-primary current"})),le.createElement(Fe.Z,{title:"\u5220\u9664\u95EE\u9898"},le.createElement("i",{onClick:()=>{Nt.splice(Te,1),cn([...Nt])},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(Xe.Z,{menu:{items:_e,onClick:({key:Me})=>{const Ae=Number(Me),at={type:Ae,answer:pn[Ae].answer,question:xe.question};Nt[Te]=at,cn([...Nt])}},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:()=>{Nt[Te]=pn[xe.type===1?2:1],cn([...Nt])}},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(rt,{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(qe.default,{placeholder:"\u8BF7\u9009\u62E9\u5E7B\u706F\u7247\u9875\u7801",className:Je.selectMore,style:{width:"100%",marginTop:"10px"},mode:"multiple",size:"large",value:ln,showSearch:!1,onChange:xe=>{vn(xe),_n(xe)}},kn==null?void 0:kn.map((xe,Te)=>{var Me;return le.createElement(qe.default.Option,{value:xe,key:Te,disabled:xe==((Me=Dt==null?void 0:Dt.page)==null?void 0:Me.position)},"\u7B2C",xe,"\u9875")}))))}},52977:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return Rt}});var le=de(59301),Le=de(54775),De={panel:"panel___sQgCV"},Ye=({children:rn})=>le.createElement("div",{className:De.panel},rn),Fe={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(52338),Xe=de(62957),qe=de(6767),Je=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"},Ct=de(52430),je=de(86129),te=de.n(je),ne=(rn,Xt,Sn)=>new Promise((Rn,Jn)=>{var qt=pt=>{try{ti(Sn.next(pt))}catch(yn){Jn(yn)}},Gt=pt=>{try{ti(Sn.throw(pt))}catch(yn){Jn(yn)}},ti=pt=>pt.done?Rn(pt.value):Promise.resolve(pt.value).then(qt,Gt);ti((Sn=Sn.apply(rn,Xt)).next())}),se=({visible:rn,data:Xt,onClose:Sn})=>{var Rn,Jn,qt;const[Gt,ti]=(0,le.useState)(!1),[pt,yn]=(0,le.useState)(!1),[ii,xi]=(0,le.useState)(null);(0,le.useEffect)(()=>{rn&&Ut()},[rn]);const Ut=()=>ne(void 0,null,function*(){var $n,pi;ti(!0),console.log(Xt==null?void 0:Xt.aiImg);const Kt=(pi=($n=Xt==null?void 0:Xt.aiImg)==null?void 0:$n[0])==null?void 0:pi.url;try{const wi=yield(yield fetch(Kt)).arrayBuffer(),Mn=(yield te().loadAsync(wi)).files;let ji=null;for(const Ki in Mn){if(Mn[Ki].dir)continue;const Zi=Mn[Ki];if(/\.(jpg|jpeg|png|gif)$/i.test(Ki)){ji=Zi;break}}if(ji){const Ki=yield ji.async("base64");xi(`data:image/jpeg;base64,${Ki}`),ti(!1)}else alert("\u6CA1\u6709\u627E\u5230\u56FE\u7247\u6587\u4EF6")}catch(Ue){alert("\u52A0\u8F7D ZIP \u6587\u4EF6\u65F6\u51FA\u9519")}});return le.createElement(Xe.default,{centered:!0,keyboard:!1,maskClosable:!1,open:rn,title:"\u8BFE\u4EF6\u5C01\u9762\u9884\u89C8",width:"350px",onCancel:()=>{Sn()},okButtonProps:{loading:pt},onOk:()=>ne(void 0,null,function*(){yn(!0);const $n=yield(0,Ct.ZP)(`/api/courses/${Xt==null?void 0:Xt.coursesId}/smart_plans/${Xt==null?void 0:Xt.id}/set_cover.json`,{method:"post",body:{position:Xt==null?void 0:Xt.position}});yn(!1),($n==null?void 0:$n.status)==0&&(qe.ZP.success("\u8BBE\u7F6E\u6210\u529F"),Sn())})},le.createElement(Je.Z,{spinning:Gt},le.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"}},le.createElement("div",{className:st.graphicItem},le.createElement("img",{src:ii,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:(Rn=Xt==null?void 0:Xt.pptInfo)==null?void 0:Rn.name},le.createElement("div",{className:st.header_title},(Jn=Xt==null?void 0:Xt.pptInfo)==null?void 0:Jn.name))),le.createElement("div",{className:st.caozuo},le.createElement("span",{style:{color:"#5F6A95"}},"\u521B\u5EFA\u4EBA",le.createElement("span",{style:{color:"#000F37",marginLeft:"6px"}},(qt=Xt==null?void 0:Xt.pptInfo)==null?void 0:qt.author)))))))))},ge=de(77736),Se=de(77019),Ce=de(44993),Oe=de(41312),Be=Object.defineProperty,Qe=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable,ft=(rn,Xt,Sn)=>Xt in rn?Be(rn,Xt,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):rn[Xt]=Sn,bt=(rn,Xt)=>{for(var Sn in Xt||(Xt={}))ot.call(Xt,Sn)&&ft(rn,Sn,Xt[Sn]);if(Qe)for(var Sn of Qe(Xt))rt.call(Xt,Sn)&&ft(rn,Sn,Xt[Sn]);return rn};const ut=rn=>React.createElement("svg",bt({className:"b_svg__icon",width:200,height:200,viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},rn),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 Tt="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTAgMGgxMDI0djEwMjRIMHoiIGZpbGw9IiNDNEQ2RkUiLz48cGF0aCBkPSJNMzM5Ljk2OCA0MTkuOTg2aC0yMTkuOTRjLTQ0LjEwNiAwLTgwLjAxOS0zNS44NC04MC4wMTktODAuMDE4di0yMTkuOTRjMC00NC4xMDYgMzUuODQtODAuMDE5IDgwLjAxOC04MC4wMTloMjE5Ljk0MWM0NC4xNzggMCA4MC4wMTggMzUuODQgODAuMDE4IDgwLjAxOHYyMTkuOTQxYzAgNDQuMTc4LTM1Ljg0IDgwLjAxOC04MC4wMTggODAuMDE4eiIgZmlsbD0iI0ZGRiIvPjxwYXRoIGQ9Ik0xMTkuOTU0IDgwLjAxOGE0MC4wMSA0MC4wMSAwIDAgMC0zOS45MzYgNDAuMDF2MjE5Ljk0YzAgMjIuMDkgMTcuOTIgNDAuMDEgNDAuMDEgNDAuMDFoMjE5Ljk0YTQwLjAxIDQwLjAxIDAgMCAwIDQwLjAxLTQwLjAxdi0yMTkuOTRhNDAuMDEgNDAuMDEgMCAwIDAtNDAuMDEtNDAuMDFoLTIxOS45NE0xMTkuOTUzIDBoMjE5Ljk0QzQwNi4zMSAwIDQ2MC4wNyA1My43NiA0NjAuMDcgMTE5Ljk1NHYyMjAuMDE0YTExOS45NTQgMTE5Ljk1NCAwIDAgMS0xMTkuOTU1IDEyMC4xaC0yMjAuMTZBMTE5Ljk1NCAxMTkuOTU0IDAgMCAxIDAgMzQwLjExNXYtMjIwLjE2QzAgNTMuNzYgNTMuNzYgMCAxMTkuOTU0IDB6bTc4NC4wOTIgOTgzLjk5SDY4My45NTljLTQ0LjE3OCAwLTgwLjAxOC0zNS44NC04MC4wMTgtODAuMDE3VjY4NC4wMzJjMC00NC4xNzggMzUuODQtODAuMDE4IDgwLjAxOC04MC4wMThoMjE5Ljk0YzQ0LjEwNiAwIDgwLjAxOSAzNS44NCA4MC4wMTkgODAuMDE4djIxOS45NGMwIDQ0LjEwNi0zNS44NCA4MC4wMTktODAuMDE5IDgwLjAxOXoiIGZpbGw9IiMzMDYxRDAiLz48cGF0aCBkPSJNNjg0LjAzMiA2NDQuMDIzYTQwLjAxIDQwLjAxIDAgMCAwLTQwLjAxIDQwLjAwOXYyMTkuOTRjMCAyMi4wOSAxNy45MiA0MC4wMSA0MC4wMSA0MC4wMWgyMTkuOTRhNDAuMDEgNDAuMDEgMCAwIDAgNDAuMDEtNDAuMDF2LTIxOS45NGE0MC4wMSA0MC4wMSAwIDAgMC00MC4wMS00MC4wMWgtMjE5Ljk0bTAtODAuMDE3aDIxOS45NGM2Ni4yNjggMCAxMjAuMDI4IDUzLjY4NiAxMjAuMDI4IDExOS45NTR2MjIwLjAxNEExMTkuOTU0IDExOS45NTQgMCAwIDEgOTA0LjA0NiAxMDI0SDY4My45NTlBMTE5Ljk1NCAxMTkuOTU0IDAgMCAxIDU2My45MyA5MDQuMDQ2VjY4My45NTljMC02Ni4zNCA1My42ODctMTIwLjAyOCAxMTkuOTU1LTEyMC4wMjh6IiBmaWxsPSIjRkZGIi8+PHBhdGggZD0iTTY0NC4wMjMgODMzLjk3NUgxOTAuMDI1di03OS44NzJoNDUzLjk5OHpNODMzLjk3NSAyNjkuOTdIMzc5Ljk3N3YtNzkuOTQ1aDQ1My45OTh6IiBmaWxsPSIjMzA2MUQwIi8+PHBhdGggZD0iTTg3NC4wNTcgMjMwLjAzNHYyNDEuOTU3YTQwLjAxIDQwLjAxIDAgMCAxLTgwLjA5MSAwVjIzMC4wMzRhNDAuMDEgNDAuMDEgMCAxIDEgODAuMDE4IDB6TTIzMC4wMzQgNTUyLjAxdjI0MS45NTdhNDAuMDEgNDAuMDEgMCAwIDEtODAuMDE4IDBWNTUyLjAwOWE0MC4wMSA0MC4wMSAwIDAgMSA4MC4wMTggMHoiIGZpbGw9IiMzMDYxRDAiLz48cGF0aCBkPSJNNzczLjk5OCA3NTQuMDNoNDAuMDA5YzEwLjk3MSAwIDE5Ljk2OCA4LjkyMyAxOS45NjggMTkuOTY4djQwLjAwOWExOS45NjggMTkuOTY4IDAgMCAxLTE5Ljk2OCAxOS45NjhoLTQwLjAxYTE5Ljk2OCAxOS45NjggMCAwIDEtMTkuOTY3LTE5Ljk2OHYtNDAuMDFjMC0xMS4wNDQgOC45MjMtMTkuOTY3IDE5Ljk2OC0xOS45Njd6IiBmaWxsPSIjRkZGIi8+PHBhdGggZD0iTTIwOS45OTMgMTkwLjAyNWg0MC4wMWMxMS4wNDQgMCAxOS45NjcgOC45MjQgMTkuOTY3IDE5Ljk2OHY0MC4wMWExOS45NjggMTkuOTY4IDAgMCAxLTE5Ljk2OCAxOS45NjdoLTQwLjAwOWExOS45NjggMTkuOTY4IDAgMCAxLTE5Ljk2OC0xOS45Njh2LTQwLjAwOWMwLTEwLjk3MSA4LjkyNC0xOS45NjggMTkuOTY4LTE5Ljk2OHoiIGZpbGw9IiMzMDYxRDAiLz48L3N2Zz4=",Dt=Object.defineProperty,en=Object.getOwnPropertySymbols,Cn=Object.prototype.hasOwnProperty,vn=Object.prototype.propertyIsEnumerable,pn=(rn,Xt,Sn)=>Xt in rn?Dt(rn,Xt,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):rn[Xt]=Sn,mn=(rn,Xt)=>{for(var Sn in Xt||(Xt={}))Cn.call(Xt,Sn)&&pn(rn,Sn,Xt[Sn]);if(en)for(var Sn of en(Xt))vn.call(Xt,Sn)&&pn(rn,Sn,Xt[Sn]);return rn};const Mt=rn=>React.createElement("svg",mn({className:"c_svg__icon",width:200,height:173.41,viewBox:"0 0 1181 1024",xmlns:"http://www.w3.org/2000/svg"},rn),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=",nt=Object.defineProperty,dn=Object.getOwnPropertySymbols,En=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,cn=(rn,Xt,Sn)=>Xt in rn?nt(rn,Xt,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):rn[Xt]=Sn,ln=(rn,Xt)=>{for(var Sn in Xt||(Xt={}))En.call(Xt,Sn)&&cn(rn,Sn,Xt[Sn]);if(dn)for(var Sn of dn(Xt))Nt.call(Xt,Sn)&&cn(rn,Sn,Xt[Sn]);return rn};const _n=rn=>React.createElement("svg",ln({className:"d_svg__icon",width:200,height:200,viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},rn),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 kn="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTYxNS41NiA5NzcuMTM1LTQwMy42MjYtLjM0MWgtMS4xMjdhMTAyLjQ2OCAxMDIuNDY4IDAgMCAxLTY1LjgwOS0yMy44OTQgODAuNzI1IDgwLjcyNSAwIDAgMS0yOS4zNTQtNjEuMDNsLjU4LTYxNi4wMzlhODAuNDg2IDgwLjQ4NiAwIDAgMSAyOS4zNTUtNjAuODYgMTAzLjExNyAxMDMuMTE3IDAgMCAxIDY1LjgwOS0yMy44OTNoMS4xOTRsNjcuMjQzLjY4M3YzLjQ0OGMtMi40OTIgNjQuOTktMS42NzIgNjguMDI3IDMuNDgyIDczLjM4NmwzLjc1NCAzLjgyM2g2LjAwOGExNy40MDggMTcuNDA4IDAgMCAwIDMuNjE4LS40NzhoMTA3LjExYzI4Mi44OTcgMCAyODIuODk3IDAgMjg2LjcyLTEuNzA2bDUuOTc0LTIuNTk1IDEuNjA0LTUuOTczYTI3NS44MDEgMjc1LjgwMSAwIDAgMCAxLjAyNC00Ni4yODV2LTIzLjg5M2w2NC41MTIuNTQ2aC42NDhhMTAyLjQgMTAyLjQgMCAwIDEgNzEuNzgzIDI4LjkxMSA3OS43NDggNzkuNzQ4IDAgMCAxIDIzLjg5MyA1Ni4xNXYzNjAuNzg5YTIwOC4yODIgMjA4LjI4MiAwIDAgMC0xMTcuMDc3LTM1Ljg0Yy0xMTUuNjc4IDAtMjA5LjQwOCA5My41Ni0yMDkuNDA4IDIwOC45OThhMjA3LjQyOCAyMDcuNDI4IDAgMCAwIDgyLjYwMyAxNjYuMzMybC0uNTEyLS4yNHoiIGZpbGw9IiMzMjkxRkMiLz48cGF0aCBkPSJNNjM0LjI2NiA5ODkuODY3SDIxMS4xNDlhMTE2LjUzMSAxMTYuNTMxIDAgMCAxLTc0LjgyLTI3LjIzOUE5My42MjggOTMuNjI4IDAgMCAxIDEwMi40IDg5MS43bC42MTQtNjE2LjAzOGE5My4yMzYgOTMuMjM2IDAgMCAxIDM0LjAzMS03MC44OTUgMTE2LjA1MyAxMTYuMDUzIDAgMCAxIDc0LjQxMS0yNy4wMzRoMS4xOTVsODAuODk2LjgydjEuODA5YzAgMy4yMDggMCA4LjU2Ny0uNjE1IDE1LjA4NmEzOTQuOTIzIDM5NC45MjMgMCAwIDAgMCA2My44M2MuNjE1IDAgLjY4MyAwIC43MTctLjM0MmgxMDkuOTQ0YzE5OC4yNDYgMCAyODAuMzM3IDAgMjgxLjE1Ni0uNjE0IDEuMTk0LTE0LjI2OCAxLjQtMjguNjA0LjY4Mi00Mi45NFYxNzcuODdsNzcuNzU2LjYxNGguNjgzYTExNS4yNjggMTE1LjI2OCAwIDAgMSA4MC43MjUgMzIuNzY4YzE3LjU3OSAxNy40MDggMjcuNDQzIDQxLjAyOCAyNy40MSA2NS43MDd2MzcwLjIxYy04LjI5NS02LjYyMi0xNy4wNjctMTIuNjMtMjYuMjgzLTE3LjkyVjI3Ni45OTJhNjYuNjk3IDY2LjY5NyAwIDAgMC0yMC4yMDctNDYuNzI5IDg5LjI5MyA4OS4yOTMgMCAwIDAtNjIuMzI4LTI1LjEyMmgtLjY4MmwtNTEuMDY0LS40Nzh2MTAuNjE2YTI0Ny45MjkgMjQ3LjkyOSAwIDAgMS0xLjQzNCA0OS44bC0zLjI3NiAxMi4yODgtMTEuOTQ3IDUuMDg2Yy02LjAwNyAyLjUyNi02LjAwNyAyLjUyNi03Ny4wNzMgMi42MjlIMjk3LjIzM2EzMi4yNTYgMzIuMjU2IDAgMCAxLTUuMDg2LjQ3N2gtMS4xOTRsLTEwLjQ4LS40NzctNy4yMzYtNy41NzhjLTkuMDEtOS4zODctOS43MjgtMTYuMTgtNy41MDktNzIuOTc3bC01My44NjItLjQ3OGgtMS4xOTVhOTAuMTggOTAuMTggMCAwIDAtNTcuMjQyIDIwLjY1IDY3Ljk2IDY3Ljk2IDAgMCAwLTI0LjgxNSA1MC45OTZsLS42ODIgNjE2LjAwNGE2Ny41ODQgNjcuNTg0IDAgMCAwIDI0Ljg0OSA1MC45OTVjMTYuMTEgMTMuNTUxIDM2LjUyMiAyMC45OTIgNTcuNTgzIDIxLjAyN2gzODguNzQ0YTIxMC43NSAyMTAuNzUgMCAwIDAgMzQuNDc1IDI1LjkwN2wuNjgzLjIzOXoiIGZpbGw9IiM4MkJERkYiLz48cGF0aCBkPSJNNjI0LjY0IDIzNS43NTlIMzUwLjM0NWEyMy45NjIgMjMuOTYyIDAgMCAxLTIzLjg5NC0yNC4yMzV2LTY0Ljg1M2EyMy44OTMgMjMuODkzIDAgMCAxIDIzLjg5NC0yMy44OTNoNDIuNTk4YTk0LjU1IDk0LjU1IDAgMCAxIDk0LjQ4MS04OC42NDUgOTQuNTUgOTQuNTUgMCAwIDEgOTQuNDQ3IDg4LjY0NWg0Mi41OThhMjMuODkzIDIzLjg5MyAwIDAgMSAyMy44OTQgMjMuODkzdjY0Ljc4NWEyMy44OTMgMjMuODkzIDAgMCAxLTIzLjk2MiAyMy44OTNsLjIzOS40MXoiIGZpbGw9IiMzOEM5RkYiIGZpbGwtb3BhY2l0eT0iLjQiLz48cGF0aCBkPSJNNTYyLjY1NCA4MTAuNjY3YTE3OS4zMDIgMTc5LjMwMiAwIDAgMCAxNzkuNDczIDE3OS4xMzFBMTc5LjMwMiAxNzkuMzAyIDAgMCAwIDkyMS42IDgxMC42NjdhMTc5LjA2MyAxNzkuMDYzIDAgMCAwLTg5LjczNy0xNTUuMTM2IDE3OS43NDYgMTc5Ljc0NiAwIDAgMC0xNzkuNDczIDAgMTc5LjA2MyAxNzkuMDYzIDAgMCAwLTg5LjczNiAxNTUuMTM2eiIgZmlsbD0iIzM4QzlGRiIgb3BhY2l0eT0iLjQiLz48cGF0aCBkPSJtNzM4LjU0MyA3NDIuMTk1IDcyLjE1OCAzOS42MjlhNC42MDggNC42MDggMCAwIDEgMS41MzYgNS45NzNsLTc5LjI1OCAxMzQuMjhhMzEuMjMyIDMxLjIzMiAwIDAgMS0yMi41MjggMTUuMDJsLTM2Ljc5NiA4LjI5NGE1Ljk3MyA1Ljk3MyAwIDAgMS02LjM0OC0zLjg5MWwtMTcuMjM4LTM1Ljg0YTMxLjY0MiAzMS42NDIgMCAwIDEgMi42OTctMjcuMTdsNzkuNjY3LTEzNC45M2E0LjUwNiA0LjUwNiAwIDAgMSA2LjAwOC0xLjU3bTg0LjIwNiAyMC41NDlhNC4wOTYgNC4wOTYgMCAwIDEtNS45NzMgMS4zNjVjLTE5LjExNS0xMS45NDctNTIuNzAyLTMwLjIwOC02Ni4yODctMzguNjM5YTQuMjMzIDQuMjMzIDAgMCAxLTEuMjk3LTUuOTRsMTEuOTQ3LTE4Ljc3MmEzNS45MDggMzUuOTA4IDAgMCAxIDUxLjUwNy05Ljk2N2w1Ljk3MyAzLjc1NGM4LjYzNiA0Ljk4NCAxNS4yNTggMTIuODM0IDE4LjY3MSAyMi4xODcgMy40MTQgOS41OTEgMi4yMTkgMjAuMjQxLTMuMjQyIDI4Ljg3NyIgZmlsbD0iIzAwRDhGQiIvPjxwYXRoIGQ9Ik0yNzAuMTMxIDM1Ni45MzJjOS41NTgtLjIzOSAxOS4wOCAxLjUzNiAyNy45NTUgNS4xMmE1My43MzcgNTMuNzM3IDAgMCAxIDMxLjA5NiAzNC43NDhjMi41NiA4LjM5NyAzLjg1NyAxNy4xMzUgMy43NTUgMjUuOTQxLjA2OCA2LjM1LS41NDcgMTIuNjk4LTEuNzc1IDE4Ljk3OGE2My40ODggNjMuNDg4IDAgMCAxLTYuNDE3IDE3LjMwNmwxMi4zMjIgMTAuMzc3YzEuOTggMS43NzUgMi43NjQgNC40MzcgMi4xMTYgNi45OTdhMTMuNzIyIDEzLjcyMiAwIDAgMS00LjUwNiA3LjQ3NSAxNi41MiAxNi41MiAwIDAgMS04LjUzMyA0LjMgOC4zMjkgOC4zMjkgMCAwIDEtNy4zNzMtMS44MDhsLTEwLjM0Mi04LjYwMmMtNS4zOTMgMy42NTMtMTEuMjY0IDYuNDg2LTE3LjU0NSA4LjI5NS02Ljc5MiAxLjg3Ny0xMy44MjQgMi43My0yMC44NTUgMi42MjhhNjkuNzM0IDY5LjczNCAwIDAgMS0yNy4yMzktNC45NSA1NC43NSA1NC43NSAwIDAgMS0zMS41NzMtMzQuNjEgODQuODIxIDg0LjgyMSAwIDAgMS0zLjk2LTI2LjQ1NCA5MC44OTcgOTAuODk3IDAgMCAxIDMuNTg1LTI1Ljg3M2MyLjIxOC03LjcxNCA2LjA3NS0xNC44NDggMTEuMjY0LTIwLjk1OCA1LjMyNC02LjA3NiAxMi4wMTUtMTAuODU0IDE5LjQ5LTEzLjk5NWE3Mi4yNiA3Mi4yNiAwIDAgMSAyOC41MzUtNS4xMnYuMjA1em0wIDExMS4yNzVjMy44NTcuMDY4IDcuNjgtLjM0MSAxMS40MzUtMS4yMjlhMzUuNDk5IDM1LjQ5OSAwIDAgMCA5LjQ1NS0zLjk2bC0xMC41NDctOC44NzRhNS45NzMgNS45NzMgMCAwIDEtMi4zOS01LjYzMiAxMy45MjYgMTMuOTI2IDAgMCAxIDUuNTY0LTguMzYzIDE3LjQwOCAxNy40MDggMCAwIDEgOC42Ny00LjcxIDcuOTE5IDcuOTE5IDAgMCAxIDYuODk1IDEuODQzbDUuOTczIDUuMDE4YTU2LjMyIDU2LjMyIDAgMCAwIDEuNzQtOS4xNDhjLjM0Mi0zLjI0My41MTMtNi41NTQuNDc5LTkuODNhNzcuNzkgNzcuNzkgMCAwIDAtMS45OC0xNy45MiA0Mi4zMjUgNDIuMzI1IDAgMCAwLTYuMzgzLTE0LjY3OCAzMC41NSAzMC41NSAwIDAgMC0xMS40MzUtOS44NjQgMzcuNjgzIDM3LjY4MyAwIDAgMC0xNy4xNjktMy41ODQgMzcuMDM1IDM3LjAzNSAwIDAgMC0xNy4yMzcgMy42NTIgMzEuNjQyIDMxLjY0MiAwIDAgMC0xMS40IDkuODMgNDAuOTggNDAuOTggMCAwIDAtNi4zNSAxNC40MDUgNzYuNjYgNzYuNjYgMCAwIDAgMCAzNC4wOTljMS4wMjUgNS4yMjIgMy4wNzMgMTAuMTcyIDUuOTc0IDE0LjY0MyAyLjkzNiA0LjI2NyA2LjgyNyA3Ljg1IDExLjQzNSAxMC4zMDhhMzUuNzEzIDM1LjcxMyAwIDAgMCAxNy41NzggMy45NmwtLjMwNy4wMzR6IiBmaWxsPSIjRkZGIi8+PHBhdGggZD0ibTI0OS4xNzMgNjcyLjA4NS0xMC40NDQgMjEuMTYzYTE3LjkyIDE3LjkyIDAgMCAxLTUuOTc0IDcuMDY2IDE5LjQ1NiAxOS40NTYgMCAwIDEtMTEuMTk2IDIuNjI4IDE5Ljc5NyAxOS43OTcgMCAwIDEtMTEuOTQ2LTMuMDcyYy0yLjk3LTIuMDgyLTMuMzExLTUuNjY2LTEuMDkyLTEwLjcxOGw0OC44NzgtMTEwLjQ1NWExMS4yNjQgMTEuMjY0IDAgMCAxIDUuMTItNS4yNTcgMjUuNTMyIDI1LjUzMiAwIDAgMSAyMS4xNjMgMCAxMS40NjkgMTEuNDY5IDAgMCAxIDUuMDUyIDUuMjU3bDQ5LjM1NyAxMTAuODY1YzEuOTExIDQuNjc2IDEuMzY1IDguMDktMS41MzYgMTAuMjRhMTkuNDIyIDE5LjQyMiAwIDAgMS0xMS45NDcgMy4yMDggMTcuNDA4IDE3LjQwOCAwIDAgMS0xMC45MjMtMi41MjYgMTguNTM0IDE4LjUzNCAwIDAgMS01LjQ5NS02LjMxNGwtMTEuMzY3LTIyLjA4NUgyNDkuMTR6bTQyLjQyOC0yMC43ODctMTguMjI3LTQ1LjYzNi0xOC4yOTYgNDUuNjM2aDM2LjUyM3ptMTM5LjQtMjQ0Ljk0aDMwNS44N2MxNi45OTggMCAyNS40OTcgNS40NiAyNS40OTcgMTYuNDg2IDAgMTAuOTktOC41MzMgMTYuNDg2LTI1LjQ5OCAxNi40ODZINDMxLjAwMmMtMTYuOTk5IDAtMjUuNDk4LTUuNDk1LTI1LjQ5OC0xNi40ODZzOC41MzMtMTYuNDg3IDI1LjQ5OC0xNi40ODd6IiBmaWxsPSIjMERGRUQ0Ii8+PHBhdGggZD0iTTQzMS4wMDIgNjIwLjYxMmgxMjYuMzk1YzE2Ljk5OSAwIDI1LjQ5OCA1LjQ2MiAyNS40OTggMTYuNDg3IDAgMTAuOTktOC41IDE2LjQ1Mi0yNS40OTggMTYuNDUySDQzMS4wMDJjLTE2Ljk5OSAwLTI1LjQ5OC01LjQ2MS0yNS40OTgtMTYuNDUyIDAtMTAuOTkxIDguNTMzLTE2LjQ4NyAyNS40OTgtMTYuNDg3em0tMTAuODg5IDEyMC45NjloNzIuMjZjOS43MjggMCAxNC42MSA1LjQ5NSAxNC42MSAxNi40ODZzLTQuODgyIDE2LjQ4Ny0xNC42MSAxNi40ODdoLTcyLjI2Yy05LjcyOCAwLTE0LjYwOS01LjQ5Ni0xNC42MDktMTYuNDg3IDAtMTAuOTkgNC44ODEtMTYuNDg2IDE0LjYxLTE2LjQ4NnoiIGZpbGw9IiNGRkYiLz48L3N2Zz4=",si=Object.defineProperty,kt=Object.getOwnPropertySymbols,Kn=Object.prototype.hasOwnProperty,hi=Object.prototype.propertyIsEnumerable,et=(rn,Xt,Sn)=>Xt in rn?si(rn,Xt,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):rn[Xt]=Sn,_e=(rn,Xt)=>{for(var Sn in Xt||(Xt={}))Kn.call(Xt,Sn)&&et(rn,Sn,Xt[Sn]);if(kt)for(var Sn of kt(Xt))hi.call(Xt,Sn)&&et(rn,Sn,Xt[Sn]);return rn};const xe=rn=>React.createElement("svg",_e({className:"e_svg__icon",width:200,height:200,viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},rn),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,Ae=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,Pt=(rn,Xt,Sn)=>Xt in rn?Me(rn,Xt,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):rn[Xt]=Sn,Vt=(rn,Xt)=>{for(var Sn in Xt||(Xt={}))at.call(Xt,Sn)&&Pt(rn,Sn,Xt[Sn]);if(Ae)for(var Sn of Ae(Xt))Lt.call(Xt,Sn)&&Pt(rn,Sn,Xt[Sn]);return rn};const It=rn=>React.createElement("svg",Vt({className:"g_svg__icon",width:200,height:200,viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},rn),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 an="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg2Ny4yNiA4MDEuMzE0Yy02Ni41NiA3OS4yOTItMTYwLjgwMiAxMjAuOS0yNjEuMzYgMTI5Ljc3NWgtLjMwNmEyMjEuMDgyIDIyMS4wODIgMCAwIDEtMTQuNTQxIDEuMDU4Yy0uNDEuMTAzLS44Mi4xMDMtMS4yMjkuMTAzLS40MS40NDMtMS4zNjUuNDQzLTEuNzQuNDQzYTUxMS4zODYgNTExLjM4NiAwIDAgMS0xNTUuODU0LTE2Ljg2MmwtMS42NzItLjQ0M2EzMTIuNDIyIDMxMi40MjIgMCAwIDEtMTcuMDMzLTQuOTE1IDI3MS41OTkgMjcxLjU5OSAwIDAgMS0xNS45MDYtNS4wMTggMzAuMTA2IDMwLjEwNiAwIDAgMC0yLjE1LS42NDljLTcuNzQ4LTIuNjYyLTE1LjM2LTUuNTMtMjIuOTA0LTguNTMzYTM3NS4wMiAzNzUuMDIgMCAwIDEtMTguNDMyLTcuNjggNTI1LjAwNSA1MjUuMDA1IDAgMCAxLTExMy4wODMtNjUuOTQ2Yy0uOTIyLS43NS0xLjk0Ni0xLjUwMS0yLjkwMi0yLjM1NWE0ODYuNjA1IDQ4Ni42MDUgMCAwIDEtMTMzLjY2Ni0xNTcuNDljLTE0Ni43NzMtMjc2LjQ4IDQwLjM4LTQ5MC4xNTYgMjEwLjM2NC01MDAuNDk4IDMuNzItLjIzOSA3LjMzOS0uMzQxIDEwLjkyMy0uMzQxaDkuODNjMTUwLjkwMy03Ljg4NSAzMTUuMzkyIDc4LjIzMyA0MzAuMjE2IDE5NS41MTUgMS40MzQgMS40IDIuNzMxIDIuOCA0LjA5NiA0LjI2NyA1LjcgNS44MDMgMTEuMTYyIDExLjc0MiAxNi41MjEgMTcuNzE1QzkwOS4yNzggNTE0Ljg2NyA5NjUuMTIgNjg0LjU0NCA4NjcuMjYgODAxLjMxNCIgZmlsbD0iI0ZGRDA2NiIvPjxwYXRoIGQ9Ik0yMjIuNDEzIDgwNy42OTdhNDg3LjkwMiA0ODcuOTAyIDAgMCAxLTEwNS4yNjctMTIyLjQ3YzQuOTgzLTE3NS4zNDMgMzYuMjE1LTM2NC41NDQgMTAwLjQyLTM5Mi44MDcgNjUuNzA3IDI4OC41OTggNTIuNzcgNDQyLjA5NSA0Ljg0NyA1MTUuMjc3eiIgZmlsbD0iI0U5NzI4NiIvPjxwYXRoIGQ9Im0yMDYuOTE2IDc5NC4xOC00MS40NzItNjIwLjIwMmMtMS4wMjQtMTQuOTUgNC4wMjgtMjkuNjk2IDEzLjk5NS00MC45NmE1Ny4yMSA1Ny4yMSAwIDAgMSAzOS4xODUtMTkuMTE1bDUxNS45OTQtMzMuODk0YzMxLjQzNi0yLjA0OCA1OC42MDcgMjEuNTA0IDYwLjY4OSA1Mi42MzNsNDYuNTIzIDY5NS44NzZhMzYyLjEyIDM2Mi4xMiAwIDAgMS0xMzMuMjIyIDgwLjgyOGwtMjM1LjkzIDE1LjUzYTU0Mi40NDcgNTQyLjQ0NyAwIDAgMS01OS4xNTMtMTQuNDAzIDMzMS41MzcgMzMxLjUzNyAwIDAgMS0xNS45MDYtNS4wMTggMzAuMTA2IDMwLjEwNiAwIDAgMC0yLjE1LS42ODNjLTcuNzQ4LTIuNjI4LTE1LjM2LTUuNDk1LTIyLjkwNC04LjUzMy02LjIxMi0yLjM5LTEyLjMyMi00Ljk1LTE4LjQzMi03LjY0NmE1MjQuOTcgNTI0Ljk3IDAgMCAxLTE0Ny4yMTctOTQuNDQ3di4wMzR6IiBmaWxsPSIjN0U0RUUzIi8+PHBhdGggZD0ibTE5OS4wMzEgMTcxLjk2NCA1NTEuNDI0LTM4LjcwNyA1Mi4wODggNzMxLjIzOC01MzguMzg1IDI1Ljc3LTY1LjE2LTcxOC4zMDEiIGZpbGw9IiNGRkYiLz48cGF0aCBkPSJNMjM2LjEgODE4Ljc5YTQ5MS42OSA0OTEuNjkgMCAwIDEtMTExLjg4OS0xMjIuMTk3YzkuMDExLTgxLjIzNyA0NC43MTUtMTI3LjUyMiA3OS4zOTQtMTcyLjU0NCAxNi4yODItMjEuMTYzIDMyLjM1OS00MS45ODQgNDUuMzY0LTY2LjA0OCA0OS45MzctOTIuNTAxIDEwOC41NDQtODcuOTYyIDEzLjAwNCA5Ny45NjMtMTYuMDQyIDMxLjMzNC05LjA4IDU5LjU5Ny0xLjI5NyA5MS4yMDQgMTEuMDYgNDQuNTc4IDIzLjY4OSA5NS43NzgtMjQuNTc2IDE3MS42MjJ6IiBmaWxsPSIjRjY5QzkzIi8+PHBhdGggZD0ibTY4OS41NjIgMzM5LjM4OC0yMzEuOTM2IDIxLjI2NWExNS4yOTIgMTUuMjkyIDAgMCAxLTE2LjY1Ny0xMy43MjJsLTMuMTQtMzMuNTE5YTE1LjIyMyAxNS4yMjMgMCAwIDEgMTMuODU3LTE2LjQ4NmwyMzEuOTAyLTIxLjI2NWExNS4yNTggMTUuMjU4IDAgMCAxIDE2LjY1NyAxMy43MjFsMy4xNCAzMy40ODVhMTUuMjIzIDE1LjIyMyAwIDAgMS0xMy44NTggMTYuNTJ6bTE4LjAyMiAxODkuMTY3LTIzNy44NzUgMTUuNTk5YTE0LjU0IDE0LjU0IDAgMCAxLTE1LjQ5Ny0xMy40NDlsLTIuMzktMzUuMDJhMTQuNTA3IDE0LjUwNyAwIDAgMSAxMy42Mi0xNS4zOTVsMjM3Ljg3NS0xNS41OTlhMTQuNTQgMTQuNTQgMCAwIDEgMTUuNDk3IDEzLjQ0OWwyLjM5IDM1LjA1NWExNC41MDcgMTQuNTA3IDAgMCAxLTEzLjYyIDE1LjM2ek00ODYuNzQxIDc0Ni4zNTlsMjM5LjEzOC0yMC4wMDJhMTQuMTY1IDE0LjE2NSAwIDAgMCA5LjYyNi00Ljk0OSAxMy45MjYgMTMuOTI2IDAgMCAwIDMuMjc3LTEwLjI0bC0zLjA3Mi0zNS44NGExMy45NiAxMy45NiAwIDAgMC00Ljk4NC05LjUyMyAxNC4yMzQgMTQuMjM0IDAgMCAwLTEwLjMwOC0zLjI0M0w0ODEuMjggNjgyLjU5OGExNC4wNjMgMTQuMDYzIDAgMCAwLTEyLjkwMiAxNS4xMjFsMy4wNzIgMzUuODc1Yy42ODIgNy43MTQgNy41MDkgMTMuNDE0IDE1LjI5MSAxMi43NjV6IiBmaWxsPSIjRDVDRkUzIi8+PHBhdGggZD0iTTM4MC41ODcgMzUxLjc3OGMwIDI5LjM1NS0yMy45OTYgNTMuMTEyLTUzLjU5IDUzLjExMi0yOS42MjcgMC01My42MjMtMjMuNzU3LTUzLjYyMy01My4xMTJzMjMuOTk2LTUzLjExMSA1My41OS01My4xMTFjMjkuNjI3IDAgNTMuNjU3IDIzLjc5IDUzLjY1NyA1My4xMTF6bTE4LjIyNyAxOTIuNjgzYzAgMjkuMzU0LTIzLjk5NiA1My4xNDUtNTMuNjI0IDUzLjE0NWE1My4zODUgNTMuMzg1IDAgMCAxLTUzLjYyMy01My4xNDVjMC0yOS4zNTUgMjMuOTk2LTUzLjExMiA1My41OS01My4xMTIgMjkuNjYxIDAgNTMuNjU3IDIzLjc5MSA1My42NTcgNTMuMTEyem0tMzUuOTA4IDIzNy40MzFjMTkuNDIxLjM0MiAzNy41NDYtOS42NiA0Ny4zNDMtMjYuMjgyYTUyLjcwMiA1Mi43MDIgMCAwIDAgMC01My43MjYgNTMuNzI2IDUzLjcyNiAwIDAgMC00Ny4zNDMtMjYuMjQ5IDUzLjM4NSA1My4zODUgMCAwIDAtNTIuNTY2IDUzLjExMmMwIDI4Ljk0NSAyMy4zODIgNTIuNTY1IDUyLjU2NiA1My4xNDV6IiBmaWxsPSIjRTdFMUY0Ii8+PHBhdGggZD0iTTI4OC4zMjQgMzQ5LjM4OWMtNy44ODUtOC45NzcgMTAuNjg0LTIzLjU1MiAyMC40NDYtMTIuNjMgMS44NDMgMi4wODMgMy41MTYgNC4zMzUgNS4xNTQgNi40ODYgNy4wMzIgOS4yMTYgMTIuNzY2IDE2LjcyNSAyMS42NCAxLjg3NyAxMC45OTItMTguMzMgNDIuNjY3LTU2LjQ1NiA1MS43NDctNjQuNzE3IDkuMDgtOC4yOTQgMzguMjk4IDEuMDU4IDIxLjk0OCAyMC41ODMtMTYuMzg0IDE5LjU1OC00NS41NjggNTYuODMyLTU0LjQwOSA3MC44OTUtOC44NzUgMTQuMDI4LTIxLjg0NSAyNC4wOTgtMzYuNzI3IDcuMTM0LTE0Ljc4LTE2Ljk2NS0yOS43OTktMjkuNTk0LTI5Ljc5OS0yOS41OTR6bTE2LjM4NCAxOTMuNjA0Yy04Ljc3Mi04LjA5IDguMTI0LTI0LjU3NiAxOC45NzgtMTQuNjc3IDIuMDQ4IDEuODQzIDMuOTYgMy44OSA1LjgwMyA1Ljg3IDguMDIxIDguNDMyIDE0LjUwNyAxNS4yOTIgMjEuNzc3LS40MDkgOC45NDMtMTkuMzU0IDM2LjM1Mi02MC41ODcgNDQuNTEtNjkuNzY4IDguMTkyLTkuMjE2IDM4LjIzLTIuOTM2IDI0LjAzIDE4LjE5My0xNC4xNjUgMjEuMTYyLTM5LjI1MyA2MS4yNjktNDYuNTI0IDc2LjE4NS03LjMwNCAxNC44ODItMTkuMjE3IDI2LjI0OS0zNS43NzIgMTAuOTIzLTE2LjUyLTE1LjI5Mi0zMi43NjgtMjYuMjgzLTMyLjc2OC0yNi4yODN6bTM3LjMwOCAxNzEuNDg2Yy05LjY2LTExLjAyNS0yOC4zMyAzLjQxMy0yMC40OCAxMi40OTMgMCAwIDE0Ljg4MiAxMi43NjYgMjkuNTk0IDI5Ljc5OCAxNC42NzcgMTcuMDY3IDI3Ljc4NCA3LjEzNCAzNi43MjctNi44NiA4Ljk0My0xMy45OTUgMzguNDM0LTUxLjA2NCA1NC45NTUtNzAuNDg2IDE2LjQ4Ni0xOS4zODgtMTIuNjk4LTI5LjAxMy0yMS44NDYtMjAuNzg3LTkuMTEzIDguMjI2LTQxLjA5NiA0Ni4xNDgtNTIuMTU1IDY0LjM3NS05LjAxMiAxNC43OC0xNC42NzggNy4yMzctMjEuNjQtMi4wNDhhMTE0LjE0MiAxMTQuMTQyIDAgMCAwLTUuMTItNi40ODV6IiBmaWxsPSIjMDBDNkNEIi8+PHBhdGggZD0iTTU2OS45MjQgNjcuMTc0Yy00OS45Ny0xMTkuNS0xNjQuNTktNTQuMS0xODUuODU2IDExLjA5NC0zMS4yNjYgMS43MDYtNTcuMDcgMi45MzUtNzAuOTk3IDMuMzQ1aC0uMzQxYy02LjUyLjIzOS0xOC40MzIuNTgtMjYuMDQ0IDguNzcyLTE5LjM1NCAyMC44MjEgNi4yOCA3My42NiAyMS4yNjUgMTAwLjkzMmExMjk3LjA2NyAxMjk3LjA2NyAwIDAgMCAzNDkuMTUtMjMuMTc2YzE3LjM0LTU3LjU4MyAyMS43MDktMTEwLjE0OC0yMS43MDktMTA1Ljg4Mi0xMS40IDEuMTYtMzUuMzYyIDIuOTAyLTY1LjQ2OCA0LjkxNXptLTkxLjc1LjMwOGMtMS43MDcgMC0zLjk2LjA2OC02LjU4OC4xNy0xOS4zNTMuNjgzLTU4LjMgMi4wNDgtMzguOTgtMjIuNjk4IDI1LjU2Ni0zMi43IDc1LjIzLTMxLjA2MiA5MS4xMzYtNC45MTYgMTUuOTA2IDI2LjE0Ny0zMS4yNjYgMjcuNDQ0LTQ1LjU2OCAyNy40NDR6IiBmaWxsPSIjM0QzNDUwIi8+PHBhdGggZD0iTTgzMC42NjkgMTAxOS4wODVhMTczLjQzMSAxNzMuNDMxIDAgMCAwIDE0OS45NDgtODUuNzQzIDE3MC4xNTUgMTcwLjE1NSAwIDAgMCAwLTE3MS41MiAxNzMuNDMxIDE3My40MzEgMCAwIDAtMTQ5Ljk0OC04NS43NzdjLTk1LjYwOCAwLTE3My4xMjQgNzYuOC0xNzMuMTI0IDE3MS41MiAwIDk0LjcyIDc3LjQ4MiAxNzEuNTIgMTczLjEyNCAxNzEuNTJ6IiBmaWxsPSIjMDBDNTcyIi8+PHBhdGggZD0iTTkxOS41NTIgNzY5LjQzNGEyMS43NzcgMjEuNzc3IDAgMCAxIDM2LjE4MSAxMC41MTMgMjEuMyAyMS4zIDAgMCAxLTYuNDUgMjAuNjVsLTI5LjY5Ny0zMS4xNjN6bS0xNjEuMTc4IDYxLjIzNSA1LjczNSA3Ljc4MmMxMS40IDE1LjQ2MyAyMi43MzMgMzAuOTI1IDM0LjA5OSA0Ni40MjJBMTM0OTkuOTcyIDEzNDk5Ljk3MiAwIDAgMSA5MTYuNTE0IDc3Mi4zbDMuMDcyLTIuODY3IDI5LjY5NiAzMS4xNjMtMy4wMzggMi44MzMtMzkuNTk0IDM3LjM3NmExMjkwMS43MTcgMTI5MDEuNzE3IDAgMCAwLTk2LjE1NCA5Mi4wOTIgMjEuNzc3IDIxLjc3NyAwIDAgMS0zMi42NjYtMi43OTkgMTM4MjEuNjIyIDEzODIxLjYyMiAwIDAgMC00OC42NzQtNjYuMzU1bC01LjczNC03Ljc0OCAzNC45NTItMjUuMjkzem0wIDBhMjEuNzc3IDIxLjc3NyAwIDAgMC0zMC4yNDItNC42NDIgMjEuMyAyMS4zIDAgMCAwLTQuNzEgMjkuOTM1bDM0Ljk1Mi0yNS4yNnoiIGZpbGw9IiNGRkYiLz48L3N2Zz4=",sn=Object.defineProperty,on=Object.getOwnPropertySymbols,bn=Object.prototype.hasOwnProperty,un=Object.prototype.propertyIsEnumerable,zt=(rn,Xt,Sn)=>Xt in rn?sn(rn,Xt,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):rn[Xt]=Sn,xn=(rn,Xt)=>{for(var Sn in Xt||(Xt={}))bn.call(Xt,Sn)&&zt(rn,Sn,Xt[Sn]);if(on)for(var Sn of on(Xt))un.call(Xt,Sn)&&zt(rn,Sn,Xt[Sn]);return rn};const fn=rn=>React.createElement("svg",xn({className:"h_svg__icon",width:200,height:200,viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},rn),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 An="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkzMS4yOTQgMTY2Ljc3NUg1MzYuNDM5Vjg1Ni4yN2gzOTQuODU1YTI0LjIzNSAyNC4yMzUgMCAwIDAgMjQuNDQtMjQuMzcxVjE5Mi4xMDJjMC0xNC4wNjMtMTAuMzQzLTI1LjMyNy0yNC40NC0yNS4zMjd6IiBmaWxsPSIjRkY4QTY1Ii8+PHBhdGggZD0iTTUxMiA2MzQuODhoMzQ1Ljk3NXY0OC44MUg1MTJ2LTQ4Ljgxem0wIDk4LjUwOWgzNDUuOTc1djQ5LjczMkg1MTJWNzMzLjM5ek02NjAuNTQ4IDI5MC42MUM1NzguNzY1IDI5MC42MTEgNTEyIDM1Ny4yMDUgNTEyIDQzOC44MThTNTc4Ljc2NSA1ODcuMDYgNjYwLjU0OCA1ODcuMDZjODEuNzg0IDAgMTQ4LjUxNC02Ni42MjggMTQ4LjUxNC0xNDguMjRINjYwLjU0OFYyOTAuNjF6IiBmaWxsPSIjRkJFOUU3Ii8+PHBhdGggZD0iTTcwOS40MjcgMjQwLjg3OVYzODkuMTJoMTQ4LjU0OGMwLTgxLjY0Ny02Ni43NjQtMTQ4LjI0MS0xNDguNTQ4LTE0OC4yNDF6IiBmaWxsPSIjRkJFOUU3Ii8+PHBhdGggZD0iTTU4Ni4yNzQgOTU1LjczMyA2OC4yNjcgODU3LjIyNXYtNjkwLjQ1bDUxOC4wMDctOTguNTA4eiIgZmlsbD0iI0U2NEExOSIvPjxwYXRoIGQ9Ik0zMzUuMjU4IDM0My4xNDJIMjE4LjY5MnYzMzcuNzE2aDcyLjM2M1Y1NjQuNTY1aDM3LjY0OWM0MC40NDggMCA3Mi4zOTctMTAuMzA4IDk1LjkxNS0zMS44OCAyMy40ODMtMjAuNjUgMzUuNzAzLTQ4LjgxIDM1LjcwMy04Mi41NjkgMC03MS4zMDQtNDIuMzI1LTEwNi45NC0xMjUuMDMtMTA2Ljk0em0tMTMuMTc2IDE2My4yMjZIMjkxLjA5VjQwMS4zMDZoMzAuOTkzYzM5LjQ5MiAwIDU5LjI1NiAxNi44OTYgNTkuMjU2IDUxLjU3NSAwIDM2LjU5MS0xOS43NjQgNTMuNDg3LTU5LjI1NiA1My40ODd6IiBmaWxsPSIjRkZGIi8+PC9zdmc+",nn=Object.defineProperty,ci=Object.getOwnPropertySymbols,zn=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,Fn=(rn,Xt,Sn)=>Xt in rn?nn(rn,Xt,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):rn[Xt]=Sn,Pn=(rn,Xt)=>{for(var Sn in Xt||(Xt={}))zn.call(Xt,Sn)&&Fn(rn,Sn,Xt[Sn]);if(ci)for(var Sn of ci(Xt))yt.call(Xt,Sn)&&Fn(rn,Sn,Xt[Sn]);return rn};const Ht=rn=>React.createElement("svg",Pn({className:"i_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},rn),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 fi="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTgwMC4yOSA5NTUuNzMzSDIyMy43MUExNTUuNjE0IDE1NS42MTQgMCAwIDEgNjguMjY3IDgwMC4yOVYyMjMuNzFBMTU1LjYxNCAxNTUuNjE0IDAgMCAxIDIyMy43MSA2OC4yNjdoNTc2LjU4QTE1NS42MTQgMTU1LjYxNCAwIDAgMSA5NTUuNzMzIDIyMy43MXY1NzYuNThBMTU1LjYxNCAxNTUuNjE0IDAgMCAxIDgwMC4yOSA5NTUuNzMzeiIgZmlsbD0iIzMyOTFGQyIvPjxwYXRoIGQ9Ik0zMTEuMTI1IDcyOS40M2E4Ny4wNCA4Ny4wNCAwIDAgMC0zNy4xMzctMjguNTdjLTYyLjI5My0yNi44NjMtOTEuNDQzLTk5LjQzLTY0LjU4LTE2MS43MjQgNS43MzQtMTEuOTggMTIuNTk1LTIzLjQxNSAyMS43MDktMzMuNzI0IDE0LjMwMi0xNC4yNjcgMjQuNTc2LTMxLjk4MyAyOS43My01MS40MDUgNS43LTIyLjg2OSAxNC44NDgtNDQuMDMyIDI3LjQ0My02My40NTNhMjYuMzUgMjYuMzUgMCAwIDAgMi4yODctMjcuNDFjLTUuMTU0LTExLjQzNC05LjcyOC0yMy40NS0xMy43MjItMzQuMzAzLTYuMjgtMTcuMTM1LTEwLjMwOC0zMy43MjQtMzQuODUtMzUuOTc3YTM5LjA4MyAzOS4wODMgMCAwIDEtMjcuOTg5LTQ3LjQ0NWMzLjQxMy0yMS4xNjMgMjEuMTI5LTM3LjEzNyA0Mi44MzctMzguMjk4IDIyLjI5IDEuMTYgNDAuMDA1IDE5LjQ1NiA0MS4xMzEgNDEuNzExIDAgMTYuMDQzIDguMDIxIDIwLjU4MiAxOC4yOTUgMjcuOTkgMjUuMTU3IDIyLjg2OSA2Mi44NzQgMjQuMDMgODkuNzAzIDIuODY3YTI0OC41NTkgMjQ4LjU1OSAwIDAgMSAyNDEuNzMyLTMuNDE0YzUuMTIgMi44NjcgOS43MjggNi4yOCA5LjE0OCAxMi41NjEtMS4xMjcgNi4yOC02LjI4IDExLjQzNS0xMi41NjEgMTEuNDM1LTEzLjcyMiAyLjI4Ny0yNy40NDMgMy40MTMtNDEuMTY1IDUuNzM0LTU1Ljk3OSA1LjEyLTEwNy45OTggMzEuNDAzLTE0NS4xMzUgNzMuMTQ4YTE2MS4wNDEgMTYxLjA0MSAwIDAgMC00Mi44NzEgMTIxLjcyIDE2NC4wNDUgMTY0LjA0NSAwIDAgMCA1OC44OCAxMTQuODU4IDUzLjI0OCA1My4yNDggMCAwIDEgMjEuMTYyIDcyLjAyMmMtMi4zMiAzLjk1OS01LjE4OCA3Ljk1My04LjYwMSAxMS45NDYtMi4yODcgMy40NDgtNC41NzQgNy40NDEtNy45ODggMTIuNTk1IDIxLjE2MyA1LjcgNDMuNDE4IDIuODY4IDYyLjg0LTcuOTg3YTE1NS4wNjggMTU1LjA2OCAwIDAgMSA4MC41NTUtMjQuNTc2IDIzNC4wODYgMjM0LjA4NiAwIDAgMCAxODIuMzA2LTExMi4wMjVjMS4xNi0xLjEyNyAyLjg2Ny0xLjcwNyA1LjczNC0zLjQxNGEyMDcuMTkgMjA3LjE5IDAgMCAxLTguMDIxIDU1Ljk3OSAyODEuMDU0IDI4MS4wNTQgMCAwIDEtMjY2Ljg1NSAyMTguMzE3aC03Ljk4N2EyNjkuODI0IDI2OS44MjQgMCAwIDEtMjE2LjAzLTEwOS4xNTl6IiBmaWxsPSIjQUZFOUZGIi8+PHBhdGggZD0iTTU5Ni44NTUgNTIxLjQyYTY5LjIyMiA2OS4yMjIgMCAwIDEtMjAuMDAyLTQ4LjU3di0xLjcwOGMwLTIxLjE2MiA5LjcyOC0zNi41OSAyMi44Ny0zOS40MjQgMTEuOTgtMi44NjcgMjcuNDA5IDkuNjk0IDM0Ljg1IDI3Ljk5YTY2LjU2IDY2LjU2IDAgMCAxIC41OCA1NC4yNzIgMjIuODcgMjIuODcgMCAwIDEtMjAuMDAyIDE0Ljg4MiAyNS42IDI1LjYgMCAwIDEtMTcuNzUtOC4wMjFsLS41NDYuNTh6bTEyMy40MjctNDAuNTVhNzAuMDA3IDcwLjAwNyAwIDAgMS0xMS40LTY1Ljc0YzIuMjg2LTExLjk4MSAxNC4yNjctMjEuMTYzIDI2LjI4Mi0xOC44NDJhMjcuNDQzIDI3LjQ0MyAwIDAgMSAxNC4yNjcgNy45ODdjOS43MjggMTAuODU1IDE2LjU5IDIzLjk5NiAxOC44NzYgMzguMjk4bDEuMTI3IDExLjk4YzAgNi4zMTUtMS4xMjcgMTIuNTk2LTMuNDE0IDE4Ljg3NmEyNi44NjMgMjYuODYzIDAgMCAxLTIzLjQ1IDIwLjAwMiAyOS45MzUgMjkuOTM1IDAgMCAxLTIyLjI4OC0xMi41NnoiIGZpbGw9IiNGRkYiLz48L3N2Zz4=",zi=de.p+"static/am.0d671d8c.gif",Li=de(89299),Dn=de(64681),qi=de(13952),Ui=de(38776),ui=de(98573),bi=Object.defineProperty,Ri=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,gi=Object.getOwnPropertySymbols,Ii=Object.prototype.hasOwnProperty,ki=Object.prototype.propertyIsEnumerable,ar=(rn,Xt,Sn)=>Xt in rn?bi(rn,Xt,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):rn[Xt]=Sn,Nr=(rn,Xt)=>{for(var Sn in Xt||(Xt={}))Ii.call(Xt,Sn)&&ar(rn,Sn,Xt[Sn]);if(gi)for(var Sn of gi(Xt))ki.call(Xt,Sn)&&ar(rn,Sn,Xt[Sn]);return rn},sr=(rn,Xt)=>Ri(rn,ke(Xt)),Di=(rn,Xt,Sn)=>new Promise((Rn,Jn)=>{var qt=pt=>{try{ti(Sn.next(pt))}catch(yn){Jn(yn)}},Gt=pt=>{try{ti(Sn.throw(pt))}catch(yn){Jn(yn)}},ti=pt=>pt.done?Rn(pt.value):Promise.resolve(pt.value).then(qt,Gt);ti((Sn=Sn.apply(rn,Xt)).next())});const Ei=({data:rn,onFinish:Xt})=>le.createElement(ge.Z,null,rn.map((Sn,Rn)=>le.createElement(Ui.op,{key:Rn,style:{height:28},shape:"default",size:"small",onClick:()=>Xt(Sn)},Sn))),Zt=({text:rn="",onFinish:Xt})=>((0,le.useEffect)(()=>{rn!=null&&rn.includes("\u672C\u8F6E\u63D0\u95EE\u7ED3\u675F")&&Xt()},[rn]),le.createElement(le.Fragment,null));var Rt=({pageData:rn,pageNum:Xt,maxPage:Sn,aiImg:Rn,isCreator:Jn,node:qt,showModelPage:Gt,onModelPageChange:ti,changePage:pt,pptInfo:yn})=>{var ii,xi,Ut,$n,pi,Kt,Ue,wi,ai,Mn,ji,Ki;const Zi=(0,Ce.useParams)(),[Nn,Jt]=(0,le.useState)(!1),[Ji,zr]=(0,le.useState)(!1),[wn,vi]=(0,le.useState)(!1),[Ni,Bi]=(0,le.useState)(!0),Fi=(0,le.useRef)({}),Wi=(0,le.useRef)(null);(0,le.useEffect)(()=>{var ur,Bn;if((ur=rn==null?void 0:rn.page)!=null&&ur.id&&((Bn=rn==null?void 0:rn.page)==null?void 0:Bn.knowledge_need_answer)===!0){Bi(!1);const{stream:br,setLoading:Er,clearStatus:pr,renderChatItems:$r,setChatData:Xr,getData:Ur}=Fi.current,Yr=()=>Di(void 0,null,function*(){var Vo,Kr;(Kr=(Vo=br.current)==null?void 0:Vo.cancelRequest)==null||Kr.call(Vo),yield new Promise(Ar=>setTimeout(Ar,500)),pr(),Er(!0);const Ti="\u4E3B\u52A8\u63D0\u95EE\u5F00\u59CB",lt=$r(Ti),xo={history:[]};lt[0].show=!1,Xr(lt),Ur(Ti,xo)});return Wi.current=setTimeout(Yr,1e3),()=>{clearTimeout(Wi.current)}}},[(ii=rn==null?void 0:rn.page)==null?void 0:ii.id]),(0,le.useEffect)(()=>{Jn===!1&&Gt&&Oe.Z.publish("can-load-data",!1)},[Jn,Gt]);const cr=[{key:1,name:"PPT\u5236\u4F5C",img:An,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:kn,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:fi,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"}],mr=[{key:4,name:"\u667A\u80FD\u51FA\u9898",img:an},{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}],Tr=!((xi=rn==null?void 0:rn.item_banks)!=null&&xi.length)&&!((Ut=rn==null?void 0:rn.page)!=null&&Ut.animation_code)&&!((pi=($n=rn==null?void 0:rn.page)==null?void 0:$n.smart_plan_page_knowledges)!=null&&pi.length),Mr=ur=>{Fi.current=ur;const{stream:Bn,setTyping:br,setLoading:Er,clearStatus:pr,renderChatItems:$r,setChatData:Xr,typing:Ur,setCodePreview:Yr,getData:Vo}=ur,Kr=(Ti,lt)=>{if(Ur){qe.ZP.warning("\u8BF7\u7B49\u5F85\u4EFB\u52A1\u5B8C\u6210");return}Er(!0),pr();const xo=$r(Ti),Ar={file_ids:[],history:[]},Or=lt===2;Yr(Or),xo[1].codePreview=Or,Ar.code_preview=Or,Xr(xo),Vo(Ti,Ar)};return le.createElement(le.Fragment,null,le.createElement("div",{className:Jn?"mb30":"",style:{display:Gt?"block":"none"}},le.createElement("div",{className:Fe.head},le.createElement("strong",{className:"font18 c-black mr10"},Jn?" \u667A\u6167\u5907\u8BFE":"\u667A\u80FD\u5B66\u4F34"),Jn&&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")),Ni&&le.createElement("div",{className:Fe.btn,style:{width:"unset"},onClick:()=>{var Ti,lt;(lt=(Ti=Bn.current)==null?void 0:Ti.cancelRequest)==null||lt.call(Ti),pr(),br(!1),Er(!1),Xr([]),ti(!1),Oe.Z.publish("can-load-data",!0)}},le.createElement("img",{width:14,src:Tt}),le.createElement("div",{style:{marginLeft:"6px"}},"\u8FD4\u56DE\u5B66\u4E60\u4E92\u52A8"))),Jn&&le.createElement(le.Fragment,null,le.createElement("div",{className:Fe.center},le.createElement("div",{className:Fe.left},le.createElement(Se.Z,{align:"middle"},le.createElement("b",{className:"font16 c-grey-333 mr10"},"\u667A\u80FD\u5DE5\u5177")),le.createElement("div",{className:Fe.tool},cr.map(Ti=>le.createElement("aside",{onClick:()=>{var lt,xo;if(Ti.key===1){const Ar=`/IntelligentTools/10?pathid=${Zi.coursesId}&url=${window.location.origin}&name=${(xo=(lt=(0,Dn.eY)())==null?void 0:lt.course)==null?void 0:xo.course_name}&type=Course`;(0,Li.xg)(qi.Z.AI_PLATFORM_URL+Ar)}Ti.key===2&&Yr(!0),Ti.key===3&&Jt(!0),Ti.key===4&&zr(!0)},key:Ti.name},le.createElement("img",{src:Ti.img,width:28}),le.createElement("div",{className:"ml10"},le.createElement("b",{className:"c-grey-333"},Ti.name),le.createElement("div",{className:"c-grey-666 mt5 font12"},Ti.des)))))),le.createElement("div",{className:Fe.right,onClick:()=>{Xe.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:()=>Di(void 0,null,function*(){Kr(`\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:Fe.borderBox},le.createElement("img",{className:"w-full h-full",src:zi})))),le.createElement("div",{className:Fe.try},le.createElement("div",{className:"c-grey-333 mt10"},"\u8BD5\u4E00\u8BD5"),le.createElement("div",{className:Fe.btns},["\u5E2E\u6211\u4F18\u5316\u4E00\u4E0B\u672C\u9875\u7684\u8BFE\u4EF6\u5185\u5BB9"].map((Ti,lt)=>le.createElement("div",{key:lt,onClick:()=>Di(void 0,null,function*(){return Kr(Ti,lt)})},le.createElement("span",{className:"mr20"},Ti),le.createElement("i",{className:"iconfont icon-you2 font18"}))))))),le.createElement("div",{style:{display:Gt?"none":"block"}},qt))},Gn=(ur,Bn)=>Di(void 0,null,function*(){var br,Er,pr;const $r=yield(0,Ct.ZP)(`/api/smart_plan_item_banks/${(br=rn==null?void 0:rn.page)==null?void 0:br.id}/animation_code.json`,{method:"put",body:{animation_code:ur}});($r==null?void 0:$r.status)===0&&(qe.ZP.success("\u64CD\u4F5C\u6210\u529F"),(pr=(Er=Fi.current)==null?void 0:Er.setChatData)==null||pr.call(Er,[]),Oe.Z.publish("active-data-update",!0),Bn(),setTimeout(()=>{ti(!1)},500))});return le.createElement(le.Fragment,null,le.createElement(Ve.Z,{data:Nr(sr(Nr({},rn),{url:Rn,position:Xt,maxPage:Sn}),Zi),visible:Ji,changePage:pt,onOk:()=>{var ur,Bn;qe.ZP.success("\u64CD\u4F5C\u6210\u529F"),zr(!1),(Bn=(ur=Fi.current)==null?void 0:ur.setChatData)==null||Bn.call(ur,[]),Oe.Z.publish("active-data-update",!0),setTimeout(()=>{ti(!1)},500)},onClose:()=>zr(!1)}),le.createElement(Xe.default,{open:Nn,title:"\u6DFB\u52A0\u8BD5\u9898",centered:!0,onCancel:()=>Jt(!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:Fe.add,style:{marginBottom:"20px"}},mr.map(ur=>le.createElement("div",{onClick:()=>{Oe.Z.publish("active-modal-index",ur.key),Jt(!1)}},le.createElement("img",{width:18,src:ur.img}),le.createElement("aside",{className:"ml10"},ur.name))))),le.createElement(se,{data:Nr({position:Xt,aiImg:Rn,pptInfo:yn},Zi),visible:wn,onClose:()=>vi(!1)}),le.createElement(Le.Z,{showSource:!1,showSwitchingModel:!1,onDynamic:Gn,ReactComponent:Ye,hideInputBox:Jn?!1:!((Kt=rn==null?void 0:rn.page)!=null&&Kt.enable_ai_tutor||(wi=(Ue=rn==null?void 0:rn.page)==null?void 0:Ue.smart_plan_page_knowledges)!=null&&wi.length||(ai=rn==null?void 0:rn.page)!=null&&ai.page_info),onSendMessage:()=>ti(!0),showCodePreview:Jn,topFunctionNode:ur=>Mr(ur),footerContainerStyle:{marginLeft:20,marginBottom:20},placeholder:Jn?"\u8F7B\u70B9\u6B64\u5904\uFF0C\u7ACB\u5373\u4F7F\u7528\u667A\u6167\u5907\u8BFE\u5DE5\u5177/\u6DFB\u52A0\u8BD5\u9898~":void 0,children:null,extraAnswerAction:(ur,Bn,br)=>{var Er;if(Ni)return le.createElement(le.Fragment,null);const{isDisAbledUpload:pr,getData:$r,clearStatus:Xr,setLoading:Ur,setChatData:Yr,chatData:Vo,renderChatItems:Kr}=br,Ti=lt=>{Xr(),Ur(!0),Yr([...Vo,...Kr(lt)]),$r(lt)};return le.createElement("div",{style:{marginRight:"auto",display:pr||Bn<Vo.length-1?"none":"block"}},((Er=ur==null?void 0:ur.text)==null?void 0:Er.includes("\u5224\u65AD\u9898"))&&le.createElement(Ei,{data:["\u6B63\u786E","\u9519\u8BEF"],onFinish:Ti}),le.createElement(Zt,{text:ur==null?void 0:ur.text,onFinish:()=>{Bi(!0)}}))},headNode:!Jn&&Gt&&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"),(Mn=rn==null?void 0:rn.page)!=null&&Mn.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:Fe.analysis},le.createElement(ui.Z,{value:(ji=rn==null?void 0:rn.page)==null?void 0:ji.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:!Jn&&Gt,fetchData:{questionable_type:Jn?"SmartPlan":"SmartPlanItemBank",ppt_url:Rn==null?void 0:Rn.map(ur=>ur==null?void 0:ur.url),questionable_id:Jn?Zi==null?void 0:Zi.id:(Ki=rn==null?void 0:rn.page)==null?void 0:Ki.id,position:Xt,type:Jn?10:11,is_chat:!0},title:"\u667A\u80FD\u52A9\u6559",fetchUrl:"/api/stream/course_qna_records/chat_messages.json",chatContainerStyle:{paddingLeft:20}}))}},60959:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return Ve}});var le=de(59301),Le={reasoning:"reasoning___S0mKl",btn:"btn____CIJG",content:"content___CIAh9"},De=de(29787),Ie=de(59301),Ye=(Xe,qe,Je)=>new Promise((mt,st)=>{var Ct=ne=>{try{te(Je.next(ne))}catch(he){st(he)}},je=ne=>{try{te(Je.throw(ne))}catch(he){st(he)}},te=ne=>ne.done?mt(ne.value):Promise.resolve(ne.value).then(Ct,je);te((Je=Je.apply(Xe,qe)).next())}),Ve=({value:Xe="",streamingStatus:qe,onFinish:Je,cancelIndex:mt,time:st,loading:Ct,loadAll:je})=>{const[te,ne]=(0,le.useState)(""),[he,se]=(0,le.useState)(!0),ge=(0,le.useRef)(Xe),Se=(0,le.useRef)(qe),Ce=(0,le.useRef)(0),Oe=(0,le.useRef)(null),[Be,Qe]=(0,le.useState)(!1),ot=70;(0,le.useEffect)(()=>{Se.current=qe},[qe]),(0,le.useEffect)(()=>{ge.current=Xe},[Xe]),(0,le.useEffect)(()=>{if(!qe){ne(ge.current);return}return Qe(!0),Oe.current=setInterval(rt,ot),()=>{clearInterval(Oe.current)}},[]),(0,le.useEffect)(()=>{Be&&(ne(ge.current),clearInterval(Oe.current),Qe(!1),Je())},[mt]);const rt=()=>Ye(void 0,null,function*(){const ft=ge.current[Ce.current];ft!==void 0?(ne(bt=>bt+ft),Ce.current++,clearInterval(Oe.current),Oe.current=setInterval(rt,280/(ge.current.length-Ce.current))):Se.current===!1&&(ne(ge.current),clearInterval(Oe.current),Qe(!1),Je())});return Ie.createElement("div",{className:`${Le.reasoning} fadeIn animated`},Ie.createElement("div",{className:Le.btn,onClick:()=>se(!he)},Ie.createElement("i",{className:"iconfont icon-shendusikao"}),st?Ie.createElement("span",null,"\u5DF2\u6DF1\u5EA6\u601D\u8003\uFF08\u7528\u65F6 ",st," \u79D2\uFF09"):Ie.createElement("span",null,"\u601D\u8003\u4E2D..."),he?Ie.createElement("b",{className:"iconfont icon-shouqi6"}):Ie.createElement("b",{className:"iconfont icon-zhankai6"})),Ct&&Ie.createElement(De.Z,{spinning:!0,className:"mt20"}),he&&!Ct&&Ie.createElement("div",{className:Le.content},te,Be?Ie.createElement("span",{className:"aiBlink"},"__"):""))}},54775:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return En}});var le=de(59301),Le=de(30641),De=de(6767),Ie=de(14566),Ye=de(62957),Fe=de(25399),Ve=de(37568),Xe=de(99571),qe=de(29787),Je=de(584),mt=de(93725),st=de(75727),Ct=de(92310),je=de.n(Ct),te=de(24615),ne=de(60959),he=de(50252),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(52430),Se=de(89299),Ce=de(83297),Oe=de(37166),Be=de(28984),Qe=de(71986),ot=de(13952),rt=de(56102),ft=de(48102),bt=de(58617),ut=de(32050),Tt=Object.defineProperty,Dt=Object.defineProperties,en=Object.getOwnPropertyDescriptors,Cn=Object.getOwnPropertySymbols,vn=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,mn=(Nt,cn,ln)=>cn in Nt?Tt(Nt,cn,{enumerable:!0,configurable:!0,writable:!0,value:ln}):Nt[cn]=ln,Mt=(Nt,cn)=>{for(var ln in cn||(cn={}))vn.call(cn,ln)&&mn(Nt,ln,cn[ln]);if(Cn)for(var ln of Cn(cn))pn.call(cn,ln)&&mn(Nt,ln,cn[ln]);return Nt},ct=(Nt,cn)=>Dt(Nt,en(cn)),nt=(Nt,cn,ln)=>new Promise((_n,kn)=>{var si=hi=>{try{Kn(ln.next(hi))}catch(et){kn(et)}},kt=hi=>{try{Kn(ln.throw(hi))}catch(et){kn(et)}},Kn=hi=>hi.done?_n(hi.value):Promise.resolve(hi.value).then(si,kt);Kn((ln=ln.apply(Nt,cn)).next())}),En=({title:Nt="\u5934\u6B4CAI",placeholder:cn,hideUpload:ln,hideInputBox:_n,aiIcon:kn=Oe,userIcon:si=Be,dragIcon:kt=Qe,children:Kn,fetchUrl:hi,fetchData:et={},extraAnswerAction:_e,showDefaultTips:xe=!0,onOpen:Te,onClose:Me,loadingOption:Ae,showPreference:at=!1,initMessage:Lt,customRequest:Pt,visible:Vt,width:It=1200,isCheckRestrictNumber:an=!1,headNode:sn,headFunctionNode:on,showRedraw:bn,showEdit:un,promptPropName:zt="prompt",topPercentage:xn,showSwitchingModel:fn=!1,showImageGenerator:An=!1,showLookHistory:nn=!1,fetchListObject:ci,customPreference:zn,customDataNode:yt,showAddSession:Fn,historyId:Pn,draggableExtraNode:Ht,drawerExtraNode:fi,menuExtraFunctionNode:zi,showSceneAwareness:Li=!1,ReactComponent:Dn=Le.Z,topFunctionNode:qi,footerContainerStyle:Ui,chatContainerStyle:ui={},showCodePreview:bi=!1,showSource:Ri=!0,onSendMessage:ke,onDynamic:gi=()=>{}})=>{var Ii,ki;const[ar,Nr]=(0,le.useState)(!1),[sr,Di]=(0,le.useState)("qwen-max"),[Ei,Zt]=(0,le.useState)([]),[Wt,Rt]=(0,le.useState)([]),[rn,Xt]=(0,le.useState)(!1),[Sn,Rn]=(0,le.useState)(!1),[Jn,qt]=(0,le.useState)(!1),[Gt,ti]=(0,le.useState)([]),[pt,yn]=(0,le.useState)(""),[ii,xi]=(0,le.useState)(0),[Ut,$n]=(0,le.useState)(void 0),[pi,Kt]=(0,le.useState)(!1),[Ue,wi]=(0,le.useState)(null),[ai,Mn]=(0,le.useState)(""),ji=(0,le.useRef)(),Ki=(0,le.useRef)(null),Zi=(0,le.useRef)(null),[Nn,Jt]=(0,le.useState)(!1),[Ji,zr]=(0,le.useState)(!1),[wn,vi]=(0,le.useState)(!1),[Ni,Bi]=(0,le.useState)(!1),[Fi,Wi]=(0,le.useState)(!1),[cr,mr]=(0,le.useState)(0),Tr=(0,le.useRef)(null),Mr=(0,le.useRef)(!1),Gn=(0,le.useRef)(null),[ur,Bn]=(0,le.useState)(void 0),[br,Er]=(0,le.useState)(!0),[pr,$r]=(0,le.useState)(It-28),[Xr,Ur]=(0,le.useState)(!1),[Yr,Vo]=(0,le.useState)(!0),[Kr,Ti]=(0,le.useState)([]),lt=(0,le.useRef)([]),xo=(0,le.useRef)(null),Ar=(0,le.useRef)(null),Or=(0,le.useRef)(!1),no=pr-22,po=pt==null?void 0:pt.split(`
`).length,{onAdd:Vi,onGetList:er,onListClick:Ir,onListDelete:wr,onListDealData:kr}=ci||{},Ho=50,hr=10,rr={maxCount:Ho,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:Ei,multiple:!0,accept:".doc,.docx,.md,.txt,.pdf,.xlsx,.xls",beforeUpload:Yt=>nt(void 0,null,function*(){var Ci,Yi,xr,qr;const Zr=(qr=(xr=(Yi=(Ci=Yt==null?void 0:Yt.name)==null?void 0:Ci.split("."))==null?void 0:Yi.slice(-1))==null?void 0:xr[0])==null?void 0:qr.toLowerCase(),yo=["doc","docx","md","pdf","txt","xlsx","xls"].includes(Zr);return Yt.size==0?(De.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),Ie.default.LIST_IGNORE):yo?Yt.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"),Ie.default.LIST_IGNORE):!0:(De.ZP.warning("\u76EE\u524D\u652F\u6301txt\u3001md\u3001doc\u3001docx\u3001pdf\u3001xlsx\u3001xls\u6587\u4EF6"),Ie.default.LIST_IGNORE)}),onChange:({fileList:Yt})=>{Zt(Yt)},action:`${(Ii=ot.Z)==null?void 0:Ii.API_SERVER}/api/intelligent_imports/upload_file.json`},ri={maxCount:hr,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:Wt,multiple:!0,accept:".jpg,.png,",beforeUpload:Yt=>{var Ci,Yi,xr,qr;const Zr=(qr=(xr=(Yi=(Ci=Yt==null?void 0:Yt.name)==null?void 0:Ci.split("."))==null?void 0:Yi.slice(-1))==null?void 0:xr[0])==null?void 0:qr.toLowerCase(),yo=["jpg","png"].includes(Zr);return Yt.size==0?(De.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),Ie.default.LIST_IGNORE):yo?Yt.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"),Ie.default.LIST_IGNORE):!0:(De.ZP.warning("\u76EE\u524D\u652F\u6301jpg\u3001png"),Ie.default.LIST_IGNORE)},onChange:({fileList:Yt})=>{Rt(Yt)},action:`${(ki=ot.Z)==null?void 0:ki.API_SERVER}/api/ai/generals/update_file.json`};(0,le.useEffect)(()=>{if(!Gt.length||!ji.current)return;const Yt=Gt[Gt.length-1];Yt!=null&&Yt.loading&&(ji.current.scrollTop=ji.current.scrollHeight)},[Gt.length]),(0,le.useEffect)(()=>{if(!ji.current||!Tr.current)return;const Yt=new IntersectionObserver(([Ci])=>{Er(Ci.isIntersecting)},{root:ji.current,rootMargin:"70px",threshold:0});return Yt.observe(Tr.current),()=>{Tr.current&&Yt.unobserve(Tr.current)}},[ji.current,Tr.current]),(0,le.useEffect)(()=>{if(!Nn)return;const Yt=ji.current,Ci=Gn.current;Mr.current=!1;let Yi=Yt.scrollTop;const xr=()=>{const{scrollTop:Zr,scrollHeight:lr,clientHeight:yo}=Yt;Zr>Yi?Zr+yo>=lr-50&&(Yt.scrollTop=Yt.scrollHeight,Mr.current=!1):Zr<Yi&&(Mr.current=!0),Yi=Zr};Yt.addEventListener("scroll",xr);const qr=new ResizeObserver(()=>{Mr.current||(Yt.scrollTop=Yt.scrollHeight)});return qr.observe(Ci),()=>{var Zr;qr.unobserve(Ci),(Zr=Yt==null?void 0:Yt.removeEventListener)==null||Zr.call(Yt,"scroll",xr)}},[Nn]),(0,le.useEffect)(()=>{!Nn&&lt.current.length&&(ti([...Gt,...lt.current]),lt.current=[])},[Nn]),(0,le.useEffect)(()=>{if(!ji.current)return;const Yt=new ResizeObserver(()=>{var Ci;ji.current&&$r((Ci=ji.current)==null?void 0:Ci.offsetWidth)});return Yt.observe(ji.current),()=>{ji.current&&Yt.unobserve(ji.current)}},[ji.current]),(0,le.useEffect)(()=>{typeof Vt=="boolean"&&Nr(Vt)},[Vt]),(0,le.useEffect)(()=>{var Yt;if(Ki.current&&Ue!==null){Ki.current.focus();const Ci=(Yt=Ki.current.resizableTextArea)==null?void 0:Yt.textArea;Ci&&(Ci.selectionStart=Ci.selectionEnd=Ci.value.length)}},[Ue]),(0,le.useEffect)(()=>{po<5&&Kt(!1)},[po]),(0,le.useEffect)(()=>{ar&&Lt&&(ti(Qi(Lt)),Xt(!0),sa(Lt,{history:[]})),ar&&(Go(),Pn?da(Pn):Fn&&!ur&&Ln()),ar||Qr()},[ar]);const Qi=(Yt="",Ci=[],Yi=[])=>{const xr=Date.now();return[{text:Yt,key:xr,sender:"user",fileList:Ci,imageList:Yi,show:!0},{loading:!0,key:xr,sender:"AI",show:!0,model:sr,imageGenerator:Ni,thinkingEnabled:Ji,codePreview:wn}]},Qr=()=>{Mn(""),wi(null),Zt([]),Rt([]),yn("")},zo=()=>{if(Te){Te({chatData:Gt,setChatData:ti,setLoading:Xt,getData:sa,renderChatItems:Qi,handleAdd:Ln,identifier:ur});return}Nr(!0)},Oo=()=>{if(Vo(!0),Me){Me();return}Nr(!1)},Co=()=>{Kt(!pi)},Go=()=>nt(void 0,null,function*(){if(!an)return;const Yt=yield(0,ge.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});(Yt==null?void 0:Yt.status)===0&&(Yt==null?void 0:Yt.total_number)!==-1&&(xi((Yt==null?void 0:Yt.total_number)-(Yt==null?void 0:Yt.remaining_number)),$n(Yt==null?void 0:Yt.total_number))}),Lo=()=>{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",Ut,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))})},Sa=Yt=>Yt.reduce((Yi,xr)=>{if(xr.sender==="user"){const qr=Yt.find(Zr=>Zr.key===xr.key&&Zr.sender==="AI");qr&&(qr!=null&&qr.text)&&!(qr!=null&&qr.error)&&Yi.push({question:xr.text,answer:qr.text})}return Yi},[]),sa=(...Yt)=>nt(void 0,[...Yt],function*(Ci="",Yi={},xr=Gt){if(Pt&&(yield Pt({mes:Ci,setChatData:ti,fileList:Ei,body:Yi,checkNum:Go,setLoading:Xt,bodyChatData:xr,setTyping:Jt,setImageGenerator:Bi,renderChatItems:Qi})),!Pt){const qr=Ei==null?void 0:Ei.map(ko=>{var Zo;return(Zo=ko==null?void 0:ko.response)==null?void 0:Zo.file_id}),Zr=Wt==null?void 0:Wt.map(ko=>{var Zo;return(Zo=ko==null?void 0:ko.response)==null?void 0:Zo.data}),lr=Yi.history||Sa(xr),yo=Mt(Mt({identifier:ur,response_mode:"streaming",model:sr,scene_awareness:Fi,thinking_enabled:Ji,image_generator:Ni,code_preview:wn,file_ids:qr,image_list:Zr,history:lr,[zt]:Ci},et),Yi),qo=Object.fromEntries(Object.entries(yo).filter(([ko,Zo])=>Zo!==void 0));Zi.current=new ft.Z(ot.Z.API_SERVER+hi,qo),yield new Promise((ko,Zo)=>{let aa=null,ms=null;Zi.current.on("data",Ko=>{Jt(!0);const{chunk:{content:Aa,type:Sl,created:ll,msg:vs}}=Ko,ul=vs==="error";Sl==="thinking"&&(aa=aa||ll,ti(Ol=>[...Ol].map((cs,Ts)=>Ts===Ol.length-1?ct(Mt({},cs),{reasoning:(cs.reasoning||"")+Aa,loading:!1,hideAnswer:!0,error:ul}):cs))),Sl==="text"&&(ms=ms||ll,ti(Ol=>[...Ol].map((cs,Ts)=>Ts===Ol.length-1?ct(Mt({},cs),{text:(cs.text||"")+Aa,loading:!1,startTime:aa,endTime:ms,error:ul}):cs)))}),Zi.current.on("done",()=>{ko()}),Zi.current.on("error",Ko=>{let Aa="\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(Ko)==="[object Object]"&&Ko.status===-9&&(Aa=Ko==null?void 0:Ko.message),ti(Sl=>[...Sl].map((ll,vs)=>vs===Sl.length-1?ct(Mt({},ll),{text:Aa,loading:!1,error:!0}):ll)),ko()}),Zi.current.on("cancelled",()=>{ko()}),Zi.current.startStream()})}Go(),Xt(!1)}),es=Yt=>{yn(Yt.target.value)},gn=(Yt,Ci)=>{if(Qr(),Xt(!0),Yt==="edit"){lt.current=Gt.slice(Ci+2);const Yi=Gt.splice(Ci),{fileList:xr=[],imageList:qr=[]}=(Yi==null?void 0:Yi[0])||{},Zr=xr.map(qo=>{var ko;return(ko=qo.response)==null?void 0:ko.file_id}),lr=qr.map(qo=>{var ko;return(ko=qo.response)==null?void 0:ko.data}),yo={history:Sa(Gt),file_ids:Zr,image_list:lr,edit:!0};ti([...Gt,...Qi(ai,xr,qr)]),sa(ai,yo,Gt)}if(Yt==="redraw"){lt.current=Gt.slice(Ci+1);const Yi=Gt.splice(Ci-1),{text:xr,fileList:qr=[],imageList:Zr=[]}=(Yi==null?void 0:Yi[0])||{},lr=qr.map(ko=>{var Zo;return(Zo=ko.response)==null?void 0:Zo.file_id}),yo=Zr.map(ko=>{var Zo;return(Zo=ko.response)==null?void 0:Zo.data}),qo={history:Sa(Gt),file_ids:lr,image_list:yo,edit:!0};ti([...Gt,...Qi(xr,qr,Zr)]),sa(xr,qo,Gt)}},oa=()=>{if(pt.trim()!==""){Qr(),Xt(!0);const Yt=Ei.filter(Yi=>Yi.status==="done"),Ci=Wt.filter(Yi=>Yi.status==="done");ti([...Gt,...Qi(pt,Yt,Ci)]),sa(pt)}},kl=Yt=>{if(Yt.shiftKey){if(Yt.key==="Enter")return}else if(Yt.key==="Enter"){if(Yt.preventDefault(),Pa||Or.current)return;oa()}},Ha=(Yt,Ci)=>{let Yi=!1;un===!0?Yi=!0:un==="last"&&(Yi=Gt.reduce((lr,yo,qo)=>yo.sender==="user"?qo:lr,-1)===Ci);const xr=Ci===Ue,qr=[...(Yt==null?void 0:Yt.fileList)||[],...(Yt==null?void 0:Yt.imageList)||[]];return le.createElement("div",{className:se.li,style:Mt({width:no},ui)},le.createElement("div",{className:se.avatarIcon},le.createElement("img",{className:se.img,src:si})),le.createElement("div",{className:se.content},!!(qr!=null&&qr.length)&&le.createElement("div",{className:se.fileWrap},qr==null?void 0:qr.map((Zr,lr)=>{var yo,qo;return le.createElement("div",{key:lr,className:se.file},le.createElement("img",{src:de(90034)(`./${((qo=(yo=Zr==null?void 0:Zr.name)==null?void 0:yo.split("."))==null?void 0:qo.pop())||"txt"}.png`),width:20,className:"mr10"}),le.createElement("aside",null,le.createElement(Fe.Z,{title:Zr==null?void 0:Zr.name},le.createElement("div",{className:se.fileName},Zr==null?void 0:Zr.name)),le.createElement("div",{className:"c-grey-999 font12"},(0,Se.RD)(Zr==null?void 0:Zr.size))))})),le.createElement("div",{className:se.borderBox},xr?le.createElement(Ve.default.TextArea,{value:ai,ref:Ki,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165",bordered:!1,onChange:Zr=>Mn(Zr.target.value)}):le.createElement("div",{className:se.text},Yt==null?void 0:Yt.text)),xr?le.createElement("div",{className:se.action},le.createElement(Xe.ZP,{onClick:()=>{Mn(""),wi(null)},size:"small"},"\u53D6\u6D88"),le.createElement(Xe.ZP,{disabled:!ai.trim(),onClick:()=>gn("edit",Ci),type:"primary",size:"small"},"\u786E\u8BA4")):le.createElement("div",{className:se.action},le.createElement(rt.CopyToClipboard,{text:(Yt==null?void 0:Yt.text)||"",onCopy:()=>De.ZP.success("\u590D\u5236\u6210\u529F")},le.createElement(Fe.Z,{title:"\u590D\u5236"},le.createElement("i",{className:"iconfont icon-fuzhi8 font13"}))),Yi&&!rn&&le.createElement(Fe.Z,{title:"\u7F16\u8F91"},le.createElement("i",{onClick:()=>{wi(Ci),Mn((Yt==null?void 0:Yt.text)||"")},className:"iconfont icon-bianji10 font14"})))))},yl=(Yt,Ci)=>{let Yi=!1;bn===!0?Yi=!0:bn==="last"&&(Yi=Gt.reduce((Zr,lr,yo)=>lr.sender==="AI"?yo:Zr,-1)===Ci);let xr="";return Yt!=null&&Yt.source?xr=Yt==null?void 0:Yt.source:(Yt==null?void 0:Yt.model)==="deepseek-r1"?xr="\u7531deepseek\u751F\u6210":(Yt==null?void 0:Yt.model)==="qwen-max"&&(xr="\u7531\u901A\u4E49\u5343\u95EE\u751F\u6210"),le.createElement("div",{className:se.li,style:Mt({width:no},ui)},le.createElement("div",{className:se.avatarIcon},le.createElement("img",{className:se.img,src:kn})),le.createElement("div",{className:se.content},le.createElement("div",{className:se.borderBox},Yt.loading&&le.createElement(le.Fragment,null,Yt!=null&&Yt.imageGenerator?le.createElement("div",{className:se.loadingPic},"\u6B63\u5728\u751F\u6210\u4E2D",le.createElement("div",{className:"ai-loading"})):!(Yt!=null&&Yt.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"}},(Ae==null?void 0:Ae.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"))),(Yt==null?void 0:Yt.thinkingEnabled)&&le.createElement(ne.Z,{time:Yt==null?void 0:Yt.time,cancelIndex:cr,loading:Yt.loading,streamingStatus:!(Yt!=null&&Yt.text),onFinish:()=>{mr(0),ti(qr=>[...qr].map((Zr,lr)=>lr===qr.length-1?ct(Mt({},Zr),{hideAnswer:!1,time:Zr.startTime?Zr.endTime-Zr.startTime:null}):Zr))},value:Yt==null?void 0:Yt.reasoning}),!!(Yt!=null&&Yt.text)&&!Yt.hideAnswer&&le.createElement(te.Z,{onDynamic:gi,cancelIndex:cr,streamingStatus:rn,loadImage:!!(Yt!=null&&Yt.imageGenerator),onFinish:()=>nt(void 0,null,function*(){mr(0),setTimeout(()=>Jt(!1),0)}),value:Yt==null?void 0:Yt.text})),Ri&&!!(Yt!=null&&Yt.text)&&xr&&le.createElement("div",{className:se.source},xr),le.createElement("div",{className:se.action},_e==null?void 0:_e(Yt,Ci,lo),!(Yt!=null&&Yt.imageGenerator)&&le.createElement(rt.CopyToClipboard,{text:String((Yt==null?void 0:Yt.text)||""),onCopy:()=>De.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},le.createElement(Fe.Z,{title:"\u590D\u5236"},le.createElement("i",{className:"iconfot icon-fuzhi8 font13"}))),at&&!rn&&le.createElement(le.Fragment,null,le.createElement(Fe.Z,{title:"\u559C\u6B22"},le.createElement("i",{style:Yt!=null&&Yt.like?{color:"#FA8D30"}:{},onClick:()=>Io("like",!(Yt!=null&&Yt.like),Ci),className:"iconfot icon-yijiejue font15"})),le.createElement(Fe.Z,{title:"\u4E0D\u559C\u6B22"},le.createElement("i",{style:Yt!=null&&Yt.dislike?{color:"#e86d7c"}:{},onClick:()=>Io("dislike",!(Yt!=null&&Yt.dislike),Ci),className:"iconfot icon-weijiejuezhengchang font15"}))),Yi&&!rn&&le.createElement(Fe.Z,{title:"\u91CD\u65B0\u751F\u6210"},le.createElement("i",{onClick:()=>gn("redraw",Ci),className:"iconfot icon-gengxin-genghuan-tihuan"})))))},Io=(Yt,Ci,Yi)=>nt(void 0,null,function*(){if(zn){const xr=Gt.slice(0,Yi+1),Zr=Sa(xr).length;yield zn({type:Yt,value:Ci,index:Yi,identifier:ur,objectIndex:Zr})}ti(xr=>(xr[Yi][Yt]=Ci,Ci&&(xr[Yi][Yt==="like"?"dislike":"like"]=!1),[...xr]))}),lu=()=>{var Yt,Ci;mr(1),(Ci=(Yt=Zi.current)==null?void 0:Yt.cancelRequest)==null||Ci.call(Yt),Xt(!1),Jt(!1)},Ln=()=>nt(void 0,null,function*(){var Yt,Ci,Yi;(Ci=(Yt=Zi.current)==null?void 0:Yt.cancelRequest)==null||Ci.call(Yt),Qr(),ti([]),Xt(!0);const xr=yield Vi();(xr==null?void 0:xr.status)===0&&Bn((Yi=xr==null?void 0:xr.data)==null?void 0:Yi.identifier),Xt(!1),Jt(!1)}),Uo=()=>nt(void 0,null,function*(){var Yt;qt(!0);const Ci=yield er();(Ci==null?void 0:Ci.status)===0&&Ti(((Yt=Ci==null?void 0:Ci.data)==null?void 0:Yt.list)||[]),qt(!1)}),da=(...Yt)=>nt(void 0,[...Yt],function*(Ci=ur){var Yi,xr,qr,Zr;(xr=(Yi=Zi.current)==null?void 0:Yi.cancelRequest)==null||xr.call(Yi),Qr(),Rn(!0);const lr=yield Ir(Ci);if(lr.status===0){const yo=kr(((qr=lr==null?void 0:lr.data)==null?void 0:qr.messages)||[]);ti(yo),Rn(!1),Bn((Zr=lr==null?void 0:lr.data)==null?void 0:Zr.identifier);return}ti([]),Rn(!1)}),sl=(Yt,Ci)=>nt(void 0,null,function*(){(yield wr(Yt)).status===0&&(De.ZP.success("\u5220\u9664\u6210\u529F"),Ci===ur&&Ln(),Uo())}),Ga=()=>le.createElement("div",{className:se.menuWarp},le.createElement("h4",null,"\u5386\u53F2\u5BF9\u8BDD"),le.createElement(qe.Z,{spinning:Jn},!Kr.length&&le.createElement(Je.Z,{style:{width:250,paddingBottom:30},image:Je.Z.PRESENTED_IMAGE_SIMPLE}),!!Kr.length&&le.createElement("div",{className:se.menu},Kr.map(function(Yt,Ci){return le.createElement("aside",{className:je()(ur===Yt.identifier&&se.active),key:Yt.id,onClick:()=>da(Yt.id)},le.createElement("div",{className:se.menuText},le.createElement(Fe.Z,{title:Yt==null?void 0:Yt.question},le.createElement("span",null,Yt==null?void 0:Yt.question)),zi&&zi(Yt)),le.createElement("div",{className:se.menuDel,onClick:Yi=>Yi.stopPropagation()},le.createElement(mt.Z,{title:"\u63D0\u793A",description:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u672C\u6761\u5BF9\u8BDD\u5417\uFF1F",onConfirm:()=>sl(Yt.id,Yt.identifier),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88"},le.createElement("i",{className:"iconfont icon-shanchu14 delete-hover font14"}))))})))),Xs=Yt=>{if(Yt==="file"){if(Wt.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:()=>{Rt([]),xo.current.upload.uploader.fileInput.click()}});return}xo.current.upload.uploader.fileInput.click()}if(Yt==="image"){if(Ei.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:()=>{Zt([]),Ar.current.upload.uploader.fileInput.click()}});return}Ar.current.upload.uploader.fileInput.click()}},ps=[{key:"file",disabled:Ei.length>=Ho,label:le.createElement(Fe.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"))},sr!=="deepseek-r1"&&{key:"image",disabled:Wt.length>=hr,label:le.createElement(Fe.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),dr=[...Ei,...Wt],Pa=dr.some(Yt=>Yt.status==="uploading")||rn||Nn,Dl=ii>=Ut,is=ln||Ei.length>=Ho||Wt.length>=hr,Jr=Ni||Ji||Fi||wn||!!dr.length,lo={chatData:Gt,stream:Zi,isDisabledNum:Dl,isDisAbledUpload:Pa,checkNumModal:Lo,checkNum:Go,onClose:Oo,setChatData:ti,setLoading:Xt,getData:sa,clearStatus:Qr,typing:Nn,setImageGenerator:Bi,renderChatItems:Qi,setSceneAwareness:Wi,setIdentifier:Bn,setCodePreview:vi,setTyping:Jt,onMenuClick:da};return le.createElement(le.Fragment,null,Kn?le.createElement("div",{onClick:zo},Kn):Kn!==null&&le.createElement(Ce.Z,{draggableExtraNode:Ht,src:kt,onClick:zo,topPercentage:xn}),le.createElement(Dn,{open:ar,width:Xr?"100%":It,afterOpenChange:Yt=>{Yt&&Vo(!1)},push:!1,contentWrapperStyle:Yr?{}:{transition:"none"},extra:le.createElement("div",{className:se.head},fi,fn&&le.createElement(he.Z,{value:sr,onChange:Yt=>{zr(!1),Bi(!1),Di(Yt),Rt([]),Zt([])}}),nn&&le.createElement(le.Fragment,null,le.createElement(st.Z,{dropdownRender:Ga,onOpenChange:Yt=>{Yt&&Uo()},placement:"bottomLeft",arrow:!0},le.createElement("div",{className:se.headBtn},le.createElement("i",{className:"icon-lishiduihua1 font14 mr10"}),"\u5386\u53F2\u5BF9\u8BDD"))),Fn&&le.createElement(le.Fragment,null,le.createElement("div",{className:se.headBtn,onClick:Ln},le.createElement("i",{className:"icon-xinjianduihua font14 mr10"}),"\u65B0\u5EFA\u5BF9\u8BDD")),le.createElement(Fe.Z,{title:Xr?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F"},le.createElement("div",{className:se.headBtn,style:{padding:"0 12px"},onClick:()=>Ur(!Xr)},Xr&&le.createElement("i",{className:"iconfont icon-tuichuquanping3"}),!Xr&&le.createElement("i",{className:"iconfont icon-quanping4"})))),title:le.createElement("span",{className:"c-grey-333 font16"},Nt),onClose:Oo,bodyStyle:{paddingRight:4}},le.createElement("div",{className:je()(se.wrap,ar&&"body-overflow-hidden")},le.createElement("div",{ref:ji,className:se.chatContainer},qi==null?void 0:qi(lo),xe&&le.createElement("div",{className:`${se.li} mb20`,style:Mt({width:no},ui)},le.createElement("div",{className:se.avatarIcon},le.createElement("img",{className:se.img,src:kn})),le.createElement("div",{className:se.content},le.createElement("div",{className:se.borderBox},sn,on==null?void 0:on(lo)))),le.createElement("div",{ref:Gn},le.createElement(qe.Z,{spinning:Sn,className:"mt20"},Gt==null?void 0:Gt.map((Yt,Ci)=>le.createElement(le.Fragment,{key:Yt.key+Ci},Yt.show&&le.createElement(le.Fragment,null,Yt.sender==="user"&&Ha(Yt,Ci),Yt.sender==="AI"&&yl(Yt,Ci),yt&&!["AI","user"].includes(Yt.sender)&&yt(Yt,Ci,{width:no})))))),!br&&le.createElement("div",{className:se.backBottom,onClick:()=>{ji.current.scrollTop=ji.current.scrollHeight}},le.createElement("i",{className:"iconfont icon-huidaodibu"})),le.createElement("div",{ref:Tr})),!_n&&le.createElement("div",{style:Ui,className:je()(se.footerContainer,pi&&se.full,Jr&&se.footerContainerSelected)},le.createElement("div",{className:se.btnWrp},bi&&le.createElement(Fe.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:()=>vi(!wn),className:je()(se.btn,wn&&se.btnActive)},le.createElement("i",{className:"iconfont icon-daimamoshi1 mr10 font12"}),"\u4EE3\u7801\u6A21\u5F0F")),Li&&le.createElement(Fe.Z,{title:"\u667A\u80FD\u611F\u77E5\u5F53\u524D\u60C5\u5883\uFF0C\u63D0\u4F9B\u9488\u5BF9\u6027\u89E3\u7B54"},le.createElement("div",{onClick:()=>Wi(!Fi),className:je()(se.btn,Fi&&se.btnActive)},le.createElement("i",{className:"iconfont icon-changjingganzhi mr10 font12"}),"\u573A\u666F\u611F\u77E5")),sr==="deepseek-r1"&&le.createElement(Fe.Z,{title:"\u8C03\u7528\u65B0\u6A21\u578B DeepSeek-R1\uFF0C\u89E3\u51B3\u63A8\u7406\u95EE\u9898"},le.createElement("div",{onClick:()=>zr(!Ji),className:je()(se.btn,Ji&&se.btnActive)},le.createElement("i",{className:"iconfont icon-shendusikao mr10 font12"}),"\u6DF1\u5EA6\u601D\u8003\uFF08R1\uFF09")),An&&sr==="qwen-max"&&le.createElement("div",{onClick:()=>Bi(!Ni),className:je()(se.btn,Ni&&se.btnActive)},le.createElement("i",{className:"iconfont icon-shangchuantupian2 mr10 font12"}),"\u56FE\u50CF\u751F\u6210"),dr.map(Yt=>le.createElement("div",{key:Yt.uid},(Yt==null?void 0:Yt.status)==="uploading"&&le.createElement(qe.Z,{indicator:le.createElement(bt.Z,{rev:"",spin:!0}),className:"mr10",size:"small",spinning:!0}),le.createElement("span",{title:Yt==null?void 0:Yt.name,className:"mr10"},(0,Se.Pq)(Yt.name,20)),le.createElement("i",{onClick:()=>{Zt(Ci=>Ci.filter(Yi=>Yi.uid!==Yt.uid)),Rt(Ci=>Ci.filter(Yi=>Yi.uid!==Yt.uid))},className:"iconfont current icon-shanchu15 delete-hover c-red-ee4 font12"})))),le.createElement(Fe.Z,{title:Dl&&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",Ut,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))},le.createElement("div",{className:je()(se.inputContainer,po>4&&se.lineFour,Dl&&se.disabledInput)},le.createElement(Ie.default,Mt({ref:xo},rr)),le.createElement(Ie.default,Mt({ref:Ar},ri)),le.createElement(st.Z,{className:`${is&&"hide"}`,menu:{items:ps,onClick:Yt=>Xs(Yt.key)},placement:"top"},le.createElement(Xe.ZP,{className:se.uploadBtn,icon:le.createElement(ut.Z,{rev:"",style:{fontSize:18,color:"#FFF"}})})),le.createElement(Ve.default.TextArea,{rows:po>4?4:po,placeholder:cn||"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u7684\u95EE\u9898\u5427\uFF0CShift+Enter\u6362\u884C\uFF5E",value:pt,bordered:!1,style:is?{paddingLeft:0,marginLeft:0}:{},onChange:es,onPressEnter:kl,onFocus:()=>ke==null?void 0:ke(),onCompositionStart:()=>{Or.current=!0},onCompositionEnd:()=>{Or.current=!1}}),Nn?le.createElement(Fe.Z,{title:"\u505C\u6B62\u751F\u6210"},le.createElement("div",{className:`iconfont icon-tingzhihuida ${se.cancelBtn}`,onClick:lu})):le.createElement(Xe.ZP,{className:(pt==null?void 0:pt.trim())===""?se.sendBtnDisabled:se.sendBtn,icon:le.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:Pa,onClick:oa}),po>4&&le.createElement("span",{className:se.fullIcon,onClick:Co},pi&&le.createElement("span",{className:"iconfont icon-shousuo"}),!pi&&le.createElement("span",{className:"iconfont icon-zhankai"}))))))))}},89837:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return mt}});var le=de(59301),Le={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},De=de(92310),Ie=de.n(De),Ye=de(29787),Fe=de(2859),Ve=de(52430),Xe=de(89299),qe=(st,Ct,je)=>new Promise((te,ne)=>{var he=Se=>{try{ge(je.next(Se))}catch(Ce){ne(Ce)}},se=Se=>{try{ge(je.throw(Se))}catch(Ce){ne(Ce)}},ge=Se=>Se.done?te(Se.value):Promise.resolve(Se.value).then(he,se);ge((je=je.apply(st,Ct)).next())}),mt=({data:st,className:Ct,fullWidth:je,style:te={},onClose:ne,onOk:he,showFullTools:se,noAssociationId:ge})=>{const Se=(0,le.useRef)(null),Ce=(0,le.useRef)(null),Oe=(0,le.useRef)(null),Be=(0,le.useRef)(null),[Qe,ot]=(0,le.useState)(!1),[rt,ft]=(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=()=>qe(void 0,null,function*(){ot(!0),ft("\u6B63\u5728\u52A0\u8F7D\u4E2D");const en=yield(0,Xe.ZJ)(st==null?void 0:st.src);Se.current.src="",Se.current.src=en,Se.current.onload=function(){Dt()},ot(!1),ft("")}),ut=en=>qe(void 0,null,function*(){ot(!0),ft("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Cn=yield(0,Ve.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:st.title,file:en.dataUrl}});Cn!=null&&Cn.id&&!ge?(yield(0,Ve.ZP)(`/api/attachments/${st.id}/add_subitem.json`,{method:"post",body:{subitem_id:Cn==null?void 0:Cn.id,settings:JSON.stringify(en.state)}})).status===0&&he():Cn!=null&&Cn.id&&he(Cn),ot(!1),ft("")}),Tt=()=>{const en=document.querySelector('a[href="https://markerjs.com/"]');en&&en.parentNode&&(en.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(vn=>{const pn=document.querySelector(vn.name);pn&&pn.setAttribute("title",vn.title)})},Dt=()=>{Ce.current=new Fe.hP(Se.current),Ce.current.targetRoot=Be.current,Ce.current.addEventListener("render",ut),Ce.current.addEventListener("beforeclose",ne),se&&(Ce.current.availableMarkerTypes=Ce.current.ALL_MARKER_TYPES,Ce.current.uiStyleSettings.redoButtonVisible=!0,Ce.current.uiStyleSettings.notesButtonVisible=!0,Ce.current.uiStyleSettings.zoomButtonVisible=!0,Ce.current.uiStyleSettings.zoomOutButtonVisible=!0,Ce.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Ce.current.uiStyleSettings,Ce.current.show(),st!=null&&st.snapshotData&&Ce.current.restoreState(st.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Tt()},300)};return le.createElement(le.Fragment,null,(st==null?void 0:st.visible)&&le.createElement(Ye.Z,{spinning:Qe,tip:rt,style:{position:"absolute",width:"100vw"}},le.createElement("div",{ref:Be,className:Ie()(Le.imageDimensions,Ct,je?Le.fullWidth:""),style:te},le.createElement("img",{className:Le.img,ref:Se}))))}},53267:function(Ge,be,de){"use strict";var le=de(59301),Le=de(77019),De=de(5269),Ie=de(20554),Ye=de(99571),Fe=de(98573),Ve=de(25346),Xe=de(48136),qe=de(59301);const Je=(0,le.forwardRef)(({callback:mt,showSaveButton:st,value:Ct=""},je)=>{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=Ce=>{te.current.setValue(te.current.getValue()+" "+Ce.value+" ")},ge=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:qe.createElement(Le.Z,{className:Ve.Z.lists,gutter:[10,10]},ne.map((Ce,Oe)=>qe.createElement(De.Z,{flex:"110px",className:Ve.Z.item},qe.createElement("div",null,qe.createElement(Fe.Z,{value:`$$${Ce.value}$$`}),Ce.name),qe.createElement("div",{className:Ve.Z.children},Ce.children.map((Be,Qe)=>qe.createElement("div",{key:Qe},qe.createElement("h1",null,Be.name),qe.createElement(Le.Z,{gutter:[10,10]},Be.data.map((ot,rt)=>qe.createElement(De.Z,{key:rt,onClick:()=>se(ot),className:Ve.Z.diamond},qe.createElement(Fe.Z,{value:"`$$"+ot.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:qe.createElement(Le.Z,{className:Ve.Z.lists,gutter:[10,10]},he.map((Ce,Oe)=>qe.createElement(De.Z,{flex:"110px",className:Ve.Z.item},qe.createElement("div",null,qe.createElement(Fe.Z,{value:"`$$"+Ce.value+"$$`"}),Ce.name),qe.createElement("div",{className:Ve.Z.children},Ce.children.map((Be,Qe)=>qe.createElement("div",{key:Qe},Be.name&&qe.createElement("h1",null,Be.name),qe.createElement(Le.Z,{gutter:[10,10]},Be.data.map((ot,rt)=>qe.createElement(De.Z,{key:rt,onClick:()=>se(ot),className:Ve.Z.diamond},qe.createElement(Fe.Z,{value:"`$$"+ot.value+"$$`"}))))))))))}],Se=()=>{var Ce=document.createElement("div");Ce.innerHTML=te.current.getValue();var Oe=Ce.innerText;return mt&&mt(Oe),Oe};return(0,le.useImperativeHandle)(je,()=>({getData:Se})),qe.createElement("div",{className:Ve.Z.mathWrap},qe.createElement(Ie.default,{defaultActiveKey:"1",items:ge}),qe.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}},Ct||""),st&&qe.createElement("div",{className:Ve.Z.button},qe.createElement(Ye.ZP,{size:"large",onClick:Se,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});be.Z=Je},63604:function(Ge,be,de){"use strict";var le=de(59301),Le=de(93314),De=de(99571),Ie=Object.defineProperty,Ye=Object.defineProperties,Fe=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,Je=(je,te,ne)=>te in je?Ie(je,te,{enumerable:!0,configurable:!0,writable:!0,value:ne}):je[te]=ne,mt=(je,te)=>{for(var ne in te||(te={}))Xe.call(te,ne)&&Je(je,ne,te[ne]);if(Ve)for(var ne of Ve(te))qe.call(te,ne)&&Je(je,ne,te[ne]);return je},st=(je,te)=>Ye(je,Fe(te));const Ct=({img:je,buttonProps:te={},styles:ne={},customText:he,ButtonText:se,ButtonClick:ge,Buttonclass:Se,ButtonTwo:Ce,imgStyles:Oe,loading:Be=!1,className:Qe=""})=>le.createElement("section",{className:`tc animated fadeIn ${Qe}`,style:mt({color:"#999",margin:"100px auto",visibility:Be?"hidden":"visible"},ne)},le.createElement("img",{src:je||Le,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),Ce&&Ce);be.Z=Ct},23416:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return Se}});var le=de(59301),Le={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},De=de(99571),Ie=de(70557),Ye=de(58531),Fe=de(25399),Ve=de(89299),Xe=de(68606),qe=de(63604),Je=de(13952),mt=de(59669),st=de(59301),Ct=Object.defineProperty,je=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,he=(Ce,Oe,Be)=>Oe in Ce?Ct(Ce,Oe,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Ce[Oe]=Be,se=(Ce,Oe)=>{for(var Be in Oe||(Oe={}))te.call(Oe,Be)&&he(Ce,Be,Oe[Be]);if(je)for(var Be of je(Oe))ne.call(Oe,Be)&&he(Ce,Be,Oe[Be]);return Ce},ge=(Ce,Oe,Be)=>new Promise((Qe,ot)=>{var rt=ut=>{try{bt(Be.next(ut))}catch(Tt){ot(Tt)}},ft=ut=>{try{bt(Be.throw(ut))}catch(Tt){ot(Tt)}},bt=ut=>ut.done?Qe(ut.value):Promise.resolve(ut.value).then(rt,ft);bt((Be=Be.apply(Ce,Oe)).next())}),Se=({editOffice:Ce="view",data:Oe,issaver:Be,onSaver:Qe,theme:ot,type:rt,filename:ft,monacoEditor:bt,className:ut,style:Tt,close:Dt,onClose:en,hasMask:Cn,disabledDownload:vn,onImgDimensions:pn,showNodata:mn,recordInfo:Mt})=>{const[ct,nt]=(0,le.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[dn,En]=(0,le.useState)(""),[Nt,cn]=(0,le.useState)(),ln=window.ENV==="build"?"/react/build":"",_n=location.host.startsWith("localhost")?Je.Z.PROXY_SERVER:Je.Z.API_SERVER,si=10*(1024*1024),kt=(0,le.useRef)();Oe!=null&&Oe.startsWith("/api")&&rt!=="txt"&&(Oe=Je.Z.API_SERVER+Oe);const Kn=Te=>Te.substring(Te.lastIndexOf("/")+1).split(".").pop();ft&&bt&&(bt.filename=ft),(0,le.useEffect)(()=>{var Te,Me;const Ae=(Me=(Te=document.cookie)==null?void 0:Te.replace(/\s/g,""))==null?void 0:Me.split(";");Ae==null||Ae.map(at=>{let Lt=at.split("=");Lt[0]==="_educoder_session"&&En(Lt[1])})},[]),(0,le.useEffect)(()=>{rt==="office"&&(Oe.indexOf("bigfilescdn.")>-1||Oe.indexOf("bigfiles1")>-1?cn({url:Oe,fileType:Kn(Oe),model:Oe.indexOf("model=edit")?"edit":"view"}):et())},[rt,Oe]);function hi(Te){return ge(this,null,function*(){Te.data.type==="pdfdata"&&(Qe(Te.data.data),window.removeEventListener("message",hi,!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 Ae=yield(0,Xe.gJ)({attachment_id:Me});Ae.url=_n+Ae.url,cn(Ae)}),_e=()=>{if(Oe.startsWith("http")||Oe.startsWith("blob:")){xe();return}(0,Ve.Sv)(ft||"educoder",Oe,ft)},xe=()=>{Mt&&(0,mt.fc)({id:Mt==null?void 0:Mt.id,watch_type:1,course_id:Mt==null?void 0:Mt.course_id}),(0,Ve.Nd)(ft||"educoder",decodeURIComponent(Oe))};return st.createElement("div",{style:se({},Tt||{}),className:`${Cn&&Le.bgBlack} ${rt?Le.wrp:"hide"}`},Dt&&st.createElement("div",{className:Le.close,ref:kt},!!pn&&st.createElement(Fe.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>kt.current},st.createElement("span",{onClick:()=>{en(),pn()}},st.createElement("i",{className:"icon-yulanpizhu"}))),!vn&&st.createElement(Fe.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(Fe.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>kt.current},st.createElement("span",{className:"",onClick:()=>{const Te=document.getElementById("pdfiframe");window.addEventListener("message",hi,!1),setTimeout(()=>{Te.contentWindow.postMessage("getData","*")},300)}},st.createElement("i",{className:"icon-baocun"}))),st.createElement(Fe.Z,{title:"\u5173\u95ED",getPopupContainer:()=>kt.current},st.createElement("span",{className:"",onClick:()=>{en()}},st.createElement("i",{className:"icon-guanbi1"})))),st.createElement("div",{className:`${Le[ut]} ${ut} ${Le.monaco} ${rt==="txt"?"show":"hide"}`},rt==="txt"&&st.createElement(st.Fragment,null,st.createElement(Ye.ZP,se({},bt)))),rt==="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}),rt==="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})),rt==="office"&&Nt&&st.createElement("iframe",{src:`${ln}/office.html?key=${Nt.key}&url=${btoa(Nt.url)}&callbackUrl=${_n+(Nt.callbackUrl||"")}&fileType=${Nt.fileType}&title=${Nt.title||""}&model=${Ce}&officeServer=${Je.Z.ONLYOFFICE}&disabledDownload=${!!vn}`}),rt==="html"&&st.createElement("iframe",{src:Oe+"&disposition=inline"}),rt==="pdf"&&st.createElement("iframe",{id:"pdfiframe",src:`${ln}/js/pdfview/index.html?filename=${ft||"educoder.pdf"}&url=${encodeURIComponent(Oe)}&disabledDownload=${!!vn}&model=${Ce}`}),rt==="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}`}),(rt==="other"||rt==="download")&&st.createElement(st.Fragment,null,mn?st.createElement(qe.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:_e,disabled:vn},"\u4E0B\u8F7D")}):st.createElement(De.ZP,{type:"primary",size:"middle",onClick:_e,disabled:vn},st.createElement(Ie.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},98573:function(Ge,be,de){"use strict";de.d(be,{z:function(){return Qe},Z:function(){return ot}});var le=de(59301),Le=de(14752),De=de(48421),Ie=de(64018),Ye=de(79710),Fe=de(13952),Ve=de(89299),Xe=de(15342),qe=de(1012),Je=de(23416),mt=de(59301),Ct=({html:rt})=>{const ft=(0,le.useRef)(null),bt=(0,le.useRef)(null),ut=`.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 36px !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 Tt=ft.current.attachShadow({mode:"open"});bt.current=document.createElement("div"),bt.current.className="markdown-body",bt.current.innerHTML=rt,Tt.appendChild(bt.current);const Dt=document.createElement("style");return Dt.textContent=ut,Tt.appendChild(Dt),()=>{Tt.innerHTML=""}},[]),(0,le.useEffect)(()=>{bt.current&&(bt.current.innerHTML=rt)},[rt]),mt.createElement("div",{ref:ft})},je=Object.defineProperty,te=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,se=(rt,ft,bt)=>ft in rt?je(rt,ft,{enumerable:!0,configurable:!0,writable:!0,value:bt}):rt[ft]=bt,ge=(rt,ft)=>{for(var bt in ft||(ft={}))ne.call(ft,bt)&&se(rt,bt,ft[bt]);if(te)for(var bt of te(ft))he.call(ft,bt)&&se(rt,bt,ft[bt]);return rt};const Se="@\u2581\u2581@",Ce="@\u2581@",Oe=/<pre[^>]*>/g;function Be(rt){let ft=document.createElement("div");return ft.innerHTML=rt,ft.childNodes.length===0?"":ft.childNodes[0].nodeValue}const Qe=(rt,ft)=>{rt=rt||"";const bt=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ut=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Tt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Dt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return ft?rt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(bt,(en,Cn,vn,pn,mn,Mt,ct)=>{const nt=Cn||pn||Mt,dn=vn||mn||ct||"?";return Fe.Z.API_SERVER+"/api/attachments/"+nt+dn+"&t="+(0,Ve.Jn)(nt,Date.now())+(en.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(rt=rt.replace(Dt,(en,Cn,vn,pn,mn,Mt,ct)=>{const nt=Cn||pn||Mt,dn=vn||mn||ct||"?";return Fe.Z.API_SERVER+"/attachments/download/"+nt+dn+"&t="+(0,Ve.Jn)(nt,Date.now())+(en.indexOf(")")>-1?")":"&")}).replace(bt,(en,Cn,vn,pn,mn,Mt,ct)=>{const nt=Cn||pn||Mt,dn=vn||mn||ct||"?";return Fe.Z.API_SERVER+"/api/attachments/"+nt+dn+"&t="+(0,Ve.Jn)(nt,Date.now())+(en.indexOf(")")>-1?")":"&")}).replace(ut,(en,Cn,vn,pn,mn)=>{const Mt=Cn||pn,ct=vn||mn||"";return'"'+Fe.Z.API_SERVER+"/api/attachments/"+Mt+ct+Mt+ct+"&t="+(0,Ve.Jn)(Mt,Date.now())}).replace(Tt,(en,Cn,vn,pn,mn)=>{const Mt=Cn||pn,ct=vn||mn||"";return"("+Fe.Z.API_SERVER+"/files/uploads/"+Mt+ct+Mt+ct+"&t="+(0,Ve.Jn)(Mt,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,`
`),rt)};var ot=({value:rt="",className:ft,showTextOnly:bt,showLines:ut,style:Tt={},stylesPrev:Dt={},highlightKeywords:en,showProgramFill:Cn,isProgramFill:vn,disabledFill:pn=!1,programFillValue:mn,onFillChange:Mt=dn=>{},onFillBlur:ct=()=>{},onFillFocus:nt=()=>{}})=>{let dn=String(rt);const[En,Nt]=(0,le.useState)(""),[cn,ln]=(0,le.useState)("office"),[_n,kn]=(0,le.useState)([]),si=(0,le.useRef)("a"+(0,qe.Z)()),kt={},Kn=(It,an,sn)=>{const on=document.createElement(It===Ce?"input":"textarea");on.style.width="100%",on.style.height=It===Ce?"40px":"151px",on.rows=5,on.spellcheck=!1,on.name="edu-program-fill",on.placeholder="\u8BF7\u8F93\u5165",on.dataset.id=an;const bn=Object.keys(kt).length;return kt[bn]=on,`<span class="edu-program-fill-wrap ${It===Ce?"":"show"}" style="width:${It===Ce?"400px":"100%"}" title=${sn||""}><span>${on.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function hi(It){return It=It.replace(/!\[.*?\]\(.*?\)/g,""),It=It.replace(/\[.*?\]\(.*?\)/g,""),It=It.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),It=It.replace(/<embed.*?>/g,""),It=It.replace(/<img.*?>/g,""),It=It.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),It=It.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),It=It.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),It=It.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),It}const et=It=>It.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(an,sn){let on=sn.replace(/(\n|\r)/g,"").split("}"),bn=[];return on.map(un=>{un!=""&&bn.push(`.${si.current} ${un}`)}),`<style>${bn.join("}")}</style>`}),_e=(0,le.useMemo)(()=>{try{const on=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,bn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,un=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,zt=/\(\/attachments\/download\//g;dn=dn.replace(zt,"("+Fe.Z.API_SERVER+"/attachments/download/").replace(on,"("+Fe.Z.API_SERVER+"/api/attachments/").replace(bn,'"'+Fe.Z.API_SERVER+"/api/attachments/").replace(un,'"'+Fe.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(on){}if(Cn){let on=-1;return dn=dn.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(bn,un,zt){var xn;return++on,Kn(bn,on,(xn=mn==null?void 0:mn[on])==null?void 0:xn.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${et(dn||"")}</pre>`}let It=et(dn);It=(0,De.ZP)(It);const an=(0,De.ez)();dn.match(/\[TOC\]/)&&(It=It.replace("<p>[TOC]</p>",(0,De.Qv)()),(0,De.Iy)()),It=It.replace(/(__special_katext_id_\d+__)/g,(on,bn)=>{const{type:un,expression:zt}=an[bn];return(0,Xe.renderToString)(Be(zt)||"",{displayMode:un==="block",throwOnError:!1,output:"html"})}),It=It.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,De.AL)();const sn=document.createElement("div");if(sn.innerHTML=It,bt)return sn.innerText;if(en){const on=en.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Ae(sn,on),sn.innerHTML}return setTimeout(()=>Pt(),500),sn.innerHTML},[dn,en]);(0,le.useEffect)(()=>{at.current&&at.current.querySelectorAll(["input","textarea"]).forEach(an=>{an.oninput=xe,an.onblur=Te,an.onfocus=Me})},[_n]),(0,le.useEffect)(()=>{var It,an,sn,on,bn;if(mn!=null&&mn.length)try{const un=at.current.querySelectorAll(".edu-program-fill-score"),zt=at.current.querySelectorAll('[name="edu-program-fill"]');for(const[xn,fn]of zt.entries())fn.value=((It=mn==null?void 0:mn[xn])==null?void 0:It.value)||"",((an=mn==null?void 0:mn[xn])==null?void 0:an.type)==="warning"?fn.className="program-fill-warning":((sn=mn==null?void 0:mn[xn])==null?void 0:sn.type)==="success"?fn.className="program-fill-success":fn.className="";for(const[xn,fn]of un.entries())fn.innerHTML=(on=mn==null?void 0:mn[xn])!=null&&on.score?`${(bn=mn==null?void 0:mn[xn])==null?void 0:bn.score}\u5206`:"";kn(mn)}catch(un){console.log(un,"error")}},[mn]);const xe=It=>{_n[It.target.dataset.id]=_n[It.target.dataset.id]||{},_n[It.target.dataset.id].value=It.target.value,kn([..._n]),Mt(_n,It.target.dataset.id)},Te=It=>{_n[It.target.dataset.id]=_n[It.target.dataset.id]||{},_n[It.target.dataset.id].value=It.target.value,kn([..._n]),ct(_n,It.target.dataset.id)},Me=It=>{_n[It.target.dataset.id]=_n[It.target.dataset.id]||{},_n[It.target.dataset.id].value=It.target.value,kn([..._n]),nt(_n,It.target.dataset.id)};function Ae(It,an){return It.childNodes.forEach(sn=>{var on;if(sn.childNodes.length>0)Ae(sn,an);else if(sn.nodeName!=="IMG")if(sn.innerHTML)sn.innerHTML=(on=sn.innerHTML)==null?void 0:on.replace(new RegExp(an,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const bn=document.createElement("span");bn.innerHTML=sn.textContent.replace(new RegExp(an,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),sn.replaceWith(bn)}})}const at=(0,le.useRef)();De.jb.WebkitLineClamp=ut,ut&&(Tt=ge(ge({},Tt),De.jb));function Lt(It){let an=It.target;if(an.tagName.toUpperCase()==="A"){let sn=an.getAttribute("href");if(sn.indexOf("office")>-1)It.preventDefault(),Nt(sn),ln("office");else if(sn.indexOf("application/pdf")>-1)It.preventDefault(),Nt(sn),ln("pdf");else if(sn.indexOf("text/html")>-1)It.preventDefault(),Nt(sn),ln("html");else if(sn.startsWith("#")){It.preventDefault();let on=document.getElementById(sn.replace("#",""));on&&on.scrollIntoView(!0)}}}const Pt=()=>{var It;const an=(It=at.current)==null?void 0:It.querySelectorAll("video");an==null||an.forEach(sn=>{if(sn.oncontextmenu=()=>!1,sn.src.indexOf(".m3u8")>-1&&!sn.canPlayType("application/vnd.apple.mpegurl")){if(Ye.ZP.isSupported()){var on=new Ye.ZP;on.loadSource(sn.src),on.attachMedia(sn)}}})};(0,le.useEffect)(()=>{if(at.current&&_e&&_e.match(Oe)&&window.PR.prettyPrint(),at.current)return at.current.addEventListener("click",Lt),()=>{var It;(It=at.current)==null||It.removeEventListener("click",Lt),(0,De.AL)(),(0,De.Iy)()}},[_e,at.current,Lt]),(0,le.useEffect)(()=>{var It;const an=sn=>{sn.preventDefault(),sn.clipboardData.setData("text",window.getSelection().toString())};return(It=at.current)==null||It.addEventListener("copy",an),()=>{var sn;(sn=at.current)==null||sn.removeEventListener("copy",an)}},[at.current]);const Vt=It=>/<style[\s\S]*?>/i.test(It||"");return le.createElement(le.Fragment,null,bt&&le.createElement("div",{ref:at},_e),!bt&&!Vt(_e)&&le.createElement("div",{ref:at,style:ge({},Tt),className:`${ft||""} ${pn?"disabled-fill":""} markdown-body ${si.current}`,dangerouslySetInnerHTML:{__html:_e}}),!bt&&Vt(_e)&&le.createElement(Ct,{html:_e}),le.createElement(Je.Z,{close:!0,data:En,type:En!=null&&En.length?cn:"",style:ge({},Dt),onClose:()=>Nt("")}))}},41539:function(Ge,be,de){"use strict";de.d(be,{h:function(){return Ce}});var le=de(59301),Le=de(82326),De=de(28284),Ie=de(99571),Ye=de(89780),Fe=de.n(Ye),Ve=de(39060),Xe=de(76596),qe=Object.defineProperty,Je=Object.defineProperties,mt=Object.getOwnPropertyDescriptors,st=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,te=(Oe,Be,Qe)=>Be in Oe?qe(Oe,Be,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Oe[Be]=Qe,ne=(Oe,Be)=>{for(var Qe in Be||(Be={}))Ct.call(Be,Qe)&&te(Oe,Qe,Be[Qe]);if(st)for(var Qe of st(Be))je.call(Be,Qe)&&te(Oe,Qe,Be[Qe]);return Oe},he=(Oe,Be)=>Je(Oe,mt(Be));const se=Le.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[Qe,ot]=(0,le.useState)("python");function rt(bt){ot(Se[bt][1])}function ft(bt){Oe(bt)}return le.createElement(De.default,he(ne({},ge),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ft,style:{width:500}}),le.createElement(De.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},le.createElement(Le.default,{getPopupContainer:bt=>bt.parentNode,onChange:rt},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(Ce,{mode:Qe})),le.createElement("div",{className:"flex-container flex-end"},le.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),le.createElement(Ie.ZP,{type:"ghost",onClick:Be},"\u53D6\u6D88")))};function Ce({value:Oe,onChange:Be,mode:Qe,options:ot={}}){const rt=(0,le.useRef)(),[ft,bt]=(0,le.useState)();return(0,le.useEffect)(()=>{if(ft){let ut=function(Tt){const Dt=Tt.getValue();Be&&Be(Dt)};return ft.on("change",ut),()=>{ft.off("change",ut)}}},[ft,Be]),(0,le.useEffect)(()=>{ft&&ft.setOption("mode",Qe)},[ft,Qe]),(0,le.useEffect)(()=>{ft&&(Oe!==ft.getValue()||Oe==="")&&setTimeout(()=>{ft.setValue(Oe||"")},300)},[ft,Oe]),(0,le.useEffect)(()=>{if(rt.current&&!ft){const ut=Fe().fromTextArea(rt.current,ne({mode:Qe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ot));bt(ut)}},[rt.current,ft]),le.createElement("div",{className:"my-codemirror-container"},le.createElement("textarea",{ref:rt}))}},4213:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return Ei}});var le=de(59301),Le=de(89780),De=de.n(Le),Ie=de(76374),Ye=de(39060),Fe=de(6313),Ve=de(25717),Xe=de(99498),qe=de(25419),Je=de(67549),mt=de(98573),st=({value:Zt="",className:Wt,showTextOnly:Rt,showLines:rn,style:Xt={}})=>{const Sn=(0,le.useMemo)(()=>"",[Zt]);return le.createElement(le.Fragment,null,le.createElement("div",{dangerouslySetInnerHTML:{__html:Sn}}))},Ct=de(59301),je=Object.defineProperty,te=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,Se=(Zt,Wt,Rt)=>Wt in Zt?je(Zt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:Rt}):Zt[Wt]=Rt,Ce=(Zt,Wt)=>{for(var Rt in Wt||(Wt={}))se.call(Wt,Rt)&&Se(Zt,Rt,Wt[Rt]);if(he)for(var Rt of he(Wt))ge.call(Wt,Rt)&&Se(Zt,Rt,Wt[Rt]);return Zt},Oe=(Zt,Wt)=>te(Zt,ne(Wt));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 Qe({onActionCallback:Zt,title:Wt,icon:Rt,actionName:rn,className:Xt="",children:Sn}){function Rn(){Zt(rn)}return Ct.createElement("a",{title:Wt,className:Xt,onClick:Rn},Ct.createElement("i",{className:`${Rt}`}),Sn)}var ot=({watch:Zt,showNullButton:Wt,showNullProgramButton:Rt,onActionCallback:rn,fullScreen:Xt,insertTemp:Sn,hidetoolBar:Rn,extraUse:Jn})=>{const qt=[...Be,{title:`${Zt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Zt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ct.createElement("ul",{className:"markdown-toolbar-container"},!Rn&&qt.map((Gt,ti)=>Ct.createElement("li",{key:ti},Gt.actionName?Ct.createElement(Qe,Oe(Ce({},Gt),{onActionCallback:rn})):Ct.createElement("span",{className:"v-line"}))),Wt?Ct.createElement("li",null,Ct.createElement(Qe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:rn},Ct.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Rt?Ct.createElement(Ct.Fragment,null,Ct.createElement("li",null,Ct.createElement(Qe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:rn},Ct.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ct.createElement("li",null,Ct.createElement(Qe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:rn},Ct.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Sn&&Ct.createElement("li",null,Ct.createElement(Qe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Sn}`,onActionCallback:rn},Ct.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Jn&&Ct.createElement("li",null,Jn),Ct.createElement("li",{className:"btn-full-screen"},Ct.createElement(Qe,{icon:`${Xt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Xt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:rn})))},rt=de(51498),ft=de(28284),bt=de(37568),ut=de(99571),Tt=Object.defineProperty,Dt=Object.defineProperties,en=Object.getOwnPropertyDescriptors,Cn=Object.getOwnPropertySymbols,vn=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,mn=(Zt,Wt,Rt)=>Wt in Zt?Tt(Zt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:Rt}):Zt[Wt]=Rt,Mt=(Zt,Wt)=>{for(var Rt in Wt||(Wt={}))vn.call(Wt,Rt)&&mn(Zt,Rt,Wt[Rt]);if(Cn)for(var Rt of Cn(Wt))pn.call(Wt,Rt)&&mn(Zt,Rt,Wt[Rt]);return Zt},ct=(Zt,Wt)=>Dt(Zt,en(Wt));const nt={labelCol:{span:4},wrapperCol:{span:20}};var dn=({callback:Zt,onCancel:Wt})=>{function Rt(rn){Zt(rn)}return le.createElement(ft.default,ct(Mt({},nt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Rt,style:{width:500}}),le.createElement(ft.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(ft.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(ut.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),le.createElement(ut.ZP,{type:"ghost",onClick:Wt},"\u53D6\u6D88")))},En=de(41539),Nt=de(35944),cn=de(62957),ln=de(77019),_n=de(89837),kn=de(59301),si=({callback:Zt,onCancel:Wt})=>{const Rt=document.createElement("canvas"),rn=Rt.getContext("2d");Rt.width=1e3,Rt.height=800,rn.fillStyle="#ffffff",rn.fillRect(0,0,Rt.width,Rt.height);const Xt=Rt.toDataURL("image/png");return kn.createElement(cn.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},kn.createElement(ln.Z,{style:{height:"100vh"}},kn.createElement(_n.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Xt,visible:!0,title:String(Date.now())},onOk:Sn=>{Zt({src:Sn.url})},onClose:Wt})))},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 Zt=this.diagram;return!(Zt===null||Zt.isReadOnly||Zt.isModelReadOnly||Zt.selection.count<2)},Kn.prototype.alignLeft=function(){var Zt=this.diagram;Zt.startTransaction("aligning left");var Wt=1/0;Zt.selection.each(function(Rt){Rt instanceof go.Link||(Wt=Math.min(Rt.position.x,Wt))}),Zt.selection.each(function(Rt){Rt instanceof go.Link||Rt.move(new go.Point(Wt,Rt.position.y))}),Zt.commitTransaction("aligning left")},Kn.prototype.alignRight=function(){var Zt=this.diagram;Zt.startTransaction("aligning right");var Wt=-1/0;Zt.selection.each(function(Rt){if(!(Rt instanceof go.Link)){var rn=Rt.actualBounds.x+Rt.actualBounds.width;Wt=Math.max(rn,Wt)}}),Zt.selection.each(function(Rt){Rt instanceof go.Link||Rt.move(new go.Point(Wt-Rt.actualBounds.width,Rt.position.y))}),Zt.commitTransaction("aligning right")},Kn.prototype.alignTop=function(){var Zt=this.diagram;Zt.startTransaction("alignTop");var Wt=1/0;Zt.selection.each(function(Rt){Rt instanceof go.Link||(Wt=Math.min(Rt.position.y,Wt))}),Zt.selection.each(function(Rt){Rt instanceof go.Link||Rt.move(new go.Point(Rt.position.x,Wt))}),Zt.commitTransaction("alignTop")},Kn.prototype.alignBottom=function(){var Zt=this.diagram;Zt.startTransaction("aligning bottom");var Wt=-1/0;Zt.selection.each(function(Rt){if(!(Rt instanceof go.Link)){var rn=Rt.actualBounds.y+Rt.actualBounds.height;Wt=Math.max(rn,Wt)}}),Zt.selection.each(function(Rt){Rt instanceof go.Link||Rt.move(new go.Point(Rt.actualBounds.x,Wt-Rt.actualBounds.height))}),Zt.commitTransaction("aligning bottom")},Kn.prototype.alignCenterX=function(){var Zt=this.diagram,Wt=Zt.selection.first();if(Wt){Zt.startTransaction("aligning Center X");var Rt=Wt.actualBounds.x+Wt.actualBounds.width/2;Zt.selection.each(function(rn){rn instanceof go.Link||rn.move(new go.Point(Rt-rn.actualBounds.width/2,rn.actualBounds.y))}),Zt.commitTransaction("aligning Center X")}},Kn.prototype.alignCenterY=function(){var Zt=this.diagram,Wt=Zt.selection.first();if(Wt){Zt.startTransaction("aligning Center Y");var Rt=Wt.actualBounds.y+Wt.actualBounds.height/2;Zt.selection.each(function(rn){rn instanceof go.Link||rn.move(new go.Point(rn.actualBounds.x,Rt-rn.actualBounds.height/2))}),Zt.commitTransaction("aligning Center Y")}},Kn.prototype.alignColumn=function(Zt){var Wt=this.diagram;Wt.startTransaction("align Column"),Zt===void 0&&(Zt=0),Zt=parseFloat(Zt);var Rt=new Array;Wt.selection.each(function(Jn){Jn instanceof go.Link||Rt.push(Jn)});for(var rn=0;rn<Rt.length-1;rn++){var Xt=Rt[rn],Sn=Xt.actualBounds.y+Xt.actualBounds.height+Zt,Rn=Rt[rn+1];Rn.move(new go.Point(Xt.actualBounds.x,Sn))}Wt.commitTransaction("align Column")},Kn.prototype.alignRow=function(Zt){Zt===void 0&&(Zt=0),Zt=parseFloat(Zt);var Wt=this.diagram;Wt.startTransaction("align Row");var Rt=new Array;Wt.selection.each(function(Jn){Jn instanceof go.Link||Rt.push(Jn)});for(var rn=0;rn<Rt.length-1;rn++){var Xt=Rt[rn],Sn=Xt.actualBounds.x+Xt.actualBounds.width+Zt,Rn=Rt[rn+1];Rn.move(new go.Point(Sn,Xt.actualBounds.y))}Wt.commitTransaction("align Row")},Kn.prototype.canRotate=function(Zt){var Wt=this.diagram;return!(Wt===null||Wt.isReadOnly||Wt.isModelReadOnly||Wt.selection.count<1)},Kn.prototype.rotate=function(Zt){Zt===void 0&&(Zt=90);var Wt=this.diagram;Wt.startTransaction("rotate "+Zt.toString());var Wt=this.diagram;Wt.selection.each(function(Rt){Rt instanceof go.Link||Rt instanceof go.Group||(Rt.angle+=Zt)}),Wt.commitTransaction("rotate "+Zt.toString())},Kn.prototype.pullToFront=function(){var Zt=this.diagram;Zt.startTransaction("pullToFront");var Wt=new go.Map;Zt.selection.each(function(Rt){Wt.set(Rt.layer,0)}),Wt.iteratorKeys.each(function(Rt){var rn=0;Rt.parts.each(function(Xt){if(!Xt.isSelected){var Sn=Xt.zOrder;isNaN(Sn)?Xt.zOrder=0:rn=Math.max(rn,Sn)}}),Wt.set(Rt,rn)}),Zt.selection.each(function(Rt){Kn._assignZOrder(Rt,Wt.get(Rt.layer)+1)}),Zt.commitTransaction("pullToFront")},Kn.prototype.pushToBack=function(){var Zt=this.diagram;Zt.startTransaction("pushToBack");var Wt=new go.Map;Zt.selection.each(function(Rt){Wt.set(Rt.layer,0)}),Wt.iteratorKeys.each(function(Rt){var rn=0;Rt.parts.each(function(Xt){if(!Xt.isSelected){var Sn=Xt.zOrder;isNaN(Sn)?Xt.zOrder=0:rn=Math.min(rn,Sn)}}),Wt.set(Rt,rn)}),Zt.selection.each(function(Rt){Kn._assignZOrder(Rt,Wt.get(Rt.layer)-1-Kn._findGroupDepth(Rt))}),Zt.commitTransaction("pushToBack")},Kn._assignZOrder=function(Zt,Wt,Rt){Rt===void 0&&(Rt=Zt),Zt.layer===Rt.layer&&(Zt.zOrder=Wt),Zt instanceof go.Group&&Zt.memberParts.each(function(rn){Kn._assignZOrder(rn,Wt+1,Rt)})},Kn._findGroupDepth=function(Zt){if(Zt instanceof go.Group){var Wt=0;return Zt.memberParts.each(function(Rt){Wt=Math.max(Wt,Kn._findGroupDepth(Rt))}),Wt+1}else return 0},Kn.prototype.doKeyDown=function(){var Zt=this.diagram;if(Zt!==null){var Wt=Zt.lastInput;if(Wt.key==="Up"||Wt.key==="Down"||Wt.key==="Left"||Wt.key==="Right"){var Rt=this.arrowKeyBehavior;if(Rt==="none")return;if(Rt==="select"){this._arrowKeySelect();return}else if(Rt==="move"){this._arrowKeyMove();return}else if(Rt==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Kn.prototype._getAllParts=function(){var Zt=new Array;return this.diagram.nodes.each(function(Wt){Zt.push(Wt)}),this.diagram.parts.each(function(Wt){Zt.push(Wt)}),Zt},Kn.prototype._arrowKeyMove=function(){var Zt=this.diagram,Wt=Zt.lastInput,Rt=0,rn=0;if(Wt.control||Wt.meta)Rt=1,rn=1;else if(Zt.grid!==null){var Xt=Zt.grid.gridCellSize;rn=Xt.width,Rt=Xt.height}Zt.startTransaction("arrowKeyMove"),Zt.selection.each(function(Sn){Wt.key==="Up"?Sn.move(new go.Point(Sn.actualBounds.x,Sn.actualBounds.y-Rt)):Wt.key==="Down"?Sn.move(new go.Point(Sn.actualBounds.x,Sn.actualBounds.y+Rt)):Wt.key==="Left"?Sn.move(new go.Point(Sn.actualBounds.x-rn,Sn.actualBounds.y)):Wt.key==="Right"&&Sn.move(new go.Point(Sn.actualBounds.x+rn,Sn.actualBounds.y))}),Zt.commitTransaction("arrowKeyMove")},Kn.prototype._arrowKeySelect=function(){var Zt=this.diagram,Wt=Zt.lastInput,Rt=null;Wt.key==="Up"?Rt=this._findNearestPartTowards(270):Wt.key==="Down"?Rt=this._findNearestPartTowards(90):Wt.key==="Left"?Rt=this._findNearestPartTowards(180):Wt.key==="Right"&&(Rt=this._findNearestPartTowards(0)),Rt!==null&&(Wt.shift?Rt.isSelected=!0:Wt.control||Wt.meta?Rt.isSelected=!Rt.isSelected:Zt.select(Rt))},Kn.prototype._findNearestPartTowards=function(Zt){var Wt=this.diagram.selection.first();if(Wt===null)return null;for(var Rt=Wt.actualBounds.center,rn=this._getAllParts(),Xt=1/0,Sn=Wt,Rn=0;Rn<rn.length;Rn++){var Jn=rn[Rn];if(Jn!==Wt&&Jn.canSelect()){var qt=Jn.actualBounds.center,Gt=Rt.directionPoint(qt),ti=this._angleCloseness(Gt,Zt);if(ti<=45){var pt=Rt.distanceSquaredPoint(qt);pt*=1+Math.sin(ti*Math.PI/180),pt<Xt&&(Xt=pt,Sn=Jn)}}}return Sn},Kn.prototype._angleCloseness=function(Zt,Wt){return Math.min(Math.abs(Wt-Zt),Math.min(Math.abs(Wt+360-Zt),Math.abs(Wt-360-Zt)))},Kn.prototype._arrowKeyTree=function(){var Zt=this.diagram,Wt=Zt.selection.first();if(Wt instanceof go.Node){var Rt=Zt.lastInput;if(Rt.key==="Right"){if(!Wt.isTreeLeaf)if(!Wt.isTreeExpanded)Zt.commandHandler.canExpandTree(Wt)&&Zt.commandHandler.expandTree(Wt);else{var rn=this._sortTreeChildrenByY(Wt).first();rn!==null&&Zt.select(rn)}}else if(Rt.key==="Left")if(!Wt.isTreeLeaf&&Wt.isTreeExpanded)Zt.commandHandler.canCollapseTree(Wt)&&Zt.commandHandler.collapseTree(Wt);else{var Xt=Wt.findTreeParentNode();Xt!==null&&Zt.select(Xt)}else if(Rt.key==="Up"){var Xt=Wt.findTreeParentNode();if(Xt!==null){var Sn=this._sortTreeChildrenByY(Xt),Rn=Sn.indexOf(Wt);if(Rn>0){for(var Jn=Sn.elt(Rn-1);Jn!==null&&Jn.isTreeExpanded&&!Jn.isTreeLeaf;){var qt=this._sortTreeChildrenByY(Jn);Jn=qt.last()}Jn!==null&&Zt.select(Jn)}else Zt.select(Xt)}}else if(Rt.key==="Down")if(Wt.isTreeExpanded&&!Wt.isTreeLeaf){var rn=this._sortTreeChildrenByY(Wt).first();rn!==null&&Zt.select(rn)}else for(;Wt!==null;){var Xt=Wt.findTreeParentNode();if(Xt===null)break;var Sn=this._sortTreeChildrenByY(Xt),Rn=Sn.indexOf(Wt);if(Rn<Sn.length-1){Zt.select(Sn.elt(Rn+1));break}else Wt=Xt}var Gt=Zt.selection.first();Gt!==null&&Zt.scrollToRect(Gt.actualBounds)}},Kn.prototype._sortTreeChildrenByY=function(Zt){var Wt=new go.List().addAll(Zt.findTreeChildrenNodes());return Wt.sort(function(Rt,rn){var Xt=Rt.location,Sn=rn.location;return Xt.y<Sn.y?-1:Xt.y>Sn.y?1:Xt.x<Sn.x?-1:Xt.x>Sn.x?1:0}),Wt},Kn.prototype.copyToClipboard=function(Zt){go.CommandHandler.prototype.copyToClipboard.call(this,Zt),this._lastPasteOffset.set(this.pasteOffset)},Kn.prototype.pasteFromClipboard=function(){var Zt=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Zt,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Zt},Object.defineProperty(Kn.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Zt){if(Zt!=="move"&&Zt!=="select"&&Zt!=="scroll"&&Zt!=="tree"&&Zt!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Zt);this._arrowKeyBehavior=Zt}}),Object.defineProperty(Kn.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Zt){if(!(Zt instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Zt);this._pasteOffset.set(Zt)}});var hi=Kn,et=de(74042),_e=de(5269),xe=de(52430),Te={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Me=de(64681),Ae=de(59301),at=(Zt,Wt,Rt)=>new Promise((rn,Xt)=>{var Sn=qt=>{try{Jn(Rt.next(qt))}catch(Gt){Xt(Gt)}},Rn=qt=>{try{Jn(Rt.throw(qt))}catch(Gt){Xt(Gt)}},Jn=qt=>qt.done?rn(qt.value):Promise.resolve(qt.value).then(Sn,Rn);Jn((Rt=Rt.apply(Zt,Wt)).next())});function Lt({onCancel:Zt,callback:Wt}){let Rt=(0,le.useRef)(),rn=(0,le.useRef)(),Xt=(0,le.useRef)(),Sn=(0,le.useRef)(!1);const Rn=(0,le.useRef)(!1),[Jn,qt]=(0,le.useState)(0);function Gt(){const pt=kt.bx.make,yn={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"};Rt.current=new kt.S0(rn.current,{padding:20,grid:pt(kt.s_,"Grid",pt(kt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),pt(kt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:vi=>{var Ni=vi.diagram.commandHandler.addTopLevelParts(vi.diagram.selection,!0);Ni||vi.diagram.currentTool.doCancel()},commandHandler:pt(hi),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:vi=>{var Ni=vi.subject;Ni.location=Ni.location.copy().snapToGridPoint(vi.diagram.grid.gridOrigin,vi.diagram.grid.gridCellSize),setTimeout(()=>{vi.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:vi=>{var Ni=vi.subject;setTimeout(()=>{vi.diagram.commandHandler.editTextBlock()})},LinkRelinked:vi=>{var Ni=vi.parameter.part;Ni.invalidateConnectedLinks();var Bi=vi.subject;vi.diagram.toolManager.linkingTool.isForwards?Bi.toNode.invalidateConnectedLinks():Bi.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Rt.current.nodeTemplate=pt(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),pt(kt.bn,{name:"SHAPE",fill:yn.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")),pt(kt.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),pt(kt.al,{margin:1,textAlign:"center",overflow:kt.al.OverflowEllipsis,editable:!0},new kt.KX("text").makeTwoWay(),new kt.KX("stroke","color"))),Rt.current.nodeTemplate.toolTip=pt("ToolTip",pt(kt.s_,"Vertical",{maxSize:new kt.$u(200,NaN)},pt(kt.al,{font:"bold 10pt sans-serif",textAlign:"center"},new kt.KX("text")),pt(kt.al,{font:"10pt sans-serif",textAlign:"center"},new kt.KX("text","details"))));function ii(vi,Ni){var Bi=(Fi,Wi)=>{Fi.handled=!0,Fi.diagram.model.commit(cr=>{var mr=Wi.part.adornedPart,Tr=new kt.E9().setRectSpot(mr.actualBounds,vi);Tr.subtract(mr.location),Tr.scale(2,2),Tr.x+=Math.sign(Tr.x)*130,Tr.y+=Math.sign(Tr.y)*130,Tr.add(mr.location),Tr.snapToGridPoint(Fi.diagram.grid.gridOrigin,Fi.diagram.grid.gridCellSize);var Mr=cr.copyNodeData(mr.data);cr.setGroupKeyForNodeData(Mr,cr.getGroupKeyForNodeData(mr.data)),cr.addNodeData(Mr);var Gn={from:mr.key,to:cr.getKeyForNodeData(Mr)};cr.addLinkData(Gn);var ur=Fi.diagram.findNodeForData(Mr);ur.location=Tr,Fi.diagram.select(ur),setTimeout(()=>{Fi.diagram.commandHandler.editTextBlock()},20)})};return pt(kt.bn,{figure:Ni,alignment:vi,alignmentFocus:vi.opposite(),width:vi.equals(kt.z6.Top)||vi.equals(kt.z6.Bottom)?25:18,height:vi.equals(kt.z6.Top)||vi.equals(kt.z6.Bottom)?18:25,fill:"orange",stroke:yn.white,strokeWidth:4,mouseEnter:(Fi,Wi)=>Wi.fill="dodgerblue",mouseLeave:(Fi,Wi)=>Wi.fill="orange",isActionable:!0,click:Bi,contextClick:Bi})}function xi(vi){return pt(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:(Ni,Bi)=>Bi.fill="dodgerblue",mouseLeave:(Ni,Bi)=>Bi.fill="orange",click:(Ni,Bi)=>{Ni.diagram.commandHandler.showContextMenu(Bi.part.adornedPart)}},vi||{})}Rt.current.nodeTemplate.selectionAdornmentTemplate=pt(kt.uz,"Spot",pt(kt.Vm,{padding:10}),ii(kt.z6.Top,"TriangleUp"),ii(kt.z6.Left,"TriangleLeft"),ii(kt.z6.Right,"TriangleRight"),ii(kt.z6.Bottom,"TriangleDown"),xi({alignment:new kt.z6(.75,0)}));function Ut(vi,Ni){return(Bi,Fi)=>{Bi.handled=!0,Bi.diagram.model.commit(Wi=>{Wi.set(Fi.part.adornedPart.data,vi,Ni)})}}function $n(vi,Ni){return Ni||(Ni="color"),pt(kt.bn,{width:16,height:16,stroke:"lightgray",fill:vi,margin:1,background:"transparent",mouseEnter:(Bi,Fi)=>Fi.stroke="dodgerblue",mouseLeave:(Bi,Fi)=>Fi.stroke="lightgray",click:Ut(Ni,vi),contextClick:Ut(Ni,vi)})}function pi(){return[pt("ContextMenuButton",pt(kt.s_,"Horizontal",$n(yn.white,"fill"),$n(yn.beige,"fill"),$n(yn.extralightblue,"fill"),$n(yn.extralightred,"fill"))),pt("ContextMenuButton",pt(kt.s_,"Horizontal",$n(yn.lightgray,"fill"),$n(yn.lightgreen,"fill"),$n(yn.lightblue,"fill"),$n(yn.lightred,"fill")))]}function Kt(){return[pt("ContextMenuButton",pt(kt.s_,"Horizontal",$n(yn.black),$n(yn.green),$n(yn.blue),$n(yn.red))),pt("ContextMenuButton",pt(kt.s_,"Horizontal",$n(yn.white),$n(yn.magenta),$n(yn.purple),$n(yn.orange)))]}function Ue(vi,Ni){return Ni||(Ni="thickness"),pt(kt.bn,"LineH",{width:16,height:16,strokeWidth:vi,margin:1,background:"transparent",mouseEnter:(Bi,Fi)=>Fi.background="dodgerblue",mouseLeave:(Bi,Fi)=>Fi.background="transparent",click:Ut(Ni,vi),contextClick:Ut(Ni,vi)})}function wi(vi,Ni){return Ni||(Ni="dash"),pt(kt.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:vi,margin:1,background:"transparent",mouseEnter:(Bi,Fi)=>Fi.background="dodgerblue",mouseLeave:(Bi,Fi)=>Fi.background="transparent",click:Ut(Ni,vi),contextClick:Ut(Ni,vi)})}function ai(){return[pt("ContextMenuButton",pt(kt.s_,"Horizontal",Ue(1),Ue(2),Ue(3),Ue(4))),pt("ContextMenuButton",pt(kt.s_,"Horizontal",wi(null),wi([2,4]),wi([4,4])))]}function Mn(vi,Ni){return Ni||(Ni="figure"),pt(kt.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:vi,margin:1,background:"transparent",mouseEnter:(Bi,Fi)=>Fi.fill="dodgerblue",mouseLeave:(Bi,Fi)=>Fi.fill="lightgray",click:Ut(Ni,vi),contextClick:Ut(Ni,vi)})}Rt.current.nodeTemplate.contextMenu=pt("ContextMenu",pt("ContextMenuButton",pt(kt.s_,"Horizontal",Mn("Rectangle"),Mn("RoundedRectangle"),Mn("Ellipse"),Mn("Diamond"))),pt("ContextMenuButton",pt(kt.s_,"Horizontal",Mn("Parallelogram2"),Mn("ManualOperation"),Mn("Procedure"),Mn("Cylinder1"))),pt("ContextMenuButton",pt(kt.s_,"Horizontal",Mn("Terminator"),Mn("CreateRequest"),Mn("Document"),Mn("TriangleDown"))),pi(),Kt(),ai()),Rt.current.groupTemplate=pt(kt.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:kt.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(vi,Ni)=>{var Bi=Ni.addMembers(Ni.diagram.selection,!0);Bi||Ni.diagram.currentTool.doCancel()},avoidable:!1},new kt.KX("location","loc",kt.E9.parse).makeTwoWay(kt.E9.stringify),pt(kt.s_,"Auto",{name:"BODY"},pt(kt.bn,{parameter1:10,fill:yn.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")),pt(kt.Vm,{background:"transparent",margin:20})),pt(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"))),Rt.current.groupTemplate.selectionAdornmentTemplate=pt(kt.uz,"Spot",pt(kt.s_,"Auto",pt(kt.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),pt(kt.Vm,{margin:1.5})),xi({alignment:kt.z6.TopRight,alignmentFocus:kt.z6.BottomRight})),Rt.current.groupTemplate.contextMenu=pt("ContextMenu",pi(),Kt(),ai()),Rt.current.linkTemplate=pt(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",vi=>vi>=1?10:0),new kt.KX("toShortLength","dir",vi=>vi>=1?10:0),new kt.KX("points").makeTwoWay(),pt(kt.bn,{strokeWidth:2},new kt.KX("stroke","color"),new kt.KX("strokeWidth","thickness"),new kt.KX("strokeDashArray","dash")),pt(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",vi=>vi===1)),pt(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",vi=>vi>=1),new kt.KX("width","thickness",vi=>7+3*vi),new kt.KX("height","thickness",vi=>7+3*vi),new kt.KX("segmentOffset","thickness",vi=>new kt.E9(-15,4+1.5*vi))),pt(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",vi=>vi===2),new kt.KX("width","thickness",vi=>7+3*vi),new kt.KX("height","thickness",vi=>7+3*vi),new kt.KX("segmentOffset","thickness",vi=>new kt.E9(-15,4+1.5*vi))),pt(kt.al,{alignmentFocus:new kt.z6(0,1,-4,0),editable:!0},new kt.KX("text").makeTwoWay(),new kt.KX("stroke","color"))),Rt.current.linkTemplate.selectionAdornmentTemplate=pt(kt.uz,pt(kt.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:ji(2)},new kt.KX("pathPattern","thickness",ji)),xi({alignmentFocus:new kt.z6(0,0,-6,-4)}));function ji(vi){return pt(kt.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(vi+4).toString()+" H3"})}function Ki(vi){var Ni="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return vi===0?Ni="M0 0 M16 16 M0 8 L16 8":vi===2&&(Ni="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),pt(kt.bn,{geometryString:Ni,margin:2,background:"transparent",mouseEnter:(Bi,Fi)=>Fi.background="dodgerblue",mouseLeave:(Bi,Fi)=>Fi.background="transparent",click:Ut("dir",vi),contextClick:Ut("dir",vi)})}function Zi(vi){var Ni=(Bi,Fi)=>{Bi.handled=!0,Bi.diagram.model.commit(Wi=>{var cr=Fi.part.adornedPart;Wi.set(cr.data,vi?"toSpot":"fromSpot",kt.z6.stringify(kt.z6.AllSides)),(vi?cr.toNode:cr.fromNode).invalidateConnectedLinks()})};return pt(kt.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Bi,Fi)=>Fi.background="dodgerblue",mouseLeave:(Bi,Fi)=>Fi.background="transparent",click:Ni,contextClick:Ni})}function Nn(vi,Ni){var Bi=0,Fi=kt.z6.RightSide;vi.equals(kt.z6.Top)?(Bi=270,Fi=kt.z6.TopSide):vi.equals(kt.z6.Left)?(Bi=180,Fi=kt.z6.LeftSide):vi.equals(kt.z6.Bottom)&&(Bi=90,Fi=kt.z6.BottomSide),Ni||(Bi-=180);var Wi=(cr,mr)=>{cr.handled=!0,cr.diagram.model.commit(Tr=>{var Mr=mr.part.adornedPart;Tr.set(Mr.data,Ni?"toSpot":"fromSpot",kt.z6.stringify(Fi)),(Ni?Mr.toNode:Mr.fromNode).invalidateConnectedLinks()})};return pt(kt.bn,{alignment:vi,alignmentFocus:vi.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Bi,background:"transparent",mouseEnter:(cr,mr)=>mr.background="dodgerblue",mouseLeave:(cr,mr)=>mr.background="transparent",click:Wi,contextClick:Wi})}Rt.current.linkTemplate.contextMenu=pt("ContextMenu",Kt(),ai(),pt("ContextMenuButton",pt(kt.s_,"Horizontal",Ki(0),Ki(1),Ki(2))),pt("ContextMenuButton",pt(kt.s_,"Horizontal",pt(kt.s_,"Spot",Zi(!1),Nn(kt.z6.Top,!1),Nn(kt.z6.Left,!1),Nn(kt.z6.Right,!1),Nn(kt.z6.Bottom,!1)),pt(kt.s_,"Spot",{margin:new kt.Zt(0,0,0,2)},Zi(!0),Nn(kt.z6.Top,!0),Nn(kt.z6.Left,!0),Nn(kt.z6.Right,!0),Nn(kt.z6.Bottom,!0)))));const Jt=`{ "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 Ji=["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(vi){return console.log("shapeName:",vi),Ji.indexOf(vi)>=0}var wn=new kt.YI(Xt.current,{maxSelectionCount:1,linkTemplate:pt(kt.rU,{locationSpot:kt.z6.Center,selectionAdornmentTemplate:pt(kt.uz,"Link",{locationSpot:kt.z6.Center},pt(kt.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),pt(kt.bn,{toArrow:"Standard",stroke:null}))},{routing:kt.rU.AvoidsNodes,curve:kt.rU.JumpOver,corner:5,toShortLength:4},new kt.KX("points"),pt(kt.bn,{isPanelMain:!0,strokeWidth:2}),pt(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(vi=>({text:"\u672A\u547D\u540D",size:"100 100",figure:vi.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Rt.current.addDiagramListener("TextEdited",function(vi){var Ni;const Bi=vi.subject.part;var Fi=(Ni=document.activeElement)==null?void 0:Ni.value;typeof Fi=="string"&&Fi.trim()===""&&Rt.current.model.commit(function(Wi){Wi.set(Bi.data,"text","\u672A\u547D\u540D"),Rt.current.commandHandler.stopCommand()},"increment")}),wn.nodeTemplate=pt(kt.NB,"Auto",{locationSpot:kt.z6.Center},new kt.KX("location","location",kt.E9.parse).makeTwoWay(kt.E9.stringify),pt(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")),pt(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(()=>{Rt.current.grid=pt(kt.s_,"Grid",pt(kt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),pt(kt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Rt.current.grid.visible=!0,Rt.current.grid.gridCellStroke="darkgray",Rt.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Rt.current,Rt.current}const ti=()=>at(this,null,function*(){var pt,yn=Rt.current.makeImage();const ii=yield(0,xe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:yn.src,file_data:JSON.stringify({login:(pt=(0,Me.eY)())==null?void 0:pt.login,data:JSON.parse(Rt.current.model.toJson())})}});Wt({src:ii.url})});return(0,le.useEffect)(()=>(setTimeout(()=>{Gt()},500),qt(Jn+1),()=>{Rt.current=null}),[]),Ae.createElement("div",{ref:Rn,className:"body-overflow-initial"},Ae.createElement(cn.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Jn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ae.createElement(ln.Z,null,Ae.createElement(_e.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ae.createElement(_e.Z,{onClick:()=>{var pt,yn,ii=Rt.current.selection.first();if(Sn.current=!Sn.current,document.activeElement&&ii){let xi=(yn=(pt=document.activeElement)==null?void 0:pt.value)==null?void 0:yn.trim();typeof xi=="string"&&Rt.current.model.commit(function(Ut){Ut.set(ii.data,"text",xi||"\u672A\u547D\u540D"),Rt.current.commandHandler.stopCommand()},"increment")}qt(Jn+1)}},Ae.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Zt},Ae.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:Sn.current?"none":"block"},className:Te.flowChartWrp},Ae.createElement("div",{style:{display:"flex",height:"100%"}},Ae.createElement("div",{style:{width:"300px",height:"100%"}},Ae.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Ae.createElement("div",{style:{height:"calc(100% - 50px)"},className:Te.myPaletteDiv,ref:Xt})),Ae.createElement("div",{style:{flex:1,position:"relative"}},Ae.createElement("div",{ref:rn,style:{height:"80vh"}}))),Ae.createElement("div",{className:"tr"},Ae.createElement(ut.ZP,{size:"large",onClick:ti,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Pt=Lt,Vt=de(47889),It=de(71051);const an=Vt.ZP.Group,sn={margin:"0 8px"};var on=({callback:Zt,onCancel:Wt})=>{function Rt(rn){Zt(rn)}return le.createElement(ft.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Rt},le.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},le.createElement("span",{style:sn},"\u5355\u5143\u683C\u6570\uFF1A"),le.createElement("span",{style:sn},"\u884C\u6570"),le.createElement(ft.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},le.createElement(It.Z,null)),le.createElement("span",{style:sn},"\u5217\u6570"),le.createElement(ft.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},le.createElement(It.Z,null))),le.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},le.createElement("span",{style:sn},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),le.createElement(ft.default.Item,{name:"align"},le.createElement(an,null,le.createElement(Vt.ZP,{value:"default"},le.createElement("i",{className:"fa fa-align-justify"})),le.createElement(Vt.ZP,{value:"left"},le.createElement("i",{className:"fa fa-align-left"})),le.createElement(Vt.ZP,{value:"center"},le.createElement("i",{className:"fa fa-align-center"})),le.createElement(Vt.ZP,{value:"right"},le.createElement("i",{className:"fa fa-align-right"}))))),le.createElement("div",{className:"flex-container flex-end"},le.createElement(ut.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),le.createElement(ut.ZP,{type:"ghost",onClick:Wt},"\u53D6\u6D88")))},bn=de(71411),un=de(84072),zt=de.n(un),fn=(0,le.forwardRef)(({use3d:Zt,width:Wt,height:Rt,callback:rn,showSaveButton:Xt},Sn)=>{const Rn=(0,le.useRef)(),Jn=(0,le.useRef)(),[qt,Gt]=(0,le.useState)(!1),ti=(0,le.useRef)({id:Rn,appName:"graphing",width:Wt||1e3,height:Rt||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)(()=>{Jn.current=new(zt())(ti.current,!0),window.onload=function(){Jn.current.inject("applet_container")}},[]);const pt=()=>{var yn=window.ggbApplet.getPNGBase64(1,!0,72);return rn&&rn(yn),yn};return(0,le.useEffect)(()=>{ti.current.appName=qt?"3D":"graphing",Jn.current.inject("applet_container")},[qt]),(0,le.useEffect)(()=>{Gt(Zt)},[Zt]),(0,le.useImperativeHandle)(Sn,()=>({getImgData:pt})),le.createElement(le.Fragment,null,le.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Rn}),le.createElement(ln.Z,{align:"middle"},le.createElement(_e.Z,{flex:1},le.createElement(bn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:qt,onChange:yn=>Gt(yn)})),le.createElement(_e.Z,null,le.createElement(ut.ZP,{size:"large",onClick:pt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),An=de(53267),nn=de(6767);const ci="link",zn="upload-image",yt="add-flowchart",Fn="draw-image",Pn="add-flowchart",Ht="code-block",fi="add-table",zi="------------",Li={default:zi,left:`:${zi}`,center:`:${zi}:`,right:`${zi}:`};var Dn=de(47458);function qi(){}let Ui=0;const ui=1e4,bi="\u2581",Ri="@\u2581\u2581@",ke="@\u2581@",gi=`
**\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`,Ii=["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 ki(Zt){return/^\d+$/.test(Zt)?`${Zt}px`:Zt}const Nr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",sr={[Nr+"-B"]:"bold",[Nr+"-I"]:"italic"},Di={[ci]:"\u6DFB\u52A0\u94FE\u63A5",[Ht]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[zn]:"\u6DFB\u52A0\u56FE\u7247",[Fn]:"\u6DFB\u52A0\u753B\u56FE",[yt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[fi]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Ei=({defaultValue:Zt="",onChange:Wt,width:Rt="100%",height:rn=400,miniToolbar:Xt=!1,isFocus:Sn=!1,watch:Rn,insertTemp:Jn,mode:qt="markdown",id:Gt="markdown-editor-id",showResizeBar:ti=!1,noStorage:pt=!1,showNullButton:yn=!1,showNullProgramButton:ii=!1,hidetoolBar:xi=!1,fullScreen:Ut=!1,onBlur:$n,onCMBeforeChange:pi,onFullScreen:Kt,className:Ue="",disablePaste:wi=!1,disabled:ai=!1,disabledFill:Mn=!1,placeholder:ji="",values:Ki="",extraUse:Zi})=>{const[Nn,Jt]=(0,le.useState)(null),[Ji,zr]=(0,le.useState)(Zt),[wn,vi]=(0,le.useState)(Rn),[Ni,Bi]=(0,le.useState)(Ut),[Fi,Wi]=(0,le.useState)(""),[cr,mr]=(0,le.useState)(0),[Tr,Mr]=(0,le.useState)(rn),[Gn,ur]=(0,le.useState)(!1),[Bn,br]=(0,le.useState)(0),[Er,pr]=(0,le.useState)(0),$r=(0,le.useRef)(),Xr=(0,le.useRef)(),Ur=(0,le.useRef)(),Yr=(0,le.useRef)();(0,le.useEffect)(()=>{const hr=window.scrollY||window.pageYOffset;zr(Ki),Nn==null||Nn.setValue(Ki),window.scrollTo(0,hr)},[Ki]),(0,le.useEffect)(()=>{Kt==null||Kt(Ni)},[Ni]),(0,le.useEffect)(()=>{if($r.current){let hr=function(ri,Qi){var Qr;if(wi){Qi.preventDefault();return}const zo=Qi.clipboardData;if(zo){const Oo=zo.types.toString(),Co=zo.items;if(Oo==="Files"||zo.types.indexOf("Files")>-1){if(Qi.preventDefault(),qt=="stex")return;try{let Go=Co[1];((Qr=Co[0])==null?void 0:Qr.kind)==="file"&&(Go=Co[0]);const Lo=Go.getAsFile(),Sa=Lo.name.split(".").pop();(0,Nt.I)(Lo,sa=>{var es,gn,oa;sa.id?((es=Lo==null?void 0:Lo.type)==null?void 0:es.indexOf("image"))>-1?rr.replaceSelection(`<img width="100%" src="/api/attachments/${sa.id}?type=${sa.content_type})" alt="" />`):((gn=Lo==null?void 0:Lo.type)==null?void 0:gn.indexOf("video"))>-1?rr.replaceSelection(`<video width="100%" controls src="/api/attachments/${sa.id}"></video>`):((oa=Lo==null?void 0:Lo.type)==null?void 0:oa.indexOf("pdf"))>-1?rr.replaceSelection(`<a href="/api/attachments/${sa.id}?type=${Lo.type}&disposition=inline" target="_blank">${Lo.name}</a>`):Ii.includes(Sa)?rr.replaceSelection(`<a href="/api/attachments/${sa.id}?type=office&disposition=inline" target="_blank">${Lo.name}</a>`):rr.replaceSelection(`[${Lo.name}](/api/attachments/${sa.id}?type=${sa.content_type})`):(sa==null?void 0:sa.status)===401&&(document.location.href="/user/login")})}catch(Go){nn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const rr=De().fromTextArea($r.current,{mode:qt,lineNumbers:!Xt,lineWrapping:!0,value:Zt,autoCloseTags:!0,autoCloseBrackets:!0});return rr.on("keyup",function(ri,Qi){Qi.keyCode===8&&(ri.getValue()==""?rr.setOption("placeholder",ji):rr.setOption("placeholder",null))}),rr.on("keydown",function(ri,Qi){if(Qi.keyCode===8){var Qr=Kr(ri);Qr&&Qi.preventDefault()}}),Sn&&rr.focus(),rr.on("paste",hr),ai&&rr.on("beforeChange",function(ri,Qi){(Qi.origin==="paste"||Qi.origin==="+input")&&Qi.cancel()}),Jt(rr),()=>{rr.off("paste",hr)}}},[]);const Vo=(0,le.useCallback)(()=>{if(Xr.current)try{}catch(hr){console.log(hr,"---- to set md editor body height")}},[Tr,Xr,Ni]);(0,le.useEffect)(()=>{function hr(){let rr=new Ie.Z(ri=>{for(let Qi of ri)(Qi.target.offsetHeight>0||Qi.target.offsetWidth>0)&&(Vo(),Nn.setSize("100%","100%"),Nn.refresh())});return rr.observe($r.current.parentElement),rr}if(Nn){const rr=hr();return()=>{var ri,Qi;(ri=$r.current)!=null&&ri.parentElement&&rr.unobserve((Qi=$r.current)==null?void 0:Qi.parentElement)}}},[Nn,Vo]),(0,le.useEffect)(()=>{if(Nn){let hr=[];for(const[rr,ri]of Object.entries(sr)){let Qi={[rr]:()=>{Ti(ri)}};hr.push(Qi),Nn.addKeyMap(Qi)}return()=>{for(let rr of hr)Nn.removeKeyMap(rr)}}},[Nn]),(0,le.useEffect)(()=>{Ut!==Ni&&Bi(Ut)},[Ut]),(0,Dn.Z)(()=>{if(!pt&&cr>0){let hr=new Date().getTime(),rr=window.sessionStorage.getItem(Gt);hr>=cr+ui&&(!rr||rr!==Ji)&&(window.sessionStorage.setItem(Gt,Ji),ur(!0))}},ui),(0,le.useEffect)(()=>{vi(Rn)},[Nn,Rn]),(0,le.useEffect)(()=>{Nn&&Sn&&Nn.focus()},[Nn,Sn]),(0,le.useEffect)(()=>{if(wn&&Nn){let hr=function(ri){let Qi=ri.target;if(Yr.current){let Qr=Qi.scrollTop/Qi.scrollHeight;Yr.current.scrollTop=Yr.current.scrollHeight*Qr}};const rr=Nn.getScrollerElement();return rr.addEventListener("scroll",hr),()=>{rr.removeEventListener("scroll",hr)}}},[Nn,wn]),(0,le.useEffect)(()=>{if(Nn&&pi){let hr=function(rr,ri){pi(rr,ri)};return Nn.on("beforeChange",hr),()=>{Nn.off("beforeChange",hr)}}},[Nn,pi]),(0,le.useEffect)(()=>{if(Nn&&$n){let hr=function(){$n(Nn.getValue())};return Nn.on("blur",hr),()=>{Nn.off("blur",hr)}}},[Nn,$n]);function Kr(hr,rr){var ri=hr.getDoc(),Qi=ri.getCursor(),Qr=ri.getLine(Qi.line),zo=Qr.charAt(Qi.ch-1),Oo=Qr.lastIndexOf("@\u2581@",Qi.ch),Co=Qr.lastIndexOf("@\u2581\u2581@",Qi.ch),Go=Oo>Co?Oo:Co,Lo=Oo>Co?3:4;if(Ri.indexOf(zo)===-1)return null;if(console.log("change1:",rr,hr,Qr,Qi,Go,Oo,Co,zo),Go>=0&&Qi.ch-Go<5){var Sa=Go+Lo;return ri.replaceRange("",{line:Qi.line,ch:Go},{line:Qi.line,ch:Sa}),{line:Qi.line,ch:Sa}}return null}(0,le.useEffect)(()=>{if(Nn){let hr=function(rr,ri){const Qi=rr.getValue();zr(Qi),mr(new Date().getTime()),rr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Wt&&(ii?Wt(Qi,er(Qi)):Wt(Qi))};return Nn.on("change",hr),()=>{Nn.off("change",hr)}}},[Nn,Wt]),(0,le.useEffect)(()=>{if(Nn)if(Zt==null)Nn.setValue(""),zr("");else{const hr=window.scrollY||window.pageYOffset;Zt!==Nn.getValue()&&(Nn.setValue(Zt),zr(Zt),Nn.setCursor(ai?1:Nn.lineCount(),0),window.scrollTo(0,hr))}},[Nn,Zt]);const Ti=(0,le.useCallback)(hr=>{const rr=Nn.getCursor(),ri=Nn.getSelection();let Qi=ri.split(`
`);switch(hr){case"bold":return Nn.replaceSelection("**"+ri+"**"),ri===""&&Nn.setCursor(rr.line,rr.ch+2),Nn.focus();case"italic":return Nn.replaceSelection("*"+ri+"*"),ri===""&&Nn.setCursor(rr.line,rr.ch+1),Nn.focus();case"code":return Nn.replaceSelection("`"+ri+"`"),ri===""&&Nn.setCursor(rr.line,rr.ch+1),Nn.focus();case"inline-latex":return Wi("inline-latex"),Nn.focus();case"latex":return Nn.replaceSelection("```latex\n"+ri+"\n```"),Nn.setCursor(rr.line+1,ri.length+1),Nn.focus();case"line-break":return Nn.replaceSelection(`<br/>
`),Nn.focus();case"list-ul":return ri===""?Nn.replaceSelection("- "+ri):Nn.replaceSelection(Qi.map(Qr=>Qr===""?"":`- ${Qr}`).join(`
`)),Nn.focus();case"list-ol":return ri===""?Nn.replaceSelection("1. "+ri):Nn.replaceSelection(Qi.map((Qr,zo)=>Qr===""?"":`${zo+1}. ${Qr}`).join(`
`)),Nn.focus();case"add-null-ch":return ri===""&&Nn.setCursor(rr.line,rr.ch),Nn.replaceSelection(bi),Nn.focus();case"add-signal":return ri===""&&Nn.setCursor(rr.line,rr.ch),Nn.replaceSelection(ke),Nn.focus();case"add-multiple":return ri===""&&Nn.setCursor(rr.line,rr.ch),Nn.replaceSelection(Ri),Nn.focus();case"inster-template-1":return ri===""&&Nn.setCursor(rr.line,rr.ch),Nn.replaceSelection(gi),Nn.focus();case"eraser":return Nn.setValue(""),Nn.focus();case"trigger-watch":return vi(!wn),Nn.focus();case"trigger-full-screen":return Bi(!Ni),Nn.focus();case ci:Wi(ci);return;case Ht:Wi(Ht);return;case zn:Wi(zn);return;case Fn:Wi(Fn);return;case"maths-latex":Wi("maths-latex");return;case yt:Wi(yt);return;case fi:Wi(fi);return;default:throw new Error}},[Nn,wn,Ni]),lt=(0,le.useCallback)((hr,rr)=>{var ri,Qi,Qr,zo,Oo,Co;switch(Wi(""),Fi){case ci:const{title:es,link:gn}=hr;return Nn.replaceSelection(`[${es}](${gn})`),Nn.focus();case Ht:const{language:oa,content:kl}=hr;return Nn.replaceSelection(["```"+oa,kl,"```"].join(`
`)),Nn.focus();case"maths-latex":for(var Go=atob(hr),Lo=new Uint8Array(Go.length),Sa=0;Sa<Go.length;Sa++)Lo[Sa]=Go.charCodeAt(Sa);var sa=new Blob([Lo],{type:"image/png"});(0,Nt.I)(sa,Ga=>{Ga.id?Nn.replaceSelection(`![,](/api/attachments/${Ga.id}?type=${Ga.content_type})`):(Ga==null?void 0:Ga.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Nn.replaceSelection("`$$"+hr+"$$`");break;case zn:case Fn:case Pn:const{src:Ha,alt:yl}=hr,Io=rr,lu=(Qr=(Qi=(ri=Io==null?void 0:Io.name)==null?void 0:ri.split("."))==null?void 0:Qi.pop)==null?void 0:Qr.call(Qi);return((zo=Io==null?void 0:Io.type)==null?void 0:zo.indexOf("image"))>-1||!(Io!=null&&Io.type)?Io!=null&&Io.align||Io!=null&&Io.width?Nn.replaceSelection(`<p style="text-align:${Io.align||"initial"}"><img width="${Io.width?Io.width+"%":"initial"}" src="${Ha}" alt="${yl||""}" /></p>`):Nn.replaceSelection(`<img width="100%" src="${Ha}" alt="${yl||""}" />`):((Oo=Io==null?void 0:Io.type)==null?void 0:Oo.indexOf("video"))>-1?Nn.replaceSelection(`<video width="100%" controls src="${Ha}"></video>`):((Co=Io==null?void 0:Io.type)==null?void 0:Co.indexOf("pdf"))>-1?Nn.replaceSelection(`<a href="${Ha}?type=${Io.type}&disposition=inline" target="_blank">${Io.name}</a>`):Ii.includes(lu)?Nn.replaceSelection(`<a href="${Ha}?type=office&disposition=inline" target="_blank">${Io.name}</a>`):Nn.replaceSelection(`[${Io.name}](${Ha})`),Nn.focus();case fi:const{row:Ln,col:Uo,align:da}=hr;let sl=`
`;for(let Ga=0;Ga<Ln;Ga++){let Xs=[],ps=[];for(let dr=0;dr<Uo;dr++)Ga===1&&ps.push(Li[da]),Xs.push(" ");Ga===1&&(sl+=`| ${ps.join(" | ")} |
`),sl+=`| ${Xs.join(Uo===1?"":" | ")} |
`}return Nn.replaceSelection(sl+`
`),Nn.focus();default:throw new Error}},[Nn,Fi]),xo=(0,le.useMemo)(()=>{switch(Fi){case ci:return le.createElement(dn,{callback:lt,onCancel:Ar});case Ht:return le.createElement(En.Z,{callback:lt,onCancel:Ar});case zn:return le.createElement(Nt.Z,{callback:lt,onCancel:Ar});case yt:return le.createElement(Pt,{callback:lt,onCancel:Ar});case fi:return le.createElement(on,{callback:lt,onCancel:Ar});case"maths-latex":return le.createElement(fn,{showSaveButton:!0,callback:lt});case"inline-latex":return le.createElement(An.Z,{showSaveButton:!0,callback:lt});default:return null}},[Fi]);function Ar(){Wi("")}(0,le.useEffect)(()=>{if(Ur.current){let hr=function(Oo){Qr=!0,zo=Oo.pageY},rr=function(){Qr=!1},ri=function(Oo){if(Qr){let Co=Oo.pageY-zo;Co<0&&(Co=0),Co>300&&(Co=300);let Go=rn+Co+"px";Mr(Go)}},Qi=Ur.current,Qr=!1,zo=0;return Qi.addEventListener("mousedown",hr),document.addEventListener("mousemove",ri),document.addEventListener("mouseup",rr),()=>{Qi.removeEventListener("mousedown",hr),document.removeEventListener("mousemove",ri),document.removeEventListener("mouseup",rr)}}},[Nn,Ur]),(0,le.useEffect)(()=>{Mr(rn)},[rn]);const Or=ki(Rt),no=ki(Tr),po={width:Or,height:no},Vi=(0,le.useMemo)(()=>{if(cr){let hr=new Date(cr),rr=hr.getHours(),ri=hr.getMinutes(),Qi=hr.getSeconds();return rr=rr<10?"0"+rr:rr,ri=ri<10?"0"+ri:ri,Qi=Qi<10?"0"+Qi:Qi,`${rr}:${ri}:${Qi}`}return 0},[cr]),er=hr=>{const rr=[];if(ii){let ri=-1;hr=hr.replace(/(@▁▁@|@▁@)/g,function(Qi,Qr,zo){rr.push({multiLine:Qi!==ke})})}return rr};function Ir(){window.sessionStorage.removeItem(Gt),ur(!1),mr(0)}function wr(){ur(!1),mr(0),Nn.setValue(window.sessionStorage.getItem(Gt))}(0,le.useEffect)(()=>{Di[Fi]&&Fi!==Fn&&Fi!==yt&&setTimeout(()=>{const hr=document.getElementsByClassName("markdown-popup-form")[0],rr=window.innerWidth/2-hr.offsetWidth/2,ri=window.innerHeight/2-hr.offsetHeight/2;br(rr),pr(ri)},0)},[Fi]);const kr=hr=>{hr.preventDefault();const rr=hr.clientX-Bn,ri=hr.clientY-Er;document.body.onmousemove=Qi=>{let Qr=Qi.clientX-rr,zo=Qi.clientY-ri;const Oo=document.getElementsByClassName("markdown-popup-form")[0],Co=window.innerWidth-Oo.offsetWidth,Go=window.innerHeight-Oo.offsetHeight;Qr=Math.max(0,Math.min(Qr,Co)),zo=Math.max(0,Math.min(zo,Go)),Ho(Qi.clientX,Qi.clientY,rr,ri)&&(br(Qr),pr(zo))},document.body.onmouseup=function(){document.body.onmousemove=null}},Ho=(hr,rr,ri,Qi)=>{const Qr=document.body.clientHeight,zo=document.body.clientWidth;return hr<20&&ri>hr||hr>zo-20&&ri<hr||rr<20&&Qi>rr||rr>Qr-20&&Qi<rr?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return le.createElement(le.Fragment,null,le.createElement("div",{className:"markdown-editor-wrapper",ref:Xr},le.createElement("div",{className:`markdown-editor-container ${Ue} ${wn?"on-preview":""} ${Xt?"mini":""} ${Ni?"full-screen":""}`,style:po},le.createElement(ot,{insertTemp:Jn,watch:wn,fullScreen:Ni,showNullButton:yn,showNullProgramButton:ii,onActionCallback:Ti,hidetoolBar:xi,extraUse:Zi}),le.createElement("div",{className:"markdown-editor-body"},le.createElement("div",{className:"codemirror-container"},le.createElement("textarea",{ref:$r,placeholder:ji})),wn?le.createElement("div",{ref:Yr,className:"preview-container"},qt==="stex"&&le.createElement(st,{value:Ji}),qt!=="stex"&&le.createElement(mt.Z,{disabledFill:Mn,showProgramFill:ii,value:Ji})):null))),ti?le.createElement("a",{ref:Ur,className:"editor-resize"}):null,Fi===Fn&&le.createElement(si,{callback:lt,onCancel:Ar}),Fi===yt&&le.createElement(Pt,{callback:lt,onCancel:Ar}),le.createElement(rt.Z,null,Di[Fi]&&Fi!==Fn&&Fi!==yt?le.createElement(cn.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Bn,top:Er},title:le.createElement("div",{style:{cursor:"move"},onMouseDown:kr},Di[Fi]),open:!0,onCancel:Ar,footer:null,destroyOnClose:!0,width:Fi===yt?"1200px":null,height:Fi===yt?"80vh":null,className:"markdown-popup-form"},xo):null))}},35944:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return Be},I:function(){return ot}});var le=de(28284),Le=de(6767),De=de(37568),Ie=de(77736),Ye=de(71051),Fe=de(47889),Ve=de(99571),Xe=de(77665),qe=de(59301),Je=de(59301),mt=Object.defineProperty,st=Object.defineProperties,Ct=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,he=(rt,ft,bt)=>ft in rt?mt(rt,ft,{enumerable:!0,configurable:!0,writable:!0,value:bt}):rt[ft]=bt,se=(rt,ft)=>{for(var bt in ft||(ft={}))te.call(ft,bt)&&he(rt,bt,ft[bt]);if(je)for(var bt of je(ft))ne.call(ft,bt)&&he(rt,bt,ft[bt]);return rt},ge=(rt,ft)=>st(rt,Ct(ft));const{useForm:Se}=le.default,Ce={width:280,marginRight:10},Oe={labelCol:{span:5},wrapperCol:{span:19}};var Be=({callback:rt,onCancel:ft})=>{const[bt]=Se();let ut=(0,qe.useRef)();function Tt(Cn){ut.current.width=bt.getFieldValue("width"),ut.current.align=bt.getFieldValue("align"),rt(Cn,ut.current)}function Dt(Cn,vn){if(Cn.status===-1){Le.ZP.error(Cn.message);return}bt.setFieldsValue({src:`/api/attachments/${Cn.id}`,type:vn.type})}function en(Cn){let vn=Cn.target.files[0];ut.current=vn,ot(vn,Dt)}return Je.createElement(le.default,ge(se({form:bt},Oe),{className:"upload-image-panel",onFinish:Tt,style:{width:470,overflow:"hidden"}}),Je.createElement(le.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Je.createElement("div",{className:"flex-container"},Je.createElement(le.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Je.createElement(De.default,{style:Ce})),Je.createElement(Qe,{onFileChange:en}))),Je.createElement(le.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Je.createElement(De.default,{style:{width:264}})),Je.createElement(le.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Je.createElement(Ie.Z,null,Je.createElement(le.default.Item,{name:"width",style:{margin:0}},Je.createElement(Ye.Z,{style:{width:264}})),Je.createElement("span",{className:"ml8"},"%"))),Je.createElement(le.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Je.createElement(Fe.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"}]})),Je.createElement("aside",null,Je.createElement(le.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Je.createElement(Ve.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Je.createElement(Ve.ZP,{type:"default",onClick:ft},"\u53D6\u6D88"))))};function Qe({onFileChange:rt}){return Je.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Je.createElement("input",{type:"file",onChange:rt}))}function ot(rt,ft){if(!rt)throw new String("\u6CA1\u6709\u6587\u4EF6");let bt=new FormData;bt.append("editormd-image-file",rt),bt.append("file_param_name","editormd-image-file"),bt.append("byxhr","true");var ut=new window.XMLHttpRequest;ut.withCredentials=!0,ut.addEventListener("load",function(Tt){ft(JSON.parse(Tt.target.responseText),rt)},!1),ut.addEventListener("error",function(Tt){console.error(Tt)},!1),ut.open("POST",`${Xe.KI}/api/attachments.json`),ut.send(bt)}},51498:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return De}});var le=de(59301),Le=de(4676);class De extends le.Component{constructor(Ye){super(Ye);const Fe=window.document;this.node=Fe.createElement("div"),Fe.body.appendChild(this.node)}render(){const{children:Ye}=this.props;return(0,Le.createPortal)(Ye,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},58531:function(Ge,be,de){"use strict";de.d(be,{SV:function(){return Lt},ZP:function(){return at}});var le=de(59301),Le=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"]},Ie={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(`
`)}]},Fe={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 Xe=de(53184),qe=de.n(Xe),Je=Object.defineProperty,mt=Object.defineProperties,st=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ne=(Pt,Vt,It)=>Vt in Pt?Je(Pt,Vt,{enumerable:!0,configurable:!0,writable:!0,value:It}):Pt[Vt]=It,he=(Pt,Vt)=>{for(var It in Vt||(Vt={}))je.call(Vt,It)&&ne(Pt,It,Vt[It]);if(Ct)for(var It of Ct(Vt))te.call(Vt,It)&&ne(Pt,It,Vt[It]);return Pt},se=(Pt,Vt)=>mt(Pt,st(Vt)),ge=(Pt,Vt,It)=>new Promise((an,sn)=>{var on=zt=>{try{un(It.next(zt))}catch(xn){sn(xn)}},bn=zt=>{try{un(It.throw(zt))}catch(xn){sn(xn)}},un=zt=>zt.done?an(zt.value):Promise.resolve(zt.value).then(on,bn);un((It=It.apply(Pt,Vt)).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"]}},Ce=(Pt,Vt)=>Vt.map(It=>({label:It,kind:Pt.languages.CompletionItemKind.Keyword,insertText:It})),Oe=Pt=>Object.keys(Se.tables).map(Vt=>({label:Vt,kind:Pt.languages.CompletionItemKind.Variable,insertText:Vt})),Be=(Pt,Vt)=>{const It=Se.tables[Pt];return It?It.map(an=>({label:an,kind:Vt.languages.CompletionItemKind.Field,insertText:an})):[]};function Qe(Pt,Vt,It,an,sn){let on=Vt.getWordUntilPosition(It),bn={startLineNumber:It.lineNumber,endLineNumber:It.lineNumber,startColumn:on.startColumn,endColumn:on.endColumn},un=an.map(zt=>({label:zt,kind:Pt.languages.CompletionItemKind.Keyword,insertText:zt,insertTextRules:Pt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:bn}));return sn.map(zt=>{un.push(se(he({},zt),{range:bn}))}),un}var ot=Pt=>{Se.languages.map(sn=>(Pt.languages.registerDocumentFormattingEditProvider(sn,{provideDocumentFormattingEdits(on,bn,un){return ge(this,null,function*(){const zt=qe()(on.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:on.getFullModelRange(),text:zt}]})}}),sn));const Vt=Ye.quickKey.map(sn=>({label:sn.label,kind:Pt.languages.CompletionItemKind.Method,insertText:sn.content,insertTextRules:Pt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),It=Fe.quickKey.map(sn=>({label:sn.label,kind:Pt.languages.CompletionItemKind.Method,insertText:sn.content,insertTextRules:Pt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),an=Ie.quickKey.map(sn=>({label:sn.label,kind:Pt.languages.CompletionItemKind.Method,insertText:sn.content,insertTextRules:Pt.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Pt.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(sn,on){var bn=sn.getWordUntilPosition(on),un={startLineNumber:on.lineNumber,endLineNumber:on.lineNumber,startColumn:bn.startColumn,endColumn:bn.endColumn},zt=sn.getLineContent(on.lineNumber).substring(bn.startColumn-2,bn.endColumn);return{suggestions:[...Ye.keywords.map(xn=>({label:xn,kind:Pt.languages.CompletionItemKind.Function,documentation:xn,insertText:xn,insertTextRules:Pt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:un})),...Ye.quickKey.map(xn=>({label:xn.label,kind:Pt.languages.CompletionItemKind.Function,documentation:xn.content,insertText:zt.startsWith("#")?xn.content.replace(/#/,""):xn.content,insertTextRules:Pt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:un}))]}}}),Pt.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(sn,on){var bn=sn.getWordUntilPosition(on),un={startLineNumber:on.lineNumber,endLineNumber:on.lineNumber,startColumn:bn.startColumn,endColumn:bn.endColumn};return{suggestions:[...De.keywords.map(zt=>({label:zt,kind:Pt.languages.CompletionItemKind.Function,documentation:zt,insertText:zt,insertTextRules:Pt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:un}))]}}}),Pt.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(sn,on){var bn=sn.getWordUntilPosition(on),un={startLineNumber:on.lineNumber,endLineNumber:on.lineNumber,startColumn:bn.startColumn,endColumn:bn.endColumn},zt=sn.getLineContent(on.lineNumber).substring(bn.startColumn-2,bn.endColumn);return{suggestions:[...Ie.keywords.map(xn=>({label:xn,kind:Pt.languages.CompletionItemKind.Function,documentation:xn,insertText:xn,insertTextRules:Pt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:un})),...Ie.quickKey.map(xn=>({label:xn.label,kind:Pt.languages.CompletionItemKind.Function,documentation:xn.content,insertText:zt.startsWith("#")?xn.content.replace(/#/,""):xn.content,insertTextRules:Pt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:un}))]}}}),Pt.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(sn,on){var bn=sn.getWordUntilPosition(on),un={startLineNumber:on.lineNumber,endLineNumber:on.lineNumber,startColumn:bn.startColumn,endColumn:bn.endColumn},zt=sn.getLineContent(on.lineNumber).substring(bn.startColumn-2,bn.endColumn);return{suggestions:[...Ve.keywords.map(xn=>({label:xn,kind:Pt.languages.CompletionItemKind.Function,documentation:xn,insertText:xn,insertTextRules:Pt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:un})),...Ve.quickKey.map(xn=>({label:xn.label,kind:Pt.languages.CompletionItemKind.Function,documentation:xn.content,insertText:zt.startsWith("#")?xn.content.replace(/#/,""):xn.content,insertTextRules:Pt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:un}))]}}}),Pt.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(sn,on){var bn=sn.getWordUntilPosition(on),un={startLineNumber:on.lineNumber,endLineNumber:on.lineNumber,startColumn:bn.startColumn,endColumn:bn.endColumn},zt=sn.getLineContent(on.lineNumber).substring(bn.startColumn-2,bn.endColumn);return{suggestions:[...Fe.keywords.map(xn=>({label:xn,kind:Pt.languages.CompletionItemKind.Function,documentation:xn,insertText:xn,insertTextRules:Pt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:un})),...Fe.quickKey.map(xn=>({label:xn.label,kind:Pt.languages.CompletionItemKind.Function,documentation:xn.content,insertText:zt.startsWith("#")?xn.content.replace(/#/,""):xn.content,insertTextRules:Pt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:un}))]}}})};const rt="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var ft=Object.defineProperty,bt=(Pt,Vt,It)=>Vt in Pt?ft(Pt,Vt,{enumerable:!0,configurable:!0,writable:!0,value:It}):Pt[Vt]=It,ut=(Pt,Vt,It)=>bt(Pt,typeof Vt!="symbol"?Vt+"":Vt,It);const Tt=class AE{constructor(Vt,It,an){this.placeholder=Vt,this.editor=It,this.monaco=an,It.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)}};ut(Tt,"ID","editor.widget.placeholderHint");var en=Tt,Cn=de(96236),vn=de(6767),pn=de(25399),mn=de(89392),Mt=de(41312),ct=de(56102),nt=Object.defineProperty,dn=Object.defineProperties,En=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertySymbols,cn=Object.prototype.hasOwnProperty,ln=Object.prototype.propertyIsEnumerable,_n=(Pt,Vt,It)=>Vt in Pt?nt(Pt,Vt,{enumerable:!0,configurable:!0,writable:!0,value:It}):Pt[Vt]=It,kn=(Pt,Vt)=>{for(var It in Vt||(Vt={}))cn.call(Vt,It)&&_n(Pt,It,Vt[It]);if(Nt)for(var It of Nt(Vt))ln.call(Vt,It)&&_n(Pt,It,Vt[It]);return Pt},si=(Pt,Vt)=>dn(Pt,En(Vt)),kt=(Pt,Vt)=>{var It={};for(var an in Pt)cn.call(Pt,an)&&Vt.indexOf(an)<0&&(It[an]=Pt[an]);if(Pt!=null&&Nt)for(var an of Nt(Pt))Vt.indexOf(an)<0&&ln.call(Pt,an)&&(It[an]=Pt[an]);return It},Kn=(Pt,Vt,It)=>new Promise((an,sn)=>{var on=zt=>{try{un(It.next(zt))}catch(xn){sn(xn)}},bn=zt=>{try{un(It.throw(zt))}catch(xn){sn(xn)}},un=zt=>zt.done?an(zt.value):Promise.resolve(zt.value).then(on,bn);un((It=It.apply(Pt,Vt)).next())});function hi(Pt){return/^\d+$/.test(Pt)?`${Pt}px`:Pt}function et(){}let _e=!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(Pt=[]){let Vt=Pt;if(Array.isArray(Pt)){for(let It=0;It<Pt.length;It++){let an=xe[Pt[It]];if(an)return an}return Vt[0]}return xe[Vt]||Vt}let Me=null;const Ae=()=>Kn(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Pt){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Pt)}});var at=Pt=>{var Vt=Pt,{width:It="100%",height:an="100%",value:sn,language:on="javascript",style:bn={},options:un={},overrideServices:zt={},theme:xn="vs-dark",onEditBlur:fn,isCopy:An=!1,onSave:nn,autoHeight:ci=!1,forbidCopy:zn=!1,onChange:yt=et,editorDidMount:Fn=et,onFocus:Pn=et,onBreakPoint:Ht=et,breakPointValue:fi=[],filename:zi="educoder.txt",errorLine:Li,errorContent:Dn="",highlightLine:qi,openBreakPoint:Ui=!1,placeholder:ui="",showMiniMap:bi=!0}=Vt,Ri=kt(Vt,["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)(),gi=(0,le.useRef)({}),Ii=(0,le.useRef)(),ki=(0,le.useRef)(),ar=(0,le.useRef)([]),Nr=(0,le.useRef)(!1),sr=(0,le.useRef)(),Di=(0,le.useRef)(),Ei=(0,le.useRef)(!1),[Zt,Wt]=(0,le.useState)(!1);function Rt(){let pi;return ke.current&&(pi=new Le.Z(Kt=>{for(let Ue of Kt)(Ue.target.offsetHeight>0||Ue.target.offsetWidth>0)&&gi.current.instance.layout()}),pi.observe(ke.current)),pi}function rn(){vn.ZP.warning({content:decodeURIComponent(rt),key:"monaco-editor-tip"})}const Xt=()=>{let pi=gi.current.instance;if(sn!=null&&pi&&Zt){const Kt=pi.getModel();Kt&&sn!==Kt.getValue()&&(_e=!0,Kt.setValue(sn),pi.layout(),_e=!1)}};(0,le.useEffect)(()=>{const pi=Mt.Z.subscribe("formatDocument",Kt=>{var Ue;let wi=gi.current.instance;(Ue=wi==null?void 0:wi.getAction)==null||Ue.call(wi,"editor.action.formatDocument").run()});return window.updateMonacoValue=Kt=>{yt(Kt)},pi},[]),(0,le.useEffect)(()=>{var pi;let Kt=gi.current.instance;ki.current&&clearTimeout(ki.current),ki.current=setTimeout(()=>{Xt()},500),sn&&(sn!=null&&sn.length)&&((pi=Kt==null?void 0:Kt.updateOptions)==null||pi.call(Kt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(sn.split(/\r\n|\r|\n/g).length))+3,5)}))},[sn,Zt,gi.current]),(0,le.useEffect)(()=>{if(Li&&gi.current&&gi.current.instance){let Kt=gi.current.instance;Kt.changeViewZones(function(Ue){var wi=document.createElement("div");wi.style.padding="10px 20px",wi.style.width="calc(100% - 20px)",wi.className="my-error-line-wrp",wi.innerHTML=Dn,Ue.addZone({afterLineNumber:Li||11,heightInLines:3,domNode:wi})});var pi={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}};Kt.addOverlayWidget(pi),Kt.revealPositionInCenter({lineNumber:20,column:1})}},[Li,gi.current,Zt]);const Sn=(pi="",Kt)=>{if(!pi||pi.trim()==="")return!0;const wi=gi.current.instance.getModel().getLineTokens(Kt);let ai=!1;for(let Mn=0;Mn<2;Mn++)wi.getStandardTokenType(Mn)===1&&(ai=!0);return ai};(0,le.useEffect)(()=>{var pi;const Kt=(pi=gi.current)==null?void 0:pi.instance;if(Kt&&Zt&&zn){const Ue=Kt.onDidBlurEditorWidget(()=>{Ei.current=!1}),wi=Kt.onDidFocusEditorText(()=>{Ei.current=!0});return()=>{Ue.dispose(),wi.dispose()}}},[gi.current,Zt,zn]),(0,le.useEffect)(()=>{var pi;if((pi=gi.current)!=null&&pi.instance&&Zt&&Ui){let Kt=gi.current.instance,Ue=Kt.getModel();if(!Ue)return;(()=>{var vi;let Ni=[],Bi=[];const Fi=Ue.getAllDecorations();for(let cr of Fi)cr.options.className==="highlighted-line"&&(Ni.push((vi=cr==null?void 0:cr.range)==null?void 0:vi.startLineNumber),Bi.push(cr==null?void 0:cr.id));if(qi===Ni[0])return;Ue.deltaDecorations(Bi,[]);const Wi=Ue.getLineCount();qi&&qi<=Wi&&(Kt.deltaDecorations([],[{range:new Me.Range(qi,1,qi,Ue.getLineMaxColumn(qi)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Kt.revealLineInCenter(qi))})();const ai=(vi=!1)=>{var Ni;let Bi=[],Fi=[];const Wi=Ue.getAllDecorations();for(let cr of Wi)cr.options.linesDecorationsClassName==="breakpoints-select"&&(Bi.push((Ni=cr==null?void 0:cr.range)==null?void 0:Ni.startLineNumber),Fi.push(cr==null?void 0:cr.id));if(vi)return{lines:Bi,ids:Fi};Ht(Bi)},Mn=vi=>Kn(void 0,null,function*(){let Ni={range:new Me.Range(vi,1,vi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Ue.deltaDecorations([],[Ni]),ai()}),ji=vi=>Kn(void 0,null,function*(){let Ni=[];const Bi=Kt.getLineDecorations(vi);for(let Fi of Bi)Fi.options.linesDecorationsClassName==="breakpoints-select"&&Ni.push(Fi.id);yield Ue.deltaDecorations(Ni,[]),ai()}),Ki=vi=>{let Ni=Kt.getLineDecorations(vi);for(let Bi of Ni)if(Bi.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,mn.isEqual)(fi,ai(!0).lines)){Ue.deltaDecorations(ai(!0).ids,[]);const vi=fi.map(Ni=>({range:new Me.Range(Ni,1,Ni,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Ue.deltaDecorations([],vi)}const Zi=Kt.onDidChangeModelContent(vi=>{let Ni=Kt.getPosition();if(Ni){let Bi=Ni.lineNumber;clearTimeout(Di.current),Di.current=setTimeout(()=>{Sn(Ue.getLineContent(Bi),Bi)?ji(Bi):Ki(Bi)?(ji(Bi),Mn(Bi)):ai()},100)}}),Nn=Kt.onMouseDown(vi=>{var Ni,Bi,Fi;if(vi.target.detail&&((Fi=(Bi=(Ni=vi.target)==null?void 0:Ni.element)==null?void 0:Bi.className)!=null&&Fi.includes("line-numbers"))){let Wi=vi.target.position.lineNumber;if(Sn(Ue.getLineContent(Wi),Wi))return;Ki(Wi)?ji(Wi):Mn(Wi)}}),Jt=vi=>{let Ni={range:new Me.Range(vi,1,vi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};ar.current=Kt.deltaDecorations(ar.current,[Ni])},Ji=()=>{ar.current=Kt.deltaDecorations(ar.current,[])},zr=Kt.onMouseMove(vi=>{var Ni,Bi,Fi;if(Ji(),vi.target.detail&&((Fi=(Bi=(Ni=vi.target)==null?void 0:Ni.element)==null?void 0:Bi.className)!=null&&Fi.includes("line-numbers"))){let Wi=vi.target.position.lineNumber;if(Sn(Ue.getLineContent(Wi),Wi))return;Jt(Wi)}}),wn=Kt.onMouseLeave(()=>{Ji()});return()=>{Zi.dispose(),Nn.dispose(),zr.dispose(),wn.dispose()}}},[gi.current,Zt,fi,qi,Ui,on]),(0,le.useEffect)(()=>{var pi;(pi=gi.current)!=null&&pi.instance&&Ui&&gi.current.instance.setPosition({lineNumber:0,column:0})},[qi]);function Rn(){let pi=gi.current.instance;if(pi){const Kt=pi.getSelection(),Ue=gi.current.pastePos||{},wi=new Me.Range(Ue.startLineNumber||Kt.endLineNumber,Ue.startColumn||Kt.endColumn,Ue.endLineNumber||Kt.endLineNumber,Ue.endColumn||Kt.endColumn);setTimeout(()=>{pi.executeEdits("",[{range:wi,text:""}])},300)}}function Jn(pi){(window.navigator.platform.match("Mac")?pi.metaKey:pi.ctrlKey)&&pi.keyCode==83&&(pi.preventDefault(),nn())}const qt=()=>{if(ci&&gi.current.instance){const pi=gi.current.instance.getContentHeight();Ut(pi<an?an:pi)}else Ut(an)};function Gt(pi){var Kt=document.createEvent("MouseEvents");Kt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),pi.dispatchEvent(Kt)}const ti=pi=>{if(!Ei.current)return;const{keyCode:Kt,ctrlKey:Ue,metaKey:wi,target:ai,type:Mn}=pi;return(Mn==="paste"||(Kt===67||Kt===86)&&(wi||Ue))&&ai.nodeName==="TEXTAREA"&&(rn(),pi.preventDefault()),!1};function pt(pi,Kt){var Ue=window.URL||window.webkitURL||window,wi=new Blob([Kt]),ai=document.createElementNS("http://www.w3.org/1999/xhtml","a");ai.href=Ue.createObjectURL(wi),ai.download=pi,Gt(ai)}(0,le.useEffect)(()=>{qt()},[qt]),(0,le.useEffect)(()=>{ke.current&&!Zt&&Promise.all([de.e(8909),de.e(503)]).then(de.bind(de,71448)).then(pi=>{try{Me=pi,gi.current.instance=Me.editor.create(ke.current,{value:sn,language:Te(on),theme:xn,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:bi||!1}},zt);const Kt=gi.current.instance;let ai=[...Cn.BH._menuItems].find(Zi=>Zi[0]._debugName=="EditorContext")[1],Mn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ji=(Zi,Nn)=>{var Jt,Ji;let zr=Zi._first;do Nn.includes((Ji=(Jt=zr.element)==null?void 0:Jt.command)==null?void 0:Ji.id)&&Zi._remove(zr);while(zr=zr.next)};if(Fn(Kt,Me),setTimeout(()=>{qt(),gi.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{pt(zi||"educoder.txt",Kt.getValue())}})},500),gi.current.subscription=Kt.onDidChangeModelContent(Zi=>{Nr.current?clearTimeout(sr.current):(qt(),yt(Kt.getValue(),Zi)),sr.current=setTimeout(()=>{Nr.current=!1},500)}),window.Monaco||ot(Me,Te(on)),zn&&(ji(ai,Mn),ke.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",ti),window.removeEventListener("paste",ti),window.addEventListener("keydown",ti),window.addEventListener("paste",ti)),window.Monaco=Me,fn&&Kt.onDidBlurEditorWidget(()=>{fn(Kt.getValue())}),Pn&&Kt.onDidFocusEditorText(()=>{zn&&Ae(),Pn(Kt.getValue())}),zn){Ae();try{Kt.onDidPaste(Zi=>{const Nn=Kt.getSelection(),Jt=gi.current.pastePos||{},Ji=new Me.Range(Jt.startLineNumber||Nn.endLineNumber,Jt.startColumn||Nn.endColumn,Jt.endLineNumber||Nn.endLineNumber,Jt.endColumn||Nn.endColumn);Kt.executeEdits("",[{range:Zi.range,text:""}])})}catch(Zi){}}let Ki=Rt();return ui&&typeof ui=="string"&&new en(ui,Kt,Me),Wt(!0),()=>{const Zi=gi.current.instance;Zi.dispose();const Nn=Zi.getModel();Nn&&Nn.dispose(),gi.current.subscription&&gi.current.subscription.dispose(),Ki.unobserve(ke.current)}}catch(Kt){}})},[]),(0,le.useEffect)(()=>{if(gi.current.instance&&Zt)return document.addEventListener("keydown",Jn,!1),()=>{document.removeEventListener("keydown",Jn)}},[nn,Zt]),(0,le.useEffect)(()=>{let pi=gi.current.instance;if(pi&&Zt){let Kt=Te(on);Me.editor.setModelLanguage(pi.getModel(),Kt)}},[on,Zt]),(0,le.useEffect)(()=>{gi.current.instance&&Zt&&Me.editor.setTheme(xn)},[xn,Zt]),(0,le.useEffect)(()=>{let pi=gi.current.instance;Ii.current=un,pi&&Zt&&(pi.updateOptions(kn({},un)),setTimeout(()=>{pi.getModel().updateOptions(kn({},un))},200))},[JSON.stringify(un),Zt]),(0,le.useEffect)(()=>{let pi=gi.current.instance;pi&&Zt&&pi.layout()},[It,an,Zt]);const[yn,ii]=(0,le.useState)(hi(It)),[xi,Ut]=(0,le.useState)(hi(an)),$n=si(kn({},bn),{width:yn,height:xi,position:"relative"});return le.createElement("div",{className:"my-monaco-editor",ref:ke,style:$n},An&&le.createElement(ct.CopyToClipboard,{text:sn,onCopy:()=>vn.ZP.success("\u590D\u5236\u6210\u529F")},le.createElement(pn.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:Pt="100%",height:Vt="100%",original:It,modified:an,language:sn,options:on={}}){const bn=(0,le.useRef)(),[un,zt]=(0,le.useState)(null);function xn(ci){let zn;return bn.current&&(zn=new Le.Z(yt=>{for(let Fn of yt)(Fn.target.offsetHeight>0||Fn.target.offsetWidth>0)&&ci.layout()}),zn.observe(bn.current)),zn}(0,le.useEffect)(()=>(bn.current&&Promise.all([de.e(8909),de.e(9404)]).then(de.bind(de,2550)).then(ci=>{Me=ci;const zn=Me.editor.createDiffEditor(bn.current,si(kn({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},on),{wordWrap:!0}));zt(zn);let yt=xn(zn);return()=>{zn.dispose();const Fn=zn.getModel();Fn&&Fn.dispose(),yt.unobserve(bn.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,le.useEffect)(()=>{un&&un.setModel({original:Me.editor.createModel(It,sn),modified:Me.editor.createModel(an,sn)})},[It,an,sn,un]);const fn=hi(Pt),An=hi(Vt),nn={width:fn,height:An};return le.createElement("div",{className:"my-diff-editor",ref:bn,style:nn})}},38776:function(Ge,be,de){"use strict";de.d(be,{jL:function(){return Ye},w9:function(){return cn},QD:function(){return zn},cQ:function(){return ct},op:function(){return zt},O5:function(){return sr},_b:function(){return zi},t7:function(){return se},Gi:function(){return Kn},YG:function(){return si},qp:function(){return mt},vr:function(){return Pn},qE:function(){return An},Je:function(){return Ce},wb:function(){return Cn},cq:function(){return Me},tp:function(){return je}});var le=de(59301),Le={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:Di=[],img:Ei,imgWidth:Zt=346,title:Wt,sunTitle:Rt,bannerExtraContent:rn})=>le.createElement("div",{className:Le.banner},le.createElement("div",{className:Le.content},le.createElement("aside",null,le.createElement("p",null,le.createElement("b",null,Wt),le.createElement("span",null,Rt)),Di.length>0&&le.createElement("div",{className:Le.btns},Di.map((Xt,Sn)=>le.createElement("div",{key:Sn,onClick:Xt.click},Xt.name,Xt.sign?le.createElement("img",{src:De,width:39}):null))),rn),Ei&&le.createElement("img",{style:{marginTop:33,marginRight:38},src:Ei,width:Zt}))),Fe={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),Xe=de.n(Ve),qe=de(89392),mt=({dataSource:Di=[],value:Ei,onChange:Zt,onTitleChange:Wt,className:Rt,title:rn,titleWidth:Xt=41,style:Sn={},fontColor:Rn="#6A7283",showCount:Jn})=>{const[qt,Gt]=(0,le.useState)(0),[ti,pt]=(0,le.useState)(!1),yn=(0,le.useRef)(null),ii=(0,le.useRef)(null);return(0,le.useEffect)(()=>{var xi;Di.length!==0&&(((xi=yn==null?void 0:yn.current)==null?void 0:xi.clientHeight)>97?Gt(1):Gt(0)),Di.length===0&&Gt(0),pt(!1)},[Di]),le.createElement("div",{className:Xe()(Fe.row,Rt),style:Sn},le.createElement("div",{onClick:(0,qe.throttle)(()=>Wt==null?void 0:Wt(),2e3),style:{width:Xt,marginTop:ti?12:4},className:`${Fe.title} ${Wt?"current":""}`},rn),le.createElement("div",{className:ti?`${Fe.tagsWrap} ${Fe.tagsBorderWrap}`:Fe.tagsWrap},le.createElement("div",{className:Fe.bar,ref:ii,style:qt>0?{height:qt===1?97:"auto",overflow:qt===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},le.createElement("div",{className:Fe.tag,ref:yn},Di==null?void 0:Di.map(xi=>le.createElement("span",{onClick:()=>Zt(xi.id),key:xi.id,style:{color:Rn},className:Ei===xi.id?Fe.active:""},le.createElement("span",{title:xi.name,className:Fe.name},xi.name),!!Jn&&le.createElement("span",{className:Fe.num},xi.count))))),!!qt&&le.createElement(le.Fragment,null,qt===1?le.createElement("div",{onClick:()=>{var xi;Gt(2),((xi=yn==null?void 0:yn.current)==null?void 0:xi.clientHeight)>245?pt(!0):pt(!1)},className:Fe.action},"\u5C55\u5F00",le.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):le.createElement("div",{onClick:()=>{ii.current.scrollTop=0,Gt(1),pt(!1)},className:Fe.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"},je=({dataSource:Di=[],value:Ei,onChange:Zt,className:Wt,style:Rt={}})=>le.createElement("div",{style:Rt,className:Xe()(st.tabs,Wt)},Di.map(rn=>le.createElement("span",{onClick:()=>Zt(rn.id),className:Ei===rn.id?st.active:"",key:rn.id},rn.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:Di=[],value:Ei="",onChange:Zt,onInputChange:Wt=()=>{},className:Rt,style:rn={},placeholder:Xt,allowClear:Sn=!1})=>{var Rn;const[Jn,qt]=(0,le.useState)(""),[Gt,ti]=(0,le.useState)("");(0,le.useEffect)(()=>{var ii;let xi=Ei;(ii=JSON.stringify(Ei))!=null&&ii.includes("{")&&(qt(Ei.id),xi=Ei.value||"");try{ti(decodeURIComponent(xi||""))}catch(Ut){ti(decodeURIComponent(xi||""))}},[Ei]);const pt=()=>{Zt(encodeURIComponent(Gt),Jn||null)},yn=ii=>{ii!==Jn&&(qt(ii),Zt(encodeURIComponent(Gt),ii))};return le.createElement("div",{className:Xe()(te.input,Rt),style:rn},!!Di.length&&le.createElement("div",{className:te.dropdown},le.createElement("div",{className:te.text},(Rn=Di.find(ii=>ii.id===Jn))==null?void 0:Rn.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},Di.map((ii,xi)=>le.createElement("div",{key:xi,onClick:()=>yn(ii.id)},ii.name)))),le.createElement(ne.default,{onPressEnter:pt,value:Gt,onChange:ii=>{ti(ii.target.value),Wt(encodeURIComponent(ii.target.value),Jn||null)},bordered:!1,placeholder:Xt}),le.createElement("i",{onClick:pt,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"},Ce=({value:Di,onChange:Ei,className:Zt,total:Wt,pageSize:Rt,style:rn={}})=>{const Xt=Di<2,Sn=Di>=Math.ceil(Wt/Rt);return Wt<=Rt?le.createElement(le.Fragment,null):le.createElement("div",{className:Xe()(ge.quickPager,Zt),style:rn},le.createElement("div",{onClick:()=>{Xt||Ei(Di-1,"prev")},className:Xt?ge.disabled:""},"\u4E0A\u4E00\u9875"),le.createElement("div",{onClick:()=>{Sn||Ei(Di+1,"next")},className:Sn?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),Qe=de(25399),ot=de(58018),rt=de(13952),ft=de(89299),bt=de(96908),ut=de(57177),Tt=de(81378),Dt=de(63604),Cn=({className:Di,dataSource:Ei=[],col:Zt=4,right:Wt,bottom:Rt=23,precision:rn=0,wrapWidth:Xt=1200,trackEventItems:Sn,loading:Rn})=>{const Jn=Math.floor((Xt-(Zt-1)*Wt)/Zt);return le.createElement(Be.Z,{spinning:Rn},le.createElement("div",{className:Xe()(Oe.list,Di)},!!Ei.length&&Ei.map((qt,Gt)=>{const{name:ti,id:pt,identifier:yn,power:ii,cover_image_id:xi,pic:Ut}=qt;return le.createElement("div",{className:Oe.wrap,key:pt,style:{width:Jn,marginRight:(1+Gt)%Zt===0?0:Wt+rn,marginBottom:Rt}},le.createElement("a",{target:"_blank",href:`/shixuns/${yn}/challenges`,className:Oe.li,onClick:$n=>{$n.preventDefault(),Sn&&(0,ft.L9)([Sn]),ii&&(0,ft.xg)(`/shixuns/${yn}/challenges`)}},le.createElement("div",{className:Oe.img},le.createElement("img",{className:Oe.cover,src:`${Ut}`}),qt.is_jupyter&&le.createElement("img",{className:Oe.sign,src:bt}),qt.is_jupyter_lab&&le.createElement("img",{className:Oe.sign,src:ut}),qt.is_unity_3d&&le.createElement("img",{className:Oe.sign,src:Tt})),le.createElement("div",{className:Oe.name},le.createElement(Qe.Z,{title:ti||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},le.createElement("span",{className:Oe.e},ti||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),le.createElement("div",{className:Oe.tags},le.createElement(Qe.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},le.createElement("span",null,le.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),le.createElement("span",null,qt.challenges_count))),!!qt.myshixuns_count&&le.createElement(Qe.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,qt.myshixuns_count))),le.createElement(Qe.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},le.createElement("span",null,le.createElement("span",null,qt.level))),le.createElement("div",{className:Oe.rate},le.createElement(ot.Z,{allowHalf:!0,disabled:!0,defaultValue:qt.score_info}),le.createElement("span",null,"\xA0",qt.score_info?`${qt.score_info}\u5206`:"5\u5206")))),!ii&&le.createElement("div",{className:Oe.lockWrap},le.createElement("img",{src:`${rt.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")))}),!Ei.length&&le.createElement(Dt.Z,null)))},vn={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"},pn=de(64681),mn=de(59301),ct=({className:Di,dataSource:Ei=[],col:Zt=4,right:Wt,bottom:Rt=23,precision:rn=0,wrapWidth:Xt=1200,trackEventItems:Sn,loading:Rn,onRemove:Jn=()=>{},isCurrent:qt=!0,showAlias:Gt=!1})=>{const ti=Math.floor((Xt-(Zt-1)*Wt)/Zt),pt=[{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 mn.createElement(Be.Z,{spinning:Rn},mn.createElement("div",{className:Xe()(vn.list,Di)},!!(Ei!=null&&Ei.length)&&(Ei==null?void 0:Ei.map((yn,ii)=>{var xi;const{name:Ut,id:$n,identifier:pi,featured:Kt,school_name:Ue,image_url:wi,excellent:ai,is_plan:Mn}=yn;return mn.createElement("div",{key:$n,className:vn.wrap,style:{width:ti,marginRight:(1+ii)%Zt===0?0:Wt+rn,marginBottom:Rt}},mn.createElement("a",{className:vn.li,onClick:ji=>{ji.preventDefault(),ji.stopPropagation(),Sn&&(0,ft.L9)([Sn]),(0,ft.xg)(`/paths/${pi}`)}},mn.createElement("div",{className:vn.img},mn.createElement("img",{className:vn.cover,src:`${wi}`}),qt&&(0,pn.bg)()&&(yn==null?void 0:yn.studying)&&mn.createElement("div",{className:`${vn.movebq} user-path-items`,onClick:ji=>{ji.stopPropagation(),Jn(yn)}},mn.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),mn.createElement("span",{className:"c-red"},"\u79FB\u9664")),(xi=yn==null?void 0:yn.subject_tags)==null?void 0:xi.map((ji,Ki)=>{var Zi,Nn;if(Ki===0){const Ji=(Zi=pt.find(zr=>zr.name==ji))==null?void 0:Zi.swimg;return mn.createElement("img",{className:vn.sign,src:Ji,style:{left:"-4px"}})}const Jt=(Nn=pt.find(Ji=>Ji.name==ji))==null?void 0:Nn.ptimg;return mn.createElement("img",{className:vn.sign,src:Jt,style:{left:`${48+52*(Ki-1)+2*Ki}px`}})}),mn.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(yn==null?void 0:yn.excellent)&&mn.createElement("div",{className:vn.bq},"\u5F00\u653E\u8BFE\u7A0B"))),mn.createElement("div",{className:vn.name},mn.createElement(Qe.Z,{title:Gt&&(yn!=null&&yn.excellent_alias_name)?mn.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Ut}`,mn.createElement("br",null),mn.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${yn==null?void 0:yn.excellent_alias_name}`)):Ut},mn.createElement("span",{className:vn.e},Gt&&(yn==null?void 0:yn.excellent_alias_name)||Ut))),mn.createElement(Qe.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Ue}`},mn.createElement("div",{className:vn.unit},mn.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Ue)),mn.createElement("div",{className:vn.tags},mn.createElement("div",null,mn.createElement(Qe.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},mn.createElement("span",null,mn.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),mn.createElement("span",null,yn.stages_count))),mn.createElement(Qe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},mn.createElement("span",null,mn.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),mn.createElement("span",null,yn.members_count)))))))})),!Ei.length&&mn.createElement(Dt.Z,null)))},nt={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},dn="data:image/png;base64,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",En=de(59301),cn=({className:Di,dataSource:Ei=[],col:Zt=4,right:Wt,bottom:Rt=23,precision:rn=0,wrapWidth:Xt=1200,trackEventItems:Sn,loading:Rn,handleVery:Jn=()=>!0})=>{const qt=Math.floor((Xt-(Zt-1)*Wt)/Zt);return En.createElement(Be.Z,{spinning:Rn},En.createElement("div",{className:Xe()(nt.list,Di)},!!Ei.length&&Ei.map((Gt,ti)=>{const{subject_identifier:pt,id:yn,identifier:ii,power:xi}=Gt,Ut=Gt.is_public!=0&&Gt.is_public;return En.createElement("div",{className:nt.wrap,key:yn,style:{width:qt,marginRight:(1+ti)%Zt===0?0:Wt+rn,marginBottom:Rt}},En.createElement("a",{className:nt.li,onClick:$n=>{$n.preventDefault(),Jn(Gt==null?void 0:Gt.first_category_url)&&(Sn&&(0,ft.L9)([Sn]),(0,ft.xg)(Gt.first_category_url))}},En.createElement("div",{className:nt.top},En.createElement(Qe.Z,{title:Gt.name},En.createElement("div",{className:nt.name},Gt.name)),En.createElement("img",{className:nt.img,src:rt.Z.IMG_SERVER+"/images/"+Gt.avatar_url}),En.createElement("div",{className:nt.text,title:Gt.creator},Gt.creator),pt&&En.createElement("div",{className:nt.btns},En.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),En.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Ut&&En.createElement("div",{className:nt.sign},"\u516C\u5F00")),En.createElement("div",{className:nt.bottom},Gt.visits>0&&En.createElement(Qe.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},En.createElement("span",null,En.createElement("i",{className:"iconfont icon-liulanyan"}),En.createElement("span",null,Gt.visits))),Gt.course_members_count>0&&En.createElement(Qe.Z,{title:"\u6210\u5458",placement:"bottom"},En.createElement("span",null,En.createElement("i",{className:"iconfont icon-chengyuan"}),Gt.course_members_count)),Gt.tasks_count>0&&En.createElement(Qe.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},En.createElement("span",null,En.createElement("i",{className:"iconfont icon-zuoye"}),Gt.tasks_count)),Gt.is_end?En.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):En.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Gt.is_accessible&&En.createElement("div",{className:nt.lockWrap},En.createElement("img",{src:`${rt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),En.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Ei.length&&En.createElement(Dt.Z,null)))},ln={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"},_n=de(44993),si=({dataSource:Di=[],value:Ei,onChange:Zt,className:Wt,style:Rt={},tabBarExtraContent:rn})=>le.createElement("div",{className:Xe()(ln.tabs,Wt),style:Rt},le.createElement("div",{className:ln.tabsWrap},Di.map((Xt,Sn)=>!(Xt!=null&&Xt.hide)&&le.createElement("aside",{className:ln.tab,onClick:()=>{Zt(Xt.id),Xt.link&&_n.history.push(Xt.link)},key:Sn},le.createElement("div",{className:Ei===Xt.id?ln.active:""},Xt.name),(Xt==null?void 0:Xt.resetCount)==null&&(Xt==null?void 0:Xt.total)!==void 0&&le.createElement("span",null,"\uFF08",Xt==null?void 0:Xt.total,"\uFF09"),(Xt==null?void 0:Xt.resetCount)!==void 0&&(Xt==null?void 0:Xt.total)!==void 0&&le.createElement(Qe.Z,{title:(Xt==null?void 0:Xt.tip)!=null?Xt==null?void 0:Xt.tip:""},le.createElement("span",{style:{color:"#9096A3"}},"\uFF08",le.createElement("span",{style:{color:"#000"}},Xt==null?void 0:Xt.resetCount),"/",le.createElement("span",null,Xt==null?void 0:Xt.total),"\uFF09"))))),le.createElement("div",{className:ln.tabBar},rn)),Kn=({className:Di,style:Ei={},children:Zt})=>le.createElement("div",{className:Xe()(Di),style:Ei},Zt),hi={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"},et=de(75727),_e=de(93041);const xe=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Me=({sortValue:Di,dropValue:Ei,className:Zt,onSort:Wt,onDrop:Rt,dataSource:rn=xe})=>{var Xt;return le.createElement("div",{className:Xe()(hi.orderWrap,Zt)},le.createElement(et.Z,{dropdownRender:()=>le.createElement(_e.default,null,rn.map((Sn,Rn)=>le.createElement(_e.default.Item,{key:Rn,onClick:()=>Rt(Sn.id)},Sn.name)))},le.createElement("span",{className:hi.orderTextWrap},(Xt=rn.find(Sn=>Ei===Sn.id))==null?void 0:Xt.name)),le.createElement("span",{className:hi.orderIconWrap},le.createElement("span",{className:hi.orderAsc},le.createElement("i",{className:Di==="asc"?`iconfont icon-sanjiaoxing-up font12 ${hi.cursorPointer} ${hi.active}`:`iconfont icon-sanjiaoxing-up font12 ${hi.cursorPointer}`,onClick:()=>Wt(Di==="asc"?"desc":"asc")})),le.createElement("span",{className:hi.orderDesc},le.createElement("i",{className:Di==="desc"?`iconfont icon-sanjiaoxing-down font12 ${hi.cursorPointer} ${hi.active}`:`iconfont icon-sanjiaoxing-down font12 ${hi.cursorPointer}`,onClick:()=>Wt(Di==="asc"?"desc":"asc")}))))},Ae={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"},at=de(99571),Lt=Object.defineProperty,Pt=Object.getOwnPropertySymbols,Vt=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,an=(Di,Ei,Zt)=>Ei in Di?Lt(Di,Ei,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):Di[Ei]=Zt,sn=(Di,Ei)=>{for(var Zt in Ei||(Ei={}))Vt.call(Ei,Zt)&&an(Di,Zt,Ei[Zt]);if(Pt)for(var Zt of Pt(Ei))It.call(Ei,Zt)&&an(Di,Zt,Ei[Zt]);return Di},on=(Di,Ei)=>{var Zt={};for(var Wt in Di)Vt.call(Di,Wt)&&Ei.indexOf(Wt)<0&&(Zt[Wt]=Di[Wt]);if(Di!=null&&Pt)for(var Wt of Pt(Di))Ei.indexOf(Wt)<0&&It.call(Di,Wt)&&(Zt[Wt]=Di[Wt]);return Zt},bn=(Di,Ei,Zt)=>new Promise((Wt,Rt)=>{var rn=Rn=>{try{Sn(Zt.next(Rn))}catch(Jn){Rt(Jn)}},Xt=Rn=>{try{Sn(Zt.throw(Rn))}catch(Jn){Rt(Jn)}},Sn=Rn=>Rn.done?Wt(Rn.value):Promise.resolve(Rn.value).then(rn,Xt);Sn((Zt=Zt.apply(Di,Ei)).next())}),zt=Di=>{var Ei=Di,{className:Zt,style:Wt,children:Rt,loading:rn=!1,openLoading:Xt,onClick:Sn=()=>{},size:Rn="middle",shape:Jn="round"}=Ei,qt=on(Ei,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Gt,ti]=(0,le.useState)(!1);return le.createElement(at.ZP,sn({onClick:(0,qe.throttle)(pt=>bn(void 0,null,function*(){Xt&&ti(!0);try{yield Sn(pt)}catch(yn){console.log("error",yn)}Xt&&ti(!1)}),2e3,{leading:!0,trailing:!1}),className:Xe()(Ae.btn,Ae[`${Rn}-${Jn}`],Zt),style:Wt,size:Rn,shape:Jn,loading:Gt||rn},qt),Rt)},xn={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"},An=({className:Di,style:Ei,children:Zt=null,onClick:Wt,title:Rt})=>le.createElement("div",{className:Xe()(xn.head,Di),style:Ei},le.createElement("span",{className:"primary-hover",onClick:Wt},le.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),le.createElement("b",{title:Rt},Rt),le.createElement("div",{className:xn.node},Zt)),nn={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"},zn=({confirmShow:Di=!0,confirmTitle:Ei,confirmClick:Zt,cancelShow:Wt=!0,cancelTitle:Rt,cancelClick:rn,className:Xt,style:Sn,confirmLoading:Rn=!1})=>le.createElement("div",{className:Xe()(nn.btns,Xt),style:Sn},Di&&le.createElement(at.ZP,{loading:Rn,onClick:Zt,type:"primary",className:nn.confirm},Ei),Wt&&le.createElement(at.ZP,{onClick:rn,className:nn.cancel},Rt)),yt={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"},Pn=({className:Di,style:Ei={},LeftContent:Zt,children:Wt,RightContent:Rt})=>le.createElement("div",{className:Xe()(yt.fixedBottom,Di),style:Ei},le.createElement("div",{className:yt.wrap},le.createElement("div",{className:yt.left},Zt),le.createElement("div",{className:yt.center},Wt),le.createElement("div",{className:yt.right},Rt))),Ht={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"},zi=({className:Di,style:Ei={},dataSource:Zt=[]})=>le.createElement("div",{className:Xe()(Ht.crumbs,Di),style:Ei},Zt.map((Wt,Rt)=>Rt<Zt.length-1?le.createElement(le.Fragment,{key:Rt},Wt.path||Wt.onClick?le.createElement("span",{className:Ht.hover,onClick:Wt!=null&&Wt.onClick?Wt.onClick:()=>_n.history.push(Wt.path)},Wt.name):le.createElement("span",null,Wt.name),le.createElement("span",null,"\xA0",">","\xA0")):le.createElement("span",{key:Rt,style:{color:"#5F6368"}},Wt.name))),Li=de(11938),Dn=Object.defineProperty,qi=Object.defineProperties,Ui=Object.getOwnPropertyDescriptors,ui=Object.getOwnPropertySymbols,bi=Object.prototype.hasOwnProperty,Ri=Object.prototype.propertyIsEnumerable,ke=(Di,Ei,Zt)=>Ei in Di?Dn(Di,Ei,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):Di[Ei]=Zt,gi=(Di,Ei)=>{for(var Zt in Ei||(Ei={}))bi.call(Ei,Zt)&&ke(Di,Zt,Ei[Zt]);if(ui)for(var Zt of ui(Ei))Ri.call(Ei,Zt)&&ke(Di,Zt,Ei[Zt]);return Di},Ii=(Di,Ei)=>qi(Di,Ui(Ei)),ki=(Di,Ei)=>{var Zt={};for(var Wt in Di)bi.call(Di,Wt)&&Ei.indexOf(Wt)<0&&(Zt[Wt]=Di[Wt]);if(Di!=null&&ui)for(var Wt of ui(Di))Ei.indexOf(Wt)<0&&Ri.call(Di,Wt)&&(Zt[Wt]=Di[Wt]);return Zt};const{Countdown:ar}=Li.default;var sr=Di=>{var Ei=Di,{onChange:Zt}=Ei,Wt=ki(Ei,["onChange"]);const[Rt,rn]=(0,le.useState)(null);(0,le.useEffect)(()=>{typeof Rt=="number"&&Rt>=0&&Zt(Rt)},[Rt]);const Xt=Sn=>{const Rn=Math.floor(Sn/1e3);rn(Rn)};return le.createElement(ar,Ii(gi({},Wt),{onChange:Xt}))}},47458:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return Le}});var le=de(59301);function Le(De,Ie){const Ye=(0,le.useRef)();(0,le.useEffect)(()=>{Ye.current=De}),(0,le.useEffect)(()=>{function Fe(){Ye.current()}if(Ie!==null){let Ve=setInterval(Fe,Ie);return()=>clearInterval(Ve)}},[Ie])}},95783:function(Ge,be,de){"use strict";de.r(be),de.d(be,{default:function(){return xn}});var le=de(59301),Le=de(49341),De=de.n(Le),Ie=de(44993),Ye={box:"box___JDRma",question_buuton:"question_buuton___tVuIm",selectQuestion:"selectQuestion___xdvxF",addQuestion:"addQuestion___FQqbC",submit_button:"submit_button___NUmmN"},Fe=de(6767),Ve=de(29787),Xe=de(62673),qe=de(99571),Je=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(98573),Ct=Object.defineProperty,je=Object.defineProperties,te=Object.getOwnPropertyDescriptors,ne=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ge=(fn,An,nn)=>An in fn?Ct(fn,An,{enumerable:!0,configurable:!0,writable:!0,value:nn}):fn[An]=nn,Se=(fn,An)=>{for(var nn in An||(An={}))he.call(An,nn)&&ge(fn,nn,An[nn]);if(ne)for(var nn of ne(An))se.call(An,nn)&&ge(fn,nn,An[nn]);return fn},Ce=(fn,An)=>je(fn,te(An)),Oe=(fn,An,nn)=>new Promise((ci,zn)=>{var yt=Ht=>{try{Pn(nn.next(Ht))}catch(fi){zn(fi)}},Fn=Ht=>{try{Pn(nn.throw(Ht))}catch(fi){zn(fi)}},Pn=Ht=>Ht.done?ci(Ht.value):Promise.resolve(Ht.value).then(yt,Fn);Pn((nn=nn.apply(fn,An)).next())});const Be=({problemset:fn,dispatch:An,question:nn,solutionVis:ci,pageCache:zn,disabled:yt,onSubmit:Fn})=>{const[Pn,Ht]=(0,le.useState)({}),[fi,zi]=(0,le.useState)([]),Li=["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,Je.cloneDeep)(nn);Ht(ui),zi(ui.choices)},[nn]);const Dn=()=>Oe(void 0,null,function*(){var ui;if(!fi.some(ke=>ke==null?void 0:ke.checked)){Fe.ZP.warning("\u8BF7\u60A8\u4F5C\u7B54\u540E\u518D\u63D0\u4EA4");return}const bi=(ui=fi==null?void 0:fi.filter(ke=>ke==null?void 0:ke.checked))==null?void 0:ui.map(ke=>ke==null?void 0:ke.choice_id),Ri=yield Fn(nn==null?void 0:nn.smart_plan_item_bank_id,bi)}),qi=(ui,bi)=>{console.log(ui.target.checked);const Ri=fi.map((ke,gi)=>Ce(Se({},ke),{checked:gi===bi?ui.target.checked:ke.checked}));zi(Ri)},Ui=(ui=!1)=>{let bi="";return fi.forEach((Ri,ke)=>{ui?Ri!=null&&Ri.me_answered&&(bi=bi+Li[ke]):Ri!=null&&Ri.is_answer&&(bi=bi+Li[ke])}),bi};return le.createElement("div",null,le.createElement("div",{className:"c-light-primary mb5 font16"},"\u591A\u9009\u9898"),le.createElement(st.Z,{value:Pn==null?void 0:Pn.name}),fi==null?void 0:fi.map((ui,bi)=>{const{is_answer:Ri,checked:ke,choice_text:gi,me_answered:Ii}=ui;let ki="";return ci&&Ri&&(ki=mt.green),ci&&!Ri&&(ke||Ii)&&(ki=mt.red),le.createElement("div",{key:bi,style:{pointerEvents:ci?"none":"auto"},className:`${mt.row} ${ki}`},le.createElement(Xe.default,{disabled:(nn==null?void 0:nn.status)=="ended"||(nn==null?void 0:nn.is_answered)||(zn==null?void 0:zn.is_end),style:{padding:3},onChange:ar=>qi(ar,bi),checked:ke||(ui==null?void 0:ui.me_answered)}),le.createElement("span",null,Li[bi],".\xA0"),le.createElement(st.Z,{className:mt.html,value:gi}),ci&&Ri&&le.createElement("span",{style:{paddingTop:4},className:"iconfont icon-duigou1 font16"}),ci&&!Ri&&(ke||Ii)&&le.createElement("span",{style:{fontWeight:600,paddingTop:5},className:"iconfont icon-guanbi font16"}))}),ci&&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"),Ui(!0)||"--"),le.createElement("div",{className:"c-grey-333 mb5"},le.createElement("b",null,"\u6B63\u786E\u7B54\u6848:\xA0"),Ui()),le.createElement("div",{className:"c-grey-333 mb10"},le.createElement("b",null,"\u89E3\u6790:\xA0"),(Pn==null?void 0:Pn.analysis)||"\u6682\u65E0\u89E3\u6790")),(nn==null?void 0:nn.status)!="ended"&&!(nn!=null&&nn.is_answered)&&!(zn!=null&&zn.is_end)&&le.createElement("div",{className:"flex justify-center"},le.createElement(qe.ZP,{className:mt.submit_button,type:"primary",onClick:()=>{Dn()}},"\u63D0\u4EA4")))};var Qe=(0,Ie.connect)(({problemset:fn})=>({problemset:fn}))(Be),ot=de(47889),rt=de(77019),ft=de(59301),bt=Object.defineProperty,ut=Object.defineProperties,Tt=Object.getOwnPropertyDescriptors,Dt=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,Cn=Object.prototype.propertyIsEnumerable,vn=(fn,An,nn)=>An in fn?bt(fn,An,{enumerable:!0,configurable:!0,writable:!0,value:nn}):fn[An]=nn,pn=(fn,An)=>{for(var nn in An||(An={}))en.call(An,nn)&&vn(fn,nn,An[nn]);if(Dt)for(var nn of Dt(An))Cn.call(An,nn)&&vn(fn,nn,An[nn]);return fn},mn=(fn,An)=>ut(fn,Tt(An)),Mt=(fn,An,nn)=>new Promise((ci,zn)=>{var yt=Ht=>{try{Pn(nn.next(Ht))}catch(fi){zn(fi)}},Fn=Ht=>{try{Pn(nn.throw(Ht))}catch(fi){zn(fi)}},Pn=Ht=>Ht.done?ci(Ht.value):Promise.resolve(Ht.value).then(yt,Fn);Pn((nn=nn.apply(fn,An)).next())});const ct=({problemset:fn,dispatch:An,question:nn,pageCache:ci,solutionVis:zn,disabled:yt,onSubmit:Fn})=>{const[Pn,Ht]=(0,le.useState)({}),[fi,zi]=(0,le.useState)([]),[Li]=(0,Ie.useSearchParams)(),Dn=["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,Je.cloneDeep)(nn);Ht(ui),zi(ui.choices)},[nn]);const qi=()=>Mt(void 0,null,function*(){var ui;if(!fi.some(Ri=>Ri==null?void 0:Ri.checked)){Fe.ZP.warning("\u8BF7\u60A8\u4F5C\u7B54\u540E\u518D\u63D0\u4EA4");return}const bi=yield Fn(nn==null?void 0:nn.smart_plan_item_bank_id,(ui=fi.find(Ri=>Ri.checked))==null?void 0:ui.choice_id)}),Ui=(ui,bi)=>{const Ri=fi.map((ke,gi)=>mn(pn({},ke),{checked:gi===bi?ui.target.checked:!1}));zi(Ri)};return ft.createElement("div",null,ft.createElement("div",{className:"c-light-primary mb5 font16"},"\u5355\u9009\u9898"),ft.createElement(st.Z,{value:Pn==null?void 0:Pn.name}),fi==null?void 0:fi.map((ui,bi)=>{const{is_answer:Ri,checked:ke,choice_text:gi,me_answered:Ii}=ui;let ki="";return zn&&Ri&&(ki=mt.green),zn&&!Ri&&(ke||Ii)&&(ki=mt.red),ft.createElement("div",{key:bi,style:{pointerEvents:zn?"none":"auto"},className:`${mt.row} ${ki}`},ft.createElement(ot.ZP,{disabled:(nn==null?void 0:nn.status)=="ended"||(nn==null?void 0:nn.is_answered)||(ci==null?void 0:ci.is_end),onChange:ar=>Ui(ar,bi),checked:ke||(ui==null?void 0:ui.me_answered)}),ft.createElement("span",null,Dn[bi],".\xA0"),ft.createElement(st.Z,{className:mt.html,value:gi}),zn&&Ri&&ft.createElement("span",{style:{paddingTop:4},className:"iconfont icon-duigou1 font16"}),zn&&!Ri&&(ke||Ii)&&ft.createElement("span",{style:{fontWeight:600,paddingTop:5},className:"iconfont icon-guanbi font16"}))}),zn&&ft.createElement(le.Fragment,null,ft.createElement("div",{className:mt.line}),ft.createElement("div",{className:"c-grey-333 mb5"},ft.createElement("b",null,"\u6211\u7684\u7B54\u6848:\xA0"),Dn[fi.findIndex(ui=>ui==null?void 0:ui.me_answered)]||"--"),ft.createElement("div",{className:"c-grey-333 mb5"},ft.createElement("b",null,"\u6B63\u786E\u7B54\u6848:\xA0"),Dn[fi.findIndex(ui=>ui==null?void 0:ui.is_answer)]),ft.createElement(rt.Z,{className:"c-grey-333 mb10"},ft.createElement("b",null,"\u89E3\u6790:\xA0"),ft.createElement(st.Z,{className:`${mt.html} font14`,value:(Pn==null?void 0:Pn.analysis)||"\u6682\u65E0\u89E3\u6790"}))),(nn==null?void 0:nn.status)!="ended"&&!(nn!=null&&nn.is_answered)&&!(ci!=null&&ci.is_end)&&ft.createElement("div",{className:"flex justify-center"},ft.createElement(qe.ZP,{className:mt.submit_button,type:"primary",onClick:()=>{qi()}},"\u63D0\u4EA4")))};var nt=(0,Ie.connect)(({problemset:fn})=>({problemset:fn}))(ct),dn=Object.defineProperty,En=Object.defineProperties,Nt=Object.getOwnPropertyDescriptors,cn=Object.getOwnPropertySymbols,ln=Object.prototype.hasOwnProperty,_n=Object.prototype.propertyIsEnumerable,kn=(fn,An,nn)=>An in fn?dn(fn,An,{enumerable:!0,configurable:!0,writable:!0,value:nn}):fn[An]=nn,si=(fn,An)=>{for(var nn in An||(An={}))ln.call(An,nn)&&kn(fn,nn,An[nn]);if(cn)for(var nn of cn(An))_n.call(An,nn)&&kn(fn,nn,An[nn]);return fn},kt=(fn,An)=>En(fn,Nt(An)),Kn=(fn,An,nn)=>new Promise((ci,zn)=>{var yt=Ht=>{try{Pn(nn.next(Ht))}catch(fi){zn(fi)}},Fn=Ht=>{try{Pn(nn.throw(Ht))}catch(fi){zn(fi)}},Pn=Ht=>Ht.done?ci(Ht.value):Promise.resolve(Ht.value).then(yt,Fn);Pn((nn=nn.apply(fn,An)).next())});const hi=({problemset:fn,dispatch:An,question:nn,solutionVis:ci,pageCache:zn,disabled:yt,onSubmit:Fn})=>{var Pn,Ht;const[fi,zi]=(0,le.useState)({}),[Li,Dn]=(0,le.useState)([]),qi=["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 bi=(0,Je.cloneDeep)(nn);zi(bi),Dn(bi.choices)},[nn]);const Ui=()=>Kn(void 0,null,function*(){var bi;if(!Li.some(ke=>ke==null?void 0:ke.checked)){Fe.ZP.warning("\u8BF7\u60A8\u4F5C\u7B54\u540E\u518D\u63D0\u4EA4");return}const Ri=yield Fn(nn==null?void 0:nn.smart_plan_item_bank_id,(bi=Li.find(ke=>ke.checked))==null?void 0:bi.choice_id)}),ui=(bi,Ri)=>{console.log(bi.target.checked);const ke=Li.map((gi,Ii)=>kt(si({},gi),{checked:Ii===Ri?bi.target.checked:!1}));Dn(ke)};return le.createElement("div",null,le.createElement("div",{className:"c-light-primary mb5 font16"},"\u5224\u65AD\u9898"),le.createElement(st.Z,{value:fi==null?void 0:fi.name}),Li==null?void 0:Li.map((bi,Ri)=>{const{is_answer:ke,checked:gi,choice_text:Ii,me_answered:ki}=bi;let ar="";return ci&&ke&&(ar=mt.green),ci&&!ke&&(gi||ki)&&(ar=mt.red),le.createElement("div",{key:Ri,style:{pointerEvents:ci?"none":"auto"},className:`${mt.row} ${ar}`},le.createElement(ot.ZP,{disabled:(nn==null?void 0:nn.status)=="ended"||(nn==null?void 0:nn.is_answered)||(zn==null?void 0:zn.is_end),onChange:Nr=>ui(Nr,Ri),checked:gi||(bi==null?void 0:bi.me_answered)}),le.createElement(st.Z,{className:mt.html,value:Ii}),ci&&ke&&le.createElement("span",{style:{paddingTop:4},className:"iconfont icon-duigou1 font16"}),ci&&!ke&&(gi||ki)&&le.createElement("span",{style:{fontWeight:600,paddingTop:5},className:"iconfont icon-guanbi font16"}))}),ci&&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"),((Pn=Li.find(bi=>bi==null?void 0:bi.me_answered))==null?void 0:Pn.choice_text)||"--"),le.createElement("div",{className:"c-grey-333 mb5"},le.createElement("b",null,"\u6B63\u786E\u7B54\u6848:\xA0"),(Ht=Li.find(bi=>bi==null?void 0:bi.is_answer))==null?void 0:Ht.choice_text),le.createElement("div",{className:"c-grey-333 mb10"},le.createElement("b",null,"\u89E3\u6790:\xA0"),(fi==null?void 0:fi.analysis)||"\u6682\u65E0\u89E3\u6790")),(nn==null?void 0:nn.status)!="ended"&&!(nn!=null&&nn.is_answered)&&!(zn!=null&&zn.is_end)&&le.createElement("div",{className:"flex justify-center"},le.createElement(qe.ZP,{className:mt.submit_button,type:"primary",onClick:()=>{Ui()}},"\u63D0\u4EA4")))};var et=(0,Ie.connect)(({problemset:fn})=>({problemset:fn}))(hi),_e=de(30641),xe=de(68606),Te=de(59301),Me=(fn,An,nn)=>new Promise((ci,zn)=>{var yt=Ht=>{try{Pn(nn.next(Ht))}catch(fi){zn(fi)}},Fn=Ht=>{try{Pn(nn.throw(Ht))}catch(fi){zn(fi)}},Pn=Ht=>Ht.done?ci(Ht.value):Promise.resolve(Ht.value).then(yt,Fn);Pn((nn=nn.apply(fn,An)).next())});const Ae=({problemset:fn,dispatch:An,question:nn,pageCache:ci,solutionVis:zn,disabled:yt,onSubmit:Fn})=>{var Pn;const[Ht,fi]=(0,le.useState)(!1),[zi,Li]=(0,le.useState)(""),Dn=(0,Ie.useParams)(),[qi,Ui]=(0,le.useState)(!1),ui=(0,le.useRef)(null),[bi]=(0,Ie.useSearchParams)();(0,le.useEffect)(()=>{if(Ht){const Ii=document.getElementById("iframeSmartPlan");if(Ii){const ki={type:"showIntelligentTeacherStatus",aiStatus:nn==null?void 0:nn.enable_ai_tutor,questionStatus:(nn==null?void 0:nn.status)==="ended",pptStatus:ci==null?void 0:ci.is_end};Ii.contentWindow.postMessage(ki,"*")}}},[nn,ci==null?void 0:ci.is_end]),(0,le.useEffect)(()=>{},[]);const Ri=()=>Me(void 0,null,function*(){if(Ui(!0),nn!=null&&nn.hack_identifier){const Ii=yield(0,xe.nF)({id:nn==null?void 0:nn.hack_identifier});(Ii==null?void 0:Ii.status)===0&&(Li(`/myproblems/${Ii==null?void 0:Ii.identifier}?type=smartPlan&exercisesId=${bi.get("id")}&coursesId=${bi.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))}Ui(!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")},gi={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"),gi[nn==null?void 0:nn.answer_status]),Te.createElement("div",{style:{color:"#333",fontSize:"14px",marginBottom:"5px"}},(Pn=nn==null?void 0:nn.languages)==null?void 0:Pn.map((Ii,ki,ar)=>Te.createElement(le.Fragment,{key:ki},ke[Ii==null?void 0:Ii.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}),zn&&Te.createElement("div",null,Te.createElement("div",{className:mt.line}),Te.createElement(rt.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(rt.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(qe.ZP,{loading:qi,className:mt.submit_button,type:"primary",onClick:()=>Me(void 0,null,function*(){yield Ri(),fi(!0)})},(nn==null?void 0:nn.status)!="ended"&&!(ci!=null&&ci.is_end)?"\u8FDB\u5165\u7B54\u9898":"\u67E5\u770B\u7B54\u9898")),Te.createElement(_e.Z,{title:"",placement:"bottom",rootClassName:mt.Drawrap,width:"100vw",height:"100vh",closable:!1,onClose:()=>{fi(!1)},maskClosable:!1,open:Ht},Te.createElement(Ve.Z,{spinning:qi},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 at=(0,Ie.connect)(({problemset:fn})=>({problemset:fn}))(Ae),Lt=de(52430),Pt=de(52977),Vt=de(59301),It=(fn,An,nn)=>new Promise((ci,zn)=>{var yt=Ht=>{try{Pn(nn.next(Ht))}catch(fi){zn(fi)}},Fn=Ht=>{try{Pn(nn.throw(Ht))}catch(fi){zn(fi)}},Pn=Ht=>Ht.done?ci(Ht.value):Promise.resolve(Ht.value).then(yt,Fn);Pn((nn=nn.apply(fn,An)).next())});const an=({user:fn,officeToken:An,globalSetting:nn,loading:ci,problemset:zn,dispatch:yt,pageCache:Fn,pageNum:Pn,aiImg:Ht})=>{var fi,zi,Li,Dn,qi;const[Ui,ui]=(0,le.useState)([]),[bi]=(0,Ie.useSearchParams)(),[Ri,ke]=(0,le.useState)(0),[gi,Ii]=(0,le.useState)(!1),[ki,ar]=(0,le.useState)(!(Fn!=null&&Fn.allow_answer&&!(Fn!=null&&Fn.is_end)&&(An==null?void 0:An.Status)!=="ended")),[Nr,sr]=(0,le.useState)(!1),[Di,Ei]=(0,le.useState)(!1),[Zt,Wt]=(0,le.useState)({});(0,le.useEffect)(()=>{ar(!(Fn!=null&&Fn.allow_answer&&!(Fn!=null&&Fn.is_end)&&(An==null?void 0:An.Status)!=="ended"))},[Fn==null?void 0:Fn.allow_answer,!(Fn!=null&&Fn.is_end),(An==null?void 0:An.Status)!=="ended"]),(0,le.useEffect)(()=>{(Pn||Fn!=null&&Fn.page)&&Rt()},[Pn,Fn==null?void 0:Fn.page,Fn==null?void 0:Fn.allow_answer,Fn==null?void 0:Fn.has_item_bank,Fn==null?void 0:Fn.randomData,,Fn==null?void 0:Fn.enable_extra]);const Rt=()=>It(void 0,null,function*(){var Sn,Rn,Jn,qt,Gt,ti;Ii(!0);let pt=yield(0,Lt.ZP)(`/api/courses/${bi.get("course_id")}/smart_plans/${bi.get("id")}/item_banks.json`,{method:"get",params:{position:Pn||(Fn==null?void 0:Fn.page)}});(pt==null?void 0:pt.status)==0&&(Wt(pt==null?void 0:pt.data),ui((Sn=pt==null?void 0:pt.data)==null?void 0:Sn.item_banks),ke(0),sr((qt=(Jn=(Rn=pt==null?void 0:pt.data)==null?void 0:Rn.item_banks)==null?void 0:Jn[0])==null?void 0:qt.enable_ai_tutor),rn((ti=(Gt=pt==null?void 0:pt.data)==null?void 0:Gt.item_banks)==null?void 0:ti[0])),Ii(!1)}),rn=Sn=>{if(Fn!=null&&Fn.is_end){Ei(!0);return}switch(Sn==null?void 0:Sn.solution_visibility){case"hidden":Ei(!1);break;case"show_after_edit":Sn!=null&&Sn.is_answered?Ei(!0):Ei(!1);break;case"show_after_submission":(Sn==null?void 0:Sn.status)==="ended"?Ei(!0):Ei(!1);break;case"show_after_ended":Fn!=null&&Fn.is_end?Ei(!0):Ei(!1);break}},Xt=(Sn,Rn)=>It(void 0,null,function*(){const Jn=yield(0,Lt.ZP)(`/api/smart_plan_item_banks/${Sn}/user_answers.json`,{method:"post",body:{item_choice_id:Rn}});return(Jn==null?void 0:Jn.status)===0?(yield Rt(),Fe.ZP.success("\u63D0\u4EA4\u6210\u529F"),!0):!1});return Vt.createElement("section",null,Vt.createElement(Ve.Z,{spinning:gi},Vt.createElement("div",{className:Ye.box},Ui[Ri]&&Vt.createElement("div",null,((fi=Ui[Ri])==null?void 0:fi.item_type)==="SINGLE"&&Vt.createElement(nt,{question:Ui[Ri],onSubmit:Xt,disabled:ki,pageCache:Fn,solutionVis:Di}),((zi=Ui[Ri])==null?void 0:zi.item_type)==="MULTIPLE"&&Vt.createElement(Qe,{question:Ui[Ri],onSubmit:Xt,disabled:ki,pageCache:Fn,solutionVis:Di}),((Li=Ui[Ri])==null?void 0:Li.item_type)==="JUDGMENT"&&Vt.createElement(et,{question:Ui[Ri],onSubmit:Xt,disabled:ki,pageCache:Fn,solutionVis:Di}),((Dn=Ui[Ri])==null?void 0:Dn.item_type)==="PROGRAM"&&Vt.createElement(at,{question:Ui[Ri],onSubmit:Xt,disabled:ki,pageCache:Fn,solutionVis:Di})),Nr&&Vt.createElement(Pt.Z,{item_bank_ids:[(qi=Ui[Ri])==null?void 0:qi.id],isStudent:!0,aiImg:Ht}))))};var sn=(0,Ie.connect)(({user:fn,classroomList:An,loading:nn,globalSetting:ci,problemset:zn})=>({user:fn,classroomList:An,globalSetting:ci,loading:nn.effects,problemset:zn}))(an),on=de(89299),bn=de(62957),un=(fn,An,nn)=>new Promise((ci,zn)=>{var yt=Ht=>{try{Pn(nn.next(Ht))}catch(fi){zn(fi)}},Fn=Ht=>{try{Pn(nn.throw(Ht))}catch(fi){zn(fi)}},Pn=Ht=>Ht.done?ci(Ht.value):Promise.resolve(Ht.value).then(yt,Fn);Pn((nn=nn.apply(fn,An)).next())});const zt=({user:fn,classroomList:An,globalSetting:nn,loading:ci,dispatch:zn})=>{const yt=(0,le.useRef)(),Fn=(0,Ie.useParams)(),[Pn]=(0,Ie.useSearchParams)(),[Ht,fi]=(0,le.useState)(),[zi,Li]=(0,le.useState)(),[Dn,qi]=(0,le.useState)(),[Ui,ui]=(0,le.useState)(""),[bi,Ri]=(0,le.useState)("380rem"),ke=(0,le.useRef)(zi),gi=(0,le.useRef)(),[Ii,ki]=(0,le.useState)("");Pn.get("educoder_session")&&(0,on.d8)("_educoder_session",Pn.get("educoder_session"),30),(0,le.useEffect)(()=>{Ht!=null&&Ht.WebofficeURL&&Ei()},[Ht]),(0,le.useEffect)(()=>{if(sr(),localStorage.userInfo)try{JSON.parse(localStorage.userInfo).real_name!=="\u6E38\u5BA2"&&(gi.current=document.createElement("meta"),gi.current.name="viewport",gi.current.content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no",document.head.appendChild(gi.current))}catch(Rt){}return()=>{document.head.removeChild(gi.current)}},[]),(0,le.useEffect)(()=>{if(zi!=null&&zi.is_end&&!(Ht!=null&&Ht.IsCreator)){let Rt=JSON.parse(sessionStorage.getItem("endPPTIds"))||[];Rt&&(Rt!=null&&Rt.includes(Pn.get("id")))||(Fe.ZP.info("\u672C\u6B21\u6388\u8BFE\u5DF2\u7ED3\u675F\uFF0C\u611F\u8C22\u60A8\u7684\u53C2\u4E0E\uFF01"),(Rt==null?void 0:Rt.length)===0?Rt=[Pn.get("id")]:Rt.push(Pn.get("id")),sessionStorage.setItem("endPPTIds",JSON.stringify(Rt)))}},[zi==null?void 0:zi.is_end,Ht]),(0,le.useEffect)(()=>{if(zi!=null&&zi.enable_extra&&!(zi!=null&&zi.is_end)){let Rt=JSON.parse(localStorage.getItem("extraPPTIds"))||[];Rt&&!(Rt!=null&&Rt.includes(Pn.get("id")))&&bn.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:()=>un(void 0,null,function*(){(Rt==null?void 0:Rt.length)===0?Rt=[Pn.get("id")]:Rt.push(Pn.get("id")),localStorage.setItem("extraPPTIds",JSON.stringify(Rt))})})}},[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"&&ar()},[zi==null?void 0:zi.is_end,Ht]),(0,le.useEffect)(()=>{Dn&&Nr(Dn)},[Dn]),(0,le.useEffect)(()=>{ke.current=zi},[zi]);const ar=()=>un(void 0,null,function*(){const Rt=yield(0,Lt.ZP)(`/api/courses/${Pn.get("course_id")}/smart_plans/${Pn.get("id")}/start_class.json`,{method:"post"})});(0,le.useEffect)(()=>{var Rt;((Rt=fn==null?void 0:fn.userInfo)==null?void 0:Rt.real_name)==="\u6E38\u5BA2"&&zn({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!1}})},[fn==null?void 0:fn.userInfo]);function Nr(Rt){return un(this,null,function*(){yield yt.current.ready();const rn=yt.current.Application;rn.ActivePresentation.SlideShowWindow.View.GotoSlide(Rt),yield(yield rn.ActivePresentation.SlideShowSettings).Run()})}function sr(){return un(this,null,function*(){var Rt;const rn=yield(0,Lt.ZP)(`/api/courses/${Pn.get("course_id")}/smart_plans/${Pn.get("id")}/get_office_token.json`,{method:"get",params:{is_student:!0}}),Xt=((Rt=rn==null?void 0:rn.data)==null?void 0:Rt.FileName)||"";document.title=Xt,fi(rn==null?void 0:rn.data),Di()})}function Di(){return un(this,null,function*(){var Rt,rn;try{const Xt=yield(0,Lt.ZP)(`/api/courses/${Pn.get("course_id")}/smart_plans/${Pn.get("id")}/set_page_cache.json`,{method:"post",body:{type:1}});(Rt=Xt==null?void 0:Xt.data)!=null&&Rt.page&&qi((rn=Xt==null?void 0:Xt.data)==null?void 0:rn.page),Li(Xt==null?void 0:Xt.data)}catch(Xt){}setTimeout(()=>{var Xt;((Xt=ke.current)==null?void 0:Xt.is_end)===!1&&Di()},1e3)})}function Ei(){return un(this,null,function*(){var Rt=document.getElementById("weboffice-zone");yt.current=De().config({mount:Rt,url:Ht.WebofficeURL,refreshToken:Zt}),yt.current.setToken({token:Ht.AccessToken,timeout:25*60*1e3}),Wt()})}function Zt(){return new Promise(function(Rt){return un(this,null,function*(){const rn=yield(0,Lt.ZP)(`/api/courses/${Pn.get("course_id")}/smart_plans/${Pn.get("id")}/refresh_office_token.json`,{method:"get",access_token:Ht==null?void 0:Ht.AccessToken,refresh_token:Ht==null?void 0:Ht.RefreshToken});Rt(rn==null?void 0:rn.data)})})}function Wt(){return un(this,null,function*(){yield yt.current.ready();const Rt=yt.current.Application;console.log("app:",Rt);const Sn=yield(yield(yield Rt.ActivePresentation).Slides).Count;console.log("count:",Sn);const Rn=yield Rt.ActivePresentation.SlideShowWindow.View.Slide.SlideIndex;console.log("curryPage:",Rn),ui(Rn);try{Rt.Sub.SlideSelectionChanged=qt=>un(this,null,function*(){console.log("\u5207\u6362\u540E\u7684\u9875\u7801\uFF1A",qt),ui(qt)})}catch(qt){console.error("\u4E8B\u4EF6\u7ED1\u5B9A\u51FA\u9519:",qt)}Rt.Sub.SlideShowEnd=()=>un(this,null,function*(){Ri("380rem")});const Jn=yield Rt.ActivePresentation.ExportAsFixedFormat({FixedFormatType:Rt.Enum.PpFixedFormatType.ppFixedFormatTypeIMG,From:1,To:1});console.log(Jn),ki(Jn),setTimeout(()=>un(this,null,function*(){yield(yield Rt.ActivePresentation.SlideShowSettings).Run()}),500)})}return le.createElement("div",null,le.createElement("div",{id:"weboffice-zone",style:{height:bi}}),le.createElement(sn,{pageCache:zi,pageNum:Ui,officeToken:Ht,aiImg:Ii}))};var xn=(0,Ie.connect)(({user:fn,classroomList:An,loading:nn,globalSetting:ci})=>({user:fn,classroomList:An,globalSetting:ci,loading:nn.effects}))(zt)},48421:function(Ge,be,de){"use strict";de.d(be,{AL:function(){return Ce},Iy:function(){return mt},Qv:function(){return je},ez:function(){return Se},jb:function(){return st}});var le=de(32834),Le=de.n(le),De=de(11690),Ie=de.n(De);let Ye=1;function Fe(rt,ft){const bt=rt.match(/^(\s+)(?:```)/);if(bt===null)return ft;const ut=bt[1];return ft.split(`
`).map(Tt=>{const Dt=Tt.match(/^\s+/);if(Dt===null)return Tt;const[en]=Dt;return en.length>=ut.length?Tt.slice(ut.length):Tt}).join(`
`)}let Ve=[],Xe=["<ul>"];const qe=new(Le()).Renderer,Je=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function mt(){Ve.length=0,Xe=["<ul>"]}const st={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Ct(rt,ft,bt,ut){if(ft>=rt.length||rt[ft].level<=bt)return ft;var Tt=rt[ft];ut.push("<li><a href='#"+Ye+Tt.anchor+"'>"+Tt.text+"</a>"),ft++;var Dt=[];return ft=Ct(rt,ft,Tt.level,Dt),Dt.length>0&&(ut.push("<ul>"),Dt.forEach(function(en){ut.push(en)}),ut.push("</ul>")),ut.push("</li>"),ft=Ct(rt,ft,bt,ut),ft}function je(){return Ct(Ve,0,0,Xe),Xe.push("</ul>"),Xe.join("")}const te={heading(rt){const ft=Je.exec(rt);if(Ye+=1,ft)return{type:"heading",raw:ft[0],depth:ft[1].length,text:ft[2]}},fences(rt){const ft=this.rules.block.fences.exec(rt);if(ft){const bt=ft[0];let ut=Fe(bt,ft[3]||"");const Tt=ft[2]?ft[2].trim():ft[2];if(["latex","katex","math"].indexOf(Tt)>=0){const Dt=se(),en=ut;ut=Dt,ge[Dt]={type:"block",expression:en}}return{type:"code",raw:bt,lang:Tt,text:ut}}}},ne=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let he=0;const se=()=>`__special_katext_id_${he++}__`;let ge={};function Se(){return ge}function Ce(){he=0,ge={}}function Oe(rt){return rt=rt.replace(ne,(ft,bt)=>{const ut=se();return ge[ut]={type:"inline",expression:bt},ut}),rt}const Be=qe.listitem;qe.listitem=function(rt){return Be(Oe(rt))};const Qe=qe.paragraph;qe.paragraph=function(rt){return Qe(Oe(rt))};const ot=qe.tablecell;qe.tablecell=function(rt,ft){return ot(Oe(rt),ft)},qe.code=function(rt,ft,bt){const ut=(ft||"").match(/\S*/)[0];return ut?["latex","katex","math"].indexOf(ut)>=0?`<p class='editormd-tex'>${rt}</p>`:`<pre class="prettyprint linenums"><code class="language-${ft}">${bt?rt:(0,De.escape)(rt,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(bt?rt:(0,De.escape)(rt,!0))+"</code></pre>"},qe.heading=function(rt,ft,bt){let ut=this.options.headerPrefix+bt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ve.push({anchor:ut,level:ft,text:rt}),"<h"+ft+' id="'+Ye+ut+'">'+rt+"</h"+ft+">"},Le().setOptions({silent:!0,gfm:!0,pedantic:!1}),Le().use({tokenizer:te,renderer:qe}),be.ZP=Le()},86251:function(Ge,be){"use strict";be.byteLength=Ve,be.toByteArray=qe,be.fromByteArray=st;for(var de=[],le=[],Le=typeof Uint8Array!="undefined"?Uint8Array:Array,De="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ie=0,Ye=De.length;Ie<Ye;++Ie)de[Ie]=De[Ie],le[De.charCodeAt(Ie)]=Ie;le[45]=62,le[95]=63;function Fe(Ct){var je=Ct.length;if(je%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var te=Ct.indexOf("=");te===-1&&(te=je);var ne=te===je?0:4-te%4;return[te,ne]}function Ve(Ct){var je=Fe(Ct),te=je[0],ne=je[1];return(te+ne)*3/4-ne}function Xe(Ct,je,te){return(je+te)*3/4-te}function qe(Ct){var je,te=Fe(Ct),ne=te[0],he=te[1],se=new Le(Xe(Ct,ne,he)),ge=0,Se=he>0?ne-4:ne,Ce;for(Ce=0;Ce<Se;Ce+=4)je=le[Ct.charCodeAt(Ce)]<<18|le[Ct.charCodeAt(Ce+1)]<<12|le[Ct.charCodeAt(Ce+2)]<<6|le[Ct.charCodeAt(Ce+3)],se[ge++]=je>>16&255,se[ge++]=je>>8&255,se[ge++]=je&255;return he===2&&(je=le[Ct.charCodeAt(Ce)]<<2|le[Ct.charCodeAt(Ce+1)]>>4,se[ge++]=je&255),he===1&&(je=le[Ct.charCodeAt(Ce)]<<10|le[Ct.charCodeAt(Ce+1)]<<4|le[Ct.charCodeAt(Ce+2)]>>2,se[ge++]=je>>8&255,se[ge++]=je&255),se}function Je(Ct){return de[Ct>>18&63]+de[Ct>>12&63]+de[Ct>>6&63]+de[Ct&63]}function mt(Ct,je,te){for(var ne,he=[],se=je;se<te;se+=3)ne=(Ct[se]<<16&16711680)+(Ct[se+1]<<8&65280)+(Ct[se+2]&255),he.push(Je(ne));return he.join("")}function st(Ct){for(var je,te=Ct.length,ne=te%3,he=[],se=16383,ge=0,Se=te-ne;ge<Se;ge+=se)he.push(mt(Ct,ge,ge+se>Se?Se:ge+se));return ne===1?(je=Ct[te-1],he.push(de[je>>2]+de[je<<4&63]+"==")):ne===2&&(je=(Ct[te-2]<<8)+Ct[te-1],he.push(de[je>>10]+de[je>>4&63]+de[je<<2&63]+"=")),he.join("")}},19208:function(Ge,be,de){"use strict";var le;var Le=de(86251),De=de(67467),Ie=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;be.lW=Xe,le=ge,be.h2=50;var Ye=2147483647;le=Ye,Xe.TYPED_ARRAY_SUPPORT=Fe(),!Xe.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 Fe(){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(Xe.prototype,"parent",{enumerable:!0,get:function(){if(Xe.isBuffer(this))return this.buffer}}),Object.defineProperty(Xe.prototype,"offset",{enumerable:!0,get:function(){if(Xe.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,Xe.prototype),Te}function Xe(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 qe(xe,Te,Me)}Xe.poolSize=8192;function qe(xe,Te,Me){if(typeof xe=="string")return Ct(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(hi(xe,ArrayBuffer)||xe&&hi(xe.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(hi(xe,SharedArrayBuffer)||xe&&hi(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 Ae=xe.valueOf&&xe.valueOf();if(Ae!=null&&Ae!==xe)return Xe.from(Ae,Te,Me);var at=he(xe);if(at)return at;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof xe[Symbol.toPrimitive]=="function")return Xe.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)}Xe.from=function(xe,Te,Me){return qe(xe,Te,Me)},Object.setPrototypeOf(Xe.prototype,Uint8Array.prototype),Object.setPrototypeOf(Xe,Uint8Array);function Je(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 Je(xe),xe<=0?Ve(xe):Te!==void 0?typeof Me=="string"?Ve(xe).fill(Te,Me):Ve(xe).fill(Te):Ve(xe)}Xe.alloc=function(xe,Te,Me){return mt(xe,Te,Me)};function st(xe){return Je(xe),Ve(xe<0?0:se(xe)|0)}Xe.allocUnsafe=function(xe){return st(xe)},Xe.allocUnsafeSlow=function(xe){return st(xe)};function Ct(xe,Te){if((typeof Te!="string"||Te==="")&&(Te="utf8"),!Xe.isEncoding(Te))throw new TypeError("Unknown encoding: "+Te);var Me=Se(xe,Te)|0,Ae=Ve(Me),at=Ae.write(xe,Te);return at!==Me&&(Ae=Ae.slice(0,at)),Ae}function je(xe){for(var Te=xe.length<0?0:se(xe.length)|0,Me=Ve(Te),Ae=0;Ae<Te;Ae+=1)Me[Ae]=xe[Ae]&255;return Me}function te(xe){if(hi(xe,Uint8Array)){var Te=new Uint8Array(xe);return ne(Te.buffer,Te.byteOffset,Te.byteLength)}return je(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 Ae;return Te===void 0&&Me===void 0?Ae=new Uint8Array(xe):Me===void 0?Ae=new Uint8Array(xe,Te):Ae=new Uint8Array(xe,Te,Me),Object.setPrototypeOf(Ae,Xe.prototype),Ae}function he(xe){if(Xe.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):je(xe);if(xe.type==="Buffer"&&Array.isArray(xe.data))return je(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),Xe.alloc(+xe)}Xe.isBuffer=function(Te){return Te!=null&&Te._isBuffer===!0&&Te!==Xe.prototype},Xe.compare=function(Te,Me){if(hi(Te,Uint8Array)&&(Te=Xe.from(Te,Te.offset,Te.byteLength)),hi(Me,Uint8Array)&&(Me=Xe.from(Me,Me.offset,Me.byteLength)),!Xe.isBuffer(Te)||!Xe.isBuffer(Me))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Te===Me)return 0;for(var Ae=Te.length,at=Me.length,Lt=0,Pt=Math.min(Ae,at);Lt<Pt;++Lt)if(Te[Lt]!==Me[Lt]){Ae=Te[Lt],at=Me[Lt];break}return Ae<at?-1:at<Ae?1:0},Xe.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}},Xe.concat=function(Te,Me){if(!Array.isArray(Te))throw new TypeError('"list" argument must be an Array of Buffers');if(Te.length===0)return Xe.alloc(0);var Ae;if(Me===void 0)for(Me=0,Ae=0;Ae<Te.length;++Ae)Me+=Te[Ae].length;var at=Xe.allocUnsafe(Me),Lt=0;for(Ae=0;Ae<Te.length;++Ae){var Pt=Te[Ae];if(hi(Pt,Uint8Array))Lt+Pt.length>at.length?Xe.from(Pt).copy(at,Lt):Uint8Array.prototype.set.call(at,Pt,Lt);else if(Xe.isBuffer(Pt))Pt.copy(at,Lt);else throw new TypeError('"list" argument must be an Array of Buffers');Lt+=Pt.length}return at};function Se(xe,Te){if(Xe.isBuffer(xe))return xe.length;if(ArrayBuffer.isView(xe)||hi(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,Ae=arguments.length>2&&arguments[2]===!0;if(!Ae&&Me===0)return 0;for(var at=!1;;)switch(Te){case"ascii":case"latin1":case"binary":return Me;case"utf8":case"utf-8":return _n(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(at)return Ae?-1:_n(xe).length;Te=(""+Te).toLowerCase(),at=!0}}Xe.byteLength=Se;function Ce(xe,Te,Me){var Ae=!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 mn(this,Te,Me);case"utf8":case"utf-8":return Dt(this,Te,Me);case"ascii":return vn(this,Te,Me);case"latin1":case"binary":return pn(this,Te,Me);case"base64":return Tt(this,Te,Me);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Mt(this,Te,Me);default:if(Ae)throw new TypeError("Unknown encoding: "+xe);xe=(xe+"").toLowerCase(),Ae=!0}}Xe.prototype._isBuffer=!0;function Oe(xe,Te,Me){var Ae=xe[Te];xe[Te]=xe[Me],xe[Me]=Ae}Xe.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},Xe.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},Xe.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},Xe.prototype.toString=function(){var Te=this.length;return Te===0?"":arguments.length===0?Dt(this,0,Te):Ce.apply(this,arguments)},Xe.prototype.toLocaleString=Xe.prototype.toString,Xe.prototype.equals=function(Te){if(!Xe.isBuffer(Te))throw new TypeError("Argument must be a Buffer");return this===Te?!0:Xe.compare(this,Te)===0},Xe.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+">"},Ie&&(Xe.prototype[Ie]=Xe.prototype.inspect),Xe.prototype.compare=function(Te,Me,Ae,at,Lt){if(hi(Te,Uint8Array)&&(Te=Xe.from(Te,Te.offset,Te.byteLength)),!Xe.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),Ae===void 0&&(Ae=Te?Te.length:0),at===void 0&&(at=0),Lt===void 0&&(Lt=this.length),Me<0||Ae>Te.length||at<0||Lt>this.length)throw new RangeError("out of range index");if(at>=Lt&&Me>=Ae)return 0;if(at>=Lt)return-1;if(Me>=Ae)return 1;if(Me>>>=0,Ae>>>=0,at>>>=0,Lt>>>=0,this===Te)return 0;for(var Pt=Lt-at,Vt=Ae-Me,It=Math.min(Pt,Vt),an=this.slice(at,Lt),sn=Te.slice(Me,Ae),on=0;on<It;++on)if(an[on]!==sn[on]){Pt=an[on],Vt=sn[on];break}return Pt<Vt?-1:Vt<Pt?1:0};function Be(xe,Te,Me,Ae,at){if(xe.length===0)return-1;if(typeof Me=="string"?(Ae=Me,Me=0):Me>2147483647?Me=2147483647:Me<-2147483648&&(Me=-2147483648),Me=+Me,et(Me)&&(Me=at?0:xe.length-1),Me<0&&(Me=xe.length+Me),Me>=xe.length){if(at)return-1;Me=xe.length-1}else if(Me<0)if(at)Me=0;else return-1;if(typeof Te=="string"&&(Te=Xe.from(Te,Ae)),Xe.isBuffer(Te))return Te.length===0?-1:Qe(xe,Te,Me,Ae,at);if(typeof Te=="number")return Te=Te&255,typeof Uint8Array.prototype.indexOf=="function"?at?Uint8Array.prototype.indexOf.call(xe,Te,Me):Uint8Array.prototype.lastIndexOf.call(xe,Te,Me):Qe(xe,[Te],Me,Ae,at);throw new TypeError("val must be string, number or Buffer")}function Qe(xe,Te,Me,Ae,at){var Lt=1,Pt=xe.length,Vt=Te.length;if(Ae!==void 0&&(Ae=String(Ae).toLowerCase(),Ae==="ucs2"||Ae==="ucs-2"||Ae==="utf16le"||Ae==="utf-16le")){if(xe.length<2||Te.length<2)return-1;Lt=2,Pt/=2,Vt/=2,Me/=2}function It(un,zt){return Lt===1?un[zt]:un.readUInt16BE(zt*Lt)}var an;if(at){var sn=-1;for(an=Me;an<Pt;an++)if(It(xe,an)===It(Te,sn===-1?0:an-sn)){if(sn===-1&&(sn=an),an-sn+1===Vt)return sn*Lt}else sn!==-1&&(an-=an-sn),sn=-1}else for(Me+Vt>Pt&&(Me=Pt-Vt),an=Me;an>=0;an--){for(var on=!0,bn=0;bn<Vt;bn++)if(It(xe,an+bn)!==It(Te,bn)){on=!1;break}if(on)return an}return-1}Xe.prototype.includes=function(Te,Me,Ae){return this.indexOf(Te,Me,Ae)!==-1},Xe.prototype.indexOf=function(Te,Me,Ae){return Be(this,Te,Me,Ae,!0)},Xe.prototype.lastIndexOf=function(Te,Me,Ae){return Be(this,Te,Me,Ae,!1)};function ot(xe,Te,Me,Ae){Me=Number(Me)||0;var at=xe.length-Me;Ae?(Ae=Number(Ae),Ae>at&&(Ae=at)):Ae=at;var Lt=Te.length;Ae>Lt/2&&(Ae=Lt/2);for(var Pt=0;Pt<Ae;++Pt){var Vt=parseInt(Te.substr(Pt*2,2),16);if(et(Vt))return Pt;xe[Me+Pt]=Vt}return Pt}function rt(xe,Te,Me,Ae){return Kn(_n(Te,xe.length-Me),xe,Me,Ae)}function ft(xe,Te,Me,Ae){return Kn(kn(Te),xe,Me,Ae)}function bt(xe,Te,Me,Ae){return Kn(kt(Te),xe,Me,Ae)}function ut(xe,Te,Me,Ae){return Kn(si(Te,xe.length-Me),xe,Me,Ae)}Xe.prototype.write=function(Te,Me,Ae,at){if(Me===void 0)at="utf8",Ae=this.length,Me=0;else if(Ae===void 0&&typeof Me=="string")at=Me,Ae=this.length,Me=0;else if(isFinite(Me))Me=Me>>>0,isFinite(Ae)?(Ae=Ae>>>0,at===void 0&&(at="utf8")):(at=Ae,Ae=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Lt=this.length-Me;if((Ae===void 0||Ae>Lt)&&(Ae=Lt),Te.length>0&&(Ae<0||Me<0)||Me>this.length)throw new RangeError("Attempt to write outside buffer bounds");at||(at="utf8");for(var Pt=!1;;)switch(at){case"hex":return ot(this,Te,Me,Ae);case"utf8":case"utf-8":return rt(this,Te,Me,Ae);case"ascii":case"latin1":case"binary":return ft(this,Te,Me,Ae);case"base64":return bt(this,Te,Me,Ae);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ut(this,Te,Me,Ae);default:if(Pt)throw new TypeError("Unknown encoding: "+at);at=(""+at).toLowerCase(),Pt=!0}},Xe.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Tt(xe,Te,Me){return Te===0&&Me===xe.length?Le.fromByteArray(xe):Le.fromByteArray(xe.slice(Te,Me))}function Dt(xe,Te,Me){Me=Math.min(xe.length,Me);for(var Ae=[],at=Te;at<Me;){var Lt=xe[at],Pt=null,Vt=Lt>239?4:Lt>223?3:Lt>191?2:1;if(at+Vt<=Me){var It,an,sn,on;switch(Vt){case 1:Lt<128&&(Pt=Lt);break;case 2:It=xe[at+1],(It&192)===128&&(on=(Lt&31)<<6|It&63,on>127&&(Pt=on));break;case 3:It=xe[at+1],an=xe[at+2],(It&192)===128&&(an&192)===128&&(on=(Lt&15)<<12|(It&63)<<6|an&63,on>2047&&(on<55296||on>57343)&&(Pt=on));break;case 4:It=xe[at+1],an=xe[at+2],sn=xe[at+3],(It&192)===128&&(an&192)===128&&(sn&192)===128&&(on=(Lt&15)<<18|(It&63)<<12|(an&63)<<6|sn&63,on>65535&&on<1114112&&(Pt=on))}}Pt===null?(Pt=65533,Vt=1):Pt>65535&&(Pt-=65536,Ae.push(Pt>>>10&1023|55296),Pt=56320|Pt&1023),Ae.push(Pt),at+=Vt}return Cn(Ae)}var en=4096;function Cn(xe){var Te=xe.length;if(Te<=en)return String.fromCharCode.apply(String,xe);for(var Me="",Ae=0;Ae<Te;)Me+=String.fromCharCode.apply(String,xe.slice(Ae,Ae+=en));return Me}function vn(xe,Te,Me){var Ae="";Me=Math.min(xe.length,Me);for(var at=Te;at<Me;++at)Ae+=String.fromCharCode(xe[at]&127);return Ae}function pn(xe,Te,Me){var Ae="";Me=Math.min(xe.length,Me);for(var at=Te;at<Me;++at)Ae+=String.fromCharCode(xe[at]);return Ae}function mn(xe,Te,Me){var Ae=xe.length;(!Te||Te<0)&&(Te=0),(!Me||Me<0||Me>Ae)&&(Me=Ae);for(var at="",Lt=Te;Lt<Me;++Lt)at+=_e[xe[Lt]];return at}function Mt(xe,Te,Me){for(var Ae=xe.slice(Te,Me),at="",Lt=0;Lt<Ae.length-1;Lt+=2)at+=String.fromCharCode(Ae[Lt]+Ae[Lt+1]*256);return at}Xe.prototype.slice=function(Te,Me){var Ae=this.length;Te=~~Te,Me=Me===void 0?Ae:~~Me,Te<0?(Te+=Ae,Te<0&&(Te=0)):Te>Ae&&(Te=Ae),Me<0?(Me+=Ae,Me<0&&(Me=0)):Me>Ae&&(Me=Ae),Me<Te&&(Me=Te);var at=this.subarray(Te,Me);return Object.setPrototypeOf(at,Xe.prototype),at};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")}Xe.prototype.readUintLE=Xe.prototype.readUIntLE=function(Te,Me,Ae){Te=Te>>>0,Me=Me>>>0,Ae||ct(Te,Me,this.length);for(var at=this[Te],Lt=1,Pt=0;++Pt<Me&&(Lt*=256);)at+=this[Te+Pt]*Lt;return at},Xe.prototype.readUintBE=Xe.prototype.readUIntBE=function(Te,Me,Ae){Te=Te>>>0,Me=Me>>>0,Ae||ct(Te,Me,this.length);for(var at=this[Te+--Me],Lt=1;Me>0&&(Lt*=256);)at+=this[Te+--Me]*Lt;return at},Xe.prototype.readUint8=Xe.prototype.readUInt8=function(Te,Me){return Te=Te>>>0,Me||ct(Te,1,this.length),this[Te]},Xe.prototype.readUint16LE=Xe.prototype.readUInt16LE=function(Te,Me){return Te=Te>>>0,Me||ct(Te,2,this.length),this[Te]|this[Te+1]<<8},Xe.prototype.readUint16BE=Xe.prototype.readUInt16BE=function(Te,Me){return Te=Te>>>0,Me||ct(Te,2,this.length),this[Te]<<8|this[Te+1]},Xe.prototype.readUint32LE=Xe.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},Xe.prototype.readUint32BE=Xe.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])},Xe.prototype.readIntLE=function(Te,Me,Ae){Te=Te>>>0,Me=Me>>>0,Ae||ct(Te,Me,this.length);for(var at=this[Te],Lt=1,Pt=0;++Pt<Me&&(Lt*=256);)at+=this[Te+Pt]*Lt;return Lt*=128,at>=Lt&&(at-=Math.pow(2,8*Me)),at},Xe.prototype.readIntBE=function(Te,Me,Ae){Te=Te>>>0,Me=Me>>>0,Ae||ct(Te,Me,this.length);for(var at=Me,Lt=1,Pt=this[Te+--at];at>0&&(Lt*=256);)Pt+=this[Te+--at]*Lt;return Lt*=128,Pt>=Lt&&(Pt-=Math.pow(2,8*Me)),Pt},Xe.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]},Xe.prototype.readInt16LE=function(Te,Me){Te=Te>>>0,Me||ct(Te,2,this.length);var Ae=this[Te]|this[Te+1]<<8;return Ae&32768?Ae|4294901760:Ae},Xe.prototype.readInt16BE=function(Te,Me){Te=Te>>>0,Me||ct(Te,2,this.length);var Ae=this[Te+1]|this[Te]<<8;return Ae&32768?Ae|4294901760:Ae},Xe.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},Xe.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]},Xe.prototype.readFloatLE=function(Te,Me){return Te=Te>>>0,Me||ct(Te,4,this.length),De.read(this,Te,!0,23,4)},Xe.prototype.readFloatBE=function(Te,Me){return Te=Te>>>0,Me||ct(Te,4,this.length),De.read(this,Te,!1,23,4)},Xe.prototype.readDoubleLE=function(Te,Me){return Te=Te>>>0,Me||ct(Te,8,this.length),De.read(this,Te,!0,52,8)},Xe.prototype.readDoubleBE=function(Te,Me){return Te=Te>>>0,Me||ct(Te,8,this.length),De.read(this,Te,!1,52,8)};function nt(xe,Te,Me,Ae,at,Lt){if(!Xe.isBuffer(xe))throw new TypeError('"buffer" argument must be a Buffer instance');if(Te>at||Te<Lt)throw new RangeError('"value" argument is out of bounds');if(Me+Ae>xe.length)throw new RangeError("Index out of range")}Xe.prototype.writeUintLE=Xe.prototype.writeUIntLE=function(Te,Me,Ae,at){if(Te=+Te,Me=Me>>>0,Ae=Ae>>>0,!at){var Lt=Math.pow(2,8*Ae)-1;nt(this,Te,Me,Ae,Lt,0)}var Pt=1,Vt=0;for(this[Me]=Te&255;++Vt<Ae&&(Pt*=256);)this[Me+Vt]=Te/Pt&255;return Me+Ae},Xe.prototype.writeUintBE=Xe.prototype.writeUIntBE=function(Te,Me,Ae,at){if(Te=+Te,Me=Me>>>0,Ae=Ae>>>0,!at){var Lt=Math.pow(2,8*Ae)-1;nt(this,Te,Me,Ae,Lt,0)}var Pt=Ae-1,Vt=1;for(this[Me+Pt]=Te&255;--Pt>=0&&(Vt*=256);)this[Me+Pt]=Te/Vt&255;return Me+Ae},Xe.prototype.writeUint8=Xe.prototype.writeUInt8=function(Te,Me,Ae){return Te=+Te,Me=Me>>>0,Ae||nt(this,Te,Me,1,255,0),this[Me]=Te&255,Me+1},Xe.prototype.writeUint16LE=Xe.prototype.writeUInt16LE=function(Te,Me,Ae){return Te=+Te,Me=Me>>>0,Ae||nt(this,Te,Me,2,65535,0),this[Me]=Te&255,this[Me+1]=Te>>>8,Me+2},Xe.prototype.writeUint16BE=Xe.prototype.writeUInt16BE=function(Te,Me,Ae){return Te=+Te,Me=Me>>>0,Ae||nt(this,Te,Me,2,65535,0),this[Me]=Te>>>8,this[Me+1]=Te&255,Me+2},Xe.prototype.writeUint32LE=Xe.prototype.writeUInt32LE=function(Te,Me,Ae){return Te=+Te,Me=Me>>>0,Ae||nt(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},Xe.prototype.writeUint32BE=Xe.prototype.writeUInt32BE=function(Te,Me,Ae){return Te=+Te,Me=Me>>>0,Ae||nt(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},Xe.prototype.writeIntLE=function(Te,Me,Ae,at){if(Te=+Te,Me=Me>>>0,!at){var Lt=Math.pow(2,8*Ae-1);nt(this,Te,Me,Ae,Lt-1,-Lt)}var Pt=0,Vt=1,It=0;for(this[Me]=Te&255;++Pt<Ae&&(Vt*=256);)Te<0&&It===0&&this[Me+Pt-1]!==0&&(It=1),this[Me+Pt]=(Te/Vt>>0)-It&255;return Me+Ae},Xe.prototype.writeIntBE=function(Te,Me,Ae,at){if(Te=+Te,Me=Me>>>0,!at){var Lt=Math.pow(2,8*Ae-1);nt(this,Te,Me,Ae,Lt-1,-Lt)}var Pt=Ae-1,Vt=1,It=0;for(this[Me+Pt]=Te&255;--Pt>=0&&(Vt*=256);)Te<0&&It===0&&this[Me+Pt+1]!==0&&(It=1),this[Me+Pt]=(Te/Vt>>0)-It&255;return Me+Ae},Xe.prototype.writeInt8=function(Te,Me,Ae){return Te=+Te,Me=Me>>>0,Ae||nt(this,Te,Me,1,127,-128),Te<0&&(Te=255+Te+1),this[Me]=Te&255,Me+1},Xe.prototype.writeInt16LE=function(Te,Me,Ae){return Te=+Te,Me=Me>>>0,Ae||nt(this,Te,Me,2,32767,-32768),this[Me]=Te&255,this[Me+1]=Te>>>8,Me+2},Xe.prototype.writeInt16BE=function(Te,Me,Ae){return Te=+Te,Me=Me>>>0,Ae||nt(this,Te,Me,2,32767,-32768),this[Me]=Te>>>8,this[Me+1]=Te&255,Me+2},Xe.prototype.writeInt32LE=function(Te,Me,Ae){return Te=+Te,Me=Me>>>0,Ae||nt(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},Xe.prototype.writeInt32BE=function(Te,Me,Ae){return Te=+Te,Me=Me>>>0,Ae||nt(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 dn(xe,Te,Me,Ae,at,Lt){if(Me+Ae>xe.length)throw new RangeError("Index out of range");if(Me<0)throw new RangeError("Index out of range")}function En(xe,Te,Me,Ae,at){return Te=+Te,Me=Me>>>0,at||dn(xe,Te,Me,4,34028234663852886e22,-34028234663852886e22),De.write(xe,Te,Me,Ae,23,4),Me+4}Xe.prototype.writeFloatLE=function(Te,Me,Ae){return En(this,Te,Me,!0,Ae)},Xe.prototype.writeFloatBE=function(Te,Me,Ae){return En(this,Te,Me,!1,Ae)};function Nt(xe,Te,Me,Ae,at){return Te=+Te,Me=Me>>>0,at||dn(xe,Te,Me,8,17976931348623157e292,-17976931348623157e292),De.write(xe,Te,Me,Ae,52,8),Me+8}Xe.prototype.writeDoubleLE=function(Te,Me,Ae){return Nt(this,Te,Me,!0,Ae)},Xe.prototype.writeDoubleBE=function(Te,Me,Ae){return Nt(this,Te,Me,!1,Ae)},Xe.prototype.copy=function(Te,Me,Ae,at){if(!Xe.isBuffer(Te))throw new TypeError("argument should be a Buffer");if(Ae||(Ae=0),!at&&at!==0&&(at=this.length),Me>=Te.length&&(Me=Te.length),Me||(Me=0),at>0&&at<Ae&&(at=Ae),at===Ae||Te.length===0||this.length===0)return 0;if(Me<0)throw new RangeError("targetStart out of bounds");if(Ae<0||Ae>=this.length)throw new RangeError("Index out of range");if(at<0)throw new RangeError("sourceEnd out of bounds");at>this.length&&(at=this.length),Te.length-Me<at-Ae&&(at=Te.length-Me+Ae);var Lt=at-Ae;return this===Te&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(Me,Ae,at):Uint8Array.prototype.set.call(Te,this.subarray(Ae,at),Me),Lt},Xe.prototype.fill=function(Te,Me,Ae,at){if(typeof Te=="string"){if(typeof Me=="string"?(at=Me,Me=0,Ae=this.length):typeof Ae=="string"&&(at=Ae,Ae=this.length),at!==void 0&&typeof at!="string")throw new TypeError("encoding must be a string");if(typeof at=="string"&&!Xe.isEncoding(at))throw new TypeError("Unknown encoding: "+at);if(Te.length===1){var Lt=Te.charCodeAt(0);(at==="utf8"&&Lt<128||at==="latin1")&&(Te=Lt)}}else typeof Te=="number"?Te=Te&255:typeof Te=="boolean"&&(Te=Number(Te));if(Me<0||this.length<Me||this.length<Ae)throw new RangeError("Out of range index");if(Ae<=Me)return this;Me=Me>>>0,Ae=Ae===void 0?this.length:Ae>>>0,Te||(Te=0);var Pt;if(typeof Te=="number")for(Pt=Me;Pt<Ae;++Pt)this[Pt]=Te;else{var Vt=Xe.isBuffer(Te)?Te:Xe.from(Te,at),It=Vt.length;if(It===0)throw new TypeError('The value "'+Te+'" is invalid for argument "value"');for(Pt=0;Pt<Ae-Me;++Pt)this[Pt+Me]=Vt[Pt%It]}return this};var cn=/[^+/0-9A-Za-z-_]/g;function ln(xe){if(xe=xe.split("=")[0],xe=xe.trim().replace(cn,""),xe.length<2)return"";for(;xe.length%4!==0;)xe=xe+"=";return xe}function _n(xe,Te){Te=Te||1/0;for(var Me,Ae=xe.length,at=null,Lt=[],Pt=0;Pt<Ae;++Pt){if(Me=xe.charCodeAt(Pt),Me>55295&&Me<57344){if(!at){if(Me>56319){(Te-=3)>-1&&Lt.push(239,191,189);continue}else if(Pt+1===Ae){(Te-=3)>-1&&Lt.push(239,191,189);continue}at=Me;continue}if(Me<56320){(Te-=3)>-1&&Lt.push(239,191,189),at=Me;continue}Me=(at-55296<<10|Me-56320)+65536}else at&&(Te-=3)>-1&&Lt.push(239,191,189);if(at=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 kn(xe){for(var Te=[],Me=0;Me<xe.length;++Me)Te.push(xe.charCodeAt(Me)&255);return Te}function si(xe,Te){for(var Me,Ae,at,Lt=[],Pt=0;Pt<xe.length&&!((Te-=2)<0);++Pt)Me=xe.charCodeAt(Pt),Ae=Me>>8,at=Me%256,Lt.push(at),Lt.push(Ae);return Lt}function kt(xe){return Le.toByteArray(ln(xe))}function Kn(xe,Te,Me,Ae){for(var at=0;at<Ae&&!(at+Me>=Te.length||at>=xe.length);++at)Te[at+Me]=xe[at];return at}function hi(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 _e=function(){for(var xe="0123456789abcdef",Te=new Array(256),Me=0;Me<16;++Me)for(var Ae=Me*16,at=0;at<16;++at)Te[Ae+at]=xe[Me]+xe[at];return Te}()},99498:function(Ge,be,de){(function(le){le(de(89780))})(function(le){le.defineOption("placeholder","",function(Xe,qe,Je){var mt=Je&&Je!=le.Init;if(qe&&!mt)Xe.on("blur",Ye),Xe.on("change",Fe),Xe.on("swapDoc",Fe),le.on(Xe.getInputField(),"compositionupdate",Xe.state.placeholderCompose=function(){Ie(Xe)}),Fe(Xe);else if(!qe&&mt){Xe.off("blur",Ye),Xe.off("change",Fe),Xe.off("swapDoc",Fe),le.off(Xe.getInputField(),"compositionupdate",Xe.state.placeholderCompose),Le(Xe);var st=Xe.getWrapperElement();st.className=st.className.replace(" CodeMirror-empty","")}qe&&!Xe.hasFocus()&&Ye(Xe)});function Le(Xe){Xe.state.placeholder&&(Xe.state.placeholder.parentNode.removeChild(Xe.state.placeholder),Xe.state.placeholder=null)}function De(Xe){Le(Xe);var qe=Xe.state.placeholder=document.createElement("pre");qe.style.cssText="height: 0; overflow: visible",qe.style.direction=Xe.getOption("direction"),qe.className="CodeMirror-placeholder CodeMirror-line-like";var Je=Xe.getOption("placeholder");typeof Je=="string"&&(Je=document.createTextNode(Je)),qe.appendChild(Je),Xe.display.lineSpace.insertBefore(qe,Xe.display.lineSpace.firstChild)}function Ie(Xe){setTimeout(function(){var qe=!1,Je=Xe.getInputField();Je.nodeName=="TEXTAREA"?qe=!Je.value:Xe.lineCount()==1&&(qe=!/[^\u200b]/.test(Je.querySelector(".CodeMirror-line").textContent)),qe?De(Xe):Le(Xe)},20)}function Ye(Xe){Ve(Xe)&&De(Xe)}function Fe(Xe){var qe=Xe.getWrapperElement(),Je=Ve(Xe);qe.className=qe.className.replace(" CodeMirror-empty","")+(Je?" CodeMirror-empty":""),Je?De(Xe):Le(Xe)}function Ve(Xe){return Xe.lineCount()===1&&Xe.getLine(0)===""}})},25717:function(Ge,be,de){(function(le){le(de(89780))})(function(le){var Le={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&&(Fe(Ie(ne,"pairs")),te.state.closeBrackets=ne,te.addKeyMap(Ye))});function Ie(te,ne){return ne=="pairs"&&typeof te=="string"?te:typeof te=="object"&&te[ne]!=null?te[ne]:Le[ne]}var Ye={Backspace:qe,Enter:Je};function Fe(te){for(var ne=0;ne<te.length;ne++){var he=te.charAt(ne),se="'"+he+"'";Ye[se]||(Ye[se]=Ve(he))}}Fe(Le.pairs+"`");function Ve(te){return function(ne){return st(ne,te)}}function Xe(te){var ne=te.state.closeBrackets;if(!ne||ne.override)return ne;var he=te.getModeAt(te.getCursor());return he.closeBrackets||ne}function qe(te){var ne=Xe(te);if(!ne||te.getOption("disableInput"))return le.Pass;for(var he=Ie(ne,"pairs"),se=te.listSelections(),ge=0;ge<se.length;ge++){if(!se[ge].empty())return le.Pass;var Se=Ct(te,se[ge].head);if(!Se||he.indexOf(Se)%2!=0)return le.Pass}for(var ge=se.length-1;ge>=0;ge--){var Ce=se[ge].head;te.replaceRange("",De(Ce.line,Ce.ch-1),De(Ce.line,Ce.ch+1),"+delete")}}function Je(te){var ne=Xe(te),he=ne&&Ie(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=Ct(te,se[ge].head);if(!Se||he.indexOf(Se)%2!=0)return le.Pass}te.operation(function(){var Ce=te.lineSeparator()||`
`;te.replaceSelection(Ce+Ce,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=Xe(te);if(!he||te.getOption("disableInput"))return le.Pass;var se=Ie(he,"pairs"),ge=se.indexOf(ne);if(ge==-1)return le.Pass;for(var Se=Ie(he,"closeBefore"),Ce=Ie(he,"triples"),Oe=se.charAt(ge+1)==ne,Be=te.listSelections(),Qe=ge%2==0,ot,rt=0;rt<Be.length;rt++){var ft=Be[rt],bt=ft.head,ut,Tt=te.getRange(bt,De(bt.line,bt.ch+1));if(Qe&&!ft.empty())ut="surround";else if((Oe||!Qe)&&Tt==ne)Oe&&je(te,bt)?ut="both":Ce.indexOf(ne)>=0&&te.getRange(bt,De(bt.line,bt.ch+3))==ne+ne+ne?ut="skipThree":ut="skip";else if(Oe&&bt.ch>1&&Ce.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;ut="addFour"}else if(Oe){var Dt=bt.ch==0?" ":te.getRange(De(bt.line,bt.ch-1),bt);if(!le.isWordChar(Tt)&&Dt!=ne&&!le.isWordChar(Dt))ut="both";else return le.Pass}else if(Qe&&(Tt.length===0||/\s/.test(Tt)||Se.indexOf(Tt)>-1))ut="both";else return le.Pass;if(!ot)ot=ut;else if(ot!=ut)return le.Pass}var en=ge%2?se.charAt(ge-1):ne,Cn=ge%2?ne:se.charAt(ge+1);te.operation(function(){if(ot=="skip")te.execCommand("goCharRight");else if(ot=="skipThree")for(var vn=0;vn<3;vn++)te.execCommand("goCharRight");else if(ot=="surround"){for(var pn=te.getSelections(),vn=0;vn<pn.length;vn++)pn[vn]=en+pn[vn]+Cn;te.replaceSelections(pn,"around"),pn=te.listSelections().slice();for(var vn=0;vn<pn.length;vn++)pn[vn]=mt(pn[vn]);te.setSelections(pn)}else ot=="both"?(te.replaceSelection(en+Cn,null),te.triggerElectric(en+Cn),te.execCommand("goCharLeft")):ot=="addFour"&&(te.replaceSelection(en+en+en+en,"before"),te.execCommand("goCharRight"))})}function Ct(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 je(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(qe,Je,mt){if(mt!=le.Init&&mt&&qe.removeKeyMap("autoCloseTags"),!!Je){var st={name:"autoCloseTags"};(typeof Je!="object"||Je.whenClosing!==!1)&&(st["'/'"]=function(Ct){return Fe(Ct)}),(typeof Je!="object"||Je.whenOpening!==!1)&&(st["'>'"]=function(Ct){return Ie(Ct)}),qe.addKeyMap(st)}});var Le=["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 Ie(qe){if(qe.getOption("disableInput"))return le.Pass;for(var Je=qe.listSelections(),mt=[],st=qe.getOption("autoCloseTags"),Ct=0;Ct<Je.length;Ct++){if(!Je[Ct].empty())return le.Pass;var je=Je[Ct].head,te=qe.getTokenAt(je),ne=le.innerMode(qe.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",Ce=typeof st=="object"&&st.dontCloseTags||Se&&Le,Oe=typeof st=="object"&&st.indentTags||Se&&De;te.end>je.ch&&(ge=ge.slice(0,ge.length-te.end+je.ch));var Be=ge.toLowerCase();if(!ge||te.type=="string"&&(te.end!=je.ch||!/[\"\']/.test(te.string.charAt(te.string.length-1))||te.string.length==1)||te.type=="tag"&&se.close||te.string.indexOf("/")==je.ch-te.start-1||Ce&&Ve(Ce,Be)>-1||Xe(qe,ne.mode.xmlCurrentContext&&ne.mode.xmlCurrentContext(he)||[],ge,je,!0))return le.Pass;var Qe=typeof st=="object"&&st.emptyTags;if(Qe&&Ve(Qe,ge)>-1){mt[Ct]={text:"/>",newPos:le.Pos(je.line,je.ch+2)};continue}var ot=Oe&&Ve(Oe,Be)>-1;mt[Ct]={indent:ot,text:">"+(ot?`
`:"")+"</"+ge+">",newPos:ot?le.Pos(je.line+1,0):le.Pos(je.line,je.ch+1)}}for(var rt=typeof st=="object"&&st.dontIndentOnAutoClose,Ct=Je.length-1;Ct>=0;Ct--){var ft=mt[Ct];qe.replaceRange(ft.text,Je[Ct].head,Je[Ct].anchor,"+insert");var bt=qe.listSelections().slice(0);bt[Ct]={head:ft.newPos,anchor:ft.newPos},qe.setSelections(bt),!rt&&ft.indent&&(qe.indentLine(ft.newPos.line,null,!0),qe.indentLine(ft.newPos.line+1,null,!0))}}function Ye(qe,Je){for(var mt=qe.listSelections(),st=[],Ct=Je?"/":"</",je=qe.getOption("autoCloseTags"),te=typeof je=="object"&&je.dontIndentOnSlash,ne=0;ne<mt.length;ne++){if(!mt[ne].empty())return le.Pass;var he=mt[ne].head,se=qe.getTokenAt(he),ge=le.innerMode(qe.getMode(),se.state),Se=ge.state;if(Je&&(se.type=="string"||se.string.charAt(0)!="<"||se.start!=he.ch-1))return le.Pass;var Ce,Oe=ge.mode.name!="xml"&&qe.getMode().name=="htmlmixed";if(Oe&&ge.mode.name=="javascript")Ce=Ct+"script";else if(Oe&&ge.mode.name=="css")Ce=Ct+"style";else{var Be=ge.mode.xmlCurrentContext&&ge.mode.xmlCurrentContext(Se);if(!Be||Be.length&&Xe(qe,Be,Be[Be.length-1],he))return le.Pass;Ce=Ct+Be[Be.length-1]}qe.getLine(he.line).charAt(se.end)!=">"&&(Ce+=">"),st[ne]=Ce}if(qe.replaceSelections(st),mt=qe.listSelections(),!te)for(var ne=0;ne<mt.length;ne++)(ne==mt.length-1||mt[ne].head.line<mt[ne+1].head.line)&&qe.indentLine(mt[ne].head.line)}function Fe(qe){return qe.getOption("disableInput")?le.Pass:Ye(qe,!0)}le.commands.closeTag=function(qe){return Ye(qe)};function Ve(qe,Je){if(qe.indexOf)return qe.indexOf(Je);for(var mt=0,st=qe.length;mt<st;++mt)if(qe[mt]==Je)return mt;return-1}function Xe(qe,Je,mt,st,Ct){if(!le.scanForClosingTag)return!1;var je=Math.min(qe.lastLine()+1,st.line+500),te=le.scanForClosingTag(qe,st,null,je);if(!te||te.tag!=mt)return!1;for(var ne=Ct?1:0,he=Je.length-1;he>=0&&Je[he]==mt;he--)++ne;st=te.to;for(var he=1;he<ne;he++){var se=le.scanForClosingTag(qe,st,null,je);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 Le=le.Pos;function De(he,se){return he.line-se.line||he.ch-se.ch}var Ie="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=Ie+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Fe=new RegExp("<(/?)(["+Ie+"]["+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 Xe(he,se){var ge=he.cm.getTokenTypeAt(Le(he.line,se));return ge&&/\btag\b/.test(ge)}function qe(he){if(!(he.line>=he.max))return he.ch=0,he.text=he.cm.getLine(++he.line),!0}function Je(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(qe(he))continue;return}if(!Xe(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(Je(he))continue;return}if(!Xe(he,se+1)){he.ch=se;continue}Fe.lastIndex=se,he.ch=se;var ge=Fe.exec(he.text);if(ge&&ge.index==se)return ge}}function Ct(he){for(;;){Fe.lastIndex=he.ch;var se=Fe.exec(he.text);if(!se){if(qe(he))continue;return}if(!Xe(he,se.index+1)){he.ch=se.index+1;continue}return he.ch=se.index+se[0].length,se}}function je(he){for(;;){var se=he.ch?he.text.lastIndexOf(">",he.ch-1):-1;if(se==-1){if(Je(he))continue;return}if(!Xe(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=Ct(he),Ce,Oe=he.line,Be=he.ch-(Se?Se[0].length:0);if(!Se||!(Ce=mt(he)))return;if(Ce!="selfClose")if(Se[1]){for(var Qe=ge.length-1;Qe>=0;--Qe)if(ge[Qe]==Se[2]){ge.length=Qe;break}if(Qe<0&&(!se||se==Se[2]))return{tag:Se[2],from:Le(Oe,Be),to:Le(he.line,he.ch)}}else ge.push(Se[2])}}function ne(he,se){for(var ge=[];;){var Se=je(he);if(!Se)return;if(Se=="selfClose"){st(he);continue}var Ce=he.line,Oe=he.ch,Be=st(he);if(!Be)return;if(Be[1])ge.push(Be[2]);else{for(var Qe=ge.length-1;Qe>=0;--Qe)if(ge[Qe]==Be[2]){ge.length=Qe;break}if(Qe<0&&(!se||se==Be[2]))return{tag:Be[2],from:Le(he.line,he.ch),to:Le(Ce,Oe)}}}}le.registerHelper("fold","xml",function(he,se){for(var ge=new Ve(he,se.line,0);;){var Se=Ct(ge);if(!Se||ge.line!=se.line)return;var Ce=mt(ge);if(!Ce)return;if(!Se[1]&&Ce!="selfClose"){var Oe=Le(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 Ce=mt(Se),Oe=Ce&&Le(Se.line,Se.ch),Be=Ce&&st(Se);if(!(!Ce||!Be||De(Se,se)>0)){var Qe={from:Le(Se.line,Se.ch),to:Oe,tag:Be[2]};return Ce=="selfClose"?{open:Qe,close:null,at:"open"}:Be[1]?{open:ne(Se,Be[2]),close:Qe,at:"close"}:(Se=new Ve(he,Oe.line,Oe.ch,ge),{open:Qe,close:te(Se,Be[2]),at:"open"})}}},le.findEnclosingTag=function(he,se,ge,Se){for(var Ce=new Ve(he,se.line,se.ch,ge);;){var Oe=ne(Ce,Se);if(!Oe)break;var Be=new Ve(he,se.line,se.ch,ge),Qe=te(Be,Oe.tag);if(Qe)return{open:Oe,close:Qe}}},le.scanForClosingTag=function(he,se,ge,Se){var Ce=new Ve(he,se.line,se.ch,Se?{from:0,to:Se}:null);return te(Ce,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),Le=/MSIE \d/.test(be),De=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(be),Ie=/Edge\/(\d+)/.exec(be),Ye=Le||De||Ie,Fe=Ye&&(Le?document.documentMode||6:+(Ie||De)[1]),Ve=!Ie&&/WebKit\//.test(be),Xe=Ve&&/Qt\/\d+\.\d+/.test(be),qe=!Ie&&/Chrome\//.test(be),Je=/Opera\//.test(be),mt=/Apple Computer/.test(navigator.vendor),st=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(be),Ct=/PhantomJS/.test(be),je=!Ie&&/AppleWebKit/.test(be)&&/Mobile\/\w+/.test(be),te=/Android/.test(be),ne=je||te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(be),he=je||/Mac/.test(de),se=/\bCrOS\b/.test(be),ge=/win/i.test(de),Se=Je&&be.match(/Version\/(\d*\.\d*)/);Se&&(Se=Number(Se[1])),Se&&Se>=15&&(Je=!1,Ve=!0);var Ce=he&&(Xe||Je&&(Se==null||Se<12.11)),Oe=le||Ye&&Fe>=9;function Be(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var Qe=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 ot(ie){for(var ae=ie.childNodes.length;ae>0;--ae)ie.removeChild(ie.firstChild);return ie}function rt(ie,ae){return ot(ie).appendChild(ae)}function ft(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 ze=0;ze<ae.length;++ze)Ee.appendChild(ae[ze]);return Ee}function bt(ie,ae,ve,me){var Ee=ft(ie,ae,ve,me);return Ee.setAttribute("role","presentation"),Ee}var ut;document.createRange?ut=function(ie,ae,ve,me){var Ee=document.createRange();return Ee.setEnd(me||ie,ve),Ee.setStart(ie,ae),Ee}:ut=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 Tt(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 Dt(){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 en(ie,ae){var ve=ie.className;Be(ae).test(ve)||(ie.className+=(ve?" ":"")+ae)}function Cn(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 vn=function(ie){ie.select()};je?vn=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:Ye&&(vn=function(ie){try{ie.select()}catch(ae){}});function pn(ie){var ae=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,ae)}}function mn(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 Mt(ie,ae,ve,me,Ee){ae==null&&(ae=ie.search(/[^\s\u00a0]/),ae==-1&&(ae=ie.length));for(var ze=me||0,$e=Ee||0;;){var gt=ie.indexOf(" ",ze);if(gt<0||gt>=ae)return $e+(ae-ze);$e+=gt-ze,$e+=ve-$e%ve,ze=gt+1}}var ct=function(){this.id=null,this.f=null,this.time=0,this.handler=pn(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 nt(ie,ae){for(var ve=0;ve<ie.length;++ve)if(ie[ve]==ae)return ve;return-1}var dn=50,En={toString:function(){return"CodeMirror.Pass"}},Nt={scroll:!1},cn={origin:"*mouse"},ln={origin:"+move"};function _n(ie,ae,ve){for(var me=0,Ee=0;;){var ze=ie.indexOf(" ",me);ze==-1&&(ze=ie.length);var $e=ze-me;if(ze==ie.length||Ee+$e>=ae)return me+Math.min($e,ae-Ee);if(Ee+=ze-me,Ee+=ve-Ee%ve,me=ze+1,Ee>=ae)return me}}var kn=[""];function si(ie){for(;kn.length<=ie;)kn.push(kt(kn)+" ");return kn[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 hi(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 _e(ie,ae){var ve;return Object.create?ve=Object.create(ie):(et.prototype=ie,ve=new et),ae&&mn(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 Ae(ie){for(var ae in ie)if(ie.hasOwnProperty(ae)&&ie[ae])return!1;return!0}var at=/[\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&&at.test(ie)}function Pt(ie,ae,ve){for(;(ve<0?ae>0:ae<ie.length)&&Lt(ie.charAt(ae));)ae+=ve;return ae}function Vt(ie,ae,ve){for(var me=ae>ve?-1:1;;){if(ae==ve)return ae;var Ee=(ae+ve)/2,ze=me<0?Math.ceil(Ee):Math.floor(Ee);if(ze==ae)return ie(ze)?ae:ve;ie(ze)?ve=ze:ae=ze+me}}function It(ie,ae,ve,me){if(!ie)return me(ae,ve,"ltr",0);for(var Ee=!1,ze=0;ze<ie.length;++ze){var $e=ie[ze];($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",ze),Ee=!0)}Ee||me(ae,ve,"ltr")}var an=null;function sn(ie,ae,ve){var me;an=null;for(var Ee=0;Ee<ie.length;++Ee){var ze=ie[Ee];if(ze.from<ae&&ze.to>ae)return Ee;ze.to==ae&&(ze.from!=ze.to&&ve=="before"?me=Ee:an=Ee),ze.from==ae&&(ze.from!=ze.to&&ve!="before"?me=Ee:an=Ee)}return me!=null?me:an}var on=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ae="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ve(At){return At<=247?ie.charAt(At):1424<=At&&At<=1524?"R":1536<=At&&At<=1785?ae.charAt(At-1536):1774<=At&&At<=2220?"r":8192<=At&&At<=8203?"w":At==8204?"b":"L"}var me=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Ee=/[stwN]/,ze=/[LRr]/,$e=/[Lb1n]/,gt=/[1n]/;function dt(At,hn,Bt){this.level=At,this.from=hn,this.to=Bt}return function(At,hn){var Bt=hn=="ltr"?"L":"R";if(At.length==0||hn=="ltr"&&!me.test(At))return!1;for(var Wn=At.length,jn=[],Mi=0;Mi<Wn;++Mi)jn.push(ve(At.charCodeAt(Mi)));for(var Oi=0,Gi=Bt;Oi<Wn;++Oi){var or=jn[Oi];or=="m"?jn[Oi]=Gi:Gi=or}for(var Pr=0,Sr=Bt;Pr<Wn;++Pr){var Br=jn[Pr];Br=="1"&&Sr=="r"?jn[Pr]="n":ze.test(Br)&&(Sr=Br,Br=="r"&&(jn[Pr]="R"))}for(var so=1,yr=jn[0];so<Wn-1;++so){var Mo=jn[so];Mo=="+"&&yr=="1"&&jn[so+1]=="1"?jn[so]="1":Mo==","&&yr==jn[so+1]&&(yr=="1"||yr=="n")&&(jn[so]=yr),yr=Mo}for(var Ra=0;Ra<Wn;++Ra){var Ps=jn[Ra];if(Ps==",")jn[Ra]="N";else if(Ps=="%"){var Va=void 0;for(Va=Ra+1;Va<Wn&&jn[Va]=="%";++Va);for(var zl=Ra&&jn[Ra-1]=="!"||Va<Wn&&jn[Va]=="1"?"1":"N",hl=Ra;hl<Va;++hl)jn[hl]=zl;Ra=Va-1}}for(var xs=0,$l=Bt;xs<Wn;++xs){var tl=jn[xs];$l=="L"&&tl=="1"?jn[xs]="L":ze.test(tl)&&($l=tl)}for(var bs=0;bs<Wn;++bs)if(Ee.test(jn[bs])){var ta=void 0;for(ta=bs+1;ta<Wn&&Ee.test(jn[ta]);++ta);for(var Ja=(bs?jn[bs-1]:Bt)=="L",js=(ta<Wn?jn[ta]:Bt)=="L",nl=Ja==js?Ja?"L":"R":Bt,Qu=bs;Qu<ta;++Qu)jn[Qu]=nl;bs=ta-1}for(var Za=[],Du,ns=0;ns<Wn;)if($e.test(jn[ns])){var rf=ns;for(++ns;ns<Wn&&$e.test(jn[ns]);++ns);Za.push(new dt(0,rf,ns))}else{var mu=ns,eu=Za.length,Ul=hn=="rtl"?1:0;for(++ns;ns<Wn&&jn[ns]!="L";++ns);for(var ba=mu;ba<ns;)if(gt.test(jn[ba])){mu<ba&&(Za.splice(eu,0,new dt(1,mu,ba)),eu+=Ul);var zs=ba;for(++ba;ba<ns&&gt.test(jn[ba]);++ba);Za.splice(eu,0,new dt(2,zs,ba)),eu+=Ul,mu=ba}else++ba;mu<ns&&Za.splice(eu,0,new dt(1,mu,ns))}return hn=="ltr"&&(Za[0].level==1&&(Du=At.match(/^\s+/))&&(Za[0].from=Du[0].length,Za.unshift(new dt(0,0,Du[0].length))),kt(Za).level==1&&(Du=At.match(/\s+$/))&&(kt(Za).to-=Du[0].length,Za.push(new dt(0,Wn-Du[0].length,Wn)))),hn=="rtl"?Za.reverse():Za}}();function bn(ie,ae){var ve=ie.order;return ve==null&&(ve=ie.order=on(ie.text,ae)),ve}var un=[],zt=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]||un).concat(ve)}};function xn(ie,ae){return ie._handlers&&ie._handlers[ae]||un}function fn(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 ze=nt(Ee,ve);ze>-1&&(me[ae]=Ee.slice(0,ze).concat(Ee.slice(ze+1)))}}}function An(ie,ae){var ve=xn(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}}),An(ie,ve||ae.type,ie,ae),Ht(ae)||ae.codemirrorIgnore}function ci(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)nt(ve,ae[me])==-1&&ve.push(ae[me])}function zn(ie,ae){return xn(ie,ae).length>0}function yt(ie){ie.prototype.on=function(ae,ve){zt(this,ae,ve)},ie.prototype.off=function(ae,ve){fn(this,ae,ve)}}function Fn(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function Pn(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function Ht(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function fi(ie){Fn(ie),Pn(ie)}function zi(ie){return ie.target||ie.srcElement}function Li(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 Dn=function(){if(Ye&&Fe<9)return!1;var ie=ft("div");return"draggable"in ie||"dragDrop"in ie}(),qi;function Ui(ie){if(qi==null){var ae=ft("span","\u200B");rt(ie,ft("span",[ae,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(qi=ae.offsetWidth<=1&&ae.offsetHeight>2&&!(Ye&&Fe<8))}var ve=qi?ft("span","\u200B"):ft("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ve.setAttribute("cm-text",""),ve}var ui;function bi(ie){if(ui!=null)return ui;var ae=rt(ie,document.createTextNode("A\u062EA")),ve=ut(ae,0,1).getBoundingClientRect(),me=ut(ae,1,2).getBoundingClientRect();return ot(ie),!ve||ve.left==ve.right?!1:ui=me.right-ve.right<3}var Ri=`
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 ze=ie.slice(ae,ie.charAt(Ee-1)=="\r"?Ee-1:Ee),$e=ze.indexOf("\r");$e!=-1?(ve.push(ze.slice(0,$e)),ae+=$e+1):(ve.push(ze),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},gi=function(){var ie=ft("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),Ii=null;function ki(ie){if(Ii!=null)return Ii;var ae=rt(ie,ft("span","x")),ve=ae.getBoundingClientRect(),me=ut(ae,0,1).getBoundingClientRect();return Ii=Math.abs(ve.left-me.left)>1}var ar={},Nr={};function sr(ie,ae){arguments.length>2&&(ae.dependencies=Array.prototype.slice.call(arguments,2)),ar[ie]=ae}function Di(ie,ae){Nr[ie]=ae}function Ei(ie){if(typeof ie=="string"&&Nr.hasOwnProperty(ie))ie=Nr[ie];else if(ie&&typeof ie.name=="string"&&Nr.hasOwnProperty(ie.name)){var ae=Nr[ie.name];typeof ae=="string"&&(ae={name:ae}),ie=_e(ae,ie),ie.name=ae.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return Ei("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return Ei("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function Zt(ie,ae){ae=Ei(ae);var ve=ar[ae.name];if(!ve)return Zt(ie,"text/plain");var me=ve(ie,ae);if(Wt.hasOwnProperty(ae.name)){var Ee=Wt[ae.name];for(var ze in Ee)Ee.hasOwnProperty(ze)&&(me.hasOwnProperty(ze)&&(me["_"+ze]=me[ze]),me[ze]=Ee[ze])}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 Wt={};function Rt(ie,ae){var ve=Wt.hasOwnProperty(ie)?Wt[ie]:Wt[ie]={};mn(ae,ve)}function rn(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 Xt(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 Sn(ie,ae,ve){return ie.startState?ie.startState(ae,ve):!0}var Rn=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};Rn.prototype.eol=function(){return this.pos>=this.string.length},Rn.prototype.sol=function(){return this.pos==this.lineStart},Rn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Rn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Rn.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},Rn.prototype.eatWhile=function(ie){for(var ae=this.pos;this.eat(ie););return this.pos>ae},Rn.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},Rn.prototype.skipToEnd=function(){this.pos=this.string.length},Rn.prototype.skipTo=function(ie){var ae=this.string.indexOf(ie,this.pos);if(ae>-1)return this.pos=ae,!0},Rn.prototype.backUp=function(ie){this.pos-=ie},Rn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Mt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Mt(this.string,this.lineStart,this.tabSize):0)},Rn.prototype.indentation=function(){return Mt(this.string,null,this.tabSize)-(this.lineStart?Mt(this.string,this.lineStart,this.tabSize):0)},Rn.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 ze=this.string.slice(this.pos).match(ie);return ze&&ze.index>0?null:(ze&&ae!==!1&&(this.pos+=ze[0].length),ze)}},Rn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Rn.prototype.hideFirstChars=function(ie,ae){this.lineStart+=ie;try{return ae()}finally{this.lineStart-=ie}},Rn.prototype.lookAhead=function(ie){var ae=this.lineOracle;return ae&&ae.lookAhead(ie)},Rn.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function Jn(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],ze=Ee.chunkSize();if(ae<ze){ve=Ee;break}ae-=ze}return ve.lines[ae]}function qt(ie,ae,ve){var me=[],Ee=ae.line;return ie.iter(ae.line,ve.line+1,function(ze){var $e=ze.text;Ee==ve.line&&($e=$e.slice(0,ve.ch)),Ee==ae.line&&($e=$e.slice(ae.ch)),me.push($e),++Ee}),me}function Gt(ie,ae,ve){var me=[];return ie.iter(ae,ve,function(Ee){me.push(Ee.text)}),me}function ti(ie,ae){var ve=ae-ie.height;if(ve)for(var me=ie;me;me=me.parent)me.height+=ve}function pt(ie){if(ie.parent==null)return null;for(var ae=ie.parent,ve=nt(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 yn(ie,ae){var ve=ie.first;e:do{for(var me=0;me<ie.children.length;++me){var Ee=ie.children[me],ze=Ee.height;if(ae<ze){ie=Ee;continue e}ae-=ze,ve+=Ee.chunkSize()}return ve}while(!ie.lines);for(var $e=0;$e<ie.lines.length;++$e){var gt=ie.lines[$e],dt=gt.height;if(ae<dt)break;ae-=dt}return ve+$e}function ii(ie,ae){return ae>=ie.first&&ae<ie.first+ie.size}function xi(ie,ae){return String(ie.lineNumberFormatter(ae+ie.firstLineNumber))}function Ut(ie,ae,ve){if(ve===void 0&&(ve=null),!(this instanceof Ut))return new Ut(ie,ae,ve);this.line=ie,this.ch=ae,this.sticky=ve}function $n(ie,ae){return ie.line-ae.line||ie.ch-ae.ch}function pi(ie,ae){return ie.sticky==ae.sticky&&$n(ie,ae)==0}function Kt(ie){return Ut(ie.line,ie.ch)}function Ue(ie,ae){return $n(ie,ae)<0?ae:ie}function wi(ie,ae){return $n(ie,ae)<0?ie:ae}function ai(ie,ae){return Math.max(ie.first,Math.min(ae,ie.first+ie.size-1))}function Mn(ie,ae){if(ae.line<ie.first)return Ut(ie.first,0);var ve=ie.first+ie.size-1;return ae.line>ve?Ut(ve,Jn(ie,ve).text.length):ji(ae,Jn(ie,ae.line).text.length)}function ji(ie,ae){var ve=ie.ch;return ve==null||ve>ae?Ut(ie.line,ae):ve<0?Ut(ie.line,0):ie}function Ki(ie,ae){for(var ve=[],me=0;me<ae.length;me++)ve[me]=Mn(ie,ae[me]);return ve}var Zi=function(ie,ae){this.state=ie,this.lookAhead=ae},Nn=function(ie,ae,ve,me){this.state=ae,this.doc=ie,this.line=ve,this.maxLookAhead=me||0,this.baseTokens=null,this.baseTokenPos=1};Nn.prototype.lookAhead=function(ie){var ae=this.doc.getLine(this.line+ie);return ae!=null&&ie>this.maxLookAhead&&(this.maxLookAhead=ie),ae},Nn.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}},Nn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Nn.fromSaved=function(ie,ae,ve){return ae instanceof Zi?new Nn(ie,rn(ie.mode,ae.state),ve,ae.lookAhead):new Nn(ie,rn(ie.mode,ae),ve)},Nn.prototype.save=function(ie){var ae=ie!==!1?rn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Zi(ae,this.maxLookAhead):ae};function Jt(ie,ae,ve,me){var Ee=[ie.state.modeGen],ze={};cr(ie,ae.text,ie.doc.mode,ve,function(At,hn){return Ee.push(At,hn)},ze,me);for(var $e=ve.state,gt=function(At){ve.baseTokens=Ee;var hn=ie.state.overlays[At],Bt=1,Wn=0;ve.state=!0,cr(ie,ae.text,hn.mode,ve,function(jn,Mi){for(var Oi=Bt;Wn<jn;){var Gi=Ee[Bt];Gi>jn&&Ee.splice(Bt,1,jn,Ee[Bt+1],Gi),Bt+=2,Wn=Math.min(jn,Gi)}if(Mi)if(hn.opaque)Ee.splice(Oi,Bt-Oi,jn,"overlay "+Mi),Bt=Oi+2;else for(;Oi<Bt;Oi+=2){var or=Ee[Oi+1];Ee[Oi+1]=(or?or+" ":"")+"overlay "+Mi}},ze),ve.state=$e,ve.baseTokens=null,ve.baseTokenPos=1},dt=0;dt<ie.state.overlays.length;++dt)gt(dt);return{styles:Ee,classes:ze.bgClass||ze.textClass?ze:null}}function Ji(ie,ae,ve){if(!ae.styles||ae.styles[0]!=ie.state.modeGen){var me=zr(ie,pt(ae)),Ee=ae.text.length>ie.options.maxHighlightLength&&rn(ie.doc.mode,me.state),ze=Jt(ie,ae,me);Ee&&(me.state=Ee),ae.stateAfter=me.save(!Ee),ae.styles=ze.styles,ze.classes?ae.styleClasses=ze.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 Nn(me,!0,ae);var ze=mr(ie,ae,ve),$e=ze>me.first&&Jn(me,ze-1).stateAfter,gt=$e?Nn.fromSaved(me,$e,ze):new Nn(me,Sn(me.mode),ze);return me.iter(ze,ae,function(dt){wn(ie,dt.text,gt);var At=gt.line;dt.stateAfter=At==ae-1||At%5==0||At>=Ee.viewFrom&&At<Ee.viewTo?gt.save():null,gt.nextLine()}),ve&&(me.modeFrontier=gt.line),gt}function wn(ie,ae,ve,me){var Ee=ie.doc.mode,ze=new Rn(ae,ie.options.tabSize,ve);for(ze.start=ze.pos=me||0,ae==""&&vi(Ee,ve.state);!ze.eol();)Ni(Ee,ze,ve.state),ze.start=ze.pos}function vi(ie,ae){if(ie.blankLine)return ie.blankLine(ae);if(ie.innerMode){var ve=Xt(ie,ae);if(ve.mode.blankLine)return ve.mode.blankLine(ve.state)}}function Ni(ie,ae,ve,me){for(var Ee=0;Ee<10;Ee++){me&&(me[0]=Xt(ie,ve).mode);var ze=ie.token(ae,ve);if(ae.pos>ae.start)return ze}throw new Error("Mode "+ie.name+" failed to advance stream.")}var Bi=function(ie,ae,ve){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=ae||null,this.state=ve};function Fi(ie,ae,ve,me){var Ee=ie.doc,ze=Ee.mode,$e;ae=Mn(Ee,ae);var gt=Jn(Ee,ae.line),dt=zr(ie,ae.line,ve),At=new Rn(gt.text,ie.options.tabSize,dt),hn;for(me&&(hn=[]);(me||At.pos<ae.ch)&&!At.eol();)At.start=At.pos,$e=Ni(ze,At,dt.state),me&&hn.push(new Bi(At,$e,rn(Ee.mode,dt.state)));return me?hn:new Bi(At,$e,dt.state)}function Wi(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 cr(ie,ae,ve,me,Ee,ze,$e){var gt=ve.flattenSpans;gt==null&&(gt=ie.options.flattenSpans);var dt=0,At=null,hn=new Rn(ae,ie.options.tabSize,me),Bt,Wn=ie.options.addModeClass&&[null];for(ae==""&&Wi(vi(ve,me.state),ze);!hn.eol();){if(hn.pos>ie.options.maxHighlightLength?(gt=!1,$e&&wn(ie,ae,me,hn.pos),hn.pos=ae.length,Bt=null):Bt=Wi(Ni(ve,hn,me.state,Wn),ze),Wn){var jn=Wn[0].name;jn&&(Bt="m-"+(Bt?jn+" "+Bt:jn))}if(!gt||At!=Bt){for(;dt<hn.start;)dt=Math.min(hn.start,dt+5e3),Ee(dt,At);At=Bt}hn.start=hn.pos}for(;dt<hn.pos;){var Mi=Math.min(hn.pos,dt+5e3);Ee(Mi,At),dt=Mi}}function mr(ie,ae,ve){for(var me,Ee,ze=ie.doc,$e=ve?-1:ae-(ie.doc.mode.innerMode?1e3:100),gt=ae;gt>$e;--gt){if(gt<=ze.first)return ze.first;var dt=Jn(ze,gt-1),At=dt.stateAfter;if(At&&(!ve||gt+(At instanceof Zi?At.lookAhead:0)<=ze.modeFrontier))return gt;var hn=Mt(dt.text,null,ie.options.tabSize);(Ee==null||me>hn)&&(Ee=gt-1,me=hn)}return Ee}function Tr(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=Jn(ie,me).stateAfter;if(Ee&&(!(Ee instanceof Zi)||me+Ee.lookAhead<ae)){ve=me+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,ve)}}var Mr=!1,Gn=!1;function ur(){Mr=!0}function Bn(){Gn=!0}function br(ie,ae,ve){this.marker=ie,this.from=ae,this.to=ve}function Er(ie,ae){if(ie)for(var ve=0;ve<ie.length;++ve){var me=ie[ve];if(me.marker==ae)return me}}function pr(ie,ae){for(var ve,me=0;me<ie.length;++me)ie[me]!=ae&&(ve||(ve=[])).push(ie[me]);return ve}function $r(ie,ae){ie.markedSpans=ie.markedSpans?ie.markedSpans.concat([ae]):[ae],ae.marker.attachLine(ie)}function Xr(ie,ae,ve){var me;if(ie)for(var Ee=0;Ee<ie.length;++Ee){var ze=ie[Ee],$e=ze.marker,gt=ze.from==null||($e.inclusiveLeft?ze.from<=ae:ze.from<ae);if(gt||ze.from==ae&&$e.type=="bookmark"&&(!ve||!ze.marker.insertLeft)){var dt=ze.to==null||($e.inclusiveRight?ze.to>=ae:ze.to>ae);(me||(me=[])).push(new br($e,ze.from,dt?null:ze.to))}}return me}function Ur(ie,ae,ve){var me;if(ie)for(var Ee=0;Ee<ie.length;++Ee){var ze=ie[Ee],$e=ze.marker,gt=ze.to==null||($e.inclusiveRight?ze.to>=ae:ze.to>ae);if(gt||ze.from==ae&&$e.type=="bookmark"&&(!ve||ze.marker.insertLeft)){var dt=ze.from==null||($e.inclusiveLeft?ze.from<=ae:ze.from<ae);(me||(me=[])).push(new br($e,dt?null:ze.from-ae,ze.to==null?null:ze.to-ae))}}return me}function Yr(ie,ae){if(ae.full)return null;var ve=ii(ie,ae.from.line)&&Jn(ie,ae.from.line).markedSpans,me=ii(ie,ae.to.line)&&Jn(ie,ae.to.line).markedSpans;if(!ve&&!me)return null;var Ee=ae.from.ch,ze=ae.to.ch,$e=$n(ae.from,ae.to)==0,gt=Xr(ve,Ee,$e),dt=Ur(me,ze,$e),At=ae.text.length==1,hn=kt(ae.text).length+(At?Ee:0);if(gt)for(var Bt=0;Bt<gt.length;++Bt){var Wn=gt[Bt];if(Wn.to==null){var jn=Er(dt,Wn.marker);jn?At&&(Wn.to=jn.to==null?null:jn.to+hn):Wn.to=Ee}}if(dt)for(var Mi=0;Mi<dt.length;++Mi){var Oi=dt[Mi];if(Oi.to!=null&&(Oi.to+=hn),Oi.from==null){var Gi=Er(gt,Oi.marker);Gi||(Oi.from=hn,At&&(gt||(gt=[])).push(Oi))}else Oi.from+=hn,At&&(gt||(gt=[])).push(Oi)}gt&&(gt=Vo(gt)),dt&&dt!=gt&&(dt=Vo(dt));var or=[gt];if(!At){var Pr=ae.text.length-2,Sr;if(Pr>0&&gt)for(var Br=0;Br<gt.length;++Br)gt[Br].to==null&&(Sr||(Sr=[])).push(new br(gt[Br].marker,null,null));for(var so=0;so<Pr;++so)or.push(Sr);or.push(dt)}return or}function Vo(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 Kr(ie,ae,ve){var me=null;if(ie.iter(ae.line,ve.line+1,function(jn){if(jn.markedSpans)for(var Mi=0;Mi<jn.markedSpans.length;++Mi){var Oi=jn.markedSpans[Mi].marker;Oi.readOnly&&(!me||nt(me,Oi)==-1)&&(me||(me=[])).push(Oi)}}),!me)return null;for(var Ee=[{from:ae,to:ve}],ze=0;ze<me.length;++ze)for(var $e=me[ze],gt=$e.find(0),dt=0;dt<Ee.length;++dt){var At=Ee[dt];if(!($n(At.to,gt.from)<0||$n(At.from,gt.to)>0)){var hn=[dt,1],Bt=$n(At.from,gt.from),Wn=$n(At.to,gt.to);(Bt<0||!$e.inclusiveLeft&&!Bt)&&hn.push({from:At.from,to:gt.from}),(Wn>0||!$e.inclusiveRight&&!Wn)&&hn.push({from:gt.to,to:At.to}),Ee.splice.apply(Ee,hn),dt+=hn.length-3}}return Ee}function Ti(ie){var ae=ie.markedSpans;if(ae){for(var ve=0;ve<ae.length;++ve)ae[ve].marker.detachLine(ie);ie.markedSpans=null}}function lt(ie,ae){if(ae){for(var ve=0;ve<ae.length;++ve)ae[ve].marker.attachLine(ie);ie.markedSpans=ae}}function xo(ie){return ie.inclusiveLeft?-1:0}function Ar(ie){return ie.inclusiveRight?1:0}function Or(ie,ae){var ve=ie.lines.length-ae.lines.length;if(ve!=0)return ve;var me=ie.find(),Ee=ae.find(),ze=$n(me.from,Ee.from)||xo(ie)-xo(ae);if(ze)return-ze;var $e=$n(me.to,Ee.to)||Ar(ie)-Ar(ae);return $e||ae.id-ie.id}function no(ie,ae){var ve=Gn&&ie.markedSpans,me;if(ve)for(var Ee=void 0,ze=0;ze<ve.length;++ze)Ee=ve[ze],Ee.marker.collapsed&&(ae?Ee.from:Ee.to)==null&&(!me||Or(me,Ee.marker)<0)&&(me=Ee.marker);return me}function po(ie){return no(ie,!0)}function Vi(ie){return no(ie,!1)}function er(ie,ae){var ve=Gn&&ie.markedSpans,me;if(ve)for(var Ee=0;Ee<ve.length;++Ee){var ze=ve[Ee];ze.marker.collapsed&&(ze.from==null||ze.from<ae)&&(ze.to==null||ze.to>ae)&&(!me||Or(me,ze.marker)<0)&&(me=ze.marker)}return me}function Ir(ie,ae,ve,me,Ee){var ze=Jn(ie,ae),$e=Gn&&ze.markedSpans;if($e)for(var gt=0;gt<$e.length;++gt){var dt=$e[gt];if(dt.marker.collapsed){var At=dt.marker.find(0),hn=$n(At.from,ve)||xo(dt.marker)-xo(Ee),Bt=$n(At.to,me)||Ar(dt.marker)-Ar(Ee);if(!(hn>=0&&Bt<=0||hn<=0&&Bt>=0)&&(hn<=0&&(dt.marker.inclusiveRight&&Ee.inclusiveLeft?$n(At.to,ve)>=0:$n(At.to,ve)>0)||hn>=0&&(dt.marker.inclusiveRight&&Ee.inclusiveLeft?$n(At.from,me)<=0:$n(At.from,me)<0)))return!0}}}function wr(ie){for(var ae;ae=po(ie);)ie=ae.find(-1,!0).line;return ie}function kr(ie){for(var ae;ae=Vi(ie);)ie=ae.find(1,!0).line;return ie}function Ho(ie){for(var ae,ve;ae=Vi(ie);)ie=ae.find(1,!0).line,(ve||(ve=[])).push(ie);return ve}function hr(ie,ae){var ve=Jn(ie,ae),me=wr(ve);return ve==me?ae:pt(me)}function rr(ie,ae){if(ae>ie.lastLine())return ae;var ve=Jn(ie,ae),me;if(!ri(ie,ve))return ae;for(;me=Vi(ve);)ve=me.find(1,!0).line;return pt(ve)+1}function ri(ie,ae){var ve=Gn&&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&&Qi(ie,ae,me))return!0}}}function Qi(ie,ae,ve){if(ve.to==null){var me=ve.marker.find(1,!0);return Qi(ie,me.line,Er(me.line.markedSpans,ve.marker))}if(ve.marker.inclusiveRight&&ve.to==ae.text.length)return!0;for(var Ee=void 0,ze=0;ze<ae.markedSpans.length;++ze)if(Ee=ae.markedSpans[ze],Ee.marker.collapsed&&!Ee.marker.widgetNode&&Ee.from==ve.to&&(Ee.to==null||Ee.to!=ve.from)&&(Ee.marker.inclusiveLeft||ve.marker.inclusiveRight)&&Qi(ie,ae,Ee))return!0}function Qr(ie){ie=wr(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 ze=ve.parent;ze;ve=ze,ze=ve.parent)for(var $e=0;$e<ze.children.length;++$e){var gt=ze.children[$e];if(gt==ve)break;ae+=gt.height}return ae}function zo(ie){if(ie.height==0)return 0;for(var ae=ie.text.length,ve,me=ie;ve=po(me);){var Ee=ve.find(0,!0);me=Ee.from.line,ae+=Ee.from.ch-Ee.to.ch}for(me=ie;ve=Vi(me);){var ze=ve.find(0,!0);ae-=me.text.length-ze.from.ch,me=ze.to.line,ae+=me.text.length-ze.to.ch}return ae}function Oo(ie){var ae=ie.display,ve=ie.doc;ae.maxLine=Jn(ve,ve.first),ae.maxLineLength=zo(ae.maxLine),ae.maxLineChanged=!0,ve.iter(function(me){var Ee=zo(me);Ee>ae.maxLineLength&&(ae.maxLineLength=Ee,ae.maxLine=me)})}var Co=function(ie,ae,ve){this.text=ie,lt(this,ae),this.height=ve?ve(this):1};Co.prototype.lineNo=function(){return pt(this)},yt(Co);function Go(ie,ae,ve,me){ie.text=ae,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),Ti(ie),lt(ie,ve);var Ee=me?me(ie):1;Ee!=ie.height&&ti(ie,Ee)}function Lo(ie){ie.parent=null,Ti(ie)}var Sa={},sa={};function es(ie,ae){if(!ie||/^\s*$/.test(ie))return null;var ve=ae.addModeClass?sa:Sa;return ve[ie]||(ve[ie]=ie.replace(/\S+/g,"cm-$&"))}function gn(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 ze=Ee?ae.rest[Ee-1]:ae.line,$e=void 0;me.pos=0,me.addToken=kl,bi(ie.display.measure)&&($e=bn(ze,ie.doc.direction))&&(me.addToken=yl(me.addToken,$e)),me.map=[];var gt=ae!=ie.display.externalMeasured&&pt(ze);lu(ze,me,Ji(ie,ze,gt)),ze.styleClasses&&(ze.styleClasses.bgClass&&(me.bgClass=Cn(ze.styleClasses.bgClass,me.bgClass||"")),ze.styleClasses.textClass&&(me.textClass=Cn(ze.styleClasses.textClass,me.textClass||""))),me.map.length==0&&me.map.push(0,0,me.content.appendChild(Ui(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 dt=me.content.lastChild;(/\bcm-tab\b/.test(dt.className)||dt.querySelector&&dt.querySelector(".cm-tab"))&&(me.content.className="cm-tab-wrap-hack")}return An(ie,"renderLine",ie,ae.line,me.pre),me.pre.className&&(me.textClass=Cn(me.pre.className,me.textClass||"")),me}function oa(ie){var ae=ft("span","\u2022","cm-invalidchar");return ae.title="\\u"+ie.charCodeAt(0).toString(16),ae.setAttribute("aria-label",ae.title),ae}function kl(ie,ae,ve,me,Ee,ze,$e){if(ae){var gt=ie.splitSpaces?Ha(ae,ie.trailingSpace):ae,dt=ie.cm.state.specialChars,At=!1,hn;if(!dt.test(ae))ie.col+=ae.length,hn=document.createTextNode(gt),ie.map.push(ie.pos,ie.pos+ae.length,hn),Ye&&Fe<9&&(At=!0),ie.pos+=ae.length;else{hn=document.createDocumentFragment();for(var Bt=0;;){dt.lastIndex=Bt;var Wn=dt.exec(ae),jn=Wn?Wn.index-Bt:ae.length-Bt;if(jn){var Mi=document.createTextNode(gt.slice(Bt,Bt+jn));Ye&&Fe<9?hn.appendChild(ft("span",[Mi])):hn.appendChild(Mi),ie.map.push(ie.pos,ie.pos+jn,Mi),ie.col+=jn,ie.pos+=jn}if(!Wn)break;Bt+=jn+1;var Oi=void 0;if(Wn[0]==" "){var Gi=ie.cm.options.tabSize,or=Gi-ie.col%Gi;Oi=hn.appendChild(ft("span",si(or),"cm-tab")),Oi.setAttribute("role","presentation"),Oi.setAttribute("cm-text"," "),ie.col+=or}else Wn[0]=="\r"||Wn[0]==`
`?(Oi=hn.appendChild(ft("span",Wn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Oi.setAttribute("cm-text",Wn[0]),ie.col+=1):(Oi=ie.cm.options.specialCharPlaceholder(Wn[0]),Oi.setAttribute("cm-text",Wn[0]),Ye&&Fe<9?hn.appendChild(ft("span",[Oi])):hn.appendChild(Oi),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,Oi),ie.pos++}}if(ie.trailingSpace=gt.charCodeAt(ae.length-1)==32,ve||me||Ee||At||ze||$e){var Pr=ve||"";me&&(Pr+=me),Ee&&(Pr+=Ee);var Sr=ft("span",[hn],Pr,ze);if($e)for(var Br in $e)$e.hasOwnProperty(Br)&&Br!="style"&&Br!="class"&&Sr.setAttribute(Br,$e[Br]);return ie.content.appendChild(Sr)}ie.content.appendChild(hn)}}function Ha(ie,ae){if(ie.length>1&&!/ /.test(ie))return ie;for(var ve=ae,me="",Ee=0;Ee<ie.length;Ee++){var ze=ie.charAt(Ee);ze==" "&&ve&&(Ee==ie.length-1||ie.charCodeAt(Ee+1)==32)&&(ze="\xA0"),me+=ze,ve=ze==" "}return me}function yl(ie,ae){return function(ve,me,Ee,ze,$e,gt,dt){Ee=Ee?Ee+" cm-force-border":"cm-force-border";for(var At=ve.pos,hn=At+me.length;;){for(var Bt=void 0,Wn=0;Wn<ae.length&&(Bt=ae[Wn],!(Bt.to>At&&Bt.from<=At));Wn++);if(Bt.to>=hn)return ie(ve,me,Ee,ze,$e,gt,dt);ie(ve,me.slice(0,Bt.to-At),Ee,ze,null,gt,dt),ze=null,me=me.slice(Bt.to-At),At=Bt.to}}}function Io(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 lu(ie,ae,ve){var me=ie.markedSpans,Ee=ie.text,ze=0;if(!me){for(var $e=1;$e<ve.length;$e+=2)ae.addToken(ae,Ee.slice(ze,ze=ve[$e]),es(ve[$e+1],ae.cm.options));return}for(var gt=Ee.length,dt=0,At=1,hn="",Bt,Wn,jn=0,Mi,Oi,Gi,or,Pr;;){if(jn==dt){Mi=Oi=Gi=Wn="",Pr=null,or=null,jn=1/0;for(var Sr=[],Br=void 0,so=0;so<me.length;++so){var yr=me[so],Mo=yr.marker;if(Mo.type=="bookmark"&&yr.from==dt&&Mo.widgetNode)Sr.push(Mo);else if(yr.from<=dt&&(yr.to==null||yr.to>dt||Mo.collapsed&&yr.to==dt&&yr.from==dt)){if(yr.to!=null&&yr.to!=dt&&jn>yr.to&&(jn=yr.to,Oi=""),Mo.className&&(Mi+=" "+Mo.className),Mo.css&&(Wn=(Wn?Wn+";":"")+Mo.css),Mo.startStyle&&yr.from==dt&&(Gi+=" "+Mo.startStyle),Mo.endStyle&&yr.to==jn&&(Br||(Br=[])).push(Mo.endStyle,yr.to),Mo.title&&((Pr||(Pr={})).title=Mo.title),Mo.attributes)for(var Ra in Mo.attributes)(Pr||(Pr={}))[Ra]=Mo.attributes[Ra];Mo.collapsed&&(!or||Or(or.marker,Mo)<0)&&(or=yr)}else yr.from>dt&&jn>yr.from&&(jn=yr.from)}if(Br)for(var Ps=0;Ps<Br.length;Ps+=2)Br[Ps+1]==jn&&(Oi+=" "+Br[Ps]);if(!or||or.from==dt)for(var Va=0;Va<Sr.length;++Va)Io(ae,0,Sr[Va]);if(or&&(or.from||0)==dt){if(Io(ae,(or.to==null?gt+1:or.to)-dt,or.marker,or.from==null),or.to==null)return;or.to==dt&&(or=!1)}}if(dt>=gt)break;for(var zl=Math.min(gt,jn);;){if(hn){var hl=dt+hn.length;if(!or){var xs=hl>zl?hn.slice(0,zl-dt):hn;ae.addToken(ae,xs,Bt?Bt+Mi:Mi,Gi,dt+xs.length==jn?Oi:"",Wn,Pr)}if(hl>=zl){hn=hn.slice(zl-dt),dt=zl;break}dt=hl,Gi=""}hn=Ee.slice(ze,ze=ve[At++]),Bt=es(ve[At++],ae.cm.options)}}}function Ln(ie,ae,ve){this.line=ae,this.rest=Ho(ae),this.size=this.rest?pt(kt(this.rest))-ve+1:1,this.node=this.text=null,this.hidden=ri(ie,ae)}function Uo(ie,ae,ve){for(var me=[],Ee,ze=ae;ze<ve;ze=Ee){var $e=new Ln(ie.doc,Jn(ie.doc,ze),ze);Ee=ze+$e.size,me.push($e)}return me}var da=null;function sl(ie){da?da.ops.push(ie):ie.ownsGroup=da={ops:[ie],delayedCallbacks:[]}}function Ga(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 Xs(ie,ae){var ve=ie.ownsGroup;if(ve)try{Ga(ve)}finally{da=null,ae(ve)}}var ps=null;function dr(ie,ae){var ve=xn(ie,ae);if(ve.length){var me=Array.prototype.slice.call(arguments,2),Ee;da?Ee=da.delayedCallbacks:ps?Ee=ps:(Ee=ps=[],setTimeout(Pa,0));for(var ze=function(gt){Ee.push(function(){return ve[gt].apply(null,me)})},$e=0;$e<ve.length;++$e)ze($e)}}function Pa(){var ie=ps;ps=null;for(var ae=0;ae<ie.length;++ae)ie[ae]()}function Dl(ie,ae,ve,me){for(var Ee=0;Ee<ae.changes.length;Ee++){var ze=ae.changes[Ee];ze=="text"?Yt(ie,ae):ze=="gutter"?Yi(ie,ae,ve,me):ze=="class"?Ci(ie,ae):ze=="widget"&&xr(ie,ae,me)}ae.changes=null}function is(ie){return ie.node==ie.text&&(ie.node=ft("div",null,null,"position: relative"),ie.text.parentNode&&ie.text.parentNode.replaceChild(ie.node,ie.text),ie.node.appendChild(ie.text),Ye&&Fe<8&&(ie.node.style.zIndex=2)),ie.node}function Jr(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=is(ae);ae.background=me.insertBefore(ft("div",null,ve),me.firstChild),ie.display.input.setUneditable(ae.background)}}function lo(ie,ae){var ve=ie.display.externalMeasured;return ve&&ve.line==ae.line?(ie.display.externalMeasured=null,ae.measure=ve.measure,ve.built):gn(ie,ae)}function Yt(ie,ae){var ve=ae.text.className,me=lo(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,Ci(ie,ae)):ve&&(ae.text.className=ve)}function Ci(ie,ae){Jr(ie,ae),ae.line.wrapClass?is(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 Yi(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=is(ae);ae.gutterBackground=ft("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 ze=ae.line.gutterMarkers;if(ie.options.lineNumbers||ze){var $e=is(ae),gt=ae.gutter=ft("div",null,"CodeMirror-gutter-wrapper","left: "+(ie.options.fixedGutter?me.fixedPos:-me.gutterTotalWidth)+"px");if(ie.display.input.setUneditable(gt),$e.insertBefore(gt,ae.text),ae.line.gutterClass&&(gt.className+=" "+ae.line.gutterClass),ie.options.lineNumbers&&(!ze||!ze["CodeMirror-linenumbers"])&&(ae.lineNumber=gt.appendChild(ft("div",xi(ie.options,ve),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+me.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),ze)for(var dt=0;dt<ie.display.gutterSpecs.length;++dt){var At=ie.display.gutterSpecs[dt].className,hn=ze.hasOwnProperty(At)&&ze[At];hn&&gt.appendChild(ft("div",[hn],"CodeMirror-gutter-elt","left: "+me.gutterLeft[At]+"px; width: "+me.gutterWidth[At]+"px"))}}}function xr(ie,ae,ve){ae.alignable&&(ae.alignable=null);for(var me=Be("CodeMirror-linewidget"),Ee=ae.node.firstChild,ze=void 0;Ee;Ee=ze)ze=Ee.nextSibling,me.test(Ee.className)&&ae.node.removeChild(Ee);Zr(ie,ae,ve)}function qr(ie,ae,ve,me){var Ee=lo(ie,ae);return ae.text=ae.node=Ee.pre,Ee.bgClass&&(ae.bgClass=Ee.bgClass),Ee.textClass&&(ae.textClass=Ee.textClass),Ci(ie,ae),Yi(ie,ae,ve,me),Zr(ie,ae,me),ae.node}function Zr(ie,ae,ve){if(lr(ie,ae.line,ae,ve,!0),ae.rest)for(var me=0;me<ae.rest.length;me++)lr(ie,ae.rest[me],ae,ve,!1)}function lr(ie,ae,ve,me,Ee){if(ae.widgets)for(var ze=is(ve),$e=0,gt=ae.widgets;$e<gt.length;++$e){var dt=gt[$e],At=ft("div",[dt.node],"CodeMirror-linewidget"+(dt.className?" "+dt.className:""));dt.handleMouseEvents||At.setAttribute("cm-ignore-events","true"),yo(dt,At,ve,me),ie.display.input.setUneditable(At),Ee&&dt.above?ze.insertBefore(At,ve.gutter||ve.text):ze.appendChild(At),dr(dt,"redraw")}}function yo(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 qo(ie){if(ie.height!=null)return ie.height;var ae=ie.doc.cm;if(!ae)return 0;if(!Tt(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;"),rt(ae.display.measure,ft("div",[ie.node],null,ve))}return ie.height=ie.node.parentNode.offsetHeight}function ko(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 Zo(ie){return ie.lineSpace.offsetTop}function aa(ie){return ie.mover.offsetHeight-ie.lineSpace.offsetHeight}function ms(ie){if(ie.cachedPaddingH)return ie.cachedPaddingH;var ae=rt(ie.measure,ft("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 Ko(ie){return dn-ie.display.nativeBarWidth}function Aa(ie){return ie.display.scroller.clientWidth-Ko(ie)-ie.display.barWidth}function Sl(ie){return ie.display.scroller.clientHeight-Ko(ie)-ie.display.barHeight}function ll(ie,ae,ve){var me=ie.options.lineWrapping,Ee=me&&Aa(ie);if(!ae.measure.heights||me&&ae.measure.width!=Ee){var ze=ae.measure.heights=[];if(me){ae.measure.width=Ee;for(var $e=ae.text.firstChild.getClientRects(),gt=0;gt<$e.length-1;gt++){var dt=$e[gt],At=$e[gt+1];Math.abs(dt.bottom-At.bottom)>2&&ze.push((dt.bottom+At.top)/2-ve.top)}}ze.push(ve.bottom-ve.top)}}function vs(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(pt(ie.rest[Ee])>ve)return{map:ie.measure.maps[Ee],cache:ie.measure.caches[Ee],before:!0}}function ul(ie,ae){ae=wr(ae);var ve=pt(ae),me=ie.display.externalMeasured=new Ln(ie.doc,ae,ve);me.lineN=ve;var Ee=me.built=gn(ie,me);return me.text=Ee.pre,rt(ie.display.lineMeasure,Ee.pre),me}function Ol(ie,ae,ve,me){return Ds(ie,Ts(ie,ae),ve,me)}function cs(ie,ae){if(ae>=ie.display.viewFrom&&ae<ie.display.viewTo)return ie.display.view[As(ie,ae)];var ve=ie.display.externalMeasured;if(ve&&ae>=ve.lineN&&ae<ve.lineN+ve.size)return ve}function Ts(ie,ae){var ve=pt(ae),me=cs(ie,ve);me&&!me.text?me=null:me&&me.changes&&(Dl(ie,me,ve,Yc(ie)),ie.curOp.forceUpdate=!0),me||(me=ul(ie,ae));var Ee=vs(me,ae,ve);return{line:ae,view:me,rect:null,map:Ee.map,cache:Ee.cache,before:Ee.before,hasHeights:!1}}function Ds(ie,ae,ve,me,Ee){ae.before&&(ve=-1);var ze=ve+(me||""),$e;return ae.cache.hasOwnProperty(ze)?$e=ae.cache[ze]:(ae.rect||(ae.rect=ae.view.text.getBoundingClientRect()),ae.hasHeights||(ll(ie,ae.view,ae.rect),ae.hasHeights=!0),$e=Ca(ie,ae,ve,me),$e.bogus||(ae.cache[ze]=$e)),{left:$e.left,right:$e.right,top:Ee?$e.rtop:$e.top,bottom:Ee?$e.rbottom:$e.bottom}}var Hu={left:0,right:0,top:0,bottom:0};function xc(ie,ae,ve){for(var me,Ee,ze,$e,gt,dt,At=0;At<ie.length;At+=3)if(gt=ie[At],dt=ie[At+1],ae<gt?(Ee=0,ze=1,$e="left"):ae<dt?(Ee=ae-gt,ze=Ee+1):(At==ie.length-3||ae==dt&&ie[At+3]>ae)&&(ze=dt-gt,Ee=ze-1,ae>=dt&&($e="right")),Ee!=null){if(me=ie[At+2],gt==dt&&ve==(me.insertLeft?"left":"right")&&($e=ve),ve=="left"&&Ee==0)for(;At&&ie[At-2]==ie[At-3]&&ie[At-1].insertLeft;)me=ie[(At-=3)+2],$e="left";if(ve=="right"&&Ee==dt-gt)for(;At<ie.length-3&&ie[At+3]==ie[At+4]&&!ie[At+5].insertLeft;)me=ie[(At+=3)+2],$e="right";break}return{node:me,start:Ee,end:ze,collapse:$e,coverStart:gt,coverEnd:dt}}function bc(ie,ae){var ve=Hu;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 Ca(ie,ae,ve,me){var Ee=xc(ae.map,ve,me),ze=Ee.node,$e=Ee.start,gt=Ee.end,dt=Ee.collapse,At;if(ze.nodeType==3){for(var hn=0;hn<4;hn++){for(;$e&&Lt(ae.line.text.charAt(Ee.coverStart+$e));)--$e;for(;Ee.coverStart+gt<Ee.coverEnd&&Lt(ae.line.text.charAt(Ee.coverStart+gt));)++gt;if(Ye&&Fe<9&&$e==0&&gt==Ee.coverEnd-Ee.coverStart?At=ze.parentNode.getBoundingClientRect():At=bc(ut(ze,$e,gt).getClientRects(),me),At.left||At.right||$e==0)break;gt=$e,$e=$e-1,dt="right"}Ye&&Fe<11&&(At=ad(ie.display.measure,At))}else{$e>0&&(dt=me="right");var Bt;ie.options.lineWrapping&&(Bt=ze.getClientRects()).length>1?At=Bt[me=="right"?Bt.length-1:0]:At=ze.getBoundingClientRect()}if(Ye&&Fe<9&&!$e&&(!At||!At.left&&!At.right)){var Wn=ze.parentNode.getClientRects()[0];Wn?At={left:Wn.left,right:Wn.left+sc(ie.display),top:Wn.top,bottom:Wn.bottom}:At=Hu}for(var jn=At.top-ae.rect.top,Mi=At.bottom-ae.rect.top,Oi=(jn+Mi)/2,Gi=ae.view.measure.heights,or=0;or<Gi.length-1&&!(Oi<Gi[or]);or++);var Pr=or?Gi[or-1]:0,Sr=Gi[or],Br={left:(dt=="right"?At.right:At.left)-ae.rect.left,right:(dt=="left"?At.left:At.right)-ae.rect.left,top:Pr,bottom:Sr};return!At.left&&!At.right&&(Br.bogus=!0),ie.options.singleCursorHeightPerLine||(Br.rtop=jn,Br.rbottom=Mi),Br}function ad(ie,ae){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!ki(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 wc(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 oc(ie){ie.display.externalMeasure=null,ot(ie.display.lineMeasure);for(var ae=0;ae<ie.display.view.length;ae++)wc(ie.display.view[ae])}function Gu(ie){oc(ie),ie.display.cachedCharWidth=ie.display.cachedTextHeight=ie.display.cachedPaddingH=null,ie.options.lineWrapping||(ie.display.maxLineChanged=!0),ie.display.lineNumChars=null}function rs(){return qe&&te?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function ds(){return qe&&te?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function _a(ie){var ae=0;if(ie.widgets)for(var ve=0;ve<ie.widgets.length;++ve)ie.widgets[ve].above&&(ae+=qo(ie.widgets[ve]));return ae}function Ya(ie,ae,ve,me,Ee){if(!Ee){var ze=_a(ae);ve.top+=ze,ve.bottom+=ze}if(me=="line")return ve;me||(me="local");var $e=Qr(ae);if(me=="local"?$e+=Zo(ie.display):$e-=ie.display.viewOffset,me=="page"||me=="window"){var gt=ie.display.lineSpace.getBoundingClientRect();$e+=gt.top+(me=="window"?0:ds());var dt=gt.left+(me=="window"?0:rs());ve.left+=dt,ve.right+=dt}return ve.top+=$e,ve.bottom+=$e,ve}function Yo(ie,ae,ve){if(ve=="div")return ae;var me=ae.left,Ee=ae.top;if(ve=="page")me-=rs(),Ee-=ds();else if(ve=="local"||!ve){var ze=ie.display.sizer.getBoundingClientRect();me+=ze.left,Ee+=ze.top}var $e=ie.display.lineSpace.getBoundingClientRect();return{left:me-$e.left,top:Ee-$e.top}}function bo(ie,ae,ve,me,Ee){return me||(me=Jn(ie.doc,ae.line)),Ya(ie,me,Ol(ie,me,ae.ch,Ee),ve)}function Bo(ie,ae,ve,me,Ee,ze){me=me||Jn(ie.doc,ae.line),Ee||(Ee=Ts(ie,me));function $e(Mi,Oi){var Gi=Ds(ie,Ee,Mi,Oi?"right":"left",ze);return Oi?Gi.left=Gi.right:Gi.right=Gi.left,Ya(ie,me,Gi,ve)}var gt=bn(me,ie.doc.direction),dt=ae.ch,At=ae.sticky;if(dt>=me.text.length?(dt=me.text.length,At="before"):dt<=0&&(dt=0,At="after"),!gt)return $e(At=="before"?dt-1:dt,At=="before");function hn(Mi,Oi,Gi){var or=gt[Oi],Pr=or.level==1;return $e(Gi?Mi-1:Mi,Pr!=Gi)}var Bt=sn(gt,dt,At),Wn=an,jn=hn(dt,Bt,At=="before");return Wn!=null&&(jn.other=hn(dt,Wn,At!="before")),jn}function hs(ie,ae){var ve=0;ae=Mn(ie.doc,ae),ie.options.lineWrapping||(ve=sc(ie.display)*ae.ch);var me=Jn(ie.doc,ae.line),Ee=Qr(me)+Zo(ie.display);return{left:ve,right:ve,top:Ee,bottom:Ee+me.height}}function La(ie,ae,ve,me,Ee){var ze=Ut(ie,ae,ve);return ze.xRel=Ee,me&&(ze.outside=me),ze}function Ka(ie,ae,ve){var me=ie.doc;if(ve+=ie.display.viewOffset,ve<0)return La(me.first,0,null,-1,-1);var Ee=yn(me,ve),ze=me.first+me.size-1;if(Ee>ze)return La(me.first+me.size-1,Jn(me,ze).text.length,null,1,1);ae<0&&(ae=0);for(var $e=Jn(me,Ee);;){var gt=Qn(ie,$e,Ee,ae,ve),dt=er($e,gt.ch+(gt.xRel>0||gt.outside>0?1:0));if(!dt)return gt;var At=dt.find(1);if(At.line==Ee)return At;$e=Jn(me,Ee=At.line)}}function tr(ie,ae,ve,me){me-=_a(ae);var Ee=ae.text.length,ze=Vt(function($e){return Ds(ie,ve,$e-1).bottom<=me},Ee,0);return Ee=Vt(function($e){return Ds(ie,ve,$e).top>me},ze,Ee),{begin:ze,end:Ee}}function cl(ie,ae,ve,me){ve||(ve=Ts(ie,ae));var Ee=Ya(ie,ae,Ds(ie,ve,me),"line").top;return tr(ie,ae,ve,Ee)}function jt(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-=Qr(ae);var ze=Ts(ie,ae),$e=_a(ae),gt=0,dt=ae.text.length,At=!0,hn=bn(ae,ie.doc.direction);if(hn){var Bt=(ie.options.lineWrapping?ac:uu)(ie,ae,ve,ze,hn,me,Ee);At=Bt.level!=1,gt=At?Bt.from:Bt.to-1,dt=At?Bt.to:Bt.from-1}var Wn=null,jn=null,Mi=Vt(function(so){var yr=Ds(ie,ze,so);return yr.top+=$e,yr.bottom+=$e,jt(yr,me,Ee,!1)?(yr.top<=Ee&&yr.left<=me&&(Wn=so,jn=yr),!0):!1},gt,dt),Oi,Gi,or=!1;if(jn){var Pr=me-jn.left<jn.right-me,Sr=Pr==At;Mi=Wn+(Sr?0:1),Gi=Sr?"after":"before",Oi=Pr?jn.left:jn.right}else{!At&&(Mi==dt||Mi==gt)&&Mi++,Gi=Mi==0?"after":Mi==ae.text.length?"before":Ds(ie,ze,Mi-(At?1:0)).bottom+$e<=Ee==At?"after":"before";var Br=Bo(ie,Ut(ve,Mi,Gi),"line",ae,ze);Oi=Br.left,or=Ee<Br.top?-1:Ee>=Br.bottom?1:0}return Mi=Pt(ae.text,Mi,1),La(ve,Mi,Gi,or,me-Oi)}function uu(ie,ae,ve,me,Ee,ze,$e){var gt=Vt(function(Bt){var Wn=Ee[Bt],jn=Wn.level!=1;return jt(Bo(ie,Ut(ve,jn?Wn.to:Wn.from,jn?"before":"after"),"line",ae,me),ze,$e,!0)},0,Ee.length-1),dt=Ee[gt];if(gt>0){var At=dt.level!=1,hn=Bo(ie,Ut(ve,At?dt.from:dt.to,At?"after":"before"),"line",ae,me);jt(hn,ze,$e,!0)&&hn.top>$e&&(dt=Ee[gt-1])}return dt}function ac(ie,ae,ve,me,Ee,ze,$e){var gt=tr(ie,ae,me,$e),dt=gt.begin,At=gt.end;/\s/.test(ae.text.charAt(At-1))&&At--;for(var hn=null,Bt=null,Wn=0;Wn<Ee.length;Wn++){var jn=Ee[Wn];if(!(jn.from>=At||jn.to<=dt)){var Mi=jn.level!=1,Oi=Ds(ie,me,Mi?Math.min(At,jn.to)-1:Math.max(dt,jn.from)).right,Gi=Oi<ze?ze-Oi+1e9:Oi-ze;(!hn||Bt>Gi)&&(hn=jn,Bt=Gi)}}return hn||(hn=Ee[Ee.length-1]),hn.from<dt&&(hn={from:dt,to:hn.to,level:hn.level}),hn.to>At&&(hn={from:hn.from,to:At,level:hn.level}),hn}var Js;function Vl(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(Js==null){Js=ft("pre",null,"CodeMirror-line-like");for(var ae=0;ae<49;++ae)Js.appendChild(document.createTextNode("x")),Js.appendChild(ft("br"));Js.appendChild(document.createTextNode("x"))}rt(ie.measure,Js);var ve=Js.offsetHeight/50;return ve>3&&(ie.cachedTextHeight=ve),ot(ie.measure),ve||1}function sc(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var ae=ft("span","xxxxxxxxxx"),ve=ft("pre",[ae],"CodeMirror-line-like");rt(ie.measure,ve);var me=ae.getBoundingClientRect(),Ee=(me.right-me.left)/10;return Ee>2&&(ie.cachedCharWidth=Ee),Ee||10}function Yc(ie){for(var ae=ie.display,ve={},me={},Ee=ae.gutters.clientLeft,ze=ae.gutters.firstChild,$e=0;ze;ze=ze.nextSibling,++$e){var gt=ie.display.gutterSpecs[$e].className;ve[gt]=ze.offsetLeft+ze.clientLeft+Ee,me[gt]=ze.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 ma(ie){var ae=Vl(ie.display),ve=ie.options.lineWrapping,me=ve&&Math.max(5,ie.display.scroller.clientWidth/sc(ie.display)-3);return function(Ee){if(ri(ie.doc,Ee))return 0;var ze=0;if(Ee.widgets)for(var $e=0;$e<Ee.widgets.length;$e++)Ee.widgets[$e].height&&(ze+=Ee.widgets[$e].height);return ve?ze+(Math.ceil(Ee.text.length/me)||1)*ae:ze+ae}}function _r(ie){var ae=ie.doc,ve=ma(ie);ae.iter(function(me){var Ee=ve(me);Ee!=me.height&&ti(me,Ee)})}function os(ie,ae,ve,me){var Ee=ie.display;if(!ve&&zi(ae).getAttribute("cm-not-content")=="true")return null;var ze,$e,gt=Ee.lineSpace.getBoundingClientRect();try{ze=ae.clientX-gt.left,$e=ae.clientY-gt.top}catch(Bt){return null}var dt=Ka(ie,ze,$e),At;if(me&&dt.xRel>0&&(At=Jn(ie.doc,dt.line).text).length==dt.ch){var hn=Mt(At,At.length,ie.options.tabSize)-At.length;dt=Ut(dt.line,Math.max(0,Math.round((ze-ms(ie.display).left)/sc(ie.display))-hn))}return dt}function As(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 Do(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)Gn&&hr(ie.doc,ae)<Ee.viewTo&&ja(ie);else if(ve<=Ee.viewFrom)Gn&&rr(ie.doc,ve+me)>Ee.viewFrom?ja(ie):(Ee.viewFrom+=me,Ee.viewTo+=me);else if(ae<=Ee.viewFrom&&ve>=Ee.viewTo)ja(ie);else if(ae<=Ee.viewFrom){var ze=Os(ie,ve,ve+me,1);ze?(Ee.view=Ee.view.slice(ze.index),Ee.viewFrom=ze.lineN,Ee.viewTo+=me):ja(ie)}else if(ve>=Ee.viewTo){var $e=Os(ie,ae,ae,-1);$e?(Ee.view=Ee.view.slice(0,$e.index),Ee.viewTo=$e.lineN):ja(ie)}else{var gt=Os(ie,ae,ae,-1),dt=Os(ie,ve,ve+me,1);gt&&dt?(Ee.view=Ee.view.slice(0,gt.index).concat(Uo(ie,gt.lineN,dt.lineN)).concat(Ee.view.slice(dt.index)),Ee.viewTo+=me):ja(ie)}var At=Ee.externalMeasured;At&&(ve<At.lineN?At.lineN+=me:ae<At.lineN+At.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 ze=me.view[As(ie,ae)];if(ze.node!=null){var $e=ze.changes||(ze.changes=[]);nt($e,ve)==-1&&$e.push(ve)}}}function ja(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function Os(ie,ae,ve,me){var Ee=As(ie,ae),ze,$e=ie.display.view;if(!Gn||ve==ie.doc.first+ie.doc.size)return{index:Ee,lineN:ve};for(var gt=ie.display.viewFrom,dt=0;dt<Ee;dt++)gt+=$e[dt].size;if(gt!=ae){if(me>0){if(Ee==$e.length-1)return null;ze=gt+$e[Ee].size-ae,Ee++}else ze=gt-ae;ae+=ze,ve+=ze}for(;hr(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 na(ie,ae,ve){var me=ie.display,Ee=me.view;Ee.length==0||ae>=me.viewTo||ve<=me.viewFrom?(me.view=Uo(ie,ae,ve),me.viewFrom=ae):(me.viewFrom>ae?me.view=Uo(ie,ae,me.viewFrom).concat(me.view):me.viewFrom<ae&&(me.view=me.view.slice(As(ie,ae))),me.viewFrom=ae,me.viewTo<ve?me.view=me.view.concat(Uo(ie,me.viewTo,ve)):me.viewTo>ve&&(me.view=me.view.slice(0,As(ie,ve)))),me.viewTo=ve}function qs(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 Tu(ie,ae){ae===void 0&&(ae=!0);for(var ve=ie.doc,me={},Ee=me.cursors=document.createDocumentFragment(),ze=me.selection=document.createDocumentFragment(),$e=0;$e<ve.sel.ranges.length;$e++)if(!(!ae&&$e==ve.sel.primIndex)){var gt=ve.sel.ranges[$e];if(!(gt.from().line>=ie.display.viewTo||gt.to().line<ie.display.viewFrom)){var dt=gt.empty();(dt||ie.options.showCursorWhenSelecting)&&Ro(ie,gt.head,Ee),dt||To(ie,gt,ze)}}return me}function Ro(ie,ae,ve){var me=Bo(ie,ae,"div",null,null,!ie.options.singleCursorHeightPerLine),Ee=ve.appendChild(ft("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 ze=ve.appendChild(ft("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ze.style.display="",ze.style.left=me.other.left+"px",ze.style.top=me.other.top+"px",ze.style.height=(me.other.bottom-me.other.top)*.85+"px"}}function ys(ie,ae){return ie.top-ae.top||ie.left-ae.left}function To(ie,ae,ve){var me=ie.display,Ee=ie.doc,ze=document.createDocumentFragment(),$e=ms(ie.display),gt=$e.left,dt=Math.max(me.sizerWidth,Aa(ie)-me.sizer.offsetLeft)-$e.right,At=Ee.direction=="ltr";function hn(Sr,Br,so,yr){Br<0&&(Br=0),Br=Math.round(Br),yr=Math.round(yr),ze.appendChild(ft("div",null,"CodeMirror-selected","position: absolute; left: "+Sr+`px;
top: `+Br+"px; width: "+(so==null?dt-Sr:so)+`px;
height: `+(yr-Br)+"px"))}function Bt(Sr,Br,so){var yr=Jn(Ee,Sr),Mo=yr.text.length,Ra,Ps;function Va(xs,$l){return bo(ie,Ut(Sr,xs),"div",yr,$l)}function zl(xs,$l,tl){var bs=cl(ie,yr,null,xs),ta=$l=="ltr"==(tl=="after")?"left":"right",Ja=tl=="after"?bs.begin:bs.end-(/\s/.test(yr.text.charAt(bs.end-1))?2:1);return Va(Ja,ta)[ta]}var hl=bn(yr,Ee.direction);return It(hl,Br||0,so==null?Mo:so,function(xs,$l,tl,bs){var ta=tl=="ltr",Ja=Va(xs,ta?"left":"right"),js=Va($l-1,ta?"right":"left"),nl=Br==null&&xs==0,Qu=so==null&&$l==Mo,Za=bs==0,Du=!hl||bs==hl.length-1;if(js.top-Ja.top<=3){var ns=(At?nl:Qu)&&Za,rf=(At?Qu:nl)&&Du,mu=ns?gt:(ta?Ja:js).left,eu=rf?dt:(ta?js:Ja).right;hn(mu,Ja.top,eu-mu,Ja.bottom)}else{var Ul,ba,zs,Lc;ta?(Ul=At&&nl&&Za?gt:Ja.left,ba=At?dt:zl(xs,tl,"before"),zs=At?gt:zl($l,tl,"after"),Lc=At&&Qu&&Du?dt:js.right):(Ul=At?zl(xs,tl,"before"):gt,ba=!At&&nl&&Za?dt:Ja.right,zs=!At&&Qu&&Du?gt:js.left,Lc=At?zl($l,tl,"after"):dt),hn(Ul,Ja.top,ba-Ul,Ja.bottom),Ja.bottom<js.top&&hn(gt,Ja.bottom,null,js.top),hn(zs,js.top,Lc-zs,js.bottom)}(!Ra||ys(Ja,Ra)<0)&&(Ra=Ja),ys(js,Ra)<0&&(Ra=js),(!Ps||ys(Ja,Ps)<0)&&(Ps=Ja),ys(js,Ps)<0&&(Ps=js)}),{start:Ra,end:Ps}}var Wn=ae.from(),jn=ae.to();if(Wn.line==jn.line)Bt(Wn.line,Wn.ch,jn.ch);else{var Mi=Jn(Ee,Wn.line),Oi=Jn(Ee,jn.line),Gi=wr(Mi)==wr(Oi),or=Bt(Wn.line,Wn.ch,Gi?Mi.text.length+1:null).end,Pr=Bt(jn.line,Gi?0:null,jn.ch).start;Gi&&(or.top<Pr.top-2?(hn(or.right,or.top,null,or.bottom),hn(gt,Pr.top,Pr.left,Pr.bottom)):hn(or.right,or.top,Pr.left-or.right,or.bottom)),or.bottom<Pr.top&&hn(gt,or.bottom,null,Pr.top)}ve.appendChild(ze)}function Jo(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 ea(ie){ie.state.focused||(ie.display.input.focus(),fo(ie))}function va(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||(An(ie,"focus",ie,ae),ie.state.focused=!0,en(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()),Jo(ie))}function lc(ie,ae){ie.state.delayingBlurEvent||(ie.state.focused&&(An(ie,"blur",ie,ae),ie.state.focused=!1,Qe(ie.display.wrapper,"CodeMirror-focused")),clearInterval(ie.display.blinker),setTimeout(function(){ie.state.focused||(ie.display.shift=!1)},150))}function Lr(ie){for(var ae=ie.display,ve=ae.lineDiv.offsetTop,me=0;me<ae.view.length;me++){var Ee=ae.view[me],ze=ie.options.lineWrapping,$e=void 0,gt=0;if(!Ee.hidden){if(Ye&&Fe<8){var dt=Ee.node.offsetTop+Ee.node.offsetHeight;$e=dt-ve,ve=dt}else{var At=Ee.node.getBoundingClientRect();$e=At.bottom-At.top,!ze&&Ee.text.firstChild&&(gt=Ee.text.firstChild.getBoundingClientRect().right-At.left-1)}var hn=Ee.line.height-$e;if((hn>.005||hn<-.005)&&(ti(Ee.line,$e),gh(Ee.line),Ee.rest))for(var Bt=0;Bt<Ee.rest.length;Bt++)gh(Ee.rest[Bt]);if(gt>ie.display.sizerWidth){var Wn=Math.ceil(gt/sc(ie.display));Wn>ie.display.maxLineLength&&(ie.display.maxLineLength=Wn,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 No(ie,ae,ve){var me=ve&&ve.top!=null?Math.max(0,ve.top):ie.scroller.scrollTop;me=Math.floor(me-Zo(ie));var Ee=ve&&ve.bottom!=null?ve.bottom:me+ie.wrapper.clientHeight,ze=yn(ae,me),$e=yn(ae,Ee);if(ve&&ve.ensure){var gt=ve.ensure.from.line,dt=ve.ensure.to.line;gt<ze?(ze=gt,$e=yn(ae,Qr(Jn(ae,gt))+ie.wrapper.clientHeight)):Math.min(dt,ae.lastLine())>=$e&&(ze=yn(ae,Qr(Jn(ae,dt))-ie.wrapper.clientHeight),$e=dt)}return{from:ze,to:Math.max($e,ze+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&&!Ct){var ze=ft("div","\u200B",null,`position: absolute;
top: `+(ae.top-ve.viewOffset-Zo(ie.display))+`px;
height: `+(ae.bottom-ae.top+Ko(ie)+ve.barHeight)+`px;
left: `+ae.left+"px; width: "+Math.max(2,ae.right-ae.left)+"px;");ie.display.lineSpace.appendChild(ze),ze.scrollIntoView(Ee),ie.display.lineSpace.removeChild(ze)}}}function Tc(ie,ae,ve,me){me==null&&(me=0);var Ee;!ie.options.lineWrapping&&ae==ve&&(ae=ae.ch?Ut(ae.line,ae.sticky=="before"?ae.ch-1:ae.ch,"after"):ae,ve=ae.sticky=="before"?Ut(ae.line,ae.ch+1,"before"):ae);for(var ze=0;ze<5;ze++){var $e=!1,gt=Bo(ie,ae),dt=!ve||ve==ae?gt:Bo(ie,ve);Ee={left:Math.min(gt.left,dt.left),top:Math.min(gt.top,dt.top)-me,right:Math.max(gt.left,dt.left),bottom:Math.max(gt.bottom,dt.bottom)+me};var At=Bd(ie,Ee),hn=ie.doc.scrollTop,Bt=ie.doc.scrollLeft;if(At.scrollTop!=null&&(cu(ie,At.scrollTop),Math.abs(ie.doc.scrollTop-hn)>1&&($e=!0)),At.scrollLeft!=null&&(Kl(ie,At.scrollLeft),Math.abs(ie.doc.scrollLeft-Bt)>1&&($e=!0)),!$e)break}return Ee}function Au(ie,ae){var ve=Bd(ie,ae);ve.scrollTop!=null&&cu(ie,ve.scrollTop),ve.scrollLeft!=null&&Kl(ie,ve.scrollLeft)}function Bd(ie,ae){var ve=ie.display,me=Vl(ie.display);ae.top<0&&(ae.top=0);var Ee=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:ve.scroller.scrollTop,ze=Sl(ie),$e={};ae.bottom-ae.top>ze&&(ae.bottom=ae.top+ze);var gt=ie.doc.height+aa(ve),dt=ae.top<me,At=ae.bottom>gt-me;if(ae.top<Ee)$e.scrollTop=dt?0:ae.top;else if(ae.bottom>Ee+ze){var hn=Math.min(ae.top,(At?gt:ae.bottom)-ze);hn!=Ee&&($e.scrollTop=hn)}var Bt=ie.options.fixedGutter?0:ve.gutters.offsetWidth,Wn=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:ve.scroller.scrollLeft-Bt,jn=Aa(ie)-ve.gutters.offsetWidth,Mi=ae.right-ae.left>jn;return Mi&&(ae.right=ae.left+jn),ae.left<10?$e.scrollLeft=0:ae.left<Wn?$e.scrollLeft=Math.max(0,ae.left+Bt-(Mi?0:10)):ae.right>jn+Wn-3&&($e.scrollLeft=ae.right+(Mi?0:10)-jn),$e}function sd(ie,ae){ae!=null&&(Rs(ie),ie.curOp.scrollTop=(ie.curOp.scrollTop==null?ie.doc.scrollTop:ie.curOp.scrollTop)+ae)}function Zl(ie){Rs(ie);var ae=ie.getCursor();ie.curOp.scrollToPos={from:ae,to:ae,margin:ie.options.cursorScrollMargin}}function Rl(ie,ae,ve){(ae!=null||ve!=null)&&Rs(ie),ae!=null&&(ie.curOp.scrollLeft=ae),ve!=null&&(ie.curOp.scrollTop=ve)}function Ao(ie,ae){Rs(ie),ie.curOp.scrollToPos=ae}function Rs(ie){var ae=ie.curOp.scrollToPos;if(ae){ie.curOp.scrollToPos=null;var ve=hs(ie,ae.from),me=hs(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});Rl(ie,Ee.scrollLeft,Ee.scrollTop)}function cu(ie,ae){Math.abs(ie.doc.scrollTop-ae)<2||(le||Ke(ie,{top:ae}),Cu(ie,ae,!0),le&&Ke(ie),Vu(ie,100))}function Cu(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,_t(ie),ie.display.scroller.scrollLeft!=ae&&(ie.display.scroller.scrollLeft=ae),ie.display.scrollbars.setScrollLeft(ae))}function El(ie){var ae=ie.display,ve=ae.gutters.offsetWidth,me=Math.round(ie.doc.height+aa(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+Ko(ie)+ae.barHeight,nativeBarWidth:ae.nativeBarWidth,gutterWidth:ve}}var Yu=function(ie,ae,ve){this.cm=ve;var me=this.vert=ft("div",[ft("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Ee=this.horiz=ft("div",[ft("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");me.tabIndex=Ee.tabIndex=-1,ie(me),ie(Ee),zt(me,"scroll",function(){me.clientHeight&&ae(me.scrollTop,"vertical")}),zt(Ee,"scroll",function(){Ee.clientWidth&&ae(Ee.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ye&&Fe<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Yu.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 ze=ie.viewWidth-ie.barLeft-(ve?me:0);this.horiz.firstChild.style.width=Math.max(0,ie.scrollWidth-ie.clientWidth+ze)+"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}},Yu.prototype.setScrollLeft=function(ie){this.horiz.scrollLeft!=ie&&(this.horiz.scrollLeft=ie),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Yu.prototype.setScrollTop=function(ie){this.vert.scrollTop!=ie&&(this.vert.scrollTop=ie),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Yu.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},Yu.prototype.enableZeroWidthBar=function(ie,ae,ve){ie.style.pointerEvents="auto";function me(){var Ee=ie.getBoundingClientRect(),ze=ve=="vert"?document.elementFromPoint(Ee.right-1,(Ee.top+Ee.bottom)/2):document.elementFromPoint((Ee.right+Ee.left)/2,Ee.bottom-1);ze!=ie?ie.style.pointerEvents="none":ae.set(1e3,me)}ae.set(1e3,me)},Yu.prototype.clear=function(){var ie=this.horiz.parentNode;ie.removeChild(this.horiz),ie.removeChild(this.vert)};var xl=function(){};xl.prototype.update=function(){return{bottom:0,right:0}},xl.prototype.setScrollLeft=function(){},xl.prototype.setScrollTop=function(){},xl.prototype.clear=function(){};function du(ie,ae){ae||(ae=El(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&&Lr(ie),uc(ie,El(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 Wu={native:Yu,null:xl};function cc(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&Qe(ie.display.wrapper,ie.display.scrollbars.addClass)),ie.display.scrollbars=new Wu[ie.options.scrollbarStyle](function(ae){ie.display.wrapper.insertBefore(ae,ie.display.scrollbarFiller),zt(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):cu(ie,ae)},ie),ie.display.scrollbars.addClass&&en(ie.display.wrapper,ie.display.scrollbars.addClass)}var dc=0;function hu(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},sl(ie.curOp)}function Nu(ie){var ae=ie.curOp;ae&&Xs(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 ze=0;ze<ae.length;ze++)Ia(ae[ze]);for(var $e=0;$e<ae.length;$e++)Mu(ae[$e])}function mh(ie){var ae=ie.cm,ve=ae.display;ud(ae),ie.updateMaxLine&&Oo(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 Pu(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&&Lr(ae),ie.barMeasure=El(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+Ko(ae)+ae.display.barWidth),ie.maxScrollLeft=Math.max(0,ve.sizer.offsetLeft+ie.adjustWidthTo-Aa(ae))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=ve.input.prepareSelection())}function Ia(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==Dt();ie.preparedSelection&&ae.display.input.showSelection(ie.preparedSelection,ve),(ie.updatedDisplay||ie.startHeight!=ae.doc.height)&&du(ae,ie.barMeasure),ie.updatedDisplay&&xt(ae,ie.barMeasure),ie.selectionChanged&&Jo(ae),ae.state.focused&&ie.updateInput&&ae.display.input.reset(ie.typing),ve&&ea(ie.cm)}function Mu(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&&Cu(ae,ie.scrollTop,ie.forceScroll),ie.scrollLeft!=null&&Kl(ae,ie.scrollLeft,!0,!0),ie.scrollToPos){var Ee=Tc(ae,Mn(me,ie.scrollToPos.from),Mn(me,ie.scrollToPos.to),ie.scrollToPos.margin);ph(ae,Ee)}var ze=ie.maybeHiddenMarkers,$e=ie.maybeUnhiddenMarkers;if(ze)for(var gt=0;gt<ze.length;++gt)ze[gt].lines.length||An(ze[gt],"hide");if($e)for(var dt=0;dt<$e.length;++dt)$e[dt].lines.length&&An($e[dt],"unhide");ve.wrapper.offsetHeight&&(me.scrollTop=ae.display.scroller.scrollTop),ie.changeObjs&&An(ae,"changes",ae,ie.changeObjs),ie.update&&ie.update.finish()}function Qo(ie,ae){if(ie.curOp)return ae();hu(ie);try{return ae()}finally{Nu(ie)}}function Xa(ie,ae){return function(){if(ie.curOp)return ae.apply(ie,arguments);hu(ie);try{return ae.apply(ie,arguments)}finally{Nu(ie)}}}function as(ie){return function(){if(this.curOp)return ie.apply(this,arguments);hu(this);try{return ie.apply(this,arguments)}finally{Nu(this)}}}function ts(ie){return function(){var ae=this.cm;if(!ae||ae.curOp)return ie.apply(this,arguments);hu(ae);try{return ie.apply(this,arguments)}finally{Nu(ae)}}}function Vu(ie,ae){ie.doc.highlightFrontier<ie.display.viewTo&&ie.state.highlight.set(ae,pn(fs,ie))}function fs(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(ze){if(me.line>=ie.display.viewFrom){var $e=ze.styles,gt=ze.text.length>ie.options.maxHighlightLength?rn(ae.mode,me.state):null,dt=Jt(ie,ze,me,!0);gt&&(me.state=gt),ze.styles=dt.styles;var At=ze.styleClasses,hn=dt.classes;hn?ze.styleClasses=hn:At&&(ze.styleClasses=null);for(var Bt=!$e||$e.length!=ze.styles.length||At!=hn&&(!At||!hn||At.bgClass!=hn.bgClass||At.textClass!=hn.textClass),Wn=0;!Bt&&Wn<$e.length;++Wn)Bt=$e[Wn]!=ze.styles[Wn];Bt&&Ee.push(me.line),ze.stateAfter=me.save(),me.nextLine()}else ze.text.length<=ie.options.maxHighlightLength&&wn(ie,ze.text,me),ze.stateAfter=me.line%5==0?me.save():null,me.nextLine();if(+new Date>ve)return Vu(ie,ie.options.workDelay),!0}),ae.highlightFrontier=me.line,ae.modeFrontier=Math.max(ae.modeFrontier,me.line),Ee.length&&Qo(ie,function(){for(var ze=0;ze<Ee.length;ze++)mo(ie,Ee[ze],"text")})}}var Pu=function(ie,ae,ve){var me=ie.display;this.viewport=ae,this.visible=No(me,ie.doc,ae),this.editorIsHidden=!me.wrapper.offsetWidth,this.wrapperHeight=me.wrapper.clientHeight,this.wrapperWidth=me.wrapper.clientWidth,this.oldDisplayWidth=Aa(ie),this.force=ve,this.dims=Yc(ie),this.events=[]};Pu.prototype.signal=function(ie,ae){zn(ie,ae)&&this.events.push(arguments)},Pu.prototype.finish=function(){for(var ie=0;ie<this.events.length;ie++)An.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=Ko(ie)+"px",ae.sizer.style.marginBottom=-ae.nativeBarWidth+"px",ae.sizer.style.borderRightWidth=Ko(ie)+"px",ae.scrollbarsClipped=!0)}function cd(ie){if(ie.hasFocus())return null;var ae=Dt();if(!ae||!Tt(ie.display.lineDiv,ae))return null;var ve={activeElt:ae};if(window.getSelection){var me=window.getSelection();me.anchorNode&&me.extend&&Tt(ie.display.lineDiv,me.anchorNode)&&(ve.anchorNode=me.anchorNode,ve.anchorOffset=me.anchorOffset,ve.focusNode=me.focusNode,ve.focusOffset=me.focusOffset)}return ve}function Fs(ie){if(!(!ie||!ie.activeElt||ie.activeElt==Dt())&&(ie.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(ie.activeElt.nodeName)&&ie.anchorNode&&Tt(document.body,ie.anchorNode)&&Tt(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 ja(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&&qs(ie)==0)return!1;Qt(ie)&&(ja(ie),ae.dims=Yc(ie));var Ee=me.first+me.size,ze=Math.max(ae.visible.from-ie.options.viewportMargin,me.first),$e=Math.min(Ee,ae.visible.to+ie.options.viewportMargin);ve.viewFrom<ze&&ze-ve.viewFrom<20&&(ze=Math.max(me.first,ve.viewFrom)),ve.viewTo>$e&&ve.viewTo-$e<20&&($e=Math.min(Ee,ve.viewTo)),Gn&&(ze=hr(ie.doc,ze),$e=rr(ie.doc,$e));var gt=ze!=ve.viewFrom||$e!=ve.viewTo||ve.lastWrapHeight!=ae.wrapperHeight||ve.lastWrapWidth!=ae.wrapperWidth;na(ie,ze,$e),ve.viewOffset=Qr(Jn(ie.doc,ve.viewFrom)),ie.display.mover.style.top=ve.viewOffset+"px";var dt=qs(ie);if(!gt&&dt==0&&!ae.force&&ve.renderedView==ve.view&&(ve.updateLineNumbers==null||ve.updateLineNumbers>=ve.viewTo))return!1;var At=cd(ie);return dt>4&&(ve.lineDiv.style.display="none"),tt(ie,ve.updateLineNumbers,ae.dims),dt>4&&(ve.lineDiv.style.display=""),ve.renderedView=ve.view,Fs(At),ot(ve.cursorDiv),ot(ve.selectionDiv),ve.gutters.style.height=ve.sizer.style.minHeight=0,gt&&(ve.lastWrapHeight=ae.wrapperHeight,ve.lastWrapWidth=ae.wrapperWidth,Vu(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==Aa(ie)){if(ve&&ve.top!=null&&(ve={top:Math.min(ie.doc.height+aa(ie.display)-Sl(ie),ve.top)}),ae.visible=No(ie.display,ie.doc,ve),ae.visible.from>=ie.display.viewFrom&&ae.visible.to<=ie.display.viewTo)break}else me&&(ae.visible=No(ie.display,ie.doc,ve));if(!we(ie,ae))break;Lr(ie);var Ee=El(ie);Qa(ie),du(ie,Ee),xt(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 Ke(ie,ae){var ve=new Pu(ie,ae);if(we(ie,ve)){Lr(ie),He(ie,ve);var me=El(ie);Qa(ie),du(ie,me),xt(ie,me),ve.finish()}}function tt(ie,ae,ve){var me=ie.display,Ee=ie.options.lineNumbers,ze=me.lineDiv,$e=ze.firstChild;function gt(Mi){var Oi=Mi.nextSibling;return Ve&&he&&ie.display.currentWheelTarget==Mi?Mi.style.display="none":Mi.parentNode.removeChild(Mi),Oi}for(var dt=me.view,At=me.viewFrom,hn=0;hn<dt.length;hn++){var Bt=dt[hn];if(!Bt.hidden)if(!Bt.node||Bt.node.parentNode!=ze){var Wn=qr(ie,Bt,At,ve);ze.insertBefore(Wn,$e)}else{for(;$e!=Bt.node;)$e=gt($e);var jn=Ee&&ae!=null&&ae<=At&&Bt.lineNumber;Bt.changes&&(nt(Bt.changes,"gutter")>-1&&(jn=!1),Dl(ie,Bt,At,ve)),jn&&(ot(Bt.lineNumber),Bt.lineNumber.appendChild(document.createTextNode(xi(ie.options,At)))),$e=Bt.node.nextSibling}At+=Bt.size}for(;$e;)$e=gt($e)}function Et(ie){var ae=ie.gutters.offsetWidth;ie.sizer.style.marginLeft=ae+"px"}function xt(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+Ko(ie)+"px"}function _t(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,ze=me+"px",$e=0;$e<ve.length;$e++)if(!ve[$e].hidden){ie.options.fixedGutter&&(ve[$e].gutter&&(ve[$e].gutter.style.left=ze),ve[$e].gutterBackground&&(ve[$e].gutterBackground.style.left=ze));var gt=ve[$e].alignable;if(gt)for(var dt=0;dt<gt.length;dt++)gt[dt].style.left=ze}ie.options.fixedGutter&&(ae.gutters.style.left=me+Ee+"px")}}function Qt(ie){if(!ie.options.lineNumbers)return!1;var ae=ie.doc,ve=xi(ie.options,ae.first+ae.size-1),me=ie.display;if(ve.length!=me.lineNumChars){var Ee=me.measure.appendChild(ft("div",[ft("div",ve)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ze=Ee.firstChild.offsetWidth,$e=Ee.offsetWidth-ze;return me.lineGutter.style.width="",me.lineNumInnerWidth=Math.max(ze,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 Un(ie,ae){for(var ve=[],me=!1,Ee=0;Ee<ie.length;Ee++){var ze=ie[Ee],$e=null;if(typeof ze!="string"&&($e=ze.style,ze=ze.className),ze=="CodeMirror-linenumbers")if(ae)me=!0;else continue;ve.push({className:ze,style:$e})}return ae&&!me&&ve.push({className:"CodeMirror-linenumbers",style:null}),ve}function Yn(ie){var ae=ie.gutters,ve=ie.gutterSpecs;ot(ae),ie.lineGutter=null;for(var me=0;me<ve.length;++me){var Ee=ve[me],ze=Ee.className,$e=Ee.style,gt=ae.appendChild(ft("div",null,"CodeMirror-gutter "+ze));$e&&(gt.style.cssText=$e),ze=="CodeMirror-linenumbers"&&(ie.lineGutter=gt,gt.style.width=(ie.lineNumWidth||1)+"px")}ae.style.display=ve.length?"":"none",Et(ie)}function Tn(ie){Yn(ie.display),Do(ie),_t(ie)}function oi(ie,ae,ve,me){var Ee=this;this.input=ve,Ee.scrollbarFiller=ft("div",null,"CodeMirror-scrollbar-filler"),Ee.scrollbarFiller.setAttribute("cm-not-content","true"),Ee.gutterFiller=ft("div",null,"CodeMirror-gutter-filler"),Ee.gutterFiller.setAttribute("cm-not-content","true"),Ee.lineDiv=bt("div",null,"CodeMirror-code"),Ee.selectionDiv=ft("div",null,null,"position: relative; z-index: 1"),Ee.cursorDiv=ft("div",null,"CodeMirror-cursors"),Ee.measure=ft("div",null,"CodeMirror-measure"),Ee.lineMeasure=ft("div",null,"CodeMirror-measure"),Ee.lineSpace=bt("div",[Ee.measure,Ee.lineMeasure,Ee.selectionDiv,Ee.cursorDiv,Ee.lineDiv],null,"position: relative; outline: none");var ze=bt("div",[Ee.lineSpace],"CodeMirror-lines");Ee.mover=ft("div",[ze],null,"position: relative"),Ee.sizer=ft("div",[Ee.mover],"CodeMirror-sizer"),Ee.sizerWidth=null,Ee.heightForcer=ft("div",null,null,"position: absolute; height: "+dn+"px; width: 1px;"),Ee.gutters=ft("div",null,"CodeMirror-gutters"),Ee.lineGutter=null,Ee.scroller=ft("div",[Ee.sizer,Ee.heightForcer,Ee.gutters],"CodeMirror-scroll"),Ee.scroller.setAttribute("tabIndex","-1"),Ee.wrapper=ft("div",[Ee.scrollbarFiller,Ee.gutterFiller,Ee.scroller],"CodeMirror"),Ye&&Fe<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=Un(me.gutters,me.lineNumbers),Yn(Ee),ve.init(Ee)}var ni=0,In=null;Ye?In=-.53:le?In=15:qe?In=-.7:mt&&(In=-1/3);function Fr(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 eo(ie){var ae=Fr(ie);return ae.x*=In,ae.y*=In,ae}function co(ie,ae){var ve=Fr(ae),me=ve.x,Ee=ve.y,ze=ie.display,$e=ze.scroller,gt=$e.scrollWidth>$e.clientWidth,dt=$e.scrollHeight>$e.clientHeight;if(me&&gt||Ee&&dt){if(Ee&&he&&Ve){e:for(var At=ae.target,hn=ze.view;At!=$e;At=At.parentNode)for(var Bt=0;Bt<hn.length;Bt++)if(hn[Bt].node==At){ie.display.currentWheelTarget=At;break e}}if(me&&!le&&!Je&&In!=null){Ee&&dt&&cu(ie,Math.max(0,$e.scrollTop+Ee*In)),Kl(ie,Math.max(0,$e.scrollLeft+me*In)),(!Ee||Ee&&dt)&&Fn(ae),ze.wheelStartX=null;return}if(Ee&&In!=null){var Wn=Ee*In,jn=ie.doc.scrollTop,Mi=jn+ze.wrapper.clientHeight;Wn<0?jn=Math.max(0,jn+Wn-50):Mi=Math.min(ie.doc.height,Mi+Wn+50),Ke(ie,{top:jn,bottom:Mi})}ni<20&&(ze.wheelStartX==null?(ze.wheelStartX=$e.scrollLeft,ze.wheelStartY=$e.scrollTop,ze.wheelDX=me,ze.wheelDY=Ee,setTimeout(function(){if(ze.wheelStartX!=null){var Oi=$e.scrollLeft-ze.wheelStartX,Gi=$e.scrollTop-ze.wheelStartY,or=Gi&&ze.wheelDY&&Gi/ze.wheelDY||Oi&&ze.wheelDX&&Oi/ze.wheelDX;ze.wheelStartX=ze.wheelStartY=null,or&&(In=(In*ni+or)/(ni+1),++ni)}},200)):(ze.wheelDX+=me,ze.wheelDY+=Ee))}}var vr=function(ie,ae){this.ranges=ie,this.primIndex=ae};vr.prototype.primary=function(){return this.ranges[this.primIndex]},vr.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(!pi(ve.anchor,me.anchor)||!pi(ve.head,me.head))return!1}return!0},vr.prototype.deepCopy=function(){for(var ie=[],ae=0;ae<this.ranges.length;ae++)ie[ae]=new jr(Kt(this.ranges[ae].anchor),Kt(this.ranges[ae].head));return new vr(ie,this.primIndex)},vr.prototype.somethingSelected=function(){for(var ie=0;ie<this.ranges.length;ie++)if(!this.ranges[ie].empty())return!0;return!1},vr.prototype.contains=function(ie,ae){ae||(ae=ie);for(var ve=0;ve<this.ranges.length;ve++){var me=this.ranges[ve];if($n(ae,me.from())>=0&&$n(ie,me.to())<=0)return ve}return-1};var jr=function(ie,ae){this.anchor=ie,this.head=ae};jr.prototype.from=function(){return wi(this.anchor,this.head)},jr.prototype.to=function(){return Ue(this.anchor,this.head)},jr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Wr(ie,ae,ve){var me=ie&&ie.options.selectionsMayTouch,Ee=ae[ve];ae.sort(function(Wn,jn){return $n(Wn.from(),jn.from())}),ve=nt(ae,Ee);for(var ze=1;ze<ae.length;ze++){var $e=ae[ze],gt=ae[ze-1],dt=$n(gt.to(),$e.from());if(me&&!$e.empty()?dt>0:dt>=0){var At=wi(gt.from(),$e.from()),hn=Ue(gt.to(),$e.to()),Bt=gt.empty()?$e.from()==$e.head:gt.from()==gt.head;ze<=ve&&--ve,ae.splice(--ze,2,new jr(Bt?hn:At,Bt?At:hn))}}return new vr(ae,ve)}function la(ie,ae){return new vr([new jr(ie,ae||ie)],0)}function ua(ie){return ie.text?Ut(ie.from.line+ie.text.length-1,kt(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function $i(ie,ae){if($n(ie,ae.from)<0)return ie;if($n(ie,ae.to)<=0)return ua(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+=ua(ae).ch-ae.to.ch),Ut(ve,me)}function ha(ie,ae){for(var ve=[],me=0;me<ie.sel.ranges.length;me++){var Ee=ie.sel.ranges[me];ve.push(new jr($i(Ee.anchor,ae),$i(Ee.head,ae)))}return Wr(ie.cm,ve,ie.sel.primIndex)}function Oa(ie,ae,ve){return ie.line==ae.line?Ut(ve.line,ie.ch-ae.ch+ve.ch):Ut(ve.line+(ie.line-ae.line),ie.ch)}function ia(ie,ae,ve){for(var me=[],Ee=Ut(ie.first,0),ze=Ee,$e=0;$e<ae.length;$e++){var gt=ae[$e],dt=Oa(gt.from,Ee,ze),At=Oa(ua(gt),Ee,ze);if(Ee=gt.to,ze=At,ve=="around"){var hn=ie.sel.ranges[$e],Bt=$n(hn.head,hn.anchor)<0;me[$e]=new jr(Bt?At:dt,Bt?dt:At)}else me[$e]=new jr(dt,dt)}return new vr(me,ie.sel.primIndex)}function Rr(ie){ie.doc.mode=Zt(ie.options,ie.doc.modeOption),Bs(ie)}function Bs(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,Vu(ie,100),ie.state.modeGen++,ie.curOp&&Do(ie)}function Ea(ie,ae){return ae.from.ch==0&&ae.to.ch==0&&kt(ae.text)==""&&(!ie.cm||ie.cm.options.wholeLineUpdateBefore)}function uo(ie,ae,ve,me){function Ee(Pr){return ve?ve[Pr]:null}function ze(Pr,Sr,Br){Go(Pr,Sr,Br,me),dr(Pr,"change",Pr,ae)}function $e(Pr,Sr){for(var Br=[],so=Pr;so<Sr;++so)Br.push(new Co(At[so],Ee(so),me));return Br}var gt=ae.from,dt=ae.to,At=ae.text,hn=Jn(ie,gt.line),Bt=Jn(ie,dt.line),Wn=kt(At),jn=Ee(At.length-1),Mi=dt.line-gt.line;if(ae.full)ie.insert(0,$e(0,At.length)),ie.remove(At.length,ie.size-At.length);else if(Ea(ie,ae)){var Oi=$e(0,At.length-1);ze(Bt,Bt.text,jn),Mi&&ie.remove(gt.line,Mi),Oi.length&&ie.insert(gt.line,Oi)}else if(hn==Bt)if(At.length==1)ze(hn,hn.text.slice(0,gt.ch)+Wn+hn.text.slice(dt.ch),jn);else{var Gi=$e(1,At.length-1);Gi.push(new Co(Wn+hn.text.slice(dt.ch),jn,me)),ze(hn,hn.text.slice(0,gt.ch)+At[0],Ee(0)),ie.insert(gt.line+1,Gi)}else if(At.length==1)ze(hn,hn.text.slice(0,gt.ch)+At[0]+Bt.text.slice(dt.ch),Ee(0)),ie.remove(gt.line+1,Mi);else{ze(hn,hn.text.slice(0,gt.ch)+At[0],Ee(0)),ze(Bt,Wn+Bt.text.slice(dt.ch),jn);var or=$e(1,At.length-1);Mi>1&&ie.remove(gt.line+1,Mi-1),ie.insert(gt.line+1,or)}dr(ie,"change",ie,ae)}function oo(ie,ae,ve){function me(Ee,ze,$e){if(Ee.linked)for(var gt=0;gt<Ee.linked.length;++gt){var dt=Ee.linked[gt];if(dt.doc!=ze){var At=$e&&dt.sharedHist;ve&&!At||(ae(dt.doc,At),me(dt.doc,Ee,At))}}}me(ie,null,!0)}function _o(ie,ae){if(ae.cm)throw new Error("This document is already in use.");ie.doc=ae,ae.cm=ie,_r(ie),Rr(ie),ka(ie),ie.options.lineWrapping||Oo(ie),ie.options.mode=ae.modeOption,Do(ie)}function ka(ie){(ie.doc.direction=="rtl"?en:Qe)(ie.display.lineDiv,"CodeMirror-rtl")}function gs(ie){Qo(ie,function(){ka(ie),Do(ie)})}function Cs(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 dl(ie,ae){var ve={from:Kt(ae.from),to:ua(ae),text:qt(ie,ae.from,ae.to)};return Ql(ie,ve,ae.from.line,ae.to.line+1),oo(ie,function(me){return Ql(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 _s(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 bl(ie,ae,ve,me){var Ee=ie.history;Ee.undone.length=0;var ze=+new Date,$e,gt;if((Ee.lastOp==me||Ee.lastOrigin==ae.origin&&ae.origin&&(ae.origin.charAt(0)=="+"&&Ee.lastModTime>ze-(ie.cm?ie.cm.options.historyEventDelay:500)||ae.origin.charAt(0)=="*"))&&($e=_s(Ee,Ee.lastOp==me)))gt=kt($e.changes),$n(ae.from,ae.to)==0&&$n(ae.from,gt.to)==0?gt.to=ua(ae):$e.changes.push(dl(ie,ae));else{var dt=kt(Ee.done);for((!dt||!dt.ranges)&&Fl(ie.sel,Ee.done),$e={changes:[dl(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=ze,Ee.lastOp=Ee.lastSelOp=me,Ee.lastOrigin=Ee.lastSelOrigin=ae.origin,gt||An(ie,"historyAdded")}function ei(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 Ns(ie,ae,ve,me){var Ee=ie.history,ze=me&&me.origin;ve==Ee.lastSelOp||ze&&Ee.lastSelOrigin==ze&&(Ee.lastModTime==Ee.lastSelTime&&Ee.lastOrigin==ze||ei(ie,ze,kt(Ee.done),ae))?Ee.done[Ee.done.length-1]=ae:Fl(ae,Ee.done),Ee.lastSelTime=+new Date,Ee.lastSelOrigin=ze,Ee.lastSelOp=ve,me&&me.clearRedo!==!1&&Zn(Ee.undone)}function Fl(ie,ae){var ve=kt(ae);ve&&ve.ranges&&ve.equals(ie)||ae.push(ie)}function Ql(ie,ae,ve,me){var Ee=ae["spans_"+ie.id],ze=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]={}))[ze]=$e.markedSpans),++ze})}function ss(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 Da(ie,ae){var ve=ae["spans_"+ie.id];if(!ve)return null;for(var me=[],Ee=0;Ee<ae.text.length;++Ee)me.push(ss(ve[Ee]));return me}function wl(ie,ae){var ve=Da(ie,ae),me=Yr(ie,ae);if(!ve)return me;if(!me)return ve;for(var Ee=0;Ee<ve.length;++Ee){var ze=ve[Ee],$e=me[Ee];if(ze&&$e)e:for(var gt=0;gt<$e.length;++gt){for(var dt=$e[gt],At=0;At<ze.length;++At)if(ze[At].marker==dt.marker)continue e;ze.push(dt)}else $e&&(ve[Ee]=$e)}return ve}function Ss(ie,ae,ve){for(var me=[],Ee=0;Ee<ie.length;++Ee){var ze=ie[Ee];if(ze.ranges){me.push(ve?vr.prototype.deepCopy.call(ze):ze);continue}var $e=ze.changes,gt=[];me.push({changes:gt});for(var dt=0;dt<$e.length;++dt){var At=$e[dt],hn=void 0;if(gt.push({from:At.from,to:At.to,text:At.text}),ae)for(var Bt in At)(hn=Bt.match(/^spans_(\d+)$/))&&nt(ae,Number(hn[1]))>-1&&(kt(gt)[Bt]=At[Bt],delete At[Bt])}}return me}function fu(ie,ae,ve,me){if(me){var Ee=ie.anchor;if(ve){var ze=$n(ae,Ee)<0;ze!=$n(ve,Ee)<0?(Ee=ae,ae=ve):ze!=$n(ae,ve)<0&&(ae=ve)}return new jr(Ee,ae)}else return new jr(ve||ae,ae)}function Lu(ie,ae,ve,me,Ee){Ee==null&&(Ee=ie.cm&&(ie.cm.display.shift||ie.extend)),pe(ie,new vr([fu(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),ze=0;ze<ie.sel.ranges.length;ze++)me[ze]=fu(ie.sel.ranges[ze],ae[ze],null,Ee);var $e=Wr(ie.cm,me,ie.sel.primIndex);pe(ie,$e,ve)}function Bl(ie,ae,ve,me){var Ee=ie.sel.ranges.slice(0);Ee[ae]=ve,pe(ie,Wr(ie.cm,Ee,ie.sel.primIndex),me)}function Zu(ie,ae,ve,me){pe(ie,la(ae,ve),me)}function _d(ie,ae,ve){var me={ranges:ae.ranges,update:function(Ee){this.ranges=[];for(var ze=0;ze<Ee.length;ze++)this.ranges[ze]=new jr(Mn(ie,Ee[ze].anchor),Mn(ie,Ee[ze].head))},origin:ve&&ve.origin};return An(ie,"beforeSelectionChange",ie,me),ie.cm&&An(ie.cm,"beforeSelectionChange",ie.cm,me),me.ranges!=ae.ranges?Wr(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),Ns(ie,ie.sel,ie.cm?ie.cm.curOp.id:NaN,ve)}function Ze(ie,ae,ve){(zn(ie,"beforeSelectionChange")||ie.cm&&zn(ie.cm,"beforeSelectionChange"))&&(ae=_d(ie,ae,ve));var me=ve&&ve.bias||($n(ae.primary().head,ie.sel.primary().head)<0?-1:1);Ft(ie,Si(ie,ae,me,!0)),!(ve&&ve.scroll===!1)&&ie.cm&&Zl(ie.cm)}function Ft(ie,ae){ae.equals(ie.sel)||(ie.sel=ae,ie.cm&&(ie.cm.curOp.updateInput=1,ie.cm.curOp.selectionChanged=!0,ci(ie.cm)),dr(ie,"cursorActivity",ie))}function Hn(ie){Ft(ie,Si(ie,ie.sel,null,!1))}function Si(ie,ae,ve,me){for(var Ee,ze=0;ze<ae.ranges.length;ze++){var $e=ae.ranges[ze],gt=ae.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[ze],dt=Hr(ie,$e.anchor,gt&&gt.anchor,ve,me),At=Hr(ie,$e.head,gt&&gt.head,ve,me);(Ee||dt!=$e.anchor||At!=$e.head)&&(Ee||(Ee=ae.ranges.slice(0,ze)),Ee[ze]=new jr(dt,At))}return Ee?Wr(ie.cm,Ee,ae.primIndex):ae}function Hi(ie,ae,ve,me,Ee){var ze=Jn(ie,ae.line);if(ze.markedSpans)for(var $e=0;$e<ze.markedSpans.length;++$e){var gt=ze.markedSpans[$e],dt=gt.marker,At="selectLeft"in dt?!dt.selectLeft:dt.inclusiveLeft,hn="selectRight"in dt?!dt.selectRight:dt.inclusiveRight;if((gt.from==null||(At?gt.from<=ae.ch:gt.from<ae.ch))&&(gt.to==null||(hn?gt.to>=ae.ch:gt.to>ae.ch))){if(Ee&&(An(dt,"beforeCursorEnter"),dt.explicitlyCleared))if(ze.markedSpans){--$e;continue}else break;if(!dt.atomic)continue;if(ve){var Bt=dt.find(me<0?1:-1),Wn=void 0;if((me<0?hn:At)&&(Bt=ao(ie,Bt,-me,Bt&&Bt.line==ae.line?ze:null)),Bt&&Bt.line==ae.line&&(Wn=$n(Bt,ve))&&(me<0?Wn<0:Wn>0))return Hi(ie,Bt,ae,me,Ee)}var jn=dt.find(me<0?-1:1);return(me<0?At:hn)&&(jn=ao(ie,jn,me,jn.line==ae.line?ze:null)),jn?Hi(ie,jn,ae,me,Ee):null}}return ae}function Hr(ie,ae,ve,me,Ee){var ze=me||1,$e=Hi(ie,ae,ve,ze,Ee)||!Ee&&Hi(ie,ae,ve,ze,!0)||Hi(ie,ae,ve,-ze,Ee)||!Ee&&Hi(ie,ae,ve,-ze,!0);return $e||(ie.cantEdit=!0,Ut(ie.first,0))}function ao(ie,ae,ve,me){return ve<0&&ae.ch==0?ae.line>ie.first?Mn(ie,Ut(ae.line-1)):null:ve>0&&ae.ch==(me||Jn(ie,ae.line)).text.length?ae.line<ie.first+ie.size-1?Ut(ae.line+1,0):null:new Ut(ae.line,ae.ch+ve)}function mi(ie){ie.setSelection(Ut(ie.firstLine(),0),Ut(ie.lastLine()),Nt)}function fr(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,ze,$e,gt){Ee&&(me.from=Mn(ie,Ee)),ze&&(me.to=Mn(ie,ze)),$e&&(me.text=$e),gt!==void 0&&(me.origin=gt)}),An(ie,"beforeChange",ie,me),ie.cm&&An(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 ho(ie,ae,ve){if(ie.cm){if(!ie.cm.curOp)return Xa(ie.cm,ho)(ie,ae,ve);if(ie.cm.state.suppressEdits)return}if(!((zn(ie,"beforeChange")||ie.cm&&zn(ie.cm,"beforeChange"))&&(ae=fr(ie,ae,!0),!ae))){var me=Mr&&!ve&&Kr(ie,ae.from,ae.to);if(me)for(var Ee=me.length-1;Ee>=0;--Ee)Wo(ie,{from:me[Ee].from,to:me[Ee].to,text:Ee?[""]:ae.text,origin:ae.origin});else Wo(ie,ae)}}function Wo(ie,ae){if(!(ae.text.length==1&&ae.text[0]==""&&$n(ae.from,ae.to)==0)){var ve=ha(ie,ae);bl(ie,ae,ve,ie.cm?ie.cm.curOp.id:NaN),gu(ie,ae,ve,Yr(ie,ae));var me=[];oo(ie,function(Ee,ze){!ze&&nt(me,Ee.history)==-1&&(Cc(Ee.history,ae),me.push(Ee.history)),gu(Ee,ae,null,Yr(Ee,ae))})}}function ya(ie,ae,ve){var me=ie.cm&&ie.cm.state.suppressEdits;if(!(me&&!ve)){for(var Ee=ie.history,ze,$e=ie.sel,gt=ae=="undo"?Ee.done:Ee.undone,dt=ae=="undo"?Ee.undone:Ee.done,At=0;At<gt.length&&(ze=gt[At],!(ve?ze.ranges&&!ze.equals(ie.sel):!ze.ranges));At++);if(At!=gt.length){for(Ee.lastOrigin=Ee.lastSelOrigin=null;;)if(ze=gt.pop(),ze.ranges){if(Fl(ze,dt),ve&&!ze.equals(ie.sel)){pe(ie,ze,{clearRedo:!1});return}$e=ze}else if(me){gt.push(ze);return}else break;var hn=[];Fl($e,dt),dt.push({changes:hn,generation:Ee.generation}),Ee.generation=ze.generation||++Ee.maxGeneration;for(var Bt=zn(ie,"beforeChange")||ie.cm&&zn(ie.cm,"beforeChange"),Wn=function(Oi){var Gi=ze.changes[Oi];if(Gi.origin=ae,Bt&&!fr(ie,Gi,!1))return gt.length=0,{};hn.push(dl(ie,Gi));var or=Oi?ha(ie,Gi):kt(gt);gu(ie,Gi,or,wl(ie,Gi)),!Oi&&ie.cm&&ie.cm.scrollIntoView({from:Gi.from,to:ua(Gi)});var Pr=[];oo(ie,function(Sr,Br){!Br&&nt(Pr,Sr.history)==-1&&(Cc(Sr.history,Gi),Pr.push(Sr.history)),gu(Sr,Gi,null,wl(Sr,Gi))})},jn=ze.changes.length-1;jn>=0;--jn){var Mi=Wn(jn);if(Mi)return Mi.v}}}}function Xl(ie,ae){if(ae!=0&&(ie.first+=ae,ie.sel=new vr(Kn(ie.sel.ranges,function(Ee){return new jr(Ut(Ee.anchor.line+ae,Ee.anchor.ch),Ut(Ee.head.line+ae,Ee.head.ch))}),ie.sel.primIndex),ie.cm)){Do(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 gu(ie,ae,ve,me){if(ie.cm&&!ie.cm.curOp)return Xa(ie.cm,gu)(ie,ae,ve,me);if(ae.to.line<ie.first){Xl(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);Xl(ie,Ee),ae={from:Ut(ie.first,0),to:Ut(ae.to.line+Ee,ae.to.ch),text:[kt(ae.text)],origin:ae.origin}}var ze=ie.lastLine();ae.to.line>ze&&(ae={from:ae.from,to:Ut(ze,Jn(ie,ze).text.length),text:[ae.text[0]],origin:ae.origin}),ae.removed=qt(ie,ae.from,ae.to),ve||(ve=ha(ie,ae)),ie.cm?Ku(ie.cm,ae,me):uo(ie,ae,me),Ze(ie,ve,Nt),ie.cantEdit&&Hr(ie,Ut(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function Ku(ie,ae,ve){var me=ie.doc,Ee=ie.display,ze=ae.from,$e=ae.to,gt=!1,dt=ze.line;ie.options.lineWrapping||(dt=pt(wr(Jn(me,ze.line))),me.iter(dt,$e.line+1,function(jn){if(jn==Ee.maxLine)return gt=!0,!0})),me.sel.contains(ae.from,ae.to)>-1&&ci(ie),uo(me,ae,ve,ma(ie)),ie.options.lineWrapping||(me.iter(dt,ze.line+ae.text.length,function(jn){var Mi=zo(jn);Mi>Ee.maxLineLength&&(Ee.maxLine=jn,Ee.maxLineLength=Mi,Ee.maxLineChanged=!0,gt=!1)}),gt&&(ie.curOp.updateMaxLine=!0)),Tr(me,ze.line),Vu(ie,400);var At=ae.text.length-($e.line-ze.line)-1;ae.full?Do(ie):ze.line==$e.line&&ae.text.length==1&&!Ea(ie.doc,ae)?mo(ie,ze.line,"text"):Do(ie,ze.line,$e.line+1,At);var hn=zn(ie,"changes"),Bt=zn(ie,"change");if(Bt||hn){var Wn={from:ze,to:$e,text:ae.text,removed:ae.removed,origin:ae.origin};Bt&&dr(ie,"change",ie,Wn),hn&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(Wn)}ie.display.selForContextMenu=null}function Iu(ie,ae,ve,me,Ee){var ze;me||(me=ve),$n(me,ve)<0&&(ze=[me,ve],ve=ze[0],me=ze[1]),typeof ae=="string"&&(ae=ie.splitLines(ae)),ho(ie,{from:ve,to:me,text:ae,origin:Ee})}function $s(ie,ae,ve,me){ve<ie.line?ie.line+=me:ae<ie.line&&(ie.line=ae,ie.ch=0)}function _l(ie,ae,ve,me){for(var Ee=0;Ee<ie.length;++Ee){var ze=ie[Ee],$e=!0;if(ze.ranges){ze.copied||(ze=ie[Ee]=ze.deepCopy(),ze.copied=!0);for(var gt=0;gt<ze.ranges.length;gt++)$s(ze.ranges[gt].anchor,ae,ve,me),$s(ze.ranges[gt].head,ae,ve,me);continue}for(var dt=0;dt<ze.changes.length;++dt){var At=ze.changes[dt];if(ve<At.from.line)At.from=Ut(At.from.line+me,At.from.ch),At.to=Ut(At.to.line+me,At.to.ch);else if(ae<=At.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;_l(ie.done,ve,me,Ee),_l(ie.undone,ve,me,Ee)}function Tl(ie,ae,ve,me){var Ee=ae,ze=ae;return typeof ae=="number"?ze=Jn(ie,ai(ie,ae)):Ee=pt(ae),Ee==null?null:(me(ze,Ee)&&ie.cm&&mo(ie.cm,Ee,ve),ze)}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,Lo(Ee),dr(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 Wa(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}Wa.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 ze=Math.min(ae,Ee-ie),$e=me.height;if(me.removeInner(ie,ze),this.height-=$e-me.height,Ee==ze&&(this.children.splice(ve--,1),me.parent=null),(ae-=ze)==0)break;ie=0}else ie-=Ee}if(this.size-ae<25&&(this.children.length>1||!(this.children[0]instanceof Sh))){var gt=[];this.collapse(gt),this.children=[new Sh(gt)],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],ze=Ee.chunkSize();if(ie<=ze){if(Ee.insertInner(ie,ae,ve),Ee.lines&&Ee.lines.length>50){for(var $e=Ee.lines.length%25+25,gt=$e;gt<Ee.lines.length;){var dt=new Sh(Ee.lines.slice(gt,gt+=25));Ee.height-=dt.height,this.children.splice(++me,0,dt),dt.parent=this}Ee.lines=Ee.lines.slice(0,$e),this.maybeSpill()}break}ie-=ze}},maybeSpill:function(){if(!(this.children.length<=10)){var ie=this;do{var ae=ie.children.splice(ie.children.length-5,5),ve=new Wa(ae);if(ie.parent){ie.size-=ve.size,ie.height-=ve.height;var Ee=nt(ie.parent.children,ie);ie.parent.children.splice(Ee+1,0,ve)}else{var me=new Wa(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],ze=Ee.chunkSize();if(ie<ze){var $e=Math.min(ae,ze-ie);if(Ee.iterN(ie,$e,ve))return!0;if((ae-=$e)==0)break;ie=0}else ie-=ze}}};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=pt(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 ze=qo(this);ti(ve,Math.max(0,ve.height-ze)),ie&&(Qo(ie,function(){Xp(ie,ve,-ze),mo(ie,me,"widget")}),dr(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=qo(this)-ae;Ee&&(ri(this.doc,me)||ti(me,me.height+Ee),ve&&Qo(ve,function(){ve.curOp.forceUpdate=!0,Xp(ve,me,Ee),dr(ve,"lineWidgetChanged",ve,ie,pt(me))}))},yt(Vc);function Xp(ie,ae,ve){Qr(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),ze=ie.cm;return ze&&Ee.noHScroll&&(ze.display.alignWidgets=!0),Tl(ie,ae,"widget",function($e){var gt=$e.widgets||($e.widgets=[]);if(Ee.insertAt==null?gt.push(Ee):gt.splice(Math.min(gt.length-1,Math.max(0,Ee.insertAt)),0,Ee),Ee.line=$e,ze&&!ri(ie,$e)){var dt=Qr($e)<ie.scrollTop;ti($e,$e.height+qo(Ee)),dt&&sd(ze,Ee.height),ze.curOp.forceUpdate=!0}return!0}),ze&&dr(ze,"lineWidgetAdded",ze,Ee,typeof ae=="number"?ae:pt(ae)),Ee}var Jp=0,tn=function(ie,ae){this.lines=[],this.type=ae,this.doc=ie,this.id=++Jp};tn.prototype.clear=function(){if(!this.explicitlyCleared){var ie=this.doc.cm,ae=ie&&!ie.curOp;if(ae&&hu(ie),zn(this,"clear")){var ve=this.find();ve&&dr(this,"clear",ve.from,ve.to)}for(var me=null,Ee=null,ze=0;ze<this.lines.length;++ze){var $e=this.lines[ze],gt=Er($e.markedSpans,this);ie&&!this.collapsed?mo(ie,pt($e),"text"):ie&&(gt.to!=null&&(Ee=pt($e)),gt.from!=null&&(me=pt($e))),$e.markedSpans=pr($e.markedSpans,gt),gt.from==null&&this.collapsed&&!ri(this.doc,$e)&&ie&&ti($e,Vl(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var dt=0;dt<this.lines.length;++dt){var At=wr(this.lines[dt]),hn=zo(At);hn>ie.display.maxLineLength&&(ie.display.maxLine=At,ie.display.maxLineLength=hn,ie.display.maxLineChanged=!0)}me!=null&&ie&&this.collapsed&&Do(ie,me,Ee+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,ie&&Hn(ie.doc)),ie&&dr(ie,"markerCleared",ie,this,me,Ee),ae&&Nu(ie),this.parent&&this.parent.clear()}},tn.prototype.find=function(ie,ae){ie==null&&this.type=="bookmark"&&(ie=1);for(var ve,me,Ee=0;Ee<this.lines.length;++Ee){var ze=this.lines[Ee],$e=Er(ze.markedSpans,this);if($e.from!=null&&(ve=Ut(ae?ze:pt(ze),$e.from),ie==-1))return ve;if($e.to!=null&&(me=Ut(ae?ze:pt(ze),$e.to),ie==1))return me}return ve&&{from:ve,to:me}},tn.prototype.changed=function(){var ie=this,ae=this.find(-1,!0),ve=this,me=this.doc.cm;!ae||!me||Qo(me,function(){var Ee=ae.line,ze=pt(ae.line),$e=cs(me,ze);if($e&&(wc($e),me.curOp.selectionChanged=me.curOp.forceUpdate=!0),me.curOp.updateMaxLine=!0,!ri(ve.doc,Ee)&&ve.height!=null){var gt=ve.height;ve.height=null;var dt=qo(ve)-gt;dt&&ti(Ee,Ee.height+dt)}dr(me,"markerChanged",me,ie)})},tn.prototype.attachLine=function(ie){if(!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(!ae.maybeHiddenMarkers||nt(ae.maybeHiddenMarkers,this)==-1)&&(ae.maybeUnhiddenMarkers||(ae.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(ie)},tn.prototype.detachLine=function(ie){if(this.lines.splice(nt(this.lines,ie),1),!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(ae.maybeHiddenMarkers||(ae.maybeHiddenMarkers=[])).push(this)}},yt(tn);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 Xa(ie.cm,jd)(ie,ae,ve,me,Ee);var ze=new tn(ie,Ee),$e=$n(ae,ve);if(me&&mn(me,ze,!1),$e>0||$e==0&&ze.clearWhenEmpty!==!1)return ze;if(ze.replacedWith&&(ze.collapsed=!0,ze.widgetNode=bt("span",[ze.replacedWith],"CodeMirror-widget"),me.handleMouseEvents||ze.widgetNode.setAttribute("cm-ignore-events","true"),me.insertLeft&&(ze.widgetNode.insertLeft=!0)),ze.collapsed){if(Ir(ie,ae.line,ae,ve,ze)||ae.line!=ve.line&&Ir(ie,ve.line,ae,ve,ze))throw new Error("Inserting collapsed marker partially overlapping an existing one");Bn()}ze.addToHistory&&bl(ie,{from:ae,to:ve,origin:"markText"},ie.sel,NaN);var gt=ae.line,dt=ie.cm,At;if(ie.iter(gt,ve.line+1,function(Bt){dt&&ze.collapsed&&!dt.options.lineWrapping&&wr(Bt)==dt.display.maxLine&&(At=!0),ze.collapsed&&gt!=ae.line&&ti(Bt,0),$r(Bt,new br(ze,gt==ae.line?ae.ch:null,gt==ve.line?ve.ch:null)),++gt}),ze.collapsed&&ie.iter(ae.line,ve.line+1,function(Bt){ri(ie,Bt)&&ti(Bt,0)}),ze.clearOnEnter&&zt(ze,"beforeCursorEnter",function(){return ze.clear()}),ze.readOnly&&(ur(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),ze.collapsed&&(ze.id=++Jp,ze.atomic=!0),dt){if(At&&(dt.curOp.updateMaxLine=!0),ze.collapsed)Do(dt,ae.line,ve.line+1);else if(ze.className||ze.startStyle||ze.endStyle||ze.css||ze.attributes||ze.title)for(var hn=ae.line;hn<=ve.line;hn++)mo(dt,hn,"text");ze.atomic&&Hn(dt.doc),dr(dt,"markerAdded",dt,ze)}return ze}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();dr(this,"clear")}},Nc.prototype.find=function(ie,ae){return this.primary.find(ie,ae)},yt(Nc);function qp(ie,ae,ve,me,Ee){me=mn(me),me.shared=!1;var ze=[jd(ie,ae,ve,me,Ee)],$e=ze[0],gt=me.widgetNode;return oo(ie,function(dt){gt&&(me.widgetNode=gt.cloneNode(!0)),ze.push(jd(dt,Mn(dt,ae),Mn(dt,ve),me,Ee));for(var At=0;At<dt.linked.length;++At)if(dt.linked[At].isParent)return;$e=kt(ze)}),new Nc(ze,$e)}function Ng(ie){return ie.findMarks(Ut(ie.first,0),ie.clipPos(Ut(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(),ze=ie.clipPos(Ee.from),$e=ie.clipPos(Ee.to);if($n(ze,$e)){var gt=jd(ie,ze,$e,me.primary,me.primary.type);me.markers.push(gt),gt.parent=me}}}function Mg(ie){for(var ae=function(me){var Ee=ie[me],ze=[Ee.primary.doc];oo(Ee.primary.doc,function(dt){return ze.push(dt)});for(var $e=0;$e<Ee.markers.length;$e++){var gt=Ee.markers[$e];nt(ze,gt.doc)==-1&&(gt.parent=null,Ee.markers.splice($e--,1))}},ve=0;ve<ie.length;ve++)ae(ve)}var iv=0,el=function(ie,ae,ve,me,Ee){if(!(this instanceof el))return new el(ie,ae,ve,me,Ee);ve==null&&(ve=0),Wa.call(this,[new Sh([new Co("",null)])]),this.first=ve,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ve;var ze=Ut(ve,0);this.sel=la(ze),this.history=new Cs(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)),uo(this,{from:ze,to:ze,text:ie}),pe(this,la(ze),Nt)};el.prototype=_e(Wa.prototype,{constructor:el,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=Gt(this,this.first,this.first+this.size);return ie===!1?ae:ae.join(ie||this.lineSeparator())},setValue:ts(function(ie){var ae=Ut(this.first,0),ve=this.first+this.size-1;ho(this,{from:ae,to:Ut(ve,Jn(this,ve).text.length),text:this.splitLines(ie),origin:"setValue",full:!0},!0),this.cm&&Rl(this.cm,0,0),pe(this,la(ae),Nt)}),replaceRange:function(ie,ae,ve,me){ae=Mn(this,ae),ve=ve?Mn(this,ve):ae,Iu(this,ie,ae,ve,me)},getRange:function(ie,ae,ve){var me=qt(this,Mn(this,ie),Mn(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(ii(this,ie))return Jn(this,ie)},getLineNumber:function(ie){return pt(ie)},getLineHandleVisualStart:function(ie){return typeof ie=="number"&&(ie=Jn(this,ie)),wr(ie)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ie){return Mn(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:ts(function(ie,ae,ve){Zu(this,Mn(this,typeof ie=="number"?Ut(ie,ae||0):ie),null,ve)}),setSelection:ts(function(ie,ae,ve){Zu(this,Mn(this,ie),Mn(this,ae||ie),ve)}),extendSelection:ts(function(ie,ae,ve){Lu(this,Mn(this,ie),ae&&Mn(this,ae),ve)}),extendSelections:ts(function(ie,ae){dd(this,Ki(this,ie),ae)}),extendSelectionsBy:ts(function(ie,ae){var ve=Kn(this.sel.ranges,ie);dd(this,Ki(this,ve),ae)}),setSelections:ts(function(ie,ae,ve){if(ie.length){for(var me=[],Ee=0;Ee<ie.length;Ee++)me[Ee]=new jr(Mn(this,ie[Ee].anchor),Mn(this,ie[Ee].head));ae==null&&(ae=Math.min(ie.length-1,this.sel.primIndex)),pe(this,Wr(this.cm,me,ae),ve)}}),addSelection:ts(function(ie,ae,ve){var me=this.sel.ranges.slice(0);me.push(new jr(Mn(this,ie),Mn(this,ae||ie))),pe(this,Wr(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=qt(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=qt(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:ts(function(ie,ae,ve){for(var me=[],Ee=this.sel,ze=0;ze<Ee.ranges.length;ze++){var $e=Ee.ranges[ze];me[ze]={from:$e.from(),to:$e.to(),text:this.splitLines(ie[ze]),origin:ve}}for(var gt=ae&&ae!="end"&&ia(this,me,ae),dt=me.length-1;dt>=0;dt--)ho(this,me[dt]);gt?ue(this,gt):this.cm&&Zl(this.cm)}),undo:ts(function(){ya(this,"undo")}),redo:ts(function(){ya(this,"redo")}),undoSelection:ts(function(){ya(this,"undo",!0)}),redoSelection:ts(function(){ya(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 Cs(this.history.maxGeneration),oo(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:Ss(this.history.done),undone:Ss(this.history.undone)}},setHistory:function(ie){var ae=this.history=new Cs(this.history.maxGeneration);ae.done=Ss(ie.done.slice(0),null,!0),ae.undone=Ss(ie.undone.slice(0),null,!0)},setGutterMarker:ts(function(ie,ae,ve){return Tl(this,ie,"gutter",function(me){var Ee=me.gutterMarkers||(me.gutterMarkers={});return Ee[ae]=ve,!ve&&Ae(Ee)&&(me.gutterMarkers=null),!0})}),clearGutter:ts(function(ie){var ae=this;this.iter(function(ve){ve.gutterMarkers&&ve.gutterMarkers[ie]&&Tl(ae,ve,"gutter",function(){return ve.gutterMarkers[ie]=null,Ae(ve.gutterMarkers)&&(ve.gutterMarkers=null),!0})})}),lineInfo:function(ie){var ae;if(typeof ie=="number"){if(!ii(this,ie)||(ae=ie,ie=Jn(this,ie),!ie))return null}else if(ae=pt(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:ts(function(ie,ae,ve){return Tl(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:ts(function(ie,ae,ve){return Tl(this,ie,ae=="gutter"?"gutter":"class",function(me){var Ee=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass",ze=me[Ee];if(ze)if(ve==null)me[Ee]=null;else{var $e=ze.match(Be(ve));if(!$e)return!1;var gt=$e.index+$e[0].length;me[Ee]=ze.slice(0,$e.index)+(!$e.index||gt==ze.length?"":" ")+ze.slice(gt)||null}else return!1;return!0})}),addLineWidget:ts(function(ie,ae,ve){return Mf(this,ie,ae,ve)}),removeLineWidget:function(ie){ie.clear()},markText:function(ie,ae,ve){return jd(this,Mn(this,ie),Mn(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=Mn(this,ie),jd(this,ie,ie,ve,"bookmark")},findMarksAt:function(ie){ie=Mn(this,ie);var ae=[],ve=Jn(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=Mn(this,ie),ae=Mn(this,ae);var me=[],Ee=ie.line;return this.iter(ie.line,ae.line+1,function(ze){var $e=ze.markedSpans;if($e)for(var gt=0;gt<$e.length;gt++){var dt=$e[gt];!(dt.to!=null&&Ee==ie.line&&ie.ch>=dt.to||dt.from==null&&Ee!=ie.line||dt.from!=null&&Ee==ae.line&&dt.from>=ae.ch)&&(!ve||ve(dt.marker))&&me.push(dt.marker.parent||dt.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 ze=Ee.text.length+me;if(ze>ie)return ae=ie,!0;ie-=ze,++ve}),Mn(this,Ut(ve,ae))},indexFromPos:function(ie){ie=Mn(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 el(Gt(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 el(Gt(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 $o&&(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];oo(ie,function(Ee){return me.push(Ee.id)},!0),ie.history=new Cs(null),ie.history.done=Ss(this.history.done,me),ie.history.undone=Ss(this.history.undone,me)}},iterLinkedDocs:function(ie){oo(this,ie)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(ie){return this.lineSep?ie.split(this.lineSep):Ri(ie)},lineSeparator:function(){return this.lineSep||`
`},setDirection:ts(function(ie){ie!="rtl"&&(ie="ltr"),ie!=this.direction&&(this.direction=ie,this.iter(function(ae){return ae.order=null}),this.cm&&gs(this.cm))})}),el.prototype.eachLine=el.prototype.iter;var Kh=0;function Pg(ie){var ae=this;if(nm(ae),!(nn(ae,ie)||ko(ae.display,ie))){Fn(ie),Ye&&(Kh=+new Date);var ve=os(ae,ie,!0),me=ie.dataTransfer.files;if(!(!ve||ae.isReadOnly()))if(me&&me.length&&window.FileReader&&window.File)for(var Ee=me.length,ze=Array(Ee),$e=0,gt=function(){++$e==Ee&&Xa(ae,function(){ve=Mn(ae.doc,ve);var jn={from:ve,to:ve,text:ae.doc.splitLines(ze.filter(function(Mi){return Mi!=null}).join(ae.doc.lineSeparator())),origin:"paste"};ho(ae.doc,jn),ue(ae.doc,la(Mn(ae.doc,ve),Mn(ae.doc,ua(jn))))})()},dt=function(jn,Mi){if(ae.options.allowDropFileTypes&&nt(ae.options.allowDropFileTypes,jn.type)==-1){gt();return}var Oi=new FileReader;Oi.onerror=function(){return gt()},Oi.onload=function(){var Gi=Oi.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Gi)){gt();return}ze[Mi]=Gi,gt()},Oi.readAsText(jn)},At=0;At<me.length;At++)dt(me[At],At);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 Bt;if(ae.state.draggingText&&!ae.state.draggingText.copy&&(Bt=ae.listSelections()),Ze(ae.doc,la(ve,ve)),Bt)for(var Wn=0;Wn<Bt.length;++Wn)Iu(ae.doc,"",Bt[Wn].anchor,Bt[Wn].head,"drag");ae.replaceSelection(hn,"around","paste"),ae.display.input.focus()}}catch(jn){}}}}function em(ie,ae){if(Ye&&(!ie.state.draggingText||+new Date-Kh<100)){fi(ae);return}if(!(nn(ie,ae)||ko(ie.display,ae))&&(ae.dataTransfer.setData("Text",ie.getSelection()),ae.dataTransfer.effectAllowed="copyMove",ae.dataTransfer.setDragImage&&!mt)){var ve=ft("img",null,null,"position: fixed; left: 0; top: 0;");ve.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Je&&(ve.width=ve.height=1,ie.display.wrapper.appendChild(ve),ve._top=ve.offsetTop),ae.dataTransfer.setDragImage(ve,0,0),Je&&ve.parentNode.removeChild(ve)}}function tm(ie,ae){var ve=os(ie,ae);if(ve){var me=document.createDocumentFragment();Ro(ie,ve,me),ie.display.dragCursor||(ie.display.dragCursor=ft("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),ie.display.lineSpace.insertBefore(ie.display.dragCursor,ie.display.cursorDiv)),rt(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 ze=0;ze<ve.length;ze++)ie(ve[ze])})}}var Lg=!1;function pu(){Lg||(Eh(),Lg=!0)}function Eh(){var ie;zt(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,im(Ig)},100))}),zt(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"},Qh=0;Qh<10;Qh++)Mc[Qh+48]=Mc[Qh+96]=String(Qh);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 Jl={};Jl.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"},Jl.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"},Jl.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"},Jl.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"]},Jl.default=he?Jl.macDefault:Jl.pcDefault;function kg(ie){var ae=ie.split(/-(?!$)/);ie=ae[ae.length-1];for(var ve,me,Ee,ze,$e=0;$e<ae.length-1;$e++){var gt=ae[$e];if(/^(cmd|meta|m)$/i.test(gt))ze=!0;else if(/^a(lt)?$/i.test(gt))ve=!0;else if(/^(c|ctrl|control)$/i.test(gt))me=!0;else if(/^s(hift)?$/i.test(gt))Ee=!0;else throw new Error("Unrecognized modifier name: "+gt)}return ve&&(ie="Alt-"+ie),me&&(ie="Ctrl-"+ie),ze&&(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),ze=0;ze<Ee.length;ze++){var $e=void 0,gt=void 0;ze==Ee.length-1?(gt=Ee.join(" "),$e=me):(gt=Ee.slice(0,ze+1).join(" "),$e="...");var dt=ae[gt];if(!dt)ae[gt]=$e;else if(dt!=$e)throw new Error("Inconsistent bindings for "+gt)}delete ie[ve]}for(var At in ae)ie[At]=ae[At];return ie}function ku(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 ku(ie,ae.fallthrough,ve,me);for(var ze=0;ze<ae.fallthrough.length;ze++){var $e=ku(ie,ae.fallthrough[ze],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),(Ce?ae.metaKey:ae.ctrlKey)&&me!="Ctrl"&&(ie="Ctrl-"+ie),(Ce?ae.ctrlKey:ae.metaKey)&&me!="Mod"&&(ie="Cmd-"+ie),!ve&&ae.shiftKey&&me!="Shift"&&(ie="Shift-"+ie),ie}function rm(ie,ae){if(Je&&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"?Jl[ie]:ie}function ql(ie,ae){for(var ve=ie.doc.sel.ranges,me=[],Ee=0;Ee<ve.length;Ee++){for(var ze=ae(ve[Ee]);me.length&&$n(ze.from,kt(me).to)<=0;){var $e=me.pop();if($n($e.from,ze.from)<0){ze.from=$e.from;break}}me.push(ze)}Qo(ie,function(){for(var gt=me.length-1;gt>=0;gt--)Iu(ie.doc,"",me[gt].from,me[gt].to,"+delete");Zl(ie)})}function Rg(ie,ae,ve){var me=Pt(ie.text,ae+ve,ve);return me<0||me>ie.text.length?null:me}function ls(ie,ae,ve){var me=Rg(ie,ae.ch,ve);return me==null?null:new Ut(ae.line,me,ve<0?"after":"before")}function Jh(ie,ae,ve,me,Ee){if(ie){ae.doc.direction=="rtl"&&(Ee=-Ee);var ze=bn(ve,ae.doc.direction);if(ze){var $e=Ee<0?kt(ze):ze[0],gt=Ee<0==($e.level==1),dt=gt?"after":"before",At;if($e.level>0||ae.doc.direction=="rtl"){var hn=Ts(ae,ve);At=Ee<0?ve.text.length-1:0;var Bt=Ds(ae,hn,At).top;At=Vt(function(Wn){return Ds(ae,hn,Wn).top==Bt},Ee<0==($e.level==1)?$e.from:$e.to-1,At),dt=="before"&&(At=Rg(ve,At,1))}else At=Ee<0?$e.to:$e.from;return new Ut(me,At,dt)}}return new Ut(me,Ee<0?ve.text.length:0,Ee<0?"before":"after")}function Lf(ie,ae,ve,me){var Ee=bn(ae,ie.doc.direction);if(!Ee)return ls(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 ze=sn(Ee,ve.ch,ve.sticky),$e=Ee[ze];if(ie.doc.direction=="ltr"&&$e.level%2==0&&(me>0?$e.to>ve.ch:$e.from<ve.ch))return ls(ae,ve,me);var gt=function(or,Pr){return Rg(ae,or instanceof Ut?or.ch:or,Pr)},dt,At=function(or){return ie.options.lineWrapping?(dt=dt||Ts(ie,ae),cl(ie,ae,dt,or)):{begin:0,end:ae.text.length}},hn=At(ve.sticky=="before"?gt(ve,-1):ve.ch);if(ie.doc.direction=="rtl"||$e.level==1){var Bt=$e.level==1==me<0,Wn=gt(ve,Bt?1:-1);if(Wn!=null&&(Bt?Wn<=$e.to&&Wn<=hn.end:Wn>=$e.from&&Wn>=hn.begin)){var jn=Bt?"before":"after";return new Ut(ve.line,Wn,jn)}}var Mi=function(or,Pr,Sr){for(var Br=function(Ra,Ps){return Ps?new Ut(ve.line,gt(Ra,1),"before"):new Ut(ve.line,Ra,"after")};or>=0&&or<Ee.length;or+=Pr){var so=Ee[or],yr=Pr>0==(so.level!=1),Mo=yr?Sr.begin:gt(Sr.end,-1);if(so.from<=Mo&&Mo<so.to||(Mo=yr?so.from:gt(so.to,-1),Sr.begin<=Mo&&Mo<Sr.end))return Br(Mo,yr)}},Oi=Mi(ze+me,me,hn);if(Oi)return Oi;var Gi=me>0?hn.end:gt(hn.begin,-1);return Gi!=null&&!(me>0&&Gi==ae.text.length)&&(Oi=Mi(me>0?0:Ee.length-1,me,At(Gi)),Oi)?Oi:null}var hd={selectAll:mi,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),Nt)},killLine:function(ie){return ql(ie,function(ae){if(ae.empty()){var ve=Jn(ie.doc,ae.head.line).text.length;return ae.head.ch==ve&&ae.head.line<ie.lastLine()?{from:ae.head,to:Ut(ae.head.line+1,0)}:{from:ae.head,to:Ut(ae.head.line,ve)}}else return{from:ae.from(),to:ae.to()}})},deleteLine:function(ie){return ql(ie,function(ae){return{from:Ut(ae.from().line,0),to:Mn(ie.doc,Ut(ae.to().line+1,0))}})},delLineLeft:function(ie){return ql(ie,function(ae){return{from:Ut(ae.from().line,0),to:ae.from()}})},delWrappedLineLeft:function(ie){return ql(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 ql(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(Ut(ie.firstLine(),0))},goDocEnd:function(ie){return ie.extendSelection(Ut(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 ze=ve[Ee].from(),$e=Mt(ie.getLine(ze.line),ze.ch,me);ae.push(si(me-$e%me))}ie.replaceSelections(ae)},defaultTab:function(ie){ie.somethingSelected()?ie.indentSelection("add"):ie.execCommand("insertTab")},transposeChars:function(ie){return Qo(ie,function(){for(var ae=ie.listSelections(),ve=[],me=0;me<ae.length;me++)if(ae[me].empty()){var Ee=ae[me].head,ze=Jn(ie.doc,Ee.line).text;if(ze){if(Ee.ch==ze.length&&(Ee=new Ut(Ee.line,Ee.ch-1)),Ee.ch>0)Ee=new Ut(Ee.line,Ee.ch+1),ie.replaceRange(ze.charAt(Ee.ch-1)+ze.charAt(Ee.ch-2),Ut(Ee.line,Ee.ch-2),Ee,"+transpose");else if(Ee.line>ie.doc.first){var $e=Jn(ie.doc,Ee.line-1).text;$e&&(Ee=new Ut(Ee.line,1),ie.replaceRange(ze.charAt(0)+ie.doc.lineSeparator()+$e.charAt($e.length-1),Ut(Ee.line-1,$e.length-1),Ee,"+transpose"))}}ve.push(new jr(Ee,Ee))}ie.setSelections(ve)})},newlineAndIndent:function(ie){return Qo(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);Zl(ie)})},openLine:function(ie){return ie.replaceSelection(`
`,"start")},toggleOverwrite:function(ie){return ie.toggleOverwrite()}};function bh(ie,ae){var ve=Jn(ie.doc,ae),me=wr(ve);return me!=ve&&(ae=pt(me)),Jh(!0,ie,me,ae,1)}function wh(ie,ae){var ve=Jn(ie.doc,ae),me=kr(ve);return me!=ve&&(ae=pt(me)),Jh(!0,ie,ve,ae,-1)}function Fg(ie,ae){var ve=bh(ie,ae.line),me=Jn(ie.doc,ve.line),Ee=bn(me,ie.doc.direction);if(!Ee||Ee[0].level==0){var ze=Math.max(ve.ch,me.text.search(/\S/)),$e=ae.line==ve.line&&ae.ch<=ze&&ae.ch;return Ut(ve.line,$e?0:ze,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)!=En}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=ku(ae,ie.state.keyMaps[me],ve,ie);if(Ee)return Ee}return ie.options.extraKeys&&ku(ae,ie.options.extraKeys,ve,ie)||ku(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"&&dr(ie,"keyHandled",ie,ae,ve),(Ee=="handled"||Ee=="multi")&&(Fn(ve),Jo(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=Dt(),!nn(ae,ie))){Ye&&Fe<11&&ie.keyCode==27&&(ie.returnValue=!1);var ve=ie.keyCode;ae.display.shift=ve==16||ie.shiftKey;var me=kf(ae,ie);Je&&(Hd=me?ve:null,!me&&ve==88&&!gi&&(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;en(ae,"CodeMirror-crosshair");function ve(me){(me.keyCode==18||!me.altKey)&&(Qe(ae,"CodeMirror-crosshair"),fn(document,"keyup",ve),fn(document,"mouseover",ve))}zt(document,"keyup",ve),zt(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())&&!(ko(ae.display,ie)||nn(ae,ie)||ie.ctrlKey&&!ie.altKey||he&&ie.metaKey)){var ve=ie.keyCode,me=ie.charCode;if(Je&&ve==Hd){Hd=null,Fn(ie);return}if(!(Je&&(!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&&$n(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,ko(ve,ie)){Ve||(ve.scroller.draggable=!1,setTimeout(function(){return ve.scroller.draggable=!0},100));return}if(!Ff(ae,ie)){var me=os(ae,ie),Ee=Li(ie),ze=me?Hg(me,Ee):"single";window.focus(),Ee==1&&ae.state.selectingText&&ae.state.selectingText(ie),!(me&&Gg(ae,Ee,me,ze,ie))&&(Ee==1?me?am(ae,me,ze,ie):zi(ie)==ve.scroller&&Fn(ie):Ee==2?(me&&Lu(ae.doc,me),setTimeout(function(){return ve.input.focus()},20)):Ee==3&&(Oe?ae.display.input.onContextMenu(ie):va(ae)))}}}function Gg(ie,ae,ve,me,Ee){var ze="Click";return me=="double"?ze="Double"+ze:me=="triple"&&(ze="Triple"+ze),ze=(ae==1?"Left":ae==2?"Middle":"Right")+ze,Ud(ie,Og(ze,Ee),Ee,function($e){if(typeof $e=="string"&&($e=hd[$e]),!$e)return!1;var gt=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),gt=$e(ie,ve)!=En}finally{ie.state.suppressEdits=!1}return gt})}function Of(ie,ae,ve){var me=ie.getOption("configureMouse"),Ee=me?me(ie,ae,ve):{};if(Ee.unit==null){var ze=se?ve.shiftKey&&ve.metaKey:ve.altKey;Ee.unit=ze?"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(pn(ea,ie),0):ie.curOp.focus=Dt();var Ee=Of(ie,ve,me),ze=ie.doc.sel,$e;ie.options.dragDrop&&Dn&&!ie.isReadOnly()&&ve=="single"&&($e=ze.contains(ae))>-1&&($n(($e=ze.ranges[$e]).from(),ae)<0||ae.xRel>0)&&($n($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,ze=!1,$e=Xa(ie,function(At){Ve&&(Ee.scroller.draggable=!1),ie.state.draggingText=!1,fn(Ee.wrapper.ownerDocument,"mouseup",$e),fn(Ee.wrapper.ownerDocument,"mousemove",gt),fn(Ee.scroller,"dragstart",dt),fn(Ee.scroller,"drop",$e),ze||(Fn(At),me.addNew||Lu(ie.doc,ve,null,null,me.extend),Ve&&!mt||Ye&&Fe==9?setTimeout(function(){Ee.wrapper.ownerDocument.body.focus({preventScroll:!0}),Ee.input.focus()},20):Ee.input.focus())}),gt=function(At){ze=ze||Math.abs(ae.clientX-At.clientX)+Math.abs(ae.clientY-At.clientY)>=10},dt=function(){return ze=!0};Ve&&(Ee.scroller.draggable=!0),ie.state.draggingText=$e,$e.copy=!me.moveOnDrag,Ee.scroller.dragDrop&&Ee.scroller.dragDrop(),zt(Ee.wrapper.ownerDocument,"mouseup",$e),zt(Ee.wrapper.ownerDocument,"mousemove",gt),zt(Ee.scroller,"dragstart",dt),zt(Ee.scroller,"drop",$e),va(ie),setTimeout(function(){return Ee.input.focus()},20)}function Wg(ie,ae,ve){if(ve=="char")return new jr(ae,ae);if(ve=="word")return ie.findWordAt(ae);if(ve=="line")return new jr(Ut(ae.line,0),Mn(ie.doc,Ut(ae.line+1,0)));var me=ve(ie,ae);return new jr(me.from,me.to)}function rv(ie,ae,ve,me){var Ee=ie.display,ze=ie.doc;Fn(ae);var $e,gt,dt=ze.sel,At=dt.ranges;if(me.addNew&&!me.extend?(gt=ze.sel.contains(ve),gt>-1?$e=At[gt]:$e=new jr(ve,ve)):($e=ze.sel.primary(),gt=ze.sel.primIndex),me.unit=="rectangle")me.addNew||($e=new jr(ve,ve)),ve=os(ie,ae,!0,!0),gt=-1;else{var hn=Wg(ie,ve,me.unit);me.extend?$e=fu($e,hn.anchor,hn.head,me.extend):$e=hn}me.addNew?gt==-1?(gt=At.length,pe(ze,Wr(ie,At.concat([$e]),gt),{scroll:!1,origin:"*mouse"})):At.length>1&&At[gt].empty()&&me.unit=="char"&&!me.extend?(pe(ze,Wr(ie,At.slice(0,gt).concat(At.slice(gt+1)),0),{scroll:!1,origin:"*mouse"}),dt=ze.sel):Bl(ze,gt,$e,cn):(gt=0,pe(ze,new vr([$e],0),cn),dt=ze.sel);var Bt=ve;function Wn(Sr){if($n(Bt,Sr)!=0)if(Bt=Sr,me.unit=="rectangle"){for(var Br=[],so=ie.options.tabSize,yr=Mt(Jn(ze,ve.line).text,ve.ch,so),Mo=Mt(Jn(ze,Sr.line).text,Sr.ch,so),Ra=Math.min(yr,Mo),Ps=Math.max(yr,Mo),Va=Math.min(ve.line,Sr.line),zl=Math.min(ie.lastLine(),Math.max(ve.line,Sr.line));Va<=zl;Va++){var hl=Jn(ze,Va).text,xs=_n(hl,Ra,so);Ra==Ps?Br.push(new jr(Ut(Va,xs),Ut(Va,xs))):hl.length>xs&&Br.push(new jr(Ut(Va,xs),Ut(Va,_n(hl,Ps,so))))}Br.length||Br.push(new jr(ve,ve)),pe(ze,Wr(ie,dt.ranges.slice(0,gt).concat(Br),gt),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(Sr)}else{var $l=$e,tl=Wg(ie,Sr,me.unit),bs=$l.anchor,ta;$n(tl.anchor,bs)>0?(ta=tl.head,bs=wi($l.from(),tl.anchor)):(ta=tl.anchor,bs=Ue($l.to(),tl.head));var Ja=dt.ranges.slice(0);Ja[gt]=sm(ie,new jr(Mn(ze,bs),ta)),pe(ze,Wr(ie,Ja,gt),cn)}}var jn=Ee.wrapper.getBoundingClientRect(),Mi=0;function Oi(Sr){var Br=++Mi,so=os(ie,Sr,!0,me.unit=="rectangle");if(so)if($n(so,Bt)!=0){ie.curOp.focus=Dt(),Wn(so);var yr=No(Ee,ze);(so.line>=yr.to||so.line<yr.from)&&setTimeout(Xa(ie,function(){Mi==Br&&Oi(Sr)}),150)}else{var Mo=Sr.clientY<jn.top?-20:Sr.clientY>jn.bottom?20:0;Mo&&setTimeout(Xa(ie,function(){Mi==Br&&(Ee.scroller.scrollTop+=Mo,Oi(Sr))}),50)}}function Gi(Sr){ie.state.selectingText=!1,Mi=1/0,Sr&&(Fn(Sr),Ee.input.focus()),fn(Ee.wrapper.ownerDocument,"mousemove",or),fn(Ee.wrapper.ownerDocument,"mouseup",Pr),ze.history.lastSelOrigin=null}var or=Xa(ie,function(Sr){Sr.buttons===0||!Li(Sr)?Gi(Sr):Oi(Sr)}),Pr=Xa(ie,Gi);ie.state.selectingText=Pr,zt(Ee.wrapper.ownerDocument,"mousemove",or),zt(Ee.wrapper.ownerDocument,"mouseup",Pr)}function sm(ie,ae){var ve=ae.anchor,me=ae.head,Ee=Jn(ie.doc,ve.line);if($n(ve,me)==0&&ve.sticky==me.sticky)return ae;var ze=bn(Ee);if(!ze)return ae;var $e=sn(ze,ve.ch,ve.sticky),gt=ze[$e];if(gt.from!=ve.ch&&gt.to!=ve.ch)return ae;var dt=$e+(gt.from==ve.ch==(gt.level!=1)?0:1);if(dt==0||dt==ze.length)return ae;var At;if(me.line!=ve.line)At=(me.line-ve.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var hn=sn(ze,me.ch,me.sticky),Bt=hn-$e||(me.ch-ve.ch)*(gt.level==1?-1:1);hn==dt-1||hn==dt?At=Bt<0:At=Bt>0}var Wn=ze[dt+(At?-1:0)],jn=At==(Wn.level==1),Mi=jn?Wn.from:Wn.to,Oi=jn?"after":"before";return ve.ch==Mi&&ve.sticky==Oi?ae:new jr(new Ut(ve.line,Mi,Oi),me)}function Rf(ie,ae,ve,me){var Ee,ze;if(ae.touches)Ee=ae.touches[0].clientX,ze=ae.touches[0].clientY;else try{Ee=ae.clientX,ze=ae.clientY}catch(Wn){return!1}if(Ee>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;me&&Fn(ae);var $e=ie.display,gt=$e.lineDiv.getBoundingClientRect();if(ze>gt.bottom||!zn(ie,ve))return Ht(ae);ze-=gt.top-$e.viewOffset;for(var dt=0;dt<ie.display.gutterSpecs.length;++dt){var At=$e.gutters.childNodes[dt];if(At&&At.getBoundingClientRect().right>=Ee){var hn=yn(ie.doc,ze),Bt=ie.display.gutterSpecs[dt];return An(ie,ve,ie,hn,Bt.className,ae),Ht(ae)}}}function Ff(ie,ae){return Rf(ie,ae,"gutterClick",!0)}function Bf(ie,ae){ko(ie.display,ae)||lm(ie,ae)||nn(ie,ae,"contextmenu")||Oe||ie.display.input.onContextMenu(ae)}function lm(ie,ae){return zn(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-"),Gu(ie)}var fd={toString:function(){return"CodeMirror.Init"}},Vg={},qh={};function um(ie){var ae=ie.optionHandlers;function ve(me,Ee,ze,$e){ie.defaults[me]=Ee,ze&&(ae[me]=$e?function(gt,dt,At){At!=fd&&ze(gt,dt,At)}:ze)}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,Rr(me)},!0),ve("indentUnit",2,Rr,!0),ve("indentWithTabs",!1),ve("smartIndent",!0),ve("tabSize",4,function(me){Bs(me),Gu(me),Do(me)},!0),ve("lineSeparator",null,function(me,Ee){if(me.doc.lineSep=Ee,!!Ee){var ze=[],$e=me.doc.first;me.doc.iter(function(dt){for(var At=0;;){var hn=dt.text.indexOf(Ee,At);if(hn==-1)break;At=hn+Ee.length,ze.push(Ut($e,hn))}$e++});for(var gt=ze.length-1;gt>=0;gt--)Iu(me.doc,Ee,ze[gt],Ut(ze[gt].line,ze[gt].ch+Ee.length))}}),ve("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(me,Ee,ze){me.state.specialChars=new RegExp(Ee.source+(Ee.test(" ")?"":"| "),"g"),ze!=fd&&me.refresh()}),ve("specialCharPlaceholder",oa,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),Tn(me)},!0),ve("keyMap","default",function(me,Ee,ze){var $e=zd(Ee),gt=ze!=fd&&zd(ze);gt&&gt.detach&&gt.detach(me,$e),$e.attach&&$e.attach(me,gt||null)}),ve("extraKeys",null),ve("configureMouse",null),ve("lineWrapping",!1,cm,!0),ve("gutters",[],function(me,Ee){me.display.gutterSpecs=Un(Ee,me.options.lineNumbers),Tn(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 du(me)},!0),ve("scrollbarStyle","native",function(me){cc(me),du(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=Un(me.options.gutters,Ee),Tn(me)},!0),ve("firstLineNumber",1,Tn,!0),ve("lineNumberFormatter",function(me){return me},Tn,!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,Bs,!0),ve("addModeClass",!1,Bs,!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,Bs,!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,ze=ae?zt:fn;ze(ie.display.scroller,"dragstart",Ee.start),ze(ie.display.scroller,"dragenter",Ee.enter),ze(ie.display.scroller,"dragover",Ee.over),ze(ie.display.scroller,"dragleave",Ee.leave),ze(ie.display.scroller,"drop",Ee.drop)}}function cm(ie){ie.options.lineWrapping?(en(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(Qe(ie.display.wrapper,"CodeMirror-wrap"),Oo(ie)),_r(ie),Do(ie),Gu(ie),setTimeout(function(){return du(ie)},100)}function $o(ie,ae){var ve=this;if(!(this instanceof $o))return new $o(ie,ae);this.options=ae=ae?mn(ae):{},mn(Vg,ae,!1);var me=ae.value;typeof me=="string"?me=new el(me,ae.mode,null,ae.lineSeparator,ae.direction):ae.mode&&(me.modeOption=ae.mode),this.doc=me;var Ee=new $o.inputStyles[ae.inputStyle](this),ze=this.display=new oi(ie,me,Ee,ae);ze.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&&ze.input.focus(),Ye&&Fe<11&&setTimeout(function(){return ve.display.input.reset(!0)},20),Ch(this),pu(),hu(this),this.curOp.forceUpdate=!0,_o(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 gt=0;gt<Yd.length;++gt)Yd[gt](this);Nu(this),Ve&&ae.lineWrapping&&getComputedStyle(ze.lineDiv).textRendering=="optimizelegibility"&&(ze.lineDiv.style.textRendering="auto")}$o.defaults=Vg,$o.optionHandlers=qh;function Ch(ie){var ae=ie.display;zt(ae.scroller,"mousedown",Xa(ie,fc)),Ye&&Fe<11?zt(ae.scroller,"dblclick",Xa(ie,function(dt){if(!nn(ie,dt)){var At=os(ie,dt);if(!(!At||Ff(ie,dt)||ko(ie.display,dt))){Fn(dt);var hn=ie.findWordAt(At);Lu(ie.doc,hn.anchor,hn.head)}}})):zt(ae.scroller,"dblclick",function(dt){return nn(ie,dt)||Fn(dt)}),zt(ae.scroller,"contextmenu",function(dt){return Bf(ie,dt)}),zt(ae.input.getField(),"contextmenu",function(dt){ae.scroller.contains(dt.target)||Bf(ie,dt)});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 ze(dt){if(dt.touches.length!=1)return!1;var At=dt.touches[0];return At.radiusX<=1&&At.radiusY<=1}function $e(dt,At){if(At.left==null)return!0;var hn=At.left-dt.left,Bt=At.top-dt.top;return hn*hn+Bt*Bt>20*20}zt(ae.scroller,"touchstart",function(dt){if(!nn(ie,dt)&&!ze(dt)&&!Ff(ie,dt)){ae.input.ensurePolled(),clearTimeout(ve);var At=+new Date;ae.activeTouch={start:At,moved:!1,prev:At-me.end<=300?me:null},dt.touches.length==1&&(ae.activeTouch.left=dt.touches[0].pageX,ae.activeTouch.top=dt.touches[0].pageY)}}),zt(ae.scroller,"touchmove",function(){ae.activeTouch&&(ae.activeTouch.moved=!0)}),zt(ae.scroller,"touchend",function(dt){var At=ae.activeTouch;if(At&&!ko(ae,dt)&&At.left!=null&&!At.moved&&new Date-At.start<300){var hn=ie.coordsChar(ae.activeTouch,"page"),Bt;!At.prev||$e(At,At.prev)?Bt=new jr(hn,hn):!At.prev.prev||$e(At,At.prev.prev)?Bt=ie.findWordAt(hn):Bt=new jr(Ut(hn.line,0),Mn(ie.doc,Ut(hn.line+1,0))),ie.setSelection(Bt.anchor,Bt.head),ie.focus(),Fn(dt)}Ee()}),zt(ae.scroller,"touchcancel",Ee),zt(ae.scroller,"scroll",function(){ae.scroller.clientHeight&&(cu(ie,ae.scroller.scrollTop),Kl(ie,ae.scroller.scrollLeft,!0),An(ie,"scroll",ie))}),zt(ae.scroller,"mousewheel",function(dt){return co(ie,dt)}),zt(ae.scroller,"DOMMouseScroll",function(dt){return co(ie,dt)}),zt(ae.wrapper,"scroll",function(){return ae.wrapper.scrollTop=ae.wrapper.scrollLeft=0}),ae.dragFunctions={enter:function(dt){nn(ie,dt)||fi(dt)},over:function(dt){nn(ie,dt)||(tm(ie,dt),fi(dt))},start:function(dt){return em(ie,dt)},drop:Xa(ie,Pg),leave:function(dt){nn(ie,dt)||nm(ie)}};var gt=ae.input.getField();zt(gt,"keyup",function(dt){return zg.call(ie,dt)}),zt(gt,"keydown",Xa(ie,_g)),zt(gt,"keypress",Xa(ie,hc)),zt(gt,"focus",function(dt){return fo(ie,dt)}),zt(gt,"blur",function(dt){return lc(ie,dt)})}var Yd=[];$o.defineInitHook=function(ie){return Yd.push(ie)};function Ms(ie,ae,ve,me){var Ee=ie.doc,ze;ve==null&&(ve="add"),ve=="smart"&&(Ee.mode.indent?ze=zr(ie,ae).state:ve="prev");var $e=ie.options.tabSize,gt=Jn(Ee,ae),dt=Mt(gt.text,null,$e);gt.stateAfter&&(gt.stateAfter=null);var At=gt.text.match(/^\s*/)[0],hn;if(!me&&!/\S/.test(gt.text))hn=0,ve="not";else if(ve=="smart"&&(hn=Ee.mode.indent(ze,gt.text.slice(At.length),gt.text),hn==En||hn>150)){if(!me)return;ve="prev"}ve=="prev"?ae>Ee.first?hn=Mt(Jn(Ee,ae-1).text,null,$e):hn=0:ve=="add"?hn=dt+ie.options.indentUnit:ve=="subtract"?hn=dt-ie.options.indentUnit:typeof ve=="number"&&(hn=dt+ve),hn=Math.max(0,hn);var Bt="",Wn=0;if(ie.options.indentWithTabs)for(var jn=Math.floor(hn/$e);jn;--jn)Wn+=$e,Bt+=" ";if(Wn<hn&&(Bt+=si(hn-Wn)),Bt!=At)return Iu(Ee,Bt,Ut(ae,0),Ut(ae,At.length),"+input"),gt.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<At.length){var Gi=Ut(ae,At.length);Bl(Ee,Mi,new jr(Gi,Gi));break}}}var jl=null;function Wd(ie){jl=ie}function $h(ie,ae,ve,me,Ee){var ze=ie.doc;ie.display.shift=!1,me||(me=ze.sel);var $e=+new Date-200,gt=Ee=="paste"||ie.state.pasteIncoming>$e,dt=Ri(ae),At=null;if(gt&&me.ranges.length>1)if(jl&&jl.text.join(`
`)==ae){if(me.ranges.length%jl.text.length==0){At=[];for(var hn=0;hn<jl.text.length;hn++)At.push(ze.splitLines(jl.text[hn]))}}else dt.length==me.ranges.length&&ie.options.pasteLinesPerSelection&&(At=Kn(dt,function(or){return[or]}));for(var Bt=ie.curOp.updateInput,Wn=me.ranges.length-1;Wn>=0;Wn--){var jn=me.ranges[Wn],Mi=jn.from(),Oi=jn.to();jn.empty()&&(ve&&ve>0?Mi=Ut(Mi.line,Mi.ch-ve):ie.state.overwrite&&!gt?Oi=Ut(Oi.line,Math.min(Jn(ze,Oi.line).text.length,Oi.ch+kt(dt).length)):gt&&jl&&jl.lineWise&&jl.text.join(`
`)==dt.join(`
`)&&(Mi=Oi=Ut(Mi.line,0)));var Gi={from:Mi,to:Oi,text:At?At[Wn%At.length]:dt,origin:Ee||(gt?"paste":ie.state.cutIncoming>$e?"cut":"+input")};ho(ie.doc,Gi),dr(ie,"inputRead",ie,Gi)}ae&&!gt&&Kg(ie,ae),Zl(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=Bt),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&&Qo(ae,function(){return $h(ae,ve,0,null,"paste")}),!0}function Kg(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 ze=ie.getModeAt(Ee.head),$e=!1;if(ze.electricChars){for(var gt=0;gt<ze.electricChars.length;gt++)if(ae.indexOf(ze.electricChars.charAt(gt))>-1){$e=Ms(ie,Ee.head.line,"smart");break}}else ze.electricInput&&ze.electricInput.test(Jn(ie.doc,Ee.head.line).text.slice(0,Ee.head.ch))&&($e=Ms(ie,Ee.head.line,"smart"));$e&&dr(ie,"electricInput",ie,Ee.head.line)}}}function Qg(ie){for(var ae=[],ve=[],me=0;me<ie.doc.sel.ranges.length;me++){var Ee=ie.doc.sel.ranges[me].head.line,ze={anchor:Ut(Ee,0),head:Ut(Ee+1,0)};ve.push(ze),ae.push(ie.getRange(ze.anchor,ze.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=ft("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),ae=ft("div",[ie],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ve?ie.style.width="1000px":ie.setAttribute("wrap","off"),je&&(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 ze=this.options,$e=ze[me];ze[me]==Ee&&me!="mode"||(ze[me]=Ee,ae.hasOwnProperty(me)&&Xa(this,ae[me])(this,Ee,$e),An(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,ze=0;ze<Ee.length;++ze)if(Ee[ze]==me||Ee[ze].name==me)return Ee.splice(ze,1),!0},addOverlay:as(function(me,Ee){var ze=me.token?me:ie.getMode(this.options,me);if(ze.startState)throw new Error("Overlays may not be stateful.");hi(this.state.overlays,{mode:ze,modeSpec:me,opaque:Ee&&Ee.opaque,priority:Ee&&Ee.priority||0},function($e){return $e.priority}),this.state.modeGen++,Do(this)}),removeOverlay:as(function(me){for(var Ee=this.state.overlays,ze=0;ze<Ee.length;++ze){var $e=Ee[ze].modeSpec;if($e==me||typeof me=="string"&&$e.name==me){Ee.splice(ze,1),this.state.modeGen++,Do(this);return}}}),indentLine:as(function(me,Ee,ze){typeof Ee!="string"&&typeof Ee!="number"&&(Ee==null?Ee=this.options.smartIndent?"smart":"prev":Ee=Ee?"add":"subtract"),ii(this.doc,me)&&Ms(this,me,Ee,ze)}),indentSelection:as(function(me){for(var Ee=this.doc.sel.ranges,ze=-1,$e=0;$e<Ee.length;$e++){var gt=Ee[$e];if(gt.empty())gt.head.line>ze&&(Ms(this,gt.head.line,me,!0),ze=gt.head.line,$e==this.doc.sel.primIndex&&Zl(this));else{var dt=gt.from(),At=gt.to(),hn=Math.max(ze,dt.line);ze=Math.min(this.lastLine(),At.line-(At.ch?0:1))+1;for(var Bt=hn;Bt<ze;++Bt)Ms(this,Bt,me);var Wn=this.doc.sel.ranges;dt.ch==0&&Ee.length==Wn.length&&Wn[$e].from().ch>0&&Bl(this.doc,$e,new jr(dt,Wn[$e].to()),Nt)}}}),getTokenAt:function(me,Ee){return Fi(this,me,Ee)},getLineTokens:function(me,Ee){return Fi(this,Ut(me),Ee,!0)},getTokenTypeAt:function(me){me=Mn(this.doc,me);var Ee=Ji(this,Jn(this.doc,me.line)),ze=0,$e=(Ee.length-1)/2,gt=me.ch,dt;if(gt==0)dt=Ee[2];else for(;;){var At=ze+$e>>1;if((At?Ee[At*2-1]:0)>=gt)$e=At;else if(Ee[At*2+1]<gt)ze=At+1;else{dt=Ee[At*2+2];break}}var hn=dt?dt.indexOf("overlay "):-1;return hn<0?dt:hn==0?null:dt.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 ze=[];if(!ve.hasOwnProperty(Ee))return ze;var $e=ve[Ee],gt=this.getModeAt(me);if(typeof gt[Ee]=="string")$e[gt[Ee]]&&ze.push($e[gt[Ee]]);else if(gt[Ee])for(var dt=0;dt<gt[Ee].length;dt++){var At=$e[gt[Ee][dt]];At&&ze.push(At)}else gt.helperType&&$e[gt.helperType]?ze.push($e[gt.helperType]):$e[gt.name]&&ze.push($e[gt.name]);for(var hn=0;hn<$e._global.length;hn++){var Bt=$e._global[hn];Bt.pred(gt,this)&&nt(ze,Bt.val)==-1&&ze.push(Bt.val)}return ze},getStateAfter:function(me,Ee){var ze=this.doc;return me=ai(ze,me==null?ze.first+ze.size-1:me),zr(this,me+1,Ee).state},cursorCoords:function(me,Ee){var ze,$e=this.doc.sel.primary();return me==null?ze=$e.head:typeof me=="object"?ze=Mn(this.doc,me):ze=me?$e.from():$e.to(),Bo(this,ze,Ee||"page")},charCoords:function(me,Ee){return bo(this,Mn(this.doc,me),Ee||"page")},coordsChar:function(me,Ee){return me=Yo(this,me,Ee||"page"),Ka(this,me.left,me.top)},lineAtHeight:function(me,Ee){return me=Yo(this,{top:me,left:0},Ee||"page").top,yn(this.doc,me+this.display.viewOffset)},heightAtLine:function(me,Ee,ze){var $e=!1,gt;if(typeof me=="number"){var dt=this.doc.first+this.doc.size-1;me<this.doc.first?me=this.doc.first:me>dt&&(me=dt,$e=!0),gt=Jn(this.doc,me)}else gt=me;return Ya(this,gt,{top:0,left:0},Ee||"page",ze||$e).top+($e?this.doc.height-Qr(gt):0)},defaultTextHeight:function(){return Vl(this.display)},defaultCharWidth:function(){return sc(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(me,Ee,ze,$e,gt){var dt=this.display;me=Bo(this,Mn(this.doc,me));var At=me.bottom,hn=me.left;if(Ee.style.position="absolute",Ee.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Ee),dt.sizer.appendChild(Ee),$e=="over")At=me.top;else if($e=="above"||$e=="near"){var Bt=Math.max(dt.wrapper.clientHeight,this.doc.height),Wn=Math.max(dt.sizer.clientWidth,dt.lineSpace.clientWidth);($e=="above"||me.bottom+Ee.offsetHeight>Bt)&&me.top>Ee.offsetHeight?At=me.top-Ee.offsetHeight:me.bottom+Ee.offsetHeight<=Bt&&(At=me.bottom),hn+Ee.offsetWidth>Wn&&(hn=Wn-Ee.offsetWidth)}Ee.style.top=At+"px",Ee.style.left=Ee.style.right="",gt=="right"?(hn=dt.sizer.clientWidth-Ee.offsetWidth,Ee.style.right="0px"):(gt=="left"?hn=0:gt=="middle"&&(hn=(dt.sizer.clientWidth-Ee.offsetWidth)/2),Ee.style.left=hn+"px"),ze&&Au(this,{left:hn,top:At,right:hn+Ee.offsetWidth,bottom:At+Ee.offsetHeight})},triggerOnKeyDown:as(_g),triggerOnKeyPress:as(hc),triggerOnKeyUp:zg,triggerOnMouseDown:as(fc),execCommand:function(me){if(hd.hasOwnProperty(me))return hd[me].call(null,this)},triggerElectric:as(function(me){Kg(this,me)}),findPosH:function(me,Ee,ze,$e){var gt=1;Ee<0&&(gt=-1,Ee=-Ee);for(var dt=Mn(this.doc,me),At=0;At<Ee&&(dt=ef(this.doc,dt,gt,ze,$e),!dt.hitSide);++At);return dt},moveH:as(function(me,Ee){var ze=this;this.extendSelectionsBy(function($e){return ze.display.shift||ze.doc.extend||$e.empty()?ef(ze.doc,$e.head,me,Ee,ze.options.rtlMoveVisually):me<0?$e.from():$e.to()},ln)}),deleteH:as(function(me,Ee){var ze=this.doc.sel,$e=this.doc;ze.somethingSelected()?$e.replaceSelection("",null,"+delete"):ql(this,function(gt){var dt=ef($e,gt.head,me,Ee,!1);return me<0?{from:dt,to:gt.head}:{from:gt.head,to:dt}})}),findPosV:function(me,Ee,ze,$e){var gt=1,dt=$e;Ee<0&&(gt=-1,Ee=-Ee);for(var At=Mn(this.doc,me),hn=0;hn<Ee;++hn){var Bt=Bo(this,At,"div");if(dt==null?dt=Bt.left:Bt.left=dt,At=pd(this,Bt,gt,ze),At.hitSide)break}return At},moveV:as(function(me,Ee){var ze=this,$e=this.doc,gt=[],dt=!this.display.shift&&!$e.extend&&$e.sel.somethingSelected();if($e.extendSelectionsBy(function(hn){if(dt)return me<0?hn.from():hn.to();var Bt=Bo(ze,hn.head,"div");hn.goalColumn!=null&&(Bt.left=hn.goalColumn),gt.push(Bt.left);var Wn=pd(ze,Bt,me,Ee);return Ee=="page"&&hn==$e.sel.primary()&&sd(ze,bo(ze,Wn,"div").top-Bt.top),Wn},ln),gt.length)for(var At=0;At<$e.sel.ranges.length;At++)$e.sel.ranges[At].goalColumn=gt[At]}),findWordAt:function(me){var Ee=this.doc,ze=Jn(Ee,me.line).text,$e=me.ch,gt=me.ch;if(ze){var dt=this.getHelper(me,"wordChars");(me.sticky=="before"||gt==ze.length)&&$e?--$e:++gt;for(var At=ze.charAt($e),hn=Me(At,dt)?function(Bt){return Me(Bt,dt)}:/\s/.test(At)?function(Bt){return/\s/.test(Bt)}:function(Bt){return!/\s/.test(Bt)&&!Me(Bt)};$e>0&&hn(ze.charAt($e-1));)--$e;for(;gt<ze.length&&hn(ze.charAt(gt));)++gt}return new jr(Ut(me.line,$e),Ut(me.line,gt))},toggleOverwrite:function(me){me!=null&&me==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?en(this.display.cursorDiv,"CodeMirror-overwrite"):Qe(this.display.cursorDiv,"CodeMirror-overwrite"),An(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Dt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:as(function(me,Ee){Rl(this,me,Ee)}),getScrollInfo:function(){var me=this.display.scroller;return{left:me.scrollLeft,top:me.scrollTop,height:me.scrollHeight-Ko(this)-this.display.barHeight,width:me.scrollWidth-Ko(this)-this.display.barWidth,clientHeight:Sl(this),clientWidth:Aa(this)}},scrollIntoView:as(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:Ut(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?Ao(this,me):Ac(this,me.from,me.to,me.margin)}),setSize:as(function(me,Ee){var ze=this,$e=function(dt){return typeof dt=="number"||/^\d+$/.test(String(dt))?dt+"px":dt};me!=null&&(this.display.wrapper.style.width=$e(me)),Ee!=null&&(this.display.wrapper.style.height=$e(Ee)),this.options.lineWrapping&&oc(this);var gt=this.display.viewFrom;this.doc.iter(gt,this.display.viewTo,function(dt){if(dt.widgets){for(var At=0;At<dt.widgets.length;At++)if(dt.widgets[At].noHScroll){mo(ze,gt,"widget");break}}++gt}),this.curOp.forceUpdate=!0,An(this,"refresh",this)}),operation:function(me){return Qo(this,me)},startOperation:function(){return hu(this)},endOperation:function(){return Nu(this)},refresh:as(function(){var me=this.display.cachedTextHeight;Do(this),this.curOp.forceUpdate=!0,Gu(this),Rl(this,this.doc.scrollLeft,this.doc.scrollTop),Et(this.display),(me==null||Math.abs(me-Vl(this.display))>.5||this.options.lineWrapping)&&_r(this),An(this,"refresh",this)}),swapDoc:as(function(me){var Ee=this.doc;return Ee.cm=null,this.state.selectingText&&this.state.selectingText(),_o(this,me),Gu(this),this.display.input.reset(),Rl(this,me.scrollLeft,me.scrollTop),this.curOp.forceScroll=!0,dr(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,ze){ve.hasOwnProperty(me)||(ve[me]=ie[me]={_global:[]}),ve[me][Ee]=ze},ie.registerGlobalHelper=function(me,Ee,ze,$e){ie.registerHelper(me,Ee,$e),ve[me]._global.push({pred:ze,val:$e})}}function ef(ie,ae,ve,me,Ee){var ze=ae,$e=ve,gt=Jn(ie,ae.line),dt=Ee&&ie.direction=="rtl"?-ve:ve;function At(){var Pr=ae.line+dt;return Pr<ie.first||Pr>=ie.first+ie.size?!1:(ae=new Ut(Pr,ae.ch,ae.sticky),gt=Jn(ie,Pr))}function hn(Pr){var Sr;if(me=="codepoint"){var Br=gt.text.charCodeAt(ae.ch+(me>0?0:-1));isNaN(Br)?Sr=null:Sr=new Ut(ae.line,Math.max(0,Math.min(gt.text.length,ae.ch+ve*(Br>=55296&&Br<56320?2:1))),-ve)}else Ee?Sr=Lf(ie.cm,gt,ae,ve):Sr=ls(gt,ae,ve);if(Sr==null)if(!Pr&&At())ae=Jh(Ee,ie.cm,gt,ae.line,dt);else return!1;else ae=Sr;return!0}if(me=="char"||me=="codepoint")hn();else if(me=="column")hn(!0);else if(me=="word"||me=="group")for(var Bt=null,Wn=me=="group",jn=ie.cm&&ie.cm.getHelper(ae,"wordChars"),Mi=!0;!(ve<0&&!hn(!Mi));Mi=!1){var Oi=gt.text.charAt(ae.ch)||`
`,Gi=Me(Oi,jn)?"w":Wn&&Oi==`
`?"n":!Wn||/\s/.test(Oi)?null:"p";if(Wn&&!Mi&&!Gi&&(Gi="s"),Bt&&Bt!=Gi){ve<0&&(ve=1,hn(),ae.sticky="after");break}if(Gi&&(Bt=Gi),ve>0&&!hn(!Mi))break}var or=Hr(ie,ae,ze,$e,!0);return pi(ze,or)&&(or.hitSide=!0),or}function pd(ie,ae,ve,me){var Ee=ie.doc,ze=ae.left,$e;if(me=="page"){var gt=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),dt=Math.max(gt-.5*Vl(ie.display),3);$e=(ve>0?ae.bottom:ae.top)+ve*dt}else me=="line"&&($e=ve>0?ae.bottom+3:ae.top-3);for(var At;At=Ka(ie,ze,$e),!!At.outside;){if(ve<0?$e<=0:$e>=Ee.height){At.hitSide=!0;break}$e+=ve*5}return At}var xa=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};xa.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 ze(gt){for(var dt=gt.target;dt;dt=dt.parentNode){if(dt==Ee)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(dt.className))break}return!1}zt(Ee,"paste",function(gt){!ze(gt)||nn(me,gt)||Zg(gt,me)||Fe<=11&&setTimeout(Xa(me,function(){return ae.updateFromDOM()}),20)}),zt(Ee,"compositionstart",function(gt){ae.composing={data:gt.data,done:!1}}),zt(Ee,"compositionupdate",function(gt){ae.composing||(ae.composing={data:gt.data,done:!1})}),zt(Ee,"compositionend",function(gt){ae.composing&&(gt.data!=ae.composing.data&&ae.readFromDOMSoon(),ae.composing.done=!0)}),zt(Ee,"touchstart",function(){return ve.forceCompositionEnd()}),zt(Ee,"input",function(){ae.composing||ae.readFromDOMSoon()});function $e(gt){if(!(!ze(gt)||nn(me,gt))){if(me.somethingSelected())Wd({lineWise:!1,text:me.getSelections()}),gt.type=="cut"&&me.replaceSelection("",null,"cut");else if(me.options.lineWiseCopyCut){var dt=Qg(me);Wd({lineWise:!0,text:dt.text}),gt.type=="cut"&&me.operation(function(){me.setSelections(dt.ranges,0,Nt),me.replaceSelection("",null,"cut")})}else return;if(gt.clipboardData){gt.clipboardData.clearData();var At=jl.text.join(`
`);if(gt.clipboardData.setData("Text",At),gt.clipboardData.getData("Text")==At){gt.preventDefault();return}}var hn=Jg(),Bt=hn.firstChild;me.display.lineSpace.insertBefore(hn,me.display.lineSpace.firstChild),Bt.value=jl.text.join(`
`);var Wn=document.activeElement;vn(Bt),setTimeout(function(){me.display.lineSpace.removeChild(hn),Wn.focus(),Wn==Ee&&ve.showPrimarySelection()},50)}}zt(Ee,"copy",$e),zt(Ee,"cut",$e)},xa.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},xa.prototype.prepareSelection=function(){var ie=Tu(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},xa.prototype.showSelection=function(ie,ae){!ie||!this.cm.display.view.length||((ie.focus||ae)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},xa.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},xa.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 ze=tf(ae,ie.anchorNode,ie.anchorOffset),$e=tf(ae,ie.focusNode,ie.focusOffset);if(!(ze&&!ze.bad&&$e&&!$e.bad&&$n(wi(ze,$e),me)==0&&$n(Ue(ze,$e),Ee)==0)){var gt=ae.display.view,dt=me.line>=ae.display.viewFrom&&zf(ae,me)||{node:gt[0].measure.map[2],offset:0},At=Ee.line<ae.display.viewTo&&zf(ae,Ee);if(!At){var hn=gt[gt.length-1].measure,Bt=hn.maps?hn.maps[hn.maps.length-1]:hn.map;At={node:Bt[Bt.length-1],offset:Bt[Bt.length-2]-Bt[Bt.length-3]}}if(!dt||!At){ie.removeAllRanges();return}var Wn=ie.rangeCount&&ie.getRangeAt(0),jn;try{jn=ut(dt.node,dt.offset,At.offset,At.node)}catch(Mi){}jn&&(!le&&ae.state.focused?(ie.collapse(dt.node,dt.offset),jn.collapsed||(ie.removeAllRanges(),ie.addRange(jn))):(ie.removeAllRanges(),ie.addRange(jn)),Wn&&ie.anchorNode==null?ie.addRange(Wn):le&&this.startGracePeriod()),this.rememberSelection()}},xa.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)},xa.prototype.showMultipleSelections=function(ie){rt(this.cm.display.cursorDiv,ie.cursors),rt(this.cm.display.selectionDiv,ie.selection)},xa.prototype.rememberSelection=function(){var ie=this.getSelection();this.lastAnchorNode=ie.anchorNode,this.lastAnchorOffset=ie.anchorOffset,this.lastFocusNode=ie.focusNode,this.lastFocusOffset=ie.focusOffset},xa.prototype.selectionInEditor=function(){var ie=this.getSelection();if(!ie.rangeCount)return!1;var ae=ie.getRangeAt(0).commonAncestorContainer;return Tt(this.div,ae)},xa.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},xa.prototype.blur=function(){this.div.blur()},xa.prototype.getField=function(){return this.div},xa.prototype.supportsTouch=function(){return!0},xa.prototype.receivedFocus=function(){var ie=this;this.selectionInEditor()?this.pollSelection():Qo(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)},xa.prototype.selectionChanged=function(){var ie=this.getSelection();return ie.anchorNode!=this.lastAnchorNode||ie.anchorOffset!=this.lastAnchorOffset||ie.focusNode!=this.lastFocusNode||ie.focusOffset!=this.lastFocusOffset},xa.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var ie=this.getSelection(),ae=this.cm;if(te&&qe&&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&&Qo(ae,function(){pe(ae.doc,la(ve,me),Nt),(ve.bad||me.bad)&&(ae.curOp.selectionChanged=!0)})}}},xa.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=Ut(me.line-1,Jn(ie.doc,me.line-1).length)),Ee.ch==Jn(ie.doc,Ee.line).text.length&&Ee.line<ie.lastLine()&&(Ee=Ut(Ee.line+1,0)),me.line<ae.viewFrom||Ee.line>ae.viewTo-1)return!1;var ze,$e,gt;me.line==ae.viewFrom||(ze=As(ie,me.line))==0?($e=pt(ae.view[0].line),gt=ae.view[0].node):($e=pt(ae.view[ze].line),gt=ae.view[ze-1].node.nextSibling);var dt=As(ie,Ee.line),At,hn;if(dt==ae.view.length-1?(At=ae.viewTo-1,hn=ae.lineDiv.lastChild):(At=pt(ae.view[dt+1].line)-1,hn=ae.view[dt+1].node.previousSibling),!gt)return!1;for(var Bt=ie.doc.splitLines(Mh(ie,gt,hn,$e,At)),Wn=qt(ie.doc,Ut($e,0),Ut(At,Jn(ie.doc,At).text.length));Bt.length>1&&Wn.length>1;)if(kt(Bt)==kt(Wn))Bt.pop(),Wn.pop(),At--;else if(Bt[0]==Wn[0])Bt.shift(),Wn.shift(),$e++;else break;for(var jn=0,Mi=0,Oi=Bt[0],Gi=Wn[0],or=Math.min(Oi.length,Gi.length);jn<or&&Oi.charCodeAt(jn)==Gi.charCodeAt(jn);)++jn;for(var Pr=kt(Bt),Sr=kt(Wn),Br=Math.min(Pr.length-(Bt.length==1?jn:0),Sr.length-(Wn.length==1?jn:0));Mi<Br&&Pr.charCodeAt(Pr.length-Mi-1)==Sr.charCodeAt(Sr.length-Mi-1);)++Mi;if(Bt.length==1&&Wn.length==1&&$e==me.line)for(;jn&&jn>me.ch&&Pr.charCodeAt(Pr.length-Mi-1)==Sr.charCodeAt(Sr.length-Mi-1);)jn--,Mi++;Bt[Bt.length-1]=Pr.slice(0,Pr.length-Mi).replace(/^\u200b+/,""),Bt[0]=Bt[0].slice(jn).replace(/\u200b+$/,"");var so=Ut($e,jn),yr=Ut(At,Wn.length?kt(Wn).length-Mi:0);if(Bt.length>1||Bt[0]||$n(so,yr))return Iu(ie.doc,Bt,so,yr,"+input"),!0},xa.prototype.ensurePolled=function(){this.forceCompositionEnd()},xa.prototype.reset=function(){this.forceCompositionEnd()},xa.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},xa.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))},xa.prototype.updateFromDOM=function(){var ie=this;(this.cm.isReadOnly()||!this.pollContent())&&Qo(this.cm,function(){return Do(ie.cm)})},xa.prototype.setUneditable=function(ie){ie.contentEditable="false"},xa.prototype.onKeyPress=function(ie){ie.charCode==0||this.composing||(ie.preventDefault(),this.cm.isReadOnly()||Xa(this.cm,$h)(this.cm,String.fromCharCode(ie.charCode==null?ie.keyCode:ie.charCode),0))},xa.prototype.readOnlyChanged=function(ie){this.div.contentEditable=String(ie!="nocursor")},xa.prototype.onContextMenu=function(){},xa.prototype.resetPosition=function(){},xa.prototype.needsContentAttribute=!0;function zf(ie,ae){var ve=cs(ie,ae.line);if(!ve||ve.hidden)return null;var me=Jn(ie.doc,ae.line),Ee=vs(ve,me,ae.line),ze=bn(me,ie.doc.direction),$e="left";if(ze){var gt=sn(ze,ae.ch);$e=gt%2?"right":"left"}var dt=xc(Ee.map,ae.ch,$e);return dt.offset=dt.collapse=="right"?dt.end:dt.start,dt}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 ze="",$e=!1,gt=ie.doc.lineSeparator(),dt=!1;function At(jn){return function(Mi){return Mi.id==jn}}function hn(){$e&&(ze+=gt,dt&&(ze+=gt),$e=dt=!1)}function Bt(jn){jn&&(hn(),ze+=jn)}function Wn(jn){if(jn.nodeType==1){var Mi=jn.getAttribute("cm-text");if(Mi){Bt(Mi);return}var Oi=jn.getAttribute("cm-marker"),Gi;if(Oi){var or=ie.findMarks(Ut(me,0),Ut(Ee+1,0),At(+Oi));or.length&&(Gi=or[0].find(0))&&Bt(qt(ie.doc,Gi.from,Gi.to).join(gt));return}if(jn.getAttribute("contenteditable")=="false")return;var Pr=/^(pre|div|p|li|table|br)$/i.test(jn.nodeName);if(!/^br$/i.test(jn.nodeName)&&jn.textContent.length==0)return;Pr&&hn();for(var Sr=0;Sr<jn.childNodes.length;Sr++)Wn(jn.childNodes[Sr]);/^(pre|p)$/i.test(jn.nodeName)&&(dt=!0),Pr&&($e=!0)}else jn.nodeType==3&&Bt(jn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Wn(ae),ae!=ve;)ae=ae.nextSibling,dt=!1;return ze}function tf(ie,ae,ve){var me;if(ae==ie.display.lineDiv){if(me=ie.display.lineDiv.childNodes[ve],!me)return Nh(ie.clipPos(Ut(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 ze=ie.display.view[Ee];if(ze.node==me)return dm(ze,ae,ve)}}function dm(ie,ae,ve){var me=ie.text.firstChild,Ee=!1;if(!ae||!Tt(me,ae))return Nh(Ut(pt(ie.line),0),!0);if(ae==me&&(Ee=!0,ae=me.childNodes[ve],ve=0,!ae)){var ze=ie.rest?kt(ie.rest):ie.line;return Nh(Ut(pt(ze),ze.text.length),Ee)}var $e=ae.nodeType==3?ae:null,gt=ae;for(!$e&&ae.childNodes.length==1&&ae.firstChild.nodeType==3&&($e=ae.firstChild,ve&&(ve=$e.nodeValue.length));gt.parentNode!=me;)gt=gt.parentNode;var dt=ie.measure,At=dt.maps;function hn(Gi,or,Pr){for(var Sr=-1;Sr<(At?At.length:0);Sr++)for(var Br=Sr<0?dt.map:At[Sr],so=0;so<Br.length;so+=3){var yr=Br[so+2];if(yr==Gi||yr==or){var Mo=pt(Sr<0?ie.line:ie.rest[Sr]),Ra=Br[so]+Pr;return(Pr<0||yr!=Gi)&&(Ra=Br[so+(Pr?1:0)]),Ut(Mo,Ra)}}}var Bt=hn($e,gt,ve);if(Bt)return Nh(Bt,Ee);for(var Wn=gt.nextSibling,jn=$e?$e.nodeValue.length-ve:0;Wn;Wn=Wn.nextSibling){if(Bt=hn(Wn,Wn.firstChild,0),Bt)return Nh(Ut(Bt.line,Bt.ch-jn),Ee);jn+=Wn.textContent.length}for(var Mi=gt.previousSibling,Oi=ve;Mi;Mi=Mi.previousSibling){if(Bt=hn(Mi,Mi.firstChild,-1),Bt)return Nh(Ut(Bt.line,Bt.ch+Oi),Ee);Oi+=Mi.textContent.length}}var Es=function(ie){this.cm=ie,this.prevInput="",this.pollingFast=!1,this.polling=new ct,this.hasSelection=!1,this.composing=null};Es.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),je&&(Ee.style.width="0px"),zt(Ee,"input",function(){Ye&&Fe>=9&&ae.hasSelection&&(ae.hasSelection=null),ve.poll()}),zt(Ee,"paste",function($e){nn(me,$e)||Zg($e,me)||(me.state.pasteIncoming=+new Date,ve.fastPoll())});function ze($e){if(!nn(me,$e)){if(me.somethingSelected())Wd({lineWise:!1,text:me.getSelections()});else if(me.options.lineWiseCopyCut){var gt=Qg(me);Wd({lineWise:!0,text:gt.text}),$e.type=="cut"?me.setSelections(gt.ranges,null,Nt):(ve.prevInput="",Ee.value=gt.text.join(`
`),vn(Ee))}else return;$e.type=="cut"&&(me.state.cutIncoming=+new Date)}}zt(Ee,"cut",ze),zt(Ee,"copy",ze),zt(ie.scroller,"paste",function($e){if(!(ko(ie,$e)||nn(me,$e))){if(!Ee.dispatchEvent){me.state.pasteIncoming=+new Date,ve.focus();return}var gt=new Event("paste");gt.clipboardData=$e.clipboardData,Ee.dispatchEvent(gt)}}),zt(ie.lineSpace,"selectstart",function($e){ko(ie,$e)||Fn($e)}),zt(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"})}}),zt(Ee,"compositionend",function(){ve.composing&&(ve.poll(),ve.composing.range.clear(),ve.composing=null)})},Es.prototype.createField=function(ie){this.wrapper=Jg(),this.textarea=this.wrapper.firstChild},Es.prototype.screenReaderLabelChanged=function(ie){ie?this.textarea.setAttribute("aria-label",ie):this.textarea.removeAttribute("aria-label")},Es.prototype.prepareSelection=function(){var ie=this.cm,ae=ie.display,ve=ie.doc,me=Tu(ie);if(ie.options.moveInputWithCursor){var Ee=Bo(ie,ve.sel.primary().head,"div"),ze=ae.wrapper.getBoundingClientRect(),$e=ae.lineDiv.getBoundingClientRect();me.teTop=Math.max(0,Math.min(ae.wrapper.clientHeight-10,Ee.top+$e.top-ze.top)),me.teLeft=Math.max(0,Math.min(ae.wrapper.clientWidth-10,Ee.left+$e.left-ze.left))}return me},Es.prototype.showSelection=function(ie){var ae=this.cm,ve=ae.display;rt(ve.cursorDiv,ie.cursors),rt(ve.selectionDiv,ie.selection),ie.teTop!=null&&(this.wrapper.style.top=ie.teTop+"px",this.wrapper.style.left=ie.teLeft+"px")},Es.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&&vn(this.textarea),Ye&&Fe>=9&&(this.hasSelection=ve)}else ie||(this.prevInput=this.textarea.value="",Ye&&Fe>=9&&(this.hasSelection=null))}},Es.prototype.getField=function(){return this.textarea},Es.prototype.supportsTouch=function(){return!1},Es.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ne||Dt()!=this.textarea))try{this.textarea.focus()}catch(ie){}},Es.prototype.blur=function(){this.textarea.blur()},Es.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Es.prototype.receivedFocus=function(){this.slowPoll()},Es.prototype.slowPoll=function(){var ie=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ie.poll(),ie.cm.state.focused&&ie.slowPoll()})},Es.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)},Es.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&&Fe>=9&&this.hasSelection===Ee||he&&/[\uf700-\uf7ff]/.test(Ee))return ae.display.input.reset(),!1;if(ae.doc.sel==ae.display.selForContextMenu){var ze=Ee.charCodeAt(0);if(ze==8203&&!me&&(me="\u200B"),ze==8666)return this.reset(),this.cm.execCommand("undo")}for(var $e=0,gt=Math.min(me.length,Ee.length);$e<gt&&me.charCodeAt($e)==Ee.charCodeAt($e);)++$e;return Qo(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},Es.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Es.prototype.onKeyPress=function(){Ye&&Fe>=9&&(this.hasSelection=null),this.fastPoll()},Es.prototype.onContextMenu=function(ie){var ae=this,ve=ae.cm,me=ve.display,Ee=ae.textarea;ae.contextMenuPending&&ae.contextMenuPending();var ze=os(ve,ie),$e=me.scroller.scrollTop;if(!ze||Je)return;var gt=ve.options.resetSelectionOnContextMenu;gt&&ve.doc.sel.contains(ze)==-1&&Xa(ve,pe)(ve.doc,la(ze),Nt);var dt=Ee.style.cssText,At=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 Bt;Ve&&(Bt=window.scrollY),me.input.focus(),Ve&&window.scrollTo(null,Bt),me.input.reset(),ve.somethingSelected()||(Ee.value=ae.prevInput=" "),ae.contextMenuPending=jn,me.selForContextMenu=ve.doc.sel,clearTimeout(me.detectingSelectAll);function Wn(){if(Ee.selectionStart!=null){var Oi=ve.somethingSelected(),Gi="\u200B"+(Oi?Ee.value:"");Ee.value="\u21DA",Ee.value=Gi,ae.prevInput=Oi?"":"\u200B",Ee.selectionStart=1,Ee.selectionEnd=Gi.length,me.selForContextMenu=ve.doc.sel}}function jn(){if(ae.contextMenuPending==jn&&(ae.contextMenuPending=!1,ae.wrapper.style.cssText=At,Ee.style.cssText=dt,Ye&&Fe<9&&me.scrollbars.setScrollTop(me.scroller.scrollTop=$e),Ee.selectionStart!=null)){(!Ye||Ye&&Fe<9)&&Wn();var Oi=0,Gi=function(){me.selForContextMenu==ve.doc.sel&&Ee.selectionStart==0&&Ee.selectionEnd>0&&ae.prevInput=="\u200B"?Xa(ve,mi)(ve):Oi++<10?me.detectingSelectAll=setTimeout(Gi,500):(me.selForContextMenu=null,me.input.reset())};me.detectingSelectAll=setTimeout(Gi,200)}}if(Ye&&Fe>=9&&Wn(),Oe){fi(ie);var Mi=function(){fn(window,"mouseup",Mi),setTimeout(jn,20)};zt(window,"mouseup",Mi)}else setTimeout(jn,50)},Es.prototype.readOnlyChanged=function(ie){ie||this.reset(),this.textarea.disabled=ie=="nocursor",this.textarea.readOnly=!!ie},Es.prototype.setUneditable=function(){},Es.prototype.needsContentAttribute=!1;function hm(ie,ae){if(ae=ae?mn(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=Dt();ae.autofocus=ve==ie||ie.getAttribute("autofocus")!=null&&ve==document.body}function me(){ie.value=gt.getValue()}var Ee;if(ie.form&&(zt(ie.form,"submit",me),!ae.leaveSubmitMethodAlone)){var ze=ie.form;Ee=ze.submit;try{var $e=ze.submit=function(){me(),ze.submit=Ee,ze.submit(),ze.submit=$e}}catch(dt){}}ae.finishInit=function(dt){dt.save=me,dt.getTextArea=function(){return ie},dt.toTextArea=function(){dt.toTextArea=isNaN,me(),ie.parentNode.removeChild(dt.getWrapperElement()),ie.style.display="",ie.form&&(fn(ie.form,"submit",me),!ae.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=Ee))}},ie.style.display="none";var gt=$o(function(dt){return ie.parentNode.insertBefore(dt,ie.nextSibling)},ae);return gt}function Ph(ie){ie.off=fn,ie.on=zt,ie.wheelEventPixels=eo,ie.Doc=el,ie.splitLines=Ri,ie.countColumn=Mt,ie.findColumn=_n,ie.isWordChar=Te,ie.Pass=En,ie.signal=An,ie.Line=Co,ie.changeEnd=ua,ie.scrollbarModel=Wu,ie.Pos=Ut,ie.cmpPos=$n,ie.modes=ar,ie.mimeModes=Nr,ie.resolveMode=Ei,ie.getMode=Zt,ie.modeExtensions=Wt,ie.extendMode=Rt,ie.copyState=rn,ie.startState=Sn,ie.innerMode=Xt,ie.commands=hd,ie.keyMap=Jl,ie.keyName=rm,ie.isModifierKey=xh,ie.lookupKey=ku,ie.normalizeKeyMap=Dg,ie.StringStream=Rn,ie.SharedTextMarker=Nc,ie.TextMarker=tn,ie.LineWidget=Vc,ie.e_preventDefault=Fn,ie.e_stopPropagation=Pn,ie.e_stop=fi,ie.addClass=en,ie.contains=Tt,ie.rmClass=Qe,ie.keyNames=Mc}um($o),gd($o);var Zc="iter insert remove copy getEditor constructor".split(" ");for(var nf in el.prototype)el.prototype.hasOwnProperty(nf)&&nt(Zc,nf)<0&&($o.prototype[nf]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(el.prototype[nf]));return yt(el),$o.inputStyles={textarea:Es,contenteditable:xa},$o.defineMode=function(ie){!$o.defaults.mode&&ie!="null"&&($o.defaults.mode=ie),sr.apply(this,arguments)},$o.defineMIME=Di,$o.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),$o.defineMIME("text/plain","null"),$o.defineExtension=function(ie,ae){$o.prototype[ie]=ae},$o.defineDocExtension=function(ie,ae){el.prototype[ie]=ae},$o.fromTextArea=hm,Ph($o),$o.version="5.58.2",$o})},25419:function(Ge,be,de){(function(le){le(de(89780),de(15525),de(98101))})(function(le){"use strict";le.defineMode("markdown",function(Le,De){var Ie=le.getMode(Le,"text/html"),Ye=Ie.name=="null";function Fe(Mt){if(le.findModeByName){var ct=le.findModeByName(Mt);ct&&(Mt=ct.mime||ct.mimes[0])}var nt=le.getMode(Le,Mt);return nt.name=="null"?null:nt}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 Xe in Ve)Ve.hasOwnProperty(Xe)&&De.tokenTypeOverrides[Xe]&&(Ve[Xe]=De.tokenTypeOverrides[Xe]);var qe=/^([*\-_])(?:\s*\1){2,}\s*$/,Je=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,mt=/^\[(x| )\](?=\s)/i,st=De.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Ct=/^ {0,3}(?:\={1,}|-{2,})\s*$/,je=/^[^#!\[\]*_\\<>` "'(~:]+/,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(Mt,ct,nt){return ct.f=ct.inline=nt,nt(Mt,ct)}function Se(Mt,ct,nt){return ct.f=ct.block=nt,nt(Mt,ct)}function Ce(Mt){return!Mt||!/\S/.test(Mt.string)}function Oe(Mt){if(Mt.linkTitle=!1,Mt.linkHref=!1,Mt.linkText=!1,Mt.em=!1,Mt.strong=!1,Mt.strikethrough=!1,Mt.quote=0,Mt.indentedCode=!1,Mt.f==Qe){var ct=Ye;if(!ct){var nt=le.innerMode(Ie,Mt.htmlState);ct=nt.mode.name=="xml"&&nt.state.tagStart===null&&!nt.state.context&&nt.state.tokenize.isInText}ct&&(Mt.f=bt,Mt.block=Be,Mt.htmlState=null)}return Mt.trailingSpace=0,Mt.trailingSpaceNewLine=!1,Mt.prevLine=Mt.thisLine,Mt.thisLine={stream:null},null}function Be(Mt,ct){var nt=Mt.column()===ct.indentation,dn=Ce(ct.prevLine.stream),En=ct.indentedCode,Nt=ct.prevLine.hr,cn=ct.list!==!1,ln=(ct.listStack[ct.listStack.length-1]||0)+3;ct.indentedCode=!1;var _n=ct.indentation;if(ct.indentationDiff===null&&(ct.indentationDiff=ct.indentation,cn)){for(ct.list=null;_n<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=_n-ct.listStack[ct.listStack.length-1])}var kn=!dn&&!Nt&&!ct.prevLine.header&&(!cn||!En)&&!ct.prevLine.fencedCodeEnd,si=(ct.list===!1||Nt||dn)&&ct.indentation<=ln&&Mt.match(qe),kt=null;if(ct.indentationDiff>=4&&(En||ct.prevLine.fencedCodeEnd||ct.prevLine.header||dn))return Mt.skipToEnd(),ct.indentedCode=!0,Ve.code;if(Mt.eatSpace())return null;if(nt&&ct.indentation<=ln&&(kt=Mt.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,rt(ct);if(ct.indentation<=ln&&Mt.eat(">"))return ct.quote=nt?1:ct.quote+1,De.highlightFormatting&&(ct.formatting="quote"),Mt.eatSpace(),rt(ct);if(!si&&!ct.setext&&nt&&ct.indentation<=ln&&(kt=Mt.match(Je))){var Kn=kt[1]?"ol":"ul";return ct.indentation=_n+Mt.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&&Mt.match(mt,!1)&&(ct.taskList=!0),ct.f=ct.inline,De.highlightFormatting&&(ct.formatting=["list","list-"+Kn]),rt(ct)}else{if(nt&&ct.indentation<=ln&&(kt=Mt.match(te,!0)))return ct.quote=0,ct.fencedEndRE=new RegExp(kt[1]+"+ *$"),ct.localMode=De.fencedCodeBlockHighlighting&&Fe(kt[2]||De.fencedCodeBlockDefaultMode),ct.localMode&&(ct.localState=le.startState(ct.localMode)),ct.f=ct.block=ot,De.highlightFormatting&&(ct.formatting="code-block"),ct.code=-1,rt(ct);if(ct.setext||(!kn||!cn)&&!ct.quote&&ct.list===!1&&!ct.code&&!si&&!ne.test(Mt.string)&&(kt=Mt.lookAhead(1))&&(kt=kt.match(Ct)))return ct.setext?(ct.header=ct.setext,ct.setext=0,Mt.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,rt(ct);if(si)return Mt.skipToEnd(),ct.hr=!0,ct.thisLine.hr=!0,Ve.hr;if(Mt.peek()==="[")return ge(Mt,ct,Cn)}return ge(Mt,ct,ct.inline)}function Qe(Mt,ct){var nt=Ie.token(Mt,ct.htmlState);if(!Ye){var dn=le.innerMode(Ie,ct.htmlState);(dn.mode.name=="xml"&&dn.state.tagStart===null&&!dn.state.context&&dn.state.tokenize.isInText||ct.md_inside&&Mt.current().indexOf(">")>-1)&&(ct.f=bt,ct.block=Be,ct.htmlState=null)}return nt}function ot(Mt,ct){var nt=ct.listStack[ct.listStack.length-1]||0,dn=ct.indentation<nt,En=nt+3;if(ct.fencedEndRE&&ct.indentation<=En&&(dn||Mt.match(ct.fencedEndRE))){De.highlightFormatting&&(ct.formatting="code-block");var Nt;return dn||(Nt=rt(ct)),ct.localMode=ct.localState=null,ct.block=Be,ct.f=bt,ct.fencedEndRE=null,ct.code=0,ct.thisLine.fencedCodeEnd=!0,dn?Se(Mt,ct,ct.block):Nt}else return ct.localMode?ct.localMode.token(Mt,ct.localState):(Mt.skipToEnd(),Ve.code)}function rt(Mt){var ct=[];if(Mt.formatting){ct.push(Ve.formatting),typeof Mt.formatting=="string"&&(Mt.formatting=[Mt.formatting]);for(var nt=0;nt<Mt.formatting.length;nt++)ct.push(Ve.formatting+"-"+Mt.formatting[nt]),Mt.formatting[nt]==="header"&&ct.push(Ve.formatting+"-"+Mt.formatting[nt]+"-"+Mt.header),Mt.formatting[nt]==="quote"&&(!De.maxBlockquoteDepth||De.maxBlockquoteDepth>=Mt.quote?ct.push(Ve.formatting+"-"+Mt.formatting[nt]+"-"+Mt.quote):ct.push("error"))}if(Mt.taskOpen)return ct.push("meta"),ct.length?ct.join(" "):null;if(Mt.taskClosed)return ct.push("property"),ct.length?ct.join(" "):null;if(Mt.linkHref?ct.push(Ve.linkHref,"url"):(Mt.strong&&ct.push(Ve.strong),Mt.em&&ct.push(Ve.em),Mt.strikethrough&&ct.push(Ve.strikethrough),Mt.emoji&&ct.push(Ve.emoji),Mt.linkText&&ct.push(Ve.linkText),Mt.code&&ct.push(Ve.code),Mt.image&&ct.push(Ve.image),Mt.imageAltText&&ct.push(Ve.imageAltText,"link"),Mt.imageMarker&&ct.push(Ve.imageMarker)),Mt.header&&ct.push(Ve.header,Ve.header+"-"+Mt.header),Mt.quote&&(ct.push(Ve.quote),!De.maxBlockquoteDepth||De.maxBlockquoteDepth>=Mt.quote?ct.push(Ve.quote+"-"+Mt.quote):ct.push(Ve.quote+"-"+De.maxBlockquoteDepth)),Mt.list!==!1){var dn=(Mt.listStack.length-1)%3;dn?dn===1?ct.push(Ve.list2):ct.push(Ve.list3):ct.push(Ve.list1)}return Mt.trailingSpaceNewLine?ct.push("trailing-space-new-line"):Mt.trailingSpace&&ct.push("trailing-space-"+(Mt.trailingSpace%2?"a":"b")),ct.length?ct.join(" "):null}function ft(Mt,ct){if(Mt.match(je,!0))return rt(ct)}function bt(Mt,ct){var nt=ct.text(Mt,ct);if(typeof nt!="undefined")return nt;if(ct.list)return ct.list=null,rt(ct);if(ct.taskList){var dn=Mt.match(mt,!0)[1]===" ";return dn?ct.taskOpen=!0:ct.taskClosed=!0,De.highlightFormatting&&(ct.formatting="task"),ct.taskList=!1,rt(ct)}if(ct.taskOpen=!1,ct.taskClosed=!1,ct.header&&Mt.match(/^#+$/,!0))return De.highlightFormatting&&(ct.formatting="header"),rt(ct);var En=Mt.next();if(ct.linkTitle){ct.linkTitle=!1;var Nt=En;En==="("&&(Nt=")"),Nt=(Nt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var cn="^\\s*(?:[^"+Nt+"\\\\]+|\\\\\\\\|\\\\.)"+Nt;if(Mt.match(new RegExp(cn),!0))return Ve.linkHref}if(En==="`"){var ln=ct.formatting;De.highlightFormatting&&(ct.formatting="code"),Mt.eatWhile("`");var _n=Mt.current().length;if(ct.code==0&&(!ct.quote||_n==1))return ct.code=_n,rt(ct);if(_n==ct.code){var kn=rt(ct);return ct.code=0,kn}else return ct.formatting=ln,rt(ct)}else if(ct.code)return rt(ct);if(En==="\\"&&(Mt.next(),De.highlightFormatting)){var si=rt(ct),kt=Ve.formatting+"-escape";return si?si+" "+kt:kt}if(En==="!"&&Mt.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ct.imageMarker=!0,ct.image=!0,De.highlightFormatting&&(ct.formatting="image"),rt(ct);if(En==="["&&ct.imageMarker&&Mt.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ct.imageMarker=!1,ct.imageAltText=!0,De.highlightFormatting&&(ct.formatting="image"),rt(ct);if(En==="]"&&ct.imageAltText){De.highlightFormatting&&(ct.formatting="image");var si=rt(ct);return ct.imageAltText=!1,ct.image=!1,ct.inline=ct.f=Tt,si}if(En==="["&&!ct.image)return ct.linkText&&Mt.match(/^.*?\]/)||(ct.linkText=!0,De.highlightFormatting&&(ct.formatting="link")),rt(ct);if(En==="]"&&ct.linkText){De.highlightFormatting&&(ct.formatting="link");var si=rt(ct);return ct.linkText=!1,ct.inline=ct.f=Mt.match(/\(.*?\)| ?\[.*?\]/,!1)?Tt:bt,si}if(En==="<"&&Mt.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ct.f=ct.inline=ut,De.highlightFormatting&&(ct.formatting="link");var si=rt(ct);return si?si+=" ":si="",si+Ve.linkInline}if(En==="<"&&Mt.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ct.f=ct.inline=ut,De.highlightFormatting&&(ct.formatting="link");var si=rt(ct);return si?si+=" ":si="",si+Ve.linkEmail}if(De.xml&&En==="<"&&Mt.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Kn=Mt.string.indexOf(">",Mt.pos);if(Kn!=-1){var hi=Mt.string.substring(Mt.start,Kn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(hi)&&(ct.md_inside=!0)}return Mt.backUp(1),ct.htmlState=le.startState(Ie),Se(Mt,ct,Qe)}if(De.xml&&En==="<"&&Mt.match(/^\/\w*?>/))return ct.md_inside=!1,"tag";if(En==="*"||En==="_"){for(var et=1,_e=Mt.pos==1?" ":Mt.string.charAt(Mt.pos-2);et<3&&Mt.eat(En);)et++;var xe=Mt.peek()||" ",Te=!/\s/.test(xe)&&(!he.test(xe)||/\s/.test(_e)||he.test(_e)),Me=!/\s/.test(_e)&&(!he.test(_e)||/\s/.test(xe)||he.test(xe)),Ae=null,at=null;if(et%2&&(!ct.em&&Te&&(En==="*"||!Me||he.test(_e))?Ae=!0:ct.em==En&&Me&&(En==="*"||!Te||he.test(xe))&&(Ae=!1)),et>1&&(!ct.strong&&Te&&(En==="*"||!Me||he.test(_e))?at=!0:ct.strong==En&&Me&&(En==="*"||!Te||he.test(xe))&&(at=!1)),at!=null||Ae!=null){De.highlightFormatting&&(ct.formatting=Ae==null?"strong":at==null?"em":"strong em"),Ae===!0&&(ct.em=En),at===!0&&(ct.strong=En);var kn=rt(ct);return Ae===!1&&(ct.em=!1),at===!1&&(ct.strong=!1),kn}}else if(En===" "&&(Mt.eat("*")||Mt.eat("_"))){if(Mt.peek()===" ")return rt(ct);Mt.backUp(1)}if(De.strikethrough){if(En==="~"&&Mt.eatWhile(En)){if(ct.strikethrough){De.highlightFormatting&&(ct.formatting="strikethrough");var kn=rt(ct);return ct.strikethrough=!1,kn}else if(Mt.match(/^[^\s]/,!1))return ct.strikethrough=!0,De.highlightFormatting&&(ct.formatting="strikethrough"),rt(ct)}else if(En===" "&&Mt.match(/^~~/,!0)){if(Mt.peek()===" ")return rt(ct);Mt.backUp(2)}}if(De.emoji&&En===":"&&Mt.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ct.emoji=!0,De.highlightFormatting&&(ct.formatting="emoji");var Lt=rt(ct);return ct.emoji=!1,Lt}return En===" "&&(Mt.match(/^ +$/,!1)?ct.trailingSpace++:ct.trailingSpace&&(ct.trailingSpaceNewLine=!0)),rt(ct)}function ut(Mt,ct){var nt=Mt.next();if(nt===">"){ct.f=ct.inline=bt,De.highlightFormatting&&(ct.formatting="link");var dn=rt(ct);return dn?dn+=" ":dn="",dn+Ve.linkInline}return Mt.match(/^[^>]+/,!0),Ve.linkInline}function Tt(Mt,ct){if(Mt.eatSpace())return null;var nt=Mt.next();return nt==="("||nt==="["?(ct.f=ct.inline=en(nt==="("?")":"]"),De.highlightFormatting&&(ct.formatting="link-string"),ct.linkHref=!0,rt(ct)):"error"}var Dt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function en(Mt){return function(ct,nt){var dn=ct.next();if(dn===Mt){nt.f=nt.inline=bt,De.highlightFormatting&&(nt.formatting="link-string");var En=rt(nt);return nt.linkHref=!1,En}return ct.match(Dt[Mt]),nt.linkHref=!0,rt(nt)}}function Cn(Mt,ct){return Mt.match(/^([^\]\\]|\\.)*\]:/,!1)?(ct.f=vn,Mt.next(),De.highlightFormatting&&(ct.formatting="link"),ct.linkText=!0,rt(ct)):ge(Mt,ct,bt)}function vn(Mt,ct){if(Mt.match(/^\]:/,!0)){ct.f=ct.inline=pn,De.highlightFormatting&&(ct.formatting="link");var nt=rt(ct);return ct.linkText=!1,nt}return Mt.match(/^([^\]\\]|\\.)+/,!0),Ve.linkText}function pn(Mt,ct){return Mt.eatSpace()?null:(Mt.match(/^[^\s]+/,!0),Mt.peek()===void 0?ct.linkTitle=!0:Mt.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ct.f=ct.inline=bt,Ve.linkHref+" url")}var mn={startState:function(){return{f:Be,prevLine:{stream:null},thisLine:{stream:null},block:Be,htmlState:null,indentation:0,inline:bt,text:ft,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(Mt){return{f:Mt.f,prevLine:Mt.prevLine,thisLine:Mt.thisLine,block:Mt.block,htmlState:Mt.htmlState&&le.copyState(Ie,Mt.htmlState),indentation:Mt.indentation,localMode:Mt.localMode,localState:Mt.localMode?le.copyState(Mt.localMode,Mt.localState):null,inline:Mt.inline,text:Mt.text,formatting:!1,linkText:Mt.linkText,linkTitle:Mt.linkTitle,linkHref:Mt.linkHref,code:Mt.code,em:Mt.em,strong:Mt.strong,strikethrough:Mt.strikethrough,emoji:Mt.emoji,header:Mt.header,setext:Mt.setext,hr:Mt.hr,taskList:Mt.taskList,list:Mt.list,listStack:Mt.listStack.slice(0),quote:Mt.quote,indentedCode:Mt.indentedCode,trailingSpace:Mt.trailingSpace,trailingSpaceNewLine:Mt.trailingSpaceNewLine,md_inside:Mt.md_inside,fencedEndRE:Mt.fencedEndRE}},token:function(Mt,ct){if(ct.formatting=!1,Mt!=ct.thisLine.stream){if(ct.header=0,ct.hr=!1,Mt.match(/^\s*$/,!0))return Oe(ct),null;if(ct.prevLine=ct.thisLine,ct.thisLine={stream:Mt},ct.taskList=!1,ct.trailingSpace=0,ct.trailingSpaceNewLine=!1,!ct.localState&&(ct.f=ct.block,ct.f!=Qe)){var nt=Mt.match(/^\s*/,!0)[0].replace(/\t/g,se).length;if(ct.indentation=nt,ct.indentationDiff=null,nt>0)return null}}return ct.f(Mt,ct)},innerMode:function(Mt){return Mt.block==Qe?{state:Mt.htmlState,mode:Ie}:Mt.localState?{state:Mt.localState,mode:Mt.localMode}:{state:Mt,mode:mn}},indent:function(Mt,ct,nt){return Mt.block==Qe&&Ie.indent?Ie.indent(Mt.htmlState,ct,nt):Mt.localState&&Mt.localMode.indent?Mt.localMode.indent(Mt.localState,ct,nt):le.Pass},blankLine:Oe,getType:rt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return mn},"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 Le=0;Le<le.modeInfo.length;Le++){var De=le.modeInfo[Le];De.mimes&&(De.mime=De.mimes[0])}le.findModeByMIME=function(Ie){Ie=Ie.toLowerCase();for(var Ye=0;Ye<le.modeInfo.length;Ye++){var Fe=le.modeInfo[Ye];if(Fe.mime==Ie)return Fe;if(Fe.mimes){for(var Ve=0;Ve<Fe.mimes.length;Ve++)if(Fe.mimes[Ve]==Ie)return Fe}}if(/\+xml$/.test(Ie))return le.findModeByMIME("application/xml");if(/\+json$/.test(Ie))return le.findModeByMIME("application/json")},le.findModeByExtension=function(Ie){Ie=Ie.toLowerCase();for(var Ye=0;Ye<le.modeInfo.length;Ye++){var Fe=le.modeInfo[Ye];if(Fe.ext){for(var Ve=0;Ve<Fe.ext.length;Ve++)if(Fe.ext[Ve]==Ie)return Fe}}},le.findModeByFileName=function(Ie){for(var Ye=0;Ye<le.modeInfo.length;Ye++){var Fe=le.modeInfo[Ye];if(Fe.file&&Fe.file.test(Ie))return Fe}var Ve=Ie.lastIndexOf("."),Xe=Ve>-1&&Ie.substring(Ve+1,Ie.length);if(Xe)return le.findModeByExtension(Xe)},le.findModeByName=function(Ie){Ie=Ie.toLowerCase();for(var Ye=0;Ye<le.modeInfo.length;Ye++){var Fe=le.modeInfo[Ye];if(Fe.name.toLowerCase()==Ie)return Fe;if(Fe.alias){for(var Ve=0;Ve<Fe.alias.length;Ve++)if(Fe.alias[Ve].toLowerCase()==Ie)return Fe}}}})},67549:function(Ge,be,de){(function(le){le(de(89780))})(function(le){"use strict";le.defineMode("stex",function(Le,De){"use strict";function Ie(je,te){je.cmdState.push(te)}function Ye(je){return je.cmdState.length>0?je.cmdState[je.cmdState.length-1]:null}function Fe(je){var te=je.cmdState.pop();te&&te.closeBracket()}function Ve(je){for(var te=je.cmdState,ne=te.length-1;ne>=0;ne--){var he=te[ne];if(he.name!="DEFAULT")return he}return{styleIdentifier:function(){return null}}}function Xe(je,te,ne){return function(){this.name=je,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 qe={};qe.importmodule=Xe("importmodule","tag",["string","builtin"]),qe.documentclass=Xe("documentclass","tag",["","atom"]),qe.usepackage=Xe("usepackage","tag",["atom"]),qe.begin=Xe("begin","tag",["atom"]),qe.end=Xe("end","tag",["atom"]),qe.label=Xe("label","tag",["atom"]),qe.ref=Xe("ref","tag",["atom"]),qe.eqref=Xe("eqref","tag",["atom"]),qe.cite=Xe("cite","tag",["atom"]),qe.bibitem=Xe("bibitem","tag",["atom"]),qe.Bibitem=Xe("Bibitem","tag",["atom"]),qe.RBibitem=Xe("RBibitem","tag",["atom"]),qe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Je(je,te){je.f=te}function mt(je,te){var ne;if(je.match(/^\\[a-zA-Z@]+/)){var he=je.current().slice(1);return ne=qe.hasOwnProperty(he)?qe[he]:qe.DEFAULT,ne=new ne,Ie(te,ne),Je(te,Ct),ne.style}if(je.match(/^\\[$&%#{}_]/)||je.match(/^\\[,;!\/\\]/))return"tag";if(je.match("\\["))return Je(te,function(ge,Se){return st(ge,Se,"\\]")}),"keyword";if(je.match("\\("))return Je(te,function(ge,Se){return st(ge,Se,"\\)")}),"keyword";if(je.match("$$"))return Je(te,function(ge,Se){return st(ge,Se,"$$")}),"keyword";if(je.match("$"))return Je(te,function(ge,Se){return st(ge,Se,"$")}),"keyword";var se=je.next();if(se=="%")return je.skipToEnd(),"comment";if(se=="}"||se=="]"){if(ne=Ye(te),ne)ne.closeBracket(se),Je(te,Ct);else return"error";return"bracket"}else return se=="{"||se=="["?(ne=qe.DEFAULT,ne=new ne,Ie(te,ne),"bracket"):/\d/.test(se)?(je.eatWhile(/[\w.%]/),"atom"):(je.eatWhile(/[\w\-_]/),ne=Ve(te),ne.name=="begin"&&(ne.argument=je.current()),ne.styleIdentifier())}function st(je,te,ne){if(je.eatSpace())return null;if(ne&&je.match(ne))return Je(te,mt),"keyword";if(je.match(/^\\[a-zA-Z@]+/))return"tag";if(je.match(/^[a-zA-Z]+/))return"variable-2";if(je.match(/^\\[$&%#{}_]/)||je.match(/^\\[,;!\/]/)||je.match(/^[\^_&]/))return"tag";if(je.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(je.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var he=je.next();return he=="{"||he=="}"||he=="["||he=="]"||he=="("||he==")"?"bracket":he=="%"?(je.skipToEnd(),"comment"):"error"}function Ct(je,te){var ne=je.peek(),he;return ne=="{"||ne=="["?(he=Ye(te),he.openBracket(ne),je.eat(ne),Je(te,mt),"bracket"):/[ \t\r]/.test(ne)?(je.eat(ne),null):(Je(te,mt),Fe(te),mt(je,te))}return{startState:function(){var je=De.inMathMode?function(te,ne){return st(te,ne)}:mt;return{cmdState:[],f:je}},copyState:function(je){return{cmdState:je.cmdState.slice(),f:je.f}},token:function(je,te){return te.f(je,te)},blankLine:function(je){je.f=mt,je.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 Le={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(Ie,Ye){var Fe=Ie.indentUnit,Ve={},Xe=Ye.htmlMode?Le:De;for(var qe in Xe)Ve[qe]=Xe[qe];for(var qe in Ye)Ve[qe]=Ye[qe];var Je,mt;function st(ut,Tt){function Dt(vn){return Tt.tokenize=vn,vn(ut,Tt)}var en=ut.next();if(en=="<")return ut.eat("!")?ut.eat("[")?ut.match("CDATA[")?Dt(te("atom","]]>")):null:ut.match("--")?Dt(te("comment","-->")):ut.match("DOCTYPE",!0,!0)?(ut.eatWhile(/[\w\._\-]/),Dt(ne(1))):null:ut.eat("?")?(ut.eatWhile(/[\w\._\-]/),Tt.tokenize=te("meta","?>"),"meta"):(Je=ut.eat("/")?"closeTag":"openTag",Tt.tokenize=Ct,"tag bracket");if(en=="&"){var Cn;return ut.eat("#")?ut.eat("x")?Cn=ut.eatWhile(/[a-fA-F\d]/)&&ut.eat(";"):Cn=ut.eatWhile(/[\d]/)&&ut.eat(";"):Cn=ut.eatWhile(/[\w\.\-:]/)&&ut.eat(";"),Cn?"atom":"error"}else return ut.eatWhile(/[^&<]/),null}st.isInText=!0;function Ct(ut,Tt){var Dt=ut.next();if(Dt==">"||Dt=="/"&&ut.eat(">"))return Tt.tokenize=st,Je=Dt==">"?"endTag":"selfcloseTag","tag bracket";if(Dt=="=")return Je="equals",null;if(Dt=="<"){Tt.tokenize=st,Tt.state=Se,Tt.tagName=Tt.tagStart=null;var en=Tt.tokenize(ut,Tt);return en?en+" tag error":"tag error"}else return/[\'\"]/.test(Dt)?(Tt.tokenize=je(Dt),Tt.stringStartCol=ut.column(),Tt.tokenize(ut,Tt)):(ut.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function je(ut){var Tt=function(Dt,en){for(;!Dt.eol();)if(Dt.next()==ut){en.tokenize=Ct;break}return"string"};return Tt.isInAttribute=!0,Tt}function te(ut,Tt){return function(Dt,en){for(;!Dt.eol();){if(Dt.match(Tt)){en.tokenize=st;break}Dt.next()}return ut}}function ne(ut){return function(Tt,Dt){for(var en;(en=Tt.next())!=null;){if(en=="<")return Dt.tokenize=ne(ut+1),Dt.tokenize(Tt,Dt);if(en==">")if(ut==1){Dt.tokenize=st;break}else return Dt.tokenize=ne(ut-1),Dt.tokenize(Tt,Dt)}return"meta"}}function he(ut,Tt,Dt){this.prev=ut.context,this.tagName=Tt,this.indent=ut.indented,this.startOfLine=Dt,(Ve.doNotIndent.hasOwnProperty(Tt)||ut.context&&ut.context.noIndent)&&(this.noIndent=!0)}function se(ut){ut.context&&(ut.context=ut.context.prev)}function ge(ut,Tt){for(var Dt;;){if(!ut.context||(Dt=ut.context.tagName,!Ve.contextGrabbers.hasOwnProperty(Dt)||!Ve.contextGrabbers[Dt].hasOwnProperty(Tt)))return;se(ut)}}function Se(ut,Tt,Dt){return ut=="openTag"?(Dt.tagStart=Tt.column(),Ce):ut=="closeTag"?Oe:Se}function Ce(ut,Tt,Dt){return ut=="word"?(Dt.tagName=Tt.current(),mt="tag",ot):Ve.allowMissingTagName&&ut=="endTag"?(mt="tag bracket",ot(ut,Tt,Dt)):(mt="error",Ce)}function Oe(ut,Tt,Dt){if(ut=="word"){var en=Tt.current();return Dt.context&&Dt.context.tagName!=en&&Ve.implicitlyClosed.hasOwnProperty(Dt.context.tagName)&&se(Dt),Dt.context&&Dt.context.tagName==en||Ve.matchClosing===!1?(mt="tag",Be):(mt="tag error",Qe)}else return Ve.allowMissingTagName&&ut=="endTag"?(mt="tag bracket",Be(ut,Tt,Dt)):(mt="error",Qe)}function Be(ut,Tt,Dt){return ut!="endTag"?(mt="error",Be):(se(Dt),Se)}function Qe(ut,Tt,Dt){return mt="error",Be(ut,Tt,Dt)}function ot(ut,Tt,Dt){if(ut=="word")return mt="attribute",rt;if(ut=="endTag"||ut=="selfcloseTag"){var en=Dt.tagName,Cn=Dt.tagStart;return Dt.tagName=Dt.tagStart=null,ut=="selfcloseTag"||Ve.autoSelfClosers.hasOwnProperty(en)?ge(Dt,en):(ge(Dt,en),Dt.context=new he(Dt,en,Cn==Dt.indented)),Se}return mt="error",ot}function rt(ut,Tt,Dt){return ut=="equals"?ft:(Ve.allowMissing||(mt="error"),ot(ut,Tt,Dt))}function ft(ut,Tt,Dt){return ut=="string"?bt:ut=="word"&&Ve.allowUnquoted?(mt="string",ot):(mt="error",ot(ut,Tt,Dt))}function bt(ut,Tt,Dt){return ut=="string"?bt:ot(ut,Tt,Dt)}return{startState:function(ut){var Tt={tokenize:st,state:Se,indented:ut||0,tagName:null,tagStart:null,context:null};return ut!=null&&(Tt.baseIndent=ut),Tt},token:function(ut,Tt){if(!Tt.tagName&&ut.sol()&&(Tt.indented=ut.indentation()),ut.eatSpace())return null;Je=null;var Dt=Tt.tokenize(ut,Tt);return(Dt||Je)&&Dt!="comment"&&(mt=null,Tt.state=Tt.state(Je||Dt,ut,Tt),mt&&(Dt=mt=="error"?Dt+" error":mt)),Dt},indent:function(ut,Tt,Dt){var en=ut.context;if(ut.tokenize.isInAttribute)return ut.tagStart==ut.indented?ut.stringStartCol+1:ut.indented+Fe;if(en&&en.noIndent)return le.Pass;if(ut.tokenize!=Ct&&ut.tokenize!=st)return Dt?Dt.match(/^(\s*)/)[0].length:0;if(ut.tagName)return Ve.multilineTagIndentPastTag!==!1?ut.tagStart+ut.tagName.length+2:ut.tagStart+Fe*(Ve.multilineTagIndentFactor||1);if(Ve.alignCDATA&&/<!\[CDATA\[/.test(Tt))return 0;var Cn=Tt&&/^<(\/)?([\w_:\.-]*)/.exec(Tt);if(Cn&&Cn[1])for(;en;)if(en.tagName==Cn[2]){en=en.prev;break}else if(Ve.implicitlyClosed.hasOwnProperty(en.tagName))en=en.prev;else break;else if(Cn)for(;en;){var vn=Ve.contextGrabbers[en.tagName];if(vn&&vn.hasOwnProperty(Cn[2]))en=en.prev;else break}for(;en&&en.prev&&!en.startOfLine;)en=en.prev;return en?en.indent+Fe:ut.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ve.htmlMode?"html":"xml",helperType:Ve.htmlMode?"html":"xml",skipAttribute:function(ut){ut.state==ft&&(ut.state=ot)},xmlCurrentTag:function(ut){return ut.tagName?{name:ut.tagName,close:ut.type=="closeTag"}:null},xmlCurrentContext:function(ut){for(var Tt=[],Dt=ut.context;Dt;Dt=Dt.prev)Dt.tagName&&Tt.push(Dt.tagName);return Tt.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=Ie,de=Ye;var le=",",Le=" ",De="";function Ie(Fe){for(var Ve=[],Xe=String(Fe||De),qe=Xe.indexOf(le),Je=0,mt=!1,st;!mt;)qe===-1&&(qe=Xe.length,mt=!0),st=Xe.slice(Je,qe).trim(),(st||!mt)&&Ve.push(st),Je=qe+1,qe=Xe.indexOf(le,Je);return Ve}function Ye(Fe,Ve){var Xe=Ve||{},qe=Xe.padLeft===!1?De:Le,Je=Xe.padRight?Le:De;return Fe[Fe.length-1]===De&&(Fe=Fe.concat(De)),Fe.join(Je+le+qe).trim()}},86204:function(Ge){"use strict";var be=typeof Reflect=="object"?Reflect:null,de=be&&typeof be.apply=="function"?be.apply:function(Se,Ce,Oe){return Function.prototype.apply.call(Se,Ce,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 Le(ge){console&&console.warn&&console.warn(ge)}var De=Number.isNaN||function(Se){return Se!==Se};function Ie(){Ie.init.call(this)}Ge.exports=Ie,Ge.exports.once=ne,Ie.EventEmitter=Ie,Ie.prototype._events=void 0,Ie.prototype._eventsCount=0,Ie.prototype._maxListeners=void 0;var Ye=10;function Fe(ge){if(typeof ge!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ge)}Object.defineProperty(Ie,"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}}),Ie.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},Ie.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?Ie.defaultMaxListeners:ge._maxListeners}Ie.prototype.getMaxListeners=function(){return Ve(this)},Ie.prototype.emit=function(Se){for(var Ce=[],Oe=1;Oe<arguments.length;Oe++)Ce.push(arguments[Oe]);var Be=Se==="error",Qe=this._events;if(Qe!==void 0)Be=Be&&Qe.error===void 0;else if(!Be)return!1;if(Be){var ot;if(Ce.length>0&&(ot=Ce[0]),ot instanceof Error)throw ot;var rt=new Error("Unhandled error."+(ot?" ("+ot.message+")":""));throw rt.context=ot,rt}var ft=Qe[Se];if(ft===void 0)return!1;if(typeof ft=="function")de(ft,this,Ce);else for(var bt=ft.length,ut=Ct(ft,bt),Oe=0;Oe<bt;++Oe)de(ut[Oe],this,Ce);return!0};function Xe(ge,Se,Ce,Oe){var Be,Qe,ot;if(Fe(Ce),Qe=ge._events,Qe===void 0?(Qe=ge._events=Object.create(null),ge._eventsCount=0):(Qe.newListener!==void 0&&(ge.emit("newListener",Se,Ce.listener?Ce.listener:Ce),Qe=ge._events),ot=Qe[Se]),ot===void 0)ot=Qe[Se]=Ce,++ge._eventsCount;else if(typeof ot=="function"?ot=Qe[Se]=Oe?[Ce,ot]:[ot,Ce]:Oe?ot.unshift(Ce):ot.push(Ce),Be=Ve(ge),Be>0&&ot.length>Be&&!ot.warned){ot.warned=!0;var rt=new Error("Possible EventEmitter memory leak detected. "+ot.length+" "+String(Se)+" listeners added. Use emitter.setMaxListeners() to increase limit");rt.name="MaxListenersExceededWarning",rt.emitter=ge,rt.type=Se,rt.count=ot.length,Le(rt)}return ge}Ie.prototype.addListener=function(Se,Ce){return Xe(this,Se,Ce,!1)},Ie.prototype.on=Ie.prototype.addListener,Ie.prototype.prependListener=function(Se,Ce){return Xe(this,Se,Ce,!0)};function qe(){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 Je(ge,Se,Ce){var Oe={fired:!1,wrapFn:void 0,target:ge,type:Se,listener:Ce},Be=qe.bind(Oe);return Be.listener=Ce,Oe.wrapFn=Be,Be}Ie.prototype.once=function(Se,Ce){return Fe(Ce),this.on(Se,Je(this,Se,Ce)),this},Ie.prototype.prependOnceListener=function(Se,Ce){return Fe(Ce),this.prependListener(Se,Je(this,Se,Ce)),this},Ie.prototype.removeListener=function(Se,Ce){var Oe,Be,Qe,ot,rt;if(Fe(Ce),Be=this._events,Be===void 0)return this;if(Oe=Be[Se],Oe===void 0)return this;if(Oe===Ce||Oe.listener===Ce)--this._eventsCount===0?this._events=Object.create(null):(delete Be[Se],Be.removeListener&&this.emit("removeListener",Se,Oe.listener||Ce));else if(typeof Oe!="function"){for(Qe=-1,ot=Oe.length-1;ot>=0;ot--)if(Oe[ot]===Ce||Oe[ot].listener===Ce){rt=Oe[ot].listener,Qe=ot;break}if(Qe<0)return this;Qe===0?Oe.shift():je(Oe,Qe),Oe.length===1&&(Be[Se]=Oe[0]),Be.removeListener!==void 0&&this.emit("removeListener",Se,rt||Ce)}return this},Ie.prototype.off=Ie.prototype.removeListener,Ie.prototype.removeAllListeners=function(Se){var Ce,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 Qe=Object.keys(Oe),ot;for(Be=0;Be<Qe.length;++Be)ot=Qe[Be],ot!=="removeListener"&&this.removeAllListeners(ot);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Ce=Oe[Se],typeof Ce=="function")this.removeListener(Se,Ce);else if(Ce!==void 0)for(Be=Ce.length-1;Be>=0;Be--)this.removeListener(Se,Ce[Be]);return this};function mt(ge,Se,Ce){var Oe=ge._events;if(Oe===void 0)return[];var Be=Oe[Se];return Be===void 0?[]:typeof Be=="function"?Ce?[Be.listener||Be]:[Be]:Ce?te(Be):Ct(Be,Be.length)}Ie.prototype.listeners=function(Se){return mt(this,Se,!0)},Ie.prototype.rawListeners=function(Se){return mt(this,Se,!1)},Ie.listenerCount=function(ge,Se){return typeof ge.listenerCount=="function"?ge.listenerCount(Se):st.call(ge,Se)},Ie.prototype.listenerCount=st;function st(ge){var Se=this._events;if(Se!==void 0){var Ce=Se[ge];if(typeof Ce=="function")return 1;if(Ce!==void 0)return Ce.length}return 0}Ie.prototype.eventNames=function(){return this._eventsCount>0?le(this._events):[]};function Ct(ge,Se){for(var Ce=new Array(Se),Oe=0;Oe<Se;++Oe)Ce[Oe]=ge[Oe];return Ce}function je(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),Ce=0;Ce<Se.length;++Ce)Se[Ce]=ge[Ce].listener||ge[Ce];return Se}function ne(ge,Se){return new Promise(function(Ce,Oe){function Be(ot){ge.removeListener(Se,Qe),Oe(ot)}function Qe(){typeof ge.removeListener=="function"&&ge.removeListener("error",Be),Ce([].slice.call(arguments))}se(ge,Se,Qe,{once:!0}),Se!=="error"&&he(ge,Be,{once:!0})})}function he(ge,Se,Ce){typeof ge.on=="function"&&se(ge,"error",Se,Ce)}function se(ge,Se,Ce,Oe){if(typeof ge.on=="function")Oe.once?ge.once(Se,Ce):ge.on(Se,Ce);else if(typeof ge.addEventListener=="function")ge.addEventListener(Se,function Be(Qe){Oe.once&&ge.removeEventListener(Se,Be),Ce(Qe)});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,Le=Object.getOwnPropertyDescriptor,De=function(Xe){return typeof Array.isArray=="function"?Array.isArray(Xe):de.call(Xe)==="[object Array]"},Ie=function(Xe){if(!Xe||de.call(Xe)!=="[object Object]")return!1;var qe=be.call(Xe,"constructor"),Je=Xe.constructor&&Xe.constructor.prototype&&be.call(Xe.constructor.prototype,"isPrototypeOf");if(Xe.constructor&&!qe&&!Je)return!1;var mt;for(mt in Xe);return typeof mt=="undefined"||be.call(Xe,mt)},Ye=function(Xe,qe){le&&qe.name==="__proto__"?le(Xe,qe.name,{enumerable:!0,configurable:!0,value:qe.newValue,writable:!0}):Xe[qe.name]=qe.newValue},Fe=function(Xe,qe){if(qe==="__proto__")if(be.call(Xe,qe)){if(Le)return Le(Xe,qe).value}else return;return Xe[qe]};Ge.exports=function Ve(){var Xe,qe,Je,mt,st,Ct,je=arguments[0],te=1,ne=arguments.length,he=!1;for(typeof je=="boolean"&&(he=je,je=arguments[1]||{},te=2),(je==null||typeof je!="object"&&typeof je!="function")&&(je={});te<ne;++te)if(Xe=arguments[te],Xe!=null)for(qe in Xe)Je=Fe(je,qe),mt=Fe(Xe,qe),je!==mt&&(he&&mt&&(Ie(mt)||(st=De(mt)))?(st?(st=!1,Ct=Je&&De(Je)?Je:[]):Ct=Je&&Ie(Je)?Je:{},Ye(je,{name:qe,newValue:Ve(he,Ct,mt)})):typeof mt!="undefined"&&Ye(je,{name:qe,newValue:mt}));return je}},12378:function(Ge,be,de){"use strict";de.d(be,{$u:function(){return qe},BD:function(){return et},E9:function(){return Xe},FF:function(){return qi},FJ:function(){return Se},Hn:function(){return ge},KX:function(){return Oe},NB:function(){return It},S0:function(){return kt},UL:function(){return Je},Vk:function(){return se},Vm:function(){return sn},YI:function(){return Kn},ZA:function(){return De},Zt:function(){return mt},al:function(){return Ae},bn:function(){return Me},bx:function(){return _e},g2:function(){return hi},h1:function(){return ft},hD:function(){return yt},l4:function(){return Fe},rU:function(){return an},s_:function(){return xe},uz:function(){return Vt},z6:function(){return st}}),Ge=de.hmd(Ge),function(){var ke;function gi(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function Ii(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:gi(a)}}function ki(a){for(var y,E=[];!(y=a.next()).done;)E.push(y.value);return E}var ar=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},Nr;if(typeof Object.setPrototypeOf=="function")Nr=Object.setPrototypeOf;else{var sr;e:{var Di={a:!0},Ei={};try{Ei.__proto__=Di,sr=Ei.a;break e}catch(a){}sr=!1}Nr=sr?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var Zt=Nr;function Wt(a,y){if(a.prototype=ar(y.prototype),a.prototype.constructor=a,Zt)Zt(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 Rt=typeof de.g!="undefined"&&de.g!=null?de.g:self,rn=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},Xt=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,E){a!=Array.prototype&&a!=Object.prototype&&(a[y]=E.value)};function Sn(a,y){if(y){var E=Rt;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&&Xt(E,a,{writable:!0,value:y})}}Sn("Object.assign",function(a){return a||rn}),Sn("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 Rn=typeof globalThis=="object"&&globalThis||typeof de.g=="object"&&de.g.global===de.g&&de.g||typeof self=="object"&&self.self===self&&self||{};Rn.requestAnimationFrame===void 0&&(Rn.setImmediate===void 0?Rn.requestAnimationFrame=function(a){Rn.setTimeout(a,0)}:Rn.requestAnimationFrame=Rn.setImmediate);function Jn(){}function qt(a,y){var E=-1;return function(){var x=this,b=arguments;E!==-1&&Rn.clearTimeout(E),E=Gt(function(){E=-1,a.apply(x,b)},y)}}function Gt(a,y){return Rn.setTimeout(a,y)}function ti(a){return Rn.document.createElement(a)}function pt(a){throw Error(a)}function yn(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),pt(a)}function ii(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),pt(E+" is not in the range "+y+": "+a)}function xi(a){Rn.console&&Rn.console.log(a)}function Ut(a){return typeof a=="object"&&a!==null}function $n(a){return Array.isArray(a)||Rn.NodeList&&a instanceof Rn.NodeList||Rn.HTMLCollection&&a instanceof Rn.HTMLCollection}function pi(a){return Array.prototype.slice.call(a)}function Kt(a,y,E){Array.isArray(a)?y>=a.length?a.push(E):a.splice(y,0,E):pt("Cannot insert an object into an HTMLCollection or NodeList: "+E+" at "+y)}function Ue(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):pt("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function wi(){var a=zr.pop();return a===void 0?[]:a}function ai(a){a.length=0,zr.push(a)}function Mn(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(Ut(a)&&a.constructor)return Mn(a.constructor);return typeof a}function ji(a){var y=a;return Ut(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 Ki(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 Zi(a,y,E){Object.defineProperty(No.prototype,a,{get:y,set:E})}function Nn(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 Jt=Rn.navigator!==void 0&&0<Rn.navigator.userAgent.indexOf("Trident/7"),Ji=Rn.navigator!==void 0&&Rn.navigator.platform!==void 0&&Rn.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,zr=[];Object.freeze([]),Jn.className="Util",Jn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",Jn.adym="gojs.net",Jn.vfo="28e645fdb266",Jn.className="Util";function wn(a,y,E){br(this),this.j=a,this.xa=y,this.o=E}wn.prototype.toString=function(){return"EnumValue."+this.xa};function vi(a,y){return y==null||y===""?null:a[y]}Rt.Object.defineProperties(wn.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),wn.className="EnumValue";function Ni(){this.ew=[]}Ni.prototype.toString=function(){return this.ew.join("")},Ni.prototype.add=function(a){a!==""&&this.ew.push(a)},Ni.className="StringBuilder";function Bi(){}Bi.className="PropertyCollection";var Fi={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Rn.console&&Rn.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 Wi(){}Wi.prototype.reset=function(){},Wi.prototype.next=function(){return!1},Wi.prototype.Ad=function(){return!1},Wi.prototype.first=function(){return null},Wi.prototype.any=function(){return!1},Wi.prototype.all=function(){return!0},Wi.prototype.each=function(){return this},Wi.prototype.map=function(){return this},Wi.prototype.filter=function(){return this},Wi.prototype.de=function(){},Wi.prototype.toString=function(){return"EmptyIterator"},Rt.Object.defineProperties(Wi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Wi.prototype.first=Wi.prototype.first,Wi.prototype.hasNext=Wi.prototype.Ad,Wi.prototype.next=Wi.prototype.next,Wi.prototype.reset=Wi.prototype.reset;var cr=null;Wi.className="EmptyIterator",cr=new Wi;function mr(a){this.key=-1,this.value=a}mr.prototype.reset=function(){this.key=-1},mr.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},mr.prototype.Ad=function(){return this.next()},mr.prototype.first=function(){return this.key=0,this.value},mr.prototype.any=function(a){return this.key=-1,a(this.value)},mr.prototype.all=function(a){return this.key=-1,a(this.value)},mr.prototype.each=function(a){return this.key=-1,a(this.value),this},mr.prototype.map=function(a){return new mr(a(this.value))},mr.prototype.filter=function(a){return a(this.value)?new mr(this.value):cr},mr.prototype.de=function(){this.value=null},mr.prototype.toString=function(){return"SingletonIterator("+this.value+")"},Rt.Object.defineProperties(mr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),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="SingletonIterator";function Tr(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}Tr.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},Tr.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},Tr.prototype.Ad=function(){return this.next()},Tr.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},Tr.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},Tr.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},Tr.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},Tr.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 Gn,a.s=E,a.xb(),a.iterator},Tr.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 Gn,a.s=E,a.xb(),a.iterator},Tr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Tr.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},Rt.Object.defineProperties(Tr.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}}}),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="ListIterator";function Mr(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Mr.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Mr.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)},Mr.prototype.Ad=function(){return this.next()},Mr.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},Mr.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},Mr.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},Mr.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},Mr.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 Gn,a.s=E,a.xb(),a.iterator},Mr.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 Gn,a.s=E,a.xb(),a.iterator},Mr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Mr.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},Rt.Object.defineProperties(Mr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),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="ListIteratorBackwards";function Gn(a){br(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&pt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}ke=Gn.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()#"+pr(this)},ke.add=function(a){return a===null?this:(this._isFrozen&&yn(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&&yn(this);var y=this.s;if($n(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&&yn(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)&&ii(a,"0 <= i < length",Gn,"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)&&ii(a,"0 <= i < length",Gn,"setElt:i"),this._isFrozen&&yn(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&&yn(this);var a=this.s;return 0<a.length?a.pop():null},Gn.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},Gn.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},Gn.prototype.each=function(a){for(var y=this.s,E=y.length,x=0;x<E;x++)a(y[x]);return this},Gn.prototype.map=function(a){for(var y=new Gn,E=[],x=this.s,b=x.length,z=0;z<b;z++)E.push(a(x[z]));return y.s=E,y.xb(),y},Gn.prototype.filter=function(a){for(var y=new Gn,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=Gn.prototype,ke.Gb=function(a,y){0>a&&ii(a,">= 0",Gn,"insertAt:i"),this._isFrozen&&yn(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&&yn(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)&&ii(a,"0 <= i < length",Gn,"removeAt:i"),this._isFrozen&&yn(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&&yn(this);for(var b=a,z=y+1;z<x;)E[b++]=E[z++];return E.length=x-(y-a+1),this.xb(),this},Gn.prototype.copy=function(){var a=new Gn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},ke=Gn.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 Bn,y=this.s,E=this.count,x=0;x<E;x++)a.add(y[x]);return a},ke.sort=function(a){return this._isFrozen&&yn(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&&yn(this);var z=E-y;if(1>=z)return this;if((0>y||y>=b-1)&&ii(y,"0 <= from < length",Gn,"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&&yn(this),this.s.reverse(),this.xb(),this},Rt.Object.defineProperties(Gn.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 cr;var a=this.Sa;return a!==null?(a.reset(),a):new Tr(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return cr;var a=this.Hg;return a!==null?(a.reset(),a):new Mr(this)}}}),Gn.prototype.reverse=Gn.prototype.reverse,Gn.prototype.sortRange=Gn.prototype.zi,Gn.prototype.sort=Gn.prototype.sort,Gn.prototype.toSet=Gn.prototype.Iv,Gn.prototype.toArray=Gn.prototype.Fa,Gn.prototype.removeRange=Gn.prototype.removeRange,Gn.prototype.removeAt=Gn.prototype.mb,Gn.prototype.delete=Gn.prototype.delete,Gn.prototype.remove=Gn.prototype.remove,Gn.prototype.insertAt=Gn.prototype.Gb,Gn.prototype.pop=Gn.prototype.pop,Gn.prototype.last=Gn.prototype.jc,Gn.prototype.first=Gn.prototype.first,Gn.prototype.set=Gn.prototype.set,Gn.prototype.setElt=Gn.prototype.cd,Gn.prototype.get=Gn.prototype.get,Gn.prototype.elt=Gn.prototype.M,Gn.prototype.indexOf=Gn.prototype.indexOf,Gn.prototype.has=Gn.prototype.has,Gn.prototype.contains=Gn.prototype.contains,Gn.prototype.clear=Gn.prototype.clear,Gn.prototype.addAll=Gn.prototype.addAll,Gn.prototype.push=Gn.prototype.push,Gn.prototype.add=Gn.prototype.add,Gn.prototype.thaw=Gn.prototype.ka,Gn.prototype.freeze=Gn.prototype.freeze,Gn.className="List";function ur(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}ur.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},ur.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)},ur.prototype.Ad=function(){return this.next()},ur.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},ur.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},ur.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},ur.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},ur.prototype.map=function(a){var y=this.eg;y.Sa=null;var E=new Gn;for(y=y.ea;y!==null;)E.add(a(y.value)),y=y.va;return E.iterator},ur.prototype.filter=function(a){var y=this.eg;y.Sa=null;var E=new Gn;for(y=y.ea;y!==null;){var x=y.value;a(x)&&E.add(x),y=y.va}return E.iterator},ur.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},ur.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},Rt.Object.defineProperties(ur.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),ur.prototype.first=ur.prototype.first,ur.prototype.hasNext=ur.prototype.Ad,ur.prototype.next=ur.prototype.next,ur.prototype.reset=ur.prototype.reset,ur.className="SetIterator";function Bn(a){br(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&pt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}ke=Bn.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()#"+pr(this)},ke.add=function(a){if(a===null)return this;this._isFrozen&&yn(this,a);var y=a;return Ut(a)&&(y=Er(a)),this.Tb[y]===void 0&&(this.Sb++,a=new Vo(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&&yn(this),$n(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 Ut(a)&&(y=pr(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},Bn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Bn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Bn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},Bn.prototype.map=function(a){for(var y=new Bn,E=this.ea;E!==null;)y.add(a(E.value)),E=E.va;return y},Bn.prototype.filter=function(a){for(var y=new Bn,E=this.ea;E!==null;){var x=E.value;a(x)&&y.add(x),E=E.va}return y},ke=Bn.prototype,ke.remove=function(a){if(a===null)return!1;this._isFrozen&&yn(this,a);var y=a;if(Ut(a)&&(y=pr(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&&yn(this),$n(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&&yn(this);var y=new Bn;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&&yn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Bn.prototype.copy=function(){var a=new Bn,y=this.Tb,E;for(E in y)a.add(y[E].value);return a},Bn.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},Bn.prototype.Hv=function(){var a=new Gn,y=this.Tb,E;for(E in y)a.add(y[E].value);return a};function br(a){a.__gohashid=$r++}function Er(a){var y=a.__gohashid;return y===void 0&&(y=$r++,a.__gohashid=y),y}function pr(a){return a.__gohashid}Rt.Object.defineProperties(Bn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return cr;var a=this.Sa;return a!==null?(a.reset(),a):new ur(this)}}}),Bn.prototype.toList=Bn.prototype.Hv,Bn.prototype.toArray=Bn.prototype.Fa,Bn.prototype.clear=Bn.prototype.clear,Bn.prototype.retainAll=Bn.prototype.pA,Bn.prototype.removeAll=Bn.prototype.hp,Bn.prototype.delete=Bn.prototype.delete,Bn.prototype.remove=Bn.prototype.remove,Bn.prototype.first=Bn.prototype.first,Bn.prototype.containsAny=Bn.prototype.Ty,Bn.prototype.containsAll=Bn.prototype.Sy,Bn.prototype.has=Bn.prototype.has,Bn.prototype.contains=Bn.prototype.contains,Bn.prototype.addAll=Bn.prototype.addAll,Bn.prototype.add=Bn.prototype.add,Bn.prototype.thaw=Bn.prototype.ka,Bn.prototype.freeze=Bn.prototype.freeze;var $r=1;Bn.className="Set",Bn.uniqueHash=br,Bn.hashIdUnique=Er,Bn.hashId=pr;function Xr(a){this.ma=a,this.qa=a.Ja,this.sa=null}Xr.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Xr.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)},Xr.prototype.Ad=function(){return this.next()},Xr.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},Xr.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},Xr.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},Xr.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},Xr.prototype.map=function(a){var y=this.ma;this.sa=null;var E=new Gn;for(y=y.ea;y!==null;)E.add(a(y.key)),y=y.va;return E.iterator},Xr.prototype.filter=function(a){var y=this.ma;this.sa=null;var E=new Gn;for(y=y.ea;y!==null;){var x=y.key;a(x)&&E.add(x),y=y.va}return E.iterator},Xr.prototype.de=function(){this.value=this.key=null,this.qa=-1},Xr.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},Rt.Object.defineProperties(Xr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Xr.prototype.first=Xr.prototype.first,Xr.prototype.hasNext=Xr.prototype.Ad,Xr.prototype.next=Xr.prototype.next,Xr.prototype.reset=Xr.prototype.reset,Xr.className="MapKeySetIterator";function Ur(a){Bn.call(this),br(this),this._isFrozen=!0,this.ma=a}Wt(Ur,Bn),ke=Ur.prototype,ke.freeze=function(){return this},ke.ka=function(){return this},ke.toString=function(){return"MapKeySet("+this.ma.toString()+")"},ke.add=function(){pt("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(){pt("This Set is read-only: "+this.toString())},ke.delete=function(a){return this.remove(a)},ke.clear=function(){pt("This Set is read-only: "+this.toString())},ke.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Ur.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Ur.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Ur.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Ur.prototype.map=function(a){for(var y=new Bn,E=this.ma.ea;E!==null;)y.add(a(E.key)),E=E.va;return y},Ur.prototype.filter=function(a){for(var y=new Bn,E=this.ma.ea;E!==null;){var x=E.key;a(x)&&y.add(x),E=E.va}return y},Ur.prototype.copy=function(){return new Ur(this.ma)},Ur.prototype.Iv=function(){var a=new Bn,y=this.ma.Tb,E;for(E in y)a.add(y[E].key);return a},Ur.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},Ur.prototype.Hv=function(){var a=new Gn,y=this.ma.Tb,E;for(E in y)a.add(y[E].key);return a},Rt.Object.defineProperties(Ur.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?cr:new Xr(this.ma)}}}),Ur.prototype.toList=Ur.prototype.Hv,Ur.prototype.toArray=Ur.prototype.Fa,Ur.prototype.toSet=Ur.prototype.Iv,Ur.prototype.first=Ur.prototype.first,Ur.prototype.clear=Ur.prototype.clear,Ur.prototype.delete=Ur.prototype.delete,Ur.prototype.remove=Ur.prototype.remove,Ur.prototype.has=Ur.prototype.has,Ur.prototype.contains=Ur.prototype.contains,Ur.prototype.add=Ur.prototype.add,Ur.prototype.thaw=Ur.prototype.ka,Ur.prototype.freeze=Ur.prototype.freeze,Ur.className="MapKeySet";function Yr(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}Yr.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},Yr.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},Yr.prototype.Ad=function(){return this.next()},Yr.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},Yr.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},Yr.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},Yr.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},Yr.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var E=new Gn;for(y=y.ea;y!==null;)E.add(a(y.value)),y=y.va;return E.iterator},Yr.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var E=new Gn;for(y=y.ea;y!==null;){var x=y.value;a(x)&&E.add(x),y=y.va}return E.iterator},Yr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Yr.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},Rt.Object.defineProperties(Yr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Yr.prototype.first=Yr.prototype.first,Yr.prototype.hasNext=Yr.prototype.Ad,Yr.prototype.next=Yr.prototype.next,Yr.prototype.reset=Yr.prototype.reset,Yr.className="MapValueSetIterator";function Vo(a,y){this.key=a,this.value=y,this.ll=this.va=null}Vo.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Vo.className="KeyValuePair";function Kr(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Kr.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Kr.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)},Kr.prototype.Ad=function(){return this.next()},Kr.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},Kr.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},Kr.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},Kr.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},Kr.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var E=new Gn;for(y=y.ea;y!==null;)E.add(a(y)),y=y.va;return E.iterator},Kr.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var E=new Gn;for(y=y.ea;y!==null;)a(y)&&E.add(y),y=y.va;return E.iterator},Kr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Kr.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},Rt.Object.defineProperties(Kr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Kr.prototype.first=Kr.prototype.first,Kr.prototype.hasNext=Kr.prototype.Ad,Kr.prototype.next=Kr.prototype.next,Kr.prototype.reset=Kr.prototype.reset,Kr.className="MapIterator";function Ti(a){br(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"&&pt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}ke=Ti.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()#"+pr(this)},ke.add=function(a,y){this._isFrozen&&yn(this,a);var E=a;Ut(a)&&(E=Er(a));var x=this.Tb[E];return x===void 0?(this.Sb++,a=new Vo(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($n(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 Ti)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},Ti.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},Ti.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},Ti.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},Ti.prototype.map=function(a){for(var y=new Ti,E=this.ea;E!==null;)y.add(E.key,a(E)),E=E.va;return y},Ti.prototype.filter=function(a){for(var y=new Ti,E=this.ea;E!==null;)a(E)&&y.add(E.key,E.value),E=E.va;return y},ke=Ti.prototype,ke.contains=function(a){var y=a;return Ut(a)&&(y=pr(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 Ut(a)&&(y=pr(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&&yn(this,a);var y=a;if(Ut(a)&&(y=pr(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&&yn(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()},Ti.prototype.copy=function(){var a=new Ti,y=this.Tb,E;for(E in y){var x=y[E];a.add(x.key,x.value)}return a},Ti.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 Vo(b.key,b.value),E++}return y},Ti.prototype.Lf=function(){return new Ur(this)},Rt.Object.defineProperties(Ti.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return cr;var a=this.Sa;return a!==null?(a.reset(),a):new Kr(this)}},iteratorKeys:{get:function(){return 0>=this.count?cr:new Xr(this)}},iteratorValues:{get:function(){if(0>=this.count)return cr;var a=this.jf;return a!==null?(a.reset(),a):new Yr(this)}}}),Ti.prototype.toKeySet=Ti.prototype.Lf,Ti.prototype.toArray=Ti.prototype.Fa,Ti.prototype.clear=Ti.prototype.clear,Ti.prototype.delete=Ti.prototype.delete,Ti.prototype.remove=Ti.prototype.remove,Ti.prototype.get=Ti.prototype.get,Ti.prototype.getValue=Ti.prototype.I,Ti.prototype.has=Ti.prototype.has,Ti.prototype.contains=Ti.prototype.contains,Ti.prototype.first=Ti.prototype.first,Ti.prototype.addAll=Ti.prototype.addAll,Ti.prototype.set=Ti.prototype.set,Ti.prototype.add=Ti.prototype.add,Ti.prototype.thaw=Ti.prototype.ka,Ti.prototype.freeze=Ti.prototype.freeze,Ti.className="Map";function lt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):pt("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var xo,Ar,Or,no,po;lt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},lt.prototype.h=function(a,y){return this.x=a,this.y=y,this},lt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},lt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},lt.prototype.copy=function(){var a=new lt;return a.x=this.x,a.y=this.y,a},ke=lt.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)&&pt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Vi(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 lt(E,b)}return new lt}function er(a){return a.x.toString()+" "+a.y.toString()}ke.toString=function(){return"Point("+this.x+","+this.y+")"},ke.D=function(a){return a instanceof lt?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 jt.B(this.x,a.x)&&jt.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},lt.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=lt.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 Ir(a.x-this.x,a.y-this.y)},ke.direction=function(a,y){return Ir(a-this.x,y-this.y)};function Ir(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 jt.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},ke.fA=function(a,y,E,x){return jt.qh(a,y,E,x,this.x,this.y,this),this},ke.gA=function(a,y){return jt.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},ke.uA=function(a,y,E,x){return jt.No(this.x,this.y,a,y,E,x,this),this},ke.vA=function(a,y){return jt.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 wr(a,y){return y.Cd(a),a}function kr(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 Ho(a,y,E,x){return a=E-a,y=x-y,a*a+y*y}function hr(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)},lt.alloc=function(){var a=rr.pop();return a===void 0?new lt:a},lt.allocAt=function(a,y){var E=rr.pop();return E===void 0?new lt(a,y):(E.x=a,E.y=y,E)},lt.free=function(a){rr.push(a)},lt.prototype.isReal=lt.prototype.w,lt.prototype.setSpot=lt.prototype.yi,lt.prototype.setRectSpot=lt.prototype.xi,lt.prototype.snapToGridPoint=lt.prototype.vA,lt.prototype.snapToGrid=lt.prototype.uA,lt.prototype.projectOntoLineSegmentPoint=lt.prototype.gA,lt.prototype.projectOntoLineSegment=lt.prototype.fA,lt.intersectingLineSegments=function(a,y,E,x,b,z,ee,re){return jt.Rl(a,y,E,x,b,z,ee,re)},lt.prototype.compareWithLineSegmentPoint=lt.prototype.Ry,lt.compareWithLineSegment=function(a,y,E,x,b,z){return jt.Fl(a,y,E,x,b,z)},lt.prototype.direction=lt.prototype.direction,lt.prototype.directionPoint=lt.prototype.ab,lt.prototype.normalize=lt.prototype.normalize,lt.prototype.distanceSquared=lt.prototype.zd,lt.prototype.distanceSquaredPoint=lt.prototype.Bf,lt.prototype.scale=lt.prototype.scale,lt.prototype.rotate=lt.prototype.rotate,lt.prototype.offset=lt.prototype.offset,lt.prototype.subtract=lt.prototype.re,lt.prototype.add=lt.prototype.add,lt.prototype.equalsApprox=lt.prototype.Xa,lt.prototype.equalTo=lt.prototype.hi,lt.prototype.equals=lt.prototype.D,lt.prototype.set=lt.prototype.set,lt.prototype.setTo=lt.prototype.sg;var rr=[];lt.className="Point",lt.parse=Vi,lt.stringify=er,lt.distanceLineSegmentSquared=kr,lt.distanceSquared=Ho,lt.direction=hr,lt.Origin=xo=new lt(0,0).ja(),lt.InfiniteTopLeft=Ar=new lt(-1/0,-1/0).ja(),lt.InfiniteBottomRight=Or=new lt(1/0,1/0).ja(),lt.SixPoint=no=new lt(6,6).ja(),lt.NoPoint=po=new lt(NaN,NaN).ja(),lt.parse=Vi,lt.stringify=er,lt.distanceLineSegmentSquared=kr,lt.distanceSquared=Ho,lt.direction=hr;function ri(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):pt("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var Qi,Qr,zo,Oo,Co,Go,Lo;ri.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},ri.prototype.h=function(a,y){return this.width=a,this.height=y,this},ri.prototype.sg=function(a,y){return this.width=a,this.height=y,this},ri.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},ri.prototype.copy=function(){var a=new ri;return a.width=this.width,a.height=this.height,a},ke=ri.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)&&pt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Sa(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 ri(E,b)}return new ri}function sa(a){return a.width.toString()+" "+a.height.toString()}ke.toString=function(){return"Size("+this.width+","+this.height+")"},ke.D=function(a){return a instanceof ri?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 jt.B(this.width,a.width)&&jt.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)},ri.alloc=function(){var a=es.pop();return a===void 0?new ri:a},ri.free=function(a){es.push(a)},ri.prototype.isReal=ri.prototype.w,ri.prototype.inflate=ri.prototype.Bc,ri.prototype.equalsApprox=ri.prototype.Xa,ri.prototype.equalTo=ri.prototype.hi,ri.prototype.equals=ri.prototype.D,ri.prototype.set=ri.prototype.set,ri.prototype.setTo=ri.prototype.sg;var es=[];ri.className="Size",ri.parse=Sa,ri.stringify=sa,ri.ZeroSize=Qi=new ri(0,0).ja(),ri.OneSize=Qr=new ri(1,1).ja(),ri.SixSize=zo=new ri(6,6).ja(),ri.EightSize=Oo=new ri(8,8).ja(),ri.TenSize=Co=new ri(10,10).ja(),ri.InfiniteSize=Go=new ri(1/0,1/0).ja(),ri.NoSize=Lo=new ri(NaN,NaN).ja(),ri.parse=Sa,ri.stringify=sa;function gn(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 lt?(E=a.x,a=a.y,y instanceof lt?(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 ri?(this.x=E,this.y=a,this.width=y.width,this.height=y.height):pt("Incorrect second argument supplied to Rect constructor "+y)):pt("Invalid arguments to Rect constructor: "+a+", "+y+", "+E+", "+x),this._isFrozen=!1}ke=gn.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 oa(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},gn.prototype.copy=function(){var a=new gn;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},ke=gn.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)&&pt("cannot thaw constant: "+this),this._isFrozen=!1,this};function kl(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 gn(E,b,z,ee)}return new gn}function Ha(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 gn?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 jt.B(this.x,a.x)&&jt.B(this.y,a.y)&&jt.B(this.width,a.width)&&jt.B(this.height,a.height)};function yl(a,y){return jt.$(a.x,y.x)&&jt.$(a.y,y.y)&&jt.$(a.width,y.width)&&jt.$(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 Io(this,y,a,y,a)},ke.Co=function(a){return Io(this,a.top,a.right,a.bottom,a.left)},ke.Fv=function(a){return Io(this,-a.top,-a.right,-a.bottom,-a.left)},ke.Hz=function(a,y,E,x){return Io(this,a,y,E,x)};function Io(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 lu(this,a.x,a.y,a.width,a.height)},ke.Uu=function(a,y,E,x){return lu(this,a,y,E,x)};function lu(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 Ln(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 Uo(this,a.x,a.y,0,0)},ke.ed=function(a){return Uo(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),Uo(this,a,y,E,x)};function Uo(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 da(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 sl(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},gn.alloc=function(){var a=ps.pop();return a===void 0?new gn:a},gn.allocAt=function(a,y,E,x){var b=ps.pop();return b===void 0?new gn(a,y,E,x):b.h(a,y,E,x)},gn.free=function(a){ps.push(a)},Rt.Object.defineProperties(gn.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 lt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new ri(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new lt(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}}}),gn.prototype.isEmpty=gn.prototype.Mz,gn.prototype.isReal=gn.prototype.w,gn.intersectsLineSegment=function(a,y,E,x,b,z,ee,re){return jt.Fx(a,y,E,x,b,z,ee,re)},gn.prototype.setSpot=gn.prototype.yi,gn.prototype.union=gn.prototype.Kv,gn.prototype.unionRect=gn.prototype.ed,gn.prototype.unionPoint=gn.prototype.Ye,gn.prototype.intersects=gn.prototype.Vu,gn.prototype.intersectsRect=gn.prototype.Yc,gn.prototype.intersect=gn.prototype.Uu,gn.prototype.intersectRect=gn.prototype.Ex,gn.prototype.grow=gn.prototype.Hz,gn.prototype.subtractMargin=gn.prototype.Fv,gn.prototype.addMargin=gn.prototype.Co,gn.prototype.inflate=gn.prototype.Bc,gn.prototype.offset=gn.prototype.offset,gn.prototype.contains=gn.prototype.contains,gn.prototype.containsRect=gn.prototype.Re,gn.prototype.containsPoint=gn.prototype.ca,gn.prototype.equalsApprox=gn.prototype.Xa,gn.prototype.equalTo=gn.prototype.hi,gn.prototype.equals=gn.prototype.D,gn.prototype.setSize=gn.prototype.tA,gn.prototype.setPoint=gn.prototype.dd,gn.prototype.set=gn.prototype.set,gn.prototype.setTo=gn.prototype.sg;var Ga=null,Xs=null,ps=[];gn.className="Rect",gn.parse=kl,gn.stringify=Ha,gn.contains=da,gn.intersects=sl,gn.ZeroRect=Ga=new gn(0,0,0,0).ja(),gn.NoRect=Xs=new gn(NaN,NaN,NaN,NaN).ja(),gn.parse=kl,gn.stringify=Ha,gn.contains=da,gn.intersects=sl;function dr(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):pt("Invalid arguments to Margin constructor: "+a+", "+y+", "+E+", "+x),this._isFrozen=!1}dr.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},dr.prototype.sg=function(a,y,E,x){return this.top=a,this.right=y,this.bottom=E,this.left=x,this},dr.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},dr.prototype.copy=function(){var a=new dr;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},ke=dr.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)&&pt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Pa(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 dr;for(var b=NaN;a[y]==="";)y++;if((x=a[y++])&&(b=parseFloat(x)),isNaN(b))return new dr(E);for(var z=NaN;a[y]==="";)y++;if((x=a[y++])&&(z=parseFloat(x)),isNaN(z))return new dr(E,b);for(var ee=NaN;a[y]==="";)y++;return(x=a[y++])&&(ee=parseFloat(x)),isNaN(ee)?new dr(E,b):new dr(E,b,z,ee)}return new dr}function Dl(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 dr?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 jt.B(this.top,a.top)&&jt.B(this.right,a.right)&&jt.B(this.bottom,a.bottom)&&jt.B(this.left,a.left)},ke.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},dr.alloc=function(){var a=lo.pop();return a===void 0?new dr:a},dr.free=function(a){lo.push(a)},dr.prototype.isReal=dr.prototype.w,dr.prototype.equalsApprox=dr.prototype.Xa,dr.prototype.equalTo=dr.prototype.hi,dr.prototype.equals=dr.prototype.D,dr.prototype.set=dr.prototype.set,dr.prototype.setTo=dr.prototype.sg;var is=null,Jr=null,lo=[];dr.className="Margin",dr.parse=Pa,dr.stringify=Dl,dr.ZeroMargin=is=new dr(0,0,0,0).ja(),dr.TwoMargin=Jr=new dr(2,2,2,2).ja(),dr.parse=Pa,dr.stringify=Dl;function Yt(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 Ci,Yi,xr,qr,Zr,lr,yo,qo,ko,Zo,aa,ms,Ko,Aa,Sl,ll,vs,ul,Ol,cs,Ts,Ds,Hu,xc,bc,Ca,ad,wc,oc,Gu,rs,ds,_a,Ya,Yo,bo;Yt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Yt.prototype.sg=function(a,y,E,x){return this.x=a,this.y=y,this.offsetX=E,this.offsetY=x,this},Yt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Yt.prototype.copy=function(){var a=new Yt;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},ke=Yt.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)&&pt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Bo(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function hs(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Ci;if(a==="TopLeft")return Yi;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return xr;if(a==="TopRight")return qr;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Zr;if(a==="Center")return lr;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return yo;if(a==="BottomLeft")return qo;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return ko;if(a==="BottomRight")return Zo;if(a==="TopSide")return aa;if(a==="LeftSide")return ms;if(a==="RightSide")return Ko;if(a==="BottomSide")return Aa;if(a==="TopBottomSides")return Sl;if(a==="LeftRightSides")return ll;if(a==="TopLeftSides")return vs;if(a==="TopRightSides")return ul;if(a==="BottomLeftSides")return Ol;if(a==="BottomRightSides")return cs;if(a==="NotTopSide")return Ts;if(a==="NotLeftSide")return Ds;if(a==="NotRightSide")return Hu;if(a==="NotBottomSide")return xc;if(a==="AllSides")return bc;if(a==="Default")return Ca;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 Yt(E,b,z,ee)}return new Yt}function La(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(Ci)?"None":this.D(Yi)?"TopLeft":this.D(xr)?"Top":this.D(qr)?"TopRight":this.D(Zr)?"Left":this.D(lr)?"Center":this.D(yo)?"Right":this.D(qo)?"BottomLeft":this.D(ko)?"Bottom":this.D(Zo)?"BottomRight":this.D(aa)?"TopSide":this.D(ms)?"LeftSide":this.D(Ko)?"RightSide":this.D(Aa)?"BottomSide":this.D(Sl)?"TopBottomSides":this.D(ll)?"LeftRightSides":this.D(vs)?"TopLeftSides":this.D(ul)?"TopRightSides":this.D(Ol)?"BottomLeftSides":this.D(cs)?"BottomRightSides":this.D(Ts)?"NotTopSide":this.D(Ds)?"NotLeftSide":this.D(Hu)?"NotRightSide":this.D(xc)?"NotBottomSide":this.D(bc)?"AllSides":this.D(Ca)?"Default":"None"},ke.D=function(a){return a instanceof Yt?(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 Yt(.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=ms;else if(a.D(wc))a=Ko;else if(a.D(oc))a=aa;else if(a.D(Gu))a=Aa;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},Yt.alloc=function(){var a=Ka.pop();return a===void 0?new Yt:a},Yt.free=function(a){Ka.push(a)},Yt.prototype.isDefault=Yt.prototype.Xb,Yt.prototype.isNone=Yt.prototype.ys,Yt.prototype.isSide=Yt.prototype.$c,Yt.prototype.isNoSpot=Yt.prototype.Mc,Yt.prototype.isSpot=Yt.prototype.sb,Yt.prototype.includesSide=Yt.prototype.Hf,Yt.prototype.opposite=Yt.prototype.gv,Yt.prototype.equals=Yt.prototype.D,Yt.prototype.set=Yt.prototype.set,Yt.prototype.setTo=Yt.prototype.sg;var Ka=[];Yt.className="Spot",Yt.parse=hs,Yt.stringify=La,Yt.None=Ci=Bo(new Yt(0,0,0,0),0).ja(),Yt.Default=Ca=Bo(new Yt(0,0,-1,0),-1).ja(),Yt.TopLeft=Yi=new Yt(0,0,0,0).ja(),Yt.TopCenter=xr=new Yt(.5,0,0,0).ja(),Yt.TopRight=qr=new Yt(1,0,0,0).ja(),Yt.LeftCenter=Zr=new Yt(0,.5,0,0).ja(),Yt.Center=lr=new Yt(.5,.5,0,0).ja(),Yt.RightCenter=yo=new Yt(1,.5,0,0).ja(),Yt.BottomLeft=qo=new Yt(0,1,0,0).ja(),Yt.BottomCenter=ko=new Yt(.5,1,0,0).ja(),Yt.BottomRight=Zo=new Yt(1,1,0,0).ja(),Yt.MiddleTop=rs=xr,Yt.MiddleLeft=ds=Zr,Yt.MiddleRight=_a=yo,Yt.MiddleBottom=Ya=ko,Yt.Top=oc=xr,Yt.Left=ad=Zr,Yt.Right=wc=yo,Yt.Bottom=Gu=ko,Yt.TopSide=aa=Bo(new Yt(0,0,1,1),1).ja(),Yt.LeftSide=ms=Bo(new Yt(0,0,1,2),1).ja(),Yt.RightSide=Ko=Bo(new Yt(0,0,1,4),1).ja(),Yt.BottomSide=Aa=Bo(new Yt(0,0,1,8),1).ja(),Yt.TopBottomSides=Sl=Bo(new Yt(0,0,1,9),1).ja(),Yt.LeftRightSides=ll=Bo(new Yt(0,0,1,6),1).ja(),Yt.TopLeftSides=vs=Bo(new Yt(0,0,1,3),1).ja(),Yt.TopRightSides=ul=Bo(new Yt(0,0,1,5),1).ja(),Yt.BottomLeftSides=Ol=Bo(new Yt(0,0,1,10),1).ja(),Yt.BottomRightSides=cs=Bo(new Yt(0,0,1,12),1).ja(),Yt.NotTopSide=Ts=Bo(new Yt(0,0,1,14),1).ja(),Yt.NotLeftSide=Ds=Bo(new Yt(0,0,1,13),1).ja(),Yt.NotRightSide=Hu=Bo(new Yt(0,0,1,11),1).ja(),Yt.NotBottomSide=xc=Bo(new Yt(0,0,1,7),1).ja(),Yt.AllSides=bc=Bo(new Yt(0,0,1,15),1).ja(),Yo=new Yt(.156,.156).ja(),bo=new Yt(.844,.844).ja(),Yt.parse=hs,Yt.stringify=La;function tr(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}tr.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},tr.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},tr.prototype.copy=function(){var a=new tr;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},tr.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},tr.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},tr.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},tr.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},tr.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},tr.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},tr.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},tr.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=tr.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,Re=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,Re),Ne=Math.max(Ne,Re),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},tr.alloc=function(){var a=cl.pop();return a===void 0?new tr:a},tr.free=function(a){cl.push(a)},tr.prototype.transformRect=tr.prototype.pp,tr.prototype.transformPoint=tr.prototype.Ga,tr.prototype.scale=tr.prototype.scale,tr.prototype.translate=tr.prototype.translate,tr.prototype.rotate=tr.prototype.rotate,tr.prototype.invert=tr.prototype.Vj,tr.prototype.multiplyInverted=tr.prototype.bv,tr.prototype.multiply=tr.prototype.multiply,tr.prototype.reset=tr.prototype.reset,tr.prototype.isIdentity=tr.prototype.ws,tr.prototype.equals=tr.prototype.D,tr.prototype.setTransform=tr.prototype.setTransform,tr.prototype.set=tr.prototype.set;var cl=[];tr.className="Transform",tr.xF="54a702f3e53909c447824c6706603faf4c";var jt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=jt.Uv;if(y===null){y=[];for(var E=0;2e3>=E;E++)y[E]=Math.sqrt(E);jt.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(jt.Yb(a,y,ee,re,ye,E,x)&&jt.Yb(a,y,ee,re,ye,b,z))return jt.Yb(a,y,ee,re,ye,ce,fe);var Ne=(a+E)/2,Pe=(y+x)/2,Re=(E+b)/2,We=(x+z)/2;b=(b+ee)/2,z=(z+re)/2,x=(Ne+Re)/2,E=(Pe+We)/2,Re=(Re+b)/2,We=(We+z)/2;var ht=(x+Re)/2,it=(E+We)/2;return jt.cs(a,y,Ne,Pe,x,E,ht,it,oe,ce,fe,ye)||jt.cs(ht,it,Re,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 hr(((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(jt.Yb(a,y,ee,re,oe,E,x)&&jt.Yb(a,y,ee,re,oe,b,z))Uo(ce,a,y,0,0),Uo(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 Re=(x+Ne)/2,We=(E+Pe)/2;jt.Dl(a,y,fe,ye,x,E,Re,We,oe,ce),jt.Dl(Re,We,Ne,Pe,b,z,ee,re,oe,ce)}return ce},Qe:function(a,y,E,x,b,z,ee,re,oe,ce){if(jt.Yb(a,y,ee,re,oe,E,x)&&jt.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 Re=(x+Ne)/2,We=(E+Pe)/2;jt.Qe(a,y,fe,ye,x,E,Re,We,oe,ce),jt.Qe(Re,We,Ne,Pe,b,z,ee,re,oe,ce)}return ce},jv:function(a,y,E,x,b,z,ee,re,oe,ce){if(jt.Yb(a,y,b,z,ce,E,x))return jt.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 jt.jv(a,y,fe,ye,Ne,Pe,ee,re,oe,ce)||jt.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(jt.Yb(a,y,b,z,ee,E,x))Uo(re,a,y,0,0),Uo(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;jt.iv(a,y,oe,ce,fe,ye,ee,re),jt.iv(fe,ye,E,x,b,z,ee,re)}return re},ep:function(a,y,E,x,b,z,ee,re){if(jt.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;jt.ep(a,y,oe,ce,fe,ye,ee,re),jt.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(jt.Yb(a,y,ee,re,Ne,E,x)&&jt.Yb(a,y,ee,re,Ne,b,z))return!jt.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 Re=(a+E)/2,We=(y+x)/2,ht=(E+b)/2,it=(x+z)/2;b=(b+ee)/2,z=(z+re)/2,x=(Re+ht)/2,E=(We+it)/2,ht=(ht+b)/2,it=(it+z)/2;var vt=(x+ht)/2,St=(E+it)/2,wt=1/0,Ot=!1,$t=0,li=0;return jt.Eo(a,y,Re,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<wt&&(wt=a,Ot=!0,$t=Pe.x,li=Pe.y)),jt.Eo(vt,St,ht,it,b,z,ee,re,oe,ce,fe,ye,Ne,Pe)&&(Pe.x-oe)*(Pe.x-oe)+(Pe.y-ce)*(Pe.y-ce)<wt&&(Ot=!0,$t=Pe.x,li=Pe.y),Ot&&(Pe.x=$t,Pe.y=li),Ot},Fo:function(a,y,E,x,b,z,ee,re,oe,ce,fe,ye,Ne){var Pe=0;if(jt.Yb(a,y,ee,re,Ne,E,x)&&jt.Yb(a,y,ee,re,Ne,b,z)){if(Ne=(a-ee)*(ce-ye)-(y-re)*(oe-fe),Ne===0)return Pe;var Re=((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(Re>=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,Re<oe||Re>a)return Pe;0<Ne?Pe++:0>Ne&&Pe--}else{Re=(a+E)/2,We=(y+x)/2;var ht=(E+b)/2,it=(x+z)/2;b=(b+ee)/2,z=(z+re)/2,x=(Re+ht)/2,E=(We+it)/2,ht=(ht+b)/2,it=(it+z)/2;var vt=(x+ht)/2,St=(E+it)/2;Pe+=jt.Fo(a,y,Re,We,x,E,vt,St,oe,ce,fe,ye,Ne),Pe+=jt.Fo(vt,St,ht,it,b,z,ee,re,oe,ce,fe,ye,Ne)}return Pe},qh:function(a,y,E,x,b,z,ee){return jt.$(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)):jt.$(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 jt.B(a,E)&&jt.B(y,x)?(oe.h(a,y),!1):jt.$(b,ee)?jt.$(a,E)?(jt.qh(a,y,E,x,b,z,oe),!1):jt.qh(a,y,E,x,b,(x-y)/(E-a)*(b-a)+y,oe):(re=(re-z)/(ee-b),jt.$(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),jt.$(re,ee)?(jt.qh(a,y,E,x,b,z,oe),!1):(b=(ee*a-re*b+z-y)/(ee-re),jt.$(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)):jt.qh(a,y,E,x,b,ee*(b-a)+y,oe))))},MA:function(a,y,E,x,b){return jt.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(ht,it){var vt=(ht-a)*(ht-a)+(it-y)*(it-y);vt<ye&&(ye=vt,oe.h(ht,it))}var ye=1/0;fe(oe.x,oe.y);var Ne=0,Pe=0,Re=0,We=0;if(b<ee?(Ne=b,Pe=ee):(Ne=ee,Pe=b),z<re?(Re=b,We=ee):(Re=ee,We=b),Ne=(Pe-Ne)/2+ce,ce=(We-Re)/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(jt.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 jt.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)),jt.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)),jt.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 jt.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):!!(da(a,y,E,x,b,z)||da(a,y,E,x,ee,re)||jt.Rl(a,y,oe,y,b,z,ee,re)||jt.Rl(oe,y,oe,ce,b,z,ee,re)||jt.Rl(oe,ce,a,ce,b,z,ee,re)||jt.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>=jt.Fl(a,y,E,x,b,z)*jt.Fl(a,y,E,x,ee,re)&&0>=jt.Fl(b,z,ee,re,a,y)*jt.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(jt.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),jt.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 Bi,um:new Bi,Mf:new Bi,Nf:0,vm:100};jt.za=jt.AA;function Qn(a){br(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 Gn:(Qn.V===null&&(Qn.V=new Gn().freeze()),this.ee=Qn.V),this.aq=this.ee.Ja,this.Ip=new gn().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Yi,this.gg=Zo,this.Rk=this.Sk=NaN,this.Uf=Wn}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)&&pt("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?uu(this,a):a.type===Qn.j&&this.type===Qn.o?uu(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 jt.B(this.startX,a.startX)&&jt.B(this.startY,a.startY)&&jt.B(this.endX,a.endX)&&jt.B(this.endY,a.endY)};function uu(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&&jt.B(a.startX,y.startX)&&jt.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===mo&&jt.B(a.endX,y.endX)&&jt.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 gn(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 gn(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>=wt-1?!0:ce[We+1].match(Ot)!==null}function x(){return We++,ce[We]}function b(nr){var Xi=parseFloat(x()),Vr=parseFloat(x());ht===ht.toLowerCase()&&(Xi=St.x+Xi,Vr=St.y+Vr),nr.h(Xi,Vr)}function z(){return b(St),St}function ee(){return b(vt),vt}function re(){var nr=it.toLowerCase();return nr!=="c"&&nr!=="s"&&nr!=="q"&&nr!=="t"?St:new lt(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=wi();for(var ye="",Ne=!1,Pe=0;Pe<fe.length;Pe++){var Re=fe[Pe];Re!=="."||Ne?Re==="."?(oe.push(ye),ye="."):ye+=Re:(Ne=!0,ye+=Re)}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,ai(oe)}}var We=-1,ht="",it="";oe=new lt(0,0);var vt=new lt(0,0),St=new lt(0,0),wt=ce.length;a=R1(null),Ne=ye=fe=!1,Pe=!0,Re=null;for(var Ot=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(We>=wt-1);)if(it=ht,ht=x(),ht!=="")switch(ht.toUpperCase()){case"X":Pe=!0,ye=fe=!1;break;case"M":for(Re=z(),a.mc===null||Pe===!0?(eg(a,Re.x,Re.y,fe,!ye,Ne),Pe=!1):a.moveTo(Re.x,Re.y),oe.assign(St);!E();)Re=z(),a.lineTo(Re.x,Re.y);break;case"L":for(;!E();)Re=z(),a.lineTo(Re.x,Re.y);break;case"H":for(;!E();)St=new lt((ht===ht.toLowerCase()?St.x:0)+parseFloat(x()),St.y),a.lineTo(St.x,St.y);break;case"V":for(;!E();)St=new lt(St.x,(ht===ht.toLowerCase()?St.y:0)+parseFloat(x())),a.lineTo(St.x,St.y);break;case"C":for(;!E();){Re=new lt,b(Re);var $t=ee(),li=z();Sd(a,Re.x,Re.y,$t.x,$t.y,li.x,li.y)}break;case"S":for(;!E();)Re=re(),$t=ee(),li=z(),Sd(a,Re.x,Re.y,$t.x,$t.y,li.x,li.y);break;case"Q":for(;!E();)Re=ee(),$t=z(),Hm(a,Re.x,Re.y,$t.x,$t.y);break;case"T":for(;!E();)vt=Re=re(),$t=z(),Hm(a,Re.x,Re.y,$t.x,$t.y);break;case"B":for(;!E();){Re=parseFloat(x()),$t=parseFloat(x()),li=parseFloat(x());var Ai=parseFloat(x()),yi=parseFloat(x()),Xn=yi,On=!1;E()||(Xn=parseFloat(x()),E()||(On=parseFloat(x())!==0)),ht===ht.toLowerCase()&&(li+=St.x,Ai+=St.y),a.arcTo(Re,$t,li,Ai,yi,Xn,On)}break;case"A":for(;!E();)Re=Math.abs(parseFloat(x())),$t=Math.abs(parseFloat(x())),li=parseFloat(x()),yi=Ai=!1,On=Xn=0,Xn=x(),Xn.length===1?(Ai=!!parseFloat(Xn),yi=!!parseFloat(x()),Xn=parseFloat(x())):Xn.length===2?(Ai=!!parseFloat(Xn[0]),yi=!!parseFloat(Xn[1]),Xn=parseFloat(x())):(Ai=!!parseFloat(Xn[0]),yi=!!parseFloat(Xn[1]),Xn=parseFloat(Xn.slice(2))),On=parseFloat(x()),ht===ht.toLowerCase()&&(Xn=St.x+Xn,On=St.y+On),St.h(Xn,On),kE(a,Re,$t,li,Ai,yi,Xn,On);break;case"Z":IE(a),St.assign(oe);break;case"F":for(Re="",$t=1;ce[We+$t];)if(ce[We+$t]==="0")Ne=!0,$t++;else if(ce[We+$t].match(/[Uu]/)!==null)$t++;else if(ce[We+$t].match(Ot)===null)$t++;else{Re=ce[We+$t];break}Re.match(/[Mm]/)?fe=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Re="",$t=1;ce[We+$t];)if(ce[We+$t].match(/[Ff]/)!==null)$t++;else if(ce[We+$t].match(Ot)===null)$t++;else{Re=ce[We+$t];break}Re.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=lt.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}lt.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),ac(this,a,!1),Uo(a,0,0,0,0),a.freeze()},Qn.prototype.ix=function(){var a=new gn;return ac(this,a,!0),a};function ac(a,y,E){switch(a.type){case Qn.j:case Qn.u:case Qn.F:E?y.h(a.od,a.pd,0,0):Uo(y,a.od,a.pd,0,0),Uo(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):Uo(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 Do:oe=ye.endX,ce=ye.endY,Uo(y,oe,ce,0,0);break;case ja:jt.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 Os:jt.iv(oe,ce,ye.point1X,ye.point1Y,ye.endX,ye.endY,.5,y),oe=ye.endX,ce=ye.endY;break;case na:case qs:var Ne=ye.type===na?os(ye,z):As(ye,z,oe,ce),Pe=Ne.length;if(Pe===0){oe=ye.type===na?ye.centerX:ye.endX,ce=ye.type===na?ye.centerY:ye.endY,Uo(y,oe,ce,0,0);break}ye=null;for(var Re=0;Re<Pe;Re++)ye=Ne[Re],jt.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:pt("Unknown Segment type: "+ye.type)}}}break;default:pt("Unknown Geometry type: "+a.type)}}Qn.prototype.normalize=function(){this._isFrozen&&yn(this);var a=this.ix();return this.offset(-a.x,-a.y),new lt(-a.x,-a.y)},Qn.prototype.offset=function(a,y){return this._isFrozen&&yn(this),this.transform(1,0,0,1,a,y),this},Qn.prototype.scale=function(a,y){return this._isFrozen&&yn(this),this.transform(a,0,0,y,0,0),this},Qn.prototype.rotate=function(a,y,E){this._isFrozen&&yn(this),y===void 0&&(y=0),E===void 0&&(E=0);var x=tr.alloc();return x.reset(),x.rotate(a,y,E),this.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),tr.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 Re=ye[Pe];switch(Re.type){case mo:case Do:ee=Re.endX,re=Re.endY,Re.endX=ee*a+re*E+b,Re.endY=ee*y+re*x+z;break;case ja:ee=Re.point1X,re=Re.point1Y,Re.point1X=ee*a+re*E+b,Re.point1Y=ee*y+re*x+z,ee=Re.point2X,re=Re.point2Y,Re.point2X=ee*a+re*E+b,Re.point2Y=ee*y+re*x+z,ee=Re.endX,re=Re.endY,Re.endX=ee*a+re*E+b,Re.endY=ee*y+re*x+z;break;case Os:ee=Re.point1X,re=Re.point1Y,Re.point1X=ee*a+re*E+b,Re.point1Y=ee*y+re*x+z,ee=Re.endX,re=Re.endY,Re.endX=ee*a+re*E+b,Re.endY=ee*y+re*x+z;break;case na:ee=Re.centerX,re=Re.centerY,Re.centerX=ee*a+re*E+b,Re.centerY=ee*y+re*x+z,y!==0&&(ee=180*Math.atan2(y,a)/Math.PI,0>ee&&(ee+=360),Re.startAngle+=ee),0>a&&(Re.startAngle=180-Re.startAngle,Re.sweepAngle=-Re.sweepAngle),0>x&&(Re.startAngle=-Re.startAngle,Re.sweepAngle=-Re.sweepAngle),Re.radiusX*=Math.sqrt(a*a+E*E),Re.radiusY!==void 0&&(Re.radiusY*=Math.sqrt(y*y+x*x));break;case qs:if(ee=Re.endX,re=Re.endY,Re.endX=ee*a+re*E+b,Re.endY=ee*y+re*x+z,Re.radiusX===0||Re.radiusY===0)break;y!==0&&(ee=180*Math.atan2(y,a)/Math.PI,0>ee&&(ee+=360),Re.xAxisRotation+=ee),0>a&&(Re.xAxisRotation=180-Re.xAxisRotation,Re.isClockwiseArc=!Re.isClockwiseArc),0>x&&(Re.xAxisRotation=-Re.xAxisRotation,Re.isClockwiseArc=!Re.isClockwiseArc),Re.radiusX*=Math.sqrt(a*a+E*E),Re.radiusY*=Math.sqrt(y*y+x*x);break;default:pt("Unknown Segment type: "+Re.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 jt.Yb(E,x,b,z,y,a.x,a.y);case Qn.u:var ee=gn.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),gn.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 Js(this,a,y,!0,!1);default:return!1}};function Js(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,Re=0;Re<Pe;Re++){var We=Ne[Re],ht=!We.isEvenOdd;if(We.isFilled){if(x&&We.ca(z,y,E))return!0;var it=We.segments;oe=We.startX,ce=We.startY;for(var vt=oe,St=ce,wt=it.s,Ot=0;Ot<=it.length;Ot++){var $t=void 0;if(Ot!==it.length){$t=wt[Ot];var li=$t.type;a=$t.endX,ye=$t.endY}else li=mo,a=vt,ye=St;switch(li){case Do:if(vt=Vl(z,y,ee,y,oe,ce,vt,St),isNaN(vt))return!0;re+=vt,vt=a,St=ye;break;case mo:if(oe=Vl(z,y,ee,y,oe,ce,a,ye),isNaN(oe))return!0;re+=oe;break;case ja:fe=jt.Fo(oe,ce,$t.point1X,$t.point1Y,$t.point2X,$t.point2Y,a,ye,ee,y,z,y,.5),re+=fe;break;case Os:fe=jt.Fo(oe,ce,(oe+2*$t.point1X)/3,(ce+2*$t.point1Y)/3,(2*$t.point1X+a)/3,(2*$t.point1Y+ye)/3,a,ye,ee,y,z,y,.5),re+=fe;break;case na:case qs:li=$t.type===na?os($t,We):As($t,We,oe,ce);var Ai=li.length;if(Ai===0){if(oe=Vl(z,y,ee,y,oe,ce,$t.type===na?$t.centerX:$t.endX,$t.type===na?$t.centerY:$t.endY),isNaN(oe))return!0;re+=oe;break}$t=null;for(var yi=0;yi<Ai;yi++){if($t=li[yi],yi===0){if(fe=Vl(z,y,ee,y,oe,ce,$t[0],$t[1]),isNaN(fe))return!0;re+=fe}fe=jt.Fo($t[0],$t[1],$t[2],$t[3],$t[4],$t[5],$t[6],$t[7],ee,y,z,y,.5),re+=fe}$t!==null&&(a=$t[6],ye=$t[7]);break;default:pt("Unknown Segment type: "+$t.type)}oe=a,ce=ye}if(ht){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 Vl(a,y,E,x,b,z,ee,re){if(jt.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 sc(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 lt),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=lt.alloc();return jt.qh(y,E,x,b,z,a,re),a=re.x,z=re.y,lt.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=lt.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],Re=Ne.length,We=0;We<Re;We+=2){var ht=Ne[We],it=Ne[We+1];if(We!==0){jt.qh(ce,fe,ht,it,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=ht,fe=it}return lt.free(x),a=ee/z,0>a?0:1<a?1:a}return 0};function Yc(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 ma;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var ee=new _r(na);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=os(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];jt.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 Do: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 ja:jt.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 Os:jt.ep(ee,z,Ne.point1X,Ne.point1Y,Ne.endX,Ne.endY,.5,x),ee=Ne.endX,z=Ne.endY;break;case na:var Pe=os(Ne,b),Re=Pe.length;if(Re===0){x.push(Ne.centerX),x.push(Ne.centerY),ee=Ne.centerX,z=Ne.centerY;break}for(var We=0;We<Re;We++){var ht=Pe[We];jt.Qe(ee,z,ht[2],ht[3],ht[4],ht[5],ht[6],ht[7],.5,x),ee=ht[6],z=ht[7]}break;case qs:if(Pe=As(Ne,b,ee,z),Re=Pe.length,We=Ne.endX,ht=Ne.endY,Re===0){x.push(We),x.push(ht),ee=We,z=ht;break}for(We=0;We<Re;We++)ht=Pe[We],jt.Qe(ee,z,ht[2],ht[3],ht[4],ht[5],ht[6],ht[7],.5,x),ee=ht[6],z=ht[7];break;default:pt("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(Ho(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&&yn(this),this.fg=new Yt(a,y,b,z).freeze(),this.gg=new Yt(E,x,ee,re).freeze(),this},Rt.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 Yc(this),this.tk}},flattenedLengths:{get:function(){return Yc(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&&yn(this,a),this.na=a,a===Qn.o?this.ee=new Gn:(Qn.V===null&&(Qn.V=new Gn().freeze()),this.ee=Qn.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&yn(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&yn(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&yn(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&yn(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&yn(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&yn(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&yn(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&yn(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 wn(Qn,"Line",0),Qn.u=new wn(Qn,"Rectangle",1),Qn.F=new wn(Qn,"Ellipse",2),Qn.o=new wn(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 ma(a,y,E,x,b){br(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 Gn,this.sr=this.pl.Ja,this.fw=null}ma.prototype.copy=function(){var a=new ma;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=ma.prototype,ke.Xa=function(a){if(!(a instanceof ma&&jt.B(this.startX,a.startX)&&jt.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 Do:z=fe.endX,ee=fe.endY,x=fe.endX,b=fe.endY;break;case mo:if(jt.Yb(x,b,fe.endX,fe.endY,E,a,y))return!0;x=fe.endX,b=fe.endY;break;case ja:if(jt.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 Os:if(jt.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 na:case qs:var ye=fe.type===na?os(fe,this):As(fe,this,x,b),Ne=ye.length,Pe=fe.type===na?fe.centerX:fe.endX,Re=fe.type===na?fe.centerY:fe.endY;if(Ne===0){if(jt.Yb(x,b,Pe,Re,E,a,y))return!0;x=Pe,b=Re;break}for(Pe=null,Re=0;Re<Ne;Re++)if(Pe=ye[Re],Re===0&&jt.Yb(x,b,Pe[0],Pe[1],E,a,y)||jt.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:pt("Unknown Segment type: "+fe.type)}if(fe.isClosed&&(x!==z||b!==ee)&&jt.Yb(x,b,z,ee,E,a,y))return!0}return!1},Rt.Object.defineProperties(ma.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&&yn(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&yn(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&yn(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&yn(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&yn(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&yn(this,a),this.pl=a,this._isInvalidBounds=!0}}}),ma.prototype.add=ma.prototype.add,ma.prototype.equalsApprox=ma.prototype.Xa,ma.className="PathFigure";function _r(a,y,E,x,b,z,ee,re){br(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===qs?(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===na&&(z=Math.max(z,0)),this.Wh=z,typeof ee=="number"?(a===na&&(ee=Math.max(ee,0)),this.Pg=ee):this.Pg=0),this.ae=null}_r.prototype.copy=function(){var a=new _r;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=_r.prototype,ke.Xa=function(a){if(!(a instanceof _r)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case Do:case mo:return jt.B(this.endX,a.endX)&&jt.B(this.endY,a.endY);case ja:return jt.B(this.endX,a.endX)&&jt.B(this.endY,a.endY)&&jt.B(this.point1X,a.point1X)&&jt.B(this.point1Y,a.point1Y)&&jt.B(this.point2X,a.point2X)&&jt.B(this.point2Y,a.point2Y);case Os:return jt.B(this.endX,a.endX)&&jt.B(this.endY,a.endY)&&jt.B(this.point1X,a.point1X)&&jt.B(this.point1Y,a.point1Y);case na:return jt.B(this.startAngle,a.startAngle)&&jt.B(this.sweepAngle,a.sweepAngle)&&jt.B(this.centerX,a.centerX)&&jt.B(this.centerY,a.centerY)&&jt.B(this.radiusX,a.radiusX)&&jt.B(this.radiusY,a.radiusY);case qs:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&jt.B(this.xAxisRotation,a.xAxisRotation)&&jt.B(this.endX,a.endX)&&jt.B(this.endY,a.endY)&&jt.B(this.radiusX,a.radiusX)&&jt.B(this.radiusY,a.radiusY);default:return!1}},ke.qb=function(a){a.classType===_r&&(this.type=a)},ke.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Do: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 ja: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 Os: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 na: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 qs: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 os(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=jt.jx(0,0,E<x?E:x,a.startAngle,a.startAngle+a.sweepAngle,!1);if(E!==x){var ee=tr.alloc();ee.reset(),E<x?ee.scale(1,x/E):ee.scale(E/x,1),Qn.Ha(z,ee),tr.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 As(a,y,E,x){function b(We,ht,it,vt){return(We*vt<ht*it?-1:1)*Math.acos((We*it+ht*vt)/(Math.sqrt(We*We+ht*ht)*Math.sqrt(it*it+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 Re=Pe*Pe/(y*y)+ee*ee/(z*z);return 1<Re&&(y*=Math.sqrt(Re),z*=Math.sqrt(Re)),Re=(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(Re)&&(Re=0),re=Re*y*ee/z,Re=Re*-z*Pe/y,isNaN(re)&&(re=0),isNaN(Re)&&(Re=0),E=(E+ce)/2+ye*re-Ne*Re,x=(x+fe)/2+Ne*re+ye*Re,fe=b(1,0,(Pe-re)/y,(ee-Re)/z),ye=(Pe-re)/y,ce=(ee-Re)/z,Pe=(-Pe-re)/y,re=(-ee-Re)/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=jt.jx(0,0,y>z?y:z,fe,fe+ee,!0),z=tr.alloc(),z.reset(),z.translate(E,x),z.rotate(a.Ne,0,0),z.scale(oe,Pe),Qn.Ha(y,z),tr.free(z),a.ae=y,a.ae}Rt.Object.defineProperties(_r.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&&yn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&yn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&yn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&yn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&yn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&yn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&yn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&yn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&yn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&ii(a,">= zero",_r,"radiusX"),this._isFrozen&&yn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&ii(a,">= zero",_r,"radiusY"),this._isFrozen&&yn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&yn(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&&yn(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&&yn(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&&yn(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&&yn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),_r.prototype.equalsApprox=_r.prototype.Xa;var Do=new wn(_r,"Move",0),mo=new wn(_r,"Line",1),ja=new wn(_r,"Bezier",2),Os=new wn(_r,"QuadraticBezier",3),na=new wn(_r,"Arc",4),qs=new wn(_r,"SvgArc",4);_r.className="PathSegment",_r.Move=Do,_r.Line=mo,_r.Bezier=ja,_r.QuadraticBezier=Os,_r.Arc=na,_r.SvgArc=qs;function Qa(){this.H=null,this.xu=new lt(0,0).freeze(),this.mt=new lt(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},Rt.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 Tu(){this.H=null,this.xa="",this.ar=this.Lr=null}Tu.prototype.copy=function(){var a=new Tu;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Tu.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},Rt.Object.defineProperties(Tu.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}}}),Tu.className="DiagramEvent";function Ro(){this.Fm=To,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Ro.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Ro.prototype.copy=function(){var a=new Ro;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=Ut(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=Ut(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=Ut(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=Ut(y)&&typeof y.J=="function"?y.J():y,a},Ro.prototype.qb=function(a){a.classType===Ro&&(this.change=a)},Ro.prototype.toString=function(){var a="";return a=this.change===ys?a+"* ":this.change===To?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===ys?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=ji(this.object)),this.oldValue!==null&&(a+=" old: "+ji(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+ji(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Ro.prototype.I=function(a){return a?this.oldValue:this.newValue},Ro.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Ro.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Ro.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Ro.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Ro.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},Rt.Object.defineProperties(Ro.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===ys&&(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}}}),Ro.prototype.redo=Ro.prototype.redo,Ro.prototype.canRedo=Ro.prototype.canRedo,Ro.prototype.undo=Ro.prototype.undo,Ro.prototype.canUndo=Ro.prototype.canUndo,Ro.prototype.getParam=Ro.prototype.Dz,Ro.prototype.getValue=Ro.prototype.I,Ro.prototype.clear=Ro.prototype.clear;var ys=new wn(Ro,"Transaction",-1),To=new wn(Ro,"Property",0),Jo=new wn(Ro,"Insert",1),ea=new wn(Ro,"Remove",2);Ro.className="ChangedEvent",Ro.Transaction=ys,Ro.Property=To,Ro.Insert=Jo,Ro.Remove=ea;function va(){this.o=new Gn().freeze(),this.xa="",this.j=!1}va.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},va.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()},va.prototype.canUndo=function(){return this.isComplete},va.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()}},va.prototype.canRedo=function(){return this.isComplete},va.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()}},va.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new Ti,E=0;E<a.count;E++){var x=a.M(E);if(x!==null&&x.change===To&&x.object){var b=y.get(x.object);b||(b=new Ti,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()}},Rt.Object.defineProperties(va.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}}}),va.prototype.optimize=va.prototype.ak,va.prototype.redo=va.prototype.redo,va.prototype.canRedo=va.prototype.canRedo,va.prototype.undo=va.prototype.undo,va.prototype.canUndo=va.prototype.canUndo,va.prototype.clear=va.prototype.clear,va.className="Transaction";function fo(){this.Pt=new Bn,this.Jd=!1,this.u=new Gn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Gn().freeze(),this.hl=new Gn,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&&xi("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){xi("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){xi("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 Ro;for(x.change=ys,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 va);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||xi("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},Rt.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 Lr(){br(this),this.H=Nc,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new Qa,this.Zr=-1}Lr.prototype.toString=function(){return this.name!==""?this.name+" Tool":Mn(this.constructor)},Lr.prototype.updateAdornments=function(){},Lr.prototype.canStart=function(){return this.isEnabled},Lr.prototype.doStart=function(){},Lr.prototype.doActivate=function(){this.isActive=!0},Lr.prototype.doDeactivate=function(){this.isActive=!1},Lr.prototype.doStop=function(){},Lr.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Lr.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},Lr.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Lr.prototype.doMouseMove=function(){},Lr.prototype.doMouseUp=function(){this.stopTool()},Lr.prototype.doMouseWheel=function(){},Lr.prototype.canStartMultiTouch=function(){return!0},Lr.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,E=y.So(0,lt.allocAt(NaN,NaN)),x=y.So(1,lt.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}lt.free(E),lt.free(x)},Lr.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,E=y.So(0,lt.allocAt(NaN,NaN)),x=y.So(1,lt.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 lt((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}lt.free(E),lt.free(x)},Lr.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Lr.prototype.doKeyUp=function(){},Lr.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},Lr.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},Lr.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,E=a.Ol(y.documentPoint,!1);if(E!==null){if(Ji?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||(Ji?y.meta:y.control)||y.shift||a.clearSelection()}},Lr.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)}}}Lr.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}},Lr.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},Lr.prototype.doCurrentObjectChanged=function(){},Lr.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===Au&&!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===Au&&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)}}},Lr.prototype.doWheelChange=function(a,y,E){a.position.D(y)&&E.event.wheelDeltaX===0||(E.bubbles=!1)},Lr.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var E=this,x=y.clone(this.yy);this.Zr=Gt(function(){E.doWaitAfter(x)},a)},Lr.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Rn.clearTimeout(this.Zr),this.Zr=-1},Lr.prototype.doWaitAfter=function(){},Lr.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(E){for(;E!==null&&!(E.panel instanceof Gr);)E=E.panel;return E}),a===null?null:a.part.category===y?a:null},Lr.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},Rt.Object.defineProperties(Lr.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof tn&&(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}}}),Lr.prototype.startTransaction=Lr.prototype.Ea,Lr.className="Tool";function No(){Lr.call(this),this.name="ToolManager",this.hb=new Gn,this.ob=new Gn,this.Hb=new Gn,this.F=this.V=850,this.o=new ri(2,2).ja(),this.Ha=5e3,this.ia=Tc,this.u=sd,this.Mp=this.j=null,this.zj=-1}Wt(No,Lr),No.prototype.initializeStandardTools=function(){},No.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Gr&&this.Mp===a){var E=y.adornedObject;(a!==null?E.part===a:E===null)?this.showToolTip(y,E):this.hideToolTip()}},No.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Zl&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Rl){y.bubbles=!0;return}if(this.gestureBehavior===Zl)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=Au:this.mouseWheelBehavior===Au&&(this.mouseWheelBehavior=Tc)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},No.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===Rl){y.bubbles=!0;return}if(this.gestureBehavior===Zl)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)}No.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof Gr&&(y===a||y.rg(a))||this.hideToolTip()},No.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()))},No.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)},No.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 Gr)||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()},No.prototype.showToolTip=function(a,y){var E=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Gr){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 Fr&&a!==this.currentToolTip&&a.show(y,E,this);if(this.currentToolTip=a,this.zj!==-1&&(Rn.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var b=this;this.zj=Gt(function(){b.hideToolTip()},a)}},No.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}},No.prototype.hideToolTip=function(){this.zj!==-1&&(Rn.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Gr?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Fr&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},No.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()},No.prototype.doMouseWheel=function(){this.standardMouseWheel()},No.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},No.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},No.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},No.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},No.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)},Rt.Object.defineProperties(No.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 Gr?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}}}),No.prototype.replaceStandardTool=No.prototype.gb;var Tc=new wn(No,"WheelScroll",0),Au=new wn(No,"WheelZoom",1),Bd=new wn(No,"WheelNone",2),sd=new wn(No,"GestureZoom",3),Zl=new wn(No,"GestureCancel",4),Rl=new wn(No,"GestureNone",5);No.className="ToolManager",No.WheelScroll=Tc,No.WheelZoom=Au,No.WheelNone=Bd,No.GestureZoom=sd,No.GestureCancel=Zl,No.GestureNone=Rl;function Ao(){Lr.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 lt(NaN,NaN),this.Fr=new lt,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Bn().freeze(),this.ia=new ae,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Rs;Wt(Ao,Lr),Ao.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},Ao.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},Ao.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,(Ji?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},Ao.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),Ia=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&&el(a),Df(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Ia=this,Mu=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 qn?(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 Fs,a.Oe.diagram=E),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}Ao.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},Ao.prototype.Pd=function(a){return a===void 0?new Zc(xo):this.isGridSnapEnabled?new Zc(new lt(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new Zc(a.copy())},Ao.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),cu(this),Hd(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Rs.count){for(var y=Rs,E=y.length,x=0;x<E;x++){var b=y.M(x);Yu(b),El(b),cu(b),b.diagram.ug()}y.clear()}Yu(this),this.tl.h(NaN,NaN),Mu!==null&&(Mu.currentCursor=""),Ia=Mu=null,El(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),Kh(a,!0)},Ao.prototype.stopTransaction=function(){var a=this.diagram,y=Lr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function cu(a){var y=a.diagram,E=y.skipsUndoManager;y.skipsUndoManager=!0,Wu(a,y.lastInput,null),y.skipsUndoManager=E,a.Cg.length=0}function Cu(){var a=Ia;El(a),du(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Ao.prototype.doCancel=function(){El(this),du(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},Ao.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},Ao.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")):du(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 Ti,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 qn&&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 El(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 qn&&(E.value.point=new lt(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function Yu(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 xl(a,y,E){var x=a.diagram,b=a.startPoint,z=lt.alloc();z.assign(x.lastInput.documentPoint),a.moveParts(y,z.re(b),E),lt.free(z),x.Gf("temporaryPixelRatio")===!0&&x.Yh===null&&30<x.$w&&(el(x),x.hk())}Ao.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 du(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 qn&&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),hu(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=Wu(a,b,x),!a.isActive&&Ia===null)return;var re=x!==null?x.part:null;if(re===null||E.handlesDragDropForTopLevelParts&&re.isTopLevel&&!(re instanceof ir)){var oe=E.mouseDragOver;oe!==null&&(oe(b),ee=!0)}if(!a.isActive&&Ia===null||(a.doDragOver(y,x),!a.isActive&&Ia===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)}Ao.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 Gr||E.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(E)||y.copiedParts&&y.copiedParts.contains(E))),!E})},Ao.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 Wu(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&&Ia===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 _i&&!(a instanceof ir)&&(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=lt.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(lr,a);oe=y.Bf(oe),oe<z&&(ee=re,z=oe)}}return lt.free(a),ee}function hu(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)}}}}Ao.prototype.doDragOver=function(){};function Nu(a,y){var E=a.diagram;a.dragsLink&&hu(a,!0),cu(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||Ia!==null){for(b=(a.copiedParts||a.draggedParts).iterator;b.next();)z=b.key,z instanceof di&&z.linksConnected.each(function(re){re.suspendsRouting=!1});if(a.doDropOnto(y,x),a.isActive||Ia!==null){for(a=gn.alloc(),y=E.selection.iterator;y.next();)x=y.value,x instanceof di&&mh(E,x,a);gn.free(a)}}}function ld(a,y,E){a=a.diagram,E=E.part,!a.handlesDragDropForTopLevelParts||!E.isTopLevel||E instanceof ir||(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 qn},!0,function(b){return b instanceof qn},x),a.count!==0)for(a=a.iterator;a.next();)E=a.value,!E.Td(y)&&E.isAvoiding&&E.bb()}Ao.prototype.doDropOnto=function(){},Ao.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),xl(this,this.copiedParts,!1),Hd(a,this.copiedParts)):this.mayMove()?(El(this),xl(this,this.draggedParts,!0)):this.mayDragOut()?(Kl(this,!1),xl(this,this.copiedParts,!1)):El(this),uc(this,a.lastInput.documentPoint))}},Ao.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?(El(this),Kl(this,!0),Df(a,this.copiedParts),xl(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,El(this),this.mayMove()&&(xl(this,this.draggedParts,!0),uc(this,a.lastInput.documentPoint))),this.Ym=!0,Nu(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)}}},Ao.prototype.simulatedMouseMove=function(a,y,E){if(Ia===null)return!1;var x=Ia.diagram;E instanceof tn||(E=null);var b=Mu;return E!==b&&(b!==null&&b!==x&&(b.ug(),Ia.isDragOutStarted=!1,b=b.toolManager.findTool("Dragging"),b!==null&&b.doSimulatedDragLeave()),Mu=E,E!==null&&E!==x&&(Cu(),b=E.toolManager.findTool("Dragging"),b!==null&&(Rs.contains(b)||Rs.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)},Ao.prototype.simulatedMouseUp=function(a,y,E){if(Ia===null)return!1;var x=Mu,b=Ia.diagram;if(E===null)return Ia.doCancel(),!0;if(E!==x){var z=x.toolManager.findTool("Dragging");if(x!==null&&x!==b&&z!==null)return x.ug(),Ia.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;Mu=E,x=E.toolManager.findTool("Dragging"),x!==null&&(Cu(),Rs.contains(x)||Rs.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 lt),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=Ia,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 di&&(E=E.containingGroup,E===null||E.placeholder===null||a.draggedParts.contains(E)||E.placeholder.v())}}Ao.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(Ji?!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())},Ao.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())},Ao.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())},Ao.prototype.computeBorder=function(a,y,E){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:E.assign(y)},Ao.prototype.Az=function(){return Ia},Ao.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Ia;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},Ao.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),ql(a),a.animationManager.Cc(),a=Ia,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Ao.prototype.doSimulatedDragLeave=function(){var a=Ia;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Ao.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Ia;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;yh(this,y.draggedParts.Lf(),!1,a.firstInput),xl(this,this.copiedParts,!1),uc(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},Ao.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Ia;if(y!==null){var E=y.diagram;if(y.Ym=!0,El(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),yh(this,y.draggedParts.Lf(),!0,a.lastInput),xl(this,this.copiedParts,!1);var x=new Bn;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0,x.add(b)})),Nu(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=gn.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,gn.free(z),z=a.Fr,ee=new Ti,re=lt.alloc(),oe=y.iterator;oe.next();)ce=oe.value,ce instanceof qn&&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))));lt.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)}}}Ao.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Ao.prototype.computeMove=function(a,y,E,x){return E=this.diagram,E!==null?E.computeMove(a,y,this.dragOptions,x):new lt},Rt.Object.defineProperties(Ao.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}}}),Ao.prototype.getDraggingSource=Ao.prototype.Az;var Ia=null,Mu=null;Ao.className="DraggingTool",Rs=new Gn,Zi("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),No.prototype.doCancel=function(){Ia!==null&&Ia.doCancel(),Lr.prototype.doCancel.call(this)};function Qo(){Lr.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new qn,y=new gr;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new gr,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new di,y=new gr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Qr,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new di,y=new gr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Qr,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 Ti,this.Of=this.gj=this.Pf=null}Wt(Qo,Lr),Qo.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Qo.prototype.copyPortProperties=function(a,y,E,x,b){if(a!==null&&y!==null&&E!==null&&x!==null){var z=y.Df(),ee=ri.alloc();ee.width=y.naturalBounds.width*z,ee.height=y.naturalBounds.height*z,x.desiredSize=ee,ri.free(ee),b?(x.toSpot=y.toSpot,x.toEndSegmentLength=y.toEndSegmentLength):(x.fromSpot=y.fromSpot,x.fromEndSegmentLength=y.fromEndSegmentLength),E.locationSpot=lr,z=lt.alloc(),E.location=y.ga(lr,z),lt.free(z),x.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,E,x,b)}},Qo.prototype.setNoTargetPortProperties=function(a,y,E){y!==null&&(y.desiredSize=Qr,y.fromSpot=Ci,y.toSpot=Ci),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,E)},Qo.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Qo.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof di){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)}},Qo.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var E=a.part;if(!(E instanceof di))return null;for(;a!==null;){var x=y?a.toLinkable:a.fromLinkable;if(x===!0&&(a.portId!==null||a instanceof di)&&(y?this.isValidTo(E,a):this.isValidFrom(E,a)))return a;if(x===!1)break;a=a.panel}return null},Qo.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 di){var oe=ee.ga(lr,lt.alloc()),ce=E.x-oe.x,fe=E.y-oe.y;lt.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 di&&(E.layer===null||E.layer.allowLink))?y:null},Qo.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},Qo.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},Qo.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},Qo.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var E=a.part;if(!(E instanceof di))return!1;a=a.portId,a===null&&(a="");var x=y.part;if(!(x instanceof di))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},Qo.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)},Qo.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 Bn;return x.add(a),Xa(this,E,y,x)};function Xa(a,y,E,x){if(y===E)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(x.add(b),Xa(a,b.labeledLink,E,x))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(x.add(y),Xa(a,y.labeledLink,E,x))))}Qo.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!as(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!as(this,a,y,E,!0)}if(x===Zg)return a===y?a=!0:(x=new Bn,x.add(y),a=ts(this,x,a,y,E)),!a;if(x===Kg)return!as(this,a,y,E,!1);if(x===Qg)return a===y?a=!0:(x=new Bn,x.add(y),a=Vu(this,x,a,y,E)),!a}return!0};function as(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&&as(a,ee,E,x,b)))return!0}return!1}function ts(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&&ts(a,y,ee,x,b)))return!0}return!1}function Vu(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&&Vu(a,y,re,x,b))return!0}}return!1}Rt.Object.defineProperties(Qo.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}}}),Qo.className="LinkingBaseTool";function fs(){Qo.call(this),this.name="Linking",this.V={},this.F=null,this.K=Pu,this.Xd=null}Wt(fs,Qo),fs.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},fs.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 di)))return null;var E=this.direction;if(E===Pu||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===Pu||E===cd)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},fs.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 di&&(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 di&&(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)},fs.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()},fs.prototype.doStop=function(){Qo.prototype.doStop.call(this),this.startObject=null},fs.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 di&&(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)}}},fs.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof qn)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)},fs.prototype.insertLink=function(a,y,E,x){return this.diagram.partManager.insertLink(a,y,E,x)},fs.prototype.doNoLink=function(){},Rt.Object.defineProperties(fs.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 Pu=new wn(fs,"Either",0),ud=new wn(fs,"ForwardsOnly",0),cd=new wn(fs,"BackwardsOnly",0);fs.className="LinkingTool",fs.Either=Pu,fs.ForwardsOnly=ud,fs.BackwardsOnly=cd;function Fs(){Qo.call(this),this.name="Relinking";var a=new gr;a.figure="Diamond",a.desiredSize=Oo,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new gr,a.figure="Diamond",a.desiredSize=Oo,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new gn}Wt(Fs,Qo),Fs.prototype.updateAdornments=function(a){if(a!==null&&a instanceof qn){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)}},Fs.prototype.makeAdornment=function(a,y){var E=new Gr;return E.type=Vn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&E.add(y.copy()),E.adornedObject=a,E},Fs.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},Fs.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 Gr&&E.adornedPart instanceof qn))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=Qi),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=Qi),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},Fs.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=Gs),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}},Fs.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()},Fs.prototype.doStop=function(){Qo.prototype.doStop.call(this),this.handle=null},Fs.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 di&&(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()}}},Fs.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},Fs.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)}Rt.Object.defineProperties(Fs.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 Gr))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),Fs.className="RelinkingTool",Zi("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Zi("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function He(){Lr.call(this),this.name="LinkReshaping";var a=new gr;a.figure="Rectangle",a.desiredSize=zo,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new gr,a.figure="Diamond",a.desiredSize=Oo,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new lt,this.Yq=new Gn}Wt(He,Lr),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 qn){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 Gr,b.type=Vn.Link,E=y.firstPickIndex;var z=y.lastPickIndex,ee=x?1:0;if(y.resegmentable&&y.computeCurve()!==Gl)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);jt.B(oe.x,ce.x)&&jt.B(oe.y,ce.y)&&(ce=y.i(E-1)),jt.B(oe.x,ce.x)?(this.om(re,xt),re.cursor="n-resize"):jt.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),jt.B(oe.x,ce.x)&&jt.B(oe.y,ce.y)&&(oe=y.i(z+1)),jt.B(oe.x,ce.x)?(this.om(re,xt),re.cursor="n-resize"):jt.B(oe.y,ce.y)&&(this.om(re,Et),re.cursor="w-resize")):ee!==z&&(this.om(re,_t),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 qn){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=Lr.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(lr)},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&&(Ke(this,ee,x,b,z,!0)||Ke(this,ee,x,b,z,!1))){var re=y.points.copy();Ke(this,ee,x,b,z,!0)?(re.cd(E-2,new lt(ee.x,(z.y+ee.y)/2)),re.cd(E+1,new lt(z.x,(z.y+ee.y)/2))):(re.cd(E-2,new lt((z.x+ee.x)/2,ee.y)),re.cd(E+1,new lt((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&&(Ke(this,x,b,z,ee,!0)||Ke(this,x,b,z,ee,!1))&&(re=y.points.copy(),Ke(this,x,b,z,ee,!0)?(re.cd(E-1,new lt(x.x,(x.y+ee.y)/2)),re.cd(E+2,new lt(ee.x,(x.y+ee.y)/2))):(re.cd(E-1,new lt((x.x+ee.x)/2,x.y)),re.cd(E+2,new lt((x.x+ee.x)/2,ee.y))),re.mb(E+1),re.mb(E),y.points=re,y.Wb())}}else ee=lt.alloc(),jt.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()),lt.free(ee)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Ke(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===xt?(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===xt?(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);jt.B(z.x,b.x)&&jt.B(b.y,ee.y)?(jt.B(z.x,y.i(x-2).x)&&!jt.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),jt.B(ee.y,y.i(x+2).y)&&!jt.B(ee.x,y.i(x+2).x)?y.m(x+1,ee.x,a.y):y.L(x+1,ee.x,a.y)):jt.B(z.y,b.y)&&jt.B(b.x,ee.x)?(jt.B(z.y,y.i(x-2).y)&&!jt.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),jt.B(ee.x,y.i(x+2).x)&&!jt.B(ee.y,y.i(x+2).y)?y.m(x+1,a.x,ee.y):y.L(x+1,a.x,ee.y)):jt.B(z.x,b.x)&&jt.B(b.x,ee.x)?(jt.B(z.x,y.i(x-2).x)&&!jt.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),jt.B(ee.x,y.i(x+2).x)&&!jt.B(ee.y,y.i(x+2).y)?y.m(x+1,a.x,ee.y):y.L(x+1,a.x,ee.y)):jt.B(z.y,b.y)&&jt.B(b.y,ee.y)&&(jt.B(z.y,y.i(x-2).y)&&!jt.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),jt.B(ee.y,y.i(x+2).y)&&!jt.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(lr,lt.alloc()),x=y.getLinkPointFromPoint(x,b,z,a,!0,lt.alloc()),y.L(0,x.x,x.y),lt.free(z),lt.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(lr,lt.alloc()),a=y.getLinkPointFromPoint(x,b,E,a,!1,lt.alloc()),y.L(y.pointsCount-1,a.x,a.y),lt.free(E),lt.free(a));y.zf()},He.prototype.computeReshape=function(a){var y=this.adornedLink,E=this.handle.segmentIndex;switch(this.Ru(this.handle)){case _t:return a;case xt:return new lt(y.i(E).x,a.y);case Et:return new lt(a.x,y.i(E).y);default:case tt:return y.i(E)}},Rt.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 Gr))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 wn(He,"None",0),Et=new wn(He,"Horizontal",1),xt=new wn(He,"Vertical",2),_t=new wn(He,"All",3);He.className="LinkReshapingTool",He.None=tt,He.Horizontal=Et,He.Vertical=xt,He.All=_t,Zi("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function Qt(){Lr.call(this),this.name="Resizing",this.o=new ri(1,1).freeze(),this.j=new ri(9999,9999).freeze(),this.yg=new ri(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new gr;a.alignmentFocus=lr,a.figure="Rectangle",a.desiredSize=zo,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new lt,this.Dw=new ri,this.Tn=new lt,this.rt=new ri(0,0),this.qt=new ri(1/0,1/0),this.pt=new ri(1,1)}Wt(Qt,Lr),Qt.prototype.updateAdornments=function(a){if(!(a===null||a instanceof qn)){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(),Kd(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 Gr,y.type=Vn.Spot,y.locationSpot=lr;var E=new Hs;E.isPanelMain=!0,y.add(E),y.add(this.makeHandle(a,Yi)),y.add(this.makeHandle(a,qr)),y.add(this.makeHandle(a,Zo)),y.add(this.makeHandle(a,qo)),y.add(this.makeHandle(a,rs)),y.add(this.makeHandle(a,_a)),y.add(this.makeHandle(a,Ya)),y.add(this.makeHandle(a,ds))}else if(yu(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=lr),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 Vn)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=Lr.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,lt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,E,x,z),this.resize(y),a.bd(),lt.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,lt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,E,x,z),this.resize(y),lt.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 ir){var x=new Gn;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=lr);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=lt.alloc(),jt.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))),lt.free(Ne),a},Qt.prototype.computeReshape=function(){var a=jn;return this.adornedObject instanceof gr&&(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 ri(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},Rt.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 Gr))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 Gr)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",Zi("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Un(){Lr.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new lt,this.ue=null;var a=new gr;a.figure="Ellipse",a.desiredSize=Oo,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new lt(NaN,NaN),this.u=0,this.F=50}Wt(Un,Lr),Un.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)}},Un.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Gr,y.type=Vn.Position,y.locationSpot=lr;var E=this.handleArchetype;E!==null&&y.add(E.copy())}else if(yu(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Un.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},Un.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)},Un.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(lr)},Un.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)},Un.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new lt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Un.prototype.stopTransaction=function(){var a=this.diagram,y=Lr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Un.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Un.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Un.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()},Un.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()}},Un.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},Rt.Object.defineProperties(Un.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 Gr))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 Gr)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}}}),Un.className="RotatingTool",Zi("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Yn(){Lr.call(this),this.name="ClickSelecting"}Wt(Yn,Lr),Yn.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Yn.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Yn.className="ClickSelectingTool";function Tn(){Lr.call(this),this.name="Action",this.pk=null}Wt(Tn,Lr),Tn.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},Tn.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()},Tn.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))}},Tn.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()},Tn.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())},Tn.prototype.doStop=function(){this.pk=null},Tn.className="ActionTool";function oi(){Lr.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new lt(0,0)}Wt(oi,Lr),oi.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)},oi.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},oi.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 _i)E.Zc()&&(yu(E),x=E.copy(),x!==null&&y.add(x));else if(E!==null){var b=y.model.copyNodeData(E);Ut(b)&&(y.model.xf(b),x=y.Lc(b))}if(x!==null){var z=lt.allocAt(a.x,a.y);this.isGridSnapEnabled&&kf(this.diagram,x,a,z),x.location=z,y.allowSelect&&(y.clearSelection(!0),x.isSelected=!0),lt.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",x)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return x},Rt.Object.defineProperties(oi.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}}}),oi.className="ClickCreatingTool";function ni(){Lr.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new _i;a.layerName="Tool",a.selectable=!1;var y=new gr;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Wt(ni,Lr),ni.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))},ni.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},ni.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},ni.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=ri.alloc().h(y.width,y.height);E.desiredSize=x,this.box.mm(y.x,y.y,!1),ri.free(x),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},ni.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()},ni.prototype.computeBoxBounds=function(){var a=this.diagram;return new gn(a.firstInput.documentPoint,a.lastInput.documentPoint)},ni.prototype.selectInRect=function(a){var y=this.diagram,E=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),Ji?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 Gn,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)}},Rt.Object.defineProperties(ni.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}}}),ni.className="DragSelectingTool";function In(){Lr.call(this),this.name="Panning",this.Xt=new lt,this.xy=new lt,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Rn.document,"scroll",a.Kw,!1),a.stopTool()}}Wt(In,Lr),In.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())},In.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(Rn.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},In.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},In.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},In.prototype.doMouseMove=function(){this.move()},In.prototype.doMouseUp=function(){this.move(),this.stopTool()},In.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)}},Rt.Object.defineProperties(In.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),In.className="PanningTool",Zi("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Zi("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Zi("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Zi("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Zi("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function Fr(){this.F=this.u=this.j=this.o=null}Rt.Object.defineProperties(Fr.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}}}),Fr.className="HTMLInfo";function eo(a,y,E){this.text=a,this.hx=y,this.visible=E}eo.className="ContextMenuButtonInfo";function co(){Lr.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new lt,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Wt(co,Lr);function vr(a){var y=new Fr;y.show=function(b,z,ee){ee.showDefaultContextMenu()},y.hide=function(b,z){z.hideDefaultContextMenu()},$i=y,a.tu=function(){a.stopTool()},y=ti("div");var E=ti("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=ti("style");Rn.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",jr,!1),x.addEventListener(y,"selectstart",jr,!1),x.addEventListener(E,"contextmenu",jr,!1)),y.className="goCXforeground",E.className="goCXbackground",Rn.document.body&&(Rn.document.body.appendChild(y),Rn.document.body.appendChild(E)),ia=y,Oa=E,ha=!0}function jr(a){return a.preventDefault(),!1}co.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)},co.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},co.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},co.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,E=y.lastInput,x=null;if(a instanceof tn||(a instanceof Bt?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},co.prototype.doActivate=function(){},co.prototype.doMouseDown=function(){if(Lr.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Gr){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&Wr(this)},co.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Gr){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}Wr(this)};function Wr(a){var y=a.diagram;if(a.isActive){var E=a.currentContextMenu;if(E!==null){var x=null;E instanceof Fr||(x=y.ic(y.lastInput.documentPoint,null,null),x!==null&&x.rg(E)&&a.standardMouseClick(null,null)),a.maybeStopTool(x)}}else a.canStart()&&(la(a,!0),a.isActive||a.stopTool())}co.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function la(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=$i,E===null&&(E=a.findObjectWithContextMenu()),E!==null){var x=E.contextMenu;x!==null?(a.currentObject=E instanceof Bt?E:null,a.showContextMenu(x,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Gr&&!a.currentContextMenu.visible&&a.stopTool()}}co.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},co.prototype.showContextMenu=function(a,y){var E=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof Gr){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 Fr&&a.show(y,E,this);this.currentContextMenu=a},co.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}},co.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof Gr?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Fr&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function ua(a){var y=new Gn;return y.add(new eo("Copy",function(E){E.commandHandler.copySelection()},function(E){return E.commandHandler.canCopySelection()})),y.add(new eo("Cut",function(E){E.commandHandler.cutSelection()},function(E){return E.commandHandler.canCutSelection()})),y.add(new eo("Delete",function(E){E.commandHandler.deleteSelection()},function(E){return E.commandHandler.canDeleteSelection()})),y.add(new eo("Paste",function(E){E.commandHandler.pasteSelection(a.mouseDownPoint)},function(E){return E.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new eo("Select All",function(E){E.commandHandler.selectAll()},function(E){return E.commandHandler.canSelectAll()})),y.add(new eo("Undo",function(E){E.commandHandler.undo()},function(E){return E.commandHandler.canUndo()})),y.add(new eo("Redo",function(E){E.commandHandler.redo()},function(E){return E.commandHandler.canRedo()})),y.add(new eo("Scroll To Part",function(E){E.commandHandler.scrollToPart()},function(E){return E.commandHandler.canScrollToPart()})),y.add(new eo("Zoom To Fit",function(E){E.commandHandler.zoomToFit()},function(E){return E.commandHandler.canZoomToFit()})),y.add(new eo("Reset Zoom",function(E){E.commandHandler.resetZoom()},function(E){return E.commandHandler.canResetZoom()})),y.add(new eo("Group Selection",function(E){E.commandHandler.groupSelection()},function(E){return E.commandHandler.canGroupSelection()})),y.add(new eo("Ungroup Selection",function(E){E.commandHandler.ungroupSelection()},function(E){return E.commandHandler.canUngroupSelection()})),y.add(new eo("Edit Text",function(E){E.commandHandler.editTextBlock()},function(E){return E.commandHandler.canEditTextBlock()})),y}co.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=ua(this)),ia.innerHTML="",Oa.addEventListener("pointerdown",this.tu,!1);var y=this,E=ti("ul");E.className="goCXul",ia.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=ti("li"),z.className="goCXli";var ee=ti("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)}}ia.style.display="block",Oa.style.display="block"},co.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===$i){ia.style.display="none",Oa.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(Oa,"pointerdown",this.tu,!1),this.currentContextMenu=null}},Rt.Object.defineProperties(co.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Gr?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return ha===!1&&$i===null&&$o&&vr(this),$i},set:function(a){a===null&&(ha=!0),$i=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var $i=null,ha=!1,Oa=null,ia=null;co.className="ContextMenuTool",Zi("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function Rr(){Lr.call(this),this.name="TextEditing",this.Zh=new So,this.ia=null,this.V=Cs,this.vj=null,this.qa=Zn,this.u=1,this.F=!0,this.o=null,this.j=new Fr,this.kt=null,Bs(this,this.j)}Wt(Rr,Lr);function Bs(a,y){if($o){var E=ti("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(ka)):b==="Tab"?(a.acceptText(_o),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===_s&&(a.qa=bl),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 So&&z instanceof Rr)if(z.state===Ns)E.style.border="3px solid red",E.focus();else{var ee=x.ga(lr),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)}}}Rr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||Ql&&Ql!==this&&(Ql.acceptText(oo),Ql&&Ql!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof So&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===Cs&&!y.isSelected||this.starting===dl&&2>a.lastInput.clickCount)):!1},Rr.prototype.doStart=function(){Ql=this,this.textBlock!==null&&this.doActivate()},Rr.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 So&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=_s;var E=this.defaultTextEditor;y.textEditor!==null&&(E=y.textEditor),this.Zh=this.textBlock.copy();var x=new gn(this.textBlock.ga(Yi),this.textBlock.ga(Zo));a.tv(x),E.show(y,a,this),this.currentTextEditor=E}}}},Rr.prototype.doCancel=function(){this.stopTool()},Rr.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Rr.prototype.doMouseDown=function(){this.isActive&&this.acceptText(oo)},Rr.prototype.acceptText=function(a){switch(a){case oo:this.qa===Fl?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===_s||this.qa===Ns||this.qa===bl)&&(this.qa=ei,Ea(this));break;case uo:case ka:case _o:(ka!==a||this.textBlock.isMultiline!==!0)&&(this.qa===_s||this.qa===Ns||this.qa===bl)&&(this.qa=ei,Ea(this))}};function Ea(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=Fl,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=Ns,a.doError(b,z))}}Rr.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)},Rr.prototype.doSuccess=function(a,y){var E=this.textBlock;E.textEdited!==null&&E.textEdited(E,a,y)},Rr.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)},Rr.prototype.doStop=function(){Ql=null},Rr.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)))},Rr.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},Rt.Object.defineProperties(Rr.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)}}}),Rr.prototype.measureTemporaryTextBlock=Rr.prototype.Lx;var uo=new wn(Rr,"LostFocus",0),oo=new wn(Rr,"MouseDown",1),_o=new wn(Rr,"Tab",2),ka=new wn(Rr,"Enter",3),gs=new wn(Rr,"SingleClick",0),Cs=new wn(Rr,"SingleClickSelected",1),dl=new wn(Rr,"DoubleClick",2),Zn=new wn(Rr,"StateNone",0),_s=new wn(Rr,"StateActive",1),bl=new wn(Rr,"StateEditing",2),ei=new wn(Rr,"StateValidating",3),Ns=new wn(Rr,"StateInvalid",4),Fl=new wn(Rr,"StateValidated",5),Ql=null;Rr.className="TextEditingTool",Rr.LostFocus=uo,Rr.MouseDown=oo,Rr.Tab=_o,Rr.Enter=ka,Rr.SingleClick=gs,Rr.SingleClickSelected=Cs,Rr.DoubleClick=dl,Rr.StateNone=Zn,Rr.StateActive=_s,Rr.StateEditing=bl,Rr.StateValidating=ei,Rr.StateInvalid=Ns,Rr.StateValidated=Fl,Zi("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function ss(a){Si||(Ft(),Si=!0),this.H=Nc,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Hi,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Bn,this.ce=new mi,this.ce.Yd=this,this.Ei=new Bn,this.pu=new Bn,this.Sr=new Bn,this.pr=new Bn,a&&Object.assign(this,a)}ss.prototype.Xe=function(a){this.H=a},ss.prototype.canStart=function(){return!0};function Da(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),ls(a.H),a.zb=!0)}function wl(a){if(a.Jd&&a.zb){var y=a.ce,E=a.H,x=a.Zd.contains("Model");x&&(a.Ok=!0,a.Pk===Hi?(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===ao&&y.vc.clear(),a.Qw=!!(a.Pk===Hr&&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(),fr(y,E),a.Ok=!1,E.N()):(a.Zd.clear(),E.kg=!1,x=y.vc.get(E),E.autoScale!==Ms&&x!==null&&(delete x.start.scale,delete x.end.scale),Rn.requestAnimationFrame(function(){a.zb===!1||y.bc||(E.Gf("temporaryPixelRatio")&&el(E),Pg(E),a.zb=!1,y.start(),y.bc&&(Bl(a),E.Ya(),Xl(y,0),ql(E,!0),Zu(a),E.R("AnimationStarting",a)))}))}}function Ss(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function fu(a,y,E,x){a.isTicking||Ss(a)||y instanceof qn&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",E,x,!1)}ke=ss.prototype,ke.fv=function(a){return this.ce.fv(a)},ke.Xu=function(a){return this.ce.Xu(a)};function Lu(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 Bt&&oe.diagram!==null||oe instanceof tn){re=!0;break e}}re=!1}re?ya(ee,!1):ee.Xk=!0}}b.pu.clear(),b.bc!==!1&&(Bl(b),ql(b.H),Zu(b)),Rn.requestAnimationFrame(E)}}var x=a.Ei,b=a;a.bc?a.Sr.add(y):(a.bc=!0,x.add(y),Rn.requestAnimationFrame(function(){E()}))}function dd(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function Bl(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 Zu(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(),fr(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),fr(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),ho(this.ce,y,"position",y.position,y.position),pe(this,a))};function _d(a,y,E){!a.zb||y.D(E)||Ss(a)||(a.H.pi||(y=E.copy()),ho(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 Ft(){function a(E,x,b,z,ee,re){E.position=new lt(z(ee,x.x,b.x-x.x,re),z(ee,x.y,b.y-x.y,re))}var y=new Ti;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 lt(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 lt(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 lt(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 lt(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 gn(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)}),Hn=y}Rt.Object.defineProperties(ss.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&&ii(a,">= 1",ss,"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}}}),ss.prototype.stopAnimation=ss.prototype.Cc;var Hn=null,Si=!1,Hi=new wn(ss,"Default",1),Hr=new wn(ss,"AnimateLocations",2),ao=new wn(ss,"None",3);ss.className="AnimationManager",ss.defineAnimationEffect=function(a,y){Si||(Ft(),Si=!0),Hn.add(a,y)},ss.Default=Hi,ss.AnimateLocations=Hr,ss.None=ao;function mi(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=gu,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=xo,this.vc=new Ti,this.Tt=new Ti,this.yl=new Bn,this.Ut=new Bn,this.dw=gd,a&&Object.assign(this,a)}mi.prototype.suspend=function(){this.Xk=!0},mi.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,ya(this,!0),Bl(this.Yd),ql(this.H),Zu(this.Yd),this.H.redraw()};function fr(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=mi.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 tn?a=E:E instanceof Bt&&(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===Hi&&this===y.defaultAnimation&&(this.Lp=Ku,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=ef),Bl(y),this.yl.each(function(x){x.data=null,a.add(x)}),Zu(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,Lu(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 tn?this.H=a:a instanceof Bt&&a.diagram!==null&&(this.H=a.diagram)),a instanceof _i){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return ho(this,a,y,E,x,b),this};function ho(a,y,E,x,b,z){var ee=a.vc;if(y instanceof tn&&E==="position"&&(E="position:diagram"),(E==="fill"||E==="stroke"||E==="background"||E==="areaBackground")&&(Qc(x),uv(),x=[Hl.j,Hl.u,Hl.o,Hl.F],Qc(b),uv(),b=[Hl.j,Hl.u,Hl.o,Hl.F]),ee.contains(y)){var re=ee.I(y),oe=re.start,ce=re.end;oe[E]===void 0&&(oe[E]=Wo(x)),ce[E]=Wo(b)}else oe={},ce={},oe[E]=Wo(x),ce[E]=Wo(b),re=oe.position,y instanceof Bt&&re instanceof lt&&!re.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&re.assign(ce.position),re=new Iu(oe,ce,z),ee.add(y,re);ee=oe[E],ee instanceof lt&&!ee.w()&&ee.assign(a.o),z&&E.indexOf("position:")===0&&y instanceof _i?re.Ku.location=Wo(y.location):z&&(re.Ku[E]=Wo(x))}function Wo(a){return a instanceof lt||a instanceof ri?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 ya(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),Bl(E),Xl(a,b),ql(a.H,!0),Zu(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 Xl(a,y){for(var E=a.Gd,x=a.vc.iterator,b=a.Wk;x.next();){var z=x.key;if(!(z instanceof Bt&&z.diagram===null)){var ee=x.value,re=b?ee.end:ee.start;ee=b?ee.start:ee.end;var oe=Hn,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,Bl(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=Hn;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 _i&&(ee.location=fe.location),re.nv&&ee instanceof _i&&ee.Zb(!1)}if(y.As.clear(),Kh(y,!1),y.Ya(),y.N(),ql(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()}ql(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Zu(E),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),fr(this,null),E.Ml(this),y.$b())}},ke.Cj=function(a,y){var E=y.actualBounds,x=null;if(y instanceof ir&&(x=y.placeholder),x!==null?(E=x.ga(Yi),x=x.padding,E.x+=x.left,E.y+=x.top,this.add(a,"position",E,a.position,!1)):this.add(a,"position",new lt(E.x+E.width/2,E.y+E.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof ir)for(a=a.memberParts;a.next();)x=a.value,x instanceof di&&this.Cj(x,y)},ke.Aj=function(a,y){if(a.isVisible()){var E=null;if(y instanceof ir&&(E=y.placeholder),E!==null){var x=E.ga(Yi);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 ir)for(a=a.memberParts;a.next();)x=a.value,x instanceof di&&this.Aj(x,y)}},ke.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},Rt.Object.defineProperties(mi.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&ii(a,">= 1",mi,"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:pt("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}}}),mi.prototype.getTemporaryState=mi.prototype.Ez,mi.prototype.stop=mi.prototype.stop,mi.prototype.add=mi.prototype.add,mi.prototype.addTemporaryPart=mi.prototype.Iy;function gu(a,y,E,x){return a/=x/2,1>a?E/2*a*a+y:-E/2*(--a*(a-2)-1)+y}function Ku(a,y,E,x){return a===x?y+E:E*(-Math.pow(2,-10*a/x)+1)+y}mi.className="Animation",mi.EaseLinear=function(a,y,E,x){return E*a/x+y},mi.EaseInOutQuad=gu,mi.EaseInQuad=function(a,y,E,x){return E*(a/=x)*a+y},mi.EaseOutQuad=function(a,y,E,x){return-E*(a/=x)*(a-2)+y},mi.EaseInExpo=function(a,y,E,x){return a===0?y:E*Math.pow(2,10*(a/x-1))+y},mi.EaseOutExpo=Ku;function Iu(a,y,E){this.start=a,this.end=y,this.Ku={},this.Hu=E,this.nv=!1}Iu.className="AnimationState";function $s(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=Tl))}$s.prototype.copy=function(){var a=new $s(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 _l(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))}Rt.Object.defineProperties($s.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 wn($s,"Default",1),Tl=new wn($s,"Immediate",2),Sh=new wn($s,"Bundled",3);$s.className="AnimationTrigger",$s.Default=Cc,$s.Immediate=Tl,$s.Bundled=Sh;function Wa(a){br(this),this.H=null,this.Pa=new Gn,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=Wa.prototype,ke.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var E=a.s[y];E.Ig=null,bs(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 ir?b++:oe instanceof di?x++:oe instanceof qn?z++:oe instanceof Gr?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&&pr(x)&&(re+=" #"+pr(x)),E instanceof di?re+=" "+ji(x):E instanceof qn&&(re+=" "+ji(E.fromNode)+" "+ji(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=lt.alloc(),z=this.Pa.s,ee=z.length;ee--;){var re=z[ee];if((x!==!0||Kd(re)!==!1)&&re.isVisible()&&(b.assign(a),wr(b,re.oe),re=re.ic(b,y,E),re!==null&&(y!==null&&(re=y(re)),re!==null&&(E===null||E(re)))))return lt.free(b),re}return lt.free(b),null},ke.ji=function(a,y,E,x){if(y===void 0&&(y=null),E===void 0&&(E=null),x instanceof Gn||x instanceof Bn||(x=new Bn),this.Uh===!1)return x;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var z=lt.alloc(),ee=this.Pa.s,re=ee.length;re--;){var oe=ee[re];if((b!==!0||Kd(oe)!==!1)&&oe.isVisible()){z.assign(a),wr(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 lt.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 Gn||b instanceof Bn||(b=new Bn),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||Kd(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||Kd(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 Gn||b instanceof Bn)&&(z=b),b=!0),z instanceof Gn||z instanceof Bn||(z=new Bn),this.Uh===!1)return z;var ee=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ee=!0);for(var re=lt.alloc(),oe=lt.alloc(),ce=this.Pa.s,fe=ce.length;fe--;){var ye=ce[fe];if((ee!==!0||Kd(ye)!==!1)&&ye.isVisible()){re.assign(a),wr(re,ye.oe),oe.h(a.x+y,a.y),wr(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 lt.free(re),lt.free(oe),z},ke.Fd=function(a,y){if(this.visible){var E=this.Pa.s,x=E.length;if(x!==0){a=wi();for(var b=wi(),z=0;z<x;z++){var ee=E[z];if(ee.vw=z,ee instanceof qn){if(ee.fd===!1)continue}else if(ee instanceof Gr&&ee.adornedPart!==null)continue;var re=ee.actualBounds;ee.isVisible()&&Ln(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]);ai(a),ai(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=gn.alloc(),oe=0;oe<x;oe++)this.Oj(a,E[oe],y,z,ee,re,!0);if(gn.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=gn.alloc(),fe=0;fe<z;fe++){var ye=b[fe];x.contains(ye)&&a.Oj(y,ye,E,re,oe,ce,!1)}gn.free(ce),y.globalAlpha=ee}}}ke.Oj=function(a,y,E,x,b,z,ee){if(ee&&!Kd(y))a.Hs(y);else{if(x!==null&&y instanceof qn&&(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 Al?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&&(ta(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(ta(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),ta(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(To,a,this,y,E,x,b)},ke.oi=function(a,y,E){var x=this.Pa;if(y.Ig=this,this===null&&bs(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,bs(y),a};function Mf(a,y,E){if(y=Jp(a,y,E),E instanceof ir&&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}Rt.Object.defineProperties(Wa.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===""&&pt("Cannot rename default Layer to: "+a),E=E.layers;E.next();)E.value.name===a&&pt("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)&&ii(a,"0 <= value <= 1",Wa,"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))}}}),Wa.prototype.findObjectsNear=Wa.prototype.og,Wa.prototype.findObjectsIn=Wa.prototype.Cf,Wa.prototype.findObjectsAt=Wa.prototype.ji,Wa.prototype.findObjectAt=Wa.prototype.ic,Wa.className="Layer";function tn(a,y){if(dm||(Es(),dm=!0),br(this),Nc=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,$o){var E=this,x=function(){E.removeEventListener(Rn.document,"DOMContentLoaded",x,!1),E.setRTL()};Rn.document.body!==null?this.setRTL():E.addEventListener(Rn.document,"DOMContentLoaded",x,!1)}this.ol=null,jf.add("Model",io);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===To&&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 jo,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"||Rn.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 ss,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new Gn,a.pj=new Ti,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new lt(NaN,NaN).freeze(),a.du=new lt(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new lt(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new tr,a.zu=new lt(NaN,NaN).freeze(),a.ut=new gn(NaN,NaN,NaN,NaN).freeze(),a.rj=new dr(0,0,0,0).freeze(),a.sj=gd,a.nu=!1,a.Zt=null,a.fu=null,a.yh=Ms,a.zk=Ca,a.Fg=Ms,a.pq=Ca,a.yt=Yi,a.Bt=Yi,a.Fc=!0,a.pn=!1,a.De=new Bn,a.Eh=new Ti,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new dr(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 Bn,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 Ti,a.Xn=new Gn,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 dr(5).freeze(),a.Hw=new Bn().freeze(),a.Nt=999999999,a.nw=new Bn().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 Bn,a.ow=new Bn,a.Xh=null,a.aw=new ri(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new lt,bounds:new gn,Py:new ri,bA:new ri,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new gn(NaN,NaN,NaN,NaN).freeze(),a.wo=new ri(NaN,NaN).freeze(),a.Sp=new gn(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new Ti;var y=new di,E=new So;E.bind(new fa("text","",ji)),y.add(E),a.ny=y,a.Lg.add("",y),y=new di,E=new So,E.stroke="brown",E.bind(new fa("text","",ji)),y.add(E),a.Lg.add("Comment",y),y=new di,y.selectable=!1,y.avoidable=!1,E=new gr,E.figure="Ellipse",E.fill="black",E.stroke=null,E.desiredSize=new ri(3,3).ja(),y.add(E),a.Lg.add("LinkLabel",y),a.Yi=new Ti,y=new ir,y.selectionObjectName="GROUPPANEL",y.type=Vn.Vertical,E=new So,E.font="bold 12pt sans-serif",E.bind(new fa("text","",ji)),y.add(E),E=new Vn(Vn.Auto),E.name="GROUPPANEL";var x=new gr;x.figure="Rectangle",x.fill="rgba(128,128,128,0.2)",x.stroke="black",E.add(x),x=new Hs,x.padding=new dr(5,5,5,5).ja(),E.add(x),y.add(E),a.ly=y,a.Yi.add("",y),a.Kh=new Ti,y=new qn,E=new gr,E.isPanelMain=!0,y.add(E),E=new gr,E.toArrow="Standard",E.fill="black",E.stroke=null,E.strokeWidth=0,y.add(E),a.my=y,a.Kh.add("",y),y=new qn,E=new gr,E.isPanelMain=!0,E.stroke="brown",y.add(E),a.Kh.add("Comment",y),y=new Gr,y.type=Vn.Auto,E=new gr,E.fill=null,E.stroke="dodgerblue",E.strokeWidth=3,y.add(E),E=new Hs,E.margin=new dr(1.5,1.5,1.5,1.5).ja(),y.add(E),a.St=y,a.wt=y,y=new Gr,y.type=Vn.Link,E=new gr,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 io,a.toolManager=new No,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=po,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 lt,a.zy=500,a.wp=new lt,a.wq=!1}tn.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 Bn().freeze(),a.nw=new Bn().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}tn.prototype.reset=function(){this.clear(),this.vb=!0,qp(this),fc(this),this.Wg=!0,em(this),this.layout=new jo,this.Wg=!1,this.model=fy(),this.model.undoManager=new fo,this.vb=this.rn=!1,this.N()},tn.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Rn.document.body);var y=ti("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},tn.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Rn.document.body);var y=0;if($o){var E=cm;y=jd,E===null&&(E=cm=ti("p"),E.style.width="100%",E.style.height="200px",E.style.boxSizing="content-box",y=jd=ti("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||Ji||(y=11)}this.Db=y,this.Gw=!0},tn.prototype.qb=function(a){a.classType===tn&&(this.autoScale=a)},tn.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($o){if(y!=null||pt("Diagram setup requires an argument DIV."),a.Ka!==null&&pt("Diagram has already completed setup."),typeof y=="string"?a.Ka=Rn.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:pt("No DIV or DIV id supplied: "+y),a.Ka===null&&pt("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&pt("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Rn.ResizeObserver){var E=qt(function(){a.$b()},250);a.ol=new Rn.ResizeObserver(function(){E()}),a.ol.observe(a.Ka)}Rn.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=Rn.go;var b=new vu(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",Rn.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 vu(null),b.width=1,b.height=1,a.jw=b,a.oy=b.context,$o){b=ti("div");var z=ti("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=qt(function(){a.Yh=null,a.N()},300),a.Ov=qt(function(){Pg(a)},250),a.preventDefault=function(ee){return ee.preventDefault(),!1},a.$j=function(ee){if(a.isEnabled){var re=Jl(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(),ku(re,ee)}},a.aA=function(ee){a.isEnabled&&(a.Vk=!1,Jl(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():ku(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=Rn.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(),ku(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=Rn.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 tn&&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(),ku(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)}}tn.prototype.addEventListener=function(a,y,E,x){a.addEventListener(y,E,{capture:x,passive:!1})},tn.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(Rn,"resize",a.Ov,!1)}function el(a){30<a.Sq&&(a.Yh=1)}function Kh(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Fi&&Fi.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}tn.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Rn.devicePixelRatio||1},tn.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},tn.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},tn.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},tn.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},tn.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},tn.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},tn.prototype.doFocus=function(){this.focus()},tn.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Rn.scrollX||Rn.pageXOffset,y=Rn.scrollY||Rn.pageYOffset;this.ta.focus(),Rn.scrollTo(a,y)}},tn.prototype.Oy=function(){this.H.R("GainedFocus")},tn.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===Ms&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function em(a){var y=new Wa;y.name="Background",a.Al(y),y=new Wa,y.name="",a.Al(y),y=new Wa,y.name="Foreground",a.Al(y),y=new Wa,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Wa,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Wa,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 Vn(Vn.Grid);y.name="GRID";var E=new gr;return E.figure="LineH",E.stroke="lightgray",E.strokeWidth=.5,E.interval=1,y.add(E),E=new gr,E.figure="LineH",E.stroke="gray",E.strokeWidth=.5,E.interval=5,y.add(E),E=new gr,E.figure="LineH",E.stroke="gray",E.strokeWidth=1,E.interval=10,y.add(E),E=new gr,E.figure="LineV",E.stroke="lightgray",E.strokeWidth=.5,E.interval=1,y.add(E),E=new gr,E.figure="LineV",E.stroke="gray",E.strokeWidth=.5,E.interval=5,y.add(E),E=new gr,E.figure="LineV",E.stroke="gray",E.strokeWidth=1,E.interval=10,y.add(E),E=new _i,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)}tn.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,Re=b.right,We=b.bottom;b=this.scale;var ht=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":ht=ht+a.scrollWidth-a.clientWidth;break;case"reverse":ht=a.scrollWidth-ht-a.clientWidth}var it=ht;Ne<oe||Pe<ce?(ht=lt.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==it&&(ht.x=it/b+ee,this.ju=it),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(ht.y=a.scrollTop/b+re,this.lu=a.scrollTop),this.position=ht,lt.free(ht),this.Ee=this.qr=!1):(ht=lt.alloc(),a.uy&&this.allowHorizontalScroll&&(ee<ye&&(this.position=ht.h(it+ee,this.position.y)),fe>Re&&(this.position=ht.h(-(y.scrollWidth-this.Aa)+it-this.Aa/b+fe,this.position.y))),a.vy&&this.allowVerticalScroll&&(re<x&&(this.position=ht.h(this.position.x,a.scrollTop+re)),z>We&&(this.position=ht.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),lt.free(ht),this.vd=!0,this.Ee=this.qr=!1,x=this.documentBounds,b=this.viewportBounds,fe=x.right,Re=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<=Re&&(E.style.width="1px"),Pe>=ce&&re>=x&&z<=We&&(E.style.height="1px"))}},tn.prototype.computeBounds=function(a){return a===void 0&&(a=new gn),ls(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}tn.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var E=null;if($n(a))for(var x=0;x<a.length;x++){var b=a[x];!y&&b instanceof qn||(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 qn||(x.Va(),E===null?E=x.actualBounds.copy():E.ed(x.actualBounds));return E===null?new gn(NaN,NaN,0,0):E};function pu(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=lt.alloc(),E.xi(a.documentBounds,a.initialDocumentSpot);var x=a.viewportBounds;x=gn.allocAt(0,0,x.width,x.height);var b=lt.alloc();b.xi(x,a.initialViewportSpot),b.h(E.x-b.x,E.y-b.y),a.position=b,gn.free(x),lt.free(b),lt.free(E)}E=a.yh,y&&a.Fg!==Ms&&(E=a.Fg);var z=E!==Ms?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()?lr:oe),Ig(a,a.documentBounds,b,ee,re,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,jt.B(z.x,E)&&jt.B(z.y,x)&&jt.B(z.width,b)&&jt.B(z.height,ee)||a.onViewportBoundsChanged(new gn(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===jl?(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}tn.prototype.zoomToFit=function(){var a=this.sj;this.sj=gd,this.scale=Eh(this,jl),a!==gd&&(pu(this,!1),Ig(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},ke=tn.prototype,ke.BA=function(a,y){y===void 0&&(y=jl);var E=a.width,x=a.height;if(!(E===0||x===0||isNaN(E)&&isNaN(x))){var b=1;if(y===jl||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 lt(a.x,a.y)}},ke.Jy=function(a,y){this.Va();var E=this.documentBounds,x=this.viewportBounds;this.position=new lt(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 Bt){this.eq=a;var y=lt.alloc();this.fq=this.op(a.ga(Yi,y)),lt.free(y)}else this.eq=null,this.fq=po};function Ig(a,y,E,x,b,z){var ee=lt.allocAt(a.pa.x,a.pa.y),re=ee.x,oe=ee.y;if(a.eq!==null){var ce=lt.alloc();ce=a.eq.ga(Yi,ce),re=ce.x-a.fq.x/a.scale,oe=ce.y-a.fq.y/a.scale,b=Ci,lt.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),lt.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 _i)return a}else if(a=Mc(this,a,function(E){return E.part}),a instanceof _i)return a;return null},ke.ic=function(a,y,E){y===void 0&&(y=null),E===void 0&&(E=null),ls(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),ls(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),Qh(this,a,function(x){return x.part},y?function(x){return x instanceof _i&&x.canSelect()}:null,E)};function Qh(a,y,E,x,b){for(E===void 0&&(E=null),x===void 0&&(x=null),b instanceof Gn||b instanceof Bn||(b=new Bn),ls(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 Gn||x instanceof Bn||(x=new Bn),ls(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 _i&&(!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 Gn||b instanceof Bn||(b=new Bn),ls(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 Bn;ls(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 Gn||b instanceof Bn||(b=new Bn),ls(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 _i&&(!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 Gn||b instanceof Bn)&&(z=b),b=!0),z instanceof Gn||z instanceof Bn||(z=new Bn),ls(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 Gn||b instanceof Bn)&&(z=b),b=!0),z instanceof Gn||z instanceof Bn||(z=new Bn),ls(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}tn.prototype.acceptEvent=function(a){return Jl(this,a,a instanceof MouseEvent)};function Jl(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),Ji&&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,Ji&&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 ku(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}tn.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var E=Jl(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(),ku(E,a)},tn.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var E=Jl(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(),ku(E,a)},tn.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var E=Jl(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(E),y.currentTool.standardMouseOver(),ku(E,a)},tn.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var E=Jl(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(E),ku(E,a)},tn.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new lt(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?wr(new lt(y,a),this.Ab):new lt(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=lt.allocAt(ee,re),a.Ab.Cd(y),E.documentPoint.assign(y),lt.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))}}tn.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function rm(a){a.ld||ls(a),a.Va()}tn.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},ke=tn.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,ql(this),this.hf=!1,this.du=new lt(NaN,NaN),y.isEnabled=E,this.ld=!0;var x=this;a!==null&&Gt(function(){x.ld=!1,Da(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;Rn.requestAnimationFrame(function(){y.kg&&y.bd()})}},ke.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),ql(this))};function zd(a,y,E){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Th(a)||(y&&ls(a),E&&pu(a,!1))}function ql(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];ba(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)),ls(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,ls(a),a.ou||rm(a),zd(a,!0,!1),ee=!1,z?(E=gn.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),gn.free(E)):E.Ok&&E.Qw&&(a.Fg!==Ms?a.scale=Eh(a,a.Fg):a.yh!==Ms?a.scale=Eh(a,a.yh):(E=a.initialScale,isFinite(E)&&0<E&&(a.scale=E)),pu(a,!0)),z&&ee&&a.eb("Initial Layout"),ls(a),y||a.gc(a.ib),b&&(a.skipsUndoManager=x),a.ld=!1}}function Rg(a){if(a.Fg!==Ms)a.scale=Eh(a,a.Fg);else if(a.yh!==Ms)a.scale=Eh(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}pu(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 ls(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 Bn,a.Nv(E,a.De)}a.nodes.each(function(x){x instanceof ir&&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 ir||(E.si()?(E.measure(1/0,1/0),E.arrange()):y.add(E))}for(a.reset();a.next();)E=a.value,E instanceof ir&&E.isVisible()&&Jh(this,E);for(a.reset();a.next();)E=a.value,E instanceof qn&&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 Gr&&E.isVisible()&&(E.si()?(E.measure(1/0,1/0),E.arrange()):y.add(E))};function Jh(a,y){for(var E=wi(),x=wi(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof ir?(Ul(z)||zs(z)||Zd(z))&&Jh(a,z):z instanceof qn?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(ai(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();ai(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&&pt("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&&(tr.prototype.Cd=tr.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&&(tr.prototype.Cd=tr.prototype.Eu),x?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+E,x=Fi&&Fi.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&&pt("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 gn(z.x,z.y,x.width/b,x.height/b),Re=Pe.copy();Re.Co(E),hc(a,Re),ls(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 ht=tr.alloc();ht.reset(),ht.translate(E.left,E.top),ht.scale(b),z.x===0&&z.y===0||ht.translate(-z.x,-z.y),y.setTransform(ht.m11,ht.m12,ht.m21,ht.m22,ht.dx,ht.dy),y.yc(),y instanceof Al&&$y(y,ht.m11,ht.m12,ht.m21,ht.m22,ht.dx,ht.dy),tr.free(ht),hd(a,y),y.globalAlpha=a.pb;var it=a.Qj("Grid");if(ee){var vt=new Bn,St=ee.iterator;for(St.reset();St.next();){var wt=St.value;wt instanceof _i&&(ce||wt.layer!==it)&&(wt.Gj(),vt.add(wt))}for(ce=0;ce<Ne;ce++)Xp(ye[ce],y,a,vt,oe);vt.each(function($t){return $t.Gj()})}else for(vt=0;vt<Ne;vt++){var Ot=ye[vt];Ot===it?ce&&Ot.gc(y,a,!0):Ot.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 Al&&(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 Bi,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Ji||Jt),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 Bi,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 Vn,x=a instanceof tn,b;for(b in y){b===""&&pt("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])),Ut(z)?ee=b.substr(re+1):pt("Unable to find object named: "+oe+" in "+a.toString()+" when trying to set property: "+b)}}if(ee[0]!=="_"&&!Ki(z,ee))if(x&&ee==="ModelChanged"){a.Yw(y[ee]);continue}else if(x&&ee==="Changed"){a.Pe(y[ee]);continue}else if(x&&Ki(a.toolManager,ee))z=a.toolManager;else if(x&&sm(a,ee)){a.Bj(ee,y[ee]);continue}else if(a instanceof Pi&&ee==="Changed"){a.Pe(y[ee]);continue}else pt('Trying to set undefined property "'+ee+'" on object: '+z.toString());z[ee]=y[b],ee[0]==="_"&&z instanceof Bt&&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 Ti,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")},tn.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=gn.alloc(),Gg(this,this.computeBounds(x)),gn.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=wi(),a=wi(),Pe=Math.abs(z),Ne=Math.abs(y);var Re=fe===0?0:b-Pe;fe=lt.allocAt(Re,0),Pe=lt.allocAt(Pe+Re,re),a.push(new gn(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),wr(fe,We),wr(Pe,We),x.push(new gn(Math.min(fe.x,Pe.x),Math.min(fe.y,Pe.y),Math.abs(fe.x-Pe.x),Math.abs(fe.y-Pe.y))),Re=ye===0?0:re-Ne,fe.h(0,Re),Pe.h(b,Ne+Re),a.push(new gn(Math.min(fe.x,Pe.x),Math.min(fe.y,Pe.y),Math.abs(fe.x-Pe.x),Math.abs(fe.y-Pe.y))),wr(fe,We),wr(Pe,We),x.push(new gn(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 gn(Math.min(fe.x,Pe.x),Math.min(fe.y,Pe.y),Math.abs(fe.x-Pe.x),Math.abs(fe.y-Pe.y))),wr(fe,We),wr(Pe,We),x.push(new gn(Math.min(fe.x,Pe.x),Math.min(fe.y,Pe.y),Math.abs(fe.x-Pe.x),Math.abs(fe.y-Pe.y)))),lt.free(fe),lt.free(Pe),zd(this,!1,!0),this.Ka===null&&pt("No div specified"),this.ta===null&&pt("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=gn.alloc(),Pe=ee.Pa.s,We=Pe.length,Re=oe.length;for(var ht=0;ht<We;ht++){var it=Pe[ht],vt=Fh(it,it.actualBounds);e:{for(var St=2/fe,wt=4/fe,Ot=0;Ot<Re;Ot++){var $t=oe[Ot];if($t.width!==0&&$t.height!==0&&vt.Vu($t.x-St,$t.y-St,$t.width+wt,$t.height+wt)){vt=!0;break e}}vt=!1}vt&&ee.Oj(b,it,this,ye,fe,Ne,!0)}gn.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()}ai(x),ai(a),this.ld=!1}}else this.bd();E&&(el(this),this.bd(),Kh(this,!0))}else E?(el(this),this.bd(),Kh(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 Re=a.ku,We=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var ht=a.documentBounds,it=0,vt=0,St=0,wt=0,Ot=fe.width,$t=fe.height,li=a.rj;a.contentAlignment.sb()?(ht.width>Ot&&(it=li.left,vt=li.right),ht.height>$t&&(St=li.top,wt=li.bottom)):(it=li.left,vt=li.right,St=li.top,wt=li.bottom);var Ai=ht.width+it+vt,yi=ht.height+St+wt;li=a.scale;var Xn=Ai>oe/li,On=yi>ce/li;if(!(z||a.gf||a.Be||Xn||On))return!0;it=ht.x-it,oe=fe.x,vt=ht.right+vt,ce=fe.right+ee,St=ht.y-St;var nr=fe.y;ht=ht.bottom+wt,fe=fe.bottom+re;var Xi="1px";if(wt="1px",a.scrollMode===gd&&(Xn||On)&&(Xn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Xn=1,it+1<oe&&(Xn=Math.max((oe-it)*li+a.Aa,Xn)),vt>ce+1&&(Xn=Math.max((vt-ce)*li+a.Aa,Xn)),Ot+ee+1<Ai&&(Xn=Math.max((Ai-Ot)*li+a.Aa,Xn)),Xi=Xn.toString()+"px"),On&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Xn=1,St+1<nr&&(Xn=Math.max((nr-St)*li+a.ya,Xn)),ht>fe+1&&(Xn=Math.max((ht-fe)*li+a.ya,Xn)),$t+re+1<yi&&(Xn=Math.max((yi-$t)*li+a.ya,Xn)),wt=Xn.toString()+"px")),Xn=Xi!=="1px",On=wt!=="1px",Xn&&On||!Xn&&!On||(On&&(ce-=a.Db),Xn&&(fe-=a.Db),Ai<Ot+ee||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ee=1,it+1<oe&&(ee=Math.max((oe-it)*li+a.Aa,ee)),vt>ce+1&&(ee=Math.max((vt-ce)*li+a.Aa,ee)),Ot+1<Ai&&(ee=Math.max((Ai-Ot)*li+a.Aa,ee)),Xi=ee.toString()+"px"),Xn=Xi!=="1px",ee=a.ya,Xn!==a.Be&&(ee=Xn?a.ya-a.Db:a.ya+a.Db),yi<$t+re||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(re=1,St+1<nr&&(re=Math.max((nr-St)*li+ee,re)),ht>fe+1&&(re=Math.max((ht-fe)*li+ee,re)),$t+1<yi&&(re=Math.max((yi-$t)*li+ee,re)),wt=re.toString()+"px"),On=wt!=="1px"),a.qr&&Xn===a.Be&&On===a.gf)return E===a.Aa&&x===a.ya||a.bd(),!1;if(Xn!==a.Be&&(Xi==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=Xn,We.style.width=Xi,On!==a.gf&&(wt==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(re=lt.alloc(),On?(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)),lt.free(re))),z&&fc(a),a.gf=On,We.style.height=wt,a.gu=!0,z&&(a.pn=!0),y=Re.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Ot+1<Ai?y=(a.position.x-it)*li:it+1<oe?y=Re.scrollWidth-Re.clientWidth:vt>ce+1&&(y=a.position.x*li)),a.tn)switch(a.bu){case"negative":y=-(Re.scrollWidth-y-Re.clientWidth);break;case"reverse":y=Re.scrollWidth-y-Re.clientWidth}return Re.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&($t+1<yi?Re.scrollTop=(a.position.y-St)*li:St+1<nr?Re.scrollTop=Re.scrollHeight-Re.clientHeight:ht>fe+1&&(Re.scrollTop=a.position.y*li)),oe=a.Aa,ce=a.ya,Re.style.width=oe+(a.gf?a.Db:0)+"px",Re.style.height=ce+(a.Be?a.Db:0)+"px",E!==oe||x!==ce||a.animationManager.zb?(E=gn.allocAt(b,ye,Ne,Pe),a.onViewportBoundsChanged(E,a.viewportBounds,li,z),gn.free(E),!1):!0}ke=tn.prototype,ke.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&pt("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&&pt('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(Jo,"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 Gr||a instanceof ir&&a.placeholder!==null)&&a.v(),a.data!==null&&Dh(a,function(E){cy(y.partManager,E)}),zs(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(ea,"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),$n(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 Bn,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)},tn.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 Ti;if(a!==null)if($n(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 di){if(y.add(E,a.Pd(b,E,E.location)),E instanceof ir&&(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 qn)for(y.add(E,a.Pd(b,E)),E=E.labelNodes;E.next();)Pc(a,y,E.value,x,b);else E instanceof Gr||y.add(E,a.Pd(b,E,E.location))}function Ud(a,y,E,x,b){if(y!==null&&y.count!==0){var z=lt.alloc(),ee=lt.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=wi(),oe=wi(),ce=y.iterator,fe=lt.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 lt),Ne.shifted.assign(fe.re(Pe)))}else ce.key instanceof qn&&oe.push(ce.sa)}for(lt.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 lt),ye.node.location=z.add(ye.Su.shifted);for(b=lt.alloc(),ce=lt.alloc(),ye=oe.length,Ne=0;Ne<ye;Ne++){var Re=oe[Ne];if(Pe=Re.key,Pe instanceof qn)if(Pe.suspendsRouting){Pe.Tg=null,fe=Pe.fromNode;var We=Pe.toNode;if(a.draggedLink!==null&&x.dragsLink)if(We=Re.value.point,Pe.dragComputation===null)y.add(Pe,a.Pd(x,Pe,ee)),bd(Pe,ee.x-We.x,ee.y-We.y);else{Re=lt.allocAt(0,0),(fe=Pe.i(0))&&fe.w()&&Re.assign(fe);var ht=fe=lt.alloc().assign(Re).add(ee);x.isGridSnapEnabled&&(x.isGridSnapRealtime||a.lastInput.up)&&(ht=lt.alloc(),kf(a,Pe,fe,ht,x)),fe.assign(Pe.dragComputation(Pe,fe,ht)).re(Re),y.add(Pe,a.Pd(x,Pe,fe)),bd(Pe,fe.x-We.x,fe.y-We.y),lt.free(Re),lt.free(fe),ht!==fe&&lt.free(ht)}else fe!==null&&(b.assign(fe.location),ht=y.I(fe),ht!==null&&b.re(ht.point)),We!==null&&(ce.assign(We.location),ht=y.I(We),ht!==null&&ce.re(ht.point)),fe!==null&&We!==null?b.Xa(ce)?(fe=Re.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()):(Re=Re.value.point,fe=fe!==null?b:We!==null?ce:ee,y.add(Pe,a.Pd(x,Pe,fe)),bd(Pe,fe.x-Re.x,fe.y-Re.y))}else(Pe.fromNode===null||Pe.toNode===null)&&(fe=Re.value.point,y.add(Pe,a.Pd(x,Pe,ee)),bd(Pe,ee.x-fe.x,ee.y-fe.y))}lt.free(z),lt.free(ee),lt.free(b),lt.free(ce),ai(re),ai(oe),E||(ls(a),Hd(a,y))}}tn.prototype.computeMove=function(a,y,E,x){if(x===void 0&&(x=new lt),x.assign(y),a===null)return x;var b=y,z=E.isGridSnapEnabled;z&&(E.isGridSnapRealtime||this.lastInput.up)&&(b=lt.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&&lt.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=lt.allocAt(0,0),z.yi(0,0,a,y,b),jt.No(E.x,E.y,re+z.x,ee+z.y,a,y,x),lt.free(z)}}function Df(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof qn&&(y.suspendsRouting=!0)}function Hd(a,y){if(y!==null){for(y=y.iterator;y.next();){var E=y.key;E instanceof qn&&(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=tn.prototype,ke.Pd=function(a,y,E){if(E===void 0)return new Zc(xo);var x=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(x=!1),x?new Zc(new lt(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&&pt("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),E===null?y.diagram!==null&&pt("Cannot add an existing Layer to this Diagram again: "+y):(E.diagram!==a&&pt("Existing Layer must be in this Diagram: "+E+" not in "+E.diagram),y===E&&pt("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&&pt("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(Jo,"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(ea,"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(Jo,"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(ea,"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(Jo,"layers",this,null,a,null,z+1),this.N(),0>x&&this.Ya(),this},ke.kA=function(a){if(a.diagram!==this&&pt("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(ea,"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 Gn),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 Gn),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!==ys&&(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 Ro;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(To,a,this,y,E,x,b)},tn.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===To){var b=a.object;if(Fo(b,a.propertyName,a.I(y)),b instanceof Bt){var z=b.part;z!==null&&z.Wb()}this.isModified=!0}else if(x===Jo){var ee=a.object,re=a.newParam,oe=a.newValue;if(ee instanceof Vn)if(typeof re=="number"&&oe instanceof Bt){y?ee.pc(re):ee.Gb(re,oe);var ce=ee.part;ce!==null&&ce.Wb()}else typeof re=="number"&&oe instanceof wa&&(oe.isRow?p1(ee,re,y?void 0:oe):m1(ee,re,y?void 0:oe));else if(ee instanceof Wa){var fe=a.oldParam===!0;typeof re=="number"&&oe instanceof _i&&(y?(oe.isSelected=!1,oe.isHighlighted=!1,oe.Wb(),ee.pc(fe?re:-1,oe,fe)):ee.oi(re,oe,fe))}else ee instanceof tn?typeof re=="number"&&oe instanceof Wa&&(y?this.Wa.mb(re):(oe.Xe(this),this.Wa.Gb(re,oe))):pt("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(x===ea){var ye=a.object,Ne=a.oldParam,Pe=a.oldValue;if(ye instanceof Vn)typeof Ne=="number"&&Pe instanceof Bt?y?ye.Gb(Ne,Pe):ye.pc(Ne):typeof Ne=="number"&&Pe instanceof wa&&(Pe.isRow?p1(ye,Ne,y?Pe:void 0):m1(ye,Ne,y?Pe:void 0));else if(ye instanceof Wa){var Re=a.newParam===!0;typeof Ne=="number"&&Pe instanceof _i&&(y?0>ye.Pa.indexOf(Pe)&&ye.oi(Ne,Pe,Re):(Pe.isSelected=!1,Pe.isHighlighted=!1,Pe.Wb(),ye.pc(Re?Ne:-1,Pe,Re)))}else ye instanceof tn?typeof Ne=="number"&&Pe instanceof Wa&&(y?(Pe.Xe(this),this.Wa.Gb(Ne,Pe)):this.Wa.mb(Ne)):pt("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else x!==ys&&pt("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=E}}},tn.prototype.Ea=function(a){return this.undoManager.Ea(a)},tn.prototype.eb=function(a){return this.undoManager.eb(a)},tn.prototype.Kf=function(){return this.undoManager.Kf()},tn.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}},tn.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},tn.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&&(Ss(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(ms)?re=0:ce.Hf(Ko)&&(re=z-1):re=ce.sb()?ce.x*(z-1):z/2),isNaN(oe)&&(ce.$c()?ce.Hf(aa)?oe=0:ce.Hf(Aa)&&(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=lt.allocAt(a.pa.x+re/y-re/E,a.pa.y+oe/y-oe/E),a.position=z,lt.free(z),a.Ca=E,fc(a),a.vb=!1,a.onViewportBoundsChanged(b,a.viewportBounds,y,!1),pu(a,!1),x.zb&&(Ss(x)||x.ce.add(x.H,"scale",y,a.Ca))}}tn.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!==Ms||a.width===y.width&&a.height===y.height||b.C(),b=this.currentTool,this.Vk===!0&&b instanceof No&&(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=ri.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/jt.vx(z,fe):b=b*fe/jt.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=gn.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){gn.free(y);return}b=y.width,z=y.height,a=y.x,ee=y.y,gn.free(y)}E.width=b+2*x.width,E.height=z+2*x.height,y=lt.alloc(),jt.No(a,ee,0,0,x.width,x.height,y),y.offset(-x.width,-x.height),ri.free(x),E.part.location=y,lt.free(y)}}tn.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)}},tn.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))},tn.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),$n(a))for(var y=a.length,E=0;E<y;E++){var x=a[E];x instanceof _i||pt("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 _i||pt("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},tn.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=tn.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 Bn().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 _i||pt("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=lt.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)),lt.free(z);return}pt("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):pt("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),lt.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 gn(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),wr(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 io}tn.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var E=a.change,x=a.propertyName;if(E===ys&&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===ys){(x==="FinishedUndo"||x==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),ls(this));var z=this.animationManager;x==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||wl(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;Gt(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 rl){var E=y.element;if(E!==null&&E instanceof HTMLImageElement){E.Bg instanceof Bn&&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 rl){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 Bn&&E.Bg.remove(a),qf(x));break}}}}}tn.prototype.Wd=function(){this.partManager.Wd()},tn.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},tn.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},tn.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},tn.prototype.Vb=function(a){return this.partManager.Vb(a)},tn.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},ke=tn.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:ki(Ii(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:ki(Ii(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),pu(a,!1),a.R("DocumentBoundsChanged",void 0,E),a.Ee=!0,a.N())}ke.Va=function(){if(this.Zi){var a=gn.alloc();Gg(this,this.computeBounds(a)),gn.free(a)}},ke.rz=function(){for(var a=new Bn,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){ls(this),a&&Of(this,!0),this.ld?Yg(this,!1):(this.Jk=!0,ql(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||Da(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),ls(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||wl(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 Gn,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 Gn;E.add(b,ee),E.add(z,ee),x.add(b,b),x.add(z,b)}var E=new Ti,x=new Ti;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;pt("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 Tu;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)},tn.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=gn.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)}gn.free(y)}else{for(0<E.memberParts.count&&(y=a.computePartsBounds(E.memberParts,!1),y.Bc(20,20),b.initialize(y)),y=gn.alloc(),z=E.memberParts;z.next();)ee=z.value,ee instanceof di&&_f(a,ee,x,y);gn.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 ir)for(y=y.memberParts;y.next();)b=y.value,b instanceof di&&_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)}tn.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=Gt(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=gn.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Gg(a,y),gn.free(y),a.Fc=!0,a.bd(),Vg(a))}},a.vp))}tn.prototype.ug=function(){this.vk!==-1&&(Rn.clearTimeout(this.vk),this.vk=-1)},tn.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=gn.allocAt(0,0,x.width*b,x.height*b);var z=lt.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(xo)||(y=new lt(y.x+z.x/b,y.y+z.y/b)),gn.free(x),lt.free(z),y},ke=tn.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 ir&&(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):Rn.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 Rn.requestAnimationFrame(function(){x()}),null}ke.Wz=function(a){return $o?(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"&&pt('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"&&pt("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 ri(1/0,1/0):new ri(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,Re=y.showTemporary;Re===void 0&&(Re=!ye),y=y.showGrid,y===void 0&&(y=Re),b!==null&&isNaN(b.width)&&isNaN(b.height)&&(b=null),typeof ce=="number"?ce=new dr(ce):ce instanceof dr||pt("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 vu(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 ri(ye.width,ye.height),a.Ca,a.pa,oe,fe,Re,y),x.context):(a.Xm=!1,Lf(a,We,ce,new ri(ye.width,ye.height),a.Ca,a.pa,oe,fe,Re,y),a.Xm=!0,ye.context);var ht=a.Pp,it=a.documentBounds.copy();if(it.Fv(a.yb),Re)for(var vt=a.Wa.s,St=vt.length,wt=0;wt<St;wt++){var Ot=vt[wt];if(Ot.visible&&Ot.isTemporary){Ot=Ot.Pa.s;for(var $t=Ot.length,li=0;li<$t;li++){var Ai=Ot[li];Ai.isInDocumentBounds&&Ai.isVisible()&&(Ai=Ai.actualBounds,Ai.w()&&it.ed(Ai))}}}if(vt=new lt(it.x,it.y),oe!==null){for(St=new gn(0,0,0,0),wt=!0,Ot=oe.iterator,Ot.reset();Ot.next();)$t=Ot.value,$t instanceof _i&&(li=$t.layer,li!==null&&!li.visible||li!==null&&!Re&&li.isTemporary||!$t.isVisible()||($t=$t.actualBounds,$t.w()&&(wt?(wt=!1,St.assign($t)):St.ed($t))));it.width=St.width,it.height=St.height,vt.x=St.x,vt.y=St.y}return re!==null&&re.w()&&(vt=re,z||(z=ht)),St=re=0,ce!==null&&(re=ce.left+ce.right,St=ce.top+ce.bottom),wt=Ot=0,b!==null&&(Ot=b.width,wt=b.height,isFinite(Ot)&&(Ot=Math.max(0,Ot-re)),isFinite(wt)&&(wt=Math.max(0,wt-St))),b!==null&&z!==null?(z==="NaN"&&(z=ht),b.w()?(b=Ot,it=wt):isNaN(wt)?(b=Ot,it=it.height*z):(b=it.width*z,it=wt)):b!==null?b.w()?(z=Math.min(Ot/it.width,wt/it.height),b=Ot,it=wt):isNaN(wt)?(z=Ot/it.width,b=Ot,it=it.height*z):(z=wt/it.height,b=it.width*z,it=wt):z!==null?z==="NaN"&&ee.w()?(z=Math.min((ee.width-re)/it.width,(ee.height-St)/it.height),z>ht?(z=ht,b=it.width,it=it.height):(b=ee.width,it=ee.height)):(b=it.width*z,it=it.height*z):(z=ht,b=it.width,it=it.height),ce!==null?(b+=re,it+=St):ce=new dr(0),ee!==null&&(ht=ee.width,ee=ee.height,isNaN(ht)&&(ht=2e3),isNaN(ee)&&(ee=2e3),isFinite(ht)&&(b=Math.min(b,ht)),isFinite(ee)&&(it=Math.min(it,ee))),ye.width=Math.ceil(b),ye.height=Math.ceil(it),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 ri(Math.ceil(b),Math.ceil(it)),z,vt,oe,fe,Re,y),x.context):(a.Xm=!1,Lf(a,We,ce,new ri(Math.ceil(b),Math.ceil(it)),z,vt,oe,fe,Re,y),a.Xm=!0,ye.context)}Rt.Object.defineProperties(tn.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,Rn.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,Rn.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(Rn,"resize",this.Ov,!1),this.removeEventListener(Rn,"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)&&ii(a,"0 <= value <= 1",tn,"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),pu(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),pu(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),pu(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),pu(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&ii(a,">= 0",tn,"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&&ii(a,">= 0",tn,"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 ii(a,">= 0",tn,"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&&pt("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,Da(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(Rn,"pointermove",this.dk,!0),this.addEventListener(Rn,"pointerdown",this.ui,!0),this.addEventListener(Rn,"pointerup",this.fk,!0),this.addEventListener(Rn,"pointerout",this.ek,!0),this.addEventListener(Rn,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Rn,"wheel",this.$j,!0),this.addEventListener(Rn,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Rn,"pointermove",this.dk,!0),this.removeEventListener(Rn,"pointerdown",this.ui,!0),this.removeEventListener(Rn,"pointerup",this.fk,!0),this.removeEventListener(Rn,"pointerout",this.ek,!0),this.removeEventListener(Rn,"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(Rn,"wheel",this.$j,!0),this.removeEventListener(Rn,"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=lt.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)}lt.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!==Vn.Grid&&pt("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||pt("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 dr(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&&pu(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,pu(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!==Ms&&pu(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()||pt("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()||pt("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)):ii(a,"> 0",tn,"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)):ii(a,"> 0",tn,"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),pu(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 dr(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&&pt("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!==xa&&a!==zf&&pt("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 ri(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 dr(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),Rt.Object.defineProperties(tn,{licenseKey:{get:function(){return qg.jc()},set:function(a){qg.add(a.replace(/\s/g,""))}},version:{get:function(){return Nh}}}),tn.prototype.makeImageData=tn.prototype.Jx,tn.prototype.makeImage=tn.prototype.Wz,tn.prototype.cacheGroupExternalLinks=tn.prototype.Fu,tn.prototype.addRenderer=tn.prototype.bs,tn.prototype.makeSVG=tn.prototype.av,tn.prototype.makeSvg=tn.prototype.Cs,tn.prototype.stopAutoScroll=tn.prototype.ug,tn.prototype.doAutoScroll=tn.prototype.gs,tn.prototype.isUnoccupied=tn.prototype.Yj,tn.prototype.raiseDiagramEvent=tn.prototype.R,tn.prototype.removeDiagramListener=tn.prototype.am,tn.prototype.addDiagramListener=tn.prototype.Bj,tn.prototype.findTreeRoots=tn.prototype.yz,tn.prototype.layoutDiagram=tn.prototype.Uz,tn.prototype.findTopLevelGroups=tn.prototype.qz,tn.prototype.findTopLevelNodesAndLinks=tn.prototype.rz,tn.prototype.ensureBounds=tn.prototype.Va,tn.prototype.findLinksByExample=tn.prototype.ls,tn.prototype.findNodesByExample=tn.prototype.ms,tn.prototype.findLinkForData=tn.prototype.Kc,tn.prototype.findNodeForData=tn.prototype.ii,tn.prototype.findPartForData=tn.prototype.Lc,tn.prototype.findLinkForKey=tn.prototype.findLinkForKey,tn.prototype.findNodeForKey=tn.prototype.Vb,tn.prototype.findPartForKey=tn.prototype.findPartForKey,tn.prototype.rebuildParts=tn.prototype.Wd,tn.prototype.transformViewToDoc=tn.prototype.Ps,tn.prototype.transformRectDocToView=tn.prototype.zA,tn.prototype.transformDocToView=tn.prototype.op,tn.prototype.centerRect=tn.prototype.es,tn.prototype.scrollToRect=tn.prototype.tv,tn.prototype.scroll=tn.prototype.scroll,tn.prototype.highlightCollection=tn.prototype.Jz,tn.prototype.highlight=tn.prototype.Iz,tn.prototype.selectCollection=tn.prototype.rA,tn.prototype.select=tn.prototype.select,tn.prototype.updateAllRelationshipsFromData=tn.prototype.rp,tn.prototype.updateAllTargetBindings=tn.prototype.updateAllTargetBindings,tn.prototype.commit=tn.prototype.commit,tn.prototype.rollbackTransaction=tn.prototype.Kf,tn.prototype.commitTransaction=tn.prototype.eb,tn.prototype.startTransaction=tn.prototype.Ea,tn.prototype.raiseChanged=tn.prototype.g,tn.prototype.raiseChangedEvent=tn.prototype.cb,tn.prototype.removeChangedListener=tn.prototype.ik,tn.prototype.addChangedListener=tn.prototype.Pe,tn.prototype.removeModelChangedListener=tn.prototype.mA,tn.prototype.addModelChangedListener=tn.prototype.Yw,tn.prototype.findLayer=tn.prototype.Qj,tn.prototype.removeLayer=tn.prototype.kA,tn.prototype.addLayerAfter=tn.prototype.Cy,tn.prototype.addLayerBefore=tn.prototype.Ww,tn.prototype.addLayer=tn.prototype.Al,tn.prototype.moveParts=tn.prototype.moveParts,tn.prototype.copyParts=tn.prototype.Kj,tn.prototype.removeParts=tn.prototype.Is,tn.prototype.remove=tn.prototype.remove,tn.prototype.add=tn.prototype.add,tn.prototype.clearDelayedGeometries=tn.prototype.bx,tn.prototype.setProperties=tn.prototype.nm,tn.prototype.attach=tn.prototype.Du,tn.prototype.set=tn.prototype.set,tn.prototype.resetInputOptions=tn.prototype.Sx,tn.prototype.setInputOption=tn.prototype.sA,tn.prototype.getInputOption=tn.prototype.Ql,tn.prototype.resetRenderingHints=tn.prototype.Tx,tn.prototype.setRenderingHint=tn.prototype.Xx,tn.prototype.getRenderingHint=tn.prototype.Gf,tn.prototype.maybeUpdate=tn.prototype.bd,tn.prototype.requestUpdate=tn.prototype.$b,tn.prototype.delayInitialization=tn.prototype.Xy,tn.prototype.isUpdateRequested=tn.prototype.Pz,tn.prototype.invalidateDocumentBounds=tn.prototype.Ya,tn.prototype.findObjectsNear=tn.prototype.og,tn.prototype.findPartsNear=tn.prototype.mz,tn.prototype.findObjectsIn=tn.prototype.Cf,tn.prototype.findPartsIn=tn.prototype.ux,tn.prototype.findObjectsAt=tn.prototype.ji,tn.prototype.findPartsAt=tn.prototype.lz,tn.prototype.findObjectAt=tn.prototype.ic,tn.prototype.findPartAt=tn.prototype.Ol,tn.prototype.focusObject=tn.prototype.zz,tn.prototype.alignDocument=tn.prototype.Jy,tn.prototype.zoomToRect=tn.prototype.BA,tn.prototype.zoomToFit=tn.prototype.zoomToFit,tn.prototype.diagramScroll=tn.prototype.kx,tn.prototype.focus=tn.prototype.focus;var jf=new Ti,cm=null,$o=Rn.document!==void 0,Ch=null,Yd="",Ms=new wn(tn,"None",0),jl=new wn(tn,"Uniform",1),Wd=new wn(tn,"UniformToFill",2),$h=new wn(tn,"CycleAll",10),Zg=new wn(tn,"CycleNotDirected",11),Kg=new wn(tn,"CycleNotDirectedFast",12),Qg=new wn(tn,"CycleNotUndirected",13),Xg=new wn(tn,"CycleDestinationTree",14),Jg=new wn(tn,"CycleSourceTree",15),gd=new wn(tn,"DocumentScroll",1),ef=new wn(tn,"InfiniteScroll",2),pd=new wn(tn,"TreeParentCollapsed",21),xa=new wn(tn,"AllParentsCollapsed",22),zf=new wn(tn,"AnyParentsCollapsed",23),qg=new Gn,Nh="2.3.10",Mh="image",tf=null,dm=!1;function Es(){if($o){var a=Rn.document.createElement("canvas"),y=a.getContext("2d"),E=Nn("7ca11abfd022028846");y[E]=Nn("398c3597c01238");for(var x=["5da73c80a36455d7038e4972187c3cae51fd22",Jn.Dx+"4ae6247590da4bb21c324ba3a84e385776",tr.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",jt.za],b=1;5>b;b++)y[Nn("7ca11abfd7330390")](Nn(x[b-1]),10,15*b);for(y[E]=Nn("39f046ebb36e4b"),E=1;5>E;E++)y[Nn("7ca11abfd7330390")](Nn(x[E-1]),10,15*E);(x.length!==4||x[0][0]!=="5"||x[3][0]!=="7")&&(tr.prototype.Cd=tr.prototype.Eu),tf=a}}tn.className="Diagram",tn.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Rn.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof tn?y.H:null},tn.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},tn.useDOM=function(a){$o=a?Rn.document!==void 0:!1},tn.isUsingDOM=function(){return $o},tn.None=Ms,tn.Uniform=jl,tn.UniformToFill=Wd,tn.CycleAll=$h,tn.CycleNotDirected=Zg,tn.CycleNotDirectedFast=Kg,tn.CycleNotUndirected=Qg,tn.CycleDestinationTree=Xg,tn.CycleSourceTree=Jg,tn.DocumentScroll=gd,tn.InfiniteScroll=ef,tn.TreeParentCollapsed=pd,tn.AllParentsCollapsed=xa,tn.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=Rn[Nn("76a715b2f73f148a")][Nn("72ba13b5")]||"";if(a.Rc=!0,$o){var x=tn[Nn("76a115b6ed251eaf4692")];if(x)for(var b=qg.iterator;b.next()&&(x=b.value,x=Nn(x).split(Nn("39e9")),!(6>x.length));){var z=Nn(x[1]).split(".");if(x[4]!=="7da71ca0")break;var ee=Nn(Jn[Nn("6cae19")]).split(".");if(z[0]>ee[0]||z[0]===ee[0]&&z[1]>=ee[1]){var re=Rn[Nn("74a900bae4370f8b51")][Nn("6fbb13a1c2311e8a57")].toLowerCase();if(ee=re[Nn("73a612b6fb191d")](Nn("3aad1ab6e022098b4dc4")),z=Nn(x[2]),-1<ee&&(re=re[Nn("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<re&&re<ee),!a.Rc))break;for(ee=E[Nn("76ad18b4f73e")],re=E[Nn("73a612b6fb191d")](Nn("35e7"))+2;re<ee;re++)y+=E[re];if(ee=y[Nn("73a612b6fb191d")](z),0>ee&&z!==Nn("7da71ca0ad381e90")&&(ee=y[Nn("73a612b6fb191d")](Nn("76a715b2ef3e149757"))),0>ee&&(ee=y[Nn("73a612b6fb191d")](Nn("76a715b2ef3e149757"))),0>ee&&(ee=y[Nn("73a612b6fb191d")](Nn("2bfa41fdb3784bca12"))),0>ee&&(ee=E[Nn("73a612b6fb191d")](Nn("7baa19a6f76c1988428554"))),a.Rc=!(0<=ee&&ee<y[Nn("73a612b6fb191d")](Nn("35"))||y[Nn("73a612b6fb191d")](Nn("35"))===-1),!a.Rc||E[Nn("73a612b6fb191d")](Nn("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<E[Nn("73a612b6fb191d")](z)),!a.Rc)||(ee=Rn[Nn("76a715b2f73f148a")][Nn("69ad17a1e03e")],re=ee[Nn("73a612b6fb191d")](Nn("7fb002b6ed25128b4da25b2e")),-1<re&&(a.Rc=!(ee[Nn("73a612b6fb191d")](z)>re),!a.Rc)))break;if(z[0]==="#"){ee=Rn.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[Nn("79a417a0f0181a8946")]=x,Rn.document[Nn("78a712aa")]){Rn.document[Nn("78a712aa")][Nn("7bb806b6ed32388c4a875b")](ee),oe=Rn.getComputedStyle(ee).getPropertyValue(Nn("78a704b7e62456904c9b12701b6532a8"));var ce=Rn.getComputedStyle(ee).getPropertyValue(Nn("75b817b0ea2202"));if(Rn.document[Nn("78a712aa")][Nn("68ad1bbcf533388c4a875b")](ee),oe){if(ee=Rn[Nn("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(Nn("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[Nn("76ad18b4f73e")],b=E[Nn("73a612b6fb191d")](Nn("35e7"))+2;b<fe;b++)y+=E[b];E=y[Nn("73a612b6fb191d")](Nn("7da71ca0ad381e90")),a.Rc=!(0<=E&&E<y[Nn("73a612b6fb191d")](Nn("35")))}}}return 0<a.Rc&&a!==a.wy}hm.className="DiagramHelper";function Zc(a){this.j=a===void 0?new lt:a,this.o=new lt}Rt.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 ri(NaN,NaN).freeze(),this.gridSnapCellSpot=Yi,this.gridSnapOrigin=new lt(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"||Rn.Element&&a instanceof Element)var E=tn.call(this,a)||this;else E=tn.call(this)||this,y=a;return me(E),y&&E.nm(y),E}Wt(ve,tn);function me(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=xr,a.layout=new qa}ve.prototype.reset=function(){tn.prototype.reset.call(this),me(this)},ve.className="Palette";function Ee(a,y){if(typeof a=="string"||Rn.Element&&a instanceof Element)var E=tn.call(this,a)||this;else E=tn.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 _i;var b=new gr;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 dr(0,0,0,0),E.pa.h(0,0),E.toolManager.gb("Dragging",new gt,E.toolManager.mouseMoveTools),E.click=function(){var z=x.observed;if(z!==null){var ee=z.viewportBounds,re=x.lastInput.documentPoint;z.position=new lt(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=jl,E.vb=!1,y&&Object.assign(E,y),E}Wt(Ee,tn),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 vu(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),ze(this)}finally{this.ta=a,this.ib=y}}}tn.prototype.redraw.call(this)},Ee.prototype.gc=function(){if(this.Ka===null&&pt("No div specified"),this.ta===null&&pt("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?ze(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 ze(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=gn.alloc().assign(a.viewportBounds).ed(y.viewportBounds),hc(y,b),gn.free(b),ls(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=gn.alloc(),Pe=re.Pa.s,Re=Pe.length,We=0;We<Re;We++){var ht=Pe[We];(x||ht!==ce)&&re.Oj(b,ht,oe,null,ye,Ne,!1)}gn.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=ri.alloc();b.h(E.width,E.height),x.desiredSize=b,ri.free(b),a=2/a.scale,x instanceof gr&&(x.strokeWidth=a),y.location=new lt(E.x-a/2,E.y-a/2),y.isSelected=!0}}}Ee.prototype.computeBounds=function(){var a=this.observed;if(a===null)return Ga;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))},Rt.Object.defineProperties(Ee.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof Ee&&pt("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 gt(){Ao.call(this),this.j=null}Wt(gt,Ao),gt.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 lt(E.width/2,E.height/2),a=a.firstInput.documentPoint,y.position=new lt(a.x-this.j.x,a.y-this.j.y)),!0)},gt.prototype.doActivate=function(){this.j=null,Ao.prototype.doActivate.call(this)},gt.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},gt.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 lt(x.x-E.x,x.y-E.y)}a=a.lastInput.documentPoint,y.position=new lt(a.x-this.j.x,a.y-this.j.y)}}},gt.className="OverviewDraggingTool";function dt(){br(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=Ga,this.hb=!0,this.cg=null,this.ob=200}dt.prototype.toString=function(){return"CommandHandler"},dt.prototype.Xe=function(a){this.H=a},dt.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,E=Ji?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()},dt.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},dt.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof No&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},dt.prototype.canStopCommand=function(){return!0},dt.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=""}},dt.prototype.canSelectAll=function(){return this.diagram.allowSelect},dt.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 Bn,E=a.selection.iterator;E.next();)Qd(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=""}},dt.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},dt.prototype.copySelection=function(){var a=this.diagram,y=new Bn;for(a=a.selection.iterator;a.next();)Qd(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(E){return E.canCopy()});this.copyToClipboard(y)},dt.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},dt.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},dt.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},dt.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 Gn,E.addAll(z),Ch=E,Yd=y.model.dataFormat}}y.R("ClipboardChanged",E)},dt.prototype.pasteFromClipboard=function(){var a=new Bn,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},dt.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 lt(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=""}},dt.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)},dt.prototype.undo=function(){this.diagram.undoManager.undo()},dt.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},dt.prototype.redo=function(){this.diagram.undoManager.redo()},dt.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},dt.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===Ms&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},dt.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Ms?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},dt.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Ms&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},dt.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Ms?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},dt.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},dt.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},dt.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var E=a.position,x=a.scale;Da(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=Ga):(this.Jt=x,this.sw=E.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),wl(y)},dt.prototype.canZoomToFit=function(){return this.diagram.allowZoom},dt.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;Da(E,"Scroll To Part");var x=this.scrollToPartPause;if(0<x){var b=At(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 di&&oe.isTreeExpanded&&(!(oe instanceof ir)||oe.isSubGraphExpanded);)oe=b.pop();0<b.length?(oe instanceof _i&&y.tv(oe.actualBounds),oe instanceof di&&!oe.isTreeExpanded&&(oe.isTreeExpanded=!0),oe instanceof ir&&!oe.isSubGraphExpanded&&(oe.isSubGraphExpanded=!0)):(oe instanceof _i&&y.es(oe.actualBounds),y.am("LayoutCompleted",ee)),y.eb("Scroll To Part")},ee=function(){Gt(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 At(a,y,E){if(y.isVisible())return E;if(y instanceof Gr)At(a,y.adornedPart,E);else if(y instanceof qn){var x=y.fromNode;x!==null&&At(a,x,E),y=y.toNode,y!==null&&At(a,y,E)}else y instanceof di&&(x=y.labeledLink,x!==null&&At(a,x,E),x=y.pg(),x!==null&&(x.isTreeExpanded||x.wasTreeExpanded||E.push(x),At(a,x,E))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||E.push(y),At(a,y,E));return E}dt.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof _i)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},dt.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Da(y.animationManager,"Collapse Tree");var E=new Gn;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 di&&b.isTreeExpanded&&(b.collapseTree(),E.add(b))}y.R("TreeCollapsed",E)}finally{y.eb("Collapse Tree")}},dt.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof di&&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 di&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},dt.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Da(y.animationManager,"Expand Tree");var E=new Gn;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 di&&!b.isTreeExpanded&&(b.expandTree(),E.add(b))}y.R("TreeExpanded",E)}finally{y.eb("Expand Tree")}},dt.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof di)||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 di&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},dt.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 Gn,z=a.selection.iterator;z.next();){var ee=z.value;ee.Zc()&&ee.canGroup()&&b.add(ee)}for(var re=new Gn,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 ir)yu(E),x=E.copy(),x!==null&&a.add(x);else if(y.Yu(E)){var Pe=y.copyNodeData(E);Ut(Pe)&&(y.xf(Pe),x=a.ii(Pe))}if(x!==null){ye!==null&&this.isValidMember(ye,x)&&(x.containingGroup=ye);for(var Re=re.iterator;Re.next();){var We=Re.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=""}}}},dt.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=wi();for(a=a.iterator;a.next();){var E=a.value;E instanceof qn||y.push(E)}a=new Bn,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 ai(y),a}dt.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof qn)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},dt.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 Gn;if(a!==null)x.add(a);else for(var b=y.selection.iterator;b.next();){var z=b.value;z instanceof ir&&z.canUngroup()&&x.add(z)}var ee=new Gn;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 qn)){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=""}},dt.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 ir))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof ir&&y.canUngroup())return!0;return!1},dt.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},dt.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Da(y.animationManager,"Collapse SubGraph");var E=new Gn;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 ir&&b.isSubGraphExpanded&&(b.collapseSubGraph(),E.add(b))}y.R("SubGraphCollapsed",E)}finally{y.eb("Collapse SubGraph")}},dt.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof ir&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof ir&&y.isSubGraphExpanded)return!0;return!1},dt.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Da(y.animationManager,"Expand SubGraph");var E=new Gn;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 ir&&!b.isSubGraphExpanded&&(b.expandSubGraph(),E.add(b))}y.R("SubGraphExpanded",E)}finally{y.eb("Expand SubGraph")}},dt.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof ir&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof ir&&!y.isSubGraphExpanded)return!0;return!1},dt.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 So&&z.editable})}a!==null&&(y.currentTool=null,E.textBlock=a,y.currentTool=E)}},dt.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 So))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 So&&E.editable}),a!==null))return!0;return!1},dt.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 Bt?b=a.ga(lr):y.viewportBounds.ca(x.documentPoint)||(b=y.viewportBounds,b=new lt(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,la(E,!1,a)}},dt.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)},dt.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 Ti,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 qn&&(y=a.fromNode,y===null||x.contains(y)?(y=a.toNode,y===null||x.contains(y)||x.remove(a)):x.remove(a));return x},Rt.Object.defineProperties(dt.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||pt("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}}}),dt.className="CommandHandler",$p=function(){return new dt};function Bt(){br(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new lt(NaN,NaN).freeze(),this.jd=Lo,this.Ab=new tr,this.wh=new tr,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=is,this.uc=new gn(NaN,NaN,NaN,NaN).freeze(),this.Ib=new gn(NaN,NaN,NaN,NaN).freeze(),this.dc=new gn(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Ca,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 Wn,jn,Mi,Oi,Gi,or,Pr,Sr,Br,so;Bt.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=pi(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},Bt.prototype.Vw=function(a){var y=this.Dh;if($n(y)){for(var E=0;E<y.length;E++)if(y[E]===a)return}else this.Dh=y=[];y.push(a)},Bt.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},Bt.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},Bt.prototype.copy=function(){return this.clone()},ke=Bt.prototype,ke.qb=function(a){a.classType===qn?a.name.indexOf("Orient")===0?this.segmentOrientation=a:pt("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===Bt&&(this.stretch=a)},ke.toString=function(){return Mn(this.constructor)+"#"+pr(this)},ke.th=function(){this.A!==null&&(this.A.nc=!0)};function yr(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=Ci,a.yj=Ci,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===To&&ns(this)&&Mo(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 Ti),ee=z.undoManager.transactionLevel===0,a.startCondition===Tl?ee=!0:a.startCondition===Sh&&(ee=!1),ee?(z=new mi,_l(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()):(Da(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,x,b)))),this instanceof Vn&&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 Vn&&Dh(re,function(oe){oe.data!==null&&oe.l&16777216&&oe.La(y)})};function Mo(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(To,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 tr);var z=this.Lb;z.reset(),this.no(z,a,y,E,x),z.pp(b)}};function Ra(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?kr(a.x,a.y,0,0,0,x.height)<=y||kr(a.x,a.y,0,x.height,x.width,x.height)<=y||kr(a.x,a.y,x.width,x.height,x.width,0)<=y||kr(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=lt.alloc();y.assign(a),this.transform.Ga(y);var E=this.actualBounds;if(!E.w())return lt.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=da(E.x-ee*oe,E.y-ee*oe,E.width+z*oe,E.height+z*oe,y.x,y.y),lt.free(y),a}return b=!1,(this instanceof Gr||this instanceof gr?da(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)),lt.free(y),b},ke.gh=function(a){var y=this.naturalBounds;return da(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=gn.allocAt(0,0,y.width,y.height);var E=this.transform,x=!1,b=lt.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)))),lt.free(b),gn.free(y),x},ke.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var E=this.naturalBounds,x=!1,b=lt.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)))),lt.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=lt.allocAt(0,0),b=lt.allocAt(0,E.height),z=lt.allocAt(E.width,E.height),ee=lt.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=gn.allocAt(0,0,E.width,E.height);var oe=lt.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)))),lt.free(oe),gn.free(E),!re&&(jt.us(a,x,b)||jt.us(a,b,z)||jt.us(a,z,ee)||jt.us(a,ee,x))&&(re=!0)}return lt.free(x),lt.free(b),lt.free(z),lt.free(ee),re},ke.ga=function(a,y){if(y===void 0&&(y=new lt),a instanceof Yt){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 gn);var y=this.naturalBounds,E=this.oe,x=lt.allocAt(0,0).transform(E);return a.h(x.x,x.y,0,0),x.h(y.width,0).transform(E),Uo(a,x.x,x.y,0,0),x.h(y.width,y.height).transform(E),Uo(a,x.x,x.y,0,0),x.h(0,y.height).transform(E),Uo(a,x.x,x.y,0,0),lt.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 lt),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,jt.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=jt.Ff(0,0,x.width,x.height,ee,a,y,E,b),b.transform(z),E)},Bt.prototype.measure=function(a,y,E,x){if(Ul(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 Vn;switch(nl(this,!0)){case jn:ee=b=0,re&&(y=a=1/0);break;case Wn: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 Gi: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()||pt("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),ba(this,!1)}},Bt.prototype.Wl=function(){},Bt.prototype.Dd=function(){return!1},Bt.prototype.arrange=function(a,y,E,x,b){this.Uk();var z=gn.alloc();z.assign(this.Ib),this.Ib.ka(),zs(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 So&&(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()||pt("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Lc(this,!1),gn.free(z)},ke=Bt.prototype,ke.eh=function(){};function Ps(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=nl(a,!0),E===x&&z===b&&(y=jn),y){case jn:(E>x||z>b)&&(ba(a,!0),a.measure(E>x?x:E,z>b?b:z,0,0));break;case Wn:ba(a,!0),a.measure(x,b,0,0);break;case Oi:ba(a,!0),a.measure(x,z,0,0);break;case Gi:ba(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(),yl(a,y)||(E.oh(),this.Pn(E)))},ke.Pn=function(a){this.portId!==null&&(Uv(a,!0),a instanceof di&&K1(a,this))},ke.gc=function(a,y){if(!$l(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 Vn&&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&&(ta(this,a,ce,!0,!0,oe,re),ce instanceof to&&ce.type===nu?(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&&(ta(this,a,fe,!0,!1,oe,re),fe instanceof to&&fe.type===nu?(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&&Ja(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 Re=Ne.m11,We=Ne.m21,ht=Ne.dx,it=Ne.m12,vt=Ne.m22,St=Ne.dy,wt,Ot=wt=0;Ne=wt*Re+Ot*We+ht;var $t=wt*it+Ot*vt+St;wt=Pe.width+ye,Ot=0;var li=wt*Re+Ot*We+ht;wt=wt*it+Ot*vt+St,Ot=Math.min(Ne,li);var Ai=Math.min($t,wt),yi=Math.max(Ne+0,li)-Ot,Xn=Math.max($t+0,wt)-Ai;Ne=Ot,$t=Ai,wt=Pe.width+ye,Ot=Pe.height+ye,li=wt*Re+Ot*We+ht,wt=wt*it+Ot*vt+St,Ot=Math.min(Ne,li),Ai=Math.min($t,wt),yi=Math.max(Ne+yi,li)-Ot,Xn=Math.max($t+Xn,wt)-Ai,Ne=Ot,$t=Ai,wt=0,Ot=Pe.height+ye,li=wt*Re+Ot*We+ht,wt=wt*it+Ot*vt+St,Ot=Math.min(Ne,li),Ai=Math.min($t,wt),yi=Math.max(Ne+yi,li)-Ot,Xn=Math.max($t+Xn,wt)-Ai,Ne=Ot,$t=Ai,ye=y.viewportBounds,Pe=ye.x,Re=ye.y,Ne=!(Ne>ye.width+Pe||Pe>yi+Ne||$t>ye.height+Re||Re>Xn+$t)}if(Ne){if(Ne=(this.l&256)!==0,a.clipInsteadOfFill&&(Ne=!1),this instanceof So&&(a.font=this.font),Ne){if($t=re.se()?re.naturalBounds:re.actualBounds,yi=Math.max(ee.x,$t.x),Xn=Math.max(ee.y,$t.y),ye=Math.min(ee.right,$t.right)-yi,Pe=Math.min(ee.bottom,$t.bottom)-Xn,Re=this.tb,Re!==null&&(yi=Re.x,Xn=Re.y,ye=Re.width,Pe=Re.height),yi>ee.width+ee.x||ee.x>$t.width+$t.x){E!==1&&(a.globalAlpha=x),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(yi,Xn,ye,Pe),a.clip()}if(fe){if(!ce.isVisible()){E!==1&&(a.globalAlpha=x),this.filter!==""&&(a.filter=b);return}oe&&($t=ce.shadowOffset,a.Ev($t.x*y.scale*this.scale*y.Mb,$t.y*y.scale*this.scale*y.Mb,ce.shadowBlur),Kc(a),a.shadowColor=ce.shadowColor)}oe&&this.shadowVisible===!0?Kc(a):oe&&this.shadowVisible===!1&&Ic(a),ce=this.naturalBounds,this.areaBackground!==null&&(a.yc(),zl(this,a,ce,ee)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),oe&&Va(this,re)&&this.shadowVisible===null&&Ic(a),this.Ma!==null&&(a.yc(),hl(this,a,ce,ee)),oe&&(this.Ma!==null||this.areaBackground!==null||Va(this,re))?(Du(this,!0),this.shadowVisible===null&&Ic(a)):Du(this,!1),this.hh(a,y),oe&&this.l&512&&Kc(a),fe&&oe&&Ic(a),Ne&&(a.restore(),a.Vc(this instanceof Vn)),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 Va(a,y){return y===null?!1:(yd(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Vn.Auto||y.type===Vn.Spot)&&y.Pb()!==a)}ke.Dv=function(){};function zl(a,y,E,x){ta(a,y,a.areaBackground,!0,!0,E,x),a.areaBackground instanceof to&&a.areaBackground.type===nu?(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 hl(a,y,E,x){var b=a.kq(),z=E.x,ee=E.y,re=E.width+b,oe=E.height+b;ta(a,y,a.Ma,!0,!1,E,x),a.Ma instanceof to&&a.Ma.type===nu?(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 xs(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===Vn.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 $l(a,y,E){if(!(y instanceof Al))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&&xs(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),Kc(y),y.shadowColor=a.shadowColor}a instanceof So&&(y.font=a.font),y.yd=null;var ee=a.transform;z=a instanceof Vn;var re=a instanceof Vn?yd(a):!1;a.l&4096&&Ja(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],zl(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]),hl(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],hl(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&&Kc(y),re&&a.shadowVisible===!0?Kc(y):re&&a.shadowVisible===!1&&Ic(y),b=a.panel,re&&Va(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||Va(a,b))?(Du(a,!0),a.shadowVisible===null&&Ic(y)):Du(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),tl(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&&Kc(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&&xs(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"+$r++,re=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:b,width:ee,height:E}),this instanceof Vn&&(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"),tl(a,x)};function tl(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function bs(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),E=a.svg.ownerDocument;if(y!==null){y=Ii(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 Vn?yd(this):!1;if(!(this instanceof Vn&&b))if(this instanceof rl){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 Vn)y.setAttributeNS(null,"transform","matrix("+x.m11+", "+x.m12+", "+x.m21+", "+x.m22+", "+x.dx+", "+x.dy+")");else if(this instanceof gr){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],zl(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 Vn))&&(a.rb.ha=[x.m11,x.m12,x.m21,x.m22,x.dx,x.dy]),hl(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 ta(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,Re=0,We=0,ht=0;if(ht=We=0,b?(We=ee.x,ht=ee.y):x||(We-=ce/2,ht-=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,Re=E.end.y*oe+E.end.offsetY,ye+=We,Pe+=We,Ne+=ht,Re+=ht,E.type===Xc)fe=y.createLinearGradient(ye,Ne,Pe,Re);else if(E.type===nu)ht=isNaN(E.endRadius)?Math.max(re,oe)/2:E.endRadius,isNaN(E.startRadius)?(We=0,ht=Math.max(re,oe)/2):We=E.startRadius,fe=y.createRadialGradient(ye,Ne,We,Pe,Re,ht);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 it=a.diagram;it!==null&&E.yk===-1&&Gt(function(){it.redraw()},600)}}x?y.fillStyle=fe:y.strokeStyle=fe}}}ke.rg=function(a){if(a instanceof Vn)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 Vn?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function Ja(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){mu(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)}mu(a,!1),eu(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,eu(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,eu(a,!1)))}ke.no=function(a,y,E,x,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=lt.alloc();z.yi(y,E,x,b,lr),a.rotate(this.Kb,z.x,z.y),lt.free(z)}},ke.v=function(a){if(!Ul(this)){a===void 0&&(a=!1),ba(this,!0),Lc(this,!0);var y=this.panel;y===null||a||y.v()}},ke.Uj=function(){Ul(this)||(ba(this,!0),Lc(this,!0))};function js(a){if(!zs(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof di&&a.Bd(),y.$b())),Lc(a,!0)}}ke.Uk=function(){!(this.l&2048)&&(mu(this,!0),eu(this,!0))},ke.Wu=function(){eu(this,!0)},ke.N=function(){var a=this.part;a!==null&&a.N()};function nl(a,y){var E=a.stretch,x=a.panel;return x!==null&&x.type===Vn.Table?Qu(a,x.Fb(a.row),x.Eb(a.column),y):x!==null&&x.type===Vn.Auto&&x.Pb()===a?Za(a,Wn,y):E===or?x!==null?x.type===Vn.Spot&&x.Pb()===a?Za(a,Wn,y):(E=x.defaultStretch,E===or?Za(a,jn,y):Za(a,E,y)):Za(a,jn,y):Za(a,E,y)}function Qu(a,y,E,x){var b=a.stretch;if(b!==or)return Za(a,b,x);var z=b=null;switch(y.stretch){case Gi:z=!0;break;case Wn:z=!0}switch(E.stretch){case Oi:b=!0;break;case Wn:b=!0}return y=a.panel.defaultStretch,b===null&&(b=y===Oi||y===Wn),z===null&&(z=y===Gi||y===Wn),b===!0&&z===!0?Za(a,Wn,x):b===!0?Za(a,Oi,x):z===!0?Za(a,Gi,x):Za(a,jn,x)}function Za(a,y,E){if(E)return y;if(y===jn||(E=a.desiredSize,E.w()))return jn;if(a=a.angle,!isNaN(E.width))if(a!==90&&a!==270){if(y===Oi)return jn;if(y===Wn)return Gi}else{if(y===Gi)return jn;if(y===Wn)return Oi}if(!isNaN(E.height))if(a!==90&&a!==270){if(y===Gi)return jn;if(y===Wn)return Oi}else{if(y===Oi)return jn;if(y===Wn)return Gi}return y}function Du(a,y){a.l=y?a.l|512:a.l&-513}function ns(a){return(a.l&1024)!==0}function rf(a,y){a.l=y?a.l|1024:a.l&-1025}function mu(a,y){a.l=y?a.l|2048:a.l&-2049}function eu(a,y){a.l=y?a.l|4096:a.l&-4097}function Ul(a){return(a.l&8192)!==0}function ba(a,y){a.l=y?a.l|8192:a.l&-8193}function zs(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,js(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 di&&(a.portId!==null||a===y.port)){var E=y.diagram;E===null||E.undoManager.isUndoingRedoing||K1(y,a)}}function qy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof Vn?a instanceof di?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 fa(a,y,E,x):b=a,b.xd=this,a=this.ih(),a!==null&&v1(a)&&pt("Cannot add a Binding to a template that has already been copied: "+b),this.localBindings===null&&(this.localBindings=new Gn),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 Vn?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 Ti),this.animationTriggers.add(a.propertyName,a),this};function tu(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=pi(arguments),x=z(E),Ut(x)||pt('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):b=Rn.go[a]}if(x===null&&(b!=null&&b.constructor||pt("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 tn&&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?pt("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 So)a.text=y;else if(a instanceof gr)a.figure=y;else if(a instanceof rl)a.source=y;else if(a instanceof Vn)y=Ou.I(y),y!==null&&(a.type=y);else if(a instanceof to){var E=vi(to,y);E!==null?a.type=E:pt("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Qn?(y=vi(Qn,y),y!==null&&(a.type=y)):a instanceof _r&&(y=vi(_r,y),y!==null&&(a.type=y));else if(y instanceof Bt)a instanceof Vn||pt("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof wa){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 wa?Im(x,y):pt("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof wn)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Na)a.type=y;else if(y instanceof fa)a instanceof Bt||a instanceof wa?a.bind(y):pt("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof $s)a instanceof Bt?a.Jv(y):pt("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof ma)a instanceof Qn&&a.type===Qn.o?a.figures.add(y):pt("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof _r)a instanceof ma?a.segments.add(y):pt("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof jo)a instanceof tn||a instanceof ir?a.layout=y:pt("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 to){E=new Bi;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 wa){y.row!==void 0?(b=y.row,(b==null||b===1/0||isNaN(b)||0>b)&&pt("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)&&pt("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new Bi;for(E in y)E!=="row"&&E!=="column"&&(b[E]=y[E]);bh(a,b)}else bh(a,y);else pt('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}Rt.Object.defineProperties(Bt.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&&(yr(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&&(yr(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Gs},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===Gs&&(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:xo},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:or},set:function(a){var y=this.stretch;y!==a&&(yr(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&&(yr(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)&&ii(a,"0 <= value <= 1",Bt,"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 to&&a.freeze(),yr(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 to&&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 _i)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 lt(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&&pt("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 gr&&this.qc(),this.g("desiredSize",x,a),ns(this)&&(a=this.part,a!==null&&(Mo(this,a,"width"),Mo(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 ri(a,this.jd.height).freeze(),this.v(),this instanceof gr&&this.qc(),this.g("desiredSize",y,a),ns(this)&&(a=this.part,a!==null&&Mo(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 ri(this.jd.width,a).freeze(),this.v(),this instanceof gr&&this.qc(),this.g("desiredSize",y,a),ns(this)&&(a=this.part,a!==null&&Mo(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Qi},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(),yr(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Go},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(),yr(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 dr(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&&Ja(this),this.Ab}},oe:{get:function(){return this.l&4096&&Ja(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(yr(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:jn},set:function(a){this.reshapingBehavior!==a&&(yr(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()&&pt("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),js(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&&ii(a,">= 0",Bt,"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&&ii(a,">= 1",Bt,"columnSpan"),yr(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&&ii(a,">= 0",Bt,"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&&ii(a,">= 1",Bt,"rowSpan"),yr(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&&(yr(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 di||pt("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:Ci},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&&ii(a,">= 0",Bt,"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&&ii(a,">= 0",Bt,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Ci},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&&ii(a,">= 0",Bt,"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&&ii(a,">= 0",Bt,"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&&(yr(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&&(yr(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&&(yr(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&&(yr(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&&(yr(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&&(yr(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&&(yr(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&&(yr(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&&(yr(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&&(yr(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&&(yr(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&&(yr(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&&(yr(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&&(yr(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&&(yr(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&&(yr(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&&(yr(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&&(yr(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Bt.prototype.trigger=Bt.prototype.Jv,Bt.prototype.findBindingPanel=Bt.prototype.ih,Bt.prototype.findTemplateBinder=Bt.prototype.pz,Bt.prototype.setProperties=Bt.prototype.nm,Bt.prototype.apply=Bt.prototype.apply,Bt.prototype.attach=Bt.prototype.Du,Bt.prototype.set=Bt.prototype.set,Bt.prototype.isEnabledObject=Bt.prototype.If,Bt.prototype.isVisibleObject=Bt.prototype.Ed,Bt.prototype.isContainedBy=Bt.prototype.rg,Bt.prototype.getNearestIntersectionPoint=Bt.prototype.rs,Bt.prototype.getLocalPoint=Bt.prototype.qs,Bt.prototype.getDocumentScale=Bt.prototype.Df,Bt.prototype.getDocumentAngle=Bt.prototype.li,Bt.prototype.getDocumentBounds=Bt.prototype.mi,Bt.prototype.getDocumentPoint=Bt.prototype.ga,Bt.prototype.intersectsRect=Bt.prototype.Yc,Bt.prototype.containedInRect=Bt.prototype.fh,Bt.prototype.containsRect=Bt.prototype.Re,Bt.prototype.containsPoint=Bt.prototype.ca,Bt.prototype.raiseChanged=Bt.prototype.g,Bt.prototype.raiseChangedEvent=Bt.prototype.cb,Bt.prototype.addCopyProperty=Bt.prototype.Vw;var Uf=null;Bt.className="GraphObject",Uf=new Ti,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=tu(Vn,Vn.Auto,{isActionable:!0,enabledChanged:function(E,x){if(E instanceof Vn){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"},tu(gr,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new Yt(0,0,2.76142374915397,2.761423749153969),spot2:new Yt(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 Vn&&(E=x.fb("ButtonBorder"),E instanceof gr)){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 Vn&&(E=x.fb("ButtonBorder"),E instanceof gr&&(E.fill=x._buttonFillNormal,E.stroke=x._buttonStrokeNormal))},y.actionDown=function(E,x){if(x.If()&&x instanceof Vn&&x._buttonFillPressed!==null&&E.button===0){var b=x.fb("ButtonBorder");if(b instanceof gr){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 Vn&&x._buttonFillPressed!==null&&E.button===0){var b=x.fb("ButtonBorder");if(b instanceof gr){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 Vn&&x._buttonFillPressed!==null){var b=x.fb("ButtonBorder");if(b instanceof gr){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 Vn&&x._buttonFillPressed!==null){var b=E.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(E,x)&&(E=x.fb("ButtonBorder"),E instanceof gr))){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=tu("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},tu(gr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Oo},new fa("figure","isTreeExpanded",function(y,E){return E=E.panel,y?E._treeExpandedFigure:E._treeCollapsedFigure}).cp()),{visible:!1},new fa("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,E){if(E=E.part,E instanceof Gr&&(E=E.adornedPart),E instanceof di){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=tu("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},tu(gr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Oo},new fa("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 Gr&&(E=E.adornedPart),E instanceof ir){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 tu(Gr,Vn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new lt(0,3),shadowBlur:5},tu(gr,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new Yt(0,0,4,6),spot2:new Yt(1,1,-4,-4)}))}),md("ContextMenu",function(){return tu(Gr,Vn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new lt(0,3),shadowBlur:5},new fa("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),md("ContextMenuButton",function(){var a=tu("Button");a.stretch=Oi;var y=a.fb("ButtonBorder");return y instanceof gr&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new Yt(0,0,2,3),y.spot2=new Yt(1,1,-2,-2)),a}),md("PanelExpanderButton",function(a){var y=fm(a,"COLLAPSIBLE"),E=tu("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},tu(gr,{name:"ButtonIcon",strokeWidth:2},new fa("geometryString","visible",function(x){return x?E._buttonExpandedFigure:E._buttonCollapsedFigure}).cp(y)));return a=E.fb("ButtonBorder"),a instanceof gr&&(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=tu("Button",{desiredSize:new ri(14,14)},tu(gr,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Wn,geometryStretch:Mi,visible:!1},y!==""?new fa("visible",y).Kx():[])),a.click=function(E,x){if(x instanceof Vn){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=tu("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new dr(0,1,0,0)});var y=tu(Vn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new dr(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}),Bt.None=jn=new wn(Bt,"None",0),Bt.Default=or=new wn(Bt,"Default",0),Bt.Vertical=Gi=new wn(Bt,"Vertical",4),Bt.Horizontal=Oi=new wn(Bt,"Horizontal",5),Bt.Fill=Wn=new wn(Bt,"Fill",3),Bt.Uniform=Mi=new wn(Bt,"Uniform",1),Bt.UniformToFill=Pr=new wn(Bt,"UniformToFill",2),Bt.FlipVertical=Sr=new wn(Bt,"FlipVertical",1),Bt.FlipHorizontal=Br=new wn(Bt,"FlipHorizontal",2),Bt.FlipBoth=so=new wn(Bt,"FlipBoth",3),Bt.make=tu,Bt.getBuilders=function(){var a=new Ti,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},Bt.defineBuilder=md,Bt.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 Bt))return y&&x.set(y),x;pt('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},Bt.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=Qi,this.o=Go,this.hg=or,this.ob=this.Bi=1,this.Pf=jn,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=xo,this.rr=Gs,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=Ca,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?Rn.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 Al(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),Ut(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},Rt.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 Al(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=$r++,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=Al.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,Re=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,Re,a-fe,y-ye]),this.path.push(["A",E,E,0,1,Re,Ne,Pe])):1e-6<x&&this.path.push(["A",E,E,0,+(x>=Math.PI),Re,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"+$r++,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},jt.$(x,re)&&jt.$(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"+$r++,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=pi(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 Kc(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(){},Al.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},Al.prototype.getImageData=function(){return null},Al.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()))}Al.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},Al.className="SVGContext",tn.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new gc(this,Rn.document));var y=new gc(this,Rn.document,!0);a===void 0&&(a=new Bi);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)},tn.prototype.makeSvg=tn.prototype.Cs,tn.prototype.av=function(a){return this.Cs(a)},tn.prototype.makeSVG=tn.prototype.av;function vu(a,y,E,x){this.ownerDocument=y=y===void 0?Rn.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}vu.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},vu.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},vu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},vu.prototype.focus=function(){this.Oa.focus()},vu.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},Rt.Object.defineProperties(vu.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}}}),vu.className="CanvasSurface";function kh(a,y,E){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&pt("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 tr,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 to&&a.type===nu){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(){},Rt.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 to(a,y){Vf||(fv(),Vf=!0),br(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=xr,this.Lk=ko):this.Lk=a===nu?this.Qd=lr:this.Qd=Ci,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}to.prototype.copy=function(){var a=new to;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=to.prototype,ke.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},ke.ka=function(){return Object.isFrozen(this)&&pt("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},ke.qb=function(a){a.classType===to&&(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===nu?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&&yn(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&ii(a,"0 <= loc <= 1",to,"addColorStop:loc"),this.we===null&&(this.we=new Ti),this.we.add(a,y),this.na===vd&&(this.type=Xc),this.xe=null,this},ke.Vz=function(a,y){if(this._isFrozen&&yn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Kf:y,this.type===vd)Qc(this.color),this.color=Yf(a,y);else if((this.type===Xc||this.type===nu)&&this.colorStops!==null)for(var E=this.colorStops.iterator;E.next();)Qc(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?Kf:E,Qc(a),Yf(y,E)}ke.Wy=function(a,y){if(this._isFrozen&&yn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Kf:y,this.type===vd)Qc(this.color),this.color=Yf(-a,y);else if((this.type===Xc||this.type===nu)&&this.colorStops!==null)for(var E=this.colorStops.iterator;E.next();)Qc(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?Kf:E,Qc(a),Yf(-y,E)}function lv(a,y,E){Qc(a),a=wo.j;var x=wo.u,b=wo.o,z=wo.F;return Qc(y),E===void 0&&(E=.5),"rgba("+Math.round((wo.j-a)*E+a)+", "+Math.round((wo.u-x)*E+x)+", "+Math.round((wo.o-b)*E+b)+", "+Math.round((wo.F-z)*E+z)+")"}ke.Gx=function(){if(this.type===vd)return Gf(this.color);if((this.type===Xc||this.type===nu)&&this.colorStops!==null){var a=this.colorStops;if(this.type===nu)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 to?a.Gx():(Qc(a),128>(299*wo.j+587*wo.u+114*wo.o)/1e3):!1}function Yf(a,y){switch(y){case Kf:y=100*cv(wo.j);var E=100*cv(wo.u),x=100*cv(wo.o);return Us.j=.4124564*y+.3575761*E+.1804375*x,Us.u=.2126729*y+.7151522*E+.072175*x,Us.o=.0193339*y+.119192*E+.9503041*x,Us.F=wo.F,y=hv(Us.j/Wf[0]),E=hv(Us.u/Wf[1]),x=hv(Us.o/Wf[2]),kc.j=116*E-16,kc.u=500*(y-E),kc.o=200*(E-x),kc.F=Us.F,kc.j=Math.min(100,Math.max(0,kc.j+100*a)),a=(kc.j+16)/116,y=a-kc.o/200,Us.j=Wf[0]*a1(kc.u/500+a),Us.u=Wf[1]*(kc.j>mm*gv?Math.pow(a,3):kc.j/mm),Us.o=Wf[2]*a1(y),Us.F=kc.F,a=-.969266*Us.j+1.8760108*Us.u+.041556*Us.o,y=.0556434*Us.j+-.2040259*Us.u+1.0572252*Us.o,wo.j=255*dv((3.2404542*Us.j+-1.5371385*Us.u+-.4985314*Us.o)/100),wo.u=255*dv(a/100),wo.o=255*dv(y/100),wo.F=Us.F,wo.j=Math.round(wo.j),255<wo.j?wo.j=255:0>wo.j&&(wo.j=0),wo.u=Math.round(wo.u),255<wo.u?wo.u=255:0>wo.u&&(wo.u=0),wo.o=Math.round(wo.o),255<wo.o?wo.o=255:0>wo.o&&(wo.o=0),"rgba("+wo.j+", "+wo.u+", "+wo.o+", "+wo.F+")";case s1:return uv(),Hl.o=Math.min(100,Math.max(0,Hl.o+100*a)),"hsla("+Hl.j+", "+Hl.u+"%, "+Hl.o+"%, "+Hl.F+")";default:pt("Unknown color space: "+y)}}function Qc(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,wo.j=a[0],wo.u=a[1],wo.o=a[2],wo.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,wo.j=0,wo.u=0,wo.o=0,wo.F=1)}}function uv(){var a=wo.j/255,y=wo.u/255,E=wo.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))}Hl.j=Math.round(ee),Hl.u=Math.round(100*a),Hl.o=Math.round(100*b),Hl.F=wo.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 to||pt("Value for "+y+" must be a color string or a Brush, not "+a))}function fv(){pv=$o?new vu(null,void 0,{willReadFrequently:!0}).context:null}Rt.Object.defineProperties(to.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&yn(this,a),this.na=a,this.start.Mc()&&(a===Xc?this.start=xr:a===nu&&(this.start=lr)),this.end.Mc()&&(a===Xc?this.end=ko:a===nu&&(this.end=lr)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&yn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&yn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&yn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&yn(this,a),0>a&&ii(a,">= zero",to,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&yn(this,a),0>a&&ii(a,">= zero",to,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&yn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&yn(this,a),this.cr=a,this.xe=null}}}),to.prototype.isDark=to.prototype.Gx,to.prototype.darkenBy=to.prototype.Wy,to.prototype.lightenBy=to.prototype.Vz,to.prototype.addColorStop=to.prototype.addColorStop;var gv=216/24389,mm=24389/27,Wf=[95.047,100,108.883],pv=null,wo=new tp,Hl=new tp,Us=new tp,kc=new tp,Vf=!1;to.className="Brush";var vd;to.Solid=vd=new wn(to,"Solid",0);var Xc;to.Linear=Xc=new wn(to,"Linear",1);var nu;to.Radial=nu=new wn(to,"Radial",2);var Zf;to.Pattern=Zf=new wn(to,"Pattern",4);var Kf;to.Lab=Kf=new wn(to,"Lab",5);var s1;to.HSL=s1=new wn(to,"HSL",6),to.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},to.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)},to.lighten=function(a){return r1(a)},to.lightenBy=r1,to.darken=function(a){return o1(a)},to.darkenBy=o1,to.mix=lv,to.isDark=Gf;function Na(){this.xa="Base"}Na.prototype.measure=function(){},Na.prototype.Yz=function(a,y,E,x,b){a.measure(y,E,x,b)},Na.prototype.arrange=function(){},Na.prototype.Ly=function(a,y,E,x,b,z){a.arrange(y,E,x,b,z)},Na.prototype.iA=function(a){a.Uj()},Na.prototype.gc=function(){},Rt.Object.defineProperties(Na.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Vn}}}),Na.prototype.remeasureObject=Na.prototype.iA,Na.prototype.arrangeElement=Na.prototype.Ly,Na.prototype.measureElement=Na.prototype.Yz,Na.className="PanelLayout";function vm(){this.xa="Base"}Wt(vm,Na),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 gr&&ce.isGeometryPositioned&&(ce=ce.strokeWidth/2,Ne-=ce,Pe-=ce),Uo(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 gr&&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"}Wt(ym,Na),ym.prototype.measure=function(a,y,E,x,b,z,ee){var re=x.length;y=wi(),z=Jc(a);for(var oe=0;oe<re;oe++){var ce=x[oe];if(ce.visible||ce===z){var fe=nl(ce,!1);if(fe!==jn&&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));ai(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,Re=z+b.bottom,We=ye.height,ht=nl(fe,!1);(isNaN(fe.desiredSize.height)&&ht===Wn||ht===Gi)&&(We=Math.max(E.height-Pe-Re,0)),Pe=We+Pe+Re,Re=fe.alignment,Re.Xb()&&(Re=a.defaultAlignment),Re.sb()||(Re=lr),ee&&(re-=ye.width+Ne.left+Ne.right),fe.arrange(re+Re.offsetX+Ne.left,ce+Re.offsetY+Ne.top+(E.height*Re.y-Pe*Re.y),ye.width,We),ee||(re+=ye.width+Ne.left+Ne.right)}}};function Sm(){this.xa="Base"}Wt(Sm,Na),Sm.prototype.measure=function(a,y,E,x,b,z){var ee=x.length;E=wi();for(var re=Jc(a),oe=0;oe<ee;oe++){var ce=x[oe];if(ce.visible||ce===re){var fe=nl(ce,!1);if(fe!==jn&&fe!==Gi)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,oa(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);ai(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,Re=z+b.right,We=ye.width,ht=nl(fe,!1);(isNaN(fe.desiredSize.width)&&ht===Wn||ht===Oi)&&(We=Math.max(E.width-Pe-Re,0)),Pe=We+Pe+Re,Re=fe.alignment,Re.Xb()&&(Re=a.defaultAlignment),Re.sb()||(Re=lr),ee&&(re-=ye.height+Ne.bottom+Ne.top),fe.arrange(ce+Re.offsetX+Ne.left+(E.width*Re.x-Pe*Re.x),re+Re.offsetY+Ne.top,We,ye.height),ee||(re+=ye.height+Ne.bottom+Ne.top)}}};function Em(){this.xa="Base"}Wt(Em,Na),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),Re=Math.max(ee+ye,0),We=a.isClipping,ht=gn.allocAt(-ce.left,-ce.top,Pe,Re),it=gn.allocAt(0,0,z,ee);mv(oe,it,!0),z=it.width,ee=it.height;for(var vt=!0,St=Jc(a),wt=0;wt<re;wt++){var Ot=x[wt];Ne=y;var $t=E;if(Ot!==oe&&(Ot.visible||Ot===St)){ce=Ot.margin;var li=ce.left,Ai=ce.top;switch(Pe=ce.right+ce.left,Re=ce.top+ce.bottom,ce=nl(Ot,!1),ce){case Wn:Ne=z,$t=ee,Ai=li=Re=Pe=0;break;case Oi:Ne=z,li=Pe=0;break;case Gi:$t=ee,Ai=Re=0}Ot.measure(Ne,$t,0,0),Ne=Ot.measuredBounds,Pe=Math.max(Ne.width+Pe,0),Re=Math.max(Ne.height+Re,0),ce=Ot.alignment,ce.Xb()&&(ce=a.defaultAlignment),ce.sb()||(ce=lr);var yi=Ot.alignmentFocus;if(yi.Xb()&&(yi=lr),$t=null,Ot instanceof Vn&&Ot.$e!==""&&($t=Ot.fb(Ot.$e),$t===Ot&&($t=null)),li=it.x-li,Ai=it.y-Ai,$t!==null){for(Ot.arrange(0,0,Ne.width,Ne.height),Ne=$t.actualBounds,Ne=lt.allocAt(Ne.x+(yi.x*Ne.width-yi.offsetX),Ne.y+(yi.y*Ne.height-yi.offsetY)),$t=$t.panel;$t!==Ot;)$t.transform.Ga(Ne),$t=$t.panel;li+=ce.x*z+ce.offsetX-Ne.x,Ai+=ce.y*ee+ce.offsetY-Ne.y,lt.free(Ne)}else li+=ce.x*z+ce.offsetX-(yi.x*Ne.width+yi.offsetX),Ai+=ce.y*ee+ce.offsetY-(yi.y*Ne.height+yi.offsetY);vt?(vt=!1,b.h(li,Ai,Pe,Re)):Uo(b,li,Ai,Pe,Re)}}switch(vt?b.assign(ht):We?b.Uu(it.x,it.y,it.width,it.height):Uo(b,ht.x,ht.y,ht.width,ht.height),gn.free(ht),gn.free(it),ce=oe.stretch,ce===or&&(ce=nl(oe,!1)),ce){case jn:return;case Wn:if(!isFinite(y)&&!isFinite(E))return;break;case Oi:if(!isFinite(y))return;break;case Gi:if(!isFinite(E))return}for(Ne=oe.measuredBounds,z=Ne.width,ee=Ne.height,Pe=Math.max(z+fe,0),Re=Math.max(ee+ye,0),ce=oe.margin,it=gn.allocAt(-ce.left,-ce.top,Pe,Re),mv(oe,it,!0),z=it.width,ee=it.height,y=0;y<re;y++)E=x[y],E===oe||!E.visible&&E!==St||(ce=E.margin,Pe=ce.right+ce.left,Re=ce.top+ce.bottom,Ne=E.measuredBounds,Pe=Math.max(Ne.width+Pe,0),Re=Math.max(Ne.height+Re,0),fe=E.alignment,fe.Xb()&&(fe=a.defaultAlignment),fe.sb()||(fe=lr),E=E.alignmentFocus,E.Xb()&&(E=lr),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,Re)):Uo(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,Re));vt?b.assign(ht):We?b.Uu(it.x,it.y,it.width,it.height):Uo(b,ht.x,ht.y,ht.width,ht.height),gn.free(it)},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=gn.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=lr);var Re=ye.alignmentFocus;if(Re.Xb()&&(Re=lr),ce=null,ye instanceof Vn&&ye.$e!==""&&(ce=ye.fb(ye.$e),ce===ye&&(ce=null)),ce!==null){var We=ce.actualBounds;for(Re=lt.allocAt(We.x+(Re.x*We.width-Re.offsetX),We.y+(Re.y*We.height-Re.offsetY)),ce=ce.panel;ce!==ye;)ce.transform.Ga(Re),ce=ce.panel;ce=fe.x*ee.width+fe.offsetX-Re.x,fe=fe.y*ee.height+fe.offsetY-Re.y,lt.free(Re)}else ce=fe.x*ee.width+fe.offsetX-(Re.x*Ne+Re.offsetX),fe=fe.y*ee.height+fe.offsetY-(Re.y*Pe+Re.offsetY);ce+=ee.x-E.x,fe+=ee.y-E.y,ye.visible&&ye.arrange(z+ce,oe+fe,Ne,Pe)}}gn.free(ee)};function mv(a,y,E){var x=null;if(a instanceof Vn&&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"}Wt(xm,Na),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 Re=0,We=null;oe instanceof gr&&(We=oe,Re=We.strokeWidth*We.scale);var ht=Math.max(ce.width+Ne,0);ce=Math.max(ce.height+Pe,0);var it=Ev(oe),vt=it.x*ht+it.offsetX;it=it.y*ce+it.offsetY;var St=xv(oe),wt=St.x*ht+St.offsetX;for(St=St.y*ce+St.offsetY,isFinite(y)&&(fe=Math.max(Math.abs(vt-wt)-Re,0)),isFinite(E)&&(ye=Math.max(Math.abs(it-St)-Re,0)),Re=ri.alloc(),Re.h(0,0),a=Jc(a),St=0;St<re;St++)it=x[St],it===oe||!it.visible&&it!==a||(ce=it.margin,ht=ce.right+ce.left,vt=ce.top+ce.bottom,it.measure(fe,ye,0,0),ce=it.measuredBounds,ht=Math.max(ce.width+ht,0),ce=Math.max(ce.height+vt,0),Re.h(Math.max(ht,Re.width),Math.max(ce,Re.height)));if(re===1)b.width=ht,b.height=ce,ri.free(Re);else{switch(it=Ev(oe),St=xv(oe),re=x=0,St.x!==it.x&&St.y!==it.y&&(x=Re.width/Math.abs(St.x-it.x),re=Re.height/Math.abs(St.y-it.y)),ri.free(Re),Re=0,We!==null&&(Re=We.strokeWidth*We.scale,Nv(We)===Mi&&(x=re=Math.max(x,re))),x+=Math.abs(it.offsetX)+Math.abs(St.offsetX)+Re,re+=Math.abs(it.offsetY)+Math.abs(St.offsetY)+Re,We=oe.stretch,We===or&&(We=nl(oe,!1)),We){case jn:ee=z=0;break;case Wn:isFinite(y)&&(x=y),isFinite(E)&&(re=E);break;case Oi:isFinite(y)&&(x=y),ee=0;break;case Gi: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=gn.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,Uo(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=lr),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&&(da(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 gn(z.x,z.y,z.width,z.height))));gn.free(z)};function bm(){this.xa="Base",this.name="Table"}Wt(bm,Na),bm.prototype.measure=function(a,y,E,x,b){for(var z=x.length,ee=wi(),re=wi(),oe=0;oe<z;oe++){var ce=x[oe],fe=ce instanceof Vn?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 Re=ye[Pe];fe.type===Vn.TableRow?Re.row=ce.row:fe.type===Vn.TableColumn&&(Re.column=ce.column),ee.push(Re)}}else ee.push(ce)}z=ee.length,z===0&&(a.Fb(0),a.Eb(0));for(var We=[],ht=0;ht<z;ht++){var it=ee[ht];it.visible&&(ba(it,!0),Lc(it,!0),We[it.row]||(We[it.row]=[]),We[it.row][it.column]||(We[it.row][it.column]=[]),We[it.row][it.column].push(it))}ai(ee);var vt=wi(),St=wi(),wt=wi(),Ot={count:0},$t={count:0},li=y,Ai=E,yi=a.rowDefs,Xn=a.colDefs,On=null;z=yi.length;for(var nr=0;nr<z;nr++)On=yi[nr],On!==void 0&&(On.actual=0);z=Xn.length;for(var Xi=0;Xi<z;Xi++)On=Xn[Xi],On!==void 0&&(On.actual=0);for(var Vr=We.length,vo=0,Fa=0;Fa<Vr;Fa++)We[Fa]&&(vo=Math.max(vo,We[Fa].length));var Ua=Math.min(a.topIndex,Vr-1),Ls=Math.min(a.leftIndex,vo-1),Ba=0;Vr=We.length;for(var Md=Jc(a),ga=0;ga<Vr;ga++)if(We[ga]){vo=We[ga].length;var ec=a.Fb(ga);ec.actual=0;for(var Is=ec.oc=0;Is<vo;Is++)if(We[ga][Is]){var Pd=a.Eb(Is);vt[Is]===void 0&&(Pd.actual=0,Pd.oc=0,vt[Is]=!0);for(var Wl=We[ga][Is],xu=Wl.length,Ml=0;Ml<xu;Ml++){var gl=Wl[Ml];if(gl.visible||gl===Md){var ah=1<gl.rowSpan||1<gl.columnSpan;ah&&(ga<Ua||Is<Ls||St.push(gl));var tc=gl.margin,vg=tc.right+tc.left,Pl=tc.top+tc.bottom,ks=Qu(gl,ec,Pd,!1),Hp=gl.desiredSize,Sf=!isNaN(Hp.height),vc=!isNaN(Hp.width)&&Sf;if(ah||ks===jn||vc||ga<Ua||Is<Ls||(Ot[Is]!==void 0||ks!==Wn&&ks!==Oi||(Ot[Is]=-1,Ot.count++),$t[ga]!==void 0||ks!==Wn&&ks!==Gi||($t[ga]=-1,$t.count++),wt.push(gl)),gl.measure(1/0,1/0,0,0),!(ga<Ua||Is<Ls)){var pl=gl.measuredBounds,Uh=Math.max(pl.width+vg,0),Ll=Math.max(pl.height+Pl,0);if(gl.rowSpan===1&&(ks===jn||ks===Oi)){On=a.Fb(ga);var sh=On.Wc();Ba=Math.max(Ll-On.actual,0),Ba+sh>Ai&&(Ba=Math.max(Ai-sh,0));var W0=On.oa===0;On.oc=On.oc+Ba,On.actual=On.oa+Ba,Ai=Math.max(Ai-(Ba+(W0?sh:0)),0)}if(gl.columnSpan===1&&(ks===jn||ks===Gi)){On=a.Eb(Is);var Gp=On.Wc();Ba=Math.max(Uh-On.actual,0),Ba+Gp>li&&(Ba=Math.max(li-Gp,0));var Gy=On.oa===0;On.oc=On.oc+Ba,On.actual=On.oa+Ba,li=Math.max(li-(Ba+(Gy?Gp:0)),0)}ah&&gl.Uj()}}}}}ai(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=yi[yg];uh!==void 0&&(ed+=isNaN(uh.Hc)?uh.oc:uh.Hc,uh.oc!==0&&(ed+=uh.Wc()))}li=Math.max(y-Uc,0);var Hc=Ai=Math.max(E-ed,0),Ld=li;z=wt.length;for(var ml=0;ml<z;ml++){var yc=wt[ml],V0=a.Fb(yc.row),td=a.Eb(yc.column),Sg=yc.measuredBounds,nc=yc.margin,Hh=nc.right+nc.left,Sc=nc.top+nc.bottom;Ot[yc.column]=td.oc===0&&Ot[yc.column]!==void 0?Math.max(Sg.width+Hh,Ot[yc.column]):null,$t[yc.row]=V0.oc===0&&$t[yc.row]!==void 0?Math.max(Sg.height+Sc,$t[yc.row]):null}var xf=0,Eg=0,zu;for(zu in $t)zu!=="count"&&(xf+=$t[zu]);for(zu in Ot)zu!=="count"&&(Eg+=Ot[zu]);for(var $a=ri.alloc(),Yp=0;Yp<z;Yp++){var Ks=wt[Yp];if(Ks.visible||Ks===Md){var pa=a.Fb(Ks.row),Qs=a.Eb(Ks.column),nd=0;isFinite(Qs.width)?nd=Qs.width:(isFinite(li)&&Ot[Ks.column]!==null?Eg===0?nd=Qs.actual+li:nd=Ot[Ks.column]/Eg*Ld:Ot[Ks.column]!==null?nd=li:nd=Qs.actual||li,nd=Math.max(0,nd-Qs.Wc()));var Id=0;switch(isFinite(pa.height)?Id=pa.height:(isFinite(Ai)&&$t[Ks.row]!==null?xf===0?Id=pa.actual+Ai:Id=$t[Ks.row]/xf*Hc:$t[Ks.row]!==null?Id=Ai:Id=pa.actual||Ai,Id=Math.max(0,Id-pa.Wc())),$a.h(Math.max(Qs.minimum,Math.min(nd,Qs.maximum)),Math.max(pa.minimum,Math.min(Id,pa.maximum))),ks=Qu(Ks,pa,Qs,!1),ks){case Oi:$a.height=Math.max($a.height,pa.actual+Ai);break;case Gi:$a.width=Math.max($a.width,Qs.actual+li)}var Gh=Ks.margin,Yy=Gh.right+Gh.left,Z0=Gh.top+Gh.bottom;Ks.Uj(),Ks.measure($a.width,$a.height,Qs.minimum,pa.minimum);var xg=Ks.measuredBounds,Yh=Math.max(xg.width+Yy,0),bf=Math.max(xg.height+Z0,0);isFinite(li)&&(Yh=Math.min(Yh,$a.width)),isFinite(Ai)&&(bf=Math.min(bf,$a.height));var vl=0;vl=pa.actual,pa.actual=Math.max(pa.actual,bf),pa.oc=Math.max(pa.oc,bf),Ba=pa.actual-vl,Ai=Math.max(Ai-Ba,0),$t[Ks.row]===null&&(Hc=Math.max(Hc-Ba,0)),vl=Qs.actual,Qs.actual=Math.max(Qs.actual,Yh),Qs.oc=Math.max(Qs.oc,Yh),Ba=Qs.actual-vl,li=Math.max(li-Ba,0),Ot[Ks.column]===null&&(Ld=Math.max(Ld-Ba,0))}}ai(wt);var id=ri.alloc(),ic=wi(),su=wi();if(z=St.length,z!==0){for(var ch=0;ch<Vr;ch++)if(We[ch]){vo=We[ch].length;var bg=a.Fb(ch);ic[ch]=bg.actual;for(var dh=0;dh<vo;dh++)if(We[ch][dh]){var K0=a.Eb(dh);su[dh]=K0.actual}}}for(var wg=0;wg<z;wg++){var ra=St[wg];if(ra.visible||ra===Md){var Uu=a.Fb(ra.row),bu=a.Eb(ra.column);switch($a.h(Math.max(bu.minimum,Math.min(y,bu.maximum)),Math.max(Uu.minimum,Math.min(E,Uu.maximum))),ks=Qu(ra,Uu,bu,!1),ks){case Wn:su[bu.index]!==0&&($a.width=Math.min($a.width,su[bu.index])),ic[Uu.index]!==0&&($a.height=Math.min($a.height,ic[Uu.index]));break;case Oi:su[bu.index]!==0&&($a.width=Math.min($a.width,su[bu.index]));break;case Gi:ic[Uu.index]!==0&&($a.height=Math.min($a.height,ic[Uu.index]))}isFinite(bu.width)&&($a.width=bu.width),isFinite(Uu.height)&&($a.height=Uu.height),id.h(0,0);for(var Q0=bu.minimum,Il=Uu.minimum,kd=1;kd<ra.rowSpan&&!(ra.row+kd>=a.rowCount);kd++)On=a.Fb(ra.row+kd),Ba=0,Ba=ks===Wn||ks===Gi?Math.max(On.minimum,ic[ra.row+kd]===0?On.maximum:Math.min(ic[ra.row+kd],On.maximum)):Math.max(On.minimum,isNaN(On.Hc)?On.maximum:Math.min(On.Hc,On.maximum)),id.height+=Ba,Il+=On.minimum;for(var wu=1;wu<ra.columnSpan&&!(ra.column+wu>=a.columnCount);wu++)On=a.Eb(ra.column+wu),Ba=0,Ba=ks===Wn||ks===Oi?Math.max(On.minimum,su[ra.column+wu]===0?On.maximum:Math.min(su[ra.column+wu],On.maximum)):Math.max(On.minimum,isNaN(On.Hc)?On.maximum:Math.min(On.Hc,On.maximum)),id.width+=Ba,Q0+=On.minimum;$a.width+=id.width,$a.height+=id.height;var Tg=ra.margin,hh=Tg.right+Tg.left,Wp=Tg.top+Tg.bottom;ra.measure($a.width,$a.height,Q0,Il);for(var Ag=ra.measuredBounds,Ec=Math.max(Ag.width+hh,0),Wh=Math.max(Ag.height+Wp,0),fh=0,Cg=0;Cg<ra.rowSpan&&!(ra.row+Cg>=a.rowCount);Cg++)On=a.Fb(ra.row+Cg),fh+=On.total||0;if(fh<Wh){var Dd=Wh-fh,Gc=Wh-fh;if(ra.spanAllocation!==null)for(var Od=ra.spanAllocation,rd=0;rd<ra.rowSpan&&!(0>=Dd)&&!(ra.row+rd>=a.rowCount);rd++){On=a.Fb(ra.row+rd);var Rd=On.oa||0,Vh=Od(ra,On,Gc);On.actual=Math.min(On.maximum,Rd+Vh),On.oa!==Rd&&(Dd-=On.oa-Rd)}for(;0<Dd;){var rc=On.oa||0;if(isNaN(On.height)&&On.maximum>rc&&(On.actual=Math.min(On.maximum,rc+Dd),On.oa!==rc&&(Dd-=On.oa-rc)),On.index===0)break;On=a.Fb(On.index-1)}}for(var wf=0,Fd=0;Fd<ra.columnSpan&&!(ra.column+Fd>=a.columnCount);Fd++)On=a.Eb(ra.column+Fd),wf+=On.total||0;if(wf<Ec){var Tf=Ec-wf,Wy=Ec-wf;if(ra.spanAllocation!==null)for(var od=ra.spanAllocation,Zh=0;Zh<ra.columnSpan&&!(0>=Tf)&&!(ra.column+Zh>=a.columnCount);Zh++){On=a.Eb(ra.column+Zh);var Vp=On.oa||0,Vy=od(ra,On,Wy);On.actual=Math.min(On.maximum,Vp+Vy),On.oa!==Vp&&(Tf-=On.oa-Vp)}for(;0<Tf;){var X0=On.oa||0;if(isNaN(On.width)&&On.maximum>X0&&(On.actual=Math.min(On.maximum,X0+Tf),On.oa!==X0&&(Tf-=On.oa-X0)),On.index===0)break;On=a.Eb(On.index-1)}}}}ai(St),ri.free(id),ri.free($a),ic!==void 0&&ai(ic),su!==void 0&&ai(su);var Af=0,Cf=0,J0=a.desiredSize,EE=a.maxSize;ks=nl(a,!0);var Zp=ed=Uc=0,Kp=0;z=a.columnCount;for(var q0=0;q0<z;q0++)Xn[q0]!==void 0&&(On=a.Eb(q0),isFinite(On.width)?(Zp+=On.width,Zp+=On.Wc()):km(On)===op?(Zp+=On.oa,Zp+=On.Wc()):On.oa!==0&&(Uc+=On.oa,Uc+=On.Wc()));isFinite(J0.width)?Af=Math.min(J0.width,EE.width):Af=ks!==jn&&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&&(On=a.Eb($0),isFinite(On.width)||km(On)===op||(On.actual=On.oa*sx),On.position=b.width,On.oa!==0&&(b.width+=On.oa,b.width+=On.Wc()));z=a.rowCount;for(var ev=0;ev<z;ev++)yi[ev]!==void 0&&(On=a.Fb(ev),isFinite(On.height)?(Kp+=On.height,Kp+=On.Wc()):km(On)===op?(Kp+=On.oa,Kp+=On.Wc()):On.oa!==0&&(ed+=On.oa,ed+=On.Wc()));isFinite(J0.height)?Cf=Math.min(J0.height,EE.height):Cf=ks!==jn&&isFinite(E)?E:ed,Cf=Math.max(Cf,a.minSize.height),Cf=Math.max(Cf-Kp,0);for(var lx=ed===0?1:Math.max(Cf/ed,1),tv=0;tv<z;tv++)yi[tv]!==void 0&&(On=a.Fb(tv),isFinite(On.height)||km(On)===op||(On.actual=On.oa*lx),On.position=b.height,On.oa!==0&&(b.height+=On.oa,b.height+=On.Wc()));z=re.length;for(var Zy=0;Zy<z;Zy++){var Qp=re[Zy],Ky=0,Qy=0;Qp.type===Vn.TableRow?(Ky=b.width,On=a.Fb(Qp.row),Qy=On.actual):(On=a.Eb(Qp.column),Ky=On.actual,Qy=b.height),Qp.measuredBounds.h(0,0,Ky,Qy),ba(Qp,!1)}ai(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 Re=Math.min(a.leftIndex,fe-1);if(0<re.length){for(;Re!==fe&&(re[Re]===void 0||re[Re].oa===0);)Re++;Re=Math.max(Math.min(Re,fe-1),0),Ne=-re[Re].position}for(var We=0,ht=0;We!==ce&&oe[We]===void 0;)We++;for(;ht!==ce&&re[ht]===void 0;)ht++;fe=a.part,a.Fb(We),a.Eb(ht);for(var it=0;it<y.length;it++){var vt=y[it];if(vt instanceof Vn&&vt.visible&&yd(vt)){if(vt.type===Vn.TableRow){re=a.Fb(vt.row);var St=a.Eb(ht)}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(ht,Re))),St=vt.measuredBounds,vt.Uk(),vt.actualBounds.ka();var wt=vt.actualBounds,Ot=gn.allocAt(wt.x,wt.y,wt.width,wt.height);wt.x=vt.type===Vn.TableRow?z:re,wt.y=vt.type===Vn.TableColumn?b:oe,wt.width=St.width,wt.height=St.height,vt.actualBounds.freeze(),Lc(vt,!1),yl(Ot,wt)||fe===null||(fe.oh(),vt.Pn(fe)),gn.free(Ot)}}for(it=ri.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))),wt=0;wt<fe;wt++)if(ee[vt][wt]){Ot=a.Eb(wt),re=Ot.position+Ne+z,Ot.oa!==0&&(re+=Ot.Io(Math.max(ht,Re)));for(var $t=ee[vt][wt],li=$t.length,Ai=0;Ai<li;Ai++){var yi=$t[Ai],Xn=yi.measuredBounds;it.h(0,0);for(var On=1;On<yi.rowSpan&&!(vt+On>=a.rowCount);On++){var nr=a.Fb(vt+On);nr.oa!==0&&(it.height+=nr.total)}for(On=1;On<yi.columnSpan&&!(wt+On>=a.columnCount);On++)nr=a.Eb(wt+On),nr.oa!==0&&(it.width+=nr.total);var Xi=Ot.oa+it.width,Vr=St.oa+it.height;On=re,nr=oe;var vo=Xi,Fa=Vr,Ua=re,Ls=oe,Ba=Xi,Md=Vr;re+Xi>E.width&&(Ba=Math.max(E.width-re,0)),oe+Vr>E.height&&(Md=Math.max(E.height-oe,0));var ga=yi.alignment;if(ga.Xb()){ga=a.defaultAlignment,ga.sb()||(ga=lr);var ec=ga.x,Is=ga.y,Pd=ga.offsetX;ga=ga.offsetY;var Wl=Ot.alignment,xu=St.alignment;Wl.sb()&&(ec=Wl.x,Pd=Wl.offsetX),xu.sb()&&(Is=xu.y,ga=xu.offsetY)}else ec=ga.x,Is=ga.y,Pd=ga.offsetX,ga=ga.offsetY;(isNaN(ec)||isNaN(Is))&&(Is=ec=.5,ga=Pd=0),Wl=Xn.width,xu=Xn.height;var Ml=yi.margin,gl=Ml.left+Ml.right,ah=Ml.top+Ml.bottom,tc=Qu(yi,St,Ot,!1);!isNaN(yi.desiredSize.width)||tc!==Wn&&tc!==Oi||(Wl=Math.max(Xi-gl,0)),!isNaN(yi.desiredSize.height)||tc!==Wn&&tc!==Gi||(xu=Math.max(Vr-ah,0)),Xi=yi.maxSize,Vr=yi.minSize,Wl=Math.min(Xi.width,Wl),xu=Math.min(Xi.height,xu),Wl=Math.max(Vr.width,Wl),xu=Math.max(Vr.height,xu),Xi=xu+ah,On+=vo*ec-(Wl+gl)*ec+Pd+Ml.left,nr+=Fa*Is-Xi*Is+ga+Ml.top,yi.visible&&(da(Ua,Ls,Ba,Md,On,nr,Xn.width,Xn.height)?yi.arrange(On,nr,Wl,xu):yi.arrange(On,nr,Wl,xu,new gn(Ua,Ls,Ba,Md)))}}}for(ri.free(it),a=0;a<x;a++)E=y[a],z=E instanceof Vn?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"}Wt(wm,Na),wm.prototype.measure=function(){},wm.prototype.arrange=function(){};function Tm(){this.xa="Base"}Wt(Tm,Na),Tm.prototype.measure=function(){},Tm.prototype.arrange=function(){};function Am(){this.xa="Base"}Wt(Am,Na),Am.prototype.measure=function(a,y,E,x,b,z,ee){1<x.length&&pt("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),Re=1;a.viewboxStretch===Mi?ye!==0&&re!==0&&(Re=Math.min(Ne/ye,Pe/re)):ye!==0&&re!==0&&(Re=Math.max(Ne/ye,Pe/re)),Re===0&&(Re=1e-4),x.Ca*=Re,fe!==x.scale&&(ba(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=lr),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"}Wt(np,Na),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=[],Re=a.O.s,We=Re.length,ht=0;ht<We;ht++){var it=Re[ht],vt=[];if(Pe.push(vt),it.visible){var St=it.interval;if(!(0>St)){it=yv(it.figure);for(var wt=0;wt<We;wt++)if(wt!==ht){var Ot=Re[wt];Ot.visible&&yv(Ot.figure)===it&&(Ot=Ot.interval,Ot>St&&vt.push(Ot))}}}}for(Re=a.O.s,We=Re.length,ht=0;ht<We;ht++){var $t=Re[ht];if($t.visible&&(vt=$t.interval||1,it=Math.abs(vt),!(2>b*it*E))){if(St=$t.segmentIndex,(!isFinite(St)||isNaN(St))&&(St=0),0>St&&(St=it-Math.min(-St,it)),St=Math.round(St%it),it=$t.opacity,wt=1,it!==1){if(it===0)continue;wt=y.globalAlpha,y.globalAlpha=wt*it}Ot=Pe[ht];var li=!1,Ai=$t.strokeDashArray;if(Ai!==null&&(li=!0,y.js(Ai,$t.strokeDashOffset)),$t.figure==="LineV"&&$t.stroke!==null&&0<$t.strokeWidth){for(y.lineWidth=$t.strokeWidth,ta(a,y,$t.stroke,!1,!1,z,ee),y.beginPath(),Ai=$t=Math.floor((Ne-b)/b);Ai<=$t+ce;Ai++){var yi=Ai*b+Ne;0<=yi&&yi<=re&&Cm(Ai,vt,St,Ot)&&(y.moveTo(yi,0),y.lineTo(yi,oe))}y.stroke(),y.Se()}else if($t.figure==="LineH"&&$t.stroke!==null&&0<$t.strokeWidth){for(y.lineWidth=$t.strokeWidth,ta(a,y,$t.stroke,!1,!1,z,ee),y.beginPath(),Ai=$t=Math.floor((ye-x)/x);Ai<=$t+fe;Ai++)yi=Ai*x+ye,0<=yi&&yi<=oe&&Cm(Ai,vt,St,Ot)&&(y.moveTo(0,yi),y.lineTo(re,yi));y.stroke(),y.Se()}else if($t.figure==="BarV"&&$t.fill!==null)for(ta(a,y,$t.fill,!0,!1,z,ee),$t=$t.width,isNaN($t)&&($t=b),yi=Ai=Math.floor((Ne-b)/b);yi<=Ai+ce;yi++){var Xn=yi*b+Ne;0<=Xn+$t&&Xn<=re&&Cm(yi,vt,St,Ot)&&y.fillRect(Xn,0,$t,oe)}else if($t.figure==="BarH"&&$t.fill!==null)for(ta(a,y,$t.fill,!0,!1,z,ee),$t=$t.height,isNaN($t)&&($t=x),yi=Ai=Math.floor((ye-x)/x);yi<=Ai+fe;yi++)Xn=yi*x+ye,0<=Xn+$t&&Xn<=oe&&Cm(yi,vt,St,Ot)&&y.fillRect(0,Xn,re,$t);li&&y.fs(),it!==1&&(y.globalAlpha=wt)}}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"}Wt(Nm,Na),Nm.prototype.measure=function(a,y,E,x,b){var z=x.length;if(a instanceof Gr||a instanceof qn){var ee=null,re=null;if(a instanceof qn&&(ee=a),a instanceof Gr&&(re=a,ee=re.adornedPart,a.j===null&&(a.j=[])),ee instanceof qn){var oe=ee;if(z===0)oa(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var ce=a instanceof Gr?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 Re=ce.measuredBounds;E.ed(Re),Pe.push(Re)}Re=tr.alloc();for(var We=lt.alloc(),ht=lt.alloc(),it=0;it<z;it++){var vt=x[it];if(vt!==ce)if(vt.isPanelMain&&vt instanceof gr){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 wt=vt.segmentIndex,Ot=vt.segmentFraction,$t=vt.alignmentFocus;$t.Mc()&&($t=lr);var li=vt.segmentOrientation,Ai=vt.segmentOffset;if(isNaN(wt)){var yi=oe.ua;St=wi(),yi.Qu(Ot,St);var Xn=lt.allocAt(St[0],St[1]);if(Xn.add(oe.i(0)),yi.type===Qn.j?Xn.offset(-yi.startX,-yi.startY):(yi=yi.figures.first(),yi!==null&&Xn.offset(-yi.startX,-yi.startY)),yi=St[2],li!==Gs){var On=oe.computeAngle(vt,li,yi);vt.Kb=On}On=Xn.x-y.x;var nr=Xn.y-y.y;lt.free(Xn),ai(St)}else if(wt<-ye||wt>=ye)St=lt.alloc(),oe.vg(),oe.computeMidPoint(St),yi=oe.midAngle,li!==Gs&&(On=oe.computeAngle(vt,li,yi),vt.Kb=On),On=St.x-y.x,nr=St.y-y.y,lt.free(St);else{if(On=0,0<=wt?(nr=fe.M(wt),St=wt<ye-1?fe.M(wt+1):nr):(On=ye+wt,nr=fe.M(On),St=0<On?fe.M(On-1):nr),nr.Xa(St)){0<=wt?(yi=0<wt?fe.M(wt-1):nr,On=wt<ye-2?fe.M(wt+2):St):(yi=On<ye-1?fe.M(On+1):nr,On=1<On?fe.M(On-2):St),Xn=yi.Bf(nr);var Xi=St.Bf(On);yi=Xn>Xi+10?0<=wt?yi.ab(nr):nr.ab(yi):Xi>Xn+10?0<=wt?St.ab(On):On.ab(St):0<=wt?yi.ab(On):On.ab(yi)}else yi=0<=wt?nr.ab(St):St.ab(nr);li!==Gs&&(On=oe.computeAngle(vt,li,yi),vt.Kb=On),On=nr.x+(St.x-nr.x)*Ot-y.x,nr=nr.y+(St.y-nr.y)*Ot-y.y}vt.measure(1/0,1/0,0,0),St=vt.measuredBounds,Xn=vt.naturalBounds;var Vr=0;vt instanceof gr&&(Vr=vt.strokeWidth),Xi=Xn.width+Vr;var vo=Xn.height+Vr;Re.reset(),Re.translate(-St.x,-St.y),Re.scale(vt.scale,vt.scale),Re.rotate(li===Gs?vt.angle:yi,Xi/2,vo/2),li!==pp&&li!==vp||Re.rotate(90,Xi/2,vo/2),li!==mp&&li!==yp||Re.rotate(-90,Xi/2,vo/2),li===i0&&(45<yi&&135>yi||225<yi&&315>yi)&&Re.rotate(-yi,Xi/2,vo/2),Xn=new gn(0,0,Xi,vo),We.xi(Xn,$t),Re.Ga(We),$t=-We.x+Vr/2*vt.scale,vt=-We.y+Vr/2*vt.scale,ht.assign(Ai),Vr=isNaN(Ai.x);var Fa=isNaN(Ai.y);if(Vr||Fa){Xi=Xi/2+3,vo=vo/2+3;var Ua=45<=yi&&135>=yi,Ls=225<=yi&&315>=yi;li===Gs&&(Ua||Ls)?(ht.x=Fa?Xi:Ai.y,ht.y=Vr?vo:Ai.x,Ua?0<=wt||isNaN(wt)&&.5>Ot||!Vr||(ht.y=-vo):Ls&&((0<=wt||isNaN(wt)&&.5>Ot)&&Vr&&(ht.y=-vo),Fa&&(ht.x=-Xi))):(Vr&&(ht.x=0<=wt||isNaN(wt)&&.5>Ot?Xi:-Xi),Fa&&(ht.y=-vo),ht.rotate(yi))}else ht.rotate(yi);On+=ht.x,nr+=ht.y,Xn.set(St),Xn.h(On+$t,nr+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),oa(b,E.width||0,E.height||0),tr.free(Re),lt.free(We),lt.free(ht)}}}},Nm.prototype.arrange=function(a,y){var E=y.length;if(a instanceof Gr||a instanceof qn){var x=a,b=null;a instanceof Gr&&(b=a,x=b.adornedPart);var z=a instanceof Gr?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 qn)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,Re=wi();Pe.Qu(oe,Re);var We=lt.allocAt(Re[0],Re[1]);We.add(ye.i(0)),Pe.type===Qn.j||(Pe=Pe.figures.first()),We.offset(-Pe.startX,-Pe.startY),Pe=Re[2],ce!==Gs&&(ye=ye.computeAngle(ee,ce,Pe),ee.angle=ye),ye=We.x;var ht=We.y;lt.free(We),ai(Re)}else if(re<-E||re>=E)Re=lt.alloc(),Pe=ye,ht=Re,Pe.vg(),Pe.computeMidPoint(ht),Pe=ye.midAngle,ce!==Gs&&(ye=ye.computeAngle(ee,ce,Pe),ee.angle=ye),ye=Re.x,ht=Re.y,lt.free(Re);else{if(We=0,0<=re?(Re=y.s[re],ht=re<E-1?y.s[re+1]:Re):(We=E+re,Re=y.s[We],ht=0<We?y.s[We-1]:Re),Re.Xa(ht)){0<=re?(Pe=0<re?y.s[re-1]:Re,We=re<E-2?y.s[re+2]:ht):(Pe=We<E-1?y.s[We+1]:Re,We=1<We?y.s[We-2]:ht);var it=Pe.Bf(Re),vt=ht.Bf(We);Pe=it>vt+10?0<=re?Pe.ab(Re):Re.ab(Pe):vt>it+10?0<=re?ht.ab(We):We.ab(ht):0<=re?Pe.ab(We):We.ab(Pe)}else Pe=0<=re?Re.ab(ht):ht.ab(Re);ce!==Gs&&(ye=ye.computeAngle(ee,ce,Pe),ee.angle=ye),ye=Re.x+(ht.x-Re.x)*oe,ht=Re.y+(ht.y-Re.y)*oe}if(Ne.ys())ee.location=new lt(ye,ht);else{Ne.Mc()&&(Ne=lr),Re=tr.alloc(),Re.reset(),Re.scale(ee.scale,ee.scale),Re.rotate(ee.angle,0,0);var St=ee.naturalBounds;We=gn.allocAt(0,0,St.width,St.height),it=lt.alloc(),it.xi(We,Ne),Re.Ga(it),Ne=-it.x,vt=-it.y;var wt=St.width,Ot=St.height;St=lt.alloc(),St.assign(fe);var $t=isNaN(fe.x),li=isNaN(fe.y);if($t||li){wt=wt/2+3,Ot=Ot/2+3;var Ai=45<=Pe&&135>=Pe,yi=225<=Pe&&315>=Pe;ce===Gs&&(Ai||yi)?(St.x=li?wt:fe.y,St.y=$t?Ot:fe.x,Ai?0<=re||isNaN(re)&&.5>oe||!$t||(St.y=-Ot):yi&&((0<=re||isNaN(re)&&.5>oe)&&$t&&(St.y=-Ot),li&&(St.x=-wt))):($t&&(St.x=0<=re||isNaN(re)&&.5>oe?wt:-wt),li&&(St.y=-Ot),St.rotate(Pe))}else St.rotate(Pe);ye+=St.x,ht+=St.y,Re.pp(We),Ne+=We.x,vt+=We.y,re=lt.allocAt(ye+Ne,ht+vt),ee.move(re),lt.free(re),lt.free(St),lt.free(it),gn.free(We),tr.free(Re)}}b!==null?b.Ul(!1):x.Ul(!1),x=B1(a),a.location.h(a.position.x+x.x,a.position.y+x.y),lt.free(x)}};function l1(a,y,E,x){if(Ul(x)!==!1){var b=x.strokeWidth;b===0&&a instanceof Gr&&a.type===Vn.Link&&a.adornedObject instanceof gr&&(b=a.adornedObject.strokeWidth),b*=x.Ca,a instanceof qn&&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 Gr&&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),ba(x,!1)}}function ip(){this.xa="Base"}Wt(ip,Na),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 gn(-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,Re=re.strokeWidth,We=Pe.flattenedSegments,ht=Pe.flattenedLengths,it=Pe.flattenedTotalLength,vt=We.length,St=0,wt=0,Ot=wi(),$t=0;$t<vt;$t++){var li=We[$t],Ai=[];wt=St=0;for(var yi=li.length,Xn=0;Xn<yi;Xn+=2){var On=li[Xn],nr=li[Xn+1];if(Xn!==0){var Xi=180*Math.atan2(nr-wt,On-St)/Math.PI;0>Xi&&(Xi+=360),Ai.push(Xi)}St=On,wt=nr}Ot.push(Ai)}if(a.graduatedIntervals===null){for(var Vr=[],vo=a.O.s,Fa=vo.length,Ua=0;Ua<Fa;Ua++){var Ls=vo[Ua],Ba=[];if(Vr.push(Ba),Ls.visible){var Md=Ls.interval;if(!(0>Md)){for(var ga=0;ga<Fa;ga++)if(ga!==Ua){var ec=vo[ga];if(ec.visible&&Ls.constructor===ec.constructor){var Is=ec.interval;Is>Md&&Ba.push(Is)}}}}}a.graduatedIntervals=Vr}var Pd=a.graduatedIntervals,Wl=a.O.s,xu=Wl.length,Ml=0,gl=0,ah=it;a.graduatedMarks=[];for(var tc,vg=0;vg<xu;vg++){var Pl=Wl[vg];if(tc=[],Pl.visible&&Pl!==re){var ks=Math.abs(Pl.interval),Hp=a.graduatedTickUnit;if(!(2>Hp*ks*it/a.graduatedRange&&Pl.graduatedSkip===null)){var Sf=ht[0][0],vc=0,pl=0;gl=it*Pl.graduatedStart-1e-4,ah=it*Pl.graduatedEnd+1e-4;var Uh=Hp*ks,Ll=a.graduatedTickBase;if(Ll<a.graduatedMin){var sh=(a.graduatedMin-Ll)/Uh;sh=sh%1===0?sh:Math.floor(sh+1),Ll+=sh*Uh}else Ll>a.graduatedMin+Uh&&(Ll-=Math.floor((Ll-a.graduatedMin)/Uh)*Uh);for(var W0=Pd[vg],Gp=Ll,Gy=1e-6*a.graduatedMax,Uc=1;Ll<=a.graduatedMax+Gy;Uc++){e:{for(var ed=W0.length,Ef=0;Ef<ed;Ef++){var lh=(Ll-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&&(Ll>a.graduatedMax&&(Ll=a.graduatedMax),Pl.graduatedSkip===null||Pl instanceof So&&!Pl.graduatedSkip(Ll,Pl)||Pl instanceof gr&&!Pl.graduatedSkip(Ll,Pl))&&(Ml=(Ll-a.graduatedMin)*it/a.graduatedRange,Ml>it&&(Ml=it),gl<=Ml&&Ml<=ah)){for(var Hc=Ot[vc][pl],Ld=ht[vc][pl];vc<ht.length;){for(;Ml>Sf&&pl<ht[vc].length-1;)pl++,Hc=Ot[vc][pl],Ld=ht[vc][pl],Sf+=Ld;if(Ml<=Sf)break;vc++,pl=0,Hc=Ot[vc][pl],Ld=ht[vc][pl],Sf+=Ld}var ml=We[vc],yc=ml[2*pl],V0=ml[2*pl+1],td=(Ml-(Sf-Ld))/Ld,Sg=new lt(yc+(ml[2*pl+2]-yc)*td+Re/2-Pe.bounds.x,V0+(ml[2*pl+3]-V0)*td+Re/2-Pe.bounds.y);Sg.scale(re.scale,re.scale);e:{var nc=Hc,Hh=Ot[vc];if(!(.5005>td&&.4995<td)){var Sc=nc;if(.5>td?0<pl?Sc=Hh[pl-1]:jt.$(ml[0],ml[ml.length-2])&&jt.$(ml[1],ml[ml.length-1])&&(Sc=Hh[Hh.length-1]):.5<td&&(pl+1<Hh.length?Sc=Hh[pl+1]:jt.$(ml[0],ml[ml.length-2])&&jt.$(ml[1],ml[ml.length-1])&&(Sc=Hh[0])),nc!==Sc){var xf=Math.abs(nc-Sc);if(180<xf&&(nc<Sc?nc+=360:Sc+=360,xf=Math.abs(nc-Sc)),5e-4>td||.9995<td){Hc=(nc+Sc)/2%360;break e}if(10>xf){var Eg=1-Math.abs(.5-td);Hc=(nc*Eg+Sc*(1-Eg))%360;break e}}}Hc=nc}if(Pl instanceof So){var zu="";Pl.graduatedFunction!==null?(zu=Pl.graduatedFunction(Ll,Pl),zu=zu!=null?zu.toString():""):zu=(+Ll.toFixed(2)).toString(),zu!==""&&tc.push({$l:Sg,angle:Hc,text:zu})}else tc.push({$l:Sg,angle:Hc})}Ll=Gp+Uc*Uh}}}a.graduatedMarks.push(tc)}ai(Ot);var $a=a.graduatedMarks;if($a!==null)for(var Yp=x.length,Ks=0;Ks<Yp;Ks++){var pa=x[Ks],Qs=$a[Ks];if(pa.visible&&pa!==re&&Qs.length!==0){if(pa instanceof gr){var nd=a,Id=b,Gh=pa.alignmentFocus;Gh.Mc()&&(Gh=xr);var Yy=pa.angle;pa.Kb=0,pa.measure(1/0,1/0,0,0),pa.Kb=Yy;var Z0=pa.measuredBounds,xg=Z0.width,Yh=Z0.height,bf=gn.allocAt(0,0,xg,Yh),vl=lt.alloc();vl.xi(bf,Gh),gn.free(bf);for(var id=-vl.x,ic=-vl.y,su=new gn,ch=Qs.length,bg=0;bg<ch;bg++)for(var dh=Qs[bg],K0=dh.$l.x,wg=dh.$l.y,ra=dh.angle,Uu=0;4>Uu;Uu++){switch(Uu){case 0:vl.h(id,ic);break;case 1:vl.h(id+xg,ic);break;case 2:vl.h(id,ic+Yh);break;case 3:vl.h(id+xg,ic+Yh)}vl.rotate(ra+pa.angle),vl.offset(K0,wg),bg===0&&Uu===0?su.h(vl.x,vl.y,0,0):su.Ye(vl),vl.offset(-K0,-wg),vl.rotate(-ra-pa.angle)}lt.free(vl),nd.graduatedBounds!==null&&nd.graduatedBounds.push(su),Uo(Id,su.x,su.y,su.width,su.height)}else if(pa instanceof So){var bu=a,Q0=b;bu.temporaryTextBlock===null&&(bu.temporaryTextBlock=new So);var Il=bu.temporaryTextBlock;w1(Il,pa);var kd=pa.alignmentFocus;kd.Mc()&&(kd=xr);for(var wu=pa.segmentOrientation,Tg=pa.segmentOffset,hh=new gn,Wp=0,Ag=0,Ec=0,Wh=0,fh=0,Cg=Qs.length,Dd=0;Dd<Cg;Dd++){var Gc=Qs[Dd];Wp=Gc.$l.x,Ag=Gc.$l.y,Ec=Gc.angle,fh=Wh=pa.angle,wu!==Gs&&(fh=wu===gp||wu===n0?Ec+pa.angle:Ec,Wh=qn.computeAngle(wu,fh)),Il.Kb=Wh,Il.text=Gc.text||"",Il.measure(1/0,1/0,0,0);var Od=Il.measuredBounds,rd=Il.naturalBounds,Rd=rd.width,Vh=rd.height,rc=tr.alloc();rc.reset(),rc.translate(-Od.x,-Od.y),rc.scale(Il.scale,Il.scale),rc.rotate(fh,Rd/2,Vh/2),wu!==pp&&wu!==vp||rc.rotate(90,Rd/2,Vh/2),wu!==mp&&wu!==yp||rc.rotate(-90,Rd/2,Vh/2),wu===i0&&(45<Ec&&135>Ec||225<Ec&&315>Ec)&&rc.rotate(-Ec,Rd/2,Vh/2);var wf=gn.allocAt(0,0,Rd,Vh),Fd=lt.alloc();Fd.xi(wf,kd),rc.Ga(Fd);var Tf=-Fd.x,Wy=-Fd.y,od=lt.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 gn(Wp,Ag,Od.width,Od.height),Vp=new gn(Od.x,Od.y,Od.width,Od.height),Vy=new gn(rd.x,rd.y,rd.width,rd.height);Gc.Sz=Wh,Gc.lineCount=Il.lineCount,Gc.lines=[Il.Cb,Il.Ih,Il.df,Il.Le,Il.Qc,Il.Qb,Il.ze],Gc.actualBounds=Zh,Gc.measuredBounds=Vp,Gc.naturalBounds=Vy,Dd===0?hh.assign(Zh):hh.ed(Zh),lt.free(od),lt.free(Fd),gn.free(wf),tr.free(rc)}bu.graduatedBounds!==null&&bu.graduatedBounds.push(hh),Uo(Q0,hh.x,hh.y,hh.width,hh.height)}ba(pa,!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 Al,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],Re=Pe.length;if(Ne.visible&&Ne!==z&&Pe.length!==0){if(Ne instanceof gr){if(!(2>a.graduatedTickUnit*Ne.interval*z.geometry.flattenedTotalLength/a.graduatedRange*ee&&Ne.graduatedSkip===null)){var We=Ne.measuredBounds,ht=Ne.strokeWidth*Ne.scale,it=Ne.alignmentFocus;it.Mc()&&(it=xr);for(var vt=0;vt<Re;vt++){var St=Pe[vt].$l,wt=Pe[vt].angle,Ot=it,$t=Ne.Ab;$t.reset(),$t.translate(St.x+re.x,St.y+re.y),$t.rotate(wt+Ne.angle,0,0),$t.translate(-We.width*Ot.x+Ot.offsetX+ht/2,-We.height*Ot.y+Ot.offsetY+ht/2),$t.scale(Ne.scale,Ne.scale),mu(Ne,!1),Ne.wh.set(Ne.Ab),Ne.Kk=Ne.scale,eu(Ne,!1),Ne.gc(y,E),b&&(a.svg.appendChild(Ne.svg),Ne.svg=null),Ne.Ab.reset()}}}else if(Ne instanceof So)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new So),We=a.temporaryTextBlock,w1(We,Ne),ht=0;ht<Re;ht++)it=Pe[ht],it.actualBounds&&it.measuredBounds&&it.naturalBounds&&(We.ec=it.text||"",We.Kb=it.Sz||0,We.Gc=it.lineCount||0,vt=it.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]),it.naturalBounds&&(We.dc=it.naturalBounds),it.actualBounds&&(vt=it.actualBounds,We.arrange(vt.x,vt.y,vt.width,vt.height)),vt=it.actualBounds,We.arrange(vt.x,vt.y,vt.width,vt.height),St=it.measuredBounds,it=it.naturalBounds,wt=We.Ab,wt.reset(),wt.translate(vt.x+re.x,vt.y+re.y),wt.translate(-St.x,-St.y),We.no(wt,it.x,it.y,it.width,it.height),mu(We,!1),We.wh.set(We.Ab),We.Kk=We.scale,eu(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 Vn(a,y){if(Bt.call(this),this.na=null,a===void 0)this.na=Vn.Position;else if(typeof a=="string"){var E=Ou.I(a);E!==null&&(this.na=E)}else a instanceof Na?this.na=a:a&&(this.na=Vn.Position,y=a);this.na===null&&pt("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Vn.Grid?1048576:0),this.O=new Gn,this.yb=is,this.Tm=Ca,this.Uf=or,this.$g=null,this.$e="",this.jg=new gn(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Mi,this.jn=Co,this.kn=xo,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Wt(Vn,Bt),Vn.prototype.cloneProtected=function(a){Bt.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},Vn.prototype.Af=function(a){Bt.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},Vn.prototype.copy=function(){var a=Bt.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 di&&(z.Te=!0);var re=a.diagram;re!==null&&re.undoManager.isUndoingRedoing||z.cb(Jo,"elements",a,null,b,null,ee)}}return a}return null},ke=Vn.prototype,ke.toString=function(){return"Panel("+this.type.name+")#"+pr(this)},ke.Pn=function(a){Bt.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===Vn.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===Vn.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===Vn.Table)if(a.yc(),a instanceof Al){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===Vn.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){ta(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(),Re=ye.separatorStrokeWidth;isNaN(Re)&&(Re=E?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var We=ye.separatorStroke;We===null&&(We=E?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(We===null||ye.index===(E?oe:ce))&&(Re=0),Pe-=Re,Re=ye.position+Re,Pe+=ye.actual,Re+Pe>Ne&&(Pe=Ne-Re),0>=Pe||(Ne=a.yb,ta(a,y,ye.background,!0,!1,re,ee),E?y.fillRect(Ne.left,Re+Ne.top,ee.width-(Ne.left+Ne.right),Pe):y.fillRect(Re+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(!Bt.prototype.kk.call(this,a,y,E))return!1;if(this.type===Vn.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===Vn.Grid||this.na===Vn.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 Bt.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,jt.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=jt.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=lt.alloc(),Ne=null,y=1/0;var Re=null,We=this.isClipping&&this.na===Vn.Spot;We&&(Re=lt.alloc(),Ne=this.Pb(),(ce=Ne.Sj(re,a,oe,E,Re))&&(y=(re-Re.x)*(re-Re.x)+(a-Re.y)*(a-Re.y)));for(var ht=0;ht<Pe;ht++){var it=ye[ht];it.visible&&it!==Ne&&it.Sj(re,a,oe,E,fe)&&(ce=!0,it=(re-fe.x)*(re-fe.x)+(a-fe.y)*(a-fe.y),it<x&&(x=it,b.set(fe)))}return We&&(y>x&&b.set(Re),lt.free(Re)),lt.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();Bt.prototype.Gj.call(this)},ke.v=function(a){if(!Ul(this)){Bt.prototype.v.call(this,a),a=null,(this.na===Vn.Auto||this.na===Vn.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=nl(b,!1);(b instanceof Hs||b instanceof Vn||b instanceof So||z!==jn)&&b.v(!0)}}}},ke.Uj=function(){if(!Ul(this)){ba(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)){mu(this,!0),eu(this,!0);for(var a=this.O.s,y=a.length,E=0;E<y;E++)a[E].Wu()}},ke.Wu=function(){eu(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),oa(b,a,oe),oa(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=nl(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=jn),a){case jn:(y>E||z>x)&&(this.v(),this.measure(y>E?E:y,z>x?x:z,0,0));break;case Wn: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 Gi: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(da(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var x=y.length,b=lt.allocAt(0,0);x--;){var z=y[x];if((z.visible||z===E)&&(wr(b.set(a),z.transform),z.ca(b)))return lt.free(b),!0}return lt.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 Vn){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 Vn&&d1(a,z,E)}}function NE(a,y){h1(a,a,y)}function h1(a,y,E){if(E(y),y instanceof Vn){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 Vn){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 Vn){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 Vn?E=Math.max(E,g1(b)):b instanceof gr&&(E=Math.max(E,b.ig/2*b.strokeMiterLimit*b.Df()))}return E}ke.se=function(){return!(this.type===Vn.TableRow||this.type===Vn.TableColumn)};function yd(a){return a.type===Vn.TableRow||a.type===Vn.TableColumn}ke.ic=function(a,y,E){if(this.pickable===!1||(y===void 0&&(y=null),E===void 0&&(E=null),zs(this)))return null;var x=this.naturalBounds,b=1/this.Df(),z=this.se(),ee=z?a:wr(lt.allocAt(a.x,a.y),this.transform),re=this.diagram,oe=10,ce=5;if(re!==null&&(oe=re.Ql("extraTouchArea"),ce=oe/2),da(-(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=lt.alloc(),ce=(oe=this.isClipping&&this.na===Vn.Spot)?this.Pb():null,oe&&(ce.se()?wr(re.set(a),ce.transform):re.set(a),!ce.ca(re)))return lt.free(re),z||lt.free(ee),null;for(var ye=Jc(this);fe--;){var Ne=b[fe];if((Ne.visible||Ne===ye)&&(Ne.se()?wr(re.set(a),Ne.transform):re.set(a),!oe||Ne!==ce)){var Pe=null;if(Ne instanceof Vn?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 lt.free(re),z||lt.free(ee),Pe}}lt.free(re)}return this.background===null&&this.areaBackground===null?(z||lt.free(ee),null):(a=da(0,0,x.width,x.height,ee.x,ee.y)?this:null,z||lt.free(ee),a)}return z||lt.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:wr(lt.allocAt(a.x,a.y),this.transform);if(b=da(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=lt.alloc(),fe=Jc(this);oe--;){var ye=re[oe];if(ye.visible||ye===fe){ye.se()?wr(ce.set(a),ye.transform):ce.set(a);var Ne=ye;ye=ye instanceof Vn?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))}}lt.free(ce)}return z||lt.free(ee),b&&(this.background!==null||this.areaBackground!==null)}return z||lt.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=tr.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return Sv(this,y,E,b),z===void 0&&tr.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 Vn?fe:null,Ne=tr.alloc(),Ne.set(ee),(fe!==null?fe.Cf(a,y,E,x,b,Ne):Ra(ye,a,x,Ne))&&(y!==null&&(ye=y(ye)),ye===null||E!==null&&!E(ye)||b.add(ye)),tr.free(Ne))}}return z===void 0&&tr.free(ee),x}return z===void 0&&tr.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 Vn&&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:wr(lt.allocAt(a.x,a.y),this.transform),ce=re?y:wr(lt.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||kr(oe.x,oe.y,0,0,0,ee.height)<=fe||kr(oe.x,oe.y,0,ee.height,ee.width,ee.height)<=fe||kr(oe.x,oe.y,ee.width,ee.height,ee.width,0)<=fe||kr(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||(lt.free(oe),lt.free(ce)),ye){if(!this.isAtomic){oe=lt.alloc(),ce=lt.alloc(),fe=Jc(this);for(var Ne=this.O.s,Pe=Ne.length;Pe--;){var Re=Ne[Pe];if(Re.visible||Re===fe){var We=Re.actualBounds,ht=this.naturalBounds;(!re||!(We.x>ht.width||We.y>ht.height||0>We.x+We.width||0>We.y+We.height))&&(Re.se()?(We=Re.transform,wr(oe.set(a),We),wr(ce.set(y),We)):(oe.set(a),ce.set(y)),We=Re,Re=Re instanceof Vn?Re:null,(Re!==null?Re.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)))}}lt.free(oe),lt.free(ce)}return b?ye:ee}return!1};function Ev(a){var y=null;return a instanceof gr&&(y=a.spot1,y===Ca&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Yi),y}function xv(a){var y=null;return a instanceof gr&&(y=a.spot2,y===Ca&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=Zo),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 _i&&pt("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&pt("Cannot make a Panel contain itself: "+this.toString()),pt("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var E=y.panel;if(E!==null&&E!==this&&pt("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!==Vn.Grid||y instanceof gr||pt("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Vn.Graduated||y instanceof gr||y instanceof So||pt("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 Ti),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 pt("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),Ul(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Vn&&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 di&&(E.Te=!0),E.Te&&E instanceof di&&(E.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(x!==-1&&E.cb(ea,"elements",this,y,null,x,null),E.cb(Jo,"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),ba(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 di&&(x instanceof Vn?x.qm(x,function(ee,re){Wv(z,re,y)}):Wv(z,x,y)),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||z.cb(ea,"elements",this,x,null,a,null))},ke.Fb=function(a){0>a&&ii(a,">= 0",Vn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var E=new wa;E.wi(this),E.isRow=!0,E.index=a,y[a]=E,this.cb(Jo,"rowdefs",this,null,E,null,a)}return y[a]},ke.oA=function(a){if(0>a&&ii(a,">= 0",Vn,"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(ea,"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 wa?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&&ii(a,">= 0",Vn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var E=new wa;E.wi(this),E.isRow=!1,E.index=a,y[a]=E,this.cb(Jo,"coldefs",this,null,E,null,a)}return y[a]},ke.jA=function(a){if(0>a&&ii(a,">= 0",Vn,"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(ea,"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 wa?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 wa(y)),this},ke.By=function(a,y){return(a=this.Eb(a))&&Im(a,new wa(y)),this},ke.nz=function(a){if(0>a||this.type!==Vn.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!==Vn.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 lt(NaN,NaN)),this.type!==Vn.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!==Vn.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 yu(a){var y=a.allBindings;if(y===null)a.data!==null&&pt("Template cannot have .data be non-null: "+a),a.allBindings=y=new Gn;else if(y._isFrozen)return;var E=new Gn;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 Gn),Pe.srcBindings.add(Ne))),y.add(Ne)}if(fe instanceof Vn&&fe.type===Vn.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 Re=Pe.be.iterator;Re.next();){var We=Re.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();)Re=Pe.value,Re.xd=Ne,Re.to=1,Re.wl=Ne.index,y.add(Re)}}});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 Gn),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 Vn&&(ee=re.substring(0,oe),re=re.substr(oe+1),oe=z.fb(ee),oe!==null?(z=oe,b.targetProperty=re):xi('Warning: unable to find GraphObject named "'+ee+'" for Binding: '+b.toString())),z instanceof wa?(ee=pr(z.panel),b.Ai=ee===void 0?-1:ee,z.panel.bindingId=b.Ai):z instanceof Bt?(ee=pr(z),b.Ai=ee===void 0?-1:ee,z.bindingId=b.Ai):pt("Unknown type of binding target: "+z)}y.freeze(),a instanceof _i&&a.Zc()&&a.Va()}ke.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return NE(y,function(E){E instanceof Vn&&(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&&yu(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 Vn))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 Vn&&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 Vn)||z.data!==y[ee])return!0;b++,ee++}return!1}function rp(a){if(a.type===Vn.Spot||a.type===Vn.Auto)return Math.min(a.O.length,1);if(a.type===Vn.Link){a=a.O;for(var y=a.length,E=0;E<y;E++){var x=a.M(E);if(!(x instanceof gr&&x.isPanelMain))break}return E}return a.type===Vn.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof Vn&&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 Vn){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),Ul(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 di&&(y.Te=!0),y.Te&&y instanceof di&&(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(yu(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 Ti),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 Vn){var b=y,z=E;x.type===Vn.TableRow?x.row=b:x.type===Vn.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=ca(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;pt("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,xi('No item template Panel found for category "'+y+'" on '+a),xi(" Using default item template."),a=new Vn,y=new So,y.bind(new fa("text","",ji)),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 Vn){y=y.O.s,x=y.length;for(var b=0;b<x;b++){var z=y[b];E&&z instanceof Vn&&!z.isEnabled||Lm(a,z,E)}}}function pc(a,y){y.name=a,Ou.add(a,y)}Rt.Object.defineProperties(Vn.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===Vn.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&&ii(a,">= 0",Vn,"padding"),a=new dr(a)):(0>a.left&&ii(a.left,">= 0",Vn,"padding:value.left"),0>a.right&&ii(a.right,">= 0",Vn,"padding:value.right"),0>a.top&&ii(a.top,">= 0",Vn,"padding:value.top"),0>a.bottom&&ii(a.bottom,">= 0",Vn,"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:is},set:function(a){typeof a=="number"&&(a=new dr(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new iu),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 to)&&(a instanceof to&&a.freeze(),this.T===null&&(this.T=new iu),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 iu),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)||pt("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 iu),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 to)&&(a instanceof to&&a.freeze(),this.T===null&&(this.T=new iu),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 iu),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)||pt("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 iu),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 iu),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||pt("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()||pt("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),ns(this)&&(a=this.part,a!==null&&Mo(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),ns(this)&&(a=this.part,a!==null&&Mo(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 iu),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new iu),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 iu),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 iu),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)&&pt("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new iu),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)&&pt("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new iu),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 _i&&!(this instanceof Gr);yu(this),this.ub=a;var x=this.diagram;x!==null&&(E?(E=x.partManager,this instanceof qn?(y!==null&&E.bf.remove(y),a!==null&&E.bf.add(a,this)):this instanceof _i&&(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 Ti}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof _i||a.isPanelMain)&&pt("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(););yr(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&&(yr(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 ir&&(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))}}}),Rt.Object.defineProperties(Vn,{Position:{get:function(){return Ou.I("Position")}},Horizontal:{get:function(){return Ou.I("Horizontal")}},Vertical:{get:function(){return Ou.I("Vertical")}},Spot:{get:function(){return Ou.I("Spot")}},Auto:{get:function(){return Ou.I("Auto")}},Table:{get:function(){return Ou.I("Table")}},Viewbox:{get:function(){return Ou.I("Viewbox")}},TableRow:{get:function(){return Ou.I("TableRow")}},TableColumn:{get:function(){return Ou.I("TableColumn")}},Link:{get:function(){return Ou.I("Link")}},Grid:{get:function(){return Ou.I("Grid")}},Graduated:{get:function(){return Ou.I("Graduated")}}}),Vn.prototype.rebuildItemElements=Vn.prototype.mv,Vn.prototype.findItemPanelForData=Vn.prototype.sx,Vn.prototype.updateTargetBindings=Vn.prototype.La,Vn.prototype.copyTemplate=Vn.prototype.Uy,Vn.prototype.graduatedValueForPoint=Vn.prototype.Gz,Vn.prototype.graduatedPointForValue=Vn.prototype.Fz,Vn.prototype.findColumnForLocalX=Vn.prototype.fz,Vn.prototype.findRowForLocalY=Vn.prototype.nz,Vn.prototype.addColumnDefinition=Vn.prototype.By,Vn.prototype.addRowDefinition=Vn.prototype.Hy,Vn.prototype.addRowColumnDefinition=Vn.prototype.Gy,Vn.prototype.removeColumnDefinition=Vn.prototype.jA,Vn.prototype.getColumnDefinition=Vn.prototype.Eb,Vn.prototype.removeRowDefinition=Vn.prototype.oA,Vn.prototype.getRowDefinition=Vn.prototype.Fb,Vn.prototype.removeAt=Vn.prototype.mb,Vn.prototype.remove=Vn.prototype.remove,Vn.prototype.insertAt=Vn.prototype.Gb,Vn.prototype.elt=Vn.prototype.M,Vn.prototype.add=Vn.prototype.add,Vn.prototype.findObject=Vn.prototype.fb,Vn.prototype.findInVisualTree=Vn.prototype.Nl,Vn.prototype.walkVisualTreeFrom=Vn.prototype.qm,Vn.prototype.findMainElement=Vn.prototype.Pb;var S1=!1,E1=null,Ou=new Ti;Vn.className="Panel",Vn.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 iu(){this.Pc=[],this.Oc=[],this.j=this.ob=Dm,this.hb=this.Hb=0,this.Qp=is,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}iu.prototype.copy=function(a){for(var y=new iu,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},iu.className="TablePanelSettings";function wa(a){br(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Ca,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Cv,this.hg=or,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))}wa.prototype.copy=function(){var a=new wa;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=pi(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=pi(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}ke=wa.prototype,ke.qb=function(a){a.classType===wa&&(this.sizing=a)},ke.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+pr(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===Vn.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(To,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 fa(a,y,E,x):b=a,b.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&v1(y)&&pt("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+b+" on "+a)),this.be===null&&(this.be=new Gn),this.be.add(b),this},Rt.Object.defineProperties(wa.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&&ii(a,">= 0",wa,"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&&ii(a,">= 0",wa,"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))&&ii(a,">= 0",wa,"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&&ii(a,">= 0",wa,"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 dr(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 to&&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)||pt("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 to&&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}}}),wa.prototype.computeEffectiveSpacing=wa.prototype.Wc,wa.prototype.computeEffectiveSpacingTop=wa.prototype.Io;var Cv=new wn(wa,"Default",0),op=new wn(wa,"None",1),Dm=new wn(wa,"ProportionalExtra",2);wa.className="RowColumnDefinition",wa.Default=Cv,wa.None=op,wa.ProportionalExtra=Dm;function gr(a,y){Bt.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)}Wt(gr,Bt),gr.prototype.cloneProtected=function(a){Bt.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=pi(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=gr.prototype,ke.th=function(){Bt.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},ke.qb=function(a){a===jn||a===Mi||a===Pr||a===or?this.geometryStretch=a:Bt.prototype.qb.call(this,a)},ke.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+pr(this)};function Qf(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,Re,We=0,ht=wi(),it=2;it<b;it+=2)ce=E[it],fe=E[it+1],ye=ce-re,re=fe-oe,ye===0&&(ye=.001),Ne=re/ye,Pe=Math.atan2(re,ye),Re=Math.sqrt(ye*ye+re*re),ht.push([ye,Pe,Ne,Re]),We+=Re,re=ce,oe=fe;re=E[0],oe=E[1],ye=x.measuredBounds.width,x instanceof gr&&(ye-=x.strokeWidth),1>ye&&(ye=1),b=E=ye,ce=ee/2,fe=ce!==0,it=0,Re=ht[it],ye=Re[0],Pe=Re[1],Ne=Re[2],Re=Re[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){ai(ht);return}b>Re?(vt=b-Re,b=Re):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,Re-=b,vt!==0){if(it++,it===ht.length){ai(ht);return}Re=ht[it],ye=Re[0],Pe=Re[1],Ne=Re[2],Re=Re[3],b=vt}}ai(ht)}}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&&ta(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===Vn.Link&&re instanceof Gr&&re.category==="Selection"&&re.adornedObject instanceof gr&&re.adornedPart.Pb()===re.adornedObject?re.adornedObject.strokeWidth:0),oe===0&&(E=null),E!==null&&oe!==0&&(ta(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&&Kc(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+jt.wg*b,oe-Ne,ce+b,oe-jt.wg*Ne,ce+b,oe),a.bezierCurveTo(ce+b,oe+jt.wg*Ne,ce+jt.wg*b,oe+Ne,ce,oe+Ne),a.bezierCurveTo(ce-jt.wg*b,oe+Ne,ce-b,oe+jt.wg*Ne,ce-b,oe),a.bezierCurveTo(ce-b,oe-jt.wg*Ne,ce-jt.wg*b,oe-Ne,ce,oe-Ne),a.closePath(),x!==null&&a.ng(x),E!==null&&(re&&z&&Ic(a),a.jk(),re&&z&&Kc(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,Re=0;Re<ye;Re++){var We=fe[Re];switch(We.type){case Do:a.moveTo(We.endX,We.endY);break;case mo:a.lineTo(We.endX,We.endY);break;case ja:a.bezierCurveTo(We.point1X,We.point1Y,We.point2X,We.point2Y,We.endX,We.endY);break;case Os:a.quadraticCurveTo(We.point1X,We.point1Y,We.endX,We.endY);break;case na:if(We.radiusX===We.radiusY){var ht=Math.PI/180;a.arc(We.point1X,We.point1Y,We.radiusX,We.startAngle*ht,(We.startAngle+We.sweepAngle)*ht,0>We.sweepAngle,Pe!==null?Pe.endX:ce.startX,Pe!==null?Pe.endY:ce.startY)}else if(Pe=os(We,ce),ht=Pe.length,ht===0)a.lineTo(We.centerX,We.centerY);else for(var it=0;it<ht;it++){var vt=Pe[it];it===0&&a.lineTo(vt[0],vt[1]),a.bezierCurveTo(vt[2],vt[3],vt[4],vt[5],vt[6],vt[7])}break;case qs:if(it=ht=0,Pe!==null&&Pe.type===na){if(Pe=os(Pe,ce),vt=Pe.length,vt===0){a.lineTo(We.endX,We.endY);break}Pe=Pe[vt-1]||null,Pe!==null&&(ht=Pe[6],it=Pe[7])}else ht=Pe!==null?Pe.endX:ce.startX,it=Pe!==null?Pe.endY:ce.startY;if(Pe=As(We,ce,ht,it),ht=Pe.length,ht===0){a.lineTo(We.endX,We.endY);break}for(it=0;it<ht;it++)vt=Pe[it],a.bezierCurveTo(vt[2],vt[3],vt[4],vt[5],vt[6],vt[7]);break;default:pt("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&&Kc(a))):(Ic(a),fe&&x!=="transparent"&&x!==null&&a.ng(x,ce.isEvenOdd),E!==null&&a.jk(),Kc(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=wi(),z.type===Qn.j)x.push(z.startX),x.push(z.startY),x.push(z.endX),x.push(z.endY),Qf(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(Re=ce[ye],Re.type){case Do:Qf(a,y,x,E),x.length=0,x.push(Re.endX),x.push(Re.endY),ee=Re.endX,b=Re.endY,oe=ee,Ne=b;break;case mo:x.push(Re.endX),x.push(Re.endY),ee=Re.endX,b=Re.endY;break;case ja:jt.Qe(ee,b,Re.point1X,Re.point1Y,Re.point2X,Re.point2Y,Re.endX,Re.endY,.5,x),ee=Re.endX,b=Re.endY;break;case Os:jt.ep(ee,b,Re.point1X,Re.point1Y,Re.endX,Re.endY,.5,x),ee=Re.endX,b=Re.endY;break;case na:if(We=os(Re,re),Pe=We.length,Pe===0){x.push(Re.centerX),x.push(Re.centerY),ee=Re.centerX,b=Re.centerY;break}for(ht=0;ht<Pe;ht++)it=We[ht],jt.Qe(ee,b,it[2],it[3],it[4],it[5],it[6],it[7],.5,x),ee=it[6],b=it[7];break;case qs:if(We=As(Re,re,ee,b),Pe=We.length,Pe===0){x.push(Re.endX),x.push(Re.endY),ee=Re.endX,b=Re.endY;break}for(ht=0;ht<Pe;ht++)it=We[ht],jt.Qe(ee,b,it[2],it[3],it[4],it[5],it[6],it[7],.5,x),ee=it[6],b=it[7];break;default:pt("Segment not of valid type: "+Re.type)}Re.isClosed&&(x.push(oe),x.push(Ne),Qf(a,y,x,E))}Qf(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),Qf(a,y,x,E);else if(z.type===Qn.F){if(b=new ma,b.startX=z.endX,b.startY=(z.startY+z.endY)/2,ee=new _r(na),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=os(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],jt.Qe(ee,b,Ne[2],Ne[3],Ne[4],Ne[5],Ne[6],Ne[7],.5,x),ee=Ne[6],b=Ne[7];Qf(a,y,x,E)}ai(x),a.restore(),a.Vc(!1)}}}},ke.kk=function(a,y,E){return!Bt.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:Bt.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 lt),a instanceof Yt){a.Mc()&&pt("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 gn);var y=this.naturalBounds,E=this.oe;y=gn.allocAt(y.x,y.y,y.width,y.height);var x=this.strokeWidth;return y.Bc(x/2,x/2),x=lt.allocAt(y.x,y.y).transform(E),a.h(x.x,x.y,0,0),x.h(y.right,y.y).transform(E),Uo(a,x.x,x.y,0,0),x.h(y.right,y.bottom).transform(E),Uo(a,x.x,x.y,0,0),x.h(y.x,y.bottom).transform(E),Uo(a,x.x,x.y,0,0),gn.free(y),lt.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=gn.alloc();if(z.assign(x),z.Bc(b+2,b+2),!z.ca(a))return gn.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:(gn.free(z),jt.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 gn.free(z),!1;z.Bc(x,x)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),gn.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 gn.free(z),!1;ee+=x,b+=x}return this.stroke!==null&&(ee+=x,b+=x),gn.free(z),0>=ee||0>=b?!1:1>=E*E/(ee*ee)+y*y/(b*b)}if(E.type===Qn.o)return gn.free(z),this.fill===null?sc(E,a.x,a.y,b):Js(E,a,b,1<this.strokeWidth,y);pt("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=jt.Ze[re];typeof ce=="string"&&(ce=jt.Ze[ce]),typeof ce=="function"?(oe=ce(null,100,100),Mv[re]=oe):pt("Unsupported Figure: "+re)}ee=oe.bounds}re=ee.width,oe=ee.height,ce=ee.width;var fe=ee.height;switch(nl(this,!0)){case jn:x=E=0;break;case Wn: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 Gi: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 jn:break;case Wn:re=ce,oe=fe;break;case Mi:E=Math.min(ce/re,fe/oe),isFinite(E)||(E=1),re*=E,oe*=E;break;default:pt(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&&jt.$(this.ua.Sk,a-z)&&jt.$(this.ua.Rk,y-z)||(this.ua=gr.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===or?Wn:y:y===or?Mv[a.figure].defaultStretch:y}ke.eh=function(a,y,E,x){Ps(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=jt.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=wi(),a=new lt,jt.Ve(ce.startX+x,ce.startY+fe,ce.endX+x,ce.endY+fe,z,ee,re,oe,a)&&y.push(a),a=new lt,jt.Ve(ce.startX-x,ce.startY-fe,ce.endX-x,ce.endY-fe,z,ee,re,oe,a)&&y.push(a),a=new lt,jt.Ve(ce.startX+x,ce.startY+fe,ce.startX-x,ce.startY-fe,z,ee,re,oe,a)&&y.push(a),a=new lt,jt.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 ai(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);ai(y)}else if(ce.type===Qn.u)fe=jt.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=gn.allocAt(Pe.x,Pe.y,Pe.width,Pe.height).Bc(ye,ye);e:if(y.width===0)fe=jt.Ve(y.x,y.y,y.x,y.y+y.height,z,ee,re,oe,b);else if(y.height===0)fe=jt.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}gn.free(y)}else if(ce.type===Qn.o){Ne=lt.alloc();var Re=re-z,We=oe-ee,ht=Re*Re+We*We,it=z,vt=ee;if(0<ht&&Pe.contains(it,vt)&&(Ne.x=it,Ne.y=vt,this.ca(Ne)))for(Re!==0&&.5>Math.abs(Re)?(We*=.5/Re,Re=.5):We!==0&&.5>Math.abs(We)&&(Re*=.5/We,We=.5),it-=Re,vt-=We;Pe.contains(it,vt);)it-=Re,vt-=We;for(b.x=re,b.y=oe,We=0;We<ce.figures.count;We++){var St=ce.figures.s[We],wt=St.isFilled?it:z,Ot=St.isFilled?vt:ee,$t=St.segments;Pe=St.startX,Re=St.startY;for(var li=Pe,Ai=Re,yi=0;yi<$t.count;yi++){var Xn=$t.s[yi],On=Xn.type,nr=Xn.endX,Xi=Xn.endY,Vr=!1;switch(On){case Do:li=nr,Ai=Xi;break;case mo:Vr=Rm(Pe,Re,nr,Xi,wt,Ot,re,oe,Ne);break;case ja:Vr=jt.Eo(Pe,Re,Xn.point1X,Xn.point1Y,Xn.point2X,Xn.point2Y,nr,Xi,wt,Ot,re,oe,.6,Ne);break;case Os:Vr=jt.Eo(Pe,Re,Pe+2/3*(Xn.point1X-Pe),Re+2/3*(Xn.point1Y-Re),nr+2/3*(Xn.point1X-nr),Xi+2/3*(Xn.point1Y-Xi),nr,Xi,wt,Ot,re,oe,.6,Ne);break;case na:case qs:On=Xn.type===na?os(Xn,St):As(Xn,St,Pe,Re);var vo=On.length;if(vo===0){Vr=Rm(Pe,Re,Xn.type===na?Xn.centerX:Xn.endX,Xn.type===na?Xn.centerY:Xn.endY,wt,Ot,re,oe,Ne);break}for(Xi=null,nr=0;nr<vo;nr++){if(Xi=On[nr],nr===0&&Rm(Pe,Re,Xi[0],Xi[1],wt,Ot,re,oe,Ne)){var Fa=Om(wt,Ot,Ne,ht,b);Fa<ht&&(ht=Fa,fe=!0)}jt.Eo(Xi[0],Xi[1],Xi[2],Xi[3],Xi[4],Xi[5],Xi[6],Xi[7],wt,Ot,re,oe,.6,Ne)&&(Fa=Om(wt,Ot,Ne,ht,b),Fa<ht&&(ht=Fa,fe=!0))}nr=Xi[6],Xi=Xi[7];break;default:pt("Unknown Segment type: "+On)}Pe=nr,Re=Xi,Vr&&(Vr=Om(wt,Ot,Ne,ht,b),Vr<ht&&(ht=Vr,fe=!0)),Xn.isClosed&&(nr=li,Xi=Ai,Rm(Pe,Re,nr,Xi,wt,Ot,re,oe,Ne)&&(Xn=Om(wt,Ot,Ne,ht,b),Xn<ht&&(ht=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,lt.free(Ne)}else pt("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(jt.$(a,E)&&jt.$(y,x)||jt.$(b,ee)&&jt.$(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||jt.$(oe.y,a))&&(oe.y<y||jt.$(oe.y,y))&&(ce=!0)):(y=a<E?a:E,a=a<E?E:a,(oe.x>y||jt.$(oe.x,y))&&(oe.x<a||jt.$(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=lt.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)))),lt.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=tr.alloc();E.set(y),E.Vj();var x=a.left,b=a.right,z=a.top;a=a.bottom;var ee=lt.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 lt.free(ee),!0;var re=lt.alloc(),oe=lt.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)))),lt.free(ee),tr.free(E),lt.free(re),lt.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(ht,it){for(var vt=ht.length,St=0;St<vt;St+=2)if(it.zd(ht[St],ht[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,Ho(a.x,a.y,re,oe)<=b&&Ho(a.x,a.y,ce,oe)<=b&&Ho(a.x,a.y,re,ee)<=b&&Ho(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),kr(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=kr(a.x,a.y,re,oe,re,ee)<=b||kr(a.x,a.y,re,oe,ce,oe)<=b||kr(a.x,a.y,ce,oe,ce,ee)<=b||kr(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 kr(a.x,a.y,re,oe,ce,ee)<=b;if(E){if(a=jt.$y(fe,ye,y,z),a*a<=b)return!0}else return!(Ho(y,z,-fe,0)>=b||Ho(y,z,0,-ye)>=b||Ho(y,z,0,ye)>=b||Ho(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&&kr(a.x,a.y,z,re,z,ce)>b&&kr(a.x,a.y,z,re,oe,re)>b&&kr(a.x,a.y,oe,ce,z,ce)>b&&kr(a.x,a.y,oe,ce,oe,re)>b)return!1;if(z=Math.sqrt(b),E){if(this.fill===null?sc(y,a.x,a.y,z):Js(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 Do:case mo:if(ee=ye.endX,fe=ye.endY,a.zd(ee,fe)>b)return!1;break;case ja:var Ne=wi();if(jt.Qe(ee,fe,ye.point1X,ye.point1Y,ye.point2X,ye.point2Y,ye.endX,ye.endY,.8,Ne),ee=x(Ne,a),ai(Ne),ee||(ee=ye.endX,fe=ye.endY,a.zd(ee,fe)>b))return!1;break;case Os:if(Ne=wi(),jt.ep(ee,fe,ye.point1X,ye.point1Y,ye.endX,ye.endY,.8,Ne),ee=x(Ne,a),ai(Ne),ee||(ee=ye.endX,fe=ye.endY,a.zd(ee,fe)>b))return!1;break;case na:case qs:Ne=ye.type===na?os(ye,z):As(ye,z,ee,fe);var Pe=Ne.length;if(Pe===0){if(ee=ye.type===na?ye.centerX:ye.endX,fe=ye.type===na?ye.centerY:ye.endY,a.zd(ee,fe)>b)return!1;break}ye=null;for(var Re=wi(),We=0;We<Pe;We++)if(ye=Ne[We],Re.length=0,jt.Qe(ye[0],ye[1],ye[2],ye[3],ye[4],ye[5],ye[6],ye[7],.8,Re),x(Re,a))return ai(Re),!1;ai(Re),ye!==null&&(ee=ye[6],fe=ye[7]);break;default:pt("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=_a):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new Yt(1-_a.x,_a.y)))}gr.makeGeometry=function(a,y,E){if(a.toArrow!=="None")var x=Dc[a.toArrow];else a.fromArrow!=="None"?x=Dc[a.fromArrow]:(x=jt.Ze[a.figure],typeof x=="string"&&(x=jt.Ze[x]),x===void 0&&pt("Unknown Shape.figure: "+a.figure),x=x(a,y,E),x.Sk=y,x.Rk=E);if(x===null){var b=jt.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 jt.um)if(b.toLowerCase()===E){x=b;break}if(x!==null)return a=Qn.parse(jt.um[x],!1),Dc[x]=a,E!==x&&(Dc[E]=x),x}}return typeof y=="string"?y:y instanceof Qn?a:null}Rt.Object.defineProperties(gr.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),ns(this)&&(a=this.part,a!==null&&Mo(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=lt.allocAt(-y.x,-y.y),lt.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 to&&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 to&&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 ii(a,"value >= 0",gr,"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"?ii(a,'"butt", "round", or "square"',gr,"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"?ii(a,'"miter", "bevel", or "round"',gr,"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)||pt("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=jt.Ze[a];typeof E=="function"?E=a:(E=jt.Ze[a.toLowerCase()])||pt("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?pt("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?pt("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:Ca},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:Ca},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:or},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))}}}),gr.prototype.intersectsRect=gr.prototype.Yc,gr.prototype.containedInRect=gr.prototype.fh,gr.prototype.getNearestIntersectionPoint=gr.prototype.rs,gr.prototype.getDocumentBounds=gr.prototype.mi,gr.prototype.getDocumentPoint=gr.prototype.ga;var Dc=new Bi,Mv=new Bi;gr.className="Shape",gr.getFigureGenerators=function(){var a=new Ti,y;for(y in jt.Ze)y!==y.toLowerCase()&&a.add(y,jt.Ze[y]);return a.freeze(),a},gr.defineFigureGenerator=function(a,y){var E=a.toLowerCase(),x=jt.Ze;x[a]=y,x[E]=a},gr.getArrowheadGeometries=function(){var a=new Ti;for(x in jt.um)if(Dc[x]===void 0){var y=Qn.parse(jt.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},gr.defineArrowheadGeometry=function(a,y){var E=null;typeof y=="string"?E=Qn.parse(y,!1):E=y,y=a.toLowerCase(),y!=="none"&&a!==y||pt("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=or,this.gg=this.fg=Ca}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 So(a,y){return Bt.call(this),zm||(il=$o?new vu(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}Wt(So,Bt),So.prototype.cloneProtected=function(a){Bt.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=So.prototype,ke.th=function(){Bt.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===So?this.wrap=a:Bt.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(){Bt.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;ta(this,a,this.xc,!0,!1,E,x),(oe||ce)&&ta(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 Al&&(E=!1),y.Gf("textGreeking")===!1&&(E=!1),y=this.spacingAbove,ye=this.spacingBelow,this.flip){case Br:a.translate(b,0),a.scale(-1,1);break;case Sr:a.translate(0,z),a.scale(1,-1);break;case so: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 Br:a.scale(-1,1),a.translate(-b,0);break;case Sr:a.scale(1,-1),a.translate(0,-z);break;case so: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 Al&&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 Al&&y.ad.classList.add("gojs-td"))}},ke.kk=function(a,y,E){if(!Bt.prototype.kk.call(this,a,y,E))return!1;if(ta(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:Bt.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;il!==null&&L1!==z&&(L1=il.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,Ru(re)),re=ce+1}z=ee}else ee=z.indexOf(`
`,0),0<=ee&&(z=z.substr(0,ee)),z=Ru(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);Ru(ce)>y&&1<ce.length;)ce=ce.substr(0,ce.length-1);ce+=up,y=Ru(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),oa(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){Ps(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=Ru(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=Ru(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=Ru(ce);for(b&&(y=y.trim()),z+=y,E=Math.max(1,E-oe);Ru(z)>E&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=up;var fe=Ru(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);Ru(y)>E;){var ye=1;for(ce=Ru(y.substr(0,ye)),fe=0;ce<=E;)ye++,fe=ce,ce=Ru(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=Ru(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=Ru(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=Ru(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 Ru(a){return il===null?8*a.length:il.measureText(a).width}function sp(a){if(a.df!==null)return a.df;var y=a.Ae;if(il===null){var E=16;return a.df=E}return Ov[y]!==void 0&&5e3>P1?E=Ov[y]:(E=1.3*il.measureText("M").width,Ov[y]=E,P1++),a.df=E}function T1(a){if(il===null)return 6;if(jm[a]!==void 0&&5e3>Rv)var y=jm[a];else y=il.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=ri.alloc();Lv(a,z,y,oe),b+=oe.height,ri.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}Rt.Object.defineProperties(So.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:jn},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:oc},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),mc(this),this.da.Yr=a,js(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=ri.alloc();Lv(this,this.ec,999999,a);var y=a.width;ri.free(a),a=A1(this,y);var E=this.desiredSize;isNaN(E.width)||(y=E.width),isNaN(E.height)||(a=E.height),oa(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 to&&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&&ii(a,"> 0",So,"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 wn(So,"None",0),C1=new wn(So,"WrapFit",1),kv=new wn(So,"WrapDesiredSize",2),N1=new wn(So,"WrapBreakAll",3),Dv=new wn(So,"OverflowClip",0),_m=new wn(So,"OverflowEllipsis",1),lp=new wn(So,"FormatTrim",0),M1=new wn(So,"FormatNone",0),PE=/[ \u200b\u00ad]/,Ov=new Bi,P1=0,jm=new Bi,Rv=0,up="...",L1="",il=null,zm=!1;So.className="TextBlock";function Fv(){this.nc=!1,this.Hd=null,this.Xf=jn,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=oc,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},So.getEllipsis=function(){return up},So.setEllipsis=function(a){up=a,jm=new Bi,Rv=0},So.getBaseline=function(){return Fm},So.setBaseline=function(a){Fm=a},So.getUnderline=function(){return Bm},So.setUnderline=function(a){Bm=a},So.isValidFont=function(a){if(zm||(il=$o?new vu(null).context:null,zm=!0),il===null)return!0;var y=il.font;if(a===y||a==="10px sans-serif")return!0;il.font="10px sans-serif",il.font=a;var E=il.font;if(E!=="10px sans-serif")return il.font=y,!0;il.font="19px serif";var x=il.font;return il.font=a,E=il.font,il.font=y,E!==x},So.FormatNone=M1,So.FormatTrim=lp,So.None=Iv,So.OverflowClip=Dv,So.OverflowEllipsis=_m,So.WrapBreakAll=N1,So.WrapDesiredSize=kv,So.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 rl(a,y){Bt.call(this),this.Eg=null,this.qo="",this.Xg=Xs,this.Nk=Wn,this.Zg=this.Hd=null,this.Mk=lr,this.Xf=jn,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;Wt(rl,Bt),rl.prototype.cloneProtected=function(a){Bt.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},rl.prototype.qb=function(a){a===jn||a===Mi||a===Pr?this.imageStretch=a:Bt.prototype.qb.call(this,a)},rl.prototype.toString=function(){return"Picture("+this.source+")#"+pr(this)};function qf(a){a===void 0&&(a=""),a!==""?Jf[a]&&(delete Jf[a],Um--):(Jf=new Bi,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()||(ba(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=wi();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);ai(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}rl.prototype.hA=function(){if(this.source!==""){qf(this.source);var a=this.source;this.source="",this.source=a}},rl.prototype.redraw=function(){this.N(),this.Uc=!0},rl.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 Al;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,Re=this.Mk;switch(Pe){case jn:if(this.sourceRect.w())break;ye>=x.width&&(z=z+Re.offsetX+(ye*Re.x-x.width*Re.x)),Ne>=x.height&&(ee=ee+Re.offsetY+(Ne*Re.y-x.height*Re.y)),oe=Math.min(x.width,ye),re=Math.min(x.height,Ne);break;case Wn: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+Re.offsetX+(ye*Re.x-x.width*Re.x)/ye)*oe),Ne>=x.height&&(ee=(ee+Re.offsetY+(Ne*Re.y-x.height*Re.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,ht=oe*re/We,it=E.__goCache;Pe=null;var vt=LE;if(!b){if(E.sq&&it!==void 0&&4<We&&ht>vt*vt)for(it.gi===null&&(D1(it,4,ce,fe,E),D1(it,16,ce,fe,E)),b=it.gi,ce=b.length,fe=0;fe<ce&&b[fe].ratio*b[fe].ratio<ht;fe++)Pe=b[fe];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{b=new vu(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?Re.offsetX+(x.width*Re.x-ye*Re.x):0,Re=Ne<x.height?Re.offsetY+(x.height*Re.y-Ne*Re.y):0,this.flip){case Br:a.translate(Math.min(x.width,ye),0),a.scale(-1,1);break;case Sr:a.translate(0,Math.min(x.height,Ne)),a.scale(1,-1);break;case so:a.translate(Math.min(x.width,ye),Math.min(x.height,Ne)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&it!==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,Re,Math.min(x.width,ye),Math.min(x.height,Ne)),a instanceof Al&&(this.bt=[z/y,ee/y,Math.min(Pe.source.width,oe/y),Math.min(Pe.source.height,re/y),b,Re,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,Re,Math.min(x.width,ye),Math.min(x.height,Ne)),a instanceof Al&&(this.bt=[z,ee,oe,re,b,Re,Math.min(x.width,ye),Math.min(x.height,Ne)])}catch(St){this.en=!1}switch(this.flip){case Br:a.scale(-1,1),a.translate(-Math.min(x.width,ye),0);break;case Sr:a.scale(1,-1),a.translate(0,-Math.min(x.height,Ne));break;case so:a.scale(-1,-1),a.translate(-Math.min(x.width,ye),-Math.min(x.height,Ne))}}}}},rl.prototype.Wl=function(a,y,E,x){var b=this.desiredSize,z=nl(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===Wn||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===Wn||z===Gi?(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)),oa(this.dc,a,y),this.Ge(0,0,a,y)},rl.prototype.eh=function(a,y,E,x){Ps(this,a,y,E,x)},Rt.Object.defineProperties(rl.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||pt("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 Bn),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()||(ba(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($o){var x=null;if(E[a]!==void 0)x=E[a];else if(a!==""){30<Um&&(qf(),E=Jf),x=ti("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}}}),rl.prototype.redraw=rl.prototype.redraw,rl.prototype.reloadSource=rl.prototype.hA;var Um=0,LE=4;rl.className="Picture",Jf=new Bi,rl.clearCache=qf;function k1(){this.gi=null}function D1(a,y,E,x,b){a.gi===null&&(a.gi=[]);var z=new vu(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 ma,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 _r(Do);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 _r(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 _r(ja);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 _r(Os);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 _r(na);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 _r(qs,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 ws(a,y){var E=a.toLowerCase(),x=jt.Ze;x[a]=y,x[E]=a}ws("Rectangle",function(a,y,E){a="r"+y+","+E;var x=jt.Mf[a];return x!==void 0||(x=new Qn(Qn.u),x.endX=y,x.endY=E,jt.Nf<jt.vm&&(jt.Mf[a]=x,jt.Nf++)),x}),ws("Square",function(a,y,E){a="s"+y+","+E;var x=jt.Mf[a];return x!==void 0||(x=new Qn(Qn.u),x.endX=y,x.endY=E,x.defaultStretch=Mi,jt.Nf<jt.vm&&(jt.Mf[a]=x,jt.Nf++)),x}),ws("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=jt.Mf[x];if(b!==void 0)return b;var z=a*jt.wg;return b=new Qn().add(new ma(a,0,!0).add(new _r(mo,y-a,0)).add(new _r(ja,y,a,y-z,0,y,z)).add(new _r(mo,y,E-a)).add(new _r(ja,y-a,E,y,E-z,y-z,E)).add(new _r(mo,a,E)).add(new _r(ja,0,E-a,z,E,0,E-z)).add(new _r(mo,0,a)).add(new _r(ja,a,0,0,z,z,0).close())),1<z&&(b.spot1=new Yt(0,0,z,z),b.spot2=new Yt(1,1,-z,-z)),jt.Nf<jt.vm&&(jt.Mf[x]=b,jt.Nf++),b}),ws("Border","RoundedRectangle"),ws("Ellipse",function(a,y,E){a="e"+y+","+E;var x=jt.Mf[a];return x!==void 0||(x=new Qn(Qn.F),x.endX=y,x.endY=E,x.spot1=Yo,x.spot2=bo,jt.Nf<jt.vm&&(jt.Mf[a]=x,jt.Nf++)),x}),ws("Circle",function(a,y,E){a="c"+y+","+E;var x=jt.Mf[a];return x!==void 0||(x=new Qn(Qn.F),x.endX=y,x.endY=E,x.spot1=Yo,x.spot2=bo,x.defaultStretch=Mi,jt.Nf<jt.vm&&(jt.Mf[a]=x,jt.Nf++)),x}),ws("TriangleRight",function(a,y,E){return new Qn().add(new ma(0,0).add(new _r(mo,y,.5*E)).add(new _r(mo,0,E).close())).pm(0,.25,.5,.75)}),ws("TriangleDown",function(a,y,E){return new Qn().add(new ma(0,0).add(new _r(mo,y,0)).add(new _r(mo,.5*y,E).close())).pm(.25,0,.75,.5)}),ws("TriangleLeft",function(a,y,E){return new Qn().add(new ma(y,E).add(new _r(mo,0,.5*E)).add(new _r(mo,y,0).close())).pm(.5,.25,1,.75)}),ws("TriangleUp",function(a,y,E){return new Qn().add(new ma(y,E).add(new _r(mo,0,E)).add(new _r(mo,.5*y,0).close())).pm(.25,.5,.75,1)}),ws("Triangle","TriangleUp"),ws("Diamond",function(a,y,E){return new Qn().add(new ma(.5*y,0).add(new _r(mo,0,.5*E)).add(new _r(mo,.5*y,E)).add(new _r(mo,y,.5*E).close())).pm(.25,.25,.75,.75)}),ws("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}),ws("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}),ws("None","Rectangle"),ws("BarH","Rectangle"),ws("BarV","Rectangle"),ws("MinusLine","LineH"),ws("PlusLine",function(a,y,E){return new Qn().add(new ma(0,E/2,!1).add(new _r(mo,y,E/2)).add(new _r(Do,y/2,0)).add(new _r(mo,y/2,E)))}),ws("XLine",function(a,y,E){return new Qn().add(new ma(0,E,!1).add(new _r(mo,y,0)).add(new _r(Do,0,0)).add(new _r(mo,y,E)))}),ws("LineRight",function(a,y,E){return new Qn().add(new ma(.25*y,0,!1).add(new _r(mo,.75*y,.5*E)).add(new _r(mo,.25*y,E)))}),ws("LineDown",function(a,y,E){return new Qn().add(new ma(0,.25*E,!1).add(new _r(mo,.5*y,.75*E)).add(new _r(mo,y,.25*E)))}),ws("LineLeft",function(a,y,E){return new Qn().add(new ma(.75*y,0,!1).add(new _r(mo,.25*y,.5*E)).add(new _r(mo,.75*y,E)))}),ws("LineUp",function(a,y,E){return new Qn().add(new ma(0,.75*E,!1).add(new _r(mo,.5*y,.25*E)).add(new _r(mo,y,.75*E)))}),jt.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=Lo,this.ir=null,this.jr="",this.lr=Ca,this.Gq="",this.Hq=Yi,this.Pq=Ar,this.Kq=Or,this.Up=null,this.Cq=127,this.zr=no,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 _i(a,y){a===void 0||a instanceof Na||typeof a=="string"?Vn.call(this,a):(Vn.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 lt(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new gn,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}Wt(_i,Vn),_i.prototype.cloneProtected=function(a){Vn.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=_i.prototype,ke.Af=function(a){Vn.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},ke.toString=function(){var a=Mn(this.constructor)+"#"+pr(this);return this.data!==null&&(a+="("+ji(this.data)+")"),a};function ol(a){a.P===null?a.P=new Bv:a.P.nc&&(a.P=a.P.copy())}ke.th=function(){Vn.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===Jo&&y==="elements"?b instanceof Vn?Dh(b,function(oe){cy(re.partManager,oe),Ah(re,oe)}):Gd(re,b):a===ea&&y==="elements"&&(b instanceof Vn?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(Vn.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 Vn&&Dh(b,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},_i.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},_i.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},_i.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 Ti),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)))}}},_i.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)}},_i.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=wi();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var E=0;E<a;E++)this.Jf(y[E]);ai(y)}},_i.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 ir?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(E instanceof Gr))break e;yu(E),E=E.copy(),E!==null&&(this.ph()&&this.selectionObject===this.path&&(E.type=Vn.Link),E.adornedObject=y)}if(E!==null){E.type===Vn.Link&&E.v(),this.bh("Selection",E);break e}}this.Jf("Selection")}for(DE(this,a),y=this.adornments;y.next();)y.value.La()}},_i.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=gn.alloc().assign(E);E.ka(),E.x=y.x,E.y=y.y,E.freeze(),a.Xl(x,E),gn.free(x),zv(a,!1)}}_i.prototype.Ge=function(a,y,E,x){var b=this.uc;b.h(a,y,E,x),this.Lb===null&&(this.Lb=new tr);var z=this.Lb;z.reset(),this.no(z,a,y,E,x),this.Lb=z,z.ws()||z.pp(b)},_i.prototype.no=function(a,y,E,x,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=lr;this.locationSpot.sb()&&(z=this.locationSpot);var ee=lt.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),lt.free(ee)}},_i.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},_i.prototype.moveTo=function(a,y,E){a=lt.allocAt(a,y),this.move(a,E),lt.free(a)},_i.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())},_i.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())},_i.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new Ti),y.I(a)!==null)return y.I(a);var E=Vn.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 lt),E=E.Mc()?lr: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}_i.prototype.mi=function(a){return a===void 0&&(a=new gn),a.assign(this.actualBounds)},_i.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function B1(a){var y=lt.alloc(),E=a.locationObject,x=E.naturalBounds,b=E instanceof gr?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}_i.prototype.arrange=function(){if(zs(this)===!1)F1(this);else{Lc(this,!1);var a=this.Ib,y=gn.alloc();y.assign(a);var E=Kd(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()||jt.B(y.width,a.width)&&jt.B(y.height,a.height)||0<=this.vw&&this.C(16),gn.free(y),zv(this,!1)}},ke=_i.prototype,ke.Xl=function(a,y){var E=this.diagram;if(E!==null){var x=!1;if(E.Zi===!1&&a.w()){var b=gn.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),gn.free(b)}!(this.G&65536)&&a.D(y)||H1(this,x,E),E.N(),!a.w()&&!y.w()||yl(a,y)||(this instanceof di&&!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 lt(x.x+(a.x-y),x.y+(a.y-E)),this.g("location",x,this.ke.copy())),Zd(this)===!1&&zs(this)===!1&&(Ym(this),F1(this)),!0};function _1(a,y,E,x,b){y===null||a instanceof Gr||(y=y.animationManager,y.zb&&fu(y,a,new lt(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)||zs(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,lt.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 Gr||fu(E,a,new lt(z,ee),y),x||y.x===z&&y.y===ee||a.g("position",new lt(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 di&&fd(E,a),a.layer.isTemporary||y||E.Ya(),y=a.Ib;var x=E.viewportBounds;x.w()?Kd(a)?(Ln(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,xi('Should not change the class of the Part when changing category from "'+E+'" to "'+x+'"'),xi(" Old class: "+Mn(a.constructor)+", new class: "+Mn(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 di&&(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 di&&(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)}_i.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},_i.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},_i.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},_i.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},_i.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},_i.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},_i.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},_i.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},_i.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 Kd(a){return(a.G&131072)!==0}ke=_i.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&&!zs(this)&&!Zd(this)&&this.isVisible()&&this.Ib.w()&&a.N(Fh(this,this.Ib))},ke.v=function(){Vn.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof di&&this.labeledLink!==null&&js(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&&Kv(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 di&&(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 di&&(E=y.labeledLink,E!==null)?G1(a,E):y}ke.Td=function(a){return a instanceof ir?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 di&&(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 ir&&Wm(y,!0),y instanceof di){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 di&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof ir&&Wm(y,!1),y instanceof di&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return E},_i.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof di&&this.isLinkLabel)},_i.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 di&&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 Qd(a,y,E,x,b,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof Gr)){if(a.add(y),y instanceof di){if(E&&y instanceof ir)for(var ee=y.memberParts;ee.next();)Qd(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)&&Qd(a,re,E,x,b,z)}}if(1<x)for(y=y.Ou();y.next();)Qd(a,y.value,E,x-1,b,z)}else if(y instanceof qn)for(y=y.labelNodes;y.next();)Qd(a,y.value,E,x,b,z)}}Rt.Object.defineProperties(_i.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?cr: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(ea,"parts",y,this,null,x,!0),x=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=x&&E.cb(Jo,"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&&(ol(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 Gr?this.type!==Vn.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:Ar},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),ol(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:Or},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),ol(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&&(ol(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:Yi},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),ol(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,zs(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 Gr)){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 Gr?this instanceof Gr&&(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&&(yu(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&&(yu(E),E=E.copy(),E===null||E instanceof qn||(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&&(ol(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&&(ol(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&&(ol(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 qn?(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&&(ol(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&&(ol(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&&(ol(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:Lo},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),ol(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&&(ol(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&&(ol(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:Ca},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),ol(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&&pt("Cannot make a Group a member of itself: "+this.toString()),pt("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var E=this.diagram;if(y!==null?Kv(y,this):this instanceof ir&&E!==null&&E.ai.remove(this),this.Ah=a,a!==null?Zv(a,this):this instanceof ir&&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 ir){for(E=new Bn,Qd(E,this,!0,0,!0),E=E.iterator;E.next();)if(x=E.value,x instanceof di)for(x=x.linksConnected;x.next();)tg(x.value)}if(this instanceof di){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 pt("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&&(ol(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof di&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(ol(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&&(ol(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:no},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),ol(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&&(ol(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&&(ol(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),_i.prototype.invalidateLayout=_i.prototype.C,_i.prototype.findCommonContainingGroup=_i.prototype.px,_i.prototype.isMemberOf=_i.prototype.Td,_i.prototype.findTopLevelPart=_i.prototype.sz,_i.prototype.findSubGraphLevel=_i.prototype.oz,_i.prototype.ensureBounds=_i.prototype.Va,_i.prototype.getDocumentBounds=_i.prototype.mi,_i.prototype.findObject=_i.prototype.fb,_i.prototype.moveTo=_i.prototype.moveTo,_i.prototype.invalidateAdornments=_i.prototype.Wb,_i.prototype.clearAdornments=_i.prototype.Ej,_i.prototype.removeAdornment=_i.prototype.Jf,_i.prototype.addAdornment=_i.prototype.bh,_i.prototype.findAdornment=_i.prototype.Pj,_i.prototype.updateTargetBindings=_i.prototype.La;var W1=!1;_i.className="Part",_i.LayoutNone=0,_i.LayoutAdded=1,_i.LayoutRemoved=2,_i.LayoutShown=4,_i.LayoutHidden=8,_i.LayoutNodeSized=16,_i.LayoutGroupLayout=32,_i.LayoutNodeReplaced=64,_i.LayoutStandard=127,_i.LayoutAll=16777215;function Gr(a,y){a===void 0||a instanceof Na||typeof a=="string"?_i.call(this,a):(_i.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)}Wt(Gr,_i),Gr.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Gr.prototype.updateRelationshipsFromData=function(){},Gr.prototype.Ul=function(a){var y=this.adornedObject,E=y==null?void 0:y.part;if(E instanceof qn&&y instanceof gr){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 gr&&(b.ua=a)}}},Gr.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!zs(a))},Gr.prototype.Zc=function(){return!1},Gr.prototype.gk=function(a,y,E,x,b,z,ee){if(a===Jo&&y==="elements"){if(b instanceof Hs)this.$a===null&&(this.$a=b);else if(b instanceof Vn){var re=b.Nl(function(oe){return oe instanceof Hs});re instanceof Hs&&this.$a===null&&(this.$a=re)}}else a===ea&&y==="elements"&&this.$a!==null&&(x===this.$a?this.$a=null:x instanceof Vn&&this.$a.rg(x)&&(this.$a=null));_i.prototype.gk.call(this,a,y,E,x,b,z,ee)},Gr.prototype.updateAdornments=function(){},Gr.prototype.Lj=function(){},Rt.Object.defineProperties(Gr.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}}}),Gr.className="Adornment";function Yv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Jr,this.er=Km,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 di(a,y){a===void 0||a instanceof Na||typeof a=="string"?_i.call(this,a):(_i.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new Gn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Wt(di,_i),di.prototype.cloneProtected=function(a){_i.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},ke=di.prototype,ke.Af=function(a){_i.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(){_i.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function V1(a,y){y!==null&&(a.af===null&&(a.af=new Bn),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===Jo&&y==="elements"?this.wc=null:a===ea&&y==="elements"&&(this.wc=null),_i.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)||(Cl(E.fromPort),Cl(E.toPort),E.bb())}};function K1(a,y){for(a=a.linksConnected;a.next();){var E=a.value;(E.fromPort===y||E.toPort===y)&&(Cl(E.fromPort),Cl(E.toPort),E.bb())}}function Cl(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||Cl(y.port)}}ke.si=function(){return!0},di.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},di.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},di.prototype.isVisible=function(){if(!_i.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===xa){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},di.prototype.Zb=function(a){_i.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)}},di.prototype.qx=function(){var a=new Bn,y=new Bn;return Q1(this,this,a,y),y.iterator};function Q1(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)&&Q1(a,b?ee.toNode:ee.fromNode,E,x):x.add(ee)})}}di.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new Tr(this.jb),E=this;return y.predicate=function(x){return x.fromNode===E&&x.fromPortId===a||x.toNode===E&&x.toPortId===a},y},ke=di.prototype,ke.Mo=function(a){a===void 0&&(a=null);var y=new Tr(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 Tr(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 Bn,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 Bn,y.add(E),y.add(b)):E=b)}return y!==null?y.iterator:E!==null?new mr(E):cr},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 Bn,y.add(E),y.add(b)):E=b)}return y!==null?y.iterator:E!==null?new mr(E):cr},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 Bn,y.add(E),y.add(b)):E=b)}return y!==null?y.iterator:E!==null?new mr(E):cr},ke.jz=function(a,y,E){y===void 0&&(y=null),E===void 0&&(E=null);var x=new Tr(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 Tr(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){Cl(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){Cl(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}}}di.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},ke=di.prototype,ke.Vo=function(a){_i.prototype.Vo.call(this,a),a||(cp(this),a=this.Yk,a!==null&&rS(a,this))},ke.Wo=function(a){_i.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,_i.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 Ti: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=wi()),E.push(x);if(E!==null){for(a=0;a<E.length;a++)y.remove(E[a]);ai(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 di)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 Bn;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 Tr(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 Gn,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 Gn,y.add(E),y.add(a)):E=a);return y!==null?y.iterator:E!==null?new mr(E):cr},ke.wz=function(a){a===void 0&&(a=1/0);var y=new Bn;return Qd(y,this,!1,a,!0),y},di.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 Bn;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}di.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 Bn;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}Rt.Object.defineProperties(di.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Km},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:Jr},set:function(a){typeof a=="number"&&(a=new dr(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),js(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))}}}),di.prototype.expandTree=di.prototype.expandTree,di.prototype.collapseTree=di.prototype.collapseTree,di.prototype.findTreeParts=di.prototype.wz,di.prototype.findTreeChildrenNodes=di.prototype.Ou,di.prototype.findTreeChildrenLinks=di.prototype.Qo,di.prototype.findTreeLevel=di.prototype.uz,di.prototype.findTreeParentChain=di.prototype.vz,di.prototype.findTreeParentNode=di.prototype.pg,di.prototype.findTreeParentLink=di.prototype.kh,di.prototype.findCommonTreeParent=di.prototype.gz,di.prototype.findTreeRoot=di.prototype.xz,di.prototype.isInTreeOf=di.prototype.Nz,di.prototype.findPort=di.prototype.ns,di.prototype.findLinksTo=di.prototype.kz,di.prototype.findLinksBetween=di.prototype.jz,di.prototype.findNodesInto=di.prototype.Oo,di.prototype.findNodesOutOf=di.prototype.Po,di.prototype.findNodesConnected=di.prototype.Mu,di.prototype.findLinksInto=di.prototype.Sd,di.prototype.findLinksOutOf=di.prototype.Mo,di.prototype.findExternalTreeLinksConnected=di.prototype.qx,di.prototype.invalidateConnectedLinks=di.prototype.Bd,di.prototype.invalidateLinkBundle=di.prototype.Lz;var OE=new wn(di,"SpreadingNone",10),Km=new wn(di,"SpreadingEvenly",11),Vv=new wn(di,"SpreadingPacked",12);di.className="Node",di.SpreadingNone=OE,di.SpreadingEvenly=Km,di.SpreadingPacked=Vv;function ir(a,y){a===void 0||a instanceof Na||typeof a=="string"?di.call(this,a):(di.call(this),a&&(y=a)),this.U|=4608,this.Gn=new Bn,this.$a=null,this.Sc=new jo,this.Sc.group=this,this.gl=new Bn,this.tb=this.$p=null,y&&Object.assign(this,y)}Wt(ir,di),ir.prototype.cloneProtected=function(a){di.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(E){return E instanceof Hs});y instanceof Hs?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=ir.prototype,ke.Af=function(a){di.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 di)E.Bd(y);else if(E instanceof qn)for(E=E.labelNodes;E.next();)E.value.Bd(y)}},ke.gk=function(a,y,E,x,b,z,ee){if(a===Jo&&y==="elements"){if(b instanceof Hs)this.$a===null?this.$a=b:this.$a!==b&&pt("Cannot insert a second Placeholder into the visual tree of a Group.");else if(b instanceof Vn){var re=b.Nl(function(oe){return oe instanceof Hs});re instanceof Hs&&(this.$a===null?this.$a=re:this.$a!==re&&pt("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===ea&&y==="elements"&&this.$a!==null&&(x===this.$a?this.$a=null:x instanceof Vn&&this.$a.rg(x)&&(this.$a=null));di.prototype.gk.call(this,a,y,E,x,b,z,ee)},ke.Xl=function(a,y){di.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==Vn.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof Vn&&(a=a.Pb()),this.tb===null&&(this.tb=new gn),a.mi(this.tb),a instanceof gr&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},ke.eh=function(a,y,E,x){this.nf=this.$a,di.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 qn||y.Va()}),di.prototype.Va.call(this)},ke.si=function(){if(!di.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof di){if(y.isVisible()&&zs(y))return!1}else if(y instanceof qn&&y.isVisible()&&zs(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Zv(a,y){if(a.Gn.add(y)){y instanceof ir&&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 qn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Kv(a,y){if(a.Gn.remove(y)){y instanceof ir&&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 qn&&!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)}di.prototype.Lj.call(this)},ir.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},ir.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},ir.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=ir.prototype,ke.Bd=function(a){var y=(this.U&65536)!==0;if(di.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()?(Cl(E.fromPort),Cl(E.toPort),E.bb()):(x=E.toNode,x!==null&&x!==this&&x.Td(this)&&!x.isVisible()&&(Cl(E.fromPort),Cl(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 Bn,x=y.iterator;x.next();){var b=x.value;if(b instanceof di)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 Bn,E=a.iterator;E.next();){var x=E.value;if(x instanceof di)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 Bn;return a(this,y),y},ke.Rj=function(){var a=new Bn;return Qd(a,this,!0,0,!0),a.remove(this),a},ke.Zb=function(a){di.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},ir.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 ir&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,nS(z,y,E,x)),z instanceof di)z.Bd(y),E.Aj(z,x);else if(z instanceof qn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}ir.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 ir&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,iS(z,y,E,x)),z instanceof di)z.Bd(y),E.Cj(z,x);else if(z instanceof qn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}ir.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=lt.alloc(),di.prototype.move.call(this,a,y),a=new Bn,y=this.Rj().iterator;y.next();)b=y.value,b instanceof qn&&(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 di&&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 qn&&(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());lt.free(z)}},Rt.Object.defineProperties(ir.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&&pt("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)}}}),ir.prototype.expandSubGraph=ir.prototype.expandSubGraph,ir.prototype.collapseSubGraph=ir.prototype.collapseSubGraph,ir.prototype.findSubGraphParts=ir.prototype.Rj,ir.prototype.findContainingGroupChain=ir.prototype.hz,ir.prototype.findExternalNodesConnected=ir.prototype.iz,ir.prototype.findExternalLinksConnected=ir.prototype.Lu,ir.prototype.ensureBounds=ir.prototype.Va,ir.className="Group";function Hs(a){Bt.call(this),this.yb=is,this.ko=new gn(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Wt(Hs,Bt),Hs.prototype.cloneProtected=function(a){Bt.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},Hs.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return da(0,0,y.width,y.height,a.x,a.y)},Hs.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof ir||a instanceof Gr)||pt("Placeholder is not inside a Group or Adornment."),a instanceof ir){var y=this.computeBorder(this.ko),E=this.minSize,x=this.dc;for(oa(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=lt.alloc(),E.xi(y,a.locationSpot),E.D(a.location)||(a.location=E),lt.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 gr&&(ee=z.strokeWidth);var re=z.Df(),oe=z.naturalBounds,ce=(oe.width+ee)*re;ee=(oe.height+ee)*re,a.type!==Vn.Link&&(re=z.ga(a.category==="Selection"?Yi:a.locationSpot,lt.alloc()),a.location=re,lt.free(re)),isNaN(ce)||isNaN(ee)?(a=z.ga(Yi,lt.alloc()),ce=gn.allocAt(a.x,a.y,0,0),ce.Ye(z.ga(Zo,a)),ce.Ye(z.ga(qr,a)),ce.Ye(z.ga(qo,a)),oa(y,ce.width+x||0,ce.height+b||0),this.Ge(-E.left,-E.top,y.width,y.height),lt.free(a),gn.free(ce)):(oa(y,ce+x||0,ee+b||0),this.Ge(-E.left,-E.top,y.width,y.height))}},Hs.prototype.eh=function(a,y,E,x){this.actualBounds.h(a,y,E,x)},Hs.prototype.computeBorder=function(a){var y=this.part,E=y.diagram,x=E===null||!E.animationManager.isAnimating;if(E!==null&&y instanceof ir&&!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=gn.alloc(),b=this.computeMemberBounds(E);var z=this.yb;return y instanceof ir&&!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)),gn.free(E),x&&y instanceof ir&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},Hs.prototype.computeMemberBounds=function(a){if(!(this.part instanceof ir))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 qn&&(!y.computesBoundsIncludingLinks||Ul(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},Rt.Object.defineProperties(Hs.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new dr(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Hs.className="Placeholder";function qn(a){_i.call(this,Vn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Gs,this.Om=0,this.Qm=Gs,this.Rm=NaN,this.qj=$v,this.po=.5,this.wd=null,this.Nb=new Gn().freeze(),this.Tg=this.Mg=null,this.ml=new gn,this.ua=new Qn,this.u=this.o=this.Sf=this.Wf=null,this.su=new lt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Wt(qn,_i),qn.prototype.cloneProtected=function(a){_i.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=qn.prototype,ke.Af=function(a){_i.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&&Cl(y),a=a.toPort,a!==null&&Cl(a)},ke.qb=function(a){a.classType===qn?(a.value&2)===2?this.routing=a:a===Gl||a===wd||a===ig?this.curve=a:a===fp||a===e0||a===t0?this.adjusting=a:a!==$v&&a!==Gs&&pt("Unknown Link enum value for a Link property: "+a):_i.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),zs(a)||Zd(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),zs(a)||Zd(a)))},ke.zv=function(){return!1},ke.Av=function(){},ke.Zc=function(){return!1},qn.prototype.computeAngle=function(a,y,E){return qn.computeAngle(y,E)},qn.computeAngle=function(a,y){switch(a){default:case Gs: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=jt.bp(y),90<a&&270>a&&(a-=180);break;case vp:a=jt.bp(y+90),90<a&&270>a&&(a-=180);break;case yp:a=jt.bp(y-90),90<a&&270>a&&(a-=180);break;case i0:if(a=jt.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return jt.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&&Kv(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=qn.prototype,ke.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&_i.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 Bn),a.wd.add(y),a.v()}ke.Vo=function(a){if(_i.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(_i.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))},qn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},qn.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?_i.prototype.move.call(this,a,!1):(a=lt.allocAt(E.x+x,E.y+b),_i.prototype.move.call(this,a,!1),lt.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)},qn.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},qn.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},qn.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(po),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()===Gl))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()===Gl){if(y===3){E=this.i(0),x=this.i(1);var b=this.i(2);return jt.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),jt.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},qn.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()===Gl))return this.ua.wx(.5);if(this.computeCurve()===Gl&&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),jt.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=qn.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 lt(y,E))},ke.Kz=function(a,y){this.Nb.Gb(a,y)},ke.m=function(a,y,E){this.Nb.Gb(a,new lt(y,E))},ke.ne=function(a){this.Nb.add(a)},ke.yf=function(a,y){this.Nb.add(new lt(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 Gn,z=a.Nb.iterator;z.next();){var ee=z.value;b.add(new lt(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),js(a)),x?Qm(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),Qm(this),this.g("points",a,y)}},ke.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function Qm(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()}}},qn.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(cf||(cf=new di,cf.desiredSize=Qi,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 di,df.desiredSize=Qi,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===Gl;this.Wf=ce&&!fe?ye=!0:!1;var Ne=this.computeAdjusting()===Gs||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,Re=z.y+oe/3,We=Pe,ht=Re;jt.B(oe,0)?ht=0<re?ht-ce:ht+ce:(fe=-re/oe,ye=Math.sqrt(ce*ce/(fe*fe+1)),0>ce&&(ye=-ye),We=(0>oe?-1:1)*ye+Pe,ht=fe*(We-Pe)+Re),Pe=z.x+2*re/3,Re=z.y+2*oe/3;var it=Pe,vt=Re;jt.B(oe,0)?vt=0<re?vt-ce:vt+ce:(it=(0>oe?-1:1)*ye+Pe,vt=fe*(it-Pe)+Re),this.Fj(),this.ne(z),this.yf(We,ht),this.yf(it,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,jt.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=gn.alloc(),y.mi(re),oe=re.ca(b),Ne.mi(re),ce=re.ca(x),(oe||ce)&&(ee=y.ga(Jm(ee),new lt),this.dd(0,this.getLinkPointFromPoint(a,y,ee,b,!0,ee)),E=Ne.ga(Jm(E),new lt),this.dd(1,this.getLinkPointFromPoint(z,Ne,E,x,!1,E))),gn.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=Re=0,(fe||!re||ce)&&(ht=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&&(ht+=Math.abs(St)*(fe?1:2)),Pe===0?Re=ht:Pe===90?We=ht:Pe===180?Re=-ht:Pe===270?We=-ht:(Re=ht*Math.cos(Pe*Math.PI/180),We=ht*Math.sin(Pe*Math.PI/180)),ee.Mc()&&ce&&(ht=y.ga(lr,lt.alloc()),it=lt.allocAt(ht.x+1e3*Re,ht.y+1e3*We),this.getLinkPointFromPoint(a,y,ht,it,!0,ye),lt.free(ht),lt.free(it))),ht=this.getLinkPoint(x,b,E,!1,fe,a,y);var wt=vt=it=0;if(fe||!oe||ce){var Ot=this.computeEndSegmentLength(x,b,E,!1);wt=this.getLinkDirection(x,b,ht,E,!1,fe,a,y),ce&&(oe||ee.D(E)||!fe&&ee.x+E.x===1&&ee.y+E.y===1)&&(wt+=fe?0:30,0>St&&(wt+=180)),0>wt?wt+=360:360<=wt&&(wt-=360),ce&&(Ot+=Math.abs(St)*(fe?1:2)),wt===0?it=Ot:wt===90?vt=Ot:wt===180?it=-Ot:wt===270?vt=-Ot:(it=Ot*Math.cos(wt*Math.PI/180),vt=Ot*Math.sin(wt*Math.PI/180)),E.Mc()&&ce&&(E=b.ga(lr,lt.alloc()),ee=lt.allocAt(E.x+1e3*it,E.y+1e3*vt),this.getLinkPointFromPoint(x,b,E,ee,!1,ht),lt.free(E),lt.free(ee))}E=ye,(fe||!re||ce)&&(E=new lt(ye.x+Re,ye.y+We)),ee=ht,(fe||!oe||ce)&&(ee=new lt(ht.x+it,ht.y+vt)),!Ne&&!fe&&re&&3<z&&this.adjustPoints(0,ye,z-2,ee)?this.dd(z-1,ht):!Ne&&!fe&&oe&&3<z&&this.adjustPoints(1,E,z-1,ht)?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,ht)):(this.Fj(),this.ne(ye),(fe||!re||ce)&&this.ne(E),fe&&this.addOrthoPoints(E,Pe,ee,wt,a,x),(fe||!oe||ce)&&this.ne(ee),this.ne(ht))}return!0};function Qv(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}qn.prototype.getLinkPointFromPoint=function(a,y,E,x,b,z){if(z===void 0&&(z=new lt),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)}qn.prototype.getLinkPoint=function(a,y,E,x,b,z,ee,re){if(re===void 0&&(re=new lt),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=lt.alloc(),ce=lt.alloc();var fe=new gn(y.ga(Yi,oe),y.ga(Zo,ce)),ye=this.computeSpot(!x,ee);a=this.getLinkPoint(z,ee,ye,!x,b,a,y,ce),(E.Hf(ms)||E.Hf(Ko))&&a.y>=fe.y&&a.y<=fe.y+fe.height?re.y=a.y:(E.Hf(aa)||E.Hf(Aa))&&a.x>=fe.x&&a.x<=fe.x+fe.width&&(re.x=a.x),lt.free(oe),lt.free(ce)}}return re}}return E=y.ga(Jm(E),lt.alloc()),this.pointsCount>(b?6:2)?(ee=x?this.i(1):this.i(this.pointsCount-2),b&&(ee=Qv(E,ee.copy()))):(oe=this.computeSpot(!x,ee),z=lt.alloc(),ee=ee.ga(Jm(oe),z),b&&(ee=Qv(E,ee)),lt.free(z)),this.getLinkPointFromPoint(a,y,E,ee,x,re),lt.free(E),re},qn.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(lr,lt.alloc()),this.pointsCount>(z?6:2)?(re=b?this.i(1):this.i(this.pointsCount-2),re=z?Qv(oe,re.copy()):E):(E=lt.alloc(),re=re.ga(lr,E),lt.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,lt.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},qn.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)},qn.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=lr:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Ca?Ci:y)):(a=y||this.toPort,a===null?a=lr:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Ca?Ci:y)),a};function ng(a){return a===Ci||a.x===.5&&a.y===.5}function Jm(a){return a.x===.5&&a.y===.5?a:lr}qn.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Gs&&4<this.pointsCount?this.computeMidPoint(new lt):(a=y.Zn,a=a!==null?hS(a,this):null,a!==null?a.Zo:y.ga(lr))},qn.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},qn.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=tr.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return Sv(this,y,E,b),z===void 0&&tr.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=tr.alloc(),ye.set(ee),fe instanceof Vn)re=fe.Cf(a,y,E,x,b,ye);else if(this.path===fe){if(fe instanceof gr)if(re=a,Ne=x,fe.pickable===!1)re=!1;else if(ye.multiply(fe.transform),Ne)e:{var Pe=re,Re=ye;if(fe.fh(Pe,Re))re=!0;else{if(Re===void 0&&(Re=fe.transform,Pe.Re(fe.actualBounds))){re=!0;break e}re=Pe.left,Ne=Pe.right;var We=Pe.top;Pe=Pe.bottom;var ht=lt.alloc(),it=lt.alloc(),vt=lt.alloc(),St=tr.alloc();St.set(Re),St.bv(fe.transform),St.Vj(),it.x=Ne,it.y=We,it.transform(St),ht.x=re,ht.y=We,ht.transform(St),Re=!1,Rh(fe,ht,it,vt)?Re=!0:(ht.x=Ne,ht.y=Pe,ht.transform(St),Rh(fe,ht,it,vt)?Re=!0:(it.x=re,it.y=Pe,it.transform(St),Rh(fe,ht,it,vt)?Re=!0:(ht.x=re,ht.y=We,ht.transform(St),Rh(fe,ht,it,vt)&&(Re=!0)))),tr.free(St),lt.free(ht),lt.free(it),lt.free(vt),re=Re}}else re=fe.fh(re,ye)}else re=Ra(fe,a,x,ye);re&&(Ne=fe,y!==null&&(Ne=y(fe)),Ne&&(E===null||E(Ne))&&b.add(Ne)),tr.free(ye)}}}return z===void 0&&tr.free(ee),re||this.background!==null||this.areaBackground!==null}return z===void 0&&tr.free(ee),!1},qn.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?Gl:this.curve},qn.prototype.computeCorner=function(){if(this.curve===Gl)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},qn.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},qn.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(lr).ab(E.ga(lr))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*ee)+Math.abs(Math.cos(y)*b)+1)),this.curve===Gl&&(a*=1.333)}}return a},qn.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var E=a[y];E.computeAdjusting()===Gs&&E.bb()}},qn.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=sS;var y=this.Sf;if(y!==null){for(var E=wi(),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),ai(E)}}return a},qn.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},qn.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},qn.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(!jt.$(ce,0)){if(jt.$(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),jt.$(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),jt.$(y,0)||(jt.$(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 Re=(Ne-fe)/(oe-re);Pe=Math.sqrt(1+1/(Re*Re))}else Re=9e9;for(this.dd(a,y),a+=1;a<E;a++){y=this.i(a);var We=y.x,ht=y.y,it=.5;ce!==0&&(it=((b-We)*(b-ee)+(z-ht)*(z-ye))/ce);var vt=b+it*(ee-b),St=z+it*(ye-z);y=Math.sqrt((We-vt)*(We-vt)+(ht-St)*(ht-St)),ht<Re*(We-vt)+St&&(y=-y),0<Re&&(y=-y),We=re+it*(oe-re),it=fe+it*(Ne-fe),Re!==0?(y=We+y/Pe,this.L(a,y,it-(y-We)/Re)):this.L(a,We,it+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,jt.B(b.y,z.y)?jt.B(z.x,ee.x)?fe=y.y:jt.B(z.y,ee.y)&&(re=y.x):jt.B(b.x,z.x)&&(jt.B(z.y,ee.y)?re=y.x:jt.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,jt.B(b.y,z.y)?jt.B(z.x,ee.x)?fe=x.y:jt.B(z.y,ee.y)&&(re=x.x):jt.B(b.x,z.x)&&(jt.B(z.y,ee.y)?re=x.x:jt.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}},qn.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=lt.alloc(),fe=lt.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 Re=E=null;if(Ne.isVirtualized){Ne=Pe.bounds.copy(),Ne.Bc(-Pe.Ho,-Pe.Go);var We=lt.alloc();rg(Pe,a.x,a.y)||(jt.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)):jt.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)):jt.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)||(jt.Ff(Ne.x,Ne.y,Ne.x+Ne.width,Ne.y+Ne.height,ye.x,ye.y,fe.x,fe.y,We)?(Re=ye=We.copy(),x=fe.ab(We)):jt.Ff(Ne.x,Ne.y,Ne.x+Ne.width,Ne.y+Ne.height,fe.x,fe.y,ce.x,ce.y,We)?(Re=ye=We.copy(),x=ce.ab(We)):jt.Ff(Ne.x,Ne.y,Ne.x+Ne.width,Ne.y+Ne.height,ce.x,ce.y,a.x,a.y,We)&&(Re=ye=We.copy(),x=a.ab(We))),lt.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?jt.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)):jt.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)&&(jt.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)):jt.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)),Re!==null&&(x===0||x===180?this.yf(z.x,Re.y):this.yf(Re.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(ce.copy()),this.ne(fe.copy())),lt.free(ce),lt.free(fe)}},qn.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)}qn.prototype.ez=function(a){var y=a.x;a=a.y;for(var E=this.i(0),x=this.i(1),b=kr(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=kr(y,a,x.x,x.y,E.x,E.y);x=E,re<b&&(z=ee,b=re)}return z},qn.prototype.qc=function(){this.lk=!1,this.v()},qn.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 gr&&(b.ua=this.ua)}}},qn.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===Gl&&3<=y&&!jt.$(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===Gl&&3<=y&&!jt.$(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=lt.allocAt(x,oe),E=lt.alloc(),E.assign(this.i(1)),z=lt.allocAt(x,oe),b=lt.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,Re=this.i(qv(this,ce,ye,!1));if((!jt.$(Ne.x,Pe.x)||!jt.$(Pe.x,Re.x))&&(!jt.$(Ne.y,Pe.y)||!jt.$(Pe.y,Re.y))){var We=fe;isNaN(We)&&(We=this.smoothness/3);var ht=Ne.x;Ne=Ne.y;var it=Pe.x;Pe=Pe.y;var vt=Re.x;Re=Re.y;var St=We*qm(ht,Ne,it,Pe);We*=qm(it,Pe,vt,Re),jt.$(Ne,Pe)&&jt.$(it,vt)&&(it>ht?Re>Pe?(z.x=it-St,z.y=Pe-St,b.x=it+We,b.y=Pe+We):(z.x=it-St,z.y=Pe+St,b.x=it+We,b.y=Pe-We):Re>Pe?(z.x=it+St,z.y=Pe-St,b.x=it-We,b.y=Pe+We):(z.x=it+St,z.y=Pe+St,b.x=it-We,b.y=Pe-We)),jt.$(ht,it)&&jt.$(Pe,Re)&&(Pe>Ne?(vt>it?(z.x=it-St,z.y=Pe-St,b.x=it+We):(z.x=it+St,z.y=Pe-St,b.x=it-We),b.y=Pe+We):(vt>it?(z.x=it-St,z.y=Pe+St,b.x=it+We):(z.x=it+St,z.y=Pe+St,b.x=it-We),b.y=Pe-We)),(jt.$(ht,it)&&jt.$(it,vt)||jt.$(Ne,Pe)&&jt.$(Pe,Re))&&(ht=.5*(ht+vt),Ne=.5*(Ne+Re),z.x=ht,z.y=Ne,b.x=ht,b.y=Ne),(ye===1||ye===2&&jt.$(ee.x,this.i(0).x)&&jt.$(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,xo)),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),lt.free(y),lt.free(E),lt.free(z),lt.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,xo)),Sd(re,z.x-x,z.y-oe,b.x-x,b.y-oe,ee.x-x,ee.y-oe);else{for(z=lt.alloc(),z.assign(this.i(0)),b=lt.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,xo)),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,ht=-oe,Ne=fe,it=this.i(ce),We=E,jt.B(z.y,Ne.y)&&jt.B(Ne.x,it.x))if(Re=Math.min(ee,Math.abs(Ne.x-b.x)/2),Re=St=Math.min(Re,Math.abs(it.y-Ne.y)/2),jt.B(Re,0))uf(this,re,ye,ht,z,Ne,We),z.assign(Ne);else{var wt=Ne.x,Ot=Ne.y;Pe=wt,vt=Ot,Ne.x>z.x?wt=Ne.x-Re:wt=Ne.x+Re,it.y>Ne.y?vt=Ne.y+St:vt=Ne.y-St,it=lt.allocAt(wt,Ot),uf(this,re,ye,ht,z,it,We),lt.free(it),Hm(re,Ne.x+ye,Ne.y+ht,Pe+ye,vt+ht),z.h(Pe,vt)}else jt.B(z.x,Ne.x)&&jt.B(Ne.y,it.y)?(Re=Math.min(ee,Math.abs(Ne.y-b.y)/2),Re=St=Math.min(Re,Math.abs(it.x-Ne.x)/2),jt.B(St,0)?(uf(this,re,ye,ht,z,Ne,We),z.assign(Ne)):(wt=Ne.x,Ot=Ne.y,Pe=wt,vt=Ot,Ne.y>z.y?Ot=Ne.y-Re:Ot=Ne.y+Re,it.x>Ne.x?Pe=Ne.x+St:Pe=Ne.x-St,it=lt.allocAt(wt,Ot),uf(this,re,ye,ht,z,it,We),lt.free(it),Hm(re,Ne.x+ye,Ne.y+ht,Pe+ye,vt+ht),z.h(Pe,vt))):(uf(this,re,ye,ht,z,Ne,We),z.assign(Ne));b.assign(fe),ye=ce}lt.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),jt.$(a,0)?y:jt.$(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;jt.$(y.x,z.x)&&jt.$(y.y,z.y);){if(E>=b)return b-1;z=a.i(E++)}if(!jt.$(y.x,z.x)&&!jt.$(y.y,z.y))return E-1;for(var ee=z;jt.$(y.x,z.x)&&jt.$(z.x,ee.x)&&(!x||(y.y>=z.y?z.y>=ee.y:z.y<=ee.y))||jt.$(y.y,z.y)&&jt.$(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}qn.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(jt.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 Re=z.y+x;a.curve===wd?eg(y,Pe,Re,!1):Sd(y,Ne,ye,Pe,ye,Pe,Re)}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(jt.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,Re=z.x+E,ye+=x,a.curve===wd?eg(y,Re,ye,!1):Sd(y,Pe,Ne,Pe,ye,Re,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 qn){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=jt.B(a.y,y.y),z=x.pointsCount,ee=x.i(0),re=lt.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,Re=ee.x;ee=ee.y;var We=ce.x,ht=ce.y;if(jt.B(fe,Ne)){if(!jt.B(ye,Pe)&&jt.B(ee,ht)&&Math.min(ye,Pe)<ee&&Math.max(ye,Pe)>ee&&Math.min(Re,We)<fe&&Math.max(Re,We)>fe&&!jt.B(Re,We)){re.x=fe,re.y=ee,fe=!0;break e}}else if(jt.B(ye,Pe)&&jt.B(Re,We)&&Math.min(fe,Ne)<Re&&Math.max(fe,Ne)>Re&&Math.min(ee,ht)<ye&&Math.max(ee,ht)>ye&&!jt.B(ee,ht)){re.x=Re,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}lt.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()))}qn.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 qn&&(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 qn&&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())}}qn.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},qn.prototype.isVisible=function(){if(!_i.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},qn.prototype.Zb=function(a){if(_i.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)},qn.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&&(Ue(y.links,a),y.Sl()))}qn.prototype.ph=function(){return!0},Rt.Object.defineProperties(qn.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&&Cl(E),hp(this),this.ff=a;var x=this.fromPort;x!==null&&Cl(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&&Cl(E),hp(this),this.vf=a;var x=this.toPort;x!==null&&Cl(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:Ca},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&&Cl(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&&ii(a,">= 0",qn,"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:Ca},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&&Cl(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&&ii(a,">= 0",qn,"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?cr: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 gr?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()===Gl&&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),jt.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);jt.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 lt)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||Qm(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);jt.$(x.x,b.x)?(x=b.y-x.y,0>x&&(x=-x)):jt.$(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 Gn,x=0;x<a.length/2;x++)b=new lt(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(!Ut(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){x=!1;break}}if(x)for(E=new Gn,x=0;x<a.length;x++)b=a[x],E.add(new lt(b.x,b.y).freeze())}}else if(a instanceof Gn)for(E=a.copy(),a=E.iterator;a.next();)a.value.freeze();else pt("Link.points value is not an instance of List or Array: "+a);E.freeze(),this.Nb=E,this.qc(),Qm(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)}}}),qn.prototype.invalidateOtherJumpOvers=qn.prototype.Xo,qn.prototype.findClosestSegment=qn.prototype.ez,qn.prototype.updateRoute=qn.prototype.vg,qn.prototype.invalidateRoute=qn.prototype.bb,qn.prototype.rollbackRoute=qn.prototype.rv,qn.prototype.commitRoute=qn.prototype.zf,qn.prototype.startRoute=qn.prototype.uh,qn.prototype.clearPoints=qn.prototype.Fj,qn.prototype.removePoint=qn.prototype.pv,qn.prototype.addPointAt=qn.prototype.yf,qn.prototype.addPoint=qn.prototype.ne,qn.prototype.insertPointAt=qn.prototype.m,qn.prototype.insertPoint=qn.prototype.Kz,qn.prototype.setPointAt=qn.prototype.L,qn.prototype.setPoint=qn.prototype.dd,qn.prototype.getPoint=qn.prototype.i,qn.prototype.getOtherPort=qn.prototype.Cz,qn.prototype.getOtherNode=qn.prototype.To;var cf=null,df=null,$v=new wn(qn,"Normal",1),BE=new wn(qn,"Orthogonal",2),_E=new wn(qn,"AvoidsNodes",6),aS=new wn(qn,"AvoidsNodesStraight",7),Gs=new wn(qn,"None",0),Gl=new wn(qn,"Bezier",9),wd=new wn(qn,"JumpGap",10),ig=new wn(qn,"JumpOver",11),fp=new wn(qn,"End",17),e0=new wn(qn,"Scale",18),t0=new wn(qn,"Stretch",19),gp=new wn(qn,"OrientAlong",21),pp=new wn(qn,"OrientPlus90",22),mp=new wn(qn,"OrientMinus90",23),ey=new wn(qn,"OrientOpposite",24),n0=new wn(qn,"OrientUpright",25),vp=new wn(qn,"OrientPlus90Upright",26),yp=new wn(qn,"OrientMinus90Upright",27),i0=new wn(qn,"OrientUpright45",28),sS=16,lS=14,Sp=8;qn.className="Link",qn.Normal=$v,qn.Orthogonal=BE,qn.AvoidsNodes=_E,qn.AvoidsNodesStraight=aS,qn.None=Gs,qn.Bezier=Gl,qn.JumpGap=wd,qn.JumpOver=ig,qn.End=fp,qn.Scale=e0,qn.Stretch=t0,qn.OrientAlong=gp,qn.OrientPlus90=pp,qn.OrientMinus90=mp,qn.OrientOpposite=ey,qn.OrientUpright=n0,qn.OrientPlus90Upright=vp,qn.OrientMinus90Upright=yp,qn.OrientUpright45=i0,qn.EndSegmentStep=8,qn.CurvinessStart=sS,qn.SpacingMin=lS,qn.OrthoShortCut=Sp;function r0(a,y,E,x){br(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){br(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=wi(),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);ai(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++}}}Rt.Object.defineProperties(Ep.prototype,{bounds:{get:function(){return new gn(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(){br(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 ir?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(Yi,lt.alloc()),oe=a.port.ga(Zo,lt.alloc());for(b=gn.allocAt(re.x,re.y,0,0),b.Ye(oe),lt.free(re),lt.free(oe),re=lt.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(lt.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=lt.alloc(),oe=lt.alloc(),ee=lt.alloc(),ce=lt.alloc(),ye.ga(Yi,re),ye.ga(qr,oe),ye.ga(Zo,ee),ye.ga(qo,ce),Pe=Ne=fe=ye=0,x===Vv)for(var Re=0;Re<z.length;Re++){var We=z[Re];if(We!==null){var ht=We.link.computeThickness();switch(We.Nc){case 8:Ne+=ht;break;case 2:Pe+=ht;break;case 1:ye+=ht;break;default:case 4:fe+=ht}}}var it=Re=0,vt=1,St=We=0;for(ht=0;ht<z.length;ht++){var wt=z[ht];if(wt!==null){if(Re!==wt.Nc){switch(Re=wt.Nc,Re){case 8:var Ot=ee;it=ce;break;case 2:Ot=ce,it=re;break;case 1:Ot=re,it=oe;break;default:case 4:Ot=oe,it=ee}switch(We=it.x-Ot.x,St=it.y-Ot.y,Re){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}it=0}var $t=wt.Zo;if(x===Vv){switch(wt=wt.link.computeThickness(),wt*=vt,$t.set(Ot),Re){case 8:$t.x=Ot.x+We/2+Ne/2-it-wt/2;break;case 2:$t.y=Ot.y+St/2+Pe/2-it-wt/2;break;case 1:$t.x=Ot.x+We/2-ye/2+it+wt/2;break;default:case 4:$t.y=Ot.y+St/2-fe/2+it+wt/2}it+=wt}else{var li=.5;x===Km&&(li=(wt.Uo+1)/(wt.Gl+1)),$t.x=Ot.x+We*li,$t.y=Ot.y+St*li}}}for(lt.free(re),lt.free(oe),lt.free(ee),lt.free(ce),Ot=a.pe,z=0;z<Ot.length;z++)x=Ot[z],x!==null&&(x.Ju=a.computeEndSegmentLength(x));a.ap=E,gn.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,Ci,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 lt,this.Gl=this.Uo=0,this.Zo=new lt,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 jo(a){br(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new lt(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}jo.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},jo.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},jo.prototype.qb=function(){},jo.prototype.toString=function(){var a=Mn(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},jo.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())}}},jo.prototype.createNetwork=function(){return new Eo(this)},jo.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof tn?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof ir?y.lg(a.memberParts):y.lg(a.iterator),y},jo.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")}},jo.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()}},jo.prototype.doLayout=function(a){var y=new Bn;a instanceof tn?(Xd(this,y,a.nodes,!0,this.rh,!0,!1,!0),Xd(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof ir?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},jo.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 ir&&(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++}},jo.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 qn)&&(xp(re),this.rh(re))){var oe=re.measuredBounds,ce=oe.width;oe=oe.height,re.moveTo(E,x),re instanceof ir&&(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++}}},jo.prototype.rh=function(a){return!!(!a.location.w()||a instanceof ir&&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 di?oe.isLinkLabel||(oe instanceof ir&&oe.layout===null?Xd(a,y,oe.memberParts,!1,b,z,ee,re):(xp(oe),y.add(oe))):ee&&oe instanceof qn?y.add(oe):!re||!oe.Zc()||oe instanceof di||(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()}jo.prototype.ni=function(a,y){var E=this.boundsComputation;return E!==null?(y||(y=new gn),E(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},jo.prototype.ex=function(a){var y=new Bn;return a instanceof tn?(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 ir?Xd(this,y,a.memberParts,!1,null,!0,!0,!0):Xd(this,y,a.iterator,!1,null,!0,!0,!0),y},jo.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(Yi),(isNaN(E.x)||isNaN(E.y))&&E.set(a),a=y.padding,E.x+=a.left,E.y+=a.top),E}return a},Rt.Object.defineProperties(jo.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())}}}),jo.prototype.collectParts=jo.prototype.ex,jo.prototype.getLayoutBounds=jo.prototype.ni,jo.prototype.invalidateLayout=jo.prototype.C,jo.className="Layout";function Eo(a){br(this),this.Sc=a,this.wf=new Bn,this.ye=new Bn,this.Es=new Ti,this.zs=new Ti}Eo.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 Bn,this.ye=new Bn,this.Es=new Ti,this.zs=new Ti},Eo.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},Eo.prototype.createVertex=function(){return new Ma(this)},Eo.prototype.createEdge=function(){return new Nl(this)},Eo.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 di)return!ee.isLinkLabel;if(ee instanceof qn){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 di&&(!y||x.isTopLevel)&&x.canLayout()&&E(x)){if(x instanceof ir&&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 qn&&(!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))}}},Eo.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=Eo.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=wi(),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]);ai(a)},Eo.prototype.deleteArtificialVertexes=function(){for(var a=wi(),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=wi(),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]);ai(a),ai(y)};function zE(a){for(var y=wi(),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]);ai(y)}Eo.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),zE(this),this.Ko()),a=new Gn;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))}}Eo.prototype.dz=function(){for(var a=new Bn,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},Rt.Object.defineProperties(Eo.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}}}),Eo.prototype.findAllParts=Eo.prototype.dz,Eo.prototype.splitIntoSubNetworks=Eo.prototype.Zx,Eo.prototype.deleteSelfEdges=Eo.prototype.Ko,Eo.prototype.reverseEdge=Eo.prototype.gm,Eo.prototype.linkVertexes=Eo.prototype.Zj,Eo.prototype.findEdge=Eo.prototype.Lo,Eo.prototype.deleteLink=Eo.prototype.Yy,Eo.prototype.deleteEdge=Eo.prototype.Mj,Eo.prototype.addLink=Eo.prototype.Dy,Eo.prototype.addEdge=Eo.prototype.Bo,Eo.prototype.findVertex=Eo.prototype.ki,Eo.prototype.deleteNode=Eo.prototype.Zy,Eo.prototype.deleteVertex=Eo.prototype.Iu,Eo.prototype.addNode=Eo.prototype.Bl,Eo.prototype.addVertex=Eo.prototype.dh,Eo.prototype.addParts=Eo.prototype.lg,Eo.className="LayoutNetwork";function Ma(a){br(this),this.ob=a,this.j=new gn(0,0,10,10).freeze(),this.o=new lt(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Gn,this.mg=new Gn}Ma.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Gn,this.mg=new Gn},Ma.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+pr(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},Ma.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,E=a.bounds;Ut(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 ir)){E=gn.alloc(),a.Va();var x=this.network.layout.ni(a,E),b=a.locationObject.ga(lr);if(x.w()&&b.w()){a.moveTo(y.x+this.focusX-(b.x-x.x),y.y+this.focusY-(b.y-x.y)),gn.free(E);return}gn.free(E)}a.moveTo(y.x,y.y)}},Ma.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},Ma.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},Ma.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},Ma.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}Rt.Object.defineProperties(Ma.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=gn.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),gn.free(E),!(a instanceof ir)&&(a=a.locationObject.ga(lr),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 Bn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Bn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Bn,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 Gn,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}}}),Ma.prototype.deleteDestinationEdge=Ma.prototype.Jl,Ma.prototype.addDestinationEdge=Ma.prototype.zl,Ma.prototype.deleteSourceEdge=Ma.prototype.Kl,Ma.prototype.addSourceEdge=Ma.prototype.Cl,Ma.className="LayoutVertex",Ma.standardComparer=sy,Ma.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 Nl(a){br(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}Nl.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Nl.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+pr(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},Nl.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Nl.prototype.commit=function(){},Nl.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},Rt.Object.defineProperties(Nl.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)}}}),Nl.prototype.getOtherVertex=Nl.prototype.Ax,Nl.className="LayoutEdge";function qa(a){jo.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new ri(NaN,NaN).freeze(),this.tf=new ri(10,10).freeze(),this.Jb=bp,this.Rb=l0,this.nd=wp,this.hd=gS,a&&Object.assign(this,a)}Wt(qa,jo),qa.prototype.cloneProtected=function(a){jo.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},qa.prototype.qb=function(a){a.classType===qa?a===wp||a===c0||a===ly||a===u0?this.sorting=a:a===l0||a===Xu?this.arrangement=a:a===bp||a===s0?this.alignment=a:pt("Unknown enum value: "+a):jo.prototype.qb.call(this,a)},qa.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 ir)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=gn.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 Re=Pe=this.arrangementOrigin.x,We=this.arrangementOrigin.y,ht=0,it=0,vt=0;vt<b.length;vt++){var St=b[vt],wt=this.ni(St,ce),Ot=Math.ceil((wt.width+re)/fe)*fe,$t=Math.ceil((wt.height+oe)/ye)*ye;switch(Ne){case Xu:var li=Math.abs(Re-wt.width);break;default:li=Re+wt.width}switch((0<z&&ht>z-1||0<ee&&0<ht&&li-Pe>ee)&&(x.push(new gn(0,We,ee+re,it)),ht=0,Re=Pe,We+=it,it=0),it=Math.max(it,$t),Ne){case Xu:wt=-wt.width;break;default:wt=0}switch(St.moveTo(Re+wt,We),Ne){case Xu:Re-=Ot;break;default:Re+=Ot}ht++}x.push(new gn(0,We,ee+re,it)),gn.free(ce);break;case bp:for(oe=ee,fe=z,ye=y,Ne=E,ee=gn.alloc(),Pe=Math.max(this.cellSize.width,1),z=We=ce=0,re=lt.alloc(),Re=0;Re<b.length;Re++)it=b[Re],ht=this.ni(it,ee),it=Ed(it,it.locationObject,it.locationSpot,re),ce=Math.max(ce,it.x),We=Math.max(We,ht.width-it.x),z=Math.max(z,it.y);switch(Re=this.arrangement,Re){case Xu:ce+=ye;break;default:We+=ye}Pe=isFinite(Pe)?Math.max(Pe+ye,1):Math.max(ce+We,1);var Ai=it=this.arrangementOrigin.x;for(vt=this.arrangementOrigin.y,We=0,oe>=ce&&(oe-=ce),ce=St=0,Ot=Math.max(this.cellSize.height,1),wt=z=0,$t=!0,ht=lt.alloc(),li=0;li<b.length;li++){var yi=b[li],Xn=this.ni(yi,ee),On=Ed(yi,yi.locationObject,yi.locationSpot,re);if(0<We)switch(Re){case Xu:Ai=(Ai-it-(Xn.width-On.x))/Pe,Ai=jt.$(Math.round(Ai),Ai)?Math.round(Ai):Math.floor(Ai),Ai=Ai*Pe+it;break;default:Ai=(Ai-it+On.x)/Pe,Ai=jt.$(Math.round(Ai),Ai)?Math.round(Ai):Math.ceil(Ai),Ai=Ai*Pe+it}else switch(Re){case Xu:St=Ai+On.x+Xn.width;break;default:St=Ai-On.x}switch(Re){case Xu:var nr=-(Ai+On.x)+St;break;default:nr=Ai+Xn.width-On.x-St}if(0<fe&&We>fe-1||0<oe&&0<We&&nr>oe){for(x.push(new gn(0,$t?vt-z:vt,oe+ye,wt+z+Ne)),Ai=0;Ai<We&&li!==We;Ai++){nr=b[li-We+Ai];var Xi=Ed(nr,nr.locationObject,nr.locationSpot,ht);nr.moveTo(nr.position.x,nr.position.y+z-Xi.y)}wt+=Ne,vt=$t?vt+wt:vt+(wt+z),We=wt=z=0,Ai=it,$t=!1}switch(Ai===it&&(ce=Re===Xu?Math.max(ce,Xn.width-On.x):Math.min(ce,-On.x)),z=Math.max(z,On.y),wt=Math.max(wt,Xn.height-On.y),isFinite(Ot)&&(wt=Math.max(wt,Math.max(Xn.height,Ot)-On.y)),$t?yi.moveTo(Ai-On.x,vt-On.y):yi.moveTo(Ai-On.x,vt),Re){case Xu:Ai-=On.x+ye;break;default:Ai+=Xn.width-On.x+ye}We++}if(x.push(new gn(0,vt,oe+ye,($t?wt:wt+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(lt.free(re),lt.free(ht),Re===Xu)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);gn.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===Xu?this.commitLayers(x,new lt(b+y/2-(z+b),ee-E/2)):this.commitLayers(x,new lt(b-y/2,ee-E/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},qa.prototype.commitLayers=function(){};function gS(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}Rt.Object.defineProperties(qa.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!==Xu||(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 wn(qa,"Position",0),bp=new wn(qa,"Location",1),l0=new wn(qa,"LeftToRight",2),Xu=new wn(qa,"RightToLeft",3),ly=new wn(qa,"Forward",4),u0=new wn(qa,"Reverse",5),wp=new wn(qa,"Ascending",6),c0=new wn(qa,"Descending",7);qa.className="GridLayout",qa.standardComparer=gS,qa.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},qa.Position=s0,qa.Location=bp,qa.LeftToRight=l0,qa.RightToLeft=Xu,qa.Forward=ly,qa.Reverse=u0,qa.Ascending=wp,qa.Descending=c0;function io(){this.On=new Bn,this.Dn=new Bn,this.Pa=new Bn,this.cf=new Ti,this.bf=new Ti,this.aj=new Ti,this.H=null,this.tp=!1}ke=io.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 di){if(this.On.add(a),a instanceof ir){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 qn?this.Dn.add(a):a instanceof Gr||this.Pa.add(a);y=a.data,y===null||a instanceof Gr||(a instanceof qn?this.bf.add(y,a):this.cf.add(y,a))},ke.pc=function(a){if(a.Ej(),a instanceof di){if(this.On.remove(a),a instanceof ir){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 qn?this.Dn.remove(a):a instanceof Gr||this.Pa.remove(a);y=a.data,y===null||a instanceof Gr||(a instanceof qn?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 ir)&&pt('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 ir||pt('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 qn||pt('Invalid link template in Diagram.linkTemplateMap: template for "'+x+'" must be a Link, not a normal Node or simple Part: '+E);for(y=wi(),E=a.selection.iterator;E.next();)(x=E.value.data)&&y.push(x);for(E=wi(),a=a.highlighteds.iterator;a.next();)(x=a.value.data)&&E.push(x);for(a=wi(),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]);ai(y),ai(E),ai(a)}},io.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},io.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&&(yu(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)}}io.prototype.insertLink=function(){return null},io.prototype.resolveReferencesForData=function(){},io.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,xi('No Group template found for category "'+E+'"'),xi(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(E),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(yS||(yS=!0,xi('No Node template found for category "'+E+'"'),xi(" Using default node template")),y=a.ny))),y}io.prototype.getLinkCategoryForData=function(){return""},io.prototype.setLinkCategoryForData=function(){},io.prototype.setFromNodeForLink=function(){},io.prototype.setToNodeForLink=function(){},io.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,xi('No Link template found for category "'+a+'"'),xi(" Using default link template")),E=y.my)),E},io.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},io.prototype.Gs=function(a){var y=this;a.forEach(function(E){y.ip(E)})},io.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Bg(this.diagram,a,!1),this.unresolveReferencesForPart(a))},io.prototype.unresolveReferencesForPart=function(){},io.prototype.removeDataForLink=function(){},io.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},io.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof di?a:null)},io.prototype.findLinkForKey=function(){return null},ke=io.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 di?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 Bn;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(Ut(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 Bn;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(Ut(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($n(z)){if(!$n(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(Ut(y)&&Ut(E)){if(!uy(a,y,E))return!1}else if(y!==E)return!1;return!0}io.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===To){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===Jo){var ee=a.newValue;x==="nodeDataArray"&&Ut(ee)&&pS(this,ee),y.isModified=!0}else if(E===ea){var re=a.oldValue;x==="nodeDataArray"&&Ut(re)&&this.ip(re),y.isModified=!0}else E===ys&&(x==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):x==="ModelDisplaced"&&this.Wd());else if(E===To){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===Jo||E===ea){var fe=a.change===Jo,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 Re=Pe[a];if(fe)Pm(Re,Ne,ye,!0);else if(!(0>ye)){var We=ye+rp(Re);Re.pc(We,!0),wv(Re,We,ye)}}y.isModified=!0}}finally{y.aa=!0}}}}},io.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)},io.prototype.rp=function(){for(var a=this.H.model,y=new Bn,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()},io.prototype.refreshDataBoundLinks=function(){},io.prototype.updateRelationshipsFromData=function(){},io.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=wi()),E.push(ee))}if(E!==null)break}if(E!==null){for(x=0;x<E.length;x++)E[x].La(y);ai(E)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function cy(a,y){var E=y.Hh;if($n(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($n(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}}}}io.prototype.Kj=function(a,y,E){E===void 0&&(E=!1);var x=new Ti;if($n(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 Bn;for(var z=new Ti,ee=x.iterator;ee.next();){var re=ee.value;if(re instanceof qn)a||re.fromNode!==null&&re.toNode!==null||b.add(re);else if(re instanceof di&&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 Ti;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 _i))return null;if(z.isSelected=!1,z.isHighlighted=!1,x.add(y,z),y instanceof di){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 ir&&z instanceof ir)for(y=y.memberParts;y.next();)ee=d0(a,y.value,E,x,b),ee instanceof qn||ee===null||(ee.containingGroup=z)}else if(y instanceof qn&&z instanceof qn)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 di&&(ee.labeledLink=z);return z}io.prototype.copyPartData=function(a,y){var E=null,x=a.data;if(x!==null&&y!==null){var b=y.model;a instanceof qn||(x=b.copyNodeData(x),Ut(x)&&(b.xf(x),E=y.Lc(x)))}else yu(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 qn||(b=y.copyNodeData(x)),Ut(b)&&(E.data=b)));return E},Rt.Object.defineProperties(io.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}}}),io.prototype.updateAllRelationshipsFromData=io.prototype.rp,io.prototype.findLinksByExample=io.prototype.ls,io.prototype.findNodesByExample=io.prototype.ms,io.prototype.findLinkForData=io.prototype.Kc,io.prototype.findNodeForData=io.prototype.ii,io.prototype.findPartForData=io.prototype.Lc,io.prototype.findNodeForKey=io.prototype.Vb,io.prototype.removeModeledPart=io.prototype.ip,io.prototype.removeModeledParts=io.prototype.Gs,io.prototype.rebuildParts=io.prototype.Wd;var yS=!1,SS=!1,ES=!1;io.className="PartManager";function za(a){io.apply(this,arguments)}Wt(za,io),za.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),xS(this,a.linkDataArray)},za.prototype.addModeledParts=function(a){for(io.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){yu(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=Yl(E,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof di&&(b.fromNode=z)),z=p0(E,y,!1),z!==""&&(b.toPortId=z),z=Yl(E,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof di&&(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}}}}za.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)})}za.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},za.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},za.prototype.setFromNodeForLink=function(a,y){var E=this.diagram.model;E.wv(a.data,E.wa(y!==null?y.data:null))},za.prototype.setToNodeForLink=function(a,y){var E=this.diagram.model;E.Bv(a.data,E.wa(y!==null?y.data:null))},za.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},za.prototype.findPartForKey=function(a){var y=io.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},za.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},za.prototype.doModelChanged=function(a){var y=this;if(io.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===To){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 Re=a.newValue;if(Re!==void 0){var We=this.Vb(Re);We instanceof ir?Pe.containingGroup=We:Pe.containingGroup=null}else Pe.containingGroup=null}}else if(b==="linkLabelKeys"){var ht=this.Kc(a.object);if(ht!==null){var it=a.oldValue,vt=a.newValue;Array.isArray(it)&&it.forEach(function(On){0<=vt.indexOf(On)||(On=y.Vb(On),On!==null&&(On.labeledLink=null))}),Array.isArray(vt)&&vt.forEach(function(On){On=y.Vb(On),On!==null&&(On.labeledLink=ht)})}}else if(b==="linkCategory"){var St=this.Kc(a.object),wt=a.newValue;St!==null&&typeof wt=="string"&&(St.category=wt)}else b==="linkDataArray"&&(wS(this,a.oldValue),xS(this,a.newValue));E.isModified=!0}else if(x===Jo){var Ot=a.newValue;if(b==="linkDataArray"&&typeof Ot=="object"&&Ot!==null)bS(this,Ot);else if(b==="linkLabelKeys"&&qd(Ot)){var $t=this.Kc(a.object),li=this.Vb(Ot);$t!==null&&li!==null&&(li.labeledLink=$t)}E.isModified=!0}else if(x===ea){var Ai=a.oldValue;if(b==="linkDataArray"&&typeof Ai=="object"&&Ai!==null)this.ip(Ai);else if(b==="linkLabelKeys"&&qd(Ai)){var yi=this.Vb(Ai);yi!==null&&(yi.labeledLink=null)}E.isModified=!0}}else if(x===To){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}}}}},za.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,E=new Bn,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)})},za.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 qn){var b=Yl(x,y,!0);if(b=E.Vb(b),a.fromNode=b,b=Yl(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 Bn().addAll(y);var ee=new Bn;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 Gr)&&(y=x.lh(y),y=E.findPartForKey(y),y===null||y instanceof ir)&&(a.containingGroup=y)}}},za.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 ir&&y.lh(ee)===E&&(ee=this.Lc(ee),ee!==null&&(ee.containingGroup=b)):(z.link=this.Kc(ee),z.link!==null&&b instanceof di&&(Yl(y,ee,!0)===E&&(z.link.fromNode=b),Yl(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}}qu(y,E)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof ir&&(b.containingGroup=a))}},za.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof di){var E=y.wa(a.data);if(E!==void 0){for(var x=a.linksConnected;x.next();)Ju(y,E,x.value.data);if(a.isLinkLabel&&(x=a.labeledLink,x!==null&&Ju(y,E,x.data)),a instanceof ir)for(a=a.memberParts;a.next();)x=a.value.data,y.lb(x)&&Ju(y,E,x)}}},za.prototype.copyPartData=function(a,y){var E=io.prototype.copyPartData.call(this,a,y);if(a instanceof qn)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},za.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 qn){if(yu(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 di&&(yu(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 di||(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},za.prototype.findLinkForKey=za.prototype.findLinkForKey,za.prototype.findPartForKey=za.prototype.findPartForKey,za.prototype.removeAllModeledParts=za.prototype.removeAllModeledParts,za.prototype.addModeledParts=za.prototype.addModeledParts,za.prototype.addAllModeledParts=za.prototype.addAllModeledParts,za.className="GraphLinksPartManager";function ru(){io.apply(this,arguments),this.Sg=null}Wt(ru,io);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||!as(x,b,z,null,!0))&&(y=a.getLinkCategoryForData(E.data),x=a.findLinkTemplateForCategory(y),x!==null&&(yu(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}}}ru.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},ru.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},ru.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}},ru.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))},ru.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},ru.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},ru.prototype.doModelChanged=function(a){if(io.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===To){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===To){var ye=a.propertyName;a.object===y.model&&ye==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},ru.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var E=a.diagram;if(E!==null){var x=E.model;a instanceof di&&(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)))}}},ru.prototype.updateDataBindings=function(a,y){io.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},ru.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 di&&y.mh(z)===E&&h0(this,b,this.ii(z))}qu(y,E)}a=y.mh(a),a!==void 0&&b instanceof di&&(a=this.Vb(a),h0(this,a,b))}},ru.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof di){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(ea,"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)&&Ju(y,E,b)}},ru.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},ru.prototype.findLinkForKey=ru.prototype.findLinkForKey,ru.className="TreePartManager";function Pi(a,y){this.kl=new Bn,this.il=new Bn,this.Wv=`,
"insertedNodeKeys": `,this.jy=`,
"modifiedNodeData": `,this.Yv=`,
"removedNodeKeys": `,this.vh=null,br(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new Ti,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 Ti,this.Lt=new Gn,this.Wg=!1,this.o=null,this.undoManager=new fo,a!==void 0&&($n(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Pi.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},Pi.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Pi.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Pi.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)+":"+ji(b)}}return y},Pi.prototype.xA=function(a){a.change!==ys&&pt("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof va?(AS(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Pi.prototype.Qv=function(a,y){var E=this,x=!1,b=new Bn,z=new Bn,ee=new Bn,re=this.vh;a.changes.each(function(ye){ye.model===E&&(ye.modelChange==="nodeDataArray"?ye.change===Jo?b.add(ye.newValue):ye.change===ea&&ee.add(ye.oldValue):E.lb(ye.object)?z.add(ye.object):ye.change!==To||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 Pi||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},Pi.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=$r++,x.set(ye,Ne),b.set(ye,y))}if(!Ut(y))return y;z||(z=[]);var re=Object.isExtensible(y);if(x||(x=new Ti),re){var oe=x.get(y);if(oe)return oe}else for(b||(b=new Ti),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 lt||y instanceof ri||y instanceof gn||y instanceof dr||y instanceof Yt)oe=y.copy(),ee(y,oe);else{if(y instanceof to||y instanceof Qn||y instanceof wn)return y;if(y instanceof Gn)oe=new Gn().addAll(ag(a,y.Fa(),!1,x,b,z)),ee(y,oe);else if(y instanceof Bn)oe=new Bn().addAll(ag(a,y.Fa(),!1,x,b,z)),ee(y,oe);else if(y instanceof Ti)oe=new Ti().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=Pi.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,Ut(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,$n(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 Bn,ee.add(z),x.add(b,ee)):ee.add(z)}}var x=a.vh;x===null&&(x=new Ti,y.changes.each(function(b){if(b.diagram!==null){var z=b.change;z===To?(b=b.object.panel)&&(z=b.data)&&E(z,b):(z===Jo||z===ea)&&(b=b.object,(z=b.itemArray)&&E(z,b))}}),a.vh=x)}function CS(a,y){for(var E=new Bn,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(Ut(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 Bn,z=new Bn,ee=new Bn,re=this.vh;a.changes.each(function(fe){fe.model===E&&(fe.modelChange==="nodeDataArray"?fe.change===Jo?b.add(fe.newValue):fe.change===ea&&ee.add(fe.oldValue):E.lb(fe.object)?z.add(fe.object):fe.change!==To||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 Pi||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)&&pt("applyIncrementalJson cannot change Model properties"),TS(this,a);var y=a.insertedNodeKeys,E=a.modifiedNodeData,x=new Ti;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!==ys&&pt("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var E=a.object;return a.isTransactionFinished&&E instanceof va?(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=Rn.JSON.parse(a)}catch(x){}else typeof a=="object"?y=a:pt("Unable to modify a Model from: "+a);var E=y.incremental;typeof E!="number"&&pt("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)},Pi.constructGraphLinksModel=function(){return new Pi},ke=Pi.prototype,ke.dm=function(a){if($n(a))for(var y=a.length,E=0;E<y;E++){var x=a[E];if(Ut(x)){var b=E;x=this.dm(x),Array.isArray(a)?a[b]=x:pt("Cannot replace an object in an HTMLCollection or NodeList at "+b)}}else if(Ut(a)){for(y in a)if(E=a[y],Ut(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 Gn,x=0;x<E.length/2;x++)b.add(new lt(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()):$n(a)?Jd(this,a):Ut(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 Ni;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 Ys(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function hy(a,y){var E=y;if(E instanceof lt)y={class:"go.Point",x:Ys(E.x),y:Ys(E.y)};else if(E instanceof ri)y={class:"go.Size",width:Ys(E.width),height:Ys(E.height)};else if(E instanceof gn)y={class:"go.Rect",x:Ys(E.x),y:Ys(E.y),width:Ys(E.width),height:Ys(E.height)};else if(E instanceof dr)y={class:"go.Margin",top:Ys(E.top),right:Ys(E.right),bottom:Ys(E.bottom),left:Ys(E.left)};else if(E instanceof Yt)E.sb()?y={class:"go.Spot",x:Ys(E.x),y:Ys(E.y),offsetX:Ys(E.offsetX),offsetY:Ys(E.offsetY)}:y={class:"go.Spot",enum:E.toString()};else if(E instanceof to){if(y={class:"go.Brush",type:E.type.name},E.type===vd?y.color=E.color:(E.type===Xc||E.type===nu)&&(y.start=E.start,y.end=E.end,E.type===nu&&(E.startRadius!==0&&(y.startRadius=Ys(E.startRadius)),isNaN(E.endRadius)||(y.endRadius=Ys(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=Ys(E.startX)),E.startY!==0&&(y.startY=Ys(E.startY)),E.endX!==0&&(y.endX=Ys(E.endX)),E.endY!==0&&(y.endY=Ys(E.endY)),E.spot1.D(Yi)||(y.spot1=E.spot1),E.spot2.D(Zo)||(y.spot2=E.spot2),E.type===Qn.o&&(y.path=Qn.ia(E))):E instanceof wn&&(y={class:"go.EnumValue",classType:Ap(a,E.classType),name:E.name});x="{",E=!0;for(var b in y){var z=ca(y,b);if(!MS(b,z))if(E?E=!1:x+=",",x+=a.quote(b)+":",b==="points"&&z instanceof Gn){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 Ws(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 lt(Ws(a.x),Ws(a.y));else if(y==="Size")E=new ri(Ws(a.width),Ws(a.height));else if(y==="Rect")E=new gn(Ws(a.x),Ws(a.y),Ws(a.width),Ws(a.height));else if(y==="Margin")E=new dr(Ws(a.top),Ws(a.right),Ws(a.bottom),Ws(a.left));else if(y==="Spot")typeof a.enum=="string"?E=hs(a.enum):E=new Yt(Ws(a.x),Ws(a.y),Ws(a.offsetX),Ws(a.offsetY));else if(y==="Brush"){if(E=new to,E.type=vi(to,a.type),typeof a.color=="string"&&(E.color=a.color),a.start instanceof Yt&&(E.start=a.start),a.end instanceof Yt&&(E.end=a.end),typeof a.startRadius=="number"&&(E.startRadius=Ws(a.startRadius)),typeof a.endRadius=="number"&&(E.endRadius=Ws(a.endRadius)),a=a.colorStops,Ut(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=vi(Qn,a.type),typeof a.startX=="number"&&(E.startX=Ws(a.startX)),typeof a.startY=="number"&&(E.startY=Ws(a.startY)),typeof a.endX=="number"&&(E.endX=Ws(a.endX)),typeof a.endY=="number"&&(E.endY=Ws(a.endY)),a.spot1 instanceof Yt&&(E.spot1=a.spot1),a.spot2 instanceof Yt&&(E.spot2=a.spot2)):y==="EnumValue"&&(x=a.classType,x.indexOf("go.")===0&&(x=x.substr(3)),x=gy(x),typeof x=="function"&&(E=vi(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){Ta(this,"",a,y,E,x,b,z,ee)},ke.g=function(a,y,E,x,b){Ta(this,"",To,a,this,y,E,x,b)},ke.Fs=function(a,y,E,x,b,z){Ta(this,"",To,y,a,E,x,b,z)};function Ta(a,y,E,x,b,z,ee,re,oe){re===void 0&&(re=null),oe===void 0&&(oe=null);var ce=new Ro;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)}Pi.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===To){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)),Fo(E,x,b)}else a.change===Jo?(E=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,Ut(a)&&typeof E=="number"&&(x=this.wa(a),y?(this.Tc[E]===a&&Ue(this.Tc,E),x!==void 0&&this.kb.remove(x)):(this.Tc[E]!==a&&Kt(this.Tc,E,a),x!==void 0&&this.kb.add(x,a)))):a.modelChange===""?((x=a.object)&&!$n(x)&&a.propertyName&&(x=ca(a.object,a.propertyName)),$n(x)&&typeof E=="number"&&(a=a.newValue,y?Ue(x,E):Kt(x,E,a))):pt("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===ea?(E=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,Ut(a)&&typeof E=="number"&&(x=this.wa(a),y?(this.Tc[E]!==a&&Kt(this.Tc,E,a),x!==void 0&&this.kb.add(x,a)):(this.Tc[E]===a&&Ue(this.Tc,E),x!==void 0&&this.kb.remove(x)))):a.modelChange===""?((x=a.object)&&!$n(x)&&a.propertyName&&(x=ca(a.object,a.propertyName)),$n(x)&&typeof E=="number"&&(a=a.oldValue,y?Kt(x,E,a):Ue(x,E))):pt("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==ys&&pt("unknown ChangedEvent: "+a.toString())},Pi.prototype.Ea=function(a){return this.undoManager.Ea(a)},Pi.prototype.eb=function(a){return this.undoManager.eb(a)},Pi.prototype.Kf=function(){return this.undoManager.Kf()},Pi.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=Pi.prototype,ke.La=function(a,y){y===void 0&&(y=""),Ta(this,"SourceChanged",ys,y,a,null,null)},ke.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=ca(a,y),y!==void 0)){if(qd(y))return y;pt("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=ca(a,E);x!==y&&this.hc(y)===null&&(Fo(a,E,y),x!==void 0&&this.kb.remove(x),this.kb.add(y,a),Ta(this,"nodeKey",To,E,a,x,y),typeof E=="string"&&this.La(a,E),this.jp(x,y))}else Fo(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&&pt("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))){Fo(a,y,E);return}if(typeof E=="string"){for(x=2;this.kb.contains(E+x);)x++;Fo(a,y,E+x)}else if(E===void 0||typeof E=="number"){for(E=-this.kb.count-1;this.kb.contains(E);)E--;Fo(a,y,E)}}}}},ke.xf=function(a){a!==null&&(Er(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&&pt("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(x,y),x=null,E&&(x=a.Tc.length,Kt(a.Tc,x,y)),Ta(a,"nodeDataArray",Jo,"nodeDataArray",a,null,y,null,x),a.fm(y),a.em(y))}ke.Fy=function(a){if($n(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;Ue(a.Tc,x)}Ta(a,"nodeDataArray",ea,"nodeDataArray",a,y,null,x,null),a.qp(y)}ke.nA=function(a){if($n(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&&$n(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 Bn&&this.Vf.add(y,a))},ke.Lv=function(){},ke.fm=function(){},ke.em=function(){},ke.qp=function(){};function Ju(a,y,E){if(y!==void 0){var x=a.Vf.I(y);x===null&&(x=new Bn,a.Vf.add(y,x)),x.add(E)}}function qu(a,y,E){if(y!==void 0){var x=a.Vf.I(y);x instanceof Bn&&(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 Bn?a:null)}ke.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Pi.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):g0(this,a,!0),Ut(a)&&br(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 br(x),x}if(E&&Ut(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=ca(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 Pi||z instanceof fo||z instanceof va||z instanceof Ro||(z=g0(a,z,!1)),Fo(E,x,z)}return br(E),E}return y instanceof lt||y instanceof ri||y instanceof gn||y instanceof Yt||y instanceof dr?y.copy():y}Pi.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 Bt&&(IS=!0,xi('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),xi(" Is that really your intent?"));var x=ca(a,y);x!==E&&(Fo(a,y,E),this.Fs(a,y,x,E))},ke=Pi.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),Kt(a,y,E),Ta(this,"",Jo,"",a,null,E,null,y)},ke.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&pt("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var E=a[y];Ue(a,y),Ta(this,"",ea,"",a,E,null,y,null)},ke.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=ca(a,y),y===void 0))return"";if(typeof y=="string")return y;pt("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=ca(a,E);x===void 0&&(x=""),x!==y&&(Fo(a,E,y),Ta(this,"nodeCategory",To,E,a,x,y))}else Fo(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 Pi}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 Fu[a]?Fu[a]:Rn.go!==void 0&&Rn.go[a]?Rn.go[a]:null}function ca(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 Fo(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){}}Rt.Object.defineProperties(Pi.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===""&&pt("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&pt("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];Ut(b)||pt("Model.nodeDataArray must only contain Objects, not: "+b),Er(b)}for(this.Tc=a,x=new Gn,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(Ta(this,"nodeDataArray",To,"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"}}}),Pi.prototype.setCategoryForNodeData=Pi.prototype.jm,Pi.prototype.getCategoryForNodeData=Pi.prototype.Ro,Pi.prototype.removeArrayItem=Pi.prototype.ov,Pi.prototype.insertArrayItem=Pi.prototype.ts,Pi.prototype.addArrayItem=Pi.prototype.Ay,Pi.prototype.assignAllDataProperties=Pi.prototype.Do,Pi.prototype.set=Pi.prototype.set,Pi.prototype.clearUnresolvedReferences=Pi.prototype.Qy,Pi.prototype.mergeNodeDataArray=Pi.prototype.$z,Pi.prototype.removeNodeDataCollection=Pi.prototype.nA,Pi.prototype.removeNodeData=Pi.prototype.cm,Pi.prototype.addNodeDataCollection=Pi.prototype.Fy,Pi.prototype.addNodeData=Pi.prototype.xf,Pi.prototype.makeNodeDataKeyUnique=Pi.prototype.$u,Pi.prototype.findNodeDataForKey=Pi.prototype.hc,Pi.prototype.containsNodeData=Pi.prototype.lb,Pi.prototype.setKeyForNodeData=Pi.prototype.km,Pi.prototype.getKeyForNodeData=Pi.prototype.wa,Pi.prototype.updateTargetBindings=Pi.prototype.La,Pi.prototype.commit=Pi.prototype.commit,Pi.prototype.rollbackTransaction=Pi.prototype.Kf,Pi.prototype.commitTransaction=Pi.prototype.eb,Pi.prototype.startTransaction=Pi.prototype.Ea,Pi.prototype.raiseDataChanged=Pi.prototype.Fs,Pi.prototype.raiseChanged=Pi.prototype.g,Pi.prototype.raiseChangedEvent=Pi.prototype.cb,Pi.prototype.removeChangedListener=Pi.prototype.ik,Pi.prototype.addChangedListener=Pi.prototype.Pe,Pi.prototype.writeJsonValue=Pi.prototype.sm,Pi.prototype.replaceJsonObjects=Pi.prototype.dm,Pi.prototype.applyIncrementalJSON=Pi.prototype.Ky,Pi.prototype.applyIncrementalJson=Pi.prototype.Zw,Pi.prototype.toJSON=Pi.prototype.toJSON,Pi.prototype.toJson=Pi.prototype.np,Pi.prototype.toIncrementalJSON=Pi.prototype.yA,Pi.prototype.toIncrementalJson=Pi.prototype.$x,Pi.prototype.toIncrementalData=Pi.prototype.xA,Pi.prototype.clear=Pi.prototype.clear;var IS=!1,Fu={};Pi.className="Model",Pi.fromJSON=Pi.fromJson=function(a,y){y===void 0&&(y=null);var E=null;if(typeof a=="string")try{E=Rn.JSON.parse(a)}catch(z){}else typeof a=="object"?E=a:pt("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=Rn[x])),typeof b=="function"&&(a=new b)}catch(z){}a===null||a instanceof Pi?y=a:pt("Unable to construct a Model of declared class: "+E.class)}return y===null&&(y=Pi.constructGraphLinksModel()),y.gp(E),y.kv(E),y},Pi.safePropertyValue=ca,Pi.safePropertySet=Fo,Fu.Brush=to,Fu.ChangedEvent=Ro,Fu.Geometry=Qn,Fu.Margin=dr,Fu.Panel=Vn,Fu.Point=lt,Fu.Rect=gn,Fu.Size=ri,Fu.Spot=Yt,Fu.Transaction=va,Fu.UndoManager=fo;function fa(a,y,E,x){br(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 Bn}fa.prototype.copy=function(){var a=new fa;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=fa.prototype,ke.qb=function(a){a.classType===fa&&(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==="")xi("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(x!==""&&(z=ca(y,x)),z!==void 0)if(b===null)E!==""&&Fo(a,E,z);else try{if(E!==""){var ee=b(z,a);Fo(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=ca(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):Fo(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):Fo(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,Re=x.panel.itemArray;oe.ov(Re,Pe),oe.ts(Re,Pe,Ne)}}}catch(We){}}finally{this.st.remove(a)}}}},Rt.Object.defineProperties(fa.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&yn(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&yn(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&yn(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&yn(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&yn(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&yn(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&yn(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&yn(this),this.el=a}}}),fa.prototype.updateSource=fa.prototype.sp,fa.prototype.updateTarget=fa.prototype.Mv,fa.prototype.ofModel=fa.prototype.dA,fa.prototype.ofObject=fa.prototype.cp,fa.prototype.makeTwoWay=fa.prototype.Kx;var HE="Binding",DS=new wn(fa,"OneWay",1),Cp=new wn(fa,"TwoWay",2);fa.className="Binding",fa.parseEnum=function(a,y){return function(E){return E=vi(a,E),E===null?y:E}},fa.toString=ji,fa.OneWay=DS,fa.TwoWay=Cp;function Dr(a,y,E){Pi.call(this),this.Vv=`,
"insertedLinkKeys": `,this.iy=`,
"modifiedLinkData": `,this.Xv=`,
"removedLinkKeys": `,this.md=[],this.$f=new Bn,this.wb=new Ti,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&&($n(a)?this.nodeDataArray=a:E=a),E&&(Object.assign(this,E),a=E.Changed)&&(delete this.Changed,this.Pe(a))}Wt(Dr,Pi),Dr.constructGraphLinksModel=Pi.constructGraphLinksModel,Dr.prototype.cloneProtected=function(a){Pi.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=Dr.prototype,ke.clear=function(){Pi.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)+":"+ji(b)}for(y+=`
link data:`,a=this.linkDataArray,E=a.length,x=0;x<E;x++)b=a[x],y+=" "+Yl(this,b,!0)+"-->"+Yl(this,b,!1)}return y},ke.Qv=function(a,y){this.linkKeyProperty===""&&pt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var E=Pi.prototype.Qv.call(this,a,y),x=this,b=new Bn,z=new Bn,ee=new Bn,re=this.vh;a.changes.each(function(fe){fe.model===x&&(fe.modelChange==="linkDataArray"?fe.change===Jo?b.add(fe.newValue):fe.change===ea&&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 Pi||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=Pi.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){Pi.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=Pi.prototype.Rv.call(this),y=`,
"linkDataArray": `+Jd(this,this.linkDataArray,!0);return a+y},ke.kv=function(a){Pi.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 Bn,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===""&&pt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var E=Pi.prototype.Pv.call(this,a,y),x=this,b=new Bn,z=new Bn,ee=new Bn,re=this.vh;a.changes.each(function(fe){fe.model===x&&(fe.modelChange==="linkDataArray"?fe.change===Jo?b.add(fe.newValue):fe.change===ea&&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 Pi||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)&&pt("applyIncrementalJson cannot change Model properties"),Pi.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)},Dr.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===To){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),Fo(E,x,b);return}}else if(a.change===Jo){if(E=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,Ut(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===ea){if(E=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,Ut(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}}Pi.prototype.changeState.call(this,a,y)}},ke=Dr.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),Fo(E,this.nodeKeyProperty,a),this.xf(E))}return a}},ke.yx=function(a){return Yl(this,a,!0)},ke.wv=function(a,y){sg(this,a,y,!0)},ke.Bx=function(a){return Yl(this,a,!1)},ke.Bv=function(a,y){sg(this,a,y,!1)};function Yl(a,y,E){if(y!==null&&(a=E?a.lf:a.mf,a!==""&&(a=ca(y,a),a!==void 0))){if(qd(a))return a;pt((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=ca(y,b);z!==E&&(qu(a,z,y),Fo(y,b,E),a.hc(E)===null&&Ju(a,E,y),Ta(a,x?"linkFromKey":"linkToKey",To,b,y,z,E),typeof b=="string"&&a.La(y,b))}else Fo(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=ca(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=ca(y,b);z===void 0&&(z=""),z!==E&&(Fo(y,b,E),Ta(a,x?"linkFromPortId":"linkToPortId",To,b,y,z,E),typeof b=="string"&&a.La(y,b))}else Fo(y,b,E)}}ke.Ef=function(a){if(a===null)return m0;var y=this.je;return y===""?m0:(a=ca(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=ca(a,E);if(x===void 0&&(x=m0),x!==y){if(Array.isArray(x))for(var b=x.length,z=0;z<b;z++)qu(this,x[z],a);for(Fo(a,E,y),b=y.length,z=0;z<b;z++){var ee=y[z];this.hc(ee)===null&&Ju(this,ee,a)}Ta(this,"linkLabelKeys",To,E,a,x,y),typeof E=="string"&&this.La(a,E)}}else Fo(a,E,y)}},ke.Bu=function(a,y){if(y!=null&&a!==null){var E=this.je;if(E!==""){var x=ca(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&&Ju(this,y,a),Ta(this,"linkLabelKeys",Jo,E,a,null,y,null,b)))}else pt(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=ca(a,E);if(Array.isArray(x)){var b=x.indexOf(y);0>b||(x.splice(b,1),this.Jc(a)&&(qu(this,y,a),Ta(this,"linkLabelKeys",ea,E,a,y,null,b,null)))}else x!==void 0&&pt(E+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},ke.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=ca(a,y),y!==void 0)){if(qd(y))return y;pt("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=ca(a,E);x!==y&&this.jh(y)===null&&(Fo(a,E,y),x!==void 0&&this.wb.remove(x),this.wb.add(y,a),Ta(this,"linkKey",To,E,a,x,y),typeof E=="string"&&this.La(a,E))}else Fo(a,E,y)}},ke.jh=function(a){return a===null&&pt("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))){Fo(a,y,E);return}if(typeof E=="string"){for(x=2;this.wb.contains(E+x);)x++;Fo(a,y,E+x)}else if(E===void 0||typeof E=="number"){for(E=-this.wb.count-1;this.wb.contains(E);)E--;Fo(a,y,E)}}}}},ke.Jc=function(a){return a===null?!1:this.$f.contains(a)},ke.fi=function(a){a!==null&&(Er(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&&pt("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)),Ta(a,"linkDataArray",Jo,"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(Ta(a,"linkDataArray",ea,"linkDataArray",a,y,null,x,null),E=Yl(a,y,!0),qu(a,E,y),E=Yl(a,y,!1),qu(a,E,y),x=a.Ef(y),Array.isArray(x))for(var b=x.length,z=0;z<b;z++)E=x[z],qu(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===""&&pt("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&$n(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=Yl(a,y,!0);E=a.Vl(E),a.hc(E)===null&&Ju(a,E,y),E=Yl(a,y,!1),E=a.Vl(E),a.hc(E)===null&&Ju(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&&Ju(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),Ut(a)&&(br(a),this.lf!==""&&Fo(a,this.lf,void 0),this.mf!==""&&Fo(a,this.mf,void 0),this.je!==""&&Fo(a,this.je,[])),a},ke.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!ca(a,y)},ke.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=ca(a,y),y!==void 0)){if(qd(y))return y;pt("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=ca(a,E);x!==y&&(qu(this,x,a),Fo(a,E,y),this.hc(y)===null&&Ju(this,y,a),Ta(this,"nodeGroupKey",To,E,a,x,y),typeof E=="string"&&this.La(a,E))}else Fo(a,E,y)}},Dr.prototype.copyNodeData=function(a){return a===null?null:(a=Pi.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||ca(a,this.Je)===void 0||Fo(a,this.Je,void 0),a)},Dr.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=ca(a,y);x!==E&&(Fo(a,y,E),this.Fs(a,y,x,E))},ke=Dr.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&&ca(a,b)===y[b]||x&&b===this.linkKeyProperty||this.setDataProperty(a,b,y[b])}},ke.jp=function(a,y){Pi.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(Yl(this,x,!0)===b){var ee=this.lf;Fo(x,ee,z),Ta(this,"linkFromKey",To,ee,x,b,z),typeof ee=="string"&&this.La(x,ee)}if(Yl(this,x,!1)===b&&(ee=this.mf,Fo(x,ee,z),Ta(this,"linkToKey",To,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,Ta(this,"linkLabelKeys",Jo,oe,x,b,z,ce,ce))}},ke.qv=function(a,y,E){if(this.lh(a)===y){var x=this.Je;Fo(a,x,E),Ta(this,"nodeGroupKey",To,x,a,y,E),typeof x=="string"&&this.La(a,x)}},ke.Lv=function(){Pi.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){Pi.prototype.fm.call(this,a),a=this.wa(a);var y=Tp(this,a);if(y!==null){var E=wi();for(y=y.iterator;y.next();){var x=y.value;if(this.lb(x)){if(this.lh(x)===a){var b=this.Je;Ta(this,"nodeGroupKey",To,b,x,a,a),typeof b=="string"&&this.La(x,b),E.push(x)}}else if(Yl(this,x,!0)===a&&(b=this.lf,Ta(this,"linkFromKey",To,b,x,a,a),typeof b=="string"&&this.La(x,b),E.push(x)),Yl(this,x,!1)===a&&(b=this.mf,Ta(this,"linkToKey",To,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&&(Ta(this,"linkLabelKeys",Jo,ee,x,a,a,re,re),E.push(x))}for(y=0;y<E.length;y++)qu(this,a,E[y]);ai(E)}},ke.em=function(a){Pi.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&Ju(this,y,a)},ke.qp=function(a){Pi.prototype.qp.call(this,a);var y=this.lh(a);qu(this,y,a)},ke.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=ca(a,y),y===void 0))return"";if(typeof y=="string")return y;pt("getCategoryForLinkData found a non-string category for "+a+": "+y)},Dr.prototype.getLinkCategoryForData=function(a){return this.ps(a)},Dr.prototype.lp=function(a,y){if(a!==null){var E=this.dj;if(E!=="")if(this.Jc(a)){var x=ca(a,E);x===void 0&&(x=""),x!==y&&(Fo(a,E,y),Ta(this,"linkCategory",To,E,a,x,y),typeof E=="string"&&this.La(a,E))}else Fo(a,E,y)}},Dr.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},ke=Dr.prototype,ke.lm=function(a,y){Pi.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},Rt.Object.defineProperties(Dr.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];Ut(b)||pt("GraphLinksModel.linkDataArray must only contain Objects, not: "+b),Er(b)}if(this.md=a,this.linkKeyProperty!==""){for(x=new Gn,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 Bn,b=0;b<E;b++)x.add(a[b]);for(this.$f=x,Ta(this,"linkDataArray",To,"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"}}}),Dr.prototype.setCategoryForLinkData=Dr.prototype.lp,Dr.prototype.getCategoryForLinkData=Dr.prototype.ps,Dr.prototype.assignAllDataProperties=Dr.prototype.Do,Dr.prototype.setGroupKeyForNodeData=Dr.prototype.mp,Dr.prototype.getGroupKeyForNodeData=Dr.prototype.lh,Dr.prototype.isGroupForNodeData=Dr.prototype.Yu,Dr.prototype.copyLinkData=Dr.prototype.Jo,Dr.prototype.mergeLinkDataArray=Dr.prototype.Zz,Dr.prototype.removeLinkDataCollection=Dr.prototype.lA,Dr.prototype.removeLinkData=Dr.prototype.bm,Dr.prototype.addLinkDataCollection=Dr.prototype.Ey,Dr.prototype.addLinkData=Dr.prototype.fi,Dr.prototype.containsLinkData=Dr.prototype.Jc,Dr.prototype.makeLinkDataKeyUnique=Dr.prototype.Bs,Dr.prototype.findLinkDataForKey=Dr.prototype.jh,Dr.prototype.setKeyForLinkData=Dr.prototype.Ks,Dr.prototype.getKeyForLinkData=Dr.prototype.Ac,Dr.prototype.removeLabelKeyForLinkData=Dr.prototype.Qx,Dr.prototype.addLabelKeyForLinkData=Dr.prototype.Bu,Dr.prototype.setLabelKeysForLinkData=Dr.prototype.Ls,Dr.prototype.getLabelKeysForLinkData=Dr.prototype.Ef,Dr.prototype.setToPortIdForLinkData=Dr.prototype.Cv,Dr.prototype.getToPortIdForLinkData=Dr.prototype.Cx,Dr.prototype.setFromPortIdForLinkData=Dr.prototype.xv,Dr.prototype.getFromPortIdForLinkData=Dr.prototype.zx,Dr.prototype.setToKeyForLinkData=Dr.prototype.Bv,Dr.prototype.getToKeyForLinkData=Dr.prototype.Bx,Dr.prototype.setFromKeyForLinkData=Dr.prototype.wv,Dr.prototype.getFromKeyForLinkData=Dr.prototype.yx,Dr.prototype.clear=Dr.prototype.clear;var m0=Object.freeze([]);Dr.className="GraphLinksModel",Fu.GraphLinksModel=Dr,Pi.constructGraphLinksModel=Pi.constructGraphLinksModel=function(){return new Dr},Pi.initDiagramModel=fy=function(){return new Dr};function Vs(a,y){Pi.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&($n(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Wt(Vs,Pi),Vs.constructGraphLinksModel=Pi.constructGraphLinksModel,Vs.prototype.cloneProtected=function(a){Pi.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},ke=Vs.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)+":"+ji(b)}}return y},ke.rm=function(){var a=Pi.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){Pi.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},ke.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&pt("applyIncrementalJson cannot change Model properties"),Pi.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=ca(a,y),y!==void 0)){if(qd(y))return y;pt("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=ca(a,E);x!==y&&(qu(this,x,a),Fo(a,E,y),this.hc(y)===null&&Ju(this,y,a),Ta(this,"nodeParentKey",To,E,a,x,y),typeof E=="string"&&this.La(a,E))}else Fo(a,E,y)}},ke.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=ca(a,y),y===void 0)?"":typeof y=="string"?y:(pt("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Vs.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Vs.prototype.Ms=function(a,y){if(a!==null){var E=this.nj;if(E!=="")if(this.lb(a)){var x=ca(a,E);x===void 0&&(x=""),x!==y&&(Fo(a,E,y),Ta(this,"parentLinkCategory",To,E,a,x,y),typeof E=="string"&&this.La(a,E))}else Fo(a,E,y)}},Vs.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Vs.prototype.copyNodeData=function(a){return a===null?null:(a=Pi.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||ca(a,this.Ke)===void 0||Fo(a,this.Ke,void 0),a)},Vs.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=ca(a,y);x!==E&&(Fo(a,y,E),this.Fs(a,y,x,E))},ke=Vs.prototype,ke.jp=function(a,y){Pi.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;Fo(a,x,E),Ta(this,"nodeParentKey",To,x,a,y,E),typeof x=="string"&&this.La(a,x)}},ke.fm=function(a){Pi.prototype.fm.call(this,a),a=this.wa(a);var y=Tp(this,a);if(y!==null){var E=wi();for(y=y.iterator;y.next();){var x=y.value;if(this.lb(x)&&this.mh(x)===a){var b=this.Ke;Ta(this,"nodeParentKey",To,b,x,a,a),typeof b=="string"&&this.La(x,b),E.push(x)}}for(y=0;y<E.length;y++)qu(this,a,E[y]);ai(E)}},ke.em=function(a){Pi.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&Ju(this,y,a)},ke.qp=function(a){Pi.prototype.qp.call(this,a);var y=this.mh(a);qu(this,y,a)},ke.lm=function(a,y){Pi.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},Rt.Object.defineProperties(Vs.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"}}}),Vs.prototype.setParentLinkCategoryForNodeData=Vs.prototype.Ms,Vs.prototype.getParentLinkCategoryForNodeData=Vs.prototype.ss,Vs.prototype.setParentKeyForNodeData=Vs.prototype.qe,Vs.prototype.getParentKeyForNodeData=Vs.prototype.mh,Vs.className="TreeModel",Fu.TreeModel=Vs;function Xo(a){jo.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=Bu,this.Ti=0,this.Zv=new lt,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=Bu,this.K=Zs,this.nd=cg,this.hd=sy,this.tf=6,this.Nn=w0,a&&Object.assign(this,a)}Wt(Xo,jo),Xo.prototype.cloneProtected=function(a){jo.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},Xo.prototype.qb=function(a){a.classType===Xo?a===x0||a===b0||a===S0||a===E0||a===cg?this.sorting=a:a===jh||a===ug||a===Zs||a===eh?this.direction=a:a===Ad||a===$d||a===Bu||a===_u?this.arrangement=a:(a===ff||a===w0)&&(this.nodeDiameterFormula=a):jo.prototype.qb.call(this,a)},Xo.prototype.createNetwork=function(){return new dg(this)},Xo.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 Gn;y.addAll(a.iterator),a=new Gn;var E=new Gn,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===_u&&oe===ff?re=Bu:re===_u&&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===_u&&a.reverse(),x=new Gn,x.addAll(a),x.addAll(E)):(this.arrangement===_u&&E.reverse(),x=new Gn,x.addAll(E),x.addAll(a))}oe=x.length;for(var Pe=z=b=0;Pe<x.length;Pe++){var Re=ye+Ne*z*(this.direction===Zs?1:-1)/oe,We=x.M(Pe).diameter;isNaN(We)&&(We=th(x.M(Pe),Re)),360>Ne&&(Pe===0||Pe===x.length-1)&&(We/=2),b+=We,z++}if(isNaN(ce)||re===_u){if(isNaN(y)&&(y=6),re!==Bu&&re!==_u){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!==_u?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===Bu||re===_u)&&(y=(Pe-b)/(360<=Ne?oe:oe-1));else if(re===Bu||re===_u)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++)Re=x.M(b),We=x.M(b===oe-1?0:b+1),isNaN(Re.diameter)&&th(Re,0),isNaN(We.diameter)&&th(We,0),ee=Math.max(ee,(Re.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!==_u)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 Bu: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 Bu:Mp(this,a,ce,eh);break;case Ad:Np(this,a,fe/2,ce,eh)}switch(x){case $d:Pp(this,E,ce+ee,Zs);break;case Bu:Mp(this,E,ce+ee,Zs);break;case Ad:Np(this,E,fe/2,ce+ee,Zs)}}else{switch(x){case $d:Pp(this,E,ce,eh);break;case Bu:Mp(this,E,ce,eh);break;case Ad:Np(this,E,fe/2,ce,eh)}switch(x){case $d:Pp(this,a,ce+ee,Zs);break;case Bu:Mp(this,a,ce+ee,Zs);break;case Ad:Np(this,a,fe/2,ce+ee,Zs)}}}else switch(x){case $d:Pp(this,y,ce,this.direction);break;case Bu:Mp(this,y,ce,this.direction);break;case Ad:Np(this,y,fe,ce,this.direction);break;case _u:_S(this,y,fe,ce,this.direction)}else _S(this,y,fe,ce-fe/2,Zs)}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===Zs?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===Zs?E:-E,(ce.diameter+fe.diameter)/2+ee),E+=x===Zs?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===Zs?E:-E,ee),E+=x===Zs?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===Zs?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=lt.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(lt.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===Zs?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=lt.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(lt.free(fe),a.mj++,!(23<a.mj)){if(oe=Math.atan2(ce,oe),oe=b===Zs?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===Zs)){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===Zs)){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}Xo.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Xo.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 lt(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))},Xo.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}}Xo.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:pt("Invalid sorting type.")}return a};function GE(a){for(var y=[],E=0;E<a.length;E++)y.push(0);E=new Gn;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}Xo.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 Gn;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=[],Re=0;Re<E.length;Re++)0>y[E[Re]].indexOf(E[Re===E.length-1?0:Re+1])&&Pe.push(Re===E.length-1?0:Re+1);if(Pe.length===0)for(Re=0;Re<E.length;Re++)Pe.push(Re);for(Re=0;Re<Pe.length;Re++){for(var We=Pe[Re],ht=y[ce],it=0,vt=0;vt<ee.length;vt++){var St=z[ee[vt]],wt=z[re[vt]];if(St<wt){var Ot=St;St=wt}else Ot=wt;if(Ot<We&&We<=St)for(wt=0;wt<ht.length;wt++){var $t=ht[wt];0>E.indexOf($t)||Ot<z[$t]&&z[$t]<St||Ot===z[$t]||St===z[$t]||it++}else for(wt=0;wt<ht.length;wt++)$t=ht[wt],0>E.indexOf($t)||Ot<z[$t]&&z[$t]<St&&Ot!==z[$t]&&St!==z[$t]&&it++}for(ht=it,vt=it=0;vt<y[ce].length;vt++)Ot=E.indexOf(y[ce][vt]),0<=Ot&&(Ot=Math.abs(We-(Ot>=We?Ot+1:Ot)),it+=Ot<E.length+1-Ot?Ot:E.length+1-Ot);for(vt=0;vt<ee.length;vt++)Ot=z[ee[vt]],St=z[re[vt]],Ot>=We&&Ot++,St>=We&&St++,Ot>St&&(wt=St,St=Ot,Ot=wt),St-Ot<(E.length+2)/2==(Ot<We&&We<=St)&&it++;(ht<fe||ht===fe&&it<ye)&&(fe=ht,ye=it,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||(Re=Pe>fe?Pe-fe:fe-Pe,ye+=Pe<fe!=Re>ee-Re?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},Rt.Object.defineProperties(Xo.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!==_u&&a!==Bu&&a!==$d&&a!==Ad||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Zs&&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 Bu=new wn(Xo,"ConstantSpacing",0),$d=new wn(Xo,"ConstantDistance",1),Ad=new wn(Xo,"ConstantAngle",2),_u=new wn(Xo,"Packed",3),Zs=new wn(Xo,"Clockwise",4),eh=new wn(Xo,"Counterclockwise",5),jh=new wn(Xo,"BidirectionalLeft",6),ug=new wn(Xo,"BidirectionalRight",7),S0=new wn(Xo,"Forwards",8),E0=new wn(Xo,"Reverse",9),x0=new wn(Xo,"Ascending",10),b0=new wn(Xo,"Descending",11),cg=new wn(Xo,"Optimized",12),w0=new wn(Xo,"Pythagorean",13),ff=new wn(Xo,"Circular",14);Xo.className="CircularLayout",Xo.ConstantSpacing=Bu,Xo.ConstantDistance=$d,Xo.ConstantAngle=Ad,Xo.Packed=_u,Xo.Clockwise=Zs,Xo.Counterclockwise=eh,Xo.BidirectionalLeft=jh,Xo.BidirectionalRight=ug,Xo.Forwards=S0,Xo.Reverse=E0,Xo.Ascending=x0,Xo.Descending=b0,Xo.Optimized=cg,Xo.Pythagorean=w0,Xo.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){Eo.call(this,a)}Wt(dg,Eo),dg.prototype.createVertex=function(){return new Ip(this)},dg.prototype.createEdge=function(){return new T0(this)},dg.className="CircularNetwork";function Ip(a){Ma.call(this,a),this.u=this.Si=NaN}Wt(Ip,Ma);function th(a,y){var E=a.network;if(E===null)return NaN;if(E=E.layout,E===null)return NaN;if(E.arrangement===_u)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}Rt.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){Nl.call(this,a)}Wt(T0,Nl),T0.className="CircularEdge";function us(a){jo.call(this),this.ah=null,this.An=0,this.$d=new ri(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)}Wt(us,jo),us.prototype.cloneProtected=function(a){jo.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},us.prototype.createNetwork=function(){return new gf(this)},us.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=wi(),fe=0;fe<re+y.vertexes.count+2;fe++)ce[fe]=null;re=0,ee.reset();for(var ye=gn.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 lt(ye.x+ye.width+x.width,ye.y),ce[1]=new lt(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],Re=new lt(Pe.x+ye.width+x.width,Pe.y),We=new lt(Pe.x,Pe.y+ye.height+x.height);for(Ne+1<re&&ce.splice(Ne+1,0,null),ce[Ne]=Re,ce[Ne+1]=We,re++,Ne=Pe.x-ye.x,Pe=Pe.y-ye.y,fe=fe.vertexes.iterator;fe.next();)Re=fe.value,Re.centerX+=Ne,Re.centerY+=Pe}for(gn.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 lt(Ne.x+Ne.width+x.width,Ne.y),ce[1]=new lt(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 lt(ye.x+Ne.width+x.width,ye.y),Ne=new lt(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(ai(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},us.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},us.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 Gn),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 Gn,b.Hj=re),re.add(ee),b.Vd--,b.sh+=ee.sh):ee.network===x&&(re=ee.Hj,re===null&&(re=new Gn,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,jt.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=jt.sqrt((re+Pe+ce*ce*4/(ee*ee))/Pe),ee=(re-1)*fe/2,re=(re-1)*ye/2,b.bounds=new gn(z-Ne.x-ee,oe-Ne.y-re,fe+2*ee,ye+2*re),b.focus=new lt(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 gn(x.centerX-z,x.centerY-ee,b.Ss,b.Qs),x.focus=new lt(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=jt.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,Re){return Pe===null||Re===null||Pe===Re?0:Re.width*Re.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=jt.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}us.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},us.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,jt.sqrt(E*E+a*a)):a+E<y?(x=x+b-ee,a=a+E-y,jt.sqrt(x*x+a*a)):ee-(x+b):x>ee+re?a>y+z?(E=x-ee-re,a=a-y-z,jt.sqrt(E*E+a*a)):a+E<y?(x=x-ee-re,a=a+E-y,jt.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++,KE(a)););a.ah=null}function KE(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,ht){return We===null||ht===null||We===ht?0:We.centerX-ht.centerX}):y.sort(function(We,ht){return We===null||ht===null||We===ht?0:We.centerY-ht.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 Re=WS(ee,Ne);1>Re?(x=a.randomNumberGenerator,x===null&&(a.randomNumberGenerator=x=new A0),Re=x.random(),re=x.random(),oe>ce?(x=Math.abs(Ne.bounds.right-ee.bounds.x),x=(1+x)*Re):oe<ce?(x=Math.abs(Ne.bounds.x-ee.bounds.right),x=-(1+x)*Re):(x=Math.max(Ne.width,ee.width),x=(1+x)*Re-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)/(Re*Re),x=(ce-oe)/Re*re,ce=(Pe-fe)/Re*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}us.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},us.prototype.moveFixedVertex=function(){},us.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},us.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Ca,y.toSpot=Ca)}},us.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var E=gn.alloc();this.computeBounds(this.network,E),y=this.arrangementOrigin,a=y.x-E.x,y=y.y-E.y,gn.free(E)}E=gn.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()}gn.free(E)},us.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},us.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},us.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},us.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},us.prototype.electricalFieldX=function(){return 0},us.prototype.electricalFieldY=function(){return 0},us.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},us.prototype.gravitationalFieldX=function(){return 0},us.prototype.gravitationalFieldY=function(){return 0},us.prototype.isFixed=function(a){return a.isFixed},Rt.Object.defineProperties(us.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"&&pt('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())}}}),us.className="ForceDirectedLayout";function ZS(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}ZS.className="ForceDirectedSubnet";function gf(a){Eo.call(this,a)}Wt(gf,Eo),gf.prototype.createVertex=function(){return new kp(this)},gf.prototype.createEdge=function(){return new Dp(this)},gf.className="ForceDirectedNetwork";function kp(a){Ma.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}Wt(kp,Ma),Rt.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){Nl.call(this,a),this.j=this.o=NaN}Wt(Dp,Nl),Rt.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 ro(a){jo.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 lt,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Wt(ro,jo),ro.prototype.cloneProtected=function(a){jo.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},ro.prototype.qb=function(a){a.classType===ro?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:pt("Unknown enum value: "+a):jo.prototype.qb.call(this,a)},ro.prototype.createNetwork=function(){return new fg(this)},ro.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 Re=b.focus;ce=z.focus;var We=x.rev?z.bounds:b.bounds;Pe=lt.alloc(),fe!==ye?We.w()&&ye.isVisible()?ye.actualBounds.w()?(Ed(ye,Ne,lr,Pe),Pe.x+=ye.actualBounds.x-We.x,Pe.y+=ye.actualBounds.y-We.y):(Ed(ye,Ne,lr,Pe),Pe.w()||Pe.assign(Re)):Pe.assign(Re):We.w()?(Ed(ye,Ne,lr,Pe),Pe.w()||Pe.assign(Re)):Pe.assign(Re),ye=x.rev?b.bounds:z.bounds,fe=lt.alloc(),ee!==oe?ye.w()&&oe.isVisible()?oe.actualBounds.w()?(Ed(oe,re,lr,fe),fe.x+=oe.actualBounds.x-ye.x,fe.y+=oe.actualBounds.y-ye.y):(Ed(oe,re,lr,fe),fe.w()||fe.assign(ce)):fe.assign(ce):ye.w()?(Ed(oe,re,lr,fe),fe.w()||fe.assign(ce)):fe.assign(ce),this.K===90||this.K===270?(ee=Math.round((Pe.x-Re.x)/this.kc),oe=Pe.x,re=Math.round((fe.x-ce.x)/this.kc),ce=fe.x):(ee=Math.round((Pe.y-Re.y)/this.kc),oe=Pe.y,re=Math.round((fe.y-ce.y)/this.kc),ce=fe.y),lt.free(Pe),lt.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 ht=We.fromPort,it=We.toPort;if(ht!==null&&it!==null){var vt=We.fromNode;if(Ne=We.toNode,vt!==null&&Ne!==null){var St=P0(this,!0),wt=P0(this,!1),Ot=this.setsPortSpots?St:We.computeSpot(!0,ht);Re=this.setsPortSpots?wt:We.computeSpot(!1,it);var $t=We.isOrthogonal;Ot.$c()&&Ot.Hf(wt)&&Re.$c()&&Re.Hf(St)?ye=0:(St=We.getLinkPoint(vt,ht,Ot,!0,$t,Ne,it,lt.alloc()),wt=We.getLinkDirection(vt,ht,St,Ot,!0,$t,Ne,it),lt.free(St),Ot.ys()||wt!==nE(this,x,!0)?this.setsPortSpots&&vt!==null&&vt.ports.count===1&&x.rev&&(ye+=1):ye+=1,Ot=We.getLinkPoint(Ne,it,Re,!1,$t,vt,ht,lt.alloc()),We=We.getLinkDirection(Ne,it,Ot,Re,!1,$t,vt,ht),lt.free(Ot),Re.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)&&(Re=a.createVertex(),Re.node=null,Re.Dj=1,Re.layer=Pe,Re.near=b,a.dh(Re),b=a.Zj(b,Re,x.link),b.valid=!1,b.rev=x.rev,b.portFromColOffset=ee,b.portToColOffset=0,b.portFromPos=oe,b.portToPos=0,b=Re),We=1,ye&&We--,Pe-fe>We&&0<Pe){for(x.valid=!1,Re=a.createVertex(),Re.node=null,Re.Dj=2,Re.layer=Pe-1,a.dh(Re),b=a.Zj(b,Re,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=Re,Pe--;Pe-fe>We&&0<Pe;)Re=a.createVertex(),Re.node=null,Re.Dj=3,Re.layer=Pe-1,a.dh(Re),b=a.Zj(b,Re,x.link),b.valid=!0,b.rev=x.rev,b.portFromColOffset=0,b.portToColOffset=0,b.portFromPos=0,b.portToPos=0,b=Re,Pe--;b=a.Zj(Re,z,x.link),b.valid=!ye,ye&&(Re.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},ro.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}ro.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},ro.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 al(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 ou(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 KS(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 Re=oe[Ne];if(Re.valid&&Re.fromVertex.layer!==y){var We=Re.fromVertex.index,ht=Re.portToPos;Re=Re.portFromPos,fe<ht&&(ye>We||ye===We&&Pe>Re)&&re++,ht<fe&&(We>ye||We===ye&&Re>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++)Re=oe[Ne],Re.valid&&Re.toVertex.layer!==y&&(We=Re.toVertex.index,ht=Re.portToPos,Re=Re.portFromPos,Pe<Re&&(ye>We||ye===We&&fe>ht)&&re++,Re<Pe&&(We>ye||We===ye&&ht>fe)&&re++)}for(z[ee*b+ee]=re,oe=ee+1;oe<b;oe++){var it=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++)Re=St[Ne],Re.valid&&Re.fromVertex.layer!==y&&(We=Re.fromVertex.index,Re=Re.portFromPos,(ye<We||ye===We&&Pe<Re)&&vt++,(We<ye||We===ye&&Re<Pe)&&it++)}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++)Re=St[Ne],Re.valid&&Re.toVertex.layer!==y&&(We=Re.toVertex.index,ht=Re.portToPos,(ye<We||ye===We&&fe<ht)&&vt++,(We<ye||We===ye&&ht<fe)&&it++)}z[ee*b+oe]=it,z[oe*b+ee]=vt}}return ih(a,y,x),z}ro.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var E=KS(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}ro.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 QS(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(Re,We){return Re-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)}}ro.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(;QE(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 QE(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++}ro.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 Re=Ne[Pe],We=Re.fromVertex;fe+=1,We.component!==1&&(z+=1,We=We.layer-ce.layer,Re=a.linkMinLength(Re),x=Math.min(x,We-Re))}for(Ne=ce.destinationEdgesArrayAccess,b=Ne.length,Pe=0;Pe<b;Pe++)Re=Ne[Pe].toVertex,--fe,Re.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++)Re=Ne[Pe].fromVertex,ce+=1,Re.component!==1?x+=1:fe=!0;for(Ne=ee.destinationEdgesArrayAccess,ye=Ne.length,Pe=0;Pe<ye;Pe++)Re=Ne[Pe],We=Re.toVertex,--ce,We.component!==1&&(--x,We=ee.layer-We.layer,Re=a.linkMinLength(Re),b=Math.min(b,We-Re));(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}ro.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))}ro.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=al(this),E,x;for(E=0;E<this.bj;E++){for(x=0;x<=this.Ia;x++)N0(this,x,1),Su(this,x,1);var b=this.countCrossings();for(b<a&&(a=b,y=al(this)),x=this.Ia;0<=x;x--)N0(this,x,-1),Su(this,x,-1);b=this.countCrossings(),b<a&&(a=b,y=al(this))}for(ou(this,y),E=0;E<this.bj;E++){for(x=0;x<=this.Ia;x++)N0(this,x,0),Su(this,x,0);for(b=this.countCrossings(),b<a&&(a=b,y=al(this)),x=this.Ia;0<=x;x--)N0(this,x,0),Su(this,x,0);b=this.countCrossings(),b<a&&(a=b,y=al(this))}ou(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=Su(this,x,-1)||z;for(b=this.countCrossings(),b>=a?ou(this,y):(a=b,y=al(this)),z=!0;z;)for(z=!1,x=E;x>=ee;x--)z=Su(this,x,1)||z;for(b=this.countCrossings(),b>=a?ou(this,y):(a=b,y=al(this)),z=!0;z;)for(z=!1,x=ee;x<=E;x++)z=Su(this,x,1)||z;for(b>=a?ou(this,y):(a=b,y=al(this)),z=!0;z;)for(z=!1,x=ee;x<=E;x++)z=Su(this,x,-1)||z;for(b>=a?ou(this,y):(a=b,y=al(this)),z=!0;z;)for(z=!1,x=E;x>=ee;x--)z=Su(this,x,0)||z;for(b>=a?ou(this,y):(a=b,y=al(this)),z=!0;z;)for(z=!1,x=ee;x<=E;x++)z=Su(this,x,0)||z;b>=a?ou(this,y):(a=b,y=al(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=Su(this,x,-1)||z;for(b=this.countCrossings(),b>=a?ou(this,y):(a=b,y=al(this)),z=!0;z;)for(z=!1,x=E;x>=ee;x--)z=Su(this,x,1)||z;for(b=this.countCrossings(),b>=a?ou(this,y):(a=b,y=al(this)),z=!0;z;)for(z=!1,x=ee;x<=E;x++)z=Su(this,x,1)||z;for(b>=a?ou(this,y):(a=b,y=al(this)),z=!0;z;)for(z=!1,x=ee;x<=E;x++)z=Su(this,x,-1)||z;for(b>=a?ou(this,y):(a=b,y=al(this)),z=!0;z;)for(z=!1,x=E;x>=ee;x--)z=Su(this,x,0)||z;for(b>=a?ou(this,y):(a=b,y=al(this)),z=!0;z;)for(z=!1,x=ee;x<=E;x++)z=Su(this,x,0)||z;b>=a?ou(this,y):(a=b,y=al(this))}}ou(this,y)};function N0(a,y,E){var x=nh(a,y),b=a.tc[y],z=QS(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 Su(a,y,E){var x=nh(a,y),b=a.tc[y];E=KS(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,Re=x[z].column,We=x[z+1].column,ht=a.nodeMinColumnSpace(x[z],!0),it=a.nodeMinColumnSpace(x[z],!1),vt=a.nodeMinColumnSpace(x[z+1],!0),St=a.nodeMinColumnSpace(x[z+1],!1);ht=Re-ht+vt,it=We-it+St;var wt=x[z].sourceEdges.iterator;for(wt.reset();wt.next();)if(vt=wt.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(wt=x[z].destinationEdges.iterator,wt.reset();wt.next();)if(vt=wt.value,St=vt.toVertex,vt.valid&&St.layer===y){for(vt=0;x[vt]!==St;)vt++;vt===z+1&&(Pe+=1)}for(wt=x[z+1].sourceEdges.iterator,wt.reset();wt.next();)if(vt=wt.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(wt=x[z+1].destinationEdges.iterator,wt.reset();wt.next();)if(vt=wt.value,St=vt.toVertex,vt.valid&&St.layer===y){for(vt=0;x[vt]!==St;)vt++;vt===z&&(Ne+=1)}vt=St=0,wt=ee[x[z].index];var Ot=re[x[z].index],$t=ee[x[z+1].index],li=re[x[z+1].index];wt!==-1&&(St+=Math.abs(wt-Re),vt+=Math.abs(wt-it)),Ot!==-1&&(St+=Math.abs(Ot-Re),vt+=Math.abs(Ot-it)),$t!==-1&&(St+=Math.abs($t-We),vt+=Math.abs($t-ht)),li!==-1&&(St+=Math.abs(li-We),vt+=Math.abs(li-ht)),(Pe<Ne-.5||Pe===Ne&&ye<fe-.5||Pe===Ne&&ye===fe&&vt<St-.5)&&(ce=oe=!0,x[z].column=it,x[z+1].column=ht,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}ro.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 Re=Ne=0,We=0;if(0>=E)for(var ht=b[x].sourceEdges.iterator;ht.next();){var it=ht.value,vt=it.fromVertex;if(it.valid&&vt.layer!==y){var St=vy(it),wt=it.portFromColOffset;it=it.portToColOffset,vt=vt.column,Ne+=(Math.abs(fe+it-(vt+wt))+1)*St,Re+=(Math.abs(Pe+it-(vt+wt))+1)*St,We+=(Math.abs(ye+it-(vt+wt))+1)*St}}if(0<=E)for(ht=b[x].destinationEdges.iterator;ht.next();)it=ht.value,vt=it.toVertex,it.valid&&vt.layer!==y&&(St=vy(it),wt=it.portFromColOffset,it=it.portToColOffset,vt=vt.column,Ne+=(Math.abs(fe+wt-(vt+it))+1)*St,Re+=(Math.abs(Pe+wt-(vt+it))+1)*St,We+=(Math.abs(ye+wt-(vt+it))+1)*St);it=wt=St=0,ht=ee[b[x].index],vt=re[b[x].index],ht!==-1&&(St+=Math.abs(ht-fe),wt+=Math.abs(ht-Pe),it+=Math.abs(ht-ye)),vt!==-1&&(St+=Math.abs(vt-fe),wt+=Math.abs(vt-Pe),it+=Math.abs(vt-ye)),Re<Ne||Re===Ne&&wt<St?(ce=oe=!0,b[x].column=Pe):(We<Ne||We===Ne&&it<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=QS(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=al(a),z=C0(a);for(x=z+1;z<x;){x=z,aE(a,E,1);var ee=C0(a);ee>z?ou(a,b):ee<z&&(z=ee,b=al(a))}}if(0>y)for(E=a.Ra;0<=E;E--)for(b=al(a),z=C0(a),x=z+1;z<x;)x=z,aE(a,E,-1),ee=C0(a),ee>z?ou(a,b):ee<z&&(z=ee,b=al(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=wi(),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 Bn,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=Ii(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)),ai(y),a.u(z,ee,re,oe),a.network.vertexes.each(function(Pe){var Re=wi();ce&&Re.push(z.get(Pe)),fe&&Re.push(ee.get(Pe)),ye&&Re.push(re.get(Pe)),Ne&&Re.push(oe.get(Pe)),Re.sort(function(ht,it){return ht-it});var We=Re.length;We=(Re[Math.floor((We-1)/2)]+Re[Math.ceil((We-1)/2)])/2,ai(Re),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=Ii(ce.sourceEdgesArrayAccess),Pe=Ne.next();!Pe.done;Pe=Ne.next())Pe=Pe.value,Pe.valid&&ye.push(Pe);ce.bo=ye}for(ce=Ii(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}}}ro.prototype.verticalAlignment=function(a,y,E){tx(a),a=Ii(a);for(var x=a.next();!x.done;x=a.next()){var b=-1;x=Ii(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=Ii(y),ee=z.next();!ee.done;ee=z.next()){var re=Ii(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=Ii(y),re=z.next();!re.done;re=z.next()){re=Ii(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 Re=O0(fe,ye),We=Re.portFromPos,ht=Re.portToPos;Re.link!==null&&(fe.node&&fe.node!==Re.link.fromNode&&(We=ee?fe.focusX:fe.focusY),ye.node&&ye.node!==Re.link.toNode&&(ht=ee?ye.focusX:ye.focusY))}else Re=O0(ye,fe),We=Re.portToPos,ht=Re.portFromPos,Re.link!==null&&(fe.node&&fe.node!==Re.link.toNode&&(We=ee?fe.focusX:fe.focusY),ye.node&&ye.node!==Re.link.fromNode&&(ht=ee?ye.focusX:ye.focusY));Ne=x?fe.qg+(Ne-We)-(Pe-ht):fe.qg+We-ht,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=Ii(y),ee=E.next();!ee.done;ee=E.next())for(z=Ii(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 Ti,y=Ii(y),ee=y.next();!ee.done;ee=y.next())for(E=Ii(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&&pt("Could not determine previous vertex in layer"),y[E][a-1]}ro.prototype.u=function(a){for(var y=[],E=0;E<arguments.length;++E)y[E]=arguments[E];E=-1;for(var x=wi(),b=wi(),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)));ai(x),ai(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}ro.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?rs:Ya:a.K===90?y?Ya:rs:a.K===180?y?ds:_a:y?_a:ds}ro.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 lt(E&&x?0:z,E&&!x?0:y),a.reset();a.next();)E=a.value,E.x+=z,E.y+=y,E.commit()},ro.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 gn(0,0,E,Math.abs(this.Ta[0]))):y.push(new gn(0,this.Ta[x-1],E,Math.abs(this.Ta[x-1]-this.Ta[x]))):this.K===90?x===0?y.push(new gn(0,this.Ta[0],E,Math.abs(this.Ta[0]-a))):y.push(new gn(0,this.Ta[x],E,Math.abs(this.Ta[x-1]-this.Ta[x]))):this.K===180?x===0?y.push(new gn(0,0,Math.abs(this.Ta[0]),E)):y.push(new gn(this.Ta[x-1],0,Math.abs(this.Ta[x-1]-this.Ta[x]),E)):x===0?y.push(new gn(this.Ta[0],0,Math.abs(this.Ta[0]-a),E)):y.push(new gn(this.Ta[x],0,Math.abs(this.Ta[x-1]-this.Ta[x]),E));this.commitLayers(y,this.Rf)},ro.prototype.commitLayers=function(){},ro.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===Gl&&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===Ci&&(x=!0),re!==null&&oe===Ci&&(E=!0),(x||E)&&(oe=null,x&&(oe=y.getLinkPointFromPoint(b,ee,ee.ga(lr),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(lr),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,Re=this.ie,We=y.firstPickIndex+1;if(y.isOrthogonal){Pe=!0;var ht=y.pointsCount;4<ht&&y.points.removeRange(2,ht-3)}else if(y.curve===Gl)Ne=!0,ht=y.pointsCount,4<ht&&y.points.removeRange(2,ht-3),ht===4&&(We=2);else{ht=y.pointsCount;var it=ce===Ci,vt=oe===Ci;2<ht&&it&&vt?y.points.removeRange(1,ht-2):3<ht&&it&&!vt?y.points.removeRange(1,ht-3):3<ht&&!it&&vt?y.points.removeRange(2,ht-2):4<ht&&!it&&!vt&&y.points.removeRange(2,ht-3)}if(E.rev){for(;ye!==null&&fe!==ye;){var St=ht=null;for(it=ye.sourceEdges.iterator;it.next()&&(vt=it.value,vt.link!==E.link||(ht=vt.fromVertex,St=vt.toVertex,ht.node!==null)););if(ht===null)break;if(ht!==fe){it=y.i(We-1).x,vt=y.i(We-1).y;var wt=ht.centerX,Ot=ht.centerY;if(Pe)this.K===180||this.K===0?We===y.firstPickIndex+1?(y.m(We++,it,vt),y.m(We++,it,Ot)):(St!==null?St.centerY:vt)!==Ot&&(St=this.Ta[ht.layer-1]+this.Rf.x,y.m(We++,St,vt),y.m(We++,St,Ot)):We===y.firstPickIndex+1?(y.m(We++,it,vt),y.m(We++,wt,vt)):(St!==null?St.centerX:it)!==wt&&(St=this.Ta[ht.layer-1]+this.Rf.y,y.m(We++,it,St),y.m(We++,wt,St));else if(We===y.firstPickIndex+1){St=Math.max(10,this.he[ye.layer]);var $t=Math.max(10,this.Ld[ye.layer]);if(Ne)this.K===180?wt<=ye.bounds.x?(ye=ye.bounds.x,y.m(We++,ye-St,Ot),y.m(We++,ye,Ot),y.m(We++,ye+$t,Ot)):(y.m(We++,wt-St,Ot),y.m(We++,wt,Ot),y.m(We++,wt+$t,Ot)):this.K===90?Ot>=ye.bounds.bottom?(ye=ye.bounds.y+ye.bounds.height,y.m(We++,wt,ye+$t),y.m(We++,wt,ye),y.m(We++,wt,ye-St)):(y.m(We++,wt,Ot+$t),y.m(We++,wt,Ot),y.m(We++,wt,Ot-St)):this.K===270?Ot<=ye.bounds.y?(ye=ye.bounds.y,y.m(We++,wt,ye-St),y.m(We++,wt,ye),y.m(We++,wt,ye+$t)):(y.m(We++,wt,Ot-St),y.m(We++,wt,Ot),y.m(We++,wt,Ot+$t)):this.K===0&&(wt>=ye.bounds.right?(ye=ye.bounds.x+ye.bounds.width,y.m(We++,ye+$t,Ot),y.m(We++,ye,Ot),y.m(We++,ye-St,Ot)):(y.m(We++,wt+$t,Ot),y.m(We++,wt,Ot),y.m(We++,wt-St,Ot)));else{y.m(We++,it,vt);var li=0;this.K===180||this.K===0?((this.K===180?wt>=ye.bounds.right:wt<=ye.bounds.x)&&(li=(this.K===0?-St:$t)/2),y.m(We++,it+li,Ot)):((this.K===270?Ot>=ye.bounds.bottom:Ot<=ye.bounds.y)&&(li=(this.K===90?-St:$t)/2),y.m(We++,wt,vt+li)),y.m(We++,wt,Ot)}}else St=Math.max(10,this.he[ht.layer]),$t=Math.max(10,this.Ld[ht.layer]),Ne?this.K===180?(y.m(We++,wt-St-Re,Ot),y.m(We++,Math.min(wt-St+Re/2,wt),Ot),y.m(We++,wt,Ot),y.m(We++,wt,Ot),y.m(We++,Math.max(wt+$t-Re/2,wt),Ot),y.m(We++,wt+$t+Re,Ot)):this.K===90?(y.m(We++,wt,Ot+$t+Re),y.m(We++,wt,Math.max(Ot+$t-Re/2,Ot)),y.m(We++,wt,Ot),y.m(We++,wt,Ot),y.m(We++,wt,Math.min(Ot-St+Re/2,Ot)),y.m(We++,wt,Ot-St-Re)):this.K===270?(y.m(We++,wt,Ot-St-Re),y.m(We++,wt,Math.min(Ot-St+Re/2,Ot)),y.m(We++,wt,Ot),y.m(We++,wt,Ot),y.m(We++,wt,Math.max(Ot+$t-Re/2,Ot)),y.m(We++,wt,Ot+$t+Re)):(y.m(We++,wt+$t+Re,Ot),y.m(We++,Math.max(wt+$t-Re/2,wt),Ot),y.m(We++,wt,Ot),y.m(We++,wt,Ot),y.m(We++,Math.min(wt-St+Re/2,wt),Ot),y.m(We++,wt-St-Re,Ot)):y.m(We++,wt,Ot)}ye=ht}(re===null||ce!==Ci||Pe)&&(it=y.i(We-1).x,vt=y.i(We-1).y,wt=y.i(We).x,Ot=y.i(We).y,Pe?(Re=this.Ld[fe.layer],this.K===180||this.K===0?(Pe=vt,Pe>=fe.bounds.y&&Pe<=fe.bounds.bottom&&(this.K===180?wt>=fe.bounds.x:wt<=fe.bounds.right)&&(ye=fe.centerX+(this.K===180?-Re:Re),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++,wt,Pe)):(Pe=it,Pe>=fe.bounds.x&&Pe<=fe.bounds.right&&(this.K===270?Ot>=fe.bounds.y:Ot<=fe.bounds.bottom)&&(ye=fe.centerY+(this.K===270?-Re:Re),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++,it,ye),y.m(We++,Pe,ye)),y.m(We++,Pe,Ot)),y.m(We++,wt,Ot)):Ne?(St=Math.max(10,this.he[fe.layer]),$t=Math.max(10,this.Ld[fe.layer]),this.K===180&&wt>=fe.bounds.x?(ye=fe.bounds.x+fe.bounds.width,y.L(We-2,ye,vt),y.L(We-1,ye+$t,vt)):this.K===90&&Ot<=fe.bounds.bottom?(ye=fe.bounds.y,y.L(We-2,it,ye),y.L(We-1,it,ye-St)):this.K===270&&Ot>=fe.bounds.y?(ye=fe.bounds.y+fe.bounds.height,y.L(We-2,it,ye),y.L(We-1,it,ye+$t)):this.K===0&&wt<=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]),$t=Math.max(10,this.Ld[fe.layer]),Pe=0,this.K===180||this.K===0?((this.K===180?wt<=fe.bounds.x:wt>=fe.bounds.right)&&(Pe=(this.K===0?$t:-St)/2),y.m(We++,wt+Pe,vt)):((this.K===270?Ot<=fe.bounds.y:Ot>=fe.bounds.bottom)&&(Pe=(this.K===90?$t:-St)/2),y.m(We++,it,Ot+Pe)),y.m(We++,wt,Ot)))}else{for(;fe!==null&&fe!==ye;){for(St=ht=null,fe=fe.destinationEdges.iterator;fe.next()&&(it=fe.value,it.link!==E.link||(ht=it.toVertex,St=it.fromVertex,St.node!==null&&(St=null),ht.node!==null)););if(ht===null)break;ht!==ye&&(it=y.i(We-1).x,vt=y.i(We-1).y,wt=ht.centerX,Ot=ht.centerY,Pe?this.K===180||this.K===0?(St!==null?St.centerY:vt)!==Ot&&(St=this.Ta[ht.layer]+this.Rf.x,We===y.firstPickIndex+1&&(St=this.K===0?Math.max(St,it):Math.min(St,it)),y.m(We++,St,vt),y.m(We++,St,Ot)):(St!==null?St.centerX:it)!==wt&&(St=this.Ta[ht.layer]+this.Rf.y,We===y.firstPickIndex+1&&(St=this.K===90?Math.max(St,vt):Math.min(St,vt)),y.m(We++,it,St),y.m(We++,wt,St)):(St=Math.max(10,this.he[ht.layer]),$t=Math.max(10,this.Ld[ht.layer]),Ne?this.K===180?(y.m(We++,wt+$t+Re,Ot),y.m(We++,Math.max(wt+$t-Re/2,wt),Ot),y.m(We++,wt,Ot),y.m(We++,wt,Ot),y.m(We++,Math.min(wt-St+Re/2,wt),Ot),y.m(We++,wt-St-Re,Ot)):this.K===90?(y.m(We++,wt,Ot-St-Re),y.m(We++,wt,Math.min(Ot-St+Re/2,Ot)),y.m(We++,wt,Ot),y.m(We++,wt,Ot),y.m(We++,wt,Math.max(Ot+$t-Re/2,Ot)),y.m(We++,wt,Ot+$t+Re)):this.K===270?(y.m(We++,wt,Ot+$t+Re),y.m(We++,wt,Math.max(Ot+$t-Re/2,Ot)),y.m(We++,wt,Ot),y.m(We++,wt,Ot),y.m(We++,wt,Math.min(Ot-St+Re/2,Ot)),y.m(We++,wt,Ot-St-Re)):(y.m(We++,wt-St-Re,Ot),y.m(We++,Math.min(wt-St+Re/2,wt),Ot),y.m(We++,wt,Ot),y.m(We++,wt,Ot),y.m(We++,Math.max(wt+$t-Re/2,wt),Ot),y.m(We++,wt+$t+Re,Ot)):this.K===180?(y.m(We++,wt+$t,Ot),y.m(We++,wt-St,Ot)):this.K===90?(y.m(We++,wt,Ot-St),y.m(We++,wt,Ot+$t)):this.K===270?(y.m(We++,wt,Ot+$t),y.m(We++,wt,Ot-St)):(y.m(We++,wt-St,Ot),y.m(We++,wt+$t,Ot)))),fe=ht}Pe&&(it=y.i(We-1).x,vt=y.i(We-1).y,wt=y.i(We).x,Ot=y.i(We).y,this.K===180||this.K===0?vt!==Ot&&(St=this.K===0?Math.min(Math.max((wt+it)/2,this.Ta[ye.layer]+this.Rf.x),wt):Math.max(Math.min((wt+it)/2,this.Ta[ye.layer]+this.Rf.x),wt),y.m(We++,St,vt),y.m(We++,St,Ot)):it!==wt&&(St=this.K===90?Math.min(Math.max((Ot+vt)/2,this.Ta[ye.layer]+this.Rf.y),Ot):Math.max(Math.min((Ot+vt)/2,this.Ta[ye.layer]+this.Rf.y),Ot),y.m(We++,it,St),y.m(We++,wt,St)))}x!==null&&Ne&&4<=y.pointsCount&&(ee!==null&&(ee=ce===Ci?y.getLinkPointFromPoint(b,ee,ee.ga(lr),y.i(3),!0):y.i(0),ce===Ci&&(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===Ci?y.getLinkPointFromPoint(z,re,re.ga(lr),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),oe===Ci&&(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()},ro.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Gn,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 Re=this.linkSpacing*(fe-(ce-1)/2);y++,Pe.uh(),Pe.L(Ne.index,z.x,z.y+Re),Pe.L(Ne.index+1,ee.x,ee.y+Re),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),Re=this.linkSpacing*(fe-(ce-1)/2),y++,Pe.uh(),Pe.L(Ne.index,z.x+Re,z.y),Pe.L(Ne.index+1,ee.x+Re,ee.y),Pe.zf()}z=b}a=x}}}},ke=ro.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)&&pt("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}Rt.Object.defineProperties(ro.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()):pt("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 wn(ro,"CycleDepthFirst",0),by=new wn(ro,"CycleGreedy",1),Rp=new wn(ro,"CycleFromLayers",2),I0=new wn(ro,"LayerOptimalLinkLength",0),wy=new wn(ro,"LayerLongestPathSink",1),Ty=new wn(ro,"LayerLongestPathSource",2),k0=new wn(ro,"InitDepthFirstOut",0),Ay=new wn(ro,"InitDepthFirstIn",1),Cy=new wn(ro,"InitNaive",2),Ny=new wn(ro,"AggressiveNone",0),D0=new wn(ro,"AggressiveLess",1),My=new wn(ro,"AggressiveMore",2),ix=8;ro.className="LayeredDigraphLayout",ro.CycleDepthFirst=L0,ro.CycleGreedy=by,ro.CycleFromLayers=Rp,ro.LayerOptimalLinkLength=I0,ro.LayerLongestPathSink=wy,ro.LayerLongestPathSource=Ty,ro.InitDepthFirstOut=k0,ro.InitDepthFirstIn=Ay,ro.InitNaive=Cy,ro.AggressiveNone=Ny,ro.AggressiveLess=D0,ro.AggressiveMore=My,ro.PackNone=0,ro.PackExpand=1,ro.PackStraighten=2,ro.PackMedian=4,ro.PackAll=15,ro.AlignNone=0,ro.AlignUpperLeft=1,ro.AlignUpperRight=2,ro.AlignLowerLeft=4,ro.AlignLowerRight=8,ro.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){Eo.call(this,a)}Wt(fg,Eo),fg.prototype.createVertex=function(){return new au(this)},fg.prototype.createEdge=function(){return new Fp(this)},fg.className="LayeredDigraphNetwork";function au(a){Ma.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}Wt(au,Ma);function uE(a,y){return a.index-y.index}function O0(a,y){if(!a.$n){for(var E=[],x=Ii(a.destinationEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&E.push(b);a.$n=E}for(a=Ii(a.$n),E=a.next();!E.done;E=a.next())if(E=E.value,E.toVertex===y)return E;pt("Unable to find destination edge to given vertex")}function Py(a){if(!a.co){for(var y=[],E=Ii(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=Ii(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}au.prototype.Cl=function(a){Ma.prototype.Cl.call(this,a),this.bo=this.co=null},au.prototype.Kl=function(a){Ma.prototype.Kl.call(this,a),this.bo=this.co=null},au.prototype.zl=function(a){Ma.prototype.zl.call(this,a),this.$n=this.ao=null},au.prototype.Jl=function(a){Ma.prototype.Jl.call(this,a),this.$n=this.ao=null},Rt.Object.defineProperties(au.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)}}}),au.prototype.deleteDestinationEdge=au.prototype.Jl,au.prototype.addDestinationEdge=au.prototype.zl,au.prototype.deleteSourceEdge=au.prototype.Kl,au.prototype.addSourceEdge=au.prototype.Cl,au.className="LayeredDigraphVertex";function Fp(a){Nl.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Wt(Fp,Nl),Rt.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 Cr(a){jo.call(this),this.Ub=new Bn,this.Wn=_0,this.ud=Bc,this.vo=z0,this.Bq=zy,this.$v=[],this.td=!0,this.Rb=U0,this.$d=new ri(10,10).freeze();var y=new yf(this);this.W=new Eu(y),this.Y=new Eu(y),this.ru=[],a&&Object.assign(this,a)}Wt(Cr,jo),Cr.prototype.cloneProtected=function(a){jo.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)},Cr.prototype.qb=function(a){a.classType===Cr?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:pt("Unknown enum value: "+a):jo.prototype.qb.call(this,a)},Cr.prototype.createNetwork=function(){return new yf(this)},Cr.prototype.makeNetwork=function(a){function y(x){if(x instanceof di)return!x.isLinkLabel&&x.category!=="Comment";if(x instanceof qn){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 tn?(E.lg(a.nodes,!0,y),E.lg(a.links,!0,y)):a instanceof ir?E.lg(a.memberParts,!1,y):E.lg(a.iterator,!1,y),E},Cr.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 tn&&(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 Bn,y=this.Ub.iterator;y.next();){var E=y.value;E instanceof di?(E=this.network.ki(E),E!==null&&a.add(E)):E instanceof Eu&&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 Eu&&hE(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Eu&&fE(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Eu&&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 Eu&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new Bn,this.isValidLayout=!0};function ox(a){var y=new Bn;for(a=a.iterator;a.next();){var E=a.value;E.initialized||y.add(E)}return y}Cr.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:pt("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:pt("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 Gn,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 Gn,x=y.sourceVertexes;x.next();)b=x.value,dE(a,y,b)&&E.add(b);0<E.count&&(y.children=E.Fa())}break;default:pt("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}Cr.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}}Cr.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])}}Cr.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])}}Cr.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:pt("Unhandled sorting value "+a.sorting.toString())}},Cr.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Cr.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=gn.allocAt(0,0,a.bounds.width+z,a.bounds.height+ee),a.bounds=b,gn.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}Cr.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=lt.alloc(),Ne=0;Ne<fe;Ne++){var Pe=ce[Ne],Re=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-Re.width,a.bounds.y+oe),Pe.move(ye),Pe=Pe.Sd();Pe.next();){var We=Pe.value;We.fromSpot=ds,We.toSpot=_a}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=_a,We.toSpot=ds;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=_a,We.toSpot=ds;else for(ye.h(a.bounds.x+a.commentMargin-Re.width,a.bounds.y+oe),Pe.move(ye),Pe=Pe.Sd();Pe.next();)We=Pe.value,We.fromSpot=ds,We.toSpot=_a;oe=0<=a.commentSpacing?oe+(Re.height+a.commentSpacing):oe+(a.commentSpacing-Re.height)}else{if(135<b&&!z||!E&&re)if(0<=a.commentMargin)for(ye.h(a.bounds.x+oe,a.bounds.y-a.commentMargin-Re.height),Pe.move(ye),Pe=Pe.Sd();Pe.next();)We=Pe.value,We.fromSpot=rs,We.toSpot=Ya;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=Ya,We.toSpot=rs;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=Ya,We.toSpot=rs;else for(ye.h(a.bounds.x+oe,a.bounds.y+a.commentMargin-Re.height),Pe.move(ye),Pe=Pe.Sd();Pe.next();)We=Pe.value,We.fromSpot=rs,We.toSpot=Ya;oe=0<=a.commentSpacing?oe+(Re.width+a.commentSpacing):oe+(a.commentSpacing-Re.width)}}if(lt.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)}},Cr.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=ju(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),Re=a.rowSpacing,We=0;(x||ce||a.hm||a.im&&a.maxGenerationCount===1)&&(We=Math.max(0,a.rowIndent)),x=a.width;var ht=a.height,it=0,vt=0,St=0,wt=null,Ot=null,$t=0,li=0,Ai=0,yi=0,Xn=0,On=0,nr=0,Xi=0;if(fe&&!Bp(oe)&&135<b&&ee.reverse(),Bp(oe))if(1<re)for(var Vr=0;Vr<re;Vr++)Vr%2===0&&Vr!==re-1&&(Xi=Math.max(Xi,y?ee[Vr].Da.width:ee[Vr].Da.height));else re===1&&(Xi=y?ee[0].Da.width:ee[0].Da.height);if(fe){switch(oe){case Cd:vt=135>b?mE(this,a,ee,Xi,it,vt):vE(this,a,ee,Xi,it,vt),Xi=vt.x,it=vt.width,vt=vt.height;break;case Nd:for(wt=0;wt<re;wt++)Ot=ee[wt],ye=Ot.Da,St=On===0?0:Re,y?(Ot.S.h(z-ye.width,yi+St),it=Math.max(it,ye.width),vt=Math.max(vt,yi+St+ye.height),yi+=St+ye.height):(Ot.S.h(Ai+St,z-ye.height),it=Math.max(it,Ai+St+ye.width),vt=Math.max(vt,ye.height),Ai+=St+ye.width),On++;break;case $c:for(wt=0;wt<re;wt++)Ot=ee[wt],z=Ot.Da,ye=On===0?0:Re,y?(Ot.S.h(Ne/2+a.focus.x,yi+ye),it=Math.max(it,z.width),vt=Math.max(vt,yi+ye+z.height),yi+=ye+z.height):(Ot.S.h(Ai+ye,Ne/2+a.focus.y),it=Math.max(it,Ai+ye+z.width),vt=Math.max(vt,z.height),Ai+=ye+z.width),On++}wt=fl(this,2),Ot=fl(this,2),y?(wt[0].h(0,0),wt[1].h(0,vt),Ot[0].h(it,0)):(wt[0].h(0,0),wt[1].h(it,0),Ot[0].h(0,vt)),Ot[1].h(it,vt)}else for(Vr=0;Vr<re;Vr++){var vo=ee[Vr],Fa=vo.Da;if(y){0<ye&&0<On&&Ai+Ne+Fa.width>ye&&(Ai<z&&zh(a,oe,z-Ai,0,nr,Vr-1),Xn++,On=0,nr=Vr,St=vt,Ai=0,yi=135<b?-vt-Re:vt+Re),F0(this,vo,0,yi);var Ua=0;if(On===0)wt=vo.Yo,Ot=vo.kp,$t=Fa.width,li=Fa.height,(wt===null||Ot===null||b!==ju(vo))&&(wt=fl(this,2),Ot=fl(this,2),wt[0].h(0,0),wt[1].h(0,li),Ot[0].h($t,0),Ot[1].h($t,li));else{var Ls=wi();li=yE(this,a,vo,wt,Ot,$t,li,Ls),Ua=li.x,wt=Ls[0],Ot=Ls[1],$t=li.width,li=li.height,ai(Ls),Ai<Fa.width&&0>Ua&&(pf(a,-Ua,0,nr,Vr-1),B0(wt,-Ua,0),B0(Ot,-Ua,0),Ua=0)}vo.S.h(Ua,yi),it=Math.max(it,$t),vt=Math.max(vt,St+(Xn===0?0:Re)+Fa.height),Ai=$t}else 0<ye&&0<On&&yi+Ne+Fa.height>ye&&(yi<z&&zh(a,oe,0,z-yi,nr,Vr-1),Xn++,On=0,nr=Vr,St=it,yi=0,Ai=135<b?-it-Re:it+Re),F0(this,vo,Ai,0),Ua=0,On===0?(wt=vo.Yo,Ot=vo.kp,$t=Fa.width,li=Fa.height,(wt===null||Ot===null||b!==ju(vo))&&(wt=fl(this,2),Ot=fl(this,2),wt[0].h(0,0),wt[1].h($t,0),Ot[0].h(0,li),Ot[1].h($t,li))):(Ls=wi(),li=yE(this,a,vo,wt,Ot,$t,li,Ls),Ua=li.x,wt=Ls[0],Ot=Ls[1],$t=li.width,li=li.height,ai(Ls),yi<Fa.height&&0>Ua&&(pf(a,0,-Ua,nr,Vr-1),B0(wt,0,-Ua),B0(Ot,0,-Ua),Ua=0)),vo.S.h(Ai,Ua),vt=Math.max(vt,li),it=Math.max(it,St+(Xn===0?0:Re)+Fa.width),yi=li;On++}switch(0<Xn&&(y?(vt+=Math.max(0,E),Ai<it&&zh(a,oe,it-Ai,0,nr,re-1),0<We&&(ce||pf(a,We,0,0,re-1),it+=We)):(it+=Math.max(0,E),yi<vt&&zh(a,oe,0,vt-yi,nr,re-1),0<We&&(ce||pf(a,0,We,0,re-1),vt+=We))),We=ce=0,oe){case pg:y?ce+=it/2-a.focus.x-Pe/2:We+=vt/2-a.focus.y-Pe/2;break;case vf:0<Xn?y?ce+=it/2-a.focus.x-Pe/2:We+=vt/2-a.focus.y-Pe/2:y?(Xi=ee[0].S.x+ee[0].la.x,ce+=Xi+(ee[re-1].S.x+ee[re-1].la.x+2*ee[re-1].focus.x-Xi)/2-a.focus.x-Pe/2):(Xi=ee[0].S.y+ee[0].la.y,We+=Xi+(ee[re-1].S.y+ee[re-1].la.y+2*ee[re-1].focus.y-Xi)/2-a.focus.y-Pe/2);break;case _c:y?(ce-=Pe,it+=Pe):(We-=Pe,vt+=Pe);break;case jc:y?(ce+=it-a.width+Pe,it+=Pe):(We+=vt-a.height+Pe,vt+=Pe);break;case Cd:y?1<re?ce+=Xi+Ne/2-a.focus.x:ce+=ee[0].focus.x-a.focus.x+ee[0].la.x:1<re?We+=Xi+Ne/2-a.focus.y:We+=ee[0].focus.y-a.focus.y+ee[0].la.y;break;case Nd:y?ce+=it+Ne/2-a.focus.x:We+=vt+Ne/2-a.focus.y;break;case $c:break;default:vt=this.customAlignment(a,ce,We,it,vt),ce=vt[0],We=vt[1],it=vt[2],vt=vt[3]}for(Pe=0;Pe<re;Pe++)Xi=ee[Pe],y?Xi.S.h(Xi.S.x+Xi.la.x-ce,Xi.S.y+(135<b?(fe?-vt:-Xi.Da.height)+Xi.la.y-E:ht+E+Xi.la.y)):Xi.S.h(Xi.S.x+(135<b?(fe?-it:-Xi.Da.width)+Xi.la.x-E:x+E+Xi.la.x),Xi.S.y+Xi.la.y-We);if(re=ee=0,fe?y?(it=ky(a,it,ce),0>ce&&(ce=0),135<b&&(We+=vt+E),vt+=ht+E,oe===$c&&(ee+=Ne/2+a.focus.x),re+=ht+E):(135<b&&(ce+=it+E),it+=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>it&&(it=Oy(oe,x-it,0),ee=it.x,re=it.y,it=x,ce=0):it=ky(a,it,ce),0>ce&&(ee-=ce,ce=0),135<b&&(We+=vt+E),vt=Math.max(Math.max(vt,ht),vt+ht+E),re+=ht+E):(135<b&&(ce+=it+E),it=Math.max(Math.max(it,x),it+x+E),a.comments===null?ht>vt&&(vt=Oy(oe,0,ht-vt),ee=vt.x,re=vt.y,vt=ht,We=0):vt=Dy(a,vt,We),0>We&&(re-=We,We=0),ee+=x+E),0<Xn)b=fl(this,4),Xn=fl(this,4),y?(b[2].h(0,ht+E),b[3].h(b[2].x,vt),Xn[2].h(it,b[2].y),Xn[3].h(Xn[2].x,b[3].y)):(b[2].h(x+E,0),b[3].h(it,b[2].y),Xn[2].h(b[2].x,vt),Xn[3].h(b[3].x,Xn[2].y));else{for(b=fl(this,wt.length+2),Xn=fl(this,Ot.length+2),oe=0;oe<wt.length;oe++)fe=wt[oe],b[oe+2].h(fe.x+ee,fe.y+re);for(oe=0;oe<Ot.length;oe++)fe=Ot[oe],Xn[oe+2].h(fe.x+ee,fe.y+re)}y?(b[0].h(ce,0),b[1].h(b[0].x,ht),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,ht),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+ht),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),$u(this,wt),$u(this,Ot),a.Yo=b,a.kp=Xn,a.la.h(ce,We),a.Da.h(it,vt)}break;default:pt("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=ju(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,Re=a.computeNodeIndent(y),We=fe||ye?0:Re/2,ht=y.rowSpacing,it=0;(fe||ye||y.hm||y.im&&y.maxGenerationCount===1)&&(it=Math.max(0,y.rowIndent)),fe=y.width;var vt=y.height,St=0,wt=0,Ot=0,$t=0,li=0,Ai=0,yi=0,Xn=0,On=0,nr=0;if(re&&!Bp(ce)&&135<x&&b.reverse(),Bp(ce))if(1<ee)for(var Xi=0;Xi<ee;Xi++){var Vr=b[Xi],vo=Vr.Da;Xi%2===0&&Xi!==ee-1?On=Math.max(On,(E?vo.width:vo.height)+a.computeBusNodeSpacing(Vr)-Pe):Xi%2!==0&&(nr=Math.max(nr,(E?vo.width:vo.height)+a.computeBusNodeSpacing(Vr)-Pe))}else ee===1&&(On=E?b[0].Da.width:b[0].Da.height);if(re)switch(ce){case Cd:case zc:wt=135>x?mE(a,y,b,On,St,wt):vE(a,y,b,On,St,wt),On=wt.x,St=wt.width,wt=wt.height;break;case Nd:for(Ne=0;Ne<ee;Ne++)We=b[Ne],Ot=We.Da,nr=yi===0?0:ht,E?(We.S.h(z-Ot.width,li+nr),St=Math.max(St,Ot.width),wt=Math.max(wt,li+nr+Ot.height),li+=nr+Ot.height):(We.S.h($t+nr,z-Ot.height),St=Math.max(St,$t+nr+Ot.width),wt=Math.max(wt,Ot.height),$t+=nr+Ot.width),yi++;break;case $c:for(z=0;z<ee;z++)Ne=b[z],We=Ne.Da,Ot=yi===0?0:ht,E?(Ne.S.h(Pe/2+y.focus.x,li+Ot),St=Math.max(St,We.width),wt=Math.max(wt,li+Ot+We.height),li+=Ot+We.height):(Ne.S.h($t+Ot,Pe/2+y.focus.y),St=Math.max(St,$t+Ot+We.width),wt=Math.max(wt,We.height),$t+=Ot+We.width),yi++}else for(nr=0;nr<ee;nr++)Xi=b[nr],Vr=Xi.Da,E?(0<Ne&&0<yi&&$t+Pe+Vr.width>Ne&&($t<z&&zh(y,ce,z-$t,0,Xn,nr-1),Ai++,yi=0,Xn=nr,Ot=wt,$t=0,li=135<x?-wt-ht:wt+ht),vo=yi===0?We:Pe,F0(a,Xi,0,li),Xi.S.h($t+vo,li),St=Math.max(St,$t+vo+Vr.width),wt=Math.max(wt,Ot+(Ai===0?0:ht)+Vr.height),$t+=vo+Vr.width):(0<Ne&&0<yi&&li+Pe+Vr.height>Ne&&(li<z&&zh(y,ce,0,z-li,Xn,nr-1),Ai++,yi=0,Xn=nr,Ot=St,li=0,$t=135<x?-St-ht:St+ht),vo=yi===0?We:Pe,F0(a,Xi,$t,0),Xi.S.h($t,li+vo),wt=Math.max(wt,li+vo+Vr.height),St=Math.max(St,Ot+(Ai===0?0:ht)+Vr.width),li+=vo+Vr.height),yi++;switch(0<Ai&&(E?(wt+=Math.max(0,oe),$t<St&&zh(y,ce,St-$t,0,Xn,ee-1),0<it&&(ye||pf(y,it,0,0,ee-1),St+=it)):(St+=Math.max(0,oe),li<wt&&zh(y,ce,0,wt-li,Xn,ee-1),0<it&&(ye||pf(y,0,it,0,ee-1),wt+=it))),it=ye=0,ce){case pg:E?ye+=St/2-y.focus.x-Re/2:it+=wt/2-y.focus.y-Re/2;break;case vf:0<Ai?E?ye+=St/2-y.focus.x-Re/2:it+=wt/2-y.focus.y-Re/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-Re/2):(a=b[0].S.y+b[0].la.y,it+=a+(b[ee-1].S.y+b[ee-1].la.y+2*b[ee-1].focus.y-a)/2-y.focus.y-Re/2);break;case _c:E?(ye-=Re,St+=Re):(it-=Re,wt+=Re);break;case jc:E?(ye+=St-y.width+Re,St+=Re):(it+=wt-y.height+Re,wt+=Re);break;case Cd:case zc:E?1<ee?ye+=On+Pe/2-y.focus.x:ye+=b[0].focus.x-y.focus.x+b[0].la.x:1<ee?it+=On+Pe/2-y.focus.y:it+=b[0].focus.y-y.focus.y+b[0].la.y;break;case Nd:E?ye+=St+Pe/2-y.focus.x:it+=wt+Pe/2-y.focus.y;break;case $c:break;default:a=a.customAlignment(y,ye,it,St,wt),ye=a[0],it=a[1],St=a[2],wt=a[3]}for(a=0;a<ee;a++)Re=b[a],E?Re.S.h(Re.S.x+Re.la.x-ye,Re.S.y+(135<x?(re?-wt:-Re.Da.height)+Re.la.y-oe:vt+oe+Re.la.y)):Re.S.h(Re.S.x+(135<x?(re?-St:-Re.Da.width)+Re.la.x-oe:fe+oe+Re.la.x),Re.S.y+Re.la.y-it);E?(St=ky(y,St,ye),0>ye&&(ye=0),135<x&&(it+=wt+oe),wt=Math.max(Math.max(wt,vt),wt+vt+oe)):(135<x&&(ye+=St+oe),St=Math.max(Math.max(St,fe),St+fe+oe),wt=Dy(y,wt,it),0>it&&(it=0)),y.la.h(ye,it),y.Da.h(St,wt)}}Cr.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 gn(x,0,b,z);if(ee===1)return y=E[0],b=y.Da.width,z=y.Da.height,new gn(x,0,b,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,ce=ju(y)===90,fe=0,ye=0,Ne=0,Pe=0;Pe<ee;Pe++)if(!(Pe%2!==0||1<ee&&Pe===ee-1)){var Re=E[Pe],We=Re.Da,ht=fe===0?0:oe;if(ce){var it=a.computeBusNodeSpacing(Re)-re;Re.S.h(x-(We.width+it),Ne+ht),b=Math.max(b,We.width+it),z=Math.max(z,Ne+ht+We.height),Ne+=ht+We.height}else it=a.computeBusNodeSpacing(Re)-re,Re.S.h(ye+ht,x-(We.height+it)),z=Math.max(z,We.height+it),b=Math.max(b,ye+ht+We.width),ye+=ht+We.width;fe++}for(fe=0,Re=ye,Pe=Ne,ce?(ye=x+re,Ne=0):(ye=0,Ne=x+re),We=0;We<ee;We++)if(We%2!==0){ht=E[We],it=ht.Da;var vt=fe===0?0:oe;if(ce){var St=a.computeBusNodeSpacing(ht)-re;ht.S.h(ye+St,Ne+vt),b=Math.max(b,ye+it.width+St),z=Math.max(z,Ne+vt+it.height),Ne+=vt+it.height}else St=a.computeBusNodeSpacing(ht)-re,ht.S.h(ye+vt,Ne+St),b=Math.max(b,ye+vt+it.width),z=Math.max(z,Ne+it.height+St),ye+=vt+it.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(Re),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(Re,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 gn(x,0,b,z)}function vE(a,y,E,x,b,z){var ee=E.length;if(ee===0)return new gn(x,0,b,z);if(ee===1)return E=E[0],b=E.Da.width,z=E.Da.height,new gn(x,0,b,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,ce=ju(y)===270,fe=0,ye=0,Ne=0,Pe=0;Pe<ee;Pe++)if(!(Pe%2!==0||1<ee&&Pe===ee-1)){var Re=E[Pe],We=Re.Da,ht=fe===0?0:oe;if(ce){var it=a.computeBusNodeSpacing(Re)-re;Ne-=ht+We.height,Re.S.h(x-(We.width+it),Ne),b=Math.max(b,We.width+it),z=Math.max(z,Math.abs(Ne))}else it=a.computeBusNodeSpacing(Re)-re,ye-=ht+We.width,Re.S.h(ye,x-(We.height+it)),z=Math.max(z,We.height+it),b=Math.max(b,Math.abs(ye));fe++}for(fe=0,Re=ye,Pe=Ne,ce?(ye=x+re,Ne=0):(ye=0,Ne=x+re),We=0;We<ee;We++)if(We%2!==0){ht=E[We],it=ht.Da;var vt=fe===0?0:oe;if(ce){var St=a.computeBusNodeSpacing(ht)-re;Ne-=vt+it.height,ht.S.h(ye+St,Ne),b=Math.max(b,ye+it.width+St),z=Math.max(z,Math.abs(Ne))}else St=a.computeBusNodeSpacing(ht)-re,ye-=vt+it.width,ht.S.h(ye,Ne+St),z=Math.max(z,Ne+it.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(Re),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(Re,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 gn(x,0,b,z)}Cr.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},Cr.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:pt("Unhandled alignment value "+a.toString())}return new lt(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:pt("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=ju(y),ce=oe===90||oe===270,fe=y.nodeSpacing;y=x;var ye=b;x=z;var Ne=ee,Pe=E.Yo,Re=E.kp;ee=E.Da;var We=ce?Math.max(Ne,ee.height):Math.max(x,ee.width);if((Pe===null||oe!==ju(E))&&(Pe=fl(a,2),Re=fl(a,2),ce?(Pe[0].h(0,0),Pe[1].h(0,ee.height),Re[0].h(ee.width,0),Re[1].h(Re[0].x,Pe[1].y)):(Pe[0].h(0,0),Pe[1].h(ee.width,0),Re[0].h(0,ee.height),Re[1].h(Pe[1].x,Re[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 ht=Pe[b];oe=ht.x,ce=ht.y,oe+=x;var it=z;E+1<ye.length&&(it=ye[E+1]);var vt=ht;ht=vt.x,vt=vt.y,b+1<Pe.length&&(vt=Pe[b+1],ht=vt.x,vt=vt.y,ht+=x);var St=Ne;z.y===ce?St=oe-z.x:z.y>ce&&z.y<vt?St=oe+(z.y-ce)/(vt-ce)*(ht-oe)-z.x:ce>z.y&&ce<it.y&&(St=oe-(z.x+(ce-z.y)/(it.y-z.y)*(it.x-z.x))),St<Ne&&(Ne=St),it.y<=z.y?E++:vt<=ce?b++:(it.y<=vt&&E++,vt<=it.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=fl(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=fl(a,x),oe=0;oe<x;oe++)E[oe].assign(fe[oe]);$u(a,fe),x=E}if(z=Re,oe=Ne,ye===null||2>ye.length||z===null||2>z.length)b=null;else{for(fe=fl(a,ye.length+z.length),b=ce=E=0;E<ye.length&&ye[E].y<z[0].y;)it=ye[E++],fe[b++].h(it.x,it.y);for(;ce<z.length;)it=z[ce++],fe[b++].h(it.x+oe,it.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=fl(a,b),E=0;E<b;E++)z[E].assign(fe[E]);$u(a,fe),b=z}return z=Math.max(0,Ne)+ee.width,ee=We,$u(a,y),$u(a,Pe),$u(a,ye),$u(a,Re),re[0]=x,re[1]=b,new gn(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],ht=Pe[b],oe=ht.x,ce=ht.y,ce+=Ne,it=z,E+1<ye.length&&(it=ye[E+1]),vt=ht,ht=vt.x,vt=vt.y,b+1<Pe.length&&(vt=Pe[b+1],ht=vt.x,vt=vt.y,vt+=Ne),St=x,z.x===oe?St=ce-z.y:z.x>oe&&z.x<ht?St=ce+(z.x-oe)/(ht-oe)*(vt-ce)-z.y:oe>z.x&&oe<it.x&&(St=ce-(z.y+(oe-z.x)/(it.x-z.x)*(it.y-z.y))),St<x&&(x=St),it.x<=z.x?E++:ht<=oe?b++:(it.x<=ht&&E++,ht<=it.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=fl(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=fl(a,x),oe=0;oe<x;oe++)E[oe].assign(fe[oe]);$u(a,fe),x=E}if(z=Re,oe=Ne,ye===null||2>ye.length||z===null||2>z.length)b=null;else{for(fe=fl(a,ye.length+z.length),b=ce=E=0;E<ye.length&&ye[E].x<z[0].x;)it=ye[E++],fe[b++].h(it.x,it.y);for(;ce<z.length;)it=z[ce++],fe[b++].h(it.x,it.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=fl(a,b),E=0;E<b;E++)z[E].assign(fe[E]);$u(a,fe),b=z}return z=We,ee=Math.max(0,Ne)+ee.height,$u(a,y),$u(a,Pe),$u(a,ye),$u(a,Re),re[0]=x,re[1]=b,new gn(Ne,0,z,ee)}function fl(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 lt;return a}function $u(a,y){var E=y.length,x=a.ru[E];x===void 0&&(x=[],a.ru[E]=x),x.push(y)}Cr.prototype.arrangeTrees=function(){if(this.Rb===H0)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof Eu){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 Eu&&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:pt("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:pt("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)}}}Cr.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},Cr.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},Cr.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 lt(-this.nodeSpacing/2,-this.layerSpacing/2)):(E.Bc(this.layerSpacing,this.nodeSpacing/2),x=new lt(-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 gn(0,z,E,re))):this.angle===90?(b.push(new gn(0,z,E,re)),z+=re):this.angle===180?(z-=re,b.push(new gn(z,0,re,E))):(b.push(new gn(z,0,re,E)),z+=re)}this.commitLayers(b,x)}},Cr.prototype.commitLayers=function(){},Cr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Cr.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof Eu&&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])}}Cr.prototype.setPortSpots=function(a){var y=a.alignment;if(oh(y)){var E=this.ud===Bc,x=ju(a);switch(x){case 0:var b=_a;break;case 90:b=Ya;break;case 180:b=ds;break;default:b=rs}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?ds:rs;if(ee===1||y===ee-1&&ee%2===1)switch(x){case 0:oe=ds;break;case 90:oe=rs;break;case 180:oe=_a;break;default:oe=Ya}else y%2===0&&(oe=x===90||x===270?_a:Ya);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?_a:Ya,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?ds:rs,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=ju(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=_a;break;case 90:x.fromSpot=Ya;break;case 180:x.fromSpot=ds;break;default:x.fromSpot=rs}else x.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(E){case 0:x.toSpot=ds;break;case 90:x.toSpot=rs;break;case 180:x.toSpot=_a;break;default:x.toSpot=Ya}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=_a;break;case 90:x.toSpot=Ya;break;case 180:x.toSpot=ds;break;default:x.toSpot=rs}else x.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(E){case 0:x.fromSpot=ds;break;case 90:x.fromSpot=rs;break;case 180:x.fromSpot=_a;break;default:x.fromSpot=Ya}else x.fromSpot=a.childPortSpot}};function ju(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}Cr.prototype.computeLayerSpacing=function(a){var y=ju(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},Cr.prototype.computeNodeIndent=function(a){var y=ju(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)},Rt.Object.defineProperties(Cr.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()):pt("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 wn(Cr,"PathDefault",-1),Bc=new wn(Cr,"PathDestination",0),mf=new wn(Cr,"PathSource",1),gg=new wn(Cr,"SortingForwards",10),_p=new wn(Cr,"SortingReverse",11),jp=new wn(Cr,"SortingAscending",12),zp=new wn(Cr,"SortingDescending",13),pg=new wn(Cr,"AlignmentCenterSubtrees",20),vf=new wn(Cr,"AlignmentCenterChildren",21),_c=new wn(Cr,"AlignmentStart",22),jc=new wn(Cr,"AlignmentEnd",23),Cd=new wn(Cr,"AlignmentBus",24),zc=new wn(Cr,"AlignmentBusBranching",25),Nd=new wn(Cr,"AlignmentTopLeftBus",26),$c=new wn(Cr,"AlignmentBottomRightBus",27),j0=new wn(Cr,"CompactionNone",30),Up=new wn(Cr,"CompactionBlock",31),z0=new wn(Cr,"StyleLayered",40),Fy=new wn(Cr,"StyleLastParents",41),By=new wn(Cr,"StyleAlternating",42),_y=new wn(Cr,"StyleRootOnly",43),U0=new wn(Cr,"ArrangementVertical",50),jy=new wn(Cr,"ArrangementHorizontal",51),H0=new wn(Cr,"ArrangementFixedRoots",52),zy=new wn(Cr,"LayerIndividual",60),Uy=new wn(Cr,"LayerSiblings",61),G0=new wn(Cr,"LayerUniform",62);Cr.className="TreeLayout",Cr.PathDefault=_0,Cr.PathDestination=Bc,Cr.PathSource=mf,Cr.SortingForwards=gg,Cr.SortingReverse=_p,Cr.SortingAscending=jp,Cr.SortingDescending=zp,Cr.AlignmentCenterSubtrees=pg,Cr.AlignmentCenterChildren=vf,Cr.AlignmentStart=_c,Cr.AlignmentEnd=jc,Cr.AlignmentBus=Cd,Cr.AlignmentBusBranching=zc,Cr.AlignmentTopLeftBus=Nd,Cr.AlignmentBottomRightBus=$c,Cr.CompactionNone=j0,Cr.CompactionBlock=Up,Cr.StyleLayered=z0,Cr.StyleLastParents=Fy,Cr.StyleAlternating=By,Cr.StyleRootOnly=_y,Cr.ArrangementVertical=U0,Cr.ArrangementHorizontal=jy,Cr.ArrangementFixedRoots=H0,Cr.LayerIndividual=zy,Cr.LayerSiblings=Uy,Cr.LayerUniform=G0;function yf(a){Eo.call(this,a)}Wt(yf,Eo),yf.prototype.createVertex=function(){return new Eu(this)},yf.prototype.createEdge=function(){return new mg(this)},yf.className="TreeNetwork";function Eu(a){Ma.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 lt(0,0),this.Da=new ri(0,0),this.la=new lt(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=Ca,this.wr=!0,this.Dp=Ca}Wt(Eu,Ma),Eu.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)},Rt.Object.defineProperties(Eu.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)}}}),Eu.className="TreeVertex";function mg(a){Nl.call(this,a),this.$t=new lt(0,0)}Wt(mg,Nl),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:pt("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=ju(E),ee=y.computeLayerSpacing(E),re=E.rowSpacing;a.vg();var oe=a.curve===Gl,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))):pt("Invalid angle "+z),a.zf()}else b=x,a=this.link,x=this.network.layout,y=ju(E),y!==ju(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===Gl,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()))}}},Rt.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",No.prototype.initializeStandardTools=function(){this.gb("Action",new Tn,this.mouseDownTools),this.gb("Relinking",new Fs,this.mouseDownTools),this.gb("LinkReshaping",new He,this.mouseDownTools),this.gb("Rotating",new Un,this.mouseDownTools),this.gb("Resizing",new Qt,this.mouseDownTools),this.gb("Linking",new fs,this.mouseMoveTools),this.gb("Dragging",new Ao,this.mouseMoveTools),this.gb("DragSelecting",new ni,this.mouseMoveTools),this.gb("Panning",new In,this.mouseMoveTools),this.gb("ContextMenu",new co,this.mouseUpTools),this.gb("TextEditing",new Rr,this.mouseUpTools),this.gb("ClickCreating",new oi,this.mouseUpTools),this.gb("ClickSelecting",new Yn,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",za),jf.add("TreeModel",ru);var Y0=Rn.go,Hy={get licenseKey(){return tn.licenseKey},set licenseKey(a){tn.licenseKey=a},get version(){return tn.version},Group:ir,EnumValue:wn,List:Gn,Set:Bn,Map:Ti,Point:lt,Size:ri,Rect:gn,Margin:dr,Spot:Yt,Geometry:Qn,PathFigure:ma,PathSegment:_r,InputEvent:Qa,DiagramEvent:Tu,ChangedEvent:Ro,Model:Pi,GraphLinksModel:Dr,TreeModel:Vs,Binding:fa,Transaction:va,UndoManager:fo,CommandHandler:dt,Tool:Lr,DraggingTool:Ao,DraggingInfo:Zc,DraggingOptions:ae,LinkingBaseTool:Qo,LinkingTool:fs,RelinkingTool:Fs,LinkReshapingTool:He,ResizingTool:Qt,RotatingTool:Un,ClickSelectingTool:Yn,ActionTool:Tn,ClickCreatingTool:oi,HTMLInfo:Fr,ContextMenuTool:co,DragSelectingTool:ni,PanningTool:In,TextEditingTool:Rr,ToolManager:No,Animation:mi,AnimationManager:ss,AnimationTrigger:$s,Layer:Wa,Diagram:tn,Palette:ve,Overview:Ee,Brush:to,GraphObject:Bt,Panel:Vn,RowColumnDefinition:wa,Shape:gr,TextBlock:So,Picture:rl,Part:_i,Adornment:Gr,Node:di,Link:qn,Placeholder:Hs,Layout:jo,LayoutNetwork:Eo,LayoutVertex:Ma,LayoutEdge:Nl,GridLayout:qa,PanelLayout:Na,CircularLayout:Xo,CircularNetwork:dg,CircularVertex:Ip,CircularEdge:T0,ForceDirectedLayout:us,ForceDirectedNetwork:gf,ForceDirectedVertex:kp,ForceDirectedEdge:Dp,LayeredDigraphLayout:ro,LayeredDigraphNetwork:fg,LayeredDigraphVertex:au,LayeredDigraphEdge:Fp,TreeLayout:Cr,TreeNetwork:yf,TreeVertex:Eu,TreeEdge:mg};typeof Y0=="object"&&Y0.version&&xi("WARNING: a `go` object on the root object is already defined. "+("Debug"in Y0?"debug ":"")+"version: "+Y0.version+", replaced with version: "+Hy.version),tn.prototype.go=Hy,Rn.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 Le=typeof de.g!="undefined"?de.g.go:self.go,De=Le.Group,Ie=Le.EnumValue,Ye=Le.List,Fe=Le.Set,Ve=Le.Map,Xe=Le.Point,qe=Le.Size,Je=Le.Rect,mt=Le.Margin,st=Le.Spot,Ct=Le.Geometry,je=Le.PathFigure,te=Le.PathSegment,ne=Le.InputEvent,he=Le.DiagramEvent,se=Le.ChangedEvent,ge=Le.Model,Se=Le.GraphLinksModel,Ce=Le.TreeModel,Oe=Le.Binding,Be=Le.Transaction,Qe=Le.UndoManager,ot=Le.CommandHandler,rt=Le.Tool,ft=Le.DraggingTool,bt=Le.DraggingInfo,ut=Le.LinkingBaseTool,Tt=Le.LinkingTool,Dt=Le.RelinkingTool,en=Le.LinkReshapingTool,Cn=Le.ResizingTool,vn=Le.RotatingTool,pn=Le.ClickSelectingTool,mn=Le.ActionTool,Mt=Le.ClickCreatingTool,ct=Le.HTMLInfo,nt=Le.ContextMenuTool,dn=Le.DragSelectingTool,En=Le.PanningTool,Nt=Le.TextEditingTool,cn=Le.ToolManager,ln=Le.Animation,_n=Le.AnimationManager,kn=Le.AnimationTrigger,si=Le.Layer,kt=Le.Diagram,Kn=Le.Palette,hi=Le.Overview,et=Le.Brush,_e=Le.GraphObject,xe=Le.Panel,Te=Le.RowColumnDefinition,Me=Le.Shape,Ae=Le.TextBlock,at=Le.TextBlockMetrics,Lt=Le.Picture,Pt=Le.Part,Vt=Le.Adornment,It=Le.Node,an=Le.Link,sn=Le.Placeholder,on=Le.Layout,bn=Le.LayoutNetwork,un=Le.LayoutVertex,zt=Le.LayoutEdge,xn=Le.GridLayout,fn=Le.PanelLayout,An=Le.CircularLayout,nn=Le.CircularNetwork,ci=Le.CircularVertex,zn=Le.CircularEdge,yt=Le.ForceDirectedLayout,Fn=Le.ForceDirectedNetwork,Pn=Le.ForceDirectedVertex,Ht=Le.ForceDirectedEdge,fi=Le.LayeredDigraphLayout,zi=Le.LayeredDigraphNetwork,Li=Le.LayeredDigraphVertex,Dn=Le.LayeredDigraphEdge,qi=Le.TreeLayout,Ui=Le.TreeNetwork,ui=Le.TreeVertex,bi=Le.TreeEdge,Ri=Le.version},46963:function(Ge){"use strict";Ge.exports=de;var be=/[#.]/g;function de(le,Le){for(var De=le||"",Ie=Le||"div",Ye={},Fe=0,Ve,Xe,qe;Fe<De.length;)be.lastIndex=Fe,qe=be.exec(De),Ve=De.slice(Fe,qe?qe.index:De.length),Ve&&(Xe?Xe==="#"?Ye.id=Ve:Ye.className?Ye.className.push(Ve):Ye.className=[Ve]:Ie=Ve,Fe+=Ve.length),qe&&(Xe=qe[0],Fe++);return{type:"element",tagName:Ie,properties:Ye,children:[]}}},5641:function(Ge,be,de){"use strict";var le=de(88914),Le=de(47178),De=de(46963),Ie=de(92848).Q,Ye=de(58951).Q;Ge.exports=Ve;var Fe={}.hasOwnProperty;function Ve(te,ne,he){var se=he?je(he):null;return ge;function ge(Ce,Oe){var Be=De(Ce,ne),Qe=Array.prototype.slice.call(arguments,2),ot=Be.tagName.toLowerCase(),rt;if(Be.tagName=se&&Fe.call(se,ot)?se[ot]:ot,Oe&&Xe(Oe,Be)&&(Qe.unshift(Oe),Oe=null),Oe)for(rt in Oe)Se(Be.properties,rt,Oe[rt]);return Je(Be.children,Qe),Be.tagName==="template"&&(Be.content={type:"root",children:Be.children},Be.children=[]),Be}function Se(Ce,Oe,Be){var Qe,ot,rt;Be==null||Be!==Be||(Qe=le(te,Oe),ot=Qe.property,rt=Be,typeof rt=="string"&&(Qe.spaceSeparated?rt=Ie(rt):Qe.commaSeparated?rt=Ye(rt):Qe.commaOrSpaceSeparated&&(rt=Ie(Ye(rt).join(" ")))),ot==="style"&&typeof Be!="string"&&(rt=Ct(rt)),ot==="className"&&Ce.className&&(rt=Ce.className.concat(rt)),Ce[ot]=mt(Qe,ot,rt))}}function Xe(te,ne){return typeof te=="string"||"length"in te||qe(ne.tagName,te)}function qe(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 Je(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;)Je(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===""||Le(he)===Le(ne))&&(se=!0),se}function Ct(te){var ne=[],he;for(he in te)ne.push([he,te[he]].join(": "));return ne.join("; ")}function je(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),Le=de(5641),De=Le(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,Le,De,Ie){var Ye,Fe,Ve=Ie*8-De-1,Xe=(1<<Ve)-1,qe=Xe>>1,Je=-7,mt=Le?Ie-1:0,st=Le?-1:1,Ct=de[le+mt];for(mt+=st,Ye=Ct&(1<<-Je)-1,Ct>>=-Je,Je+=Ve;Je>0;Ye=Ye*256+de[le+mt],mt+=st,Je-=8);for(Fe=Ye&(1<<-Je)-1,Ye>>=-Je,Je+=De;Je>0;Fe=Fe*256+de[le+mt],mt+=st,Je-=8);if(Ye===0)Ye=1-qe;else{if(Ye===Xe)return Fe?NaN:(Ct?-1:1)*(1/0);Fe=Fe+Math.pow(2,De),Ye=Ye-qe}return(Ct?-1:1)*Fe*Math.pow(2,Ye-De)},be.write=function(de,le,Le,De,Ie,Ye){var Fe,Ve,Xe,qe=Ye*8-Ie-1,Je=(1<<qe)-1,mt=Je>>1,st=Ie===23?Math.pow(2,-24)-Math.pow(2,-77):0,Ct=De?0:Ye-1,je=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,Fe=Je):(Fe=Math.floor(Math.log(le)/Math.LN2),le*(Xe=Math.pow(2,-Fe))<1&&(Fe--,Xe*=2),Fe+mt>=1?le+=st/Xe:le+=st*Math.pow(2,1-mt),le*Xe>=2&&(Fe++,Xe/=2),Fe+mt>=Je?(Ve=0,Fe=Je):Fe+mt>=1?(Ve=(le*Xe-1)*Math.pow(2,Ie),Fe=Fe+mt):(Ve=le*Math.pow(2,mt-1)*Math.pow(2,Ie),Fe=0));Ie>=8;de[Le+Ct]=Ve&255,Ct+=je,Ve/=256,Ie-=8);for(Fe=Fe<<Ie|Ve,qe+=Ie;qe>0;de[Le+Ct]=Fe&255,Ct+=je,Fe/=256,qe-=8);de[Le+Ct-je]|=te*128}},93193:function(Ge){var be=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,de=/\n/g,le=/^\s*/,Le=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,De=/^:\s*/,Ie=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ye=/^[;\s]*/,Fe=/^\s+|\s+$/g,Ve=`
`,Xe="/",qe="*",Je="",mt="comment",st="declaration";Ge.exports=function(je,te){if(typeof je!="string")throw new TypeError("First argument must be a string");if(!je)return[];te=te||{};var ne=1,he=1;function se(ut){var Tt=ut.match(de);Tt&&(ne+=Tt.length);var Dt=ut.lastIndexOf(Ve);he=~Dt?ut.length-Dt:he+ut.length}function ge(){var ut={line:ne,column:he};return function(Tt){return Tt.position=new Se(ut),Qe(),Tt}}function Se(ut){this.start=ut,this.end={line:ne,column:he},this.source=te.source}Se.prototype.content=je;var Ce=[];function Oe(ut){var Tt=new Error(te.source+":"+ne+":"+he+": "+ut);if(Tt.reason=ut,Tt.filename=te.source,Tt.line=ne,Tt.column=he,Tt.source=je,te.silent)Ce.push(Tt);else throw Tt}function Be(ut){var Tt=ut.exec(je);if(Tt){var Dt=Tt[0];return se(Dt),je=je.slice(Dt.length),Tt}}function Qe(){Be(le)}function ot(ut){var Tt;for(ut=ut||[];Tt=rt();)Tt!==!1&&ut.push(Tt);return ut}function rt(){var ut=ge();if(!(Xe!=je.charAt(0)||qe!=je.charAt(1))){for(var Tt=2;Je!=je.charAt(Tt)&&(qe!=je.charAt(Tt)||Xe!=je.charAt(Tt+1));)++Tt;if(Tt+=2,Je===je.charAt(Tt-1))return Oe("End of comment missing");var Dt=je.slice(2,Tt-2);return he+=2,se(Dt),je=je.slice(Tt),he+=2,ut({type:mt,comment:Dt})}}function ft(){var ut=ge(),Tt=Be(Le);if(Tt){if(rt(),!Be(De))return Oe("property missing ':'");var Dt=Be(Ie),en=ut({type:st,property:Ct(Tt[0].replace(be,Je)),value:Dt?Ct(Dt[0].replace(be,Je)):Je});return Be(Ye),en}}function bt(){var ut=[];ot(ut);for(var Tt;Tt=ft();)Tt!==!1&&(ut.push(Tt),ot(ut));return ut}return Qe(),bt()};function Ct(je){return je?je.replace(Fe,Je):Je}},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),Le=de(22347);Ge.exports=De;function De(Ie){return le(Ie)||Le(Ie)}},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 hi}});var le=function(et,_e){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,_e)};function Le(et,_e){function xe(){this.constructor=et}le(et,_e),et.prototype=_e===null?Object.create(_e):(xe.prototype=_e.prototype,new xe)}function De(et,_e,xe,Te){return new(xe||(xe=Promise))(function(Me,Ae){function at(Vt){try{Pt(Te.next(Vt))}catch(It){Ae(It)}}function Lt(Vt){try{Pt(Te.throw(Vt))}catch(It){Ae(It)}}function Pt(Vt){var It;Vt.done?Me(Vt.value):(It=Vt.value,It instanceof xe?It:new xe(function(an){an(It)})).then(at,Lt)}Pt((Te=Te.apply(et,_e||[])).next())})}function Ie(et,_e){var xe,Te,Me,Ae,at={label:0,sent:function(){if(1&Me[0])throw Me[1];return Me[1]},trys:[],ops:[]};return Ae={next:Lt(0),throw:Lt(1),return:Lt(2)},typeof Symbol=="function"&&(Ae[Symbol.iterator]=function(){return this}),Ae;function Lt(Pt){return function(Vt){return function(It){if(xe)throw new TypeError("Generator is already executing.");for(;at;)try{if(xe=1,Te&&(Me=2&It[0]?Te.return:It[0]?Te.throw||((Me=Te.return)&&Me.call(Te),0):Te.next)&&!(Me=Me.call(Te,It[1])).done)return Me;switch(Te=0,Me&&(It=[2&It[0],Me.value]),It[0]){case 0:case 1:Me=It;break;case 4:return at.label++,{value:It[1],done:!1};case 5:at.label++,Te=It[1],It=[0];continue;case 7:It=at.ops.pop(),at.trys.pop();continue;default:if(Me=at.trys,!((Me=Me.length>0&&Me[Me.length-1])||It[0]!==6&&It[0]!==2)){at=0;continue}if(It[0]===3&&(!Me||It[1]>Me[0]&&It[1]<Me[3])){at.label=It[1];break}if(It[0]===6&&at.label<Me[1]){at.label=Me[1],Me=It;break}if(Me&&at.label<Me[2]){at.label=Me[2],at.ops.push(It);break}Me[2]&&at.ops.pop(),at.trys.pop();continue}It=_e.call(et,at)}catch(an){It=[6,an],Te=0}finally{xe=Me=0}if(5&It[0])throw It[1];return{value:It[0]?It[1]:void 0,done:!0}}([Pt,Vt])}}}function Ye(){for(var et=0,_e=0,xe=arguments.length;_e<xe;_e++)et+=arguments[_e].length;var Te=Array(et),Me=0;for(_e=0;_e<xe;_e++)for(var Ae=arguments[_e],at=0,Lt=Ae.length;at<Lt;at++,Me++)Te[Me]=Ae[at];return Te}var Fe=function(){function et(){}return et.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},et.setAttributes=function(_e,xe){for(var Te=0,Me=xe;Te<Me.length;Te++){var Ae=Me[Te],at=Ae[0],Lt=Ae[1];_e.setAttribute(at,Lt)}},et.createRect=function(_e,xe,Te){var Me=document.createElementNS("http://www.w3.org/2000/svg","rect");return Me.setAttribute("width",_e.toString()),Me.setAttribute("height",xe.toString()),Te&&et.setAttributes(Me,Te),Me},et.createLine=function(_e,xe,Te,Me,Ae){var at=document.createElementNS("http://www.w3.org/2000/svg","line");return at.setAttribute("x1",_e.toString()),at.setAttribute("y1",xe.toString()),at.setAttribute("x2",Te.toString()),at.setAttribute("y2",Me.toString()),Ae&&et.setAttributes(at,Ae),at},et.createPolygon=function(_e,xe){var Te=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Te.setAttribute("points",_e),xe&&et.setAttributes(Te,xe),Te},et.createCircle=function(_e,xe){var Te=document.createElementNS("http://www.w3.org/2000/svg","circle");return Te.setAttribute("cx",(_e/2).toString()),Te.setAttribute("cy",(_e/2).toString()),Te.setAttribute("r",_e.toString()),xe&&et.setAttributes(Te,xe),Te},et.createEllipse=function(_e,xe,Te){var Me=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Me.setAttribute("cx",(_e/2).toString()),Me.setAttribute("cy",(xe/2).toString()),Me.setAttribute("rx",(_e/2).toString()),Me.setAttribute("ry",(xe/2).toString()),Te&&et.setAttributes(Me,Te),Me},et.createGroup=function(_e){var xe=document.createElementNS("http://www.w3.org/2000/svg","g");return _e&&et.setAttributes(xe,_e),xe},et.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},et.createMarker=function(_e,xe,Te,Me,Ae,at,Lt){var Pt=document.createElementNS("http://www.w3.org/2000/svg","marker");return et.setAttributes(Pt,[["id",_e],["orient",xe],["markerWidth",Te.toString()],["markerHeight",Me.toString()],["refX",Ae.toString()],["refY",at.toString()]]),Pt.appendChild(Lt),Pt},et.createText=function(_e){var xe=document.createElementNS("http://www.w3.org/2000/svg","text");return xe.setAttribute("x","0"),xe.setAttribute("y","0"),_e&&et.setAttributes(xe,_e),xe},et.createTSpan=function(_e,xe){var Te=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Te.textContent=_e,xe&&et.setAttributes(Te,xe),Te},et.createImage=function(_e){var xe=document.createElementNS("http://www.w3.org/2000/svg","image");return _e&&et.setAttributes(xe,_e),xe},et.createPoint=function(_e,xe){var Te=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Te.x=_e,Te.y=xe,Te},et.createPath=function(_e,xe){var Te=document.createElementNS("http://www.w3.org/2000/svg","path");return Te.setAttribute("d",_e),xe&&et.setAttributes(Te,xe),Te},et}(),Ve=function(){function et(){}return et.addKey=function(_e){et.key=_e},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}(),Xe=function(){function et(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return et.prototype.rasterize=function(_e,xe,Te){var Me=this;return new Promise(function(Ae){var at=Te!==void 0?Te:document.createElement("canvas");_e===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=_e.naturalWidth,Lt.height.baseVal.value=_e.naturalHeight):Me.width!==void 0&&Me.height!==void 0&&(Lt.width.baseVal.value=Me.width,Lt.height.baseVal.value=Me.height),at.width=Lt.width.baseVal.value,at.height=Lt.height.baseVal.value;var Pt=Lt.outerHTML,Vt=at.getContext("2d");Me.markersOnly!==!0&&Vt.drawImage(_e,0,0,at.width,at.height);var It=window.URL,an=new Image(at.width,at.height);an.setAttribute("crossOrigin","anonymous");var sn=new Blob([Pt],{type:"image/svg+xml"}),on=It.createObjectURL(sn);an.onload=function(){Vt.drawImage(an,0,0),It.revokeObjectURL(on);var bn=at.toDataURL(Me.imageType,Me.imageQuality);Ae(bn)},an.src=on})},et}(),qe=function(){},Je=function(){function et(_e){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+_e+"_"}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(_e){return this.styleSheet===void 0&&this.addStyleSheet(),_e.name=""+this.classNamePrefix+_e.localName,this.classes.push(_e),this.styleSheet.sheet.insertRule("."+_e.name+" {"+_e.style+"}",this.styleSheet.sheet.cssRules.length),_e},et.prototype.addRule=function(_e){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(_e),this.styleSheet.sheet.insertRule(_e.selector+" {"+_e.style+"}",this.styleSheet.sheet.cssRules.length)},et.prototype.addStyleSheet=function(){var _e;this.styleSheet=document.createElement("style"),((_e=this.styleSheetRoot)!==null&&_e!==void 0?_e: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 _e;this.styleSheet&&(((_e=this.styleSheetRoot)!==null&&_e!==void 0?_e:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},et}(),mt=function(et,_e){this.selector=et,this.style=_e},st=function(et,_e){this.localName=et,this.style=_e},Ct=function(){function et(_e,xe,Te,Me,Ae){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=_e,this.displayMode=xe,this.markerItems=Te,this.uiStyleSettings=Me,this.styles=Ae,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(_e){var xe=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=_e,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(Ae){var at=document.createElement("div");at.className=""+xe.toolbarButtonStyleClass.name,at.setAttribute("data-type-name",Ae.typeName),at.innerHTML=Ae.icon,at.addEventListener("click",function(){xe.markerToolbarButtonClicked(at,Ae)}),xe.buttons.push(at),xe.markerButtons.push(at)}),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(_e){this.buttonClickListeners.push(_e)},et.prototype.removeButtonClickListener=function(_e){this.buttonClickListeners.indexOf(_e)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(_e),1)},et.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},et.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var _e=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<_e||xe===_e&&this.markerButtons.length-1===_e?this.markerButtonBlock.appendChild(this.markerButtons[xe]):(xe===_e&&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 _e=this;this.buttons.forEach(function(xe){xe.className=xe.className.replace(_e.uiStyleSettings.toolbarButtonStyleColorsClassName?_e.uiStyleSettings.toolbarButtonStyleColorsClassName:_e.toolbarButtonStyleColorsClass.name,"").trim(),xe.className=xe.className.replace(_e.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?_e.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:_e.toolbarActiveButtonStyleColorsClass.name,"").trim(),xe.className+=" "+(_e.uiStyleSettings.toolbarButtonStyleColorsClassName?_e.uiStyleSettings.toolbarButtonStyleColorsClassName:_e.toolbarButtonStyleColorsClass.name)})},et.prototype.addActionButton=function(_e,xe,Te){var Me=this,Ae=document.createElement("div");switch(Ae.className=""+this.toolbarButtonStyleClass.name,Ae.innerHTML=xe,Ae.setAttribute("data-action",Te),Ae.addEventListener("click",function(){Me.actionToolbarButtonClicked(Ae,Te)}),Te){case"select":Ae.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Ae.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Ae.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Ae.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Ae.style.fill=this.uiStyleSettings.closeButtonColor}_e.appendChild(Ae),this.buttons.push(Ae)},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 _e=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new st("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*_e)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*_e)+`px;
padding: `+_e+`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(_e,xe){this.setActiveButton(_e),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Te){return Te("marker",xe)}),this.markerButtonOverflowBlock.style.display="none"},et.prototype.actionToolbarButtonClicked=function(_e,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(_e){this.resetButtonStyles(),_e.className=_e.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),_e.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},et.prototype.setActiveMarkerButton=function(_e){var xe=this.markerButtons.find(function(Te){return Te.getAttribute("data-type-name")===_e});xe&&this.setActiveButton(xe)},et.prototype.setCurrentMarker=function(_e){var xe=this;this.currentMarker=_e,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}(),je=function(){function et(_e,xe,Te,Me){this.panels=[],this.panelButtons=[],this.markerjsContainer=_e,this.displayMode=xe,this.uiStyleSettings=Te,this.styles=Me,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return et.prototype.addStyles=function(){var _e;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: `+((_e=this.uiStyleSettings.toolboxBackgroundColor)!==null&&_e!==void 0?_e: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(_e){var xe;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=_e,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(_e){var xe,Te,Me=this;this.panels=_e,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(Ae){var at;Ae.uiStyleSettings=Me.uiStyleSettings;var Lt=document.createElement("div");Lt.className=Me.toolboxButtonStyleClass.name+" "+((at=Me.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&at!==void 0?at:Me.toolboxButtonStyleColorsClass.name),Lt.innerHTML=Ae.icon,Lt.title=Ae.title,Lt.addEventListener("click",function(){Me.panelButtonClick(Ae)}),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(_e){var xe=this,Te=-1;if(_e!==this.activePanel){Te=this.panels.indexOf(_e),this.panelRow.innerHTML="";var Me=_e.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=_e}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(Ae,at){var Lt,Pt;Ae.className=xe.toolboxButtonStyleClass.name+" "+(at===Te?""+((Lt=xe.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Lt!==void 0?Lt:xe.toolboxActiveButtonStyleColorsClass.name):""+((Pt=xe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Pt!==void 0?Pt:xe.toolboxButtonStyleColorsClass.name))})},et}(),te=function(et,_e){this.title=et,this.icon=_e},ne=function(et){function _e(xe,Te,Me,Ae){var at=et.call(this,xe,Ae||'<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 at.colors=[],at.addTransparent=!1,at.colorBoxes=[],at.colors=Te,at.currentColor=Me,at.setCurrentColor=at.setCurrentColor.bind(at),at.getColorBox=at.getColorBox.bind(at),at}return Le(_e,et),_e.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 Ae=xe.getColorBox(Me);Te.appendChild(Ae),xe.colorBoxes.push(Ae)}),Te},_e.prototype.getColorBox=function(xe){var Te=this,Me=this.uiStyleSettings.toolbarHeight/4,Ae=this.uiStyleSettings.toolbarHeight-Me,at=document.createElement("div");at.style.display="inline-block",at.style.boxSizing="content-box",at.style.width=Ae-2+"px",at.style.height=Ae-2+"px",at.style.padding="1px",at.style.marginRight="2px",at.style.marginBottom="2px",at.style.borderWidth="2px",at.style.borderStyle="solid",at.style.borderRadius=(Ae+2)/2+"px",at.style.borderColor=xe===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",at.addEventListener("click",function(){Te.setCurrentColor(xe,at)});var Lt=document.createElement("div");return Lt.style.display="inline-block",Lt.style.width=Ae-2+"px",Lt.style.height=Ae-2+"px",Lt.style.backgroundColor=xe,Lt.style.borderRadius=Ae/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>`),at.appendChild(Lt),at},_e.prototype.setCurrentColor=function(xe,Te){var Me=this;this.currentColor=xe,this.colorBoxes.forEach(function(Ae){Ae.style.borderColor=Ae===Te?Me.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(xe)},_e}(te),he=function(){function et(_e,xe,Te){this._state="new",this._isSelected=!1,this._container=_e,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(_e){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(_e,xe){},et.prototype.dblClick=function(_e,xe){},et.prototype.manipulate=function(_e){},et.prototype.pointerUp=function(_e){this.stateChanged()},et.prototype.dispose=function(){},et.prototype.addMarkerVisualToContainer=function(_e){this.container.childNodes.length>0?this.container.insertBefore(_e,this.container.childNodes[0]):this.container.appendChild(_e)},et.prototype.getState=function(){return{typeName:et.typeName,state:this.state,notes:this.notes}},et.prototype.restoreState=function(_e){this._state=_e.state,this.notes=_e.notes},et.prototype.scale=function(_e,xe){},et.prototype.colorChanged=function(_e){this.onColorChanged&&this.onColorChanged(_e),this.stateChanged()},et.prototype.fillColorChanged=function(_e){this.onFillColorChanged&&this.onFillColorChanged(_e),this.stateChanged()},et.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var _e=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),_e.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(_e)&&this.onStateChanged(this)}},et.typeName="MarkerBase",et}(),se=function(){function et(){this.findGripByVisual=this.findGripByVisual.bind(this)}return et.prototype.findGripByVisual=function(_e){return this.topLeft.ownsTarget(_e)?this.topLeft:this.topCenter.ownsTarget(_e)?this.topCenter:this.topRight.ownsTarget(_e)?this.topRight:this.centerLeft.ownsTarget(_e)?this.centerLeft:this.centerRight.ownsTarget(_e)?this.centerRight:this.bottomLeft.ownsTarget(_e)?this.bottomLeft:this.bottomCenter.ownsTarget(_e)?this.bottomCenter:this.bottomRight.ownsTarget(_e)?this.bottomRight:void 0},et}(),ge=function(){function et(){this.GRIP_SIZE=10,this.visual=Fe.createGroup(),this.visual.appendChild(Fe.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Fe.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return et.prototype.ownsTarget=function(_e){return _e===this.visual||_e===this.visual.childNodes[0]||_e===this.visual.childNodes[1]},et}(),Se=function(){function et(){}return et.toITransformMatrix=function(_e){return{a:_e.a,b:_e.b,c:_e.c,d:_e.d,e:_e.e,f:_e.f}},et.toSVGMatrix=function(_e,xe){return _e.a=xe.a,_e.b=xe.b,_e.c=xe.c,_e.d=xe.d,_e.e=xe.e,_e.f=xe.f,_e},et}(),Ce=function(et){function _e(xe,Te,Me){var Ae=et.call(this,xe,Te,Me)||this;return Ae.left=0,Ae.top=0,Ae.width=0,Ae.height=0,Ae.defaultSize={x:50,y:20},Ae.offsetX=0,Ae.offsetY=0,Ae.rotationAngle=0,Ae.CB_DISTANCE=10,Ae._suppressMarkerCreateEvent=!1,Ae.container.transform.baseVal.appendItem(Fe.createTransform()),Ae.setupControlBox(),Ae}return Le(_e,et),Object.defineProperty(_e.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"visual",{get:function(){return this._visual},set:function(xe){this._visual=xe;var Te=Fe.createTransform();this._visual.transform.baseVal.appendItem(Te)},enumerable:!1,configurable:!0}),_e.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))},_e.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 Ae=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Ae.x-this.width/2,this.top=Ae.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var at=this.container.transform.baseVal.getItem(0);at.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(at,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},_e.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)},_e.prototype.moveVisual=function(xe){this.visual.style.transform="translate("+xe.x+"px, "+xe.y+"px)"},_e.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)},_e.prototype.resize=function(xe){var Te=this.manipulationStartLeft,Me=this.manipulationStartWidth,Ae=this.manipulationStartTop,at=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:Ae=this.manipulationStartTop+xe.y-this.manipulationStartY,at=this.manipulationStartHeight+this.manipulationStartTop-Ae;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:at=this.manipulationStartHeight+xe.y-this.manipulationStartY}Me>=0?(this.left=Te,this.width=Me):(this.left=Te+Me,this.width=-Me),at>=0?(this.top=Ae,this.height=at):(this.top=Ae+at,this.height=-at),this.setSize()},_e.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},_e.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()}},_e.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)},_e.prototype.rotatePoint=function(xe){if(this.rotationAngle===0)return xe;var Te=this.container.getCTM(),Me=Fe.createPoint(xe.x,xe.y);return{x:(Me=Me.matrixTransform(Te)).x,y:Me.y}},_e.prototype.unrotatePoint=function(xe){if(this.rotationAngle===0)return xe;var Te=this.container.getCTM();Te=Te.inverse();var Me=Fe.createPoint(xe.x,xe.y);return{x:(Me=Me.matrixTransform(Te)).x,y:Me.y}},_e.prototype.select=function(){et.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},_e.prototype.deselect=function(){et.prototype.deselect.call(this),this.controlBox.style.display="none"},_e.prototype.setupControlBox=function(){this.controlBox=Fe.createGroup();var xe=Fe.createTransform();xe.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(xe),this.container.appendChild(this.controlBox),this.controlRect=Fe.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=Fe.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"},_e.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()},_e.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()},_e.prototype.createGrip=function(){var xe=new ge;return xe.visual.transform.baseVal.appendItem(Fe.createTransform()),this.controlBox.appendChild(xe.visual),xe},_e.prototype.positionGrips=function(){var xe=this.controlGrips.topLeft.GRIP_SIZE,Te=-xe/2,Me=Te,Ae=(this.width+this.CB_DISTANCE)/2-xe/2,at=(this.height+this.CB_DISTANCE)/2-xe/2,Lt=this.height+this.CB_DISTANCE-xe/2,Pt=this.width+this.CB_DISTANCE-xe/2;this.positionGrip(this.controlGrips.topLeft.visual,Te,Me),this.positionGrip(this.controlGrips.topCenter.visual,Ae,Me),this.positionGrip(this.controlGrips.topRight.visual,Pt,Me),this.positionGrip(this.controlGrips.centerLeft.visual,Te,at),this.positionGrip(this.controlGrips.centerRight.visual,Pt,at),this.positionGrip(this.controlGrips.bottomLeft.visual,Te,Lt),this.positionGrip(this.controlGrips.bottomCenter.visual,Ae,Lt),this.positionGrip(this.controlGrips.bottomRight.visual,Pt,Lt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Ae,Me-3*this.CB_DISTANCE)},_e.prototype.positionGrip=function(xe,Te,Me){var Ae=xe.transform.baseVal.getItem(0);Ae.setTranslate(Te,Me),xe.transform.baseVal.replaceItem(Ae,0)},_e.prototype.hideControlBox=function(){this.controlBox.style.display="none"},_e.prototype.showControlBox=function(){this.controlBox.style.display=""},_e.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))},_e.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))},_e.prototype.scale=function(xe,Te){et.prototype.scale.call(this,xe,Te);var Me=this.rotatePoint({x:this.left,y:this.top}),Ae=this.unrotatePoint({x:Me.x*xe,y:Me.y*Te});this.left=Ae.x,this.top=Ae.y,this.width=this.width*xe,this.height=this.height*Te,this.adjustControlBox()},_e}(he),Oe=function(et){function _e(xe,Te,Me){var Ae=et.call(this,xe,Te,Me)||this;return Ae.fillColor="transparent",Ae.strokeColor="transparent",Ae.strokeWidth=0,Ae.strokeDasharray="",Ae.opacity=1,Ae.setStrokeColor=Ae.setStrokeColor.bind(Ae),Ae.setFillColor=Ae.setFillColor.bind(Ae),Ae.setStrokeWidth=Ae.setStrokeWidth.bind(Ae),Ae.setStrokeDasharray=Ae.setStrokeDasharray.bind(Ae),Ae.createVisual=Ae.createVisual.bind(Ae),Ae}return Le(_e,et),_e.prototype.ownsTarget=function(xe){return!(!et.prototype.ownsTarget.call(this,xe)&&xe!==this.visual)},_e.prototype.createVisual=function(){this.visual=Fe.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)},_e.prototype.pointerDown=function(xe,Te){et.prototype.pointerDown.call(this,xe,Te),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},_e.prototype.manipulate=function(xe){et.prototype.manipulate.call(this,xe)},_e.prototype.resize=function(xe){et.prototype.resize.call(this,xe),this.setSize()},_e.prototype.setSize=function(){et.prototype.setSize.call(this),Fe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},_e.prototype.pointerUp=function(xe){et.prototype.pointerUp.call(this,xe),this.setSize()},_e.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.visual&&Fe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(xe),this.stateChanged()},_e.prototype.setFillColor=function(xe){this.fillColor=xe,this.visual&&Fe.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},_e.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.visual&&Fe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},_e.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.visual&&Fe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},_e.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))},_e.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()},_e.prototype.scale=function(xe,Te){et.prototype.scale.call(this,xe,Te),this.setSize()},_e.title="Rectangle marker",_e}(Ce),Be=function(et){function _e(xe,Te,Me,Ae){var at=et.call(this,xe,Ae||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return at.widths=[],at.widthBoxes=[],at.widths=Te,at.currentWidth=Me,at.setCurrentWidth=at.setCurrentWidth.bind(at),at}return Le(_e,et),_e.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 Ae=document.createElement("div");Ae.style.display="flex",Ae.style.flexGrow="2",Ae.style.alignItems="center",Ae.style.justifyContent="space-between",Ae.style.padding="5px",Ae.style.borderWidth="2px",Ae.style.borderStyle="solid",Ae.style.borderColor=Me===xe.currentWidth?xe.uiStyleSettings.toolboxAccentColor:"transparent",Ae.addEventListener("click",function(){xe.setCurrentWidth(Me,Ae)}),Te.appendChild(Ae);var at=document.createElement("div");at.innerText=Me.toString(),at.style.marginRight="5px",Ae.appendChild(at);var Lt=document.createElement("div");Lt.style.minHeight="20px",Lt.style.flexGrow="2",Lt.style.display="flex",Lt.style.alignItems="center";var Pt=document.createElement("hr");Pt.style.minWidth="20px",Pt.style.border="0px",Pt.style.borderTop=Me+"px solid "+xe.uiStyleSettings.toolboxColor,Pt.style.flexGrow="2",Lt.appendChild(Pt),Ae.appendChild(Lt),xe.widthBoxes.push(Ae)}),Te},_e.prototype.setCurrentWidth=function(xe,Te){var Me=this;this.currentWidth=xe,this.widthBoxes.forEach(function(Ae){Ae.style.borderColor=Ae===Te?Me.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},_e}(te),Qe=function(et){function _e(xe,Te,Me,Ae){var at=et.call(this,xe,Ae||'<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 at.styles=[],at.styleBoxes=[],at.styles=Te,at.currentStyle=Me,at.setCurrentStyle=at.setCurrentStyle.bind(at),at}return Le(_e,et),_e.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 Ae=document.createElement("div");Ae.style.display="flex",Ae.style.alignItems="center",Ae.style.justifyContent="space-between",Ae.style.padding="5px",Ae.style.borderWidth="2px",Ae.style.borderStyle="solid",Ae.style.overflow="hidden",Ae.style.maxWidth=100/xe.styles.length-5+"%",Ae.style.borderColor=Me===xe.currentStyle?xe.uiStyleSettings.toolboxAccentColor:"transparent",Ae.addEventListener("click",function(){xe.setCurrentStyle(Me,Ae)}),Te.appendChild(Ae);var at=document.createElement("div");at.style.minHeight="20px",at.style.flexGrow="2",at.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>`;at.innerHTML=Lt,Ae.appendChild(at),xe.styleBoxes.push(Ae)}),Te},_e.prototype.setCurrentStyle=function(xe,Te){var Me=this;this.currentStyle=xe,this.styleBoxes.forEach(function(Ae){Ae.style.borderColor=Ae===Te?Me.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},_e}(te),ot=function(et){function _e(xe,Te,Me){var Ae=et.call(this,xe,Te,Me)||this;return Ae.strokeColor=Me.defaultColor,Ae.strokeWidth=Me.defaultStrokeWidth,Ae.strokeDasharray=Me.defaultStrokeDasharray,Ae.strokePanel=new ne("Line color",Me.defaultColorSet,Me.defaultColor),Ae.strokePanel.onColorChanged=Ae.setStrokeColor,Ae.strokeWidthPanel=new Be("Line width",Me.defaultStrokeWidths,Me.defaultStrokeWidth),Ae.strokeWidthPanel.onWidthChanged=Ae.setStrokeWidth,Ae.strokeStylePanel=new Qe("Line style",Me.defaultStrokeDasharrays,Me.defaultStrokeDasharray),Ae.strokeStylePanel.onStyleChanged=Ae.setStrokeDasharray,Ae}return Le(_e,et),Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var xe=et.prototype.getState.call(this);return xe.typeName=_e.typeName,xe},_e.typeName="FrameMarker",_e.title="Frame marker",_e.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',_e}(Oe),rt=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"},ft=function(et){function _e(xe,Te,Me){var Ae=et.call(this,xe,Te,Me)||this;return Ae.x1=0,Ae.y1=0,Ae.x2=0,Ae.y2=0,Ae.defaultLength=50,Ae.manipulationStartX=0,Ae.manipulationStartY=0,Ae.manipulationStartX1=0,Ae.manipulationStartY1=0,Ae.manipulationStartX2=0,Ae.manipulationStartY2=0,Ae.setupControlBox(),Ae}return Le(_e,et),_e.prototype.ownsTarget=function(xe){return!!et.prototype.ownsTarget.call(this,xe)||!(!this.grip1.ownsTarget(xe)&&!this.grip2.ownsTarget(xe))},_e.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")},_e.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)},_e.prototype.adjustVisual=function(){},_e.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)},_e.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()},_e.prototype.select=function(){et.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},_e.prototype.deselect=function(){et.prototype.deselect.call(this),this.controlBox.style.display="none"},_e.prototype.setupControlBox=function(){this.controlBox=Fe.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},_e.prototype.adjustControlBox=function(){this.positionGrips()},_e.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},_e.prototype.createGrip=function(){var xe=new ge;return xe.visual.transform.baseVal.appendItem(Fe.createTransform()),this.controlBox.appendChild(xe.visual),xe},_e.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)},_e.prototype.positionGrip=function(xe,Te,Me){var Ae=xe.transform.baseVal.getItem(0);Ae.setTranslate(Te,Me),xe.transform.baseVal.replaceItem(Ae,0)},_e.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},et.prototype.getState.call(this))},_e.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},_e.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()},_e}(he),bt=function(et){function _e(xe,Te,Me){var Ae=et.call(this,xe,Te,Me)||this;return Ae.strokeColor="transparent",Ae.strokeWidth=0,Ae.strokeDasharray="",Ae.setStrokeColor=Ae.setStrokeColor.bind(Ae),Ae.setStrokeWidth=Ae.setStrokeWidth.bind(Ae),Ae.setStrokeDasharray=Ae.setStrokeDasharray.bind(Ae),Ae.strokeColor=Me.defaultColor,Ae.strokeWidth=Me.defaultStrokeWidth,Ae.strokeDasharray=Me.defaultStrokeDasharray,Ae.strokePanel=new ne("Line color",Me.defaultColorSet,Me.defaultColor),Ae.strokePanel.onColorChanged=Ae.setStrokeColor,Ae.strokeWidthPanel=new Be("Line width",Me.defaultStrokeWidths,Me.defaultStrokeWidth),Ae.strokeWidthPanel.onWidthChanged=Ae.setStrokeWidth,Ae.strokeStylePanel=new Qe("Line style",Me.defaultStrokeDasharrays,Me.defaultStrokeDasharray),Ae.strokeStylePanel.onStyleChanged=Ae.setStrokeDasharray,Ae}return Le(_e,et),_e.prototype.ownsTarget=function(xe){return!(!et.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.selectorLine&&xe!==this.visibleLine)},_e.prototype.createVisual=function(){this.visual=Fe.createGroup(),this.selectorLine=Fe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Fe.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)},_e.prototype.pointerDown=function(xe,Te){et.prototype.pointerDown.call(this,xe,Te),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},_e.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()),Fe.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Fe.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Fe.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},_e.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.adjustVisual(),this.colorChanged(xe)},_e.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.adjustVisual()},_e.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var xe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},et.prototype.getState.call(this));return xe.typeName=_e.typeName,xe},_e.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()},_e.typeName="LineMarker",_e.title="Line marker",_e.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',_e}(ft),ut=function(et){function _e(xe,Te,Me,Ae){var at=et.call(this,xe,Ae||'<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 at.fonts=[],at.fontBoxes=[],at.fonts=Te,at.currentFont=Me,at.setCurrentFont=at.setCurrentFont.bind(at),at}return Le(_e,et),_e.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 Ae=document.createElement("div");Ae.style.display="inline-block",Ae.style.alignItems="center",Ae.style.justifyContent="space-between",Ae.style.padding="5px",Ae.style.borderWidth="2px",Ae.style.borderStyle="solid",Ae.style.overflow="hidden",Ae.style.maxWidth=100/xe.fonts.length-5+"%",Ae.style.borderColor=Me===xe.currentFont?xe.uiStyleSettings.toolboxAccentColor:"transparent",Ae.addEventListener("click",function(){xe.setCurrentFont(Me,Ae)}),Te.appendChild(Ae);var at=document.createElement("div");at.style.display="flex",at.style.minHeight="20px",at.style.flexGrow="2",at.style.fontFamily=Me,at.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",at.appendChild(Lt),Ae.appendChild(at),xe.fontBoxes.push(Ae)}),Te},_e.prototype.setCurrentFont=function(xe,Te){var Me=this;this.currentFont=xe,this.fontBoxes.forEach(function(Ae){Ae.style.borderColor=Ae===Te?Me.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},_e}(te),Tt=function(et){function _e(xe,Te,Me){var Ae=et.call(this,xe,Te,Me)||this;return Ae.color="transparent",Ae.padding=5,Ae.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Ae.text=Ae.DEFAULT_TEXT,Ae.isMoved=!1,Ae.color=Me.defaultColor,Ae.fontFamily=Me.defaultFontFamily,Ae.defaultSize={x:100,y:30},Ae.setColor=Ae.setColor.bind(Ae),Ae.setFont=Ae.setFont.bind(Ae),Ae.renderText=Ae.renderText.bind(Ae),Ae.sizeText=Ae.sizeText.bind(Ae),Ae.textEditDivClicked=Ae.textEditDivClicked.bind(Ae),Ae.showTextEditor=Ae.showTextEditor.bind(Ae),Ae.setSize=Ae.setSize.bind(Ae),Ae.positionTextEditor=Ae.positionTextEditor.bind(Ae),Ae.colorPanel=new ne("Color",Me.defaultColorSet,Me.defaultColor),Ae.colorPanel.onColorChanged=Ae.setColor,Ae.fontFamilyPanel=new ut("Font",Me.defaultFontFamilies,Me.defaultFontFamily),Ae.fontFamilyPanel.onFontChanged=Ae.setFont,Ae}return Le(_e,et),_e.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},_e.prototype.createVisual=function(){this.visual=Fe.createGroup(),this.bgRectangle=Fe.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Fe.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Fe.createTransform()),this.textElement.transform.baseVal.appendItem(Fe.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},_e.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")},_e.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(Fe.createTSpan(Te.trim()===""?" ":Te.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},_e.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,Ae=(1*this.height-this.height*this.padding*2/100)/xe.height;Te=Math.min(Me,Ae)}return Te},_e.prototype.getTextPosition=function(xe){var Te=this.textElement.getBBox(),Me=0,Ae=0;return Te.width>0&&Te.height>0&&(Me=(this.width-Te.width*xe)/2,Ae=this.height/2-Te.height*xe/2),{x:Me,y:Ae}},_e.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))},_e.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)},_e.prototype.resize=function(xe){et.prototype.resize.call(this,xe),this.isMoved=!0,this.setSize(),this.sizeText()},_e.prototype.setSize=function(){et.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Fe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Fe.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},_e.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},_e.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"),Ae=window.getSelection();if(!Ae.rangeCount)return!1;Ae.deleteFromDocument(),Ae.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")},_e.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(),Ae={x:Me.width*xe,y:Me.height*xe};Te.x-=Ae.x/2,Te.y-=Ae.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"}},_e.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()},_e.prototype.select=function(){et.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},_e.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),et.prototype.deselect.call(this)},_e.prototype.dblClick=function(xe,Te){et.prototype.dblClick.call(this,xe,Te),this.showTextEditor()},_e.prototype.setColor=function(xe){this.textElement&&Fe.setAttributes(this.textElement,[["fill",xe]]),this.color=xe,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(xe)},_e.prototype.setFont=function(xe){this.textElement&&Fe.setAttributes(this.textElement,[["font-family",xe]]),this.fontFamily=xe,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},_e.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},_e.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),_e.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=_e.typeName,xe},_e.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()},_e.prototype.scale=function(xe,Te){et.prototype.scale.call(this,xe,Te),this.setSize(),this.sizeText(),this.positionTextEditor()},_e.typeName="TextMarker",_e.title="Text marker",_e.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>',_e}(Ce),Dt=function(et){function _e(xe,Te,Me){var Ae=et.call(this,xe,Te,Me)||this;return Ae.color="transparent",Ae.lineWidth=3,Ae.drawing=!1,Ae.pixelRatio=1,Ae.color=Me.defaultColor,Ae.lineWidth=Me.defaultStrokeWidth,Ae.pixelRatio=Me.freehandPixelRatio,Ae.setColor=Ae.setColor.bind(Ae),Ae.addCanvas=Ae.addCanvas.bind(Ae),Ae.finishCreation=Ae.finishCreation.bind(Ae),Ae.setLineWidth=Ae.setLineWidth.bind(Ae),Ae.colorPanel=new ne("Color",Me.defaultColorSet,Me.defaultColor),Ae.colorPanel.onColorChanged=Ae.setColor,Ae.lineWidthPanel=new Be("Line width",Me.defaultStrokeWidths,Me.defaultStrokeWidth),Ae.lineWidthPanel.onWidthChanged=Ae.setLineWidth,Ae}return Le(_e,et),_e.prototype.ownsTarget=function(xe){return!(!et.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.drawingImage)},_e.prototype.createVisual=function(){this.visual=Fe.createGroup(),this.drawingImage=Fe.createImage(),this.visual.appendChild(this.drawingImage);var xe=Fe.createTransform();this.visual.transform.baseVal.appendItem(xe),this.addMarkerVisualToContainer(this.visual)},_e.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)},_e.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)},_e.prototype.resize=function(xe){et.prototype.resize.call(this,xe),Fe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Fe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},_e.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)},_e.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)},_e.prototype.select=function(){this.state==="creating"&&this.finishCreation(),et.prototype.select.call(this)},_e.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),et.prototype.deselect.call(this)},_e.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],Ae=Te[1],at=Te[2],Lt=Te[3],Pt=!1,Vt=0;Vt<this.canvasElement.height;Vt++)for(var It=0;It<this.canvasElement.width;It++)xe.data[Vt*this.canvasElement.width*4+4*It+3]>0&&(Pt=!0,Vt<Ae&&(Ae=Vt),It<Me&&(Me=It),Vt>Lt&&(Lt=Vt),It>at&&(at=It));if(Pt){this.left=Me/this.pixelRatio,this.top=Ae/this.pixelRatio,this.width=(at-Me)/this.pixelRatio,this.height=(Lt-Ae)/this.pixelRatio;var an=document.createElement("canvas");an.width=at-Me,an.height=Lt-Ae,an.getContext("2d").putImageData(this.canvasContext.getImageData(Me,Ae,at-Me,Lt-Ae),0,0),this.drawingImgUrl=an.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},_e.prototype.setDrawingImage=function(){Fe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Fe.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},_e.prototype.setColor=function(xe){this.color=xe,this.colorChanged(xe)},_e.prototype.setLineWidth=function(xe){this.lineWidth=xe},Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var xe=Object.assign({drawingImgUrl:this.drawingImgUrl},et.prototype.getState.call(this));return xe.typeName=_e.typeName,xe},_e.prototype.restoreState=function(xe){this.createVisual(),et.prototype.restoreState.call(this,xe),this.drawingImgUrl=xe.drawingImgUrl,this.setDrawingImage()},_e.prototype.scale=function(xe,Te){et.prototype.scale.call(this,xe,Te),this.setDrawingImage()},_e.typeName="FreehandMarker",_e.title="Freehand marker",_e.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>',_e}(Ce),en=function(et){function _e(xe,Te,Me){var Ae=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 Ae.typeBoxes=[],Ae.currentType=Te,Ae.setCurrentType=Ae.setCurrentType.bind(Ae),Ae}return Le(_e,et),_e.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 Pt="both";switch(Lt){case 0:Pt="both";break;case 1:Pt="start";break;case 2:Pt="end";break;case 3:Pt="none"}var Vt=document.createElement("div");if(Vt.style.display="flex",Vt.style.flexGrow="2",Vt.style.alignItems="center",Vt.style.justifyContent="space-between",Vt.style.padding="5px",Vt.style.borderWidth="2px",Vt.style.borderStyle="solid",Vt.style.borderColor=Pt===Ae.currentType?Ae.uiStyleSettings.toolboxAccentColor:"transparent",Vt.addEventListener("click",function(){xe.setCurrentType(Pt,Vt)}),Te.appendChild(Vt),Pt==="both"||Pt==="start"){var It=document.createElement("div");It.style.display="flex",It.style.alignItems="center",It.style.minHeight="20px",It.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="`+(Ae.uiStyleSettings!==void 0?Ae.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,It.style.marginLeft="5px",Vt.appendChild(It)}var an=document.createElement("div");an.style.display="flex",an.style.alignItems="center",an.style.minHeight="20px",an.style.flexGrow="2";var sn=document.createElement("hr");if(sn.style.minWidth="20px",sn.style.border="0px",sn.style.borderTop="3px solid "+(Ae.uiStyleSettings!==void 0?Ae.uiStyleSettings.toolboxColor:"#eeeeee"),sn.style.flexGrow="2",an.appendChild(sn),Vt.appendChild(an),Pt==="both"||Pt==="end"){var on=document.createElement("div");on.style.display="flex",on.style.alignItems="center",on.style.minHeight="20px",on.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="`+(Ae.uiStyleSettings!==void 0?Ae.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,on.style.marginRight="5px",Vt.appendChild(on)}Ae.typeBoxes.push(Vt)},Ae=this,at=0;at<4;at++)Me(at);return Te},_e.prototype.setCurrentType=function(xe,Te){var Me=this;this.currentType=xe,this.typeBoxes.forEach(function(Ae){Ae.style.borderColor=Ae===Te?Me.uiStyleSettings!==void 0?Me.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},_e}(te),Cn=function(et){function _e(xe,Te,Me){var Ae=et.call(this,xe,Te,Me)||this;return Ae.arrowType="end",Ae.arrowBaseHeight=10,Ae.arrowBaseWidth=10,Ae.getArrowPoints=Ae.getArrowPoints.bind(Ae),Ae.setArrowType=Ae.setArrowType.bind(Ae),Ae.arrowTypePanel=new en("Arrow type","end"),Ae.arrowTypePanel.onArrowTypeChanged=Ae.setArrowType,Ae}return Le(_e,et),_e.prototype.ownsTarget=function(xe){return!(!et.prototype.ownsTarget.call(this,xe)&&xe!==this.arrow1&&xe!==this.arrow2)},_e.prototype.getArrowPoints=function(xe,Te){var Me=this.arrowBaseWidth+2*this.strokeWidth,Ae=this.arrowBaseHeight+2*this.strokeWidth;return xe-Me/2+","+(Te+Ae/2)+" "+xe+","+(Te-Ae/2)+" "+(xe+Me/2)+","+(Te+Ae/2)},_e.prototype.createTips=function(){this.arrow1=Fe.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Fe.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Fe.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Fe.createTransform()),this.visual.appendChild(this.arrow2)},_e.prototype.pointerDown=function(xe,Te){et.prototype.pointerDown.call(this,xe,Te),this.state==="creating"&&this.createTips()},_e.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",Fe.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Fe.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)}},_e.prototype.setArrowType=function(xe){this.arrowType=xe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var xe=Object.assign({arrowType:this.arrowType},et.prototype.getState.call(this));return xe.typeName=_e.typeName,xe},_e.prototype.restoreState=function(xe){et.prototype.restoreState.call(this,xe);var Te=xe;this.arrowType=Te.arrowType,this.createTips(),this.adjustVisual()},_e.typeName="ArrowMarker",_e.title="Arrow marker",_e.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',_e}(bt),vn=function(et){function _e(xe,Te,Me){var Ae=et.call(this,xe,Te,Me)||this;return Ae.fillColor=Me.defaultFillColor,Ae.strokeWidth=0,Ae.fillPanel=new ne("Color",Me.defaultColorSet,Me.defaultFillColor),Ae.fillPanel.onColorChanged=Ae.setFillColor,Ae}return Le(_e,et),Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var xe=et.prototype.getState.call(this);return xe.typeName=_e.typeName,xe},_e.typeName="CoverMarker",_e.title="Cover marker",_e.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',_e}(Oe),pn=function(et){function _e(xe,Te,Me,Ae){var at=et.call(this,xe,Ae||'<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 at.opacities=[],at.opacityBoxes=[],at.opacities=Te,at.currentOpacity=Me,at.setCurrentOpacity=at.setCurrentOpacity.bind(at),at}return Le(_e,et),_e.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 Ae=document.createElement("div");Ae.style.display="flex",Ae.style.alignItems="center",Ae.style.justifyContent="center",Ae.style.padding="5px",Ae.style.borderWidth="2px",Ae.style.borderStyle="solid",Ae.style.borderColor=Me===xe.currentOpacity?xe.uiStyleSettings.toolboxAccentColor:"transparent",Ae.addEventListener("click",function(){xe.setCurrentOpacity(Me,Ae)}),Te.appendChild(Ae);var at=document.createElement("div");at.innerText=100*Me+"%",Ae.appendChild(at),xe.opacityBoxes.push(Ae)}),Te},_e.prototype.setCurrentOpacity=function(xe,Te){var Me=this;this.currentOpacity=xe,this.opacityBoxes.forEach(function(Ae){Ae.style.borderColor=Ae===Te?Me.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},_e}(te),mn=function(et){function _e(xe,Te,Me){var Ae=et.call(this,xe,Te,Me)||this;return Ae.setOpacity=Ae.setOpacity.bind(Ae),Ae.fillColor=Me.defaultHighlightColor,Ae.strokeWidth=0,Ae.opacity=Me.defaultHighlightOpacity,Ae.fillPanel=new ne("Color",Me.defaultColorSet,Ae.fillColor),Ae.fillPanel.onColorChanged=Ae.setFillColor,Ae.opacityPanel=new pn("Opacity",Me.defaultOpacitySteps,Ae.opacity),Ae.opacityPanel.onOpacityChanged=Ae.setOpacity,Ae}return Le(_e,et),_e.prototype.setOpacity=function(xe){this.opacity=xe,this.visual&&Fe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var xe=et.prototype.getState.call(this);return xe.typeName=_e.typeName,xe},_e.typeName="HighlightMarker",_e.title="Highlight marker",_e.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>',_e}(vn),Mt='<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>',nt=function(et){function _e(xe,Te,Me){var Ae=et.call(this,xe,Te,Me)||this;return Ae.bgColor="transparent",Ae.tipPosition={x:0,y:0},Ae.tipBase1Position={x:0,y:0},Ae.tipBase2Position={x:0,y:0},Ae.tipMoving=!1,Ae.color=Me.defaultStrokeColor,Ae.bgColor=Me.defaultFillColor,Ae.fontFamily=Me.defaultFontFamily,Ae.defaultSize={x:100,y:30},Ae.setBgColor=Ae.setBgColor.bind(Ae),Ae.getTipPoints=Ae.getTipPoints.bind(Ae),Ae.positionTip=Ae.positionTip.bind(Ae),Ae.setTipPoints=Ae.setTipPoints.bind(Ae),Ae.colorPanel=new ne("Text color",Me.defaultColorSet,Ae.color,Mt),Ae.colorPanel.onColorChanged=Ae.setColor,Ae.bgColorPanel=new ne("Fill color",Me.defaultColorSet,Ae.bgColor,ct),Ae.bgColorPanel.onColorChanged=Ae.setBgColor,Ae.fontFamilyPanel=new ut("Font",Me.defaultFontFamilies,Me.defaultFontFamily),Ae.fontFamilyPanel.onFontChanged=Ae.setFont,Ae.tipGrip=new ge,Ae.tipGrip.visual.transform.baseVal.appendItem(Fe.createTransform()),Ae.controlBox.appendChild(Ae.tipGrip.visual),Ae}return Le(_e,et),_e.prototype.ownsTarget=function(xe){return et.prototype.ownsTarget.call(this,xe)||this.tipGrip.ownsTarget(xe)||this.tip===xe},_e.prototype.createTip=function(){Fe.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Fe.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},_e.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)},_e.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()}},_e.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)},_e.prototype.setBgColor=function(xe){this.bgRectangle&&this.tip&&(Fe.setAttributes(this.bgRectangle,[["fill",xe]]),Fe.setAttributes(this.tip,[["fill",xe]])),this.bgColor=xe,this.fillColorChanged(xe)},_e.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},_e.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 Ae=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Ae<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?Ae<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?Ae<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}):Ae<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})},_e.prototype.resize=function(xe){et.prototype.resize.call(this,xe),this.positionTip()},_e.prototype.positionTip=function(){Fe.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(_e.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),_e.prototype.select=function(){this.positionTip(),et.prototype.select.call(this)},_e.prototype.getState=function(){var xe=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},et.prototype.getState.call(this));return xe.typeName=_e.typeName,xe},_e.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()},_e.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()},_e.typeName="CalloutMarker",_e.title="Callout marker",_e.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>',_e}(Tt),dn=function(et){function _e(xe,Te,Me){var Ae=et.call(this,xe,Te,Me)||this;return Ae.fillColor="transparent",Ae.strokeColor="transparent",Ae.strokeWidth=0,Ae.strokeDasharray="",Ae.opacity=1,Ae.strokeColor=Me.defaultColor,Ae.strokeWidth=Me.defaultStrokeWidth,Ae.strokeDasharray=Me.defaultStrokeDasharray,Ae.fillColor=Me.defaultFillColor,Ae.setStrokeColor=Ae.setStrokeColor.bind(Ae),Ae.setFillColor=Ae.setFillColor.bind(Ae),Ae.setStrokeWidth=Ae.setStrokeWidth.bind(Ae),Ae.setStrokeDasharray=Ae.setStrokeDasharray.bind(Ae),Ae.setOpacity=Ae.setOpacity.bind(Ae),Ae.createVisual=Ae.createVisual.bind(Ae),Ae.strokePanel=new ne("Line color",Ye(Me.defaultColorSet,["transparent"]),Me.defaultColor),Ae.strokePanel.onColorChanged=Ae.setStrokeColor,Ae.fillPanel=new ne("Fill color",Ye(Me.defaultColorSet,["transparent"]),Ae.fillColor,ct),Ae.fillPanel.onColorChanged=Ae.setFillColor,Ae.strokeWidthPanel=new Be("Line width",Me.defaultStrokeWidths,Me.defaultStrokeWidth),Ae.strokeWidthPanel.onWidthChanged=Ae.setStrokeWidth,Ae.strokeStylePanel=new Qe("Line style",Me.defaultStrokeDasharrays,Me.defaultStrokeDasharray),Ae.strokeStylePanel.onStyleChanged=Ae.setStrokeDasharray,Ae.opacityPanel=new pn("Opacity",Me.defaultOpacitySteps,Ae.opacity),Ae.opacityPanel.onOpacityChanged=Ae.setOpacity,Ae}return Le(_e,et),_e.prototype.ownsTarget=function(xe){return!(!et.prototype.ownsTarget.call(this,xe)&&xe!==this.visual)},_e.prototype.createVisual=function(){this.visual=Fe.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)},_e.prototype.pointerDown=function(xe,Te){et.prototype.pointerDown.call(this,xe,Te),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},_e.prototype.manipulate=function(xe){et.prototype.manipulate.call(this,xe)},_e.prototype.resize=function(xe){et.prototype.resize.call(this,xe),this.setSize()},_e.prototype.setSize=function(){et.prototype.setSize.call(this),Fe.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},_e.prototype.pointerUp=function(xe){et.prototype.pointerUp.call(this,xe),this.setSize()},_e.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.visual&&Fe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(xe),this.stateChanged()},_e.prototype.setFillColor=function(xe){this.fillColor=xe,this.visual&&Fe.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(xe),this.stateChanged()},_e.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.visual&&Fe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},_e.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.visual&&Fe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},_e.prototype.setOpacity=function(xe){this.opacity=xe,this.visual&&Fe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),_e.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=_e.typeName,xe},_e.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()},_e.prototype.scale=function(xe,Te){et.prototype.scale.call(this,xe,Te),this.setSize()},_e.typeName="EllipseMarker",_e.title="Ellipse marker",_e.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>',_e}(Ce),En=function(et){function _e(xe,Te,Me){return et.call(this,xe,Te,Me)||this}return Le(_e,et),Object.defineProperty(_e.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),_e.prototype.ownsTarget=function(xe){return!(!et.prototype.ownsTarget.call(this,xe)&&xe!==this.tip1&&xe!==this.tip2)},_e.prototype.createTips=function(){this.tip1=Fe.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(Fe.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Fe.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(Fe.createTransform()),this.visual.appendChild(this.tip2)},_e.prototype.pointerDown=function(xe,Te){et.prototype.pointerDown.call(this,xe,Te),this.state==="creating"&&this.createTips()},_e.prototype.adjustVisual=function(){if(et.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Fe.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()]]),Fe.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(_e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var xe=et.prototype.getState.call(this);return xe.typeName=_e.typeName,xe},_e.prototype.restoreState=function(xe){et.prototype.restoreState.call(this,xe),this.createTips(),this.adjustVisual()},_e.typeName="MeasurementMarker",_e.title="Measurement marker",_e.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>',_e}(bt),Nt=function(et){function _e(xe,Te,Me){var Ae=et.call(this,xe,Te,Me)||this;return Ae.strokePanel.colors=Me.defaultColorSet,Ae.fillColor="transparent",Ae}return Le(_e,et),Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var xe=et.prototype.getState.call(this);return xe.typeName=_e.typeName,xe},_e.typeName="EllipseFrameMarker",_e.title="Ellipse frame marker",_e.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>',_e}(dn),cn=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(_e){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(_e)||(this.undoStack.push(_e),JSON.stringify(this.lastRedoStep)!==JSON.stringify(_e)&&this.redoStack.splice(0,this.redoStack.length))},et.prototype.replaceLastUndoStep=function(_e){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=_e)},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 _e=this.undoStack.pop();return _e!==void 0&&this.redoStack.push(_e),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 _e(xe,Te,Me){var Ae=et.call(this,xe,Te,Me)||this;return Ae.strokeColor="transparent",Ae.strokeWidth=0,Ae.strokeDasharray="",Ae.curveX=0,Ae.curveY=0,Ae.manipulationStartCurveX=0,Ae.manipulationStartCurveY=0,Ae.setStrokeColor=Ae.setStrokeColor.bind(Ae),Ae.setStrokeWidth=Ae.setStrokeWidth.bind(Ae),Ae.setStrokeDasharray=Ae.setStrokeDasharray.bind(Ae),Ae.positionGrips=Ae.positionGrips.bind(Ae),Ae.addControlGrips=Ae.addControlGrips.bind(Ae),Ae.adjustVisual=Ae.adjustVisual.bind(Ae),Ae.setupControlBox=Ae.setupControlBox.bind(Ae),Ae.resize=Ae.resize.bind(Ae),Ae.strokeColor=Me.defaultColor,Ae.strokeWidth=Me.defaultStrokeWidth,Ae.strokeDasharray=Me.defaultStrokeDasharray,Ae.strokePanel=new ne("Line color",Me.defaultColorSet,Me.defaultColor),Ae.strokePanel.onColorChanged=Ae.setStrokeColor,Ae.strokeWidthPanel=new Be("Line width",Me.defaultStrokeWidths,Me.defaultStrokeWidth),Ae.strokeWidthPanel.onWidthChanged=Ae.setStrokeWidth,Ae.strokeStylePanel=new Qe("Line style",Me.defaultStrokeDasharrays,Me.defaultStrokeDasharray),Ae.strokeStylePanel.onStyleChanged=Ae.setStrokeDasharray,Ae}return Le(_e,et),_e.prototype.ownsTarget=function(xe){return!(!et.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.selectorCurve&&xe!==this.visibleCurve&&!this.curveGrip.ownsTarget(xe))},_e.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},_e.prototype.createVisual=function(){this.visual=Fe.createGroup(),this.selectorCurve=Fe.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Fe.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)},_e.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")},_e.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Fe.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Fe.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Fe.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},_e.prototype.setupControlBox=function(){et.prototype.setupControlBox.call(this),this.curveControlLine1=Fe.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Fe.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)},_e.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,et.prototype.addControlGrips.call(this)},_e.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()))},_e.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)},_e.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)},_e.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.adjustVisual(),this.colorChanged(xe)},_e.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.adjustVisual()},_e.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.adjustVisual()},_e.prototype.scale=function(xe,Te){this.curveX=this.curveX*xe,this.curveY=this.curveY*Te,et.prototype.scale.call(this,xe,Te)},Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),_e.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=_e.typeName,xe},_e.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()},_e.typeName="CurveMarker",_e.title="Curve marker",_e.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>',_e}(ft),_n=function(et){function _e(xe,Te,Me){var Ae=et.call(this,xe,Te,Me)||this;return Ae.fillColor="transparent",Ae.strokeColor="transparent",Ae.strokeWidth=0,Ae.strokeDasharray="",Ae.textColor="transparent",Ae.fontSize="1rem",Ae.isMoved=!1,Ae.captionText="Caption",Ae.PADDING=5,Ae.captionBoxWidth=0,Ae.captionBoxHeight=0,Ae.strokeColor=Me.defaultColor,Ae.strokeWidth=Me.defaultStrokeWidth,Ae.strokeDasharray=Me.defaultStrokeDasharray,Ae.fillColor=Me.defaultFillColor,Ae.textColor=Me.defaultStrokeColor,Ae.fontFamily=Me.defaultFontFamily,Ae.fontSize=Me.defaultCaptionFontSize,Ae.captionText=Me.defaultCaptionText,Ae.setStrokeColor=Ae.setStrokeColor.bind(Ae),Ae.setFillColor=Ae.setFillColor.bind(Ae),Ae.setStrokeWidth=Ae.setStrokeWidth.bind(Ae),Ae.setStrokeDasharray=Ae.setStrokeDasharray.bind(Ae),Ae.createVisual=Ae.createVisual.bind(Ae),Ae.sizeCaption=Ae.sizeCaption.bind(Ae),Ae.setCaptionText=Ae.setCaptionText.bind(Ae),Ae.showTextEditor=Ae.showTextEditor.bind(Ae),Ae.positionTextEditor=Ae.positionTextEditor.bind(Ae),Ae.finishTextEditing=Ae.finishTextEditing.bind(Ae),Ae.setFont=Ae.setFont.bind(Ae),Ae.setTextColor=Ae.setTextColor.bind(Ae),Ae.strokePanel=new ne("Line color",Ye(Me.defaultColorSet,["transparent"]),Ae.strokeColor),Ae.strokePanel.onColorChanged=Ae.setStrokeColor,Ae.fillPanel=new ne("Fill color",Ye(Me.defaultColorSet,["transparent"]),Ae.fillColor,ct),Ae.fillPanel.onColorChanged=Ae.setFillColor,Ae.strokeWidthPanel=new Be("Line width",Me.defaultStrokeWidths,Me.defaultStrokeWidth),Ae.strokeWidthPanel.onWidthChanged=Ae.setStrokeWidth,Ae.strokeStylePanel=new Qe("Line style",Me.defaultStrokeDasharrays,Me.defaultStrokeDasharray),Ae.strokeStylePanel.onStyleChanged=Ae.setStrokeDasharray,Ae.fontFamilyPanel=new ut("Font",Me.defaultFontFamilies,Me.defaultFontFamily),Ae.fontFamilyPanel.onFontChanged=Ae.setFont,Ae.textColorPanel=new ne("Text color",Me.defaultColorSet,Ae.textColor,Mt),Ae.textColorPanel.onColorChanged=Ae.setTextColor,Ae}return Le(_e,et),_e.prototype.ownsTarget=function(xe){return!(!et.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.frame&&xe!==this.captionBg&&xe!==this.captionElement)},_e.prototype.createVisual=function(){this.visual=Fe.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Fe.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Fe.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=Fe.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()},_e.prototype.setCaptionText=function(xe){this.captionText=xe,this.captionElement.textContent=this.captionText,this.sizeCaption()},_e.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")},_e.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)},_e.prototype.resize=function(xe){et.prototype.resize.call(this,xe),this.setSize()},_e.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),Fe.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')"]]),Fe.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')"]])},_e.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()},_e.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"))},_e.prototype.finishTextEditing=function(xe){this.setCaptionText(xe.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},_e.prototype.setFont=function(xe){this.captionElement&&Fe.setAttributes(this.captionElement,[["font-family",xe]]),this.fontFamily=xe,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},_e.prototype.setTextColor=function(xe){this.captionElement&&Fe.setAttributes(this.captionElement,[["fill",xe]]),this.textColor=xe,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},_e.prototype.setSize=function(){et.prototype.setSize.call(this),Fe.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},_e.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},_e.prototype.dblClick=function(xe,Te){et.prototype.dblClick.call(this,xe,Te),this.showTextEditor()},_e.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.frame&&Fe.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(xe),this.stateChanged()},_e.prototype.setFillColor=function(xe){this.fillColor=xe,this.captionBg&&Fe.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(xe),this.stateChanged()},_e.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.frame&&Fe.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},_e.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.frame&&Fe.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),_e.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},_e.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()},_e.prototype.scale=function(xe,Te){et.prototype.scale.call(this,xe,Te),this.setSize()},_e.typeName="CaptionFrameMarker",_e.title="Caption frame marker",_e.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>',_e}(Ce),kn=function(){function et(_e,xe){xe===void 0&&(xe=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=_e,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}(),si=function(et){function _e(xe,Te,Me){var Ae=et.call(this,xe,!1)||this;return Ae.dataUrl=Te,Ae.state=Me,Ae}return Le(_e,et),_e}(kn),kt=function(et){function _e(xe,Te,Me){Me===void 0&&(Me=!1);var Ae=et.call(this,xe,Me)||this;return Ae.marker=Te,Ae}return Le(_e,et),_e}(kn),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(_e,xe){this[_e].push(xe)},et.prototype.removeEventListener=function(_e,xe){var Te=this[_e].indexOf(xe);Te>-1&&this[_e].splice(Te,1)},et}(),hi=function(){function et(_e){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new rt,this._isOpen=!1,this.undoRedoManager=new cn,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 Je(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=_e,this.targetRoot=document.body,this.width=_e.clientWidth,this.height=_e.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[ot,Dt,Cn,Tt,Nt,dn,mn,nt,En,vn,bt,ln,_n]},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[ot,Dt,Cn,Tt,dn,mn,nt]},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"BASIC_MARKER_TYPES",{get:function(){return[ot,Dt,Cn,Tt,mn]},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(_e){var xe=this;this._availableMarkerTypes.splice(0),_e.forEach(function(Te){if(typeof Te=="string"){var Me=xe.ALL_MARKER_TYPES.find(function(Ae){return Ae.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(_e){this._zoomLevel=_e,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 _e=this;this.styles.styleSheetRoot===void 0&&qe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=qe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(xe){return xe(new kn(_e))})},et.prototype.render=function(){return De(this,void 0,void 0,function(){var _e;return Ie(this,function(xe){switch(xe.label){case 0:return this.setCurrentMarker(),(_e=new Xe).naturalSize=this.renderAtNaturalSize,_e.imageType=this.renderImageType,_e.imageQuality=this.renderImageQuality,_e.markersOnly=this.renderMarkersOnly,_e.width=this.renderWidth,_e.height=this.renderHeight,[4,_e.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return xe.sent(),[4,_e.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,xe.sent()]}})})},et.prototype.close=function(_e){var xe=this;if(_e===void 0&&(_e=!1),this.isOpen){var Te=!1;_e||this.eventListeners.beforeclose.forEach(function(Me){var Ae=new kn(xe,!0);Me(Ae),Ae.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 kn(xe))}),this.detachEvents(),this._isOpen=!1)}},et.prototype.addMarkersToToolbar=function(){for(var _e,xe=[],Te=0;Te<arguments.length;Te++)xe[Te]=arguments[Te];(_e=this._availableMarkerTypes).push.apply(_e,xe)},et.prototype.addRenderEventListener=function(_e){this.addEventListener("render",function(xe){_e(xe.dataUrl,xe.state)})},et.prototype.removeRenderEventListener=function(_e){},et.prototype.addCloseEventListener=function(_e){this.addEventListener("close",function(){_e()})},et.prototype.removeCloseEventListener=function(_e){},et.prototype.setupResizeObserver=function(){var _e=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){_e.resize(_e.target.clientWidth,_e.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return _e.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},et.prototype.onPopupTargetResize=function(){var _e=1*this.target.clientWidth/this.target.clientHeight,xe=this.editorCanvas.clientWidth/_e>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*_e:this.editorCanvas.clientWidth,Te=xe<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/_e;this.resize(xe,Te)},et.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},et.prototype.resize=function(_e,xe){this._isResizing=!0;var Te=_e/this.imageWidth,Me=xe/this.imageHeight;this.imageWidth=Math.round(_e),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(_e,xe){var Te,Me=this;this._currentMarker&&this._currentMarker instanceof Tt?this._currentMarker.scale(_e,xe):(Te=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Ae){Ae!==Me._currentMarker&&Ae.scale(_e,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 _e=this.editingTarget.getBoundingClientRect(),xe=this.editorCanvas.getBoundingClientRect();this.left=_e.left-xe.left,this.top=_e.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 _e,xe=[],Te=0;Te<arguments.length;Te++)xe[Te]=arguments[Te];this.defs=Fe.createDefs(),this.addDefsToImage(),(_e=this.defs).append.apply(_e,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 _e=document.createElement("a");_e.href="https://markerjs.com/",_e.target="_blank",_e.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>',_e.title="Powered by marker.js",_e.style.display="grid",_e.style.alignItems="center",_e.style.justifyItems="center",_e.style.padding="3px",_e.style.width="20px",_e.style.height="20px",this.logoUI.appendChild(_e),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 _e=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=_e+"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 Ct(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 je(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(_e){this.markerImage.removeChild(_e.container),this.markers.indexOf(_e)>-1&&this.markers.splice(this.markers.indexOf(_e),1),_e.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(_e,xe){if(_e==="marker"&&xe!==void 0)this.createNewMarker(xe);else if(_e==="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 _e=this;if(this._currentMarker!==void 0){var xe=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Me){var Ae=new kt(_e,_e._currentMarker,!0);Me(Ae),Ae.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(_e,Te))})}}},et.prototype.clear=function(){var _e=this,xe=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(at){var Lt=new kt(_e,void 0,!0);at(Lt),Lt.defaultPrevented&&(xe=!0)}),!xe)){this.setCurrentMarker();for(var Te=function(at){var Lt=Me.markers[at];Me.setCurrentMarker(Me.markers[at]),Me._currentMarker.dispose(),Me.markerImage.removeChild(Me._currentMarker.container),Me.markers.splice(Me.markers.indexOf(Me._currentMarker),1),Me.eventListeners.markerdelete.forEach(function(Pt){return Pt(new kt(_e,Lt))})},Me=this,Ae=this.markers.length-1;Ae>=0;Ae--)Te(Ae);this.addUndoStep()}},Object.defineProperty(et.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),et.prototype.showNotesEditor=function(){var _e;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=(_e=this._currentMarker.notes)!==null&&_e!==void 0?_e:"",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 _e=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(Ae){return Ae(new kn(_e))})}else this.undoRedoManager.replaceLastUndoStep(xe),this.eventListeners.statechange.forEach(function(Ae){return Ae(new kn(_e))})}},et.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},et.prototype.undoStep=function(){var _e=this,xe=this.undoRedoManager.undo();xe!==void 0&&(this.restoreState(xe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Te){return Te(new kn(_e))}))},et.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},et.prototype.redoStep=function(){var _e=this,xe=this.undoRedoManager.redo();xe!==void 0&&(this.restoreState(xe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Te){return Te(new kn(_e))}))},et.prototype.stepZoom=function(){var _e=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=_e<this.zoomSteps.length-1?this.zoomSteps[_e+1]:this.zoomSteps[0]},et.prototype.panTo=function(_e){this.contentDiv.scrollBy({left:this.prevPanPoint.x-_e.x,top:this.prevPanPoint.y-_e.y}),this.prevPanPoint=_e},et.prototype.startRenderAndClose=function(){return De(this,void 0,void 0,function(){var _e,xe,Te=this;return Ie(this,function(Me){switch(Me.label){case 0:return[4,this.render()];case 1:return _e=Me.sent(),xe=this.getState(),this.eventListeners.render.forEach(function(Ae){return Ae(new si(Te,_e,xe))}),this.close(!0),[2]}})})},et.prototype.getState=function(_e){_e===!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(_e){var xe=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);_e.markers.forEach(function(Te){var Me=xe._availableMarkerTypes.find(function(at){return at.typeName===Te.typeName});if(Me!==void 0){var Ae=xe.addNewMarker(Me);Ae.restoreState(Te),xe.markers.push(Ae)}}),_e.width&&_e.height&&(_e.width!==this.imageWidth||_e.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/_e.width,this.imageHeight/_e.height),this.eventListeners.restorestate.forEach(function(Te){return Te(new kn(xe))})},et.prototype.addNewMarker=function(_e){var xe=Fe.createGroup();return this.markerImage.appendChild(xe),new _e(xe,this.overlayContainer,this.settings)},et.prototype.createNewMarker=function(_e){var xe,Te=this;(xe=typeof _e=="string"?this._availableMarkerTypes.find(function(Me){return Me.typeName===_e}):_e)&&(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(_e){var xe=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(_e),this.setCurrentMarker(_e),_e instanceof Dt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Dt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Te){return Te(new kt(xe,xe._currentMarker))})},et.prototype.colorChanged=function(_e){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=_e,this.settings.defaultStrokeColor=_e)},et.prototype.fillColorChanged=function(_e){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=_e)},et.prototype.markerStateChanged=function(_e){var xe=this;this.eventListeners.markerchange.forEach(function(Te){return Te(new kt(xe,_e))})},et.prototype.setCurrentMarker=function(_e){var xe=this;this._currentMarker!==_e&&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=_e,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(_e){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||_e.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(_e.target)});xe!==void 0?(this.setCurrentMarker(xe),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(_e.clientX,_e.clientY),_e.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:_e.clientX,y:_e.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(_e.clientX,_e.clientY))},et.prototype.onDblClick=function(_e){if(this._isFocused||this.focus(),this.mode==="select"){var xe=this.markers.find(function(Te){return Te.ownsTarget(_e.target)});xe!==void 0&&xe!==this._currentMarker&&this.setCurrentMarker(xe),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(_e.clientX,_e.clientY),_e.target):this.setCurrentMarker()}},et.prototype.onPointerMove=function(_e){this.touchPoints!==1&&_e.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||_e.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(_e.clientX,_e.clientY)):this.zoomLevel>1&&this.panTo({x:_e.clientX,y:_e.clientY}))},et.prototype.onPointerUp=function(_e){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(_e.clientX,_e.clientY)),this.isDragging=!1,this.addUndoStep()},et.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},et.prototype.onKeyUp=function(_e){this._currentMarker===void 0||this.notesArea!==void 0||_e.key!=="Delete"&&_e.key!=="Backspace"||this.deleteSelectedMarker()},et.prototype.clientToLocalCoordinates=function(_e,xe){var Te=this.markerImage.getBoundingClientRect();return{x:(_e-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 _e=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=_e+"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(_e){Ve.addKey(_e)},et.prototype.addEventListener=function(_e,xe){this.eventListeners.addEventListener(_e,xe)},et.prototype.removeEventListener=function(_e,xe){this.eventListeners.removeEventListener(_e,xe)},et.prototype.renderState=function(_e){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(_e),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(et.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),et.prototype.focus=function(){var _e=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 kn(_e))}))},et.prototype.blur=function(){var _e=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(xe){return xe(new kn(_e))}))},et.instanceCounter=0,et}()},67842:function(Ge){"use strict";var be,de=59;Ge.exports=le;function le(Le){var De="&"+Le+";",Ie;return be=be||document.createElement("i"),be.innerHTML=De,Ie=be.textContent,Ie.charCodeAt(Ie.length-1)===de&&Le!=="semi"||Ie===De?!1:Ie}},12256:function(Ge,be,de){"use strict";var le=de(47854),Le=de(80501),De=de(22347),Ie=de(65207),Ye=de(21127),Fe=de(67842);Ge.exports=mn;var Ve={}.hasOwnProperty,Xe=String.fromCharCode,qe=Function.prototype,Je={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},mt=9,st=10,Ct=12,je=32,te=38,ne=59,he=60,se=61,ge=35,Se=88,Ce=120,Oe=65533,Be="named",Qe="hexadecimal",ot="decimal",rt={};rt[Qe]=16,rt[ot]=10;var ft={};ft[Be]=Ye,ft[ot]=De,ft[Qe]=Ie;var bt=1,ut=2,Tt=3,Dt=4,en=5,Cn=6,vn=7,pn={};pn[bt]="Named character references must be terminated by a semicolon",pn[ut]="Numeric character references must be terminated by a semicolon",pn[Tt]="Named character references cannot be empty",pn[Dt]="Numeric character references cannot be empty",pn[en]="Named character references must be known",pn[Cn]="Numeric character references cannot be disallowed",pn[vn]="Numeric character references cannot be outside the permissible Unicode range";function mn(dn,En){var Nt={},cn,ln;En||(En={});for(ln in Je)cn=En[ln],Nt[ln]=cn==null?Je[ln]:cn;return(Nt.position.indent||Nt.position.start)&&(Nt.indent=Nt.position.indent||[],Nt.position=Nt.position.start),Mt(dn,Nt)}function Mt(dn,En){var Nt=En.additional,cn=En.nonTerminated,ln=En.text,_n=En.reference,kn=En.warning,si=En.textContext,kt=En.referenceContext,Kn=En.warningContext,hi=En.position,et=En.indent||[],_e=dn.length,xe=0,Te=-1,Me=hi.column||1,Ae=hi.line||1,at="",Lt=[],Pt,Vt,It,an,sn,on,bn,un,zt,xn,fn,An,nn,ci,zn,yt,Fn,Pn,Ht;for(typeof Nt=="string"&&(Nt=Nt.charCodeAt(0)),yt=fi(),un=kn?zi:qe,xe--,_e++;++xe<_e;)if(sn===st&&(Me=et[Te]||1),sn=dn.charCodeAt(xe),sn===te){if(bn=dn.charCodeAt(xe+1),bn===mt||bn===st||bn===Ct||bn===je||bn===te||bn===he||bn!==bn||Nt&&bn===Nt){at+=Xe(sn),Me++;continue}for(nn=xe+1,An=nn,Ht=nn,bn===ge?(Ht=++An,bn=dn.charCodeAt(Ht),bn===Se||bn===Ce?(ci=Qe,Ht=++An):ci=ot):ci=Be,Pt="",fn="",an="",zn=ft[ci],Ht--;++Ht<_e&&(bn=dn.charCodeAt(Ht),!!zn(bn));)an+=Xe(bn),ci===Be&&Ve.call(le,an)&&(Pt=an,fn=le[an]);It=dn.charCodeAt(Ht)===ne,It&&(Ht++,Vt=ci===Be?Fe(an):!1,Vt&&(Pt=an,fn=Vt)),Pn=1+Ht-nn,!It&&!cn||(an?ci===Be?(It&&!fn?un(en,1):(Pt!==an&&(Ht=An+Pt.length,Pn=1+Ht-An,It=!1),It||(zt=Pt?bt:Tt,En.attribute?(bn=dn.charCodeAt(Ht),bn===se?(un(zt,Pn),fn=null):Ye(bn)?fn=null:un(zt,Pn)):un(zt,Pn))),on=fn):(It||un(ut,Pn),on=parseInt(an,rt[ci]),ct(on)?(un(vn,Pn),on=Xe(Oe)):on in Le?(un(Cn,Pn),on=Le[on]):(xn="",nt(on)&&un(Cn,Pn),on>65535&&(on-=65536,xn+=Xe(on>>>10|55296),on=56320|on&1023),on=xn+Xe(on))):ci!==Be&&un(Dt,Pn)),on?(Li(),yt=fi(),xe=Ht-1,Me+=Ht-nn+1,Lt.push(on),Fn=fi(),Fn.offset++,_n&&_n.call(kt,on,{start:yt,end:Fn},dn.slice(nn-1,Ht)),yt=Fn):(an=dn.slice(nn-1,Ht),at+=an,Me+=an.length,xe=Ht-1)}else sn===10&&(Ae++,Te++,Me=0),sn===sn?(at+=Xe(sn),Me++):Li();return Lt.join("");function fi(){return{line:Ae,column:Me,offset:xe+(hi.offset||0)}}function zi(Dn,qi){var Ui=fi();Ui.column+=qi,Ui.offset+=qi,kn.call(Kn,pn[Dn],Ui,Dn)}function Li(){at&&(Lt.push(at),ln&&ln.call(si,at,{start:yt,end:fi()}),at="")}}function ct(dn){return dn>=55296&&dn<=57343||dn>1114111}function nt(dn){return dn>=1&&dn<=8||dn===11||dn>=13&&dn<=31||dn>=127&&dn<=159||dn>=64976&&dn<=65007||(dn&65535)===65535||(dn&65535)===65534}},68398:function(Ge,be,de){var le=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{};var Le=function(De){var Ie=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,Ye=0,Fe={},Ve={manual:De.Prism&&De.Prism.manual,disableWorkerMessageHandler:De.Prism&&De.Prism.disableWorkerMessageHandler,util:{encode:function se(ge){return ge instanceof Xe?new Xe(ge.type,se(ge.content),ge.alias):Array.isArray(ge)?ge.map(se):ge.replace(/&/g,"&amp;").replace(/</g,"&lt;").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 Ce,Oe;switch(Ve.util.type(ge)){case"Object":if(Oe=Ve.util.objId(ge),Se[Oe])return Se[Oe];Ce={},Se[Oe]=Ce;for(var Be in ge)ge.hasOwnProperty(Be)&&(Ce[Be]=se(ge[Be],Se));return Ce;case"Array":return Oe=Ve.util.objId(ge),Se[Oe]?Se[Oe]:(Ce=[],Se[Oe]=Ce,ge.forEach(function(Qe,ot){Ce[ot]=se(Qe,Se)}),Ce);default:return ge}},getLanguage:function(se){for(;se;){var ge=Ie.exec(se.className);if(ge)return ge[1].toLowerCase();se=se.parentElement}return"none"},setLanguage:function(se,ge){se.className=se.className.replace(RegExp(Ie,"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(Ce){var se=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(Ce.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 Ce="no-"+ge;se;){var Oe=se.classList;if(Oe.contains(ge))return!0;if(Oe.contains(Ce))return!1;se=se.parentElement}return!!Se}},languages:{plain:Fe,plaintext:Fe,text:Fe,txt:Fe,extend:function(se,ge){var Se=Ve.util.clone(Ve.languages[se]);for(var Ce in ge)Se[Ce]=ge[Ce];return Se},insertBefore:function(se,ge,Se,Ce){Ce=Ce||Ve.languages;var Oe=Ce[se],Be={};for(var Qe in Oe)if(Oe.hasOwnProperty(Qe)){if(Qe==ge)for(var ot in Se)Se.hasOwnProperty(ot)&&(Be[ot]=Se[ot]);Se.hasOwnProperty(Qe)||(Be[Qe]=Oe[Qe])}var rt=Ce[se];return Ce[se]=Be,Ve.languages.DFS(Ve.languages,function(ft,bt){bt===rt&&ft!=se&&(this[ft]=Be)}),Be},DFS:function se(ge,Se,Ce,Oe){Oe=Oe||{};var Be=Ve.util.objId;for(var Qe in ge)if(ge.hasOwnProperty(Qe)){Se.call(ge,Qe,ge[Qe],Ce||Qe);var ot=ge[Qe],rt=Ve.util.type(ot);rt==="Object"&&!Oe[Be(ot)]?(Oe[Be(ot)]=!0,se(ot,Se,null,Oe)):rt==="Array"&&!Oe[Be(ot)]&&(Oe[Be(ot)]=!0,se(ot,Se,Qe,Oe))}}},plugins:{},highlightAll:function(se,ge){Ve.highlightAllUnder(document,se,ge)},highlightAllUnder:function(se,ge,Se){var Ce={callback:Se,container:se,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};Ve.hooks.run("before-highlightall",Ce),Ce.elements=Array.prototype.slice.apply(Ce.container.querySelectorAll(Ce.selector)),Ve.hooks.run("before-all-elements-highlight",Ce);for(var Oe=0,Be;Be=Ce.elements[Oe++];)Ve.highlightElement(Be,ge===!0,Ce.callback)},highlightElement:function(se,ge,Se){var Ce=Ve.util.getLanguage(se),Oe=Ve.languages[Ce];Ve.util.setLanguage(se,Ce);var Be=se.parentElement;Be&&Be.nodeName.toLowerCase()==="pre"&&Ve.util.setLanguage(Be,Ce);var Qe=se.textContent,ot={element:se,language:Ce,grammar:Oe,code:Qe};function rt(bt){ot.highlightedCode=bt,Ve.hooks.run("before-insert",ot),ot.element.innerHTML=ot.highlightedCode,Ve.hooks.run("after-highlight",ot),Ve.hooks.run("complete",ot),Se&&Se.call(ot.element)}if(Ve.hooks.run("before-sanity-check",ot),Be=ot.element.parentElement,Be&&Be.nodeName.toLowerCase()==="pre"&&!Be.hasAttribute("tabindex")&&Be.setAttribute("tabindex","0"),!ot.code){Ve.hooks.run("complete",ot),Se&&Se.call(ot.element);return}if(Ve.hooks.run("before-highlight",ot),!ot.grammar){rt(Ve.util.encode(ot.code));return}if(ge&&De.Worker){var ft=new Worker(Ve.filename);ft.onmessage=function(bt){rt(bt.data)},ft.postMessage(JSON.stringify({language:ot.language,code:ot.code,immediateClose:!0}))}else rt(Ve.highlight(ot.code,ot.grammar,ot.language))},highlight:function(se,ge,Se){var Ce={code:se,grammar:ge,language:Se};if(Ve.hooks.run("before-tokenize",Ce),!Ce.grammar)throw new Error('The language "'+Ce.language+'" has no grammar.');return Ce.tokens=Ve.tokenize(Ce.code,Ce.grammar),Ve.hooks.run("after-tokenize",Ce),Xe.stringify(Ve.util.encode(Ce.tokens),Ce.language)},tokenize:function(se,ge){var Se=ge.rest;if(Se){for(var Ce in Se)ge[Ce]=Se[Ce];delete ge.rest}var Oe=new mt;return st(Oe,Oe.head,se),Je(se,Oe,ge,Oe.head,0),je(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 Ce=0,Oe;Oe=Se[Ce++];)Oe(ge)}},Token:Xe};De.Prism=Ve;function Xe(se,ge,Se,Ce){this.type=se,this.content=ge,this.alias=Se,this.length=(Ce||"").length|0}Xe.stringify=function se(ge,Se){if(typeof ge=="string")return ge;if(Array.isArray(ge)){var Ce="";return ge.forEach(function(rt){Ce+=se(rt,Se)}),Ce}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 Qe="";for(var ot in Oe.attributes)Qe+=" "+ot+'="'+(Oe.attributes[ot]||"").replace(/"/g,"&quot;")+'"';return"<"+Oe.tag+' class="'+Oe.classes.join(" ")+'"'+Qe+">"+Oe.content+"</"+Oe.tag+">"};function qe(se,ge,Se,Ce){se.lastIndex=ge;var Oe=se.exec(Se);if(Oe&&Ce&&Oe[1]){var Be=Oe[1].length;Oe.index+=Be,Oe[0]=Oe[0].slice(Be)}return Oe}function Je(se,ge,Se,Ce,Oe,Be){for(var Qe in Se)if(!(!Se.hasOwnProperty(Qe)||!Se[Qe])){var ot=Se[Qe];ot=Array.isArray(ot)?ot:[ot];for(var rt=0;rt<ot.length;++rt){if(Be&&Be.cause==Qe+","+rt)return;var ft=ot[rt],bt=ft.inside,ut=!!ft.lookbehind,Tt=!!ft.greedy,Dt=ft.alias;if(Tt&&!ft.pattern.global){var en=ft.pattern.toString().match(/[imsuy]*$/)[0];ft.pattern=RegExp(ft.pattern.source,en+"g")}for(var Cn=ft.pattern||ft,vn=Ce.next,pn=Oe;vn!==ge.tail&&!(Be&&pn>=Be.reach);pn+=vn.value.length,vn=vn.next){var mn=vn.value;if(ge.length>se.length)return;if(!(mn instanceof Xe)){var Mt=1,ct;if(Tt){if(ct=qe(Cn,pn,se,ut),!ct||ct.index>=se.length)break;var Nt=ct.index,nt=ct.index+ct[0].length,dn=pn;for(dn+=vn.value.length;Nt>=dn;)vn=vn.next,dn+=vn.value.length;if(dn-=vn.value.length,pn=dn,vn.value instanceof Xe)continue;for(var En=vn;En!==ge.tail&&(dn<nt||typeof En.value=="string");En=En.next)Mt++,dn+=En.value.length;Mt--,mn=se.slice(pn,dn),ct.index-=pn}else if(ct=qe(Cn,0,mn,ut),!ct)continue;var Nt=ct.index,cn=ct[0],ln=mn.slice(0,Nt),_n=mn.slice(Nt+cn.length),kn=pn+mn.length;Be&&kn>Be.reach&&(Be.reach=kn);var si=vn.prev;ln&&(si=st(ge,si,ln),pn+=ln.length),Ct(ge,si,Mt);var kt=new Xe(Qe,bt?Ve.tokenize(cn,bt):cn,Dt,cn);if(vn=st(ge,si,kt),_n&&st(ge,vn,_n),Mt>1){var Kn={cause:Qe+","+rt,reach:kn};Je(se,ge,Se,vn.prev,pn,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 Ce=ge.next,Oe={value:Se,prev:ge,next:Ce};return ge.next=Oe,Ce.prev=Oe,se.length++,Oe}function Ct(se,ge,Se){for(var Ce=ge.next,Oe=0;Oe<Se&&Ce!==se.tail;Oe++)Ce=Ce.next;ge.next=Ce,Ce.prev=ge,se.length-=Oe}function je(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,Ce=ge.code,Oe=ge.immediateClose;De.postMessage(Ve.highlight(Ce,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=Le),typeof de.g!="undefined"&&(de.g.Prism=Le)},88914:function(Ge,be,de){"use strict";var le=de(47178),Le=de(19095),De=de(1969),Ie="data";Ge.exports=Xe;var Ye=/^data[-\w.:]+$/i,Fe=/-[a-z]/g,Ve=/[A-Z]/g;function Xe(Ct,je){var te=le(je),ne=je,he=De;return te in Ct.normal?Ct.property[Ct.normal[te]]:(te.length>4&&te.slice(0,4)===Ie&&Ye.test(je)&&(je.charAt(4)==="-"?ne=qe(je):je=Je(je),he=Le),new he(ne,je))}function qe(Ct){var je=Ct.slice(5).replace(Fe,st);return Ie+je.charAt(0).toUpperCase()+je.slice(1)}function Je(Ct){var je=Ct.slice(4);return Fe.test(je)?Ct:(je=je.replace(Ve,mt),je.charAt(0)!=="-"&&(je="-"+je),Ie+je)}function mt(Ct){return"-"+Ct.toLowerCase()}function st(Ct){return Ct.charAt(1).toUpperCase()}},18795:function(Ge,be,de){"use strict";var le=de(83576),Le=de(8179),De=de(59780),Ie=de(68244),Ye=de(20019),Fe=de(38567);Ge.exports=le([De,Le,Ie,Ye,Fe])},20019:function(Ge,be,de){"use strict";var le=de(70167),Le=de(79318),De=le.booleanish,Ie=le.number,Ye=le.spaceSeparated;Ge.exports=Le({transform:Fe,properties:{ariaActiveDescendant:null,ariaAtomic:De,ariaAutoComplete:null,ariaBusy:De,ariaChecked:De,ariaColCount:Ie,ariaColIndex:Ie,ariaColSpan:Ie,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:Ie,ariaLive:null,ariaModal:De,ariaMultiLine:De,ariaMultiSelectable:De,ariaOrientation:null,ariaOwns:Ye,ariaPlaceholder:null,ariaPosInSet:Ie,ariaPressed:De,ariaReadOnly:De,ariaRelevant:null,ariaRequired:De,ariaRoleDescription:Ye,ariaRowCount:Ie,ariaRowIndex:Ie,ariaRowSpan:Ie,ariaSelected:De,ariaSetSize:Ie,ariaSort:null,ariaValueMax:Ie,ariaValueMin:Ie,ariaValueNow:Ie,ariaValueText:null,role:null}});function Fe(Ve,Xe){return Xe==="role"?Xe:"aria-"+Xe.slice(4).toLowerCase()}},38567:function(Ge,be,de){"use strict";var le=de(70167),Le=de(79318),De=de(85804),Ie=le.boolean,Ye=le.overloadedBoolean,Fe=le.booleanish,Ve=le.number,Xe=le.spaceSeparated,qe=le.commaSeparated;Ge.exports=Le({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:De,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:qe,acceptCharset:Xe,accessKey:Xe,action:null,allow:null,allowFullScreen:Ie,allowPaymentRequest:Ie,allowUserMedia:Ie,alt:null,as:null,async:Ie,autoCapitalize:null,autoComplete:Xe,autoFocus:Ie,autoPlay:Ie,capture:Ie,charSet:null,checked:Ie,cite:null,className:Xe,cols:Ve,colSpan:null,content:null,contentEditable:Fe,controls:Ie,controlsList:Xe,coords:Ve|qe,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ie,defer:Ie,dir:null,dirName:null,disabled:Ie,download:Ye,draggable:Fe,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ie,formTarget:null,headers:Xe,height:Ve,hidden:Ie,high:Ve,href:null,hrefLang:null,htmlFor:Xe,httpEquiv:Xe,id:null,imageSizes:null,imageSrcSet:qe,inputMode:null,integrity:null,is:null,isMap:Ie,itemId:null,itemProp:Xe,itemRef:Xe,itemScope:Ie,itemType:Xe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ie,low:Ve,manifest:null,max:null,maxLength:Ve,media:null,method:null,min:null,minLength:Ve,multiple:Ie,muted:Ie,name:null,nonce:null,noModule:Ie,noValidate:Ie,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:Ie,optimum:Ve,pattern:null,ping:Xe,placeholder:null,playsInline:Ie,poster:null,preload:null,readOnly:Ie,referrerPolicy:null,rel:Xe,required:Ie,reversed:Ie,rows:Ve,rowSpan:Ve,sandbox:Xe,scope:null,scoped:Ie,seamless:Ie,selected:Ie,shape:null,size:Ve,sizes:null,slot:null,span:Ve,spellCheck:Fe,src:null,srcDoc:null,srcLang:null,srcSet:qe,start:Ve,step:null,style:null,tabIndex:Ve,target:null,title:null,translate:null,type:null,typeMustMatch:Ie,useMap:null,value:Fe,width:Ve,wrap:null,align:null,aLink:null,archive:Xe,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:Ie,declare:Ie,event:null,face:null,frame:null,frameBorder:null,hSpace:Ve,leftMargin:Ve,link:null,longDesc:null,lowSrc:null,marginHeight:Ve,marginWidth:Ve,noResize:Ie,noHref:Ie,noShade:Ie,noWrap:Ie,object:null,profile:null,prompt:null,rev:null,rightMargin:Ve,rules:null,scheme:null,scrolling:Fe,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:Ie,disableRemotePlayback:Ie,prefix:null,property:null,results:Ve,security:null,unselectable:null}})},85804:function(Ge,be,de){"use strict";var le=de(56432);Ge.exports=Le;function Le(De,Ie){return le(De,Ie.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),Le=de(44347),De=de(19095);Ge.exports=Ie;function Ie(Ye){var Fe=Ye.space,Ve=Ye.mustUseProperty||[],Xe=Ye.attributes||{},qe=Ye.properties,Je=Ye.transform,mt={},st={},Ct,je;for(Ct in qe)je=new De(Ct,Je(Xe,Ct),qe[Ct],Fe),Ve.indexOf(Ct)!==-1&&(je.mustUseProperty=!0),mt[Ct]=je,st[le(Ct)]=Ct,st[le(je.attribute)]=Ct;return new Le(mt,st,Fe)}},19095:function(Ge,be,de){"use strict";var le=de(1969),Le=de(70167);Ge.exports=Ye,Ye.prototype=new le,Ye.prototype.defined=!0;var De=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],Ie=De.length;function Ye(Ve,Xe,qe,Je){var mt=-1,st;for(Fe(this,"space",Je),le.call(this,Ve,Xe);++mt<Ie;)st=De[mt],Fe(this,st,(qe&Le[st])===Le[st])}function Fe(Ve,Xe,qe){qe&&(Ve[Xe]=qe)}},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,Le){this.property=le,this.attribute=Le}},83576:function(Ge,be,de){"use strict";var le=de(97270),Le=de(44347);Ge.exports=De;function De(Ie){for(var Ye=Ie.length,Fe=[],Ve=[],Xe=-1,qe,Je;++Xe<Ye;)qe=Ie[Xe],Fe.push(qe.property),Ve.push(qe.normal),Je=qe.space;return new Le(le.apply(null,Fe),le.apply(null,Ve),Je)}},44347:function(Ge){"use strict";Ge.exports=de;var be=de.prototype;be.space=null,be.normal={},be.property={};function de(le,Le,De){this.property=le,this.normal=Le,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:Le,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function Le(De,Ie){return"xlink:"+Ie.slice(5).toLowerCase()}},59780:function(Ge,be,de){"use strict";var le=de(79318);Ge.exports=le({space:"xml",transform:Le,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Le(De,Ie){return"xml:"+Ie.slice(3).toLowerCase()}},68244:function(Ge,be,de){"use strict";var le=de(79318),Le=de(85804);Ge.exports=le({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Le,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 Tt}});var le=de(77321),Le=de(52487),De=de(43403),Ie=de(34280),Ye=de(59301),Fe=Ye.createContext(null),Ve=Ye.createContext({}),Xe=Fe,qe=de(49618),Je=de(72308),mt=de(92310),st=de.n(mt),Ct=de(77900),je=de(10228),te=de(26112),ne=de(74416),he=de(8654),se=["prefixCls","className","containerRef"],ge=function(en){var Cn=en.prefixCls,vn=en.className,pn=en.containerRef,mn=(0,ne.Z)(en,se),Mt=Ye.useContext(Ve),ct=Mt.panel,nt=(0,he.x1)(ct,pn);return Ye.createElement("div",(0,Je.Z)({className:st()("".concat(Cn,"-content"),vn),role:"dialog",ref:nt},(0,te.Z)(en,{aria:!0}),{"aria-modal":"true"},mn))},Se=ge,Ce=de(48736);function Oe(Dt){return typeof Dt=="string"&&String(Number(Dt))===Dt?((0,Ce.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Dt)):Dt}function Be(Dt){warning(!("wrapperClassName"in Dt),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Dt.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Qe={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ot(Dt,en){var Cn,vn,pn,mn=Dt.prefixCls,Mt=Dt.open,ct=Dt.placement,nt=Dt.inline,dn=Dt.push,En=Dt.forceRender,Nt=Dt.autoFocus,cn=Dt.keyboard,ln=Dt.classNames,_n=Dt.rootClassName,kn=Dt.rootStyle,si=Dt.zIndex,kt=Dt.className,Kn=Dt.id,hi=Dt.style,et=Dt.motion,_e=Dt.width,xe=Dt.height,Te=Dt.children,Me=Dt.mask,Ae=Dt.maskClosable,at=Dt.maskMotion,Lt=Dt.maskClassName,Pt=Dt.maskStyle,Vt=Dt.afterOpenChange,It=Dt.onClose,an=Dt.onMouseEnter,sn=Dt.onMouseOver,on=Dt.onMouseLeave,bn=Dt.onClick,un=Dt.onKeyDown,zt=Dt.onKeyUp,xn=Dt.styles,fn=Dt.drawerRender,An=Ye.useRef(),nn=Ye.useRef(),ci=Ye.useRef();Ye.useImperativeHandle(en,function(){return An.current});var zn=function(Ii){var ki=Ii.keyCode,ar=Ii.shiftKey;switch(ki){case je.Z.TAB:{if(ki===je.Z.TAB){if(!ar&&document.activeElement===ci.current){var Nr;(Nr=nn.current)===null||Nr===void 0||Nr.focus({preventScroll:!0})}else if(ar&&document.activeElement===nn.current){var sr;(sr=ci.current)===null||sr===void 0||sr.focus({preventScroll:!0})}}break}case je.Z.ESC:{It&&cn&&(Ii.stopPropagation(),It(Ii));break}}};Ye.useEffect(function(){if(Mt&&Nt){var gi;(gi=An.current)===null||gi===void 0||gi.focus({preventScroll:!0})}},[Mt]);var yt=Ye.useState(!1),Fn=(0,Le.Z)(yt,2),Pn=Fn[0],Ht=Fn[1],fi=Ye.useContext(Xe),zi;typeof dn=="boolean"?zi=dn?{}:{distance:0}:zi=dn||{};var Li=(Cn=(vn=(pn=zi)===null||pn===void 0?void 0:pn.distance)!==null&&vn!==void 0?vn:fi==null?void 0:fi.pushDistance)!==null&&Cn!==void 0?Cn:180,Dn=Ye.useMemo(function(){return{pushDistance:Li,push:function(){Ht(!0)},pull:function(){Ht(!1)}}},[Li]);Ye.useEffect(function(){if(Mt){var gi;fi==null||(gi=fi.push)===null||gi===void 0||gi.call(fi)}else{var Ii;fi==null||(Ii=fi.pull)===null||Ii===void 0||Ii.call(fi)}},[Mt]),Ye.useEffect(function(){return function(){var gi;fi==null||(gi=fi.pull)===null||gi===void 0||gi.call(fi)}},[]);var qi=Me&&Ye.createElement(Ct.default,(0,Je.Z)({key:"mask"},at,{visible:Mt}),function(gi,Ii){var ki=gi.className,ar=gi.style;return Ye.createElement("div",{className:st()("".concat(mn,"-mask"),ki,ln==null?void 0:ln.mask,Lt),style:(0,le.Z)((0,le.Z)((0,le.Z)({},ar),Pt),xn==null?void 0:xn.mask),onClick:Ae&&Mt?It:void 0,ref:Ii})}),Ui=typeof et=="function"?et(ct):et,ui={};if(Pn&&Li)switch(ct){case"top":ui.transform="translateY(".concat(Li,"px)");break;case"bottom":ui.transform="translateY(".concat(-Li,"px)");break;case"left":ui.transform="translateX(".concat(Li,"px)");break;default:ui.transform="translateX(".concat(-Li,"px)");break}ct==="left"||ct==="right"?ui.width=Oe(_e):ui.height=Oe(xe);var bi={onMouseEnter:an,onMouseOver:sn,onMouseLeave:on,onClick:bn,onKeyDown:un,onKeyUp:zt},Ri=Ye.createElement(Ct.default,(0,Je.Z)({key:"panel"},Ui,{visible:Mt,forceRender:En,onVisibleChanged:function(Ii){Vt==null||Vt(Ii)},removeOnLeave:!1,leavedClassName:"".concat(mn,"-content-wrapper-hidden")}),function(gi,Ii){var ki=gi.className,ar=gi.style,Nr=Ye.createElement(Se,(0,Je.Z)({id:Kn,containerRef:Ii,prefixCls:mn,className:st()(kt,ln==null?void 0:ln.content),style:(0,le.Z)((0,le.Z)({},hi),xn==null?void 0:xn.content)},(0,te.Z)(Dt,{aria:!0}),bi),Te);return Ye.createElement("div",(0,Je.Z)({className:st()("".concat(mn,"-content-wrapper"),ln==null?void 0:ln.wrapper,ki),style:(0,le.Z)((0,le.Z)((0,le.Z)({},ui),ar),xn==null?void 0:xn.wrapper)},(0,te.Z)(Dt,{data:!0})),fn?fn(Nr):Nr)}),ke=(0,le.Z)({},kn);return si&&(ke.zIndex=si),Ye.createElement(Xe.Provider,{value:Dn},Ye.createElement("div",{className:st()(mn,"".concat(mn,"-").concat(ct),_n,(0,qe.Z)((0,qe.Z)({},"".concat(mn,"-open"),Mt),"".concat(mn,"-inline"),nt)),style:ke,tabIndex:-1,ref:An,onKeyDown:zn},qi,Ye.createElement("div",{tabIndex:0,ref:nn,style:Qe,"aria-hidden":"true","data-sentinel":"start"}),Ri,Ye.createElement("div",{tabIndex:0,ref:ci,style:Qe,"aria-hidden":"true","data-sentinel":"end"})))}var rt=Ye.forwardRef(ot),ft=rt,bt=function(en){var Cn=en.open,vn=Cn===void 0?!1:Cn,pn=en.prefixCls,mn=pn===void 0?"rc-drawer":pn,Mt=en.placement,ct=Mt===void 0?"right":Mt,nt=en.autoFocus,dn=nt===void 0?!0:nt,En=en.keyboard,Nt=En===void 0?!0:En,cn=en.width,ln=cn===void 0?378:cn,_n=en.mask,kn=_n===void 0?!0:_n,si=en.maskClosable,kt=si===void 0?!0:si,Kn=en.getContainer,hi=en.forceRender,et=en.afterOpenChange,_e=en.destroyOnClose,xe=en.onMouseEnter,Te=en.onMouseOver,Me=en.onMouseLeave,Ae=en.onClick,at=en.onKeyDown,Lt=en.onKeyUp,Pt=en.panelRef,Vt=Ye.useState(!1),It=(0,Le.Z)(Vt,2),an=It[0],sn=It[1],on=Ye.useState(!1),bn=(0,Le.Z)(on,2),un=bn[0],zt=bn[1];(0,Ie.Z)(function(){zt(!0)},[]);var xn=un?vn:!1,fn=Ye.useRef(),An=Ye.useRef();(0,Ie.Z)(function(){xn&&(An.current=document.activeElement)},[xn]);var nn=function(Pn){var Ht;if(sn(Pn),et==null||et(Pn),!Pn&&An.current&&!((Ht=fn.current)!==null&&Ht!==void 0&&Ht.contains(An.current))){var fi;(fi=An.current)===null||fi===void 0||fi.focus({preventScroll:!0})}},ci=Ye.useMemo(function(){return{panel:Pt}},[Pt]);if(!hi&&!an&&!xn&&_e)return null;var zn={onMouseEnter:xe,onMouseOver:Te,onMouseLeave:Me,onClick:Ae,onKeyDown:at,onKeyUp:Lt},yt=(0,le.Z)((0,le.Z)({},en),{},{open:xn,prefixCls:mn,placement:ct,autoFocus:dn,keyboard:Nt,width:ln,mask:kn,maskClosable:kt,inline:Kn===!1,afterOpenChange:nn,ref:fn},zn);return Ye.createElement(Ve.Provider,{value:ci},Ye.createElement(De.Z,{open:xn||hi||an,autoDestroy:!1,getContainer:Kn,autoLock:kn&&(xn||an)},Ye.createElement(ft,yt)))},ut=bt,Tt=ut},91574:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return bn}});var le=de(72308),Le=de(77321),De=de(49618),Ie=de(52487),Ye=de(62853),Fe=de(74416),Ve=de(92310),Xe=de.n(Ve),qe=/margin|padding|width|height|max|min|offset/,Je={left:!0,top:!0},mt={cssFloat:1,styleFloat:1,float:1};function st(un){return un.nodeType===1?un.ownerDocument.defaultView.getComputedStyle(un,null):{}}function Ct(un,zt,xn){if(zt=zt.toLowerCase(),xn==="auto"){if(zt==="height")return un.offsetHeight;if(zt==="width")return un.offsetWidth}return zt in Je||(Je[zt]=qe.test(zt)),Je[zt]?parseFloat(xn)||0:xn}function je(un,zt){var xn=arguments.length,fn=st(un);return zt=mt[zt]?"cssFloat"in un.style?"cssFloat":"styleFloat":zt,xn===1?fn:Ct(un,zt,fn[zt]||un.style[zt])}function te(un,zt,xn){var fn=arguments.length;if(zt=mt[zt]?"cssFloat"in un.style?"cssFloat":"styleFloat":zt,fn===3)return typeof xn=="number"&&qe.test(zt)&&(xn="".concat(xn,"px")),un.style[zt]=xn,xn;for(var An in zt)zt.hasOwnProperty(An)&&te(un,An,zt[An]);return st(un)}function ne(un){return un===document.body?document.documentElement.clientWidth:un.offsetWidth}function he(un){return un===document.body?window.innerHeight||document.documentElement.clientHeight:un.offsetHeight}function se(){var un=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),zt=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:un,height:zt}}function ge(){var un=document.documentElement.clientWidth,zt=window.innerHeight||document.documentElement.clientHeight;return{width:un,height:zt}}function Se(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Ce(un){var zt=un.getBoundingClientRect(),xn=document.documentElement;return{left:zt.left+(window.pageXOffset||xn.scrollLeft)-(xn.clientLeft||document.body.clientLeft||0),top:zt.top+(window.pageYOffset||xn.scrollTop)-(xn.clientTop||document.body.clientTop||0)}}var Oe=de(18929),Be=de(59301),Qe=de(55311),ot=de(8224),rt=de(10228),ft=de(43403),bt=de(77900),ut=Be.createContext(null),Tt=function(zt){var xn=zt.visible,fn=zt.maskTransitionName,An=zt.getContainer,nn=zt.prefixCls,ci=zt.rootClassName,zn=zt.icons,yt=zt.countRender,Fn=zt.showSwitch,Pn=zt.showProgress,Ht=zt.current,fi=zt.transform,zi=zt.count,Li=zt.scale,Dn=zt.minScale,qi=zt.maxScale,Ui=zt.closeIcon,ui=zt.onActive,bi=zt.onClose,Ri=zt.onZoomIn,ke=zt.onZoomOut,gi=zt.onRotateRight,Ii=zt.onRotateLeft,ki=zt.onFlipX,ar=zt.onFlipY,Nr=zt.onReset,sr=zt.toolbarRender,Di=zt.zIndex,Ei=zt.image,Zt=(0,Be.useContext)(ut),Wt=zn.rotateLeft,Rt=zn.rotateRight,rn=zn.zoomIn,Xt=zn.zoomOut,Sn=zn.close,Rn=zn.left,Jn=zn.right,qt=zn.flipX,Gt=zn.flipY,ti="".concat(nn,"-operations-operation");Be.useEffect(function(){var Mn=function(Ki){Ki.keyCode===rt.Z.ESC&&bi()};return xn&&window.addEventListener("keydown",Mn),function(){window.removeEventListener("keydown",Mn)}},[xn]);var pt=function(ji,Ki){ji.preventDefault(),ji.stopPropagation(),ui(Ki)},yn=Be.useCallback(function(Mn){var ji=Mn.type,Ki=Mn.disabled,Zi=Mn.onClick,Nn=Mn.icon;return Be.createElement("div",{key:ji,className:Xe()(ti,"".concat(nn,"-operations-operation-").concat(ji),(0,De.Z)({},"".concat(nn,"-operations-operation-disabled"),!!Ki)),onClick:Zi},Nn)},[ti,nn]),ii=Fn?yn({icon:Rn,onClick:function(ji){return pt(ji,-1)},type:"prev",disabled:Ht===0}):void 0,xi=Fn?yn({icon:Jn,onClick:function(ji){return pt(ji,1)},type:"next",disabled:Ht===zi-1}):void 0,Ut=yn({icon:Gt,onClick:ar,type:"flipY"}),$n=yn({icon:qt,onClick:ki,type:"flipX"}),pi=yn({icon:Wt,onClick:Ii,type:"rotateLeft"}),Kt=yn({icon:Rt,onClick:gi,type:"rotateRight"}),Ue=yn({icon:Xt,onClick:ke,type:"zoomOut",disabled:Li<=Dn}),wi=yn({icon:rn,onClick:Ri,type:"zoomIn",disabled:Li===qi}),ai=Be.createElement("div",{className:"".concat(nn,"-operations")},Ut,$n,pi,Kt,Ue,wi);return Be.createElement(bt.default,{visible:xn,motionName:fn},function(Mn){var ji=Mn.className,Ki=Mn.style;return Be.createElement(ft.Z,{open:!0,getContainer:An!=null?An:document.body},Be.createElement("div",{className:Xe()("".concat(nn,"-operations-wrapper"),ji,ci),style:(0,Le.Z)((0,Le.Z)({},Ki),{},{zIndex:Di})},Ui===null?null:Be.createElement("button",{className:"".concat(nn,"-close"),onClick:bi},Ui||Sn),Fn&&Be.createElement(Be.Fragment,null,Be.createElement("div",{className:Xe()("".concat(nn,"-switch-left"),(0,De.Z)({},"".concat(nn,"-switch-left-disabled"),Ht===0)),onClick:function(Nn){return pt(Nn,-1)}},Rn),Be.createElement("div",{className:Xe()("".concat(nn,"-switch-right"),(0,De.Z)({},"".concat(nn,"-switch-right-disabled"),Ht===zi-1)),onClick:function(Nn){return pt(Nn,1)}},Jn)),Be.createElement("div",{className:"".concat(nn,"-footer")},Pn&&Be.createElement("div",{className:"".concat(nn,"-progress")},yt?yt(Ht+1,zi):"".concat(Ht+1," / ").concat(zi)),sr?sr(ai,(0,Le.Z)((0,Le.Z)({icons:{prevIcon:ii,nextIcon:xi,flipYIcon:Ut,flipXIcon:$n,rotateLeftIcon:pi,rotateRightIcon:Kt,zoomOutIcon:Ue,zoomInIcon:wi},actions:{onActive:ui,onFlipY:ar,onFlipX:ki,onRotateLeft:Ii,onRotateRight:gi,onZoomOut:ke,onZoomIn:Ri,onReset:Nr,onClose:bi},transform:fi},Zt?{current:Ht,total:zi}:{}),{},{image:Ei})):ai)))})},Dt=Tt,en=de(13697),Cn=de(16089),vn={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function pn(un,zt,xn,fn){var An=(0,Be.useRef)(null),nn=(0,Be.useRef)([]),ci=(0,Be.useState)(vn),zn=(0,Ie.Z)(ci,2),yt=zn[0],Fn=zn[1],Pn=function(Li){Fn(vn),(0,en.Z)(vn,yt)||fn==null||fn({transform:vn,action:Li})},Ht=function(Li,Dn){An.current===null&&(nn.current=[],An.current=(0,Cn.Z)(function(){Fn(function(qi){var Ui=qi;return nn.current.forEach(function(ui){Ui=(0,Le.Z)((0,Le.Z)({},Ui),ui)}),An.current=null,fn==null||fn({transform:Ui,action:Dn}),Ui})})),nn.current.push((0,Le.Z)((0,Le.Z)({},yt),Li))},fi=function(Li,Dn,qi,Ui,ui){var bi=un.current,Ri=bi.width,ke=bi.height,gi=bi.offsetWidth,Ii=bi.offsetHeight,ki=bi.offsetLeft,ar=bi.offsetTop,Nr=Li,sr=yt.scale*Li;sr>xn?(sr=xn,Nr=xn/yt.scale):sr<zt&&(sr=ui?sr:zt,Nr=sr/yt.scale);var Di=qi!=null?qi:innerWidth/2,Ei=Ui!=null?Ui:innerHeight/2,Zt=Nr-1,Wt=Zt*Ri*.5,Rt=Zt*ke*.5,rn=Zt*(Di-yt.x-ki),Xt=Zt*(Ei-yt.y-ar),Sn=yt.x-(rn-Wt),Rn=yt.y-(Xt-Rt);if(Li<1&&sr===1){var Jn=gi*sr,qt=Ii*sr,Gt=ge(),ti=Gt.width,pt=Gt.height;Jn<=ti&&qt<=pt&&(Sn=0,Rn=0)}Ht({x:Sn,y:Rn,scale:sr},Dn)};return{transform:yt,resetTransform:Pn,updateTransform:Ht,dispatchZoomChange:fi}}var mn=de(48736);function Mt(un,zt,xn,fn){var An=zt+xn,nn=(xn-fn)/2;if(xn>fn){if(zt>0)return(0,De.Z)({},un,nn);if(zt<0&&An<fn)return(0,De.Z)({},un,-nn)}else if(zt<0||An>fn)return(0,De.Z)({},un,zt<0?nn:-nn);return{}}function ct(un,zt,xn,fn){var An=ge(),nn=An.width,ci=An.height,zn=null;return un<=nn&&zt<=ci?zn={x:0,y:0}:(un>nn||zt>ci)&&(zn=(0,Le.Z)((0,Le.Z)({},Mt("x",xn,un,nn)),Mt("y",fn,zt,ci))),zn}var nt=1,dn=1;function En(un,zt,xn,fn,An,nn,ci){var zn=An.rotate,yt=An.scale,Fn=An.x,Pn=An.y,Ht=(0,Be.useState)(!1),fi=(0,Ie.Z)(Ht,2),zi=fi[0],Li=fi[1],Dn=(0,Be.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),qi=function(ke){!zt||ke.button!==0||(ke.preventDefault(),ke.stopPropagation(),Dn.current={diffX:ke.pageX-Fn,diffY:ke.pageY-Pn,transformX:Fn,transformY:Pn},Li(!0))},Ui=function(ke){xn&&zi&&nn({x:ke.pageX-Dn.current.diffX,y:ke.pageY-Dn.current.diffY},"move")},ui=function(){if(xn&&zi){Li(!1);var ke=Dn.current,gi=ke.transformX,Ii=ke.transformY,ki=Fn!==gi&&Pn!==Ii;if(!ki)return;var ar=un.current.offsetWidth*yt,Nr=un.current.offsetHeight*yt,sr=un.current.getBoundingClientRect(),Di=sr.left,Ei=sr.top,Zt=zn%180!==0,Wt=ct(Zt?Nr:ar,Zt?ar:Nr,Di,Ei);Wt&&nn((0,Le.Z)({},Wt),"dragRebound")}},bi=function(ke){if(!(!xn||ke.deltaY==0)){var gi=Math.abs(ke.deltaY/100),Ii=Math.min(gi,dn),ki=nt+Ii*fn;ke.deltaY>0&&(ki=nt/ki),ci(ki,"wheel",ke.clientX,ke.clientY)}};return(0,Be.useEffect)(function(){var Ri,ke,gi,Ii;if(zt){gi=(0,ot.Z)(window,"mouseup",ui,!1),Ii=(0,ot.Z)(window,"mousemove",Ui,!1);try{window.top!==window.self&&(Ri=(0,ot.Z)(window.top,"mouseup",ui,!1),ke=(0,ot.Z)(window.top,"mousemove",Ui,!1))}catch(ki){(0,mn.Kp)(!1,"[rc-image] ".concat(ki))}}return function(){var ki,ar,Nr,sr;(ki=gi)===null||ki===void 0||ki.remove(),(ar=Ii)===null||ar===void 0||ar.remove(),(Nr=Ri)===null||Nr===void 0||Nr.remove(),(sr=ke)===null||sr===void 0||sr.remove()}},[xn,zi,Fn,Pn,zn,zt]),{isMoving:zi,onMouseDown:qi,onMouseMove:Ui,onMouseUp:ui,onWheel:bi}}function Nt(un){return new Promise(function(zt){if(!un){zt(!1);return}var xn=document.createElement("img");xn.onerror=function(){return zt(!1)},xn.onload=function(){return zt(!0)},xn.src=un})}function cn(un){var zt=un.src,xn=un.isCustomPlaceholder,fn=un.fallback,An=(0,Be.useState)(xn?"loading":"normal"),nn=(0,Ie.Z)(An,2),ci=nn[0],zn=nn[1],yt=(0,Be.useRef)(!1),Fn=ci==="error";(0,Be.useEffect)(function(){var zi=!0;return Nt(zt).then(function(Li){!Li&&zi&&zn("error")}),function(){zi=!1}},[zt]),(0,Be.useEffect)(function(){xn&&!yt.current?zn("loading"):Fn&&zn("normal")},[zt]);var Pn=function(){zn("normal")},Ht=function(Li){yt.current=!1,ci==="loading"&&Li!==null&&Li!==void 0&&Li.complete&&(Li.naturalWidth||Li.naturalHeight)&&(yt.current=!0,Pn())},fi=Fn&&fn?{src:fn}:{onLoad:Pn,src:zt};return[Ht,fi,ci]}function ln(un,zt){var xn=un.x-zt.x,fn=un.y-zt.y;return Math.hypot(xn,fn)}function _n(un,zt,xn,fn){var An=ln(un,xn),nn=ln(zt,fn);if(An===0&&nn===0)return[un.x,un.y];var ci=An/(An+nn),zn=un.x+ci*(zt.x-un.x),yt=un.y+ci*(zt.y-un.y);return[zn,yt]}function kn(un,zt,xn,fn,An,nn,ci){var zn=An.rotate,yt=An.scale,Fn=An.x,Pn=An.y,Ht=(0,Be.useState)(!1),fi=(0,Ie.Z)(Ht,2),zi=fi[0],Li=fi[1],Dn=(0,Be.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),qi=function(ke){Dn.current=(0,Le.Z)((0,Le.Z)({},Dn.current),ke)},Ui=function(ke){if(zt){ke.stopPropagation(),Li(!0);var gi=ke.touches,Ii=gi===void 0?[]:gi;Ii.length>1?qi({point1:{x:Ii[0].clientX,y:Ii[0].clientY},point2:{x:Ii[1].clientX,y:Ii[1].clientY},eventType:"touchZoom"}):qi({point1:{x:Ii[0].clientX-Fn,y:Ii[0].clientY-Pn},eventType:"move"})}},ui=function(ke){var gi=ke.touches,Ii=gi===void 0?[]:gi,ki=Dn.current,ar=ki.point1,Nr=ki.point2,sr=ki.eventType;if(Ii.length>1&&sr==="touchZoom"){var Di={x:Ii[0].clientX,y:Ii[0].clientY},Ei={x:Ii[1].clientX,y:Ii[1].clientY},Zt=_n(ar,Nr,Di,Ei),Wt=(0,Ie.Z)(Zt,2),Rt=Wt[0],rn=Wt[1],Xt=ln(Di,Ei)/ln(ar,Nr);ci(Xt,"touchZoom",Rt,rn,!0),qi({point1:Di,point2:Ei,eventType:"touchZoom"})}else sr==="move"&&(nn({x:Ii[0].clientX-ar.x,y:Ii[0].clientY-ar.y},"move"),qi({eventType:"move"}))},bi=function(){if(xn){if(zi&&Li(!1),qi({eventType:"none"}),fn>yt)return nn({x:0,y:0,scale:fn},"touchZoom");var ke=un.current.offsetWidth*yt,gi=un.current.offsetHeight*yt,Ii=un.current.getBoundingClientRect(),ki=Ii.left,ar=Ii.top,Nr=zn%180!==0,sr=ct(Nr?gi:ke,Nr?ke:gi,ki,ar);sr&&nn((0,Le.Z)({},sr),"dragRebound")}};return(0,Be.useEffect)(function(){var Ri;return xn&&zt&&(Ri=(0,ot.Z)(window,"touchmove",function(ke){return ke.preventDefault()},{passive:!1})),function(){var ke;(ke=Ri)===null||ke===void 0||ke.remove()}},[xn,zt]),{isTouching:zi,onTouchStart:Ui,onTouchMove:ui,onTouchEnd:bi}}var si=["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(zt){var xn=zt.fallback,fn=zt.src,An=zt.imgRef,nn=(0,Fe.Z)(zt,si),ci=cn({src:fn,fallback:xn}),zn=(0,Ie.Z)(ci,2),yt=zn[0],Fn=zn[1];return Be.createElement("img",(0,le.Z)({ref:function(Ht){An.current=Ht,yt(Ht)}},nn,Fn))},hi=function(zt){var xn=zt.prefixCls,fn=zt.src,An=zt.alt,nn=zt.imageInfo,ci=zt.fallback,zn=zt.movable,yt=zn===void 0?!0:zn,Fn=zt.onClose,Pn=zt.visible,Ht=zt.icons,fi=Ht===void 0?{}:Ht,zi=zt.rootClassName,Li=zt.closeIcon,Dn=zt.getContainer,qi=zt.current,Ui=qi===void 0?0:qi,ui=zt.count,bi=ui===void 0?1:ui,Ri=zt.countRender,ke=zt.scaleStep,gi=ke===void 0?.5:ke,Ii=zt.minScale,ki=Ii===void 0?1:Ii,ar=zt.maxScale,Nr=ar===void 0?50:ar,sr=zt.transitionName,Di=sr===void 0?"zoom":sr,Ei=zt.maskTransitionName,Zt=Ei===void 0?"fade":Ei,Wt=zt.imageRender,Rt=zt.imgCommonProps,rn=zt.toolbarRender,Xt=zt.onTransform,Sn=zt.onChange,Rn=(0,Fe.Z)(zt,kt),Jn=(0,Be.useRef)(),qt=(0,Be.useContext)(ut),Gt=qt&&bi>1,ti=qt&&bi>=1,pt=(0,Be.useState)(!0),yn=(0,Ie.Z)(pt,2),ii=yn[0],xi=yn[1],Ut=pn(Jn,ki,Nr,Xt),$n=Ut.transform,pi=Ut.resetTransform,Kt=Ut.updateTransform,Ue=Ut.dispatchZoomChange,wi=En(Jn,yt,Pn,gi,$n,Kt,Ue),ai=wi.isMoving,Mn=wi.onMouseDown,ji=wi.onWheel,Ki=kn(Jn,yt,Pn,ki,$n,Kt,Ue),Zi=Ki.isTouching,Nn=Ki.onTouchStart,Jt=Ki.onTouchMove,Ji=Ki.onTouchEnd,zr=$n.rotate,wn=$n.scale,vi=Xe()((0,De.Z)({},"".concat(xn,"-moving"),ai));(0,Be.useEffect)(function(){ii||xi(!0)},[ii]);var Ni=function(){pi("close")},Bi=function(){Ue(nt+gi,"zoomIn")},Fi=function(){Ue(nt/(nt+gi),"zoomOut")},Wi=function(){Kt({rotate:zr+90},"rotateRight")},cr=function(){Kt({rotate:zr-90},"rotateLeft")},mr=function(){Kt({flipX:!$n.flipX},"flipX")},Tr=function(){Kt({flipY:!$n.flipY},"flipY")},Mr=function(){pi("reset")},Gn=function($r){var Xr=Ui+$r;!Number.isInteger(Xr)||Xr<0||Xr>bi-1||(xi(!1),pi($r<0?"prev":"next"),Sn==null||Sn(Xr,Ui))},ur=function($r){!Pn||!Gt||($r.keyCode===rt.Z.LEFT?Gn(-1):$r.keyCode===rt.Z.RIGHT&&Gn(1))},Bn=function($r){Pn&&(wn!==1?Kt({x:0,y:0,scale:1},"doubleClick"):Ue(nt+gi,"doubleClick",$r.clientX,$r.clientY))};(0,Be.useEffect)(function(){var pr=(0,ot.Z)(window,"keydown",ur,!1);return function(){pr.remove()}},[Pn,Gt,Ui]);var br=Be.createElement(Kn,(0,le.Z)({},Rt,{width:zt.width,height:zt.height,imgRef:Jn,className:"".concat(xn,"-img"),alt:An,style:{transform:"translate3d(".concat($n.x,"px, ").concat($n.y,"px, 0) scale3d(").concat($n.flipX?"-":"").concat(wn,", ").concat($n.flipY?"-":"").concat(wn,", 1) rotate(").concat(zr,"deg)"),transitionDuration:(!ii||Zi)&&"0s"},fallback:ci,src:fn,onWheel:ji,onMouseDown:Mn,onDoubleClick:Bn,onTouchStart:Nn,onTouchMove:Jt,onTouchEnd:Ji,onTouchCancel:Ji})),Er=(0,Le.Z)({url:fn,alt:An},nn);return Be.createElement(Be.Fragment,null,Be.createElement(Qe.Z,(0,le.Z)({transitionName:Di,maskTransitionName:Zt,closable:!1,keyboard:!0,prefixCls:xn,onClose:Fn,visible:Pn,classNames:{wrapper:vi},rootClassName:zi,getContainer:Dn},Rn,{afterClose:Ni}),Be.createElement("div",{className:"".concat(xn,"-img-wrapper")},Wt?Wt(br,(0,Le.Z)({transform:$n,image:Er},qt?{current:Ui}:{})):br)),Be.createElement(Dt,{visible:Pn,transform:$n,maskTransitionName:Zt,closeIcon:Li,getContainer:Dn,prefixCls:xn,rootClassName:zi,icons:fi,countRender:Ri,showSwitch:Gt,showProgress:ti,current:Ui,count:bi,scale:wn,minScale:ki,maxScale:Nr,toolbarRender:rn,onActive:Gn,onZoomIn:Bi,onZoomOut:Fi,onRotateRight:Wi,onRotateLeft:cr,onFlipX:mr,onFlipY:Tr,onClose:Fn,onReset:Mr,zIndex:Rn.zIndex!==void 0?Rn.zIndex+1:void 0,image:Er}))},et=hi,_e=de(80702),xe=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function Te(un){var zt=Be.useState({}),xn=(0,Ie.Z)(zt,2),fn=xn[0],An=xn[1],nn=Be.useCallback(function(zn,yt){return An(function(Fn){return(0,Le.Z)((0,Le.Z)({},Fn),{},(0,De.Z)({},zn,yt))}),function(){An(function(Fn){var Pn=(0,Le.Z)({},Fn);return delete Pn[zn],Pn})}},[]),ci=Be.useMemo(function(){return un?un.map(function(zn){if(typeof zn=="string")return{data:{src:zn}};var yt={};return Object.keys(zn).forEach(function(Fn){["src"].concat((0,_e.Z)(xe)).includes(Fn)&&(yt[Fn]=zn[Fn])}),{data:yt}}):Object.keys(fn).reduce(function(zn,yt){var Fn=fn[yt],Pn=Fn.canPreview,Ht=Fn.data;return Pn&&zn.push({data:Ht,id:yt}),zn},[])},[un,fn]);return[ci,nn,!!un]}var Me=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Ae=["src"],at=function(zt){var xn,fn=zt.previewPrefixCls,An=fn===void 0?"rc-image-preview":fn,nn=zt.children,ci=zt.icons,zn=ci===void 0?{}:ci,yt=zt.items,Fn=zt.preview,Pn=zt.fallback,Ht=(0,Ye.Z)(Fn)==="object"?Fn:{},fi=Ht.visible,zi=Ht.onVisibleChange,Li=Ht.getContainer,Dn=Ht.current,qi=Ht.movable,Ui=Ht.minScale,ui=Ht.maxScale,bi=Ht.countRender,Ri=Ht.closeIcon,ke=Ht.onChange,gi=Ht.onTransform,Ii=Ht.toolbarRender,ki=Ht.imageRender,ar=(0,Fe.Z)(Ht,Me),Nr=Te(yt),sr=(0,Ie.Z)(Nr,3),Di=sr[0],Ei=sr[1],Zt=sr[2],Wt=(0,Oe.Z)(0,{value:Dn}),Rt=(0,Ie.Z)(Wt,2),rn=Rt[0],Xt=Rt[1],Sn=(0,Be.useState)(!1),Rn=(0,Ie.Z)(Sn,2),Jn=Rn[0],qt=Rn[1],Gt=((xn=Di[rn])===null||xn===void 0?void 0:xn.data)||{},ti=Gt.src,pt=(0,Fe.Z)(Gt,Ae),yn=(0,Oe.Z)(!!fi,{value:fi,onChange:function(Zi,Nn){zi==null||zi(Zi,Nn,rn)}}),ii=(0,Ie.Z)(yn,2),xi=ii[0],Ut=ii[1],$n=(0,Be.useState)(null),pi=(0,Ie.Z)($n,2),Kt=pi[0],Ue=pi[1],wi=Be.useCallback(function(Ki,Zi,Nn,Jt){var Ji=Zt?Di.findIndex(function(zr){return zr.data.src===Zi}):Di.findIndex(function(zr){return zr.id===Ki});Xt(Ji<0?0:Ji),Ut(!0),Ue({x:Nn,y:Jt}),qt(!0)},[Di,Zt]);Be.useEffect(function(){xi?Jn||Xt(0):qt(!1)},[xi]);var ai=function(Zi,Nn){Xt(Zi),ke==null||ke(Zi,Nn)},Mn=function(){Ut(!1),Ue(null)},ji=Be.useMemo(function(){return{register:Ei,onPreview:wi}},[Ei,wi]);return Be.createElement(ut.Provider,{value:ji},nn,Be.createElement(et,(0,le.Z)({"aria-hidden":!xi,movable:qi,visible:xi,prefixCls:An,closeIcon:Ri,onClose:Mn,mousePosition:Kt,imgCommonProps:pt,src:ti,fallback:Pn,icons:zn,minScale:Ui,maxScale:ui,getContainer:Li,current:rn,count:Di.length,countRender:bi,onTransform:gi,toolbarRender:Ii,imageRender:ki,onChange:ai},ar)))},Lt=at,Pt=0;function Vt(un,zt){var xn=Be.useState(function(){return Pt+=1,String(Pt)}),fn=(0,Ie.Z)(xn,1),An=fn[0],nn=Be.useContext(ut),ci={data:zt,canPreview:un};return Be.useEffect(function(){if(nn)return nn.register(An,ci)},[]),Be.useEffect(function(){nn&&nn.register(An,ci)},[un,zt]),An}var It=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],an=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],sn=function(zt){var xn=zt.src,fn=zt.alt,An=zt.onPreviewClose,nn=zt.prefixCls,ci=nn===void 0?"rc-image":nn,zn=zt.previewPrefixCls,yt=zn===void 0?"".concat(ci,"-preview"):zn,Fn=zt.placeholder,Pn=zt.fallback,Ht=zt.width,fi=zt.height,zi=zt.style,Li=zt.preview,Dn=Li===void 0?!0:Li,qi=zt.className,Ui=zt.onClick,ui=zt.onError,bi=zt.wrapperClassName,Ri=zt.wrapperStyle,ke=zt.rootClassName,gi=(0,Fe.Z)(zt,It),Ii=Fn&&Fn!==!0,ki=(0,Ye.Z)(Dn)==="object"?Dn:{},ar=ki.src,Nr=ki.visible,sr=Nr===void 0?void 0:Nr,Di=ki.onVisibleChange,Ei=Di===void 0?An:Di,Zt=ki.getContainer,Wt=Zt===void 0?void 0:Zt,Rt=ki.mask,rn=ki.maskClassName,Xt=ki.movable,Sn=ki.icons,Rn=ki.scaleStep,Jn=ki.minScale,qt=ki.maxScale,Gt=ki.imageRender,ti=ki.toolbarRender,pt=(0,Fe.Z)(ki,an),yn=ar!=null?ar:xn,ii=(0,Oe.Z)(!!sr,{value:sr,onChange:Ei}),xi=(0,Ie.Z)(ii,2),Ut=xi[0],$n=xi[1],pi=cn({src:xn,isCustomPlaceholder:Ii,fallback:Pn}),Kt=(0,Ie.Z)(pi,3),Ue=Kt[0],wi=Kt[1],ai=Kt[2],Mn=(0,Be.useState)(null),ji=(0,Ie.Z)(Mn,2),Ki=ji[0],Zi=ji[1],Nn=(0,Be.useContext)(ut),Jt=!!Dn,Ji=function(){$n(!1),Zi(null)},zr=Xe()(ci,bi,ke,(0,De.Z)({},"".concat(ci,"-error"),ai==="error")),wn=(0,Be.useMemo)(function(){var Fi={};return xe.forEach(function(Wi){zt[Wi]!==void 0&&(Fi[Wi]=zt[Wi])}),Fi},xe.map(function(Fi){return zt[Fi]})),vi=(0,Be.useMemo)(function(){return(0,Le.Z)((0,Le.Z)({},wn),{},{src:yn})},[yn,wn]),Ni=Vt(Jt,vi),Bi=function(Wi){var cr=Ce(Wi.target),mr=cr.left,Tr=cr.top;Nn?Nn.onPreview(Ni,yn,mr,Tr):(Zi({x:mr,y:Tr}),$n(!0)),Ui==null||Ui(Wi)};return Be.createElement(Be.Fragment,null,Be.createElement("div",(0,le.Z)({},gi,{className:zr,onClick:Jt?Bi:Ui,style:(0,Le.Z)({width:Ht,height:fi},Ri)}),Be.createElement("img",(0,le.Z)({},wn,{className:Xe()("".concat(ci,"-img"),(0,De.Z)({},"".concat(ci,"-img-placeholder"),Fn===!0),qi),style:(0,Le.Z)({height:fi},zi),ref:Ue},wi,{width:Ht,height:fi,onError:ui})),ai==="loading"&&Be.createElement("div",{"aria-hidden":"true",className:"".concat(ci,"-placeholder")},Fn),Rt&&Jt&&Be.createElement("div",{className:Xe()("".concat(ci,"-mask"),rn),style:{display:(zi==null?void 0:zi.display)==="none"?"none":void 0}},Rt)),!Nn&&Jt&&Be.createElement(et,(0,le.Z)({"aria-hidden":!Ut,visible:Ut,prefixCls:yt,onClose:Ji,mousePosition:Ki,src:yn,alt:fn,imageInfo:{width:Ht,height:fi},fallback:Pn,getContainer:Wt,icons:Sn,movable:Xt,scaleStep:Rn,minScale:Jn,maxScale:qt,rootClassName:ke,imageRender:Gt,imgCommonProps:wn,toolbarRender:ti},pt)))};sn.PreviewGroup=Lt;var on=sn,bn=on},25930:function(Ge,be,de){"use strict";de.d(be,{Cd:function(){return bt}});var le=de(72308),Le=de(77321),De=de(74416),Ie=de(59301),Ye=de(92310),Fe=de.n(Ye),Ve={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Xe=function(){var Dt=(0,Ie.useRef)([]),en=(0,Ie.useRef)(null);return(0,Ie.useEffect)(function(){var Cn=Date.now(),vn=!1;Dt.current.forEach(function(pn){if(pn){vn=!0;var mn=pn.style;mn.transitionDuration=".3s, .3s, .3s, .06s",en.current&&Cn-en.current<100&&(mn.transitionDuration="0s, 0s")}}),vn&&(en.current=Date.now())}),Dt.current},qe=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Je=function(Dt){var en=(0,Le.Z)((0,Le.Z)({},Ve),Dt),Cn=en.className,vn=en.percent,pn=en.prefixCls,mn=en.strokeColor,Mt=en.strokeLinecap,ct=en.strokeWidth,nt=en.style,dn=en.trailColor,En=en.trailWidth,Nt=en.transition,cn=(0,De.Z)(en,qe);delete cn.gapPosition;var ln=Array.isArray(vn)?vn:[vn],_n=Array.isArray(mn)?mn:[mn],kn=Xe(),si=ct/2,kt=100-ct/2,Kn="M ".concat(Mt==="round"?si:0,",").concat(si,`
L `).concat(Mt==="round"?kt:100,",").concat(si),hi="0 0 100 ".concat(ct),et=0;return Ie.createElement("svg",(0,le.Z)({className:Fe()("".concat(pn,"-line"),Cn),viewBox:hi,preserveAspectRatio:"none",style:nt},cn),Ie.createElement("path",{className:"".concat(pn,"-line-trail"),d:Kn,strokeLinecap:Mt,stroke:dn,strokeWidth:En||ct,fillOpacity:"0"}),ln.map(function(_e,xe){var Te=1;switch(Mt){case"round":Te=1-ct/100;break;case"square":Te=1-ct/2/100;break;default:Te=1;break}var Me={strokeDasharray:"".concat(_e*Te,"px, 100px"),strokeDashoffset:"-".concat(et,"px"),transition:Nt||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ae=_n[xe]||_n[_n.length-1];return et+=_e,Ie.createElement("path",{key:xe,className:"".concat(pn,"-line-path"),d:Kn,strokeLinecap:Mt,stroke:Ae,strokeWidth:ct,fillOpacity:"0",ref:function(Lt){kn[xe]=Lt},style:Me})}))},mt=Je,st=de(62853),Ct=de(52487),je=de(47273),te=0,ne=(0,je.Z)();function he(){var Tt;return ne?(Tt=te,te+=1):Tt="TEST_OR_SSR",Tt}var se=function(Tt){var Dt=Ie.useState(),en=(0,Ct.Z)(Dt,2),Cn=en[0],vn=en[1];return Ie.useEffect(function(){vn("rc_progress_".concat(he()))},[]),Tt||Cn},ge=function(Dt){var en=Dt.bg,Cn=Dt.children;return Ie.createElement("div",{style:{width:"100%",height:"100%",background:en}},Cn)};function Se(Tt,Dt){return Object.keys(Tt).map(function(en){var Cn=parseFloat(en),vn="".concat(Math.floor(Cn*Dt),"%");return"".concat(Tt[en]," ").concat(vn)})}var Ce=Ie.forwardRef(function(Tt,Dt){var en=Tt.prefixCls,Cn=Tt.color,vn=Tt.gradientId,pn=Tt.radius,mn=Tt.style,Mt=Tt.ptg,ct=Tt.strokeLinecap,nt=Tt.strokeWidth,dn=Tt.size,En=Tt.gapDegree,Nt=Cn&&(0,st.Z)(Cn)==="object",cn=Nt?"#FFF":void 0,ln=dn/2,_n=Ie.createElement("circle",{className:"".concat(en,"-circle-path"),r:pn,cx:ln,cy:ln,stroke:cn,strokeLinecap:ct,strokeWidth:nt,opacity:Mt===0?0:1,style:mn,ref:Dt});if(!Nt)return _n;var kn="".concat(vn,"-conic"),si=En?"".concat(180+En/2,"deg"):"0deg",kt=Se(Cn,(360-En)/360),Kn=Se(Cn,1),hi="conic-gradient(from ".concat(si,", ").concat(kt.join(", "),")"),et="linear-gradient(to ".concat(En?"bottom":"top",", ").concat(Kn.join(", "),")");return Ie.createElement(Ie.Fragment,null,Ie.createElement("mask",{id:kn},_n),Ie.createElement("foreignObject",{x:0,y:0,width:dn,height:dn,mask:"url(#".concat(kn,")")},Ie.createElement(ge,{bg:et},Ie.createElement(ge,{bg:hi}))))}),Oe=Ce,Be=100,Qe=function(Dt,en,Cn,vn,pn,mn,Mt,ct,nt,dn){var En=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Nt=Cn/100*360*((360-mn)/360),cn=mn===0?0:{bottom:0,top:180,left:90,right:-90}[Mt],ln=(100-vn)/100*en;nt==="round"&&vn!==100&&(ln+=dn/2,ln>=en&&(ln=en-.01));var _n=Be/2;return{stroke:typeof ct=="string"?ct:void 0,strokeDasharray:"".concat(en,"px ").concat(Dt),strokeDashoffset:ln+En,transform:"rotate(".concat(pn+Nt+cn,"deg)"),transformOrigin:"".concat(_n,"px ").concat(_n,"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}},ot=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function rt(Tt){var Dt=Tt!=null?Tt:[];return Array.isArray(Dt)?Dt:[Dt]}var ft=function(Dt){var en=(0,Le.Z)((0,Le.Z)({},Ve),Dt),Cn=en.id,vn=en.prefixCls,pn=en.steps,mn=en.strokeWidth,Mt=en.trailWidth,ct=en.gapDegree,nt=ct===void 0?0:ct,dn=en.gapPosition,En=en.trailColor,Nt=en.strokeLinecap,cn=en.style,ln=en.className,_n=en.strokeColor,kn=en.percent,si=(0,De.Z)(en,ot),kt=Be/2,Kn=se(Cn),hi="".concat(Kn,"-gradient"),et=kt-mn/2,_e=Math.PI*2*et,xe=nt>0?90+nt/2:-90,Te=_e*((360-nt)/360),Me=(0,st.Z)(pn)==="object"?pn:{count:pn,gap:2},Ae=Me.count,at=Me.gap,Lt=rt(kn),Pt=rt(_n),Vt=Pt.find(function(zt){return zt&&(0,st.Z)(zt)==="object"}),It=Vt&&(0,st.Z)(Vt)==="object",an=It?"butt":Nt,sn=Qe(_e,Te,0,100,xe,nt,dn,En,an,mn),on=Xe(),bn=function(){var xn=0;return Lt.map(function(fn,An){var nn=Pt[An]||Pt[Pt.length-1],ci=Qe(_e,Te,xn,fn,xe,nt,dn,nn,an,mn);return xn+=fn,Ie.createElement(Oe,{key:An,color:nn,ptg:fn,radius:et,prefixCls:vn,gradientId:hi,style:ci,strokeLinecap:an,strokeWidth:mn,gapDegree:nt,ref:function(yt){on[An]=yt},size:Be})}).reverse()},un=function(){var xn=Math.round(Ae*(Lt[0]/100)),fn=100/Ae,An=0;return new Array(Ae).fill(null).map(function(nn,ci){var zn=ci<=xn-1?Pt[0]:En,yt=zn&&(0,st.Z)(zn)==="object"?"url(#".concat(hi,")"):void 0,Fn=Qe(_e,Te,An,fn,xe,nt,dn,zn,"butt",mn,at);return An+=(Te-Fn.strokeDashoffset+at)*100/Te,Ie.createElement("circle",{key:ci,className:"".concat(vn,"-circle-path"),r:et,cx:kt,cy:kt,stroke:yt,strokeWidth:mn,opacity:1,style:Fn,ref:function(Ht){on[ci]=Ht}})})};return Ie.createElement("svg",(0,le.Z)({className:Fe()("".concat(vn,"-circle"),ln),viewBox:"0 0 ".concat(Be," ").concat(Be),style:cn,id:Cn,role:"presentation"},si),!Ae&&Ie.createElement("circle",{className:"".concat(vn,"-circle-trail"),r:et,cx:kt,cy:kt,stroke:En,strokeLinecap:an,strokeWidth:Mt||mn,style:sn}),Ae?un():bn())},bt=ft,ut={Line:mt,Circle:bt}},738:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return Se}});var le=de(72308),Le=de(49618),De=de(52487),Ie=de(74416),Ye=de(92310),Fe=de.n(Ye),Ve=de(18929),Xe=de(10228),qe=de(26112),Je=de(59301);function mt(Ce,Oe){var Be=Ce.disabled,Qe=Ce.prefixCls,ot=Ce.character,rt=Ce.characterRender,ft=Ce.index,bt=Ce.count,ut=Ce.value,Tt=Ce.allowHalf,Dt=Ce.focused,en=Ce.onHover,Cn=Ce.onClick,vn=function(Nt){en(Nt,ft)},pn=function(Nt){Cn(Nt,ft)},mn=function(Nt){Nt.keyCode===Xe.Z.ENTER&&Cn(Nt,ft)},Mt=ft+1,ct=new Set([Qe]);ut===0&&ft===0&&Dt?ct.add("".concat(Qe,"-focused")):Tt&&ut+.5>=Mt&&ut<Mt?(ct.add("".concat(Qe,"-half")),ct.add("".concat(Qe,"-active")),Dt&&ct.add("".concat(Qe,"-focused"))):(Mt<=ut?ct.add("".concat(Qe,"-full")):ct.add("".concat(Qe,"-zero")),Mt===ut&&Dt&&ct.add("".concat(Qe,"-focused")));var nt=typeof ot=="function"?ot(Ce):ot,dn=Je.createElement("li",{className:Fe()(Array.from(ct)),ref:Oe},Je.createElement("div",{onClick:Be?null:pn,onKeyDown:Be?null:mn,onMouseMove:Be?null:vn,role:"radio","aria-checked":ut>ft?"true":"false","aria-posinset":ft+1,"aria-setsize":bt,tabIndex:Be?-1:0},Je.createElement("div",{className:"".concat(Qe,"-first")},nt),Je.createElement("div",{className:"".concat(Qe,"-second")},nt)));return rt&&(dn=rt(dn,Ce)),dn}var st=Je.forwardRef(mt);function Ct(){var Ce=Je.useRef({});function Oe(Qe){return Ce.current[Qe]}function Be(Qe){return function(ot){Ce.current[Qe]=ot}}return[Oe,Be]}function je(Ce){var Oe=Ce.pageXOffset,Be="scrollLeft";if(typeof Oe!="number"){var Qe=Ce.document;Oe=Qe.documentElement[Be],typeof Oe!="number"&&(Oe=Qe.body[Be])}return Oe}function te(Ce){var Oe,Be,Qe=Ce.ownerDocument,ot=Qe.body,rt=Qe&&Qe.documentElement,ft=Ce.getBoundingClientRect();return Oe=ft.left,Be=ft.top,Oe-=rt.clientLeft||ot.clientLeft||0,Be-=rt.clientTop||ot.clientTop||0,{left:Oe,top:Be}}function ne(Ce){var Oe=te(Ce),Be=Ce.ownerDocument,Qe=Be.defaultView||Be.parentWindow;return Oe.left+=je(Qe),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(Ce,Oe){var Be=Ce.prefixCls,Qe=Be===void 0?"rc-rate":Be,ot=Ce.className,rt=Ce.defaultValue,ft=Ce.value,bt=Ce.count,ut=bt===void 0?5:bt,Tt=Ce.allowHalf,Dt=Tt===void 0?!1:Tt,en=Ce.allowClear,Cn=en===void 0?!0:en,vn=Ce.keyboard,pn=vn===void 0?!0:vn,mn=Ce.character,Mt=mn===void 0?"\u2605":mn,ct=Ce.characterRender,nt=Ce.disabled,dn=Ce.direction,En=dn===void 0?"ltr":dn,Nt=Ce.tabIndex,cn=Nt===void 0?0:Nt,ln=Ce.autoFocus,_n=Ce.onHoverChange,kn=Ce.onChange,si=Ce.onFocus,kt=Ce.onBlur,Kn=Ce.onKeyDown,hi=Ce.onMouseLeave,et=(0,Ie.Z)(Ce,he),_e=Ct(),xe=(0,De.Z)(_e,2),Te=xe[0],Me=xe[1],Ae=Je.useRef(null),at=function(){if(!nt){var bi;(bi=Ae.current)===null||bi===void 0||bi.focus()}};Je.useImperativeHandle(Oe,function(){return{focus:at,blur:function(){if(!nt){var bi;(bi=Ae.current)===null||bi===void 0||bi.blur()}}}});var Lt=(0,Ve.Z)(rt||0,{value:ft}),Pt=(0,De.Z)(Lt,2),Vt=Pt[0],It=Pt[1],an=(0,Ve.Z)(null),sn=(0,De.Z)(an,2),on=sn[0],bn=sn[1],un=function(bi,Ri){var ke=En==="rtl",gi=bi+1;if(Dt){var Ii=Te(bi),ki=ne(Ii),ar=Ii.clientWidth;(ke&&Ri-ki>ar/2||!ke&&Ri-ki<ar/2)&&(gi-=.5)}return gi},zt=function(bi){It(bi),kn==null||kn(bi)},xn=Je.useState(!1),fn=(0,De.Z)(xn,2),An=fn[0],nn=fn[1],ci=function(){nn(!0),si==null||si()},zn=function(){nn(!1),kt==null||kt()},yt=Je.useState(null),Fn=(0,De.Z)(yt,2),Pn=Fn[0],Ht=Fn[1],fi=function(bi,Ri){var ke=un(Ri,bi.pageX);ke!==on&&(Ht(ke),bn(null)),_n==null||_n(ke)},zi=function(bi){nt||(Ht(null),bn(null),_n==null||_n(void 0)),bi&&(hi==null||hi(bi))},Li=function(bi,Ri){var ke=un(Ri,bi.pageX),gi=!1;Cn&&(gi=ke===Vt),zi(),zt(gi?0:ke),bn(gi?ke:null)},Dn=function(bi){var Ri=bi.keyCode,ke=En==="rtl",gi=Dt?.5:1;pn&&(Ri===Xe.Z.RIGHT&&Vt<ut&&!ke?(zt(Vt+gi),bi.preventDefault()):Ri===Xe.Z.LEFT&&Vt>0&&!ke||Ri===Xe.Z.RIGHT&&Vt>0&&ke?(zt(Vt-gi),bi.preventDefault()):Ri===Xe.Z.LEFT&&Vt<ut&&ke&&(zt(Vt+gi),bi.preventDefault())),Kn==null||Kn(bi)};Je.useEffect(function(){ln&&!nt&&at()},[]);var qi=new Array(ut).fill(0).map(function(ui,bi){return Je.createElement(st,{ref:Me(bi),index:bi,count:ut,disabled:nt,prefixCls:"".concat(Qe,"-star"),allowHalf:Dt,value:Pn===null?Vt:Pn,onClick:Li,onHover:fi,key:ui||bi,character:Mt,characterRender:ct,focused:An})}),Ui=Fe()(Qe,ot,(0,Le.Z)((0,Le.Z)({},"".concat(Qe,"-disabled"),nt),"".concat(Qe,"-rtl"),En==="rtl"));return Je.createElement("ul",(0,le.Z)({className:Ui,onMouseLeave:zi,tabIndex:nt?-1:cn,onFocus:nt?null:ci,onBlur:nt?null:zn,onKeyDown:nt?null:Dn,ref:Ae},(0,qe.Z)(et,{aria:!0,data:!0,attr:!0})),qi)}var ge=Je.forwardRef(se),Se=ge},69582:function(Ge,be,de){"use strict";de.d(be,{ZP:function(){return Ve}});var le=de(52487),Le=de(59301),De=de(47273),Ie=0,Ye=(0,De.Z)();function Fe(){var Xe;return Ye?(Xe=Ie,Ie+=1):Xe="TEST_OR_SSR",Xe}function Ve(Xe){var qe=Le.useState(),Je=(0,le.Z)(qe,2),mt=Je[0],st=Je[1];return Le.useEffect(function(){st("rc_select_".concat(Fe()))},[]),Xe||mt}},45560:function(Ge,be,de){"use strict";de.d(be,{Ac:function(){return xn},Xo:function(){return An},Wx:function(){return ci},ZP:function(){return Jn},lk:function(){return Se}});var le=de(72308),Le=de(80702),De=de(49618),Ie=de(77321),Ye=de(52487),Fe=de(74416),Ve=de(62853),Xe=de(18929),qe=de(48736),Je=de(59301),mt=de(92310),st=de.n(mt),Ct=de(34280),je=de(49658),te=de(8654),ne=function(Gt){var ti=Gt.className,pt=Gt.customizeIcon,yn=Gt.customizeIconProps,ii=Gt.children,xi=Gt.onMouseDown,Ut=Gt.onClick,$n=typeof pt=="function"?pt(yn):pt;return Je.createElement("span",{className:ti,onMouseDown:function(Kt){Kt.preventDefault(),xi==null||xi(Kt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Ut,"aria-hidden":!0},$n!==void 0?$n:Je.createElement("span",{className:st()(ti.split(/\s+/).map(function(pi){return"".concat(pi,"-icon")}))},ii))},he=ne,se=function(Gt,ti,pt,yn,ii){var xi=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Ut=arguments.length>6?arguments[6]:void 0,$n=arguments.length>7?arguments[7]:void 0,pi=Je.useMemo(function(){if((0,Ve.Z)(yn)==="object")return yn.clearIcon;if(ii)return ii},[yn,ii]),Kt=Je.useMemo(function(){return!!(!xi&&yn&&(pt.length||Ut)&&!($n==="combobox"&&Ut===""))},[yn,xi,pt.length,Ut,$n]);return{allowClear:Kt,clearIcon:Je.createElement(he,{className:"".concat(Gt,"-clear"),onMouseDown:ti,customizeIcon:pi},"\xD7")}},ge=Je.createContext(null);function Se(){return Je.useContext(ge)}function Ce(){var qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Gt=Je.useState(!1),ti=(0,Ye.Z)(Gt,2),pt=ti[0],yn=ti[1],ii=Je.useRef(null),xi=function(){window.clearTimeout(ii.current)};Je.useEffect(function(){return xi},[]);var Ut=function(pi,Kt){xi(),ii.current=window.setTimeout(function(){yn(pi),Kt&&Kt()},qt)};return[pt,Ut,xi]}function Oe(){var qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Gt=Je.useRef(null),ti=Je.useRef(null);Je.useEffect(function(){return function(){window.clearTimeout(ti.current)}},[]);function pt(yn){(yn||Gt.current===null)&&(Gt.current=yn),window.clearTimeout(ti.current),ti.current=window.setTimeout(function(){Gt.current=null},qt)}return[function(){return Gt.current},pt]}function Be(qt,Gt,ti,pt){var yn=Je.useRef(null);yn.current={open:Gt,triggerOpen:ti,customizedTrigger:pt},Je.useEffect(function(){function ii(xi){var Ut;if(!((Ut=yn.current)!==null&&Ut!==void 0&&Ut.customizedTrigger)){var $n=xi.target;$n.shadowRoot&&xi.composed&&($n=xi.composedPath()[0]||$n),yn.current.open&&qt().filter(function(pi){return pi}).every(function(pi){return!pi.contains($n)&&pi!==$n})&&yn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",ii),function(){return window.removeEventListener("mousedown",ii)}},[])}var Qe=de(10228);function ot(qt){return qt&&![Qe.Z.ESC,Qe.Z.SHIFT,Qe.Z.BACKSPACE,Qe.Z.TAB,Qe.Z.WIN_KEY,Qe.Z.ALT,Qe.Z.META,Qe.Z.WIN_KEY_RIGHT,Qe.Z.CTRL,Qe.Z.SEMICOLON,Qe.Z.EQUALS,Qe.Z.CAPS_LOCK,Qe.Z.CONTEXT_MENU,Qe.Z.F1,Qe.Z.F2,Qe.Z.F3,Qe.Z.F4,Qe.Z.F5,Qe.Z.F6,Qe.Z.F7,Qe.Z.F8,Qe.Z.F9,Qe.Z.F10,Qe.Z.F11,Qe.Z.F12].includes(qt)}var rt=de(26112),ft=de(11780),bt=function(Gt,ti){var pt,yn=Gt.prefixCls,ii=Gt.id,xi=Gt.inputElement,Ut=Gt.disabled,$n=Gt.tabIndex,pi=Gt.autoFocus,Kt=Gt.autoComplete,Ue=Gt.editable,wi=Gt.activeDescendantId,ai=Gt.value,Mn=Gt.maxLength,ji=Gt.onKeyDown,Ki=Gt.onMouseDown,Zi=Gt.onChange,Nn=Gt.onPaste,Jt=Gt.onCompositionStart,Ji=Gt.onCompositionEnd,zr=Gt.onBlur,wn=Gt.open,vi=Gt.attrs,Ni=xi||Je.createElement("input",null),Bi=Ni,Fi=Bi.ref,Wi=Bi.props,cr=Wi.onKeyDown,mr=Wi.onChange,Tr=Wi.onMouseDown,Mr=Wi.onCompositionStart,Gn=Wi.onCompositionEnd,ur=Wi.onBlur,Bn=Wi.style;return(0,qe.Kp)(!("maxLength"in Ni.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Ni=Je.cloneElement(Ni,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({type:"search"},Wi),{},{id:ii,ref:(0,te.sQ)(ti,Fi),disabled:Ut,tabIndex:$n,autoComplete:Kt||"off",autoFocus:pi,className:st()("".concat(yn,"-selection-search-input"),(pt=Ni)===null||pt===void 0||(pt=pt.props)===null||pt===void 0?void 0:pt.className),role:"combobox","aria-expanded":wn||!1,"aria-haspopup":"listbox","aria-owns":"".concat(ii,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(ii,"_list"),"aria-activedescendant":wn?wi:void 0},vi),{},{value:Ue?ai:"",maxLength:Mn,readOnly:!Ue,unselectable:Ue?null:"on",style:(0,Ie.Z)((0,Ie.Z)({},Bn),{},{opacity:Ue?null:0}),onKeyDown:function(Er){ji(Er),cr&&cr(Er)},onMouseDown:function(Er){Ki(Er),Tr&&Tr(Er)},onChange:function(Er){Zi(Er),mr&&mr(Er)},onCompositionStart:function(Er){Jt(Er),Mr&&Mr(Er)},onCompositionEnd:function(Er){Ji(Er),Gn&&Gn(Er)},onPaste:Nn,onBlur:function(Er){zr(Er),ur&&ur(Er)}})),Ni},ut=Je.forwardRef(bt),Tt=ut;function Dt(qt){return Array.isArray(qt)?qt:qt!==void 0?[qt]:[]}var en=typeof window!="undefined"&&window.document&&window.document.documentElement,Cn=en;function vn(qt){return qt!=null}function pn(qt){return!qt&&qt!==0}function mn(qt){return["string","number"].includes((0,Ve.Z)(qt))}function Mt(qt){var Gt=void 0;return qt&&(mn(qt.title)?Gt=qt.title.toString():mn(qt.label)&&(Gt=qt.label.toString())),Gt}function ct(qt,Gt){Cn?Je.useLayoutEffect(qt,Gt):Je.useEffect(qt,Gt)}function nt(qt){var Gt;return(Gt=qt.key)!==null&&Gt!==void 0?Gt:qt.value}var dn=function(Gt){Gt.preventDefault(),Gt.stopPropagation()},En=function(Gt){var ti=Gt.id,pt=Gt.prefixCls,yn=Gt.values,ii=Gt.open,xi=Gt.searchValue,Ut=Gt.autoClearSearchValue,$n=Gt.inputRef,pi=Gt.placeholder,Kt=Gt.disabled,Ue=Gt.mode,wi=Gt.showSearch,ai=Gt.autoFocus,Mn=Gt.autoComplete,ji=Gt.activeDescendantId,Ki=Gt.tabIndex,Zi=Gt.removeIcon,Nn=Gt.maxTagCount,Jt=Gt.maxTagTextLength,Ji=Gt.maxTagPlaceholder,zr=Ji===void 0?function(po){return"+ ".concat(po.length," ...")}:Ji,wn=Gt.tagRender,vi=Gt.onToggleOpen,Ni=Gt.onRemove,Bi=Gt.onInputChange,Fi=Gt.onInputPaste,Wi=Gt.onInputKeyDown,cr=Gt.onInputMouseDown,mr=Gt.onInputCompositionStart,Tr=Gt.onInputCompositionEnd,Mr=Gt.onInputBlur,Gn=Je.useRef(null),ur=(0,Je.useState)(0),Bn=(0,Ye.Z)(ur,2),br=Bn[0],Er=Bn[1],pr=(0,Je.useState)(!1),$r=(0,Ye.Z)(pr,2),Xr=$r[0],Ur=$r[1],Yr="".concat(pt,"-selection"),Vo=ii||Ue==="multiple"&&Ut===!1||Ue==="tags"?xi:"",Kr=Ue==="tags"||Ue==="multiple"&&Ut===!1||wi&&(ii||Xr);ct(function(){Er(Gn.current.scrollWidth)},[Vo]);var Ti=function(Vi,er,Ir,wr,kr){return Je.createElement("span",{title:Mt(Vi),className:st()("".concat(Yr,"-item"),(0,De.Z)({},"".concat(Yr,"-item-disabled"),Ir))},Je.createElement("span",{className:"".concat(Yr,"-item-content")},er),wr&&Je.createElement(he,{className:"".concat(Yr,"-item-remove"),onMouseDown:dn,onClick:kr,customizeIcon:Zi},"\xD7"))},lt=function(Vi,er,Ir,wr,kr,Ho){var hr=function(ri){dn(ri),vi(!ii)};return Je.createElement("span",{onMouseDown:hr},wn({label:er,value:Vi,disabled:Ir,closable:wr,onClose:kr,isMaxTag:!!Ho}))},xo=function(Vi){var er=Vi.disabled,Ir=Vi.label,wr=Vi.value,kr=!Kt&&!er,Ho=Ir;if(typeof Jt=="number"&&(typeof Ir=="string"||typeof Ir=="number")){var hr=String(Ho);hr.length>Jt&&(Ho="".concat(hr.slice(0,Jt),"..."))}var rr=function(Qi){Qi&&Qi.stopPropagation(),Ni(Vi)};return typeof wn=="function"?lt(wr,Ho,er,kr,rr):Ti(Vi,Ho,er,kr,rr)},Ar=function(Vi){if(!yn.length)return null;var er=typeof zr=="function"?zr(Vi):zr;return typeof wn=="function"?lt(void 0,er,!1,!1,void 0,!0):Ti({title:er},er,!1)},Or=Je.createElement("div",{className:"".concat(Yr,"-search"),style:{width:br},onFocus:function(){Ur(!0)},onBlur:function(){Ur(!1)}},Je.createElement(Tt,{ref:$n,open:ii,prefixCls:pt,id:ti,inputElement:null,disabled:Kt,autoFocus:ai,autoComplete:Mn,editable:Kr,activeDescendantId:ji,value:Vo,onKeyDown:Wi,onMouseDown:cr,onChange:Bi,onPaste:Fi,onCompositionStart:mr,onCompositionEnd:Tr,onBlur:Mr,tabIndex:Ki,attrs:(0,rt.Z)(Gt,!0)}),Je.createElement("span",{ref:Gn,className:"".concat(Yr,"-search-mirror"),"aria-hidden":!0},Vo,"\xA0")),no=Je.createElement(ft.Z,{prefixCls:"".concat(Yr,"-overflow"),data:yn,renderItem:xo,renderRest:Ar,suffix:Or,itemKey:nt,maxCount:Nn});return Je.createElement("span",{className:"".concat(Yr,"-wrap")},no,!yn.length&&!Vo&&Je.createElement("span",{className:"".concat(Yr,"-placeholder")},pi))},Nt=En,cn=function(Gt){var ti=Gt.inputElement,pt=Gt.prefixCls,yn=Gt.id,ii=Gt.inputRef,xi=Gt.disabled,Ut=Gt.autoFocus,$n=Gt.autoComplete,pi=Gt.activeDescendantId,Kt=Gt.mode,Ue=Gt.open,wi=Gt.values,ai=Gt.placeholder,Mn=Gt.tabIndex,ji=Gt.showSearch,Ki=Gt.searchValue,Zi=Gt.activeValue,Nn=Gt.maxLength,Jt=Gt.onInputKeyDown,Ji=Gt.onInputMouseDown,zr=Gt.onInputChange,wn=Gt.onInputPaste,vi=Gt.onInputCompositionStart,Ni=Gt.onInputCompositionEnd,Bi=Gt.onInputBlur,Fi=Gt.title,Wi=Je.useState(!1),cr=(0,Ye.Z)(Wi,2),mr=cr[0],Tr=cr[1],Mr=Kt==="combobox",Gn=Mr||ji,ur=wi[0],Bn=Ki||"";Mr&&Zi&&!mr&&(Bn=Zi),Je.useEffect(function(){Mr&&Tr(!1)},[Mr,Zi]);var br=Kt!=="combobox"&&!Ue&&!ji?!1:!!Bn,Er=Fi===void 0?Mt(ur):Fi,pr=Je.useMemo(function(){return ur?null:Je.createElement("span",{className:"".concat(pt,"-selection-placeholder"),style:br?{visibility:"hidden"}:void 0},ai)},[ur,br,ai,pt]);return Je.createElement("span",{className:"".concat(pt,"-selection-wrap")},Je.createElement("span",{className:"".concat(pt,"-selection-search")},Je.createElement(Tt,{ref:ii,prefixCls:pt,id:yn,open:Ue,inputElement:ti,disabled:xi,autoFocus:Ut,autoComplete:$n,editable:Gn,activeDescendantId:pi,value:Bn,onKeyDown:Jt,onMouseDown:Ji,onChange:function(Xr){Tr(!0),zr(Xr)},onPaste:wn,onCompositionStart:vi,onCompositionEnd:Ni,onBlur:Bi,tabIndex:Mn,attrs:(0,rt.Z)(Gt,!0),maxLength:Mr?Nn:void 0})),!Mr&&ur?Je.createElement("span",{className:"".concat(pt,"-selection-item"),title:Er,style:br?{visibility:"hidden"}:void 0},ur.label):null,pr)},ln=cn,_n=function(Gt,ti){var pt=(0,Je.useRef)(null),yn=(0,Je.useRef)(!1),ii=Gt.prefixCls,xi=Gt.open,Ut=Gt.mode,$n=Gt.showSearch,pi=Gt.tokenWithEnter,Kt=Gt.disabled,Ue=Gt.prefix,wi=Gt.autoClearSearchValue,ai=Gt.onSearch,Mn=Gt.onSearchSubmit,ji=Gt.onToggleOpen,Ki=Gt.onInputKeyDown,Zi=Gt.onInputBlur,Nn=Gt.domRef;Je.useImperativeHandle(ti,function(){return{focus:function(Er){pt.current.focus(Er)},blur:function(){pt.current.blur()}}});var Jt=Oe(0),Ji=(0,Ye.Z)(Jt,2),zr=Ji[0],wn=Ji[1],vi=function(Er){var pr=Er.which,$r=pt.current instanceof HTMLTextAreaElement;!$r&&xi&&(pr===Qe.Z.UP||pr===Qe.Z.DOWN)&&Er.preventDefault(),Ki&&Ki(Er),pr===Qe.Z.ENTER&&Ut==="tags"&&!yn.current&&!xi&&(Mn==null||Mn(Er.target.value)),!($r&&!xi&&~[Qe.Z.UP,Qe.Z.DOWN,Qe.Z.LEFT,Qe.Z.RIGHT].indexOf(pr))&&ot(pr)&&ji(!0)},Ni=function(){wn(!0)},Bi=(0,Je.useRef)(null),Fi=function(Er){ai(Er,!0,yn.current)!==!1&&ji(!0)},Wi=function(){yn.current=!0},cr=function(Er){yn.current=!1,Ut!=="combobox"&&Fi(Er.target.value)},mr=function(Er){var pr=Er.target.value;if(pi&&Bi.current&&/[\r\n]/.test(Bi.current)){var $r=Bi.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");pr=pr.replace($r,Bi.current)}Bi.current=null,Fi(pr)},Tr=function(Er){var pr=Er.clipboardData,$r=pr==null?void 0:pr.getData("text");Bi.current=$r||""},Mr=function(Er){var pr=Er.target;if(pr!==pt.current){var $r=document.body.style.msTouchAction!==void 0;$r?setTimeout(function(){pt.current.focus()}):pt.current.focus()}},Gn=function(Er){var pr=zr();Er.target!==pt.current&&!pr&&!(Ut==="combobox"&&Kt)&&Er.preventDefault(),(Ut!=="combobox"&&(!$n||!pr)||!xi)&&(xi&&wi!==!1&&ai("",!0,!1),ji())},ur={inputRef:pt,onInputKeyDown:vi,onInputMouseDown:Ni,onInputChange:mr,onInputPaste:Tr,onInputCompositionStart:Wi,onInputCompositionEnd:cr,onInputBlur:Zi},Bn=Ut==="multiple"||Ut==="tags"?Je.createElement(Nt,(0,le.Z)({},Gt,ur)):Je.createElement(ln,(0,le.Z)({},Gt,ur));return Je.createElement("div",{ref:Nn,className:"".concat(ii,"-selector"),onClick:Mr,onMouseDown:Gn},Ue&&Je.createElement("div",{className:"".concat(ii,"-prefix")},Ue),Bn)},kn=Je.forwardRef(_n),si=kn,kt=de(65352),Kn=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],hi=function(Gt){var ti=Gt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:ti,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:ti,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:ti,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:ti,adjustY:1},htmlRegion:"scroll"}}},et=function(Gt,ti){var pt=Gt.prefixCls,yn=Gt.disabled,ii=Gt.visible,xi=Gt.children,Ut=Gt.popupElement,$n=Gt.animation,pi=Gt.transitionName,Kt=Gt.dropdownStyle,Ue=Gt.dropdownClassName,wi=Gt.direction,ai=wi===void 0?"ltr":wi,Mn=Gt.placement,ji=Gt.builtinPlacements,Ki=Gt.dropdownMatchSelectWidth,Zi=Gt.dropdownRender,Nn=Gt.dropdownAlign,Jt=Gt.getPopupContainer,Ji=Gt.empty,zr=Gt.getTriggerDOMNode,wn=Gt.onPopupVisibleChange,vi=Gt.onPopupMouseEnter,Ni=(0,Fe.Z)(Gt,Kn),Bi="".concat(pt,"-dropdown"),Fi=Ut;Zi&&(Fi=Zi(Ut));var Wi=Je.useMemo(function(){return ji||hi(Ki)},[ji,Ki]),cr=$n?"".concat(Bi,"-").concat($n):pi,mr=typeof Ki=="number",Tr=Je.useMemo(function(){return mr?null:Ki===!1?"minWidth":"width"},[Ki,mr]),Mr=Kt;mr&&(Mr=(0,Ie.Z)((0,Ie.Z)({},Mr),{},{width:Ki}));var Gn=Je.useRef(null);return Je.useImperativeHandle(ti,function(){return{getPopupElement:function(){var Bn;return(Bn=Gn.current)===null||Bn===void 0?void 0:Bn.popupElement}}}),Je.createElement(kt.Z,(0,le.Z)({},Ni,{showAction:wn?["click"]:[],hideAction:wn?["click"]:[],popupPlacement:Mn||(ai==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Wi,prefixCls:Bi,popupTransitionName:cr,popup:Je.createElement("div",{onMouseEnter:vi},Fi),ref:Gn,stretch:Tr,popupAlign:Nn,popupVisible:ii,getPopupContainer:Jt,popupClassName:st()(Ue,(0,De.Z)({},"".concat(Bi,"-empty"),Ji)),popupStyle:Mr,getTriggerDOMNode:zr,onPopupVisibleChange:wn}),xi)},_e=Je.forwardRef(et),xe=_e,Te=de(68413);function Me(qt,Gt){var ti=qt.key,pt;return"value"in qt&&(pt=qt.value),ti!=null?ti:pt!==void 0?pt:"rc-index-key-".concat(Gt)}function Ae(qt){return typeof qt!="undefined"&&!Number.isNaN(qt)}function at(qt,Gt){var ti=qt||{},pt=ti.label,yn=ti.value,ii=ti.options,xi=ti.groupLabel,Ut=pt||(Gt?"children":"label");return{label:Ut,value:yn||"value",options:ii||"options",groupLabel:xi||Ut}}function Lt(qt){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ti=Gt.fieldNames,pt=Gt.childrenAsData,yn=[],ii=at(ti,!1),xi=ii.label,Ut=ii.value,$n=ii.options,pi=ii.groupLabel;function Kt(Ue,wi){Array.isArray(Ue)&&Ue.forEach(function(ai){if(wi||!($n in ai)){var Mn=ai[Ut];yn.push({key:Me(ai,yn.length),groupOption:wi,data:ai,label:ai[xi],value:Mn})}else{var ji=ai[pi];ji===void 0&&pt&&(ji=ai.label),yn.push({key:Me(ai,yn.length),group:!0,data:ai,label:ji}),Kt(ai[$n],!0)}})}return Kt(qt,!1),yn}function Pt(qt){var Gt=(0,Ie.Z)({},qt);return"props"in Gt||Object.defineProperty(Gt,"props",{get:function(){return(0,qe.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Gt}}),Gt}var Vt=function(Gt,ti,pt){if(!ti||!ti.length)return null;var yn=!1,ii=function Ut($n,pi){var Kt=(0,Te.Z)(pi),Ue=Kt[0],wi=Kt.slice(1);if(!Ue)return[$n];var ai=$n.split(Ue);return yn=yn||ai.length>1,ai.reduce(function(Mn,ji){return[].concat((0,Le.Z)(Mn),(0,Le.Z)(Ut(ji,wi)))},[]).filter(Boolean)},xi=ii(Gt,ti);return yn?typeof pt!="undefined"?xi.slice(0,pt):xi:null},It=Je.createContext(null),an=It;function sn(qt){var Gt=qt.visible,ti=qt.values;if(!Gt)return null;var pt=50;return Je.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(ti.slice(0,pt).map(function(yn){var ii=yn.label,xi=yn.value;return["number","string"].includes((0,Ve.Z)(ii))?ii:xi}).join(", ")),ti.length>pt?", ...":null)}var on=["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"],bn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],un=function(Gt){return Gt==="tags"||Gt==="multiple"},zt=Je.forwardRef(function(qt,Gt){var ti,pt=qt.id,yn=qt.prefixCls,ii=qt.className,xi=qt.showSearch,Ut=qt.tagRender,$n=qt.direction,pi=qt.omitDomProps,Kt=qt.displayValues,Ue=qt.onDisplayValuesChange,wi=qt.emptyOptions,ai=qt.notFoundContent,Mn=ai===void 0?"Not Found":ai,ji=qt.onClear,Ki=qt.mode,Zi=qt.disabled,Nn=qt.loading,Jt=qt.getInputElement,Ji=qt.getRawInputElement,zr=qt.open,wn=qt.defaultOpen,vi=qt.onDropdownVisibleChange,Ni=qt.activeValue,Bi=qt.onActiveValueChange,Fi=qt.activeDescendantId,Wi=qt.searchValue,cr=qt.autoClearSearchValue,mr=qt.onSearch,Tr=qt.onSearchSplit,Mr=qt.tokenSeparators,Gn=qt.allowClear,ur=qt.prefix,Bn=qt.suffixIcon,br=qt.clearIcon,Er=qt.OptionList,pr=qt.animation,$r=qt.transitionName,Xr=qt.dropdownStyle,Ur=qt.dropdownClassName,Yr=qt.dropdownMatchSelectWidth,Vo=qt.dropdownRender,Kr=qt.dropdownAlign,Ti=qt.placement,lt=qt.builtinPlacements,xo=qt.getPopupContainer,Ar=qt.showAction,Or=Ar===void 0?[]:Ar,no=qt.onFocus,po=qt.onBlur,Vi=qt.onKeyUp,er=qt.onKeyDown,Ir=qt.onMouseDown,wr=(0,Fe.Z)(qt,on),kr=un(Ki),Ho=(xi!==void 0?xi:kr)||Ki==="combobox",hr=(0,Ie.Z)({},wr);bn.forEach(function(Yo){delete hr[Yo]}),pi==null||pi.forEach(function(Yo){delete hr[Yo]});var rr=Je.useState(!1),ri=(0,Ye.Z)(rr,2),Qi=ri[0],Qr=ri[1];Je.useEffect(function(){Qr((0,je.Z)())},[]);var zo=Je.useRef(null),Oo=Je.useRef(null),Co=Je.useRef(null),Go=Je.useRef(null),Lo=Je.useRef(null),Sa=Je.useRef(!1),sa=Ce(),es=(0,Ye.Z)(sa,3),gn=es[0],oa=es[1],kl=es[2];Je.useImperativeHandle(Gt,function(){var Yo,bo;return{focus:(Yo=Go.current)===null||Yo===void 0?void 0:Yo.focus,blur:(bo=Go.current)===null||bo===void 0?void 0:bo.blur,scrollTo:function(hs){var La;return(La=Lo.current)===null||La===void 0?void 0:La.scrollTo(hs)},nativeElement:zo.current||Oo.current}});var Ha=Je.useMemo(function(){var Yo;if(Ki!=="combobox")return Wi;var bo=(Yo=Kt[0])===null||Yo===void 0?void 0:Yo.value;return typeof bo=="string"||typeof bo=="number"?String(bo):""},[Wi,Ki,Kt]),yl=Ki==="combobox"&&typeof Jt=="function"&&Jt()||null,Io=typeof Ji=="function"&&Ji(),lu=(0,te.x1)(Oo,Io==null||(ti=Io.props)===null||ti===void 0?void 0:ti.ref),Ln=Je.useState(!1),Uo=(0,Ye.Z)(Ln,2),da=Uo[0],sl=Uo[1];(0,Ct.Z)(function(){sl(!0)},[]);var Ga=(0,Xe.Z)(!1,{defaultValue:wn,value:zr}),Xs=(0,Ye.Z)(Ga,2),ps=Xs[0],dr=Xs[1],Pa=da?ps:!1,Dl=!Mn&&wi;(Zi||Dl&&Pa&&Ki==="combobox")&&(Pa=!1);var is=Dl?!1:Pa,Jr=Je.useCallback(function(Yo){var bo=Yo!==void 0?Yo:!Pa;Zi||(dr(bo),Pa!==bo&&(vi==null||vi(bo)))},[Zi,Pa,dr,vi]),lo=Je.useMemo(function(){return(Mr||[]).some(function(Yo){return[`
`,`\r
`].includes(Yo)})},[Mr]),Yt=Je.useContext(an)||{},Ci=Yt.maxCount,Yi=Yt.rawValues,xr=function(bo,Bo,hs){if(!(kr&&Ae(Ci)&&(Yi==null?void 0:Yi.size)>=Ci)){var La=!0,Ka=bo;Bi==null||Bi(null);var tr=Vt(bo,Mr,Ae(Ci)?Ci-Yi.size:void 0),cl=hs?null:tr;return Ki!=="combobox"&&cl&&(Ka="",Tr==null||Tr(cl),Jr(!1),La=!1),mr&&Ha!==Ka&&mr(Ka,{source:Bo?"typing":"effect"}),La}},qr=function(bo){!bo||!bo.trim()||mr(bo,{source:"submit"})};Je.useEffect(function(){!Pa&&!kr&&Ki!=="combobox"&&xr("",!1,!1)},[Pa]),Je.useEffect(function(){ps&&Zi&&dr(!1),Zi&&!Sa.current&&oa(!1)},[Zi]);var Zr=Oe(),lr=(0,Ye.Z)(Zr,2),yo=lr[0],qo=lr[1],ko=Je.useRef(!1),Zo=function(bo){var Bo=yo(),hs=bo.key,La=hs==="Enter";if(La&&(Ki!=="combobox"&&bo.preventDefault(),Pa||Jr(!0)),qo(!!Ha),hs==="Backspace"&&!Bo&&kr&&!Ha&&Kt.length){for(var Ka=(0,Le.Z)(Kt),tr=null,cl=Ka.length-1;cl>=0;cl-=1){var jt=Ka[cl];if(!jt.disabled){Ka.splice(cl,1),tr=jt;break}}tr&&Ue(Ka,{type:"remove",values:[tr]})}for(var Qn=arguments.length,uu=new Array(Qn>1?Qn-1:0),ac=1;ac<Qn;ac++)uu[ac-1]=arguments[ac];if(Pa&&(!La||!ko.current)){var Js;La&&(ko.current=!0),(Js=Lo.current)===null||Js===void 0||Js.onKeyDown.apply(Js,[bo].concat(uu))}er==null||er.apply(void 0,[bo].concat(uu))},aa=function(bo){for(var Bo=arguments.length,hs=new Array(Bo>1?Bo-1:0),La=1;La<Bo;La++)hs[La-1]=arguments[La];if(Pa){var Ka;(Ka=Lo.current)===null||Ka===void 0||Ka.onKeyUp.apply(Ka,[bo].concat(hs))}bo.key==="Enter"&&(ko.current=!1),Vi==null||Vi.apply(void 0,[bo].concat(hs))},ms=function(bo){var Bo=Kt.filter(function(hs){return hs!==bo});Ue(Bo,{type:"remove",values:[bo]})},Ko=function(){ko.current=!1},Aa=Je.useRef(!1),Sl=function(){oa(!0),Zi||(no&&!Aa.current&&no.apply(void 0,arguments),Or.includes("focus")&&Jr(!0)),Aa.current=!0},ll=function(){Sa.current=!0,oa(!1,function(){Aa.current=!1,Sa.current=!1,Jr(!1)}),!Zi&&(Ha&&(Ki==="tags"?mr(Ha,{source:"submit"}):Ki==="multiple"&&mr("",{source:"blur"})),po&&po.apply(void 0,arguments))},vs=[];Je.useEffect(function(){return function(){vs.forEach(function(Yo){return clearTimeout(Yo)}),vs.splice(0,vs.length)}},[]);var ul=function(bo){var Bo,hs=bo.target,La=(Bo=Co.current)===null||Bo===void 0?void 0:Bo.getPopupElement();if(La&&La.contains(hs)){var Ka=setTimeout(function(){var Qn=vs.indexOf(Ka);if(Qn!==-1&&vs.splice(Qn,1),kl(),!Qi&&!La.contains(document.activeElement)){var uu;(uu=Go.current)===null||uu===void 0||uu.focus()}});vs.push(Ka)}for(var tr=arguments.length,cl=new Array(tr>1?tr-1:0),jt=1;jt<tr;jt++)cl[jt-1]=arguments[jt];Ir==null||Ir.apply(void 0,[bo].concat(cl))},Ol=Je.useState({}),cs=(0,Ye.Z)(Ol,2),Ts=cs[1];function Ds(){Ts({})}var Hu;Io&&(Hu=function(bo){Jr(bo)}),Be(function(){var Yo;return[zo.current,(Yo=Co.current)===null||Yo===void 0?void 0:Yo.getPopupElement()]},is,Jr,!!Io);var xc=Je.useMemo(function(){return(0,Ie.Z)((0,Ie.Z)({},qt),{},{notFoundContent:Mn,open:Pa,triggerOpen:is,id:pt,showSearch:Ho,multiple:kr,toggleOpen:Jr})},[qt,Mn,is,Pa,pt,Ho,kr,Jr]),bc=!!Bn||Nn,Ca;bc&&(Ca=Je.createElement(he,{className:st()("".concat(yn,"-arrow"),(0,De.Z)({},"".concat(yn,"-arrow-loading"),Nn)),customizeIcon:Bn,customizeIconProps:{loading:Nn,searchValue:Ha,open:Pa,focused:gn,showSearch:Ho}}));var ad=function(){var bo;ji==null||ji(),(bo=Go.current)===null||bo===void 0||bo.focus(),Ue([],{type:"clear",values:Kt}),xr("",!1,!1)},wc=se(yn,ad,Kt,Gn,br,Zi,Ha,Ki),oc=wc.allowClear,Gu=wc.clearIcon,rs=Je.createElement(Er,{ref:Lo}),ds=st()(yn,ii,(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(yn,"-focused"),gn),"".concat(yn,"-multiple"),kr),"".concat(yn,"-single"),!kr),"".concat(yn,"-allow-clear"),Gn),"".concat(yn,"-show-arrow"),bc),"".concat(yn,"-disabled"),Zi),"".concat(yn,"-loading"),Nn),"".concat(yn,"-open"),Pa),"".concat(yn,"-customize-input"),yl),"".concat(yn,"-show-search"),Ho)),_a=Je.createElement(xe,{ref:Co,disabled:Zi,prefixCls:yn,visible:is,popupElement:rs,animation:pr,transitionName:$r,dropdownStyle:Xr,dropdownClassName:Ur,direction:$n,dropdownMatchSelectWidth:Yr,dropdownRender:Vo,dropdownAlign:Kr,placement:Ti,builtinPlacements:lt,getPopupContainer:xo,empty:wi,getTriggerDOMNode:function(bo){return Oo.current||bo},onPopupVisibleChange:Hu,onPopupMouseEnter:Ds},Io?Je.cloneElement(Io,{ref:lu}):Je.createElement(si,(0,le.Z)({},qt,{domRef:Oo,prefixCls:yn,inputElement:yl,ref:Go,id:pt,prefix:ur,showSearch:Ho,autoClearSearchValue:cr,mode:Ki,activeDescendantId:Fi,tagRender:Ut,values:Kt,open:Pa,onToggleOpen:Jr,activeValue:Ni,searchValue:Ha,onSearch:xr,onSearchSubmit:qr,onRemove:ms,tokenWithEnter:lo,onInputBlur:Ko}))),Ya;return Io?Ya=_a:Ya=Je.createElement("div",(0,le.Z)({className:ds},hr,{ref:zo,onMouseDown:ul,onKeyDown:Zo,onKeyUp:aa,onFocus:Sl,onBlur:ll}),Je.createElement(sn,{visible:gn&&!Pa,values:Kt}),_a,Ca,oc&&Gu),Je.createElement(ge.Provider,{value:xc},Ya)}),xn=zt,fn=function(){return null};fn.isSelectOptGroup=!0;var An=fn,nn=function(){return null};nn.isSelectOption=!0;var ci=nn,zn=de(80547),yt=de(2738),Fn=de(45680);function Pn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Ht=["disabled","title","children","style","className"];function fi(qt){return typeof qt=="string"||typeof qt=="number"}var zi=function(Gt,ti){var pt=Se(),yn=pt.prefixCls,ii=pt.id,xi=pt.open,Ut=pt.multiple,$n=pt.mode,pi=pt.searchValue,Kt=pt.toggleOpen,Ue=pt.notFoundContent,wi=pt.onPopupScroll,ai=Je.useContext(an),Mn=ai.maxCount,ji=ai.flattenOptions,Ki=ai.onActiveValue,Zi=ai.defaultActiveFirstOption,Nn=ai.onSelect,Jt=ai.menuItemSelectedIcon,Ji=ai.rawValues,zr=ai.fieldNames,wn=ai.virtual,vi=ai.direction,Ni=ai.listHeight,Bi=ai.listItemHeight,Fi=ai.optionRender,Wi="".concat(yn,"-item"),cr=(0,zn.Z)(function(){return ji},[xi,ji],function(Ar,Or){return Or[0]&&Ar[1]!==Or[1]}),mr=Je.useRef(null),Tr=Je.useMemo(function(){return Ut&&Ae(Mn)&&(Ji==null?void 0:Ji.size)>=Mn},[Ut,Mn,Ji==null?void 0:Ji.size]),Mr=function(Or){Or.preventDefault()},Gn=function(Or){var no;(no=mr.current)===null||no===void 0||no.scrollTo(typeof Or=="number"?{index:Or}:Or)},ur=Je.useCallback(function(Ar){return $n==="combobox"?!1:Ji.has(Ar)},[$n,(0,Le.Z)(Ji).toString(),Ji.size]),Bn=function(Or){for(var no=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,po=cr.length,Vi=0;Vi<po;Vi+=1){var er=(Or+Vi*no+po)%po,Ir=cr[er]||{},wr=Ir.group,kr=Ir.data;if(!wr&&!(kr!=null&&kr.disabled)&&(ur(kr.value)||!Tr))return er}return-1},br=Je.useState(function(){return Bn(0)}),Er=(0,Ye.Z)(br,2),pr=Er[0],$r=Er[1],Xr=function(Or){var no=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;$r(Or);var po={source:no?"keyboard":"mouse"},Vi=cr[Or];if(!Vi){Ki(null,-1,po);return}Ki(Vi.value,Or,po)};(0,Je.useEffect)(function(){Xr(Zi!==!1?Bn(0):-1)},[cr.length,pi]);var Ur=Je.useCallback(function(Ar){return $n==="combobox"?String(Ar).toLowerCase()===pi.toLowerCase():Ji.has(Ar)},[$n,pi,(0,Le.Z)(Ji).toString(),Ji.size]);(0,Je.useEffect)(function(){var Ar=setTimeout(function(){if(!Ut&&xi&&Ji.size===1){var no=Array.from(Ji)[0],po=cr.findIndex(function(Vi){var er=Vi.data;return er.value===no});po!==-1&&(Xr(po),Gn(po))}});if(xi){var Or;(Or=mr.current)===null||Or===void 0||Or.scrollTo(void 0)}return function(){return clearTimeout(Ar)}},[xi,pi]);var Yr=function(Or){Or!==void 0&&Nn(Or,{selected:!Ji.has(Or)}),Ut||Kt(!1)};if(Je.useImperativeHandle(ti,function(){return{onKeyDown:function(Or){var no=Or.which,po=Or.ctrlKey;switch(no){case Qe.Z.N:case Qe.Z.P:case Qe.Z.UP:case Qe.Z.DOWN:{var Vi=0;if(no===Qe.Z.UP?Vi=-1:no===Qe.Z.DOWN?Vi=1:Pn()&&po&&(no===Qe.Z.N?Vi=1:no===Qe.Z.P&&(Vi=-1)),Vi!==0){var er=Bn(pr+Vi,Vi);Gn(er),Xr(er,!0)}break}case Qe.Z.TAB:case Qe.Z.ENTER:{var Ir,wr=cr[pr];wr&&!(wr!=null&&(Ir=wr.data)!==null&&Ir!==void 0&&Ir.disabled)&&!Tr?Yr(wr.value):Yr(void 0),xi&&Or.preventDefault();break}case Qe.Z.ESC:Kt(!1),xi&&Or.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Or){Gn(Or)}}}),cr.length===0)return Je.createElement("div",{role:"listbox",id:"".concat(ii,"_list"),className:"".concat(Wi,"-empty"),onMouseDown:Mr},Ue);var Vo=Object.keys(zr).map(function(Ar){return zr[Ar]}),Kr=function(Or){return Or.label};function Ti(Ar,Or){var no=Ar.group;return{role:no?"presentation":"option",id:"".concat(ii,"_list_").concat(Or)}}var lt=function(Or){var no=cr[Or];if(!no)return null;var po=no.data||{},Vi=po.value,er=no.group,Ir=(0,rt.Z)(po,!0),wr=Kr(no);return no?Je.createElement("div",(0,le.Z)({"aria-label":typeof wr=="string"&&!er?wr:null},Ir,{key:Or},Ti(no,Or),{"aria-selected":Ur(Vi)}),Vi):null},xo={role:"listbox",id:"".concat(ii,"_list")};return Je.createElement(Je.Fragment,null,wn&&Je.createElement("div",(0,le.Z)({},xo,{style:{height:0,width:0,overflow:"hidden"}}),lt(pr-1),lt(pr),lt(pr+1)),Je.createElement(Fn.Z,{itemKey:"key",ref:mr,data:cr,height:Ni,itemHeight:Bi,fullHeight:!1,onMouseDown:Mr,onScroll:wi,virtual:wn,direction:vi,innerProps:wn?null:xo},function(Ar,Or){var no=Ar.group,po=Ar.groupOption,Vi=Ar.data,er=Ar.label,Ir=Ar.value,wr=Vi.key;if(no){var kr,Ho=(kr=Vi.title)!==null&&kr!==void 0?kr:fi(er)?er.toString():void 0;return Je.createElement("div",{className:st()(Wi,"".concat(Wi,"-group"),Vi.className),title:Ho},er!==void 0?er:wr)}var hr=Vi.disabled,rr=Vi.title,ri=Vi.children,Qi=Vi.style,Qr=Vi.className,zo=(0,Fe.Z)(Vi,Ht),Oo=(0,yt.Z)(zo,Vo),Co=ur(Ir),Go=hr||!Co&&Tr,Lo="".concat(Wi,"-option"),Sa=st()(Wi,Lo,Qr,(0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)({},"".concat(Lo,"-grouped"),po),"".concat(Lo,"-active"),pr===Or&&!Go),"".concat(Lo,"-disabled"),Go),"".concat(Lo,"-selected"),Co)),sa=Kr(Ar),es=!Jt||typeof Jt=="function"||Co,gn=typeof sa=="number"?sa:sa||Ir,oa=fi(gn)?gn.toString():void 0;return rr!==void 0&&(oa=rr),Je.createElement("div",(0,le.Z)({},(0,rt.Z)(Oo),wn?{}:Ti(Ar,Or),{"aria-selected":Ur(Ir),className:Sa,title:oa,onMouseMove:function(){pr===Or||Go||Xr(Or)},onClick:function(){Go||Yr(Ir)},style:Qi}),Je.createElement("div",{className:"".concat(Lo,"-content")},typeof Fi=="function"?Fi(Ar,{index:Or}):gn),Je.isValidElement(Jt)||Co,es&&Je.createElement(he,{className:"".concat(Wi,"-option-state"),customizeIcon:Jt,customizeIconProps:{value:Ir,disabled:Go,isSelected:Co}},Co?"\u2713":null))}))},Li=Je.forwardRef(zi),Dn=Li,qi=function(qt,Gt){var ti=Je.useRef({values:new Map,options:new Map}),pt=Je.useMemo(function(){var ii=ti.current,xi=ii.values,Ut=ii.options,$n=qt.map(function(Ue){if(Ue.label===void 0){var wi;return(0,Ie.Z)((0,Ie.Z)({},Ue),{},{label:(wi=xi.get(Ue.value))===null||wi===void 0?void 0:wi.label})}return Ue}),pi=new Map,Kt=new Map;return $n.forEach(function(Ue){pi.set(Ue.value,Ue),Kt.set(Ue.value,Gt.get(Ue.value)||Ut.get(Ue.value))}),ti.current.values=pi,ti.current.options=Kt,$n},[qt,Gt]),yn=Je.useCallback(function(ii){return Gt.get(ii)||ti.current.options.get(ii)},[Gt]);return[pt,yn]};function Ui(qt,Gt){return Dt(qt).join("").toUpperCase().includes(Gt)}var ui=function(qt,Gt,ti,pt,yn){return Je.useMemo(function(){if(!ti||pt===!1)return qt;var ii=Gt.options,xi=Gt.label,Ut=Gt.value,$n=[],pi=typeof pt=="function",Kt=ti.toUpperCase(),Ue=pi?pt:function(ai,Mn){return yn?Ui(Mn[yn],Kt):Mn[ii]?Ui(Mn[xi!=="children"?xi:"label"],Kt):Ui(Mn[Ut],Kt)},wi=pi?function(ai){return Pt(ai)}:function(ai){return ai};return qt.forEach(function(ai){if(ai[ii]){var Mn=Ue(ti,wi(ai));if(Mn)$n.push(ai);else{var ji=ai[ii].filter(function(Ki){return Ue(ti,wi(Ki))});ji.length&&$n.push((0,Ie.Z)((0,Ie.Z)({},ai),{},(0,De.Z)({},ii,ji)))}return}Ue(ti,wi(ai))&&$n.push(ai)}),$n},[qt,pt,yn,ti,Gt])},bi=de(69582),Ri=de(11592),ke=["children","value"],gi=["children"];function Ii(qt){var Gt=qt,ti=Gt.key,pt=Gt.props,yn=pt.children,ii=pt.value,xi=(0,Fe.Z)(pt,ke);return(0,Ie.Z)({key:ti,value:ii!==void 0?ii:ti,children:yn},xi)}function ki(qt){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Ri.Z)(qt).map(function(ti,pt){if(!Je.isValidElement(ti)||!ti.type)return null;var yn=ti,ii=yn.type.isSelectOptGroup,xi=yn.key,Ut=yn.props,$n=Ut.children,pi=(0,Fe.Z)(Ut,gi);return Gt||!ii?Ii(ti):(0,Ie.Z)((0,Ie.Z)({key:"__RC_SELECT_GRP__".concat(xi===null?pt:xi,"__"),label:xi},pi),{},{options:ki($n)})}).filter(function(ti){return ti})}var ar=function(Gt,ti,pt,yn,ii){return Je.useMemo(function(){var xi=Gt,Ut=!Gt;Ut&&(xi=ki(ti));var $n=new Map,pi=new Map,Kt=function(ai,Mn,ji){ji&&typeof ji=="string"&&ai.set(Mn[ji],Mn)},Ue=function wi(ai){for(var Mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ji=0;ji<ai.length;ji+=1){var Ki=ai[ji];!Ki[pt.options]||Mn?($n.set(Ki[pt.value],Ki),Kt(pi,Ki,pt.label),Kt(pi,Ki,yn),Kt(pi,Ki,ii)):wi(Ki[pt.options],!0)}};return Ue(xi),{options:xi,valueOptions:$n,labelOptions:pi}},[Gt,ti,pt,yn,ii])},Nr=ar;function sr(qt){var Gt=Je.useRef();Gt.current=qt;var ti=Je.useCallback(function(){return Gt.current.apply(Gt,arguments)},[]);return ti}function Di(qt){var Gt=qt.mode,ti=qt.options,pt=qt.children,yn=qt.backfill,ii=qt.allowClear,xi=qt.placeholder,Ut=qt.getInputElement,$n=qt.showSearch,pi=qt.onSearch,Kt=qt.defaultOpen,Ue=qt.autoFocus,wi=qt.labelInValue,ai=qt.value,Mn=qt.inputValue,ji=qt.optionLabelProp,Ki=isMultiple(Gt),Zi=$n!==void 0?$n:Ki||Gt==="combobox",Nn=ti||convertChildrenToData(pt);if(warning(Gt!=="tags"||Nn.every(function(wn){return!wn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Gt==="tags"||Gt==="combobox"){var Jt=Nn.some(function(wn){return wn.options?wn.options.some(function(vi){return typeof("value"in vi?vi.value:vi.key)=="number"}):typeof("value"in wn?wn.value:wn.key)=="number"});warning(!Jt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Gt!=="combobox"||!ji,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Gt==="combobox"||!yn,"`backfill` only works with `combobox` mode."),warning(Gt==="combobox"||!Ut,"`getInputElement` only work with `combobox` mode."),noteOnce(Gt!=="combobox"||!Ut||!ii||!xi,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),pi&&!Zi&&Gt!=="combobox"&&Gt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Kt||Ue,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ai!=null){var Ji=toArray(ai);warning(!wi||Ji.every(function(wn){return _typeof(wn)==="object"&&("key"in wn||"value"in wn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Ki||Array.isArray(ai),"`value` should be array when `mode` is `multiple` or `tags`")}if(pt){var zr=null;toNodeArray(pt).some(function(wn){if(!React.isValidElement(wn)||!wn.type)return!1;var vi=wn,Ni=vi.type;if(Ni.isSelectOption)return!1;if(Ni.isSelectOptGroup){var Bi=toNodeArray(wn.props.children).every(function(Fi){return!React.isValidElement(Fi)||!wn.type||Fi.type.isSelectOption?!0:(zr=Fi.type,!1)});return!Bi}return zr=Ni,!0}),zr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(zr.displayName||zr.name||zr,"`.")),warning(Mn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Ei(qt,Gt){if(qt){var ti=function pt(yn){for(var ii=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xi=0;xi<yn.length;xi++){var Ut=yn[xi];if(Ut[Gt==null?void 0:Gt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!ii&&Array.isArray(Ut[Gt==null?void 0:Gt.options])&&pt(Ut[Gt==null?void 0:Gt.options],!0))break}};ti(qt)}}var Zt=null,Wt=["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"],Rt=["inputValue"];function rn(qt){return!qt||(0,Ve.Z)(qt)!=="object"}var Xt=Je.forwardRef(function(qt,Gt){var ti=qt.id,pt=qt.mode,yn=qt.prefixCls,ii=yn===void 0?"rc-select":yn,xi=qt.backfill,Ut=qt.fieldNames,$n=qt.inputValue,pi=qt.searchValue,Kt=qt.onSearch,Ue=qt.autoClearSearchValue,wi=Ue===void 0?!0:Ue,ai=qt.onSelect,Mn=qt.onDeselect,ji=qt.dropdownMatchSelectWidth,Ki=ji===void 0?!0:ji,Zi=qt.filterOption,Nn=qt.filterSort,Jt=qt.optionFilterProp,Ji=qt.optionLabelProp,zr=qt.options,wn=qt.optionRender,vi=qt.children,Ni=qt.defaultActiveFirstOption,Bi=qt.menuItemSelectedIcon,Fi=qt.virtual,Wi=qt.direction,cr=qt.listHeight,mr=cr===void 0?200:cr,Tr=qt.listItemHeight,Mr=Tr===void 0?20:Tr,Gn=qt.labelRender,ur=qt.value,Bn=qt.defaultValue,br=qt.labelInValue,Er=qt.onChange,pr=qt.maxCount,$r=(0,Fe.Z)(qt,Wt),Xr=(0,bi.ZP)(ti),Ur=un(pt),Yr=!!(!zr&&vi),Vo=Je.useMemo(function(){return Zi===void 0&&pt==="combobox"?!1:Zi},[Zi,pt]),Kr=Je.useMemo(function(){return at(Ut,Yr)},[JSON.stringify(Ut),Yr]),Ti=(0,Xe.Z)("",{value:pi!==void 0?pi:$n,postState:function(lo){return lo||""}}),lt=(0,Ye.Z)(Ti,2),xo=lt[0],Ar=lt[1],Or=Nr(zr,vi,Kr,Jt,Ji),no=Or.valueOptions,po=Or.labelOptions,Vi=Or.options,er=Je.useCallback(function(Jr){var lo=Dt(Jr);return lo.map(function(Yt){var Ci,Yi,xr,qr,Zr;if(rn(Yt))Ci=Yt;else{var lr;xr=Yt.key,Yi=Yt.label,Ci=(lr=Yt.value)!==null&&lr!==void 0?lr:xr}var yo=no.get(Ci);if(yo){var qo;if(Yi===void 0&&(Yi=yo==null?void 0:yo[Ji||Kr.label]),xr===void 0&&(xr=(qo=yo==null?void 0:yo.key)!==null&&qo!==void 0?qo:Ci),qr=yo==null?void 0:yo.disabled,Zr=yo==null?void 0:yo.title,0)var ko}return{label:Yi,value:Ci,key:xr,disabled:qr,title:Zr}})},[Kr,Ji,no]),Ir=(0,Xe.Z)(Bn,{value:ur}),wr=(0,Ye.Z)(Ir,2),kr=wr[0],Ho=wr[1],hr=Je.useMemo(function(){var Jr,lo=Ur&&kr===null?[]:kr,Yt=er(lo);return pt==="combobox"&&pn((Jr=Yt[0])===null||Jr===void 0?void 0:Jr.value)?[]:Yt},[kr,er,pt,Ur]),rr=qi(hr,no),ri=(0,Ye.Z)(rr,2),Qi=ri[0],Qr=ri[1],zo=Je.useMemo(function(){if(!pt&&Qi.length===1){var Jr=Qi[0];if(Jr.value===null&&(Jr.label===null||Jr.label===void 0))return[]}return Qi.map(function(lo){var Yt;return(0,Ie.Z)((0,Ie.Z)({},lo),{},{label:(Yt=typeof Gn=="function"?Gn(lo):lo.label)!==null&&Yt!==void 0?Yt:lo.value})})},[pt,Qi,Gn]),Oo=Je.useMemo(function(){return new Set(Qi.map(function(Jr){return Jr.value}))},[Qi]);Je.useEffect(function(){if(pt==="combobox"){var Jr,lo=(Jr=Qi[0])===null||Jr===void 0?void 0:Jr.value;Ar(vn(lo)?String(lo):"")}},[Qi]);var Co=sr(function(Jr,lo){var Yt=lo!=null?lo:Jr;return(0,De.Z)((0,De.Z)({},Kr.value,Jr),Kr.label,Yt)}),Go=Je.useMemo(function(){if(pt!=="tags")return Vi;var Jr=(0,Le.Z)(Vi),lo=function(Ci){return no.has(Ci)};return(0,Le.Z)(Qi).sort(function(Yt,Ci){return Yt.value<Ci.value?-1:1}).forEach(function(Yt){var Ci=Yt.value;lo(Ci)||Jr.push(Co(Ci,Yt.label))}),Jr},[Co,Vi,no,Qi,pt]),Lo=ui(Go,Kr,xo,Vo,Jt),Sa=Je.useMemo(function(){return pt!=="tags"||!xo||Lo.some(function(Jr){return Jr[Jt||"value"]===xo})||Lo.some(function(Jr){return Jr[Kr.value]===xo})?Lo:[Co(xo)].concat((0,Le.Z)(Lo))},[Co,Jt,pt,Lo,xo,Kr]),sa=function Jr(lo){var Yt=(0,Le.Z)(lo).sort(function(Ci,Yi){return Nn(Ci,Yi,{searchValue:xo})});return Yt.map(function(Ci){return Array.isArray(Ci.options)?(0,Ie.Z)((0,Ie.Z)({},Ci),{},{options:Ci.options.length>0?Jr(Ci.options):Ci.options}):Ci})},es=Je.useMemo(function(){return Nn?sa(Sa):Sa},[Sa,Nn,xo]),gn=Je.useMemo(function(){return Lt(es,{fieldNames:Kr,childrenAsData:Yr})},[es,Kr,Yr]),oa=function(lo){var Yt=er(lo);if(Ho(Yt),Er&&(Yt.length!==Qi.length||Yt.some(function(xr,qr){var Zr;return((Zr=Qi[qr])===null||Zr===void 0?void 0:Zr.value)!==(xr==null?void 0:xr.value)}))){var Ci=br?Yt:Yt.map(function(xr){return xr.value}),Yi=Yt.map(function(xr){return Pt(Qr(xr.value))});Er(Ur?Ci:Ci[0],Ur?Yi:Yi[0])}},kl=Je.useState(null),Ha=(0,Ye.Z)(kl,2),yl=Ha[0],Io=Ha[1],lu=Je.useState(0),Ln=(0,Ye.Z)(lu,2),Uo=Ln[0],da=Ln[1],sl=Ni!==void 0?Ni:pt!=="combobox",Ga=Je.useCallback(function(Jr,lo){var Yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ci=Yt.source,Yi=Ci===void 0?"keyboard":Ci;da(lo),xi&&pt==="combobox"&&Jr!==null&&Yi==="keyboard"&&Io(String(Jr))},[xi,pt]),Xs=function(lo,Yt,Ci){var Yi=function(){var ms,Ko=Qr(lo);return[br?{label:Ko==null?void 0:Ko[Kr.label],value:lo,key:(ms=Ko==null?void 0:Ko.key)!==null&&ms!==void 0?ms:lo}:lo,Pt(Ko)]};if(Yt&&ai){var xr=Yi(),qr=(0,Ye.Z)(xr,2),Zr=qr[0],lr=qr[1];ai(Zr,lr)}else if(!Yt&&Mn&&Ci!=="clear"){var yo=Yi(),qo=(0,Ye.Z)(yo,2),ko=qo[0],Zo=qo[1];Mn(ko,Zo)}},ps=sr(function(Jr,lo){var Yt,Ci=Ur?lo.selected:!0;Ci?Yt=Ur?[].concat((0,Le.Z)(Qi),[Jr]):[Jr]:Yt=Qi.filter(function(Yi){return Yi.value!==Jr}),oa(Yt),Xs(Jr,Ci),pt==="combobox"?Io(""):(!un||wi)&&(Ar(""),Io(""))}),dr=function(lo,Yt){oa(lo);var Ci=Yt.type,Yi=Yt.values;(Ci==="remove"||Ci==="clear")&&Yi.forEach(function(xr){Xs(xr.value,!1,Ci)})},Pa=function(lo,Yt){if(Ar(lo),Io(null),Yt.source==="submit"){var Ci=(lo||"").trim();if(Ci){var Yi=Array.from(new Set([].concat((0,Le.Z)(Oo),[Ci])));oa(Yi),Xs(Ci,!0),Ar("")}return}Yt.source!=="blur"&&(pt==="combobox"&&oa(lo),Kt==null||Kt(lo))},Dl=function(lo){var Yt=lo;pt!=="tags"&&(Yt=lo.map(function(Yi){var xr=po.get(Yi);return xr==null?void 0:xr.value}).filter(function(Yi){return Yi!==void 0}));var Ci=Array.from(new Set([].concat((0,Le.Z)(Oo),(0,Le.Z)(Yt))));oa(Ci),Ci.forEach(function(Yi){Xs(Yi,!0)})},is=Je.useMemo(function(){var Jr=Fi!==!1&&Ki!==!1;return(0,Ie.Z)((0,Ie.Z)({},Or),{},{flattenOptions:gn,onActiveValue:Ga,defaultActiveFirstOption:sl,onSelect:ps,menuItemSelectedIcon:Bi,rawValues:Oo,fieldNames:Kr,virtual:Jr,direction:Wi,listHeight:mr,listItemHeight:Mr,childrenAsData:Yr,maxCount:pr,optionRender:wn})},[pr,Or,gn,Ga,sl,ps,Bi,Oo,Kr,Fi,Ki,Wi,mr,Mr,Yr,wn]);return Je.createElement(an.Provider,{value:is},Je.createElement(xn,(0,le.Z)({},$r,{id:Xr,prefixCls:ii,ref:Gt,omitDomProps:Rt,mode:pt,displayValues:zo,onDisplayValuesChange:dr,direction:Wi,searchValue:xo,onSearch:Pa,autoClearSearchValue:wi,onSearchSplit:Dl,dropdownMatchSelectWidth:Ki,OptionList:Dn,emptyOptions:!gn.length,activeValue:yl,activeDescendantId:"".concat(Xr,"_list_").concat(Uo)})))}),Sn=Xt;Sn.Option=ci,Sn.OptGroup=An;var Rn=Sn,Jn=Rn},63158:function(Ge,be,de){"use strict";var le=de(72308),Le=de(49618),De=de(52487),Ie=de(74416),Ye=de(59301),Fe=de(92310),Ve=de.n(Fe),Xe=de(18929),qe=de(10228),Je=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],mt=Ye.forwardRef(function(st,Ct){var je,te=st.prefixCls,ne=te===void 0?"rc-switch":te,he=st.className,se=st.checked,ge=st.defaultChecked,Se=st.disabled,Ce=st.loadingIcon,Oe=st.checkedChildren,Be=st.unCheckedChildren,Qe=st.onClick,ot=st.onChange,rt=st.onKeyDown,ft=(0,Ie.Z)(st,Je),bt=(0,Xe.Z)(!1,{value:se,defaultValue:ge}),ut=(0,De.Z)(bt,2),Tt=ut[0],Dt=ut[1];function en(mn,Mt){var ct=Tt;return Se||(ct=mn,Dt(ct),ot==null||ot(ct,Mt)),ct}function Cn(mn){mn.which===qe.Z.LEFT?en(!1,mn):mn.which===qe.Z.RIGHT&&en(!0,mn),rt==null||rt(mn)}function vn(mn){var Mt=en(!Tt,mn);Qe==null||Qe(Mt,mn)}var pn=Ve()(ne,he,(je={},(0,Le.Z)(je,"".concat(ne,"-checked"),Tt),(0,Le.Z)(je,"".concat(ne,"-disabled"),Se),je));return Ye.createElement("button",(0,le.Z)({},ft,{type:"button",role:"switch","aria-checked":Tt,disabled:Se,className:pn,ref:Ct,onKeyDown:Cn,onClick:vn}),Ce,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 ut},default:function(){return Cn}});var le=de(72308),Le=de(49618),De=de(77321),Ie=de(80702),Ye=de(52487),Fe=de(74416),Ve=de(92310),Xe=de.n(Ve),qe=de(36901),Je=de(66003),mt=de(30292),st=de(18929),Ct=de(59301),je=de(62853),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={},Ce;function Oe(vn){var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,mn=vn.getAttribute("id")||vn.getAttribute("data-reactid")||vn.getAttribute("name");if(pn&&Se[mn])return Se[mn];var Mt=window.getComputedStyle(vn),ct=Mt.getPropertyValue("box-sizing")||Mt.getPropertyValue("-moz-box-sizing")||Mt.getPropertyValue("-webkit-box-sizing"),nt=parseFloat(Mt.getPropertyValue("padding-bottom"))+parseFloat(Mt.getPropertyValue("padding-top")),dn=parseFloat(Mt.getPropertyValue("border-bottom-width"))+parseFloat(Mt.getPropertyValue("border-top-width")),En=ge.map(function(cn){return"".concat(cn,":").concat(Mt.getPropertyValue(cn))}).join(";"),Nt={sizingStyle:En,paddingSize:nt,borderSize:dn,boxSizing:ct};return pn&&mn&&(Se[mn]=Nt),Nt}function Be(vn){var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,mn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Mt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Ce||(Ce=document.createElement("textarea"),Ce.setAttribute("tab-index","-1"),Ce.setAttribute("aria-hidden","true"),Ce.setAttribute("name","hiddenTextarea"),document.body.appendChild(Ce)),vn.getAttribute("wrap")?Ce.setAttribute("wrap",vn.getAttribute("wrap")):Ce.removeAttribute("wrap");var ct=Oe(vn,pn),nt=ct.paddingSize,dn=ct.borderSize,En=ct.boxSizing,Nt=ct.sizingStyle;Ce.setAttribute("style","".concat(Nt,";").concat(se)),Ce.value=vn.value||vn.placeholder||"";var cn=void 0,ln=void 0,_n,kn=Ce.scrollHeight;if(En==="border-box"?kn+=dn:En==="content-box"&&(kn-=nt),mn!==null||Mt!==null){Ce.value=" ";var si=Ce.scrollHeight-nt;mn!==null&&(cn=si*mn,En==="border-box"&&(cn=cn+nt+dn),kn=Math.max(cn,kn)),Mt!==null&&(ln=si*Mt,En==="border-box"&&(ln=ln+nt+dn),_n=kn>ln?"":"hidden",kn=Math.min(ln,kn))}var kt={height:kn,overflowY:_n,resize:"none"};return cn&&(kt.minHeight=cn),ln&&(kt.maxHeight=ln),kt}var Qe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ot=0,rt=1,ft=2,bt=Ct.forwardRef(function(vn,pn){var mn=vn,Mt=mn.prefixCls,ct=mn.defaultValue,nt=mn.value,dn=mn.autoSize,En=mn.onResize,Nt=mn.className,cn=mn.style,ln=mn.disabled,_n=mn.onChange,kn=mn.onInternalAutoSize,si=(0,Fe.Z)(mn,Qe),kt=(0,st.Z)(ct,{value:nt,postState:function(Fn){return Fn!=null?Fn:""}}),Kn=(0,Ye.Z)(kt,2),hi=Kn[0],et=Kn[1],_e=function(Fn){et(Fn.target.value),_n==null||_n(Fn)},xe=Ct.useRef();Ct.useImperativeHandle(pn,function(){return{textArea:xe.current}});var Te=Ct.useMemo(function(){return dn&&(0,je.Z)(dn)==="object"?[dn.minRows,dn.maxRows]:[]},[dn]),Me=(0,Ye.Z)(Te,2),Ae=Me[0],at=Me[1],Lt=!!dn,Pt=function(){try{if(document.activeElement===xe.current){var Fn=xe.current,Pn=Fn.selectionStart,Ht=Fn.selectionEnd,fi=Fn.scrollTop;xe.current.setSelectionRange(Pn,Ht),xe.current.scrollTop=fi}}catch(zi){}},Vt=Ct.useState(ft),It=(0,Ye.Z)(Vt,2),an=It[0],sn=It[1],on=Ct.useState(),bn=(0,Ye.Z)(on,2),un=bn[0],zt=bn[1],xn=function(){sn(ot)};(0,ne.Z)(function(){Lt&&xn()},[nt,Ae,at,Lt]),(0,ne.Z)(function(){if(an===ot)sn(rt);else if(an===rt){var yt=Be(xe.current,!1,Ae,at);sn(ft),zt(yt)}else Pt()},[an]);var fn=Ct.useRef(),An=function(){he.Z.cancel(fn.current)},nn=function(Fn){an===ft&&(En==null||En(Fn),dn&&(An(),fn.current=(0,he.Z)(function(){xn()})))};Ct.useEffect(function(){return An},[]);var ci=Lt?un:null,zn=(0,De.Z)((0,De.Z)({},cn),ci);return(an===ot||an===rt)&&(zn.overflowY="hidden",zn.overflowX="hidden"),Ct.createElement(te.Z,{onResize:nn,disabled:!(dn||En)},Ct.createElement("textarea",(0,le.Z)({},si,{ref:xe,style:zn,className:Xe()(Mt,Nt,(0,Le.Z)({},"".concat(Mt,"-disabled"),ln)),disabled:ln,value:hi,onChange:_e})))}),ut=bt,Tt=["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"],Dt=Ct.forwardRef(function(vn,pn){var mn,Mt=vn.defaultValue,ct=vn.value,nt=vn.onFocus,dn=vn.onBlur,En=vn.onChange,Nt=vn.allowClear,cn=vn.maxLength,ln=vn.onCompositionStart,_n=vn.onCompositionEnd,kn=vn.suffix,si=vn.prefixCls,kt=si===void 0?"rc-textarea":si,Kn=vn.showCount,hi=vn.count,et=vn.className,_e=vn.style,xe=vn.disabled,Te=vn.hidden,Me=vn.classNames,Ae=vn.styles,at=vn.onResize,Lt=vn.onClear,Pt=vn.onPressEnter,Vt=vn.readOnly,It=vn.autoSize,an=vn.onKeyDown,sn=(0,Fe.Z)(vn,Tt),on=(0,st.Z)(Mt,{value:ct,defaultValue:Mt}),bn=(0,Ye.Z)(on,2),un=bn[0],zt=bn[1],xn=un==null?"":String(un),fn=Ct.useState(!1),An=(0,Ye.Z)(fn,2),nn=An[0],ci=An[1],zn=Ct.useRef(!1),yt=Ct.useState(null),Fn=(0,Ye.Z)(yt,2),Pn=Fn[0],Ht=Fn[1],fi=(0,Ct.useRef)(null),zi=(0,Ct.useRef)(null),Li=function(){var qt;return(qt=zi.current)===null||qt===void 0?void 0:qt.textArea},Dn=function(){Li().focus()};(0,Ct.useImperativeHandle)(pn,function(){var Jn;return{resizableTextArea:zi.current,focus:Dn,blur:function(){Li().blur()},nativeElement:((Jn=fi.current)===null||Jn===void 0?void 0:Jn.nativeElement)||Li()}}),(0,Ct.useEffect)(function(){ci(function(Jn){return!xe&&Jn})},[xe]);var qi=Ct.useState(null),Ui=(0,Ye.Z)(qi,2),ui=Ui[0],bi=Ui[1];Ct.useEffect(function(){if(ui){var Jn;(Jn=Li()).setSelectionRange.apply(Jn,(0,Ie.Z)(ui))}},[ui]);var Ri=(0,Je.Z)(hi,Kn),ke=(mn=Ri.max)!==null&&mn!==void 0?mn:cn,gi=Number(ke)>0,Ii=Ri.strategy(xn),ki=!!ke&&Ii>ke,ar=function(qt,Gt){var ti=Gt;!zn.current&&Ri.exceedFormatter&&Ri.max&&Ri.strategy(Gt)>Ri.max&&(ti=Ri.exceedFormatter(Gt,{max:Ri.max}),Gt!==ti&&bi([Li().selectionStart||0,Li().selectionEnd||0])),zt(ti),(0,mt.rJ)(qt.currentTarget,qt,En,ti)},Nr=function(qt){zn.current=!0,ln==null||ln(qt)},sr=function(qt){zn.current=!1,ar(qt,qt.currentTarget.value),_n==null||_n(qt)},Di=function(qt){ar(qt,qt.target.value)},Ei=function(qt){qt.key==="Enter"&&Pt&&Pt(qt),an==null||an(qt)},Zt=function(qt){ci(!0),nt==null||nt(qt)},Wt=function(qt){ci(!1),dn==null||dn(qt)},Rt=function(qt){zt(""),Dn(),(0,mt.rJ)(Li(),qt,En)},rn=kn,Xt;Ri.show&&(Ri.showFormatter?Xt=Ri.showFormatter({value:xn,count:Ii,maxLength:ke}):Xt="".concat(Ii).concat(gi?" / ".concat(ke):""),rn=Ct.createElement(Ct.Fragment,null,rn,Ct.createElement("span",{className:Xe()("".concat(kt,"-data-count"),Me==null?void 0:Me.count),style:Ae==null?void 0:Ae.count},Xt)));var Sn=function(qt){var Gt;at==null||at(qt),(Gt=Li())!==null&&Gt!==void 0&&Gt.style.height&&Ht(!0)},Rn=!It&&!Kn&&!Nt;return Ct.createElement(qe.BaseInput,{ref:fi,value:xn,allowClear:Nt,handleReset:Rt,suffix:rn,prefixCls:kt,classNames:(0,De.Z)((0,De.Z)({},Me),{},{affixWrapper:Xe()(Me==null?void 0:Me.affixWrapper,(0,Le.Z)((0,Le.Z)({},"".concat(kt,"-show-count"),Kn),"".concat(kt,"-textarea-allow-clear"),Nt))}),disabled:xe,focused:nn,className:Xe()(et,ki&&"".concat(kt,"-out-of-range")),style:(0,De.Z)((0,De.Z)({},_e),Pn&&!Rn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Xt=="string"?Xt:void 0}},hidden:Te,readOnly:Vt,onClear:Lt},Ct.createElement(ut,(0,le.Z)({},sn,{autoSize:It,maxLength:cn,onKeyDown:Ei,onChange:Di,onFocus:Zt,onBlur:Wt,onCompositionStart:Nr,onCompositionEnd:sr,className:Xe()(Me==null?void 0:Me.textarea),style:(0,De.Z)((0,De.Z)({},Ae==null?void 0:Ae.textarea),{},{resize:_e==null?void 0:_e.resize}),disabled:xe,prefixCls:kt,onResize:Sn,ref:zi,readOnly:Vt})))}),en=Dt,Cn=en},90472:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return vn}});var le=de(72308),Le=de(96949),De=de(55090),Ie=de(80237),Ye=de(77205),Fe=de(38793),Ve=de(49618),Xe=de(59301),qe=de(77321),Je=de(74416),mt=de(62853),st=de(65736),Ct=de(72633),je=de(80702),te=de(92310),ne=de.n(te),he=de(26112),se=de(48736),ge=function(pn,mn){if(pn&&mn){var Mt=Array.isArray(mn)?mn:mn.split(","),ct=pn.name||"",nt=pn.type||"",dn=nt.replace(/\/.*$/,"");return Mt.some(function(En){var Nt=En.trim();if(/^\*(\/\*)?$/.test(En))return!0;if(Nt.charAt(0)==="."){var cn=ct.toLowerCase(),ln=Nt.toLowerCase(),_n=[ln];return(ln===".jpg"||ln===".jpeg")&&(_n=[".jpg",".jpeg"]),_n.some(function(kn){return cn.endsWith(kn)})}return/\/\*$/.test(Nt)?dn===Nt.replace(/\/.*$/,""):nt===Nt?!0:/^\w+$/.test(Nt)?((0,se.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Nt,"'.Skip for check.")),!0):!1})}return!0};function Se(pn,mn){var Mt="cannot ".concat(pn.method," ").concat(pn.action," ").concat(mn.status,"'"),ct=new Error(Mt);return ct.status=mn.status,ct.method=pn.method,ct.url=pn.action,ct}function Ce(pn){var mn=pn.responseText||pn.response;if(!mn)return mn;try{return JSON.parse(mn)}catch(Mt){return mn}}function Oe(pn){var mn=new XMLHttpRequest;pn.onProgress&&mn.upload&&(mn.upload.onprogress=function(dn){dn.total>0&&(dn.percent=dn.loaded/dn.total*100),pn.onProgress(dn)});var Mt=new FormData;pn.data&&Object.keys(pn.data).forEach(function(nt){var dn=pn.data[nt];if(Array.isArray(dn)){dn.forEach(function(En){Mt.append("".concat(nt,"[]"),En)});return}Mt.append(nt,dn)}),pn.file instanceof Blob?Mt.append(pn.filename,pn.file,pn.file.name):Mt.append(pn.filename,pn.file),mn.onerror=function(dn){pn.onError(dn)},mn.onload=function(){return mn.status<200||mn.status>=300?pn.onError(Se(pn,mn),Ce(mn)):pn.onSuccess(Ce(mn),mn)},mn.open(pn.method,pn.action,!0),pn.withCredentials&&"withCredentials"in mn&&(mn.withCredentials=!0);var ct=pn.headers||{};return ct["X-Requested-With"]!==null&&mn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(ct).forEach(function(nt){ct[nt]!==null&&mn.setRequestHeader(nt,ct[nt])}),mn.send(Mt),{abort:function(){mn.abort()}}}var Be=function(){var pn=(0,Ct.Z)((0,st.Z)().mark(function mn(Mt,ct){var nt,dn,En,Nt,cn,ln,_n,kn;return(0,st.Z)().wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:ln=function(){return ln=(0,Ct.Z)((0,st.Z)().mark(function hi(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()}},hi)})),ln.apply(this,arguments)},cn=function(hi){return ln.apply(this,arguments)},Nt=function(){return Nt=(0,Ct.Z)((0,st.Z)().mark(function hi(et){var _e,xe,Te,Me,Ae;return(0,st.Z)().wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:_e=et.createReader(),xe=[];case 2:return Lt.next=5,new Promise(function(Pt){_e.readEntries(Pt,function(){return Pt([])})});case 5:if(Te=Lt.sent,Me=Te.length,Me){Lt.next=9;break}return Lt.abrupt("break",12);case 9:for(Ae=0;Ae<Me;Ae++)xe.push(Te[Ae]);Lt.next=2;break;case 12:return Lt.abrupt("return",xe);case 13:case"end":return Lt.stop()}},hi)})),Nt.apply(this,arguments)},En=function(hi){return Nt.apply(this,arguments)},nt=[],dn=[],Mt.forEach(function(Kn){return dn.push(Kn.webkitGetAsEntry())}),_n=function(){var Kn=(0,Ct.Z)((0,st.Z)().mark(function hi(et,_e){var xe,Te;return(0,st.Z)().wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(et){Ae.next=2;break}return Ae.abrupt("return");case 2:if(et.path=_e||"",!et.isFile){Ae.next=10;break}return Ae.next=6,cn(et);case 6:xe=Ae.sent,xe&&nt.push(xe),Ae.next=15;break;case 10:if(!et.isDirectory){Ae.next=15;break}return Ae.next=13,En(et);case 13:Te=Ae.sent,dn.push.apply(dn,(0,je.Z)(Te));case 15:case"end":return Ae.stop()}},hi)}));return function(et,_e){return Kn.apply(this,arguments)}}(),kn=0;case 9:if(!(kn<dn.length)){kt.next=15;break}return kt.next=12,_n(dn[kn]);case 12:kn++,kt.next=9;break;case 15:return kt.abrupt("return",nt);case 16:case"end":return kt.stop()}},mn)}));return function(Mt,ct){return pn.apply(this,arguments)}}(),Qe=Be,ot=+new Date,rt=0;function ft(){return"rc-upload-".concat(ot,"-").concat(++rt)}var bt=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],ut=function(pn){(0,Ye.Z)(Mt,pn);var mn=(0,Fe.Z)(Mt);function Mt(){var ct;(0,Le.Z)(this,Mt);for(var nt=arguments.length,dn=new Array(nt),En=0;En<nt;En++)dn[En]=arguments[En];return ct=mn.call.apply(mn,[this].concat(dn)),(0,Ve.Z)((0,Ie.Z)(ct),"state",{uid:ft()}),(0,Ve.Z)((0,Ie.Z)(ct),"reqs",{}),(0,Ve.Z)((0,Ie.Z)(ct),"fileInput",void 0),(0,Ve.Z)((0,Ie.Z)(ct),"_isMounted",void 0),(0,Ve.Z)((0,Ie.Z)(ct),"onChange",function(Nt){var cn=ct.props,ln=cn.accept,_n=cn.directory,kn=Nt.target.files,si=(0,je.Z)(kn).filter(function(kt){return!_n||ge(kt,ln)});ct.uploadFiles(si),ct.reset()}),(0,Ve.Z)((0,Ie.Z)(ct),"onClick",function(Nt){var cn=ct.fileInput;if(cn){var ln=Nt.target,_n=ct.props.onClick;if(ln&&ln.tagName==="BUTTON"){var kn=cn.parentNode;kn.focus(),ln.blur()}cn.click(),_n&&_n(Nt)}}),(0,Ve.Z)((0,Ie.Z)(ct),"onKeyDown",function(Nt){Nt.key==="Enter"&&ct.onClick(Nt)}),(0,Ve.Z)((0,Ie.Z)(ct),"onFileDrop",function(){var Nt=(0,Ct.Z)((0,st.Z)().mark(function cn(ln){var _n,kn,si;return(0,st.Z)().wrap(function(Kn){for(;;)switch(Kn.prev=Kn.next){case 0:if(_n=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,Qe(Array.prototype.slice.call(ln.dataTransfer.items),function(hi){return ge(hi,ct.props.accept)});case 7:kn=Kn.sent,ct.uploadFiles(kn),Kn.next=14;break;case 11:si=(0,je.Z)(ln.dataTransfer.files).filter(function(hi){return ge(hi,ct.props.accept)}),_n===!1&&(si=si.slice(0,1)),ct.uploadFiles(si);case 14:case"end":return Kn.stop()}},cn)}));return function(cn){return Nt.apply(this,arguments)}}()),(0,Ve.Z)((0,Ie.Z)(ct),"uploadFiles",function(Nt){var cn=(0,je.Z)(Nt),ln=cn.map(function(_n){return _n.uid=ft(),ct.processFile(_n,cn)});Promise.all(ln).then(function(_n){var kn=ct.props.onBatchStart;kn==null||kn(_n.map(function(si){var kt=si.origin,Kn=si.parsedFile;return{file:kt,parsedFile:Kn}})),_n.filter(function(si){return si.parsedFile!==null}).forEach(function(si){ct.post(si)})})}),(0,Ve.Z)((0,Ie.Z)(ct),"processFile",function(){var Nt=(0,Ct.Z)((0,st.Z)().mark(function cn(ln,_n){var kn,si,kt,Kn,hi,et,_e,xe,Te;return(0,st.Z)().wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(kn=ct.props.beforeUpload,si=ln,!kn){Ae.next=14;break}return Ae.prev=3,Ae.next=6,kn(ln,_n);case 6:si=Ae.sent,Ae.next=12;break;case 9:Ae.prev=9,Ae.t0=Ae.catch(3),si=!1;case 12:if(si!==!1){Ae.next=14;break}return Ae.abrupt("return",{origin:ln,parsedFile:null,action:null,data:null});case 14:if(kt=ct.props.action,typeof kt!="function"){Ae.next=21;break}return Ae.next=18,kt(ln);case 18:Kn=Ae.sent,Ae.next=22;break;case 21:Kn=kt;case 22:if(hi=ct.props.data,typeof hi!="function"){Ae.next=29;break}return Ae.next=26,hi(ln);case 26:et=Ae.sent,Ae.next=30;break;case 29:et=hi;case 30:return _e=((0,mt.Z)(si)==="object"||typeof si=="string")&&si?si:ln,_e instanceof File?xe=_e:xe=new File([_e],ln.name,{type:ln.type}),Te=xe,Te.uid=ln.uid,Ae.abrupt("return",{origin:ln,data:et,parsedFile:Te,action:Kn});case 35:case"end":return Ae.stop()}},cn,null,[[3,9]])}));return function(cn,ln){return Nt.apply(this,arguments)}}()),(0,Ve.Z)((0,Ie.Z)(ct),"saveFileInput",function(Nt){ct.fileInput=Nt}),ct}return(0,De.Z)(Mt,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(nt){var dn=this,En=nt.data,Nt=nt.origin,cn=nt.action,ln=nt.parsedFile;if(this._isMounted){var _n=this.props,kn=_n.onStart,si=_n.customRequest,kt=_n.name,Kn=_n.headers,hi=_n.withCredentials,et=_n.method,_e=Nt.uid,xe=si||Oe,Te={action:cn,filename:kt,data:En,file:ln,headers:Kn,withCredentials:hi,method:et||"post",onProgress:function(Ae){var at=dn.props.onProgress;at==null||at(Ae,ln)},onSuccess:function(Ae,at){var Lt=dn.props.onSuccess;Lt==null||Lt(Ae,ln,at),delete dn.reqs[_e]},onError:function(Ae,at){var Lt=dn.props.onError;Lt==null||Lt(Ae,at,ln),delete dn.reqs[_e]}};kn(Nt),this.reqs[_e]=xe(Te)}}},{key:"reset",value:function(){this.setState({uid:ft()})}},{key:"abort",value:function(nt){var dn=this.reqs;if(nt){var En=nt.uid?nt.uid:nt;dn[En]&&dn[En].abort&&dn[En].abort(),delete dn[En]}else Object.keys(dn).forEach(function(Nt){dn[Nt]&&dn[Nt].abort&&dn[Nt].abort(),delete dn[Nt]})}},{key:"render",value:function(){var nt=this.props,dn=nt.component,En=nt.prefixCls,Nt=nt.className,cn=nt.classNames,ln=cn===void 0?{}:cn,_n=nt.disabled,kn=nt.id,si=nt.name,kt=nt.style,Kn=nt.styles,hi=Kn===void 0?{}:Kn,et=nt.multiple,_e=nt.accept,xe=nt.capture,Te=nt.children,Me=nt.directory,Ae=nt.openFileDialogOnClick,at=nt.onMouseEnter,Lt=nt.onMouseLeave,Pt=nt.hasControlInside,Vt=(0,Je.Z)(nt,bt),It=ne()((0,Ve.Z)((0,Ve.Z)((0,Ve.Z)({},En,!0),"".concat(En,"-disabled"),_n),Nt,Nt)),an=Me?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},sn=_n?{}:{onClick:Ae?this.onClick:function(){},onKeyDown:Ae?this.onKeyDown:function(){},onMouseEnter:at,onMouseLeave:Lt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:Pt?void 0:"0"};return Xe.createElement(dn,(0,le.Z)({},sn,{className:It,role:Pt?void 0:"button",style:kt}),Xe.createElement("input",(0,le.Z)({},(0,he.Z)(Vt,{aria:!0,data:!0}),{id:kn,name:si,disabled:_n,type:"file",ref:this.saveFileInput,onClick:function(bn){return bn.stopPropagation()},key:this.state.uid,style:(0,qe.Z)({display:"none"},hi.input),className:ln.input,accept:_e},an,{multiple:et,onChange:this.onChange},xe!=null?{capture:xe}:{})),Te)}}]),Mt}(Xe.Component),Tt=ut;function Dt(){}var en=function(pn){(0,Ye.Z)(Mt,pn);var mn=(0,Fe.Z)(Mt);function Mt(){var ct;(0,Le.Z)(this,Mt);for(var nt=arguments.length,dn=new Array(nt),En=0;En<nt;En++)dn[En]=arguments[En];return ct=mn.call.apply(mn,[this].concat(dn)),(0,Ve.Z)((0,Ie.Z)(ct),"uploader",void 0),(0,Ve.Z)((0,Ie.Z)(ct),"saveUploader",function(Nt){ct.uploader=Nt}),ct}return(0,De.Z)(Mt,[{key:"abort",value:function(nt){this.uploader.abort(nt)}},{key:"render",value:function(){return Xe.createElement(Tt,(0,le.Z)({},this.props,{ref:this.saveUploader}))}}]),Mt}(Xe.Component);(0,Ve.Z)(en,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Dt,onError:Dt,onSuccess:Dt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var Cn=en,vn=Cn},8224:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return Le}});var le=de(4676);function Le(De,Ie,Ye,Fe){var Ve=le.unstable_batchedUpdates?function(qe){le.unstable_batchedUpdates(Ye,qe)}:Ye;return De!=null&&De.addEventListener&&De.addEventListener(Ie,Ve,Fe),{remove:function(){De!=null&&De.removeEventListener&&De.removeEventListener(Ie,Ve,Fe)}}}},45680:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return hi}});var le=de(72308),Le=de(62853),De=de(77321),Ie=de(49618),Ye=de(52487),Fe=de(74416),Ve=de(92310),Xe=de.n(Ve),qe=de(29301),Je=de(70425),mt=de(34280),st=de(59301),Ct=de(4676),je=st.forwardRef(function(et,_e){var xe=et.height,Te=et.offsetY,Me=et.offsetX,Ae=et.children,at=et.prefixCls,Lt=et.onInnerResize,Pt=et.innerProps,Vt=et.rtl,It=et.extra,an={},sn={display:"flex",flexDirection:"column"};return Te!==void 0&&(an={height:xe,position:"relative",overflow:"hidden"},sn=(0,De.Z)((0,De.Z)({},sn),{},(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({transform:"translateY(".concat(Te,"px)")},Vt?"marginRight":"marginLeft",-Me),"position","absolute"),"left",0),"right",0),"top",0))),st.createElement("div",{style:an},st.createElement(qe.Z,{onResize:function(bn){var un=bn.offsetHeight;un&&Lt&&Lt()}},st.createElement("div",(0,le.Z)({style:sn,className:Xe()((0,Ie.Z)({},"".concat(at,"-holder-inner"),at)),ref:_e},Pt),Ae,It)))});je.displayName="Filler";var te=je;function ne(et){var _e=et.children,xe=et.setRef,Te=st.useCallback(function(Me){xe(Me)},[]);return st.cloneElement(_e,{ref:Te})}function he(et,_e,xe,Te,Me,Ae,at,Lt){var Pt=Lt.getKey;return et.slice(_e,xe+1).map(function(Vt,It){var an=_e+It,sn=at(Vt,an,{style:{width:Te},offsetX:Me}),on=Pt(Vt);return st.createElement(ne,{key:on,setRef:function(un){return Ae(Vt,un)}},sn)})}function se(et,_e,xe,Te){var Me=xe-et,Ae=_e-xe,at=Math.min(Me,Ae)*2;if(Te<=at){var Lt=Math.floor(Te/2);return Te%2?xe+Lt+1:xe-Lt}return Me>Ae?xe-(Te-Ae):xe+(Te-Me)}function ge(et,_e,xe){var Te=et.length,Me=_e.length,Ae,at;if(Te===0&&Me===0)return null;Te<Me?(Ae=et,at=_e):(Ae=_e,at=et);var Lt={__EMPTY_ITEM__:!0};function Pt(bn){return bn!==void 0?xe(bn):Lt}for(var Vt=null,It=Math.abs(Te-Me)!==1,an=0;an<at.length;an+=1){var sn=Pt(Ae[an]),on=Pt(at[an]);if(sn!==on){Vt=an,It=It||sn!==Pt(at[an+1]);break}}return Vt===null?null:{index:Vt,multiple:It}}function Se(et,_e,xe){var Te=st.useState(et),Me=(0,Ye.Z)(Te,2),Ae=Me[0],at=Me[1],Lt=st.useState(null),Pt=(0,Ye.Z)(Lt,2),Vt=Pt[0],It=Pt[1];return st.useEffect(function(){var an=ge(Ae||[],et||[],_e);(an==null?void 0:an.index)!==void 0&&(xe==null||xe(an.index),It(et[an.index])),at(et)},[et]),[Vt]}var Ce=de(16089),Oe=(typeof navigator=="undefined"?"undefined":(0,Le.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Be=Oe,Qe=function(et,_e,xe,Te){var Me=(0,st.useRef)(!1),Ae=(0,st.useRef)(null);function at(){clearTimeout(Ae.current),Me.current=!0,Ae.current=setTimeout(function(){Me.current=!1},50)}var Lt=(0,st.useRef)({top:et,bottom:_e,left:xe,right:Te});return Lt.current.top=et,Lt.current.bottom=_e,Lt.current.left=xe,Lt.current.right=Te,function(Pt,Vt){var It=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,an=Pt?Vt<0&&Lt.current.left||Vt>0&&Lt.current.right:Vt<0&&Lt.current.top||Vt>0&&Lt.current.bottom;return It&&an?(clearTimeout(Ae.current),Me.current=!1):(!an||Me.current)&&at(),!Me.current&&an}};function ot(et,_e,xe,Te,Me,Ae,at){var Lt=(0,st.useRef)(0),Pt=(0,st.useRef)(null),Vt=(0,st.useRef)(null),It=(0,st.useRef)(!1),an=Qe(_e,xe,Te,Me);function sn(fn,An){if(Ce.Z.cancel(Pt.current),!an(!1,An)){var nn=fn;if(!nn._virtualHandled)nn._virtualHandled=!0;else return;Lt.current+=An,Vt.current=An,Be||nn.preventDefault(),Pt.current=(0,Ce.Z)(function(){var ci=It.current?10:1;at(Lt.current*ci,!1),Lt.current=0})}}function on(fn,An){at(An,!0),Be||fn.preventDefault()}var bn=(0,st.useRef)(null),un=(0,st.useRef)(null);function zt(fn){if(et){Ce.Z.cancel(un.current),un.current=(0,Ce.Z)(function(){bn.current=null},2);var An=fn.deltaX,nn=fn.deltaY,ci=fn.shiftKey,zn=An,yt=nn;(bn.current==="sx"||!bn.current&&ci&&nn&&!An)&&(zn=nn,yt=0,bn.current="sx");var Fn=Math.abs(zn),Pn=Math.abs(yt);bn.current===null&&(bn.current=Ae&&Fn>Pn?"x":"y"),bn.current==="y"?sn(fn,yt):on(fn,zn)}}function xn(fn){et&&(It.current=fn.detail===Vt.current)}return[zt,xn]}function rt(et,_e,xe,Te){var Me=st.useMemo(function(){return[new Map,[]]},[et,xe.id,Te]),Ae=(0,Ye.Z)(Me,2),at=Ae[0],Lt=Ae[1],Pt=function(It){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:It,sn=at.get(It),on=at.get(an);if(sn===void 0||on===void 0)for(var bn=et.length,un=Lt.length;un<bn;un+=1){var zt,xn=et[un],fn=_e(xn);at.set(fn,un);var An=(zt=xe.get(fn))!==null&&zt!==void 0?zt:Te;if(Lt[un]=(Lt[un-1]||0)+An,fn===It&&(sn=un),fn===an&&(on=un),sn!==void 0&&on!==void 0)break}return{top:Lt[sn-1]||0,bottom:Lt[on]}};return Pt}var ft=de(96949),bt=de(55090),ut=function(){function et(){(0,ft.Z)(this,et),(0,Ie.Z)(this,"maps",void 0),(0,Ie.Z)(this,"id",0),(0,Ie.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,bt.Z)(et,[{key:"set",value:function(xe,Te){this.maps[xe]=Te,this.id+=1,this.diffKeys.add(xe)}},{key:"get",value:function(xe){return this.maps[xe]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),et}(),Tt=ut;function Dt(et){var _e=parseFloat(et);return isNaN(_e)?0:_e}function en(et,_e,xe){var Te=st.useState(0),Me=(0,Ye.Z)(Te,2),Ae=Me[0],at=Me[1],Lt=(0,st.useRef)(new Map),Pt=(0,st.useRef)(new Tt),Vt=(0,st.useRef)(0);function It(){Vt.current+=1}function an(){var on=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;It();var bn=function(){var xn=!1;Lt.current.forEach(function(fn,An){if(fn&&fn.offsetParent){var nn=fn.offsetHeight,ci=getComputedStyle(fn),zn=ci.marginTop,yt=ci.marginBottom,Fn=Dt(zn),Pn=Dt(yt),Ht=nn+Fn+Pn;Pt.current.get(An)!==Ht&&(Pt.current.set(An,Ht),xn=!0)}}),xn&&at(function(fn){return fn+1})};if(on)bn();else{Vt.current+=1;var un=Vt.current;Promise.resolve().then(function(){un===Vt.current&&bn()})}}function sn(on,bn){var un=et(on),zt=Lt.current.get(un);bn?(Lt.current.set(un,bn),an()):Lt.current.delete(un),!zt!=!bn&&(bn?_e==null||_e(on):xe==null||xe(on))}return(0,st.useEffect)(function(){return It},[]),[sn,an,Pt.current,Ae]}var Cn=14/15;function vn(et,_e,xe){var Te=(0,st.useRef)(!1),Me=(0,st.useRef)(0),Ae=(0,st.useRef)(0),at=(0,st.useRef)(null),Lt=(0,st.useRef)(null),Pt,Vt=function(on){if(Te.current){var bn=Math.ceil(on.touches[0].pageX),un=Math.ceil(on.touches[0].pageY),zt=Me.current-bn,xn=Ae.current-un,fn=Math.abs(zt)>Math.abs(xn);fn?Me.current=bn:Ae.current=un;var An=xe(fn,fn?zt:xn,!1,on);An&&on.preventDefault(),clearInterval(Lt.current),An&&(Lt.current=setInterval(function(){fn?zt*=Cn:xn*=Cn;var nn=Math.floor(fn?zt:xn);(!xe(fn,nn,!0)||Math.abs(nn)<=.1)&&clearInterval(Lt.current)},16))}},It=function(){Te.current=!1,Pt()},an=function(on){Pt(),on.touches.length===1&&!Te.current&&(Te.current=!0,Me.current=Math.ceil(on.touches[0].pageX),Ae.current=Math.ceil(on.touches[0].pageY),at.current=on.target,at.current.addEventListener("touchmove",Vt,{passive:!1}),at.current.addEventListener("touchend",It,{passive:!0}))};Pt=function(){at.current&&(at.current.removeEventListener("touchmove",Vt),at.current.removeEventListener("touchend",It))},(0,mt.Z)(function(){return et&&_e.current.addEventListener("touchstart",an,{passive:!0}),function(){var sn;(sn=_e.current)===null||sn===void 0||sn.removeEventListener("touchstart",an),Pt(),clearInterval(Lt.current)}},[et])}function pn(et){return Math.floor(Math.pow(et,.5))}function mn(et,_e){var xe="touches"in et?et.touches[0]:et;return xe[_e?"pageX":"pageY"]-window[_e?"scrollX":"scrollY"]}function Mt(et,_e,xe){st.useEffect(function(){var Te=_e.current;if(et&&Te){var Me=!1,Ae,at,Lt=function(){Ce.Z.cancel(Ae)},Pt=function sn(){Lt(),Ae=(0,Ce.Z)(function(){xe(at),sn()})},Vt=function(on){if(!(on.target.draggable||on.button!==0)){var bn=on;bn._virtualHandled||(bn._virtualHandled=!0,Me=!0)}},It=function(){Me=!1,Lt()},an=function(on){if(Me){var bn=mn(on,!1),un=Te.getBoundingClientRect(),zt=un.top,xn=un.bottom;if(bn<=zt){var fn=zt-bn;at=-pn(fn),Pt()}else if(bn>=xn){var An=bn-xn;at=pn(An),Pt()}else Lt()}};return Te.addEventListener("mousedown",Vt),Te.ownerDocument.addEventListener("mouseup",It),Te.ownerDocument.addEventListener("mousemove",an),function(){Te.removeEventListener("mousedown",Vt),Te.ownerDocument.removeEventListener("mouseup",It),Te.ownerDocument.removeEventListener("mousemove",an),Lt()}}},[et])}var ct=10;function nt(et,_e,xe,Te,Me,Ae,at,Lt){var Pt=st.useRef(),Vt=st.useState(null),It=(0,Ye.Z)(Vt,2),an=It[0],sn=It[1];return(0,mt.Z)(function(){if(an&&an.times<ct){if(!et.current){sn(function(Ri){return(0,De.Z)({},Ri)});return}Ae();var on=an.targetAlign,bn=an.originAlign,un=an.index,zt=an.offset,xn=et.current.clientHeight,fn=!1,An=on,nn=null;if(xn){for(var ci=on||bn,zn=0,yt=0,Fn=0,Pn=Math.min(_e.length-1,un),Ht=0;Ht<=Pn;Ht+=1){var fi=Me(_e[Ht]);yt=zn;var zi=xe.get(fi);Fn=yt+(zi===void 0?Te:zi),zn=Fn}for(var Li=ci==="top"?zt:xn-zt,Dn=Pn;Dn>=0;Dn-=1){var qi=Me(_e[Dn]),Ui=xe.get(qi);if(Ui===void 0){fn=!0;break}if(Li-=Ui,Li<=0)break}switch(ci){case"top":nn=yt-zt;break;case"bottom":nn=Fn-xn+zt;break;default:{var ui=et.current.scrollTop,bi=ui+xn;yt<ui?An="top":Fn>bi&&(An="bottom")}}nn!==null&&at(nn),nn!==an.lastTop&&(fn=!0)}fn&&sn((0,De.Z)((0,De.Z)({},an),{},{times:an.times+1,targetAlign:An,lastTop:nn}))}},[an,et.current]),function(on){if(on==null){Lt();return}if(Ce.Z.cancel(Pt.current),typeof on=="number")at(on);else if(on&&(0,Le.Z)(on)==="object"){var bn,un=on.align;"index"in on?bn=on.index:bn=_e.findIndex(function(fn){return Me(fn)===on.key});var zt=on.offset,xn=zt===void 0?0:zt;sn({times:0,index:bn,offset:xn,originAlign:un})}}}var dn=st.forwardRef(function(et,_e){var xe=et.prefixCls,Te=et.rtl,Me=et.scrollOffset,Ae=et.scrollRange,at=et.onStartMove,Lt=et.onStopMove,Pt=et.onScroll,Vt=et.horizontal,It=et.spinSize,an=et.containerSize,sn=et.style,on=et.thumbStyle,bn=et.showScrollBar,un=st.useState(!1),zt=(0,Ye.Z)(un,2),xn=zt[0],fn=zt[1],An=st.useState(null),nn=(0,Ye.Z)(An,2),ci=nn[0],zn=nn[1],yt=st.useState(null),Fn=(0,Ye.Z)(yt,2),Pn=Fn[0],Ht=Fn[1],fi=!Te,zi=st.useRef(),Li=st.useRef(),Dn=st.useState(bn),qi=(0,Ye.Z)(Dn,2),Ui=qi[0],ui=qi[1],bi=st.useRef(),Ri=function(){bn===!0||bn===!1||(clearTimeout(bi.current),ui(!0),bi.current=setTimeout(function(){ui(!1)},3e3))},ke=Ae-an||0,gi=an-It||0,Ii=st.useMemo(function(){if(Me===0||ke===0)return 0;var Rt=Me/ke;return Rt*gi},[Me,ke,gi]),ki=function(rn){rn.stopPropagation(),rn.preventDefault()},ar=st.useRef({top:Ii,dragging:xn,pageY:ci,startTop:Pn});ar.current={top:Ii,dragging:xn,pageY:ci,startTop:Pn};var Nr=function(rn){fn(!0),zn(mn(rn,Vt)),Ht(ar.current.top),at(),rn.stopPropagation(),rn.preventDefault()};st.useEffect(function(){var Rt=function(Rn){Rn.preventDefault()},rn=zi.current,Xt=Li.current;return rn.addEventListener("touchstart",Rt,{passive:!1}),Xt.addEventListener("touchstart",Nr,{passive:!1}),function(){rn.removeEventListener("touchstart",Rt),Xt.removeEventListener("touchstart",Nr)}},[]);var sr=st.useRef();sr.current=ke;var Di=st.useRef();Di.current=gi,st.useEffect(function(){if(xn){var Rt,rn=function(Rn){var Jn=ar.current,qt=Jn.dragging,Gt=Jn.pageY,ti=Jn.startTop;Ce.Z.cancel(Rt);var pt=zi.current.getBoundingClientRect(),yn=an/(Vt?pt.width:pt.height);if(qt){var ii=(mn(Rn,Vt)-Gt)*yn,xi=ti;!fi&&Vt?xi-=ii:xi+=ii;var Ut=sr.current,$n=Di.current,pi=$n?xi/$n:0,Kt=Math.ceil(pi*Ut);Kt=Math.max(Kt,0),Kt=Math.min(Kt,Ut),Rt=(0,Ce.Z)(function(){Pt(Kt,Vt)})}},Xt=function(){fn(!1),Lt()};return window.addEventListener("mousemove",rn,{passive:!0}),window.addEventListener("touchmove",rn,{passive:!0}),window.addEventListener("mouseup",Xt,{passive:!0}),window.addEventListener("touchend",Xt,{passive:!0}),function(){window.removeEventListener("mousemove",rn),window.removeEventListener("touchmove",rn),window.removeEventListener("mouseup",Xt),window.removeEventListener("touchend",Xt),Ce.Z.cancel(Rt)}}},[xn]),st.useEffect(function(){return Ri(),function(){clearTimeout(bi.current)}},[Me]),st.useImperativeHandle(_e,function(){return{delayHidden:Ri}});var Ei="".concat(xe,"-scrollbar"),Zt={position:"absolute",visibility:Ui?null:"hidden"},Wt={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Vt?(Zt.height=8,Zt.left=0,Zt.right=0,Zt.bottom=0,Wt.height="100%",Wt.width=It,fi?Wt.left=Ii:Wt.right=Ii):(Zt.width=8,Zt.top=0,Zt.bottom=0,fi?Zt.right=0:Zt.left=0,Wt.width="100%",Wt.height=It,Wt.top=Ii),st.createElement("div",{ref:zi,className:Xe()(Ei,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},"".concat(Ei,"-horizontal"),Vt),"".concat(Ei,"-vertical"),!Vt),"".concat(Ei,"-visible"),Ui)),style:(0,De.Z)((0,De.Z)({},Zt),sn),onMouseDown:ki,onMouseMove:Ri},st.createElement("div",{ref:Li,className:Xe()("".concat(Ei,"-thumb"),(0,Ie.Z)({},"".concat(Ei,"-thumb-moving"),xn)),style:(0,De.Z)((0,De.Z)({},Wt),on),onMouseDown:Nr}))}),En=dn,Nt=20;function cn(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,_e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,xe=et/_e*et;return isNaN(xe)&&(xe=0),xe=Math.max(xe,Nt),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"],_n=[],kn={overflowY:"auto",overflowAnchor:"none"};function si(et,_e){var xe=et.prefixCls,Te=xe===void 0?"rc-virtual-list":xe,Me=et.className,Ae=et.height,at=et.itemHeight,Lt=et.fullHeight,Pt=Lt===void 0?!0:Lt,Vt=et.style,It=et.data,an=et.children,sn=et.itemKey,on=et.virtual,bn=et.direction,un=et.scrollWidth,zt=et.component,xn=zt===void 0?"div":zt,fn=et.onScroll,An=et.onVirtualScroll,nn=et.onVisibleChange,ci=et.innerProps,zn=et.extraRender,yt=et.styles,Fn=et.showScrollBar,Pn=Fn===void 0?"optional":Fn,Ht=(0,Fe.Z)(et,ln),fi=st.useCallback(function(Vi){return typeof sn=="function"?sn(Vi):Vi==null?void 0:Vi[sn]},[sn]),zi=en(fi,null,null),Li=(0,Ye.Z)(zi,4),Dn=Li[0],qi=Li[1],Ui=Li[2],ui=Li[3],bi=!!(on!==!1&&Ae&&at),Ri=st.useMemo(function(){return Object.values(Ui.maps).reduce(function(Vi,er){return Vi+er},0)},[Ui.id,Ui.maps]),ke=bi&&It&&(Math.max(at*It.length,Ri)>Ae||!!un),gi=bn==="rtl",Ii=Xe()(Te,(0,Ie.Z)({},"".concat(Te,"-rtl"),gi),Me),ki=It||_n,ar=(0,st.useRef)(),Nr=(0,st.useRef)(),sr=(0,st.useRef)(),Di=(0,st.useState)(0),Ei=(0,Ye.Z)(Di,2),Zt=Ei[0],Wt=Ei[1],Rt=(0,st.useState)(0),rn=(0,Ye.Z)(Rt,2),Xt=rn[0],Sn=rn[1],Rn=(0,st.useState)(!1),Jn=(0,Ye.Z)(Rn,2),qt=Jn[0],Gt=Jn[1],ti=function(){Gt(!0)},pt=function(){Gt(!1)},yn={getKey:fi};function ii(Vi){Wt(function(er){var Ir;typeof Vi=="function"?Ir=Vi(er):Ir=Vi;var wr=Wi(Ir);return ar.current.scrollTop=wr,wr})}var xi=(0,st.useRef)({start:0,end:ki.length}),Ut=(0,st.useRef)(),$n=Se(ki,fi),pi=(0,Ye.Z)($n,1),Kt=pi[0];Ut.current=Kt;var Ue=st.useMemo(function(){if(!bi)return{scrollHeight:void 0,start:0,end:ki.length-1,offset:void 0};if(!ke){var Vi;return{scrollHeight:((Vi=Nr.current)===null||Vi===void 0?void 0:Vi.offsetHeight)||0,start:0,end:ki.length-1,offset:void 0}}for(var er=0,Ir,wr,kr,Ho=ki.length,hr=0;hr<Ho;hr+=1){var rr=ki[hr],ri=fi(rr),Qi=Ui.get(ri),Qr=er+(Qi===void 0?at:Qi);Qr>=Zt&&Ir===void 0&&(Ir=hr,wr=er),Qr>Zt+Ae&&kr===void 0&&(kr=hr),er=Qr}return Ir===void 0&&(Ir=0,wr=0,kr=Math.ceil(Ae/at)),kr===void 0&&(kr=ki.length-1),kr=Math.min(kr+1,ki.length-1),{scrollHeight:er,start:Ir,end:kr,offset:wr}},[ke,bi,Zt,ki,ui,Ae]),wi=Ue.scrollHeight,ai=Ue.start,Mn=Ue.end,ji=Ue.offset;xi.current.start=ai,xi.current.end=Mn,st.useLayoutEffect(function(){var Vi=Ui.getRecord();if(Vi.size===1){var er=Array.from(Vi)[0],Ir=ki[ai];if(Ir){var wr=fi(Ir);if(wr===er){var kr=Ui.get(er),Ho=kr-at;ii(function(hr){return hr+Ho})}}}Ui.resetRecord()},[wi]);var Ki=st.useState({width:0,height:Ae}),Zi=(0,Ye.Z)(Ki,2),Nn=Zi[0],Jt=Zi[1],Ji=function(er){Jt({width:er.offsetWidth,height:er.offsetHeight})},zr=(0,st.useRef)(),wn=(0,st.useRef)(),vi=st.useMemo(function(){return cn(Nn.width,un)},[Nn.width,un]),Ni=st.useMemo(function(){return cn(Nn.height,wi)},[Nn.height,wi]),Bi=wi-Ae,Fi=(0,st.useRef)(Bi);Fi.current=Bi;function Wi(Vi){var er=Vi;return Number.isNaN(Fi.current)||(er=Math.min(er,Fi.current)),er=Math.max(er,0),er}var cr=Zt<=0,mr=Zt>=Bi,Tr=Xt<=0,Mr=Xt>=un,Gn=Qe(cr,mr,Tr,Mr),ur=function(){return{x:gi?-Xt:Xt,y:Zt}},Bn=(0,st.useRef)(ur()),br=(0,Je.zX)(function(Vi){if(An){var er=(0,De.Z)((0,De.Z)({},ur()),Vi);(Bn.current.x!==er.x||Bn.current.y!==er.y)&&(An(er),Bn.current=er)}});function Er(Vi,er){var Ir=Vi;er?((0,Ct.flushSync)(function(){Sn(Ir)}),br()):ii(Ir)}function pr(Vi){var er=Vi.currentTarget.scrollTop;er!==Zt&&ii(er),fn==null||fn(Vi),br()}var $r=function(er){var Ir=er,wr=un?un-Nn.width:0;return Ir=Math.max(Ir,0),Ir=Math.min(Ir,wr),Ir},Xr=(0,Je.zX)(function(Vi,er){er?((0,Ct.flushSync)(function(){Sn(function(Ir){var wr=Ir+(gi?-Vi:Vi);return $r(wr)})}),br()):ii(function(Ir){var wr=Ir+Vi;return wr})}),Ur=ot(bi,cr,mr,Tr,Mr,!!un,Xr),Yr=(0,Ye.Z)(Ur,2),Vo=Yr[0],Kr=Yr[1];vn(bi,ar,function(Vi,er,Ir,wr){var kr=wr;return Gn(Vi,er,Ir)?!1:!kr||!kr._virtualHandled?(kr&&(kr._virtualHandled=!0),Vo({preventDefault:function(){},deltaX:Vi?er:0,deltaY:Vi?0:er}),!0):!1}),Mt(ke,ar,function(Vi){ii(function(er){return er+Vi})}),(0,mt.Z)(function(){function Vi(Ir){var wr=cr&&Ir.detail<0,kr=mr&&Ir.detail>0;bi&&!wr&&!kr&&Ir.preventDefault()}var er=ar.current;return er.addEventListener("wheel",Vo,{passive:!1}),er.addEventListener("DOMMouseScroll",Kr,{passive:!0}),er.addEventListener("MozMousePixelScroll",Vi,{passive:!1}),function(){er.removeEventListener("wheel",Vo),er.removeEventListener("DOMMouseScroll",Kr),er.removeEventListener("MozMousePixelScroll",Vi)}},[bi,cr,mr]),(0,mt.Z)(function(){if(un){var Vi=$r(Xt);Sn(Vi),br({x:Vi})}},[Nn.width,un]);var Ti=function(){var er,Ir;(er=zr.current)===null||er===void 0||er.delayHidden(),(Ir=wn.current)===null||Ir===void 0||Ir.delayHidden()},lt=nt(ar,ki,Ui,at,fi,function(){return qi(!0)},ii,Ti);st.useImperativeHandle(_e,function(){return{nativeElement:sr.current,getScrollInfo:ur,scrollTo:function(er){function Ir(wr){return wr&&(0,Le.Z)(wr)==="object"&&("left"in wr||"top"in wr)}Ir(er)?(er.left!==void 0&&Sn($r(er.left)),lt(er.top)):lt(er)}}}),(0,mt.Z)(function(){if(nn){var Vi=ki.slice(ai,Mn+1);nn(Vi,ki)}},[ai,Mn,ki]);var xo=rt(ki,fi,Ui,at),Ar=zn==null?void 0:zn({start:ai,end:Mn,virtual:ke,offsetX:Xt,offsetY:ji,rtl:gi,getSize:xo}),Or=he(ki,ai,Mn,un,Xt,Dn,an,yn),no=null;Ae&&(no=(0,De.Z)((0,Ie.Z)({},Pt?"height":"maxHeight",Ae),kn),bi&&(no.overflowY="hidden",un&&(no.overflowX="hidden"),qt&&(no.pointerEvents="none")));var po={};return gi&&(po.dir="rtl"),st.createElement("div",(0,le.Z)({ref:sr,style:(0,De.Z)((0,De.Z)({},Vt),{},{position:"relative"}),className:Ii},po,Ht),st.createElement(qe.Z,{onResize:Ji},st.createElement(xn,{className:"".concat(Te,"-holder"),style:no,ref:ar,onScroll:pr,onMouseEnter:Ti},st.createElement(te,{prefixCls:Te,height:wi,offsetX:Xt,offsetY:ji,scrollWidth:un,onInnerResize:qi,ref:Nr,innerProps:ci,rtl:gi,extra:Ar},Or))),ke&&wi>Ae&&st.createElement(En,{ref:zr,prefixCls:Te,scrollOffset:Zt,scrollRange:wi,rtl:gi,onScroll:Er,onStartMove:ti,onStopMove:pt,spinSize:Ni,containerSize:Nn.height,style:yt==null?void 0:yt.verticalScrollBar,thumbStyle:yt==null?void 0:yt.verticalScrollBarThumb,showScrollBar:Pn}),ke&&un>Nn.width&&st.createElement(En,{ref:wn,prefixCls:Te,scrollOffset:Xt,scrollRange:un,rtl:gi,onScroll:Er,onStartMove:ti,onStopMove:pt,spinSize:vi,containerSize:Nn.width,horizontal:!0,style:yt==null?void 0:yt.horizontalScrollBar,thumbStyle:yt==null?void 0:yt.horizontalScrollBarThumb,showScrollBar:Pn}))}var kt=st.forwardRef(si);kt.displayName="List";var Kn=kt,hi=Kn},77596:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return ct}});var le=de(74416),Le=de(80702),De=de(49618),Ie=de(59301),Ye=de(72308);function Fe(nt,dn){var En=Object.keys(nt);if(Object.getOwnPropertySymbols){var Nt=Object.getOwnPropertySymbols(nt);dn&&(Nt=Nt.filter(function(cn){return Object.getOwnPropertyDescriptor(nt,cn).enumerable})),En.push.apply(En,Nt)}return En}function Ve(nt){for(var dn=1;dn<arguments.length;dn++){var En=arguments[dn]!=null?arguments[dn]:{};dn%2?Fe(Object(En),!0).forEach(function(Nt){(0,De.Z)(nt,Nt,En[Nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(nt,Object.getOwnPropertyDescriptors(En)):Fe(Object(En)).forEach(function(Nt){Object.defineProperty(nt,Nt,Object.getOwnPropertyDescriptor(En,Nt))})}return nt}function Xe(nt){var dn=nt.length;if(dn===0||dn===1)return nt;if(dn===2)return[nt[0],nt[1],"".concat(nt[0],".").concat(nt[1]),"".concat(nt[1],".").concat(nt[0])];if(dn===3)return[nt[0],nt[1],nt[2],"".concat(nt[0],".").concat(nt[1]),"".concat(nt[0],".").concat(nt[2]),"".concat(nt[1],".").concat(nt[0]),"".concat(nt[1],".").concat(nt[2]),"".concat(nt[2],".").concat(nt[0]),"".concat(nt[2],".").concat(nt[1]),"".concat(nt[0],".").concat(nt[1],".").concat(nt[2]),"".concat(nt[0],".").concat(nt[2],".").concat(nt[1]),"".concat(nt[1],".").concat(nt[0],".").concat(nt[2]),"".concat(nt[1],".").concat(nt[2],".").concat(nt[0]),"".concat(nt[2],".").concat(nt[0],".").concat(nt[1]),"".concat(nt[2],".").concat(nt[1],".").concat(nt[0])];if(dn>=4)return[nt[0],nt[1],nt[2],nt[3],"".concat(nt[0],".").concat(nt[1]),"".concat(nt[0],".").concat(nt[2]),"".concat(nt[0],".").concat(nt[3]),"".concat(nt[1],".").concat(nt[0]),"".concat(nt[1],".").concat(nt[2]),"".concat(nt[1],".").concat(nt[3]),"".concat(nt[2],".").concat(nt[0]),"".concat(nt[2],".").concat(nt[1]),"".concat(nt[2],".").concat(nt[3]),"".concat(nt[3],".").concat(nt[0]),"".concat(nt[3],".").concat(nt[1]),"".concat(nt[3],".").concat(nt[2]),"".concat(nt[0],".").concat(nt[1],".").concat(nt[2]),"".concat(nt[0],".").concat(nt[1],".").concat(nt[3]),"".concat(nt[0],".").concat(nt[2],".").concat(nt[1]),"".concat(nt[0],".").concat(nt[2],".").concat(nt[3]),"".concat(nt[0],".").concat(nt[3],".").concat(nt[1]),"".concat(nt[0],".").concat(nt[3],".").concat(nt[2]),"".concat(nt[1],".").concat(nt[0],".").concat(nt[2]),"".concat(nt[1],".").concat(nt[0],".").concat(nt[3]),"".concat(nt[1],".").concat(nt[2],".").concat(nt[0]),"".concat(nt[1],".").concat(nt[2],".").concat(nt[3]),"".concat(nt[1],".").concat(nt[3],".").concat(nt[0]),"".concat(nt[1],".").concat(nt[3],".").concat(nt[2]),"".concat(nt[2],".").concat(nt[0],".").concat(nt[1]),"".concat(nt[2],".").concat(nt[0],".").concat(nt[3]),"".concat(nt[2],".").concat(nt[1],".").concat(nt[0]),"".concat(nt[2],".").concat(nt[1],".").concat(nt[3]),"".concat(nt[2],".").concat(nt[3],".").concat(nt[0]),"".concat(nt[2],".").concat(nt[3],".").concat(nt[1]),"".concat(nt[3],".").concat(nt[0],".").concat(nt[1]),"".concat(nt[3],".").concat(nt[0],".").concat(nt[2]),"".concat(nt[3],".").concat(nt[1],".").concat(nt[0]),"".concat(nt[3],".").concat(nt[1],".").concat(nt[2]),"".concat(nt[3],".").concat(nt[2],".").concat(nt[0]),"".concat(nt[3],".").concat(nt[2],".").concat(nt[1]),"".concat(nt[0],".").concat(nt[1],".").concat(nt[2],".").concat(nt[3]),"".concat(nt[0],".").concat(nt[1],".").concat(nt[3],".").concat(nt[2]),"".concat(nt[0],".").concat(nt[2],".").concat(nt[1],".").concat(nt[3]),"".concat(nt[0],".").concat(nt[2],".").concat(nt[3],".").concat(nt[1]),"".concat(nt[0],".").concat(nt[3],".").concat(nt[1],".").concat(nt[2]),"".concat(nt[0],".").concat(nt[3],".").concat(nt[2],".").concat(nt[1]),"".concat(nt[1],".").concat(nt[0],".").concat(nt[2],".").concat(nt[3]),"".concat(nt[1],".").concat(nt[0],".").concat(nt[3],".").concat(nt[2]),"".concat(nt[1],".").concat(nt[2],".").concat(nt[0],".").concat(nt[3]),"".concat(nt[1],".").concat(nt[2],".").concat(nt[3],".").concat(nt[0]),"".concat(nt[1],".").concat(nt[3],".").concat(nt[0],".").concat(nt[2]),"".concat(nt[1],".").concat(nt[3],".").concat(nt[2],".").concat(nt[0]),"".concat(nt[2],".").concat(nt[0],".").concat(nt[1],".").concat(nt[3]),"".concat(nt[2],".").concat(nt[0],".").concat(nt[3],".").concat(nt[1]),"".concat(nt[2],".").concat(nt[1],".").concat(nt[0],".").concat(nt[3]),"".concat(nt[2],".").concat(nt[1],".").concat(nt[3],".").concat(nt[0]),"".concat(nt[2],".").concat(nt[3],".").concat(nt[0],".").concat(nt[1]),"".concat(nt[2],".").concat(nt[3],".").concat(nt[1],".").concat(nt[0]),"".concat(nt[3],".").concat(nt[0],".").concat(nt[1],".").concat(nt[2]),"".concat(nt[3],".").concat(nt[0],".").concat(nt[2],".").concat(nt[1]),"".concat(nt[3],".").concat(nt[1],".").concat(nt[0],".").concat(nt[2]),"".concat(nt[3],".").concat(nt[1],".").concat(nt[2],".").concat(nt[0]),"".concat(nt[3],".").concat(nt[2],".").concat(nt[0],".").concat(nt[1]),"".concat(nt[3],".").concat(nt[2],".").concat(nt[1],".").concat(nt[0])]}var qe={};function Je(nt){if(nt.length===0||nt.length===1)return nt;var dn=nt.join(".");return qe[dn]||(qe[dn]=Xe(nt)),qe[dn]}function mt(nt){var dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},En=arguments.length>2?arguments[2]:void 0,Nt=nt.filter(function(ln){return ln!=="token"}),cn=Je(Nt);return cn.reduce(function(ln,_n){return Ve(Ve({},ln),En[_n])},dn)}function st(nt){return nt.join(" ")}function Ct(nt,dn){var En=0;return function(Nt){return En+=1,Nt.map(function(cn,ln){return je({node:cn,stylesheet:nt,useInlineStyles:dn,key:"code-segment-".concat(En,"-").concat(ln)})})}}function je(nt){var dn=nt.node,En=nt.stylesheet,Nt=nt.style,cn=Nt===void 0?{}:Nt,ln=nt.useInlineStyles,_n=nt.key,kn=dn.properties,si=dn.type,kt=dn.tagName,Kn=dn.value;if(si==="text")return Kn;if(kt){var hi=Ct(En,ln),et;if(!ln)et=Ve(Ve({},kn),{},{className:st(kn.className)});else{var _e=Object.keys(En).reduce(function(Ae,at){return at.split(".").forEach(function(Lt){Ae.includes(Lt)||Ae.push(Lt)}),Ae},[]),xe=kn.className&&kn.className.includes("token")?["token"]:[],Te=kn.className&&xe.concat(kn.className.filter(function(Ae){return!_e.includes(Ae)}));et=Ve(Ve({},kn),{},{className:st(Te)||void 0,style:mt(kn.className,Object.assign({},kn.style,cn),En)})}var Me=hi(dn.children);return Ie.createElement(kt,(0,Ye.Z)({key:_n},et),Me)}}var te=function(nt,dn){var En=nt.listLanguages();return En.indexOf(dn)!==-1},ne=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function he(nt,dn){var En=Object.keys(nt);if(Object.getOwnPropertySymbols){var Nt=Object.getOwnPropertySymbols(nt);dn&&(Nt=Nt.filter(function(cn){return Object.getOwnPropertyDescriptor(nt,cn).enumerable})),En.push.apply(En,Nt)}return En}function se(nt){for(var dn=1;dn<arguments.length;dn++){var En=arguments[dn]!=null?arguments[dn]:{};dn%2?he(Object(En),!0).forEach(function(Nt){(0,De.Z)(nt,Nt,En[Nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(nt,Object.getOwnPropertyDescriptors(En)):he(Object(En)).forEach(function(Nt){Object.defineProperty(nt,Nt,Object.getOwnPropertyDescriptor(En,Nt))})}return nt}var ge=/\n/g;function Se(nt){return nt.match(ge)}function Ce(nt){var dn=nt.lines,En=nt.startingLineNumber,Nt=nt.style;return dn.map(function(cn,ln){var _n=ln+En;return Ie.createElement("span",{key:"line-".concat(ln),className:"react-syntax-highlighter-line-number",style:typeof Nt=="function"?Nt(_n):Nt},"".concat(_n,`
`))})}function Oe(nt){var dn=nt.codeString,En=nt.codeStyle,Nt=nt.containerStyle,cn=Nt===void 0?{float:"left",paddingRight:"10px"}:Nt,ln=nt.numberStyle,_n=ln===void 0?{}:ln,kn=nt.startingLineNumber;return Ie.createElement("code",{style:Object.assign({},En,cn)},Ce({lines:dn.replace(/\n$/,"").split(`
`),style:_n,startingLineNumber:kn}))}function Be(nt){return"".concat(nt.toString().length,".25em")}function Qe(nt,dn){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(nt),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:dn},children:[{type:"text",value:nt}]}}function ot(nt,dn,En){var Nt={display:"inline-block",minWidth:Be(En),paddingRight:"1em",textAlign:"right",userSelect:"none"},cn=typeof nt=="function"?nt(dn):nt,ln=se(se({},Nt),cn);return ln}function rt(nt){var dn=nt.children,En=nt.lineNumber,Nt=nt.lineNumberStyle,cn=nt.largestLineNumber,ln=nt.showInlineLineNumbers,_n=nt.lineProps,kn=_n===void 0?{}:_n,si=nt.className,kt=si===void 0?[]:si,Kn=nt.showLineNumbers,hi=nt.wrapLongLines,et=nt.wrapLines,_e=et===void 0?!1:et,xe=_e?se({},typeof kn=="function"?kn(En):kn):{};if(xe.className=xe.className?[].concat((0,Le.Z)(xe.className.trim().split(/\s+/)),(0,Le.Z)(kt)):kt,En&&ln){var Te=ot(Nt,En,cn);dn.unshift(Qe(En,Te))}return hi&Kn&&(xe.style=se({display:"flex"},xe.style)),{type:"element",tagName:"span",properties:xe,children:dn}}function ft(nt){for(var dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],En=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Nt=0;Nt<nt.length;Nt++){var cn=nt[Nt];if(cn.type==="text")En.push(rt({children:[cn],className:(0,Le.Z)(new Set(dn))}));else if(cn.children){var ln=dn.concat(cn.properties.className);ft(cn.children,ln).forEach(function(_n){return En.push(_n)})}}return En}function bt(nt,dn,En,Nt,cn,ln,_n,kn,si){var kt,Kn=ft(nt.value),hi=[],et=-1,_e=0;function xe(Vt,It){var an=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return rt({children:Vt,lineNumber:It,lineNumberStyle:kn,largestLineNumber:_n,showInlineLineNumbers:cn,lineProps:En,className:an,showLineNumbers:Nt,wrapLongLines:si,wrapLines:dn})}function Te(Vt,It){if(Nt&&It&&cn){var an=ot(kn,It,_n);Vt.unshift(Qe(It,an))}return Vt}function Me(Vt,It){var an=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return dn||an.length>0?xe(Vt,It,an):Te(Vt,It)}for(var Ae=function(){var It=Kn[_e],an=It.children[0].value,sn=Se(an);if(sn){var on=an.split(`
`);on.forEach(function(bn,un){var zt=Nt&&hi.length+ln,xn={type:"text",value:"".concat(bn,`
`)};if(un===0){var fn=Kn.slice(et+1,_e).concat(rt({children:[xn],className:It.properties.className})),An=Me(fn,zt);hi.push(An)}else if(un===on.length-1){var nn=Kn[_e+1]&&Kn[_e+1].children&&Kn[_e+1].children[0],ci={type:"text",value:"".concat(bn)};if(nn){var zn=rt({children:[ci],className:It.properties.className});Kn.splice(_e+1,0,zn)}else{var yt=[ci],Fn=Me(yt,zt,It.properties.className);hi.push(Fn)}}else{var Pn=[xn],Ht=Me(Pn,zt,It.properties.className);hi.push(Ht)}}),et=_e}_e++};_e<Kn.length;)Ae();if(et!==Kn.length-1){var at=Kn.slice(et+1,Kn.length);if(at&&at.length){var Lt=Nt&&hi.length+ln,Pt=Me(at,Lt);hi.push(Pt)}}return dn?hi:(kt=[]).concat.apply(kt,hi)}function ut(nt){var dn=nt.rows,En=nt.stylesheet,Nt=nt.useInlineStyles;return dn.map(function(cn,ln){return je({node:cn,stylesheet:En,useInlineStyles:Nt,key:"code-segement".concat(ln)})})}function Tt(nt){return nt&&typeof nt.highlightAuto!="undefined"}function Dt(nt){var dn=nt.astGenerator,En=nt.language,Nt=nt.code,cn=nt.defaultCodeValue;if(Tt(dn)){var ln=te(dn,En);return En==="text"?{value:cn,language:"text"}:ln?dn.highlight(En,Nt):dn.highlightAuto(Nt)}try{return En&&En!=="text"?{value:dn.highlight(Nt,En)}:{value:cn}}catch(_n){return{value:cn}}}function en(nt,dn){return function(Nt){var cn=Nt.language,ln=Nt.children,_n=Nt.style,kn=_n===void 0?dn:_n,si=Nt.customStyle,kt=si===void 0?{}:si,Kn=Nt.codeTagProps,hi=Kn===void 0?{className:cn?"language-".concat(cn):void 0,style:se(se({},kn['code[class*="language-"]']),kn['code[class*="language-'.concat(cn,'"]')])}:Kn,et=Nt.useInlineStyles,_e=et===void 0?!0:et,xe=Nt.showLineNumbers,Te=xe===void 0?!1:xe,Me=Nt.showInlineLineNumbers,Ae=Me===void 0?!0:Me,at=Nt.startingLineNumber,Lt=at===void 0?1:at,Pt=Nt.lineNumberContainerStyle,Vt=Nt.lineNumberStyle,It=Vt===void 0?{}:Vt,an=Nt.wrapLines,sn=Nt.wrapLongLines,on=sn===void 0?!1:sn,bn=Nt.lineProps,un=bn===void 0?{}:bn,zt=Nt.renderer,xn=Nt.PreTag,fn=xn===void 0?"pre":xn,An=Nt.CodeTag,nn=An===void 0?"code":An,ci=Nt.code,zn=ci===void 0?(Array.isArray(ln)?ln[0]:ln)||"":ci,yt=Nt.astGenerator,Fn=(0,le.Z)(Nt,ne);yt=yt||nt;var Pn=Te?Ie.createElement(Oe,{containerStyle:Pt,codeStyle:hi.style||{},numberStyle:It,startingLineNumber:Lt,codeString:zn}):null,Ht=kn.hljs||kn['pre[class*="language-"]']||{backgroundColor:"#fff"},fi=Tt(yt)?"hljs":"prismjs",zi=_e?Object.assign({},Fn,{style:Object.assign({},Ht,kt)}):Object.assign({},Fn,{className:Fn.className?"".concat(fi," ").concat(Fn.className):fi,style:Object.assign({},kt)});if(on?hi.style=se({whiteSpace:"pre-wrap"},hi.style):hi.style=se({whiteSpace:"pre"},hi.style),!yt)return Ie.createElement(fn,zi,Pn,Ie.createElement(nn,hi,zn));(an===void 0&&zt||on)&&(an=!0),zt=zt||ut;var Li=[{type:"text",value:zn}],Dn=Dt({astGenerator:yt,language:cn,code:zn,defaultCodeValue:Li});Dn.language===null&&(Dn.value=Li);var qi=Dn.value.length;qi===1&&Dn.value[0].type==="text"&&(qi=Dn.value[0].value.split(`
`).length);var Ui=qi+Lt,ui=bt(Dn,an,un,Te,Ae,Lt,Ui,It,on);return Ie.createElement(fn,zi,Ie.createElement(nn,hi,!Ae&&Pn,zt({rows:ui,stylesheet:kn,useInlineStyles:_e})))}}var Cn={'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"}},vn=de(11594),pn=de.n(vn),mn=["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"],Mt=en(pn(),Cn);Mt.supportedLanguages=mn;var ct=Mt},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),Le=60103;if(be.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var De=Symbol.for;Le=De("react.element"),be.Fragment=De("react.fragment")}var Ie=le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ye=Object.prototype.hasOwnProperty,Fe={key:!0,ref:!0,__self:!0,__source:!0};function Ve(Xe,qe,Je){var mt,st={},Ct=null,je=null;Je!==void 0&&(Ct=""+Je),qe.key!==void 0&&(Ct=""+qe.key),qe.ref!==void 0&&(je=qe.ref);for(mt in qe)Ye.call(qe,mt)&&!Fe.hasOwnProperty(mt)&&(st[mt]=qe[mt]);if(Xe&&Xe.defaultProps)for(mt in qe=Xe.defaultProps,qe)st[mt]===void 0&&(st[mt]=qe[mt]);return{$$typeof:Le,type:Xe,key:Ct,ref:je,props:st,_owner:Ie.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:{},Le=Oe();le.Prism={manual:!0,disableWorkerMessageHandler:!0};var De=de(43621),Ie=de(12256),Ye=de(68398),Fe=de(70614),Ve=de(54212),Xe=de(9720),qe=de(88786);Le();var Je={}.hasOwnProperty;function mt(){}mt.prototype=Ye;var st=new mt;Ge.exports=st,st.highlight=te,st.register=Ct,st.alias=je,st.registered=ne,st.listLanguages=he,Ct(Fe),Ct(Ve),Ct(Xe),Ct(qe),st.util.encode=Se,st.Token.stringify=se;function Ct(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 je(Be,Qe){var ot=st.languages,rt=Be,ft,bt,ut,Tt;Qe&&(rt={},rt[Be]=Qe);for(ft in rt)for(bt=rt[ft],bt=typeof bt=="string"?[bt]:bt,ut=bt.length,Tt=-1;++Tt<ut;)ot[bt[Tt]]=ot[ft]}function te(Be,Qe){var ot=Ye.highlight,rt;if(typeof Be!="string")throw new Error("Expected `string` for `value`, got `"+Be+"`");if(st.util.type(Qe)==="Object")rt=Qe,Qe=null;else{if(typeof Qe!="string")throw new Error("Expected `string` for `name`, got `"+Qe+"`");if(Je.call(st.languages,Qe))rt=st.languages[Qe];else throw new Error("Unknown language: `"+Qe+"` is not registered")}return ot.call(this,Be,rt,Qe)}function ne(Be){if(typeof Be!="string")throw new Error("Expected `string` for `language`, got `"+Be+"`");return Je.call(st.languages,Be)}function he(){var Be=st.languages,Qe=[],ot;for(ot in Be)Je.call(Be,ot)&&typeof Be[ot]=="object"&&Qe.push(ot);return Qe}function se(Be,Qe,ot){var rt;return typeof Be=="string"?{type:"text",value:Be}:st.util.type(Be)==="Array"?ge(Be,Qe):(rt={type:Be.type,content:st.Token.stringify(Be.content,Qe,ot),tag:"span",classes:["token",Be.type],attributes:{},language:Qe,parent:ot},Be.alias&&(rt.classes=rt.classes.concat(Be.alias)),st.hooks.run("wrap",rt),De(rt.tag+"."+rt.classes.join("."),Ce(rt.attributes),rt.content))}function ge(Be,Qe){for(var ot=[],rt=Be.length,ft=-1,bt;++ft<rt;)bt=Be[ft],bt!==""&&bt!==null&&bt!==void 0&&ot.push(bt);for(ft=-1,rt=ot.length;++ft<rt;)bt=ot[ft],ot[ft]=st.Token.stringify(bt,Qe,ot);return ot}function Se(Be){return Be}function Ce(Be){var Qe;for(Qe in Be)Be[Qe]=Ie(Be[Qe]);return Be}function Oe(){var Be="Prism"in le,Qe=Be?le.Prism:void 0;return ot;function ot(){Be?le.Prism=Qe:delete le.Prism,Be=void 0,Qe=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 Le="(?: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-])"+Le+"|<"+Le+">)(?![\\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=Le,Le.displayName="apex",Le.aliases=[];function Le(De){De.register(le),function(Ie){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,Fe=/\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(qe){return RegExp(qe.replace(/<CLASS-NAME>/g,function(){return Fe}),"i")}var Xe={keyword:Ye,punctuation:/[()\[\]{};,:.<>]/};Ie.languages.apex={comment:Ie.languages.clike.comment,string:Ie.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:Ie.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:Xe},{pattern:Ve(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:Xe},{pattern:Ve(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:Xe}],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=Le,Le.displayName="arduino",Le.aliases=["ino"];function Le(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 Le={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:Le,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:Le.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:Le,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 Ie(Ye){Ye=Ye.split(" ");for(var Fe={},Ve=0,Xe=Ye.length;Ve<Xe;Ve++)Fe[Ye[Ve]]=De[Ye[Ve]];return Fe}Le.inside.interpreted.inside.rest=Ie("macro inline replacement entity"),De["passthrough-block"].inside.rest=Ie("macro"),De["literal-block"].inside.rest=Ie("callout"),De.table.inside.rest=Ie("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=Ie("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=Ie("macro inline replacement entity"),le.hooks.add("wrap",function(Ye){Ye.type==="entity"&&(Ye.attributes.title=Ye.content.value.replace(/&amp;/,"&"))}),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=Le,Le.displayName="aspnet",Le.aliases=[];function Le(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 Le(qe,Je){return qe.replace(/<<(\d+)>>/g,function(mt,st){return Je[+st]})}function De(qe,Je,mt){return RegExp(Le(qe,Je),mt||"")}var Ie=/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("|"),Fe=[/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("|"),Xe=[Ye,Fe,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,[Ie],"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,[Xe],"i"),alias:"function"},"type-cast":{pattern:De(/\b(?:<<0>>)(?=\s*\()/.source,[Ie],"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 Le="\\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},Ie={bash:De,environment:{pattern:RegExp("\\$"+Le),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("(\\{)"+Le),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;|&]|[<>]\\()"+Le),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:Ie},{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:Ie},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:Ie.entity}}],environment:{pattern:RegExp("\\$?"+Le),alias:"constant"},variable:Ie.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"],Fe=Ie.variable[1].inside,Ve=0;Ve<Ye.length;Ve++)Fe[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 Le=/%%?[~:\w]+%?|!\S+!/,De={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},Ie=/"(?:[\\"]"|[^"])*"(?!")/,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:Ie,parameter:De,variable:Le,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:Ie,parameter:De,variable:Le,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:Ie,parameter:De,variable:[Le,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:Ye,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:Ie,parameter:De,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:Le,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=Le,Le.displayName="bison",Le.aliases=[];function Le(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=Le,Le.displayName="chaiscript",Le.aliases=[];function Le(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 Le=/#(?!\{).+/,De={pattern:/#\{[^}]+\}/,alias:"variable"};le.languages.coffeescript=le.languages.extend("javascript",{comment:Le,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:Le,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 Le=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,De=0;De<2;De++)Le=Le.replace(/<self>/g,function(){return Le});Le=Le.replace(/<self>/g,"[]"),le.languages.coq={comment:RegExp(Le),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return Le})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(Le),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=Le,Le.displayName="cpp",Le.aliases=[];function Le(De){De.register(le),function(Ie){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/,Fe=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return Ye.source});Ie.languages.cpp=Ie.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/}),Ie.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 Fe})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),Ie.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:Ie.languages.cpp}}}}),Ie.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),Ie.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:Ie.languages.extend("cpp",{})}}),Ie.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},Ie.languages.cpp["base-clause"])}(De)}},13652:function(Ge,be,de){"use strict";var le=de(75308);Ge.exports=Le,Le.displayName="crystal",Le.aliases=[];function Le(De){De.register(le),function(Ie){Ie.languages.crystal=Ie.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:[/->/,Ie.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),Ie.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:Ie.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:Ie.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 Le(mn,Mt){return mn.replace(/<<(\d+)>>/g,function(ct,nt){return"(?:"+Mt[+nt]+")"})}function De(mn,Mt,ct){return RegExp(Le(mn,Mt),ct||"")}function Ie(mn,Mt){for(var ct=0;ct<Mt;ct++)mn=mn.replace(/<<self>>/g,function(){return"(?:"+mn+")"});return mn.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 Fe(mn){return"\\b(?:"+mn.trim().replace(/ /g,"|")+")\\b"}var Ve=Fe(Ye.typeDeclaration),Xe=RegExp(Fe(Ye.type+" "+Ye.typeDeclaration+" "+Ye.contextual+" "+Ye.other)),qe=Fe(Ye.typeDeclaration+" "+Ye.contextual+" "+Ye.other),Je=Fe(Ye.type+" "+Ye.typeDeclaration+" "+Ye.other),mt=Ie(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),st=Ie(/\((?:[^()]|<<self>>)*\)/.source,2),Ct=/@?\b[A-Za-z_]\w*\b/.source,je=Le(/<<0>>(?:\s*<<1>>)?/.source,[Ct,mt]),te=Le(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[qe,je]),ne=/\[\s*(?:,\s*)*\]/.source,he=Le(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[te,ne]),se=Le(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[mt,st,ne]),ge=Le(/\(<<0>>+(?:,<<0>>+)+\)/.source,[se]),Se=Le(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[ge,te,ne]),Ce={keyword:Xe,punctuation:/[<>()?,.:[\]]/},Oe=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,Be=/"(?:\\.|[^\\"\r\n])*"/.source,Qe=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;le.languages.csharp=le.languages.extend("clike",{string:[{pattern:De(/(^|[^$\\])<<0>>/.source,[Qe]),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:Ce},{pattern:De(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[Ct,Se]),lookbehind:!0,inside:Ce},{pattern:De(/(\busing\s+)<<0>>(?=\s*=)/.source,[Ct]),lookbehind:!0},{pattern:De(/(\b<<0>>\s+)<<1>>/.source,[Ve,je]),lookbehind:!0,inside:Ce},{pattern:De(/(\bcatch\s*\(\s*)<<0>>/.source,[te]),lookbehind:!0,inside:Ce},{pattern:De(/(\bwhere\s+)<<0>>/.source,[Ct]),lookbehind:!0},{pattern:De(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[he]),lookbehind:!0,inside:Ce},{pattern:De(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[Se,Je,Ct]),inside:Ce}],keyword:Xe,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,[Ct]),lookbehind:!0,alias:"punctuation"}}),le.languages.insertBefore("csharp","class-name",{namespace:{pattern:De(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[Ct]),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:Ce},"return-type":{pattern:De(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[Se,te]),inside:Ce,alias:"class-name"},"constructor-invocation":{pattern:De(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[Se]),lookbehind:!0,inside:Ce,alias:"class-name"},"generic-method":{pattern:De(/<<0>>\s*<<1>>(?=\s*\()/.source,[Ct,mt]),inside:{function:De(/^<<0>>/.source,[Ct]),generic:{pattern:RegExp(mt),alias:"class-name",inside:Ce}}},"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,je,Ct,Se,Xe.source,st,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:De(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[je,st]),lookbehind:!0,greedy:!0,inside:le.languages.csharp},keyword:Xe,"class-name":{pattern:RegExp(Se),greedy:!0,inside:Ce},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 ot=Be+"|"+Oe,rt=Le(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[ot]),ft=Ie(Le(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[rt]),2),bt=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,ut=Le(/<<0>>(?:\s*\(<<1>>*\))?/.source,[te,ft]);le.languages.insertBefore("csharp","class-name",{attribute:{pattern:De(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[bt,ut]),lookbehind:!0,greedy:!0,inside:{target:{pattern:De(/^<<0>>(?=\s*:)/.source,[bt]),alias:"keyword"},"attribute-arguments":{pattern:De(/\(<<0>>*\)/.source,[ft]),inside:le.languages.csharp},"class-name":{pattern:RegExp(te),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var Tt=/:[^}\r\n]+/.source,Dt=Ie(Le(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[rt]),2),en=Le(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Dt,Tt]),Cn=Ie(Le(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[ot]),2),vn=Le(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Cn,Tt]);function pn(mn,Mt){return{interpolation:{pattern:De(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[mn]),lookbehind:!0,inside:{"format-string":{pattern:De(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[Mt,Tt]),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,[en]),lookbehind:!0,greedy:!0,inside:pn(en,Dt)},{pattern:De(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[vn]),lookbehind:!0,greedy:!0,inside:pn(vn,Cn)}],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=Le,Le.displayName="cshtml",Le.aliases=["razor"];function Le(De){De.register(le),function(Ie){var Ye=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,Fe=/@(?!")|"(?:[^\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,"(?:"+Fe+")").replace(/<comment>/g,"(?:"+Ye+")")}var Xe=Ve(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),qe=Ve(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),Je=Ve(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),mt=Ve(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),st=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,Ct=/(?!\d)[^\s>\/=$<%]+/.source+st+/\s*\/?>/.source,je=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+st+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+Ct+"|"+Ve(/<\1/.source+st+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+Ct+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+Ct+")";Ie.languages.cshtml=Ie.languages.extend("markup",{});var te=Ie.languages.insertBefore("csharp","string",{html:{pattern:RegExp(je),greedy:!0,inside:Ie.languages.cshtml}},{csharp:Ie.languages.extend("csharp",{})}),ne={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:te};Ie.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[Je,/(?:code|functions)\s*/.source+Je,/(?:for|foreach|lock|switch|using|while)\s*/.source+Xe+/\s*/.source+Je,/do\s*/.source+Je+/\s*while\s*/.source+Xe+/(?:\s*;)?/.source,/try\s*/.source+Je+/\s*catch\s*/.source+Xe+/\s*/.source+Je+/\s*finally\s*/.source+Je,/if\s*/.source+Xe+/\s*/.source+Je+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+Xe+")?"+/\s*/.source+Je+")*"].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+"|"+Xe+")(?:"+/[?!]?\.\w+\b/.source+"|"+Xe+"|"+qe+"|"+mt+Xe+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:ne}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),Ie.languages.razor=Ie.languages.cshtml}(De)}},5348:function(Ge){"use strict";Ge.exports=be,be.displayName="csp",be.aliases=[];function be(de){(function(le){function Le(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:Le(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:Le(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:Le(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:Le(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:Le(/[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:Le(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:Le(/'[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 Le=/("|')(?:\\(?:\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(`\\[(?:[^[\\]"']|`+Le.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":[Le,{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 Ie={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:Ie,number:Ye,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:Ie,number:Ye})})(de)}},54212:function(Ge){"use strict";Ge.exports=be,be.displayName="css",be.aliases=[];function be(de){(function(le){var Le=/(?:"(?:\\(?:\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\\((?:"+Le.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+Le.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+Le.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:Le,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 Le=[/\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,Ie={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":[Ie,{pattern:RegExp(De+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:Ie.inside}],keyword:Le,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":Ie,keyword:Le,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 Le={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(Le).forEach(function(De){var Ie=Le[De],Ye=[];/^\w+$/.test(De)||Ye.push(/\w+/.exec(De)[0]),De==="diff"&&Ye.push("bold"),le.languages.diff[De]={pattern:RegExp("^(?:["+Ie+`].*(?:\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:Le})})(de)}},32126:function(Ge,be,de){"use strict";var le=de(51478);Ge.exports=Le,Le.displayName="django",Le.aliases=["jinja2"];function Le(De){De.register(le),function(Ie){Ie.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,Fe=Ie.languages["markup-templating"];Ie.hooks.add("before-tokenize",function(Ve){Fe.buildPlaceholders(Ve,"django",Ye)}),Ie.hooks.add("after-tokenize",function(Ve){Fe.tokenizePlaceholders(Ve,"django")}),Ie.languages.jinja2=Ie.languages.django,Ie.hooks.add("before-tokenize",function(Ve){Fe.buildPlaceholders(Ve,"jinja2",Ye)}),Ie.hooks.add("after-tokenize",function(Ve){Fe.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 Le=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,De=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return Le}),Ie=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,Ye=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return Ie}),Fe={pattern:RegExp(Ie),greedy:!0},Ve={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function Xe(qe,Je){return qe=qe.replace(/<OPT>/g,function(){return Ye}).replace(/<SP>/g,function(){return De}),RegExp(qe,Je)}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:Xe(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[Fe,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:Xe(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:Xe(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:Xe(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:Ve,string:Fe,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 Le="(?:"+[/[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 Ie(Ye,Fe){return RegExp(Ye.replace(/<ID>/g,function(){return Le}),Fe)}le.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:Ie(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:De},"attr-value":{pattern:Ie(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:De},"attr-name":{pattern:Ie(/([\[;, \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:Ie(/(^|[^-.\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=Le,Le.displayName="ejs",Le.aliases=["eta"];function Le(De){De.register(le),function(Ie){Ie.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:Ie.languages.javascript}},Ie.hooks.add("before-tokenize",function(Ye){var Fe=/<%(?!%)[\s\S]+?%>/g;Ie.languages["markup-templating"].buildPlaceholders(Ye,"ejs",Fe)}),Ie.hooks.add("after-tokenize",function(Ye){Ie.languages["markup-templating"].tokenizePlaceholders(Ye,"ejs")}),Ie.languages.eta=Ie.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),Le=de(51478);Ge.exports=De,De.displayName="erb",De.aliases=[];function De(Ie){Ie.register(le),Ie.register(Le),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(Fe){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(Fe,"erb",Ve)}),Ye.hooks.add("after-tokenize",function(Fe){Ye.languages["markup-templating"].tokenizePlaceholders(Fe,"erb")})}(Ie)}},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),Le=de(51478);Ge.exports=De,De.displayName="etlua",De.aliases=[];function De(Ie){Ie.register(le),Ie.register(Le),function(Ye){Ye.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:Ye.languages.lua}},Ye.hooks.add("before-tokenize",function(Fe){var Ve=/<%[\s\S]+?%>/g;Ye.languages["markup-templating"].buildPlaceholders(Fe,"etlua",Ve)}),Ye.hooks.add("after-tokenize",function(Fe){Ye.languages["markup-templating"].tokenizePlaceholders(Fe,"etlua")})}(Ie)}},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 Le={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},De={number:/\\[^\s']|%\w/},Ie={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:Le},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:Le},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:Le}],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(qe){return(qe+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},Fe=function(qe){return new RegExp("(^|\\s)(?:"+qe.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(qe){Ie[qe].pattern=Fe(Ve[qe])});var Xe=["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"];Ie.combinators.pattern=Fe(Xe),le.languages.factor=Ie})(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=Le,Le.displayName="ftl",Le.aliases=[];function Le(De){De.register(le),function(Ie){for(var Ye=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,Fe=0;Fe<2;Fe++)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,Ie.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}}}},Ie.hooks.add("before-tokenize",function(Xe){var qe=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return Ye}),"gi");Ie.languages["markup-templating"].buildPlaceholders(Xe,"ftl",qe)}),Ie.hooks.add("after-tokenize",function(Xe){Ie.languages["markup-templating"].tokenizePlaceholders(Xe,"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 Le=/(?:\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("("+Le+")(?:"+Le+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(Le),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=Le,Le.displayName="glsl",Le.aliases=[];function Le(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(Le){if(Le.language!=="graphql")return;var De=Le.tokens.filter(function(ne){return typeof ne!="string"&&ne.type!=="comment"&&ne.type!=="scalar"}),Ie=0;function Ye(ne){return De[Ie+ne]}function Fe(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=Ie;ge<De.length;ge++){var Se=De[ge],Ce=Se.content;if(Se.type==="punctuation"&&typeof Ce=="string"){if(ne.test(Ce))se++;else if(he.test(Ce)&&(se--,se===0))return ge}}return-1}function Xe(ne,he){var se=ne.alias;se?Array.isArray(se)||(ne.alias=se=[se]):ne.alias=se=[],se.push(he)}for(;Ie<De.length;){var qe=De[Ie++];if(qe.type==="keyword"&&qe.content==="mutation"){var Je=[];if(Fe(["definition-mutation","punctuation"])&&Ye(1).content==="("){Ie+=2;var mt=Ve(/^\($/,/^\)$/);if(mt===-1)continue;for(;Ie<mt;Ie++){var st=Ye(0);st.type==="variable"&&(Xe(st,"variable-input"),Je.push(st.content))}Ie=mt+1}if(Fe(["punctuation","property-query"])&&Ye(0).content==="{"&&(Ie++,Xe(Ye(0),"property-mutation"),Je.length>0)){var Ct=Ve(/^\{$/,/^\}$/);if(Ct===-1)continue;for(var je=Ie;je<Ct;je++){var te=De[je];te.type==="variable"&&Je.indexOf(te.content)>=0&&Xe(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 Le=le.content.value[0];if(Le!="'"){var De=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;Le==="$"&&(De=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),le.content.value=le.content.value.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),le.content=de.highlight(le.content.value,{expression:{pattern:De,lookbehind:!0,inside:de.languages.groovy}}),le.classes.push(Le==="/"?"regex":"gstring")}}})}},21550:function(Ge,be,de){"use strict";var le=de(75308);Ge.exports=Le,Le.displayName="haml",Le.aliases=[];function Le(De){De.register(le),function(Ie){Ie.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:Ie.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:Ie.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:Ie.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:Ie.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:Ie.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:Ie.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:Ie.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)))+",Fe=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],Ve={},Xe=0,qe=Fe.length;Xe<qe;Xe++){var Je=Fe[Xe];Je=typeof Je=="string"?{filter:Je,language:Je}:Je,Ie.languages[Je.language]&&(Ve["filter-"+Je.filter]={pattern:RegExp(Ye.replace("{{filter_name}}",function(){return Je.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[Je.language,"language-"+Je.language],inside:Ie.languages[Je.language]}}})}Ie.languages.insertBefore("haml","filter",Ve)}(De)}},29710:function(Ge,be,de){"use strict";var le=de(51478);Ge.exports=Le,Le.displayName="handlebars",Le.aliases=["hbs"];function Le(De){De.register(le),function(Ie){Ie.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]+/},Ie.hooks.add("before-tokenize",function(Ye){var Fe=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;Ie.languages["markup-templating"].buildPlaceholders(Ye,"handlebars",Fe)}),Ie.hooks.add("after-tokenize",function(Ye){Ie.languages["markup-templating"].tokenizePlaceholders(Ye,"handlebars")}),Ie.languages.hbs=Ie.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=Le,Le.displayName="hlsl",Le.aliases=[];function Le(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 Le(Je){return RegExp("(^(?:"+Je+"):[ ]*(?![ ]))[^]+","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:Le(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:le.languages.csp},{pattern:Le(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:le.languages.hpkp},{pattern:Le(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:le.languages.hsts},{pattern:Le(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var De=le.languages,Ie={"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 Fe(Je){var mt=Je.replace(/^[a-z]+\//,""),st="\\w+/(?:[\\w.-]+\\+)+"+mt+"(?![+\\w.-])";return"(?:"+Je+"|"+st+")"}var Ve;for(var Xe in Ie)if(Ie[Xe]){Ve=Ve||{};var qe=Ye[Xe]?Fe(Xe):Xe;Ve[Xe.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+qe+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:Ie[Xe]}}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 Le(Xe,qe){return qe<=0?/[]/.source:Xe.replace(/<SELF>/g,function(){return Le(Xe,qe-1)})}var De=/'[{}:=,](?:[^']|'')*'(?!')/,Ie={pattern:/''/,greedy:!0,alias:"operator"},Ye={pattern:De,greedy:!0,inside:{escape:Ie}},Fe=Le(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return De.source}),8),Ve={pattern:RegExp(Fe),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};le.languages["icu-message-format"]={argument:{pattern:RegExp(Fe),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+Le(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:Ie,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=Le,Le.displayName="idris",Le.aliases=["idr"];function Le(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 Le=/\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,Ie={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":[Ie,{pattern:RegExp(De+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:Ie.inside}],keyword:Le,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":Ie,keyword:Le,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 Le.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(de)}},4005:function(Ge,be,de){"use strict";var le=de(7093),Le=de(53510);Ge.exports=De,De.displayName="javadoc",De.aliases=[];function De(Ie){Ie.register(le),Ie.register(Le),function(Ye){var Fe=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,Ve=/#\s*\w+(?:\s*\([^()]*\))?/.source,Xe=/(?:\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+"(?:"+Xe+")"),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:Fe,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:Fe,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)}(Ie)}},53510:function(Ge){"use strict";Ge.exports=be,be.displayName="javadoclike",be.aliases=[];function be(de){(function(le){var Le=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,Fe){var Ve="doc-comment",Xe=le.languages[Ye];if(Xe){var qe=Xe[Ve];if(!qe){var Je={};Je[Ve]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},Xe=le.languages.insertBefore(Ye,"comment",Je),qe=Xe[Ve]}if(qe instanceof RegExp&&(qe=Xe[Ve]={pattern:qe}),Array.isArray(qe))for(var mt=0,st=qe.length;mt<st;mt++)qe[mt]instanceof RegExp&&(qe[mt]={pattern:qe[mt]}),Fe(qe[mt]);else Fe(qe)}}function Ie(Ye,Fe){typeof Ye=="string"&&(Ye=[Ye]),Ye.forEach(function(Ve){De(Ve,function(Xe){Xe.inside||(Xe.inside={}),Xe.inside.rest=Fe})})}Object.defineProperty(Le,"addSupport",{value:Ie}),Le.addSupport(["java","javascript","php"],Le)})(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 Le=/\\\((?:[^()]|\([^()]*\))*\)/.source,De=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return Le})),Ie={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+Le),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:Ie},string:{pattern:De,lookbehind:!0,greedy:!0,inside:Ie},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"}};Ie.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 Le(Xe,qe){return RegExp(Xe.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),qe)}le.languages.insertBefore("javascript","keyword",{imports:{pattern:Le(/(\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:Le(/(\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:Le(/(\.\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"],Ie=0;Ie<De.length;Ie++){var Ye=De[Ie],Fe=le.languages.javascript[Ye];le.util.type(Fe)==="RegExp"&&(Fe=le.languages.javascript[Ye]={pattern:Fe});var Ve=Fe.inside||{};Fe.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 Le=le.languages.javascript["template-string"],De=Le.pattern.source,Ie=Le.inside.interpolation,Ye=Ie.inside["interpolation-punctuation"],Fe=Ie.pattern.source;function Ve(je,te){if(le.languages[je])return{pattern:RegExp("((?:"+te+")\\s*)"+De),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:je}}}}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),Le].filter(Boolean);function Xe(je,te){return"___"+te.toUpperCase()+"_"+je+"___"}function qe(je,te,ne){var he={code:je,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 Je(je){var te={};te["interpolation-punctuation"]=Ye;var ne=le.tokenize(je,te);if(ne.length===3){var he=[1,1];he.push.apply(he,qe(ne[1],le.languages.javascript,"javascript")),ne.splice.apply(ne,he)}return new le.Token("interpolation",ne,Ie.alias,je)}function mt(je,te,ne){var he=le.tokenize(je,{interpolation:{pattern:RegExp(Fe),lookbehind:!0}}),se=0,ge={},Se=he.map(function(Qe){if(typeof Qe=="string")return Qe;for(var ot=Qe.content,rt;je.indexOf(rt=Xe(se++,ne))!==-1;);return ge[rt]=ot,rt}).join(""),Ce=qe(Se,te,ne),Oe=Object.keys(ge);se=0;function Be(Qe){for(var ot=0;ot<Qe.length;ot++){if(se>=Oe.length)return;var rt=Qe[ot];if(typeof rt=="string"||typeof rt.content=="string"){var ft=Oe[se],bt=typeof rt=="string"?rt:rt.content,ut=bt.indexOf(ft);if(ut!==-1){++se;var Tt=bt.substring(0,ut),Dt=Je(ge[ft]),en=bt.substring(ut+ft.length),Cn=[];if(Tt&&Cn.push(Tt),Cn.push(Dt),en){var vn=[en];Be(vn),Cn.push.apply(Cn,vn)}typeof rt=="string"?(Qe.splice.apply(Qe,[ot,1].concat(Cn)),ot+=Cn.length-1):rt.content=Cn}}else{var pn=rt.content;Array.isArray(pn)?Be(pn):Be([pn])}}}return Be(Ce),new le.Token(ne,Ce,"language-"+ne,je)}var st={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};le.hooks.add("after-tokenize",function(je){if(!(je.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 Ce=Se[1];if(Se.length===3&&typeof Ce!="string"&&Ce.type==="embedded-code"){var Oe=Ct(Ce),Be=Ce.alias,Qe=Array.isArray(Be)?Be[0]:Be,ot=le.languages[Qe];if(!ot)continue;Se[1]=mt(Oe,ot,Qe)}}else te(Se)}}}te(je.tokens)});function Ct(je){return typeof je=="string"?je:Array.isArray(je)?je.map(Ct).join(""):Ct(je.content)}})(de)}},79539:function(Ge,be,de){"use strict";var le=de(53510),Le=de(92784);Ge.exports=De,De.displayName="jsdoc",De.aliases=[];function De(Ie){Ie.register(le),Ie.register(Le),function(Ye){var Fe=Ye.languages.javascript,Ve=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,Xe="(@(?:arg|argument|param|property)\\s+(?:"+Ve+"\\s+)?)";Ye.languages.jsdoc=Ye.languages.extend("javadoclike",{parameter:{pattern:RegExp(Xe+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),Ye.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(Xe+/\[(?:(?!\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:Fe,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:Fe.string,number:Fe.number,boolean:Fe.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:Fe,alias:"language-javascript"}}}}),Ye.languages.javadoclike.addSupport("javascript",Ye.languages.jsdoc)}(Ie)}},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=Le,Le.displayName="json5",Le.aliases=[];function Le(De){De.register(le),function(Ie){var Ye=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;Ie.languages.json5=Ie.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=Le,Le.displayName="jsonp",Le.aliases=[];function Le(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 Le=le.util.clone(le.languages.javascript),De=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,Ie=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,Ye=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function Fe(qe,Je){return qe=qe.replace(/<S>/g,function(){return De}).replace(/<BRACES>/g,function(){return Ie}).replace(/<SPREAD>/g,function(){return Ye}),RegExp(qe,Je)}Ye=Fe(Ye).source,le.languages.jsx=le.languages.extend("markup",Le),le.languages.jsx.tag.pattern=Fe(/<\/?(?:[\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=Le.comment,le.languages.insertBefore("inside","attr-name",{spread:{pattern:Fe(/<SPREAD>/.source),inside:le.languages.jsx}},le.languages.jsx.tag),le.languages.insertBefore("inside","special-attr",{script:{pattern:Fe(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:le.languages.jsx}}},le.languages.jsx.tag);var Ve=function(qe){return qe?typeof qe=="string"?qe:typeof qe.content=="string"?qe.content:qe.content.map(Ve).join(""):""},Xe=function(qe){for(var Je=[],mt=0;mt<qe.length;mt++){var st=qe[mt],Ct=!1;if(typeof st!="string"&&(st.type==="tag"&&st.content[0]&&st.content[0].type==="tag"?st.content[0].content[0].content==="</"?Je.length>0&&Je[Je.length-1].tagName===Ve(st.content[0].content[1])&&Je.pop():st.content[st.content.length-1].content==="/>"||Je.push({tagName:Ve(st.content[0].content[1]),openedBraces:0}):Je.length>0&&st.type==="punctuation"&&st.content==="{"?Je[Je.length-1].openedBraces++:Je.length>0&&Je[Je.length-1].openedBraces>0&&st.type==="punctuation"&&st.content==="}"?Je[Je.length-1].openedBraces--:Ct=!0),(Ct||typeof st=="string")&&Je.length>0&&Je[Je.length-1].openedBraces===0){var je=Ve(st);mt<qe.length-1&&(typeof qe[mt+1]=="string"||qe[mt+1].type==="plain-text")&&(je+=Ve(qe[mt+1]),qe.splice(mt+1,1)),mt>0&&(typeof qe[mt-1]=="string"||qe[mt-1].type==="plain-text")&&(je=Ve(qe[mt-1])+je,qe.splice(mt-1,1),mt--),qe[mt]=new le.Token("plain-text",je,null,je)}st.content&&typeof st.content!="string"&&Xe(st.content)}};le.hooks.add("after-tokenize",function(qe){qe.language!=="jsx"&&qe.language!=="tsx"||Xe(qe.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 Le={"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:Le},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:Le},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 Le=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function De(Ie,Ye){return RegExp(Ie.replace(/<nonId>/g,Le),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 Le=/\\(?:[^a-z()[\]]|[a-z*]+)/i,De={"equation-command":{pattern:Le,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:Le,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),Le=de(53852);Ge.exports=De,De.displayName="latte",De.aliases=[];function De(Ie){Ie.register(le),Ie.register(Le),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 Fe=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}}}}}},Fe.tag),Ye.hooks.add("before-tokenize",function(Ve){if(Ve.language==="latte"){var Xe=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;Ye.languages["markup-templating"].buildPlaceholders(Ve,"latte",Xe),Ve.grammar=Fe}}),Ye.hooks.add("after-tokenize",function(Ve){Ye.languages["markup-templating"].tokenizePlaceholders(Ve,"latte")})}(Ie)}},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=Le,Le.displayName="lilypond",Le.aliases=[];function Le(De){De.register(le),function(Ie){for(var Ye=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,Fe=5,Ve=0;Ve<Fe;Ve++)Ye=Ye.replace(/<expr>/g,function(){return Ye});Ye=Ye.replace(/<expr>/g,/[^\s\S]/.source);var Xe=Ie.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:Ie.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/};Xe["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=Xe,Ie.languages.ly=Xe}(De)}},39940:function(Ge,be,de){"use strict";var le=de(51478);Ge.exports=Le,Le.displayName="liquid",Le.aliases=[];function Le(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(Ie){var Ye=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,Fe=!1;De.languages["markup-templating"].buildPlaceholders(Ie,"liquid",Ye,function(Ve){var Xe=/^\{%-?\s*(\w+)/.exec(Ve);if(Xe){var qe=Xe[1];if(qe==="raw"&&!Fe)return Fe=!0,!0;if(qe==="endraw")return Fe=!1,!0}return!Fe})}),De.hooks.add("after-tokenize",function(Ie){De.languages["markup-templating"].tokenizePlaceholders(Ie,"liquid")})}},34973:function(Ge){"use strict";Ge.exports=be,be.displayName="lisp",be.aliases=[];function be(de){(function(le){function Le(je){return RegExp(/(\()/.source+"(?:"+je+")"+/(?=[\s\)])/.source)}function De(je){return RegExp(/([\s([])/.source+"(?:"+je+")"+/(?=[\s)])/.source)}var Ie=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,Ye="&"+Ie,Fe="(\\()",Ve="(?=\\))",Xe="(?=\\s)",qe=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,Je={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+Ie+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+Ie),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+Ie),alias:"property"},splice:{pattern:RegExp(",@?"+Ie),alias:["symbol","variable"]},keyword:[{pattern:RegExp(Fe+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+Xe),lookbehind:!0},{pattern:RegExp(Fe+"(?:append|by|collect|concat|do|finally|for|in|return)"+Xe),lookbehind:!0}],declare:{pattern:Le(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:Le(/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(Fe+"def(?:const|custom|group|var)\\s+"+Ie),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(Ie)}},defun:{pattern:RegExp(Fe+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+Ie+/\s+\(/.source+qe+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+Ie),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(Fe+"lambda\\s+\\(\\s*(?:&?"+Ie+"(?:\\s+&?"+Ie+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(Fe+Ie),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},mt={"lisp-marker":RegExp(Ye),varform:{pattern:RegExp(/\(/.source+Ie+/\s+(?=\S)/.source+qe+/\)/.source),inside:Je},argument:{pattern:RegExp(/(^|[\s(])/.source+Ie),lookbehind:!0,alias:"variable"},rest:Je},st="\\S+(?:\\s+\\S+)*",Ct={pattern:RegExp(Fe+qe+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(Ie),alias:"variable"},punctuation:/[()]/}};Je.lambda.inside.arguments=Ct,Je.defun.inside.arguments=le.util.clone(Ct),Je.defun.inside.arguments.inside.sublist=Ct,le.languages.lisp=Je,le.languages.elisp=Je,le.languages.emacs=Je,le.languages["emacs-lisp"]=Je})(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 Le=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function De(mt){return mt=mt.replace(/<inner>/g,function(){return Le}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+mt+")")}var Ie=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,Ye=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return Ie}),Fe=/\|?[ \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+Fe+"(?:"+Ye+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+Ye+Fe+")(?:"+Ye+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(Ie),inside:le.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+Ye+")"+Fe+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+Ye+"$"),inside:{"table-header":{pattern:RegExp(Ie),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(Ct){if(!(!Ct||typeof Ct=="string"))for(var je=0,te=Ct.length;je<te;je++){var ne=Ct[je];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="",Ct=0,je=mt.classes.length;Ct<je;Ct++){var te=mt.classes[Ct],ne=/language-(.+)/.exec(te);if(ne){st=ne[1];break}}var he=le.languages[st];if(he)mt.content=le.highlight(Je(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"),Xe={amp:"&",lt:"<",gt:">",quot:'"'},qe=String.fromCodePoint||String.fromCharCode;function Je(mt){var st=mt.replace(Ve,"");return st=st.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(Ct,je){if(je=je.toLowerCase(),je[0]==="#"){var te;return je[1]==="x"?te=parseInt(je.slice(2),16):te=Number(je.slice(1)),qe(te)}else{var ne=Xe[je];return ne||Ct}}),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 Le(De,Ie){return"___"+De.toUpperCase()+Ie+"___"}Object.defineProperties(le.languages["markup-templating"]={},{buildPlaceholders:{value:function(De,Ie,Ye,Fe){if(De.language===Ie){var Ve=De.tokenStack=[];De.code=De.code.replace(Ye,function(Xe){if(typeof Fe=="function"&&!Fe(Xe))return Xe;for(var qe=Ve.length,Je;De.code.indexOf(Je=Le(Ie,qe))!==-1;)++qe;return Ve[qe]=Xe,Je}),De.grammar=le.languages.markup}}},tokenizePlaceholders:{value:function(De,Ie){if(De.language!==Ie||!De.tokenStack)return;De.grammar=le.languages[Ie];var Ye=0,Fe=Object.keys(De.tokenStack);function Ve(Xe){for(var qe=0;qe<Xe.length&&!(Ye>=Fe.length);qe++){var Je=Xe[qe];if(typeof Je=="string"||Je.content&&typeof Je.content=="string"){var mt=Fe[Ye],st=De.tokenStack[mt],Ct=typeof Je=="string"?Je:Je.content,je=Le(Ie,mt),te=Ct.indexOf(je);if(te>-1){++Ye;var ne=Ct.substring(0,te),he=new le.Token(Ie,le.tokenize(st,De.grammar),"language-"+Ie,st),se=Ct.substring(te+je.length),ge=[];ne&&ge.push.apply(ge,Ve([ne])),ge.push(he),se&&ge.push.apply(ge,Ve([se])),typeof Je=="string"?Xe.splice.apply(Xe,[qe,1].concat(ge)):Je.content=ge}}else Je.content&&Ve(Je.content)}return Xe}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(/&amp;/,"&"))}),Object.defineProperty(de.languages.markup.tag,"addInlined",{value:function(Le,De){var Ie={};Ie["language-"+De]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:de.languages[De]},Ie.cdata=/^<!\[CDATA\[|\]\]>$/i;var Ye={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:Ie}};Ye["language-"+De]={pattern:/[\s\S]+/,inside:de.languages[De]};var Fe={};Fe[Le]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return Le}),"i"),lookbehind:!0,greedy:!0,inside:Ye},de.languages.insertBefore("markup","cdata",Fe)}}),Object.defineProperty(de.languages.markup.tag,"addAttribute",{value:function(le,Le){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:[Le,"language-"+Le],inside:de.languages[Le]},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 Le=/\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)+")[ ]*)(?!"+Le.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+Le.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:Le,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 Le=["$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"];Le=Le.map(function(Ye){return Ye.replace("$","\\$")});var Ie="(?:"+Le.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(`^(['"])?`+Ie+"(?:\\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 Le=/\{[^\r\n\[\]{}]*\}/,De={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:Le,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:Le,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:Le,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(Fe){var Ve=Fe.tokens;Ve.forEach(function(Xe){if(typeof Xe!="string"&&Xe.type==="generic-text"){var qe=Ye(Xe);Ie(qe)||(Xe.type="bad-line",Xe.content=qe)}})});function Ie(Fe){for(var Ve="[]{}",Xe=[],qe=0;qe<Fe.length;qe++){var Je=Fe[qe],mt=Ve.indexOf(Je);if(mt!==-1){if(mt%2===0)Xe.push(mt+1);else if(Xe.pop()!==mt)return!1}}return Xe.length===0}function Ye(Fe){return typeof Fe=="string"?Fe:Array.isArray(Fe)?Fe.map(Ye).join(""):Ye(Fe.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 Le=/\$(?:\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:Le}},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:Le}},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=Le,Le.displayName="objectivec",Le.aliases=["objc"];function Le(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=Le,Le.displayName="opencl",Le.aliases=[];function Le(De){De.register(le),function(Ie){Ie.languages.opencl=Ie.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"}}),Ie.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"}};Ie.languages.insertBefore("c","keyword",Ye),Ie.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"},Ie.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(Le){return Le.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 Le=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:/[\[\](){};]/});Le=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:Le.keyword,variable:Le.variable,function:Le.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:Le.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:Le.punctuation}}}),le.languages.insertBefore("inside","punctuation",{expression:Le.expression,keyword:Le.keyword,variable:Le.variable,function:Le.function,escape:Le.escape,"parser-punctuation":{pattern:Le.punctuation,alias:"punctuation"}},Le.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 Le=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,De=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return Le}),Ie=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(Fe,Ve){return Fe[Ve]=Ie[Ve],Fe},{});Ie["class-name"].forEach(function(Fe){Fe.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 Le=/(?:\((?:[^()\\]|\\[\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,Le].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,Le].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,Le+/\s*/.source+Le].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=Le,Le.displayName="phpExtras",Le.aliases=[];function Le(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=Le,Le.displayName="php",Le.aliases=[];function Le(De){De.register(le),function(Ie){var Ye=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,Fe=[{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,Xe=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,qe=/[{}\[\](),:;]/;Ie.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:Fe,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:Ve,operator:Xe,punctuation:qe};var Je={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:Ie.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:Je}},{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:Je}}];Ie.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:Fe,number:Ve,operator:Xe,punctuation:qe}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),Ie.hooks.add("before-tokenize",function(st){if(/<\?/.test(st.code)){var Ct=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;Ie.languages["markup-templating"].buildPlaceholders(st,"php",Ct)}}),Ie.hooks.add("after-tokenize",function(st){Ie.languages["markup-templating"].tokenizePlaceholders(st,"php")})}(De)}},97719:function(Ge,be,de){"use strict";var le=de(53852),Le=de(53510);Ge.exports=De,De.displayName="phpdoc",De.aliases=[];function De(Ie){Ie.register(le),Ie.register(Le),function(Ye){var Fe=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;Ye.languages.phpdoc=Ye.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+Fe+"\\s+)?)\\$\\w+"),lookbehind:!0}}),Ye.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+Fe),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)}(Ie)}},63839:function(Ge,be,de){"use strict";var le=de(69435);Ge.exports=Le,Le.displayName="plsql",Le.aliases=[];function Le(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 Le=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:/[|{}[\];(),.]/};Le.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:Le},boolean:Le.boolean,variable:Le.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 Le=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],De=["on","ignoring","group_right","group_left","by","without"],Ie=["offset"],Ye=Le.concat(De,Ie);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 Le=/\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:Le}},builtin:Le,"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 Le=/(^([\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"],Ie={},Ye=0,Fe=De.length;Ye<Fe;Ye++){var Ve=De[Ye];Ve=typeof Ve=="string"?{filter:Ve,language:Ve}:Ve,le.languages[Ve.language]&&(Ie["filter-"+Ve.filter]={pattern:RegExp(Le.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",Ie)})(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 Le=[{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=Le,le.languages.puppet.string.inside["double-quoted"].inside.interpolation=Le})(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 Le=["c",{lang:"c++",alias:"cpp"},"fortran"],De=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;Le.forEach(function(Ie){var Ye=Ie;if(typeof Ie!="string"&&(Ye=Ie.alias,Ie=Ie.lang),le.languages[Ye]){var Fe={};Fe["inline-lang-"+Ye]={pattern:RegExp(De.replace("<lang>",Ie.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:le.util.clone(le.languages.pure["inline-lang"].inside)},Fe["inline-lang-"+Ye].inside.rest=le.util.clone(le.languages[Ye]),le.languages.insertBefore("pure","inline-lang",Fe)}}),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=Le,Le.displayName="purescript",Le.aliases=["purs"];function Le(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:/![sra](?=[:}]$)/,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 Le=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,De=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,Ie=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return Le}).replace(/<comment>/g,function(){return De}),Ye=0;Ye<2;Ye++)Ie=Ie.replace(/<expr>/g,function(){return Ie});Ie=Ie.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 Ie}),"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 Ie}),"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 Le(Ct,je){return Ct.replace(/<<(\d+)>>/g,function(te,ne){return"(?:"+je[+ne]+")"})}function De(Ct,je,te){return RegExp(Le(Ct,je),te||"")}function Ie(Ct,je){for(var te=0;te<je;te++)Ct=Ct.replace(/<<self>>/g,function(){return"(?:"+Ct+")"});return Ct.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 Fe(Ct){return"\\b(?:"+Ct.trim().replace(/ /g,"|")+")\\b"}var Ve=RegExp(Fe(Ye.type+" "+Ye.other)),Xe=/\b[A-Za-z_]\w*\b/.source,qe=Le(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[Xe]),Je={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,[qe]),lookbehind:!0,inside:Je},{pattern:De(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[qe]),lookbehind:!0,inside:Je}],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=Ie(Le(/\{(?:[^"{}]|<<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=Le,Le.displayName="racket",Le.aliases=["rkt"];function Le(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 Le={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]|.)/,Ie={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},Ye={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},Fe="(?:[^\\\\-]|"+De.source+")",Ve=RegExp(Fe+"-"+Fe),Xe={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":Le,"char-set":Ye,escape:De}},"special-escape":Le,"char-set":Ie,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":Xe}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:De,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":Xe}},{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 Le={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},De={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function Ie(Xe,qe){var Je={};Je["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var mt in qe)Je[mt]=qe[mt];return Je.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},Je.variable=De,Je.comment=Le,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return Xe}),"im"),alias:"section",inside:Je}}var Ye={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},Fe={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:Ie("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:Ie("Variables"),"test-cases":Ie("Test Cases",{"test-name":Fe,documentation:Ye,property:Ve}),keywords:Ie("Keywords",{"keyword-name":Fe,documentation:Ye,property:Ve}),tasks:Ie("Tasks",{"task-name":Fe,documentation:Ye,property:Ve}),comment:Le},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 Le={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("|")+")",Ie=/(?:"(?:\\.|[^"\\\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:Le,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:Le,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+Ie),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+Ie+/(?=:(?!:))/.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:Le,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:Le,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:Le,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:Le,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:Le,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 Le=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,De=0;De<2;De++)Le=Le.replace(/<self>/g,function(){return Le});Le=Le.replace(/<self>/g,function(){return/[^\s\S]/.source}),le.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+Le),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 Le=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,De=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,Ie={pattern:RegExp(Le+"[bx]"),alias:"number"},Ye={pattern:/&[a-z_]\w*/i},Fe={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},Xe=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],qe={pattern:RegExp(Le),greedy:!0},Je=/[$%@.(){}\[\];,\\]/,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":Ie,punctuation:Je,string:qe},Ct={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},je={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:Xe,function:mt,"arg-value":st["arg-value"],operator:st.operator,argument:st.arg,number:De,"numeric-constant":Ie,punctuation:Je,string:qe}},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 Le}),"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":Ie,punctuation:Je,string:qe}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:Xe,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return Le}),"im"),lookbehind:!0,alias:"language-groovy",inside:le.languages.groovy},keyword:ge,"submit-statement":ne,"global-statements":te,number:De,"numeric-constant":Ie,punctuation:Je,string:qe}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:Xe,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return Le}),"im"),lookbehind:!0,alias:"language-lua",inside:le.languages.lua},keyword:ge,"submit-statement":ne,"global-statements":te,number:De,"numeric-constant":Ie,punctuation:Je,string:qe}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:Xe,"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:Ct,altformat:je,"global-statements":te,number:De,"numeric-constant":Ie,punctuation:Je,string:qe}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return Le}),"im"),lookbehind:!0,inside:st},"macro-keyword":Fe,"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":Fe,"macro-variable":Ye,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:Je}},"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:Xe,number:De,"numeric-constant":Ie}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:st},"cas-actions":se,comment:Xe,function:mt,format:Ct,altformat:je,"numeric-constant":Ie,datetime:{pattern:RegExp(Le+"(?:dt?|t)"),alias:"number"},string:qe,step:Ve,keyword:ge,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:De,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:Je}})(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 Le=/\$[-\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:Le,operator:De}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:Le,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=Le,Le.displayName="scala",Le.aliases=[];function Le(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(Le({"<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 Le(De){for(var Ie in De)De[Ie]=De[Ie].replace(/<[\w\s]+>/g,function(Ye){return"(?:"+De[Ye].trim()+")"});return De[Ie]}})(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=Le,Le.displayName="shellSession",Le.aliases=[];function Le(De){De.register(le),function(Ie){var Ye=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");Ie.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:Ie.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},Ie.languages["sh-session"]=Ie.languages.shellsession=Ie.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=Le,Le.displayName="smarty",Le.aliases=[];function Le(De){De.register(le),function(Ie){Ie.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:Ie.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/]},Ie.languages.smarty["embedded-php"].inside.smarty.inside=Ie.languages.smarty,Ie.languages.smarty.string[0].inside.interpolation.inside.expression.inside=Ie.languages.smarty;var Ye=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,Fe=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return Ye.source}),"g");Ie.hooks.add("before-tokenize",function(Ve){var Xe="{literal}",qe="{/literal}",Je=!1;Ie.languages["markup-templating"].buildPlaceholders(Ve,"smarty",Fe,function(mt){return mt===qe&&(Je=!1),Je?!1:(mt===Xe&&(Je=!0),!0)})}),Ie.hooks.add("after-tokenize",function(Ve){Ie.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 Le=/\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 Le.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:Le,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 Le={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:Le}},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:Le}},guid:Le,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=Le,Le.displayName="soy",Le.aliases=[];function Le(De){De.register(le),function(Ie){var Ye=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,Fe=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;Ie.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:Fe,punctuation:/[\[\].?]/}},string:{pattern:Ye,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:Fe,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},Ie.hooks.add("before-tokenize",function(Ve){var Xe=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,qe="{literal}",Je="{/literal}",mt=!1;Ie.languages["markup-templating"].buildPlaceholders(Ve,"soy",Xe,function(st){return st===Je&&(mt=!1),mt?!1:(st===qe&&(mt=!0),!0)})}),Ie.hooks.add("after-tokenize",function(Ve){Ie.languages["markup-templating"].tokenizePlaceholders(Ve,"soy")})}(De)}},41186:function(Ge,be,de){"use strict";var le=de(58710);Ge.exports=Le,Le.displayName="sparql",Le.aliases=["rq"];function Le(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 Le=/\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("("+Le.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/,Le],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 Le={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},De={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},Ie={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:Le,number:De,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:Le,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:De,punctuation:/[{}()\[\];:,]/};Ie.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:Ie}},Ie.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:Ie}},le.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:Ie}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:Ie}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:Ie}},"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:Ie.interpolation}},rest:Ie}},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:Ie.interpolation,comment:Ie.comment,punctuation:/[{},]/}},func:Ie.func,string:Ie.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:Ie.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 Le={pattern:/^[;#].*/m,greedy:!0},De=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;le.languages.systemd={comment:Le,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:Le,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),Le=de(87648);Ge.exports=De,De.displayName="t4Cs",De.aliases=[];function De(Ie){Ie.register(le),Ie.register(Le),Ie.languages.t4=Ie.languages["t4-cs"]=Ie.languages["t4-templating"].createT4("csharp")}},73584:function(Ge){"use strict";Ge.exports=be,be.displayName="t4Templating",be.aliases=[];function be(de){(function(le){function Le(Ie,Ye,Fe){return{pattern:RegExp("<#"+Ie+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+Ie+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:Ye,alias:Fe}}}}function De(Ie){var Ye=le.languages[Ie],Fe="language-"+Ie;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:Le("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:Le("=",Ye,Fe),"class-feature":Le("\\+",Ye,Fe),standard:Le("",Ye,Fe)}}}}le.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:De})})(de)}},79243:function(Ge,be,de){"use strict";var le=de(73584),Le=de(55686);Ge.exports=De,De.displayName="t4Vb",De.aliases=[];function De(Ie){Ie.register(le),Ie.register(Le),Ie.languages["t4-vb"]=Ie.languages["t4-templating"].createT4("vbnet")}},31788:function(Ge,be,de){"use strict";var le=de(14409);Ge.exports=Le,Le.displayName="tap",Le.aliases=[];function Le(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 Le=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,De=/\)|\((?![^|()\n]+\))/.source;function Ie(mt,st){return RegExp(mt.replace(/<MOD>/g,function(){return"(?:"+Le+")"}).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/},Fe=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:Ie(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:Ie(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:Ye},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:Ie(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:Ie(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:Ye},punctuation:/^[*#]+/}},table:{pattern:Ie(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:Ie(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:Ye},punctuation:/\||^\./}},inline:{pattern:Ie(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:Ie(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:Ie(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:Ie(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:Ie(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:Ie(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:Ie(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:Ie(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:Ie(/(^\*\*|__|\?\?|[*_%@+\-^~])<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:Ie(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:Ie(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:Ie(/(^")<MOD>+/.source),lookbehind:!0,inside:Ye},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:Ie(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:Ie(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:Ie(/(^!)(?:<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=Fe.phrase.inside,Xe={inline:Ve.inline,link:Ve.link,image:Ve.image,footnote:Ve.footnote,acronym:Ve.acronym,mark:Ve.mark};Fe.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var qe=Ve.inline.inside;qe.bold.inside=Xe,qe.italic.inside=Xe,qe.inserted.inside=Xe,qe.deleted.inside=Xe,qe.span.inside=Xe;var Je=Ve.table.inside;Je.inline=Xe.inline,Je.link=Xe.link,Je.image=Xe.image,Je.footnote=Xe.footnote,Je.acronym=Xe.acronym,Je.mark=Xe.mark})(de)}},14693:function(Ge){"use strict";Ge.exports=be,be.displayName="toml",be.aliases=[];function be(de){(function(le){var Le=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function De(Ie){return Ie.replace(/__/g,function(){return Le})}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 Le=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;le.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+Le+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+Le+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(Le),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),Le=de(92784);Ge.exports=De,De.displayName="tsx",De.aliases=[];function De(Ie){Ie.register(le),Ie.register(Le),function(Ye){var Fe=Ye.util.clone(Ye.languages.typescript);Ye.languages.tsx=Ye.languages.extend("jsx",Fe),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}(Ie)}},69210:function(Ge,be,de){"use strict";var le=de(51478);Ge.exports=Le,Le.displayName="tt2",Le.aliases=[];function Le(De){De.register(le),function(Ie){Ie.languages.tt2=Ie.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:/[[\]{},()]/}),Ie.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),Ie.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),Ie.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 Ie.languages.tt2.string,Ie.hooks.add("before-tokenize",function(Ye){var Fe=/\[%[\s\S]+?%\]/g;Ie.languages["markup-templating"].buildPlaceholders(Ye,"tt2",Fe)}),Ie.hooks.add("after-tokenize",function(Ye){Ie.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=Le,Le.displayName="twig",Le.aliases=[];function Le(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(Ie){if(Ie.language==="twig"){var Ye=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;De.languages["markup-templating"].buildPlaceholders(Ie,"twig",Ye)}}),De.hooks.add("after-tokenize",function(Ie){De.languages["markup-templating"].tokenizePlaceholders(Ie,"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 Le=le.languages.extend("typescript",{});delete Le["class-name"],le.languages.typescript["class-name"].inside=Le,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:Le}}}}),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 Le=/\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:Le}},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:Le,number:/^\d+$/,punctuation:/[,|:]/}},keyword:Le,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 Le={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":Le}}}},"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/}),Le.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=Le,Le.displayName="vbnet",Le.aliases=[];function Le(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 Le={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:/[(){}[\]:,.]/};Le.variable.inside={string:Le.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:Le.number,boolean:Le.boolean,punctuation:Le.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:Le}},variable:Le.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 Le=/(?:\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+Le+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,Ie={};le.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+Le),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:Ie},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+De),lookbehind:!0,inside:Ie},{pattern:RegExp("("+/\bcallback\s+/.source+Le+/\s*=\s*/.source+")"+De),lookbehind:!0,inside:Ie},{pattern:RegExp(/(\btypedef\b\s*)/.source+De),lookbehind:!0,inside:Ie},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+Le),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+Le),lookbehind:!0},RegExp(Le+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+Le),lookbehind:!0},{pattern:RegExp(De+"(?="+/\s*(?:\.{3}\s*)?/.source+Le+/\s*[(),;=]/.source+")"),inside:Ie}],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"&&(Ie[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 Le(Fe,Ve){le.languages[Fe]&&le.languages.insertBefore(Fe,"comment",{"doc-comment":Ve})}var De=le.languages.markup.tag,Ie={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:De}},Ye={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:De}};Le("csharp",Ie),Le("fsharp",Ie),Le("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 Le=function(Ie){return typeof Ie=="string"?Ie:typeof Ie.content=="string"?Ie.content:Ie.content.map(Le).join("")},De=function(Ie){for(var Ye=[],Fe=0;Fe<Ie.length;Fe++){var Ve=Ie[Fe],Xe=!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===Le(Ve.content[0].content[1])&&Ye.pop():Ve.content[Ve.content.length-1].content==="/>"||Ye.push({tagName:Le(Ve.content[0].content[1]),openedBraces:0}):Ye.length>0&&Ve.type==="punctuation"&&Ve.content==="{"&&(!Ie[Fe+1]||Ie[Fe+1].type!=="punctuation"||Ie[Fe+1].content!=="{")&&(!Ie[Fe-1]||Ie[Fe-1].type!=="plain-text"||Ie[Fe-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"&&(Xe=!0)),(Xe||typeof Ve=="string")&&Ye.length>0&&Ye[Ye.length-1].openedBraces===0){var qe=Le(Ve);Fe<Ie.length-1&&(typeof Ie[Fe+1]=="string"||Ie[Fe+1].type==="plain-text")&&(qe+=Le(Ie[Fe+1]),Ie.splice(Fe+1,1)),Fe>0&&(typeof Ie[Fe-1]=="string"||Ie[Fe-1].type==="plain-text")&&(qe=Le(Ie[Fe-1])+qe,Ie.splice(Fe-1,1),Fe--),/^\s+$/.test(qe)?Ie[Fe]=qe:Ie[Fe]=new le.Token("plain-text",qe,null,qe)}Ve.content&&typeof Ve.content!="string"&&De(Ve.content)}};le.hooks.add("after-tokenize",function(Ie){Ie.language==="xquery"&&De(Ie.tokens)})})(de)}},14409:function(Ge){"use strict";Ge.exports=be,be.displayName="yaml",be.aliases=["yml"];function be(de){(function(le){var Le=/[*&][^\s[\]{},]+/,De=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,Ie="(?:"+De.source+"(?:[ ]+"+Le.source+")?|"+Le.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}),Fe=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function Ve(Xe,qe){qe=(qe||"").replace(/m/g,"")+"m";var Je=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return Ie}).replace(/<<value>>/g,function(){return Xe});return RegExp(Je,qe)}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 Ie})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return Ie}).replace(/<<key>>/g,function(){return"(?:"+Ye+"|"+Fe+")"})),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(Fe),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:Le,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 Le(qe){return function(){return qe}}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/,Ie="\\b(?!"+De.source+")(?!\\d)\\w+\\b",Ye=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,Fe=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,Le(Ye)),Ve=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,Le(Ie)),Xe="(?!\\s)(?:!?\\s*(?:"+Fe+"\\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,Le(Xe)).replace(/<ALIGN>/g,Le(Ye))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,Le(Xe)).replace(/<ALIGN>/g,Le(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(qe){qe.inside===null&&(qe.inside=le.languages.zig)})})(de)}},92848:function(Ge,be){"use strict";var de;be.Q=Ie,de=Ye;var le="",Le=" ",De=/[ \t\n\r\f]+/g;function Ie(Fe){var Ve=String(Fe||le).trim();return Ve===le?[]:Ve.split(De)}function Ye(Fe){return Fe.join(Le).trim()}},77179:function(Ge,be,de){"use strict";var le=this&&this.__importDefault||function(Ye){return Ye&&Ye.__esModule?Ye:{default:Ye}},Le=le(de(58970)),De=de(39159);function Ie(Ye,Fe){var Ve={};return!Ye||typeof Ye!="string"||(0,Le.default)(Ye,function(Xe,qe){Xe&&qe&&(Ve[(0,De.camelCase)(Xe,Fe)]=qe)}),Ve}Ie.default=Ie,Ge.exports=Ie},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,Le=/^[^-]+$/,De=/^-(webkit|moz|ms|o|khtml)-/,Ie=/^-(ms)-/,Ye=function(qe){return!qe||Le.test(qe)||de.test(qe)},Fe=function(qe,Je){return Je.toUpperCase()},Ve=function(qe,Je){return"".concat(Je,"-")},Xe=function(qe,Je){return Je===void 0&&(Je={}),Ye(qe)?qe:(qe=qe.toLowerCase(),Je.reactCompat?qe=qe.replace(Ie,Ve):qe=qe.replace(De,Ve),qe.replace(le,Fe))};be.camelCase=Xe},58970:function(Ge,be,de){"use strict";var le=this&&this.__importDefault||function(Ie){return Ie&&Ie.__esModule?Ie:{default:Ie}};Object.defineProperty(be,"__esModule",{value:!0}),be.default=De;var Le=le(de(93193));function De(Ie,Ye){var Fe=null;if(!Ie||typeof Ie!="string")return Fe;var Ve=(0,Le.default)(Ie),Xe=typeof Ye=="function";return Ve.forEach(function(qe){if(qe.type==="declaration"){var Je=qe.property,mt=qe.value;Xe?Ye(Je,mt,qe):mt&&(Fe=Fe||{},Fe[Je]=mt)}}),Fe}},97270:function(Ge){Ge.exports=de;var be=Object.prototype.hasOwnProperty;function de(){for(var le={},Le=0;Le<arguments.length;Le++){var De=arguments[Le];for(var Ie in De)be.call(De,Ie)&&(le[Ie]=De[Ie])}return le}},90034:function(Ge,be,de){var le={"./doc.png":31078,"./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 Le(Ie){var Ye=De(Ie);return de(Ye)}function De(Ie){if(!de.o(le,Ie)){var Ye=new Error("Cannot find module '"+Ie+"'");throw Ye.code="MODULE_NOT_FOUND",Ye}return le[Ie]}Le.keys=function(){return Object.keys(le)},Le.resolve=De,Ge.exports=Le,Le.id=90034},93314:function(Ge){"use strict";Ge.exports="data:image/png;base64,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"},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,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAIABJREFUeF69nQm0ZHdd5z//u9/aq97W/XpNpwOZhIR9EaOyKQgqorhwHJ0onkEcZwZQZ86o4Bk548jgiDqKozLHOSoqi0hggIAoCdCEQCAJ3dk6vaXXt7/a6+535ve/Vd2vu193+gWYSirdebXce7/3t35/y1Nc4+M3D+VO+0jyUsh/SMFNSjFv2PZ8GieVPEvPf4tSihxQ1/i9/z/eluc5qBwMC8u0SJMYslyfJ9BXcBaVn83hYTA/1thvfe4/P0NF13JuT3qdv/qJfFsche/IlfoplVNThoFhW6RxTJ5lFx9j8m1KzvdJv/r8Z/VbsxylPyL/yZGfyTXL/8r1F6/IRRv6dbXJLbrajdNwCY7y9crAtG2yONHXcB7KyRkp1VV5/n7bcX/r3a9RC1cD8opX+YefzN1jcfTr5Lwth7K80TBt8jwjS5OLvjNXeQHY+Nv0SY4BPA/EJWehX84FiAIO/ffx58d4keVyaQqRanmtAFL+kmFqSS/eOQHzigDKnSj+LR7yd5VjGjZKGWRpXLw2uVPjtymlBih+b5/t/Jd/92oVbgbkpgCK1EVx9A+Qv6g4OYVh2aSxSPX509ggQWMAjbHUbJQOffKXHiZHZLf47ky/PoFCv1WBbeSULPBJcPIEskx/JjYshriMUoMkzbRUikyeR79A5wpCU0A8kcaJXJu2o9W6eGUj0ueR/LJjO6/bTBovO9Kv3BHeGmf5J1DslIOZllPcoUvVdSIMcgG5oe+oXIRWuyue/vjFDe/JlYEyFLbKcfMIO4uomCnz5Zy406N9ZoH2uTOEvQ6maeKWK3hT05izOxg0trOOT5wUQG7JbGyQNjkdQ0yTaZMmYyG5/DpOG0q9+j0/7B7ceHkXAaglLwq/qgy1U8AwTZsk2lRyC00Yq66o2Fgzrug89L3VKjt2MobCNAzsYICxfgpj6RRZZxkVDVF5iikG3/FwylUs2yMY9llffIKgu4Jr+3jlGrW5XZT2PYPO1G5Wc5s8KyTsoovaoAEbzclEZS81MabjaoHRTuYSlQZOO477/I2SeP5YYvOORtFdivxFhmHJLSFL4s2+pLA71wBaoe7qou/I5U7Ls7tO/sQhwuMHidZOQ9TDUCm2CbZtYFsOtmVjOy6mW8EpT2FVphj2O7TPPIbKE2y3iltqUd+xn2j3M1iqbSfJJm5m80hAq+jEySkB6XKrJCqtTUaWXGoW5cK/fL3jvGRiE88D+LY7wt/KMt5uWJa+4ElossldKCRY27vLbVthY+Q4Y8M9UQVD7KiJ6g8IH3+A4aP3EK0cJ4/7OJbCL1eo1hqUqnU8x8MwDZRcQBLop8oylOmiSjMkpk9v8QhZ1Me0K9huDac6S7z/hazN7dPOR+7vNam0gFgY5PPmXTstwywcjAjRJXZfGeqdv/9a9x1jKwaiukkSH1GmVc7TVHva8w7rcjE+b++MTQAs/Ork80pLsjJNjNGQ8NhD9A5+keHZR8jiLqVKldbsLuoz8zhuFRswVYplZNim0hJo2pZ2ClkUEA1XiYZtUuWR2VWG62fI4iG2W0aZPpk9TfDs19BvzWFkaaHKV4sIzrvtMUSTcGmsXRKyCZACoojiRBbEO9u2s19UWR/jLXcE77Vs9806trsEsM280kR9N/MVRdCqNGhyxLTXJjj+ML1H76V/+hGyqEOtOcXM/H7K1SmIQ5LRKrlIEzG2gGeZWJalAXQdG8cpYXsVrcpxCoPOIkkckCiXcLCMmee4Xon+EJJdL6L/nFdoiTXGl3zBzm0e5F96jRuvT/4uMWMSRWPBKrROwZ/8/uu8X1SSYQxOsZxEce1yhRfgJ7dlbM9EqIog7ny+Ie9JFTiWgaFMsmBEsHiW7tFD9I9+neHScbI8otGcYXbHPjy/QjJYI+4vkydDLCPXnxXg5CneVhyMqdVIYZgKy5DXbFyvQu5U6fUHpNGANEuJgi4Vv0R/lBG72zBe/HpGlSZxbhaqL+o8CTLHd32z+LS4+Ze5IS0QloAYRhfUWaluY78zo/7jp/JXhlF852bgFbHlBn8+CZTPi15xR20zZ39lxBOPn2Xh6AnWTx2mc/YYadDG80ya03M0GrMapLC3TjRcgSTA1MCZeI6J7zi4joNjW9imiWWaKFM8ahGdZXlGmkIcx9iWheVW6Y8i8jQmioeUXItRkBPnHvu+4wdRzVm61RaLsUOQFOon5kVixonl3jzIv0I4rqMSk1Syl4kyK/NV6pc/lvxxmqW/eMXY7UIeVRx6HOgViUQBoO8owkcf5mt3f564t4BrJdSqPlXfxTUVxCPCYYc0HqDSSHtbS0usiSuqaps6sxCjbYpzUuKptdhoj22KPTQttE1SiiiKSJIU03YZhgmWAZ5rMgpjksxn97Nejl9t4Vcr4NcYKZtObrOOQw+zUMGJYm3M3DcN+i8gI+elzEl0ouF4r3rLR6PPQf6SawLwEs9WnEOO7xgk585w+mtfIe4vYsQ9HZbkYZ8sCfVTwo48iwvPKjclzzB0OmVgmUoDaBoSiOdaEv1yCc/zcB0XS1AFkiQhiBOSOCHLUyINWE6mFFP1Gv3RCIwy0zueieU62LaL65fwylXcSh3Dr9K2a5yyKkQYhY28yBGedxNXgmPsnRVpmohu3KXe+tHwsRyetlUAi6RHUXHAOvM499/9BdYWn8CI1snTIWYea09YBKXyTDRoeZ7qg4unz/OENC0if9+yqZQr1Ko1mrUGzVqNcsnT0ifSFsYRaaqVmeFwRLvXI44T4iQmzjIa1TpxkmobWavP4XsOnlvBsH1M28O0PCyvqiUzrW/nTG07A8vCuIQPuSJyG16QtDaXa8jywyKBPcgrVwRwLOIbI74NGSW2a9E+eIgH/+ljhP0l8ngAyQjigDyPIItQcjCdDoakaazTJQFOJE+Amm5M0ajWcEViPB/bNOgOeqy117SzGEXyOQlLFJZlUvZ8PNclyTPiRKQxwbZcXMdj2/QsrUYTx7IxTEfTV5JVyE0QDx7nDk55jtKeW1nbdyuxZRXWcQvskWBlOQ5JFPfVWz4aXiV7vTqspmWRrK9w4kt3cerwQZKgTxQNiAYrZNEA0pA8HYFO1GPtbUWNfdth2/Q0080p7Vkl8BXzKp622++ytLJCEI20OouAiMSmWUIm5IE2jeKRHXzPxTBNoiRCzqVVa3Ld9vlCev2KNvpRmhFH4mgSLbGjKCFOLUx3hsqt30t883O1NugEcGIYrwnMIrx5CgAWPsiwTcKTJ3j4c3eyePowfrnM1Oz1DJYeJ20fxTZSSCPyONAASBgjjEetXGGuOYvjOaSZXJxYI0iyjOW1ZfrDvrZ58plRONTgSI4rkufajjYbSRKTphm27eC7HrlSpHnGfGua6+Z30KzVScf+VodEShHGCcPRiP5gyChKyfBxG0+j/prbUa0pHe5c5J6vQZe1U9uaBI4tn2kyOHGMR/75EyyfPcaOHTvZd+OzWD/+ANnqUchC4mjIKBjQ7XcYBX19OVPNaa2uEoaIIxEgJHwS+7a0tqwlzDBhFAy1pE3VWzSrVS2FBiaOqE2aEkWBVnH5jEiO/FykeLpWY6re1Ia+Vm1Qr1YwlUEQBgyCgDCIiOKUOJEbZoBRZ/q730D5hS8FsdWXUxFPCuMWAdS5FvHKGo986g7OPvEQe/bt4obrruPUNw7oEEYkRgAY9NsMhm0Mpdg+NUu91tL2SCFqWHgxUZ0wDFnvtlFavRP9+Xq1yfbpWWrlKqZl6rzcQKQsLYjUNGUwCllpr3H83InCg5u2dhyGsqhValoye6M+/cGAIBKbm2nwojjDdX1mWvP4Tp36jS9j24/cruNMechxtvLYEoAiNaZlcOYLB3j4S59hbr7BzrlpTh+8hzDo6DsdjXr0Bqva68605pibmsF3XQKhxcT161hLmA4IooBgNNS5c0aqTYNIzlSlrkOYSqV0PlYUSXMdU9uzhZV1Ftsi2SGdnjiaZSwhRYWeHzOyksXMNuRGzGiVtiybMIpYbnd4/PQZuiOb7dO7mX76bez+yTedZxKulqZuBuw1AzihgQgCDn7kI6TBCnNTZU4/+nVGwzWCYEAU9jSQlVKVHdt2UfY8fNvUQKVRRJbFWiJF8iQYDqMR5CnKBMsU4qBEUwhTx6HeqOE7lva4YhNLnkdvMODYmUVOLiyy3m5radUXnA0xjIQkzan6VWYaLWaaLeq1OvVKjZLv6yA8lXAoilgfDDndLbEUlWntu5k9P/R6tF6P2fCteOQtASgnES2vcvxz/4irepw5+gD97iph0CMJ26TJiGZznpnWDJ5t4pqgspRAHEkU6oxBgxeH+pkkkQ6ay77HKDGplSq4lkmtVqbsyc99fNfS4EkYcnpxhUeOHeHs0iK2WEUDYqkIIClhqp1KyfU1sSB/VoTtqTeZbtbxfU979TTLdTgzjDxOBbMYL3gFtT07yZOisnihsHVtinyNABbEY24aGJ0ep+++kxOP3EO3s6SlLgk6JFGf6bl9VKs1fDPXFL1j5EWgG4dYmr1OCIOAKI0IwqEOZ6aaDXqjBNurU/VsbfPqvnhXU0uOqL9tKVa7Pe4/eIhziwtaUBzLwjMM4hwCCdhz4e0yHNuhXKpQrwhwU8xOtXRYI15fnNRwKAy7qUucSd4kecGPEmzfjUouFMq2osbXCGBxl8UJrD9wLwf/8R9odxZIwyFx2CUcrtCa2Uu5Usc1M83nuToskEwk1WpqpBFRONQetx/08Gyb+Zk5RmHIKK/QqtWxDaXJB0fFlCWPdmwtkRKiPHrkcU4cO0bNKQJoQxlYSjHKUwJJDxWkGToe9FyfeqXO3NQUM60pGrUqpmloKe4NhgwGAY7rYRo+avom8pf9SzKh38TBjf+5Nvnj2sIYzbjYJr2HH+b+Oz9MZ32BNBG1HNJrn6BSbdFo7cDKUxwzQ+WRJguED9DhQTIkDEfaFvaGPW3j5me2Y5k5i+0B1dZeaq6liQPXiLBVjOc6WsrEa49GQ448fEjXoj3RW01wFKXOQZbSjiOUsDiWS56bBKnQa0o7kZv37WW22dBhThTHDIYB/cGIOE11qmeZDfxXvBHz+psl2R6r8bV74ieVQLmzwhQPjx3lwc9+gnZ7UZMDwgwP2qd0uja340ZJF3DNHJMEg0wTA3kakoUDwnDAIBgxHPWolcrMTm3XzmW9t0JAlemZXbiahckx046WYMmNBbwsy7DXFrCXF3WoIaG0EKi5Ia/CapLxSBCSuY724I5bwbRsOqMRS52uBvvZNz6NPXNzRKE4rphuf8QwinThyrcrlJ/xKuqv+imd3xbF928lgIbCGo04fuBels89QX/9HN3l4wSDNYnMqDdnNfGZJzElIRaMVMdpwhiLcwmDAaNRnzDsM1tvMT29Q6uT1EIWVlfwW9drIkDXd/MIM17TN0CoLvkeM0v4me+8lf0zNZ0tSDpoS4Yj2Y1hsHx6iQ99+kvc0x9ilCuU6tPU6hJEVxkGEScWznFyaYmn7drJ7pltGsBRGNEbBqAsXLtEef5Wtv/Ur6IkL9b1lG8hgOPwnDzNSAYDvvahv2T13FGazSlGg/WCz8sTXEs6FkICifgFsKBb2Lygr73zdGsb22bmyXKFkQ7p91ZZ7g2ZmX8GniMJPaikjxm3tbcUslWor92NKr/5yz9PrVnDcl0cz0VJ6U5sllxov88jf/sR/uL9H+feKKTSaFKemqPZmmK61SIMI86trHDw6GGm6nWalaYOqIeSHycKx/KpzD6NPT/7G5ie/20CUC7ONAjX23ztg39Fr7PMC178MuL+Gr3FE4yG63R76wz6AlyHNByQxQFR0CEnpTW9h6nGjFbxJArIwjYrnRVGmUVr9um6lKmzgLCtQRSezlAZRhzxyuffwlvf+kYdx5mujZKSoyVeVJ6GZlqCY8f4ynv+nPd/5SEeyEbavja27WJqeopKuaSdx3qvyzceP4xhOLiWR5LBIM6xDZfazlvY/7O/rnt+rtR3cyWn8qQ28PwHTYPR4jIPfORv9N2//unPZNDrs3jyIfrtBV0xS0ZdzTpLrULAk8J4fXovVb9C2RZnHJJHAwb9NTqDNoZVwq3v1CyMUilm2EWlQx2mmOLJ44B/f/tP8EM/9mqQDjDbFjc7lr5xH4kUwAdDzn3q03z+rz7Fh84ucCwbcf323TTmd9Fo1PT3SxSxst7h+MIiUSoVv7KOPVWmmHnuq9j3+jfqTGmr+fA1Ayj1ibDd5Rt//0Fmtm/XAWlnfZ3RsKNtYtRf1o5FV9hIMd061eYOXePwjQTfyMh0BW6N3rBLFgwxzRJReVoXkow8xRLpy4quMokjZ82Ud//2f+KGm68v7qMlAAoJIOo7BlAcchwTnTjBofd9gLvvO8Ida4sMrJxdszspz8zqbCbJU5IkZ7U34ORqj0p5lkz5ur/mX7zhrUzd8iyyWGi3TYpKV4lprhlA/c1pyrHP/hMzzQYnjh9h0F+nu3qaUWeRUW9R95YYhonp1zFNC8exsPJYNwjZkuvGA0b9VcIooBQOSKwKXa+OK46KDDsPdFuHMDdOFvH8vdt51++9A9cbS55W3TGA8qd+SO00g16f5c8f4Ct//Sk+v9ThkyunNElbrTYxylWdpej6ueFwrpMxUE0qlRaVXfu4+Q1v1CSCZOS6qH5NfGBx9GsHUE7UVKRLq/QeP8LJJ44w6C6xfO4wQWdR2/NyY54oltIfOKahWRIrG2GpDDuLycJ1RqMeKo6Yikf0nRprVhnHQL/HpeiQslVGORzyCz/9I/zY7T+qCVnEQ8pT2z55FkUnDaD0xMQR8dkFjvztHdx74GE+0+7w5fY59jbnMJ0KkeVgOD6O7YEzzdLQorXrRp72+jfgNmo6ldPgfVvZGAEpjjj2hQOsra2wcPoR2ssniAZLVBo7NccnqZuwxLZtYwj7ouu+YMV9bRelt7AcD5lVOatmmWVcbHndSPHEDirws5jraz7ves87mJltFiCJ9IkKS9+OeGB546QJYqwdDEd0HzzIg+//JAdOrPHRpZMshCN2NrZheTUiyTzsMrZTIjNrzD3nFez8/tdo2zwpLn1bAZQU0u30OHnfAywvnebUsQforT6hCU23PK3VGNPVgawtzZhxX6dwhvT3hV0d5thJzFQeMuXYnM5tljIbR+V4Zqa9tJtnVMIhb/q51/PDb/hBEMZGOw4DxAOL9OkQRmzgWIXHTZciqVm7w9l//iL3fOxePrvc5h8XHic3JD+eolJq4Xh1TZ3Zld3s++E3UbvpBogKIuF8o+i15nFbU+EiB3e6A5YPPcbDh+5l4dRBsqBHtbWDcLhO0F/B9huYroch5cawgyVZg5Q405H+eyuLaFjQcF0eDqCdm7gqpWzlOstwR0Ne/qKb+dVf+0Wt2jqw1SI8VmEtfaLKk1xRwBwDKSmekKcLizzy8bu464uP8aEjhziTjHDcBtVSk2q1RYaFVbuO/T/9FpyZFiRFR89TeWzBBkJu5PjDiGP33MtDDx5gsH6KSn1ax3aj9lldwrTLDSzbJ41HEA0w8lhLn0RYWdDBTfq0/DJ1r8JjiU2ag69SKmaGGUXcsmeat7/9zczNNHQXgKiU5MhKQhjPKSRPuMVQygYRsabqQx2DDto9Omtt1lbbBKOASmTxzwcP8/HDj+CUm5h2lXKpoUuc7sxN7P/pX8KqlAsb+hQfWwJQQpnszBKHDnyRlYVjuiwpbb/99bPEw442wla5YH/jUQcjCTWIZhaQxxErq8dIkkCzLtX6Dtz6Huw8pEyCl0Xc2HR526/czu59O0kTyanHzfXiM+KY9pHDHH30KI+fPMdab0gvSgiSmGGQ0A9inaZFaU4orEuSaiLh+573LN71wTvoKw/l1DCMCo7j0dz/Xez9ydu1dG/F616K85YAFGY4ObvEsQe/QTDsMui16a4vEg67pMM18jTAq89p75j0V3VtWMU9nDxjynUIww5xHDCIApLKdfimRUk6njMhHfq8fJvLm97yRryZaS1ok/qEcISr993Hh/7i/TzQS1hLQKyWFKfKjku9VKJZrVCrlDRx6rq2zir6631uvXk/H/jCV3locYDhVolVGVt57P7uH2fbq35A59RbdRwbQdwSgDqWTTOCU2c4c+wYa6urBIMeYX+F7rlH9ElXp/ZqmivoSovHECMccPPu67l5x17drSDx3kK3x2MrbZp2jpUFLLeXiEYdbqmY/PzP/RitXTPjLq3xSIMyOPHFA/z9Rz7N0C3TqDaYmxaytEmrWaferFCqSReri+05uMIlVkpFz3MQ8bvv+zs+d/AkbrnJMM7xvRn2/fhbqT7jlvPB8+b9rE+u11sGUMdK0lK20mZw5hznjh9l4YmD9NeeoNLcTqkxz2D1LHFvmXy0zo27ruO5+27ETKXVQ5hppTuvxFNLgUqK5BKmmNGIphGxY2eJ5oyDX7GxHEursYQ+UadLb2FVOwDpOBB2vGiDk4p8hulYuL6vgROyQQJnp1ymPNXkj/7kr/j7z9xHVTq21nv4Mzez/9/+Fla59E3Zvy0G0hfuhnROSedoeuos93/m0ywfuQevMU1r1y1EQcDauePQX+LmPXu4dc8++gtHOX706wzCPkmW6BaOuant7Nl9I7Xmdi1tvgkVocesgHozo9IUQCxMAVhKoOPOAuH0kjAlCSIWT57kkWPHOLu0pMsF8606N+7fwzNf8l34M7PYjoc/PcMHPngH7/u7z1BuzPC8HTPsuO0HOHzTa+lLZ9dTdb9jOLYsgRMYfVuxr7fOgU//M9X14yxtvwmjMsvqmZO4aYeb9s2zzS9z9huf52uH7mLqhmcTJClf+vIBbXMkN95VL/OS57+EXdc9k5LMhaiMhhHQrCRUpxSlso2tK1FCRAjHGOuyZjwMuf/Al/n7rx7mLHVe/oMvZXamzGzJYuWxR0hPH+F1P/GjzOzdj9Nqceen/ok/+LOPUKu1+M23/RQ3PWM3R5NZ/vzsbkaJKpjzp/jYMoByrEQZvMAa8r0P30/36DGWatP8aSfn+OoK5ur93H77L5FFGf0zJ/nsB97NzG0/yPXPfSmf+/y9nHviYRYe/ihKWXilfewqw2te9lq2ze6imic0jJipSkxjCio1E8cVPlwAzDSA0mR0/KFH+dNPHuKEfR2LJw/wyh+4jWc+93tZWVjkrb/yk3z4Xb9Dc/kUr/rZN0Klwhfv+hL/7fffrxuPfuM7bma32YcX3srHpl7Np1encJ5Ki9ZTlUBplUgN+MnhGZ55952kmU23Ps8fdGM+e+oEtfX7+IVf+s8Me32SYcDig3fjvviV5G6Ju+4/yeF7P8Tyg3+LMiyqjVvY1trNc/ZO8eznvJQaOS0rZbaSMD2NVmPHk7qI8BjC5iREoyH3f/0hDoS3cNdXH+D41/+3zr9veMEbef7zX8DvvOOV5OvLZCcfx29Og+1y3z1f57ff9T5uvG4vv/H6l1BaXQI35fCzXst712/SNELxuEJ36lWkcwsSWHy5roZZ8K8WH2PfvXcTVrYT+A0+2A3465NP0Ow+wJve/HYG7Q6x1Co6qwymp8lac3z8U3dz/32fIz32DzqnrV/3fbxw9152ehH7nvZcZsoVWnbGtmrC7IxBVQD0RQKF7ZbSZU5biuqRwRFjP3/9uZM89Nn36Pa2W77vV/meW2Z5888+j2zpDNawA5nknj7fuO9B3vnO9/KK257Hm27/fljrwNknWHrai/nd/vOJzvcVfVsBLG6DdBaI9/yZxcfYf9+XGFW303eqfL0/4t3HT9AMHuUX3vQf6K92iUfSK5gSDNbpb9vBqaU1PnbXfQyCNq5ls7fq8errPIKlRVrzT2d+2w4tgXOVnNkZRW3Kwiw7RSuI7g/MaJ9doJs65K15Pv6Iy1JW1mRFOR7wY99dYWcdVGdF98rolgfb4+H7H+K/vvOP+DevewUv+t7nFvTXwhkWtt/Kf+89V7PTG8ZEtmQNtyCBxfcKRZUYJj88OMOL7r2bgTvFml2lu7LC75x8glAt8Ev/+m30lzvEw77mEKUIFA+WCByTc+vrnF7t0PLh+bs8ttVs0v6A2N4GbhNf5Ux5iulpg8qMjao6+iboaRjdnhERrKxpYqGfOZxuG2S5wXUzBs2StHmkmI5XsDY6xClx8OsP8Xfv+XN+7XUvpfycG0BqH501vlF9Dv+rfYPu2Z6MoG0JvS2TCVoCJQswuNkI+PH7v0AyUCzbNdTSInf21vjHwQne9gtvpb/YJhv0MJJY13n9fEQp7+J7MWU3xvcMTMfQ00u5YRPENqPQxsgtSoZiqgHunAtlr6DaDeEjJT2xod+DQb/gCUXr9M8NzQQh4E14QyFGzRKHDx1m5b6v8OKb9sL2KfA83Xb8gfCFfGHYxFEyM6yjuq3itxVCdfLdUvYz9HjWTy8eZv7IKVZoMFxvk1oxn/UinveKlxEstVH9nk7TPCPENyM8K8R1YjwnxXYMLNvUAMqJJ6m0vFlkiYETK+o1MGecAkCRPmEjdLwhYY2pCQX9HPe0aIZG+EL5vmKEAD28krukwwTz7GOaTWK6pf9sp1V+d+UW+rk0mwuA8t6tg7hlFdb1WyUNuwbPMoa8+vAjDNeg3Uswem2SPXWC257FcGkdNejg5wEVO6TqJnheiufkujakuVHNKhdTkaKGaWpK+owZZFSrCqNlQ9nVmBVSVaR2xTj7GMyJ5EjyrEGQ7kndQTkG0IdhAuvHoF4GyT5I+eTyPj7Zn8E1ion1PNu69D2lTGRyGJ3SmYrXBsvsffwc7U5Gvx+hnBj1mufQWxuium0q+YCqE1LxUspeiuvmWJIDS91X4i8lRcxibDpKZRBHAEyo1RWqOaawxEvoWrBVACcSqSdndDtD4SwEwDwdgxcXjiKVcTNJ11LIVqQjCcycc/06f3huP4FMjY4HrJ8qo7VlCdSeeNyXIozIlJ3xI+uLGKfbdMOMqO7hPns3/bWAbG0dPxtQt0dU3JQFioR4AAAMqklEQVSyLwBKB5U0KgmA0qJhkBuWvt44NhisppSyVGci1O0COJE86ZVz/EKNLwrbxk19cmJiK8UuigTKyUkYIwMIZghmTzd9xrHDny3cyKOxr5nwYob5wtDQVo3glgE87+6VdDIZuhPmBivh5e0l0pUBIwk7rp8hDBTB0hpOPKBmjKg6CWUvwXdTbDdHatiGmWtSIDdM0kwxGir65xKabkZ1WkFDJNAupEkKJ6VSQelfMMcX7JZImawk0OBJoUmAlvfWwBCx7pDFNh9euoEvBE0caYKfZBMyDToeCN+qI9kygOcPOmlGVMKIK66zE74z6OL0A6LZCrFTon9uHTXsUSakakdUHPG+CZ6bYdlCSBQeVLrspel7bSVjtGAw7cU0axFWPYeaXxxS1K9WBse5kDRoNRZ1FvHdYPtEQqWJPBfPIwCuMUhyPrZ6HfcEdWzz4uka3fv4FEnpawbw4hj9QnvZpA8nyaFu5TzbCNlhp+R+mc7ZDkm3g50ElI2IqhNRdmSaKNE4iF/QLLcyCEM4e07Yf5e6dHGZI+peH6+S6ejEmGuhdkus6BaAiR6L4ZI+RO0wZKxCfqZ9RGEfc4c0b3Kol/OZwRSncqkAfuvAe0pOpHB6xdzj+dL2eEClWP0ATTvje6ZM0qUBo/U2+UhYZ1kmIQDGlNwYW+yg9sS6pkOvn3N2WTHsWahTj1MtV9gz5eOtfA0nXqH5A6/CvGH3hUK6AKcBHD81eGMPrdVXpM/lULCD961WQY4nirpB0mRZhjRvPkXhK6DY2pzIBfOjgwgdOhRbgTaehPQt3zan2B6kdJbaJH0ppod4RJSsEN8WTjDDsiSmzAnTnHYvZ6ktkqiwk4haGrHL6TO7M6F+/Szu7LQUj8eSlhdSp3VvfE7SI6MBlFUBkp0IGVviw91dfD6Q0uklo7ta/Qvb9808njKAGn0J9HUgIJuGLpyI2PAdFbitarB2tkfQ65CNRtgSVKsIz4yw7Uz3v0hfcxCnrA+hO5QWt5yqitleDtkxb9Ha3cCv+zp41xKWZuRJUgw/y4IJqyBdi6lzeY88ZZDHZJA1+KP17cg4jnHpJL6M6l76M93HvbVg+psCUA4l9JbuoN4AoLaQCl66zcRvh3TWuiTDHnkUYGcBjhHhGuK/U61CQQzDWDIRWbaTsb2as31W0Zzy8csOpm0WSVaakyUFsRosLet+RW/bHI7nF8OruTRlWuSZiZk73Bts44ND6c66IH1FCVmNtyJ9M7JXfPabBnAihZm62DiLSdpRU7y4BGuLfYa9LqmMcMUBtgqw84hMZkuihNQta0fimIqGB3O1jNmmolqT2ZFCeqR3RWj9NAiJ19tEC+dQlTLent24pTJKSbhjkIn0pRZB2uB9g22czg2dBRamu+h9EVrsm1Xd89HIU7WBE2cy6SnWAzSX2BNR5e+YNZgNE9ZWOoSDHmkwwkpH2IzIeiusHz1JXN6BW67hJSMq+YgmQ1rmgJoT4aQBVhToopFVLWG2mhg757CbdT3+L5NJhjQOYZKlNllqoRKfu8I57oyr2kxsjPe06dOm85uzfd8aACd3VpIxPbJfJHp6FHs8diCM/MtmDLLVEZ31LpFQXNEAJ5dnl6DbppfUMalS6fQot5eoD5dp0KZZyqhMVXGv34k9P41ZL6FaNfBt8iDSjHeqnYlIneTSNnnicjxq8TfRDNF4An4jgEXAvLnqbp1O1Sp89YHryw51hWViugVj3B42WfEgOb+EKNtK8B1Vg+5in363QzLqYSZ9fNXHNmPp6SfPHdxUUZfemXxIzRxQ8cGtutglByXMdMnDcN0idpTQL0k1gFkiu11sssRiLarxd+F2zhk21kYp0x63WHQ20R4hELbQT345FEr1nnTk/9oAHJ+T9PucHzgbWxkBMYN9NcUtds76YodhrwNBDzsf4luB3vphSTQk5GsYUEpH+CrAtxJcX+FVfNxaBbvq6wEZpSc4BcSMNJb5YYM0shhEFT4SzHPY8C9S3UItCtv3rXwo0CP/V186MVHJa2qAEKpL/OF4kdwG+yMg3thQ3EDC2uI6Yb+DigcFULZwhpnuZpX2N+EQXTPR1Jfnm7glD6fk6K4DWSQhDedi+9Ik1wBGkcMg8LkznOdBQ+zeBYem3Ya895Ig+lsDpJKlE9Ef5+RXXXsyCUsm00HnObkrnEXR+2hwqWeWnPmmOuxOIjqLq0SDLm42pGwJZxjrZ8lKKdnC2Cgc18CxTd2hIBPrsk+roL8koM6IY5MotAgDl3Npnb+M5zVdtZHZE/CKvTPjTqWrtu9OJPTauEGFeq/65f8TvzJNsjuvdEc2Bpsb7cXmSziLbxHG6QLoF75ZNMiz4OXTitFaQHd5hTzoUiKg6YY0vIian1LxDQ2ejJc5drF7a7KbVWuj0H6akLYZjDwIh3TKs7yvv7Og/rWjUEj0KP8n0lfYvrGbmNjxDV6jgG5C7F8bgKZlvEqvfuocjZfJ89pmIBZu/8JdvZYpnqLXeBzVj5fSFsyzdqDcVouJ+yFZrBiurWKGfermiOlSSLMcU/UVrm9gO7JDq5C8Yi5YuANR25wgsBkOHYLeOs1ywkrtRt67ul2TtJohHA9ey3jYBct3CSUy3n84AW8ipNdyjSjVrV9vz2io33JH9F7y/M2bSuGGrWWF9xqPAWxaB7z4BAuvXDwkU5FXpY33u+uJbhSSDgdbOaSdDm7UpWmPmC4H1Espvm/gukXdRDKRYqimsHvhyKbbg1F7kbKf6IGas95+/se5ad39q7VAe13J/jY6jgvnd1nIItc5cdDXUlxS6k9+/7XOL+qPTNbf5XlevhREffiL1mUWynstCxhFaDR7LRcy3icobbu3NRNGizIv0tdkqqsc7MEAP+7SMgbU/YCyn+mGVMczii4tPcdmEkUu7bWQoLtApWZQazao1mQb0V7+8PQUhpQKJo5D3/wreN6LBGDyrgLWJ+sXlPV3lmVfWH8nGOkFjDlvvwzAsQRulCRtmDWldfWDTQCUGyAACpjiB25rpoSLqwyGQ0LpvCLHSw3Kw4By2KOS9ylZAb6T4tgCoiwb82QdLd1OjzRp02iWqDTKlKpl/EqVU8Yu3n20WVQ3J1uF9aKKjSnm5aHyZgsmn0yF/19z2jt/b+MCRgFNVoAej+O78jx/0UYQr7TBUsR9wgdqCbvKfZNivASxmkFUGd/VyogWVxgMR8QyP5LJ0kdp482p9ENqwz6VbIRnxViW9EhLLBmSMqBUyWlMlSnXBDgPr1zClNV37jx3LFY5O4SFYVH6lPO7mO8rFqhcfn0XA3s1AJVSX77Oti9fATpR5TiOvgqywXdsu54k+LywPlrU+vIVxBPesFCmnL3NjKc7OZ0zq3rJTiJjqzrGKIx9Fueo4QhnOMDptXFGHXxzQKNh0JqrUGuUqVQ83LKLV/axfE+z1Jkzy7HDJnGWs7CzwsePWNqRXHAhm0jfOK271OdeBcDTtu1svoR2ApisQU5yPjEB8Yo7VCdOfzKKMK7UXbrDuQBQVClnqpKzQyVUoph01NOd9bJIp/DyhRQKHZ8FIfmgj9ddpZm1mW5Cs+VTq3uUywV4bqkYfdVFJ9sld6Y49NVMrwPY+fJtvOdLGcNAvPfEBl7sQIqMvbjh1wjgaWXz6ve85iprkCcgjp3KP4g6Xw3AwrsWa2cnC7s38+Q6Aslz9m8zGT7RpzJapVpSBEGo81ld45DxVvlDUAwi7EGPeiQ9NEOaDYtq3aFS8nBLDk7JxnUdlBSaXCnvSYGlwsJ6CXN7Hbvq8hdfDTm+KuNmYwA3rkPWJ1nI5mYd+pdKoKitZdnXtoh7AoDYxBNx9OuZrILfxDtfBJRewi3jAperiY589FbcjJt2WiycCMkfP8jstprOZaXzVC5GBFliYBnQscOQUtCjafZ1t2qtalKpOvi+i+NbOK6D6UjnlbRzSF+MQ+LPEVanCBPpnc75wumYOx+Wmb0LrP95syTne5W1dxMAxdsq8t/bu9VV8BvB2fjLCDYLtvX9FSmUqxd1uCRVKl7PqXjw9Hmb4+cU3UOPMZ0uUZ1qagBFgoX0lMzBTjP8OKCa9Wk60u6bUa5alMs2ju/guMXGS90DYypy02NU2aV7FCfmWnYOrqYJ//OArLy7XEXP/3aHzdI63TVidIH325b91H8ZwaWqeOHXYaT612GQq/kc5qX0L6WIMY6b1hTE/u2egZmaw9Fz0OuE5A8cYH7axitXdFVFqCcnN3CzlHIW0jBGNL2QaiWnUrbwRXUlnHEsTOkMF5bHrtOv7SWSNcgSJo3nD+V8ZCjzw4divnZS6U0il26q1AKot+6pb+rXYfxfOB1rs3mHTi4AAAAASUVORK5CYII="},31078: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,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"},13740:function(Ge){"use strict";Ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAOXUlEQVR4nO3dXWxbZx3H8b/TOG3TlyQdgdFu1O3Wsa1odaADpQMlQbsBAU0lkBhCaiYhcQHS2kuu1t5y00ziBglprUDaJCY1E7BdMNEEtlVjk5wKqUNKWZ2p3YuSLk7WZG3ezP9Xz63rnPP42D6Pc87j30c69XMyxbGd5+vzYsdLyDqYmZlJLy+3HJVEPq2r/UKhuDiRlWRrq7Qlk7NtG1v/dv+9O37V1dWV0/9ENWpoIBpG59JKy6mE5IeEQodASmksq1vbN//2sf0P/EZXqQYNC0TjSC+vJM7psFMXsqA8kKKt7e2Zbxx46Os6pCo1JBCNI6VxZHTIOCzyCwS2bN586WD6q/t0SFVoSCBT0zlsOfqFrDIFAoyketYDmZ6eGcxL4qwOybJKgQAjqY71QKamZ0b0xxzWIVkWJBBgJME1IJBcXi+oAYIGAowkGKuB6ME5zlxldEgNUE0gwEgqsxrI1NRMvyRundqlBqg2EGAkZgzEIbUEAozEHwNxSK2BACPxxkAcUk8gwEjWYiAOqTcQYCR3YyAOCSMQYCR3MBCHhBUIMJICBuKQMAMBRiIMxCVhBwLNHgkDcYiNQKCZI2EgDrEVCDRrJAzEITYDgWaMhIE4xHYg0GyRMBCHNCIQaKZIGIhDGhUINEskDMQhjQwEmiESBuKQRgcCrkfCQByyHoGAy5EwEIesVyDgaiQMxCHrGQi4GAkDcch6BwKuRcJAHBKFQMClSBiIQ6ISCLgSCQNxSJQCARciYSAOiVogEPdIGIhDohgIxDkSBuKQqAYCcY2EgTgkyoFAHCNhIA6JeiAQt0gYiEPiEAjEKRIG4pC4BAJxiYSBOCROgUAcImEgDolbIBD1SBiIQ+IYCEQ5EgbikLgGAlGNhIE4JM6BQBQjYSAOiXsgELVIGIhDXAgEohQJA3GIK4FAVCJhIA5xKRCIQiQMxCGuBQLrHQkDcYiLgcB6RsJAHOJqILBekTAQh7gcCKxHJAzEIf97/wO5eXNRR+5qdCQMxCHZKx/Jwmc3dOS2LZs3XjyYfmS/Dq1jIA65NjMnH09/oiP3bd/S/kLPYw/9TIdWMRCH3NDdq/d0N6sZtLS05Hd1f2HP3r07J3XVmoQu1jCQxrv60bTMfnpdR+7bvn3LSM/+fUd0aA0DcczKyqpMZK/I6uqqrrmtLZn8rPfg/nYdWsNAHIRdLRywN0Mkfb1pq3PY6pUzkPWDSK5+PO38ad/7v/TFlM3jkIQu1jCQ9Zebuy7XcnPOhnJPx7bjX3v0gWEdWsFAmsTi0rIsYVnWRS9d0daWfOrBPbte1KEVDITiLZ8f6O7uGhVLGAjFGwMhMmAgRAYMhMiAgRAZMBAiAwZCZMBAiAwYCJEBAyEyYCBEBgyEyICBEBkwECIDBkJkwECIDBgIkQEDITJgIEQGDITIgIEQGcQ5kLl3z/3gZnfPX3RIZMXGqcwPtz8y8FcdWmEtkPwpSa8kv/y7mZ+++4SuElnR9eIjb2xY+vDXieMyrquhsxII4pBlOZfftCN77an30volIivueWHveOLGJylplQEbkYQeSDEOHXZqIOMMhGz6PBDMsZyNSEINpDQOXYSBkG0lgUDokYQWSHkcwEDItrJAINRIQgnEKw5gIGSbRyAQWiR1B+IXBzAQss0nEAglkroCMcUBDIRsMwQCdUdScyCV4gAGQrZVCATqiqSmQILEAQyEbAsQCNQcSdWBBI0DGAjZFjAQqCmSqgKpJg5gIGRbFYFA1ZEEDqTaOICBkG1VBgJVRRIokFriAAZCttUQCASOpGIgtcYBDIRsqzEQCBSJMZB64gAGQrbVEQhUjMQ3kHrjAAZCttUZCBgj8QwkjDiAgZBtIQQCvpGsCST/B9ktn8qfJC9bdbUu+a27Zue++/s+HRJZsf0fvxxLXL/aocP6JOS6bJOfJ34hk7p2W0KXu+T/LP0it7YeRM1mIPETGZUSDIToDgZCZMBAiAwYCJEBAyEyYCBEBgyEyICBEBkwkIo60yLJkhdmcxdElnI6CCDZqd9/QAd1mBrTf9YBbnt3n97+tK6oDr1s69SBms+KLOgCH7ysj8m4DpzEQIx6z4rsGtRBmTeP6MQY0YFBd3/h+4uTqh6YkFOjIpNnCpe2tKdEdh4u3Gfc/qAWc4XbhccEt9EdDMTox3n9xwOe1cf6xejRE7o8K6HDRLxwPNxnbWwt9j0j8uCx+oNGzBdPuBIKAzGKYiBF48dELj2ngzo9qGHgttYbRjkE/M7Thcv4YiBGUQ4ELp7U5YTU7ODzIqkhsQa7Xrh9YYS8PhiIUdQDgbef1t2Z01IV7FL1nbtzAG7T0qzI3/XnLGQlhhiIURwCgVf2VDcBn8wEiwNn7HDgPZ+9+/pxMI/v3zkosmW3GNUScHQwECNbgbyU0H8qwLM8ziRhEuKsUump5nJXR0TOH9FBAEF2q7JnCrtGC1mpCLHgvqaOyho4mTAxrIPYYiBG6xlIKUzCQyP6rH1AfAXZiuw7JnLglA58zE/qgfWQ3r9RqRpuY3pYgz4styCyd4Yk5hiIUVQCAWxR+kb9I6n0bI3v/95l/7NV2J3CfQr6Iqgf3G9s9V5LiwMYiFGUAgHs9+P4wUul23TwtHjuBkFYcbiHgRhFLRB4clxDOaADD37Xi92f718WTzjLhPsS79crbGEgRlEMpJbrPTCsxx/P6MDDxZO6nBDyxECMXAkExx5bUrIGth6vpPQyJ+SJgRhFMRAcqONdtl68rtd03DLxnB7cH9MB+WAgRlEM5Ecz3mei5idFXk3JGvuO6S7WKR14GBvQ+zIq5IuBGEUtEJw+PXRWBx7wdxlv6n8vZ+N2NA8GYhSlQPA6BnaVvI4lwO8tHX67ZDj+eFmvs1q7h8T3dLGf+azuyh3Xn5mTmGEgRlEJpDOtr2M8X7j083KX9wT0CyTIffDi95hU4hdwtDEQI7/JEGRyhREI3raB3arUkBhdPKnLCfEUlUBMtzG6GIiR32QIMrlMgVQ6MC79++9K5icLb+vw2noAA6kHAzHymwxBJpcpkDBVOhPFQOrBQIz8JkOQydWIQILs1/sFAkF39UqZXpU3YSAOimogOAP19pCe2h2RikwTutLWpxZ+QTIQB0UxEPxsxLGQlUC6+3XSnhNPNl5JZyBNJCqBYIuBvxq8NFzbu24P5/R1lA4dlFnUr7+6R69fL8PCQJqIrUCwa2OC1zsweReyhclbSxSlDo3o6eLDOvAQ9sRlIE3CtGtSbyC1HBzXw3Rf4LWe+iMsYiAxhDfr4ZP+qpkEpoPbIPvuUQoE/CYuzGcLkWBrVS+/n8NAIgpv0UgNFeLArk3QSeD3NxQQ5PRq1AKptBWZzxY+GQWPUz3wfjHsIpZjIBFUjKMI+/WYBJVObZZ/X7kgnyAStUDg4Gm9X0fFFx4fbBmxta0WAsSW2isOYCARY5rk2dOFSVAeCt4xi+/D51D58XtbebkoBgJ+u0ClsBXBZMaxVqUt7u6jhccZgZgwkAjBW7Iff14qwjPm7LgOPlfplwzYTSsPy0tUA8GTAD74odInIhbhviKY0lBwHdhSBHm8ivB294lhHcSKo4HAoRH/U5u1CnJwXhTVQACfcoLHx+/TUcKE13Cw5ZgYlhhyOBA8yx0a0We5Pl0JAT476rW0DgKKciCAx+fx0+E/iZTCY/bOkF6OS0w5HEiR6XRtUDjuwNs7SnczKol6IEW4nfuOaTAdEpr5ycJWo9KZvuhrgkAA+8oHTwff7y7C7sHEcOGXXS1MvDgEAtiaIBIs9YTiThhFTRJIEULBATzOUpkmAn7ReKcsftnVbDVK4Wd5ve6AM0Nj/RJJCAW3e+dg5ccI8ASCg3gseK/YQlYc02SBlMJZGEwILBjPZwu/YAQR1j5z8bpLYTLFRentxyUeIzw+EKf7UbsmDoSoAo1jTQ9rvgAaSV4viJrJrAbSqZd38QtkRC8O60LULM5oIENSxjuQl2RQtyFndUjULAY0kFEp4xkI6FZkVPS8jC5ErjujcQyJB/9Azur+2LJkRaRDFyI35eWCJKU/cURyuraGbyCgkaQ1khEd7taFyC2FOAY1jqz4MAYCGkmnRjKsw6O6ELnipLTKsMaR07GvioEUaSgpDWVQh1igTxeiuBjTJafLqIYxomFkJYCELtZMTc30SyJxTodEduTzA93dXaNiCQOheGMgRAYMhMiAgRAZMBAiAwZCZMBAiAwYCJEBAyEyYCBEBgyEyICBEBkwECIDBkJkwECIDBgIkQEDITJgIEQGDITI338nLg98p7dnVCyxGsi/zmf6H963h4GQNbEPZG/qvj+2JZP36SpRqK5fXxi/8uHHx2MdyLZtW5/ddW93vxCF7P0PPhpbmP/sRKwDWZXEyMMPfEVaWlr4EaYUmsWlpSuXsle3tUh+MO6BnNvUlnx97+5d39YvEYXiUvbKW4tLy9/SQOJ9DIJAdCjd93S93r2jg5FQ3bJXdddq4UafDsWZQKC9fdNYate9fTokqsl7k1dfv7G4dPuJ1qlAbknIle4dnVldbt9JIpPV1dXZa7m5/0x9kktJXu7TL93mXiB3zG7YsOHyxo3J2daWDXldJ7rL4uJi69LK6taVlZW0rnpq3ZDveeKbPeM6tMJqIG/8O5NeXklkdEhkRV9v2uoctnrlMHZ+nFsHsiIv+cn+3p6UWGQ/kDczI5JIHNYhUcjyZ/p6e4bEIuuB/POtzGB+NXFWh0Shsn2ADtYDgbHzmVH9UX1CFBr7Ww9oSCDnz2dSN0XGE5Lo0FWiuuixx4WOTdLf09OT01WrGhII4IzW0oqMMhKqB+JIbpAhm6d2SzUsEMhkMp1zN/B/zE0c1VWiKuXPbN8kxxqx5ShqaCBF2JosL8uQ/vS08NiEfOjWYlYn6LgOR9tETvf29mSlwf4P8IbCQbr23ycAAAAASUVORK5CYII="},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,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"},88745:function(Ge){"use strict";Ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAFQlJREFUeF7tnXtwFUW+x3+T9/tBCALyBiEkEhJehiAm4RGiF+5a7i6lgCV3191bKMvq6kVx1V1dWW8ZdfXuZYF7d2t1FZeXpYJlQUBAUcI7qIRnAIXEEE7CCQl5J2du9eEezOOcTPec6TndM7+uSuWP6f49vr/+nJkz09NHgQA0h6N2AgTDFFAhQ1XVaQootwcgDMu5PHH2W4iOjKgICQ05HgzK0XFpI5+xXJImJ6SY7A8cjmt/AkVdCgAhZvu2uj8CSOcWGRFeHR4etnJ86sg3rJ47r/xMA8ThqJ2kKrBNAUjilYzd7XYHxKNHbEzUoQnjRk+xuz568jcPkOpaVU+AOIZeAV+AEAtRkRHlkzNSBtNbw55EAVMAcdTUFoIKT6LkfBXoDRCERJ/23AGpqnY+GATKP/SFh6NYFNACBCFhUfNGX+6AOBy160CBBeyh4QhWBWgAQUjYVOUPSHXtCQAYyxYW9tajAC0gCAm9ulwBcTqdCe0dipM+HOzpjwIsgCAkdEpzBcThcOaCouymCwV7+asAKyAIibbiCIi2RtL00AMIQtJ7eREQaaa/dqB6AUFIfGuLgGjPO2l6+AMIQuK9zAiINNNfO1B/AUFIemqMgGjPO2l6GAEIQtK13AiINNNfO1CjAEFIftAaAdGed9L0MBIQhORG2REQaaa/dqBGA4KQICDas06iHjwAsTskeAaRCACtUHkBYmdIEBCtWSfRcZ6A2BUSBEQiALRC5Q2IHSFBQLRmnUTHzQDEbpAgIBIBoBWqWYDYCRIERGvWSXTcTEDsAgkCIhEAWqGaDYgdIEFAtGadRMcDAYjVIUFAJAJAK9RAAWJlSBAQrVkn0fFAAmJVSBAQiQDQCjXQgFgREgREa9ZJdFwEQKwGCQIiEQBaoYoCiJUgQUC0Zp1Ex0UCxCqQICASAaAVqmiAWAESBERr1kl0XERAZIcEAZEIAK1QRQVEZkgQEK1ZJ9FxkQGRFRIERCIAtEIVHRAZIUFAtGadRMdlAEQ2SBAQiQDQClUWQGSCBAHRmnUSHZcJEFkgQUAkAkArVNkAkQESBERr1kl0XEZARIcEAZEIAK1QZQVEZEgQEK1ZJ9FxmQERFRIERCIAtEKVHRARIUFAtGadRMetAIhokCAgEgGgFapVABEJEgREa9ZJdNxKgIgCCQIiEQBaoVoNEBEgQUC0Zp1Ex60ISKAhQUAkAkArVKsCEkhIEBCtWSfRcSsDEihIEBCJANAK9eyFcmhrb9fqJvXxqMiI8skZKYPNSgIBMUtpE/xUXHbAtfoGEzwF1kVMVMTZieNTRpsRBQJihsom+ahxXoOqaqdJ3gLrpk98XOG41BHLeUeBgPBW2ET7DY1N8F1FlYkeA+cqIjy0oc/Q/gNvS0qq4xkFAsJT3QDY/r6qGmrrrgfAs/ku42Ki92SOuy2Pp2cEhKe6AbJ96txFcLlcAfJuntuY6MiKieljBvH0iIDwVDdAtpuaW+DCpcoAeTfPbWREWNuUzNQwnh4REJ7qBtC2qgJcdtSA81p9AKPg6zo4OAjGDB82Jjk57gwvTwgIL2UFsUsAuVpbDy2trYJEZGwYqaOG5iUnJ+4x1uoP1hAQXsoKZre9vQOaWlqgucVaoCQnxiMggs01DEckBVQVARGpHhiLYAogIIIVBMMRSwEERKx6YDSCKYCACFYQDEcsBRAQseqB0QimAAIiWEEwHLEUQEDEqgdGI5gCCIhgBcFwxFIAARGrHhiNYAogIIIVBMMRSwEERKx6YDSCKYCACFYQDEcsBRAQseqB0QimAAIiWEEwHLEUQEDEqgdGI5gCCIhgBcFwxFIAARGrHhiNYAogIIIVBMMRSwEERKx6YDSCKYCACFYQDEcsBRAQseqB0QimgMyArPpy9eL5Yx74u2CSYjgWUmDj6X/+26PTlrzFKyVu+2Kl/VdaalxE/Lot932SwSt4tIsKzHu/4Kv6lvoFpctKT/BQgwsgBA5VUTfGhye0ISA8yoY2PQrMe7/gm7rWuiBFVebzgMRwQDxwAEBafHjCMQQEJzNPBea+P6e0vrU+DQBKeUBiKCCd4SCiICA8pwbaJgrMfX/OyfrW+rH/r4bhkBgGSHc4EBCcwGYocM/m/NMNbdfHdPJlKCSGAOINDgTEjOmBPu7eNKussb1xVDclDIPEb0B8wYGA4OQ1Q4G7N8+60NjWONyLL0Mg8QuQ3uBAQMyYHuijYNPMi03tTUN8KOE3JLoB0YIDAcHJa4YC+RtnVLR0NN/aiy+/INEFCA0cCIgZ0wN95G/Kq2xpbxmgoYRuSJgBoYUDAcHJa4YCszfmXmntaO1H4UsXJEyAsMCBgFCUDLv4rcDsDbk1ra7WJEpDzJBQA8IKBwJCWTLs5pcCMzfk1La72hIYjDBBQgWIHjgQEIaSYVfdCszYML2+w9URy2iAGhJNQPTCgYAwlgy761JgxvrpDR1qR7SOwVSQ9AqIP3AgIDpKhkOYFchbf2ezS3VFMA+8MUATEp+A+AsHAqKzZDiMSYHc9dPaVFUNZRrUtXOvkHgFxAg4EBA/SoZDqRXI+We2CwCCqAd47+gTkh6AZK/LXlxXW/drPx26h0eHRscUzvpT94VkRphGG6iAW4H/2Pl4WUNbw3Uj5IhLiHtz38J9XV7f7QFIwdaCXBXU3UY4RBuogEwKKKDkbZu3bU/nmBEQmSqIsXJVAAHhKi8al10BBET2CmL8XBVAQLjKi8ZlVwABkb2CGD9XBRAQrvKicdkVQEBkr6AJ8Q+IGgD9o/pDTGgMxIbGuv+HBYfd9FzfVg/Ha47DubpzJkRjrgtLAfLK1Fd0qbe8eDnVOKPsLxq9iMpf507vnnmXeYzeAcNih0FW/yyY0m8KDIkZ4gaCpjmaHFDqLIVj1cfcf5cbL9MME7qPpQBJT0oHPZP4ryf/CpvPbe61UPNHzoefjf0ZUzHbXe3w2JePQdm1si7jSIwkVtpG4DADkIy+GXDv8Hsh65Ys2tB67ffhhQ+B/MkMiqUAIdUin86sn9Au1QU/LfopNLQ1eC04+QTdmL8RghS25T2rjq+Crd9u7WFTREAeS38MCoYUGAJGZyO1LbVAdNhbuddw22YYtBwgRDTWCUjGbPl2C/zl+F+8ar4sfRncM+QepnrsqtgFr5R4v+RjjY/3GeS3E38L0wdMZ8qPtfPKIyulhMSSgIxLGgeFUwtZawiPfP4InK8732XcbfG3wZ+n/5nJVnVzNfxq76/A2eL0Ok4kQH4z/jeQPzifKT89nZs7muGZ/c/ACSeXXyTQExLVGEsCovdS60DVAfjdod91Ee6lKS/BpH6TqMT0dHrx8Iuw7/I+n2NEAYScNcjZw6xG4CCQEFhkaZYFRO+l1guHX4Diy8Xu+umZQJvObYK/nfxbr/UXBZA3pr0BKYkpps7Vt069BevL1pvq0x9nlgZkZPxIWDV9FZM+F+ouwJLPl7jHrM1ZC0Njh1KPJ3erlu5dqtlfBEDIrdw1OWs0Y+3eobG9Ecqvl0NkSCTcEnULhAX98DyExtil65fc+pI7fDI0SwOi91JrTeka9x2rX6b+kqmGy75YBmdqz2iOEQEQ1rt95EbBZ99/BmSCe1p8WDzcNfAuWJyyGKJD6PdIkOkLu+UB0XOpRW73KooCUSFRmpPd02F16Wr46MJHVP1FAOS5Sc/BtP7TqOItbyiHh3c/7LMvuZFRmF0IEcF0+yR8cP4DWHtiLZXvQHeyBSBkqcTfZ/D7Yd3DjsPw7IFnqWspAiBED6ILTWtqb4JFny7y+ZyI2Phj1h9hQt8JNObcZ1lytpWh2QIQUogfj/gx/CL1F1xqsnDnQqhprqG2LQIgm+dspl5CQhIjHwKrvlkFlY2V1HlaoaNtANFzqUVT4JeOvARfVH5B0/VmHxEA0fNwkCxKPOo4CkccR9z/yfMeqzdbAUK+VG7I32BYTXeW74RXj73KbE8EQOYNmweP3v4oc+yeAW2utpugkLPL9w3f67Yl8kBbAUIKcfeQu+HX6f7vYHS97Tr8ZPtPdNVWBEDGJIyBN+98U1f83gYdunLIfRlG/lsJFtsBQor7hyl/gMn9Jvs1OZ7c9yQcv3pclw0RACGBvzjlRfeSdqObB5bdFbuhrrXOaPOm2rMlIKFBobD1np6rbGmVJ0vjyRJ5vU0UQJIikmDlHSuBPDTk0cgzkw1lG4BcisrabAkIKVbOwBxYMWEFc93IU+SH9/h+JkBjUBRASKzkUovcomV50EeTY+c+ZKn7xrKNcPbaWdahAe+PgDCWoPNSFMahN7uLBAgJKrt/Nvx87M/h1ujefvdSb7Y3xrW6Wt2QmPHil3+Rdh1tS0D8vcQiixHJokS9TTRASB4JYQkwf9R8uG/EfXrTohr3wqEXoLjqxmJQGZotATHiy+minYt0PwcQERDPZB2fNN4NysTkiVzm79Xmq7B8/3L3gkcZmu0AIa+VktdL/W1kU4Kn9z+ty4zIgHgSyrs1zw0J+UsMT9SVp69BrEtzDHXOaMxWgMSFxbnfLTeqvf7V61B0qYjZnAyAeJIiCxAJJBOSJ7j/k+1/jGhkJ5mva742whRXG7YChHVi0ih//477gWxMwNJY4+D9Tjpt7OQVAALJpORJ7udIA6MH0g7t0U+UnLQSsA0g5Msn6/sdWuKR4+QdiZePvkzT9WYfWQHpniSBRC8s5OxBux8Zk7gGd7YFIOTNt7dnvG2wdD+YY12wGGhAWPbkIlnSXAotHbcU5g6dy6RxwcfGbzPEFABFZ1sAwjohd1zaAbMHz6aQ70YX8oLV4l2Lgax2pWms8Rh9OUIWKZLFirRtwc4FQO4+aTWWvMiOLw/seEDLZMCPWx6QhaMXwoOjH2QS+qFPH4K3Z7KdccgGcWSDNJrGMpGIPaMBIXt8kb2+aButf5a8jHjgShu/P/0sDcjw2OGwOmc1kz7vnHkH1p1Z54aKwMXSfn/o97C/ar/mEJaJ5AGE5jJHy7HHRmbfTHg5i+17kxYkrO+46/nuppUfj+OWBoR1IlY1VQE5e3jaOzPfgeTIZGrdyTJvsqsJ2fmjt8YaF3UAvXTsflv16QlPQ+7AXCbTFQ0VQFbodm/kyzpZ08XSnj/4PBy8cpBlSED6WhYQ1k80on7hsUL4tPzTm4WYM3gOPD7+cabC0Kz0FQEQsh8W2RcrEA3fSQ+E6p18piamwuvTXmeKwtdtx9eyX4O0PmlMtp47+Jz7xSFfTQRASGxku577R93PlJsRnTtvzmeEPZ42LHkG0TMBn9j3BJReLe2htZ6fVDjlPOW+x09WsHpreuLzdxJ4e3JNNn97NftVGBk30l/z1OM/uPABrC2VY8sfkpTlANFzaUWWi5BlI77aU5lPAVmbxNLI9ppkm02RASGxke9YT4x/Ashvg/Bu5L0QsmmcTM1SgOj5tCfF0tq2p29EX3h3FvsvPK3YvwJKqkt6zAdRziCewMKDw2FJ2hIuvw/i8SEjHJY7g+iZeJ7bulqfanpu+5J31p8qfgo61I4u5vXEqRWf1nGaxYFG/8IUiYnsmP/JxU/c/2VsljmD6Lm0Ipu9kbMHbXtv1nvQJ6IPbXd3P/JMhUDYuYkKiCdGz28UZvXL0rX7O3nqTqAgNypO155m0ku0zpYAhHVtUecisDyAM8qPP3b8mUAsuXr89AnvA6l9Ut1f5GPDYiEuNM79v7WjFRraG4Bsf0SW2pBnSOQ5EPmz0oZylgDEn0mDY1GB3hSgAmTO1jlkV+IjKCUqYDcFqADJ3Z0bEt4Q3ggqhNpNIMzX3gqEu8LjtvxoS5dl2oo3SQq2FHyhKirdD0rYW1PM3joKHNs+b3tm93S8A/JxwSpVVR+xTu6YCSqgqcD/bp+3vcfPjHkFZPaW2flBStB2TZPYARWwiAKqS80p+lHR51RnENIp/+P8NYqq/LtF8sc0UAGfCqiquqLoX4v+01sHr2cQT8c5H8+5AirQvySBRUAFJFRg+7ztPjnoFRCSa8HWgndVUOkfQUsoEIZsUwVUuK661FlF9xb5XBujCYgbki0FD6iK+t8AwLb2wqa6Y9riK6Aoytvb5m5brBUpFSBuSD4qSIcgyHWprsmKokwCgBQt43gcFRBIgZOgwAHVpX4NwXC86F+KdtDERg0IjbHufRwOZy4oSs8Xm/UYwzGogDcFVDUvOTlxDy9xEBBeyqJdcxRAQMzRGb1IqgACImnhMGxzFEBAzNEZvUiqAAIiaeEwbHMUQEDM0Rm9SKoAAiJp4TBscxRAQMzRGb1IqgACImnhMGxzFEBAzNEZvUiqAAIiaeEwbHMUQEDM0Rm9SKoAAiJp4TBscxRAQMzRGb1IqgACImnhMGxzFEBAzNEZvUiqAAIiaeEwbHMUQEDM0Rm9SKqAzIAc/vrMgqED+62TVHoMW3AFGhqbq4YN6d+fZ5hcX7nds/9Y3ohBAzZGRoT35ZkE2ranAleqnd+mpQwfzjN77oD0TYx/45akxHSeSaBteypw4VJlxZTMsYN4Zs8dkPjo6OcHDUjO5ZkE2ranAqfKLjZPz0qP5Jk9d0AUFXYNG9S/Iioy4laeiaBteyngrK0/X+moGZEzNYPrHOZqnHwHIYCEhASXjR4+eJS9SojZ8lTgRNl3NaCqSZYAhAg1sF/fIwnxMRN5ioa27aHA+UuVh5qbWyaTbC0DCEkmPCz0w2GDBtwVHByEe/zaYy4bmmV7e3vZue8qL3e4Ou70GJYakL3F3+S6oKPL1qMKKM4+ibFHExPiUsJCQvB7iaFTyJrGWlrbyq/W1p12Xquf2T1DqQHZXVySGwS+9+ZVgoIuhgYHXY4ID2+0ZmkxK38UaGpujmvr6BgAKgzwZUduQHaXJARFKE5/RMKxqIBPBVQ4n5OdMZKnQlzvYpHAPysuOQGgjOWZBNq2pwIKKDvvmjp+Ns/s+QOyr2QdKMoCnkmgbZsqoML/5GRncP0dTe6A7Pny2INKEPzDpiXEtHkqoKoLc7Iz3+Ppgjsg7sus/SWFoCpP8kwEbdtMAQVW5GRleP1lWiOVMAWQG99FjqlGBo62bK3AkZypGeRnALk30wDZVfzVHcGquhMUiOGeFTqwsALqyZypmalmJWgaIJ6EPiv+6i0A9SGzEkQ/llGgGUB9LWdq5rNmZmQ6ICS5PftLZoOq3B4EkK6CcgeAireBzay6JL4UgAMugIOKAschGA7lTM4oMTv0/wOup6hf9sCvqgAAAABJRU5ErkJggg=="},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 Ce}});const le=-1,Le=0,De=1,Ie=2,Ye=3,Fe=4,Ve=5,Xe=6,qe=7,Je=8,mt=typeof self=="object"?self:globalThis,st=(Oe,Be)=>{const Qe=(rt,ft)=>(Oe.set(ft,rt),rt),ot=rt=>{if(Oe.has(rt))return Oe.get(rt);const[ft,bt]=Be[rt];switch(ft){case Le:case le:return Qe(bt,rt);case De:{const ut=Qe([],rt);for(const Tt of bt)ut.push(ot(Tt));return ut}case Ie:{const ut=Qe({},rt);for(const[Tt,Dt]of bt)ut[ot(Tt)]=ot(Dt);return ut}case Ye:return Qe(new Date(bt),rt);case Fe:{const{source:ut,flags:Tt}=bt;return Qe(new RegExp(ut,Tt),rt)}case Ve:{const ut=Qe(new Map,rt);for(const[Tt,Dt]of bt)ut.set(ot(Tt),ot(Dt));return ut}case Xe:{const ut=Qe(new Set,rt);for(const Tt of bt)ut.add(ot(Tt));return ut}case qe:{const{name:ut,message:Tt}=bt;return Qe(new mt[ut](Tt),rt)}case Je:return Qe(BigInt(bt),rt);case"BigInt":return Qe(Object(BigInt(bt)),rt);case"ArrayBuffer":return Qe(new Uint8Array(bt).buffer,bt);case"DataView":{const{buffer:ut}=new Uint8Array(bt);return Qe(new DataView(ut),bt)}}return Qe(new mt[ft](bt),rt)};return ot},Ct=Oe=>st(new Map,Oe)(0),je="",{toString:te}={},{keys:ne}=Object,he=Oe=>{const Be=typeof Oe;if(Be!=="object"||!Oe)return[Le,Be];const Qe=te.call(Oe).slice(8,-1);switch(Qe){case"Array":return[De,je];case"Object":return[Ie,je];case"Date":return[Ye,je];case"RegExp":return[Fe,je];case"Map":return[Ve,je];case"Set":return[Xe,je];case"DataView":return[De,Qe]}return Qe.includes("Array")?[De,Qe]:Qe.includes("Error")?[qe,Qe]:[Ie,Qe]},se=([Oe,Be])=>Oe===Le&&(Be==="function"||Be==="symbol"),ge=(Oe,Be,Qe,ot)=>{const rt=(bt,ut)=>{const Tt=ot.push(bt)-1;return Qe.set(ut,Tt),Tt},ft=bt=>{if(Qe.has(bt))return Qe.get(bt);let[ut,Tt]=he(bt);switch(ut){case Le:{let en=bt;switch(Tt){case"bigint":ut=Je,en=bt.toString();break;case"function":case"symbol":if(Oe)throw new TypeError("unable to serialize "+Tt);en=null;break;case"undefined":return rt([le],bt)}return rt([ut,en],bt)}case De:{if(Tt){let vn=bt;return Tt==="DataView"?vn=new Uint8Array(bt.buffer):Tt==="ArrayBuffer"&&(vn=new Uint8Array(bt)),rt([Tt,[...vn]],bt)}const en=[],Cn=rt([ut,en],bt);for(const vn of bt)en.push(ft(vn));return Cn}case Ie:{if(Tt)switch(Tt){case"BigInt":return rt([Tt,bt.toString()],bt);case"Boolean":case"Number":case"String":return rt([Tt,bt.valueOf()],bt)}if(Be&&"toJSON"in bt)return ft(bt.toJSON());const en=[],Cn=rt([ut,en],bt);for(const vn of ne(bt))(Oe||!se(he(bt[vn])))&&en.push([ft(vn),ft(bt[vn])]);return Cn}case Ye:return rt([ut,bt.toISOString()],bt);case Fe:{const{source:en,flags:Cn}=bt;return rt([ut,{source:en,flags:Cn}],bt)}case Ve:{const en=[],Cn=rt([ut,en],bt);for(const[vn,pn]of bt)(Oe||!(se(he(vn))||se(he(pn))))&&en.push([ft(vn),ft(pn)]);return Cn}case Xe:{const en=[],Cn=rt([ut,en],bt);for(const vn of bt)(Oe||!se(he(vn)))&&en.push(ft(vn));return Cn}}const{message:Dt}=bt;return rt([ut,{name:Tt,message:Dt}],bt)};return ft},Se=(Oe,{json:Be,lossy:Qe}={})=>{const ot=[];return ge(!(Be||Qe),!!Be,new Map,ot)(Oe),ot};var Ce=typeof structuredClone=="function"?(Oe,Be)=>Be&&("json"in Be||"lossy"in Be)?Ct(Se(Oe,Be)):structuredClone(Oe):(Oe,Be)=>Ct(Se(Oe,Be))},11630:function(Ge,be,de){"use strict";de.d(be,{P:function(){return Le},Q:function(){return le}});function le(De){const Ie=[],Ye=String(De||"");let Fe=Ye.indexOf(","),Ve=0,Xe=!1;for(;!Xe;){Fe===-1&&(Fe=Ye.length,Xe=!0);const qe=Ye.slice(Ve,Fe).trim();(qe||!Xe)&&Ie.push(qe),Ve=Fe+1,Fe=Ye.indexOf(",",Ve)}return Ie}function Le(De,Ie){const Ye=Ie||{};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 Ie}});function le(Ye){return Ye}function Le(){}function De(){}function Ie(){}},40797:function(Ge,be,de){"use strict";de.d(be,{N:function(){return Ct}});var le=de(81994),Le=de(43309);function De(te,ne){return Ie(te,ne||{})||{type:"root",children:[]}}function Ie(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 Je(te,ne);case 3:return Xe(te);case 8:return qe(te);case 9:return Fe(te,ne);case 10:return Ve();case 11:return Fe(te,ne);default:return}}function Fe(te,ne){return{type:"root",children:mt(te,ne)}}function Ve(){return{type:"doctype"}}function Xe(te){return{type:"text",value:te.nodeValue||""}}function qe(te){return{type:"comment",value:te.nodeValue||""}}function Je(te,ne){const he=te.namespaceURI,se=he===Le.t.svg?le.s:le.h,ge=he===Le.t.html?te.tagName.toLowerCase():te.tagName,Se=he===Le.t.html&&ge==="template"?te.content:te,Ce=te.getAttributeNames(),Oe={};let Be=-1;for(;++Be<Ce.length;)Oe[Ce[Be]]=te.getAttribute(Ce[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=Ie(he[ge],ne);Se!==void 0&&se.push(Se)}return se}const st=new DOMParser;function Ct(te,ne){const he=ne!=null&&ne.fragment?je(te):st.parseFromString(te,"text/html");return De(he)}function je(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 Le=function(bt,ut,Tt){const Dt=(0,le.O)(Tt);if(!bt||!bt.type||!bt.children)throw new Error("Expected parent node");if(typeof ut=="number"){if(ut<0||ut===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(ut=bt.children.indexOf(ut),ut<0)throw new Error("Expected child node or index");for(;++ut<bt.children.length;)if(Dt(bt.children[ut],ut,bt))return bt.children[ut]},De=function(bt,ut,Tt,Dt,en){const Cn=Ie(ut);if(Tt!=null&&(typeof Tt!="number"||Tt<0||Tt===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite `index`");if(Dt!=null&&(!Dt.type||!Dt.children))throw new Error("Expected valid `parent`");if(Tt==null!=(Dt==null))throw new Error("Expected both `index` and `parent`");return qe(bt)?Cn.call(en,bt,Tt,Dt):!1},Ie=function(bt){if(bt==null)return Xe;if(typeof bt=="string")return Fe(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 ut=[];let Tt=-1;for(;++Tt<bt.length;)ut[Tt]=Ie(bt[Tt]);return Ve(Dt);function Dt(...en){let Cn=-1;for(;++Cn<ut.length;)if(ut[Cn].apply(this,en))return!0;return!1}}function Fe(bt){return Ve(ut);function ut(Tt){return Tt.tagName===bt}}function Ve(bt){return ut;function ut(Tt,Dt,en){return!!(qe(Tt)&&bt.call(this,Tt,typeof Dt=="number"?Dt:void 0,en||void 0))}}function Xe(bt){return!!(bt&&typeof bt=="object"&&"type"in bt&&bt.type==="element"&&"tagName"in bt&&typeof bt.tagName=="string")}function qe(bt){return bt!==null&&typeof bt=="object"&&"type"in bt&&"tagName"in bt}const Je=/\n/g,mt=/[\t ]+/g,st=Ie("br"),Ct=Ie(rt),je=Ie("p"),te=Ie("tr"),ne=Ie(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",ot,ft]),he=Ie(["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,ut){const Tt=ut||{},Dt="children"in bt?bt.children:[],en=he(bt),Cn=Qe(bt,{whitespace:Tt.whitespace||"normal",breakBefore:!1,breakAfter:!1}),vn=[];(bt.type==="text"||bt.type==="comment")&&vn.push(...Ce(bt,{whitespace:Cn,breakBefore:!0,breakAfter:!0}));let pn=-1;for(;++pn<Dt.length;)vn.push(...ge(Dt[pn],bt,{whitespace:Cn,breakBefore:pn?void 0:en,breakAfter:pn<Dt.length-1?st(Dt[pn+1]):en}));const mn=[];let Mt;for(pn=-1;++pn<vn.length;){const ct=vn[pn];typeof ct=="number"?Mt!==void 0&&ct>Mt&&(Mt=ct):ct&&(Mt!==void 0&&Mt>-1&&mn.push(`
`.repeat(Mt)||" "),Mt=-1,mn.push(ct))}return mn.join("")}function ge(bt,ut,Tt){return bt.type==="element"?Se(bt,ut,Tt):bt.type==="text"?Tt.whitespace==="normal"?Ce(bt,Tt):Oe(bt):[]}function Se(bt,ut,Tt){const Dt=Qe(bt,Tt),en=bt.children||[];let Cn=-1,vn=[];if(ne(bt))return vn;let pn,mn;for(st(bt)||te(bt)&&Le(ut,bt,te)?mn=`
`:je(bt)?(pn=2,mn=2):he(bt)&&(pn=1,mn=1);++Cn<en.length;)vn=vn.concat(ge(en[Cn],bt,{whitespace:Dt,breakBefore:Cn?void 0:pn,breakAfter:Cn<en.length-1?st(en[Cn+1]):mn}));return Ct(bt)&&Le(ut,bt,Ct)&&vn.push(" "),pn&&vn.unshift(pn),mn&&vn.push(mn),vn}function Ce(bt,ut){const Tt=String(bt.value),Dt=[],en=[];let Cn=0;for(;Cn<=Tt.length;){Je.lastIndex=Cn;const mn=Je.exec(Tt),Mt=mn&&"index"in mn?mn.index:Tt.length;Dt.push(Be(Tt.slice(Cn,Mt).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),Cn===0?ut.breakBefore:!0,Mt===Tt.length?ut.breakAfter:!0)),Cn=Mt+1}let vn=-1,pn;for(;++vn<Dt.length;)Dt[vn].charCodeAt(Dt[vn].length-1)===8203||vn<Dt.length-1&&Dt[vn+1].charCodeAt(0)===8203?(en.push(Dt[vn]),pn=void 0):Dt[vn]?(typeof pn=="number"&&en.push(pn),en.push(Dt[vn]),pn=0):(vn===0||vn===Dt.length-1)&&en.push(0);return en}function Oe(bt){return[String(bt.value)]}function Be(bt,ut,Tt){const Dt=[];let en=0,Cn;for(;en<bt.length;){mt.lastIndex=en;const vn=mt.exec(bt);Cn=vn?vn.index:bt.length,!en&&!Cn&&vn&&!ut&&Dt.push(""),en!==Cn&&Dt.push(bt.slice(en,Cn)),en=vn?Cn+vn[0].length:Cn}return en!==Cn&&!Tt&&Dt.push(""),Dt.join(" ")}function Qe(bt,ut){if(bt.type==="element"){const Tt=bt.properties||{};switch(bt.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return Tt.wrap?"pre-wrap":"pre";case"td":case"th":return Tt.noWrap?"nowrap":ut.whitespace;case"textarea":return"pre-wrap";default:}}return ut.whitespace}function ot(bt){return!!(bt.properties||{}).hidden}function rt(bt){return bt.tagName==="td"||bt.tagName==="th"}function ft(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(58222),Le=de(11630);const De=/[#.]/g;function Ie(se,ge){const Se=se||"",Ce={};let Oe=0,Be,Qe;for(;Oe<Se.length;){De.lastIndex=Oe;const ot=De.exec(Se),rt=Se.slice(Oe,ot?ot.index:Se.length);rt&&(Be?Be==="#"?Ce.id=rt:Array.isArray(Ce.className)?Ce.className.push(rt):Ce.className=[rt]:Qe=rt,Oe+=rt.length),ot&&(Be=ot[0],Oe++)}return{type:"element",tagName:Qe||ge||"div",properties:Ce,children:[]}}var Ye=de(84837),Fe=de(64326),Ve=de(71523);function Xe(se,ge,Se){const Ce=Se?je(Se):void 0;function Oe(Be,Qe,...ot){let rt;if(Be==null){rt={type:"root",children:[]};const ft=Qe;ot.unshift(ft)}else{rt=Ie(Be,ge);const ft=rt.tagName.toLowerCase(),bt=Ce?Ce.get(ft):void 0;if(rt.tagName=bt||ft,qe(Qe))ot.unshift(Qe);else for(const[ut,Tt]of Object.entries(Qe))Je(se,rt.properties,ut,Tt)}for(const ft of ot)mt(rt.children,ft);return rt.type==="element"&&rt.tagName==="template"&&(rt.content={type:"root",children:rt.children},rt.children=[]),rt}return Oe}function qe(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 Ce of Se){const Oe=ge[Ce];if(Oe&&typeof Oe=="object"){if(!Array.isArray(Oe))return!0;const Be=Oe;for(const Qe of Be)if(typeof Qe!="number"&&typeof Qe!="string")return!0}}return!!("children"in se&&Array.isArray(se.children))}function Je(se,ge,Se,Ce){const Oe=(0,Ye.s)(se,Se);let Be;if(Ce!=null){if(typeof Ce=="number"){if(Number.isNaN(Ce))return;Be=Ce}else typeof Ce=="boolean"?Be=Ce:typeof Ce=="string"?Oe.spaceSeparated?Be=(0,Ve.Q)(Ce):Oe.commaSeparated?Be=(0,Le.Q)(Ce):Oe.commaOrSpaceSeparated?Be=(0,Ve.Q)((0,Le.Q)(Ce).join(" ")):Be=st(Oe,Oe.property,Ce):Array.isArray(Ce)?Be=[...Ce]:Be=Oe.property==="style"?Ct(Ce):String(Ce);if(Array.isArray(Be)){const Qe=[];for(const ot of Be)Qe.push(st(Oe,Oe.property,ot));Be=Qe}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,Fe.F)(Se)===(0,Fe.F)(ge)))return!0}return Se}function Ct(se){const ge=[];for(const[Se,Ce]of Object.entries(se))ge.push([Se,Ce].join(": "));return ge.join("; ")}function je(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=Xe(le.dy,"div"),he=Xe(le.YP,"g",te)},26735:function(Ge,be,de){"use strict";de.d(be,{f:function(){return Le}});var le=de(80722);function Le(De,Ie,Ye,Fe){const Ve=Fe?Fe-1:Number.POSITIVE_INFINITY;let Xe=0;return qe;function qe(mt){return(0,le.xz)(mt)?(De.enter(Ye),Je(mt)):Ie(mt)}function Je(mt){return(0,le.xz)(mt)&&Xe++<Ve?(De.consume(mt),Je):(De.exit(Ye),Ie(mt))}}},80722:function(Ge,be,de){"use strict";de.d(be,{AF:function(){return Fe},Av:function(){return Ie},B8:function(){return st},Ch:function(){return Xe},H$:function(){return Le},Xh:function(){return mt},jv:function(){return le},n9:function(){return De},pY:function(){return Ye},sR:function(){return Ve},xz:function(){return Je},z3:function(){return qe}});const le=Ct(/[A-Za-z]/),Le=Ct(/[\dA-Za-z]/),De=Ct(/[#-'*+\--9=?A-Z^-~]/);function Ie(je){return je!==null&&(je<32||je===127)}const Ye=Ct(/\d/),Fe=Ct(/[\dA-Fa-f]/),Ve=Ct(/[!-/:-@[-`{-~]/);function Xe(je){return je!==null&&je<-2}function qe(je){return je!==null&&(je<0||je===32)}function Je(je){return je===-2||je===-1||je===32}const mt=Ct(new RegExp("\\p{P}|\\p{S}","u")),st=Ct(/\s/);function Ct(je){return te;function te(ne){return ne!==null&&ne>-1&&je.test(String.fromCharCode(ne))}}},58222: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 Le(he,se){const ge={},Se={};for(const Ce of he)Object.assign(ge,Ce.property),Object.assign(Se,Ce.normal);return new le(ge,Se,se)}var De=de(64326),Ie=de(95516);function Ye(he){const se={},ge={};for(const[Se,Ce]of Object.entries(he.properties)){const Oe=new Ie.I(Se,he.transform(he.attributes||{},Se),Ce,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 Fe=de(56488);const Ve=Ye({properties:{ariaActiveDescendant:null,ariaAtomic:Fe.booleanish,ariaAutoComplete:null,ariaBusy:Fe.booleanish,ariaChecked:Fe.booleanish,ariaColCount:Fe.number,ariaColIndex:Fe.number,ariaColSpan:Fe.number,ariaControls:Fe.spaceSeparated,ariaCurrent:null,ariaDescribedBy:Fe.spaceSeparated,ariaDetails:null,ariaDisabled:Fe.booleanish,ariaDropEffect:Fe.spaceSeparated,ariaErrorMessage:null,ariaExpanded:Fe.booleanish,ariaFlowTo:Fe.spaceSeparated,ariaGrabbed:Fe.booleanish,ariaHasPopup:null,ariaHidden:Fe.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Fe.spaceSeparated,ariaLevel:Fe.number,ariaLive:null,ariaModal:Fe.booleanish,ariaMultiLine:Fe.booleanish,ariaMultiSelectable:Fe.booleanish,ariaOrientation:null,ariaOwns:Fe.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:Fe.number,ariaPressed:Fe.booleanish,ariaReadOnly:Fe.booleanish,ariaRelevant:null,ariaRequired:Fe.booleanish,ariaRoleDescription:Fe.spaceSeparated,ariaRowCount:Fe.number,ariaRowIndex:Fe.number,ariaRowSpan:Fe.number,ariaSelected:Fe.booleanish,ariaSetSize:Fe.number,ariaSort:null,ariaValueMax:Fe.number,ariaValueMin:Fe.number,ariaValueNow:Fe.number,ariaValueText:null,role:null},transform(he,se){return se==="role"?se:"aria-"+se.slice(4).toLowerCase()}});function Xe(he,se){return se in he?he[se]:se}function qe(he,se){return Xe(he,se.toLowerCase())}const Je=Ye({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Fe.commaSeparated,acceptCharset:Fe.spaceSeparated,accessKey:Fe.spaceSeparated,action:null,allow:null,allowFullScreen:Fe.boolean,allowPaymentRequest:Fe.boolean,allowUserMedia:Fe.boolean,alt:null,as:null,async:Fe.boolean,autoCapitalize:null,autoComplete:Fe.spaceSeparated,autoFocus:Fe.boolean,autoPlay:Fe.boolean,blocking:Fe.spaceSeparated,capture:null,charSet:null,checked:Fe.boolean,cite:null,className:Fe.spaceSeparated,cols:Fe.number,colSpan:null,content:null,contentEditable:Fe.booleanish,controls:Fe.boolean,controlsList:Fe.spaceSeparated,coords:Fe.number|Fe.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Fe.boolean,defer:Fe.boolean,dir:null,dirName:null,disabled:Fe.boolean,download:Fe.overloadedBoolean,draggable:Fe.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Fe.boolean,formTarget:null,headers:Fe.spaceSeparated,height:Fe.number,hidden:Fe.boolean,high:Fe.number,href:null,hrefLang:null,htmlFor:Fe.spaceSeparated,httpEquiv:Fe.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:Fe.boolean,inputMode:null,integrity:null,is:null,isMap:Fe.boolean,itemId:null,itemProp:Fe.spaceSeparated,itemRef:Fe.spaceSeparated,itemScope:Fe.boolean,itemType:Fe.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Fe.boolean,low:Fe.number,manifest:null,max:null,maxLength:Fe.number,media:null,method:null,min:null,minLength:Fe.number,multiple:Fe.boolean,muted:Fe.boolean,name:null,nonce:null,noModule:Fe.boolean,noValidate:Fe.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:Fe.boolean,optimum:Fe.number,pattern:null,ping:Fe.spaceSeparated,placeholder:null,playsInline:Fe.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Fe.boolean,referrerPolicy:null,rel:Fe.spaceSeparated,required:Fe.boolean,reversed:Fe.boolean,rows:Fe.number,rowSpan:Fe.number,sandbox:Fe.spaceSeparated,scope:null,scoped:Fe.boolean,seamless:Fe.boolean,selected:Fe.boolean,shadowRootClonable:Fe.boolean,shadowRootDelegatesFocus:Fe.boolean,shadowRootMode:null,shape:null,size:Fe.number,sizes:null,slot:null,span:Fe.number,spellCheck:Fe.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Fe.number,step:null,style:null,tabIndex:Fe.number,target:null,title:null,translate:null,type:null,typeMustMatch:Fe.boolean,useMap:null,value:Fe.booleanish,width:Fe.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Fe.spaceSeparated,axis:null,background:null,bgColor:null,border:Fe.number,borderColor:null,bottomMargin:Fe.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Fe.boolean,declare:Fe.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:Fe.number,leftMargin:Fe.number,link:null,longDesc:null,lowSrc:null,marginHeight:Fe.number,marginWidth:Fe.number,noResize:Fe.boolean,noHref:Fe.boolean,noShade:Fe.boolean,noWrap:Fe.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:Fe.number,rules:null,scheme:null,scrolling:Fe.booleanish,standby:null,summary:null,text:null,topMargin:Fe.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Fe.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Fe.boolean,disableRemotePlayback:Fe.boolean,prefix:null,property:null,results:Fe.number,security:null,unselectable:null},space:"html",transform:qe}),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:Fe.commaOrSpaceSeparated,accentHeight:Fe.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Fe.number,amplitude:Fe.number,arabicForm:null,ascent:Fe.number,attributeName:null,attributeType:null,azimuth:Fe.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Fe.number,by:null,calcMode:null,capHeight:Fe.number,className:Fe.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:Fe.number,diffuseConstant:Fe.number,direction:null,display:null,dur:null,divisor:Fe.number,dominantBaseline:null,download:Fe.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:Fe.number,enableBackground:null,end:null,event:null,exponent:Fe.number,externalResourcesRequired:null,fill:null,fillOpacity:Fe.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:Fe.commaSeparated,g2:Fe.commaSeparated,glyphName:Fe.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Fe.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Fe.number,horizOriginX:Fe.number,horizOriginY:Fe.number,id:null,ideographic:Fe.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Fe.number,k:Fe.number,k1:Fe.number,k2:Fe.number,k3:Fe.number,k4:Fe.number,kernelMatrix:Fe.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Fe.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:Fe.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:Fe.number,overlineThickness:Fe.number,paintOrder:null,panose1:null,path:null,pathLength:Fe.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Fe.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Fe.number,pointsAtY:Fe.number,pointsAtZ:Fe.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Fe.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Fe.commaOrSpaceSeparated,rev:Fe.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Fe.commaOrSpaceSeparated,requiredFeatures:Fe.commaOrSpaceSeparated,requiredFonts:Fe.commaOrSpaceSeparated,requiredFormats:Fe.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:Fe.number,specularExponent:Fe.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Fe.number,strikethroughThickness:Fe.number,string:null,stroke:null,strokeDashArray:Fe.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Fe.number,strokeOpacity:Fe.number,strokeWidth:null,style:null,surfaceScale:Fe.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Fe.commaOrSpaceSeparated,tabIndex:Fe.number,tableValues:null,target:null,targetX:Fe.number,targetY:Fe.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Fe.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Fe.number,underlineThickness:Fe.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Fe.number,values:null,vAlphabetic:Fe.number,vMathematical:Fe.number,vectorEffect:null,vHanging:Fe.number,vIdeographic:Fe.number,version:null,vertAdvY:Fe.number,vertOriginX:Fe.number,vertOriginY:Fe.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Fe.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Xe}),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()}}),Ct=Ye({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:qe}),je=Ye({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(he,se){return"xml:"+se.slice(3).toLowerCase()}}),te=Le([Ve,Je,st,Ct,je],"html"),ne=Le([Ve,mt,st,Ct,je],"svg")},84837:function(Ge,be,de){"use strict";de.d(be,{s:function(){return Ve}});var le=de(95516),Le=de(56038),De=de(64326);const Ie=/[A-Z]/g,Ye=/-[a-z]/g,Fe=/^data[-\w.:]+$/i;function Ve(Je,mt){const st=(0,De.F)(mt);let Ct=mt,je=Le.k;if(st in Je.normal)return Je.property[Je.normal[st]];if(st.length>4&&st.slice(0,4)==="data"&&Fe.test(mt)){if(mt.charAt(4)==="-"){const te=mt.slice(5).replace(Ye,qe);Ct="data"+te.charAt(0).toUpperCase()+te.slice(1)}else{const te=mt.slice(4);if(!Ye.test(te)){let ne=te.replace(Ie,Xe);ne.charAt(0)!=="-"&&(ne="-"+ne),mt="data"+ne}}je=le.I}return new je(Ct,mt)}function Xe(Je){return"-"+Je.toLowerCase()}function qe(Je){return Je.charAt(1).toUpperCase()}},64326:function(Ge,be,de){"use strict";de.d(be,{F:function(){return le}});function le(Le){return Le.toLowerCase()}},95516:function(Ge,be,de){"use strict";de.d(be,{I:function(){return Ie}});var le=de(56038),Le=de(56488);const De=Object.keys(Le);class Ie extends le.k{constructor(Ve,Xe,qe,Je){let mt=-1;if(super(Ve,Xe),Ye(this,"space",Je),typeof qe=="number")for(;++mt<De.length;){const st=De[mt];Ye(this,De[mt],(qe&Le[st])===Le[st])}}}Ie.prototype.defined=!0;function Ye(Fe,Ve,Xe){Xe&&(Fe[Ve]=Xe)}},56038:function(Ge,be,de){"use strict";de.d(be,{k:function(){return le}});class le{constructor(De,Ie){this.attribute=Ie,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},56488:function(Ge,be,de){"use strict";de.r(be),de.d(be,{boolean:function(){return Le},booleanish:function(){return De},commaOrSpaceSeparated:function(){return Xe},commaSeparated:function(){return Ve},number:function(){return Ye},overloadedBoolean:function(){return Ie},spaceSeparated:function(){return Fe}});let le=0;const Le=qe(),De=qe(),Ie=qe(),Ye=qe(),Fe=qe(),Ve=qe(),Xe=qe();function qe(){return Xy(2,++le)}},96536:function(Ge,be,de){"use strict";de.d(be,{UG:function(){return ts}});var le={};de.r(le),de.d(le,{attentionMarkers:function(){return Dl},contentInitial:function(){return sl},disable:function(){return is},document:function(){return da},flow:function(){return Xs},flowInitial:function(){return Ga},insideSpan:function(){return Pa},string:function(){return ps},text:function(){return dr}});var Le=de(87342),De=de(11630);const Ie=/[$_\p{ID_Start}]/u,Ye=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,Fe=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,Ve=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Xe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qe={};function Je(we){return we?Ie.test(String.fromCodePoint(we)):!1}function mt(we,He){const tt=(He||qe).jsx?Fe:Ye;return we?tt.test(String.fromCodePoint(we)):!1}function st(we,He){return((He||qe).jsx?Xe:Ve).test(we)}const Ct=/[ \t\n\f\r]/g;function je(we){return typeof we=="object"?we.type==="text"?te(we.value):!1:te(we)}function te(we){return we.replace(Ct,"")===""}var ne=de(58222),he=de(84837);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),Ce=de(17970);function Oe(we){return!we||typeof we!="object"?"":"position"in we||"type"in we?Qe(we.position):"start"in we||"end"in we?Qe(we):"line"in we||"column"in we?Be(we):""}function Be(we){return ot(we&&we.line)+":"+ot(we&&we.column)}function Qe(we){return Be(we&&we.start)+"-"+Be(we&&we.end)}function ot(we){return we&&typeof we=="number"?we:1}class rt extends Error{constructor(He,Ke,tt){super(),typeof Ke=="string"&&(tt=Ke,Ke=void 0);let Et="",xt={},_t=!1;if(Ke&&("line"in Ke&&"column"in Ke?xt={place:Ke}:"start"in Ke&&"end"in Ke?xt={place:Ke}:"type"in Ke?xt={ancestors:[Ke],place:Ke.position}:xt=Po({},Ke)),typeof He=="string"?Et=He:!xt.cause&&He&&(_t=!0,Et=He.message,xt.cause=He),!xt.ruleId&&!xt.source&&typeof tt=="string"){const Un=tt.indexOf(":");Un===-1?xt.ruleId=tt:(xt.source=tt.slice(0,Un),xt.ruleId=tt.slice(Un+1))}if(!xt.place&&xt.ancestors&&xt.ancestors){const Un=xt.ancestors[xt.ancestors.length-1];Un&&(xt.place=Un.position)}const Qt=xt.place&&"start"in xt.place?xt.place.start:xt.place;this.ancestors=xt.ancestors||void 0,this.cause=xt.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(xt.place)||"1:1",this.place=xt.place||void 0,this.reason=this.message,this.ruleId=xt.ruleId||void 0,this.source=xt.source||void 0,this.stack=_t&&xt.cause&&typeof xt.cause.stack=="string"?xt.cause.stack:"",this.actual,this.expected,this.note,this.url}}rt.prototype.file="",rt.prototype.name="",rt.prototype.reason="",rt.prototype.message="",rt.prototype.stack="",rt.prototype.column=void 0,rt.prototype.line=void 0,rt.prototype.ancestors=void 0,rt.prototype.cause=void 0,rt.prototype.fatal=void 0,rt.prototype.place=void 0,rt.prototype.ruleId=void 0,rt.prototype.source=void 0;const ft={}.hasOwnProperty,bt=new Map,ut=/[A-Z]/g,Tt=new Set(["table","tbody","thead","tfoot","tr"]),Dt=new Set(["td","th"]),en="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Cn(we,He){if(!He||He.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const Ke=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(Ke,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=cn(Ke,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:Ke,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},xt=vn(Et,we,void 0);return xt&&typeof xt!="string"?xt:Et.create(we,Et.Fragment,{children:xt||void 0},void 0)}function vn(we,He,Ke){if(He.type==="element")return pn(we,He,Ke);if(He.type==="mdxFlowExpression"||He.type==="mdxTextExpression")return mn(we,He);if(He.type==="mdxJsxFlowElement"||He.type==="mdxJsxTextElement")return ct(we,He,Ke);if(He.type==="mdxjsEsm")return Mt(we,He);if(He.type==="root")return nt(we,He,Ke);if(He.type==="text")return dn(we,He)}function pn(we,He,Ke){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 xt=hi(we,He.tagName,!1),_t=_n(we,He);let Qt=si(we,He);return Tt.has(He.tagName)&&(Qt=Qt.filter(function(Un){return typeof Un=="string"?!je(Un):!0})),En(we,_t,xt,He),Nt(_t,Qt),we.ancestors.pop(),we.schema=tt,we.create(He,xt,_t,Ke)}function mn(we,He){if(He.data&&He.data.estree&&we.evaluater){const tt=He.data.estree.body[0];return(0,Le.ok)(tt.type==="ExpressionStatement"),we.evaluater.evaluateExpression(tt.expression)}et(we,He.position)}function Mt(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,Ke){const tt=we.schema;let Et=tt;He.name==="svg"&&tt.space==="html"&&(Et=ne.YP,we.schema=Et),we.ancestors.push(He);const xt=He.name===null?we.Fragment:hi(we,He.name,!0),_t=kn(we,He),Qt=si(we,He);return En(we,_t,xt,He),Nt(_t,Qt),we.ancestors.pop(),we.schema=tt,we.create(He,xt,_t,Ke)}function nt(we,He,Ke){const tt={};return Nt(tt,si(we,He)),we.create(He,we.Fragment,tt,Ke)}function dn(we,He){return He.value}function En(we,He,Ke,tt){typeof Ke!="string"&&Ke!==we.Fragment&&we.passNode&&(He.node=tt)}function Nt(we,He){if(He.length>0){const Ke=He.length>1?He:He[0];Ke&&(we.children=Ke)}}function cn(we,He,Ke){return tt;function tt(Et,xt,_t,Qt){const Yn=Array.isArray(_t.children)?Ke:He;return Qt?Yn(xt,_t,Qt):Yn(xt,_t)}}function ln(we,He){return Ke;function Ke(tt,Et,xt,_t){const Qt=Array.isArray(xt.children),Un=(0,Ce.Pk)(tt);return He(Et,xt,_t,Qt,{columnNumber:Un?Un.column-1:void 0,fileName:we,lineNumber:Un?Un.line:void 0},void 0)}}function _n(we,He){const Ke={};let tt,Et;for(Et in He.properties)if(Et!=="children"&&ft.call(He.properties,Et)){const xt=kt(we,Et,He.properties[Et]);if(xt){const[_t,Qt]=xt;we.tableCellAlignToStyle&&_t==="align"&&typeof Qt=="string"&&Dt.has(He.tagName)?tt=Qt:Ke[_t]=Qt}}if(tt){const xt=Ke.style||(Ke.style={});xt[we.stylePropertyNameCase==="css"?"text-align":"textAlign"]=tt}return Ke}function kn(we,He){const Ke={};for(const tt of He.attributes)if(tt.type==="mdxJsxExpressionAttribute")if(tt.data&&tt.data.estree&&we.evaluater){const xt=tt.data.estree.body[0];(0,Le.ok)(xt.type==="ExpressionStatement");const _t=xt.expression;(0,Le.ok)(_t.type==="ObjectExpression");const Qt=_t.properties[0];(0,Le.ok)(Qt.type==="SpreadElement"),Object.assign(Ke,we.evaluater.evaluateExpression(Qt.argument))}else et(we,He.position);else{const Et=tt.name;let xt;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,Le.ok)(Qt.type==="ExpressionStatement"),xt=we.evaluater.evaluateExpression(Qt.expression)}else et(we,He.position);else xt=tt.value===null?!0:tt.value;Ke[Et]=xt}return Ke}function si(we,He){const Ke=[];let tt=-1;const Et=we.passKeys?new Map:bt;for(;++tt<He.children.length;){const xt=He.children[tt];let _t;if(we.passKeys){const Un=xt.type==="element"?xt.tagName:xt.type==="mdxJsxFlowElement"||xt.type==="mdxJsxTextElement"?xt.name:void 0;if(Un){const Yn=Et.get(Un)||0;_t=Un+"-"+Yn,Et.set(Un,Yn+1)}}const Qt=vn(we,xt,_t);Qt!==void 0&&Ke.push(Qt)}return Ke}function kt(we,He,Ke){const tt=(0,he.s)(we.schema,He);if(!(Ke==null||typeof Ke=="number"&&Number.isNaN(Ke))){if(Array.isArray(Ke)&&(Ke=tt.commaSeparated?(0,De.P)(Ke):(0,ge.P)(Ke)),tt.property==="style"){let Et=typeof Ke=="object"?Ke:Kn(we,String(Ke));return we.stylePropertyNameCase==="css"&&(Et=_e(Et)),["style",Et]}return[we.elementAttributeNameCase==="react"&&tt.space?se[tt.property]||tt.property:tt.attribute,Ke]}}function Kn(we,He){try{return Se(He,{reactCompat:!0})}catch(Ke){if(we.ignoreInvalidStyle)return{};const tt=Ke,Et=new rt("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=en+"#cannot-parse-style-attribute",Et}}function hi(we,He,Ke){let tt;if(!Ke)tt={type:"Literal",value:He};else if(He.includes(".")){const Et=He.split(".");let xt=-1,_t;for(;++xt<Et.length;){const Qt=st(Et[xt])?{type:"Identifier",name:Et[xt]}:{type:"Literal",value:Et[xt]};_t=_t?{type:"MemberExpression",object:_t,property:Qt,computed:!!(xt&&Qt.type==="Literal"),optional:!1}:Qt}(0,Le.ok)(_t,"always a result"),tt=_t}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 ft.call(we.components,Et)?we.components[Et]:Et}if(we.evaluater)return we.evaluater.evaluateExpression(tt);et(we)}function et(we,He){const Ke=new rt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:we.ancestors,place:He,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw Ke.file=we.filePath||void 0,Ke.url=en+"#cannot-handle-mdx-estrees-without-createevaluater",Ke}function _e(we){const He={};let Ke;for(Ke in we)ft.call(we,Ke)&&(He[xe(Ke)]=we[Ke]);return He}function xe(we){let He=we.replace(ut,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 Ae=de(37712),at=de(59301);const Lt={};function Pt(we,He){const Ke=He||Lt,tt=typeof Ke.includeImageAlt=="boolean"?Ke.includeImageAlt:!0,Et=typeof Ke.includeHtml=="boolean"?Ke.includeHtml:!0;return Vt(we,tt,Et)}function Vt(we,He,Ke){if(an(we)){if("value"in we)return we.type==="html"&&!Ke?"":we.value;if(He&&"alt"in we&&we.alt)return we.alt;if("children"in we)return It(we.children,He,Ke)}return Array.isArray(we)?It(we,He,Ke):""}function It(we,He,Ke){const tt=[];let Et=-1;for(;++Et<we.length;)tt[Et]=Vt(we[Et],He,Ke);return tt.join("")}function an(we){return!!(we&&typeof we=="object")}function sn(we,He,Ke,tt){const Et=we.length;let xt=0,_t;if(He<0?He=-He>Et?0:Et+He:He=He>Et?Et:He,Ke=Ke>0?Ke:0,tt.length<1e4)_t=Array.from(tt),_t.unshift(He,Ke),we.splice(..._t);else for(Ke&&we.splice(He,Ke);xt<tt.length;)_t=tt.slice(xt,xt+1e4),_t.unshift(He,0),we.splice(..._t),xt+=1e4,He+=1e4}function on(we,He){return we.length>0?(sn(we,we.length,0,He),we):He}class bn{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,Ke){const tt=Ke==null?Number.POSITIVE_INFINITY:Ke;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,Ke,tt){const Et=Ke||0;this.setCursor(Math.trunc(He));const xt=this.right.splice(this.right.length-Et,Number.POSITIVE_INFINITY);return tt&&un(this.left,tt),xt.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),un(this.left,He)}unshift(He){this.setCursor(0),this.right.push(He)}unshiftMany(He){this.setCursor(0),un(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 Ke=this.left.splice(He,Number.POSITIVE_INFINITY);un(this.right,Ke.reverse())}else{const Ke=this.right.splice(this.left.length+this.right.length-He,Number.POSITIVE_INFINITY);un(this.left,Ke.reverse())}}}function un(we,He){let Ke=0;if(He.length<1e4)we.push(...He);else for(;Ke<He.length;)we.push(...He.slice(Ke,Ke+1e4)),Ke+=1e4}function zt(we){const He={};let Ke=-1,tt,Et,xt,_t,Qt,Un,Yn;const Tn=new bn(we);for(;++Ke<Tn.length;){for(;Ke in He;)Ke=He[Ke];if(tt=Tn.get(Ke),Ke&&tt[1].type==="chunkFlow"&&Tn.get(Ke-1)[1].type==="listItemPrefix"&&(Un=tt[1]._tokenizer.events,xt=0,xt<Un.length&&Un[xt][1].type==="lineEndingBlank"&&(xt+=2),xt<Un.length&&Un[xt][1].type==="content"))for(;++xt<Un.length&&Un[xt][1].type!=="content";)Un[xt][1].type==="chunkText"&&(Un[xt][1]._isInFirstContentOfListItem=!0,xt++);if(tt[0]==="enter")tt[1].contentType&&(Object.assign(He,xn(Tn,Ke)),Ke=He[Ke],Yn=!0);else if(tt[1]._container){for(xt=Ke,Et=void 0;xt--;)if(_t=Tn.get(xt),_t[1].type==="lineEnding"||_t[1].type==="lineEndingBlank")_t[0]==="enter"&&(Et&&(Tn.get(Et)[1].type="lineEndingBlank"),_t[1].type="lineEnding",Et=xt);else if(!(_t[1].type==="linePrefix"||_t[1].type==="listItemIndent"))break;Et&&(tt[1].end=Po({},Tn.get(Et)[1].start),Qt=Tn.slice(Et,Ke),Qt.unshift(tt),Tn.splice(Et,Ke-Et+1,Qt))}}return sn(we,0,Number.POSITIVE_INFINITY,Tn.slice(0)),!Yn}function xn(we,He){const Ke=we.get(He)[1],tt=we.get(He)[2];let Et=He-1;const xt=[];let _t=Ke._tokenizer;_t||(_t=tt.parser[Ke.contentType](Ke.start),Ke._contentTypeTextTrailing&&(_t._contentTypeTextTrailing=!0));const Qt=_t.events,Un=[],Yn={};let Tn,oi,ni=-1,In=Ke,Fr=0,eo=0;const co=[eo];for(;In;){for(;we.get(++Et)[1]!==In;);xt.push(Et),In._tokenizer||(Tn=tt.sliceStream(In),In.next||Tn.push(null),oi&&_t.defineSkip(In.start),In._isInFirstContentOfListItem&&(_t._gfmTasklistFirstContentOfListItem=!0),_t.write(Tn),In._isInFirstContentOfListItem&&(_t._gfmTasklistFirstContentOfListItem=void 0)),oi=In,In=In.next}for(In=Ke;++ni<Qt.length;)Qt[ni][0]==="exit"&&Qt[ni-1][0]==="enter"&&Qt[ni][1].type===Qt[ni-1][1].type&&Qt[ni][1].start.line!==Qt[ni][1].end.line&&(eo=ni+1,co.push(eo),In._tokenizer=void 0,In.previous=void 0,In=In.next);for(_t.events=[],In?(In._tokenizer=void 0,In.previous=void 0):co.pop(),ni=co.length;ni--;){const vr=Qt.slice(co[ni],co[ni+1]),jr=xt.pop();Un.push([jr,jr+vr.length-1]),we.splice(jr,2,vr)}for(Un.reverse(),ni=-1;++ni<Un.length;)Yn[Fr+Un[ni][0]]=Fr+Un[ni][1],Fr+=Un[ni][1]-Un[ni][0]-1;return Yn}function fn(we){for(;!zt(we););return we}const An={}.hasOwnProperty;function nn(we){const He={};let Ke=-1;for(;++Ke<we.length;)ci(He,we[Ke]);return He}function ci(we,He){let Ke;for(Ke in He){const Et=(An.call(we,Ke)?we[Ke]:void 0)||(we[Ke]={}),xt=He[Ke];let _t;if(xt)for(_t in xt){An.call(Et,_t)||(Et[_t]=[]);const Qt=xt[_t];zn(Et[_t],Array.isArray(Qt)?Qt:Qt?[Qt]:[])}}}function zn(we,He){let Ke=-1;const tt=[];for(;++Ke<He.length;)(He[Ke].add==="after"?we:tt).push(He[Ke]);sn(we,0,0,tt)}function yt(we){const He={};let Ke=-1;for(;++Ke<we.length;)Fn(He,we[Ke]);return He}function Fn(we,He){let Ke;for(Ke in He){const Et=(An.call(we,Ke)?we[Ke]:void 0)||(we[Ke]={}),xt=He[Ke];let _t;if(xt)for(_t in xt)Et[_t]=xt[_t]}}var Pn=de(26735),Ht=de(80722);const fi={tokenize:zi};function zi(we){const He=we.attempt(this.parser.constructs.contentInitial,tt,Et);let Ke;return He;function tt(Qt){if(Qt===null){we.consume(Qt);return}return we.enter("lineEnding"),we.consume(Qt),we.exit("lineEnding"),(0,Pn.f)(we,He,"linePrefix")}function Et(Qt){return we.enter("paragraph"),xt(Qt)}function xt(Qt){const Un=we.enter("chunkText",{contentType:"text",previous:Ke});return Ke&&(Ke.next=Un),Ke=Un,_t(Qt)}function _t(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"),xt):(we.consume(Qt),_t)}}const Li={tokenize:qi},Dn={tokenize:Ui};function qi(we){const He=this,Ke=[];let tt=0,Et,xt,_t;return Qt;function Qt(Wr){if(tt<Ke.length){const la=Ke[tt];return He.containerState=la[1],we.attempt(la[0].continuation,Un,Yn)(Wr)}return Yn(Wr)}function Un(Wr){if(tt++,He.containerState._closeFlow){He.containerState._closeFlow=void 0,Et&&jr();const la=He.events.length;let ua=la,$i;for(;ua--;)if(He.events[ua][0]==="exit"&&He.events[ua][1].type==="chunkFlow"){$i=He.events[ua][1].end;break}vr(tt);let ha=la;for(;ha<He.events.length;)He.events[ha][1].end=Po({},$i),ha++;return sn(He.events,ua+1,0,He.events.slice(la)),He.events.length=ha,Yn(Wr)}return Qt(Wr)}function Yn(Wr){if(tt===Ke.length){if(!Et)return ni(Wr);if(Et.currentConstruct&&Et.currentConstruct.concrete)return Fr(Wr);He.interrupt=!!(Et.currentConstruct&&!Et._gfmTableDynamicInterruptHack)}return He.containerState={},we.check(Dn,Tn,oi)(Wr)}function Tn(Wr){return Et&&jr(),vr(tt),ni(Wr)}function oi(Wr){return He.parser.lazy[He.now().line]=tt!==Ke.length,_t=He.now().offset,Fr(Wr)}function ni(Wr){return He.containerState={},we.attempt(Dn,In,Fr)(Wr)}function In(Wr){return tt++,Ke.push([He.currentConstruct,He.containerState]),ni(Wr)}function Fr(Wr){if(Wr===null){Et&&jr(),vr(0),we.consume(Wr);return}return Et=Et||He.parser.flow(He.now()),we.enter("chunkFlow",{_tokenizer:Et,contentType:"flow",previous:xt}),eo(Wr)}function eo(Wr){if(Wr===null){co(we.exit("chunkFlow"),!0),vr(0),we.consume(Wr);return}return(0,Ht.Ch)(Wr)?(we.consume(Wr),co(we.exit("chunkFlow")),tt=0,He.interrupt=void 0,Qt):(we.consume(Wr),eo)}function co(Wr,la){const ua=He.sliceStream(Wr);if(la&&ua.push(null),Wr.previous=xt,xt&&(xt.next=Wr),xt=Wr,Et.defineSkip(Wr.start),Et.write(ua),He.parser.lazy[Wr.start.line]){let $i=Et.events.length;for(;$i--;)if(Et.events[$i][1].start.offset<_t&&(!Et.events[$i][1].end||Et.events[$i][1].end.offset>_t))return;const ha=He.events.length;let Oa=ha,ia,Rr;for(;Oa--;)if(He.events[Oa][0]==="exit"&&He.events[Oa][1].type==="chunkFlow"){if(ia){Rr=He.events[Oa][1].end;break}ia=!0}for(vr(tt),$i=ha;$i<He.events.length;)He.events[$i][1].end=Po({},Rr),$i++;sn(He.events,Oa+1,0,He.events.slice(ha)),He.events.length=$i}}function vr(Wr){let la=Ke.length;for(;la-- >Wr;){const ua=Ke[la];He.containerState=ua[1],ua[0].exit.call(He,we)}Ke.length=Wr}function jr(){Et.write([null]),xt=void 0,Et=void 0,He.containerState._closeFlow=void 0}}function Ui(we,He,Ke){return(0,Pn.f)(we,we.attempt(this.parser.constructs.document,He,Ke),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const ui={partial:!0,tokenize:bi};function bi(we,He,Ke){return tt;function tt(xt){return(0,Ht.xz)(xt)?(0,Pn.f)(we,Et,"linePrefix")(xt):Et(xt)}function Et(xt){return xt===null||(0,Ht.Ch)(xt)?He(xt):Ke(xt)}}const Ri={resolve:gi,tokenize:Ii},ke={partial:!0,tokenize:ki};function gi(we){return zt(we),we}function Ii(we,He){let Ke;return tt;function tt(Qt){return we.enter("content"),Ke=we.enter("chunkContent",{contentType:"content"}),Et(Qt)}function Et(Qt){return Qt===null?xt(Qt):(0,Ht.Ch)(Qt)?we.check(ke,_t,xt)(Qt):(we.consume(Qt),Et)}function xt(Qt){return we.exit("chunkContent"),we.exit("content"),He(Qt)}function _t(Qt){return we.consume(Qt),we.exit("chunkContent"),Ke.next=we.enter("chunkContent",{contentType:"content",previous:Ke}),Ke=Ke.next,Et}}function ki(we,He,Ke){const tt=this;return Et;function Et(_t){return we.exit("chunkContent"),we.enter("lineEnding"),we.consume(_t),we.exit("lineEnding"),(0,Pn.f)(we,xt,"linePrefix")}function xt(_t){if(_t===null||(0,Ht.Ch)(_t))return Ke(_t);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(_t):we.interrupt(tt.parser.constructs.flow,Ke,He)(_t)}}const ar={tokenize:Nr};function Nr(we){const He=this,Ke=we.attempt(ui,tt,we.attempt(this.parser.constructs.flowInitial,Et,(0,Pn.f)(we,we.attempt(this.parser.constructs.flow,Et,we.attempt(Ri,Et)),"linePrefix")));return Ke;function tt(xt){if(xt===null){we.consume(xt);return}return we.enter("lineEndingBlank"),we.consume(xt),we.exit("lineEndingBlank"),He.currentConstruct=void 0,Ke}function Et(xt){if(xt===null){we.consume(xt);return}return we.enter("lineEnding"),we.consume(xt),we.exit("lineEnding"),He.currentConstruct=void 0,Ke}}const sr={resolveAll:Wt()},Di=Zt("string"),Ei=Zt("text");function Zt(we){return{resolveAll:Wt(we==="text"?Rt:void 0),tokenize:He};function He(Ke){const tt=this,Et=this.parser.constructs[we],xt=Ke.attempt(Et,_t,Qt);return _t;function _t(Tn){return Yn(Tn)?xt(Tn):Qt(Tn)}function Qt(Tn){if(Tn===null){Ke.consume(Tn);return}return Ke.enter("data"),Ke.consume(Tn),Un}function Un(Tn){return Yn(Tn)?(Ke.exit("data"),xt(Tn)):(Ke.consume(Tn),Un)}function Yn(Tn){if(Tn===null)return!0;const oi=Et[Tn];let ni=-1;if(oi)for(;++ni<oi.length;){const In=oi[ni];if(!In.previous||In.previous.call(tt,tt.previous))return!0}return!1}}}function Wt(we){return He;function He(Ke,tt){let Et=-1,xt;for(;++Et<=Ke.length;)xt===void 0?Ke[Et]&&Ke[Et][1].type==="data"&&(xt=Et,Et++):(!Ke[Et]||Ke[Et][1].type!=="data")&&(Et!==xt+2&&(Ke[xt][1].end=Ke[Et-1][1].end,Ke.splice(xt+2,Et-xt-2),Et=xt+2),xt=void 0);return we?we(Ke,tt):Ke}}function Rt(we,He){let Ke=0;for(;++Ke<=we.length;)if((Ke===we.length||we[Ke][1].type==="lineEnding")&&we[Ke-1][1].type==="data"){const tt=we[Ke-1][1],Et=He.sliceStream(tt);let xt=Et.length,_t=-1,Qt=0,Un;for(;xt--;){const Yn=Et[xt];if(typeof Yn=="string"){for(_t=Yn.length;Yn.charCodeAt(_t-1)===32;)Qt++,_t--;if(_t)break;_t=-1}else if(Yn===-2)Un=!0,Qt++;else if(Yn!==-1){xt++;break}}if(He._contentTypeTextTrailing&&Ke===we.length&&(Qt=0),Qt){const Yn={type:Ke===we.length||Un||Qt<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:xt?_t:tt.start._bufferIndex+_t,_index:tt.start._index+xt,line:tt.end.line,column:tt.end.column-Qt,offset:tt.end.offset-Qt},end:Po({},tt.end)};tt.end=Po({},Yn.start),tt.start.offset===tt.end.offset?Object.assign(tt,Yn):(we.splice(Ke,0,["enter",Yn,He],["exit",Yn,He]),Ke+=2)}Ke++}return we}const rn={name:"thematicBreak",tokenize:Xt};function Xt(we,He,Ke){let tt=0,Et;return xt;function xt(Yn){return we.enter("thematicBreak"),_t(Yn)}function _t(Yn){return Et=Yn,Qt(Yn)}function Qt(Yn){return Yn===Et?(we.enter("thematicBreakSequence"),Un(Yn)):tt>=3&&(Yn===null||(0,Ht.Ch)(Yn))?(we.exit("thematicBreak"),He(Yn)):Ke(Yn)}function Un(Yn){return Yn===Et?(we.consume(Yn),tt++,Un):(we.exit("thematicBreakSequence"),(0,Ht.xz)(Yn)?(0,Pn.f)(we,Qt,"whitespace")(Yn):Qt(Yn))}}const Sn={continuation:{tokenize:Gt},exit:pt,name:"list",tokenize:qt},Rn={partial:!0,tokenize:yn},Jn={partial:!0,tokenize:ti};function qt(we,He,Ke){const tt=this,Et=tt.events[tt.events.length-1];let xt=Et&&Et[1].type==="linePrefix"?Et[2].sliceSerialize(Et[1],!0).length:0,_t=0;return Qt;function Qt(In){const Fr=tt.containerState.type||(In===42||In===43||In===45?"listUnordered":"listOrdered");if(Fr==="listUnordered"?!tt.containerState.marker||In===tt.containerState.marker:(0,Ht.pY)(In)){if(tt.containerState.type||(tt.containerState.type=Fr,we.enter(Fr,{_container:!0})),Fr==="listUnordered")return we.enter("listItemPrefix"),In===42||In===45?we.check(rn,Ke,Yn)(In):Yn(In);if(!tt.interrupt||In===49)return we.enter("listItemPrefix"),we.enter("listItemValue"),Un(In)}return Ke(In)}function Un(In){return(0,Ht.pY)(In)&&++_t<10?(we.consume(In),Un):(!tt.interrupt||_t<2)&&(tt.containerState.marker?In===tt.containerState.marker:In===41||In===46)?(we.exit("listItemValue"),Yn(In)):Ke(In)}function Yn(In){return we.enter("listItemMarker"),we.consume(In),we.exit("listItemMarker"),tt.containerState.marker=tt.containerState.marker||In,we.check(ui,tt.interrupt?Ke:Tn,we.attempt(Rn,ni,oi))}function Tn(In){return tt.containerState.initialBlankLine=!0,xt++,ni(In)}function oi(In){return(0,Ht.xz)(In)?(we.enter("listItemPrefixWhitespace"),we.consume(In),we.exit("listItemPrefixWhitespace"),ni):Ke(In)}function ni(In){return tt.containerState.size=xt+tt.sliceSerialize(we.exit("listItemPrefix"),!0).length,He(In)}}function Gt(we,He,Ke){const tt=this;return tt.containerState._closeFlow=void 0,we.check(ui,Et,xt);function Et(Qt){return tt.containerState.furtherBlankLines=tt.containerState.furtherBlankLines||tt.containerState.initialBlankLine,(0,Pn.f)(we,He,"listItemIndent",tt.containerState.size+1)(Qt)}function xt(Qt){return tt.containerState.furtherBlankLines||!(0,Ht.xz)(Qt)?(tt.containerState.furtherBlankLines=void 0,tt.containerState.initialBlankLine=void 0,_t(Qt)):(tt.containerState.furtherBlankLines=void 0,tt.containerState.initialBlankLine=void 0,we.attempt(Jn,He,_t)(Qt))}function _t(Qt){return tt.containerState._closeFlow=!0,tt.interrupt=void 0,(0,Pn.f)(we,we.attempt(Sn,He,Ke),"linePrefix",tt.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Qt)}}function ti(we,He,Ke){const tt=this;return(0,Pn.f)(we,Et,"listItemIndent",tt.containerState.size+1);function Et(xt){const _t=tt.events[tt.events.length-1];return _t&&_t[1].type==="listItemIndent"&&_t[2].sliceSerialize(_t[1],!0).length===tt.containerState.size?He(xt):Ke(xt)}}function pt(we){we.exit(this.containerState.type)}function yn(we,He,Ke){const tt=this;return(0,Pn.f)(we,Et,"listItemPrefixWhitespace",tt.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function Et(xt){const _t=tt.events[tt.events.length-1];return!(0,Ht.xz)(xt)&&_t&&_t[1].type==="listItemPrefixWhitespace"?He(xt):Ke(xt)}}const ii={continuation:{tokenize:Ut},exit:$n,name:"blockQuote",tokenize:xi};function xi(we,He,Ke){const tt=this;return Et;function Et(_t){if(_t===62){const Qt=tt.containerState;return Qt.open||(we.enter("blockQuote",{_container:!0}),Qt.open=!0),we.enter("blockQuotePrefix"),we.enter("blockQuoteMarker"),we.consume(_t),we.exit("blockQuoteMarker"),xt}return Ke(_t)}function xt(_t){return(0,Ht.xz)(_t)?(we.enter("blockQuotePrefixWhitespace"),we.consume(_t),we.exit("blockQuotePrefixWhitespace"),we.exit("blockQuotePrefix"),He):(we.exit("blockQuotePrefix"),He(_t))}}function Ut(we,He,Ke){const tt=this;return Et;function Et(_t){return(0,Ht.xz)(_t)?(0,Pn.f)(we,xt,"linePrefix",tt.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_t):xt(_t)}function xt(_t){return we.attempt(ii,He,Ke)(_t)}}function $n(we){we.exit("blockQuote")}function pi(we,He,Ke,tt,Et,xt,_t,Qt,Un){const Yn=Un||Number.POSITIVE_INFINITY;let Tn=0;return oi;function oi(vr){return vr===60?(we.enter(tt),we.enter(Et),we.enter(xt),we.consume(vr),we.exit(xt),ni):vr===null||vr===32||vr===41||(0,Ht.Av)(vr)?Ke(vr):(we.enter(tt),we.enter(_t),we.enter(Qt),we.enter("chunkString",{contentType:"string"}),eo(vr))}function ni(vr){return vr===62?(we.enter(xt),we.consume(vr),we.exit(xt),we.exit(Et),we.exit(tt),He):(we.enter(Qt),we.enter("chunkString",{contentType:"string"}),In(vr))}function In(vr){return vr===62?(we.exit("chunkString"),we.exit(Qt),ni(vr)):vr===null||vr===60||(0,Ht.Ch)(vr)?Ke(vr):(we.consume(vr),vr===92?Fr:In)}function Fr(vr){return vr===60||vr===62||vr===92?(we.consume(vr),In):In(vr)}function eo(vr){return!Tn&&(vr===null||vr===41||(0,Ht.z3)(vr))?(we.exit("chunkString"),we.exit(Qt),we.exit(_t),we.exit(tt),He(vr)):Tn<Yn&&vr===40?(we.consume(vr),Tn++,eo):vr===41?(we.consume(vr),Tn--,eo):vr===null||vr===32||vr===40||(0,Ht.Av)(vr)?Ke(vr):(we.consume(vr),vr===92?co:eo)}function co(vr){return vr===40||vr===41||vr===92?(we.consume(vr),eo):eo(vr)}}function Kt(we,He,Ke,tt,Et,xt){const _t=this;let Qt=0,Un;return Yn;function Yn(In){return we.enter(tt),we.enter(Et),we.consume(In),we.exit(Et),we.enter(xt),Tn}function Tn(In){return Qt>999||In===null||In===91||In===93&&!Un||In===94&&!Qt&&"_hiddenFootnoteSupport"in _t.parser.constructs?Ke(In):In===93?(we.exit(xt),we.enter(Et),we.consume(In),we.exit(Et),we.exit(tt),He):(0,Ht.Ch)(In)?(we.enter("lineEnding"),we.consume(In),we.exit("lineEnding"),Tn):(we.enter("chunkString",{contentType:"string"}),oi(In))}function oi(In){return In===null||In===91||In===93||(0,Ht.Ch)(In)||Qt++>999?(we.exit("chunkString"),Tn(In)):(we.consume(In),Un||(Un=!(0,Ht.xz)(In)),In===92?ni:oi)}function ni(In){return In===91||In===92||In===93?(we.consume(In),Qt++,oi):oi(In)}}function Ue(we,He,Ke,tt,Et,xt){let _t;return Qt;function Qt(ni){return ni===34||ni===39||ni===40?(we.enter(tt),we.enter(Et),we.consume(ni),we.exit(Et),_t=ni===40?41:ni,Un):Ke(ni)}function Un(ni){return ni===_t?(we.enter(Et),we.consume(ni),we.exit(Et),we.exit(tt),He):(we.enter(xt),Yn(ni))}function Yn(ni){return ni===_t?(we.exit(xt),Un(_t)):ni===null?Ke(ni):(0,Ht.Ch)(ni)?(we.enter("lineEnding"),we.consume(ni),we.exit("lineEnding"),(0,Pn.f)(we,Yn,"linePrefix")):(we.enter("chunkString",{contentType:"string"}),Tn(ni))}function Tn(ni){return ni===_t||ni===null||(0,Ht.Ch)(ni)?(we.exit("chunkString"),Yn(ni)):(we.consume(ni),ni===92?oi:Tn)}function oi(ni){return ni===_t||ni===92?(we.consume(ni),Tn):Tn(ni)}}function wi(we,He){let Ke;return tt;function tt(Et){return(0,Ht.Ch)(Et)?(we.enter("lineEnding"),we.consume(Et),we.exit("lineEnding"),Ke=!0,tt):(0,Ht.xz)(Et)?(0,Pn.f)(we,tt,Ke?"linePrefix":"lineSuffix")(Et):He(Et)}}function ai(we){return we.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Mn={name:"definition",tokenize:Ki},ji={partial:!0,tokenize:Zi};function Ki(we,He,Ke){const tt=this;let Et;return xt;function xt(In){return we.enter("definition"),_t(In)}function _t(In){return Kt.call(tt,we,Qt,Ke,"definitionLabel","definitionLabelMarker","definitionLabelString")(In)}function Qt(In){return Et=ai(tt.sliceSerialize(tt.events[tt.events.length-1][1]).slice(1,-1)),In===58?(we.enter("definitionMarker"),we.consume(In),we.exit("definitionMarker"),Un):Ke(In)}function Un(In){return(0,Ht.z3)(In)?wi(we,Yn)(In):Yn(In)}function Yn(In){return pi(we,Tn,Ke,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(In)}function Tn(In){return we.attempt(ji,oi,oi)(In)}function oi(In){return(0,Ht.xz)(In)?(0,Pn.f)(we,ni,"whitespace")(In):ni(In)}function ni(In){return In===null||(0,Ht.Ch)(In)?(we.exit("definition"),tt.parser.defined.push(Et),He(In)):Ke(In)}}function Zi(we,He,Ke){return tt;function tt(Qt){return(0,Ht.z3)(Qt)?wi(we,Et)(Qt):Ke(Qt)}function Et(Qt){return Ue(we,xt,Ke,"definitionTitle","definitionTitleMarker","definitionTitleString")(Qt)}function xt(Qt){return(0,Ht.xz)(Qt)?(0,Pn.f)(we,_t,"whitespace")(Qt):_t(Qt)}function _t(Qt){return Qt===null||(0,Ht.Ch)(Qt)?He(Qt):Ke(Qt)}}const Nn={name:"codeIndented",tokenize:Ji},Jt={partial:!0,tokenize:zr};function Ji(we,He,Ke){const tt=this;return Et;function Et(Yn){return we.enter("codeIndented"),(0,Pn.f)(we,xt,"linePrefix",5)(Yn)}function xt(Yn){const Tn=tt.events[tt.events.length-1];return Tn&&Tn[1].type==="linePrefix"&&Tn[2].sliceSerialize(Tn[1],!0).length>=4?_t(Yn):Ke(Yn)}function _t(Yn){return Yn===null?Un(Yn):(0,Ht.Ch)(Yn)?we.attempt(Jt,_t,Un)(Yn):(we.enter("codeFlowValue"),Qt(Yn))}function Qt(Yn){return Yn===null||(0,Ht.Ch)(Yn)?(we.exit("codeFlowValue"),_t(Yn)):(we.consume(Yn),Qt)}function Un(Yn){return we.exit("codeIndented"),He(Yn)}}function zr(we,He,Ke){const tt=this;return Et;function Et(_t){return tt.parser.lazy[tt.now().line]?Ke(_t):(0,Ht.Ch)(_t)?(we.enter("lineEnding"),we.consume(_t),we.exit("lineEnding"),Et):(0,Pn.f)(we,xt,"linePrefix",5)(_t)}function xt(_t){const Qt=tt.events[tt.events.length-1];return Qt&&Qt[1].type==="linePrefix"&&Qt[2].sliceSerialize(Qt[1],!0).length>=4?He(_t):(0,Ht.Ch)(_t)?Et(_t):Ke(_t)}}const wn={name:"headingAtx",resolve:vi,tokenize:Ni};function vi(we,He){let Ke=we.length-2,tt=3,Et,xt;return we[tt][1].type==="whitespace"&&(tt+=2),Ke-2>tt&&we[Ke][1].type==="whitespace"&&(Ke-=2),we[Ke][1].type==="atxHeadingSequence"&&(tt===Ke-1||Ke-4>tt&&we[Ke-2][1].type==="whitespace")&&(Ke-=tt+1===Ke?2:4),Ke>tt&&(Et={type:"atxHeadingText",start:we[tt][1].start,end:we[Ke][1].end},xt={type:"chunkText",start:we[tt][1].start,end:we[Ke][1].end,contentType:"text"},sn(we,tt,Ke-tt+1,[["enter",Et,He],["enter",xt,He],["exit",xt,He],["exit",Et,He]])),we}function Ni(we,He,Ke){let tt=0;return Et;function Et(Tn){return we.enter("atxHeading"),xt(Tn)}function xt(Tn){return we.enter("atxHeadingSequence"),_t(Tn)}function _t(Tn){return Tn===35&&tt++<6?(we.consume(Tn),_t):Tn===null||(0,Ht.z3)(Tn)?(we.exit("atxHeadingSequence"),Qt(Tn)):Ke(Tn)}function Qt(Tn){return Tn===35?(we.enter("atxHeadingSequence"),Un(Tn)):Tn===null||(0,Ht.Ch)(Tn)?(we.exit("atxHeading"),He(Tn)):(0,Ht.xz)(Tn)?(0,Pn.f)(we,Qt,"whitespace")(Tn):(we.enter("atxHeadingText"),Yn(Tn))}function Un(Tn){return Tn===35?(we.consume(Tn),Un):(we.exit("atxHeadingSequence"),Qt(Tn))}function Yn(Tn){return Tn===null||Tn===35||(0,Ht.z3)(Tn)?(we.exit("atxHeadingText"),Qt(Tn)):(we.consume(Tn),Yn)}}const Bi={name:"setextUnderline",resolveTo:Fi,tokenize:Wi};function Fi(we,He){let Ke=we.length,tt,Et,xt;for(;Ke--;)if(we[Ke][0]==="enter"){if(we[Ke][1].type==="content"){tt=Ke;break}we[Ke][1].type==="paragraph"&&(Et=Ke)}else we[Ke][1].type==="content"&&we.splice(Ke,1),!xt&&we[Ke][1].type==="definition"&&(xt=Ke);const _t={type:"setextHeading",start:Po({},we[tt][1].start),end:Po({},we[we.length-1][1].end)};return we[Et][1].type="setextHeadingText",xt?(we.splice(Et,0,["enter",_t,He]),we.splice(xt+1,0,["exit",we[tt][1],He]),we[tt][1].end=Po({},we[xt][1].end)):we[tt][1]=_t,we.push(["exit",_t,He]),we}function Wi(we,He,Ke){const tt=this;let Et;return xt;function xt(Yn){let Tn=tt.events.length,oi;for(;Tn--;)if(tt.events[Tn][1].type!=="lineEnding"&&tt.events[Tn][1].type!=="linePrefix"&&tt.events[Tn][1].type!=="content"){oi=tt.events[Tn][1].type==="paragraph";break}return!tt.parser.lazy[tt.now().line]&&(tt.interrupt||oi)?(we.enter("setextHeadingLine"),Et=Yn,_t(Yn)):Ke(Yn)}function _t(Yn){return we.enter("setextHeadingLineSequence"),Qt(Yn)}function Qt(Yn){return Yn===Et?(we.consume(Yn),Qt):(we.exit("setextHeadingLineSequence"),(0,Ht.xz)(Yn)?(0,Pn.f)(we,Un,"lineSuffix")(Yn):Un(Yn))}function Un(Yn){return Yn===null||(0,Ht.Ch)(Yn)?(we.exit("setextHeadingLine"),He(Yn)):Ke(Yn)}}const cr=["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"],mr=["pre","script","style","textarea"],Tr={concrete:!0,name:"htmlFlow",resolveTo:ur,tokenize:Bn},Mr={partial:!0,tokenize:Er},Gn={partial:!0,tokenize:br};function ur(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 Bn(we,He,Ke){const tt=this;let Et,xt,_t,Qt,Un;return Yn;function Yn(ei){return Tn(ei)}function Tn(ei){return we.enter("htmlFlow"),we.enter("htmlFlowData"),we.consume(ei),oi}function oi(ei){return ei===33?(we.consume(ei),ni):ei===47?(we.consume(ei),xt=!0,eo):ei===63?(we.consume(ei),Et=3,tt.interrupt?He:Zn):(0,Ht.jv)(ei)?(we.consume(ei),_t=String.fromCharCode(ei),co):Ke(ei)}function ni(ei){return ei===45?(we.consume(ei),Et=2,In):ei===91?(we.consume(ei),Et=5,Qt=0,Fr):(0,Ht.jv)(ei)?(we.consume(ei),Et=4,tt.interrupt?He:Zn):Ke(ei)}function In(ei){return ei===45?(we.consume(ei),tt.interrupt?He:Zn):Ke(ei)}function Fr(ei){const Ns="CDATA[";return ei===Ns.charCodeAt(Qt++)?(we.consume(ei),Qt===Ns.length?tt.interrupt?He:Ea:Fr):Ke(ei)}function eo(ei){return(0,Ht.jv)(ei)?(we.consume(ei),_t=String.fromCharCode(ei),co):Ke(ei)}function co(ei){if(ei===null||ei===47||ei===62||(0,Ht.z3)(ei)){const Ns=ei===47,Fl=_t.toLowerCase();return!Ns&&!xt&&mr.includes(Fl)?(Et=1,tt.interrupt?He(ei):Ea(ei)):cr.includes(_t.toLowerCase())?(Et=6,Ns?(we.consume(ei),vr):tt.interrupt?He(ei):Ea(ei)):(Et=7,tt.interrupt&&!tt.parser.lazy[tt.now().line]?Ke(ei):xt?jr(ei):Wr(ei))}return ei===45||(0,Ht.H$)(ei)?(we.consume(ei),_t+=String.fromCharCode(ei),co):Ke(ei)}function vr(ei){return ei===62?(we.consume(ei),tt.interrupt?He:Ea):Ke(ei)}function jr(ei){return(0,Ht.xz)(ei)?(we.consume(ei),jr):Rr(ei)}function Wr(ei){return ei===47?(we.consume(ei),Rr):ei===58||ei===95||(0,Ht.jv)(ei)?(we.consume(ei),la):(0,Ht.xz)(ei)?(we.consume(ei),Wr):Rr(ei)}function la(ei){return ei===45||ei===46||ei===58||ei===95||(0,Ht.H$)(ei)?(we.consume(ei),la):ua(ei)}function ua(ei){return ei===61?(we.consume(ei),$i):(0,Ht.xz)(ei)?(we.consume(ei),ua):Wr(ei)}function $i(ei){return ei===null||ei===60||ei===61||ei===62||ei===96?Ke(ei):ei===34||ei===39?(we.consume(ei),Un=ei,ha):(0,Ht.xz)(ei)?(we.consume(ei),$i):Oa(ei)}function ha(ei){return ei===Un?(we.consume(ei),Un=null,ia):ei===null||(0,Ht.Ch)(ei)?Ke(ei):(we.consume(ei),ha)}function Oa(ei){return ei===null||ei===34||ei===39||ei===47||ei===60||ei===61||ei===62||ei===96||(0,Ht.z3)(ei)?ua(ei):(we.consume(ei),Oa)}function ia(ei){return ei===47||ei===62||(0,Ht.xz)(ei)?Wr(ei):Ke(ei)}function Rr(ei){return ei===62?(we.consume(ei),Bs):Ke(ei)}function Bs(ei){return ei===null||(0,Ht.Ch)(ei)?Ea(ei):(0,Ht.xz)(ei)?(we.consume(ei),Bs):Ke(ei)}function Ea(ei){return ei===45&&Et===2?(we.consume(ei),ka):ei===60&&Et===1?(we.consume(ei),gs):ei===62&&Et===4?(we.consume(ei),_s):ei===63&&Et===3?(we.consume(ei),Zn):ei===93&&Et===5?(we.consume(ei),dl):(0,Ht.Ch)(ei)&&(Et===6||Et===7)?(we.exit("htmlFlowData"),we.check(Mr,bl,uo)(ei)):ei===null||(0,Ht.Ch)(ei)?(we.exit("htmlFlowData"),uo(ei)):(we.consume(ei),Ea)}function uo(ei){return we.check(Gn,oo,bl)(ei)}function oo(ei){return we.enter("lineEnding"),we.consume(ei),we.exit("lineEnding"),_o}function _o(ei){return ei===null||(0,Ht.Ch)(ei)?uo(ei):(we.enter("htmlFlowData"),Ea(ei))}function ka(ei){return ei===45?(we.consume(ei),Zn):Ea(ei)}function gs(ei){return ei===47?(we.consume(ei),_t="",Cs):Ea(ei)}function Cs(ei){if(ei===62){const Ns=_t.toLowerCase();return mr.includes(Ns)?(we.consume(ei),_s):Ea(ei)}return(0,Ht.jv)(ei)&&_t.length<8?(we.consume(ei),_t+=String.fromCharCode(ei),Cs):Ea(ei)}function dl(ei){return ei===93?(we.consume(ei),Zn):Ea(ei)}function Zn(ei){return ei===62?(we.consume(ei),_s):ei===45&&Et===2?(we.consume(ei),Zn):Ea(ei)}function _s(ei){return ei===null||(0,Ht.Ch)(ei)?(we.exit("htmlFlowData"),bl(ei)):(we.consume(ei),_s)}function bl(ei){return we.exit("htmlFlow"),He(ei)}}function br(we,He,Ke){const tt=this;return Et;function Et(_t){return(0,Ht.Ch)(_t)?(we.enter("lineEnding"),we.consume(_t),we.exit("lineEnding"),xt):Ke(_t)}function xt(_t){return tt.parser.lazy[tt.now().line]?Ke(_t):He(_t)}}function Er(we,He,Ke){return tt;function tt(Et){return we.enter("lineEnding"),we.consume(Et),we.exit("lineEnding"),we.attempt(ui,He,Ke)}}const pr={partial:!0,tokenize:Ur},$r={concrete:!0,name:"codeFenced",tokenize:Xr};function Xr(we,He,Ke){const tt=this,Et={partial:!0,tokenize:ua};let xt=0,_t=0,Qt;return Un;function Un($i){return Yn($i)}function Yn($i){const ha=tt.events[tt.events.length-1];return xt=ha&&ha[1].type==="linePrefix"?ha[2].sliceSerialize(ha[1],!0).length:0,Qt=$i,we.enter("codeFenced"),we.enter("codeFencedFence"),we.enter("codeFencedFenceSequence"),Tn($i)}function Tn($i){return $i===Qt?(_t++,we.consume($i),Tn):_t<3?Ke($i):(we.exit("codeFencedFenceSequence"),(0,Ht.xz)($i)?(0,Pn.f)(we,oi,"whitespace")($i):oi($i))}function oi($i){return $i===null||(0,Ht.Ch)($i)?(we.exit("codeFencedFence"),tt.interrupt?He($i):we.check(pr,eo,la)($i)):(we.enter("codeFencedFenceInfo"),we.enter("chunkString",{contentType:"string"}),ni($i))}function ni($i){return $i===null||(0,Ht.Ch)($i)?(we.exit("chunkString"),we.exit("codeFencedFenceInfo"),oi($i)):(0,Ht.xz)($i)?(we.exit("chunkString"),we.exit("codeFencedFenceInfo"),(0,Pn.f)(we,In,"whitespace")($i)):$i===96&&$i===Qt?Ke($i):(we.consume($i),ni)}function In($i){return $i===null||(0,Ht.Ch)($i)?oi($i):(we.enter("codeFencedFenceMeta"),we.enter("chunkString",{contentType:"string"}),Fr($i))}function Fr($i){return $i===null||(0,Ht.Ch)($i)?(we.exit("chunkString"),we.exit("codeFencedFenceMeta"),oi($i)):$i===96&&$i===Qt?Ke($i):(we.consume($i),Fr)}function eo($i){return we.attempt(Et,la,co)($i)}function co($i){return we.enter("lineEnding"),we.consume($i),we.exit("lineEnding"),vr}function vr($i){return xt>0&&(0,Ht.xz)($i)?(0,Pn.f)(we,jr,"linePrefix",xt+1)($i):jr($i)}function jr($i){return $i===null||(0,Ht.Ch)($i)?we.check(pr,eo,la)($i):(we.enter("codeFlowValue"),Wr($i))}function Wr($i){return $i===null||(0,Ht.Ch)($i)?(we.exit("codeFlowValue"),jr($i)):(we.consume($i),Wr)}function la($i){return we.exit("codeFenced"),He($i)}function ua($i,ha,Oa){let ia=0;return Rr;function Rr(_o){return $i.enter("lineEnding"),$i.consume(_o),$i.exit("lineEnding"),Bs}function Bs(_o){return $i.enter("codeFencedFence"),(0,Ht.xz)(_o)?(0,Pn.f)($i,Ea,"linePrefix",tt.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_o):Ea(_o)}function Ea(_o){return _o===Qt?($i.enter("codeFencedFenceSequence"),uo(_o)):Oa(_o)}function uo(_o){return _o===Qt?(ia++,$i.consume(_o),uo):ia>=_t?($i.exit("codeFencedFenceSequence"),(0,Ht.xz)(_o)?(0,Pn.f)($i,oo,"whitespace")(_o):oo(_o)):Oa(_o)}function oo(_o){return _o===null||(0,Ht.Ch)(_o)?($i.exit("codeFencedFence"),ha(_o)):Oa(_o)}}}function Ur(we,He,Ke){const tt=this;return Et;function Et(_t){return _t===null?Ke(_t):(we.enter("lineEnding"),we.consume(_t),we.exit("lineEnding"),xt)}function xt(_t){return tt.parser.lazy[tt.now().line]?Ke(_t):He(_t)}}const Yr=document.createElement("i");function Vo(we){const He="&"+we+";";Yr.innerHTML=He;const Ke=Yr.textContent;return Ke.charCodeAt(Ke.length-1)===59&&we!=="semi"||Ke===He?!1:Ke}const Kr={name:"characterReference",tokenize:Ti};function Ti(we,He,Ke){const tt=this;let Et=0,xt,_t;return Qt;function Qt(oi){return we.enter("characterReference"),we.enter("characterReferenceMarker"),we.consume(oi),we.exit("characterReferenceMarker"),Un}function Un(oi){return oi===35?(we.enter("characterReferenceMarkerNumeric"),we.consume(oi),we.exit("characterReferenceMarkerNumeric"),Yn):(we.enter("characterReferenceValue"),xt=31,_t=Ht.H$,Tn(oi))}function Yn(oi){return oi===88||oi===120?(we.enter("characterReferenceMarkerHexadecimal"),we.consume(oi),we.exit("characterReferenceMarkerHexadecimal"),we.enter("characterReferenceValue"),xt=6,_t=Ht.AF,Tn):(we.enter("characterReferenceValue"),xt=7,_t=Ht.pY,Tn(oi))}function Tn(oi){if(oi===59&&Et){const ni=we.exit("characterReferenceValue");return _t===Ht.H$&&!Vo(tt.sliceSerialize(ni))?Ke(oi):(we.enter("characterReferenceMarker"),we.consume(oi),we.exit("characterReferenceMarker"),we.exit("characterReference"),He)}return _t(oi)&&Et++<xt?(we.consume(oi),Tn):Ke(oi)}}const lt={name:"characterEscape",tokenize:xo};function xo(we,He,Ke){return tt;function tt(xt){return we.enter("characterEscape"),we.enter("escapeMarker"),we.consume(xt),we.exit("escapeMarker"),Et}function Et(xt){return(0,Ht.sR)(xt)?(we.enter("characterEscapeValue"),we.consume(xt),we.exit("characterEscapeValue"),we.exit("characterEscape"),He):Ke(xt)}}const Ar={name:"lineEnding",tokenize:Or};function Or(we,He){return Ke;function Ke(tt){return we.enter("lineEnding"),we.consume(tt),we.exit("lineEnding"),(0,Pn.f)(we,He,"linePrefix")}}function no(we,He,Ke){const tt=[];let Et=-1;for(;++Et<we.length;){const xt=we[Et].resolveAll;xt&&!tt.includes(xt)&&(He=xt(He,Ke),tt.push(xt))}return He}const po={name:"labelEnd",resolveAll:wr,resolveTo:kr,tokenize:Ho},Vi={tokenize:hr},er={tokenize:rr},Ir={tokenize:ri};function wr(we){let He=-1;const Ke=[];for(;++He<we.length;){const tt=we[He][1];if(Ke.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!==Ke.length&&sn(we,0,we.length,Ke),we}function kr(we,He){let Ke=we.length,tt=0,Et,xt,_t,Qt;for(;Ke--;)if(Et=we[Ke][1],xt){if(Et.type==="link"||Et.type==="labelLink"&&Et._inactive)break;we[Ke][0]==="enter"&&Et.type==="labelLink"&&(Et._inactive=!0)}else if(_t){if(we[Ke][0]==="enter"&&(Et.type==="labelImage"||Et.type==="labelLink")&&!Et._balanced&&(xt=Ke,Et.type!=="labelLink")){tt=2;break}}else Et.type==="labelEnd"&&(_t=Ke);const Un={type:we[xt][1].type==="labelLink"?"link":"image",start:Po({},we[xt][1].start),end:Po({},we[we.length-1][1].end)},Yn={type:"label",start:Po({},we[xt][1].start),end:Po({},we[_t][1].end)},Tn={type:"labelText",start:Po({},we[xt+tt+2][1].end),end:Po({},we[_t-2][1].start)};return Qt=[["enter",Un,He],["enter",Yn,He]],Qt=on(Qt,we.slice(xt+1,xt+tt+3)),Qt=on(Qt,[["enter",Tn,He]]),Qt=on(Qt,no(He.parser.constructs.insideSpan.null,we.slice(xt+tt+4,_t-3),He)),Qt=on(Qt,[["exit",Tn,He],we[_t-2],we[_t-1],["exit",Yn,He]]),Qt=on(Qt,we.slice(_t+1)),Qt=on(Qt,[["exit",Un,He]]),sn(we,xt,we.length,Qt),we}function Ho(we,He,Ke){const tt=this;let Et=tt.events.length,xt,_t;for(;Et--;)if((tt.events[Et][1].type==="labelImage"||tt.events[Et][1].type==="labelLink")&&!tt.events[Et][1]._balanced){xt=tt.events[Et][1];break}return Qt;function Qt(ni){return xt?xt._inactive?oi(ni):(_t=tt.parser.defined.includes(ai(tt.sliceSerialize({start:xt.end,end:tt.now()}))),we.enter("labelEnd"),we.enter("labelMarker"),we.consume(ni),we.exit("labelMarker"),we.exit("labelEnd"),Un):Ke(ni)}function Un(ni){return ni===40?we.attempt(Vi,Tn,_t?Tn:oi)(ni):ni===91?we.attempt(er,Tn,_t?Yn:oi)(ni):_t?Tn(ni):oi(ni)}function Yn(ni){return we.attempt(Ir,Tn,oi)(ni)}function Tn(ni){return He(ni)}function oi(ni){return xt._balanced=!0,Ke(ni)}}function hr(we,He,Ke){return tt;function tt(oi){return we.enter("resource"),we.enter("resourceMarker"),we.consume(oi),we.exit("resourceMarker"),Et}function Et(oi){return(0,Ht.z3)(oi)?wi(we,xt)(oi):xt(oi)}function xt(oi){return oi===41?Tn(oi):pi(we,_t,Qt,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(oi)}function _t(oi){return(0,Ht.z3)(oi)?wi(we,Un)(oi):Tn(oi)}function Qt(oi){return Ke(oi)}function Un(oi){return oi===34||oi===39||oi===40?Ue(we,Yn,Ke,"resourceTitle","resourceTitleMarker","resourceTitleString")(oi):Tn(oi)}function Yn(oi){return(0,Ht.z3)(oi)?wi(we,Tn)(oi):Tn(oi)}function Tn(oi){return oi===41?(we.enter("resourceMarker"),we.consume(oi),we.exit("resourceMarker"),we.exit("resource"),He):Ke(oi)}}function rr(we,He,Ke){const tt=this;return Et;function Et(Qt){return Kt.call(tt,we,xt,_t,"reference","referenceMarker","referenceString")(Qt)}function xt(Qt){return tt.parser.defined.includes(ai(tt.sliceSerialize(tt.events[tt.events.length-1][1]).slice(1,-1)))?He(Qt):Ke(Qt)}function _t(Qt){return Ke(Qt)}}function ri(we,He,Ke){return tt;function tt(xt){return we.enter("reference"),we.enter("referenceMarker"),we.consume(xt),we.exit("referenceMarker"),Et}function Et(xt){return xt===93?(we.enter("referenceMarker"),we.consume(xt),we.exit("referenceMarker"),we.exit("reference"),He):Ke(xt)}}const Qi={name:"labelStartImage",resolveAll:po.resolveAll,tokenize:Qr};function Qr(we,He,Ke){const tt=this;return Et;function Et(Qt){return we.enter("labelImage"),we.enter("labelImageMarker"),we.consume(Qt),we.exit("labelImageMarker"),xt}function xt(Qt){return Qt===91?(we.enter("labelMarker"),we.consume(Qt),we.exit("labelMarker"),we.exit("labelImage"),_t):Ke(Qt)}function _t(Qt){return Qt===94&&"_hiddenFootnoteSupport"in tt.parser.constructs?Ke(Qt):He(Qt)}}function zo(we){if(we===null||(0,Ht.z3)(we)||(0,Ht.B8)(we))return 1;if((0,Ht.Xh)(we))return 2}const Oo={name:"attention",resolveAll:Co,tokenize:Go};function Co(we,He){let Ke=-1,tt,Et,xt,_t,Qt,Un,Yn,Tn;for(;++Ke<we.length;)if(we[Ke][0]==="enter"&&we[Ke][1].type==="attentionSequence"&&we[Ke][1]._close){for(tt=Ke;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[Ke][1]).charCodeAt(0)){if((we[tt][1]._close||we[Ke][1]._open)&&(we[Ke][1].end.offset-we[Ke][1].start.offset)%3&&!((we[tt][1].end.offset-we[tt][1].start.offset+we[Ke][1].end.offset-we[Ke][1].start.offset)%3))continue;Un=we[tt][1].end.offset-we[tt][1].start.offset>1&&we[Ke][1].end.offset-we[Ke][1].start.offset>1?2:1;const oi=Po({},we[tt][1].end),ni=Po({},we[Ke][1].start);Lo(oi,-Un),Lo(ni,Un),_t={type:Un>1?"strongSequence":"emphasisSequence",start:oi,end:Po({},we[tt][1].end)},Qt={type:Un>1?"strongSequence":"emphasisSequence",start:Po({},we[Ke][1].start),end:ni},xt={type:Un>1?"strongText":"emphasisText",start:Po({},we[tt][1].end),end:Po({},we[Ke][1].start)},Et={type:Un>1?"strong":"emphasis",start:Po({},_t.start),end:Po({},Qt.end)},we[tt][1].end=Po({},_t.start),we[Ke][1].start=Po({},Qt.end),Yn=[],we[tt][1].end.offset-we[tt][1].start.offset&&(Yn=on(Yn,[["enter",we[tt][1],He],["exit",we[tt][1],He]])),Yn=on(Yn,[["enter",Et,He],["enter",_t,He],["exit",_t,He],["enter",xt,He]]),Yn=on(Yn,no(He.parser.constructs.insideSpan.null,we.slice(tt+1,Ke),He)),Yn=on(Yn,[["exit",xt,He],["enter",Qt,He],["exit",Qt,He],["exit",Et,He]]),we[Ke][1].end.offset-we[Ke][1].start.offset?(Tn=2,Yn=on(Yn,[["enter",we[Ke][1],He],["exit",we[Ke][1],He]])):Tn=0,sn(we,tt-1,Ke-tt+3,Yn),Ke=tt+Yn.length-Tn-2;break}}for(Ke=-1;++Ke<we.length;)we[Ke][1].type==="attentionSequence"&&(we[Ke][1].type="data");return we}function Go(we,He){const Ke=this.parser.constructs.attentionMarkers.null,tt=this.previous,Et=zo(tt);let xt;return _t;function _t(Un){return xt=Un,we.enter("attentionSequence"),Qt(Un)}function Qt(Un){if(Un===xt)return we.consume(Un),Qt;const Yn=we.exit("attentionSequence"),Tn=zo(Un),oi=!Tn||Tn===2&&Et||Ke.includes(Un),ni=!Et||Et===2&&Tn||Ke.includes(tt);return Yn._open=!!(xt===42?oi:oi&&(Et||!ni)),Yn._close=!!(xt===42?ni:ni&&(Tn||!oi)),He(Un)}}function Lo(we,He){we.column+=He,we.offset+=He,we._bufferIndex+=He}const Sa={name:"autolink",tokenize:sa};function sa(we,He,Ke){let tt=0;return Et;function Et(In){return we.enter("autolink"),we.enter("autolinkMarker"),we.consume(In),we.exit("autolinkMarker"),we.enter("autolinkProtocol"),xt}function xt(In){return(0,Ht.jv)(In)?(we.consume(In),_t):In===64?Ke(In):Yn(In)}function _t(In){return In===43||In===45||In===46||(0,Ht.H$)(In)?(tt=1,Qt(In)):Yn(In)}function Qt(In){return In===58?(we.consume(In),tt=0,Un):(In===43||In===45||In===46||(0,Ht.H$)(In))&&tt++<32?(we.consume(In),Qt):(tt=0,Yn(In))}function Un(In){return In===62?(we.exit("autolinkProtocol"),we.enter("autolinkMarker"),we.consume(In),we.exit("autolinkMarker"),we.exit("autolink"),He):In===null||In===32||In===60||(0,Ht.Av)(In)?Ke(In):(we.consume(In),Un)}function Yn(In){return In===64?(we.consume(In),Tn):(0,Ht.n9)(In)?(we.consume(In),Yn):Ke(In)}function Tn(In){return(0,Ht.H$)(In)?oi(In):Ke(In)}function oi(In){return In===46?(we.consume(In),tt=0,Tn):In===62?(we.exit("autolinkProtocol").type="autolinkEmail",we.enter("autolinkMarker"),we.consume(In),we.exit("autolinkMarker"),we.exit("autolink"),He):ni(In)}function ni(In){if((In===45||(0,Ht.H$)(In))&&tt++<63){const Fr=In===45?ni:oi;return we.consume(In),Fr}return Ke(In)}}const es={name:"htmlText",tokenize:gn};function gn(we,He,Ke){const tt=this;let Et,xt,_t;return Qt;function Qt(Zn){return we.enter("htmlText"),we.enter("htmlTextData"),we.consume(Zn),Un}function Un(Zn){return Zn===33?(we.consume(Zn),Yn):Zn===47?(we.consume(Zn),ua):Zn===63?(we.consume(Zn),Wr):(0,Ht.jv)(Zn)?(we.consume(Zn),Oa):Ke(Zn)}function Yn(Zn){return Zn===45?(we.consume(Zn),Tn):Zn===91?(we.consume(Zn),xt=0,Fr):(0,Ht.jv)(Zn)?(we.consume(Zn),jr):Ke(Zn)}function Tn(Zn){return Zn===45?(we.consume(Zn),In):Ke(Zn)}function oi(Zn){return Zn===null?Ke(Zn):Zn===45?(we.consume(Zn),ni):(0,Ht.Ch)(Zn)?(_t=oi,gs(Zn)):(we.consume(Zn),oi)}function ni(Zn){return Zn===45?(we.consume(Zn),In):oi(Zn)}function In(Zn){return Zn===62?ka(Zn):Zn===45?ni(Zn):oi(Zn)}function Fr(Zn){const _s="CDATA[";return Zn===_s.charCodeAt(xt++)?(we.consume(Zn),xt===_s.length?eo:Fr):Ke(Zn)}function eo(Zn){return Zn===null?Ke(Zn):Zn===93?(we.consume(Zn),co):(0,Ht.Ch)(Zn)?(_t=eo,gs(Zn)):(we.consume(Zn),eo)}function co(Zn){return Zn===93?(we.consume(Zn),vr):eo(Zn)}function vr(Zn){return Zn===62?ka(Zn):Zn===93?(we.consume(Zn),vr):eo(Zn)}function jr(Zn){return Zn===null||Zn===62?ka(Zn):(0,Ht.Ch)(Zn)?(_t=jr,gs(Zn)):(we.consume(Zn),jr)}function Wr(Zn){return Zn===null?Ke(Zn):Zn===63?(we.consume(Zn),la):(0,Ht.Ch)(Zn)?(_t=Wr,gs(Zn)):(we.consume(Zn),Wr)}function la(Zn){return Zn===62?ka(Zn):Wr(Zn)}function ua(Zn){return(0,Ht.jv)(Zn)?(we.consume(Zn),$i):Ke(Zn)}function $i(Zn){return Zn===45||(0,Ht.H$)(Zn)?(we.consume(Zn),$i):ha(Zn)}function ha(Zn){return(0,Ht.Ch)(Zn)?(_t=ha,gs(Zn)):(0,Ht.xz)(Zn)?(we.consume(Zn),ha):ka(Zn)}function Oa(Zn){return Zn===45||(0,Ht.H$)(Zn)?(we.consume(Zn),Oa):Zn===47||Zn===62||(0,Ht.z3)(Zn)?ia(Zn):Ke(Zn)}function ia(Zn){return Zn===47?(we.consume(Zn),ka):Zn===58||Zn===95||(0,Ht.jv)(Zn)?(we.consume(Zn),Rr):(0,Ht.Ch)(Zn)?(_t=ia,gs(Zn)):(0,Ht.xz)(Zn)?(we.consume(Zn),ia):ka(Zn)}function Rr(Zn){return Zn===45||Zn===46||Zn===58||Zn===95||(0,Ht.H$)(Zn)?(we.consume(Zn),Rr):Bs(Zn)}function Bs(Zn){return Zn===61?(we.consume(Zn),Ea):(0,Ht.Ch)(Zn)?(_t=Bs,gs(Zn)):(0,Ht.xz)(Zn)?(we.consume(Zn),Bs):ia(Zn)}function Ea(Zn){return Zn===null||Zn===60||Zn===61||Zn===62||Zn===96?Ke(Zn):Zn===34||Zn===39?(we.consume(Zn),Et=Zn,uo):(0,Ht.Ch)(Zn)?(_t=Ea,gs(Zn)):(0,Ht.xz)(Zn)?(we.consume(Zn),Ea):(we.consume(Zn),oo)}function uo(Zn){return Zn===Et?(we.consume(Zn),Et=void 0,_o):Zn===null?Ke(Zn):(0,Ht.Ch)(Zn)?(_t=uo,gs(Zn)):(we.consume(Zn),uo)}function oo(Zn){return Zn===null||Zn===34||Zn===39||Zn===60||Zn===61||Zn===96?Ke(Zn):Zn===47||Zn===62||(0,Ht.z3)(Zn)?ia(Zn):(we.consume(Zn),oo)}function _o(Zn){return Zn===47||Zn===62||(0,Ht.z3)(Zn)?ia(Zn):Ke(Zn)}function ka(Zn){return Zn===62?(we.consume(Zn),we.exit("htmlTextData"),we.exit("htmlText"),He):Ke(Zn)}function gs(Zn){return we.exit("htmlTextData"),we.enter("lineEnding"),we.consume(Zn),we.exit("lineEnding"),Cs}function Cs(Zn){return(0,Ht.xz)(Zn)?(0,Pn.f)(we,dl,"linePrefix",tt.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Zn):dl(Zn)}function dl(Zn){return we.enter("htmlTextData"),_t(Zn)}}const oa={name:"labelStartLink",resolveAll:po.resolveAll,tokenize:kl};function kl(we,He,Ke){const tt=this;return Et;function Et(_t){return we.enter("labelLink"),we.enter("labelMarker"),we.consume(_t),we.exit("labelMarker"),we.exit("labelLink"),xt}function xt(_t){return _t===94&&"_hiddenFootnoteSupport"in tt.parser.constructs?Ke(_t):He(_t)}}const Ha={name:"hardBreakEscape",tokenize:yl};function yl(we,He,Ke){return tt;function tt(xt){return we.enter("hardBreakEscape"),we.consume(xt),Et}function Et(xt){return(0,Ht.Ch)(xt)?(we.exit("hardBreakEscape"),He(xt)):Ke(xt)}}const Io={name:"codeText",previous:Ln,resolve:lu,tokenize:Uo};function lu(we){let He=we.length-4,Ke=3,tt,Et;if((we[Ke][1].type==="lineEnding"||we[Ke][1].type==="space")&&(we[He][1].type==="lineEnding"||we[He][1].type==="space")){for(tt=Ke;++tt<He;)if(we[tt][1].type==="codeTextData"){we[Ke][1].type="codeTextPadding",we[He][1].type="codeTextPadding",Ke+=2,He-=2;break}}for(tt=Ke-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 Ln(we){return we!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Uo(we,He,Ke){const tt=this;let Et=0,xt,_t;return Qt;function Qt(ni){return we.enter("codeText"),we.enter("codeTextSequence"),Un(ni)}function Un(ni){return ni===96?(we.consume(ni),Et++,Un):(we.exit("codeTextSequence"),Yn(ni))}function Yn(ni){return ni===null?Ke(ni):ni===32?(we.enter("space"),we.consume(ni),we.exit("space"),Yn):ni===96?(_t=we.enter("codeTextSequence"),xt=0,oi(ni)):(0,Ht.Ch)(ni)?(we.enter("lineEnding"),we.consume(ni),we.exit("lineEnding"),Yn):(we.enter("codeTextData"),Tn(ni))}function Tn(ni){return ni===null||ni===32||ni===96||(0,Ht.Ch)(ni)?(we.exit("codeTextData"),Yn(ni)):(we.consume(ni),Tn)}function oi(ni){return ni===96?(we.consume(ni),xt++,oi):xt===Et?(we.exit("codeTextSequence"),we.exit("codeText"),He(ni)):(_t.type="codeTextData",Tn(ni))}}const da={42:Sn,43:Sn,45:Sn,48:Sn,49:Sn,50:Sn,51:Sn,52:Sn,53:Sn,54:Sn,55:Sn,56:Sn,57:Sn,62:ii},sl={91:Mn},Ga={[-2]:Nn,[-1]:Nn,32:Nn},Xs={35:wn,42:rn,45:[Bi,rn],60:Tr,61:Bi,95:rn,96:$r,126:$r},ps={38:Kr,92:lt},dr={[-5]:Ar,[-4]:Ar,[-3]:Ar,33:Qi,38:Kr,42:Oo,60:[Sa,es],91:oa,92:[Ha,lt],93:po,95:Oo,96:Io},Pa={null:[Oo,sr]},Dl={null:[42,95]},is={null:[]};function Jr(we,He,Ke){let tt={_bufferIndex:-1,_index:0,line:Ke&&Ke.line||1,column:Ke&&Ke.column||1,offset:Ke&&Ke.offset||0};const Et={},xt=[];let _t=[],Qt=[],Un=!0;const Yn={attempt:ia(ha),check:ia(Oa),consume:la,enter:ua,exit:$i,interrupt:ia(Oa,{interrupt:!0})},Tn={code:null,containerState:{},defineSkip:vr,events:[],now:co,parser:we,previous:null,sliceSerialize:Fr,sliceStream:eo,write:In};let oi=He.tokenize.call(Tn,Yn),ni;return He.resolveAll&&xt.push(He),Tn;function In(uo){return _t=on(_t,uo),jr(),_t[_t.length-1]!==null?[]:(Rr(He,0),Tn.events=no(xt,Tn.events,Tn),Tn.events)}function Fr(uo,oo){return Yt(eo(uo),oo)}function eo(uo){return lo(_t,uo)}function co(){const{_bufferIndex:uo,_index:oo,line:_o,column:ka,offset:gs}=tt;return{_bufferIndex:uo,_index:oo,line:_o,column:ka,offset:gs}}function vr(uo){Et[uo.line]=uo.column,Ea()}function jr(){let uo;for(;tt._index<_t.length;){const oo=_t[tt._index];if(typeof oo=="string")for(uo=tt._index,tt._bufferIndex<0&&(tt._bufferIndex=0);tt._index===uo&&tt._bufferIndex<oo.length;)Wr(oo.charCodeAt(tt._bufferIndex));else Wr(oo)}}function Wr(uo){Un=void 0,ni=uo,oi=oi(uo)}function la(uo){(0,Ht.Ch)(uo)?(tt.line++,tt.column=1,tt.offset+=uo===-3?2:1,Ea()):uo!==-1&&(tt.column++,tt.offset++),tt._bufferIndex<0?tt._index++:(tt._bufferIndex++,tt._bufferIndex===_t[tt._index].length&&(tt._bufferIndex=-1,tt._index++)),Tn.previous=uo,Un=!0}function ua(uo,oo){const _o=oo||{};return _o.type=uo,_o.start=co(),Tn.events.push(["enter",_o,Tn]),Qt.push(_o),_o}function $i(uo){const oo=Qt.pop();return oo.end=co(),Tn.events.push(["exit",oo,Tn]),oo}function ha(uo,oo){Rr(uo,oo.from)}function Oa(uo,oo){oo.restore()}function ia(uo,oo){return _o;function _o(ka,gs,Cs){let dl,Zn,_s,bl;return Array.isArray(ka)?Ns(ka):"tokenize"in ka?Ns([ka]):ei(ka);function ei(Da){return wl;function wl(Ss){const fu=Ss!==null&&Da[Ss],Lu=Ss!==null&&Da.null,dd=[...Array.isArray(fu)?fu:fu?[fu]:[],...Array.isArray(Lu)?Lu:Lu?[Lu]:[]];return Ns(dd)(Ss)}}function Ns(Da){return dl=Da,Zn=0,Da.length===0?Cs:Fl(Da[Zn])}function Fl(Da){return wl;function wl(Ss){return bl=Bs(),_s=Da,Da.partial||(Tn.currentConstruct=Da),Da.name&&Tn.parser.constructs.disable.null.includes(Da.name)?ss(Ss):Da.tokenize.call(oo?Object.assign(Object.create(Tn),oo):Tn,Yn,Ql,ss)(Ss)}}function Ql(Da){return Un=!0,uo(_s,bl),gs}function ss(Da){return Un=!0,bl.restore(),++Zn<dl.length?Fl(dl[Zn]):Cs}}}function Rr(uo,oo){uo.resolveAll&&!xt.includes(uo)&&xt.push(uo),uo.resolve&&sn(Tn.events,oo,Tn.events.length-oo,uo.resolve(Tn.events.slice(oo),Tn)),uo.resolveTo&&(Tn.events=uo.resolveTo(Tn.events,Tn))}function Bs(){const uo=co(),oo=Tn.previous,_o=Tn.currentConstruct,ka=Tn.events.length,gs=Array.from(Qt);return{from:ka,restore:Cs};function Cs(){tt=uo,Tn.previous=oo,Tn.currentConstruct=_o,Tn.events.length=ka,Qt=gs,Ea()}}function Ea(){tt.line in Et&&tt.column<2&&(tt.column=Et[tt.line],tt.offset+=Et[tt.line]-1)}}function lo(we,He){const Ke=He.start._index,tt=He.start._bufferIndex,Et=He.end._index,xt=He.end._bufferIndex;let _t;if(Ke===Et)_t=[we[Ke].slice(tt,xt)];else{if(_t=we.slice(Ke,Et),tt>-1){const Qt=_t[0];typeof Qt=="string"?_t[0]=Qt.slice(tt):_t.shift()}xt>0&&_t.push(we[Et].slice(0,xt))}return _t}function Yt(we,He){let Ke=-1;const tt=[];let Et;for(;++Ke<we.length;){const xt=we[Ke];let _t;if(typeof xt=="string")_t=xt;else switch(xt){case-5:{_t="\r";break}case-4:{_t=`
`;break}case-3:{_t=`\r
`;break}case-2:{_t=He?" ":" ";break}case-1:{if(!He&&Et)continue;_t=" ";break}default:_t=String.fromCharCode(xt)}Et=xt===-2,tt.push(_t)}return tt.join("")}function Ci(we){const tt={constructs:nn([le,...(we||{}).extensions||[]]),content:Et(fi),defined:[],document:Et(Li),flow:Et(ar),lazy:{},string:Et(Di),text:Et(Ei)};return tt;function Et(xt){return _t;function _t(Qt){return Jr(tt,xt,Qt)}}}const Yi=/[\0\t\n\r]/g;function xr(){let we=1,He="",Ke=!0,tt;return Et;function Et(xt,_t,Qt){const Un=[];let Yn,Tn,oi,ni,In;for(xt=He+(typeof xt=="string"?xt.toString():new TextDecoder(_t||void 0).decode(xt)),oi=0,He="",Ke&&(xt.charCodeAt(0)===65279&&oi++,Ke=void 0);oi<xt.length;){if(Yi.lastIndex=oi,Yn=Yi.exec(xt),ni=Yn&&Yn.index!==void 0?Yn.index:xt.length,In=xt.charCodeAt(ni),!Yn){He=xt.slice(oi);break}if(In===10&&oi===ni&&tt)Un.push(-3),tt=void 0;else switch(tt&&(Un.push(-5),tt=void 0),oi<ni&&(Un.push(xt.slice(oi,ni)),we+=ni-oi),In){case 0:{Un.push(65533),we++;break}case 9:{for(Tn=Math.ceil(we/4)*4,Un.push(-2);we++<Tn;)Un.push(-1);break}case 10:{Un.push(-4),we=1;break}default:tt=!0,we=1}oi=ni+1}return Qt&&(tt&&Un.push(-5),He&&Un.push(He),Un.push(null)),Un}}function qr(we,He){const Ke=Number.parseInt(we,He);return Ke<9||Ke===11||Ke>13&&Ke<32||Ke>126&&Ke<160||Ke>55295&&Ke<57344||Ke>64975&&Ke<65008||(Ke&65535)===65535||(Ke&65535)===65534||Ke>1114111?"\uFFFD":String.fromCodePoint(Ke)}const Zr=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function lr(we){return we.replace(Zr,yo)}function yo(we,He,Ke){if(He)return He;if(Ke.charCodeAt(0)===35){const Et=Ke.charCodeAt(1),xt=Et===120||Et===88;return qr(Ke.slice(xt?2:1),xt?16:10)}return Vo(Ke)||we}const qo={}.hasOwnProperty;function ko(we,He,Ke){return typeof He!="string"&&(Ke=He,He=void 0),Zo(Ke)(fn(Ci(Ke).document().write(xr()(we,He,!0))))}function Zo(we){const He={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:xt(Ze),autolinkProtocol:ia,autolinkEmail:ia,atxHeading:xt(Zu),blockQuote:xt(Ss),characterEscape:ia,characterReference:ia,codeFenced:xt(fu),codeFencedFenceInfo:_t,codeFencedFenceMeta:_t,codeIndented:xt(fu,_t),codeText:xt(Lu,_t),codeTextData:ia,data:ia,codeFlowValue:ia,definition:xt(dd),definitionDestinationString:_t,definitionLabelString:_t,definitionTitleString:_t,emphasis:xt(Bl),hardBreakEscape:xt(_d),hardBreakTrailing:xt(_d),htmlFlow:xt(ue,_t),htmlFlowData:ia,htmlText:xt(ue,_t),htmlTextData:ia,image:xt(pe),label:_t,link:xt(Ze),listItem:xt(Hn),listItemValue:ni,listOrdered:xt(Ft,oi),listUnordered:xt(Ft),paragraph:xt(Si),reference:ei,referenceString:_t,resourceDestinationString:_t,resourceTitleString:_t,setextHeading:xt(Zu),strong:xt(Hi),thematicBreak:xt(ao)},exit:{atxHeading:Un(),atxHeadingSequence:ua,autolink:Un(),autolinkEmail:wl,autolinkProtocol:Da,blockQuote:Un(),characterEscapeValue:Rr,characterReferenceMarkerHexadecimal:Fl,characterReferenceMarkerNumeric:Fl,characterReferenceValue:Ql,characterReference:ss,codeFenced:Un(co),codeFencedFence:eo,codeFencedFenceInfo:In,codeFencedFenceMeta:Fr,codeFlowValue:Rr,codeIndented:Un(vr),codeText:Un(_o),codeTextData:Rr,data:Rr,definition:Un(),definitionDestinationString:la,definitionLabelString:jr,definitionTitleString:Wr,emphasis:Un(),hardBreakEscape:Un(Ea),hardBreakTrailing:Un(Ea),htmlFlow:Un(uo),htmlFlowData:Rr,htmlText:Un(oo),htmlTextData:Rr,image:Un(gs),label:dl,labelText:Cs,lineEnding:Bs,link:Un(ka),listItem:Un(),listOrdered:Un(),listUnordered:Un(),paragraph:Un(),referenceString:Ns,resourceDestinationString:Zn,resourceTitleString:_s,resource:bl,setextHeading:Un(Oa),setextHeadingLineSequence:ha,setextHeadingText:$i,strong:Un(),thematicBreak:Un()}};ms(He,(we||{}).mdastExtensions||[]);const Ke={};return tt;function tt(mi){let fr={type:"root",children:[]};const ho={stack:[fr],tokenStack:[],config:He,enter:Qt,exit:Yn,buffer:_t,resume:Tn,data:Ke},Wo=[];let ya=-1;for(;++ya<mi.length;)if(mi[ya][1].type==="listOrdered"||mi[ya][1].type==="listUnordered")if(mi[ya][0]==="enter")Wo.push(ya);else{const Xl=Wo.pop();ya=Et(mi,Xl,ya)}for(ya=-1;++ya<mi.length;){const Xl=He[mi[ya][0]];qo.call(Xl,mi[ya][1].type)&&Xl[mi[ya][1].type].call(Object.assign({sliceSerialize:mi[ya][2].sliceSerialize},ho),mi[ya][1])}if(ho.tokenStack.length>0){const Xl=ho.tokenStack[ho.tokenStack.length-1];(Xl[1]||Aa).call(ho,void 0,Xl[0])}for(fr.position={start:aa(mi.length>0?mi[0][1].start:{line:1,column:1,offset:0}),end:aa(mi.length>0?mi[mi.length-2][1].end:{line:1,column:1,offset:0})},ya=-1;++ya<He.transforms.length;)fr=He.transforms[ya](fr)||fr;return fr}function Et(mi,fr,ho){let Wo=fr-1,ya=-1,Xl=!1,gu,Ku,Iu,$s;for(;++Wo<=ho;){const _l=mi[Wo];switch(_l[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{_l[0]==="enter"?ya++:ya--,$s=void 0;break}case"lineEndingBlank":{_l[0]==="enter"&&(gu&&!$s&&!ya&&!Iu&&(Iu=Wo),$s=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:$s=void 0}if(!ya&&_l[0]==="enter"&&_l[1].type==="listItemPrefix"||ya===-1&&_l[0]==="exit"&&(_l[1].type==="listUnordered"||_l[1].type==="listOrdered")){if(gu){let Cc=Wo;for(Ku=void 0;Cc--;){const Tl=mi[Cc];if(Tl[1].type==="lineEnding"||Tl[1].type==="lineEndingBlank"){if(Tl[0]==="exit")continue;Ku&&(mi[Ku][1].type="lineEndingBlank",Xl=!0),Tl[1].type="lineEnding",Ku=Cc}else if(!(Tl[1].type==="linePrefix"||Tl[1].type==="blockQuotePrefix"||Tl[1].type==="blockQuotePrefixWhitespace"||Tl[1].type==="blockQuoteMarker"||Tl[1].type==="listItemIndent"))break}Iu&&(!Ku||Iu<Ku)&&(gu._spread=!0),gu.end=Object.assign({},Ku?mi[Ku][1].start:_l[1].end),mi.splice(Ku||Wo,0,["exit",gu,_l[2]]),Wo++,ho++}if(_l[1].type==="listItemPrefix"){const Cc={type:"listItem",_spread:!1,start:Object.assign({},_l[1].start),end:void 0};gu=Cc,mi.splice(Wo,0,["enter",Cc,_l[2]]),Wo++,ho++,Iu=void 0,$s=!0}}}return mi[fr][1]._spread=Xl,ho}function xt(mi,fr){return ho;function ho(Wo){Qt.call(this,mi(Wo),Wo),fr&&fr.call(this,Wo)}}function _t(){this.stack.push({type:"fragment",children:[]})}function Qt(mi,fr,ho){this.stack[this.stack.length-1].children.push(mi),this.stack.push(mi),this.tokenStack.push([fr,ho||void 0]),mi.position={start:aa(fr.start),end:void 0}}function Un(mi){return fr;function fr(ho){mi&&mi.call(this,ho),Yn.call(this,ho)}}function Yn(mi,fr){const ho=this.stack.pop(),Wo=this.tokenStack.pop();if(Wo)Wo[0].type!==mi.type&&(fr?fr.call(this,mi,Wo[0]):(Wo[1]||Aa).call(this,mi,Wo[0]));else throw new Error("Cannot close `"+mi.type+"` ("+Oe({start:mi.start,end:mi.end})+"): it\u2019s not open");ho.position.end=aa(mi.end)}function Tn(){return Pt(this.stack.pop())}function oi(){this.data.expectingFirstListItemValue=!0}function ni(mi){if(this.data.expectingFirstListItemValue){const fr=this.stack[this.stack.length-2];fr.start=Number.parseInt(this.sliceSerialize(mi),10),this.data.expectingFirstListItemValue=void 0}}function In(){const mi=this.resume(),fr=this.stack[this.stack.length-1];fr.lang=mi}function Fr(){const mi=this.resume(),fr=this.stack[this.stack.length-1];fr.meta=mi}function eo(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function co(){const mi=this.resume(),fr=this.stack[this.stack.length-1];fr.value=mi.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function vr(){const mi=this.resume(),fr=this.stack[this.stack.length-1];fr.value=mi.replace(/(\r?\n|\r)$/g,"")}function jr(mi){const fr=this.resume(),ho=this.stack[this.stack.length-1];ho.label=fr,ho.identifier=ai(this.sliceSerialize(mi)).toLowerCase()}function Wr(){const mi=this.resume(),fr=this.stack[this.stack.length-1];fr.title=mi}function la(){const mi=this.resume(),fr=this.stack[this.stack.length-1];fr.url=mi}function ua(mi){const fr=this.stack[this.stack.length-1];if(!fr.depth){const ho=this.sliceSerialize(mi).length;fr.depth=ho}}function $i(){this.data.setextHeadingSlurpLineEnding=!0}function ha(mi){const fr=this.stack[this.stack.length-1];fr.depth=this.sliceSerialize(mi).codePointAt(0)===61?1:2}function Oa(){this.data.setextHeadingSlurpLineEnding=void 0}function ia(mi){const ho=this.stack[this.stack.length-1].children;let Wo=ho[ho.length-1];(!Wo||Wo.type!=="text")&&(Wo=Hr(),Wo.position={start:aa(mi.start),end:void 0},ho.push(Wo)),this.stack.push(Wo)}function Rr(mi){const fr=this.stack.pop();fr.value+=this.sliceSerialize(mi),fr.position.end=aa(mi.end)}function Bs(mi){const fr=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ho=fr.children[fr.children.length-1];ho.position.end=aa(mi.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&He.canContainEols.includes(fr.type)&&(ia.call(this,mi),Rr.call(this,mi))}function Ea(){this.data.atHardBreak=!0}function uo(){const mi=this.resume(),fr=this.stack[this.stack.length-1];fr.value=mi}function oo(){const mi=this.resume(),fr=this.stack[this.stack.length-1];fr.value=mi}function _o(){const mi=this.resume(),fr=this.stack[this.stack.length-1];fr.value=mi}function ka(){const mi=this.stack[this.stack.length-1];if(this.data.inReference){const fr=this.data.referenceType||"shortcut";mi.type+="Reference",mi.referenceType=fr,delete mi.url,delete mi.title}else delete mi.identifier,delete mi.label;this.data.referenceType=void 0}function gs(){const mi=this.stack[this.stack.length-1];if(this.data.inReference){const fr=this.data.referenceType||"shortcut";mi.type+="Reference",mi.referenceType=fr,delete mi.url,delete mi.title}else delete mi.identifier,delete mi.label;this.data.referenceType=void 0}function Cs(mi){const fr=this.sliceSerialize(mi),ho=this.stack[this.stack.length-2];ho.label=lr(fr),ho.identifier=ai(fr).toLowerCase()}function dl(){const mi=this.stack[this.stack.length-1],fr=this.resume(),ho=this.stack[this.stack.length-1];if(this.data.inReference=!0,ho.type==="link"){const Wo=mi.children;ho.children=Wo}else ho.alt=fr}function Zn(){const mi=this.resume(),fr=this.stack[this.stack.length-1];fr.url=mi}function _s(){const mi=this.resume(),fr=this.stack[this.stack.length-1];fr.title=mi}function bl(){this.data.inReference=void 0}function ei(){this.data.referenceType="collapsed"}function Ns(mi){const fr=this.resume(),ho=this.stack[this.stack.length-1];ho.label=fr,ho.identifier=ai(this.sliceSerialize(mi)).toLowerCase(),this.data.referenceType="full"}function Fl(mi){this.data.characterReferenceType=mi.type}function Ql(mi){const fr=this.sliceSerialize(mi),ho=this.data.characterReferenceType;let Wo;ho?(Wo=qr(fr,ho==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Wo=Vo(fr);const ya=this.stack[this.stack.length-1];ya.value+=Wo}function ss(mi){const fr=this.stack.pop();fr.position.end=aa(mi.end)}function Da(mi){Rr.call(this,mi);const fr=this.stack[this.stack.length-1];fr.url=this.sliceSerialize(mi)}function wl(mi){Rr.call(this,mi);const fr=this.stack[this.stack.length-1];fr.url="mailto:"+this.sliceSerialize(mi)}function Ss(){return{type:"blockquote",children:[]}}function fu(){return{type:"code",lang:null,meta:null,value:""}}function Lu(){return{type:"inlineCode",value:""}}function dd(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Bl(){return{type:"emphasis",children:[]}}function Zu(){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 Ft(mi){return{type:"list",ordered:mi.type==="listOrdered",start:null,spread:mi._spread,children:[]}}function Hn(mi){return{type:"listItem",spread:mi._spread,checked:null,children:[]}}function Si(){return{type:"paragraph",children:[]}}function Hi(){return{type:"strong",children:[]}}function Hr(){return{type:"text",value:""}}function ao(){return{type:"thematicBreak"}}}function aa(we){return{line:we.line,column:we.column,offset:we.offset}}function ms(we,He){let Ke=-1;for(;++Ke<He.length;){const tt=He[Ke];Array.isArray(tt)?ms(we,tt):Ko(we,tt)}}function Ko(we,He){let Ke;for(Ke in He)if(qo.call(He,Ke))switch(Ke){case"canContainEols":{const tt=He[Ke];tt&&we[Ke].push(...tt);break}case"transforms":{const tt=He[Ke];tt&&we[Ke].push(...tt);break}case"enter":case"exit":{const tt=He[Ke];tt&&Object.assign(we[Ke],tt);break}}}function Aa(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 Sl(we){const He=this;He.parser=Ke;function Ke(tt){return ko(tt,Nf(Po(Po({},He.data("settings")),we),{extensions:He.data("micromarkExtensions")||[],mdastExtensions:He.data("fromMarkdownExtensions")||[]}))}}var ll=de(90302);function vs(we,He){const Ke=encode(ul(we||""));if(!He)return Ke;const tt=Ke.indexOf(":"),Et=Ke.indexOf("?"),xt=Ke.indexOf("#"),_t=Ke.indexOf("/");return tt<0||_t>-1&&tt>_t||Et>-1&&tt>Et||xt>-1&&tt>xt||He.test(Ke.slice(0,tt))?Ke:""}function ul(we){const He=[];let Ke=-1,tt=0,Et=0;for(;++Ke<we.length;){const xt=we.charCodeAt(Ke);let _t="";if(xt===37&&(0,Ht.H$)(we.charCodeAt(Ke+1))&&(0,Ht.H$)(we.charCodeAt(Ke+2)))Et=2;else if(xt<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(xt))||(_t=String.fromCharCode(xt));else if(xt>55295&&xt<57344){const Qt=we.charCodeAt(Ke+1);xt<56320&&Qt>56319&&Qt<57344?(_t=String.fromCharCode(xt,Qt),Et=1):_t="\uFFFD"}else _t=String.fromCharCode(xt);_t&&(He.push(we.slice(tt,Ke),encodeURIComponent(_t)),tt=Ke+Et+1,_t=""),Et&&(Ke+=Et,Et=0)}return He.join("")+we.slice(tt)}function Ol(we,He){const Ke=[{type:"text",value:"\u21A9"}];return He>1&&Ke.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(He)}]}),Ke}function cs(we,He){return"Back to reference "+(we+1)+(He>1?"-"+He:"")}function Ts(we){const He=typeof we.options.clobberPrefix=="string"?we.options.clobberPrefix:"user-content-",Ke=we.options.footnoteBackContent||Ol,tt=we.options.footnoteBackLabel||cs,Et=we.options.footnoteLabel||"Footnotes",xt=we.options.footnoteLabelTagName||"h2",_t=we.options.footnoteLabelProperties||{className:["sr-only"]},Qt=[];let Un=-1;for(;++Un<we.footnoteOrder.length;){const Yn=we.footnoteById.get(we.footnoteOrder[Un]);if(!Yn)continue;const Tn=we.all(Yn),oi=String(Yn.identifier).toUpperCase(),ni=ul(oi.toLowerCase());let In=0;const Fr=[],eo=we.footnoteCounts.get(oi);for(;eo!==void 0&&++In<=eo;){Fr.length>0&&Fr.push({type:"text",value:" "});let jr=typeof Ke=="string"?Ke:Ke(Un,In);typeof jr=="string"&&(jr={type:"text",value:jr}),Fr.push({type:"element",tagName:"a",properties:{href:"#"+He+"fnref-"+ni+(In>1?"-"+In:""),dataFootnoteBackref:"",ariaLabel:typeof tt=="string"?tt:tt(Un,In),className:["data-footnote-backref"]},children:Array.isArray(jr)?jr:[jr]})}const co=Tn[Tn.length-1];if(co&&co.type==="element"&&co.tagName==="p"){const jr=co.children[co.children.length-1];jr&&jr.type==="text"?jr.value+=" ":co.children.push({type:"text",value:" "}),co.children.push(...Fr)}else Tn.push(...Fr);const vr={type:"element",tagName:"li",properties:{id:He+"fn-"+ni},children:we.wrap(Tn,!0)};we.patch(Yn,vr),Qt.push(vr)}if(Qt.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:xt,properties:Nf(Po({},(0,ll.ZP)(_t)),{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 Ds=de(10528);function Hu(we,He){const Ke={type:"element",tagName:"blockquote",properties:{},children:we.wrap(we.all(He),!0)};return we.patch(He,Ke),we.applyData(He,Ke)}function xc(we,He){const Ke={type:"element",tagName:"br",properties:{},children:[]};return we.patch(He,Ke),[we.applyData(He,Ke),{type:"text",value:`
`}]}function bc(we,He){const Ke=He.value?He.value+`
`:"",tt={};He.lang&&(tt.className=["language-"+He.lang]);let Et={type:"element",tagName:"code",properties:tt,children:[{type:"text",value:Ke}]};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 Ca(we,He){const Ke={type:"element",tagName:"del",properties:{},children:we.all(He)};return we.patch(He,Ke),we.applyData(He,Ke)}function ad(we,He){const Ke={type:"element",tagName:"em",properties:{},children:we.all(He)};return we.patch(He,Ke),we.applyData(He,Ke)}function wc(we,He){const Ke=typeof we.options.clobberPrefix=="string"?we.options.clobberPrefix:"user-content-",tt=String(He.identifier).toUpperCase(),Et=ul(tt.toLowerCase()),xt=we.footnoteOrder.indexOf(tt);let _t,Qt=we.footnoteCounts.get(tt);Qt===void 0?(Qt=0,we.footnoteOrder.push(tt),_t=we.footnoteOrder.length):_t=xt+1,Qt+=1,we.footnoteCounts.set(tt,Qt);const Un={type:"element",tagName:"a",properties:{href:"#"+Ke+"fn-"+Et,id:Ke+"fnref-"+Et+(Qt>1?"-"+Qt:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(_t)}]};we.patch(He,Un);const Yn={type:"element",tagName:"sup",properties:{},children:[Un]};return we.patch(He,Yn),we.applyData(He,Yn)}function oc(we,He){const Ke={type:"element",tagName:"h"+He.depth,properties:{},children:we.all(He)};return we.patch(He,Ke),we.applyData(He,Ke)}function Gu(we,He){if(we.options.allowDangerousHtml){const Ke={type:"raw",value:He.value};return we.patch(He,Ke),we.applyData(He,Ke)}}function rs(we,He){const Ke=He.referenceType;let tt="]";if(Ke==="collapsed"?tt+="[]":Ke==="full"&&(tt+="["+(He.label||He.identifier)+"]"),He.type==="imageReference")return[{type:"text",value:"!["+He.alt+tt}];const Et=we.all(He),xt=Et[0];xt&&xt.type==="text"?xt.value="["+xt.value:Et.unshift({type:"text",value:"["});const _t=Et[Et.length-1];return _t&&_t.type==="text"?_t.value+=tt:Et.push({type:"text",value:tt}),Et}function ds(we,He){const Ke=String(He.identifier).toUpperCase(),tt=we.definitionById.get(Ke);if(!tt)return rs(we,He);const Et={src:ul(tt.url||""),alt:He.alt};tt.title!==null&&tt.title!==void 0&&(Et.title=tt.title);const xt={type:"element",tagName:"img",properties:Et,children:[]};return we.patch(He,xt),we.applyData(He,xt)}function _a(we,He){const Ke={src:ul(He.url)};He.alt!==null&&He.alt!==void 0&&(Ke.alt=He.alt),He.title!==null&&He.title!==void 0&&(Ke.title=He.title);const tt={type:"element",tagName:"img",properties:Ke,children:[]};return we.patch(He,tt),we.applyData(He,tt)}function Ya(we,He){const Ke={type:"text",value:He.value.replace(/\r?\n|\r/g," ")};we.patch(He,Ke);const tt={type:"element",tagName:"code",properties:{},children:[Ke]};return we.patch(He,tt),we.applyData(He,tt)}function Yo(we,He){const Ke=String(He.identifier).toUpperCase(),tt=we.definitionById.get(Ke);if(!tt)return rs(we,He);const Et={href:ul(tt.url||"")};tt.title!==null&&tt.title!==void 0&&(Et.title=tt.title);const xt={type:"element",tagName:"a",properties:Et,children:we.all(He)};return we.patch(He,xt),we.applyData(He,xt)}function bo(we,He){const Ke={href:ul(He.url)};He.title!==null&&He.title!==void 0&&(Ke.title=He.title);const tt={type:"element",tagName:"a",properties:Ke,children:we.all(He)};return we.patch(He,tt),we.applyData(He,tt)}function Bo(we,He,Ke){const tt=we.all(He),Et=Ke?hs(Ke):La(He),xt={},_t=[];if(typeof He.checked=="boolean"){const Tn=tt[0];let oi;Tn&&Tn.type==="element"&&Tn.tagName==="p"?oi=Tn:(oi={type:"element",tagName:"p",properties:{},children:[]},tt.unshift(oi)),oi.children.length>0&&oi.children.unshift({type:"text",value:" "}),oi.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:He.checked,disabled:!0},children:[]}),xt.className=["task-list-item"]}let Qt=-1;for(;++Qt<tt.length;){const Tn=tt[Qt];(Et||Qt!==0||Tn.type!=="element"||Tn.tagName!=="p")&&_t.push({type:"text",value:`
`}),Tn.type==="element"&&Tn.tagName==="p"&&!Et?_t.push(...Tn.children):_t.push(Tn)}const Un=tt[tt.length-1];Un&&(Et||Un.type!=="element"||Un.tagName!=="p")&&_t.push({type:"text",value:`
`});const Yn={type:"element",tagName:"li",properties:xt,children:_t};return we.patch(He,Yn),we.applyData(He,Yn)}function hs(we){let He=!1;if(we.type==="list"){He=we.spread||!1;const Ke=we.children;let tt=-1;for(;!He&&++tt<Ke.length;)He=La(Ke[tt])}return He}function La(we){const He=we.spread;return He==null?we.children.length>1:He}function Ka(we,He){const Ke={},tt=we.all(He);let Et=-1;for(typeof He.start=="number"&&He.start!==1&&(Ke.start=He.start);++Et<tt.length;){const _t=tt[Et];if(_t.type==="element"&&_t.tagName==="li"&&_t.properties&&Array.isArray(_t.properties.className)&&_t.properties.className.includes("task-list-item")){Ke.className=["contains-task-list"];break}}const xt={type:"element",tagName:He.ordered?"ol":"ul",properties:Ke,children:we.wrap(tt,!0)};return we.patch(He,xt),we.applyData(He,xt)}function tr(we,He){const Ke={type:"element",tagName:"p",properties:{},children:we.all(He)};return we.patch(He,Ke),we.applyData(He,Ke)}function cl(we,He){const Ke={type:"root",children:we.wrap(we.all(He))};return we.patch(He,Ke),we.applyData(He,Ke)}function jt(we,He){const Ke={type:"element",tagName:"strong",properties:{},children:we.all(He)};return we.patch(He,Ke),we.applyData(He,Ke)}function Qn(we,He){const Ke=we.all(He),tt=Ke.shift(),Et=[];if(tt){const _t={type:"element",tagName:"thead",properties:{},children:we.wrap([tt],!0)};we.patch(He.children[0],_t),Et.push(_t)}if(Ke.length>0){const _t={type:"element",tagName:"tbody",properties:{},children:we.wrap(Ke,!0)},Qt=(0,Ce.Pk)(He.children[1]),Un=(0,Ce.rb)(He.children[He.children.length-1]);Qt&&Un&&(_t.position={start:Qt,end:Un}),Et.push(_t)}const xt={type:"element",tagName:"table",properties:{},children:we.wrap(Et,!0)};return we.patch(He,xt),we.applyData(He,xt)}function uu(we,He,Ke){const tt=Ke?Ke.children:void 0,xt=(tt?tt.indexOf(He):1)===0?"th":"td",_t=Ke&&Ke.type==="table"?Ke.align:void 0,Qt=_t?_t.length:He.children.length;let Un=-1;const Yn=[];for(;++Un<Qt;){const oi=He.children[Un],ni={},In=_t?_t[Un]:void 0;In&&(ni.align=In);let Fr={type:"element",tagName:xt,properties:ni,children:[]};oi&&(Fr.children=we.all(oi),we.patch(oi,Fr),Fr=we.applyData(oi,Fr)),Yn.push(Fr)}const Tn={type:"element",tagName:"tr",properties:{},children:we.wrap(Yn,!0)};return we.patch(He,Tn),we.applyData(He,Tn)}function ac(we,He){const Ke={type:"element",tagName:"td",properties:{},children:we.all(He)};return we.patch(He,Ke),we.applyData(He,Ke)}const Js=9,Vl=32;function sc(we){const He=String(we),Ke=/\r?\n|\r/g;let tt=Ke.exec(He),Et=0;const xt=[];for(;tt;)xt.push(Yc(He.slice(Et,tt.index),Et>0,!0),tt[0]),Et=tt.index+tt[0].length,tt=Ke.exec(He);return xt.push(Yc(He.slice(Et),Et>0,!1)),xt.join("")}function Yc(we,He,Ke){let tt=0,Et=we.length;if(He){let xt=we.codePointAt(tt);for(;xt===Js||xt===Vl;)tt++,xt=we.codePointAt(tt)}if(Ke){let xt=we.codePointAt(Et-1);for(;xt===Js||xt===Vl;)Et--,xt=we.codePointAt(Et-1)}return Et>tt?we.slice(tt,Et):""}function Wc(we,He){const Ke={type:"text",value:sc(String(He.value))};return we.patch(He,Ke),we.applyData(He,Ke)}function ma(we,He){const Ke={type:"element",tagName:"hr",properties:{},children:[]};return we.patch(He,Ke),we.applyData(He,Ke)}const _r={blockquote:Hu,break:xc,code:bc,delete:Ca,emphasis:ad,footnoteReference:wc,heading:oc,html:Gu,imageReference:ds,image:_a,inlineCode:Ya,linkReference:Yo,link:bo,listItem:Bo,list:Ka,paragraph:tr,root:cl,strong:jt,table:Qn,tableCell:ac,tableRow:uu,text:Wc,thematicBreak:ma,toml:os,yaml:os,definition:os,footnoteDefinition:os};function os(){}const As={}.hasOwnProperty,Do={};function mo(we,He){const Ke=He||Do,tt=new Map,Et=new Map,xt=new Map,_t=Po(Po({},_r),Ke.handlers),Qt={all:Yn,applyData:Os,definitionById:tt,footnoteById:Et,footnoteCounts:xt,footnoteOrder:[],handlers:_t,one:Un,options:Ke,patch:ja,wrap:qs};return(0,Ds.Vn)(we,function(Tn){if(Tn.type==="definition"||Tn.type==="footnoteDefinition"){const oi=Tn.type==="definition"?tt:Et,ni=String(Tn.identifier).toUpperCase();oi.has(ni)||oi.set(ni,Tn)}}),Qt;function Un(Tn,oi){const ni=Tn.type,In=Qt.handlers[ni];if(As.call(Qt.handlers,ni)&&In)return In(Qt,Tn,oi);if(Qt.options.passThrough&&Qt.options.passThrough.includes(ni)){if("children"in Tn){const eo=Tn,{children:co}=eo,vr=TE(eo,["children"]),jr=(0,ll.ZP)(vr);return jr.children=Qt.all(Tn),jr}return(0,ll.ZP)(Tn)}return(Qt.options.unknownHandler||na)(Qt,Tn,oi)}function Yn(Tn){const oi=[];if("children"in Tn){const ni=Tn.children;let In=-1;for(;++In<ni.length;){const Fr=Qt.one(ni[In],Tn);if(Fr){if(In&&ni[In-1].type==="break"&&(!Array.isArray(Fr)&&Fr.type==="text"&&(Fr.value=Qa(Fr.value)),!Array.isArray(Fr)&&Fr.type==="element")){const eo=Fr.children[0];eo&&eo.type==="text"&&(eo.value=Qa(eo.value))}Array.isArray(Fr)?oi.push(...Fr):oi.push(Fr)}}}return oi}}function ja(we,He){we.position&&(He.position=(0,Ce.FK)(we))}function Os(we,He){let Ke=He;if(we&&we.data){const tt=we.data.hName,Et=we.data.hChildren,xt=we.data.hProperties;if(typeof tt=="string")if(Ke.type==="element")Ke.tagName=tt;else{const _t="children"in Ke?Ke.children:[Ke];Ke={type:"element",tagName:tt,properties:{},children:_t}}Ke.type==="element"&&xt&&Object.assign(Ke.properties,(0,ll.ZP)(xt)),"children"in Ke&&Ke.children&&Et!==null&&Et!==void 0&&(Ke.children=Et)}return Ke}function na(we,He){const Ke=He.data||{},tt="value"in He&&!(As.call(Ke,"hProperties")||As.call(Ke,"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 qs(we,He){const Ke=[];let tt=-1;for(He&&Ke.push({type:"text",value:`
`});++tt<we.length;)tt&&Ke.push({type:"text",value:`
`}),Ke.push(we[tt]);return He&&we.length>0&&Ke.push({type:"text",value:`
`}),Ke}function Qa(we){let He=0,Ke=we.charCodeAt(He);for(;Ke===9||Ke===32;)He++,Ke=we.charCodeAt(He);return we.slice(He)}function Tu(we,He){const Ke=mo(we,He),tt=Ke.one(we,void 0),Et=Ts(Ke),xt=Array.isArray(tt)?{type:"root",children:tt}:tt||{type:"root",children:[]};return Et&&((0,Le.ok)("children"in xt),xt.children.push({type:"text",value:`
`},Et)),xt}function Ro(we,He){return we&&"run"in we?function(Ke,tt){return Jy(this,null,function*(){const Et=Tu(Ke,Po({file:tt},He));yield we.run(Et,tt)})}:function(Ke,tt){return Tu(Ke,Po({file:tt},we||He))}}function ys(we){if(we)throw we}var To=de(58847);function Jo(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 ea(){const we=[],He={run:Ke,use:tt};return He;function Ke(...Et){let xt=-1;const _t=Et.pop();if(typeof _t!="function")throw new TypeError("Expected function as last argument, not "+_t);Qt(null,...Et);function Qt(Un,...Yn){const Tn=we[++xt];let oi=-1;if(Un){_t(Un);return}for(;++oi<Et.length;)(Yn[oi]===null||Yn[oi]===void 0)&&(Yn[oi]=Et[oi]);Et=Yn,Tn?va(Tn,Qt)(...Yn):_t(null,...Yn)}}function tt(Et){if(typeof Et!="function")throw new TypeError("Expected `middelware` to be a function, not "+Et);return we.push(Et),He}}function va(we,He){let Ke;return tt;function tt(..._t){const Qt=we.length>_t.length;let Un;Qt&&_t.push(Et);try{Un=we.apply(this,_t)}catch(Yn){const Tn=Yn;if(Qt&&Ke)throw Tn;return Et(Tn)}Qt||(Un&&Un.then&&typeof Un.then=="function"?Un.then(xt,Et):Un instanceof Error?Et(Un):xt(Un))}function Et(_t,...Qt){Ke||(Ke=!0,He(_t,...Qt))}function xt(_t){Et(null,_t)}}const fo={basename:lc,dirname:Lr,extname:gh,join:No,sep:"/"};function lc(we,He){if(He!==void 0&&typeof He!="string")throw new TypeError('"ext" argument must be a string');Au(we);let Ke=0,tt=-1,Et=we.length,xt;if(He===void 0||He.length===0||He.length>we.length){for(;Et--;)if(we.codePointAt(Et)===47){if(xt){Ke=Et+1;break}}else tt<0&&(xt=!0,tt=Et+1);return tt<0?"":we.slice(Ke,tt)}if(He===we)return"";let _t=-1,Qt=He.length-1;for(;Et--;)if(we.codePointAt(Et)===47){if(xt){Ke=Et+1;break}}else _t<0&&(xt=!0,_t=Et+1),Qt>-1&&(we.codePointAt(Et)===He.codePointAt(Qt--)?Qt<0&&(tt=Et):(Qt=-1,tt=_t));return Ke===tt?tt=_t:tt<0&&(tt=we.length),we.slice(Ke,tt)}function Lr(we){if(Au(we),we.length===0)return".";let He=-1,Ke=we.length,tt;for(;--Ke;)if(we.codePointAt(Ke)===47){if(tt){He=Ke;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){Au(we);let He=we.length,Ke=-1,tt=0,Et=-1,xt=0,_t;for(;He--;){const Qt=we.codePointAt(He);if(Qt===47){if(_t){tt=He+1;break}continue}Ke<0&&(_t=!0,Ke=He+1),Qt===46?Et<0?Et=He:xt!==1&&(xt=1):Et>-1&&(xt=-1)}return Et<0||Ke<0||xt===0||xt===1&&Et===Ke-1&&Et===tt+1?"":we.slice(Et,Ke)}function No(...we){let He=-1,Ke;for(;++He<we.length;)Au(we[He]),we[He]&&(Ke=Ke===void 0?we[He]:Ke+"/"+we[He]);return Ke===void 0?".":ph(Ke)}function ph(we){Au(we);const He=we.codePointAt(0)===47;let Ke=Tc(we,!He);return Ke.length===0&&!He&&(Ke="."),Ke.length>0&&we.codePointAt(we.length-1)===47&&(Ke+="/"),He?"/"+Ke:Ke}function Tc(we,He){let Ke="",tt=0,Et=-1,xt=0,_t=-1,Qt,Un;for(;++_t<=we.length;){if(_t<we.length)Qt=we.codePointAt(_t);else{if(Qt===47)break;Qt=47}if(Qt===47){if(!(Et===_t-1||xt===1))if(Et!==_t-1&&xt===2){if(Ke.length<2||tt!==2||Ke.codePointAt(Ke.length-1)!==46||Ke.codePointAt(Ke.length-2)!==46){if(Ke.length>2){if(Un=Ke.lastIndexOf("/"),Un!==Ke.length-1){Un<0?(Ke="",tt=0):(Ke=Ke.slice(0,Un),tt=Ke.length-1-Ke.lastIndexOf("/")),Et=_t,xt=0;continue}}else if(Ke.length>0){Ke="",tt=0,Et=_t,xt=0;continue}}He&&(Ke=Ke.length>0?Ke+"/..":"..",tt=2)}else Ke.length>0?Ke+="/"+we.slice(Et+1,_t):Ke=we.slice(Et+1,_t),tt=_t-Et-1;Et=_t,xt=0}else Qt===46&&xt>-1?xt++:xt=-1}return Ke}function Au(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 Zl(we){return!!(we!==null&&typeof we=="object"&&"href"in we&&we.href&&"protocol"in we&&we.protocol&&we.auth===void 0)}function Rl(we){if(typeof we=="string")we=new URL(we);else if(!Zl(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 Ao(we)}function Ao(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 Ke=-1;for(;++Ke<He.length;)if(He.codePointAt(Ke)===37&&He.codePointAt(Ke+1)===50){const tt=He.codePointAt(Ke+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 Rs=["history","path","basename","stem","extname","dirname"];class Ac{constructor(He){let Ke;He?Zl(He)?Ke={path:He}:typeof He=="string"||El(He)?Ke={value:He}:Ke=He:Ke={},this.cwd="cwd"in Ke?"":Bd.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let tt=-1;for(;++tt<Rs.length;){const xt=Rs[tt];xt in Ke&&Ke[xt]!==void 0&&Ke[xt]!==null&&(this[xt]=xt==="history"?[...Ke[xt]]:Ke[xt])}let Et;for(Et in Ke)Rs.includes(Et)||(this[Et]=Ke[Et])}get basename(){return typeof this.path=="string"?fo.basename(this.path):void 0}set basename(He){Cu(He,"basename"),cu(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(cu(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){Zl(He)&&(He=Rl(He)),Cu(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){Cu(He,"stem"),cu(He,"stem"),this.path=fo.join(this.dirname||"",He+(this.extname||""))}fail(He,Ke,tt){const Et=this.message(He,Ke,tt);throw Et.fatal=!0,Et}info(He,Ke,tt){const Et=this.message(He,Ke,tt);return Et.fatal=void 0,Et}message(He,Ke,tt){const Et=new rt(He,Ke,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 cu(we,He){if(we&&we.includes(fo.sep))throw new Error("`"+He+"` cannot be a path: did not expect `"+fo.sep+"`")}function Cu(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 El(we){return!!(we&&typeof we=="object"&&"byteLength"in we&&"byteOffset"in we)}const Yu=function(we){const tt=this.constructor.prototype,Et=tt[we],xt=function(){return Et.apply(xt,arguments)};return Object.setPrototypeOf(xt,tt),xt},xl={}.hasOwnProperty;class du extends Yu{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=ea()}copy(){const He=new du;let Ke=-1;for(;++Ke<this.attachers.length;){const tt=this.attachers[Ke];He.use(...tt)}return He.data(To(!0,{},this.namespace)),He}data(He,Ke){return typeof He=="string"?arguments.length===2?(dc("data",this.frozen),this.namespace[He]=Ke,this):xl.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[Ke,...tt]=this.attachers[this.freezeIndex];if(tt[0]===!1)continue;tt[0]===!0&&(tt[0]=void 0);const Et=Ke.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 Ke=ld(He),tt=this.parser||this.Parser;return Wu("parse",tt),tt(String(Ke),Ke)}process(He,Ke){const tt=this;return this.freeze(),Wu("process",this.parser||this.Parser),cc("process",this.compiler||this.Compiler),Ke?Et(void 0,Ke):new Promise(Et);function Et(xt,_t){const Qt=ld(He),Un=tt.parse(Qt);tt.run(Un,Qt,function(Tn,oi,ni){if(Tn||!oi||!ni)return Yn(Tn);const In=oi,Fr=tt.stringify(In,ni);vh(Fr)?ni.value=Fr:ni.result=Fr,Yn(Tn,ni)});function Yn(Tn,oi){Tn||!oi?_t(Tn):xt?xt(oi):((0,Le.ok)(Ke,"`done` is defined if `resolve` is not"),Ke(void 0,oi))}}}processSync(He){let Ke=!1,tt;return this.freeze(),Wu("processSync",this.parser||this.Parser),cc("processSync",this.compiler||this.Compiler),this.process(He,Et),Nu("processSync","process",Ke),(0,Le.ok)(tt,"we either bailed on an error or have a tree"),tt;function Et(xt,_t){Ke=!0,ys(xt),tt=_t}}run(He,Ke,tt){hu(He),this.freeze();const Et=this.transformers;return!tt&&typeof Ke=="function"&&(tt=Ke,Ke=void 0),tt?xt(void 0,tt):new Promise(xt);function xt(_t,Qt){(0,Le.ok)(typeof Ke!="function","`file` can\u2019t be a `done` anymore, we checked");const Un=ld(Ke);Et.run(He,Un,Yn);function Yn(Tn,oi,ni){const In=oi||He;Tn?Qt(Tn):_t?_t(In):((0,Le.ok)(tt,"`done` is defined if `resolve` is not"),tt(void 0,In,ni))}}}runSync(He,Ke){let tt=!1,Et;return this.run(He,Ke,xt),Nu("runSync","run",tt),(0,Le.ok)(Et,"we either bailed on an error or have a tree"),Et;function xt(_t,Qt){ys(_t),Et=Qt,tt=!0}}stringify(He,Ke){this.freeze();const tt=ld(Ke),Et=this.compiler||this.Compiler;return cc("stringify",Et),hu(He),Et(He,tt)}use(He,...Ke){const tt=this.attachers,Et=this.namespace;if(dc("use",this.frozen),He!=null)if(typeof He=="function")Un(He,Ke);else if(typeof He=="object")Array.isArray(He)?Qt(He):_t(He);else throw new TypeError("Expected usable value, not `"+He+"`");return this;function xt(Yn){if(typeof Yn=="function")Un(Yn,[]);else if(typeof Yn=="object")if(Array.isArray(Yn)){const[Tn,...oi]=Yn;Un(Tn,oi)}else _t(Yn);else throw new TypeError("Expected usable value, not `"+Yn+"`")}function _t(Yn){if(!("plugins"in Yn)&&!("settings"in Yn))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(Yn.plugins),Yn.settings&&(Et.settings=To(!0,Et.settings,Yn.settings))}function Qt(Yn){let Tn=-1;if(Yn!=null)if(Array.isArray(Yn))for(;++Tn<Yn.length;){const oi=Yn[Tn];xt(oi)}else throw new TypeError("Expected a list of plugins, not `"+Yn+"`")}function Un(Yn,Tn){let oi=-1,ni=-1;for(;++oi<tt.length;)if(tt[oi][0]===Yn){ni=oi;break}if(ni===-1)tt.push([Yn,...Tn]);else if(Tn.length>0){let[In,...Fr]=Tn;const eo=tt[ni][1];Jo(eo)&&Jo(In)&&(In=To(!0,eo,In)),tt[ni]=[Yn,In,...Fr]}}}}const uc=new du().freeze();function Wu(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 hu(we){if(!Jo(we)||typeof we.type!="string")throw new TypeError("Expected node, got `"+we+"`")}function Nu(we,He,Ke){if(!Ke)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 Ia="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Mu=[],Qo={allowDangerousHtml:!0},Xa=/^(https?|ircs?|mailto|xmpp)$/i,as=[{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 ts(we){const He=Pu(we),Ke=ud(we);return cd(He.runSync(He.parse(Ke),Ke),we)}function Vu(we){return Jy(this,null,function*(){const He=Pu(we),Ke=ud(we),tt=yield He.run(He.parse(Ke),Ke);return cd(tt,we)})}function fs(we){const He=Pu(we),[Ke,tt]=useState(void 0),[Et,xt]=useState(void 0);if(useEffect(function(){const _t=ud(we);He.run(He.parse(_t),_t,function(Qt,Un){tt(Qt),xt(Un)})},[we.children,we.rehypePlugins,we.remarkPlugins,we.remarkRehypeOptions]),Ke)throw Ke;return Et?cd(Et,we):createElement(Fragment)}function Pu(we){const He=we.rehypePlugins||Mu,Ke=we.remarkPlugins||Mu,tt=we.remarkRehypeOptions?Po(Po({},we.remarkRehypeOptions),Qo):Qo;return uc().use(Sl).use(Ke).use(Ro,tt).use(He)}function ud(we){const He=we.children||"",Ke=new Ac;return typeof He=="string"?Ke.value=He:(0,Le.t1)("Unexpected value `"+He+"` for `children` prop, expected `string`"),Ke}function cd(we,He){const Ke=He.allowedElements,tt=He.allowElement,Et=He.components,xt=He.disallowedElements,_t=He.skipHtml,Qt=He.unwrapDisallowed,Un=He.urlTransform||Fs;for(const Tn of as)Object.hasOwn(He,Tn.from)&&(0,Le.t1)("Unexpected `"+Tn.from+"` prop, "+(Tn.to?"use `"+Tn.to+"` instead":"remove it")+" (see <"+Ia+"#"+Tn.id+"> for more info)");return Ke&&xt&&(0,Le.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,Ds.Vn)(we,Yn),Cn(we,{Fragment:Ae.Fragment,components:Et,ignoreInvalidStyle:!0,jsx:Ae.jsx,jsxs:Ae.jsxs,passKeys:!0,passNode:!0});function Yn(Tn,oi,ni){if(Tn.type==="raw"&&ni&&typeof oi=="number")return _t?ni.children.splice(oi,1):ni.children[oi]={type:"text",value:Tn.value},oi;if(Tn.type==="element"){let In;for(In in Me)if(Object.hasOwn(Me,In)&&Object.hasOwn(Tn.properties,In)){const Fr=Tn.properties[In],eo=Me[In];(eo===null||eo.includes(Tn.tagName))&&(Tn.properties[In]=Un(String(Fr||""),In,Tn))}}if(Tn.type==="element"){let In=Ke?!Ke.includes(Tn.tagName):xt?xt.includes(Tn.tagName):!1;if(!In&&tt&&typeof oi=="number"&&(In=!tt(Tn,oi,ni)),In&&ni&&typeof oi=="number")return Qt&&Tn.children?ni.children.splice(oi,1,...Tn.children):ni.children.splice(oi,1),oi}}}function Fs(we){const He=we.indexOf(":"),Ke=we.indexOf("?"),tt=we.indexOf("#"),Et=we.indexOf("/");return He===-1||Et!==-1&&He>Et||Ke!==-1&&He>Ke||tt!==-1&&He>tt||Xa.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 rt},booleanish:function(){return ft},commaOrSpaceSeparated:function(){return en},commaSeparated:function(){return Dt},number:function(){return ut},overloadedBoolean:function(){return bt},spaceSeparated:function(){return Tt}});var Le=de(90302),De=de(87342),Ie=de(81994),Ye=de(58222),Fe=de(84837);function Ve(ue){const pe=String(ue),Ze=[];return{toOffset:Hn,toPoint:Ft};function Ft(Si){if(typeof Si=="number"&&Si>-1&&Si<=pe.length){let Hi=0;for(;;){let Hr=Ze[Hi];if(Hr===void 0){const ao=Xe(pe,Ze[Hi-1]);Hr=ao===-1?pe.length+1:ao+1,Ze[Hi]=Hr}if(Hr>Si)return{line:Hi+1,column:Si-(Hi>0?Ze[Hi-1]:0)+1,offset:Si};Hi++}}}function Hn(Si){if(Si&&typeof Si.line=="number"&&typeof Si.column=="number"&&!Number.isNaN(Si.line)&&!Number.isNaN(Si.column)){for(;Ze.length<Si.line;){const Hr=Ze[Ze.length-1],ao=Xe(pe,Hr),mi=ao===-1?pe.length+1:ao+1;if(Hr===mi)break;Ze.push(mi)}const Hi=(Si.line>1?Ze[Si.line-2]:0)+Si.column-1;if(Hi<Ze[Si.line-1])return Hi}}}function Xe(ue,pe){const Ze=ue.indexOf("\r",pe),Ft=ue.indexOf(`
`,pe);return Ft===-1?Ze:Ze===-1||Ze+1===Ft?Ft:Ze<Ft?Ze:Ft}var qe=de(43309);const Je={}.hasOwnProperty,mt=Object.prototype;function st(ue,pe){const Ze=pe||{};return Ct({file:Ze.file||void 0,location:!1,schema:Ze.space==="svg"?Ye.YP:Ye.dy,verbose:Ze.verbose||!1},ue)}function Ct(ue,pe){let Ze;switch(pe.nodeName){case"#comment":{const Ft=pe;return Ze={type:"comment",value:Ft.data},ne(ue,Ft,Ze),Ze}case"#document":case"#document-fragment":{const Ft=pe,Hn="mode"in Ft?Ft.mode==="quirks"||Ft.mode==="limited-quirks":!1;if(Ze={type:"root",children:je(ue,pe.childNodes),data:{quirksMode:Hn}},ue.file&&ue.location){const Si=String(ue.file),Hi=Ve(Si),Hr=Hi.toPoint(0),ao=Hi.toPoint(Si.length);(0,De.ok)(Hr,"expected `start`"),(0,De.ok)(ao,"expected `end`"),Ze.position={start:Hr,end:ao}}return Ze}case"#documentType":{const Ft=pe;return Ze={type:"doctype"},ne(ue,Ft,Ze),Ze}case"#text":{const Ft=pe;return Ze={type:"text",value:Ft.value},ne(ue,Ft,Ze),Ze}default:return Ze=te(ue,pe),Ze}}function je(ue,pe){let Ze=-1;const Ft=[];for(;++Ze<pe.length;){const Hn=Ct(ue,pe[Ze]);Ft.push(Hn)}return Ft}function te(ue,pe){const Ze=ue.schema;ue.schema=pe.namespaceURI===qe.t.svg?Ye.YP:Ye.dy;let Ft=-1;const Hn={};for(;++Ft<pe.attrs.length;){const Hr=pe.attrs[Ft],ao=(Hr.prefix?Hr.prefix+":":"")+Hr.name;Je.call(mt,ao)||(Hn[ao]=Hr.value)}const Hi=(ue.schema.space==="svg"?Ie.s:Ie.h)(pe.tagName,Hn,je(ue,pe.childNodes));if(ne(ue,pe,Hi),Hi.tagName==="template"){const Hr=pe,ao=Hr.sourceCodeLocation,mi=ao&&ao.startTag&&se(ao.startTag),fr=ao&&ao.endTag&&se(ao.endTag),ho=Ct(ue,Hr.content);mi&&fr&&ue.file&&(ho.position={start:mi.end,end:fr.start}),Hi.content=ho}return ue.schema=Ze,Hi}function ne(ue,pe,Ze){if("sourceCodeLocation"in pe&&pe.sourceCodeLocation&&ue.file){const Ft=he(ue,Ze,pe.sourceCodeLocation);Ft&&(ue.location=!0,Ze.position=Ft)}}function he(ue,pe,Ze){const Ft=se(Ze);if(pe.type==="element"){const Hn=pe.children[pe.children.length-1];if(Ft&&!Ze.endTag&&Hn&&Hn.position&&Hn.position.end&&(Ft.end=Object.assign({},Hn.position.end)),ue.verbose){const Si={};let Hi;if(Ze.attrs)for(Hi in Ze.attrs)Je.call(Ze.attrs,Hi)&&(Si[(0,Fe.s)(ue.schema,Hi).property]=se(Ze.attrs[Hi]));(0,De.ok)(Ze.startTag,"a start tag should exist");const Hr=se(Ze.startTag),ao=Ze.endTag?se(Ze.endTag):void 0,mi={opening:Hr};ao&&(mi.closing=ao),mi.properties=Si,pe.data={position:mi}}}return Ft}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 Ce{constructor(pe,Ze,Ft){this.property=pe,this.normal=Ze,Ft&&(this.space=Ft)}}Ce.prototype.property={},Ce.prototype.normal={},Ce.prototype.space=null;function Oe(ue,pe){const Ze={},Ft={};let Hn=-1;for(;++Hn<ue.length;)Object.assign(Ze,ue[Hn].property),Object.assign(Ft,ue[Hn].normal);return new Ce(Ze,Ft,pe)}function Be(ue){return ue.toLowerCase()}class Qe{constructor(pe,Ze){this.property=pe,this.attribute=Ze}}Qe.prototype.space=null,Qe.prototype.boolean=!1,Qe.prototype.booleanish=!1,Qe.prototype.overloadedBoolean=!1,Qe.prototype.number=!1,Qe.prototype.commaSeparated=!1,Qe.prototype.spaceSeparated=!1,Qe.prototype.commaOrSpaceSeparated=!1,Qe.prototype.mustUseProperty=!1,Qe.prototype.defined=!1;let ot=0;const rt=Cn(),ft=Cn(),bt=Cn(),ut=Cn(),Tt=Cn(),Dt=Cn(),en=Cn();function Cn(){return Xy(2,++ot)}const vn=Object.keys(le);class pn extends Qe{constructor(pe,Ze,Ft,Hn){let Si=-1;if(super(pe,Ze),mn(this,"space",Hn),typeof Ft=="number")for(;++Si<vn.length;){const Hi=vn[Si];mn(this,vn[Si],(Ft&le[Hi])===le[Hi])}}}pn.prototype.defined=!0;function mn(ue,pe,Ze){Ze&&(ue[pe]=Ze)}const Mt={}.hasOwnProperty;function ct(ue){const pe={},Ze={};let Ft;for(Ft in ue.properties)if(Mt.call(ue.properties,Ft)){const Hn=ue.properties[Ft],Si=new pn(Ft,ue.transform(ue.attributes||{},Ft),Hn,ue.space);ue.mustUseProperty&&ue.mustUseProperty.includes(Ft)&&(Si.mustUseProperty=!0),pe[Ft]=Si,Ze[Be(Ft)]=Ft,Ze[Be(Si.attribute)]=Ft}return new Ce(pe,Ze,ue.space)}const nt=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}}),dn=ct({space:"xml",transform(ue,pe){return"xml:"+pe.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function En(ue,pe){return pe in ue?ue[pe]:pe}function Nt(ue,pe){return En(ue,pe.toLowerCase())}const cn=ct({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Nt,properties:{xmlns:null,xmlnsXLink:null}}),ln=ct({transform(ue,pe){return pe==="role"?pe:"aria-"+pe.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:ft,ariaAutoComplete:null,ariaBusy:ft,ariaChecked:ft,ariaColCount:ut,ariaColIndex:ut,ariaColSpan:ut,ariaControls:Tt,ariaCurrent:null,ariaDescribedBy:Tt,ariaDetails:null,ariaDisabled:ft,ariaDropEffect:Tt,ariaErrorMessage:null,ariaExpanded:ft,ariaFlowTo:Tt,ariaGrabbed:ft,ariaHasPopup:null,ariaHidden:ft,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Tt,ariaLevel:ut,ariaLive:null,ariaModal:ft,ariaMultiLine:ft,ariaMultiSelectable:ft,ariaOrientation:null,ariaOwns:Tt,ariaPlaceholder:null,ariaPosInSet:ut,ariaPressed:ft,ariaReadOnly:ft,ariaRelevant:null,ariaRequired:ft,ariaRoleDescription:Tt,ariaRowCount:ut,ariaRowIndex:ut,ariaRowSpan:ut,ariaSelected:ft,ariaSetSize:ut,ariaSort:null,ariaValueMax:ut,ariaValueMin:ut,ariaValueNow:ut,ariaValueText:null,role:null}}),_n=ct({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Nt,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Dt,acceptCharset:Tt,accessKey:Tt,action:null,allow:null,allowFullScreen:rt,allowPaymentRequest:rt,allowUserMedia:rt,alt:null,as:null,async:rt,autoCapitalize:null,autoComplete:Tt,autoFocus:rt,autoPlay:rt,blocking:Tt,capture:null,charSet:null,checked:rt,cite:null,className:Tt,cols:ut,colSpan:null,content:null,contentEditable:ft,controls:rt,controlsList:Tt,coords:ut|Dt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:rt,defer:rt,dir:null,dirName:null,disabled:rt,download:bt,draggable:ft,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:rt,formTarget:null,headers:Tt,height:ut,hidden:rt,high:ut,href:null,hrefLang:null,htmlFor:Tt,httpEquiv:Tt,id:null,imageSizes:null,imageSrcSet:null,inert:rt,inputMode:null,integrity:null,is:null,isMap:rt,itemId:null,itemProp:Tt,itemRef:Tt,itemScope:rt,itemType:Tt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:rt,low:ut,manifest:null,max:null,maxLength:ut,media:null,method:null,min:null,minLength:ut,multiple:rt,muted:rt,name:null,nonce:null,noModule:rt,noValidate:rt,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:rt,optimum:ut,pattern:null,ping:Tt,placeholder:null,playsInline:rt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:rt,referrerPolicy:null,rel:Tt,required:rt,reversed:rt,rows:ut,rowSpan:ut,sandbox:Tt,scope:null,scoped:rt,seamless:rt,selected:rt,shadowRootClonable:rt,shadowRootDelegatesFocus:rt,shadowRootMode:null,shape:null,size:ut,sizes:null,slot:null,span:ut,spellCheck:ft,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ut,step:null,style:null,tabIndex:ut,target:null,title:null,translate:null,type:null,typeMustMatch:rt,useMap:null,value:ft,width:ut,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Tt,axis:null,background:null,bgColor:null,border:ut,borderColor:null,bottomMargin:ut,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:rt,declare:rt,event:null,face:null,frame:null,frameBorder:null,hSpace:ut,leftMargin:ut,link:null,longDesc:null,lowSrc:null,marginHeight:ut,marginWidth:ut,noResize:rt,noHref:rt,noShade:rt,noWrap:rt,object:null,profile:null,prompt:null,rev:null,rightMargin:ut,rules:null,scheme:null,scrolling:ft,standby:null,summary:null,text:null,topMargin:ut,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ut,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:rt,disableRemotePlayback:rt,prefix:null,property:null,results:ut,security:null,unselectable:null}}),kn=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:En,properties:{about:en,accentHeight:ut,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ut,amplitude:ut,arabicForm:null,ascent:ut,attributeName:null,attributeType:null,azimuth:ut,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ut,by:null,calcMode:null,capHeight:ut,className:Tt,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:ut,diffuseConstant:ut,direction:null,display:null,dur:null,divisor:ut,dominantBaseline:null,download:rt,dx:null,dy:null,edgeMode:null,editable:null,elevation:ut,enableBackground:null,end:null,event:null,exponent:ut,externalResourcesRequired:null,fill:null,fillOpacity:ut,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:Dt,g2:Dt,glyphName:Dt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ut,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ut,horizOriginX:ut,horizOriginY:ut,id:null,ideographic:ut,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ut,k:ut,k1:ut,k2:ut,k3:ut,k4:ut,kernelMatrix:en,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ut,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:ut,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:ut,overlineThickness:ut,paintOrder:null,panose1:null,path:null,pathLength:ut,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Tt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ut,pointsAtY:ut,pointsAtZ:ut,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:en,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:en,rev:en,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:en,requiredFeatures:en,requiredFonts:en,requiredFormats:en,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:ut,specularExponent:ut,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ut,strikethroughThickness:ut,string:null,stroke:null,strokeDashArray:en,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ut,strokeOpacity:ut,strokeWidth:null,style:null,surfaceScale:ut,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:en,tabIndex:ut,tableValues:null,target:null,targetX:ut,targetY:ut,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:en,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ut,underlineThickness:ut,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ut,values:null,vAlphabetic:ut,vMathematical:ut,vectorEffect:null,vHanging:ut,vIdeographic:ut,version:null,vertAdvY:ut,vertOriginX:ut,vertOriginY:ut,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ut,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),si=Oe([dn,nt,cn,ln,_n],"html"),kt=Oe([dn,nt,cn,ln,kn],"svg"),Kn=/^data[-\w.:]+$/i,hi=/-[a-z]/g,et=/[A-Z]/g;function _e(ue,pe){const Ze=Be(pe);let Ft=pe,Hn=Qe;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 Si=pe.slice(5).replace(hi,Te);Ft="data"+Si.charAt(0).toUpperCase()+Si.slice(1)}else{const Si=pe.slice(4);if(!hi.test(Si)){let Hi=Si.replace(et,xe);Hi.charAt(0)!=="-"&&(Hi="-"+Hi),pe="data"+Hi}}Hn=pn}return new Hn(Ft,pe)}function xe(ue){return"-"+ue.toLowerCase()}function Te(ue){return ue.charAt(1).toUpperCase()}var Me=de(71523);const Ae={}.hasOwnProperty;function at(ue,pe){const Ze=pe||{};function Ft(Hn,...Si){let Hi=Ft.invalid;const Hr=Ft.handlers;if(Hn&&Ae.call(Hn,ue)){const ao=String(Hn[ue]);Hi=Ae.call(Hr,ao)?Hr[ao]:Ft.unknown}if(Hi)return Hi.call(this,Hn,...Si)}return Ft.handlers=Ze.handlers||{},Ft.invalid=Ze.invalid,Ft.unknown=Ze.unknown,Ft}const Lt={},Pt={}.hasOwnProperty,Vt=at("type",{handlers:{root:an,element:zt,text:bn,comment:un,doctype:on}});function It(ue,pe){const Ft=(pe||Lt).space;return Vt(ue,Ft==="svg"?kt:si)}function an(ue,pe){const Ze={nodeName:"#document",mode:(ue.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return Ze.childNodes=fn(ue.children,Ze,pe),An(ue,Ze),Ze}function sn(ue,pe){const Ze={nodeName:"#document-fragment",childNodes:[]};return Ze.childNodes=fn(ue.children,Ze,pe),An(ue,Ze),Ze}function on(ue){const pe={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return An(ue,pe),pe}function bn(ue){const pe={nodeName:"#text",value:ue.value,parentNode:null};return An(ue,pe),pe}function un(ue){const pe={nodeName:"#comment",data:ue.value,parentNode:null};return An(ue,pe),pe}function zt(ue,pe){const Ze=pe;let Ft=Ze;ue.type==="element"&&ue.tagName.toLowerCase()==="svg"&&Ze.space==="html"&&(Ft=kt);const Hn=[];let Si;if(ue.properties){for(Si in ue.properties)if(Si!=="children"&&Pt.call(ue.properties,Si)){const ao=xn(Ft,Si,ue.properties[Si]);ao&&Hn.push(ao)}}const Hi=Ft.space;(0,De.ok)(Hi);const Hr={nodeName:ue.tagName,tagName:ue.tagName,attrs:Hn,namespaceURI:qe.t[Hi],childNodes:[],parentNode:null};return Hr.childNodes=fn(ue.children,Hr,Ft),An(ue,Hr),ue.tagName==="template"&&ue.content&&(Hr.content=sn(ue.content,Ft)),Hr}function xn(ue,pe,Ze){const Ft=_e(ue,pe);if(Ze===!1||Ze===null||Ze===void 0||typeof Ze=="number"&&Number.isNaN(Ze)||!Ze&&Ft.boolean)return;Array.isArray(Ze)&&(Ze=Ft.commaSeparated?(0,Se.P)(Ze):(0,Me.P)(Ze));const Hn={name:Ft.attribute,value:Ze===!0?"":String(Ze)};if(Ft.space&&Ft.space!=="html"&&Ft.space!=="svg"){const Si=Hn.name.indexOf(":");Si<0?Hn.prefix="":(Hn.name=Hn.name.slice(Si+1),Hn.prefix=Ft.attribute.slice(0,Si)),Hn.namespace=qe.t[Ft.space]}return Hn}function fn(ue,pe,Ze){let Ft=-1;const Hn=[];if(ue)for(;++Ft<ue.length;){const Si=Vt(ue[Ft],Ze);Si.parentNode=pe,Hn.push(Si)}return Hn}function An(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"],ci=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]),zn="\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 Fn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Pn(ue){return ue>=55296&&ue<=57343}function Ht(ue){return ue>=56320&&ue<=57343}function fi(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 Li(ue){return ue>=64976&&ue<=65007||ci.has(ue)}var Dn;(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"})(Dn||(Dn={}));const qi=65536;class Ui{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=qi,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:Ft,col:Hn,offset:Si}=this,Hi=Hn+Ze,Hr=Si+Ze;return{code:pe,startLine:Ft,endLine:Ft,startCol:Hi,endCol:Hi,startOffset:Hr,endOffset:Hr}}_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(),fi(pe,Ze)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,yt.EOF;return this._err(Dn.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 Ft=0;Ft<pe.length;Ft++)if((this.html.charCodeAt(this.pos+Ft)|32)!==pe.charCodeAt(Ft))return!1;return!0}peek(pe){const Ze=this.pos+pe;if(Ze>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,yt.EOF;const Ft=this.html.charCodeAt(Ze);return Ft===yt.CARRIAGE_RETURN?yt.LINE_FEED:Ft}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,Pn(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(Dn.controlCharacterInInputStream):Li(pe)&&this._err(Dn.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 bi(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 Ri=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 gi;const Ii=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]]),ki=(gi=String.fromCodePoint)!==null&&gi!==void 0?gi: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 ar(ue){var pe;return ue>=55296&&ue<=57343||ue>1114111?65533:(pe=Ii.get(ue))!==null&&pe!==void 0?pe:ue}function Nr(ue){return ki(ar(ue))}var sr;(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"})(sr||(sr={}));const Di=32;var Ei;(function(ue){ue[ue.VALUE_LENGTH=49152]="VALUE_LENGTH",ue[ue.BRANCH_LENGTH=16256]="BRANCH_LENGTH",ue[ue.JUMP_TABLE=127]="JUMP_TABLE"})(Ei||(Ei={}));function Zt(ue){return ue>=sr.ZERO&&ue<=sr.NINE}function Wt(ue){return ue>=sr.UPPER_A&&ue<=sr.UPPER_F||ue>=sr.LOWER_A&&ue<=sr.LOWER_F}function Rt(ue){return ue>=sr.UPPER_A&&ue<=sr.UPPER_Z||ue>=sr.LOWER_A&&ue<=sr.LOWER_Z||Zt(ue)}function rn(ue){return ue===sr.EQUALS||Rt(ue)}var Xt;(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"})(Xt||(Xt={}));var Sn;(function(ue){ue[ue.Legacy=0]="Legacy",ue[ue.Strict=1]="Strict",ue[ue.Attribute=2]="Attribute"})(Sn||(Sn={}));class Rn{constructor(pe,Ze,Ft){this.decodeTree=pe,this.emitCodePoint=Ze,this.errors=Ft,this.state=Xt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Sn.Strict}startEntity(pe){this.decodeMode=pe,this.state=Xt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(pe,Ze){switch(this.state){case Xt.EntityStart:return pe.charCodeAt(Ze)===sr.NUM?(this.state=Xt.NumericStart,this.consumed+=1,this.stateNumericStart(pe,Ze+1)):(this.state=Xt.NamedEntity,this.stateNamedEntity(pe,Ze));case Xt.NumericStart:return this.stateNumericStart(pe,Ze);case Xt.NumericDecimal:return this.stateNumericDecimal(pe,Ze);case Xt.NumericHex:return this.stateNumericHex(pe,Ze);case Xt.NamedEntity:return this.stateNamedEntity(pe,Ze)}}stateNumericStart(pe,Ze){return Ze>=pe.length?-1:(pe.charCodeAt(Ze)|Di)===sr.LOWER_X?(this.state=Xt.NumericHex,this.consumed+=1,this.stateNumericHex(pe,Ze+1)):(this.state=Xt.NumericDecimal,this.stateNumericDecimal(pe,Ze))}addToNumericResult(pe,Ze,Ft,Hn){if(Ze!==Ft){const Si=Ft-Ze;this.result=this.result*Math.pow(Hn,Si)+Number.parseInt(pe.substr(Ze,Si),Hn),this.consumed+=Si}}stateNumericHex(pe,Ze){const Ft=Ze;for(;Ze<pe.length;){const Hn=pe.charCodeAt(Ze);if(Zt(Hn)||Wt(Hn))Ze+=1;else return this.addToNumericResult(pe,Ft,Ze,16),this.emitNumericEntity(Hn,3)}return this.addToNumericResult(pe,Ft,Ze,16),-1}stateNumericDecimal(pe,Ze){const Ft=Ze;for(;Ze<pe.length;){const Hn=pe.charCodeAt(Ze);if(Zt(Hn))Ze+=1;else return this.addToNumericResult(pe,Ft,Ze,10),this.emitNumericEntity(Hn,2)}return this.addToNumericResult(pe,Ft,Ze,10),-1}emitNumericEntity(pe,Ze){var Ft;if(this.consumed<=Ze)return(Ft=this.errors)===null||Ft===void 0||Ft.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(pe===sr.SEMI)this.consumed+=1;else if(this.decodeMode===Sn.Strict)return 0;return this.emitCodePoint(ar(this.result),this.consumed),this.errors&&(pe!==sr.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(pe,Ze){const{decodeTree:Ft}=this;let Hn=Ft[this.treeIndex],Si=(Hn&Ei.VALUE_LENGTH)>>14;for(;Ze<pe.length;Ze++,this.excess++){const Hi=pe.charCodeAt(Ze);if(this.treeIndex=qt(Ft,Hn,this.treeIndex+Math.max(1,Si),Hi),this.treeIndex<0)return this.result===0||this.decodeMode===Sn.Attribute&&(Si===0||rn(Hi))?0:this.emitNotTerminatedNamedEntity();if(Hn=Ft[this.treeIndex],Si=(Hn&Ei.VALUE_LENGTH)>>14,Si!==0){if(Hi===sr.SEMI)return this.emitNamedEntityData(this.treeIndex,Si,this.consumed+this.excess);this.decodeMode!==Sn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var pe;const{result:Ze,decodeTree:Ft}=this,Hn=(Ft[Ze]&Ei.VALUE_LENGTH)>>14;return this.emitNamedEntityData(Ze,Hn,this.consumed),(pe=this.errors)===null||pe===void 0||pe.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(pe,Ze,Ft){const{decodeTree:Hn}=this;return this.emitCodePoint(Ze===1?Hn[pe]&~Ei.VALUE_LENGTH:Hn[pe+1],Ft),Ze===3&&this.emitCodePoint(Hn[pe+2],Ft),Ft}end(){var pe;switch(this.state){case Xt.NamedEntity:return this.result!==0&&(this.decodeMode!==Sn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Xt.NumericDecimal:return this.emitNumericEntity(0,2);case Xt.NumericHex:return this.emitNumericEntity(0,3);case Xt.NumericStart:return(pe=this.errors)===null||pe===void 0||pe.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Xt.EntityStart:return 0}}}function Jn(ue){let pe="";const Ze=new Rn(ue,Ft=>pe+=fromCodePoint(Ft));return function(Hn,Si){let Hi=0,Hr=0;for(;(Hr=Hn.indexOf("&",Hr))>=0;){pe+=Hn.slice(Hi,Hr),Ze.startEntity(Si);const mi=Ze.write(Hn,Hr+1);if(mi<0){Hi=Hr+Ze.end();break}Hi=Hr+mi,Hr=mi===0?Hi+1:Hi}const ao=pe+Hn.slice(Hi);return pe="",ao}}function qt(ue,pe,Ze,Ft){const Hn=(pe&Ei.BRANCH_LENGTH)>>7,Si=pe&Ei.JUMP_TABLE;if(Hn===0)return Si!==0&&Ft===Si?Ze:-1;if(Si){const ao=Ft-Si;return ao<0||ao>=Hn?-1:ue[Ze+ao]-1}let Hi=Ze,Hr=Hi+Hn-1;for(;Hi<=Hr;){const ao=Hi+Hr>>>1,mi=ue[ao];if(mi<Ft)Hi=ao+1;else if(mi>Ft)Hr=ao-1;else return ue[ao+Hn]}return-1}const Gt=null,ti=null;function pt(ue,pe=Sn.Legacy){return Gt(ue,pe)}function yn(ue){return Gt(ue,Sn.Attribute)}function ii(ue){return Gt(ue,Sn.Strict)}function xi(ue){return ti(ue,Sn.Strict)}var Ut;(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/"})(Ut||(Ut={}));var $n;(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"})($n||($n={}));var pi;(function(ue){ue.NO_QUIRKS="no-quirks",ue.QUIRKS="quirks",ue.LIMITED_QUIRKS="limited-quirks"})(pi||(pi={}));var Kt;(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"})(Kt||(Kt={}));var Ue;(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"})(Ue||(Ue={}));const wi=new Map([[Kt.A,Ue.A],[Kt.ADDRESS,Ue.ADDRESS],[Kt.ANNOTATION_XML,Ue.ANNOTATION_XML],[Kt.APPLET,Ue.APPLET],[Kt.AREA,Ue.AREA],[Kt.ARTICLE,Ue.ARTICLE],[Kt.ASIDE,Ue.ASIDE],[Kt.B,Ue.B],[Kt.BASE,Ue.BASE],[Kt.BASEFONT,Ue.BASEFONT],[Kt.BGSOUND,Ue.BGSOUND],[Kt.BIG,Ue.BIG],[Kt.BLOCKQUOTE,Ue.BLOCKQUOTE],[Kt.BODY,Ue.BODY],[Kt.BR,Ue.BR],[Kt.BUTTON,Ue.BUTTON],[Kt.CAPTION,Ue.CAPTION],[Kt.CENTER,Ue.CENTER],[Kt.CODE,Ue.CODE],[Kt.COL,Ue.COL],[Kt.COLGROUP,Ue.COLGROUP],[Kt.DD,Ue.DD],[Kt.DESC,Ue.DESC],[Kt.DETAILS,Ue.DETAILS],[Kt.DIALOG,Ue.DIALOG],[Kt.DIR,Ue.DIR],[Kt.DIV,Ue.DIV],[Kt.DL,Ue.DL],[Kt.DT,Ue.DT],[Kt.EM,Ue.EM],[Kt.EMBED,Ue.EMBED],[Kt.FIELDSET,Ue.FIELDSET],[Kt.FIGCAPTION,Ue.FIGCAPTION],[Kt.FIGURE,Ue.FIGURE],[Kt.FONT,Ue.FONT],[Kt.FOOTER,Ue.FOOTER],[Kt.FOREIGN_OBJECT,Ue.FOREIGN_OBJECT],[Kt.FORM,Ue.FORM],[Kt.FRAME,Ue.FRAME],[Kt.FRAMESET,Ue.FRAMESET],[Kt.H1,Ue.H1],[Kt.H2,Ue.H2],[Kt.H3,Ue.H3],[Kt.H4,Ue.H4],[Kt.H5,Ue.H5],[Kt.H6,Ue.H6],[Kt.HEAD,Ue.HEAD],[Kt.HEADER,Ue.HEADER],[Kt.HGROUP,Ue.HGROUP],[Kt.HR,Ue.HR],[Kt.HTML,Ue.HTML],[Kt.I,Ue.I],[Kt.IMG,Ue.IMG],[Kt.IMAGE,Ue.IMAGE],[Kt.INPUT,Ue.INPUT],[Kt.IFRAME,Ue.IFRAME],[Kt.KEYGEN,Ue.KEYGEN],[Kt.LABEL,Ue.LABEL],[Kt.LI,Ue.LI],[Kt.LINK,Ue.LINK],[Kt.LISTING,Ue.LISTING],[Kt.MAIN,Ue.MAIN],[Kt.MALIGNMARK,Ue.MALIGNMARK],[Kt.MARQUEE,Ue.MARQUEE],[Kt.MATH,Ue.MATH],[Kt.MENU,Ue.MENU],[Kt.META,Ue.META],[Kt.MGLYPH,Ue.MGLYPH],[Kt.MI,Ue.MI],[Kt.MO,Ue.MO],[Kt.MN,Ue.MN],[Kt.MS,Ue.MS],[Kt.MTEXT,Ue.MTEXT],[Kt.NAV,Ue.NAV],[Kt.NOBR,Ue.NOBR],[Kt.NOFRAMES,Ue.NOFRAMES],[Kt.NOEMBED,Ue.NOEMBED],[Kt.NOSCRIPT,Ue.NOSCRIPT],[Kt.OBJECT,Ue.OBJECT],[Kt.OL,Ue.OL],[Kt.OPTGROUP,Ue.OPTGROUP],[Kt.OPTION,Ue.OPTION],[Kt.P,Ue.P],[Kt.PARAM,Ue.PARAM],[Kt.PLAINTEXT,Ue.PLAINTEXT],[Kt.PRE,Ue.PRE],[Kt.RB,Ue.RB],[Kt.RP,Ue.RP],[Kt.RT,Ue.RT],[Kt.RTC,Ue.RTC],[Kt.RUBY,Ue.RUBY],[Kt.S,Ue.S],[Kt.SCRIPT,Ue.SCRIPT],[Kt.SEARCH,Ue.SEARCH],[Kt.SECTION,Ue.SECTION],[Kt.SELECT,Ue.SELECT],[Kt.SOURCE,Ue.SOURCE],[Kt.SMALL,Ue.SMALL],[Kt.SPAN,Ue.SPAN],[Kt.STRIKE,Ue.STRIKE],[Kt.STRONG,Ue.STRONG],[Kt.STYLE,Ue.STYLE],[Kt.SUB,Ue.SUB],[Kt.SUMMARY,Ue.SUMMARY],[Kt.SUP,Ue.SUP],[Kt.TABLE,Ue.TABLE],[Kt.TBODY,Ue.TBODY],[Kt.TEMPLATE,Ue.TEMPLATE],[Kt.TEXTAREA,Ue.TEXTAREA],[Kt.TFOOT,Ue.TFOOT],[Kt.TD,Ue.TD],[Kt.TH,Ue.TH],[Kt.THEAD,Ue.THEAD],[Kt.TITLE,Ue.TITLE],[Kt.TR,Ue.TR],[Kt.TRACK,Ue.TRACK],[Kt.TT,Ue.TT],[Kt.U,Ue.U],[Kt.UL,Ue.UL],[Kt.SVG,Ue.SVG],[Kt.VAR,Ue.VAR],[Kt.WBR,Ue.WBR],[Kt.XMP,Ue.XMP]]);function ai(ue){var pe;return(pe=wi.get(ue))!==null&&pe!==void 0?pe:Ue.UNKNOWN}const Mn=Ue,ji={[Ut.HTML]:new Set([Mn.ADDRESS,Mn.APPLET,Mn.AREA,Mn.ARTICLE,Mn.ASIDE,Mn.BASE,Mn.BASEFONT,Mn.BGSOUND,Mn.BLOCKQUOTE,Mn.BODY,Mn.BR,Mn.BUTTON,Mn.CAPTION,Mn.CENTER,Mn.COL,Mn.COLGROUP,Mn.DD,Mn.DETAILS,Mn.DIR,Mn.DIV,Mn.DL,Mn.DT,Mn.EMBED,Mn.FIELDSET,Mn.FIGCAPTION,Mn.FIGURE,Mn.FOOTER,Mn.FORM,Mn.FRAME,Mn.FRAMESET,Mn.H1,Mn.H2,Mn.H3,Mn.H4,Mn.H5,Mn.H6,Mn.HEAD,Mn.HEADER,Mn.HGROUP,Mn.HR,Mn.HTML,Mn.IFRAME,Mn.IMG,Mn.INPUT,Mn.LI,Mn.LINK,Mn.LISTING,Mn.MAIN,Mn.MARQUEE,Mn.MENU,Mn.META,Mn.NAV,Mn.NOEMBED,Mn.NOFRAMES,Mn.NOSCRIPT,Mn.OBJECT,Mn.OL,Mn.P,Mn.PARAM,Mn.PLAINTEXT,Mn.PRE,Mn.SCRIPT,Mn.SECTION,Mn.SELECT,Mn.SOURCE,Mn.STYLE,Mn.SUMMARY,Mn.TABLE,Mn.TBODY,Mn.TD,Mn.TEMPLATE,Mn.TEXTAREA,Mn.TFOOT,Mn.TH,Mn.THEAD,Mn.TITLE,Mn.TR,Mn.TRACK,Mn.UL,Mn.WBR,Mn.XMP]),[Ut.MATHML]:new Set([Mn.MI,Mn.MO,Mn.MN,Mn.MS,Mn.MTEXT,Mn.ANNOTATION_XML]),[Ut.SVG]:new Set([Mn.TITLE,Mn.FOREIGN_OBJECT,Mn.DESC]),[Ut.XLINK]:new Set,[Ut.XML]:new Set,[Ut.XMLNS]:new Set},Ki=new Set([Mn.H1,Mn.H2,Mn.H3,Mn.H4,Mn.H5,Mn.H6]),Zi=new Set([Kt.STYLE,Kt.SCRIPT,Kt.XMP,Kt.IFRAME,Kt.NOEMBED,Kt.NOFRAMES,Kt.PLAINTEXT]);function Nn(ue,pe){return Zi.has(ue)||pe&&ue===Kt.NOSCRIPT}var Jt;(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"})(Jt||(Jt={}));const Ji={DATA:Jt.DATA,RCDATA:Jt.RCDATA,RAWTEXT:Jt.RAWTEXT,SCRIPT_DATA:Jt.SCRIPT_DATA,PLAINTEXT:Jt.PLAINTEXT,CDATA_SECTION:Jt.CDATA_SECTION};function zr(ue){return ue>=yt.DIGIT_0&&ue<=yt.DIGIT_9}function wn(ue){return ue>=yt.LATIN_CAPITAL_A&&ue<=yt.LATIN_CAPITAL_Z}function vi(ue){return ue>=yt.LATIN_SMALL_A&&ue<=yt.LATIN_SMALL_Z}function Ni(ue){return vi(ue)||wn(ue)}function Bi(ue){return Ni(ue)||zr(ue)}function Fi(ue){return ue+32}function Wi(ue){return ue===yt.SPACE||ue===yt.LINE_FEED||ue===yt.TABULATION||ue===yt.FORM_FEED}function cr(ue){return Wi(ue)||ue===yt.SOLIDUS||ue===yt.GREATER_THAN_SIGN}function mr(ue){return ue===yt.NULL?Dn.nullCharacterReference:ue>1114111?Dn.characterReferenceOutsideUnicodeRange:Pn(ue)?Dn.surrogateCharacterReference:Li(ue)?Dn.noncharacterCharacterReference:zi(ue)||ue===yt.CARRIAGE_RETURN?Dn.controlCharacterReference:null}class Tr{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=Jt.DATA,this.returnState=Jt.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Ui(Ze),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Rn(Ri,(Ft,Hn)=>{this.preprocessor.pos=this.entityStartPos+Hn-1,this._flushCodePointConsumedAsCharacterReference(Ft)},Ze.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Dn.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:Ft=>{this._err(Dn.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+Ft)},validateNumericCharacterReference:Ft=>{const Hn=mr(Ft);Hn&&this._err(Hn,1)}}:void 0)}_err(pe,Ze=0){var Ft,Hn;(Hn=(Ft=this.handler).onParseError)===null||Hn===void 0||Hn.call(Ft,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,Ft){this.active=!0,this.preprocessor.write(pe,Ze),this._runParsingLoop(),this.paused||Ft==null||Ft()}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:Ue.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:ui.END_TAG,tagName:"",tagID:Ue.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 Ft=this.currentToken;if(bi(Ft,this.currentAttr.name)===null){if(Ft.attrs.push(this.currentAttr),Ft.location&&this.currentLocation){const Hn=(pe=(Ze=Ft.location).attrs)!==null&&pe!==void 0?pe:Ze.attrs=Object.create(null);Hn[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(Dn.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=ai(pe.tagName),pe.type===ui.START_TAG?(this.lastStartTagName=pe.tagName,this.handler.onStartTag(pe)):(pe.attrs.length>0&&this._err(Dn.endTagWithAttributes),pe.selfClosing&&this._err(Dn.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=Wi(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=Jt.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Sn.Attribute:Sn.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===Jt.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Jt.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Jt.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(pe){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(pe):this._emitCodePoint(pe)}_callState(pe){switch(this.state){case Jt.DATA:{this._stateData(pe);break}case Jt.RCDATA:{this._stateRcdata(pe);break}case Jt.RAWTEXT:{this._stateRawtext(pe);break}case Jt.SCRIPT_DATA:{this._stateScriptData(pe);break}case Jt.PLAINTEXT:{this._statePlaintext(pe);break}case Jt.TAG_OPEN:{this._stateTagOpen(pe);break}case Jt.END_TAG_OPEN:{this._stateEndTagOpen(pe);break}case Jt.TAG_NAME:{this._stateTagName(pe);break}case Jt.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(pe);break}case Jt.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(pe);break}case Jt.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(pe);break}case Jt.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(pe);break}case Jt.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(pe);break}case Jt.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(pe);break}case Jt.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(pe);break}case Jt.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(pe);break}case Jt.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(pe);break}case Jt.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(pe);break}case Jt.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(pe);break}case Jt.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(pe);break}case Jt.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(pe);break}case Jt.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(pe);break}case Jt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(pe);break}case Jt.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(pe);break}case Jt.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(pe);break}case Jt.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(pe);break}case Jt.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(pe);break}case Jt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(pe);break}case Jt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(pe);break}case Jt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(pe);break}case Jt.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(pe);break}case Jt.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(pe);break}case Jt.ATTRIBUTE_NAME:{this._stateAttributeName(pe);break}case Jt.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(pe);break}case Jt.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(pe);break}case Jt.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(pe);break}case Jt.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(pe);break}case Jt.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(pe);break}case Jt.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(pe);break}case Jt.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(pe);break}case Jt.BOGUS_COMMENT:{this._stateBogusComment(pe);break}case Jt.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(pe);break}case Jt.COMMENT_START:{this._stateCommentStart(pe);break}case Jt.COMMENT_START_DASH:{this._stateCommentStartDash(pe);break}case Jt.COMMENT:{this._stateComment(pe);break}case Jt.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(pe);break}case Jt.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(pe);break}case Jt.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(pe);break}case Jt.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(pe);break}case Jt.COMMENT_END_DASH:{this._stateCommentEndDash(pe);break}case Jt.COMMENT_END:{this._stateCommentEnd(pe);break}case Jt.COMMENT_END_BANG:{this._stateCommentEndBang(pe);break}case Jt.DOCTYPE:{this._stateDoctype(pe);break}case Jt.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(pe);break}case Jt.DOCTYPE_NAME:{this._stateDoctypeName(pe);break}case Jt.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(pe);break}case Jt.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(pe);break}case Jt.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(pe);break}case Jt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(pe);break}case Jt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(pe);break}case Jt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(pe);break}case Jt.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(pe);break}case Jt.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(pe);break}case Jt.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(pe);break}case Jt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(pe);break}case Jt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(pe);break}case Jt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(pe);break}case Jt.BOGUS_DOCTYPE:{this._stateBogusDoctype(pe);break}case Jt.CDATA_SECTION:{this._stateCdataSection(pe);break}case Jt.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(pe);break}case Jt.CDATA_SECTION_END:{this._stateCdataSectionEnd(pe);break}case Jt.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case Jt.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(pe);break}default:throw new Error("Unknown state")}}_stateData(pe){switch(pe){case yt.LESS_THAN_SIGN:{this.state=Jt.TAG_OPEN;break}case yt.AMPERSAND:{this._startCharacterReference();break}case yt.NULL:{this._err(Dn.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=Jt.RCDATA_LESS_THAN_SIGN;break}case yt.NULL:{this._err(Dn.unexpectedNullCharacter),this._emitChars(zn);break}case yt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(pe)}}_stateRawtext(pe){switch(pe){case yt.LESS_THAN_SIGN:{this.state=Jt.RAWTEXT_LESS_THAN_SIGN;break}case yt.NULL:{this._err(Dn.unexpectedNullCharacter),this._emitChars(zn);break}case yt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(pe)}}_stateScriptData(pe){switch(pe){case yt.LESS_THAN_SIGN:{this.state=Jt.SCRIPT_DATA_LESS_THAN_SIGN;break}case yt.NULL:{this._err(Dn.unexpectedNullCharacter),this._emitChars(zn);break}case yt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(pe)}}_statePlaintext(pe){switch(pe){case yt.NULL:{this._err(Dn.unexpectedNullCharacter),this._emitChars(zn);break}case yt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(pe)}}_stateTagOpen(pe){if(Ni(pe))this._createStartTagToken(),this.state=Jt.TAG_NAME,this._stateTagName(pe);else switch(pe){case yt.EXCLAMATION_MARK:{this.state=Jt.MARKUP_DECLARATION_OPEN;break}case yt.SOLIDUS:{this.state=Jt.END_TAG_OPEN;break}case yt.QUESTION_MARK:{this._err(Dn.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Jt.BOGUS_COMMENT,this._stateBogusComment(pe);break}case yt.EOF:{this._err(Dn.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Dn.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=Jt.DATA,this._stateData(pe)}}_stateEndTagOpen(pe){if(Ni(pe))this._createEndTagToken(),this.state=Jt.TAG_NAME,this._stateTagName(pe);else switch(pe){case yt.GREATER_THAN_SIGN:{this._err(Dn.missingEndTagName),this.state=Jt.DATA;break}case yt.EOF:{this._err(Dn.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Dn.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=Jt.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=Jt.BEFORE_ATTRIBUTE_NAME;break}case yt.SOLIDUS:{this.state=Jt.SELF_CLOSING_START_TAG;break}case yt.GREATER_THAN_SIGN:{this.state=Jt.DATA,this.emitCurrentTagToken();break}case yt.NULL:{this._err(Dn.unexpectedNullCharacter),Ze.tagName+=zn;break}case yt.EOF:{this._err(Dn.eofInTag),this._emitEOFToken();break}default:Ze.tagName+=String.fromCodePoint(wn(pe)?Fi(pe):pe)}}_stateRcdataLessThanSign(pe){pe===yt.SOLIDUS?this.state=Jt.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=Jt.RCDATA,this._stateRcdata(pe))}_stateRcdataEndTagOpen(pe){Ni(pe)?(this.state=Jt.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(pe)):(this._emitChars("</"),this.state=Jt.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=Jt.BEFORE_ATTRIBUTE_NAME,!1;case yt.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=Jt.SELF_CLOSING_START_TAG,!1;case yt.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=Jt.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(pe){this.handleSpecialEndTag(pe)&&(this._emitChars("</"),this.state=Jt.RCDATA,this._stateRcdata(pe))}_stateRawtextLessThanSign(pe){pe===yt.SOLIDUS?this.state=Jt.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=Jt.RAWTEXT,this._stateRawtext(pe))}_stateRawtextEndTagOpen(pe){Ni(pe)?(this.state=Jt.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(pe)):(this._emitChars("</"),this.state=Jt.RAWTEXT,this._stateRawtext(pe))}_stateRawtextEndTagName(pe){this.handleSpecialEndTag(pe)&&(this._emitChars("</"),this.state=Jt.RAWTEXT,this._stateRawtext(pe))}_stateScriptDataLessThanSign(pe){switch(pe){case yt.SOLIDUS:{this.state=Jt.SCRIPT_DATA_END_TAG_OPEN;break}case yt.EXCLAMATION_MARK:{this.state=Jt.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=Jt.SCRIPT_DATA,this._stateScriptData(pe)}}_stateScriptDataEndTagOpen(pe){Ni(pe)?(this.state=Jt.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(pe)):(this._emitChars("</"),this.state=Jt.SCRIPT_DATA,this._stateScriptData(pe))}_stateScriptDataEndTagName(pe){this.handleSpecialEndTag(pe)&&(this._emitChars("</"),this.state=Jt.SCRIPT_DATA,this._stateScriptData(pe))}_stateScriptDataEscapeStart(pe){pe===yt.HYPHEN_MINUS?(this.state=Jt.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=Jt.SCRIPT_DATA,this._stateScriptData(pe))}_stateScriptDataEscapeStartDash(pe){pe===yt.HYPHEN_MINUS?(this.state=Jt.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=Jt.SCRIPT_DATA,this._stateScriptData(pe))}_stateScriptDataEscaped(pe){switch(pe){case yt.HYPHEN_MINUS:{this.state=Jt.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case yt.LESS_THAN_SIGN:{this.state=Jt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case yt.NULL:{this._err(Dn.unexpectedNullCharacter),this._emitChars(zn);break}case yt.EOF:{this._err(Dn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(pe)}}_stateScriptDataEscapedDash(pe){switch(pe){case yt.HYPHEN_MINUS:{this.state=Jt.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case yt.LESS_THAN_SIGN:{this.state=Jt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case yt.NULL:{this._err(Dn.unexpectedNullCharacter),this.state=Jt.SCRIPT_DATA_ESCAPED,this._emitChars(zn);break}case yt.EOF:{this._err(Dn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Jt.SCRIPT_DATA_ESCAPED,this._emitCodePoint(pe)}}_stateScriptDataEscapedDashDash(pe){switch(pe){case yt.HYPHEN_MINUS:{this._emitChars("-");break}case yt.LESS_THAN_SIGN:{this.state=Jt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case yt.GREATER_THAN_SIGN:{this.state=Jt.SCRIPT_DATA,this._emitChars(">");break}case yt.NULL:{this._err(Dn.unexpectedNullCharacter),this.state=Jt.SCRIPT_DATA_ESCAPED,this._emitChars(zn);break}case yt.EOF:{this._err(Dn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Jt.SCRIPT_DATA_ESCAPED,this._emitCodePoint(pe)}}_stateScriptDataEscapedLessThanSign(pe){pe===yt.SOLIDUS?this.state=Jt.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Ni(pe)?(this._emitChars("<"),this.state=Jt.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(pe)):(this._emitChars("<"),this.state=Jt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(pe))}_stateScriptDataEscapedEndTagOpen(pe){Ni(pe)?(this.state=Jt.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(pe)):(this._emitChars("</"),this.state=Jt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(pe))}_stateScriptDataEscapedEndTagName(pe){this.handleSpecialEndTag(pe)&&(this._emitChars("</"),this.state=Jt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(pe))}_stateScriptDataDoubleEscapeStart(pe){if(this.preprocessor.startsWith(Fn.SCRIPT,!1)&&cr(this.preprocessor.peek(Fn.SCRIPT.length))){this._emitCodePoint(pe);for(let Ze=0;Ze<Fn.SCRIPT.length;Ze++)this._emitCodePoint(this._consume());this.state=Jt.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=Jt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(pe))}_stateScriptDataDoubleEscaped(pe){switch(pe){case yt.HYPHEN_MINUS:{this.state=Jt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case yt.LESS_THAN_SIGN:{this.state=Jt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case yt.NULL:{this._err(Dn.unexpectedNullCharacter),this._emitChars(zn);break}case yt.EOF:{this._err(Dn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(pe)}}_stateScriptDataDoubleEscapedDash(pe){switch(pe){case yt.HYPHEN_MINUS:{this.state=Jt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case yt.LESS_THAN_SIGN:{this.state=Jt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case yt.NULL:{this._err(Dn.unexpectedNullCharacter),this.state=Jt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(zn);break}case yt.EOF:{this._err(Dn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Jt.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=Jt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case yt.GREATER_THAN_SIGN:{this.state=Jt.SCRIPT_DATA,this._emitChars(">");break}case yt.NULL:{this._err(Dn.unexpectedNullCharacter),this.state=Jt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(zn);break}case yt.EOF:{this._err(Dn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Jt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(pe)}}_stateScriptDataDoubleEscapedLessThanSign(pe){pe===yt.SOLIDUS?(this.state=Jt.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=Jt.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(pe))}_stateScriptDataDoubleEscapeEnd(pe){if(this.preprocessor.startsWith(Fn.SCRIPT,!1)&&cr(this.preprocessor.peek(Fn.SCRIPT.length))){this._emitCodePoint(pe);for(let Ze=0;Ze<Fn.SCRIPT.length;Ze++)this._emitCodePoint(this._consume());this.state=Jt.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=Jt.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=Jt.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(pe);break}case yt.EQUALS_SIGN:{this._err(Dn.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=Jt.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=Jt.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=Jt.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(pe);break}case yt.EQUALS_SIGN:{this._leaveAttrName(),this.state=Jt.BEFORE_ATTRIBUTE_VALUE;break}case yt.QUOTATION_MARK:case yt.APOSTROPHE:case yt.LESS_THAN_SIGN:{this._err(Dn.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(pe);break}case yt.NULL:{this._err(Dn.unexpectedNullCharacter),this.currentAttr.name+=zn;break}default:this.currentAttr.name+=String.fromCodePoint(wn(pe)?Fi(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=Jt.SELF_CLOSING_START_TAG;break}case yt.EQUALS_SIGN:{this.state=Jt.BEFORE_ATTRIBUTE_VALUE;break}case yt.GREATER_THAN_SIGN:{this.state=Jt.DATA,this.emitCurrentTagToken();break}case yt.EOF:{this._err(Dn.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=Jt.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=Jt.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case yt.APOSTROPHE:{this.state=Jt.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case yt.GREATER_THAN_SIGN:{this._err(Dn.missingAttributeValue),this.state=Jt.DATA,this.emitCurrentTagToken();break}default:this.state=Jt.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(pe)}}_stateAttributeValueDoubleQuoted(pe){switch(pe){case yt.QUOTATION_MARK:{this.state=Jt.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case yt.AMPERSAND:{this._startCharacterReference();break}case yt.NULL:{this._err(Dn.unexpectedNullCharacter),this.currentAttr.value+=zn;break}case yt.EOF:{this._err(Dn.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(pe)}}_stateAttributeValueSingleQuoted(pe){switch(pe){case yt.APOSTROPHE:{this.state=Jt.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case yt.AMPERSAND:{this._startCharacterReference();break}case yt.NULL:{this._err(Dn.unexpectedNullCharacter),this.currentAttr.value+=zn;break}case yt.EOF:{this._err(Dn.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=Jt.BEFORE_ATTRIBUTE_NAME;break}case yt.AMPERSAND:{this._startCharacterReference();break}case yt.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=Jt.DATA,this.emitCurrentTagToken();break}case yt.NULL:{this._err(Dn.unexpectedNullCharacter),this.currentAttr.value+=zn;break}case yt.QUOTATION_MARK:case yt.APOSTROPHE:case yt.LESS_THAN_SIGN:case yt.EQUALS_SIGN:case yt.GRAVE_ACCENT:{this._err(Dn.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(pe);break}case yt.EOF:{this._err(Dn.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=Jt.BEFORE_ATTRIBUTE_NAME;break}case yt.SOLIDUS:{this._leaveAttrValue(),this.state=Jt.SELF_CLOSING_START_TAG;break}case yt.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=Jt.DATA,this.emitCurrentTagToken();break}case yt.EOF:{this._err(Dn.eofInTag),this._emitEOFToken();break}default:this._err(Dn.missingWhitespaceBetweenAttributes),this.state=Jt.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(pe)}}_stateSelfClosingStartTag(pe){switch(pe){case yt.GREATER_THAN_SIGN:{const Ze=this.currentToken;Ze.selfClosing=!0,this.state=Jt.DATA,this.emitCurrentTagToken();break}case yt.EOF:{this._err(Dn.eofInTag),this._emitEOFToken();break}default:this._err(Dn.unexpectedSolidusInTag),this.state=Jt.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(pe)}}_stateBogusComment(pe){const Ze=this.currentToken;switch(pe){case yt.GREATER_THAN_SIGN:{this.state=Jt.DATA,this.emitCurrentComment(Ze);break}case yt.EOF:{this.emitCurrentComment(Ze),this._emitEOFToken();break}case yt.NULL:{this._err(Dn.unexpectedNullCharacter),Ze.data+=zn;break}default:Ze.data+=String.fromCodePoint(pe)}}_stateMarkupDeclarationOpen(pe){this._consumeSequenceIfMatch(Fn.DASH_DASH,!0)?(this._createCommentToken(Fn.DASH_DASH.length+1),this.state=Jt.COMMENT_START):this._consumeSequenceIfMatch(Fn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Fn.DOCTYPE.length+1),this.state=Jt.DOCTYPE):this._consumeSequenceIfMatch(Fn.CDATA_START,!0)?this.inForeignNode?this.state=Jt.CDATA_SECTION:(this._err(Dn.cdataInHtmlContent),this._createCommentToken(Fn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=Jt.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Dn.incorrectlyOpenedComment),this._createCommentToken(2),this.state=Jt.BOGUS_COMMENT,this._stateBogusComment(pe))}_stateCommentStart(pe){switch(pe){case yt.HYPHEN_MINUS:{this.state=Jt.COMMENT_START_DASH;break}case yt.GREATER_THAN_SIGN:{this._err(Dn.abruptClosingOfEmptyComment),this.state=Jt.DATA;const Ze=this.currentToken;this.emitCurrentComment(Ze);break}default:this.state=Jt.COMMENT,this._stateComment(pe)}}_stateCommentStartDash(pe){const Ze=this.currentToken;switch(pe){case yt.HYPHEN_MINUS:{this.state=Jt.COMMENT_END;break}case yt.GREATER_THAN_SIGN:{this._err(Dn.abruptClosingOfEmptyComment),this.state=Jt.DATA,this.emitCurrentComment(Ze);break}case yt.EOF:{this._err(Dn.eofInComment),this.emitCurrentComment(Ze),this._emitEOFToken();break}default:Ze.data+="-",this.state=Jt.COMMENT,this._stateComment(pe)}}_stateComment(pe){const Ze=this.currentToken;switch(pe){case yt.HYPHEN_MINUS:{this.state=Jt.COMMENT_END_DASH;break}case yt.LESS_THAN_SIGN:{Ze.data+="<",this.state=Jt.COMMENT_LESS_THAN_SIGN;break}case yt.NULL:{this._err(Dn.unexpectedNullCharacter),Ze.data+=zn;break}case yt.EOF:{this._err(Dn.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=Jt.COMMENT_LESS_THAN_SIGN_BANG;break}case yt.LESS_THAN_SIGN:{Ze.data+="<";break}default:this.state=Jt.COMMENT,this._stateComment(pe)}}_stateCommentLessThanSignBang(pe){pe===yt.HYPHEN_MINUS?this.state=Jt.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=Jt.COMMENT,this._stateComment(pe))}_stateCommentLessThanSignBangDash(pe){pe===yt.HYPHEN_MINUS?this.state=Jt.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=Jt.COMMENT_END_DASH,this._stateCommentEndDash(pe))}_stateCommentLessThanSignBangDashDash(pe){pe!==yt.GREATER_THAN_SIGN&&pe!==yt.EOF&&this._err(Dn.nestedComment),this.state=Jt.COMMENT_END,this._stateCommentEnd(pe)}_stateCommentEndDash(pe){const Ze=this.currentToken;switch(pe){case yt.HYPHEN_MINUS:{this.state=Jt.COMMENT_END;break}case yt.EOF:{this._err(Dn.eofInComment),this.emitCurrentComment(Ze),this._emitEOFToken();break}default:Ze.data+="-",this.state=Jt.COMMENT,this._stateComment(pe)}}_stateCommentEnd(pe){const Ze=this.currentToken;switch(pe){case yt.GREATER_THAN_SIGN:{this.state=Jt.DATA,this.emitCurrentComment(Ze);break}case yt.EXCLAMATION_MARK:{this.state=Jt.COMMENT_END_BANG;break}case yt.HYPHEN_MINUS:{Ze.data+="-";break}case yt.EOF:{this._err(Dn.eofInComment),this.emitCurrentComment(Ze),this._emitEOFToken();break}default:Ze.data+="--",this.state=Jt.COMMENT,this._stateComment(pe)}}_stateCommentEndBang(pe){const Ze=this.currentToken;switch(pe){case yt.HYPHEN_MINUS:{Ze.data+="--!",this.state=Jt.COMMENT_END_DASH;break}case yt.GREATER_THAN_SIGN:{this._err(Dn.incorrectlyClosedComment),this.state=Jt.DATA,this.emitCurrentComment(Ze);break}case yt.EOF:{this._err(Dn.eofInComment),this.emitCurrentComment(Ze),this._emitEOFToken();break}default:Ze.data+="--!",this.state=Jt.COMMENT,this._stateComment(pe)}}_stateDoctype(pe){switch(pe){case yt.SPACE:case yt.LINE_FEED:case yt.TABULATION:case yt.FORM_FEED:{this.state=Jt.BEFORE_DOCTYPE_NAME;break}case yt.GREATER_THAN_SIGN:{this.state=Jt.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(pe);break}case yt.EOF:{this._err(Dn.eofInDoctype),this._createDoctypeToken(null);const Ze=this.currentToken;Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:this._err(Dn.missingWhitespaceBeforeDoctypeName),this.state=Jt.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(pe)}}_stateBeforeDoctypeName(pe){if(wn(pe))this._createDoctypeToken(String.fromCharCode(Fi(pe))),this.state=Jt.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(Dn.unexpectedNullCharacter),this._createDoctypeToken(zn),this.state=Jt.DOCTYPE_NAME;break}case yt.GREATER_THAN_SIGN:{this._err(Dn.missingDoctypeName),this._createDoctypeToken(null);const Ze=this.currentToken;Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this.state=Jt.DATA;break}case yt.EOF:{this._err(Dn.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=Jt.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=Jt.AFTER_DOCTYPE_NAME;break}case yt.GREATER_THAN_SIGN:{this.state=Jt.DATA,this.emitCurrentDoctype(Ze);break}case yt.NULL:{this._err(Dn.unexpectedNullCharacter),Ze.name+=zn;break}case yt.EOF:{this._err(Dn.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:Ze.name+=String.fromCodePoint(wn(pe)?Fi(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=Jt.DATA,this.emitCurrentDoctype(Ze);break}case yt.EOF:{this._err(Dn.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Fn.PUBLIC,!1)?this.state=Jt.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Fn.SYSTEM,!1)?this.state=Jt.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Dn.invalidCharacterSequenceAfterDoctypeName),Ze.forceQuirks=!0,this.state=Jt.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=Jt.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case yt.QUOTATION_MARK:{this._err(Dn.missingWhitespaceAfterDoctypePublicKeyword),Ze.publicId="",this.state=Jt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case yt.APOSTROPHE:{this._err(Dn.missingWhitespaceAfterDoctypePublicKeyword),Ze.publicId="",this.state=Jt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case yt.GREATER_THAN_SIGN:{this._err(Dn.missingDoctypePublicIdentifier),Ze.forceQuirks=!0,this.state=Jt.DATA,this.emitCurrentDoctype(Ze);break}case yt.EOF:{this._err(Dn.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:this._err(Dn.missingQuoteBeforeDoctypePublicIdentifier),Ze.forceQuirks=!0,this.state=Jt.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=Jt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case yt.APOSTROPHE:{Ze.publicId="",this.state=Jt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case yt.GREATER_THAN_SIGN:{this._err(Dn.missingDoctypePublicIdentifier),Ze.forceQuirks=!0,this.state=Jt.DATA,this.emitCurrentDoctype(Ze);break}case yt.EOF:{this._err(Dn.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:this._err(Dn.missingQuoteBeforeDoctypePublicIdentifier),Ze.forceQuirks=!0,this.state=Jt.BOGUS_DOCTYPE,this._stateBogusDoctype(pe)}}_stateDoctypePublicIdentifierDoubleQuoted(pe){const Ze=this.currentToken;switch(pe){case yt.QUOTATION_MARK:{this.state=Jt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case yt.NULL:{this._err(Dn.unexpectedNullCharacter),Ze.publicId+=zn;break}case yt.GREATER_THAN_SIGN:{this._err(Dn.abruptDoctypePublicIdentifier),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this.state=Jt.DATA;break}case yt.EOF:{this._err(Dn.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=Jt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case yt.NULL:{this._err(Dn.unexpectedNullCharacter),Ze.publicId+=zn;break}case yt.GREATER_THAN_SIGN:{this._err(Dn.abruptDoctypePublicIdentifier),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this.state=Jt.DATA;break}case yt.EOF:{this._err(Dn.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=Jt.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case yt.GREATER_THAN_SIGN:{this.state=Jt.DATA,this.emitCurrentDoctype(Ze);break}case yt.QUOTATION_MARK:{this._err(Dn.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),Ze.systemId="",this.state=Jt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case yt.APOSTROPHE:{this._err(Dn.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),Ze.systemId="",this.state=Jt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case yt.EOF:{this._err(Dn.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:this._err(Dn.missingQuoteBeforeDoctypeSystemIdentifier),Ze.forceQuirks=!0,this.state=Jt.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=Jt.DATA;break}case yt.QUOTATION_MARK:{Ze.systemId="",this.state=Jt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case yt.APOSTROPHE:{Ze.systemId="",this.state=Jt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case yt.EOF:{this._err(Dn.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:this._err(Dn.missingQuoteBeforeDoctypeSystemIdentifier),Ze.forceQuirks=!0,this.state=Jt.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=Jt.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case yt.QUOTATION_MARK:{this._err(Dn.missingWhitespaceAfterDoctypeSystemKeyword),Ze.systemId="",this.state=Jt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case yt.APOSTROPHE:{this._err(Dn.missingWhitespaceAfterDoctypeSystemKeyword),Ze.systemId="",this.state=Jt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case yt.GREATER_THAN_SIGN:{this._err(Dn.missingDoctypeSystemIdentifier),Ze.forceQuirks=!0,this.state=Jt.DATA,this.emitCurrentDoctype(Ze);break}case yt.EOF:{this._err(Dn.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:this._err(Dn.missingQuoteBeforeDoctypeSystemIdentifier),Ze.forceQuirks=!0,this.state=Jt.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=Jt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case yt.APOSTROPHE:{Ze.systemId="",this.state=Jt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case yt.GREATER_THAN_SIGN:{this._err(Dn.missingDoctypeSystemIdentifier),Ze.forceQuirks=!0,this.state=Jt.DATA,this.emitCurrentDoctype(Ze);break}case yt.EOF:{this._err(Dn.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:this._err(Dn.missingQuoteBeforeDoctypeSystemIdentifier),Ze.forceQuirks=!0,this.state=Jt.BOGUS_DOCTYPE,this._stateBogusDoctype(pe)}}_stateDoctypeSystemIdentifierDoubleQuoted(pe){const Ze=this.currentToken;switch(pe){case yt.QUOTATION_MARK:{this.state=Jt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case yt.NULL:{this._err(Dn.unexpectedNullCharacter),Ze.systemId+=zn;break}case yt.GREATER_THAN_SIGN:{this._err(Dn.abruptDoctypeSystemIdentifier),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this.state=Jt.DATA;break}case yt.EOF:{this._err(Dn.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=Jt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case yt.NULL:{this._err(Dn.unexpectedNullCharacter),Ze.systemId+=zn;break}case yt.GREATER_THAN_SIGN:{this._err(Dn.abruptDoctypeSystemIdentifier),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this.state=Jt.DATA;break}case yt.EOF:{this._err(Dn.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=Jt.DATA;break}case yt.EOF:{this._err(Dn.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:this._err(Dn.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=Jt.BOGUS_DOCTYPE,this._stateBogusDoctype(pe)}}_stateBogusDoctype(pe){const Ze=this.currentToken;switch(pe){case yt.GREATER_THAN_SIGN:{this.emitCurrentDoctype(Ze),this.state=Jt.DATA;break}case yt.NULL:{this._err(Dn.unexpectedNullCharacter);break}case yt.EOF:{this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:}}_stateCdataSection(pe){switch(pe){case yt.RIGHT_SQUARE_BRACKET:{this.state=Jt.CDATA_SECTION_BRACKET;break}case yt.EOF:{this._err(Dn.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(pe)}}_stateCdataSectionBracket(pe){pe===yt.RIGHT_SQUARE_BRACKET?this.state=Jt.CDATA_SECTION_END:(this._emitChars("]"),this.state=Jt.CDATA_SECTION,this._stateCdataSection(pe))}_stateCdataSectionEnd(pe){switch(pe){case yt.GREATER_THAN_SIGN:{this.state=Jt.DATA;break}case yt.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=Jt.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()&&Bi(this.preprocessor.peek(1))?Jt.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(pe){Bi(pe)?this._flushCodePointConsumedAsCharacterReference(pe):(pe===yt.SEMICOLON&&this._err(Dn.unknownNamedCharacterReference),this.state=this.returnState,this._callState(pe))}}const Mr=new Set([Ue.DD,Ue.DT,Ue.LI,Ue.OPTGROUP,Ue.OPTION,Ue.P,Ue.RB,Ue.RP,Ue.RT,Ue.RTC]),Gn=new Set([...Mr,Ue.CAPTION,Ue.COLGROUP,Ue.TBODY,Ue.TD,Ue.TFOOT,Ue.TH,Ue.THEAD,Ue.TR]),ur=new Set([Ue.APPLET,Ue.CAPTION,Ue.HTML,Ue.MARQUEE,Ue.OBJECT,Ue.TABLE,Ue.TD,Ue.TEMPLATE,Ue.TH]),Bn=new Set([...ur,Ue.OL,Ue.UL]),br=new Set([...ur,Ue.BUTTON]),Er=new Set([Ue.ANNOTATION_XML,Ue.MI,Ue.MN,Ue.MO,Ue.MS,Ue.MTEXT]),pr=new Set([Ue.DESC,Ue.FOREIGN_OBJECT,Ue.TITLE]),$r=new Set([Ue.TR,Ue.TEMPLATE,Ue.HTML]),Xr=new Set([Ue.TBODY,Ue.TFOOT,Ue.THEAD,Ue.TEMPLATE,Ue.HTML]),Ur=new Set([Ue.TABLE,Ue.TEMPLATE,Ue.HTML]),Yr=new Set([Ue.TD,Ue.TH]);class Vo{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(pe,Ze,Ft){this.treeAdapter=Ze,this.handler=Ft,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=Ue.UNKNOWN,this.current=pe}_indexOf(pe){return this.items.lastIndexOf(pe,this.stackTop)}_isInTemplate(){return this.currentTagId===Ue.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Ut.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 Ft=this._indexOf(pe);this.items[Ft]=Ze,Ft===this.stackTop&&(this.current=Ze)}insertAfter(pe,Ze,Ft){const Hn=this._indexOf(pe)+1;this.items.splice(Hn,0,Ze),this.tagIDs.splice(Hn,0,Ft),this.stackTop++,Hn===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,Hn===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])!==Ut.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 Ft=this._indexOfTagNames(pe,Ze);this.shortenToLength(Math.max(Ft,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Ki,Ut.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Yr,Ut.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(pe,Ze){for(let Ft=this.stackTop;Ft>=0;Ft--)if(pe.has(this.tagIDs[Ft])&&this.treeAdapter.getNamespaceURI(this.items[Ft])===Ze)return Ft;return-1}clearBackTo(pe,Ze){const Ft=this._indexOfTagNames(pe,Ze);this.shortenToLength(Ft+1)}clearBackToTableContext(){this.clearBackTo(Ur,Ut.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Xr,Ut.HTML)}clearBackToTableRowContext(){this.clearBackTo($r,Ut.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]===Ue.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]===Ue.HTML}hasInDynamicScope(pe,Ze){for(let Ft=this.stackTop;Ft>=0;Ft--){const Hn=this.tagIDs[Ft];switch(this.treeAdapter.getNamespaceURI(this.items[Ft])){case Ut.HTML:{if(Hn===pe)return!0;if(Ze.has(Hn))return!1;break}case Ut.SVG:{if(pr.has(Hn))return!1;break}case Ut.MATHML:{if(Er.has(Hn))return!1;break}}}return!0}hasInScope(pe){return this.hasInDynamicScope(pe,ur)}hasInListItemScope(pe){return this.hasInDynamicScope(pe,Bn)}hasInButtonScope(pe){return this.hasInDynamicScope(pe,br)}hasNumberedHeaderInScope(){for(let pe=this.stackTop;pe>=0;pe--){const Ze=this.tagIDs[pe];switch(this.treeAdapter.getNamespaceURI(this.items[pe])){case Ut.HTML:{if(Ki.has(Ze))return!0;if(ur.has(Ze))return!1;break}case Ut.SVG:{if(pr.has(Ze))return!1;break}case Ut.MATHML:{if(Er.has(Ze))return!1;break}}}return!0}hasInTableScope(pe){for(let Ze=this.stackTop;Ze>=0;Ze--)if(this.treeAdapter.getNamespaceURI(this.items[Ze])===Ut.HTML)switch(this.tagIDs[Ze]){case pe:return!0;case Ue.TABLE:case Ue.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let pe=this.stackTop;pe>=0;pe--)if(this.treeAdapter.getNamespaceURI(this.items[pe])===Ut.HTML)switch(this.tagIDs[pe]){case Ue.TBODY:case Ue.THEAD:case Ue.TFOOT:return!0;case Ue.TABLE:case Ue.HTML:return!1}return!0}hasInSelectScope(pe){for(let Ze=this.stackTop;Ze>=0;Ze--)if(this.treeAdapter.getNamespaceURI(this.items[Ze])===Ut.HTML)switch(this.tagIDs[Ze]){case pe:return!0;case Ue.OPTION:case Ue.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&Mr.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Gn.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(pe){for(;this.currentTagId!==void 0&&this.currentTagId!==pe&&Gn.has(this.currentTagId);)this.pop()}}const Kr=3;var Ti;(function(ue){ue[ue.Marker=0]="Marker",ue[ue.Element=1]="Element"})(Ti||(Ti={}));const lt={type:Ti.Marker};class xo{constructor(pe){this.treeAdapter=pe,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(pe,Ze){const Ft=[],Hn=Ze.length,Si=this.treeAdapter.getTagName(pe),Hi=this.treeAdapter.getNamespaceURI(pe);for(let Hr=0;Hr<this.entries.length;Hr++){const ao=this.entries[Hr];if(ao.type===Ti.Marker)break;const{element:mi}=ao;if(this.treeAdapter.getTagName(mi)===Si&&this.treeAdapter.getNamespaceURI(mi)===Hi){const fr=this.treeAdapter.getAttrList(mi);fr.length===Hn&&Ft.push({idx:Hr,attrs:fr})}}return Ft}_ensureNoahArkCondition(pe){if(this.entries.length<Kr)return;const Ze=this.treeAdapter.getAttrList(pe),Ft=this._getNoahArkConditionCandidates(pe,Ze);if(Ft.length<Kr)return;const Hn=new Map(Ze.map(Hi=>[Hi.name,Hi.value]));let Si=0;for(let Hi=0;Hi<Ft.length;Hi++){const Hr=Ft[Hi];Hr.attrs.every(ao=>Hn.get(ao.name)===ao.value)&&(Si+=1,Si>=Kr&&this.entries.splice(Hr.idx,1))}}insertMarker(){this.entries.unshift(lt)}pushElement(pe,Ze){this._ensureNoahArkCondition(pe),this.entries.unshift({type:Ti.Element,element:pe,token:Ze})}insertElementAfterBookmark(pe,Ze){const Ft=this.entries.indexOf(this.bookmark);this.entries.splice(Ft,0,{type:Ti.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(lt);pe===-1?this.entries.length=0:this.entries.splice(0,pe+1)}getElementEntryInScopeWithTagName(pe){const Ze=this.entries.find(Ft=>Ft.type===Ti.Marker||this.treeAdapter.getTagName(Ft.element)===pe);return Ze&&Ze.type===Ti.Element?Ze:null}getElementEntry(pe){return this.entries.find(Ze=>Ze.type===Ti.Element&&Ze.element===pe)}}const Ar={createDocument(){return{nodeName:"#document",mode:pi.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 Ft=ue.childNodes.indexOf(Ze);ue.childNodes.splice(Ft,0,pe),pe.parentNode=ue},setTemplateContent(ue,pe){ue.content=pe},getTemplateContent(ue){return ue.content},setDocumentType(ue,pe,Ze,Ft){const Hn=ue.childNodes.find(Si=>Si.nodeName==="#documentType");if(Hn)Hn.name=pe,Hn.publicId=Ze,Hn.systemId=Ft;else{const Si={nodeName:"#documentType",name:pe,publicId:Ze,systemId:Ft,parentNode:null};Ar.appendChild(ue,Si)}},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(Ar.isTextNode(Ze)){Ze.value+=pe;return}}Ar.appendChild(ue,Ar.createTextNode(pe))},insertTextBefore(ue,pe,Ze){const Ft=ue.childNodes[ue.childNodes.indexOf(Ze)-1];Ft&&Ar.isTextNode(Ft)?Ft.value+=pe:Ar.insertBefore(ue,Ar.createTextNode(pe),Ze)},adoptAttributes(ue,pe){const Ze=new Set(ue.attrs.map(Ft=>Ft.name));for(let Ft=0;Ft<pe.length;Ft++)Ze.has(pe[Ft].name)||ue.attrs.push(pe[Ft])},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=Po(Po({},ue.sourceCodeLocation),pe)}},Or="html",no="about:legacy-compat",po="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Vi=["+//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//"],er=[...Vi,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Ir=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),wr=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],kr=[...wr,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Ho(ue,pe){return pe.some(Ze=>ue.startsWith(Ze))}function hr(ue){return ue.name===Or&&ue.publicId===null&&(ue.systemId===null||ue.systemId===no)}function rr(ue){if(ue.name!==Or)return pi.QUIRKS;const{systemId:pe}=ue;if(pe&&pe.toLowerCase()===po)return pi.QUIRKS;let{publicId:Ze}=ue;if(Ze!==null){if(Ze=Ze.toLowerCase(),Ir.has(Ze))return pi.QUIRKS;let Ft=pe===null?er:Vi;if(Ho(Ze,Ft))return pi.QUIRKS;if(Ft=pe===null?wr:kr,Ho(Ze,Ft))return pi.LIMITED_QUIRKS}return pi.NO_QUIRKS}const ri={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Qi="definitionurl",Qr="definitionURL",zo=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])),Oo=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Ut.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Ut.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Ut.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Ut.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Ut.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Ut.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Ut.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Ut.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Ut.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Ut.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Ut.XMLNS}]]),Co=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])),Go=new Set([Ue.B,Ue.BIG,Ue.BLOCKQUOTE,Ue.BODY,Ue.BR,Ue.CENTER,Ue.CODE,Ue.DD,Ue.DIV,Ue.DL,Ue.DT,Ue.EM,Ue.EMBED,Ue.H1,Ue.H2,Ue.H3,Ue.H4,Ue.H5,Ue.H6,Ue.HEAD,Ue.HR,Ue.I,Ue.IMG,Ue.LI,Ue.LISTING,Ue.MENU,Ue.META,Ue.NOBR,Ue.OL,Ue.P,Ue.PRE,Ue.RUBY,Ue.S,Ue.SMALL,Ue.SPAN,Ue.STRONG,Ue.STRIKE,Ue.SUB,Ue.SUP,Ue.TABLE,Ue.TT,Ue.U,Ue.UL,Ue.VAR]);function Lo(ue){const pe=ue.tagID;return pe===Ue.FONT&&ue.attrs.some(({name:Ft})=>Ft===$n.COLOR||Ft===$n.SIZE||Ft===$n.FACE)||Go.has(pe)}function Sa(ue){for(let pe=0;pe<ue.attrs.length;pe++)if(ue.attrs[pe].name===Qi){ue.attrs[pe].name=Qr;break}}function sa(ue){for(let pe=0;pe<ue.attrs.length;pe++){const Ze=zo.get(ue.attrs[pe].name);Ze!=null&&(ue.attrs[pe].name=Ze)}}function es(ue){for(let pe=0;pe<ue.attrs.length;pe++){const Ze=Oo.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 gn(ue){const pe=Co.get(ue.tagName);pe!=null&&(ue.tagName=pe,ue.tagID=ai(ue.tagName))}function oa(ue,pe){return pe===Ut.MATHML&&(ue===Ue.MI||ue===Ue.MO||ue===Ue.MN||ue===Ue.MS||ue===Ue.MTEXT)}function kl(ue,pe,Ze){if(pe===Ut.MATHML&&ue===Ue.ANNOTATION_XML){for(let Ft=0;Ft<Ze.length;Ft++)if(Ze[Ft].name===$n.ENCODING){const Hn=Ze[Ft].value.toLowerCase();return Hn===ri.TEXT_HTML||Hn===ri.APPLICATION_XML}}return pe===Ut.SVG&&(ue===Ue.FOREIGN_OBJECT||ue===Ue.DESC||ue===Ue.TITLE)}function Ha(ue,pe,Ze,Ft){return(!Ft||Ft===Ut.HTML)&&kl(ue,pe,Ze)||(!Ft||Ft===Ut.MATHML)&&oa(ue,pe)}const yl="hidden",Io=8,lu=3;var Ln;(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"})(Ln||(Ln={}));const Uo={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},da=new Set([Ue.TABLE,Ue.TBODY,Ue.TFOOT,Ue.THEAD,Ue.TR]),sl={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Ar,onParseError:null};class Ga{constructor(pe,Ze,Ft=null,Hn=null){this.fragmentContext=Ft,this.scriptHandler=Hn,this.currentToken=null,this.stopped=!1,this.insertionMode=Ln.INITIAL,this.originalInsertionMode=Ln.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=Po(Po({},sl),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 Tr(this.options,this),this.activeFormattingElements=new xo(this.treeAdapter),this.fragmentContextID=Ft?ai(this.treeAdapter.getTagName(Ft)):Ue.UNKNOWN,this._setContextModes(Ft!=null?Ft:this.document,this.fragmentContextID),this.openElements=new Vo(this.document,this.treeAdapter,this)}static parse(pe,Ze){const Ft=new this(Ze);return Ft.tokenizer.write(pe,!0),Ft.document}static getFragmentParser(pe,Ze){const Ft=Po(Po({},sl),Ze);pe!=null||(pe=Ft.treeAdapter.createElement(Kt.TEMPLATE,Ut.HTML,[]));const Hn=Ft.treeAdapter.createElement("documentmock",Ut.HTML,[]),Si=new this(Ft,Hn,pe);return Si.fragmentContextID===Ue.TEMPLATE&&Si.tmplInsertionModeStack.unshift(Ln.IN_TEMPLATE),Si._initTokenizerForFragmentParsing(),Si._insertFakeRootElement(),Si._resetInsertionMode(),Si._findFormInFragmentContext(),Si}getFragment(){const pe=this.treeAdapter.getFirstChild(this.document),Ze=this.treeAdapter.createDocumentFragment();return this._adoptNodes(pe,Ze),Ze}_err(pe,Ze,Ft){var Hn;if(!this.onParseError)return;const Si=(Hn=pe.location)!==null&&Hn!==void 0?Hn:Uo,Hi={code:Ze,startLine:Si.startLine,startCol:Si.startCol,startOffset:Si.startOffset,endLine:Ft?Si.startLine:Si.endLine,endCol:Ft?Si.startCol:Si.endCol,endOffset:Ft?Si.startOffset:Si.endOffset};this.onParseError(Hi)}onItemPush(pe,Ze,Ft){var Hn,Si;(Si=(Hn=this.treeAdapter).onItemPush)===null||Si===void 0||Si.call(Hn,pe),Ft&&this.openElements.stackTop>0&&this._setContextModes(pe,Ze)}onItemPop(pe,Ze){var Ft,Hn;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(pe,this.currentToken),(Hn=(Ft=this.treeAdapter).onItemPop)===null||Hn===void 0||Hn.call(Ft,pe,this.openElements.current),Ze){let Si,Hi;this.openElements.stackTop===0&&this.fragmentContext?(Si=this.fragmentContext,Hi=this.fragmentContextID):{current:Si,currentTagId:Hi}=this.openElements,this._setContextModes(Si,Hi)}}_setContextModes(pe,Ze){const Ft=pe===this.document||pe&&this.treeAdapter.getNamespaceURI(pe)===Ut.HTML;this.currentNotInHTML=!Ft,this.tokenizer.inForeignNode=!Ft&&pe!==void 0&&Ze!==void 0&&!this._isIntegrationPoint(Ze,pe)}_switchToTextParsing(pe,Ze){this._insertElement(pe,Ut.HTML),this.tokenizer.state=Ze,this.originalInsertionMode=this.insertionMode,this.insertionMode=Ln.TEXT}switchToPlaintextParsing(){this.insertionMode=Ln.TEXT,this.originalInsertionMode=Ln.IN_BODY,this.tokenizer.state=Ji.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)===Kt.FORM){this.formElement=pe;break}pe=this.treeAdapter.getParentNode(pe)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Ut.HTML))switch(this.fragmentContextID){case Ue.TITLE:case Ue.TEXTAREA:{this.tokenizer.state=Ji.RCDATA;break}case Ue.STYLE:case Ue.XMP:case Ue.IFRAME:case Ue.NOEMBED:case Ue.NOFRAMES:case Ue.NOSCRIPT:{this.tokenizer.state=Ji.RAWTEXT;break}case Ue.SCRIPT:{this.tokenizer.state=Ji.SCRIPT_DATA;break}case Ue.PLAINTEXT:{this.tokenizer.state=Ji.PLAINTEXT;break}default:}}_setDocumentType(pe){const Ze=pe.name||"",Ft=pe.publicId||"",Hn=pe.systemId||"";if(this.treeAdapter.setDocumentType(this.document,Ze,Ft,Hn),pe.location){const Hi=this.treeAdapter.getChildNodes(this.document).find(Hr=>this.treeAdapter.isDocumentTypeNode(Hr));Hi&&this.treeAdapter.setNodeSourceCodeLocation(Hi,pe.location)}}_attachElementToTree(pe,Ze){if(this.options.sourceCodeLocationInfo){const Ft=Ze&&Nf(Po({},Ze),{startTag:Ze});this.treeAdapter.setNodeSourceCodeLocation(pe,Ft)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(pe);else{const Ft=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(Ft!=null?Ft:this.document,pe)}}_appendElement(pe,Ze){const Ft=this.treeAdapter.createElement(pe.tagName,Ze,pe.attrs);this._attachElementToTree(Ft,pe.location)}_insertElement(pe,Ze){const Ft=this.treeAdapter.createElement(pe.tagName,Ze,pe.attrs);this._attachElementToTree(Ft,pe.location),this.openElements.push(Ft,pe.tagID)}_insertFakeElement(pe,Ze){const Ft=this.treeAdapter.createElement(pe,Ut.HTML,[]);this._attachElementToTree(Ft,null),this.openElements.push(Ft,Ze)}_insertTemplate(pe){const Ze=this.treeAdapter.createElement(pe.tagName,Ut.HTML,pe.attrs),Ft=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(Ze,Ft),this._attachElementToTree(Ze,pe.location),this.openElements.push(Ze,pe.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(Ft,null)}_insertFakeRootElement(){const pe=this.treeAdapter.createElement(Kt.HTML,Ut.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(pe,null),this.treeAdapter.appendChild(this.openElements.current,pe),this.openElements.push(pe,Ue.HTML)}_appendCommentNode(pe,Ze){const Ft=this.treeAdapter.createCommentNode(pe.data);this.treeAdapter.appendChild(Ze,Ft),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(Ft,pe.location)}_insertCharacters(pe){let Ze,Ft;if(this._shouldFosterParentOnInsertion()?({parent:Ze,beforeElement:Ft}=this._findFosterParentingLocation(),Ft?this.treeAdapter.insertTextBefore(Ze,pe.chars,Ft):this.treeAdapter.insertText(Ze,pe.chars)):(Ze=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(Ze,pe.chars)),!pe.location)return;const Hn=this.treeAdapter.getChildNodes(Ze),Si=Ft?Hn.lastIndexOf(Ft):Hn.length,Hi=Hn[Si-1];if(this.treeAdapter.getNodeSourceCodeLocation(Hi)){const{endLine:ao,endCol:mi,endOffset:fr}=pe.location;this.treeAdapter.updateNodeSourceCodeLocation(Hi,{endLine:ao,endCol:mi,endOffset:fr})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(Hi,pe.location)}_adoptNodes(pe,Ze){for(let Ft=this.treeAdapter.getFirstChild(pe);Ft;Ft=this.treeAdapter.getFirstChild(pe))this.treeAdapter.detachNode(Ft),this.treeAdapter.appendChild(Ze,Ft)}_setEndLocation(pe,Ze){if(this.treeAdapter.getNodeSourceCodeLocation(pe)&&Ze.location){const Ft=Ze.location,Hn=this.treeAdapter.getTagName(pe),Si=Ze.type===ui.END_TAG&&Hn===Ze.tagName?{endTag:Po({},Ft),endLine:Ft.endLine,endCol:Ft.endCol,endOffset:Ft.endOffset}:{endLine:Ft.startLine,endCol:Ft.startCol,endOffset:Ft.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(pe,Si)}}shouldProcessStartTagTokenInForeignContent(pe){if(!this.currentNotInHTML)return!1;let Ze,Ft;return this.openElements.stackTop===0&&this.fragmentContext?(Ze=this.fragmentContext,Ft=this.fragmentContextID):{current:Ze,currentTagId:Ft}=this.openElements,pe.tagID===Ue.SVG&&this.treeAdapter.getTagName(Ze)===Kt.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(Ze)===Ut.MATHML?!1:this.tokenizer.inForeignNode||(pe.tagID===Ue.MGLYPH||pe.tagID===Ue.MALIGNMARK)&&Ft!==void 0&&!this._isIntegrationPoint(Ft,Ze,Ut.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,Ft){const Hn=this.treeAdapter.getNamespaceURI(Ze),Si=this.treeAdapter.getAttrList(Ze);return Ha(pe,Hn,Si,Ft)}_reconstructActiveFormattingElements(){const pe=this.activeFormattingElements.entries.length;if(pe){const Ze=this.activeFormattingElements.entries.findIndex(Hn=>Hn.type===Ti.Marker||this.openElements.contains(Hn.element)),Ft=Ze===-1?pe-1:Ze-1;for(let Hn=Ft;Hn>=0;Hn--){const Si=this.activeFormattingElements.entries[Hn];this._insertElement(Si.token,this.treeAdapter.getNamespaceURI(Si.element)),Si.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Ln.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(Ue.P),this.openElements.popUntilTagNamePopped(Ue.P)}_resetInsertionMode(){for(let pe=this.openElements.stackTop;pe>=0;pe--)switch(pe===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[pe]){case Ue.TR:{this.insertionMode=Ln.IN_ROW;return}case Ue.TBODY:case Ue.THEAD:case Ue.TFOOT:{this.insertionMode=Ln.IN_TABLE_BODY;return}case Ue.CAPTION:{this.insertionMode=Ln.IN_CAPTION;return}case Ue.COLGROUP:{this.insertionMode=Ln.IN_COLUMN_GROUP;return}case Ue.TABLE:{this.insertionMode=Ln.IN_TABLE;return}case Ue.BODY:{this.insertionMode=Ln.IN_BODY;return}case Ue.FRAMESET:{this.insertionMode=Ln.IN_FRAMESET;return}case Ue.SELECT:{this._resetInsertionModeForSelect(pe);return}case Ue.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case Ue.HTML:{this.insertionMode=this.headElement?Ln.AFTER_HEAD:Ln.BEFORE_HEAD;return}case Ue.TD:case Ue.TH:{if(pe>0){this.insertionMode=Ln.IN_CELL;return}break}case Ue.HEAD:{if(pe>0){this.insertionMode=Ln.IN_HEAD;return}break}}this.insertionMode=Ln.IN_BODY}_resetInsertionModeForSelect(pe){if(pe>0)for(let Ze=pe-1;Ze>0;Ze--){const Ft=this.openElements.tagIDs[Ze];if(Ft===Ue.TEMPLATE)break;if(Ft===Ue.TABLE){this.insertionMode=Ln.IN_SELECT_IN_TABLE;return}}this.insertionMode=Ln.IN_SELECT}_isElementCausesFosterParenting(pe){return da.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 Ue.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(Ze)===Ut.HTML)return{parent:this.treeAdapter.getTemplateContent(Ze),beforeElement:null};break}case Ue.TABLE:{const Ft=this.treeAdapter.getParentNode(Ze);return Ft?{parent:Ft,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 Ft=this.treeAdapter.getNamespaceURI(pe);return ji[Ft].has(Ze)}onCharacter(pe){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){tt(this,pe);return}switch(this.insertionMode){case Ln.INITIAL:{qr(this,pe);break}case Ln.BEFORE_HTML:{yo(this,pe);break}case Ln.BEFORE_HEAD:{Zo(this,pe);break}case Ln.IN_HEAD:{Aa(this,pe);break}case Ln.IN_HEAD_NO_SCRIPT:{vs(this,pe);break}case Ln.AFTER_HEAD:{cs(this,pe);break}case Ln.IN_BODY:case Ln.IN_CAPTION:case Ln.IN_CELL:case Ln.IN_TEMPLATE:{Hu(this,pe);break}case Ln.TEXT:case Ln.IN_SELECT:case Ln.IN_SELECT_IN_TABLE:{this._insertCharacters(pe);break}case Ln.IN_TABLE:case Ln.IN_TABLE_BODY:case Ln.IN_ROW:{Lr(this,pe);break}case Ln.IN_TABLE_TEXT:{cu(this,pe);break}case Ln.IN_COLUMN_GROUP:{uc(this,pe);break}case Ln.AFTER_BODY:{Vu(this,pe);break}case Ln.AFTER_AFTER_BODY:{we(this,pe);break}default:}}onNullCharacter(pe){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Ke(this,pe);return}switch(this.insertionMode){case Ln.INITIAL:{qr(this,pe);break}case Ln.BEFORE_HTML:{yo(this,pe);break}case Ln.BEFORE_HEAD:{Zo(this,pe);break}case Ln.IN_HEAD:{Aa(this,pe);break}case Ln.IN_HEAD_NO_SCRIPT:{vs(this,pe);break}case Ln.AFTER_HEAD:{cs(this,pe);break}case Ln.TEXT:{this._insertCharacters(pe);break}case Ln.IN_TABLE:case Ln.IN_TABLE_BODY:case Ln.IN_ROW:{Lr(this,pe);break}case Ln.IN_COLUMN_GROUP:{uc(this,pe);break}case Ln.AFTER_BODY:{Vu(this,pe);break}case Ln.AFTER_AFTER_BODY:{we(this,pe);break}default:}}onComment(pe){if(this.skipNextNewLine=!1,this.currentNotInHTML){lo(this,pe);return}switch(this.insertionMode){case Ln.INITIAL:case Ln.BEFORE_HTML:case Ln.BEFORE_HEAD:case Ln.IN_HEAD:case Ln.IN_HEAD_NO_SCRIPT:case Ln.AFTER_HEAD:case Ln.IN_BODY:case Ln.IN_TABLE:case Ln.IN_CAPTION:case Ln.IN_COLUMN_GROUP:case Ln.IN_TABLE_BODY:case Ln.IN_ROW:case Ln.IN_CELL:case Ln.IN_SELECT:case Ln.IN_SELECT_IN_TABLE:case Ln.IN_TEMPLATE:case Ln.IN_FRAMESET:case Ln.AFTER_FRAMESET:{lo(this,pe);break}case Ln.IN_TABLE_TEXT:{Cu(this,pe);break}case Ln.AFTER_BODY:{Yt(this,pe);break}case Ln.AFTER_AFTER_BODY:case Ln.AFTER_AFTER_FRAMESET:{Ci(this,pe);break}default:}}onDoctype(pe){switch(this.skipNextNewLine=!1,this.insertionMode){case Ln.INITIAL:{xr(this,pe);break}case Ln.BEFORE_HEAD:case Ln.IN_HEAD:case Ln.IN_HEAD_NO_SCRIPT:case Ln.AFTER_HEAD:{this._err(pe,Dn.misplacedDoctype);break}case Ln.IN_TABLE_TEXT:{Cu(this,pe);break}default:}}onStartTag(pe){this.skipNextNewLine=!1,this.currentToken=pe,this._processStartTag(pe),pe.selfClosing&&!pe.ackSelfClosing&&this._err(pe,Dn.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(pe){this.shouldProcessStartTagTokenInForeignContent(pe)?xt(this,pe):this._startTagOutsideForeignContent(pe)}_startTagOutsideForeignContent(pe){switch(this.insertionMode){case Ln.INITIAL:{qr(this,pe);break}case Ln.BEFORE_HTML:{Zr(this,pe);break}case Ln.BEFORE_HEAD:{qo(this,pe);break}case Ln.IN_HEAD:{aa(this,pe);break}case Ln.IN_HEAD_NO_SCRIPT:{Sl(this,pe);break}case Ln.AFTER_HEAD:{ul(this,pe);break}case Ln.IN_BODY:{Do(this,pe);break}case Ln.IN_TABLE:{Rl(this,pe);break}case Ln.IN_TABLE_TEXT:{Cu(this,pe);break}case Ln.IN_CAPTION:{El(this,pe);break}case Ln.IN_COLUMN_GROUP:{xl(this,pe);break}case Ln.IN_TABLE_BODY:{Wu(this,pe);break}case Ln.IN_ROW:{dc(this,pe);break}case Ln.IN_CELL:{Nu(this,pe);break}case Ln.IN_SELECT:{mh(this,pe);break}case Ln.IN_SELECT_IN_TABLE:{yh(this,pe);break}case Ln.IN_TEMPLATE:{Mu(this,pe);break}case Ln.AFTER_BODY:{as(this,pe);break}case Ln.IN_FRAMESET:{fs(this,pe);break}case Ln.AFTER_FRAMESET:{ud(this,pe);break}case Ln.AFTER_AFTER_BODY:{Fs(this,pe);break}case Ln.AFTER_AFTER_FRAMESET:{He(this,pe);break}default:}}onEndTag(pe){this.skipNextNewLine=!1,this.currentToken=pe,this.currentNotInHTML?_t(this,pe):this._endTagOutsideForeignContent(pe)}_endTagOutsideForeignContent(pe){switch(this.insertionMode){case Ln.INITIAL:{qr(this,pe);break}case Ln.BEFORE_HTML:{lr(this,pe);break}case Ln.BEFORE_HEAD:{ko(this,pe);break}case Ln.IN_HEAD:{ms(this,pe);break}case Ln.IN_HEAD_NO_SCRIPT:{ll(this,pe);break}case Ln.AFTER_HEAD:{Ol(this,pe);break}case Ln.IN_BODY:{ea(this,pe);break}case Ln.TEXT:{fo(this,pe);break}case Ln.IN_TABLE:{Ao(this,pe);break}case Ln.IN_TABLE_TEXT:{Cu(this,pe);break}case Ln.IN_CAPTION:{Yu(this,pe);break}case Ln.IN_COLUMN_GROUP:{du(this,pe);break}case Ln.IN_TABLE_BODY:{cc(this,pe);break}case Ln.IN_ROW:{hu(this,pe);break}case Ln.IN_CELL:{ld(this,pe);break}case Ln.IN_SELECT:{vh(this,pe);break}case Ln.IN_SELECT_IN_TABLE:{Ia(this,pe);break}case Ln.IN_TEMPLATE:{Qo(this,pe);break}case Ln.AFTER_BODY:{ts(this,pe);break}case Ln.IN_FRAMESET:{Pu(this,pe);break}case Ln.AFTER_FRAMESET:{cd(this,pe);break}case Ln.AFTER_AFTER_BODY:{we(this,pe);break}default:}}onEof(pe){switch(this.insertionMode){case Ln.INITIAL:{qr(this,pe);break}case Ln.BEFORE_HTML:{yo(this,pe);break}case Ln.BEFORE_HEAD:{Zo(this,pe);break}case Ln.IN_HEAD:{Aa(this,pe);break}case Ln.IN_HEAD_NO_SCRIPT:{vs(this,pe);break}case Ln.AFTER_HEAD:{cs(this,pe);break}case Ln.IN_BODY:case Ln.IN_TABLE:case Ln.IN_CAPTION:case Ln.IN_COLUMN_GROUP:case Ln.IN_TABLE_BODY:case Ln.IN_ROW:case Ln.IN_CELL:case Ln.IN_SELECT:case Ln.IN_SELECT_IN_TABLE:{va(this,pe);break}case Ln.TEXT:{lc(this,pe);break}case Ln.IN_TABLE_TEXT:{Cu(this,pe);break}case Ln.IN_TEMPLATE:{Xa(this,pe);break}case Ln.AFTER_BODY:case Ln.IN_FRAMESET:case Ln.AFTER_FRAMESET:case Ln.AFTER_AFTER_BODY:case Ln.AFTER_AFTER_FRAMESET:{Yi(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 Ln.IN_HEAD:case Ln.IN_HEAD_NO_SCRIPT:case Ln.AFTER_HEAD:case Ln.TEXT:case Ln.IN_COLUMN_GROUP:case Ln.IN_SELECT:case Ln.IN_SELECT_IN_TABLE:case Ln.IN_FRAMESET:case Ln.AFTER_FRAMESET:{this._insertCharacters(pe);break}case Ln.IN_BODY:case Ln.IN_CAPTION:case Ln.IN_CELL:case Ln.IN_TEMPLATE:case Ln.AFTER_BODY:case Ln.AFTER_AFTER_BODY:case Ln.AFTER_AFTER_FRAMESET:{Ds(this,pe);break}case Ln.IN_TABLE:case Ln.IN_TABLE_BODY:case Ln.IN_ROW:{Lr(this,pe);break}case Ln.IN_TABLE_TEXT:{Ac(this,pe);break}default:}}}function Xs(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):Jo(ue,pe),Ze}function ps(ue,pe){let Ze=null,Ft=ue.openElements.stackTop;for(;Ft>=0;Ft--){const Hn=ue.openElements.items[Ft];if(Hn===pe.element)break;ue._isSpecialElement(Hn,ue.openElements.tagIDs[Ft])&&(Ze=Hn)}return Ze||(ue.openElements.shortenToLength(Math.max(Ft,0)),ue.activeFormattingElements.removeEntry(pe)),Ze}function dr(ue,pe,Ze){let Ft=pe,Hn=ue.openElements.getCommonAncestor(pe);for(let Si=0,Hi=Hn;Hi!==Ze;Si++,Hi=Hn){Hn=ue.openElements.getCommonAncestor(Hi);const Hr=ue.activeFormattingElements.getElementEntry(Hi),ao=Hr&&Si>=lu;!Hr||ao?(ao&&ue.activeFormattingElements.removeEntry(Hr),ue.openElements.remove(Hi)):(Hi=Pa(ue,Hr),Ft===pe&&(ue.activeFormattingElements.bookmark=Hr),ue.treeAdapter.detachNode(Ft),ue.treeAdapter.appendChild(Hi,Ft),Ft=Hi)}return Ft}function Pa(ue,pe){const Ze=ue.treeAdapter.getNamespaceURI(pe.element),Ft=ue.treeAdapter.createElement(pe.token.tagName,Ze,pe.token.attrs);return ue.openElements.replace(pe.element,Ft),pe.element=Ft,Ft}function Dl(ue,pe,Ze){const Ft=ue.treeAdapter.getTagName(pe),Hn=ai(Ft);if(ue._isElementCausesFosterParenting(Hn))ue._fosterParentElement(Ze);else{const Si=ue.treeAdapter.getNamespaceURI(pe);Hn===Ue.TEMPLATE&&Si===Ut.HTML&&(pe=ue.treeAdapter.getTemplateContent(pe)),ue.treeAdapter.appendChild(pe,Ze)}}function is(ue,pe,Ze){const Ft=ue.treeAdapter.getNamespaceURI(Ze.element),{token:Hn}=Ze,Si=ue.treeAdapter.createElement(Hn.tagName,Ft,Hn.attrs);ue._adoptNodes(pe,Si),ue.treeAdapter.appendChild(pe,Si),ue.activeFormattingElements.insertElementAfterBookmark(Si,Hn),ue.activeFormattingElements.removeEntry(Ze),ue.openElements.remove(Ze.element),ue.openElements.insertAfter(pe,Si,Hn.tagID)}function Jr(ue,pe){for(let Ze=0;Ze<Io;Ze++){const Ft=Xs(ue,pe);if(!Ft)break;const Hn=ps(ue,Ft);if(!Hn)break;ue.activeFormattingElements.bookmark=Ft;const Si=dr(ue,Hn,Ft.element),Hi=ue.openElements.getCommonAncestor(Ft.element);ue.treeAdapter.detachNode(Si),Hi&&Dl(ue,Hi,Si),is(ue,Hn,Ft)}}function lo(ue,pe){ue._appendCommentNode(pe,ue.openElements.currentTmplContentOrNode)}function Yt(ue,pe){ue._appendCommentNode(pe,ue.openElements.items[0])}function Ci(ue,pe){ue._appendCommentNode(pe,ue.document)}function Yi(ue,pe){if(ue.stopped=!0,pe.location){const Ze=ue.fragmentContext?0:2;for(let Ft=ue.openElements.stackTop;Ft>=Ze;Ft--)ue._setEndLocation(ue.openElements.items[Ft],pe);if(!ue.fragmentContext&&ue.openElements.stackTop>=0){const Ft=ue.openElements.items[0],Hn=ue.treeAdapter.getNodeSourceCodeLocation(Ft);if(Hn&&!Hn.endTag&&(ue._setEndLocation(Ft,pe),ue.openElements.stackTop>=1)){const Si=ue.openElements.items[1],Hi=ue.treeAdapter.getNodeSourceCodeLocation(Si);Hi&&!Hi.endTag&&ue._setEndLocation(Si,pe)}}}}function xr(ue,pe){ue._setDocumentType(pe);const Ze=pe.forceQuirks?pi.QUIRKS:rr(pe);hr(pe)||ue._err(pe,Dn.nonConformingDoctype),ue.treeAdapter.setDocumentMode(ue.document,Ze),ue.insertionMode=Ln.BEFORE_HTML}function qr(ue,pe){ue._err(pe,Dn.missingDoctype,!0),ue.treeAdapter.setDocumentMode(ue.document,pi.QUIRKS),ue.insertionMode=Ln.BEFORE_HTML,ue._processToken(pe)}function Zr(ue,pe){pe.tagID===Ue.HTML?(ue._insertElement(pe,Ut.HTML),ue.insertionMode=Ln.BEFORE_HEAD):yo(ue,pe)}function lr(ue,pe){const Ze=pe.tagID;(Ze===Ue.HTML||Ze===Ue.HEAD||Ze===Ue.BODY||Ze===Ue.BR)&&yo(ue,pe)}function yo(ue,pe){ue._insertFakeRootElement(),ue.insertionMode=Ln.BEFORE_HEAD,ue._processToken(pe)}function qo(ue,pe){switch(pe.tagID){case Ue.HTML:{Do(ue,pe);break}case Ue.HEAD:{ue._insertElement(pe,Ut.HTML),ue.headElement=ue.openElements.current,ue.insertionMode=Ln.IN_HEAD;break}default:Zo(ue,pe)}}function ko(ue,pe){const Ze=pe.tagID;Ze===Ue.HEAD||Ze===Ue.BODY||Ze===Ue.HTML||Ze===Ue.BR?Zo(ue,pe):ue._err(pe,Dn.endTagWithoutMatchingOpenElement)}function Zo(ue,pe){ue._insertFakeElement(Kt.HEAD,Ue.HEAD),ue.headElement=ue.openElements.current,ue.insertionMode=Ln.IN_HEAD,ue._processToken(pe)}function aa(ue,pe){switch(pe.tagID){case Ue.HTML:{Do(ue,pe);break}case Ue.BASE:case Ue.BASEFONT:case Ue.BGSOUND:case Ue.LINK:case Ue.META:{ue._appendElement(pe,Ut.HTML),pe.ackSelfClosing=!0;break}case Ue.TITLE:{ue._switchToTextParsing(pe,Ji.RCDATA);break}case Ue.NOSCRIPT:{ue.options.scriptingEnabled?ue._switchToTextParsing(pe,Ji.RAWTEXT):(ue._insertElement(pe,Ut.HTML),ue.insertionMode=Ln.IN_HEAD_NO_SCRIPT);break}case Ue.NOFRAMES:case Ue.STYLE:{ue._switchToTextParsing(pe,Ji.RAWTEXT);break}case Ue.SCRIPT:{ue._switchToTextParsing(pe,Ji.SCRIPT_DATA);break}case Ue.TEMPLATE:{ue._insertTemplate(pe),ue.activeFormattingElements.insertMarker(),ue.framesetOk=!1,ue.insertionMode=Ln.IN_TEMPLATE,ue.tmplInsertionModeStack.unshift(Ln.IN_TEMPLATE);break}case Ue.HEAD:{ue._err(pe,Dn.misplacedStartTagForHeadElement);break}default:Aa(ue,pe)}}function ms(ue,pe){switch(pe.tagID){case Ue.HEAD:{ue.openElements.pop(),ue.insertionMode=Ln.AFTER_HEAD;break}case Ue.BODY:case Ue.BR:case Ue.HTML:{Aa(ue,pe);break}case Ue.TEMPLATE:{Ko(ue,pe);break}default:ue._err(pe,Dn.endTagWithoutMatchingOpenElement)}}function Ko(ue,pe){ue.openElements.tmplCount>0?(ue.openElements.generateImpliedEndTagsThoroughly(),ue.openElements.currentTagId!==Ue.TEMPLATE&&ue._err(pe,Dn.closingOfElementWithOpenChildElements),ue.openElements.popUntilTagNamePopped(Ue.TEMPLATE),ue.activeFormattingElements.clearToLastMarker(),ue.tmplInsertionModeStack.shift(),ue._resetInsertionMode()):ue._err(pe,Dn.endTagWithoutMatchingOpenElement)}function Aa(ue,pe){ue.openElements.pop(),ue.insertionMode=Ln.AFTER_HEAD,ue._processToken(pe)}function Sl(ue,pe){switch(pe.tagID){case Ue.HTML:{Do(ue,pe);break}case Ue.BASEFONT:case Ue.BGSOUND:case Ue.HEAD:case Ue.LINK:case Ue.META:case Ue.NOFRAMES:case Ue.STYLE:{aa(ue,pe);break}case Ue.NOSCRIPT:{ue._err(pe,Dn.nestedNoscriptInHead);break}default:vs(ue,pe)}}function ll(ue,pe){switch(pe.tagID){case Ue.NOSCRIPT:{ue.openElements.pop(),ue.insertionMode=Ln.IN_HEAD;break}case Ue.BR:{vs(ue,pe);break}default:ue._err(pe,Dn.endTagWithoutMatchingOpenElement)}}function vs(ue,pe){const Ze=pe.type===ui.EOF?Dn.openElementsLeftAfterEof:Dn.disallowedContentInNoscriptInHead;ue._err(pe,Ze),ue.openElements.pop(),ue.insertionMode=Ln.IN_HEAD,ue._processToken(pe)}function ul(ue,pe){switch(pe.tagID){case Ue.HTML:{Do(ue,pe);break}case Ue.BODY:{ue._insertElement(pe,Ut.HTML),ue.framesetOk=!1,ue.insertionMode=Ln.IN_BODY;break}case Ue.FRAMESET:{ue._insertElement(pe,Ut.HTML),ue.insertionMode=Ln.IN_FRAMESET;break}case Ue.BASE:case Ue.BASEFONT:case Ue.BGSOUND:case Ue.LINK:case Ue.META:case Ue.NOFRAMES:case Ue.SCRIPT:case Ue.STYLE:case Ue.TEMPLATE:case Ue.TITLE:{ue._err(pe,Dn.abandonedHeadElementChild),ue.openElements.push(ue.headElement,Ue.HEAD),aa(ue,pe),ue.openElements.remove(ue.headElement);break}case Ue.HEAD:{ue._err(pe,Dn.misplacedStartTagForHeadElement);break}default:cs(ue,pe)}}function Ol(ue,pe){switch(pe.tagID){case Ue.BODY:case Ue.HTML:case Ue.BR:{cs(ue,pe);break}case Ue.TEMPLATE:{Ko(ue,pe);break}default:ue._err(pe,Dn.endTagWithoutMatchingOpenElement)}}function cs(ue,pe){ue._insertFakeElement(Kt.BODY,Ue.BODY),ue.insertionMode=Ln.IN_BODY,Ts(ue,pe)}function Ts(ue,pe){switch(pe.type){case ui.CHARACTER:{Hu(ue,pe);break}case ui.WHITESPACE_CHARACTER:{Ds(ue,pe);break}case ui.COMMENT:{lo(ue,pe);break}case ui.START_TAG:{Do(ue,pe);break}case ui.END_TAG:{ea(ue,pe);break}case ui.EOF:{va(ue,pe);break}default:}}function Ds(ue,pe){ue._reconstructActiveFormattingElements(),ue._insertCharacters(pe)}function Hu(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 bc(ue,pe){const Ze=ue.openElements.tryPeekProperlyNestedBodyElement();Ze&&ue.openElements.tmplCount===0&&(ue.framesetOk=!1,ue.treeAdapter.adoptAttributes(Ze,pe.attrs))}function Ca(ue,pe){const Ze=ue.openElements.tryPeekProperlyNestedBodyElement();ue.framesetOk&&Ze&&(ue.treeAdapter.detachNode(Ze),ue.openElements.popAllUpToHtmlElement(),ue._insertElement(pe,Ut.HTML),ue.insertionMode=Ln.IN_FRAMESET)}function ad(ue,pe){ue.openElements.hasInButtonScope(Ue.P)&&ue._closePElement(),ue._insertElement(pe,Ut.HTML)}function wc(ue,pe){ue.openElements.hasInButtonScope(Ue.P)&&ue._closePElement(),ue.openElements.currentTagId!==void 0&&Ki.has(ue.openElements.currentTagId)&&ue.openElements.pop(),ue._insertElement(pe,Ut.HTML)}function oc(ue,pe){ue.openElements.hasInButtonScope(Ue.P)&&ue._closePElement(),ue._insertElement(pe,Ut.HTML),ue.skipNextNewLine=!0,ue.framesetOk=!1}function Gu(ue,pe){const Ze=ue.openElements.tmplCount>0;(!ue.formElement||Ze)&&(ue.openElements.hasInButtonScope(Ue.P)&&ue._closePElement(),ue._insertElement(pe,Ut.HTML),Ze||(ue.formElement=ue.openElements.current))}function rs(ue,pe){ue.framesetOk=!1;const Ze=pe.tagID;for(let Ft=ue.openElements.stackTop;Ft>=0;Ft--){const Hn=ue.openElements.tagIDs[Ft];if(Ze===Ue.LI&&Hn===Ue.LI||(Ze===Ue.DD||Ze===Ue.DT)&&(Hn===Ue.DD||Hn===Ue.DT)){ue.openElements.generateImpliedEndTagsWithExclusion(Hn),ue.openElements.popUntilTagNamePopped(Hn);break}if(Hn!==Ue.ADDRESS&&Hn!==Ue.DIV&&Hn!==Ue.P&&ue._isSpecialElement(ue.openElements.items[Ft],Hn))break}ue.openElements.hasInButtonScope(Ue.P)&&ue._closePElement(),ue._insertElement(pe,Ut.HTML)}function ds(ue,pe){ue.openElements.hasInButtonScope(Ue.P)&&ue._closePElement(),ue._insertElement(pe,Ut.HTML),ue.tokenizer.state=Ji.PLAINTEXT}function _a(ue,pe){ue.openElements.hasInScope(Ue.BUTTON)&&(ue.openElements.generateImpliedEndTags(),ue.openElements.popUntilTagNamePopped(Ue.BUTTON)),ue._reconstructActiveFormattingElements(),ue._insertElement(pe,Ut.HTML),ue.framesetOk=!1}function Ya(ue,pe){const Ze=ue.activeFormattingElements.getElementEntryInScopeWithTagName(Kt.A);Ze&&(Jr(ue,pe),ue.openElements.remove(Ze.element),ue.activeFormattingElements.removeEntry(Ze)),ue._reconstructActiveFormattingElements(),ue._insertElement(pe,Ut.HTML),ue.activeFormattingElements.pushElement(ue.openElements.current,pe)}function Yo(ue,pe){ue._reconstructActiveFormattingElements(),ue._insertElement(pe,Ut.HTML),ue.activeFormattingElements.pushElement(ue.openElements.current,pe)}function bo(ue,pe){ue._reconstructActiveFormattingElements(),ue.openElements.hasInScope(Ue.NOBR)&&(Jr(ue,pe),ue._reconstructActiveFormattingElements()),ue._insertElement(pe,Ut.HTML),ue.activeFormattingElements.pushElement(ue.openElements.current,pe)}function Bo(ue,pe){ue._reconstructActiveFormattingElements(),ue._insertElement(pe,Ut.HTML),ue.activeFormattingElements.insertMarker(),ue.framesetOk=!1}function hs(ue,pe){ue.treeAdapter.getDocumentMode(ue.document)!==pi.QUIRKS&&ue.openElements.hasInButtonScope(Ue.P)&&ue._closePElement(),ue._insertElement(pe,Ut.HTML),ue.framesetOk=!1,ue.insertionMode=Ln.IN_TABLE}function La(ue,pe){ue._reconstructActiveFormattingElements(),ue._appendElement(pe,Ut.HTML),ue.framesetOk=!1,pe.ackSelfClosing=!0}function Ka(ue){const pe=bi(ue,$n.TYPE);return pe!=null&&pe.toLowerCase()===yl}function tr(ue,pe){ue._reconstructActiveFormattingElements(),ue._appendElement(pe,Ut.HTML),Ka(pe)||(ue.framesetOk=!1),pe.ackSelfClosing=!0}function cl(ue,pe){ue._appendElement(pe,Ut.HTML),pe.ackSelfClosing=!0}function jt(ue,pe){ue.openElements.hasInButtonScope(Ue.P)&&ue._closePElement(),ue._appendElement(pe,Ut.HTML),ue.framesetOk=!1,pe.ackSelfClosing=!0}function Qn(ue,pe){pe.tagName=Kt.IMG,pe.tagID=Ue.IMG,La(ue,pe)}function uu(ue,pe){ue._insertElement(pe,Ut.HTML),ue.skipNextNewLine=!0,ue.tokenizer.state=Ji.RCDATA,ue.originalInsertionMode=ue.insertionMode,ue.framesetOk=!1,ue.insertionMode=Ln.TEXT}function ac(ue,pe){ue.openElements.hasInButtonScope(Ue.P)&&ue._closePElement(),ue._reconstructActiveFormattingElements(),ue.framesetOk=!1,ue._switchToTextParsing(pe,Ji.RAWTEXT)}function Js(ue,pe){ue.framesetOk=!1,ue._switchToTextParsing(pe,Ji.RAWTEXT)}function Vl(ue,pe){ue._switchToTextParsing(pe,Ji.RAWTEXT)}function sc(ue,pe){ue._reconstructActiveFormattingElements(),ue._insertElement(pe,Ut.HTML),ue.framesetOk=!1,ue.insertionMode=ue.insertionMode===Ln.IN_TABLE||ue.insertionMode===Ln.IN_CAPTION||ue.insertionMode===Ln.IN_TABLE_BODY||ue.insertionMode===Ln.IN_ROW||ue.insertionMode===Ln.IN_CELL?Ln.IN_SELECT_IN_TABLE:Ln.IN_SELECT}function Yc(ue,pe){ue.openElements.currentTagId===Ue.OPTION&&ue.openElements.pop(),ue._reconstructActiveFormattingElements(),ue._insertElement(pe,Ut.HTML)}function Wc(ue,pe){ue.openElements.hasInScope(Ue.RUBY)&&ue.openElements.generateImpliedEndTags(),ue._insertElement(pe,Ut.HTML)}function ma(ue,pe){ue.openElements.hasInScope(Ue.RUBY)&&ue.openElements.generateImpliedEndTagsWithExclusion(Ue.RTC),ue._insertElement(pe,Ut.HTML)}function _r(ue,pe){ue._reconstructActiveFormattingElements(),Sa(pe),es(pe),pe.selfClosing?ue._appendElement(pe,Ut.MATHML):ue._insertElement(pe,Ut.MATHML),pe.ackSelfClosing=!0}function os(ue,pe){ue._reconstructActiveFormattingElements(),sa(pe),es(pe),pe.selfClosing?ue._appendElement(pe,Ut.SVG):ue._insertElement(pe,Ut.SVG),pe.ackSelfClosing=!0}function As(ue,pe){ue._reconstructActiveFormattingElements(),ue._insertElement(pe,Ut.HTML)}function Do(ue,pe){switch(pe.tagID){case Ue.I:case Ue.S:case Ue.B:case Ue.U:case Ue.EM:case Ue.TT:case Ue.BIG:case Ue.CODE:case Ue.FONT:case Ue.SMALL:case Ue.STRIKE:case Ue.STRONG:{Yo(ue,pe);break}case Ue.A:{Ya(ue,pe);break}case Ue.H1:case Ue.H2:case Ue.H3:case Ue.H4:case Ue.H5:case Ue.H6:{wc(ue,pe);break}case Ue.P:case Ue.DL:case Ue.OL:case Ue.UL:case Ue.DIV:case Ue.DIR:case Ue.NAV:case Ue.MAIN:case Ue.MENU:case Ue.ASIDE:case Ue.CENTER:case Ue.FIGURE:case Ue.FOOTER:case Ue.HEADER:case Ue.HGROUP:case Ue.DIALOG:case Ue.DETAILS:case Ue.ADDRESS:case Ue.ARTICLE:case Ue.SEARCH:case Ue.SECTION:case Ue.SUMMARY:case Ue.FIELDSET:case Ue.BLOCKQUOTE:case Ue.FIGCAPTION:{ad(ue,pe);break}case Ue.LI:case Ue.DD:case Ue.DT:{rs(ue,pe);break}case Ue.BR:case Ue.IMG:case Ue.WBR:case Ue.AREA:case Ue.EMBED:case Ue.KEYGEN:{La(ue,pe);break}case Ue.HR:{jt(ue,pe);break}case Ue.RB:case Ue.RTC:{Wc(ue,pe);break}case Ue.RT:case Ue.RP:{ma(ue,pe);break}case Ue.PRE:case Ue.LISTING:{oc(ue,pe);break}case Ue.XMP:{ac(ue,pe);break}case Ue.SVG:{os(ue,pe);break}case Ue.HTML:{xc(ue,pe);break}case Ue.BASE:case Ue.LINK:case Ue.META:case Ue.STYLE:case Ue.TITLE:case Ue.SCRIPT:case Ue.BGSOUND:case Ue.BASEFONT:case Ue.TEMPLATE:{aa(ue,pe);break}case Ue.BODY:{bc(ue,pe);break}case Ue.FORM:{Gu(ue,pe);break}case Ue.NOBR:{bo(ue,pe);break}case Ue.MATH:{_r(ue,pe);break}case Ue.TABLE:{hs(ue,pe);break}case Ue.INPUT:{tr(ue,pe);break}case Ue.PARAM:case Ue.TRACK:case Ue.SOURCE:{cl(ue,pe);break}case Ue.IMAGE:{Qn(ue,pe);break}case Ue.BUTTON:{_a(ue,pe);break}case Ue.APPLET:case Ue.OBJECT:case Ue.MARQUEE:{Bo(ue,pe);break}case Ue.IFRAME:{Js(ue,pe);break}case Ue.SELECT:{sc(ue,pe);break}case Ue.OPTION:case Ue.OPTGROUP:{Yc(ue,pe);break}case Ue.NOEMBED:case Ue.NOFRAMES:{Vl(ue,pe);break}case Ue.FRAMESET:{Ca(ue,pe);break}case Ue.TEXTAREA:{uu(ue,pe);break}case Ue.NOSCRIPT:{ue.options.scriptingEnabled?Vl(ue,pe):As(ue,pe);break}case Ue.PLAINTEXT:{ds(ue,pe);break}case Ue.COL:case Ue.TH:case Ue.TD:case Ue.TR:case Ue.HEAD:case Ue.FRAME:case Ue.TBODY:case Ue.TFOOT:case Ue.THEAD:case Ue.CAPTION:case Ue.COLGROUP:break;default:As(ue,pe)}}function mo(ue,pe){if(ue.openElements.hasInScope(Ue.BODY)&&(ue.insertionMode=Ln.AFTER_BODY,ue.options.sourceCodeLocationInfo)){const Ze=ue.openElements.tryPeekProperlyNestedBodyElement();Ze&&ue._setEndLocation(Ze,pe)}}function ja(ue,pe){ue.openElements.hasInScope(Ue.BODY)&&(ue.insertionMode=Ln.AFTER_BODY,ts(ue,pe))}function Os(ue,pe){const Ze=pe.tagID;ue.openElements.hasInScope(Ze)&&(ue.openElements.generateImpliedEndTags(),ue.openElements.popUntilTagNamePopped(Ze))}function na(ue){const pe=ue.openElements.tmplCount>0,{formElement:Ze}=ue;pe||(ue.formElement=null),(Ze||pe)&&ue.openElements.hasInScope(Ue.FORM)&&(ue.openElements.generateImpliedEndTags(),pe?ue.openElements.popUntilTagNamePopped(Ue.FORM):Ze&&ue.openElements.remove(Ze))}function qs(ue){ue.openElements.hasInButtonScope(Ue.P)||ue._insertFakeElement(Kt.P,Ue.P),ue._closePElement()}function Qa(ue){ue.openElements.hasInListItemScope(Ue.LI)&&(ue.openElements.generateImpliedEndTagsWithExclusion(Ue.LI),ue.openElements.popUntilTagNamePopped(Ue.LI))}function Tu(ue,pe){const Ze=pe.tagID;ue.openElements.hasInScope(Ze)&&(ue.openElements.generateImpliedEndTagsWithExclusion(Ze),ue.openElements.popUntilTagNamePopped(Ze))}function Ro(ue){ue.openElements.hasNumberedHeaderInScope()&&(ue.openElements.generateImpliedEndTags(),ue.openElements.popUntilNumberedHeaderPopped())}function ys(ue,pe){const Ze=pe.tagID;ue.openElements.hasInScope(Ze)&&(ue.openElements.generateImpliedEndTags(),ue.openElements.popUntilTagNamePopped(Ze),ue.activeFormattingElements.clearToLastMarker())}function To(ue){ue._reconstructActiveFormattingElements(),ue._insertFakeElement(Kt.BR,Ue.BR),ue.openElements.pop(),ue.framesetOk=!1}function Jo(ue,pe){const Ze=pe.tagName,Ft=pe.tagID;for(let Hn=ue.openElements.stackTop;Hn>0;Hn--){const Si=ue.openElements.items[Hn],Hi=ue.openElements.tagIDs[Hn];if(Ft===Hi&&(Ft!==Ue.UNKNOWN||ue.treeAdapter.getTagName(Si)===Ze)){ue.openElements.generateImpliedEndTagsWithExclusion(Ft),ue.openElements.stackTop>=Hn&&ue.openElements.shortenToLength(Hn);break}if(ue._isSpecialElement(Si,Hi))break}}function ea(ue,pe){switch(pe.tagID){case Ue.A:case Ue.B:case Ue.I:case Ue.S:case Ue.U:case Ue.EM:case Ue.TT:case Ue.BIG:case Ue.CODE:case Ue.FONT:case Ue.NOBR:case Ue.SMALL:case Ue.STRIKE:case Ue.STRONG:{Jr(ue,pe);break}case Ue.P:{qs(ue);break}case Ue.DL:case Ue.UL:case Ue.OL:case Ue.DIR:case Ue.DIV:case Ue.NAV:case Ue.PRE:case Ue.MAIN:case Ue.MENU:case Ue.ASIDE:case Ue.BUTTON:case Ue.CENTER:case Ue.FIGURE:case Ue.FOOTER:case Ue.HEADER:case Ue.HGROUP:case Ue.DIALOG:case Ue.ADDRESS:case Ue.ARTICLE:case Ue.DETAILS:case Ue.SEARCH:case Ue.SECTION:case Ue.SUMMARY:case Ue.LISTING:case Ue.FIELDSET:case Ue.BLOCKQUOTE:case Ue.FIGCAPTION:{Os(ue,pe);break}case Ue.LI:{Qa(ue);break}case Ue.DD:case Ue.DT:{Tu(ue,pe);break}case Ue.H1:case Ue.H2:case Ue.H3:case Ue.H4:case Ue.H5:case Ue.H6:{Ro(ue);break}case Ue.BR:{To(ue);break}case Ue.BODY:{mo(ue,pe);break}case Ue.HTML:{ja(ue,pe);break}case Ue.FORM:{na(ue);break}case Ue.APPLET:case Ue.OBJECT:case Ue.MARQUEE:{ys(ue,pe);break}case Ue.TEMPLATE:{Ko(ue,pe);break}default:Jo(ue,pe)}}function va(ue,pe){ue.tmplInsertionModeStack.length>0?Xa(ue,pe):Yi(ue,pe)}function fo(ue,pe){var Ze;pe.tagID===Ue.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,Dn.eofInElementThatCanContainOnlyText),ue.openElements.pop(),ue.insertionMode=ue.originalInsertionMode,ue.onEof(pe)}function Lr(ue,pe){if(ue.openElements.currentTagId!==void 0&&da.has(ue.openElements.currentTagId))switch(ue.pendingCharacterTokens.length=0,ue.hasNonWhitespacePendingCharacterToken=!1,ue.originalInsertionMode=ue.insertionMode,ue.insertionMode=Ln.IN_TABLE_TEXT,pe.type){case ui.CHARACTER:{cu(ue,pe);break}case ui.WHITESPACE_CHARACTER:{Ac(ue,pe);break}}else Rs(ue,pe)}function gh(ue,pe){ue.openElements.clearBackToTableContext(),ue.activeFormattingElements.insertMarker(),ue._insertElement(pe,Ut.HTML),ue.insertionMode=Ln.IN_CAPTION}function No(ue,pe){ue.openElements.clearBackToTableContext(),ue._insertElement(pe,Ut.HTML),ue.insertionMode=Ln.IN_COLUMN_GROUP}function ph(ue,pe){ue.openElements.clearBackToTableContext(),ue._insertFakeElement(Kt.COLGROUP,Ue.COLGROUP),ue.insertionMode=Ln.IN_COLUMN_GROUP,xl(ue,pe)}function Tc(ue,pe){ue.openElements.clearBackToTableContext(),ue._insertElement(pe,Ut.HTML),ue.insertionMode=Ln.IN_TABLE_BODY}function Au(ue,pe){ue.openElements.clearBackToTableContext(),ue._insertFakeElement(Kt.TBODY,Ue.TBODY),ue.insertionMode=Ln.IN_TABLE_BODY,Wu(ue,pe)}function Bd(ue,pe){ue.openElements.hasInTableScope(Ue.TABLE)&&(ue.openElements.popUntilTagNamePopped(Ue.TABLE),ue._resetInsertionMode(),ue._processStartTag(pe))}function sd(ue,pe){Ka(pe)?ue._appendElement(pe,Ut.HTML):Rs(ue,pe),pe.ackSelfClosing=!0}function Zl(ue,pe){!ue.formElement&&ue.openElements.tmplCount===0&&(ue._insertElement(pe,Ut.HTML),ue.formElement=ue.openElements.current,ue.openElements.pop())}function Rl(ue,pe){switch(pe.tagID){case Ue.TD:case Ue.TH:case Ue.TR:{Au(ue,pe);break}case Ue.STYLE:case Ue.SCRIPT:case Ue.TEMPLATE:{aa(ue,pe);break}case Ue.COL:{ph(ue,pe);break}case Ue.FORM:{Zl(ue,pe);break}case Ue.TABLE:{Bd(ue,pe);break}case Ue.TBODY:case Ue.TFOOT:case Ue.THEAD:{Tc(ue,pe);break}case Ue.INPUT:{sd(ue,pe);break}case Ue.CAPTION:{gh(ue,pe);break}case Ue.COLGROUP:{No(ue,pe);break}default:Rs(ue,pe)}}function Ao(ue,pe){switch(pe.tagID){case Ue.TABLE:{ue.openElements.hasInTableScope(Ue.TABLE)&&(ue.openElements.popUntilTagNamePopped(Ue.TABLE),ue._resetInsertionMode());break}case Ue.TEMPLATE:{Ko(ue,pe);break}case Ue.BODY:case Ue.CAPTION:case Ue.COL:case Ue.COLGROUP:case Ue.HTML:case Ue.TBODY:case Ue.TD:case Ue.TFOOT:case Ue.TH:case Ue.THEAD:case Ue.TR:break;default:Rs(ue,pe)}}function Rs(ue,pe){const Ze=ue.fosterParentingEnabled;ue.fosterParentingEnabled=!0,Ts(ue,pe),ue.fosterParentingEnabled=Ze}function Ac(ue,pe){ue.pendingCharacterTokens.push(pe)}function cu(ue,pe){ue.pendingCharacterTokens.push(pe),ue.hasNonWhitespacePendingCharacterToken=!0}function Cu(ue,pe){let Ze=0;if(ue.hasNonWhitespacePendingCharacterToken)for(;Ze<ue.pendingCharacterTokens.length;Ze++)Rs(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([Ue.CAPTION,Ue.COL,Ue.COLGROUP,Ue.TBODY,Ue.TD,Ue.TFOOT,Ue.TH,Ue.THEAD,Ue.TR]);function El(ue,pe){const Ze=pe.tagID;Kl.has(Ze)?ue.openElements.hasInTableScope(Ue.CAPTION)&&(ue.openElements.generateImpliedEndTags(),ue.openElements.popUntilTagNamePopped(Ue.CAPTION),ue.activeFormattingElements.clearToLastMarker(),ue.insertionMode=Ln.IN_TABLE,Rl(ue,pe)):Do(ue,pe)}function Yu(ue,pe){const Ze=pe.tagID;switch(Ze){case Ue.CAPTION:case Ue.TABLE:{ue.openElements.hasInTableScope(Ue.CAPTION)&&(ue.openElements.generateImpliedEndTags(),ue.openElements.popUntilTagNamePopped(Ue.CAPTION),ue.activeFormattingElements.clearToLastMarker(),ue.insertionMode=Ln.IN_TABLE,Ze===Ue.TABLE&&Ao(ue,pe));break}case Ue.BODY:case Ue.COL:case Ue.COLGROUP:case Ue.HTML:case Ue.TBODY:case Ue.TD:case Ue.TFOOT:case Ue.TH:case Ue.THEAD:case Ue.TR:break;default:ea(ue,pe)}}function xl(ue,pe){switch(pe.tagID){case Ue.HTML:{Do(ue,pe);break}case Ue.COL:{ue._appendElement(pe,Ut.HTML),pe.ackSelfClosing=!0;break}case Ue.TEMPLATE:{aa(ue,pe);break}default:uc(ue,pe)}}function du(ue,pe){switch(pe.tagID){case Ue.COLGROUP:{ue.openElements.currentTagId===Ue.COLGROUP&&(ue.openElements.pop(),ue.insertionMode=Ln.IN_TABLE);break}case Ue.TEMPLATE:{Ko(ue,pe);break}case Ue.COL:break;default:uc(ue,pe)}}function uc(ue,pe){ue.openElements.currentTagId===Ue.COLGROUP&&(ue.openElements.pop(),ue.insertionMode=Ln.IN_TABLE,ue._processToken(pe))}function Wu(ue,pe){switch(pe.tagID){case Ue.TR:{ue.openElements.clearBackToTableBodyContext(),ue._insertElement(pe,Ut.HTML),ue.insertionMode=Ln.IN_ROW;break}case Ue.TH:case Ue.TD:{ue.openElements.clearBackToTableBodyContext(),ue._insertFakeElement(Kt.TR,Ue.TR),ue.insertionMode=Ln.IN_ROW,dc(ue,pe);break}case Ue.CAPTION:case Ue.COL:case Ue.COLGROUP:case Ue.TBODY:case Ue.TFOOT:case Ue.THEAD:{ue.openElements.hasTableBodyContextInTableScope()&&(ue.openElements.clearBackToTableBodyContext(),ue.openElements.pop(),ue.insertionMode=Ln.IN_TABLE,Rl(ue,pe));break}default:Rl(ue,pe)}}function cc(ue,pe){const Ze=pe.tagID;switch(pe.tagID){case Ue.TBODY:case Ue.TFOOT:case Ue.THEAD:{ue.openElements.hasInTableScope(Ze)&&(ue.openElements.clearBackToTableBodyContext(),ue.openElements.pop(),ue.insertionMode=Ln.IN_TABLE);break}case Ue.TABLE:{ue.openElements.hasTableBodyContextInTableScope()&&(ue.openElements.clearBackToTableBodyContext(),ue.openElements.pop(),ue.insertionMode=Ln.IN_TABLE,Ao(ue,pe));break}case Ue.BODY:case Ue.CAPTION:case Ue.COL:case Ue.COLGROUP:case Ue.HTML:case Ue.TD:case Ue.TH:case Ue.TR:break;default:Ao(ue,pe)}}function dc(ue,pe){switch(pe.tagID){case Ue.TH:case Ue.TD:{ue.openElements.clearBackToTableRowContext(),ue._insertElement(pe,Ut.HTML),ue.insertionMode=Ln.IN_CELL,ue.activeFormattingElements.insertMarker();break}case Ue.CAPTION:case Ue.COL:case Ue.COLGROUP:case Ue.TBODY:case Ue.TFOOT:case Ue.THEAD:case Ue.TR:{ue.openElements.hasInTableScope(Ue.TR)&&(ue.openElements.clearBackToTableRowContext(),ue.openElements.pop(),ue.insertionMode=Ln.IN_TABLE_BODY,Wu(ue,pe));break}default:Rl(ue,pe)}}function hu(ue,pe){switch(pe.tagID){case Ue.TR:{ue.openElements.hasInTableScope(Ue.TR)&&(ue.openElements.clearBackToTableRowContext(),ue.openElements.pop(),ue.insertionMode=Ln.IN_TABLE_BODY);break}case Ue.TABLE:{ue.openElements.hasInTableScope(Ue.TR)&&(ue.openElements.clearBackToTableRowContext(),ue.openElements.pop(),ue.insertionMode=Ln.IN_TABLE_BODY,cc(ue,pe));break}case Ue.TBODY:case Ue.TFOOT:case Ue.THEAD:{(ue.openElements.hasInTableScope(pe.tagID)||ue.openElements.hasInTableScope(Ue.TR))&&(ue.openElements.clearBackToTableRowContext(),ue.openElements.pop(),ue.insertionMode=Ln.IN_TABLE_BODY,cc(ue,pe));break}case Ue.BODY:case Ue.CAPTION:case Ue.COL:case Ue.COLGROUP:case Ue.HTML:case Ue.TD:case Ue.TH:break;default:Ao(ue,pe)}}function Nu(ue,pe){const Ze=pe.tagID;Kl.has(Ze)?(ue.openElements.hasInTableScope(Ue.TD)||ue.openElements.hasInTableScope(Ue.TH))&&(ue._closeTableCell(),dc(ue,pe)):Do(ue,pe)}function ld(ue,pe){const Ze=pe.tagID;switch(Ze){case Ue.TD:case Ue.TH:{ue.openElements.hasInTableScope(Ze)&&(ue.openElements.generateImpliedEndTags(),ue.openElements.popUntilTagNamePopped(Ze),ue.activeFormattingElements.clearToLastMarker(),ue.insertionMode=Ln.IN_ROW);break}case Ue.TABLE:case Ue.TBODY:case Ue.TFOOT:case Ue.THEAD:case Ue.TR:{ue.openElements.hasInTableScope(Ze)&&(ue._closeTableCell(),hu(ue,pe));break}case Ue.BODY:case Ue.CAPTION:case Ue.COL:case Ue.COLGROUP:case Ue.HTML:break;default:ea(ue,pe)}}function mh(ue,pe){switch(pe.tagID){case Ue.HTML:{Do(ue,pe);break}case Ue.OPTION:{ue.openElements.currentTagId===Ue.OPTION&&ue.openElements.pop(),ue._insertElement(pe,Ut.HTML);break}case Ue.OPTGROUP:{ue.openElements.currentTagId===Ue.OPTION&&ue.openElements.pop(),ue.openElements.currentTagId===Ue.OPTGROUP&&ue.openElements.pop(),ue._insertElement(pe,Ut.HTML);break}case Ue.HR:{ue.openElements.currentTagId===Ue.OPTION&&ue.openElements.pop(),ue.openElements.currentTagId===Ue.OPTGROUP&&ue.openElements.pop(),ue._appendElement(pe,Ut.HTML),pe.ackSelfClosing=!0;break}case Ue.INPUT:case Ue.KEYGEN:case Ue.TEXTAREA:case Ue.SELECT:{ue.openElements.hasInSelectScope(Ue.SELECT)&&(ue.openElements.popUntilTagNamePopped(Ue.SELECT),ue._resetInsertionMode(),pe.tagID!==Ue.SELECT&&ue._processStartTag(pe));break}case Ue.SCRIPT:case Ue.TEMPLATE:{aa(ue,pe);break}default:}}function vh(ue,pe){switch(pe.tagID){case Ue.OPTGROUP:{ue.openElements.stackTop>0&&ue.openElements.currentTagId===Ue.OPTION&&ue.openElements.tagIDs[ue.openElements.stackTop-1]===Ue.OPTGROUP&&ue.openElements.pop(),ue.openElements.currentTagId===Ue.OPTGROUP&&ue.openElements.pop();break}case Ue.OPTION:{ue.openElements.currentTagId===Ue.OPTION&&ue.openElements.pop();break}case Ue.SELECT:{ue.openElements.hasInSelectScope(Ue.SELECT)&&(ue.openElements.popUntilTagNamePopped(Ue.SELECT),ue._resetInsertionMode());break}case Ue.TEMPLATE:{Ko(ue,pe);break}default:}}function yh(ue,pe){const Ze=pe.tagID;Ze===Ue.CAPTION||Ze===Ue.TABLE||Ze===Ue.TBODY||Ze===Ue.TFOOT||Ze===Ue.THEAD||Ze===Ue.TR||Ze===Ue.TD||Ze===Ue.TH?(ue.openElements.popUntilTagNamePopped(Ue.SELECT),ue._resetInsertionMode(),ue._processStartTag(pe)):mh(ue,pe)}function Ia(ue,pe){const Ze=pe.tagID;Ze===Ue.CAPTION||Ze===Ue.TABLE||Ze===Ue.TBODY||Ze===Ue.TFOOT||Ze===Ue.THEAD||Ze===Ue.TR||Ze===Ue.TD||Ze===Ue.TH?ue.openElements.hasInTableScope(Ze)&&(ue.openElements.popUntilTagNamePopped(Ue.SELECT),ue._resetInsertionMode(),ue.onEndTag(pe)):vh(ue,pe)}function Mu(ue,pe){switch(pe.tagID){case Ue.BASE:case Ue.BASEFONT:case Ue.BGSOUND:case Ue.LINK:case Ue.META:case Ue.NOFRAMES:case Ue.SCRIPT:case Ue.STYLE:case Ue.TEMPLATE:case Ue.TITLE:{aa(ue,pe);break}case Ue.CAPTION:case Ue.COLGROUP:case Ue.TBODY:case Ue.TFOOT:case Ue.THEAD:{ue.tmplInsertionModeStack[0]=Ln.IN_TABLE,ue.insertionMode=Ln.IN_TABLE,Rl(ue,pe);break}case Ue.COL:{ue.tmplInsertionModeStack[0]=Ln.IN_COLUMN_GROUP,ue.insertionMode=Ln.IN_COLUMN_GROUP,xl(ue,pe);break}case Ue.TR:{ue.tmplInsertionModeStack[0]=Ln.IN_TABLE_BODY,ue.insertionMode=Ln.IN_TABLE_BODY,Wu(ue,pe);break}case Ue.TD:case Ue.TH:{ue.tmplInsertionModeStack[0]=Ln.IN_ROW,ue.insertionMode=Ln.IN_ROW,dc(ue,pe);break}default:ue.tmplInsertionModeStack[0]=Ln.IN_BODY,ue.insertionMode=Ln.IN_BODY,Do(ue,pe)}}function Qo(ue,pe){pe.tagID===Ue.TEMPLATE&&Ko(ue,pe)}function Xa(ue,pe){ue.openElements.tmplCount>0?(ue.openElements.popUntilTagNamePopped(Ue.TEMPLATE),ue.activeFormattingElements.clearToLastMarker(),ue.tmplInsertionModeStack.shift(),ue._resetInsertionMode(),ue.onEof(pe)):Yi(ue,pe)}function as(ue,pe){pe.tagID===Ue.HTML?Do(ue,pe):Vu(ue,pe)}function ts(ue,pe){var Ze;if(pe.tagID===Ue.HTML){if(ue.fragmentContext||(ue.insertionMode=Ln.AFTER_AFTER_BODY),ue.options.sourceCodeLocationInfo&&ue.openElements.tagIDs[0]===Ue.HTML){ue._setEndLocation(ue.openElements.items[0],pe);const Ft=ue.openElements.items[1];Ft&&!(!((Ze=ue.treeAdapter.getNodeSourceCodeLocation(Ft))===null||Ze===void 0)&&Ze.endTag)&&ue._setEndLocation(Ft,pe)}}else Vu(ue,pe)}function Vu(ue,pe){ue.insertionMode=Ln.IN_BODY,Ts(ue,pe)}function fs(ue,pe){switch(pe.tagID){case Ue.HTML:{Do(ue,pe);break}case Ue.FRAMESET:{ue._insertElement(pe,Ut.HTML);break}case Ue.FRAME:{ue._appendElement(pe,Ut.HTML),pe.ackSelfClosing=!0;break}case Ue.NOFRAMES:{aa(ue,pe);break}default:}}function Pu(ue,pe){pe.tagID===Ue.FRAMESET&&!ue.openElements.isRootHtmlElementCurrent()&&(ue.openElements.pop(),!ue.fragmentContext&&ue.openElements.currentTagId!==Ue.FRAMESET&&(ue.insertionMode=Ln.AFTER_FRAMESET))}function ud(ue,pe){switch(pe.tagID){case Ue.HTML:{Do(ue,pe);break}case Ue.NOFRAMES:{aa(ue,pe);break}default:}}function cd(ue,pe){pe.tagID===Ue.HTML&&(ue.insertionMode=Ln.AFTER_AFTER_FRAMESET)}function Fs(ue,pe){pe.tagID===Ue.HTML?Do(ue,pe):we(ue,pe)}function we(ue,pe){ue.insertionMode=Ln.IN_BODY,Ts(ue,pe)}function He(ue,pe){switch(pe.tagID){case Ue.HTML:{Do(ue,pe);break}case Ue.NOFRAMES:{aa(ue,pe);break}default:}}function Ke(ue,pe){pe.chars=zn,ue._insertCharacters(pe)}function tt(ue,pe){ue._insertCharacters(pe),ue.framesetOk=!1}function Et(ue){for(;ue.treeAdapter.getNamespaceURI(ue.openElements.current)!==Ut.HTML&&ue.openElements.currentTagId!==void 0&&!ue._isIntegrationPoint(ue.openElements.currentTagId,ue.openElements.current);)ue.openElements.pop()}function xt(ue,pe){if(Lo(pe))Et(ue),ue._startTagOutsideForeignContent(pe);else{const Ze=ue._getAdjustedCurrentElement(),Ft=ue.treeAdapter.getNamespaceURI(Ze);Ft===Ut.MATHML?Sa(pe):Ft===Ut.SVG&&(gn(pe),sa(pe)),es(pe),pe.selfClosing?ue._appendElement(pe,Ft):ue._insertElement(pe,Ft),pe.ackSelfClosing=!0}}function _t(ue,pe){if(pe.tagID===Ue.P||pe.tagID===Ue.BR){Et(ue),ue._endTagOutsideForeignContent(pe);return}for(let Ze=ue.openElements.stackTop;Ze>0;Ze--){const Ft=ue.openElements.items[Ze];if(ue.treeAdapter.getNamespaceURI(Ft)===Ut.HTML){ue._endTagOutsideForeignContent(pe);break}const Hn=ue.treeAdapter.getTagName(Ft);if(Hn.toLowerCase()===pe.tagName){pe.tagName=Hn,ue.openElements.shortenToLength(Ze);break}}}const Qt=/["$&'<>\u0080-\uFFFF]/g,Un=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),Yn=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 Tn(ue){let pe="",Ze=0,Ft;for(;(Ft=Qt.exec(ue))!==null;){const{index:Hn}=Ft,Si=ue.charCodeAt(Hn),Hi=Un.get(Si);Hi===void 0?(pe+=`${ue.substring(Ze,Hn)}&#x${Yn(ue,Hn).toString(16)};`,Ze=Qt.lastIndex+=+((Si&64512)===55296)):(pe+=ue.substring(Ze,Hn)+Hi,Ze=Hn+1)}return pe+ue.substr(Ze)}const oi=null;function ni(ue,pe){return function(Ft){let Hn,Si=0,Hi="";for(;Hn=ue.exec(Ft);)Si!==Hn.index&&(Hi+=Ft.substring(Si,Hn.index)),Hi+=pe.get(Hn[0].charCodeAt(0)),Si=Hn.index+1;return Hi+Ft.substring(Si)}}const In=null,Fr=ni(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),eo=ni(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),co=new Set([Kt.AREA,Kt.BASE,Kt.BASEFONT,Kt.BGSOUND,Kt.BR,Kt.COL,Kt.EMBED,Kt.FRAME,Kt.HR,Kt.IMG,Kt.INPUT,Kt.KEYGEN,Kt.LINK,Kt.META,Kt.PARAM,Kt.SOURCE,Kt.TRACK,Kt.WBR]);function vr(ue,pe){return pe.treeAdapter.isElementNode(ue)&&pe.treeAdapter.getNamespaceURI(ue)===NS.HTML&&co.has(pe.treeAdapter.getTagName(ue))}const jr={treeAdapter:Ar,scriptingEnabled:!0};function Wr(ue,pe){const Ze=Po(Po({},jr),pe);return vr(ue,Ze)?"":ua(ue,Ze)}function la(ue,pe){const Ze=Po(Po({},jr),pe);return $i(ue,Ze)}function ua(ue,pe){let Ze="";const Ft=pe.treeAdapter.isElementNode(ue)&&pe.treeAdapter.getTagName(ue)===$.TEMPLATE&&pe.treeAdapter.getNamespaceURI(ue)===NS.HTML?pe.treeAdapter.getTemplateContent(ue):ue,Hn=pe.treeAdapter.getChildNodes(Ft);if(Hn)for(const Si of Hn)Ze+=$i(Si,pe);return Ze}function $i(ue,pe){return pe.treeAdapter.isElementNode(ue)?ha(ue,pe):pe.treeAdapter.isTextNode(ue)?ia(ue,pe):pe.treeAdapter.isCommentNode(ue)?Rr(ue,pe):pe.treeAdapter.isDocumentTypeNode(ue)?Bs(ue,pe):""}function ha(ue,pe){const Ze=pe.treeAdapter.getTagName(ue);return`<${Ze}${Oa(ue,pe)}>${vr(ue,pe)?"":`${ua(ue,pe)}</${Ze}>`}`}function Oa(ue,{treeAdapter:pe}){let Ze="";for(const Ft of pe.getAttrList(ue)){if(Ze+=" ",Ft.namespace)switch(Ft.namespace){case NS.XML:{Ze+=`xml:${Ft.name}`;break}case NS.XMLNS:{Ft.name!=="xmlns"&&(Ze+="xmlns:"),Ze+=Ft.name;break}case NS.XLINK:{Ze+=`xlink:${Ft.name}`;break}default:Ze+=`${Ft.prefix}:${Ft.name}`}else Ze+=Ft.name;Ze+=`="${escapeAttribute(Ft.value)}"`}return Ze}function ia(ue,pe){const{treeAdapter:Ze}=pe,Ft=Ze.getTextNodeContent(ue),Hn=Ze.getParentNode(ue),Si=Hn&&Ze.isElementNode(Hn)&&Ze.getTagName(Hn);return Si&&Ze.getNamespaceURI(Hn)===NS.HTML&&hasUnescapedText(Si,pe.scriptingEnabled)?Ft:escapeText(Ft)}function Rr(ue,{treeAdapter:pe}){return`<!--${pe.getCommentNodeContent(ue)}-->`}function Bs(ue,{treeAdapter:pe}){return`<!DOCTYPE ${pe.getDocumentTypeNodeName(ue)}>`}function Ea(ue,pe){return Parser.parse(ue,pe)}function uo(ue,pe,Ze){typeof ue=="string"&&(Ze=pe,pe=ue,ue=null);const Ft=Parser.getFragmentParser(ue,Ze);return Ft.tokenizer.write(pe,!0),Ft.getFragment()}var oo=de(17970),_o=de(10528);const ka=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,gs=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Cs={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function dl(ue,pe){const Ze=dd(ue),Ft=at("type",{handlers:{root:_s,element:bl,text:ei,comment:Ql,doctype:Ns,raw:ss},unknown:Da}),Hn={parser:Ze?new Ga(Cs):Ga.getFragmentParser(void 0,Cs),handle(Hr){Ft(Hr,Hn)},stitches:!1,options:pe||{}};Ft(ue,Hn),wl(Hn,(0,oo.Pk)());const Si=Ze?Hn.parser.document:Hn.parser.getFragment(),Hi=st(Si,{file:Hn.options.file});return Hn.stitches&&(0,_o.Vn)(Hi,"comment",function(Hr,ao,mi){const fr=Hr;if(fr.value.stitch&&mi&&ao!==void 0){const ho=mi.children;return ho[ao]=fr.value.stitch,ao}}),Hi.type==="root"&&Hi.children.length===1&&Hi.children[0].type===ue.type?Hi.children[0]:Hi}function Zn(ue,pe){let Ze=-1;if(ue)for(;++Ze<ue.length;)pe.handle(ue[Ze])}function _s(ue,pe){Zn(ue.children,pe)}function bl(ue,pe){fu(ue,pe),Zn(ue.children,pe),Lu(ue,pe)}function ei(ue,pe){pe.parser.tokenizer.state>4&&(pe.parser.tokenizer.state=0);const Ze={type:ui.CHARACTER,chars:ue.value,location:Bl(ue)};wl(pe,(0,oo.Pk)(ue)),pe.parser.currentToken=Ze,pe.parser._processToken(pe.parser.currentToken)}function Ns(ue,pe){const Ze={type:ui.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Bl(ue)};wl(pe,(0,oo.Pk)(ue)),pe.parser.currentToken=Ze,pe.parser._processToken(pe.parser.currentToken)}function Fl(ue,pe){pe.stitches=!0;const Ze=Zu(ue);if("children"in ue&&"children"in Ze){const Ft=dl({type:"root",children:ue.children},pe.options);Ze.children=Ft.children}Ql({type:"comment",value:{stitch:Ze}},pe)}function Ql(ue,pe){const Ze=ue.value,Ft={type:ui.COMMENT,data:Ze,location:Bl(ue)};wl(pe,(0,oo.Pk)(ue)),pe.parser.currentToken=Ft,pe.parser._processToken(pe.parser.currentToken)}function ss(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,Ss(pe,(0,oo.Pk)(ue)),pe.parser.tokenizer.write(pe.options.tagfilter?ue.value.replace(ka,"&lt;$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 Da(ue,pe){const Ze=ue;if(pe.options.passThrough&&pe.options.passThrough.includes(Ze.type))Fl(Ze,pe);else{let Ft="";throw gs.has(Ze.type)&&(Ft=". 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"+Ft)}}function wl(ue,pe){Ss(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=Ji.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 Ss(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 fu(ue,pe){const Ze=ue.tagName.toLowerCase();if(pe.parser.tokenizer.state===Ji.PLAINTEXT)return;wl(pe,(0,oo.Pk)(ue));const Ft=pe.parser.openElements.current;let Hn="namespaceURI"in Ft?Ft.namespaceURI:qe.t.html;Hn===qe.t.html&&Ze==="svg"&&(Hn=qe.t.svg);const Si=It(Nf(Po({},ue),{children:[]}),{space:Hn===qe.t.svg?"svg":"html"}),Hi={type:ui.START_TAG,tagName:Ze,tagID:ai(Ze),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in Si?Si.attrs:[],location:Bl(ue)};pe.parser.currentToken=Hi,pe.parser._processToken(pe.parser.currentToken),pe.parser.tokenizer.lastStartTagName=Ze}function Lu(ue,pe){const Ze=ue.tagName.toLowerCase();if(!pe.parser.tokenizer.inForeignNode&&nn.includes(Ze)||pe.parser.tokenizer.state===Ji.PLAINTEXT)return;wl(pe,(0,oo.rb)(ue));const Ft={type:ui.END_TAG,tagName:Ze,tagID:ai(Ze),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Bl(ue)};pe.parser.currentToken=Ft,pe.parser._processToken(pe.parser.currentToken),Ze===pe.parser.tokenizer.lastStartTagName&&(pe.parser.tokenizer.state===Ji.RCDATA||pe.parser.tokenizer.state===Ji.RAWTEXT||pe.parser.tokenizer.state===Ji.SCRIPT_DATA)&&(pe.parser.tokenizer.state=Ji.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 Bl(ue){const pe=(0,oo.Pk)(ue)||{line:void 0,column:void 0,offset:void 0},Ze=(0,oo.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 Zu(ue){return"children"in ue?(0,Le.ZP)(Nf(Po({},ue),{children:[]})):(0,Le.ZP)(ue)}function _d(ue){return function(pe,Ze){return dl(pe,Nf(Po({},ue),{file:Ze}))}}},10787:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return Je}});function le(mt){if(typeof mt!="string")throw new TypeError("Expected a string");return mt.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Le=de(2348),De=de(10502);function Ie(mt,st,Ct){const je=Ct||{},te=(0,De.O)(je.ignore||[]),ne=Ye(st);let he=-1;for(;++he<ne.length;)(0,Le.S4)(mt,"text",se);function se(Se,Ce){let Oe=-1,Be;for(;++Oe<Ce.length;){const Qe=Ce[Oe],ot=Be?Be.children:void 0;if(te(Qe,ot?ot.indexOf(Qe):void 0,Be))return;Be=Qe}if(Be)return ge(Se,Ce)}function ge(Se,Ce){const Oe=Ce[Ce.length-1],Be=ne[he][0],Qe=ne[he][1];let ot=0;const ft=Oe.children.indexOf(Se);let bt=!1,ut=[];Be.lastIndex=0;let Tt=Be.exec(Se.value);for(;Tt;){const Dt=Tt.index,en={index:Tt.index,input:Tt.input,stack:[...Ce,Se]};let Cn=Qe(...Tt,en);if(typeof Cn=="string"&&(Cn=Cn.length>0?{type:"text",value:Cn}:void 0),Cn===!1?Be.lastIndex=Dt+1:(ot!==Dt&&ut.push({type:"text",value:Se.value.slice(ot,Dt)}),Array.isArray(Cn)?ut.push(...Cn):Cn&&ut.push(Cn),ot=Dt+Tt[0].length,bt=!0),!Be.global)break;Tt=Be.exec(Se.value)}return bt?(ot<Se.value.length&&ut.push({type:"text",value:Se.value.slice(ot)}),Oe.children.splice(ft,1,...ut)):ut=[Se],ft+ut.length}}function Ye(mt){const st=[];if(!Array.isArray(mt))throw new TypeError("Expected find and replace tuple or list of tuples");const Ct=!mt[0]||Array.isArray(mt[0])?mt:[mt];let je=-1;for(;++je<Ct.length;){const te=Ct[je];st.push([Fe(te[0]),Ve(te[1])])}return st}function Fe(mt){return typeof mt=="string"?new RegExp(le(mt),"g"):mt}function Ve(mt){return typeof mt=="function"?mt:function(){return mt}}function Xe(mt){Ie(mt,[/\r?\n|\r/g,qe])}function qe(){return{type:"break"}}function Je(){return function(mt){Xe(mt)}}},30084:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return ne}});var le=de(87342);function Le(he,se){const ge=String(he);let Se=ge.indexOf(se),Ce=Se,Oe=0,Be=0;if(typeof se!="string")throw new TypeError("Expected substring");for(;Se!==-1;)Se===Ce?++Oe>Be&&(Be=Oe):Oe=1,Ce=Se+se.length,Se=ge.indexOf(se,Ce);return Be}function De(){return{enter:{mathFlow:he,mathFlowFenceMeta:se,mathText:Oe},exit:{mathFlow:Ce,mathFlowFence:Se,mathFlowFenceMeta:ge,mathFlowValue:Qe,mathText:Be,mathTextData:Qe}};function he(ot){const rt={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[rt]}},ot)}function se(){this.buffer()}function ge(){const ot=this.resume(),rt=this.stack[this.stack.length-1];(0,le.ok)(rt.type==="math"),rt.meta=ot}function Se(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function Ce(ot){const rt=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),ft=this.stack[this.stack.length-1];(0,le.ok)(ft.type==="math"),this.exit(ot),ft.value=rt;const bt=ft.data.hChildren[0];(0,le.ok)(bt.type==="element"),(0,le.ok)(bt.tagName==="code"),bt.children.push({type:"text",value:rt}),this.data.mathFlowInside=void 0}function Oe(ot){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},ot),this.buffer()}function Be(ot){const rt=this.resume(),ft=this.stack[this.stack.length-1];(0,le.ok)(ft.type==="inlineMath"),this.exit(ot),ft.value=rt,ft.data.hChildren.push({type:"text",value:rt})}function Qe(ot){this.config.enter.data.call(this,ot),this.config.exit.data.call(this,ot)}}function Ie(he){let se=(he||{}).singleDollarTextMath;return se==null&&(se=!0),Se.peek=Ce,{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,Qe,ot){const rt=Oe.value||"",ft=Qe.createTracker(ot),bt="$".repeat(Math.max(Le(rt,"$")+1,2)),ut=Qe.enter("mathFlow");let Tt=ft.move(bt);if(Oe.meta){const Dt=Qe.enter("mathFlowMeta");Tt+=ft.move(Qe.safe(Oe.meta,Po({after:`
`,before:Tt,encode:["$"]},ft.current()))),Dt()}return Tt+=ft.move(`
`),rt&&(Tt+=ft.move(rt+`
`)),Tt+=ft.move(bt),ut(),Tt}function Se(Oe,Be,Qe){let ot=Oe.value||"",rt=1;for(se||rt++;new RegExp("(^|[^$])"+"\\$".repeat(rt)+"([^$]|$)").test(ot);)rt++;const ft="$".repeat(rt);/[^ \r\n]/.test(ot)&&(/^[ \r\n]/.test(ot)&&/[ \r\n]$/.test(ot)||/^\$|\$$/.test(ot))&&(ot=" "+ot+" ");let bt=-1;for(;++bt<Qe.unsafe.length;){const ut=Qe.unsafe[bt];if(!ut.atBreak)continue;const Tt=Qe.compilePattern(ut);let Dt;for(;Dt=Tt.exec(ot);){let en=Dt.index;ot.codePointAt(en)===10&&ot.codePointAt(en-1)===13&&en--,ot=ot.slice(0,en)+" "+ot.slice(Dt.index+1)}}return ft+ot+ft}function Ce(){return"$"}}var Ye=de(26735),Fe=de(80722);const Ve={tokenize:qe,concrete:!0,name:"mathFlow"},Xe={tokenize:Je,partial:!0};function qe(he,se,ge){const Se=this,Ce=Se.events[Se.events.length-1],Oe=Ce&&Ce[1].type==="linePrefix"?Ce[2].sliceSerialize(Ce[1],!0).length:0;let Be=0;return Qe;function Qe(pn){return he.enter("mathFlow"),he.enter("mathFlowFence"),he.enter("mathFlowFenceSequence"),ot(pn)}function ot(pn){return pn===36?(he.consume(pn),Be++,ot):Be<2?ge(pn):(he.exit("mathFlowFenceSequence"),(0,Ye.f)(he,rt,"whitespace")(pn))}function rt(pn){return pn===null||(0,Fe.Ch)(pn)?bt(pn):(he.enter("mathFlowFenceMeta"),he.enter("chunkString",{contentType:"string"}),ft(pn))}function ft(pn){return pn===null||(0,Fe.Ch)(pn)?(he.exit("chunkString"),he.exit("mathFlowFenceMeta"),bt(pn)):pn===36?ge(pn):(he.consume(pn),ft)}function bt(pn){return he.exit("mathFlowFence"),Se.interrupt?se(pn):he.attempt(Xe,ut,Cn)(pn)}function ut(pn){return he.attempt({tokenize:vn,partial:!0},Cn,Tt)(pn)}function Tt(pn){return(Oe?(0,Ye.f)(he,Dt,"linePrefix",Oe+1):Dt)(pn)}function Dt(pn){return pn===null?Cn(pn):(0,Fe.Ch)(pn)?he.attempt(Xe,ut,Cn)(pn):(he.enter("mathFlowValue"),en(pn))}function en(pn){return pn===null||(0,Fe.Ch)(pn)?(he.exit("mathFlowValue"),Dt(pn)):(he.consume(pn),en)}function Cn(pn){return he.exit("mathFlow"),se(pn)}function vn(pn,mn,Mt){let ct=0;return(0,Ye.f)(pn,nt,"linePrefix",Se.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function nt(Nt){return pn.enter("mathFlowFence"),pn.enter("mathFlowFenceSequence"),dn(Nt)}function dn(Nt){return Nt===36?(ct++,pn.consume(Nt),dn):ct<Be?Mt(Nt):(pn.exit("mathFlowFenceSequence"),(0,Ye.f)(pn,En,"whitespace")(Nt))}function En(Nt){return Nt===null||(0,Fe.Ch)(Nt)?(pn.exit("mathFlowFence"),mn(Nt)):Mt(Nt)}}}function Je(he,se,ge){const Se=this;return Ce;function Ce(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:Ct,name:"mathText"};function Se(Ce,Oe,Be){const Qe=this;let ot=0,rt,ft;return bt;function bt(Cn){return Ce.enter("mathText"),Ce.enter("mathTextSequence"),ut(Cn)}function ut(Cn){return Cn===36?(Ce.consume(Cn),ot++,ut):ot<2&&!ge?Be(Cn):(Ce.exit("mathTextSequence"),Tt(Cn))}function Tt(Cn){return Cn===null?Be(Cn):Cn===36?(ft=Ce.enter("mathTextSequence"),rt=0,en(Cn)):Cn===32?(Ce.enter("space"),Ce.consume(Cn),Ce.exit("space"),Tt):(0,Fe.Ch)(Cn)?(Ce.enter("lineEnding"),Ce.consume(Cn),Ce.exit("lineEnding"),Tt):(Ce.enter("mathTextData"),Dt(Cn))}function Dt(Cn){return Cn===null||Cn===32||Cn===36||(0,Fe.Ch)(Cn)?(Ce.exit("mathTextData"),Tt(Cn)):(Ce.consume(Cn),Dt)}function en(Cn){return Cn===36?(Ce.consume(Cn),rt++,en):rt===ot?(Ce.exit("mathTextSequence"),Ce.exit("mathText"),Oe(Cn)):(ft.type="mathTextData",Dt(Cn))}}}function st(he){let se=he.length-4,ge=3,Se,Ce;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;)Ce===void 0?Se!==se&&he[Se][1].type!=="lineEnding"&&(Ce=Se):(Se===se||he[Se][1].type==="lineEnding")&&(he[Ce][1].type="mathTextData",Se!==Ce+2&&(he[Ce][1].end=he[Se-1][1].end,he.splice(Ce+2,Se-Ce-2),se-=Se-Ce-2,Se=Ce+2),Ce=void 0);return he}function Ct(he){return he!==36||this.events[this.events.length-1][1].type==="characterEscape"}function je(he){return{flow:{36:Ve},text:{36:mt(he)}}}const te={};function ne(he){const se=this,ge=he||te,Se=se.data(),Ce=Se.micromarkExtensions||(Se.micromarkExtensions=[]),Oe=Se.fromMarkdownExtensions||(Se.fromMarkdownExtensions=[]),Be=Se.toMarkdownExtensions||(Se.toMarkdownExtensions=[]);Ce.push(je(ge)),Oe.push(De()),Be.push(Ie(ge))}},16722:function(Ge,be,de){"use strict";de.d(be,{Z:function(){return Xe}});const le=qe=>typeof qe=="object"&&qe!=null&&qe.nodeType===1,Le=(qe,Je)=>(!Je||qe!=="hidden")&&qe!=="visible"&&qe!=="clip",De=(qe,Je)=>{if(qe.clientHeight<qe.scrollHeight||qe.clientWidth<qe.scrollWidth){const mt=getComputedStyle(qe,null);return Le(mt.overflowY,Je)||Le(mt.overflowX,Je)||(st=>{const Ct=(je=>{if(!je.ownerDocument||!je.ownerDocument.defaultView)return null;try{return je.ownerDocument.defaultView.frameElement}catch(te){return null}})(st);return!!Ct&&(Ct.clientHeight<st.scrollHeight||Ct.clientWidth<st.scrollWidth)})(qe)}return!1},Ie=(qe,Je,mt,st,Ct,je,te,ne)=>je<qe&&te>Je||je>qe&&te<Je?0:je<=qe&&ne<=mt||te>=Je&&ne>=mt?je-qe-st:te>Je&&ne<mt||je<qe&&ne>mt?te-Je+Ct:0,Ye=qe=>{const Je=qe.parentElement;return Je==null?qe.getRootNode().host||null:Je},Fe=(qe,Je)=>{var mt,st,Ct,je;if(typeof document=="undefined")return[];const{scrollMode:te,block:ne,inline:he,boundary:se,skipOverflowHiddenElements:ge}=Je,Se=typeof se=="function"?se:En=>En!==se;if(!le(qe))throw new TypeError("Invalid target");const Ce=document.scrollingElement||document.documentElement,Oe=[];let Be=qe;for(;le(Be)&&Se(Be);){if(Be=Ye(Be),Be===Ce){Oe.push(Be);break}Be!=null&&Be===document.body&&De(Be)&&!De(document.documentElement)||Be!=null&&De(Be,ge)&&Oe.push(Be)}const Qe=(st=(mt=window.visualViewport)==null?void 0:mt.width)!=null?st:innerWidth,ot=(je=(Ct=window.visualViewport)==null?void 0:Ct.height)!=null?je:innerHeight,{scrollX:rt,scrollY:ft}=window,{height:bt,width:ut,top:Tt,right:Dt,bottom:en,left:Cn}=qe.getBoundingClientRect(),{top:vn,right:pn,bottom:mn,left:Mt}=(En=>{const Nt=window.getComputedStyle(En);return{top:parseFloat(Nt.scrollMarginTop)||0,right:parseFloat(Nt.scrollMarginRight)||0,bottom:parseFloat(Nt.scrollMarginBottom)||0,left:parseFloat(Nt.scrollMarginLeft)||0}})(qe);let ct=ne==="start"||ne==="nearest"?Tt-vn:ne==="end"?en+mn:Tt+bt/2-vn+mn,nt=he==="center"?Cn+ut/2-Mt+pn:he==="end"?Dt+pn:Cn-Mt;const dn=[];for(let En=0;En<Oe.length;En++){const Nt=Oe[En],{height:cn,width:ln,top:_n,right:kn,bottom:si,left:kt}=Nt.getBoundingClientRect();if(te==="if-needed"&&Tt>=0&&Cn>=0&&en<=ot&&Dt<=Qe&&(Nt===Ce&&!De(Nt)||Tt>=_n&&en<=si&&Cn>=kt&&Dt<=kn))return dn;const Kn=getComputedStyle(Nt),hi=parseInt(Kn.borderLeftWidth,10),et=parseInt(Kn.borderTopWidth,10),_e=parseInt(Kn.borderRightWidth,10),xe=parseInt(Kn.borderBottomWidth,10);let Te=0,Me=0;const Ae="offsetWidth"in Nt?Nt.offsetWidth-Nt.clientWidth-hi-_e:0,at="offsetHeight"in Nt?Nt.offsetHeight-Nt.clientHeight-et-xe:0,Lt="offsetWidth"in Nt?Nt.offsetWidth===0?0:ln/Nt.offsetWidth:0,Pt="offsetHeight"in Nt?Nt.offsetHeight===0?0:cn/Nt.offsetHeight:0;if(Ce===Nt)Te=ne==="start"?ct:ne==="end"?ct-ot:ne==="nearest"?Ie(ft,ft+ot,ot,et,xe,ft+ct,ft+ct+bt,bt):ct-ot/2,Me=he==="start"?nt:he==="center"?nt-Qe/2:he==="end"?nt-Qe:Ie(rt,rt+Qe,Qe,hi,_e,rt+nt,rt+nt+ut,ut),Te=Math.max(0,Te+ft),Me=Math.max(0,Me+rt);else{Te=ne==="start"?ct-_n-et:ne==="end"?ct-si+xe+at:ne==="nearest"?Ie(_n,si,cn,et,xe+at,ct,ct+bt,bt):ct-(_n+cn/2)+at/2,Me=he==="start"?nt-kt-hi:he==="center"?nt-(kt+ln/2)+Ae/2:he==="end"?nt-kn+_e+Ae:Ie(kt,kn,ln,hi,_e+Ae,nt,nt+ut,ut);const{scrollLeft:Vt,scrollTop:It}=Nt;Te=Pt===0?0:Math.max(0,Math.min(It+Te/Pt,Nt.scrollHeight-cn/Pt+at)),Me=Lt===0?0:Math.max(0,Math.min(Vt+Me/Lt,Nt.scrollWidth-ln/Lt+Ae)),ct+=It-Te,nt+=Vt-Me}dn.push({el:Nt,top:Te,left:Me})}return dn},Ve=qe=>qe===!1?{block:"end",inline:"nearest"}:(Je=>Je===Object(Je)&&Object.keys(Je).length!==0)(qe)?qe:{block:"start",inline:"nearest"};function Xe(qe,Je){if(!qe.isConnected||!(Ct=>{let je=Ct;for(;je&&je.parentNode;){if(je.parentNode===document)return!0;je=je.parentNode instanceof ShadowRoot?je.parentNode.host:je.parentNode}return!1})(qe))return;const mt=(Ct=>{const je=window.getComputedStyle(Ct);return{top:parseFloat(je.scrollMarginTop)||0,right:parseFloat(je.scrollMarginRight)||0,bottom:parseFloat(je.scrollMarginBottom)||0,left:parseFloat(je.scrollMarginLeft)||0}})(qe);if((Ct=>typeof Ct=="object"&&typeof Ct.behavior=="function")(Je))return Je.behavior(Fe(qe,Je));const st=typeof Je=="boolean"||Je==null?void 0:Je.behavior;for(const{el:Ct,top:je,left:te}of Fe(qe,Ve(Je))){const ne=je-mt.top+mt.bottom,he=te-mt.left+mt.right;Ct.scroll({top:ne,left:he,behavior:st})}}},71523:function(Ge,be,de){"use strict";de.d(be,{P:function(){return Le},Q:function(){return le}});function le(De){const Ie=String(De||"").trim();return Ie?Ie.split(/[ \t\n\r\f]+/g):[]}function Le(De){return De.join(" ").trim()}},10502:function(Ge,be,de){"use strict";de.d(be,{O:function(){return Le}});const le=function(qe,Je,mt,st,Ct){const je=Le(Je);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 Xe(qe)?je.call(Ct,qe,mt,st):!1},Le=function(qe){if(qe==null)return Ve;if(typeof qe=="function")return Fe(qe);if(typeof qe=="object")return Array.isArray(qe)?De(qe):Ie(qe);if(typeof qe=="string")return Ye(qe);throw new Error("Expected function, string, or object as test")};function De(qe){const Je=[];let mt=-1;for(;++mt<qe.length;)Je[mt]=Le(qe[mt]);return Fe(st);function st(...Ct){let je=-1;for(;++je<Je.length;)if(Je[je].apply(this,Ct))return!0;return!1}}function Ie(qe){const Je=qe;return Fe(mt);function mt(st){const Ct=st;let je;for(je in qe)if(Ct[je]!==Je[je])return!1;return!0}}function Ye(qe){return Fe(Je);function Je(mt){return mt&&mt.type===qe}}function Fe(qe){return Je;function Je(mt,st,Ct){return!!(Xe(mt)&&qe.call(this,mt,typeof st=="number"?st:void 0,Ct||void 0))}}function Ve(){return!0}function Xe(qe){return qe!==null&&typeof qe=="object"&&"type"in qe}},17970:function(Ge,be,de){"use strict";de.d(be,{FK:function(){return Ie},Pk:function(){return Le},rb:function(){return le}});const le=De("end"),Le=De("start");function De(Ye){return Fe;function Fe(Ve){const Xe=Ve&&Ve.position&&Ve.position[Ye]||{};if(typeof Xe.line=="number"&&Xe.line>0&&typeof Xe.column=="number"&&Xe.column>0)return{line:Xe.line,column:Xe.column,offset:typeof Xe.offset=="number"&&Xe.offset>-1?Xe.offset:void 0}}}function Ie(Ye){const Fe=Le(Ye),Ve=le(Ye);if(Fe&&Ve)return{start:Fe,end:Ve}}},2348:function(Ge,be,de){"use strict";de.d(be,{AM:function(){return Fe},S4:function(){return Ve}});var le=de(10502);function Le(qe){return qe}const De=[],Ie=!0,Ye=!1,Fe="skip";function Ve(qe,Je,mt,st){let Ct;typeof Je=="function"&&typeof mt!="function"?(st=mt,mt=Je):Ct=Je;const je=(0,le.O)(Ct),te=st?-1:1;ne(qe,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(Ce,"name",{value:"node ("+(he.type+(Oe?"<"+Oe+">":""))+")"})}return Ce;function Ce(){let Oe=De,Be,Qe,ot;if((!Je||je(he,se,ge[ge.length-1]||void 0))&&(Oe=Xe(mt(he,ge)),Oe[0]===Ye))return Oe;if("children"in he&&he.children){const rt=he;if(rt.children&&Oe[0]!==Fe)for(Qe=(st?rt.children.length:-1)+te,ot=ge.concat(rt);Qe>-1&&Qe<rt.children.length;){const ft=rt.children[Qe];if(Be=ne(ft,Qe,ot)(),Be[0]===Ye)return Be;Qe=typeof Be[1]=="number"?Be[1]:Qe+te}}return Oe}}}function Xe(qe){return Array.isArray(qe)?qe:typeof qe=="number"?[Ie,qe]:qe==null?De:[qe]}},10528:function(Ge,be,de){"use strict";de.d(be,{Vn:function(){return Le}});var le=de(2348);function Le(De,Ie,Ye,Fe){let Ve,Xe,qe;typeof Ie=="function"&&typeof Ye!="function"?(Xe=void 0,qe=Ie,Ve=Ye):(Xe=Ie,qe=Ye,Ve=Fe),(0,le.S4)(De,Xe,Je,Ve);function Je(mt,st){const Ct=st[st.length-1],je=Ct?Ct.children.indexOf(mt):void 0;return qe(mt,je,Ct)}}},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"}')}}]);
}());